Alright so I’ve got myself thoroughly confused - maybe someone here can show me the light?
I’m trying to program a STM32F407VE MCU with PlatformIO using the stm32cube framework. I’ve got my environment successfully working and I can upload “led blink” code to my dev board using the settings below and it works great.
[env:genericSTM32F407VET6]
platform = ststm32
board = genericSTM32F407VET6
framework = stm32cube
upload_protocol = jlink
Now, I want to use an RTOS. STM provides a folder with a copy of FreeRTOS which supposedly works with my hardware and the stm32cube libraries. This folder includes examples using FreeRTOS on their dev boards but using IAR or some other IDE instead of PlatformIO.
The FreeRTOS folder provided has the normal FreeRTOS structure -> a Source folder with critical files and some sub-folders “CMSIS_RTOS”, “include”, and “portable”. The actual “FreeRTOS.h” file is under the “include” sub-folder. I currently have this entire FreeRTOS folder structure in the “lib” folder in platformIO but (expectedly) this is not working.
Of course I have “FreeRTOS.h” included at the top of my main.c file in “src” of my platformIO project, but on compilation, PlatformIO can’t find any FreeRTOS files.
How do I use FreeRTOS structure with PlatformIO? Can I restructure it somehow so it behaves as a normal library? Can I somehow make platformIO include all of my FreeRTOS sub-directories recursively?
Thanks for the help!