On Saturday, August 13, 2022 we will be working on the Adafruit Customer Support Forums. If you visit over the weekend and things are not complete yet, please check back later, https://adafruit.com/forumupdates
0

problem uploading sketches after updating libraries
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

problem uploading sketches after updating libraries

by Y_Wang on Mon Jul 04, 2022 11:32 am

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

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

Re: problem uploading sketches after updating libraries

by dastels on Mon Jul 04, 2022 12:19 pm

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

Dave

dastels
 
Posts: 10578
Joined: Tue Oct 20, 2015 3:22 pm

Re: problem uploading sketches after updating libraries

by Y_Wang on Mon Jul 04, 2022 1:10 pm

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?

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

Re: problem uploading sketches after updating libraries

by dastels on Mon Jul 04, 2022 3:38 pm

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

dastels
 
Posts: 10578
Joined: Tue Oct 20, 2015 3:22 pm

Re: problem uploading sketches after updating libraries

by Y_Wang on Tue Jul 05, 2022 5:02 am

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.

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

Re: problem uploading sketches after updating libraries

by dastels on Tue Jul 05, 2022 10:26 am

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

dastels
 
Posts: 10578
Joined: Tue Oct 20, 2015 3:22 pm

Re: problem uploading sketches after updating libraries

by Y_Wang on Tue Jul 05, 2022 4:52 pm

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.

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

Please be positive and constructive with your questions and comments.