Quality RTOS & Embedded Software

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




Loading

Using Embest IDE to run FrrRtos example code

Posted by Nobody/Anonymous on May 26, 2005
I am trying to use Embest IDE to compile and run the example program in the FreeRTOS. However, I am running into some link errors. Has anybody else used the Embest IDE for FreeRTOS?

Below are the error messages that I am receiving. If anybody has any suggestions, please let me know.
Regards,
--------------------Building project: rtosdemo516 ---------------------
arm-elf-gcc -mlittle-endian -gdwarf -c -I..\..\..\targets\at91 -IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Demo\Arm7_at91fr40008_gcc
-IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Source\include -IC:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\include
C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\Minimal\BlockQ.c -o.\debug\BlockQ.o

arm-elf-as -gdwarf2 --defsym AT91R40807=1 --defsym AT91EB40=1 --defsym AT91_DEBUG_ICE=1 -I..\..\..\targets\at91
-I..\..\..\targets\at91\targets\eb40 -I..\..\..\targets\at91\parts\m40800 C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\ARM7_AT91FR40008_GCC\boot.s
-o.\debug\boot.o

arm-elf-gcc -mlittle-endian -gdwarf -c -I..\..\..\targets\at91 -IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Demo\Arm7_at91fr40008_gcc
-IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Source\include -IC:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\include
C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\Minimal\comtest.c -o.\debug\comtest.o

arm-elf-gcc -mlittle-endian -gdwarf -c -I..\..\..\targets\at91 -IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Demo\Arm7_at91fr40008_gcc
-IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Source\include -IC:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\include
C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\Minimal\death.c -o.\debug\death.o

arm-elf-gcc -mlittle-endian -gdwarf -c -I..\..\..\targets\at91 -IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Demo\Arm7_at91fr40008_gcc
-IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Source\include -IC:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\include
C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\Minimal\dynamic.c -o.\debug\dynamic.o

arm-elf-gcc -mlittle-endian -gdwarf -c -I..\..\..\targets\at91 -IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Demo\Arm7_at91fr40008_gcc
-IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Source\include -IC:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\include
C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\Minimal\flash.c -o.\debug\flash.o

arm-elf-gcc -mlittle-endian -gdwarf -c -I..\..\..\targets\at91 -IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Demo\Arm7_at91fr40008_gcc
-IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Source\include -IC:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\include
C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\Minimal\flop.c -o.\debug\flop.o

arm-elf-gcc -mlittle-endian -gdwarf -c -I..\..\..\targets\at91 -IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Demo\Arm7_at91fr40008_gcc
-IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Source\include -IC:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\include
C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Source\portable\MemMang\heap_2.c -o.\debug\heap_2.o

arm-elf-gcc -mlittle-endian -gdwarf -c -I..\..\..\targets\at91 -IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Demo\Arm7_at91fr40008_gcc
-IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Source\include -IC:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\include
C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\Minimal\integer.c -o.\debug\integer.o

arm-elf-gcc -mlittle-endian -gdwarf -c -I..\..\..\targets\at91 -IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Demo\Arm7_at91fr40008_gcc
-IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Source\include -IC:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\include
C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Source\list.c -o.\debug\list.o

arm-elf-gcc -mlittle-endian -gdwarf -c -I..\..\..\targets\at91 -IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Demo\Arm7_at91fr40008_gcc
-IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Source\include -IC:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\include
C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\ARM7_AT91FR40008_GCC\main.c -o.\debug\main.o

arm-elf-gcc -mlittle-endian -gdwarf -c -I..\..\..\targets\at91 -IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Demo\Arm7_at91fr40008_gcc
-IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Source\include -IC:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\include
C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\ARM7_AT91FR40008_GCC\ParTest\ParTest.c -o.\debug\ParTest.o

arm-elf-gcc -mlittle-endian -gdwarf -c -I..\..\..\targets\at91 -IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Demo\Arm7_at91fr40008_gcc
-IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Source\include -IC:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\include
C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\Minimal\PollQ.c -o.\debug\PollQ.o

arm-elf-gcc -mlittle-endian -gdwarf -c -I..\..\..\targets\at91 -IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Demo\Arm7_at91fr40008_gcc
-IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Source\include -IC:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\include
C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Source\portable\GCC\ARM7_AT91FR40008\port.c -o.\debug\port.o

arm-elf-gcc -mlittle-endian -gdwarf -c -I..\..\..\targets\at91 -IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Demo\Arm7_at91fr40008_gcc
-IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Source\include -IC:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\include
C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Source\portable\GCC\ARM7_AT91FR40008\portISR.c -o.\debug\portISR.o

arm-elf-gcc -mlittle-endian -gdwarf -c -I..\..\..\targets\at91 -IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Demo\Arm7_at91fr40008_gcc
-IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Source\include -IC:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\include
C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Source\queue.c -o.\debug\queue.o

arm-elf-gcc -mlittle-endian -gdwarf -c -I..\..\..\targets\at91 -IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Demo\Arm7_at91fr40008_gcc
-IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Source\include -IC:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\include
C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\Minimal\semtest.c -o.\debug\semtest.o

arm-elf-gcc -mlittle-endian -gdwarf -c -I..\..\..\targets\at91 -IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Demo\Arm7_at91fr40008_gcc
-IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Source\include -IC:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\include
C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\ARM7_AT91FR40008_GCC\serial\serial.c -o.\debug\serial.o

arm-elf-gcc -mlittle-endian -gdwarf -c -I..\..\..\targets\at91 -IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Demo\Arm7_at91fr40008_gcc
-IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Source\include -IC:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\include
C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\ARM7_AT91FR40008_GCC\serial\serialISR.c -o.\debug\serialISR.o

arm-elf-gcc -mlittle-endian -gdwarf -c -I..\..\..\targets\at91 -IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Demo\Arm7_at91fr40008_gcc
-IC:\EmbestIDE\Examples\at91\rtosdemo516\FreeRTOS\Source\include -IC:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\Common\include
C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Source\tasks.c -o.\debug\tasks.o

arm-elf-ld -T..\..\..\targets\at91\targets\sram_ice.ld -L..\..\..\Build\xgcc-arm-elf\arm-elf\lib -L..\..\..\Build\xgcc-arm-elf\lib\gcc-lib\arm-elf\3.0.2
-o.\debug\rtosdemo516.elf .\debug\boot.o .\debug\BlockQ.o .\debug\comtest.o .\debug\death.o .\debug\dynamic.o
.\debug\flash.o .\debug\flop.o .\debug\heap_2.o .\debug\integer.o .\debug\list.o .\debug\main.o .\debug\ParTest.o
.\debug\PollQ.o .\debug\port.o .\debug\portISR.o .\debug\queue.o .\debug\semtest.o .\debug\serial.o
.\debug\serialISR.o .\debug\tasks.o ..\..\..\targets\at91\drivers\lib_drv\arm-inter\lib_drv_32.lib ..\..\..\targets\at91\parts\r40807\arm-inter\r40807_lib32.lib
-lc -lgcc
.\debug\boot.o:C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\ARM7_AT91FR40008_GCC\boot.s:113: undefined reference to `__bss_beg__'
.\debug\boot.o:C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\ARM7_AT91FR40008_GCC\boot.s:113: undefined reference to `__data_beg__'
.\debug\boot.o:C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\ARM7_AT91FR40008_GCC\boot.s:113: undefined reference to `__data_beg_src__'
.\debug\boot.o:C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\ARM7_AT91FR40008_GCC\boot.s:113: undefined reference to `__data_end__'
.\debug\boot.o:C:\EmbestIDE\Examples\at91\rtosdemo516-2\FreeRTOS\Demo\ARM7_AT91FR40008_GCC\boot.s:113: undefined reference to `__stack_end__'
..\..\..\Build\xgcc-arm-elf\lib\gcc-lib\arm-elf\3.0.2/libgcc.a(__main.o): In function `__do_global_ctors':
__main.o(.text+0xc4): undefined reference to `atexit'
..\..\..\Build\xgcc-arm-elf\lib\gcc-lib\arm-elf\3.0.2/libgcc.a(unwind-dw2-fde.o): In function `size_of_encoded_value':
unwind-dw2-fde.o(.text+0x5c): undefined reference to `abort'
..\..\..\Build\xgcc-arm-elf\lib\gcc-lib\arm-elf\3.0.2/libgcc.a(unwind-dw2-fde.o): In function `read_encoded_value_with_base':
unwind-dw2-fde.o(.text+0x1d8): undefined reference to `abort'
..\..\..\Build\xgcc-arm-elf\lib\gcc-lib\arm-elf\3.0.2/libgcc.a(unwind-dw2-fde.o): In function `__register_frame':
unwind-dw2-fde.o(.text+0x274): undefined reference to `malloc'
..\..\..\Build\xgcc-arm-elf\lib\gcc-lib\arm-elf\3.0.2/libgcc.a(unwind-dw2-fde.o): In function `__register_frame_table':
unwind-dw2-fde.o(.text+0x32c): undefined reference to `malloc'
..\..\..\Build\xgcc-arm-elf\lib\gcc-lib\arm-elf\3.0.2/libgcc.a(unwind-dw2-fde.o): In function `__deregister_frame_info_bases':
unwind-dw2-fde.o(.text+0x3e4): undefined reference to `free'
unwind-dw2-fde.o(.text+0x41c): undefined reference to `abort'
..\..\..\Build\xgcc-arm-elf\lib\gcc-lib\arm-elf\3.0.2/libgcc.a(unwind-dw2-fde.o): In function `__deregister_frame':
unwind-dw2-fde.o(.text+0x450): undefined reference to `free'
..\..\..\Build\xgcc-arm-elf\lib\gcc-lib\arm-elf\3.0.2/libgcc.a(unwind-dw2-fde.o): In function `base_from_object':
unwind-dw2-fde.o(.text+0x4b4): undefined reference to `abort'
..\..\..\Build\xgcc-arm-elf\lib\gcc-lib\arm-elf\3.0.2/libgcc.a(unwind-dw2-fde.o): In function `get_cie_encoding':
unwind-dw2-fde.o(.text+0x4e8): undefined reference to `strlen'
..\..\..\Build\xgcc-arm-elf\lib\gcc-lib\arm-elf\3.0.2/libgcc.a(unwind-dw2-fde.o): In function `start_fde_sort':
unwind-dw2-fde.o(.text+0x1274): undefined reference to `malloc'
unwind-dw2-fde.o(.text+0x1298): undefined reference to `malloc'
..\..\..\Build\xgcc-arm-elf\lib\gcc-lib\arm-elf\3.0.2/libgcc.a(unwind-dw2-fde.o): In function `end_fde_sort':
unwind-dw2-fde.o(.text+0x1350): undefined reference to `free'
unwind-dw2-fde.o(.text+0x138c): undefined reference to `abort'
unwind-dw2-fde.o(.text+0x1390): undefined reference to `abort'

Error executing above command.

RE: Using Embest IDE to run FrrRtos example code

Posted by Nobody/Anonymous on May 26, 2005
As you probably know - these mainly relate to an incorrect linker script for the Embest tools. I should try creating a fresh Embest IDE project with a simple hello world program, then when this is working add in the FreeRTOS files. The files required can be found from the makefile. You will need to ensure the startup file sets the stacks for the required modes and calls main() from supervisor mode.

Having said that I gave up with the IDE. Check the version of GCC that it is using. If it is like my copy then it is very old and has known bugs for the ARM7 target both for thumb generation and the interrupt code generation. If you want a nice IDE for GCC have you looked at CrossWorks?


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




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

Latest News

FreeRTOS kernel V10 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