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


freertos with emwin on stm32

Posted by jimmjimm on May 6, 2014

Hi, i'm new for rtos when i try to run my application with FreeRTOS i got a problem that i cant fix: i try to run all my application without emwin gui the program works fine but when i add emwin task the program works few loops then goes into hardwarefault. i comment all other task only run emwin task it works fine but when i add delay in emwin task like following code the program goes into hardwarefault too. updated: i tired to hardware restart my board with above situations it looks about 20% chance that program will works and 80% with hardware fault. but if only run emwin gui without time delay the program is always work. i start to check if my board problem.

void taskinterfacedoUpdate(void *pvParameters){
vTaskDelay( 10 / portTICKRATEMS );

my mcu is stm32f407zg i read many information about use freertos on stm32 and some program worked without emwin gui. i opened stack overflow & malloc fail hook looks not that problem

i increased stack size into 20k heap size into 25k rtos heap size into 30k but still not work

i tried to trace how the fault happen it look when i try to refresh screen the fault happened but the refresh API is packed in emwin so i cant trace it deeper

i create emwin task with following code same with other tasks

xTaskCreate( taskinterfacedoUpdate, "interfacedoUpdate",configMINIMALSTACKSIZE*8,NULL, interfaceTaskPRIO, &interfaceHandle );

which stack size is 4k prio is 7 it should be fine

i tried use heap_1/2/4 file to manage memory, all failed

any can give me any idea how to fix it? thanks

i create task of emwin with following code:

freertos with emwin on stm32

Posted by tectu66 on May 6, 2014

I know that this is not related to your question but the uGFX project (Free and open embedded GUI) is currently heavily searching for volunteers to test our brand new FreeRTOS port. Probably you're interested? http://ugfx.org

~ Tectu

freertos with emwin on stm32

Posted by jimmjimm on May 8, 2014

anyone can help?

freertos with emwin on stm32

Posted by rtel on May 8, 2014

Sorry - I have never used emWin so don't know what to look for. The only advice I can provide is the normal STM32 stuff - make sure you are using a recent version of FreeRTOS to take advantage of the additional configASSERT() statements that were inserted to catch the most common misconfiguration issues - V7.6.0 or higher (and of course make sure configASSERT() is actually defined to something that will make you notice when it is called).


[ 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