I’m currently using Adafruit BSP Arduino core to test on a nRF52840 DK board with platformio IDE. I follow these steps to flash a program onto the board -
1: Using the J-Link USB port on the board
- Erase the memory using the “Programmer” app in the “nRF connect for Desktop” suite.
- Burn the Adafruit BSP bootloader onto the board using platformio IDE(or arduino IDE, both work)
- Upload the code using platformio IDE.
2: Switch to the nRF USB serial port on the board
- Run the serial monitor to look at the debug logs
This procedure works. However, I find that every time after flashing a new program, my device can’t detect the serial port anymore to see the debug logs and I suspect the new program doesn’t run either from the looks of LEDs not flashing. Currently, I have to restart the whole procedure from erasing the memory again to make it work again.
I don’t think it should be this difficult. Is there a more convenient way to prototype on a nRF52840 DK board? Maybe just doing everything from platformio IDE? Thanks loads.