Solved
HAL PWR Wakeup PINS do not match datasheet and cubemx.
Please tell me why the wakeup pin numbers are shifted up by one in the HAL PWR lib?
If there is a legitimate reason for this mapping, then why is it not documented anywhere? I had to infer the mapping and test it by trial and error.
