BMS & MBDT - MC33775A TPL communication with S32K

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BMS & MBDT - MC33775A TPL communication with S32K

Jump to solution
3,001 Views
yassinechamam
Contributor III

Hello,

I want to know what i should change in the configuration to be able to read the values of two CMU. 

thanks 

0 Kudos
Reply
1 Solution
2,951 Views
mariuslucianand
NXP Employee
NXP Employee

Hello @yassinechamam,

For such a scenario, we offer inside our MBDT for BMS 1.1.0 release an example, k344bmu_read_s32ct which handles 4 x MC33775 over TPL.

However, there are a couple of places in which you have to make some changes to achieve communication with a different number of BCCs.

1. Configuration tools project:

First, you have to go to S32CT/EB tresos, and for this, please open any MBDT block and press the Configure... button.

Go to Bms_common, and under the BMSCommon Driver configuration, and PHY-AFE Network configuration, you have to specify the number of Devices here, in your case, 2. TPL3_CMU_1 stands for MC33775 while the TPL3_CMU_2 stands for MC33774.

mariuslucianand_0-1715774801049.png

2. Change the initialization sequence

In the model, you have to go to the Initialize function, and under INIT_775a, to only change the Max DeviceNumber. The construction here is automatically performing the Wakeup and Enumeration for the selected number of devices.

mariuslucianand_1-1715775064103.png

 

Of course, inside the model, you have to adjust your application to handle the correct number of devices. In this case, the state machine only iterates through the numbers 1 to 4 so the state machine needs to be adjusted to fill your requirements.

mariuslucianand_2-1715775168216.png

Hope this helps,

Marius

View solution in original post

0 Kudos
Reply
3 Replies
2,952 Views
mariuslucianand
NXP Employee
NXP Employee

Hello @yassinechamam,

For such a scenario, we offer inside our MBDT for BMS 1.1.0 release an example, k344bmu_read_s32ct which handles 4 x MC33775 over TPL.

However, there are a couple of places in which you have to make some changes to achieve communication with a different number of BCCs.

1. Configuration tools project:

First, you have to go to S32CT/EB tresos, and for this, please open any MBDT block and press the Configure... button.

Go to Bms_common, and under the BMSCommon Driver configuration, and PHY-AFE Network configuration, you have to specify the number of Devices here, in your case, 2. TPL3_CMU_1 stands for MC33775 while the TPL3_CMU_2 stands for MC33774.

mariuslucianand_0-1715774801049.png

2. Change the initialization sequence

In the model, you have to go to the Initialize function, and under INIT_775a, to only change the Max DeviceNumber. The construction here is automatically performing the Wakeup and Enumeration for the selected number of devices.

mariuslucianand_1-1715775064103.png

 

Of course, inside the model, you have to adjust your application to handle the correct number of devices. In this case, the state machine only iterates through the numbers 1 to 4 so the state machine needs to be adjusted to fill your requirements.

mariuslucianand_2-1715775168216.png

Hope this helps,

Marius

0 Kudos
Reply
2,945 Views
yassinechamam
Contributor III

Hello @mariuslucianand ,

Thank you for your response. i did apply the changes and i can read Cell and module Voltages but what i find strange is that the the last module voltages that i read have the exact same value all the time. Is the any other detail i need to consider ? 

yassinechamam_0-1715779528029.png

 

Also i want to read the voltage value measurement of the BJB BCC772C and i fail to understand how i can do the measurement of the values in this table using Simulink blocks. 

yassinechamam_1-1715779779289.png

 

Thank you in advance

Yacine Chamem

 

 

0 Kudos
Reply
2,101 Views
MReza
Contributor II

Hello @yassinechamam @mariuslucianand, I am facing the same issue as mentioned in the reply, where the last Module and Cell Voltages are exactly the same. Has this issue been solved?

Thanks in advance

 

 

Tags (3)
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1860387%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EBMS%20%26amp%3B%20MBDT%20-%20MC33775A%20TPL%20communication%20with%20S32K%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1860387%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%20want%20to%20know%20what%20i%20should%20change%20in%20the%20configuration%20to%20be%20able%20to%20read%20the%20values%20of%20two%26nbsp%3B%3CSPAN%3ECMU.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Ethanks%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2010773%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20BMS%20%26amp%3B%20MBDT%20-%20MC33775A%20TPL%20communication%20with%20S32K%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2010773%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F230961%22%20target%3D%22_blank%22%3E%40yassinechamam%3C%2FA%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F72088%22%20target%3D%22_blank%22%3E%40mariuslucianand%3C%2FA%3E%2C%20I%20am%20facing%20the%20same%20issue%20as%20mentioned%20in%20the%20reply%2C%20where%20the%20last%20Module%20and%20Cell%20Voltages%20are%20exactly%20the%20same.%20Has%20this%20issue%20been%20solved%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20in%20advance%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1866335%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20BMS%20%26amp%3B%20MBDT%20-%20MC33775A%20TPL%20communication%20with%20S32K%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1866335%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F72088%22%20target%3D%22_blank%22%3E%40mariuslucianand%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20response.%20i%20did%20apply%20the%20changes%20and%20i%20can%20read%20Cell%20and%20module%20Voltages%20but%20what%20i%20find%20strange%20is%20that%20the%20the%20last%20module%20voltages%20that%20i%20read%20have%20the%20exact%20same%20value%20all%20the%20time.%20Is%20the%20any%20other%20detail%20i%20need%20to%20consider%20%3F%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22yassinechamam_0-1715779528029.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22yassinechamam_0-1715779528029.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F278911i9DA4132200662F1E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22yassinechamam_0-1715779528029.png%22%20alt%3D%22yassinechamam_0-1715779528029.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EAlso%20i%20want%20to%20read%20the%20voltage%20value%20measurement%20of%20the%20BJB%20BCC772C%20and%20i%20fail%20to%20understand%20how%20i%20can%20do%20the%20measurement%20of%20the%20values%20in%20this%20table%20using%20Simulink%20blocks.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22yassinechamam_1-1715779779289.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22yassinechamam_1-1715779779289.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F278912i9F341FB632FDE17A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22yassinechamam_1-1715779779289.png%22%20alt%3D%22yassinechamam_1-1715779779289.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThank%20you%20in%20advance%3C%2FP%3E%3CP%3EYacine%20Chamem%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1866284%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20BMS%20%26amp%3B%20MBDT%20-%20MC33775A%20TPL%20communication%20with%20S32K%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1866284%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F230961%22%20target%3D%22_blank%22%3E%40yassinechamam%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EFor%20such%20a%20scenario%2C%20we%20offer%20inside%20our%20MBDT%20for%20BMS%201.1.0%20release%20an%20example%2C%20%3CSTRONG%3Ek344bmu_read_s32ct%3C%2FSTRONG%3E%26nbsp%3Bwhich%20handles%204%20x%20MC33775%20over%20TPL.%3C%2FP%3E%0A%3CP%3EHowever%2C%20there%20are%20a%20couple%20of%20places%20in%20which%20you%20have%20to%20make%20some%20changes%20to%20achieve%20communication%20with%20a%20different%20number%20of%20BCCs.%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E1.%20Configuration%20tools%20project%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EFirst%2C%20you%20have%20to%20go%20to%20S32CT%2FEB%20tresos%2C%20and%20for%20this%2C%20please%20open%20any%20MBDT%20block%20and%20press%20the%3CSTRONG%3E%20Configure...%3C%2FSTRONG%3E%20button.%3C%2FP%3E%0A%3CP%3EGo%20to%20%3CSTRONG%3EBms_common%3C%2FSTRONG%3E%2C%20and%20under%20the%20BMSCommon%20Driver%20configuration%2C%20and%20PHY-AFE%20Network%20configuration%2C%20you%20have%20to%20specify%20the%20number%20of%20Devices%20here%2C%20in%20your%20case%2C%202.%20TPL3_CMU_1%20stands%20for%20MC33775%20while%20the%20TPL3_CMU_2%20stands%20for%20MC33774.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22mariuslucianand_0-1715774801049.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mariuslucianand_0-1715774801049.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F278898i66E4BB598A8203B5%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22mariuslucianand_0-1715774801049.png%22%20alt%3D%22mariuslucianand_0-1715774801049.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E2.%20Change%20the%20initialization%20sequence%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EIn%20the%20model%2C%20you%20have%20to%20go%20to%20the%20%3CSTRONG%3EInitialize%20function%3C%2FSTRONG%3E%2C%20and%20under%20INIT_775a%2C%20to%20only%20change%20the%20Max%20DeviceNumber.%20The%20construction%20here%20is%20automatically%20performing%20the%20Wakeup%20and%20Enumeration%20for%20the%20selected%20number%20of%20devices.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22mariuslucianand_1-1715775064103.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mariuslucianand_1-1715775064103.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F278900iF3B70C8D9F58D2FF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mariuslucianand_1-1715775064103.png%22%20alt%3D%22mariuslucianand_1-1715775064103.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EOf%20course%2C%20inside%20the%20model%2C%20you%20have%20to%20adjust%20your%20application%20to%20handle%20the%20correct%20number%20of%20devices.%20In%20this%20case%2C%20the%20state%20machine%20only%20iterates%20through%20the%20numbers%201%20to%204%20so%20the%20state%20machine%20needs%20to%20be%20adjusted%20to%20fill%20your%20requirements.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22mariuslucianand_2-1715775168216.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mariuslucianand_2-1715775168216.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F278901i9D7D26B385DE6CE6%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mariuslucianand_2-1715775168216.png%22%20alt%3D%22mariuslucianand_2-1715775168216.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EHope%20this%20helps%2C%3C%2FP%3E%0A%3CP%3EMarius%3C%2FP%3E%3C%2FLINGO-BODY%3E