STM32L451 not able to DFU program over USART2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-07 1:17 PM - edited ‎2023-11-20 3:41 AM
Hello,
I am using the STM32CubeProgrammer attempting UART connection to the device, but fails with this error. I would greatly appreciate any guidance or suggestions you may have. See below for additional details about the setup.
- MCU is STM32L451REY
- Peripheral on the MCU is USART2
- Main flash is erased
- The Boot0 pin (PH3) was pulled down
According to the Reference Manual, this state should have activated DFU in System Memory. I could attach debugger (Serial Wire) and confirm the CPU is running the instructions in System memory.
BTW USART2 works fine - verified with a simple program into main flash and communicate with the Host. At this point, I am wondering if there is something more needs to be done to activate DFU.
Thank you
Praveen
- Labels:
-
STM32L4 series
-
UART-USART
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-09 9:56 AM
> I could attach debugger (Serial Wire) and confirm the CPU is running the instructions in System memory.
Okay, so it is in the bootloader somewhere.
Is it attached via USB? If so, the USB DFU bootloader will start and it will ignore input on USART2. Similarly, if other bootloader inputs are active, it may switch to those.
Note: "DFU" is a USB-specific bootloader. You're not trying to do this, but to connect via USART2, right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-06-09 11:21 AM
USART:COM != DFU:USB
The system loader has very specific pin and uart expectations, see AN2606
Noise on other pins of interest will take precedence, both in terms of the pins/ports used, and the auto-bauding of speed.
You can't have a GNSS receiver, or MODEM, squawking at startup, the STM32 will see this as "first-contact"
Up vote any posts that you find helpful, it shows what's working..
