I have several SEEED rp2040 boards, and have tried to run and compile simple code, such as Blink.ino
I know that this sounds like a newbie question, but I am very familiar with Arduino with other boards. I am stuck on the RP2040.
The board and port are recognized properly. When I press the upload button in verbose mode, I receive the following output, which does not indicate any errors:
========
Sketch uses 58848 bytes (2%) of program storage space. Maximum is 2093056 bytes.
Global variables use 9640 bytes (3%) of dynamic memory, leaving 252504 bytes for local variables. Maximum is 262144 bytes.
"/Users/mscohen/Library/Arduino15/packages/rp2040/tools/pqt-python3/1.0.1-base-3a57aed-1/python3" -I "/Users/mscohen/Library/Arduino15/packages/rp2040/hardware/rp2040/4.7.1/tools/uf2conv.py" --serial "/dev/cu.usbmodem1101" --family RP2040 --deploy "/Users/mscohen/Library/Caches/arduino/sketches/096FF690349861577FA559168E3166DD/Blink.ino.uf2"
Resetting /dev/cu.usbmodem1101
Converting to uf2, output size: 151040, start address: 0x2000
Scanning for RP2040 devices
Flashing /Volumes/RPI-RP2 (RPI-RP2)
Wrote 151040 bytes to /Volumes/RPI-RP2/NEW.UF2
======
However the program does not run at all. I have tried this on 3 XIAO boards. I have the same problem with other skeleton programs. For example:
Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'
Use code tags (the < CODE/ > icon above the compose window) to make it easier to read and copy for examination
Please post your full sketch, using code tags when you do
Posting your code using code tags prevents parts of it being interpreted as HTML coding and makes it easier to copy for examination
In my experience the easiest way to tidy up the code and add the code tags is as follows
Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.
It is also helpful to post error messages in code tags as it makes it easier to scroll through them and copy them for examination
Does it require an external USB/UART adaptor ?
Anyway, try first to start with the example to blink a led. If that works then proceed with the sketch to write to the serial monitor.