Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

LPC2106,arm-linux-gnueabi-gcc, ver 7.2.0, build error

Posted by catalin80 on December 27, 2017

Hi, I'm tring to build the FreeRTOSv10.0.0/FreeRTOS/Demo/ARM7LPC2106GCG project under linux.

I made some changes over the starting script by replacing the set inside bat files with export and added .note.gnu.build-id : { . = ALIGN(4); PROVIDE( _note = .); (.note.gnu.build-id) . = ALIGN(4); *(.note.gnu.build-id.); . = ALIGN(4); PROVIDE( _enote = .); } >flash

inside lpc2106-rom.ld.

That helped me to pass over some gcc error that saying that the build-id should be specified
/usr/lib/gcc-cross/arm-linux-gnueabi/7/../../../../arm-linux-gnueabi/bin/ld: error: no memory region specified for loadable section `.note.gnu.build-id'

After that, unfortunatly, I'm receiving the following error:

arm-linux-gnueabi-gcc -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -Wl,--strip-all -D RUNFROMROM -D GCCARM7 -I. -I../../Source/include -I../Common/include -mcpu=arm7tdmi -Tlpc2106-rom.ld -O3 -fomit-frame-pointer -fno-strict-aliasing -fno-dwarf2-cfi-asm ../../Source/portable/GCC/ARM7LPC2000/portISR.o serial/serialISR.o main.o serial/serial.o ParTest/ParTest.o ../Common/Minimal/integer.o ../Common/Minimal/flash.o ../Common/Minimal/PollQ.o ../Common/Minimal/comtest.o ../Common/Minimal/flop.o ../Common/Minimal/semtest.o ../Common/Minimal/dynamic.o ../Common/Minimal/BlockQ.o ../../Source/tasks.o ../../Source/queue.o ../../Source/list.o ../../Source/portable/MemMang/heap2.o ../../Source/portable/GCC/ARM7LPC2000/port.o -nostartfiles boot.s -Xlinker -ortosdemo.elf -Xlinker -M -Xlinker -Map=rtosdemo.map */usr/lib/gcc-cross/arm-linux-gnueabi/7/../../../../arm-linux-gnueabi/bin/ld: rtosdemo.elf: Not enough room for program headers, try linking with -N **/usr/lib/gcc-cross/arm-linux-gnueabi/7/../../../../arm-linux-gnueabi/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status Makefile:92: recipe for target 'rtosdemo.elf' failed make: ** [rtosdemo.elf] Error 1

Is there someone that had that issue before ?

How should this be fixed ?

Notes: 1. I already using -N and seems that the objects are not linked to the final elf. 2. I already using -Wl,--strip-all.


LPC2106,arm-linux-gnueabi-gcc, ver 7.2.0, build error

Posted by rtel on December 27, 2017

Sorry - not something I have ever seen before - but I've not built on Linux. I'm not sure why there would not be enough room as only a fraction of the program space is used. Is that a hosted compiler, by which I mean one that expects Linux to run within a Linux environment? If so then you need to be using an unhosted (bare metal) compiler.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

Meet us at Embedded World. Hall 3A-525.

Hear from Richard Barry at Embedded World. Feb 28, 16:00, Hall 4-428.

Video: Watch James Gosling & Richard Barry at re:Invent, Las Vegas 2017.

FreeRTOS kernel V10.0.1 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS