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

P89c51rd2 + Keil problem

Hello,
I am using a P89c51rd2 based board .I have installed FlashMon on the microcontroller and I am trying to use the Keil software to develop small applications. I can connect to the monitor on my board and type commands like memset, but when trying to load the application it disconnects. While trying to find a solution I found that the memory model of this microcontroller is not compatible with FlashMon, and this because the Philips microcontroler needs to erase every block before writing it. Is this true? And if it is can I use an external Ram to load and debug applications on it?

Parents Reply Children
  • Yes, but since that goes for all flash memory: Are you saying that the monitor can't be used with flash memory (a way wider claim than saying that it can't be used with your specific chip)?

    And you are using the word "memory model", but flash memory is a memory technology. A memory model is how the compiler allocates the variables and accesses them. For example if variables should default to be stored in XDATA or not.

  • I just quoted what they said here:

    www.phytec.de/.../L-465E.pdf at page 14
    and here:

    www.edaboard.com/ftopic53768.html

    I am a student and my project was to install flashmon on a board with an p89c51rd2 controller and then show how we can use Keil to debug applications for this board (not using the simulation).

    I don't know if my problem really is the memory model or the model type, I am just trying to figure out what the next step should be in solving my problem.

  • In the microcontroller's datasheet it says that it supports In Application Programming. Isn't that what the monitor does?

    I found this :
    To achieve “touchless†ISP/IAP it is necessary to tie !EA/Vpp directly to the 5V supply, thus no external code memory can be used. It is also a condition that nothing pulls P2.6 and P2.7 down after reset is applied when the application code is not running. I suggest tying these 2 pins to Vcc through each a 10k resistor as an extra safety.
    here: www.8052.com/.../notouch.doc

    Should I tie !EA/Vpp to the 5v supply?