Question
STM32L151CB OSC32 GPIO PC14 PC15 usage
Posted on June 23, 2012 at 13:47
Hello to everybody,
I am trying everything to be able to use the PC14 and PC15 pins as digital outputs, but I can't get it at all. Obviously I'm not using the LSE.Both pins aer conected to two MOSFET gates respectively, so there is barely power consum (I'm not trying to drive a LED or anything like that)The information found in the documentation is very, very poor and in the forums isn't more useful.I have assumed that the LSE is off once I turn on the uC and just defining the pins as outputs and using the GPIO_SetBits doesn't work.I have assumed that the LSE is on once I turn on the uC. I inicialized APB1_PWR clock. I enabled the RTC access and I disabled the LSE clock security system and I turned off the LSE explicitly.I think I've tried all the likely combinations and I keep on failing. I`m missing something but I dont realize what is it. I hope you could help me. Thanks in advance.Regrads. #stm32l-osc32-gpio-pc14-pc15 #pc13-pc14-pc15-gpio