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

MIMXRT1050 External RAM Testing and Code Execution Help

Hi,

I am using the MIMXRT1050-EVK Board which uses the ARM-Cortex M7 processor on Keilv5 Professional version. I am trying to create a ram test and then move code from the flash to external ram for execution. I am using the MDK Hello World example as a base for my project. I have tried to run a simple RAM test by copying over data to an external RAM address and reading it, but the program just hangs. My questions are:

1. What do I need to do in the flash settings to use the external RAM?

2. Do I need to edit the startup file to use external RAM?

3. Are there any external RAM testing example projects using the same board?

4. How can I move code from the flash to external RAM for execution?

5. I have tried to assign a source file to the RAM space using the Memory Assignment in the file properties, but the code still runs in flash. How can I assign code to be saved and executed from external ram using the memory assignment settings?

I have tried to follow other examples of external RAM tests but have not gotten anything to work. Any help is appreciated.

-Kamal

Parents
  • Perhaps look for *.ini files under the Keil directory trees.

    The process is involved because you must directly poke a lot of registers using the _WDWORD() function.

    C:\Keil527pre\ARM\Flash\_Template\Test\RAM.ini

    Step 1 would be for you to refactor the C code doing the External RAM configuration into a sequence of 32-bit memory writes into the clock and memory interface register.

    Step 2 test that code

    Step 3 translate to the equivalent sequence in the debugger script

    It is a complex and tedious process, and will require an understanding of the MINXRT1050, the chip, the board, the external memory, etc. Not something I'd touch in an unpaid capacity, and without a board.

Reply
  • Perhaps look for *.ini files under the Keil directory trees.

    The process is involved because you must directly poke a lot of registers using the _WDWORD() function.

    C:\Keil527pre\ARM\Flash\_Template\Test\RAM.ini

    Step 1 would be for you to refactor the C code doing the External RAM configuration into a sequence of 32-bit memory writes into the clock and memory interface register.

    Step 2 test that code

    Step 3 translate to the equivalent sequence in the debugger script

    It is a complex and tedious process, and will require an understanding of the MINXRT1050, the chip, the board, the external memory, etc. Not something I'd touch in an unpaid capacity, and without a board.

Children
No data