How to run FreeRTOS in PlatformIO with RAK4631?

Please include the following information, in order for us to help you as effectively as possible.

  • What product do you wish to discuss? RAK4631

  • What firmware are you using? V4.1 PlatformIO in VSCode

  • What firmware version? V4.1

  • Computer OS? (MacOS, Linux, Windows) Windows

  • What Computer OS version? Windows 11

  • How often does the problem happen? Always

  • How can we replicate the problem? Yes

  • Provide source code if custom firmware is used or link to example if RAKwireless example code is used.

I am trying to test FreeRTOS with RAK4631, and I know that I had to run Python script created by RAKWireless to configure the support support to these boards.

What I need to do to have the support for FreeRTOS?

Regards,

Claudio

Blockquote
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; Redirecting...
[platformio]
default_envs = wiscore_rak4631
[env:wiscore_rak4631]
platform = nordicnrf52
board = wiscore_rak4631
;framework = arduino
framework = freertos
lib_deps =
beegee-tokyo/SX126x-Arduino @ ^2.0.23
monitor_port = COM[8]
monitor_speed = 115200
monitor_dtr = 1
monitor_rts = 1
;build_flags =
; -DSW_VERSION=0.01

Blockquote

Blockquote
Verbose mode can be enabled via -v, --verbose option
CONFIGURATION: https://docs.platformio.org/page/boards/nordicnrf52/wiscore_rak4631.html
PLATFORM: Nordic nRF52 (10.3.0) > WisCore RAK4631 Board
HARDWARE: NRF52840 64MHz, 243KB RAM, 796KB Flash
DEBUG: Current (jlink) External (jlink, stlink)
PACKAGES:

  • framework-cmsis @ 2.50700.210515 (5.7.0)
  • tool-adafruit-nrfutil @ 1.503.0 (5.3)
  • tool-sreccat @ 1.164.0 (1.64)
  • toolchain-gccarmnoneeabi @ 1.70201.0 (7.2.1)
    Error: This board doesn’t support freertos framework!
    ========================== [FAILED] Took 0.85 seconds =========================

Blockquote

The Adafruit Nordic nRF52 platform does not support FreeRTOS framework:

But the Arduino framework has FreeRTOS built in. You can use tasks, semaphores, queues, …

Thank you very much !

I already running with SUCCESS with FreeRTOS partial code (blink LED with :slight_smile: and your code to read pressure with a 4-20mA pressure transducer!