Skip to main content
ValentinG
Associate II
January 30, 2020
Question

Program STM32 through bus CAN

  • January 30, 2020
  • 2 replies
  • 814 views

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

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
January 30, 2020

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 VenmoUp vote any posts that you find helpful, it shows what's working..
ValentinG
ValentinGAuthor
Associate II
January 30, 2020

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 ?