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

can MON51 use the on-chip XRAM of C515C processor?

Hello all,
I'm debugging my C515C board using MON51 of Keil professional kit. There is no other RAM chip on the board except the on-chip 2K RAM of C515C. Can someone tell me if I can set up that 2K on-chip XRAM to cheat the Keil compiler and to debug my code using MON51? I probably set up my memory mapping like below.

MON51 code: start from 0000h
code memory: start from 8000h to BFFFh
XRAM (on-chip): start from F800h to FEFFh
MON51 RAM: start from FF00h to FFFFh

Parents
  • Hi frank, i guess you should check if this XRAM memory in the C515 chip can be used as a von Newmann wired memory, i.e the Mon51 kernel can write the user program code to it and then the chip is able to run the program from that XRAM, in any case your program then should be short enough < 2kb. Most 8051 chips doesnt allow running code from internal RAM, but there are some which does, for example EZUSB family from Cypress. Check if it is possible for the C515.

    To change the XRAM page where mon51 stores its information you may use the xdatastart parameter when compiling your mon51 kernel but this may not solve your problem as I told before.

    Check the Mon51.pdf documentation in the Mon51 directory.

Reply
  • Hi frank, i guess you should check if this XRAM memory in the C515 chip can be used as a von Newmann wired memory, i.e the Mon51 kernel can write the user program code to it and then the chip is able to run the program from that XRAM, in any case your program then should be short enough < 2kb. Most 8051 chips doesnt allow running code from internal RAM, but there are some which does, for example EZUSB family from Cypress. Check if it is possible for the C515.

    To change the XRAM page where mon51 stores its information you may use the xdatastart parameter when compiling your mon51 kernel but this may not solve your problem as I told before.

    Check the Mon51.pdf documentation in the Mon51 directory.

Children