EmbDev.net

Forum: ARM programming with GCC/GNU tools more lwip FreeRTOS 7x256 problems: "region full"


Author: Lars Paape (lpaape)
Posted on:

Rate this post
0 useful
not useful
With the hints from this forum (missing system calls) I got my toolchain
to
compile the project.  However the linker runs into an error with the
linker script
"region full".
(256k Flash, 64k Ram -> which also works fine for my other project).
Looks like
7xk are needed :(

Did anyone get the application running on a SAM7X256 with the sources
available from FreeRTOS?

Using WinARM or Cygwin/GNUARM did produce the same errors...

My own sample application works fine... any ideas...?

Thanks!

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 useful
not useful
Lars Paape wrote:
> With the hints from this forum (missing system calls) I got my toolchain
> to
> compile the project.  However the linker runs into an error with the
> linker script
> "region full".
> (256k Flash, 64k Ram -> which also works fine for my other project).
> Looks like
> 7xk are needed :(
>
> Did anyone get the application running on a SAM7X256 with the sources
> available from FreeRTOS?
>
> Using WinARM or Cygwin/GNUARM did produce the same errors...
>
> My own sample application works fine... any ideas...?

- Which region is full?
- Memory-configuration in linker-script correct?
- Compiled with -Os?
- Compiled the non-ISR-code with Thumb/Thumb-Interwork?

Martin Thomas

Author: Lars Paape (lpaape)
Posted on:

Rate this post
0 useful
not useful
Martin Thomas wrote:
Hi Thomas

> - Which region is full?

region ram is full (rtosdemo.elf section .bss)

> - Memory-configuration in linker-script correct?
MEMORY
{
        flash   : ORIGIN = 0x00100000, LENGTH = 256K
        ram             : ORIGIN = 0x00200000, LENGTH = 64K
}
rest as in atmel-rom.ld

> - Compiled with -Os?
yes...

> - Compiled the non-ISR-code with Thumb/Thumb-Interwork?
i've used the regular makefile, coming with the freertos sources ?
>
... no more clues from side... thanks
Lars Paape

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 useful
not useful
Lars Paape wrote:

>> - Which region is full?

Maybe the config/makefile options are set for "run from RAM" so code and
data is placed in the RAM. Check the used linker-script the sequence
after .text { ends with ">ram" if yes, try to change it to ">flash".

Martin Thomas

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.