Closed thejpster closed 5 years ago
If I build this project with --release for thumbv7em-none-eabi, I end up in the Hardfault handler.
--release
thumbv7em-none-eabi
If I add an asm::nop(); to the loop { } in main, it works fine. It's fine as a debug either with or without the asm::nop().
asm::nop();
loop { }
main
asm::nop()
I'm using a TM4C129 Launchpad, but haven't extern'd in a chip crate yet. I've attached the generated assembly.
test_app.txt
This is likely to be caused by https://github.com/rust-lang/rust/issues/28728
If I build this project with
--release
forthumbv7em-none-eabi
, I end up in the Hardfault handler.If I add an
asm::nop();
to theloop { }
inmain
, it works fine. It's fine as a debug either with or without theasm::nop()
.I'm using a TM4C129 Launchpad, but haven't extern'd in a chip crate yet. I've attached the generated assembly.
test_app.txt