I want to know why it stops with HardFault_Handler.
Hello
It may stop with the interrupt routine of HardFault_Handler.
MCU: STM32F446VCTx
Tools: CubeMX
IDE: IAR Embedded Workbench IDE
This routine is in stm32f4xx_it.c.
void HardFault_Handler(void)
{
/* USER CODE BEGIN HardFault_IRQn 0 */
/* USER CODE END HardFault_IRQn 0 */
while (1)
{
}
/* USER CODE BEGIN HardFault_IRQn 1 */
/* USER CODE END HardFault_IRQn 1 */
}
Currently the status of the following registers is confirmed.
CFSR: Settable Fault Status Register INVSTATE bit is 1.
BFAR: The bus fault address register is 0xE000EDF8.
Registers above seem to be involved.
If you have detailed information, please explain the comment.
Attention, I am Japanese. This content is based on Google translation.