I use VScode with the platformIO extension, and im struggling to upload even the built in LED blink code.
CONFIGURATION: https://docs.platformio.org/page/boards/raspberrypi/nanorp2040connect.html
PLATFORM: Raspberry Pi RP2040 (1.18.0) > Arduino Nano RP2040 Connect
HARDWARE: RP2040 133MHz, 264KB RAM, 2MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, jlink, raspberrypi-swd)
PACKAGES:
* framework-arduino-mbed @ 4.4.1
* tool-openocd-raspberrypi @ 2.1100.0 (11.0)
* tool-rp2040tools @ 1.0.2
* toolchain-gccarmnoneeabi @ 1.90201.191206 (9.2.1)
LDF: Library Dependency Finder → https://bit.ly/configure-pio-ldf
LDF Modes: Finder \~ chain, Compatibility \~ soft
Found 42 compatible libraries
Scanning dependencies…
No dependencies
Building in release mode
Compiling .pio\\build\\nanorp2040connect\\src\\main.cpp.o
Linking .pio\\build\\nanorp2040connect\\firmware.elf
Generating UF2 image
elf2uf2 “.pio\\build\\nanorp2040connect\\firmware.elf” “.pio\\build\\nanorp2040connect\\firmware.uf2”
Checking size .pio\\build\\nanorp2040connect\\firmware.elf
Advanced Memory Usage is available via “PlatformIO Home > Project Inspect”
RAM: \[== \] 15.3% (used 41396 bytes from 270336 bytes)
Flash: \[ \] 0.2% (used 4038 bytes from 2097152 bytes)
Configuring upload protocol…
AVAILABLE: cmsis-dap, jlink, picotool, raspberrypi-swd
CURRENT: upload_protocol = picotool
Looking for upload port…
Auto-detected: COM3
Forcing reset using 1200bps open/close on port COM3
Uploading .pio\\build\\nanorp2040connect\\firmware.elf
rp2040load 1.0.1 - compiled with go1.15.8
…
\*\*\* \[upload\] Error 1
============================================================ \[FAILED\] Took 19.55 seconds ============================================================
* The terminal process “C:\\Users\\charl.platformio\\penv\\Scripts\\platformio.exe ‘run’, ‘–target’, ‘upload’” terminated with exit code: 1.
This is the error code I keep getting. This is my first time using PlatformIO so help would be much appreciated.
If you need any more info, ask and I will reply asap. Thanks