The command line generated abs file can't be used to debug

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

The command line generated abs file can't be used to debug

Jump to solution
1,995 Views
admin
Specialist II
Hello Wang,
I am using command line method to build my application, but I can't use hiwave.exe to debug the generated abs file, it always report the error as below, detail pls see the attached screenshot:
"
STARTED
RUNNING
ILLEGAL_BP
"
And also I can't set the breakpoint, it seems not work. Attached pls find my application, I use my own debug.exe to autoload hiwave.exe. My sample applicaiton only contains three source files including main.c, datapage.c and start12.c which I copied from a Codewarrior IDE generated project and didn't make any change.
I am using the CodeWarrior_for_HCS12_V4.7 and demo board DEMO9S12XEP100.
 
Do I need the command file for debug tool?
 
Thanks,
Simon
Labels (1)
Tags (1)
0 Kudos
1 Solution
491 Views
stanish
NXP Employee
NXP Employee
Hi Simon Zhu,

Seems your code gets lost since program counter is set to 0.
I've tried to load your abs. file and debug work as expected. Your .abs file might not be flashed correctly.

How do you flash the program? You should mass erase the MCU first and then load the code.
Attached is the "Load Application" dialog. Double check that "Automatically erase and program..." option is enabled. You can also enable the verification option to be sure.

Stanish

View solution in original post

0 Kudos
3 Replies
491 Views
niraj_sh4u
Contributor I

Hi all,

I am using freescale codewarrior 4.7, but facing a problem in my o/p. Actually previously the project was made in V3.1 and is working fine in that. When I compiled same program in V4.7 it throw no error but in my o/p there is a flickering with LCD Display.

 

Hardware used were same for both the versions.

can anybody  put some light.?

0 Kudos
492 Views
stanish
NXP Employee
NXP Employee
Hi Simon Zhu,

Seems your code gets lost since program counter is set to 0.
I've tried to load your abs. file and debug work as expected. Your .abs file might not be flashed correctly.

How do you flash the program? You should mass erase the MCU first and then load the code.
Attached is the "Load Application" dialog. Double check that "Automatically erase and program..." option is enabled. You can also enable the verification option to be sure.

Stanish
0 Kudos
491 Views
admin
Specialist II
Hi Stanish,
 
Thanks for your help. Yes, it works on my side now after I enable the "Automatically erase and program..." option. 
 
Just another question, does it means that hiwave can automaticall choose the correct startup, preload and postload command file if the  "Automatically erase and program..." option is enabled. Do I need manually specify the command file before I start the hiwave.exe by using command line?
 
Thanks,
Simon
0 Kudos