FPU issue in function call (STM32F407 and STM32F429)
Erik, We need more info to go on. If you could post the entire double2str routine.
And, what kind of hard-fault? Usually a hard-fault means something wrong with the stack, if there were an FP error you would just get the wrong number.
Have you tried stepping through the routine in the debugger?
-Matt