STM32 NVIC interrupts after a reset / power-on
It would appear that the STM32 interrupt system can only trigger on external signal edges. To see whether an external signal is already active at start-up, you're going to have to explictly poll it as GPIO and then call the corresponding handler as a subroutine if it's in the active state.