UART HardFault again at HAL_RCCEx_PeriphCLKConfig()
Nucleo-STM32H563ZI running under ThreadX using CubeMX 6.18.1 and CubeIDE 2.2.0. Working with GPS which defaults at 9600. I send commands to make it run at 115200, then I deInit UART4 and reinitialize it using the same steps as the original initialization, but it goes to a HardFault as soon as I call HAL_RCCEx_PeriphCLKConfig(), before any code is exercised at all in that function.
Before the HardFault happened I was able to work continue on, but there was no code to handle any received data, just a printf() telling me UART4 was running at 115200. When I added the code to receive data, then it started giving the HardFault. Why would later code cause a HardFault?
I made sure that global interrupts are on for UART4.
I attempted to debug the HardFault, but I’m not too clear on what the registers tell me (nothing other than the address where it dies), and the fault analysis tells me nothing at all other than a HardFault occurred.
I removed all the DMA, but it still goes to HardFault.
