2025-02-08 04:32 AM
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,
2025-02-08 05:25 AM
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.