Is there example MCUXpresso project and code for running in external DDR SDRAM (LPC17x8)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is there example MCUXpresso project and code for running in external DDR SDRAM (LPC17x8)

817 Views
talktrn
Contributor I

Script files (i.e., *.ldt) for the Linker are needed, as well as Segger .jlinkscript file for the Debug Launcher.  An example is the Embedded Artists LPC1788 Developers Kit which has external DDR.  Much info can be found in MCUXpresso IDE User Guide describing relocation of pieces of code into RAM, but we will have entire app located in external DDR RAM.  Hoping to find something already worked out, even if using MCUXpresso with a different device.

Labels (1)
0 Kudos
1 Reply

637 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Douglas,

You can navigate to Projects -> C/C++ Build -> Settings -> MCU Linker -> Managed Linker Script and check the "Link application to RAM" checkbox, make sure that the External DDR RAM is the first RAM section defined in the MCU memory configuration. Please notice that  you first need to ensure the external memory controller is setup so the debugger can access the SDRAM. MCUXpresso doesn't know how to do this for you. One approach would be to write a MCUXpresso connect script for this purpose. Connect scripts are configured in the project launch configuration.


Hope it helps!

Best Regards,
Carlos Mendoza
Technical Support Engineer

0 Kudos