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


Rowley project stack size = 0 ?

Posted by Martin on February 19, 2007
Hi all,

I am working on a project using the Rowley compiler, and i saw that the
declaration of the stack size in the lwip demo for sam7x in the file flash_placement.xml is set to 0.

My question is, is this the correct setting ?
Does this not pose a problem at start up (creating tasks and starting the scheduler)?

What do other users of the rowley compiler set there stack sizes to ?


RE: Rowley project stack size = 0 ?

Posted by Martin on February 19, 2007
Just to clarify. I am referring to the stack sizes, which are setup from
whitin the Rowley IDE.


RE: Rowley project stack size = 0 ?

Posted by embeddedc on February 19, 2007
I would expect the users/system mode stack to be set to 0 as the stacks used by the tasks are allocated when the task is created.

The IRQ stack should be configured.

The FIQ stack may or may not be configured.

The System mode stack should be configured, but may just be set to the bottom of the other stacks so it can use any space left.

It might be that the stacks are configured in the start up assembler file, and that the settings in the project are ignored. Can you check the map file and see if this is the case?

RE: Rowley project stack size = 0 ?

Posted by Nobody/Anonymous on February 19, 2007
Just checked the demo and it seems that the svc stack starts at 0x20f7ac and uses 400 bytes before it hits the irq stack at 0x20f16c. I dont know where it gets the 400 from.

RE: Rowley project stack size = 0 ?

Posted by Nobody/Anonymous on February 19, 2007
In the project there is flash_placement.xml. Open this, double click on External SRAM, then look at the section properties. This is where the 400 (0x190) size is setup. I don't know how this relates to the settings for stack sizes in the project. Can somebody from Rowley comment?

RE: Rowley project stack size = 0 ?

Posted by Martin on February 20, 2007
The values in flash_placement.xml corresponds to the value set from within Rowley.
But is it necessary to setup stacks there, to make sure the application runs with
a correctly setup stack ?

RE: Rowley project stack size = 0 ?

Posted by Richard on February 20, 2007
I just looked at one of the sample applications that comes with CrossWorks and it does not used the xml file directly, it just uses the IDE settings. To be honest I'm not sure why I set up the stacks this way. It might be a legacy thing from CrossWorks V1.5, or it might be that this was the first project I did in CrossWorks and did not make full use of the IDE as it is intended to be used.


[ 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