Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

README.md: Replace ${PROBE_RUN_CHIP} in code example #190

Merged
merged 2 commits into from
May 7, 2021

Conversation

bobmcwhirter
Copy link

The example makes it look like using a literal ${PROBE_RUN_CHIP} in the config is viable, while it seems to not actually be.

The example makes it look like using a literal `${PROBE_RUN_CHIP}` in the `config` is viable, while it seems to not actually be.
@Urhengulas Urhengulas changed the title Update README.md README.md: Replace ${PROBE_RUN_CHIP} in code example May 6, 2021
@Urhengulas
Copy link
Member

Hi @bobmcwhirter, Thank you for your PR!

What would you think about the following slightly adapted version of yours? Is it clear enough?


Add this line to your Cargo configuration file (.cargo/config) and replace ${PROBE_RUN_CHIP} with the particular --chip value:

[target.'cfg(all(target_arch = "arm", target_os = "none"))']
runner = "probe-run --chip ${PROBE_RUN_CHIP}"

For example, one would use nRF52840_xxAA for the nRF52840 microcontroller.
To list all supported chips run probe-run --list-chips.

@bobmcwhirter
Copy link
Author

Sure, works for me!

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@Urhengulas
Copy link
Member

bors r+

@Urhengulas
Copy link
Member

Thank you @bobmcwhirter! 😁

@bors bors bot merged commit 4701ed2 into knurling-rs:main May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants