Problem with Debug in HCS12

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

Problem with Debug in HCS12

1,842 次查看
howdeterminepwm
Contributor I

Hi,
I'm using the MC9S12XA256CFV with the Codewarrior 5.9.0 (Build 5294) and the BDM Multilink. I'm noob in this family, but my problem is with the debug mode. I can't put breakpoints in code, while I execute the code in Hiwave, this ignored the breakpoints that was marked in CodeWarrior and don't stoped. I can't use debug mode like others families of freescale, other point is that I only can record code in Flash for this family, haven't RAM option. This is correct? Please, anybody have any idea about this problem with the breakpoints?

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

1,401 次查看
CompilerGuru
NXP Employee
NXP Employee

The project wizard of the S12 (and as far as I know also the S08's) do not support to generate a project which downloads the code to run in RAM.

Techincally debugging in RAM is possible, but due to limited amount of RAM available only rather small pieces of applications could be downloaded at once. Therefore the tipical debug cycle flashes the application and then the debugging takes place in flash.

When using the HIWAVE debugger, do not set breakpoints in the CodeWarrior IDE. Instead set them in the HIWAVE debugger directly.

 

Daniel

 

0 项奖励
回复

1,402 次查看
J2MEJediMaster
Specialist I

The Classic CodeWarrior New Project wizard should either allow you to create a RAM-based project for debug, or it generates both RAM-based and flash-based targets. See if there's a target drop-down menu on the Project Window somewhere, or look under the Project menu and see if you can select a particular target.

 

---Tom

0 项奖励
回复

1,402 次查看
howdeterminepwm
Contributor I

Hi J2MEJediMaster,
In my IDE while I created a new project, not showed the option for project RAM-based. I tried again and really not saw this possibility. I have only a target (standart target) and I can't create other, in drop-down menu or in menu Project only a target also.
This is different of others families with I worked like 56F800 and HCS08, before I had the option for others targets RAM or FLASH. But the same not occur with HCS12. You have other suggestion?


Very thanks for your help!

0 项奖励
回复