Hi
I am trying to upload program to my “Arduino RP4020 Connect” on Windows.
The problem is that upload keeps failing.
Below codes are for platform.ini and upload error messages.
Please help me out.
[env:nanorp2040connect]
platform = raspberrypi
board = nanorp2040connect
framework = arduino
upload_port = D:\
Processing nanorp2040connect (platform: raspberrypi; board: nanorp2040connect; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/raspberrypi/nanorp2040connect.html
PLATFORM: Raspberry Pi RP2040 (1.5.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 2.6.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 31 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio\build\nanorp2040connect\src\main.cpp.o
Generating LD script .pio\build\nanorp2040connect\cpp.linker_script.ld
Compiling .pio\build\nanorp2040connect\FrameworkArduinoVariant\double_tap_usb_boot.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduinoVariant\nina_pins.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduinoVariant\variant.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\Interrupts.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\Serial.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\Tone.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\USB\PluggableUSBDevice.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\USB\USBCDC.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\USB\USBSerial.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\WMath.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\abi.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\api\Common.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\api\IPAddress.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\api\PluggableUSB.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\api\Print.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\api\Stream.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\api\String.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\arm_hal_random.c.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\as_mbed_library\variant.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\itoa.c.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\main.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\mbed\platform\cxxsupport\mstd_mutex.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\pinToIndex.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\wiring.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\wiring_analog.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\wiring_digital.cpp.o
In file included from C:\Users\totoy\.platformio\packages\framework-arduino-mbed@2.6.1\cores\arduino/mbed/targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/rp2040/hardware_regs/include/hardware/platform_defs.h:12,
from C:\Users\totoy\.platformio\packages\framework-arduino-mbed@2.6.1\cores\arduino/mbed/targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/rp2_common/pico_platform/include/pico/platform.h:12,
from C:\Users\totoy\.platformio\packages\framework-arduino-mbed@2.6.1\cores\arduino/mbed/targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/common/pico_base/include/pico.h:19,
from C:\Users\totoy\.platformio\packages\framework-arduino-mbed@2.6.1\variants\NANO_RP2040_CONNECT\double_tap_usb_boot.cpp:2:
C:\Users\totoy\.platformio\packages\framework-arduino-mbed@2.6.1\cores\arduino/mbed/targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/rp2_common/hardware_timer/include/hardware/timer.h: In function 'uint32_t time_us_32()':
C:\Users\totoy\.platformio\packages\framework-arduino-mbed@2.6.1\cores\arduino/mbed/targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/rp2040/hardware_regs/include/hardware/regs/addressmap.h:56:20: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers]
56 | #define TIMER_BASE 0x40054000
| ^~~~~~~~~~
C:\Users\totoy\.platformio\packages\framework-arduino-mbed@2.6.1\cores\arduino/mbed/targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/rp2040/hardware_structs/include/hardware/structs/timer.h:33:38: note: in expansion of macro 'TIMER_BASE'
33 | #define timer_hw ((timer_hw_t *const)TIMER_BASE)
| ^~~~~~~~~~
C:\Users\totoy\.platformio\packages\framework-arduino-mbed@2.6.1\cores\arduino/mbed/targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/rp2_common/hardware_timer/include/hardware/timer.h:66:12: note: in
expansion of macro 'timer_hw'
66 | return timer_hw->timerawl;
| ^~~~~~~~
C:\Users\totoy\.platformio\packages\framework-arduino-mbed@2.6.1\cores\arduino/mbed/targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/rp2_common/hardware_timer/include/hardware/timer.h: In function 'bool time_reached(absolute_time_t)':
C:\Users\totoy\.platformio\packages\framework-arduino-mbed@2.6.1\cores\arduino/mbed/targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/rp2040/hardware_regs/include/hardware/regs/addressmap.h:56:20: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers]
56 | #define TIMER_BASE 0x40054000
| ^~~~~~~~~~
C:\Users\totoy\.platformio\packages\framework-arduino-mbed@2.6.1\cores\arduino/mbed/targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/rp2040/hardware_structs/include/hardware/structs/timer.h:33:38: note: in expansion of macro 'TIMER_BASE'
33 | #define timer_hw ((timer_hw_t *const)TIMER_BASE)
| ^~~~~~~~~~
C:\Users\totoy\.platformio\packages\framework-arduino-mbed@2.6.1\cores\arduino/mbed/targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/rp2_common/hardware_timer/include/hardware/timer.h:110:19: note: in expansion of macro 'timer_hw'
110 | uint32_t hi = timer_hw->timerawh;
| ^~~~~~~~
C:\Users\totoy\.platformio\packages\framework-arduino-mbed@2.6.1\cores\arduino/mbed/targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/rp2040/hardware_regs/include/hardware/regs/addressmap.h:56:20: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers]
56 | #define TIMER_BASE 0x40054000
| ^~~~~~~~~~
C:\Users\totoy\.platformio\packages\framework-arduino-mbed@2.6.1\cores\arduino/mbed/targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/rp2040/hardware_structs/include/hardware/structs/timer.h:33:38: note: in expansion of macro 'TIMER_BASE'
33 | #define timer_hw ((timer_hw_t *const)TIMER_BASE)
| ^~~~~~~~~~
C:\Users\totoy\.platformio\packages\framework-arduino-mbed@2.6.1\cores\arduino/mbed/targets/TARGET_RASPBERRYPI/TARGET_RP2040/pico-sdk/rp2_common/hardware_timer/include/hardware/timer.h:111:33: note: in expansion of macro 'timer_hw'
111 | return (hi >= hi_target && (timer_hw->timerawl >= (uint32_t) target || hi != hi_target));
| ^~~~~~~~
Compiling .pio\build\nanorp2040connect\FrameworkArduino\wiring_pulse.cpp.o
Compiling .pio\build\nanorp2040connect\FrameworkArduino\wiring_shift.cpp.o
Archiving .pio\build\nanorp2040connect\libFrameworkArduinoVariant.a
Archiving .pio\build\nanorp2040connect\libFrameworkArduino.a
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 41360 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...
Use manually specified: D:\
Forcing reset using 1200bps open/close on port D:\
Uploading .pio\build\nanorp2040connect\firmware.elf
rp2040load 1.0.1 - compiled with go1.15.8
.....................
*** [upload] Error 1
====================================================================================== [FAILED] Took 52.18 seconds ======================================================================================