I have a wixel shield that I used with my Uno for a previous project. It was extremely useful because I was able to seamlessly upload sketches and debug wirelessly. Going through the manual for the shield I understood that it only needs to connect to 5 pins of the arduino (5V, GND, RESET,TX & RX). I first attempted connected these 5 pins alone (instead of plugging the entire shield) with my Uno and the wireless functionalities worked perfectly. However, when I try to do the same with the Arduino Nano rp2040 connect, I get the "Error while uploading the sketch" message in the IDE. Can someone help me understand if there a simple solution I am missing or are the two (rp2040 and shield) just not compatible?
The things I have tried till now are:
switching from one of the reset pins to the other.
Double clicking the reset button on the Nano to enter bootlander mode before uploading the sketch.
Hi @arvindrk. In order to gather more information that might help us to troubleshoot your problem, I'm going to ask you to post the full output from the upload when in verbose mode.
Please do this:
Select File > Preferences from the Arduino IDE's menus.
Uncheck the checkbox next to Show verbose output during: [] compilation
Check the checkbox next to Show verbose output during: [] upload.
Click the OK button.
Attempt an upload, as you did before.
After the upload fails, you'll see a button on the right side of the orange bar in the Arduino IDE: Copy error messages. Click that button.
This copies the full output to the clipboard.
Open a forum reply here by clicking the Reply button.
Click the </> 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 Ctrl+V.
This will paste the error output from the upload into the code block.
Move the cursor outside of the code tags before you add any additional text to your reply.
I did as you suggested. This is the error I get when I execute a program. Wixel is connected to COM 9.
Arduino: 1.8.13 (Windows 10), Board: "Arduino Nano RP2040 Connect"
Sketch uses 18228 bytes (0%) of program storage space. Maximum is 16777216 bytes.
Global variables use 44620 bytes (16%) of dynamic memory, leaving 225716 bytes for local variables. Maximum is 270336 bytes.
Forcing reset using 1200bps open/close on port COM9
C:\Users\arvin\AppData\Local\Arduino15\packages\arduino\tools\rp2040tools\1.0.2/rp2040load -v -D C:\Users\arvin\AppData\Local\Temp\arduino_build_714684/Ultrasonic.ino.elf
rp2040load 1.0.1 - compiled with go1.15.8
.....................
An error occurred while uploading the sketch
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
So, for anyone who finds themselves having a similar problem, I found a solution. When I clicked the reset button (reset of the nano or the shield works) 10 times and then tried to upload the program, it went smoothly and the message I got from the system is shown below.
Sketch uses 18504 bytes (0%) of program storage space. Maximum is 16777216 bytes.
Global variables use 47528 bytes (17%) of dynamic memory, leaving 222808 bytes for local variables. Maximum is 270336 bytes.
Forcing reset using 1200bps open/close on port COM9
C:\Users\arvin\AppData\Local\Arduino15\packages\arduino\tools\rp2040tools\1.0.2/rp2040load -v -D C:\Users\arvin\AppData\Local\Temp\arduino_build_132885/quad_DXB_Test.ino.elf
rp2040load 1.0.1 - compiled with go1.15.8
Loading into Flash: [==============================] 100%