Quality RTOS & Embedded Software

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




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) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists