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,770件の閲覧回数
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,266件の閲覧回数
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,266件の閲覧回数
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,267件の閲覧回数
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,266件の閲覧回数
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 件の賞賛
返信