2023-06-07 01:17 PM - edited 2023-11-20 03: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.
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
2023-06-09 09: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?
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"