So the sketch I loaded into the board is causing it to constantly crash and reboot. This causes the USB connection to connect and then drop. I really want to just wipe out the sketch that is in the board currently, but I cannot load a new sketch with the IDE (as the connection is not stable). I have tried putting the board into bootloader mode (double tap the reset button) and although I do seem to be able to access that mode, I still cannot load a blank sketch into the board. Tried to do a firmware update (as it says it will wipe the existing sketch) but I cannot get that to work either. Usine the Arduino IDE on Win11 (x64). Searched a lot to try and resolve this, but I still getting nowhere. Any suggestions on what I can try? Thanks!
Hi @cdboar.
I'm going to ask you to post the full verbose output from an upload attempt.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
- Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
The "Preferences" dialog will open. - Uncheck the box next to Show verbose output during:
☑
compilation in the "Preferences" dialog. - Check the box next to Show verbose output during: ☐ upload.
- Click the "OK" button.
- Attempt an upload, as you did before.
- Wait for the upload to fail.
- You will see a "Upload error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
- Open a forum reply here by clicking the "Reply" button.
- Click the
<CODE/>
icon on the post composer toolbar.
This will add the forum's code block markup (```
) to your reply to make sure the error messages are correctly formatted.
- Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
This will paste the error output from the upload into the code block. - Move the cursor outside of the code block markup before you add any additional text to your reply.
- Click the "Reply" button to post the output.
Thanks for helping. I followed your instructions, here is the output:
Sketch uses 27672 bytes (10%) of program storage space. Maximum is 262144 bytes.
Global variables use 3944 bytes (12%) of dynamic memory, leaving 28824 bytes for local variables. Maximum is 32768 bytes.
Performing 1200-bps touch reset on serial port COM8
Waiting for upload port...
Upload port found on COM7
"C:\Users\cboar\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3/bossac.exe" -i -d --port=COM7 -U true -i -e -w -v "C:\Users\cboar\AppData\Local\Temp\arduino\sketches\36F5D6DC9BB548388480BC1C858AEFF2/sketch_jan2a.ino.bin" -R
No device found on COM7
Set binary mode
Send auto-baud
Set binary mode
Failed uploading: uploading error: exit status 1
But please note, the board is connected on COM8 - but as the code on the board runs, crashes, reboots, the connection is going up and down all the time (I can hear it). So when I try to deploy the IDE doesn't see COM8 as being connected (and it seems to think something on COM7 is worth a try- of course that does not work).
As I can't stop the code from running on the board, I get the connection continuing to bounce, the download is unlikely to be successful. I don't know how to get around this.
Thanks!
Does this still happen after you do a double tap of the reset button?
You are correct that the upload would be very difficult while a sketch is running that causes this behavior, but when you activate the bootloader with the double reset, the sketch program no longer runs on the board and so it won't interfere with the upload. This is why the "double tap" technique is used to recover boards from this sort of state.
Yes - I was hopeful when I read about the double-tap on the reset button, and I can see the board go into the right mode - with the LED fading on and off. However, in this mode it doesn't seem the serial connection is still in place, as I still cannot download to the board. I wonder if I should power the board externally (I can give it a 5v supply), then do the double-tap and then plug the USB cable into my PC. I wonder if that might help.
I have tried this a number of times now. The LED on the board starts fading on/off green.
This is the output - I have added to this where the LED stops fading and remains solid green. Not sure if it should do that.
Sketch uses 27672 bytes (10%) of program storage space. Maximum is 262144 bytes.
Global variables use 3944 bytes (12%) of dynamic memory, leaving 28824 bytes for local variables. Maximum is 32768 bytes.
Performing 1200-bps touch reset on serial port COM8 <-- GREEN LED stops fading on/off here.
Waiting for upload port...
No upload port found, using COM8 as fallback
No device found on COM8
"C:\Users\cboar\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0-arduino3/bossac.exe" -i -d --port=COM8 -U true -i -e -w -v "C:\Users\cboar\AppData\Local\Temp\arduino\sketches\36F5D6DC9BB548388480BC1C858AEFF2/sketch_jan2a.ino.bin" -R
Failed uploading: uploading error: exit status 1
Seems like I may have bricked this card and will need to trash it.
Thanks
When you see this, double tap the reset.
Thanks - I tried for about 15mins - hitting Upload, waiting for the message to come up and then double tap on reset - likely just not able to get the timing right. So far - no luck.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.