2019-12-03 10:35 PM
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.