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

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

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

跳至解决方案
2,767 次查看
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
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,263 次查看
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 项奖励
回复
3 回复数
1,263 次查看
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 项奖励
回复
1,264 次查看
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 项奖励
回复
1,263 次查看
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 项奖励
回复