Problem with Debug in HCS12

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

Problem with Debug in HCS12

1,839 Views
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?

Labels (1)
Tags (1)
0 Kudos
Reply
3 Replies

1,398 Views
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 Kudos
Reply

1,399 Views
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 Kudos
Reply

1,399 Views
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 Kudos
Reply