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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/17/09 08:12
Read: times


 
#169833 - I can not set a break point and can not single step
Responding to: ???'s previous message
An emulator is essentially a hardware device: when you set a breakpoint, it is a specific hardware address; when you single-step (at the assembler level), you execute a single hardware instruction.

If your emulator cannot do this, then it is broken.

All of this is independent of what tools you use to write your source code.

Remember: the 8051 itself neither knows nor cares what tools you use to write your source code - it just fetches & executes the binary image from its CODE space.
An emulator is the same!

The only point at which the build tools have an influence is when you what to use the symbolic names from your source code, or what to step at the source level.

But, even then, the actual tools are not relevant - all that matters is that they provide the necessary Debug Information in a format that the emulator software understands.
(note that it's not actually used by the emulator itself; it's just used by the software to translate from the source-level information to hardware addresses).

What you need to do is to find out what Debug Information formats your emulator supports - you can then determine whether SDCC (or any other compiler) can provide that information.

List of 28 messages in thread
TopicAuthorDate
which hardware Emulator can work with SDCC            01/01/70 00:00      
   but it can't work            01/01/70 00:00      
   OMF support?            01/01/70 00:00      
      if it does not "support OMF" then            01/01/70 00:00      
   Please define what you mean by "doesn't work"            01/01/70 00:00      
      I can't enter the CAN Interrupt            01/01/70 00:00      
         What prevents you from doing that?            01/01/70 00:00      
            I want to debug my program            01/01/70 00:00      
               It's time you read the SDCC documentation!            01/01/70 00:00      
               You Mean Break Point?            01/01/70 00:00      
                  Yes ,I want to single step            01/01/70 00:00      
                     cannot set?            01/01/70 00:00      
                        I can set the breakpoint but it isn't hit?            01/01/70 00:00      
                           Confusing!            01/01/70 00:00      
                              SDCC interrupts visible to main            01/01/70 00:00      
                                 Gee ... does SDCC allow only one breakpoint?            01/01/70 00:00      
                                    The compiler            01/01/70 00:00      
                                       Be gentle with him...            01/01/70 00:00      
                                          I don't use 'em with 805x ...            01/01/70 00:00      
                     I can not set a break point and can not single step            01/01/70 00:00      
            I use the ICE to debug my program            01/01/70 00:00      
               Probably too late to ask ...            01/01/70 00:00      
                  "sometimes"            01/01/70 00:00      
                     Still not clear!            01/01/70 00:00      
            Can you tell me your Development Environment            01/01/70 00:00      
               I program in ASM and use a debug monitor ... no ICE!            01/01/70 00:00      
   ask at Micetek?            01/01/70 00:00      
   Maybe that SDCC interrupt "feature"?            01/01/70 00:00      

Back to Subject List