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] [July 2016 Threads]
I believe that using malloc and free in small embedded system is a bad habit, although am using them for very specific circumstances.
so i'am using 2 tasks in my application :
LCDTask and SerialTask:
-The 2 tasks have the same priority.
- lcdSTACKSIZE configMINIMALSTACKSIZE + 1000.
- serialSTACKSIZE configMINIMALSTACKSIZE
- the pointer that am allocating/ freeing pointes to data with 200 bytes
- lcdTask allocate and free the pointer .
- the serial task doesn't acces to the heap, no dynamic allocation.
If i run only the lcdtask no problem but if i add the serialTask the program crashes when meeting free
function but why (the serial task doesn't acces to the heap).
You know debugging the free
function is difficult since it doesn't return.
Could you please help me find roads to find the source of the problem
Have you seen this page? http://www.freertos.org/a00111.html
Ok Thank you for the reference
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.