2021-04-07 04:48 AM
Hello,
I am trying to interact with the FDCAN bootloader of the STM32L5.
I had no issue with the CAN bootloader of the STM32L4 (AN3154), but with the STM32L5 I am unable to even get an ACK from the target.
1) According to AN2606 Rev 47, the bit-rate should be 0.5 Mbps. However, According to AN5405 rev 1, the FDCAN settings are 20MHz clock, 1 nominal pre-scaler, 0x3F Time Segment 1 and 0x10 Time segment 2. This means the bit-rate is 20/(1+0x3F+0x10) = 0.25 Mbps. What is the actual bit rate used by the FDCAN bootloader ?
2) The AN5405 rev 1 also specifies that the bootloader uses a classic filter with 0x111 ID and 0x7FF mask. This means the bootloader rejects all messages which CAN ID is different than 0x111.
But the bootloader commands are embedded in the CAN ID, so how can the bootloader receive the command messages ? For example, AN5405 specifies to send an empty message with ID 0x000 for the GET command, but such message would be filtered out...
I have tried many different settings but I am still unsuccessful in getting a response. I may be misunderstanding things, but I am out of ideas. Thanks a lot for your time !
2021-04-13 02:10 AM
Hello @Gribouille and welcome to the STM32 Community :)
Thanks for reporting this issue.
I will check this and come back to you soon with update.
Imen
2022-08-29 01:23 AM
Hello,
I am facing the same problem on a stm32g0b1.
Fdcan Configuration (same as AN2606):
Bitrate switching = activate
nominal bitrate = 250 Kbits/s
data bitrate = 1Mbits/s
Once the bootloader is in fdcan mode, it does not respond to any fdcan id.
I haven't found any solution to this issue yet.
Thanks in advance for your time
2022-08-29 01:48 AM