I want my code in Flash to be protect from downloading by anybody.
I useed FLASH_ReadOutProtection(ENABLE),but this function no acted. FLASH_ReadOutProtection(ENABLE); if(FLASH_GetReadOutProtectionStatus() == SET){ ....... } else{ ....... } What is the problem?
I had so,but it is the same. FLASH_ReadOutProtection(ENABLE) ; if(FLASH_GetReadOutProtectionStatus() == SET){ ???????????? why not reach to this point ? ???????????? ......... } else{ ............ } Please advice me!
I had so,but it is too the same. When I debug,always it reach in the same as follwing. if(FLASH_GetReadOutProtectionStatus() == SET){ ........ } else{ //. Here is breakpoint. ??????????????? //. Always reach in this point. Why? FLASH_ReadOutProtection(ENABLE) ; for(i = 0; i< 50000; i++){}; NVIC_GenerateSystemReset(); ?????????????????????? } Please help me.
if(FLASH_GetReadOutProtectionStatus() == SET){ //...reach this point is ok. } else{ FLASH_ReadOutProtection(ENABLE) ; __delay_cycles(100000); NVIC_GenerateSystemReset(); }
Thank you very much. It's OK. But,Ah,unfortunately,I am hurried into an error. I protect my flash and run erase flash. So I can't flash download. I use STM32F103RD,Keil. I can use it after? Please help me. [ This message was edited by: jki79ros81 on 03-11-2008 02:56 ]
Thank you very much for your continuos help. I tried to erase by using ISP (both eispV02 ,eispV04), but it is fail in connecting. The error message is ''Time over, not able to connect.'' Is there other method? Please help to a finish. I am sorry for giving you trouble. [ This message was edited by: jki79ros81 on 03-11-2008 14:29 ]