首先打开WINDOWS任务管理器 1.上 KEIL 进入 DEBUG 状态 2.读取地址 0X1FFF F800 , 显示出内容 0X00FF 5AA5 3.修改最低8位为 FF , 这时数据为 0X00FF 5AFF 4.KEIL 死掉 5.在任务管理器中结束 KEIL
Reading/programming the STM32F10xxx embedded Flash memory PM0042 17 页这样写 This protection is activated by setting the RDP option byte. Once the protection byte has been programmed to a value: ● Main Flash memory read access is not allowed except for the user code (when booting from main Flash memory itself with the debug mode not active). ● Pages 0-3 (for low- and medium-density devices), or pages 0-1 (for high-density devices) are automatically write-protected. The rest of the memory can be programmed by the code executed from the main Flash memory (for IAP, constant storage, etc.), but it is protected against write/erase (but not against mass erase) in debug mode or when booting from the embedded SRAM. ● All features linked to loading code into and executing code from the embedded SRAM are still active (JTAG/SWD and boot from embedded SRAM) and this can be used to Reading/programming the STM32F10xxx embedded Flash memory PM0042 disable the read protection. When the read protection option byte is altered to a memory-unprotect value, a mass erase is performed. |