Hello!
I do not need to use the crystal 32.768KHZ, I would like to use GPIO port PC14 and PC15, what should I do?
I have solved the hardware and how the software needs to be handled.
Thanks!
STM32 PC14 PC15
Re: STM32 PC14 PC15
I think you'd need to add the 2 pins to pins.csv for your board. You'd also need to remove the oscillator and loading caps, and disable the LSE.
I think you need to set MICROPY_HW_RTC_USE_LSE to 0: https://github.com/micropython/micropyt ... oard.h#L23
I think you need to set MICROPY_HW_RTC_USE_LSE to 0: https://github.com/micropython/micropyt ... oard.h#L23
Re: STM32 PC14 PC15
I am modifying the mpconfigboard.h file as followsdhylands wrote: ↑Tue Apr 17, 2018 3:54 amI think you'd need to add the 2 pins to pins.csv for your board. You'd also need to remove the oscillator and loading caps, and disable the LSE.
I think you need to set MICROPY_HW_RTC_USE_LSE to 0: https://github.com/micropython/micropyt ... oard.h#L23
Code: Select all
#define MICROPY_HW_ENABLE_RTC (0)
#define MICROPY_HW_RTC_USE_LSE (0)
Code: Select all
C14,PC14
C15,PC15
Code: Select all
from pyb import Pin
p_out = Pin('C14', Pin.OUT_PP)
p_out.high()