Hi,
I'm using currently the Olimex SAM7-EX256 board for a ethernet
application. As base I'm using the lwIP_Demo_Rowley_ARM7 (lwIP-1.1.0 +
FreeRTOS), all is working fine.
My problem is, that just the lwIP stack is consuming almost 40k of RAM
(located in the .bss region, I've tried to link without lwIP). I've
tried already to tune the memory options in lwipopts.h, but it doesn't
change very much. The application is running out of the flash.
do you have any idea what could be the problem ?
Cheers, andy
Here my linker script:
MEMORY
{
flash : ORIGIN = 0x00100000, LENGTH = 256K
ram : ORIGIN = 0x00200000, LENGTH = 64K
}
_stack_end_ = 0x00200000 + 64K - 4;
SECTIONS
{
. = 0;
startup : { *(.startup)} >flash
prog :
{
*(.text)
*(.rodata)
*(.rodata*)
*(.glue_7)
*(.glue_7t)
} >flash
_end_of_text_ = .;
.data :
{
_data_beg_ = .;
_data_beg_src_ = _end_of_text_;
*(.data)
_data_end_ = .;
} >ram AT>flash
.bss :
{
_bss_beg_ = .;
*(.bss)
} >ram
/* Align here to ensure that the .bss section occupies space up
to
_end. Align after .bss to ensure correct alignment even if the
.bss section disappears because there are no input sections. */
. = ALIGN(32 / 8);
}
. = ALIGN(32 / 8);
_end = .;
bss_end_ = . ; _bss_end_ = . ; _end_ = . ;
PROVIDE (end = .);