problem uploading sketches after updating libraries

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Y_Wang
 
Posts: 4
Joined: Mon Jul 04, 2022 10:29 am

problem uploading sketches after updating libraries

Post by Y_Wang »

Greetings to everyone,

I have problems with uploading sketches after updating libraries today and really need your help.

I didn't change anything from the code (sketch), only some libraries were updated today. Before the update, the code was running just fine, but now I can't upload to the Adafruit feather M0 board. So the board is still running with the last uploaded sketch, which means the USB cable and other connections should still be intact.
The board should simply drive a DC motor forwardly and reversely, and control the speed by using a PWM-signal.

Here are some information about the hardware and software I used:
- Adafruit Feather M0 Basic Proto
- connected with Terminal Block Breakout FeatherWing
- Pololu DRV8838 Single Brushed DC Motor Driver Carrier: https://www.pololu.com/product/2990
- DC Motor: for example https://www.sol-expert-group.de/1zu87mo ... anguage=de
- 5V power supply, USB-cable
Software: Arduino IDE 1.8.19, Windows 11, x64

Error:
Arduino: 1.8.19 (Windows 10), Board: "Adafruit Feather M0 (SAMD21), Small (-Os) (standard), Arduino, Off"
Couldn't find a Board on the selected port. Check that you have the correct port selected.
If it is correct, try pressing the board's reset button after initiating the upload.
Could you please help me with the problem?
I appreciate any tips!

Kind regards,
Y_Wang

User avatar
dastels
 
Posts: 15662
Joined: Tue Oct 20, 2015 3:22 pm

Re: problem uploading sketches after updating libraries

Post by dastels »

Try existing and restarting Arduino if you haven't. Try a different USB port on the computer if you haven't.

Dave

User avatar
Y_Wang
 
Posts: 4
Joined: Mon Jul 04, 2022 10:29 am

Re: problem uploading sketches after updating libraries

Post by Y_Wang »

dastels wrote:Try existing and restarting Arduino if you haven't. Try a different USB port on the computer if you haven't.

Dave
Thank you for your reply, Dave.

I already tried restarting Arduino, different USB port, plug-in/plug-out on board multiple times, but it didn't solve the problem somehow.
Is there anything else I could try?

User avatar
dastels
 
Posts: 15662
Joined: Tue Oct 20, 2015 3:22 pm

Re: problem uploading sketches after updating libraries

Post by dastels »

If it is correct, try pressing the board's reset button after initiating the upload.
Did you try that? Maybe a double-press of reset.

Dave

User avatar
Y_Wang
 
Posts: 4
Joined: Mon Jul 04, 2022 10:29 am

Re: problem uploading sketches after updating libraries

Post by Y_Wang »

dastels wrote:
If it is correct, try pressing the board's reset button after initiating the upload.
Did you try that? Maybe a double-press of reset.

Dave
That helped! Problem solved, thank you for your help.

Best regards,
Y. W.

User avatar
dastels
 
Posts: 15662
Joined: Tue Oct 20, 2015 3:22 pm

Re: problem uploading sketches after updating libraries

Post by dastels »

Excellent! That's something to keep in mind. Somethings the bootloader gets in a bad state and Arduino isn't able to properly do a soft reset. In those cases manually getting into the bootloader is required.

Dave

User avatar
Y_Wang
 
Posts: 4
Joined: Mon Jul 04, 2022 10:29 am

Re: problem uploading sketches after updating libraries

Post by Y_Wang »

dastels wrote:Excellent! That's something to keep in mind. Somethings the bootloader gets in a bad state and Arduino isn't able to properly do a soft reset. In those cases manually getting into the bootloader is required.

Dave
Thanks again for your tips! I'll keep that in mind.

Good day,
Y. W.

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”