Open GregWoods opened 4 years ago
I had the exact same issue, and the reason was that I wasn't using the latest version of cargo-asm
.
Instead of doing cargo install cargo-asm
(which probably fetches installation from Crates.io
),
Try running cargo install --git https://github.com/gnzlbg/cargo-asm.git
.
After overriding my installation of cargo-asm
, the first option among the four combinations
(cargo asm --target thumbv7em-none-eabihf stm32f4_05_serial::__cortex_m_rt_main
) works fine for me :smiley:
I hope this works for you as well
Although
cargo asm
doesn't work for embedded,cargo asm --target thumbv7em-none-eabihf
does work. It produces a huge list of functions, both mine, and for all the dependencies.If I now try to add a path by copy-pasting my 'main' function from the huge list, I get an error...
cargo asm --target thumbv7em-none-eabihf stm32f4_05_serial::__cortex_m_rt_main
I also tried combinations of:
cargo asm --target thumbv7em-none-eabihf stm32f4_05_serial::__cortex_m_rt_main
cargo asm --target=thumbv7em-none-eabihf stm32f4_05_serial::__cortex_m_rt_main
cargo asm --target thumbv7em-none-eabihf -- stm32f4_05_serial::__cortex_m_rt_main
cargo asm --target thumbv7em-none-eabihf stm32f4_05_serial::__cortex_m_rt_main()
Any suggestions?