2021-02-17 01:35 AM
Dear Madam/Sir,
we are using STM32F4 series microcontroller. ı wonder that how can i update firmware over any CAN bus. Do you have any sample code or tool to do this? Really i dont know how can i do. There is no answer about this issue on internet.
2021-02-17 01:59 AM
Writing software is often about creating solutions to problems, not copying them.
If you need inspiration perhaps look at bootloader and IAP (In Application Programming) or FOTA examples.
Being a CAN bus user presumably you already have some platform tools and knowledge. The small 8 byte packets does make the job of delivering larger payloads more challenging.
2021-02-17 02:14 AM
If the target microcontroller is unlocked, you can use e.g. the STM32CubeProgrammer to update the firmware using the serial ports mentioned in application note AN2606. For the STM32F4 it is CAN2 only, which could be accessed using e.g. the ST-LINK/V3.
You will also find some description of the CAN bootloader in AN3154.
Regards
/Peter
2021-02-17 07:20 AM
If you need to access a device in a bus with more than that device, you need to write your own bootloader.