Skip to main content
Visitor II
February 26, 2024
Solved

STM32G4 bootloader via canbus

  • February 26, 2024
  • 2 replies
  • 2795 views

Im trying to bootloader my firmware in my nucleo G431RB vía canbus with a StLink v3 set,  its posible?.

 In An2606 says there is no opción.

Do i have to write the bootloader ? And with that i will be able to load vía StLink v3 set?

  

Best answer by STTwo-32

Hello @PedroLuis and welcome to the ST Community :smiling_face_with_smiling_eyes:.

For the STM32G431RB, the only hardware ressources that can be available are USART, SPI, DFU and I2C. CAN is not available for bootloader. Look at the AN2606 and the product datasheet.

Best Regards.

STTwo-32 

2 replies

STTwo-32
STTwo-32Best answer
Technical Moderator
February 26, 2024

Hello @PedroLuis and welcome to the ST Community :smiling_face_with_smiling_eyes:.

For the STM32G431RB, the only hardware ressources that can be available are USART, SPI, DFU and I2C. CAN is not available for bootloader. Look at the AN2606 and the product datasheet.

Best Regards.

STTwo-32 

Associate
May 6, 2024

Is it possible if I write the bootloader vía canbus by myself? 

STTwo-32
Technical Moderator
May 6, 2024

Hi 

Bootloader is not possible Via CAN in the STM32G431RB.

Best Reagrds.

STTwo-32

mƎALLEm
Technical Moderator
February 26, 2024

Hello,

Indeed no bootloader over CAN bus. See AN2606 / Table 99. STM32G431xx/441xx configuration in system memory boot mode.

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
tdecker2
Associate II
August 8, 2024

Yes, the integrated bootloader maybe does not support the CAN interface. But sure a custom bootloader can use whatever interface is available in the controller to receive a new firmware.

I didn't use it yet, but have a look at the OpenBLT bootloader which supports CAN and the G4 family. https://www.feaser.com/openblt

 

Associate
August 8, 2024

As I thought, have looked at OpenBLT but as it is for a commercial (proprietary) product we need a commercial license for it so looking at how hard building our own would be with Open bootloader.