int main(void) { .... FLASH_ReadOutProtection(ENABLE); while(1) { .... } }
现在通过J-Link下载不了程序了。Debug log如下: Tue Apr 01 15:57:31 2008: Warning: Verify error, failed to read memory at address 0x08000150 - 0x080001BD Tue Apr 01 15:57:31 2008: Warning: Verify error at address 0x08000150, target byte: 0xAA, byte in file: 0x30 ....................................
Tue Apr 01 15:57:31 2008: Warning: Verify error, failed to read memory at address 0x080001C0 - 0x080001E5 Tue Apr 01 15:57:31 2008: Warning: Verify error at address 0x080001C0, target byte: 0xAA, byte in file: 0x00 .................................................. Tue Apr 01 15:57:31 2008: Warning: Verify error, failed to read memory at address 0x080001E8 - 0x0800023D Tue Apr 01 15:57:31 2008: Warning: Verify error at address 0x080001E8, target byte: 0xAA, byte in file: 0xF0 .......................................................
Tue Apr 01 15:57:31 2008: Warning: Too many verify errors, only the first 200 are displayed Tue Apr 01 15:57:31 2008: Warning: Verify error, failed to read memory at address 0x08000240 - 0x080002B7 ............................................ Tue Apr 01 15:57:31 2008: There were warnings during download, see Log Window Tue Apr 01 15:57:35 2008: Loaded debugee: E:\PRO EX\U31\Project\Medium\Exe\PRO_EX(S).d79 Tue Apr 01 15:57:35 2008: Target reset Tue Apr 01 15:57:38 2008: Could not write CPU register MSP: Written: 0xAAAAAAAA, Read 0xAAAAAAA8 Tue Apr 01 15:57:38 2008: The stack 'CSTACK' is filled to 100% (2048 bytes used out of 2048). The warning threshold is set to 90%. Tue Apr 01 15:57:39 2008: Code still contains old breakpoints |