AnsweredAssumed Answered

Can't calculate a float.

Question asked by Leek1001 on Jan 10, 2012
Latest reply on Jan 11, 2012 by Clive One
A little question,

When I'm trying to calculate a float I'll get "ISR   HardFaultVector_IRQn"
What am I doing wrong?

My code:
--------------------------------------------------------------------------------------------------------
uint32_t iTemperature = 0x1b8;
double dTemperature   = 0.0;

dTemperature = (double)iTemperature*0.0625;
--------------------------------------------------------------------------------------------------------
This goes wrong and I don't know why..
MCU = STM32F100RB6TB

Greets,
Dennis

Outcomes