Skip to main content
Vu.Tran
Associate
May 14, 2021
Question

Can i use CAN bus for both communication and upload firmware ? if possible how can i do that?

  • May 14, 2021
  • 2 replies
  • 973 views

I am building an CAN system which includes sensor modules and actuator modules. There is 1 center MCU which control/communicate with all modules via can bus. I also want to update firmware for each module from that center MCU through CAN bus. Which hardware components i need for each module and is there any instruction or guide or example for doing that both hardware design and software design.

This topic has been closed for replies.

2 replies

Andrew Neil
Super User
May 14, 2021

CAN is just a communication channel - of course you can use it to transfer your update data.

Having transferred the data, you will then have to program it into the microcontroller's flash - which is entirely independent of how you transported the data.

ST have several Application Notes on doing this; search for IAP - short for In-Application Programming ...

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Vu.Tran
Vu.TranAuthor
Associate
May 17, 2021

Thank you so much. "Program it into the microcontroller's flash" How can i do that. Can you explain me more about this. About the hardware design, do i need to put anymore component comparing to the normal build

Andrew Neil
Super User
May 17, 2021

Again: ST have several Application Notes on doing this; search for IAP - short for In-Application Programming ...

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.