2022-03-21 01:31 AM
Hi,
I’m using FreeRTOS + LWIP + FatFS to host an embedded webserver on the STM32F765. Directly from startup the application goes into prvIdleTask, after one iteration through each of my 2 tasks. I believe the error is due to the FreeRTOS variables and ucHeap being placed in the SRAM region when building the application (I’m using CMake). If i explicitly build the files in a specific order to make sure the FreeRTOS stuff is placed in DTCM it seems to work fine. Has anyone else experienced the same/have an explanation as to why this might be happening?
PS: The error also only seems to occur when Dcache is enabled, which I have understood is necessary from a performance perspective.
2022-03-23 11:46 AM
Obviously the D-cache management is missing or broken.
You do understand what an idle task is for? The OS is always "stuck" in it...