platformio / platformio/platform-raspberrypi

Temporary solution for FW uploading in windows

Open
#28 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
94
Forks
141
PR merge metrics
No merged PRs in 30d

Description

platformio.ini
[env:pico]
platform = raspberrypi
board = pico
framework = arduino
upload_protocol = mbed
upload_port = E:

platforms/raspberrypi/builder/main.py

`
if upload_protocol == "mbed":

upload_actions = [
    env.VerboseAction(env.AutodetectUploadPort, "Looking for upload disk..."),
    env.VerboseAction(env.UploadToDisk, "Uploading $SOURCE")
]`

must be replaced to

`
if upload_protocol == "mbed":

target_firm = join("$BUILD_DIR", "${PROGNAME}.uf2")	
env.Replace(
    UPLOADER="copy",
    UPLOADERFLAGS=target_firm,
    UPLOADCMD="$UPLOADER $UPLOADERFLAGS $UPLOAD_PORT >NUL")
upload_actions = [env.VerboseAction("$UPLOADCMD", "Uploading $SOURCE")]

`

now uploading works!..

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the mbed upload handling in platforms/raspberrypi/builder/main.py and the [env:pico] settings in platformio.ini. Verify the proposed Windows upload path against the existing upload actions, then confirm that firmware uploads successfully to the Raspberry Pi Pico on Windows.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, raspberry-pi
Domain
build-system, embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.