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




Loading

task create problem

Posted by jimmjimm on April 4, 2014

when i try to run my program with FREERTOS on STM32 i got one problem that if i just create interface task individually it works fine but when i create interface task with any another task it will go to hardware fault, there is how i create task. i tried comment interface task and uncomment other tasks it works fine, how this happen? any one get idea?

There is my main code:

int main(void) { // xTaskCreate( taskrunCommandSlice, "runCommandSlice", configMINIMALSTACKSIZE, NULL, 5, NULL ); // xTaskCreate( taskrunHostSlice, "runHostSlice", configMINIMALSTACKSIZE, NULL, 4, NULL ); // xTaskCreate( taskHeatermanagetemperature, "Heatermanagetemperature", configMINIMALSTACKSIZE, NULL, 3, NULL ); // xTaskCreate( taskThermocoupleReader, "ThermocoupleReader", configMINIMALSTACKSIZE, NULL, 2, NULL );

// xTaskCreate( taskrunPiezoSlice, "taskrunPiezoSlice", configMINIMALSTACKSIZE, NULL, 1, NULL ); xTaskCreate( taskinterfacedoUpdate, "interfacedoUpdate", configMINIMALSTACKSIZE*4, NULL, 0, NULL ); MYRCCDeInit(); Board_init(); reset(true); vTaskStartScheduler(); while(1){ } }


task create problem

Posted by rtel on April 4, 2014

Do you have configASSERT() defined? Do you have stack overflow protection on? Have you gone through the FAQ "my application does not run, what could be wrong?"? Are you using interrupts? If so, have you read the page dedicated to describing how to configure Cortex-M3 interrupts for STM32s? Especially the text highlighting special requirements for STM32 parts?

Regards.


task create problem

Posted by rtel on April 4, 2014

Do you have the malloc failed hook defined?

Regards.


task create problem

Posted by jimmjimm on April 9, 2014

Hi,configASSERT is defined but i dont know how to use it stack overflow protection is set on malloc failed hook defined, and vApplicationMallocFailedHook & vApplicationStackOverflowHook didnt trigger interrupt is fine i even tried to increase heap (into 0x00006400)and stack (into 0x00002800)size still not work


task create problem

Posted by jimmjimm on April 9, 2014

update: the program is actually running a while then goto hardfault, if i delete freertos part is works fine.still confuse what may cause this problem.


task create problem

Posted by davedoors on April 9, 2014

http://www.freertos.org/a00110.html#configASSERT http://www.freertos.org/Debugging-Hard-Faults-On-Cortex-M-Microcontrollers.html


[ 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