Battery Management system is not working with S32k144

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Battery Management system is not working with S32k144

跳至解决方案
2,029 次查看
PRAtyay1231
Contributor I

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:

  1. 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.

  2. 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.

  3. 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

标记 (1)
0 项奖励
回复
1 解答
1,760 次查看
mariuslucianand
NXP Employee
NXP Employee

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

在原帖中查看解决方案

0 项奖励
回复
15 回复数
1,800 次查看
mariuslucianand
NXP Employee
NXP Employee

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.

mariuslucianand_0-1750318860617.png

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.

mariuslucianand_1-1750318970619.png

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

 

 

0 项奖励
回复
1,766 次查看
PRAtyay1231
Contributor I

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

PRAtyay1231_0-1750349931806.png

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

 

 

 

0 项奖励
回复
1,761 次查看
mariuslucianand
NXP Employee
NXP Employee

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

0 项奖励
回复
1,751 次查看
PRAtyay1231
Contributor I

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).

PRAtyay1231_0-1750354618296.png

 

Thanks

 

0 项奖励
回复
1,731 次查看
PRAtyay1231
Contributor I

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?

 

PRAtyay1231_0-1750355033592.png

Thanks,

Pratyay

0 项奖励
回复
1,727 次查看
mariuslucianand
NXP Employee
NXP Employee

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.

mariuslucianand_0-1750355696304.png

 

Regards,

Marius

 

0 项奖励
回复
1,725 次查看
PRAtyay1231
Contributor I

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.

PRAtyay1231_0-1750356228797.png

PRAtyay1231_1-1750356612235.png

 

Please let me know if you want this model to check the issue.

0 项奖励
回复
1,603 次查看
PRAtyay1231
Contributor I

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

0 项奖励
回复
1,895 次查看
PRAtyay1231
Contributor I

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

PRAtyay1231_0-1750104148772.png

 

0 项奖励
回复
1,876 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi @mariuslucianand,

Could you help with this questions from TCS, please? 

Thanks & BRS, Tomas

0 项奖励
回复
1,856 次查看
PRAtyay1231
Contributor I

Dear mariuslucianand,

Pls help on current issue.

Thanks,

Pratyay

0 项奖励
回复
1,840 次查看
PRAtyay1231
Contributor I

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.

PRAtyay1231_0-1750180969675.png

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. 

PRAtyay1231_1-1750181311181.png

same type of issue also faced by others also,add below link for reference.

https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Re-MC33772B-EVB-Data-reading-issue/td-p...

 

Please check once and help on this issue.

Thanks.

0 项奖励
回复
1,991 次查看
PRAtyay1231
Contributor I

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 it1749964429970.jpg1.png.

0 项奖励
回复
1,940 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复
1,930 次查看
PRAtyay1231
Contributor I

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.

0 项奖励
回复