S32K344 + MC33664 + MC33775 : RTD 3.0.0 : BMS SDK 1.0.2

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

S32K344 + MC33664 + MC33775 : RTD 3.0.0 : BMS SDK 1.0.2

S32K344 + MC33664 + MC33775 : RTD 3.0.0 : BMS SDK 1.0.2

This example code brief  :--
1> Tested without the SL of BMS, so no dependency on the BMS Safety library.
2> Its tested on 2 AFE MC33775 board connected in TPL
3> Change following macro in mc33775_cfg.h file  to change the numbers of AFE connected in TPL.

Dinesh_Guleria_0-1751444824257.png

 

RTD : 3.0.0 P07
BMS SDK : 1.0.2

This example does this task :--

  1. Application Measurement.
  2. SYNC measurement
  3. Periodic Measurement.
  4. Read AFE temperature.
  5. Cell balancing timer method.
  6. Reading the Cell balancing status register & fault registers.



=================== Setup used ============

Attached code is tested with TWO MC33775 AFE connected in TPL mode.

Dinesh_Guleria_1-1751444903293.pngDinesh_Guleria_4-1751444951351.png

 

=============== MCU Pins used ===========

TPL1-TX :--
TPL1TXCSB  --> PTC6/LPSPI0_PCS1
TPL1TXSCLK --> TPL12TXCLK --> PTE1/LPSPI0_SCK   
TPL1TXDATA --> TPL12TXDATA --> PTE2/LPSPI0_SOUT 

 

TPL1-RX :--
TPL1RXCSB  --> PTB17/LPSPI1_PCS3
TPL1RXCLK  --> PTB14/LPSPI1_SCK
TPL1RXDATA --> PTB15/LPSPI1_SIN

 

Dinesh_Guleria_5-1751444995267.png

 

================= EVB Link ==================

https://www.nxp.com/design/design-center/development-boards-and-designs/18-cell-battery-pack-emulato...

https://www.nxp.com/design/design-center/development-boards-and-designs/analog-toolbox/evaluation-bo...

https://www.nxp.com/design/design-center/development-boards-and-designs/RD33775ADSTEVB

https://www.nxp.com/design/design-center/development-boards-and-designs/automotive-development-platf...

 

============= Using Debugger ============
Debugger breakpoint will cause the communication timeout at the AFE, which will RESET the AFE. To use the debugger while development you need to disable the communication timeout.

In S32DS MEX file you cannot disable the timeout function ( limit the value of 0~255)

Dinesh_Guleria_7-1751445511631.png


Disable Communication timeout in code :--

Dinesh_Guleria_8-1751445665946.png

 



================= Results for FIRST AFE ===========================

Dinesh_Guleria_10-1751445763053.png

 

Dinesh_Guleria_11-1751445783188.png

 

Dinesh_Guleria_12-1751445799938.png

 

Dinesh_Guleria_13-1751445817222.png

 

Dinesh_Guleria_14-1751445832193.png

 

Attachments
No ratings
Version history
Last update:
‎07-02-2025 01:45 AM
Updated by: