LSE false enabled, PC14 wrong reading
We discovered spurious Errors (every half a year) on reading out the GPIO Pin PC14 on a STM32F427ZIT6.
The Pin
- is not connected on the PCB itself.
- Is configured as Input with PullUp
And reads in perfectly the High state from the PullUp in 99.99% of the cases.
Now the very rare and not reproducible erroneous behavior:
The Pin reads back 'low'.
Therefore we added some checks on startup that will check the LSE bit and print it out if there are issues. LSE is disabled in the FW itself and there is no FW code targeting that.
We discovered that the BDCR Register has the LSE enabled (which we don’t to in the FW) & which we also verify now on startups.
Antoher weird thing is that the BDCR reports that the LSE is stable (LSERDY bit)
PC15 is also not connected on the PCB.
Here a dump of the registers while the error is present.
BDCR: 0b1100000111
BDCR.LSEON:0b1
PIN:
MODER: 0b10101010000000111111111111
OTYPER: 0b1000000000
PUPDR: 0b100000000000000000000000000
IDR: 0b101100000000
As said, this issue is happening very seldom & not reproducible at all.
We thought it could happen due to a undiscovered dangling pointer itself that actives the LSE, but now we have seen that the LSERDY was also set - which is HW controlled.
I could not find any reports in the STM Community related to that.
I would appreciate some hints / information on that.
br Andreas
