Hi lixiao,
the problem may resides in:
1. project itself.
if you create a new project with wizard, can you download the code to flash without problem?
are you programming something at address 0xFF0E-0xFF0F in your application?
This is the location where the secure byte is programmed. So do not program it while you are debugging.
2. CW version:
what chip do you work with?
please use the latest CW5.1 or CW5.2 that support this chip?
3. board/device:
the FLASH may be secured.
can you please try to unsecure the flash?
- In Code Warior debugger menu ->MultilinkCyclonePro->Unsecure…
- If not work you can use unsecure12 from P&E. this is a professional unsecure tool:
http://www.pemicro.com/support/downloads_find.cfm
choose HC(S)12(X)
Download „Unsecure_12“ and “Unsecure_12 Help Files”.
For downloading is necessary registration.
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------