RFQ/BOM 0 로그인 / 등록하다

귀하의 위치를 선택하세요

사용자 이미지

How do you deal with Error_Handler() in the HAL library of STM32?

MCU
11월 19, 2020 by Yazmin 6031

I would like to ask you how to deal with the Error_Handler() function when using the STM32 HAL library?

void Error_Handler(void)
{
  /* USER CODE BEGIN Error_Handler */
  /* User can add his own implementation to report the HAL error return state */
  while(1) 
  {
  }
  /* USER CODE END Error_Handler */ 
}

모든 댓글

user image

Jaheim 게시 날짜 November 19, 2020

Normally, it will not run to here. If you want the program to have error reporting or self-checking function, you can add another program to judge by yourself.

0
user image

Soraya 게시 날짜 November 19, 2020

Look at the official routine of CUBE.

0
user image

Daryl 게시 날짜 November 19, 2020

Hardware errors are generally procedural problems. . Just modify the program.

0
user image

Raya 게시 날짜 November 19, 2020

Generally do not do anything, just jump into this and honestly check the program.

0

답변 작성

답글을 달려면 로그인이 필요합니다. 로그인 | 등록하다