I am a beginner in Trace32. I want to know when do we use soft breakpoint and when do we use on chip breakpoint .( I mean when the code is flashed in the rom do we use on chip breakpt.and soft brkpt when runnng the code from RAM) Correct me if wrong?
Thanks, Sikandar.
Didn't find your answer? Ask the community — no account required.
G
Guillaume Chevillot
Software breakpoints do modifications on your code to "handle" the breakpoint and so require writable memory. So indeed, if your code is in flash or in a ROM, you can't set software breakpoints.
On another hand, you have no limitation on the number of software breakpoint whereas hardware breakpoint are limited to 2 or 3 (if I remember well and may be more if you use JTAG/ETM instead of just JTAG).
Regards, Guillaume
Guillaume Chevillot
R
Ravishankar S
you're right.
when code in flash/rom => onchip / hardware implemented breakpoints
when code in ram => both onchip and software breakpoints are possible.
For data break points AFAIK, you can use only onchip/hardware breakpoints..
O
Oliver Betz
BTW: you didn't mention the CPU family you are using.
Although I don't know the capabilities of Trace32, your assumption is not generally right. One can use hardware breakpoints for code in RAM and "software breakpoints" in Flash - maybe Trace32 doesn't support the latter, but iSYSTEM winIDEA does.
I dislike software breakpoints in Flash since Flash is programmed twice on each breakpoint hit. This causes delays and Flash wearout. Well, the Coldfire I'm using should survive 100000 cycles at room temperature, so unless I have a breakpoint with some counting condition, this will last long enough.
Oliver
Oliver Betz, Muenchen (oliverbetz.de)
4
42Bastian Schick
Why twice on hit ? I would think they will simulate the breakpoint instruction, so unless you remove the breakpoint, they won´t reprogram the flash.
42Bastian
Do not email to bastian42@yahoo.com, it's a spam-only account :-)
Use @monlynx.de instead !
O
Oliver Betz
I'm not sure but I don't believe that every debugger on every target simulates the instruction.
Oliver
Oliver Betz, Muenchen (oliverbetz.de)
4
42Bastian Schick
If it supports breakpoints in flash I am pretty sure. If not simulate then they will use some RAM to execute this patched op-code there and then give back control where it left.
42Bastian
Do not email to bastian42@yahoo.com, it's a spam-only account :-)
Use @monlynx.de instead !
R
Robert Adsett
Or just re-direct it to RAM.
Robert
Posted via a free Usenet account from http://www.teranews.com
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required
Report Content
You are reporting this content to the moderators. They will look at it
ASAP.