Macropad Not Working with Arduino

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
legohead259
 
Posts: 4
Joined: Mon Nov 12, 2018 12:51 pm

Macropad Not Working with Arduino

Post by legohead259 »

Hello, I am playing around with the Adafruit Macropad and am running into issues uploading Arduino code to it. When I try to upload a sketch, I get the following error:

Code: Select all

[Starting] Uploading sketch 'examples\AdafruitMacropadDemo.ino'
[Warning] Output path is not specified. Unable to reuse previously compiled files. Build will be slower. See README.
Loading configuration...
Initializing packages...
Preparing boards...
Verifying...
Uploading...
Resetting COM9
Converting to uf2, output size: 165888, start address: 0x2000
No drive to deploy.
An error occurred while uploading the sketch
IntelliSense configuration already up to date. To manually rebuild your IntelliSense configuration run "Ctrl+Alt+I"
[Error] Uploading sketch 'examples\AdafruitMacropadDemo.ino': Exit with code=1
It was just working earlier but it broke after I modified the factory example to use the speaker.

I would seriously appreciate any help debugging this!

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: Macropad Not Working with Arduino

Post by adafruit_support_mike »

Enable verbose messages during upload in the Arduino IDE’s preferences, then try another upload.

When you see lines that begin with ‘PORTS’ start scrolling past, double-click the reset button to force the RP2040 to reboot and open a new USB connection. That usually gets things working again.

User avatar
RufusVS2020
 
Posts: 63
Joined: Thu Nov 19, 2020 6:31 pm

Re: Macropad Not Working with Arduino

Post by RufusVS2020 »

Be careful when enabling the speaker with Macropad! Unless the libraries have been updated, I noticed
a contention between the NeoPixels and the tone generator. I modified the rp2040c code so they wouldn't
contend, but not sure how that might affect other libraries. I just know that with this change the demo code
works WITH speakers.

The thread is here: viewtopic.php?f=59&t=181797

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

Return to “Arduino”