This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Building my own Monitor for a C166 board - No RAM at 0x0 available

Hi,
I am using a self developed board with an 80C166. There is a RAM at address 0x10000 and ROM at address 0x30000 available. How can I build my own monitor for the debugger ? Any time the monitor and app
lication are loaded and I want to jump to "main" there appeares the message "MONITOR ERROR 9: CANNOT WRITE BREAKPOINT VECTOR". Who can help me ? Thanks in advance.

Parents
  • If your board does not allow access to external ROM or RAM at address 0, then I'm affraid there is no way to get the monitor working. Not only that, but how do you plan to put your interrupt vector table to addresses 0..0x1FF? You should have developed your board with the Monitor in mind. Maybe it's not too late to introduce a change in the design?

    - mike

Reply
  • If your board does not allow access to external ROM or RAM at address 0, then I'm affraid there is no way to get the monitor working. Not only that, but how do you plan to put your interrupt vector table to addresses 0..0x1FF? You should have developed your board with the Monitor in mind. Maybe it's not too late to introduce a change in the design?

    - mike

Children
  • Hi Mike,
    the board is an old design. We already designed a new one with a C167 which does not have the problem.
    I must give support for the software of the old board - therefor I need the Monitor.
    The old board has a ROM at address 0x0. So I must use the configuration "Monitor in ROM" for Debugging.
    I never tried this before. Maybe you can give me a hint where I can find an example.
    Thank you for your help.

    Stefan

  • Hi Stefan,

    You can find the information needed for building a new version of the monitor in the file Keil\C166\MONITOR\README.TXT.
    When editing the file CONFIG.INC, carefully review each setting, since a misconfigured monitor most likely won't work at all. So it's trial and error method for getting it working. You will want to have CODE_START at 0 and VECTAB at 0x10000 (this way the monitor code will have interrupt vector redirection table pointing to 0x10000.)
    Best of luck!

    - mike

  • Hi Mike,

    I found a way how to place the RAM at 0x0 (reprogram an EPLD). Now the Monitor works.
    Thanks a lot for your help.

    Stefan