rust-demo-cortex-m4
rust-demo-cortex-m4 copied to clipboard
hard float: wrong argument type
In LM4F_startup.c you should add a C declaration for the function rust_float_test to tell the C compiler what argument type is expected. (something like float rust_float_test(float);)
This prevents GCC from assuming double as the default argument type, leading to the following incorrect function call:
vldr d0, [pc, #28] ; 300 <rst_handler+0x68>
bl 34c <rust_float_test>