STM32WLEX Public Key Accelerator (PKA) never completes modular exponentiation
I am using the STM32WLE5CC ship on a RAK3172 module.
I am not using the HAL but writing directly to the PKA RAM and registers, to perform a standard Modular Exponention (normal mode) as described in section 22.4.6 of the manual.
The PKA clock has been enabled for normal and sleep mode.
I write the exponent and exponent length, the operand and operand length, and the modulus to the PKA RAM, ensuring I am ending with a 32 bit word set to zero as described by section22.4.1.
I set the PKA Control Register "Start" bit, after ensuring that the "mode" has been set to zero (Montgomery parameter computation then modular exponentiation) and the enable flag is still set.
After setting the start bit in the CR, the "Busy" bit in the status register goes high, as expected.
I poll the status register every 10 microseconds, waiting for it to change - the Busy bit should go to 0 and the PROCENF flag should go high, but it never changes, even after several hours.
I can read back the registers and RAM and they containt he values I expect.
Are there any other clock systems or registers that need to be set for the PKA to operate?
