FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [April 2014 Threads]
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){
}
}
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.
Do you have the malloc failed hook defined?
Regards.
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
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.
http://www.freertos.org/a00110.html#configASSERT
http://www.freertos.org/Debugging-Hard-Faults-On-Cortex-M-Microcontrollers.html
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.