Keil Logo

ARM: EXTERNAL MEMORY ON NXP LPC22XX DOES NOT WORK


Information in this article applies to:

  • NXP LPC22xx Devices

QUESTION

I am using an Philips LPC2000 device and have a Phytec phyCORE LPC2294 target board. I am using the external RAM, but the external RAM seems not to work.

What can be wrong?

ANSWER

Working with external RAM requires that the chip selects are properly set. This is done in the STARTUP.S file if EXTERNAL_MODE is defined. See code below:

; Setup External Memory Pins
                IF      :DEF:EXTERNAL_MODE
                LDR     R0, =PINSEL2
                LDR     R1, =PINSEL2_Val
                STR     R1, [R0]
                ENDIF

To define EXTERNAL_MODE, add the following settings under Project — Options for Target:

  • ASM — Define: EXTERNAL_MODE

Or in Options for File 'Startup.s':

  • ASM — Define: EXTERNAL_MODE

MORE INFORMATION

  • NXP LPC22xx User's Manual

SEE ALSO

Last Reviewed: Friday, January 13, 2012


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.