Skip to main content
FGasp.264
Associate
October 17, 2019
Question

In-application programming over CAN BUS

  • October 17, 2019
  • 4 replies
  • 1983 views

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

This topic has been closed for replies.

4 replies

Tesla DeLorean
Guru
October 17, 2019

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 VenmoUp vote any posts that you find helpful, it shows what's working..
FGasp.264
FGasp.264Author
Associate
October 18, 2019

Thank you @Community member​  :flexed_biceps:

Ozone
Principal
October 18, 2019

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
FGasp.264Author
Associate
October 21, 2019

Thank you @Ozone​  your comment is highly appreciated!