cancel
Showing results for 
Search instead for 
Did you mean: 

Why doesnt STM32G4 work for 64 byte CAN-FD data transfer?

snjy1697
Associate II

I am using SMT32G4 nucleo board. I have generated the code from STMCUBEMX and initialised the CAN-FD module for 1mbps data rate. Then i copied the TxHeader initialisation from the examples for the EVAL board. The example was written for 16byte datalength.

The same code works fine for 8 byte and 16 byte data transfer which was visible on the logic analyser. But the probram halts with an error for any datalength value greater than 16 bytes. I wanted to do a data transfer of 64 byte.

During debug, the program terminates with an error in the FDCAN_CopyMessageToRAM() function.

0 REPLIES 0