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

non volatile memory simulation

Does anyone have an idea how to simulate non volatile memory in uVision2?

(Sometimes having a prototype board in your hands to use with your emulator takes a bit longer than you expect, and you have to do your first steps with simulation).

The problem is that i haven't found a way to store non volatile data between debugging sessions and for every single compile i have to do the data entry from the begining.

Thanks in advance.

Parents Reply Children
  • ok i've managed to save the data of my external RAM in a hex file using the SAVE command in uvision.

    The LOAD command though looks like it is oriented towards loading object or program hex files.

    How could i direct the LOAD command to load the hex file data data into the XRAM again?

    The "uvision debug commands" help file does not give any information about the incremental and noreset params of the LOAD command.

  • Hi,

    It depends on what you really want to do. If you want to simulate an I2c EEPROM (e.g. M24C32 or M24C08), then you can visit the web site of Michael Baldischweiler, http://www.c51.de and select the item uVision2 DLLs. Then select the I2c simulator and see what this one can do for you. I'm sure you can nicely simulate a NVM device, but I'm not sure if you can save data between two sessions.
    You should give it a try.

    Rgds,
    Geert

  • Hi,

    It depends on what you really want to do. If you want to simulate an I2c EEPROM (e.g. M24C32 or M24C08), then you can visit the web site of Michael Baldischweiler, http://www.c51.de and select the item uVision2 DLLs. Then select the I2c simulator and see what this one can do for you. I'm sure you can nicely simulate a NVM device, but I'm not sure if you can save data between two sessions.
    You should give it a try.

    Rgds,
    Geert

  • I suspect that the segment info is stored in the first record of the hex file so I suppose that I do not have to point the segment as I asked in the previous question.

    I open the hex file with an editor and it contains my data.

    But although the load command executes with no error I notice no change in the memory window.

    What could have gone wrong?