Skip to main content
Goof Ball
Associate III
Aug 12, 2020 8:03 PM UTC
Question

RDP Level 1->0: Can ANYTHING survive ??

I am using STMCubeProgrammer in USB DFU mode to change from RDP Level 1 to 0 (using command line -rdu option). This nukes (mass erases) all flash and all "backup SRAM" (according to datasheet).

My product has a couple of bytes of custom config data stored in flash, which of course gets nuked. Is there ANY way to save this config data, such that I can put it back into flash after I'm done changing RDP to 0?

I tried:

  • writing my config data to known location in regular sram, then jump to DFU mode, then use STMCubeProgrammer to change rdp 1->0, then read the SRAM. But that gets nuked too, either by the bootloader, or hardware when rdp1->0.

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
Aug 12, 2020 8:08 PM UTC

Doesn't it have 528 bytes of OTP situated at 0x1FFF7800- 7A0F ??

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Goof Ball
Goof BallAuthor
Associate III
Aug 12, 2020 8:17 PM UTC

Yes, but alas, the configuration data changes once in a while.... thus the "one-time" aspect of OTP is a problem. Good guess though... I suppose if my config data changed once per month, my product would run for 16 months (OTP divided into 16 blocks) before crapping out. Any other ideas?