Can't run EXTI on Nucleo65-H503
Hello!
I'm following the STM32 tutorial on External interrupts from here and got stuck.
The controller doesn't react to the press of button and the IDE for some reason switched to tab of `startup_stm32h503rbtx.s`.
Reproducing steps:
1. Create a new project (STM32 Project)
2. Select Nucleo H503 as target board
3. Go to PinOut and configuration, change mode of PC13 to GPIO_EXTI13
4. Go to GPIO tab, select mode External Interrupt with Falling edge, without Pull-up ot Pull-down, set user label to B1
5. Go to NVIC tab and enable `EXTI Line 13 interrupt`, press `Ctrl + S`
6. Go to section user Code 4 of main.c and insert the following function into it:
/* USER CODE BEGIN 4 */
void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
{
if(GPIO_Pin == GPIO_PIN_13) {
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_5, GPIO_PIN_SET);
} else {
__NOP();
}
}
/* USER CODE END 4 */
7. Save and run
Used parts:
- board: Nucleo64-H503
- IDE : Stm32CubeIDe 1.15.1
- STLink Firmware: V3.J15.M6
