![]() I am not sure if you can even upload to empty pages of flash with read protection enabled.It may be possible via swd but not by the bootloaoder.Īlso, I dont think you can alter the registers e.g. You may find you cant upload to RAM at all with read protection enabled. Victor, I like the idea of dumping the code simply by uploading and running from ram, but I suspect that STM would have thought of that possibility. The flash can be read by the code running in the MCU itself, so you can try finding a portion of flash that's not used (difficult since you can't read it, but if you someway know how big is the software running in the MCU, then you know what's free), then compile a flash dumper sketch to that address, write it there (you can write with readout protection, you just can't read or verify), then execute it by forcing the PC to the start address.Īnother option, which I tried to test but didn't get it right, was to compile such sketch to run from RAM, upload it to RAM (st-link or j-link can do that), then reboot the MCU with the boot pins set for boot from RAM. If the board is obsolete, your best bet is to approach the manufacturer and see if they will see you the binary firmware file. RogerClark wrote:The STM32 has strong firmware readback protection to stop counterfeiter reading the firmware binary file and putting it into their cloned products.Įxtracting the firmware from inside the chip is not an option for hobbyists, and is basically uneconomic for virtually anyone else.
0 Comments
Leave a Reply. |