Dear NXP Support Team,
I am currently working on a Battery Management System (BMS) project using the MC33772B Evaluation Board in combination with the S32K144 Board. I am using the model bms_mc33772b_spi_s32k provided by MATLAB. However, I am facing several issues and would appreciate your urgent support on the following points:
MC33772B Evaluation GUI Issue:
I am unable to see the cell voltages on the MC33772 GUI.
The COM port is not being detected, despite proper connections.
Software Flashing Issue:
I am unable to directly flash the generated code from MATLAB to the microcontroller.
Kindly guide me on how to properly build and flash the software onto the S32K144.
Freescale GUI Access:
Please provide guidance on how to access and use the Freescale GUI for monitoring and debugging purposes.
Requesting your immediate assistance on the above issues to help us proceed with our development.
Thank you for your support.
Best regards,
Pratyay Maity
已解决! 转到解答。
Hello @PRAtyay1231 ,
I am glad you are now communicating with the board from the generated code in Simulink!
From what I see, the results you get in FreeMASTER from the generated code are the same with the ones from the GUI. Therefore my assumption is now related more to the hardware connections you did. Please check the wiring.
The J12-34 with the J12-33 and the J12-31 are required to be connected to the GND of the Battery Pack (NEG of the Cell 0).
The J2-1 and J2-19 needs both to be connected to the Positive off Cell 5 (POS of the Battery Pack).
Hope this helps,
Marius
Hello @PRAtyay1231,
From what I see in the attached image, you are using the MC33772C via SPI and therefore the example targeting MC33772B might not work.
MBDT for S32K1 does not provide a ready to run example for this combination of S32K144 and MC33772C via SPI in the toolbox, but, we offer the bms_s32k_mc33771c_spi which comes with the settings for the closest related part.
I would suggest you to start for the bms_s32k_mc33771c_spi example and apply the following checklist:
1. Open the LPSPU Config block and check the list of pins from the Pins tab to be the ones assigned on the MC33772C SPI board.
2. Open the MC3377xC Config and change the device from MC33771C to MC33772C. If there is a different CS pin for SPI, please adjust this in the SPI tab and then go to the Pins tab to make sure that the RESET_ALT0 is the same one routed on the RESET Pin on the MC33772C evaluation board.
Let;s apply the settings above and then try to see if the MC33772C responds over the SPI protocol as desired.
Please make sure you keep the right binaries and GUI tools for the MC33772C.
Then, as Tomas suggested, please recheck the wiring of your setup according to the MC33772C Reference Manual.
Hope this helps,
Marius
Dear @mariuslucianand
I appreciate your support. I am now able to establish SPI communication between the MC33772C and the S32K144 Board. But below issues are there.
1. Unable to see the Pack Voltage, even though I am giving the pack voltage in the MC33772 Eval board. voltage applied 21.2 v
1. Unable to see the Cell0 Voltage even though I am giving the Cell0 voltage in the MC33772 Eval board. voltage applied 3.5 volts
Add the model file, Please check is there any issue in configuration or anything missing.
This is very urgent, Expecting Ur support. Thanks
Thanks,
Pratyay
Hello @PRAtyay1231 ,
I am glad you are now communicating with the board from the generated code in Simulink!
From what I see, the results you get in FreeMASTER from the generated code are the same with the ones from the GUI. Therefore my assumption is now related more to the hardware connections you did. Please check the wiring.
The J12-34 with the J12-33 and the J12-31 are required to be connected to the GND of the Battery Pack (NEG of the Cell 0).
The J2-1 and J2-19 needs both to be connected to the Positive off Cell 5 (POS of the Battery Pack).
Hope this helps,
Marius
The J12-34 with the J12-33 and the J12-31 are required to be connected to the GND of the Battery Pack (NEG of the Cell 0).
All three pin need to connect with ground? I connect only J12-34 GND of the Battery Pack (NEG of the Cell 0).
Thanks
Dear @mariuslucianand
Now The J12-34 with the J12-33 to ground I could able to see all 6 cell voltage. but still unable to see pack voltage.
for getting Pack voltage what to do?
Thanks,
Pratyay
Hello @PRAtyay1231
I am glad it worked!
I think for the PackVoltage is only an issue on how FreeMASTER is configured to display that value.
In FreeMASTER if you double click on the Pack Voltage check to see what is the type of Variable and the Real Type Transformation. Please have some play with the FreeMASTER settings. If still not working, please check the data types in Simulink, in the Generated Code and on FreeMASTER.
Regards,
Marius
dear @mariuslucianand
I will check this issue related to Pack voltage and let you Know.
Now Same configuration I am trying with the BMS_Software_NXP file, but not getting the expected Value. Do you have any idea why I am getting wrong data with almost the same configuration?
Please suggest if there anything missed from my end.
Please let me know if you want this model to check the issue.
dear @mariuslucianand ,
Now it looks working. Thank you for your support.
Just want to know if it's possible to edit FreeMaster GUI?
Thanks,
Pratyay
Dear NXP Team,
I am flashing the below model in s32k144 but its unable to read data *Voltage/Temperature)using the MBDT tool. Why I am unable to read data? Is there any license required?
Please let me know the steps to deploy this package.
C:\Users\user\Downloads\MBDToolbox_S32K1xx_4.2.0_20200720 (1)\fsroot\S32_Examples\s32k14x\bms\bms_mc33772b_spi_s32k
Dear mariuslucianand,TomasVaverka
It appears that the FRDM33772CSPEVB Eval Board is not functioning properly. Maybe some issue with the inbuilt software or Hardware.
Issue 1: Although giving 6 cell voltage as input getting for 5 cell cell 1 Voltage is zero.
2. I am trying to Sense cell voltage in S32k144 Eval Board using Model based tool box but not getting any cell voltage getting MC33772B config status as 5.
same type of issue also faced by others also,add below link for reference.
Please check once and help on this issue.
Thanks.
Dear NXP Team,
Now, I was able to connect MC33772B Evaluation GUI and see the voltage but I am getting some issues, although I am giving 6 voltage for 6 cells only for 2-5 cell voltage able to see that cell one voltage getting zero (initially some voltage was shone for Cell 1 but after sometime its became zero.MC33772B board I could See voltage going to the U1 microcontroller.
Please suggest to me what is the issue and how I can fix it.
Dear Pratyay,
Use a multimeter to directly measure the voltage across Cell 1. If the voltage is present at the battery, but not on the board, the issue is likely in the wiring or board input. A loose or broken wire could cause intermittent or zero voltage readings.
BRs, Tomas
Dear Tomas,
I have checked Bellow steps,
1. Checked the Battery output voltage (which was correct near to 3.5 Volts)
2. Check the voltage is going to MC33772B board was going or not ( It was ok and expected voltage was going to controller)
observation: once start the observation , cell 1 voltage start display from 2.6 volt and gradually decrease to Zero.
Please help with Further Step.