Dear NXP team,
RD33771CNTREVM_Board_Initialization_Problem
please see the information from the customer in the attached files.
1. Pure C Project folder; customer use example from NXP, the result of reading voltage is not correct (please see the pictures).
2. Simulink Project; They try to use Matlab Simulink to generate code, the result of EVK board is not responding to anything.
Thank you.
Best Regards,
Wittawat
Hello @mariuslucianand ,
Could you help update the MBDT customer source code? Thank you.
Best Regards,
Wittawat
Hello @Wittawat ,
I had a look at the attached code. As far as I've seen, there are used older driver version of the mc33771 driver. I've could not quite understand how to the Wakeup is meant to work, because the wakeup procedure is toggled every step time.
Unfortunately, I don't have access to the RD33771CNTREVM so I cannot give this a try on hardware.
My suggestion is the following. Go to this article, and below the page, you will find an archive with the startup model for the MC33771C with the latest driver. Please start from there: https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/How-to-use-your-own-C-code-in-our-Toolbox-...
For the attached code, I have the following comments:
1. The board MCU frequency is 80MHz, not 48 as I've found in the code.
2. The SPI interrupts priorities have to be increased, as you can see in the attached archive of the mentioned article.
3. The PINs of EN and Wakeup Have to be initialized in the MBDT like below.
4. For writing the CSB pin you can use the LPSPI_DRV_SetPcs driver function.
Hope this helps,
Marius
My
Hello @mariuslucianand ,
The below is a reply from the customer.
1) the setting of 48MHz is not available at all.
48MHz is not setting parameters in Simulink, it is the system frequency of uC.
The settings inside Simulink are Clock (Oscillator usage) related, it has only 80/112MHz and 8/40MHz.
After that, the uC will use this parameter to configure. Internal frequency to be 48MHz which will be used in the GET_CLOCK_FREQUENCY function.
This function, yes, relates to the wakeup procedure due to waiting time.
2) In other parallel project, NXP FAE send me the example project which uses the below INT_SYS_SetPriority function to increase SPI priority. I follow him already, but not work.
The difference is that he is also using this increase priority to PIT_CH3 for some kind of busy waiting.
But I have not understood him, but I already asked a few days (No reply).
So I have no idea which more priority I have to increase yet.
Could you please advise on this case?
Thank you for your support.
Best Regards,
Wittawat.
Hello @mariuslucianand,
Could you help check the information reply from the customer?
Thank you.
Best regards,
Wittawat
Hello @mariuslucianand,
Could you help check the response from the customer?
Thank you.
Best regards,
Wittawat
Hello @mariuslucianand ,
Could you please modify the source code and attach it to the project file?
We will send it to the customer for testing.
Thank you for your support.
Best Regards,
Wittawat
Hello @Wittawat,
It seems that the customer reported two separate issues.
The first one, related to the C project example, which should work out of the box but the measurements not being valid. @PhilippePerruchoud-NXP, do you have any idea here?
For the second one, related to MBDT approach, I can provide support. Even if I don't have access to the same EVB board, I can try to test the attached model on the EVBs and debug the model. Let me do this and I will reply with my results below.
Regards,
Marius
Hello @mariuslucianand,
Could you help update MBDT ?
Please help fix the initial problem.|
Thank you.
Best Regards,
Wittawat
Hello,
Not sure what correct voltage values are expected, but from the picture in the zip file, I can see that the physical value of the voltage doesn't correspond to the raw value because the cell resolution factor was not applied. In the datasheet, this factor VCT_ANX_RES is 152.58789 µV/LSB.
For the VC14, raw value measured is 1E5F which corresponds to 1.186 V
Hope this helps
Hello @mariuslucianand and@PhilippePerruchoud-NXP,
Please see the circuit diagram in the attached.
Could you help modify the parameter and upload the practical example file for RD33771CNTREVM?
I will send it to the customer to test on the EVK.
Thank you.
Hello @mariuslucianand and @PhilippePerruchoud-NXP ,
Thank you for your support.
Our customers try to use the example C Project file from NXP. The result is that the example does not work (please see the voltage parameters attached). Then they try to use Model Base and it still does not work too (nothing does respond).
Could you help send the practical example file (C project) for RD33771CNTREVM first?
Our customer is chasing me to make sure that NXP BMS is working to be developed and implemented for their projects or not.
Best Regards,
Wittawat