Giter Club home page Giter Club logo

tc37x-demo's Introduction

Demo code for CAN over AURIX TC375

This demo provides an initial showcase of how to use Rust on AURIX™. The demo is 100% written in Rust and provides

  1. Board clock configuration and distribution
  2. CAN Driver configuration & basic usage scenarios
  3. Basic stack-traces
  4. defmt logging through tricore-probe

Please, be aware that the code presented here is very experimental and only meant to showcase; by no means one should consider this finished or correct

Usage

To initialize: git clone --recurse-submodules https://github.com/veecle/tc37x-demo

To compile the demo HighTec Rust's compiler should be installed. Please register and follow their installation instruction.

Following, the demo can be compiled via cd app && cargo build and subsequently flashed via cargo run over tricore-probe.

We use defmt as our logging framework: by setting the DEFMT_LOG={TRACE, DEBUG, INFO, WARN, ERROR} the probe will do logging (for more details refer to the official project).

Example code

The main.rs comes with two examples:

  • can_with_pins: (disabled by default) assumes two connected devices (a joystick and a motor controller) that talk over CAN. This is unlikely to work given the strict setup; however, the code can be modified to accommodate other scenarios.
  • with_with_loopback: (enabled by default) this makes CAN work in loopback. This runs by default and should give an idea of how sending/receiving works.

VSCode

In order to use rust-analyzer in VSCode, the tricore.core-workspace.RLM_LICENSE should be updated to point to the license path.

License

Licensed under Apache License, Version 2.0

tc37x-demo's People

Contributors

therealfrauholle avatar danielelexir avatar daniel-veecle avatar

Stargazers

Lucas Brendel avatar  avatar  avatar

Watchers

dpl avatar

tc37x-demo's Issues

Linker error building app

Hi. I'm trying to build the app crate.

HighTec toolchain is correctly setup. Everything is compiled, I only get an error at the linking stage:

   Compiling veecle-app v0.1.0 (/home/alepez/workspace/veecle/tc37x-demo/app)
     Running `rustc --crate-name veecle_app --edition=2021 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=e838d5422056e9cf -C extra-filename=-e838d5422056e9cf --out-dir /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps --target tc162-htc-none -C linker=ld.lld -C incremental=/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/incremental -L dependency=/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps -L dependency=/home/alepez/workspace/veecle/tc37x-demo/app/target/debug/deps --extern bitreader=/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libbitreader-dfe018b5b0d3998a.rlib --extern byteorder=/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libbyteorder-c2b739f417384dba.rlib --extern defmt=/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libdefmt-281ccd010a2f56ce.rlib --extern defmt_rtt=/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libdefmt_rtt-244989cca8a4577e.rlib --extern nb=/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libnb-61be059221c34cdd.rlib --extern nos_tricore=/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libnos_tricore-db1c91dacf5da7f8.rlib --extern tc37x_hal=/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libtc37x_hal-8ce0784e6294fc09.rlib --extern tc37x_pac=/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libtc37x_pac-5e4a7efeb9b8f48f.rlib --extern tc37x_rt=/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libtc37x_rt-7d8da96a1c8af5c1.rlib -C link-arg=--nmagic -C link-arg=-Tdefmt.x -C 'link-args=-Llinker-scripts -Ttc37xA_memory.ld' -L /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/build/defmt-97be37d4fab5748f/out -L /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/build/tc37x-rt-ca835c3cf79a2610/out`
error: linking with `ld.lld` failed: exit status: 1
  |
  = note: "ld.lld" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.15boezwgqn8u5k16.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.17q21wm6op34hfh8.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.1h3voecqs9cn6mw9.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.1h9n9r3un91kab6d.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.1hh5xrxslovryehn.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.1kh2eglapcdqyhjq.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.1kvvpxpdo5nv1pa.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.1kyz9z22r5lw0ta5.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.1ufcpu1tdnml3hlp.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.1upm975t69qbg3vh.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.200do9x9elsdwzz9.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.24k8cuhnoyfley3q.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.257im2zgluee8t2r.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.28c7s2ufja6uu677.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.2gsf3od35jvooutl.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.2k2rp82ec5x97o7a.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.2q1y5u2bevrn814e.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.2z598587evxafe9v.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.2zls2wccf8ekhmxm.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.36ujcou6oasn489m.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.3apsqttg5r4xc992.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.3bqngur34fzq6x1c.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.3faypidtlgrw8z18.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.3komw90t4jxm5xlf.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.3lxvwp1s94dk3cr4.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.3o5q30mz3239nakr.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.3q97baa8kviye8sx.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.3tbfrggkwu2oqh60.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.3tgybr2i4sd20td5.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.421x49edwqs0sybi.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.450dys5u12kpasdb.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.45l90pitsauze2up.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.45vlo28g0j9xor7b.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.4c4rcyqcjh38kw5g.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.4d9ebrorlv61qlc3.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.4ru9l0pemoi3ba5x.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.4s76tv6styg2mfj3.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.4wok4mjthzccdla8.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.4zzch1er2z0ee88e.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.5dw41kpkf8pmea66.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.854b6zu83jfivn.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.8bf8ysahav1vttt.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.9al4k24g7ur88ry.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.a2syjllpsw51oo2.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.b5ifez3c609zrey.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.etofebljbb0pzmh.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.mtpysotqra3d4ao.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.r99rgptfvmjeqha.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.shfqg8vooih1ww2.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.tkxi4sgzo9mrg40.rcgu.o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.vziokdh886uz09g.rcgu.o" "--as-needed" "-L" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps" "-L" "/home/alepez/workspace/veecle/tc37x-demo/app/target/debug/deps" "-L" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/build/defmt-97be37d4fab5748f/out" "-L" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/build/tc37x-rt-ca835c3cf79a2610/out" "-L" "/opt/HighTec/toolchains/rust/v0.1.0/lib/rustlib/tc162-htc-none/lib" "-Bstatic" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libbitreader-dfe018b5b0d3998a.rlib" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libcfg_if-54202977f7e7fd43.rlib" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libtc37x_hal-8ce0784e6294fc09.rlib" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libtc37x_rt-7d8da96a1c8af5c1.rlib" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libtc37x_pac-5e4a7efeb9b8f48f.rlib" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libvcell-c39dddde58c6fc96.rlib" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libembedded_hal-a2e2ec776e6e551d.rlib" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libvoid-28ecd27eb2b4498c.rlib" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libnb-527f8a2aabdf9f47.rlib" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libnb-61be059221c34cdd.rlib" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libbyteorder-c2b739f417384dba.rlib" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libnos_tricore-db1c91dacf5da7f8.rlib" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libdefmt_rtt-244989cca8a4577e.rlib" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libcritical_section-7c8675532104fad6.rlib" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libdefmt-281ccd010a2f56ce.rlib" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libbitflags-fad0254f0f821998.rlib" "/opt/HighTec/toolchains/rust/v0.1.0/lib/rustlib/tc162-htc-none/lib/librustc_std_workspace_core-dacca7267720b1fd.rlib" "/opt/HighTec/toolchains/rust/v0.1.0/lib/rustlib/tc162-htc-none/lib/libcore-89df2cb54c98fae4.rlib" "/opt/HighTec/toolchains/rust/v0.1.0/lib/rustlib/tc162-htc-none/lib/libcompiler_builtins-92bb292948899ee9.rlib" "-Bdynamic" "-znoexecstack" "-L" "/opt/HighTec/toolchains/rust/v0.1.0/lib/rustlib/tc162-htc-none/lib" "-o" "/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.elf" "--gc-sections" "--nmagic" "-Tdefmt.x" "-Llinker-scripts" "-Ttc37xA_memory.ld"
  = note: ld.lld: warning: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libbitreader-dfe018b5b0d3998a.rlib: archive member 'lib.rmeta' is neither ET_REL nor LLVM bitcode
          ld.lld: warning: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libcfg_if-54202977f7e7fd43.rlib: archive member 'lib.rmeta' is neither ET_REL nor LLVM bitcode
          ld.lld: warning: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libtc37x_hal-8ce0784e6294fc09.rlib: archive member 'lib.rmeta' is neither ET_REL nor LLVM bitcode
          ld.lld: warning: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libtc37x_rt-7d8da96a1c8af5c1.rlib: archive member 'lib.rmeta' is neither ET_REL nor LLVM bitcode
          ld.lld: warning: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libtc37x_pac-5e4a7efeb9b8f48f.rlib: archive member 'lib.rmeta' is neither ET_REL nor LLVM bitcode
          ld.lld: warning: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libvcell-c39dddde58c6fc96.rlib: archive member 'lib.rmeta' is neither ET_REL nor LLVM bitcode
          ld.lld: warning: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libembedded_hal-a2e2ec776e6e551d.rlib: archive member 'lib.rmeta' is neither ET_REL nor LLVM bitcode
          ld.lld: warning: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libvoid-28ecd27eb2b4498c.rlib: archive member 'lib.rmeta' is neither ET_REL nor LLVM bitcode
          ld.lld: warning: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libnb-527f8a2aabdf9f47.rlib: archive member 'lib.rmeta' is neither ET_REL nor LLVM bitcode
          ld.lld: warning: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libnb-61be059221c34cdd.rlib: archive member 'lib.rmeta' is neither ET_REL nor LLVM bitcode
          ld.lld: warning: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libbyteorder-c2b739f417384dba.rlib: archive member 'lib.rmeta' is neither ET_REL nor LLVM bitcode
          ld.lld: warning: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libnos_tricore-db1c91dacf5da7f8.rlib: archive member 'lib.rmeta' is neither ET_REL nor LLVM bitcode
          ld.lld: warning: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libdefmt_rtt-244989cca8a4577e.rlib: archive member 'lib.rmeta' is neither ET_REL nor LLVM bitcode
          ld.lld: warning: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libcritical_section-7c8675532104fad6.rlib: archive member 'lib.rmeta' is neither ET_REL nor LLVM bitcode
          ld.lld: warning: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libdefmt-281ccd010a2f56ce.rlib: archive member 'lib.rmeta' is neither ET_REL nor LLVM bitcode
          ld.lld: warning: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libbitflags-fad0254f0f821998.rlib: archive member 'lib.rmeta' is neither ET_REL nor LLVM bitcode
          ld.lld: warning: /opt/HighTec/toolchains/rust/v0.1.0/lib/rustlib/tc162-htc-none/lib/librustc_std_workspace_core-dacca7267720b1fd.rlib: archive member 'lib.rmeta' is neither ET_REL nor LLVM bitcode
          ld.lld: warning: /opt/HighTec/toolchains/rust/v0.1.0/lib/rustlib/tc162-htc-none/lib/libcore-89df2cb54c98fae4.rlib: archive member 'lib.rmeta' is neither ET_REL nor LLVM bitcode
          ld.lld: warning: /opt/HighTec/toolchains/rust/v0.1.0/lib/rustlib/tc162-htc-none/lib/libcompiler_builtins-92bb292948899ee9.rlib: archive member 'lib.rmeta' is neither ET_REL nor LLVM bitcode
          ld.lld: warning: section type mismatch for .uninit.defmt-rtt.BUFFER
          >>> /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libdefmt_rtt-244989cca8a4577e.rlib(defmt_rtt-244989cca8a4577e.defmt_rtt.8f1760ea-cgu.13.rcgu.o):(.uninit.defmt-rtt.BUFFER): SHT_PROGBITS
          >>> output section .bss: SHT_NOBITS

          ld.lld: error: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.1h9n9r3un91kab6d.rcgu.o:(function tc37x_hal::can::memory::rx::CanRxFrame$LT$B$GT$::data::h0d8fdd096d879f7f: .text._ZN9tc37x_hal3can6memory2rx19CanRxFrame$LT$B$GT$4data17h0d8fdd096d879f7fE+0x28): unknown relocation (6) against symbol .L__unnamed_1
          ld.lld: error: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.1h9n9r3un91kab6d.rcgu.o:(function tc37x_hal::can::memory::rx::CanRxFrame$LT$B$GT$::data::h0d8fdd096d879f7f: .text._ZN9tc37x_hal3can6memory2rx19CanRxFrame$LT$B$GT$4data17h0d8fdd096d879f7fE+0x2c): unknown relocation (8) against symbol .L__unnamed_1
          ld.lld: error: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.1kvvpxpdo5nv1pa.rcgu.o:(function _$LT$u32$u20$as$u20$core..ops..bit..Shl$LT$u8$GT$$GT$::shl::haa658077971ec906: .text._ZN53_$LT$u32$u20$as$u20$core..ops..bit..Shl$LT$u8$GT$$GT$3shl17haa658077971ec906E+0x24): unknown relocation (6) against symbol str.0
          ld.lld: error: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.1kvvpxpdo5nv1pa.rcgu.o:(function _$LT$u32$u20$as$u20$core..ops..bit..Shl$LT$u8$GT$$GT$::shl::haa658077971ec906: .text._ZN53_$LT$u32$u20$as$u20$core..ops..bit..Shl$LT$u8$GT$$GT$3shl17haa658077971ec906E+0x28): unknown relocation (8) against symbol str.0
          ld.lld: error: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.1kvvpxpdo5nv1pa.rcgu.o:(function _$LT$u32$u20$as$u20$core..ops..bit..Shl$LT$u8$GT$$GT$::shl::haa658077971ec906: .text._ZN53_$LT$u32$u20$as$u20$core..ops..bit..Shl$LT$u8$GT$$GT$3shl17haa658077971ec906E+0x30): unknown relocation (6) against symbol .L__unnamed_1
          ld.lld: error: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.1kvvpxpdo5nv1pa.rcgu.o:(function _$LT$u32$u20$as$u20$core..ops..bit..Shl$LT$u8$GT$$GT$::shl::haa658077971ec906: .text._ZN53_$LT$u32$u20$as$u20$core..ops..bit..Shl$LT$u8$GT$$GT$3shl17haa658077971ec906E+0x34): unknown relocation (8) against symbol .L__unnamed_1
          ld.lld: error: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.1kyz9z22r5lw0ta5.rcgu.o:(function defmt::impls::primitives::_$LT$impl$u20$defmt..traits..Format$u20$for$u20$$u5b$T$u5d$$GT$::_format_tag::h01bd0173cdfca2e4: .text._ZN5defmt5impls10primitives63_$LT$impl$u20$defmt..traits..Format$u20$for$u20$$u5b$T$u5d$$GT$11_format_tag17h01bd0173cdfca2e4E+0x0): unknown relocation (6) against symbol {"package":"defmt","tag":"defmt_prim","data":"{=[?]}","disambiguator":"15902869144793536989","crate_name":"defmt"}
          ld.lld: error: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.1kyz9z22r5lw0ta5.rcgu.o:(function defmt::impls::primitives::_$LT$impl$u20$defmt..traits..Format$u20$for$u20$$u5b$T$u5d$$GT$::_format_tag::h01bd0173cdfca2e4: .text._ZN5defmt5impls10primitives63_$LT$impl$u20$defmt..traits..Format$u20$for$u20$$u5b$T$u5d$$GT$11_format_tag17h01bd0173cdfca2e4E+0x4): unknown relocation (8) against symbol {"package":"defmt","tag":"defmt_prim","data":"{=[?]}","disambiguator":"15902869144793536989","crate_name":"defmt"}
          ld.lld: error: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.24k8cuhnoyfley3q.rcgu.o:(function veecle_app::checked_main::_$u7b$$u7b$closure$u7d$$u7d$::h82a8a491fe15ccd4: .text._ZN10veecle_app12checked_main28_$u7b$$u7b$closure$u7d$$u7d$17h82a8a491fe15ccd4E+0x2): unknown relocation (6) against symbol .L__unnamed_1
          ld.lld: error: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.24k8cuhnoyfley3q.rcgu.o:(function veecle_app::checked_main::_$u7b$$u7b$closure$u7d$$u7d$::h82a8a491fe15ccd4: .text._ZN10veecle_app12checked_main28_$u7b$$u7b$closure$u7d$$u7d$17h82a8a491fe15ccd4E+0x6): unknown relocation (8) against symbol .L__unnamed_1
          ld.lld: error: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.24k8cuhnoyfley3q.rcgu.o:(function veecle_app::can_with_loopback::_$u7b$$u7b$closure$u7d$$u7d$::hfe6ab00992dc0b86: .text._ZN10veecle_app17can_with_loopback28_$u7b$$u7b$closure$u7d$$u7d$17hfe6ab00992dc0b86E+0x2): unknown relocation (6) against symbol .L__unnamed_2
          ld.lld: error: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.24k8cuhnoyfley3q.rcgu.o:(function veecle_app::can_with_loopback::_$u7b$$u7b$closure$u7d$$u7d$::hfe6ab00992dc0b86: .text._ZN10veecle_app17can_with_loopback28_$u7b$$u7b$closure$u7d$$u7d$17hfe6ab00992dc0b86E+0x6): unknown relocation (8) against symbol .L__unnamed_2
          ld.lld: error: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.257im2zgluee8t2r.rcgu.o:(function defmt::traits::Format::_format_tag::h645ea482aa342092: .text._ZN5defmt6traits6Format11_format_tag17h645ea482aa342092E+0x0): unknown relocation (6) against symbol {"package":"defmt","tag":"defmt_prim","data":"{=__internal_FormatSequence}","disambiguator":"8563283464106522576","crate_name":"defmt"}
          ld.lld: error: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.257im2zgluee8t2r.rcgu.o:(function defmt::traits::Format::_format_tag::h645ea482aa342092: .text._ZN5defmt6traits6Format11_format_tag17h645ea482aa342092E+0x4): unknown relocation (8) against symbol {"package":"defmt","tag":"defmt_prim","data":"{=__internal_FormatSequence}","disambiguator":"8563283464106522576","crate_name":"defmt"}
          ld.lld: error: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.257im2zgluee8t2r.rcgu.o:(function defmt::traits::Format::_format_data::h6f5f7fbee2e6a2e3: .text._ZN5defmt6traits6Format12_format_data17h6f5f7fbee2e6a2e3E+0x12): unknown relocation (6) against symbol .L__unnamed_1
          ld.lld: error: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.257im2zgluee8t2r.rcgu.o:(function defmt::traits::Format::_format_data::h6f5f7fbee2e6a2e3: .text._ZN5defmt6traits6Format12_format_data17h6f5f7fbee2e6a2e3E+0x16): unknown relocation (8) against symbol .L__unnamed_1
          ld.lld: error: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.2k2rp82ec5x97o7a.rcgu.o:(function tc37x_hal::can::can0::clock_helpers::_$LT$impl$u20$tc37x_hal..can..can0..CanModule0$LT$N0$C$N1$GT$$GT$::enable_clock_source::h0de721bc7710cb8d: .text._ZN9tc37x_hal3can4can013clock_helpers65_$LT$impl$u20$tc37x_hal..can..can0..CanModule0$LT$N0$C$N1$GT$$GT$19enable_clock_source17h0de721bc7710cb8dE+0x8): unknown relocation (6) against symbol {"package":"tc37x-hal","tag":"defmt_error","data":"panicked at 'assertion failed: self.can.mcr.read().is_enabled(node)'","disambiguator":"17517285945805803533","crate_name":"tc37x_hal"}
          ld.lld: error: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.2k2rp82ec5x97o7a.rcgu.o:(function tc37x_hal::can::can0::clock_helpers::_$LT$impl$u20$tc37x_hal..can..can0..CanModule0$LT$N0$C$N1$GT$$GT$::enable_clock_source::h0de721bc7710cb8d: .text._ZN9tc37x_hal3can4can013clock_helpers65_$LT$impl$u20$tc37x_hal..can..can0..CanModule0$LT$N0$C$N1$GT$$GT$19enable_clock_source17h0de721bc7710cb8dE+0xc): unknown relocation (8) against symbol {"package":"tc37x-hal","tag":"defmt_error","data":"panicked at 'assertion failed: self.can.mcr.read().is_enabled(node)'","disambiguator":"17517285945805803533","crate_name":"tc37x_hal"}
          ld.lld: error: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.2k2rp82ec5x97o7a.rcgu.o:(function tc37x_hal::can::can0::clock_helpers::_$LT$impl$u20$tc37x_hal..can..can0..CanModule0$LT$N0$C$N1$GT$$GT$::enable_clock_source::h0de721bc7710cb8d: .text._ZN9tc37x_hal3can4can013clock_helpers65_$LT$impl$u20$tc37x_hal..can..can0..CanModule0$LT$N0$C$N1$GT$$GT$19enable_clock_source17h0de721bc7710cb8dE+0xd4): unknown relocation (6) against symbol .L__unnamed_2
          ld.lld: error: /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/veecle_app-e838d5422056e9cf.2k2rp82ec5x97o7a.rcgu.o:(function tc37x_hal::can::can0::clock_helpers::_$LT$impl$u20$tc37x_hal..can..can0..CanModule0$LT$N0$C$N1$GT$$GT$::enable_clock_source::h0de721bc7710cb8d: .text._ZN9tc37x_hal3can4can013clock_helpers65_$LT$impl$u20$tc37x_hal..can..can0..CanModule0$LT$N0$C$N1$GT$$GT$19enable_clock_source17h0de721bc7710cb8dE+0xd8): unknown relocation (8) against symbol .L__unnamed_2
          ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)


error: could not compile `veecle-app` due to previous error

Caused by:
  process didn't exit successfully: `rustc --crate-name veecle_app --edition=2021 src/main.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type bin --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 -C metadata=e838d5422056e9cf -C extra-filename=-e838d5422056e9cf --out-dir /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps --target tc162-htc-none -C linker=ld.lld -C incremental=/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/incremental -L dependency=/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps -L dependency=/home/alepez/workspace/veecle/tc37x-demo/app/target/debug/deps --extern bitreader=/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libbitreader-dfe018b5b0d3998a.rlib --extern byteorder=/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libbyteorder-c2b739f417384dba.rlib --extern defmt=/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libdefmt-281ccd010a2f56ce.rlib --extern defmt_rtt=/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libdefmt_rtt-244989cca8a4577e.rlib --extern nb=/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libnb-61be059221c34cdd.rlib --extern nos_tricore=/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libnos_tricore-db1c91dacf5da7f8.rlib --extern tc37x_hal=/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libtc37x_hal-8ce0784e6294fc09.rlib --extern tc37x_pac=/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libtc37x_pac-5e4a7efeb9b8f48f.rlib --extern tc37x_rt=/home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/deps/libtc37x_rt-7d8da96a1c8af5c1.rlib -C link-arg=--nmagic -C link-arg=-Tdefmt.x -C 'link-args=-Llinker-scripts -Ttc37xA_memory.ld' -L /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/build/defmt-97be37d4fab5748f/out -L /home/alepez/workspace/veecle/tc37x-demo/app/target/tc162-htc-none/debug/build/tc37x-rt-ca835c3cf79a2610/out` (exit status: 1)

The linker arguments in .cargo/config.toml seem to be correctly passed to rustc.

This is the output of rustc --version:

rustc 1.67.0-dev (HighTec Rust compiler version 0.1.0)

I can successfully compile rust-tc375-lite-kit-example crate provided by the HighTec toolchain.

Any idea? Thanks for your help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.