2025-01-19 11:19 AM - last edited on 2025-01-20 12:41 AM by SofLit
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?
2025-01-20 12:34 AM
You checked the connection diagram, connected the transceivers, resistors 120 om, etc.
Problems usually arise at this stage.)
2025-01-20 12:48 AM - edited 2025-01-20 12:59 AM
Hi i have checked the connection and the canbus works fine. Both ends have a 120 ohm resistor, and i can succes transmit data over the bus.
Somehow this post has switched to 'solved' but this has not been solved. How can i remove the 'solved' ?
Kind regards
2025-01-20 12:52 AM
Can some admin please reset the 'solved' from this post? The problem was not solved and i don't know why it switch to solved.
2025-01-20 12:55 AM
You can do it yourself:
2025-01-20 12:57 AM - edited 2025-01-20 12:58 AM
Thank you! fixed the 'solved' state of this post...
2025-01-20 08:34 AM
AN3154 Application note
Have you studied this document?
Do you have an external quartz resonator, if so, what frequency?
2025-01-20 08:42 AM
Hi, i don't have an oscillator on the F446 at the moment. I have seen the document but i had the impression it would still run without external oscillator..
Are you suggesting i need an external oscillator for the bootloader to work over CAN ?
Thats not easy to test for me at the moment as it requires a new pcb, but if that's the issue then the way forward is clear.
2025-01-20 11:52 AM
CSTNE8M00G55Z000R0
8 MHz Ceramic Resonator Built in Capacitor 33 pF ±0.2% 40 Ohms -40°C ~ 125°C
Already contains compensation capacitors
2025-01-20 11:56 AM