mc9s08 debug problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mc9s08 debug problem

616 Views
martinlockner
Contributor III

I have been developing firmware for a mc9s08dz128 using CodeWarrior V10.4 and a PE Micro USB-ML-12E. Up until now I have not had any issues running debug but after by last code changes I get the following message when I try to run debug:

 

"Failed to resume target process., Downloading binary to target..."

 

 

There are no errors listed by the compiler. If I remove the code I added then I can use the debugger. My code size is around 86K.

 

 

 

Any thoughts?

Labels (1)
0 Kudos
2 Replies

479 Views
Rick_Li
NXP Employee
NXP Employee

Hi Martin,

it seems you have secure your flash by setting SEC[1:0] other than 0:0. if yes, then, I would suggest change it to 0:0 to secure the flash.

as you see from the datasheet, the default of these two bits are 0:1 and it is impossible to write a 0 bit back to 1 for flash memory.

0 Kudos

479 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Martin,

1. CW10.4 is old. I suggest you test the board with CW10.6. here is CW10.6

https://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-MCU10&tid=CWH

2. Remove .metadata folder under your current workspace, restart CW. then test the project again.

3. if you create a new project with wizard, can you download the project to chip successfully?



Best Regards,

Zhang Jun


==================================

this answer is for you. if it helps, please click on "correct answer" button. thanks!

==================================


0 Kudos