Quality RTOS & Embedded Software

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


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 ]    [ Privacy ]    [ Sitemap ]    [ ]


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

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

Xilinx Microblaze and Zynq partner