Hi, I'm using LPC1768 controller keil v5.24.2.0. In the LPC1768 controller i put tcpip,http stack and some other application to it. While executing data memory reaches around 32700 it works well. But after that it gives an error".\Objects\IIOT Raw.axf: Error: L6406E: No space in execution regions with .ANY selector matching server.o(.data).". Before reach the error the memory limits are Program Size: Code=35844 RO-data=31472 RW-data=300 ZI-data=32348. But in a datasheet they given the data memory is 64K. How to use the full of that ram memory?</br></br>
Thanks & Regards, Prasanth.
While the data sheet says it has 64KB, it is not all contiguous
There are two 16KB AHB SRAM, located at 0x2007C000 and 0x20080000 You might need to define an IRAM2 section at 0x2007C000 of 0x8000 length, and have your IRAM1 section at 0x10000000 of 0x8000 length. You then need to learn how to use attributes and scatter files to place data in the area you want
Anyway Please read the manual for the NXP and KEIL, so I don't have to read them for you www.nxp.com/.../LPC1769_68_67_66_65_64_63.pdf
Okay. Thank you very much for your kind response. Its working for me after putting IRAM1 value to 0x10000.
<p>After change the ram size i have an issue with debugging. When i initiate a debugging cursor start with main function. But now it starts automatically and if i stop debugging it stop at hard fault handler.</p> <p>If i change ram size from 0x1000 to 0x800 it debug fine. But i need full of RAM 0x1000. What should i do to solve this issue?</p>
As I established in my last message, the RAM is *not* contiguous, a fact provided in the reference manual. This is not a part I'm using, it is the part you're using, and should be familiar with.
You will need to define TWO IRAM sections at the different locations, and then direct resources into each. The scatter file will allow function and object level direction, and you should be able to use #pragma or attribute directives in your code to establish where variables and structures are placed.
How to use #pragma or attribute in my code. Please give some sample code for that.