Breakpoint question

Newbie post here.
Locked
kai
Junior Member
Posts: 34
Joined: Thu Jul 28, 2005 12:54 pm

Breakpoint question

Post by kai »

I want to set a breakpoint so I can examine registers let's say in the firmware at address 46a4a0. I did reset 1, init, and tried go 46a4a0 and go= 46a4a0 and I had to exit the program to get control again. Those are good addresses in the 7.93 code. Am I missing something?
patsfan
Junior Member
Posts: 673
Joined: Thu Jul 21, 2005 4:02 pm

Post by patsfan »

i don't know why the program crashes. the "go" command is used to start or stop executed code. the address you're trying must be in the middle of a routine that when it crashes everything stops. i think the "r" command is supposed to show the registers when used by itself.
usbbdm
Junior Member
Posts: 8974
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm »

Motorola does not have break register.
So the go address is really a single step.
So if your program will stop in a few thousand instructions, that is fine, but if you want to stop anywhere, you might never get there since each instruction the BDM will check the RPC register. Which is really slow.
If you think you need to break at certain address, I use BGND instruction and reprogram the flash and run. New Motorola CPU support break register which is much better.
kai
Junior Member
Posts: 34
Joined: Thu Jul 28, 2005 12:54 pm

Post by kai »

Maybe I wasn't waiting long enough. I'll try the BGND instruction

I found that by using the t= command, at least I can start at some point of my choosing and trace through the code.
kai
Junior Member
Posts: 34
Joined: Thu Jul 28, 2005 12:54 pm

Post by kai »

usbbdm wrote:Motorola does not have break register.
So the go address is really a single step.
So if your program will stop in a few thousand instructions, that is fine, but if you want to stop anywhere, you might never get there since each instruction the BDM will check the RPC register. Which is really slow.
If you think you need to break at certain address, I use BGND instruction and reprogram the flash and run. New Motorola CPU support break register which is much better.
Can I put a BGND (4A FA) in the firmware of the 2244 and issue a go command in the BDM and will it stop at the BGND instruction?
Locked

Who is online

Users browsing this forum: No registered users and 1 guest