GrumpyOldPizza / ArduinoCore-stm32l0

Arduino Core for STM32L0
125 stars 67 forks source link

Gnat USB Problem #197

Open DiegoVelosa opened 2 years ago

DiegoVelosa commented 2 years ago

I connect the Gnat and it recognizes the port but when I upload the program it compiles well but generates an error: "An error occurred while sending the sketch" and disconnects the Gnat from the port on the Arduino. I already did the reset process with the buttons but it doesn't work. I did the whole driver installation process and it still doesn't work.

DanielArnett commented 2 years ago

Do the reset process:

toggle the RESET button while holding down the BOOT button and program

but this time upload the simplest working sketch you can find, preferably something like the standard Arduino 'Blink' sketch.

I get the issue you're having a lot. Even when my sketch is working fine it will occasionally glitch out on me like this. The process of uploading any other working sketch seems to do the trick for me (with the correct Board chosen in the arduino menu, and after doing the BOOT button reset).

Hopefully you got passed this by now.