"Please setup environments in `platformio.ini` file" failed


Hi everyone,

I’m trying to compile and run the following code on a RAK811 BreakBoard : https://github.com/Ebiroll/RAK811_BreakBoard. This code is made to be downloaded and used precisely for this board. I’m using Atom on windows 10 and the project is opened with PlatformIO.

I got the following error when trying to compile the project :

pio run
Error: Please setup environments in platformio.ini file

Here is what my platformio.ini file looks like :

env_default = rak811
boards_dir = .

lib_dir = lib
src_dir = src, src/RAK811BreakBoard/
lib_extra_dirs = crypto , radio/sx1276 , wakeup
lib_deps = system_utils, obme280, wakeup
platform = ststm32
board = rak811
build_flags = -g -fno-builtin -D STM32L151xB -D STM32L151CBU6 -D REGION_EU868 -D USE_HAL_DRIVER -std=gnu99 -I lib/wakeup -I lib/crypto -I lib/radio -I lib/radio/sx1276 -I src/mac -I src/usb/dfu/inc -I src/mac/region -I lib/system_utils/crypto -I src/boards/mcu/stm32/STM32_USB_Device_Library/Class/DFU/Inc/ -I src/boards/mcu/stm32/STM32_USB_Device_Library/Class/CDC/Inc/ -I src/usb/cdc/inc -I src/boards/mcu/stm32/STM32_USB_Device_Library/Core/Inc/ -I src/boards/mcu/stm32/STM32L0xx_HAL_Driver/Inc/ -I src/peripherals/ -I src/boards/mcu/stm32/ -I src/boards/mcu/stm32/STM32L1xx_HAL_Driver/Inc -I src/RAK811BreakBoard/cmsis/ -I src/RAK811BreakBoard/ -IRAK811_BreakBoard/src -I lib/system_utils -I RAK811_BreakBoard/src/boards/RAK811BreakBoard -I RAK811_BreakBoard/src/boards/RAK811BreakBoard/cmsis -I .piolibdeps/mbed-dev_ID2491/targets/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/device/ -I RAK811_BreakBoard/src/boards/mcu/stm32/cmsis/ -I RAK811_BreakBoard/src/boards/mcu/stm32/STM32L1xx_HAL_Driver/Inc -I RAK811_BreakBoard/src/boards/mcu/stm32 -I RAK811_BreakBoard/src/system/ -I RAK811_BreakBoard/src/radio -I RAK811_BreakBoard/src/peripherals/ -I RAK811_BreakBoard/src/mac -I RAK811_BreakBoard/src/mac/region/

-> so it’s pretty much untouched compared to the original .ini file, what do I need to add to make it compile ? I hope I gave you enough information to understand my issue.

Many thanks,