mc9s08 debug problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

mc9s08 debug problem

1,399 次查看
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?

标签 (1)
0 项奖励
回复
2 回复数

1,262 次查看
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 项奖励
回复

1,262 次查看
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 项奖励
回复