Hi,
I have an issue with my XIAO nRF52840 Sense Plus, this code “runs”:
#define LEDRED (11u)
#define LEDGREEN (12u)
#define LEDBLUE (13u)
void setup() {
pinMode(LEDRED, OUTPUT);
pinMode(LEDGREEN, OUTPUT);
pinMode(LEDBLUE, OUTPUT);
}
void loop() {
digitalWrite(LEDRED, HIGH);
delay(100);
digitalWrite(LEDRED, LOW);
delay(100);
digitalWrite(LEDGREEN, HIGH);
delay(100);
digitalWrite(LEDGREEN, LOW);
delay(100);
digitalWrite(LEDBLUE, HIGH);
delay(100);
digitalWrite(LEDBLUE, LOW);
delay(100);
}
Couple comments about code above:
- The PIN numbers I’m using are not the ones on the schematic, I found these by try/error,
- I do verify, then upload, it says it works but then it does not do anything.
- I then run Sketch → Export Compiled Library
- I had to download Adafruit_nRF52_Bootloader, go to lib/uf2/utils/ and run: python3 uf2conv.py /Users/albertocole/Documents/Arduino/blink_2/build/Seeeduino.mbed.xiaonRF52840SensePlus/blink_2.ino.hex -c -f 0xADA52840
this process is the only way I’ve found to make this thing run code, and on top of that, when I add Serial stuff to try to debug anything, program wont run. I feel like I’m lost with this, just need to know what’s the best way to program with this, I also tried with circuitpython .uf2 (Seeed Studio XIAO nRF52840 (Sense) Download) and it never changed the drive name to CIRCUITPY, so I’m even wondering if I did something to this board that made it unstable/faulty, is there a way to know that?
Thanks in advance