Hello I find "minor discrepancy" between datasheet and CumeMX, alee last releas.
In DS is NPOR pin on position 20 LQFP48 and in CubeMX in position 43. and in DS is on 43 P7B and in CubeMX PB2 on 20 .
Your issue is no more visible on the latest CubeMX release (CubeMX4.24).
Please, update your CubeMX release with the latest.
Thanks and regards.
I've reported this problem internally. Thanks for notification.
Retrieving data ...