Errors with double as function parameter
If i try to create or run a function that uses a double as parameter it will end up in an UsageFault_Handler infinite loop.
Why is this and how can i fix this ?
(This prevents me even from using round() from math.h)
I use System workbench for STM32
on a Nucleo-F401RE
A simple Program like this will cause the Problem on my System:
void foo( double v ) { }
int main(void){
foo( 1.0 ) ;
return 0 ;
}changing void in foo to something else wont help and no matter the function body it will never enter it in debug mode.
The disassembly gives:
080001f4: vldr d0, [pc, #16] ; 0x8000208 <main+24>
080001f8: bl 0x80001d8 <foo>
which will lead in the next step to
UsageFault_Handler:
08000260: b.n 0x8000260 <UsageFault_Handler>
08000262: movs r0, r0