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


STR9 GCC port problem

Posted by Toni Leinonen on July 6, 2008
I've been trying to port the IAR webserver demo for str9x to
gcc but have run into a wall. Everything seems to be fine,
but the scheduler refuses to start.

I've checked and double checked everything and made sure the
arm runs in supervisor mode and the stack is correctly
aligned and so on ...

I've also searched the forum but, no one seems to have my problem.
The logical conclusion is that I've messed something up and just
can't find the problem.

Does anyone have a working port of FreeRTOS for STR9 + GCC that
they could share or any idea what could be causing this ?

The last thing that gets called is portStartFirstTask and after
that the system starts going into an abort loop.

I'm running on the Hitex str912 eval kit and compiling with
yagarto gcc.

Thanks in advance !


RE: STR9 GCC port problem

Posted by Richard on July 6, 2008
Hi Toni,

Sorry my "please use the forum" reply to your email was written having not read your email to the end. I get a lot of email! Now having read your post on the forum I realise you were in fact asking for me to send you the files, which I have now done.


RE: STR9 GCC port problem

Posted by damien h on July 7, 2008

I m using a STR912, board Olimex, with GCC Yagarto
(and the port given by richard barry, which is working fine).

My feeling (i m not expert ;-) , but i can share with you problems i had) is :

- Scheduler not start in supervisor mode
- heap size is insufficient, for the number of task and the memory allocated per task (the function vTaskStartScheduler exit, should never be the case)
- Heap size different between linker file and FreeRTOSConfig.h (I m not sure but i have a heapesize "defined" in my linker script, i suppose you can introduce a inconsistence between memory size / area if they are not equal... Maybe somebody experimented could confirme or not my idea)
- Your highest priority task is always running (loop: for/while "without break")... and "nothing else" can be done around...


[ 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