After few weeks without any issue, today I got the rtos.h not found error again. After some research, I found out my platformio seems confused with compiler flags:
[env:MainController] platform = ststm32 board = nucleo_f446re framework = mbed upload_port=/dev/cu.usbmodem14733 src_filter = +<*> +<MainController> -<Device*> build_flags = -D PIO_FRAMEWORK_MBED_RTOS_PRESENT [env:Device1] platform = ststm32 board = nucleo_f446re framework = mbed upload_port=/dev/cu.usbmodem14713 src_filter = +<*> -<MainController> -<*Test> +<Device1> [platformio] default_envs = Device1 , MainController
produce rtos.h not found.
- How would I solve that without adding an extra build_flags ?
- I noticed all the upload goes to one board only, usually Device1 instead of their own respective board whatever the upload option i’m choosing. I need to disconnect the unwanted board to upload the code.
Thanks for your help!