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

RTOSDemo for DAVE3

Posted by mathias on July 4, 2012
Hello,

Has anyone already compiled a RTOSDemo for the XMC4500 Infineon Cortex M4 with DAVE3 IDE?
I use the atollic demo as a startup but i get some errors from the linker.

./src/Common_Demo_Source/semtest.o ./src/Common_Demo_Source/sp_flop.o  ./src/main_blinky.o ./src/main_full.o  ./Startup/startup_XMC4500.o ./Startup/system_XMC4500.o  ./Main.o   
c:/dave-3.1.0/arm-gcc/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv7e-m\libg.a(lib_a-sbrkr.o): In function `_sbrk_r':
sbrkr.c:(.text+0xc): undefined reference to `_sbrk'
c:/dave-3.1.0/arm-gcc/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv7e-m\libg.a(lib_a-abort.o): In function `abort':
abort.c:(.text+0xa): undefined reference to `_exit'
c:/dave-3.1.0/arm-gcc/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv7e-m\libg.a(lib_a-signalr.o): In function `_kill_r':
signalr.c:(.text+0xe): undefined reference to `_kill'
c:/dave-3.1.0/arm-gcc/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/lib/armv7e-m\libg.a(lib_a-signalr.o): In function `_getpid_r':
signalr.c:(.text+0x28): undefined reference to `_getpid'
collect2: ld returned 1 exit status
make: *** [test.elf] Error 1


So there are some syscalls missing!
So i can fix some calls but i do not know why i need
_exit, _kill_r and _getpid_r

Thanks for you help
mgiaco


RE: RTOSDemo for DAVE3

Posted by Richard on July 5, 2012
Can you compare the command line generated by Dave with that generated by the official FreeRTOS demo? Presumably it is including additional files or libraries to provide the system calls - or it is using different start up files that have the system calls included.

Regards.

RE: RTOSDemo for DAVE3

Posted by mathias on July 5, 2012
Hello,

Tanks for your help. So i use the Attolic Demo with all the startup files and linker files. I also check the compiler flags everything seems to be the same.

I think you that Dave3 is the new and free IDE from Infineon wich is comming with the free GNU ARM Compiler. So i think the problem is the newlib use with this toolchain.

Are there any plans to prepare a Demo for this free IDE?

Regards,

RE: RTOSDemo for DAVE3

Posted by Richard on July 5, 2012
If it is using Newlib then it might be that it simply doesn't have system calls implemented, as these are not generic. Search the FreeRTOS/Semo directory for a file called syscalls.c. This has a few stub functions that you might be able to adapt to get your project to link. It is included in some demos that use Newlib I think.

Also search the archive for "syscalls yagarto" for (possibly) more information http://www.freertos.org/FreeRTOS_Support_Forum_Archive/freertos_support_forum_archive_index.html

Regards.


[ 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