Skip to content

Uploading to Pico - missing rp2040load file #207

@santaimpersonator

Description

@santaimpersonator

I installed the Arduino Core for the RP2040 through the board manager, but I am having issues uploading the blink sketch onto the board.

  • I have installed the latest version available through the board manager:
    rp2040_installed

  • This is the current error output. The code compiles fine, there seems to be a rp2040load file/tool missing:

    Sketch uses 80072 bytes (0%) of program storage space. Maximum is 16777216 bytes.
    
    Global variables use 52920 bytes (19%) of dynamic memory, leaving 217416 bytes for local variables. Maximum is 270336 bytes.
    
    java.io.IOException: Cannot run program "C:\Users\<username>\Documents\ArduinoData\packages\arduino\tools\rp2040tools\1.0.2/rp2040load": CreateProcess error=2, The system cannot find the file specified
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
        at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:26)
        at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:129)
        at cc.arduino.packages.uploaders.SerialUploader.runCommand(SerialUploader.java:383)
        at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:197)
        at cc.arduino.UploaderUtils.upload(UploaderUtils.java:77)
        at processing.app.SketchController.upload(SketchController.java:732)
        at processing.app.SketchController.exportApplet(SketchController.java:703)
        at processing.app.Editor$UploadHandler.run(Editor.java:2055)
        at java.lang.Thread.run(Thread.java:748)
    
    Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
        at java.lang.ProcessImpl.start(ProcessImpl.java:137)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
        ... 9 more
    
    An error occurred while uploading the sketch
    
  • I double checked for the rp2040load file/folder in the specified location:
    tools_folder
    rp2040tools_folder
    tools

  • This is the full verbose text:

I did try to run the post install script, as mentioned in another issue #191 (comment). However, I ran the batch file instead of the shell script because I am working on a Windows 10 computer. Should I have run the shell script through WSL2 as well?

batch_file

Should I have manually installed the Arduino core with these instructions?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions