Removing ReadOut Protection with UART port 3 on system bootloader
Hello,
I am trying to figure out the ReadOut protection configuration from the CLI tool (STM32_Programmer_CLI) and I am encountering an issue.
Setup :
OS : Linux Mint
MCU : STM32F439
Board : Custom
STM32_Programmer_CLI version : 2.19.0
We have this custom board and use the system bootloader to flash a firmware when needed. Once the firmware is flashed, the RDP is enabled.
When we want to flash the board again, we disable the RDP, flash the board, and reflash the board again.
This works well with a debugger , using this command :
STM32_Programmer_CLI -c port=SWD -ob RDP=170we can disable the RDP.
However, we want to do the same thing from the UART3 in system bootloader and it doesn't work.
When I try to disable the RDP with the UART3 port with the following command :
STM32_Programmer_CLI -c port=/dev/ttyUSB1 -ob RDP=170i get the following error :
-------------------------------------------------------------------
STM32CubeProgrammer v2.19.0
-------------------------------------------------------------------
Serial Port /dev/ttyUSB1 is successfully opened.
Port configuration: parity = even, baudrate = 115200, data-bit = 8,
stop-bit = 1.0, flow-control = off
Activating device: OK
Board : --
Chip ID: 0x419
BootLoader protocol version: 3.1
Warning: Device is under Read Out Protection
Error: a read Operation failed, please check if any memory protection mechanism is active.
The readout protection documentation is scarce and I haven't any indication anywhere that the UART3 is not a valid port while in system bootloader, to disable the RDP and go through the same process as the ST-Link debugger.
Is there any other commands I need to do to be able to disable the RDP with the UART3?
Thank you.
