cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G4 bootloader via canbus

PedroLuis
Associate

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?

  

1 ACCEPTED SOLUTION

Accepted Solutions
STTwo-32
ST Employee

Hello @PedroLuis and welcome to the ST Community 😊.

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 

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.

View solution in original post

7 REPLIES 7
STTwo-32
ST Employee

Hello @PedroLuis and welcome to the ST Community 😊.

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 

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.

SofLit
ST Employee

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.

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

Hi 

Bootloader is not possible Via CAN in the STM32G431RB.

Best Reagrds.

STTwo-32

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.

Hello I also want a FDCAN bootloader for the STM32G431RB and can not understand why it is not possible bot create one myself. Have looked a little bit on using your Open Bootloader library https://github.com/STMicroelectronics/stm32-mw-openbl to do this in the way described there. Why is this not possible as you say?

I have found a couple of examples for how to build an Open Bootloader for other MCUs but none that I looked at used FDCAN or CAN, is there such an example somwhere? Or other pointers on how to get started with this?

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

 

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.