External IRQ on PB15
I am trying to catch a pulse on PB15. So I set the port PB15 to external irq with falling edge as per screen shot below
The code in MX_GPIO_Init() generated by MX is:
/*Configure GPIO pin : MPuls_Pin */
GPIO_InitStruct.Pin = MPuls_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_IT_FALLING;
GPIO_InitStruct.Pull = GPIO_PULLUP;
HAL_GPIO_Init(MPuls_GPIO_Port, &GPIO_InitStruct);
and the code in the call back is a simple test
// External Interrupt ISR Handler CallBackFun
void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
{
if(GPIO_Pin == MPuls_Pin) // INT Source is pin PB15{
// HAL_NVIC_DisableIRQ(EXTI15_10_IRQn);
// Serialprint((uint8_t *) "Hi\n");
if( IRQCheckI > 0) {
IRQCheckI = 0;
sprintf (TempBufCA, "%3d -> ", ++TempCI);
Serialprint(TempBufCA);
}
if ( MotorPosGI > 0) {
MotorPosGI=0;
Serialprint("\nMagnet at position\n");
}
// HAL_GPIO_TogglePin(GPIOA, GPIO_PIN_11); // Toggle LED
}
}
I put a break point on the line if(GPIO_Pin == MPuls_Pin) // INT Source is pin PB15{ but the loop never get accessed by the external event.
Before the upgrade all was working well.
Can any one please assist.

