Wisblock 4 environmental kit compiling issues

Dear forum

I have issues getting the Wisblock 4 environmental kit to work.
Followed all the instructions and also searched for an answer in the forum but it did not work out for me. Hopefully you are willing to help me.

As said I have an EU868 Wisblock kit 4, running firmware v4.1.0_RAK4631
I downloaded Arduino IDE v2.3.4

have installed additional boards managers:
https://raw.githubusercontent.com/RAKwireless/RAKwireless-Arduino-BSP-Index/main/package_rakwireless_com_rui_index.json
https://raw.githubusercontent.com/RAKwireless/RAKwireless-Arduino-BSP-Index/main/package_rakwireless_index.json

selected board WisBlock core RAK4631

first I tried the demo code for the BME680. It compiles and uploads and works. So I’m pretty sure the IDE is working as intended.

Than I tried the demo environmental sensor with LoRa.

downloaded the correct libraries and changed the OTAA keys accordingly (for sure MSB :wink: )

during compiling i get the following error:

In file included from c:\Users\camiel.BASBV\OneDrive - Concrefy bv\Documenten\Arduino\libraries\SX126x-Arduino\src/mac/LoRaMacHelper.h:26,
from c:\Users\camiel.BASBV\OneDrive - Concrefy bv\Documenten\Arduino\libraries\SX126x-Arduino\src/LoRaWan-Arduino.h:17,
from c:\Users\camiel.BASBV\OneDrive - Concrefy bv\Documenten\Arduino\libraries\SX126x-Arduino\src/LoRaWan-RAK4630.h:1,
from C:\Users\camiel.BASBV\OneDrive - Concrefy bv\Documenten\Arduino\wisblock4-01_cb250124\wisblock4-01_cb250124.ino:12:
c:\Users\camiel.BASBV\OneDrive - Concrefy bv\Documenten\Arduino\libraries\SX126x-Arduino\src/mac/Commissioning.h:40:2: error: #error “SX126x-Arduino V2.0 does support all LoRaWAN regions without definition of 'REGION_XXYYY.\n\nPlease read detailed information how to use it on SX126x-Arduino/README_V2.md at master · beegee-tokyo/SX126x-Arduino · GitHub
40 | #error “SX126x-Arduino V2.0 does support all LoRaWAN regions without definition of 'REGION_XXYYY.\n\nPlease read detailed information how to use it on SX126x-Arduino/README_V2.md at master · beegee-tokyo/SX126x-Arduino · GitHub
| ^~~~~
exit status 1

Compilation error: exit status 1

What to do?

Thank you for your help in advance

BR, Camiel Berkers
The Netherlands

v4.1.0_RAK4631 looks like RUI3
This means RUI3 BSP ==> https://raw.githubusercontent.com/RAKwireless/RAKwireless-Arduino-BSP-Index/main/package_rakwireless_com_rui_index.json

selected board WisBlock core RAK4631
Is correct for RUI3 board

BUT

The WisBlock Core RAK4631 that comes with the WisBlock Kit 4 comes with the Arduino bootloader, not with the RUI3 bootloader.

1 Like

Thanks Bernd!

You pushed me in the right direction, after changing the boodloader it worked.

I followed this link to change to Arduino bootloader:

https://docs.rakwireless.com/Product-Categories/WisBlock/RAK4631-R/DFU/#converting-rak4631-r-to-rak4631

Thanks again!

I have a RUI3 based example code as well for the WisBlock Kit 4 ==> RUI3-Best-Practice/RUI3-WisBlock-Kit-4 at main · RAKWireless/RUI3-Best-Practice · GitHub

1 Like

Thank you Bernd, I’ll dive into the RUI3 world as well.

Just finished my Arduino application succesfully due to your help and quick repsonse.

Just published a small IAQ application for the RAK1906 and RUI3.

It uses an open source algorithm provided by David Bird to calculate the air quality index without using the closed source Bosch BSEC library.

RUI3-Env-IAQ

This PoC is building a low power IAQ sensor with the Bosch BME680 sensor and RUI3.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.