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

update devcontainer to support flashing #90

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cargo/config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
# This runner needs to be parametric so we can pass in the chip name
runner = "probe-run --chip ATSAME51J20A --protocol swd"
runner = "probe-rs run --chip ATSAME51J20A --protocol swd"

rustflags = [
"-C", "link-arg=-Tlink.x",
Expand Down
5 changes: 3 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM mcr.microsoft.com/devcontainers/rust:0-1-bullseye

ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get upgrade -y && apt-get install -y cmake
RUN apt-get update && apt-get upgrade -y && apt-get install -y cmake pkg-config libusb-1.0-0-dev libftdi1-dev libudev-dev libssl-dev

# Install ARM GCC deps
RUN mkdir -p toolchain && \
curl -L "https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-arm-none-eabi.tar.xz" \
| tar --strip-components=1 -xJ -C toolchain
| tar --strip-components=1 -xJ -C toolchain && \
cargo install --locked probe-rs --features cli,ftdi
ENV PATH="${PATH}:/toolchain/bin"
4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
"features": {
"ghcr.io/lee-orr/rusty-dev-containers/cargo-make:latest": {}
},
"remoteUser": "root"
"remoteUser": "root",
"runArgs": ["--privileged"]

}
Loading