2013-05-16 04:53 AM
Hello,
I'm using the STM32F4 on the discovery evaluation board.I wrote a simple function that calculates the mean of a vector. When the code is starting to make the summation it goes to HardFault_Handler...Here is the mean function, a moment before the exception:2013-05-21 07:26 AM
Other ideas, please...?
Getting to the point where I'd need to see the project, I can't glean enough information from the screen shots. The stack pointer and memory addresses look reasonable at a glance. Perhaps it's a FPU_IRQHandler issue rather than a hard fault. Perhaps your array contains values that aren't valid floating point representations? Suggest also you look at getting your Hard Fault handler to display diagnostic output, see the Joseph Yiu examples.