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


vTaskStartScheduler causes software restart

Posted by Jim on September 2, 2009

I'm observing that the call to vTaskStartScheduler() is continuously causing main to be re-invoked. I have disabled the watchdog timer.

To give more detail: I've taken the CrossWorks MSP430F449 port and modified it for the F2619. I've switched to a 16MHz crystal and am using that to drive the timer A with the corresponding change in TACCR0 to 16000 (tick rate 1000).

I'm hoping that I've made a common blunder. Has anyone come across this symptom?


RE: vTaskStartScheduler causes software resta

Posted by Dave on September 2, 2009
Is the call to vTaskStartScheduler() returning? If so then you probably don't have enough heap space for the idle task to be created. The idle task is created automatically inside the vTaskStartScheduler() function. configTOTAL_HEAP_SPACE in FreeRTOSConfig.h sets the heap size if you are including heap_1.c or heap_2.c in your project.

RE: vTaskStartScheduler causes software restart

Posted by viugamant on October 13, 2009
I'm facing a similar problem with CrossWorks port for msp430 (2619): as prvSetupTimerInterrupt return a restart is issued. This happen only with MSP-FET emulator, if I try with the core simulator the problem not arise.
Thanks in advance for help......

RE: vTaskStartScheduler causes software restart

Posted by viugamant on October 13, 2009
......configTOTAL_HEAP_SPACE is 2800 I think this is not the cause

RE: vTaskStartScheduler causes software restart

Posted by viugamant on October 14, 2009
Problem fixed. Selecting "msp430f2619" as "target processor" in project properties the ide turn in "msp430X" the "instruction set". Freertos does not support this extension. Reselect "msp430" as "instruction set" and the restart does not occur.


[ 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