LPC1769 Memory

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

LPC1769 Memory

1,847 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by terrype on Wed Sep 17 23:10:43 MST 2014
Project : LPC1769 expresso board  rev B
IDE : LPcexpresso 7.3
Examplke use; LPCOpen , FreeRTos demo with lwip.  My application is working fine.
As I am keep adding extra code and data into the project.  system die due
to malloc failure. I am using Heap4.c for the memory management

LPC1769 has two memory bank0 and bank1 in RAM

Q1. How to use the RAM in Bank 1(AHB) ?

Q2. Is it possible to point the Heap start ptr to Bank 1?

Labels (1)
0 Kudos
Reply
4 Replies

1,612 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by terrype on Mon Sep 22 16:29:50 MST 2014
Hi i miuss one word from my message Modify linker script template.


terry
0 Kudos
Reply

1,612 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Mon Sep 22 02:57:46 MST 2014
Did you modified a linker script template file? Or modified an actual script generated by the managed linker script mechanism - which has then regenerated the script and overwritten your changes?

Please read through the documentation again for details.

Regards,
LPCXpresso Support
0 Kudos
Reply

1,612 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by terrype on Sun Sep 21 18:14:24 MST 2014
Hi  I follow the instructrion as per linker script modification. as per the document
    PROVIDE(${heap_symbol} = ADDR(.data_RAM2));
    PROVIDE(_vStackTop = __top_RamAHB32 - ${STACK_OFFSET});
I still facing the same problem, then look at my .map file

.noinit_RAM2    0x2007c000        0x0
few lines here then

[u]0x1000052c[/u]                PROVIDE (_pvHeapStart, .)
0x10008000                PROVIDE (_vStackTop, (__top_RamLoc32 - 0x0))

Q1. Why still the PVHeapStart pointer the address at 0x1000052C whihc is inside  RAM1?
0 Kudos
Reply

1,612 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Thu Sep 18 00:34:40 MST 2014
For information on the Redlib heap, please visit:

http://www.lpcware.com/content/faq/lpcxpresso/heap-checking-redlib

For FreeRTOS specifics, please see the FreeRTOS docs:

http://www.freertos.org/a00111.html

I've not tried this, but I think what you will need to do is use __BSS macro described in the below FAQ to relocate the array used by this FreeRTOS heap implementation into RAM2…

[list]
  [*]http://www.lpcware.com/content/faq/lpcxpresso/data-different-ram-blocks
[/list]

Regards,
LPCXpresso Support
0 Kudos
Reply