cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F7 using the faults

drocastar
Associate
Posted on July 18, 2015 at 23:13

Hi,

I'm trying to enable the cortex's fault exeptions for my stm32f7 board.

Everytime I call   HAL_NVIC_EnableIRQ(UsageFault_IRQn); or try to enable some other Fault I get an Hard Fault.

I already tried to access the register directly by using :

SCB->SHCSR j= SCB_SHCSR_USGFAULTENA_Msk; //Enable usage fault interrupt 

Then I tried to activate the interrupt via the HAL_NVIC driver but I was not successfull and ended up on an hard fault.

I also checked the .s vector to see if the usad fault function was declared on the interruption vector and it was.

Does anyone know why I can´t access the faults?

Thanks
1 REPLY 1
drocastar
Associate
Posted on July 19, 2015 at 18:59

More information:

SCB->CFSR (Configurable FaultStatus Register)

 0690X000006053oQAA.png

SCB->HFSR (HardFault Status Register)

0690X00000605I4QAI.png

Some on the general registers:

0690X00000605I9QAI.png