hcs12 debugger trace

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

hcs12 debugger trace

5,148 Views
elid
Contributor I
hi,

i'm using freescale true time simulator & real time debugger version 6.1 build 6037 on a HCS12GC64.

i tried to use the trace function, but it hang when i hit run/ step thru the code. can anyone teach me how to use trace function? i really need this to trace where my code's execution bug.

thanks alot.
Labels (1)
Tags (1)
0 Kudos
11 Replies

940 Views
CrasyCat
Specialist III

Hello

Which version of CodeWarrior are you running?
To retrieve that information:
 - Start the IDE
 - Select "Help" -> "About Metrowerks CodeWarrior""
 - Click on "Installed products"
 - product currently installed are written on the top of the dialog.

Which debug connection are you using (simulator, Multilink, .....)?

Which component did you open to get Trace data?

CrasyCat

0 Kudos

940 Views
elid
Contributor I
hi,
i'm running IDE ver 5.7.0 build 1932 with P&E USB multilink revB.

i dont really understand ur last question, i click on Component -> Open -> Trace and the trace window appears.

my question is the whole debugger hang/ crash when i step over/ run some code. the same portion of code didnt hang/crash if i single step them. please help, thanks.
0 Kudos

940 Views
CrasyCat
Specialist III
Hello
 
I still need to figure out which version you are using.
Can you please do the following:
 - Start the IDE
 - Select "Help" -> "About Metrowerks CodeWarrior""
 - Click on "Installed products"
 - Click on "Save As and save information in a text file.
 - Zip that text file and attach it to the thread.
If I understand you well, you are running your code on a real hardware board and you are using a USB Multilink cable as connection.
And you are running your code on a HCS12GC64. Am I right?
 
Is the crash happening also with a project created from a stationery or only with your project?
 
 
CrasyCat
0 Kudos

940 Views
elid
Contributor I
hi,

thanks for the reply. i've attached the file as instructed.

this crash happens for both the stationery project & blank project.

yes i'm running the hardware exactly as u've described.

thanks.
0 Kudos

940 Views
CrasyCat
Specialist III

Hello

Trace component should be working with CW HC12 V4.5.

I would suggest you to submit a service request through our web page.

Please attach the installed plug in document and a project reproducing the trouble.

You can use the Pack and Go wizard to collect all info needed to forward a project. Use Help -> "Pack and Go" to start the Pack and Go wizard.

CrasyCat

0 Kudos

940 Views
elid
Contributor I
all right....thanks anyway
0 Kudos

940 Views
elid
Contributor I
hi all,

I gave up this feature after few failure trials.
Months later, I accidentally make the trace function not hang anymore. I found out that it hangs at bclr a bit value of certain port, when the port is not initialised. After the port is initialised at startup, either clear it or $FF it, the trace function will not hang anymore. I wonder why such a small step could hang the whole program.

Anyway, now comes my question. When I halt the running target, the trace sometimes( most of the times) display nothing. I was using Automatic trigger mode ie no specific trigger/ breakpoint defined. I was using assembly language.

while in another example provided by codewarrior which is in C code, whenever I halt the running target the trace window shows all the relevant instructions.

can anyone help me? How do I set up the debugger to display instruction whenever I halt the running target in trace window?

thanks for your help.
0 Kudos

940 Views
elid
Contributor I
hi all,

I notice some strange record from trace window. I attached the dump file for your reference.

It shows many 'Instruction outside application', which are all invalid addressess. But after that the program execution will back to normal. Can anyone explain what's going on?

It also tag some valid address that's never been executed. I put a breakpoint at certain location, the debugger never stop at that particular breakpoint, but in trace window that particular address is recoreded! Is this trace feature reliable?

thanks everyone!

Message Edited by elid on 2006-12-0610:37 AM

Message Edited by elid on 2006-12-0610:40 AM

0 Kudos

941 Views
elid
Contributor I
anybody can take a look into my problem and suggest some solution? thank you
0 Kudos

941 Views
CrasyCat
Specialist III
Hello
 
This would need further analysis and a reproducible case.
Please submit a service request through our on-line support web site to have one of your support engineer
looking into that.
 
CrasyCat
0 Kudos

941 Views
elid
Contributor I
thanks for your suggestion.
0 Kudos