之前分享了代码保护的方法:http://forum.eepw.com.cn/thread/268580/1
烧写后....由于项目中还有bug,又的更新程序。这时候再烧写就会出现这样的错误:

这样就不得不再将读保护解除:
1、采用STM32+Jlink在RAM中调试
2、编写程序解除flash保护
#include "stm32f10x.h" int main() { NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2); if(FLASH_GetReadOutProtectionStatus() != RESET) { FLASH_Unlock(); FLASH_ReadOutProtection(DISABLE); } while(1) { ; } }
工程设置:






