2025-01-19 11:19 AM
Hi, i can definitely use a push in the right direction as i am really stuck on this one.
Goal is to push new firmware onto a STM32F446 via the built-in bootloader. For this i have connected two MCU's on a CAN bus, the receiving one is a STM32F446. I use CAN2 (see an2606 table 80) pin PB5 as RX and PB13 as TX. Strange combination by the way. One if default and one is the alternate pin. Anyway..
Baudrate is set to 125kHz on both MCU's. I reset the STM32F446 with BOOT0 high so i get into the bootloader.
On the sending side, i send out a can message with id 0x79 with one byte data, a 0x00. (documention states it does not matter what you send, so i thought to do one byte with just a zero)
This should trigger a response from the bootloader with a ACK, but it does not. I get nothing. What i see is that the target reboots after this message. I suspect becuase of a timeout or other error or so. It happens fast, so timeout is probably in a few ms or so.
I have tried different id's (0x7E0 for example) and different payloads (0x02, 0xfd) to trigger a get-chip-id. No joy.
Any idea's?