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


CodeSourcery and newlib

Posted by Adam Turowski on November 21, 2009

Recently I've tried to use CodeSourcery G++ Lite 2009q3-67 compiler for AT91SAM7X128. The compilation of my project works fine, but during linking FreeRTOS need memset et all functions. To provide them I've tried to cross compile newlib. After some fixes compilation works fine but "make install" fails.
Then I found [link text][1]
topic, where they are saying that there is lack of newlib support for CodeSourcery. Is it true? What can I do to provide memset etc functions to CodeSourcery?


[1]: http://groups.google.com/group/beagleboard/browse_thread/thread/f892e5f92d8881b6

RE: CodeSourcery and newlib

Posted by woops_ on November 21, 2009
Should not need to do anything, just #include string.h and call memset.

RE: CodeSourcery and newlib

Posted by Adam Turowski on November 22, 2009
Hmmm...I've checked the contents of the libraries comming with CodeSourcery, but I haven't found one with memset. I have to check it again....

Is printf and scanf support also included in CodeSourcery Lite libraries or do I need external library?

RE: CodeSourcery and newlib

Posted by Richard on November 22, 2009
I have never had a problem calling C library functions with a bulk standard CodeSorcery installation, and a quick glance at the CodeSorcery page shows that it comes with EGLIBC 2.10. See http://www.codesourcery.com/sgpp/lite/arm


RE: CodeSourcery and newlib

Posted by Adam Turowski on November 22, 2009
Thanks for info. I've gone slightly further. The code now compiles and links, but it doesn't fit into FLASH because linker tries to put everything from standard libraries. How can I force it to link only used stuff - I mean functions referenced by the other functions.


RE: CodeSourcery and newlib

Posted by Adam Turowski on November 28, 2009
Sorry guys to bothering you again, but I am really stuck now. Can someone point me to working example of compilation/linking of C program for AT91SAM7X MCU using CodeSourcery Lite tools and standard C lib functions please?


[ 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