2019-10-17 07:31 AM
So we are checking a solution based on STM32F4 family (in this case) ARM MCU.
We have found an Application Note (AN) for the In-Apllication Programming (IAP) for Ethernet, UART and even USB, but nothing for CAN Bus.
In the AN there is a statment that the CAN BUS can be used for IAP.
Is there any AN with an example for the IAP with CAN?
Thanks
2019-10-17 08:31 AM
The small packet size of CAN makes IAP painful, you're probably going to want to stage the data, or compress it.
You can code your own loader to function however you want, using whatever interfaces you want. Use the other IAP examples as a template, and build your own transport layer to get the data across the interface you use.
I'm not sure there is an App Note or Example code, it is a pretty general embedded platform concept.
2019-10-18 01:23 AM
Thank you @Community member :flexed_biceps:
2019-10-18 01:40 AM
I suggest to look into the UDS protocol, especially UDS over IsoTP.
A CAN-based protocol widely used in the automotive industry supporting firmware updates.
I've never seen any STM32 specific implementation or AN, though.
2019-10-21 12:23 AM
Thank you @Ozone your comment is highly appreciated!