config.toml 933 B

1234567891011121314151617181920212223242526272829
  1. [target.'cfg(all(target_arch = "arm", target_os = "none"))']
  2. # Choose a default "cargo run" tool:
  3. # - probe-run provides flashing and defmt via a hardware debugger
  4. # - cargo embed offers flashing, rtt, defmt and a gdb server via a hardware debugger
  5. # it is configured via the Embed.toml in the root of this project
  6. # - elf2uf2-rs loads firmware over USB when the rp2040 is in boot mode
  7. # runner = "probe-run --chip RP2040"
  8. # runner = "cargo embed"
  9. runner = "elf2uf2-rs -d"
  10. rustflags = [
  11. "-C", "linker=flip-link",
  12. "-C", "link-arg=--nmagic",
  13. "-C", "link-arg=-Tlink.x",
  14. "-C", "link-arg=-Tdefmt.x",
  15. # Code-size optimizations.
  16. # trap unreachable can save a lot of space, but requires nightly compiler.
  17. # uncomment the next line if you wish to enable it
  18. # "-Z", "trap-unreachable=no",
  19. "-C", "inline-threshold=5",
  20. "-C", "no-vectorize-loops",
  21. ]
  22. [build]
  23. target = "thumbv6m-none-eabi"
  24. [env]
  25. DEFMT_LOG = "debug"