Code runs, but interpreter hangs and crashes with errors

I am running Arduino 1.8.13 on a Sparkfun Inventor's Kit (Arduino Genuino Uno) version 4.1.

For this I am running example code from my SparkFun Inventor's kit. The code runs in that the lights blink on and off for the correct amount of time, but once in a while I get the following errors:

Arduino: 1.8.13 (Windows Store 1.8.42.0) (Windows 10), Board: "Arduino Uno"

Sketch uses 924 bytes (2%) of program storage space. Maximum is 32256 bytes.

Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

An error occurred while uploading the sketch

avrdude: stk500_recv(): programmer is not responding

avrdude: stk500_recv(): programmer is not responding

avr_read(): error reading address 0x0000

read operation not supported for memory "flash"

avrdude: failed to read all of flash memory, rc=-2

avrdude: stk500_recv(): programmer is not responding

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


This error is hard to reproduce, since it comes up occasionally, and I am not sure what is causing it. If anyone can help, that would be appreciated.

Paul

If you search for "windows store ide" you will find quite a few issues.
General recommendation is to uninstall and go with a full install of the desktop version.

Also where possible avoid USB 3.0 ports as they too can cause occasional issues.