This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I am using SafetyMCU_Bootloader code with small modifications to test boot loading capability on Hercules launch pad(TMS570LS1224) using CAN. Using PCAN adapter and custom PC side application to transfer the data.
Problem:
1. Taking a long time to download the entire code (almost 2 hour to download 200-300MB of example code)
Fapi_issueProgrammingCommand is programming 16 bytes at a time. Tried to program more number of bytes at a time and got Fapi_Error_AsyncIncorrectDataBufferLength Error. I am not sure what are the best ways to increase the speed. Please help in understanding this better.
Regards
Suresh J
Hello Suresh,
The number of bytes (in Fapi_issueProgrammingCommand) is 16 bytes since the width of the flash bank is 128 bit.
In bootloader example, the flash write function is called after one CAN transaction (8 bytes). You can define a big buffer (for example 1024 Bytes as used in UART bootloader), and copy the received CAN data to this buffer first, then call flash API to program those data when the buffer is full.