Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add board_upload_target option #30

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

episource
Copy link
Contributor

@episource episource commented Feb 28, 2022

Successful upload via openocd requires a core to be selected. Most recent raspberrypi-openocd has a default selection of core 0 builtin, but the version currently deployed by platformio is missing this preselection. Hence the selection must be made externally.

This PR introduces an option board_upload_target to select the target via platform.ini. Additionally, the default value of recent openocd builds (rp2040.core0) is replicated as default value.

Without targets being selected, flash programming will fail with an error similiar to Warn : no flash bank found for address 0x... .

@episource episource changed the title Add upload_target option Add board_upload_target option Mar 1, 2022
@episource
Copy link
Contributor Author

There's also a branch with all my PR's merged together: https://github.com/episource/platform-raspberrypi/tree/my-platform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant