I have been having terrible luck uploading a sketch.
It initially was able to upload (I am using the ASB as the SVL was giving an error) the I2C sketch example, though I had to make some changes to get it to compile. Then it wouldn't connect to the serial port. Unplugging the board fixed this.
Then I was having a hard time uploading again. I tried just going back to the blink sketch. It would not upload, but eventually, after trying repeatedly it started to run blink even after no successful upload.
Now I can't get anything to upload after trying over and over. Tried the SVL again, tried different USB ports, resetting the Artemis and powering down and up with the PW-SW header. No luck.
I tried to bootload it then and I am getting this error in Arduino.'
Arduino: 1.8.12 (Windows 10), Board: "RedBoard Artemis Nano, 921600, Ambiq Secure Bootloader (Advanced)" java.lang.NullPointerException at cc.arduino.packages.uploaders.SerialUploader.burnBootloader(SerialUploader.java:329) at processing.app.Editor.lambda$handleBurnBootloader$61(Editor.java:2366) at java.lang.Thread.run(Thread.java:748) Error while burning bootloader.