Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/09/07 13:58
Read: times


 
#141626 - maybe you have a wrong notion of what a monitor is
Responding to: ???'s previous message
A good monitor can do most of the things the "freeICE" can, including running the code at full speed - there is nothing easier than to run the application code at full speed, simply ljmp into it... - exceptions are, for example, it cannot stop on breakpoint conditionally at full speed (but most freeICEs can't either), it cannot stop on data memory access, and of course there is no sort of tracing nor data inspection at full speed. It can place breakpoints, though, and usually can also be "hard stopped" by the user, after which the data can be inspected (this is the most often used debugging method anyway - run it until a breakpoint, then inspect the variables and optionally singlestep).


Just for the record, the downsides of monitor:
- monitor occupies code space
- monitor occupies RAM/stack space
- monitor occupies UART (and the related resources - rarely is able to work through other pin(s), but that's still loss of some resources)
- sometimes monitor occupies also an interrupt and often hijacks the reset vector
- monitor requires writable code space
- to achieve breakpoint, monitor rewrites the code at the breakpoint by a jump/call; this might interfere with the code following after the breakpoint
- (correct me if I forgot something)

The list is long enough to justify the "freeICE", for sure, where available; a monitor can still be useful in other cases.

JW


List of 34 messages in thread
TopicAuthorDate
Debugging???            01/01/70 00:00      
   debugging tools in general            01/01/70 00:00      
      plus            01/01/70 00:00      
         Also willing to know...            01/01/70 00:00      
            Do You have a question?            01/01/70 00:00      
            only with an ICE (in- or external)            01/01/70 00:00      
               ICE (in- or external)??            01/01/70 00:00      
                  Elaboration on ICE needed            01/01/70 00:00      
                     some information            01/01/70 00:00      
                        How to write debugging codes?            01/01/70 00:00      
                           I guess two things mixed up            01/01/70 00:00      
                              Thank you..            01/01/70 00:00      
         whoops            01/01/70 00:00      
      sequence error            01/01/70 00:00      
      give ULTRAMON51 a try, if you can            01/01/70 00:00      
         an answqer, but not to the question            01/01/70 00:00      
            what is "full speed"?            01/01/70 00:00      
               how can a monitor "be involved" without affecting            01/01/70 00:00      
                  maybe you have a wrong notion of what a monitor is            01/01/70 00:00      
                     Actually ...            01/01/70 00:00      
                        FLASHMON and SoftICE            01/01/70 00:00      
                           That's fine if those are what you're using ...            01/01/70 00:00      
                              modern chips use internal FLASH...            01/01/70 00:00      
                                 Yes, they do ... BUT ...            01/01/70 00:00      
                                 ROM Emulator?            01/01/70 00:00      
                                    beyond ROM emulator            01/01/70 00:00      
                                       Now you're getting into ICE territory, Jan            01/01/70 00:00      
                                          Check this one out            01/01/70 00:00      
                        Not Full Speed            01/01/70 00:00      
                           If you'd tried it, you'd know ...            01/01/70 00:00      
                              Conditional Break Points            01/01/70 00:00      
               Who needs debugging?            01/01/70 00:00      
                  correction            01/01/70 00:00      
                  it depends how those pieces are stuck together            01/01/70 00:00      

Back to Subject List