2025-05-03 3:27 AM
Hello ST Community,
We are using the STM32G0B1RET6 and have created a custom bootloader using FDCAN. Our setup includes two separate STM32CubeIDE projects:
Bootloader Project
Programmed via ST-LINK V2
Receives application firmware over FDCAN
Writes it to internal Flash and jumps to the application
Application Project
Starts at Flash address 0x08004000
Compiled and generates a .bin file
I have written and successfully uploaded the bootloader code using ST-LINK V2. Now, I would like to know how to send the .bin file over FDCAN (e.g., using Vehicle Spy 3 or another method), so that the bootloader can receive and flash it correctly.
My questions:
What is the recommended way to send the application .bin file over FDCAN?
How should I format the FDCAN messages (e.g., 8-byte chunks)?
Are there any example tools or scripts to convert a .bin file into FDCAN messages?
How can I verify the firmware was flashed and jumped to successfully?
Any guidance, sample projects, or advice would be appreciated.
Thank you!