Open therealprof opened 7 years ago
Is this still an issue? It seems like only GDB is probably used from this toolchain now that the default llvm linker is used. I didn't encounter any issues running this tutorial on macOS recently but I download my GNU tools from https://developer.arm.com/open-source/gnu-toolchain/gnu-rm
On my mac I have the reproducible issue that the "official" ARM GNU ARM Embedded Toolchain (6-2016-q4-major) as installed by
brew cask info gcc-arm-embedded
mis-compiles/-links all Rust examples independent of the type of build (debug vs release).For example for the led-roulette example from Japaric's f3 crate I get the following (non-working) binary code with the "official" toolchain:
while I do get the following with another toolchain:
Most obviously (although I shortened it quite a bit above) is the much shorter _reset () and the total omission of the main function with the broken compiler. Also the included
arm-none-eabi-gdb
in the cask version crashes all the time with the simplest activities, like:For the working compiler I'm using the brew package gcc-arm-none-eabi from the px4/px4 tap.