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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/17/06 17:12
Read: times


 
#116394 - more
Responding to: ???'s previous message
also, a monitor can never be a finished product thing since it requires RAM for code storage. While it can be fun to play with it is not a fully capable development system any more than a simulator is. The issue that simulators, monitors and other things of that ilk can never help you with the REALLY pesky bugs. We have seen many posts here "it works with the simulator/monotor but not when burned into the chip" and all that can be answered is "tough"

Were I to develop anything in this range, I would develop a code module, that when included as part of the program would allow breakpoints, core dump etc, and force it linked in the top of memory. Then I would equip my system with a chip that had an interrupt (PCA5?) that I would never use and simply make ONE "irrelevant" change to the production code making that interrupt link to the start of the 'debug module'. To ensure full transparncy there should somwhere be a 'ret' that this would call when not in dbug mode. A breakpoint would be simply to insert a sbit (e.g. PCA5_interrupt_causator) where the bkpt was wanted. This way you could run 'real' and still have breakpoints etc. I do realize that such a scheme would require flash writes but, when no money is available for a real tool, what is most important? the non-interference (i.e. true emulation) of the tool or the speed of using it. Since, with modern chips, your code is likely to run on internal memory, this scheme allows implementation without external memory, thus all 32 pins available. Of course you will need internal RAM available, the size of a flash page and a few other things, but the scheme is feasible and the processor, when not breakpointed would run TRUE.

So, what is the 'cost'? you will never be able to use the top (2k?) of code memory. Also some ERAM, the size of a flash page (512?), must be unused.

Erik

List of 20 messages in thread
TopicAuthorDate
amon52 (work in progress)            01/01/70 00:00      
   v0.4 released            01/01/70 00:00      
   implementing breakpoints            01/01/70 00:00      
      breakpoints in monitors            01/01/70 00:00      
      breakpoints            01/01/70 00:00      
         more            01/01/70 00:00      
            good idea with the EI0            01/01/70 00:00      
               no and yes            01/01/70 00:00      
                  why not for rapid prototyping?            01/01/70 00:00      
                     how would you prototype something that            01/01/70 00:00      
                        I agree            01/01/70 00:00      
            the smarter monitors work like this            01/01/70 00:00      
               not quite as smart            01/01/70 00:00      
                  yep            01/01/70 00:00      
               SBC monitor?            01/01/70 00:00      
   do you want a REAL challenge?            01/01/70 00:00      
      It's enough of a challenge            01/01/70 00:00      
         I agree            01/01/70 00:00      
   monitors ... have a look here ...            01/01/70 00:00      
      cheers            01/01/70 00:00      

Back to Subject List