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.
RTD : 3.0.0 P07
BMS SDK : 1.0.2
This example does this task :--
=================== Setup used ============
Attached code is tested with TWO MC33775 AFE connected in TPL mode.
=============== 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
================= EVB Link ==================
https://www.nxp.com/design/design-center/development-boards-and-designs/RD33775ADSTEVB
============= 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)
Disable Communication timeout in code :--
================= Results for FIRST AFE ===========================