Been struggeling the whole day with my first Particle device, previously used Arduinos and ESP devices. Some facts which help:
- used device, probably still claimed under someones account I do not know
- I will use my own SIM
- Web IDE did not work as I can't claim the device, so I used CLI.
What I did:
Step1) - download blink-an-led.ino
file from web IDE.
Step2) - compile it in CLI using commands particle compile electron blink-an-led.ino
Results is
Compiling code for electron
Including:
blink-an-led.inoCompile succeeded.
Memory use:
Flash RAM
4368 1540Saved firmware to: xxx/electron_firmware_1701004269926.bin
Step3) Put device in DFU manually and flash it using USB cable particle flash -v --usb electron_firmware_1701004269926.bin
.
Successful result:
Flashing electron device xxx
[█████████████████████████] 100% | Flashing electron_firmware_1701004269926.bin
Flash success!
D7 LED does not start blinking. Only the status LED blinks all the time blue, but that's not the LED i'm trying to address via this program.
I used serial monitor and few times randomly it asked me to enter 63-digit claim code in the serial monitor. I could enter random digits and it would say laim code set.
Not sure if related, why and how this even comes up.
Updated FW via CLI to newest. Have done resets etc.
So how to flash a simple blink to the device?