HardFault_Handler exception...

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:

When I hit F10, the code goes to void HardFault_Handler(void) at stm32f4xx_it.c.

Here is the call of the function:SNR = CalcMean((float*)local_data_buffer.data_struct.handVISNRBuff,5);

Then after you've checked the defines, and breakpointed this instruction, you'll need to identify the assembler instruction which is actually faulting, and the registers and processor context at the fault. Once you've done that you'll be in a position to diagnose the problem.