Problem Clearing RDP with STM32Cube Programmer (STM32F407)
STM32Cube Programmer v2.4 (also tried v2.3)
Windows 10 Pro (build 18363) and Mac (Catalina 10.15.4)
STM32F405 custom board, STM32F407 on DISCOVERY board
I cannot unset the read protection of the MCU via the Cube programmer when interfacing to the factory boot loader over the serial port. It recognizes that the MCU is present and that it is under RDP. It then tries to unset RDP, but fails with a timeout.
I can successfully unset RDP using the factory boot loader over the UART using the stm32flash program. The fact that the Cube programmer fails with both my own PCB and the standard DISCOVERY development PCB suggests to me it is not a hardware issue.
The Cube programmer can set RDP over serial port, and it can set / clear it using ST-Link. I've tried it on Windows and Mac, same results.
I've been working on and off on my firmware for 9 months, but since I normally use the ST-Link or a secondary UART bootloader, I am not sure whether this behavior is new, or has always existed but I didn't catch it until now, when a customer brought it to our attention.
To clarify, I am talking about entering and leaving Level 1 of RDP (I don't utilize level 2 in my application).
Are there any obvious thing I might be missing?
-Chris
EDIT: clarity and grammar
