Breakpoint question
-
- Junior Member
- Posts: 34
- Joined: Thu Jul 28, 2005 12:54 pm
Breakpoint question
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?
-
- Junior Member
- Posts: 673
- Joined: Thu Jul 21, 2005 4:02 pm
-
- Junior Member
- Posts: 8974
- Joined: Mon Jul 18, 2005 9:33 pm
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.
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.
-
- Junior Member
- Posts: 34
- Joined: Thu Jul 28, 2005 12:54 pm
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?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.
Who is online
Users browsing this forum: No registered users and 1 guest