cancel
Showing results for 
Search instead for 
Did you mean: 

Need Help Validating FDCAN Code: Unable to Read RxData in Live Expressions Debug

ParthDhoble
Associate II

 

Hi STM32 Community,

I am working on setting up bi-directional communication over FD CAN using the STM32CubeIDE with an STM32 micro controller (Nucleo-H753ZI). While I am successfully able to send data via the FD CAN TX interface and verify it on a CAN analyzer, I am encountering issues on the RX side.

Issue Description:

I am unable to read the Rx Data array in the live expressions window during debugging. The debugger throws the following error:
Failed to execute MI command:
-var-create - * Rx Data
Error message: No symbol "Rx Data" in current context.
I also verified that the CAN analyzer is sending data correctly.

Observations:

  1. The TX communication works fine. Data sent via the STM32 is received as expected on the CAN analyzer.
  2. The RX interrupt handler HAL_FD CAN_RxFifo0MsgPendingCallback is not properly reflecting received data in the Rx Data buffer.

Help Needed:

  1. How can I correctly read the Rx Data values in live expression debug mode?
  2. What could cause the HAL_FD CAN_RxFifo0MsgPendingCallback to not populate the Rx Data buffer correctly?
  3. Is there anything I might be overlooking in the RX filter configuration or interrupt handling?

To assist with troubleshooting, I have attached my project as a ZIP file. Please feel free to validate the code, test it on your end, or provide insights on potential areas of misconfiguration.

Thank you for taking the time to assist me. Any advice, code validation, or debugging tips would be greatly appreciated!

Micro controller Board: Nucleo-H753ZI




0 REPLIES 0