Skip to content
This repository was archived by the owner on Apr 11, 2021. It is now read-only.

Add quick start for linux and example for timer #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

chernomor
Copy link

examples/timer2.rs - example with two CCR and some comments :) May be it will be usefull for somebody.

@pftbest
Copy link
Contributor

pftbest commented May 24, 2018

looks good to me, thank you

@trainman419
Copy link

I read through your README, and it's a lot better than most of the other docs I've found so far!

I must be missing something, because when xargo rustc --target=msp430-none-elf --release is done, there aren't any binaries in the target directory. (xargo appears to have succeeded)

Full run:

$ xargo rustc --target msp430-none-elf --release 
   Compiling core v0.0.0 (file:///home/austin/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore)
    Finished release [optimized] target(s) in 25.48s
   Compiling compiler_builtins v0.1.0 (file:///home/austin/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcompiler_builtins)
    Finished release [optimized] target(s) in 2.09s
    Finished release [optimized] target(s) in 0.01s
$ find target
target
target/.rustc_info.json
target/release
target/release/examples
target/release/build
target/release/incremental
target/release/.fingerprint
target/release/native
target/release/deps
target/release/.cargo-lock
target/msp430-none-elf
target/msp430-none-elf/release
target/msp430-none-elf/release/examples
target/msp430-none-elf/release/build
target/msp430-none-elf/release/incremental
target/msp430-none-elf/release/.fingerprint
target/msp430-none-elf/release/native
target/msp430-none-elf/release/deps
target/msp430-none-elf/release/.cargo-lock

@pftbest
Copy link
Contributor

pftbest commented Jun 15, 2018

@trainman419 I think you forgot to pass --examples flag. or --example=timer2

@chernomor
Copy link
Author

@trainman419 I just copy examples/timer.rs to src/main.rs and than build :)

@trainman419
Copy link

That worked! Thanks!

(now I'm running into https://github.com/pftbest/msp430-rt/issues/2 on rust-nightly, but that seems like a different issue)

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.

3 participants