3
\$\begingroup\$

I am looking into a design that would use the ARM Cortex M4F core but am just the software engineer for the project. The EE tells me that there will be an 64 MByte sdram memory module connected to the chip. After looking at the datasheets I don't understand how I am suppose to access that memory space. Does the EMC make that space globally available to the firmware without any modification? I'm not even really sure I'm asking the question correctly. Any help would be greatly appreciated.

\$\endgroup\$
  • 1
    \$\begingroup\$ What processor (mfg and part#)? What compiler are you using? \$\endgroup\$ – Tut Oct 28 '13 at 20:54
  • \$\begingroup\$ The processor is the NXP LPC4088 and we are still deciding on a compiler. It will either be GCC, ARM-CC, or IAR \$\endgroup\$ – Dabloons Oct 28 '13 at 21:02
  • 1
    \$\begingroup\$ Did you read the EMC chapter of the user manual? (the datasheet contains general and electronic information, the user manual is what you need to program the chip.) \$\endgroup\$ – Wouter van Ooijen Oct 28 '13 at 21:42
  • \$\begingroup\$ AFAIK the LPC4088 is similar to the more popular LPC1788, which has a Cortex M3 core. Which might help you to find more information/examples. \$\endgroup\$ – starblue Oct 29 '13 at 21:41
2
\$\begingroup\$

You should be able to find out where the EMC maps to in the memory map section of the datasheet/reference manual. Once you have the address range, you will need to setup your linker to use that space for either data memory or a specific section in which you can locate your data.

If you use IAR, this will be in your .icf file. You can specify the section to place a variable in by using #pragma location = "SectionName".

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.