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

How to use mon51 in ROM at 0x6000 ?

I use a hardware platform with a EZ-USB CY64603.

I want to use mon51 for debug my program in RAM from 0x0000 to 0x1B40.

Mon51 must be in flash or eeprom at 0x6000.

How can i modify my program and install.a51 to make this ?

At which address mon51 start ? 0x6000 ?0x60ae ?

Thank you in advance



Parents
  • Hello,
    I do not know your platform but I can tell you how I assemble my mon 51.
    The first parameter is theuart and baudrate I setup it 8 which means built in uart, autobaud with timer2.
    The next parameter is the RAM sart.
    The monitor needs 256 RAM locations.
    Mon51 uses the RD, WR,and PSEN when acess these RAMs.
    My RAM sarts from 0 to 0x7fff so I set it to 0x7f which means monitor can use 0x7f00 to 0x7fff
    The third parameter is the ROMstart.
    I sat it 0 because my ROM is 0 to 0x3fff.
    I do not know how program works at 0x6000 you have to try it.
    Attention if you want to use mon51 you have to add and modify the startup51.a51 file too.
    Cheer George

Reply
  • Hello,
    I do not know your platform but I can tell you how I assemble my mon 51.
    The first parameter is theuart and baudrate I setup it 8 which means built in uart, autobaud with timer2.
    The next parameter is the RAM sart.
    The monitor needs 256 RAM locations.
    Mon51 uses the RD, WR,and PSEN when acess these RAMs.
    My RAM sarts from 0 to 0x7fff so I set it to 0x7f which means monitor can use 0x7f00 to 0x7fff
    The third parameter is the ROMstart.
    I sat it 0 because my ROM is 0 to 0x3fff.
    I do not know how program works at 0x6000 you have to try it.
    Attention if you want to use mon51 you have to add and modify the startup51.a51 file too.
    Cheer George

Children
No data