cancel
Showing results for 
Search instead for 
Did you mean: 

Program STM32 through bus CAN

ValentinG
Associate II

Hello,

Is it possible to program STM32* through bus CAN with STM32CubeProgrammer and STLINK-V3SET ?

If yes :

  • can we program only one STM32* even if many other STM32* are connected to the bus ?
  • do we need to flash a bootloader or the embedded bootloader is enough ?

Last question : can we do this directly with STM32CubeIDE ?

Thanks for reading,

Best regards,

Valentin

(*) it will be STM32H7 or STM32F7 and the code will be written with STM32CubeIDE

2 REPLIES 2

Check AN2606, assuming the system loader is pretty basic, designed for factory programming.

For a better, more complete experience you're likely going to need to write your own loader code.

The system loader should allow you to stage into RAM, you could create a staged-loader which recognizes unique devices, or chain sequence on the board.

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

Thanks for your answer.

If I understand, the embedded bootloader (described in AN2606) works through can bus if there is only one STM32 connected to the bus.

Then you recommend to code our own bootloader if we need to program only one STM32 on a bus which contain many STM32 ?