cancel
Showing results for 
Search instead for 
Did you mean: 

CAN bootloader used with STM32G0B1CxT can't flash over FDCAN2

KGryn.1
Associate II

Hello,

 

I'm writing regarding use of the stm32-can-bootloader that is linked on the https://github.com/effenco/stm32-can-bootloader 
and also is mentioned in the topic https://community.st.com/t5/others-hardware-and-software/serial-programming/td-p/63046 

 

We use this bootloader code for the STM32G0B1CxT and it works fine programming via PD0/PD1 (FDCAN1) interface.
We'd like to use it on the PB0, PB12 (FDCAN2) interface but with no success - there's an error on the bus that looks like the programmer can't send data to the PB0, PB12.
Configuration for the both FDCANs is the same and they are both enabled to receive during flashing.

 

I'm not sure if it's connected with the limitations mentioned in the manual (screen is attached to the message).

 

Additional details:

 

The initial code is generated by the cubeMX
HAL_FDCAN_RxFifo0Callback() is not called for the FDCAN2 in the bootloader mode
The FDCAN2 used in the application code works fine
Do these limitations apply to every FDCAN bootloader implementation, or are they specific to a particular implementation? Is it possible to use PB0, PB12 for the FDCAN bootloader using this source https://github.com/effenco/stm32-can-bootloader (with modifications or not)?

 

Regards,

Karol

CAN
FDCAN
STM32G0 Series

1 REPLY 1
SofLit
ST Employee

Hello,

Since it's a custom bootloader it's possible to use any of the pins you want. You need to check the FDCAN clock + GPIO clock and the FDCAN configuration.

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.
PS:
1 - This is NOT an online support (https://ols.st.com) but a collaborative space.
2 - Please be polite in your reply. Otherwise, it will be reported as inappropriate and you will be permanently blacklisted from my help.