Getting Started emWIN (RamLock64 overfloods)

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

Getting Started emWIN (RamLock64 overfloods)

1,475 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sipel_tp on Mon May 21 12:49:34 MST 2012
Hi everybody. I need some help with emWin. I downloaded the examples for LPCXpresso v4.22 from http://www.lpcware.com/content/project/emwin-graphics-library. The example ran perfectly using a LPC1788 Developer's Kit and a 4.3 inch (480x272 pixel) TFT LCD Display, both from Embedded Artists. After that I tried to copy the example by creating a new project using LPCXpresso wizard (the idea is to learn how to create an emWin project by myself. I imported all the needed files from the example project. I also configured some source and include paths. When I try to build the new project the compiler doesn´t complaint at all but the linker sends an error message: "RamLoc64 overfloods". I would like to know WHY this message appears and what I have to do in order to fix the problem. Thank you very much for your answers.
0 Kudos
Reply
6 Replies

1,433 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by researchinnovation on Tue May 29 05:23:22 MST 2012
Hi....!!!

Try this.
http://sourceware.org/binutils/docs-2.20/ld/Basic-Script-Concepts.html#Basic-Script-Concepts
http://sourceware.org/binutils/docs-2.20/ld/index.html
0 Kudos
Reply

1,433 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by NXP_Europe on Tue May 29 03:29:24 MST 2012
Hi,

You can start by analyzing the linker script supplied with the EA1788 BSP and compare it with the standard LPC1788 linker script to see what changes are made to support the external SDRAM.

Also, emWin can be configured to run with less RAM. We have just ported emWin 5.14 to the MCB1700 board, which uses the LPC1768_69 (64KB internal SRAM) with no external RAM. This port has been added to the LPCware.com site (direct linkt to the port).

Soon a porting guide will be released and added to LPCware.com describing how the porting was done, thus also covering how to reduce the required amount of RAM.
0 Kudos
Reply

1,433 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sipel_tp on Mon May 21 14:47:23 MST 2012

Quote: Zero
This linker script is made for this hardware. Is your hardware different?

Own linker scripts are described at http://support.code-red-tech.com/CodeRedWiki/OwnLinkScripts?highlight=%28script%29

If you're not familiar with linker scripts I would strongly recommend to copy the working sample script :rolleyes:




The hardware I'm using is the same I described before. In the future I will develop my own board, so I imagine that the knowledge to create a linker script will be very useful.
0 Kudos
Reply

1,433 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Mon May 21 14:01:43 MST 2012
This linker script is made for this hardware. Is your hardware different?

Own linker scripts are described at http://support.code-red-tech.com/CodeRedWiki/OwnLinkScripts?highlight=%28script%29

If you're not familiar with linker scripts I would strongly recommend to copy the working sample script :rolleyes:
0 Kudos
Reply

1,433 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sipel_tp on Mon May 21 13:52:47 MST 2012

Quote: Zero
Just a wild guess:

emWin needs a lot of RAM :eek: A little bit more than 64 :mad: Your linker is trying to tell you that all this 64k is not enough for this project :rolleyes: Therefore a linker script is used in original sample. This linker script is including several RAM regions and 32MB SDRAM :)

Do you include this linker script in your new project?



I understand what you mean. I haven't included the linker script yet. I will try again now. Another question: I suppose that script was made for that particulary example. If I want to generate my own link script for using emWin, where can I get some info of how to do it? Thanks again
0 Kudos
Reply

1,433 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Mon May 21 13:37:32 MST 2012
Just a wild guess:

emWin needs a lot of RAM :eek: A little bit more than 64 :mad: Your linker is trying to tell you that all this 64k is not enough for this project :rolleyes: Therefore a linker script is used in original sample. This linker script is including several RAM regions and 32MB SDRAM :)

Do you include this linker script in your new project?
0 Kudos
Reply