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


SAM7XDemo Build for Latest Yagarto!

Posted by Warren Bilgeri on February 21, 2012
Good day FreeRTOS forum,

Has any one been successful with compiling a working Yagarto build for the SAM7x lwIP web server project?
I have compiled the source code a few years back on an older Yagarto build, however the later Yagarto compiler needs a syscall addition to the linker addition when compiling. I did add this file and it complies with the latest Yagarto compiler. The project runs, however the web server is unstable.

I'd like to know if someone has been successful with this before I spend more days debugging this.

Best regards,

RE: SAM7XDemo Build for Latest Yagarto!

Posted by Rob Bekkers on February 21, 2012
Hi Warren,

I'm not sure if it will solve the problem but you could give it a try:

I found a bug in the linker script which causes the initialisation of c-variables to fail. It is described here:

I didn't test it on the demo but when I started with FreeRTOS I had the same experience with the demo. Some tasks are dodgy. Let me know your results. My tasks are running stable now.


RE: SAM7XDemo Build for Latest Yagarto!

Posted by Warren Bilgeri on February 23, 2012
Hello Rob,

Thank you for this advice! I followed your post and it fixed the problem of the USB task falling over when I plugged in the Ethernet cable. I'm still having a hassle with the webserver but I should get to the bottom of that a lot quicker now that the stability of the tasks has been resolved.

Did you also add a syscalls file to your project?

Best regards,

RE: SAM7XDemo Build for Latest Yagarto!

Posted by Richard on February 23, 2012
The Yagarto site used to have an FAQ on this, as I recall, and even supply a syscalls file for download. The file is only required to provide stubs of the functions that the linker is looking for (unless you actually make use of them of course). You may even find a syscalls.c containing these stubs in the FreeRTOS distribution.

Please post any updated/working files to the FreeRTOS interactive site.


RE: SAM7XDemo Build for Latest Yagarto!

Posted by Rob Bekkers on February 23, 2012
Hi Warren,

Good to hear the fix at least solved part of the problems. And yes, I added a syscalls.c file to my project. I found a basic version on the internet and modified it until it works with the stdio library in combination with the debug unit of the microcontroller. You can find my modified version here: http://couchtiger.nl/files/syscalls.zip. Not all functions are tested but the read and write function work for standard input and standard output, which is the debug unit. The sbrk functionality also appears to work because FreeRTOS is able to allocate memory. The only thing you need to do is include this code to initialise the uart of the debug unit:

// Disable PIO control for debug unit RX/TX pins

/* Initialise the debug unit USART. */
DBGU_Configure(0x00000800, 9600, 48000000);

You can always change the baud rate and other communication parameters of course.



[ 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