2023-01-12 12:04 PM
While attempting to enable the divide by zero floating point interrupt, I ran into an issue with the U5:
Initially, a call was made to LL_SYSCFG_EnableIT_FPU_DZC to enable the floating point divide by zero interrupt. That does a read/modify/write of the SYSCFG->FPUIMR register. When that had no effect, a deeper look was taken at accessing the SYSCFG register.
Setup:
I have gone over the reference manual, errata, and other sources. I cannot find any information on what else is required to access SYSCFG.
Ultimately, the goal is to enable FPU divide by zero interrupt. A workaround to achieve that would suffice.
Thanks for your time and consideration.
Solved! Go to Solution.
2023-01-12 01:07 PM
How about __HAL_RCC_SYSCFG_CLK_ENABLE() ?
2023-01-12 12:29 PM
I found another way of enabling the floating point divide by zero interrupt! Via HAL
HAL_NVIC_SetPriority(FPU_IRQn, 0, 0);
HAL_NVIC_EnableIRQ(FPU_IRQn);
And the interrupt does happen after a divide by zero operation.
Clearly, the approach via LL_SYSCFG_EnableIT_FPU_DZC is either wrong or requires additional steps.
2023-01-12 01:07 PM
How about __HAL_RCC_SYSCFG_CLK_ENABLE() ?
2023-01-12 01:15 PM
A call to __HAL_RCC_SYSCFG_CLK_ENABLE() fixed it!
SYSCFG can be read after calling __HAL_RCC_SYSCFG_CLK_ENABLE()
Thank you for your help!