I’ve gotten it to compile just fine, but it won’t upload to my device.
My platformio.ini file looks like this:
[env:wiscore_rak4631]
platform = nordicnrf52
board = wiscore_rak4631
framework = arduino
lib_deps = beegee-tokyo/SX126x-Arduino@^2.0.16
upload_port=/dev/cu.debug-console
And my error message is:
raise NordicSemiException(“No data received on serial port. Not able to proceed.”)
nordicsemi.exceptions.NordicSemiException: No data received on serial port. Not able to proceed.
Possible causes:
Selected Bootloader version does not match the one on Bluefruit device.
Please upgrade the Bootloader or select correct version in Tools->Bootloader.
Baud rate must be 115200, Flow control must be off.
Target is not in DFU mode. Ground DFU pin and RESET and release both to enter DFU mode.
Did you try a different USB port?
If you use an external USB hub, don’t connect the RAK4631 to the hub, instead connect it directly to your Mac.
Did you try a different USB cable?
Can you try a different computer?
Can you remove the
upload_port=/dev/cu.debug-console
from your platformio.ini file. That is definitely wrong. PIO will find the correct port by itself.