Question
Double Calculations causing hard fault
Posted on March 07, 2013 at 07:23
Hi,
Im trying to do some calculations on a STM32F4 discovery board and I keep getting hard faults when I try to run the code. The is being ported over from a PC application but the lines that are causing the issues are simple multiplications.One of the linesdouble phi = aircraftRotation[0] * PI/180.0;aircraftRotation[0] = 0.0PI = 3.141592654;I have stepped through the assembly for this line of code and the assembly that its crashing on is the multiplcationBL __aeabi_dul Im using IAR and the code is C++, is there anything I can do to fix this?ThanksPhil