Opened 6 years ago

Closed 6 years ago

#123 closed discussion (fixed)

compile error

Reported by: Roger Owned by: df9dq
Priority: major Milestone: general discussion / allgemeine Diskussionen
Component: Firmware ARM7 Version: Rev 1.1 mit Codec
Keywords: LPC firmware Cc:

Description

Hi, I have a problem compiling LPC firmware. Below is the copiler output. I used Codesourcery Lite under Ubuntu, but I also tried to compile it under WinXp? with exactly the same error.
Any ideas what goes wrong?
Could you also tell me how you compile firmware that programs CPLD?

roger@roger-laptop:~/work/fifi/svn/trunk/Software/LPC/fifisdr$ make
make[1]: Entering directory `/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src'
make[2]: Entering directory `/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/cmsis'
arm-none-eabi-gcc -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 -M core_cm3.c > .depend
arm-none-eabi-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/przemek/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 core_cm3.c -o core_cm3.o
arm-none-eabi-ar r /home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/common/common.a core_cm3.o
arm-none-eabi-ar: creating /home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/common/common.a
make[2]: Leaving directory `/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/cmsis'
make[2]: Entering directory `/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS'
arm-none-eabi-gcc -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 -M croutine.c list.c queue.c tasks.c > .depend
arm-none-eabi-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 croutine.c -o croutine.o
arm-none-eabi-ar r /home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/common/common.a croutine.o
arm-none-eabi-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 list.c -o list.o
arm-none-eabi-ar r /home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/common/common.a list.o
arm-none-eabi-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 queue.c -o queue.o
arm-none-eabi-ar r /home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/common/common.a queue.o
arm-none-eabi-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 tasks.c -o tasks.o
tasks.c: In function 'vTaskSwitchContext':
tasks.c:1594:2: warning: cast increases required alignment of target type
tasks.c:1594:2: warning: cast increases required alignment of target type
arm-none-eabi-ar r /home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/common/common.a tasks.o
make[3]: Entering directory `/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable'
make[4]: Entering directory `/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC'
make[5]: Entering directory `/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU'
arm-none-eabi-gcc -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 -M port.c > .depend
arm-none-eabi-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 port.c -o port.o
arm-none-eabi-ar r /home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/common/common.a port.o
make[5]: Leaving directory `/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU'
make[4]: Leaving directory `/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC'
make[4]: Entering directory `/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/MemMang'
arm-none-eabi-gcc -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 -M heap_2.c > .depend
arm-none-eabi-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 heap_2.c -o heap_2.o
arm-none-eabi-ar r /home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/common/common.a heap_2.o
make[4]: Leaving directory `/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/MemMang'
make[3]: Leaving directory `/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable'
make[2]: Leaving directory `/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS'
make[2]: Entering directory `/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/lpcusb'
arm-none-eabi-gcc -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 -M usbcontrol.c usbhw_lpc.c usbinit.c usbstdreq.c usbclass.c usbdesc.c softrock.c > .depend
arm-none-eabi-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 usbcontrol.c -o usbcontrol.o
arm-none-eabi-ar r /home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/common/common.a usbcontrol.o
arm-none-eabi-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 usbhw_lpc.c -o usbhw_lpc.o
arm-none-eabi-ar r /home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/common/common.a usbhw_lpc.o
arm-none-eabi-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 usbinit.c -o usbinit.o
arm-none-eabi-ar r /home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/common/common.a usbinit.o
arm-none-eabi-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 usbstdreq.c -o usbstdreq.o
arm-none-eabi-ar r /home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/common/common.a usbstdreq.o
arm-none-eabi-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 usbclass.c -o usbclass.o
arm-none-eabi-ar r /home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/common/common.a usbclass.o
arm-none-eabi-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 usbdesc.c -o usbdesc.o
arm-none-eabi-ar r /home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/common/common.a usbdesc.o
arm-none-eabi-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 softrock.c -o softrock.o
arm-none-eabi-ar r /home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/common/common.a softrock.o
make[2]: Leaving directory `/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/lpcusb'
make[2]: Entering directory `/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/i2c'
arm-none-eabi-gcc -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 -M i2c.c si570.c -o .depend
arm-none-eabi-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 i2c.c -o i2c.o
arm-none-eabi-ar rc /home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/common/common.a i2c.o
arm-none-eabi-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 si570.c -o si570.o
arm-none-eabi-ar rc /home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/common/common.a si570.o
make[2]: Leaving directory `/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/i2c'
make[2]: Entering directory `/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/gpdma'
arm-none-eabi-gcc -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 -M dma.c > .depend
arm-none-eabi-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 dma.c -o dma.o
arm-none-eabi-ar r /home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/common/common.a dma.o
make[2]: Leaving directory `/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/gpdma'
make fifisdr.hex
make[2]: Entering directory `/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src'
arm-none-eabi-gcc -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 -M main.c init.c syscalls.c startup.c params.c led.c > .depend
arm-none-eabi-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 main.c -o main.o
arm-none-eabi-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 init.c -o init.o
arm-none-eabi-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 syscalls.c -o syscalls.o
arm-none-eabi-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 startup.c -o startup.o
startup.c:88:5: warning: taking address of expression of type 'void'
startup.c: In function 'Reset_Handler':
startup.c:161:25: warning: taking address of expression of type 'void'
startup.c:168:24: warning: taking address of expression of type 'void'
startup.c:169:29: warning: taking address of expression of type 'void'
startup.c:169:65: warning: taking address of expression of type 'void'
startup.c:172:29: warning: taking address of expression of type 'void'
startup.c:172:66: warning: taking address of expression of type 'void'
startup.c:175:29: warning: taking address of expression of type 'void'
startup.c:175:66: warning: taking address of expression of type 'void'
startup.c:184:29: warning: taking address of expression of type 'void'
startup.c:184:64: warning: taking address of expression of type 'void'
startup.c:187:29: warning: taking address of expression of type 'void'
startup.c:187:65: warning: taking address of expression of type 'void'
startup.c:190:29: warning: taking address of expression of type 'void'
startup.c:190:65: warning: taking address of expression of type 'void'
arm-none-eabi-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 params.c -o params.o
arm-none-eabi-gcc -c -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 led.c -o led.o
arm-none-eabi-gcc -Wall -Wextra -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused -D ARM_CM3_MPU  -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/include -I/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU -mcpu=cortex-m3 -mthumb -Tlpc1768-rom.ld -g -O3 -fomit-frame-pointer -DSVNMAXREV=324 main.o init.o syscalls.o startup.o params.o led.o -nostartfiles /home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/common/common.a -Xlinker -ofifisdr.elf -Xlinker -M -Xlinker -Map=fifisdr.map
/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/common/common.a(port.o): In function `vPortSVCHandler':
/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src/FreeRTOS/portable/GCC/ARM_CM3_MPU/port.c:236: undefined reference to `prvSVCHandler'
collect2: ld returned 1 exit status
make[2]: *** [fifisdr.elf] Error 1
make[2]: Leaving directory `/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/roger/work/fifi/svn/trunk/Software/LPC/fifisdr/src'
make: *** [all] Error 2

Attachments (1)

fifisdr_compile-output_dc1dmr (23.2 KB) - added by dc1dmr 6 years ago.
Compile Output, DC1DMR

Download all attachments as: .zip

Change History (7)

comment:1 in reply to: ↑ description Changed 6 years ago by dc1dmr

  • Milestone changed from Probleme bei Aufbau und Inbetriebnahme to allgemeine Diskussionen
  • Type changed from defect to discussion

Hello Roger,

Replying to Roger:

Hi, I have a problem compiling LPC firmware. Below is the copiler output. I used Codesourcery Lite under Ubuntu, but I also tried to compile it under WinXp? with exactly the same error.
Any ideas what goes wrong?

I just tried to compile it myself and it worked like a charm. The output of "arm-none-eabi-gcc --version" gave me a version number of "(Sourcery G++ Lite 2009q3-68) 4.4.1" that I have installed (also an Ubuntu system). As I have only been using it to compile and have not programmed myself, I do not know what went wrong. But I will attach my output of the compile process also, maybe you can find the problem then.

Could you also tell me how you compile firmware that programs CPLD?

This is quite complicated and I have not done the complete procedure ever. But I know how it should work in principle:
You need to create a XSVF-file from the .jed-file using the iMPACT-tool (Xilinx), or download it from here, as the program is supposed to be huge and uses lots of unfree code. Then you need to create a C-Array from this file using a hex-editor. After that you can compile the firmware using some code which we cannot make available to download as it comes from Xilinx...

I hope that I was able to give at least some answers, although I fear that I have raised at least as many new... ;-)

Changed 6 years ago by dc1dmr

Compile Output, DC1DMR

comment:2 follow-up: Changed 6 years ago by maniana [at] tiscali.it

Hi, Thank you for a very quic reply.
I used Sourcery that I downloaded yesterday (arm-2011.03-42-arm-none-eabi) and also yesterday I did the svn checkout of the LPC firmware. I agree with you that probably there is something wrong with my toolchain, I just dont know what to do about it.

About the CPLD firmware. I know how to create xsvf, I know how to create a C-array, but what after that? I understand the xsvf is compiled into LPC firmware -but where is that firmware? Where is the make file for it? I believe you use some "xsvf player" for LPC. If you can not distribute the code from Xilinx, could you at least point me to the right place?
I read XAPP058, I also found this website: http://www.codeproject.com/KB/system/fpgaflow.aspx
But I am missing the code for LPC in fifi svn that will take that C-array and program CPLD.

It would be very nice to be able to experiment more with CPLD and LPC firmware.

Roger

comment:3 follow-up: Changed 6 years ago by anonymous

Hi, The source can be compiled with Sourcery G++ Lite 2009q3-68 , but when the latest version arm-2011.03-42-arm-none-eabi gives the above error.

comment:4 in reply to: ↑ 3 Changed 6 years ago by df9dq

Replying to anonymous:

Hi, The source can be compiled with Sourcery G++ Lite 2009q3-68 , but when the latest version arm-2011.03-42-arm-none-eabi gives the above error.

I've just uploaded a fix for this. The firmware will now compile fine under the 2011.03-42 compiler version.

73, Rolf

comment:5 in reply to: ↑ 2 Changed 6 years ago by df9dq

Replying to maniana [at tiscali.it]:

About the CPLD firmware. I know how to create xsvf, I know how to create a C-array, but what after that? I understand the xsvf is compiled into LPC firmware -but where is that firmware? Where is the make file for it? I believe you use some "xsvf player" for LPC. If you can not distribute the code from Xilinx, could you at least point me to the right place?
I read XAPP058, I also found this website: http://www.codeproject.com/KB/system/fpgaflow.aspx
But I am missing the code for LPC in fifi svn that will take that C-array and program CPLD.

Hi Roger,

The code to program the CPLD is now in SVN. There's a README that describes how to add a few files from XAPP058 and make some simple modifications. Let me know if you have trouble compiling the CPLD firmware.

73, Rolf

comment:6 Changed 6 years ago by df9dq

  • Resolution set to fixed
  • Status changed from new to closed

I close this ticket as solved. Normal and CPLD firmware are available for download, and can be compiled with latest tool chain.

Add Comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.