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

Issue with Executing Code Mapped to External SRAM on LPC4088

We have interfaced an external SRAM with the LPC4088 via the External Memory Controller (EMC).

Initial testing was successful—we verified read and write operations using a pointer to the external memory address.

However, when we attempt to assign an external memory address to an application-specific C file, the code compiles without errors, and the map file correctly reflects that the data is mapped to the external SRAM.

Despite this, the code does not execute as expected.

Has anyone encountered a similar issue, or could provide insights on potential causes and solutions?

  • Initial testing was successful—we verified read and write operations using a pointer to the external memory address.

    So I assume that you initialized the external memory controller correctly. I would test the whole memory area with this initial testing application using 8 bit, 16 bit and 32 bit pointers to see if the memory access works with all alignments.

    Despite this, the code does not execute as expected.

    Did you check with the µVision debugger what happens? You see what values should be stored in memory and you can check in the µVision memory window what is written into the memory.

  • Thanks for your reply.

    I have tested it with the 32-bit pointer only.  I will test it for 8 & 16 bits as you suggested.