RAK Wisblock and PlatformIO

We recently discovered the PlatformIO IDE which runs within the Microsoft Visual Studio Code environment. (Yes, we have been living in a cave suffering with the aging Arduino IDE).

If you are developing any Helium projects we highly recommend this platform over the Arduino IDE. Here is a link to some great instructions to help you get started using PlatformIO with the RAK Wisblock 4631.

Compile times are much reduced when compared to the Arduino IDE.

When initially installing we ran into some difficulties because the framework-arduinoadafruitnrf52 was not present as was indicated in the instructions linked above. When we tried to compile our first sample file we got some errors because variants.h wasn’t where it was expected. After a bit of research we recopied the WisCore_RAK4631_Board folder into the variants folder and everything began working splendidly.

Another issue we encountered when first compiling was an error on the statement: Serial.begin(115200); again after a bit of research we found that you need to explicitly add #include “Adafruit_TinyUSB.h” (see https://github.com/platformio/platform-nordicnrf52/issues/119)

If you’re new to PlatformIO the image bottom status bar below will give you a few hints when getting started:

Leave a comment

Your email address will not be published. Required fields are marked *

+ thirty = thirty eight