I’m trying to use freeRTOS for my STM32F429ZI Nucleo board. Since I’m using Arduino framework I downloaded the stm32duino library from PIO Libraries.
I included STM32FreeRTOS.h to my sketch and use a simple serial print example .which i tested on Arduino board, but there is no output on the ST board using PIO.
It’s always safer to look directly at the example code that the concrete library gives you, e.g. at PlatformIO Registry or the direct github. I’ve checked every single example .ino file and they all contain either vTaskStartScheduler() or the CMSIS-RTOSv2 wrapper function for it, osKernelStart(), at the end of setup().
If the code comes from a github repo you might want to consider to open an issue
Good advice thanks Max ,One more issue is that i try to add the freeRTOS sample code to my existing wifi101 sample code(ping example) to see if both works and seems like the wifi doesn’t get initialize .Is it because when we use freeRTOS it give first priorty to the freeRTOS tasks?
Hi Max ,
It seems like as soon as i add freeRTOS library to the wifi example it doesn’t work .I even didn’t include STM32FreeRTOS.h to the wifi example sketch .
first what i did was , create a new project .Add the wifi101 library and use the example ping sketch .
it works .
then i add the freeRTOS library to the same project without even modifying the existing sketch it doesnt work .Stuck at " Attempting to connect to WPA SSID: ABC "
If you had modified the code to use FreeRTOS and you would have created some FreeRTOS task that would run the WiFi stack, it would be important what stack size that task had been created with, because it may have run out of stack. As in
you’re allocating 100 integers (=400 bytes) of stack there for the task.