Hello,
We are attempting to use the FRDM33771B via TPL and FRDM33664BEVB from an STM32 microcontroller.
We are unable to get the device properly communicating and would like some help resolving the problem.
The software being used is from https://www.nxp.com/products/power-management/battery-management/battery-cell-controllers/14-channel... (BCC_SDK_SW/S32DS_Examples/BCC_S32K144_Monitoring_Diagnostics). The bcc_peripheries.c functions have been ported to STM32.
At startup, the software calls:
- BCC_SoftwareReset()
- BCC_Reg_WriteGlobal(drvConfig, BCC_REG_SYS_CFG1_ADDR, BCC_W_SOFT_RST_MASK);
The following bytes are sent over SPI to the transceiver (SPI master), 00 10 03 03 37
The same data (but each byte shifted by a bit) is received (SPI slave), 00 20 06 06 6e
Next, the software attempts to:
- BCC_AssignCid()
- BCC_Reg_Read(drvConfig, BCC_CID_UNASSIG, BCC_REG_INIT_ADDR, 1U, &readVal);
It sends the following bytes, 00 01 01 01 7a
However, it instructs the SPI slave that it expects to receive two blocks in response.
As with the previous call, we only observe one block being echoed back, which then causes a receive timeout.
Looking at the TPL RDTX_IN, RDTX_OUT pads on the FRDM33771B, we do see pulses - suggesting that data is being sent across TPL.
We also observe that the LED on the transceiver board stays on, suggesting that communications are active.
Can you please suggest how to debug further.