You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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...
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 😃
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?
The text was updated successfully, but these errors were encountered: