Hi all, I'm making an STM32F4 based board fault tolerant but I'm running into a weird behavior where palReadPad doesn't seem to work within the HardFault_Handler. My suspicion is that HardFault_Handler is so high priority that AHB1 stops ticking and thus new values aren't copied into the IDR. Is there any way to get around this and read a digital pin? Could I manually emit an AHB1 tick to refresh the register?
Edit: adding the following code to the hander did not help
Code: Select all
RCC->AHB1ENR |= 0x7f;
RCC->AHB1LPENR |= 0x7f;