Cannot set PC14 and PC15 as output GPIO on STM32F401
Hello,
due to pin shortage, I (foolishly) used pin PC14 and PC15 as output GPIOs on a board that I designed and my colleague is writing the firmware. We never use them previously, due to the all problems with limited sourcing caused by internal backup domain power switch and their low-speed limits. For the current board, the low speed and low drive was no issue.
But now there is a problem - we are unable to get the pins working. I tried the code generated by CubeMX and my colleague, who uses own routines, used the approach described on several pages on the web - first disable the LSE in BDCR by cleaning the LSEON bit, wait for LSE deactivation, turn on the backup domain power, enable access by setting DBP bit, and finally normally set the pins as low-speed push-pull outputs. We tried all this, but the pins stay low all the time. For testing, we used a NUCLEO-F401RE, because the board is still being manufactured.
Could be the absence of the HSE crystal (or, a TCXO on our board) the culprit? We previously had problems to get the RTC working without the HSE. Note that the crystal (X2) on the NUCLEO-F401RE is not populated and both code runs with HSI RC.
