Verification routine for MBDT requiring s32k344+mc33664+mc3375

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

Verification routine for MBDT requiring s32k344+mc33664+mc3375

1,903 Views
zuozuo
Contributor III

I am currently using official MBDT and BMS components. Please refer to the attached image for specific version information. I am currently using the installed MATLAB demo, but I am unable to send data. My hardware is fine because I modified the code in the linkhttps://community.nxp.com/t5/S32K-Knowledge-Base/S32K344-MC33664-MC33775-RTD-3-0-0-BMS-SDK-1-0-2/ta-...  and it can receive data, but I modified the MBDT demo and it still cannot. I compared the configuration differences using compare and found that they are basically the same. Can you now provide me with a verified demo of s32k344+mc33664+mc33775? If not, a similar demo of s32k344+mc33664+mc33774 can also be used. Thank you very much!

0 Kudos
Reply
4 Replies

1,867 Views
zuozuo
Contributor III

This is Figure 6 (bcc1. jpg) mentioned earlier. Only 5 can be transferred at a time, and we couldn't fit them last time

0 Kudos
Reply

1,867 Views
zuozuo
Contributor III

Now that I have reanalyzed my previous problem, I will explain my discovery process:
(1) At the beginning, I used the official MBDT demo, single MC33664+single MC33775, as shown in Figure 1 (init_demo. jpg) and Figure 2 (setp_demo. jpg). Therefore, I generated code for debugging. In Figure 3 (init_debug1. jpg) and Figure 4 (init_debug4. jpg), it showed that the transmission was completed, but when it reached Figure 5 (step_debug1. jpg), it remained pending and could not receive data. So I thought it was because there were fewer initialization configuration commands, so I made program modifications.
(2) Afterwards, following the link initialization method, a command is used to fill in the data and send it out. Then, the Bms_TDInsertPhyEvent function module is added between them, as shown in Figure 6 (bcc1. jpg). However, adding it and leaving it will result in sending failure, while blocking it will allow sending it.
So I would like to learn about the use of Bms_TDInsertPhyEvent and how to use continuous data command sending. It would be best to have a useful reference demo. Thank you very much!

0 Kudos
Reply

1,832 Views
mariuslucianand
NXP Employee
NXP Employee

Hello @zuozuo,

The MBDT example has been develop on an older board based on the MC33664, the FRDMDUAL33664EVB and this is why the example help mentions that the boards used for development were not pin compatible, and also providing a list of the old pins connections. I understand the inconvenience of not having a ready to run application, but unfortunately there is no release planned in the future to address this setup and currently, I don't have access to the FRDMDUALK3664EVB board to develop and test the example for you.

As the pins and LPSPI configuration is described in the example help document, the delivered configuration of the S32K3x4EVB uses the LPSPI1& LPSPI4& the PTD30 as TPL enablement, the pins and SPI configurations needs to be adjusted to the one to match the FRDMDUALK3664EVB described in the Chapter 6.2.2.2 of the UM11826.

So the steps would be to open the model we have provided in the MBDT for BMS, Open the external configuration tools or EB tresos, depending on which version of the model you are using, and reconfigure the TPL12TXCLK to PTE1/LPSPI0_SCK, TPL12TXDATA to PTE2/LPSPI0_SOUT, TPL1TXCSB to PTE1/LPSPI0_SCK and TPL1_EN to PTC19, and LPSPI1_PCS1 to PTC12 followed by the configuration in the SPI MCAL component from LPSPI4 to LPSPI0. I think this shall be the configuration, please also double check it inside the UM11826 Manual.

Hope this helps,
Marius

0 Kudos
Reply

1,810 Views
zuozuo
Contributor III

hi,@ mariuslucianand:

I would like to know more about it now Bms_TD_InsertPhyEvent(const Bms_TDType* BmsTD,Phy_EventType TypeOfPhyEvent,uint16 Operand
)The usage of functions. When TypeOfPhyEvent is PHY_TIMER and Opera gives a delay time, is it the time to block the next command?
Now I am using it as shown in picture 1(bcc1.jpg), but it failed to send. If I follow the official demo in picture 2(init_demo1.jpg), I can send it. Do you have any usage rules? Looking forward to your answer. Thank you!

Tags (1)
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2343052%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EVerification%20routine%20for%20MBDT%20requiring%20s32k344%2Bmc33664%2Bmc3375%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2343052%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20currently%20using%20official%20MBDT%20and%20BMS%20components.%20Please%20refer%20to%20the%20attached%20image%20for%20specific%20version%20information.%20I%20am%20currently%20using%20the%20installed%20MATLAB%20demo%2C%20but%20I%20am%20unable%20to%20send%20data.%20My%20hardware%20is%20fine%20because%20I%20modified%20the%20code%20in%20the%20link%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FS32K344-MC33664-MC33775-RTD-3-0-0-BMS-SDK-1-0-2%2Fta-p%2F2127049%22%20target%3D%22_self%22%3Ehttps%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K-Knowledge-Base%2FS32K344-MC33664-MC33775-RTD-3-0-0-BMS-SDK-1-0-2%2Fta-p%2F2127049%3C%2FA%3E%26nbsp%3B%20and%20it%20can%20receive%20data%2C%20but%20I%20modified%20the%20MBDT%20demo%20and%20it%20still%20cannot.%20I%20compared%20the%20configuration%20differences%20using%20compare%20and%20found%20that%20they%20are%20basically%20the%20same.%20Can%20you%20now%20provide%20me%20with%20a%20verified%20demo%20of%20s32k344%2Bmc33664%2Bmc33775%3F%20If%20not%2C%20a%20similar%20demo%20of%20s32k344%2Bmc33664%2Bmc33774%20can%20also%20be%20used.%20Thank%20you%20very%20much!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2343922%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Verification%20routine%20for%20MBDT%20requiring%20s32k344%2Bmc33664%2Bmc3375%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2343922%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%2C%40%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F72088%22%20target%3D%22_blank%22%3E%3CSPAN%20class%3D%22%22%3Emariuslucianand%3C%2FSPAN%3E%3C%2FA%3E%3A%3C%2FP%3E%3CP%3EI%20would%20like%20to%20know%20more%20about%20it%20now%20Bms_TD_InsertPhyEvent(const%20Bms_TDType*%20BmsTD%2CPhy_EventType%20TypeOfPhyEvent%2Cuint16%20Operand%3CBR%20%2F%3E%EF%BC%89The%20usage%20of%20functions.%20When%20TypeOfPhyEvent%20is%20PHY_TIMER%20and%20Opera%20gives%20a%20delay%20time%2C%20is%20it%20the%20time%20to%20block%20the%20next%20command%3F%3CBR%20%2F%3ENow%20I%20am%20using%20it%20as%20shown%20in%20picture%201(bcc1.jpg)%2C%20but%20it%20failed%20to%20send.%20If%20I%20follow%20the%20official%20demo%20in%20picture%202(init_demo1.jpg)%2C%20I%20can%20send%20it.%20Do%20you%20have%20any%20usage%20rules%3F%20Looking%20forward%20to%20your%20answer.%20Thank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2343762%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Verification%20routine%20for%20MBDT%20requiring%20s32k344%2Bmc33664%2Bmc3375%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2343762%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%2F257539%22%20target%3D%22_blank%22%3E%40zuozuo%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EThe%20MBDT%20example%20has%20been%20develop%20on%20an%20older%20board%20based%20on%20the%20MC33664%2C%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fsoftware%2Fanalog-expert-software-and-tools%2Fsdk-analog-expert-drivers%2Fevaluation-board-for-mc33664atl-isolated-network-high-speed-transceiver%3AFRDMDUAL33664EVB%3F%23design-resources%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EFRDMDUAL33664EVB%3C%2FA%3E%26nbsp%3Band%20this%20is%20why%20the%20example%20help%20mentions%20that%20the%20boards%20used%20for%20development%20were%20not%20pin%20compatible%2C%20and%20also%20providing%20a%20list%20of%20the%20old%20pins%20connections.%20I%20understand%20the%20inconvenience%20of%20not%20having%20a%20ready%20to%20run%20application%2C%20but%20unfortunately%20there%20is%20no%20release%20planned%20in%20the%20future%20to%20address%20this%20setup%20and%20currently%2C%20I%20don't%20have%20access%20to%20the%20FRDMDUALK3664EVB%20board%20to%20develop%20and%20test%20the%20example%20for%20you.%3C%2FP%3E%0A%3CP%3EAs%20the%20pins%20and%20LPSPI%20configuration%20is%20described%20in%20the%20example%20help%20document%2C%20the%20delivered%20configuration%20of%20the%20S32K3x4EVB%20uses%20the%20LPSPI1%26amp%3B%20LPSPI4%26amp%3B%20the%20PTD30%20as%20TPL%20enablement%2C%20the%20pins%20and%20SPI%20configurations%20needs%20to%20be%20adjusted%20to%20the%20one%20to%20match%20the%20FRDMDUALK3664EVB%20described%20in%20the%20Chapter%206.2.2.2%20of%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fuser-manual%2FUM11826.pdf%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EUM11826.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3ESo%20the%20steps%20would%20be%20to%20open%20the%20model%20we%20have%20provided%20in%20the%20MBDT%20for%20BMS%2C%20Open%20the%20external%20configuration%20tools%20or%20EB%20tresos%2C%20depending%20on%20which%20version%20of%20the%20model%20you%20are%20using%2C%20and%20reconfigure%20the%20%3CSPAN%3ETPL12TXCLK%20to%26nbsp%3BPTE1%2FLPSPI0_SCK%2C%26nbsp%3BTPL12TXDATA%20to%26nbsp%3BPTE2%2FLPSPI0_SOUT%2C%26nbsp%3BTPL1TXCSB%20to%26nbsp%3BPTE1%2FLPSPI0_SCK%20and%26nbsp%3BTPL1_EN%20to%26nbsp%3BPTC19%2C%20and%26nbsp%3BLPSPI1_PCS1%20to%20PTC12%20followed%20by%20the%20configuration%20in%20the%20SPI%20MCAL%20component%20from%20LPSPI4%20to%20LPSPI0.%20I%20think%20this%20shall%20be%20the%20configuration%2C%20please%20also%20double%20check%20it%20inside%20the%20UM11826%20Manual.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EHope%20this%20helps%2C%3CBR%20%2F%3EMarius%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2343344%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Verification%20routine%20for%20MBDT%20requiring%20s32k344%2Bmc33664%2Bmc3375%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2343344%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThis%20is%20Figure%206%20(bcc1.%20jpg)%20mentioned%20earlier.%20Only%205%20can%20be%20transferred%20at%20a%20time%2C%20and%20we%20couldn't%20fit%20them%20last%20time%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2343343%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Verification%20routine%20for%20MBDT%20requiring%20s32k344%2Bmc33664%2Bmc3375%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2343343%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ENow%20that%20I%20have%20reanalyzed%20my%20previous%20problem%2C%20I%20will%20explain%20my%20discovery%20process%3A%3CBR%20%2F%3E(1)%20At%20the%20beginning%2C%20I%20used%20the%20official%20MBDT%20demo%2C%20single%20MC33664%2Bsingle%20MC33775%2C%20as%20shown%20in%20Figure%201%20(init_demo.%20jpg)%20and%20Figure%202%20(setp_demo.%20jpg).%20Therefore%2C%20I%20generated%20code%20for%20debugging.%20In%20Figure%203%20(init_debug1.%20jpg)%20and%20Figure%204%20(init_debug4.%20jpg)%2C%20it%20showed%20that%20the%20transmission%20was%20completed%2C%20but%20when%20it%20reached%20Figure%205%20(step_debug1.%20jpg)%2C%20it%20remained%20pending%20and%20could%20not%20receive%20data.%20So%20I%20thought%20it%20was%20because%20there%20were%20fewer%20initialization%20configuration%20commands%2C%20so%20I%20made%20program%20modifications.%3CBR%20%2F%3E(2)%20Afterwards%2C%20following%20the%20link%20initialization%20method%2C%20a%20command%20is%20used%20to%20fill%20in%20the%20data%20and%20send%20it%20out.%20Then%2C%20the%20Bms_TDInsertPhyEvent%20function%20module%20is%20added%20between%20them%2C%20as%20shown%20in%20Figure%206%20(bcc1.%20jpg).%20However%2C%20adding%20it%20and%20leaving%20it%20will%20result%20in%20sending%20failure%2C%20while%20blocking%20it%20will%20allow%20sending%20it.%3CBR%20%2F%3ESo%20I%20would%20like%20to%20learn%20about%20the%20use%20of%20Bms_TDInsertPhyEvent%20and%20how%20to%20use%20continuous%20data%20command%20sending.%20It%20would%20be%20best%20to%20have%20a%20useful%20reference%20demo.%20Thank%20you%20very%20much!%3C%2FP%3E%3C%2FLINGO-BODY%3E