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

Simulated Peripheral DLLs - AMD flash


Anyone have a simulated peripheral DLL for an AMD-compatible flash memory that they'd be willing to share?

(Is there a library of such add-ons for the uVision simulator? I found the app note (154) describing how to write DLLs, but the download area didn't seem to have any -- of any sort, so perhaps I wasn't looking in the right place.)

Parents
  • Hi Drew,

    I have found the following problem:
    If you program the flash device and make a reset from the simulation (e.q. reset button) the program sequence from the flash will be lost.
    Is this a problem for you ?
    Also the simulation will work a little bit slower.
    Which memory ara do you use for the flash?
    Do you use a banking mechanism ?
    With ports are an additional latch ?

    Michael

Reply
  • Hi Drew,

    I have found the following problem:
    If you program the flash device and make a reset from the simulation (e.q. reset button) the program sequence from the flash will be lost.
    Is this a problem for you ?
    Also the simulation will work a little bit slower.
    Which memory ara do you use for the flash?
    Do you use a banking mechanism ?
    With ports are an additional latch ?

    Michael

Children

  • It's not a problem if a reset interruts flash programming. (In fact, that's probably appropriate, since a real reset would do the same thing; reset interruptions could be a useful feature to test how well the flash update routines tolerate unexpected restarts.)

    We're mapping the flash to xdata starting at 8'0000H. Our CPU has 24-bit DPTRs, with the upper 8 bits in SFRs 0x93 (DPX for DPTR) and 0x95 (DPX1 for DPTR1). That is, it has extended, dual data pointers like the Dallas 320/390. So from C, access to the flash is via a "far" pointer with the DPX registers supplying the upper 8 bits. (The actual ASIC uses only 20 bits of address bus, so not all the bits are actually brought out to the memories.)