cancel
Showing results for 
Search instead for 
Did you mean: 

In-application programming over CAN BUS

FGasp.264
Associate II

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

4 REPLIES 4

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
FGasp.264
Associate II

Thank you @Community member​  :flexed_biceps:

Ozone
Lead II

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.

FGasp.264
Associate II

Thank you @Ozone​  your comment is highly appreciated!