Open ASL07 opened 5 years ago
i use this for platformio.ini, and it works. DNRF_51822_DEBUG is convenient for debug print output from BLEPeripheral, because BLE doesn't like to be halted by a debugger (don't yet understand why ..)
[env:whatever] platform = nordicnrf51 board = your_board framework = arduino ;-> use S110 softdevice build_flags = -DS110, -DNRF51_S110, -g3, -Og, -DNRF_51822_DEBUG build_unflags = -Os, -O1, -O2, -O3, -g1 lib_deps = BLEPeripheral monitor_speed = 115200
Commenting here in case someone encounters this again with nrf52DK. libdeps can be installed via library manager. I'm using S132.
[env:nrf52_dk]
platform = nordicnrf52 board = nrf52_dk framework = arduino build_flags = -DNRF52_S132 lib_deps = sandeepmistry/BLEPeripheral@^0.4.0
Hi,
After installing the library in PlatformIO (VSCode) I get several compilation errors. Output below. I see that some of them can be caused by not selecting a SoftDevice, however, they are related to Arduino IDE. How can I select a SoftDevice in PlatformIO?