zephyr: stm32f412cg unexpected power consumption for MCO2

The STM32F412 chips have 2 MCO pins: image

The MCO2 pin can have 4 different source clocks: image

I’ve noticed that when I change the source from a default one (SYSCLK) to PLLI2S (PLLI2S not enabled) or HSE (not connected), the power consumption drops ~0,5mW.

I’m working with google_dragonclaw board, which uses STM32F412CG chip in UFQFPN48 package. This chip version doesn’t even have the MCO2 pin (PC9). image

This behavior can’t be observed for the MCO1 pin in my case.

The STM32 HAL doesn’t even define bits for MCO2 configuration for STM32F412cx boards. I guess it is done this way because none of the STM32F412cx chips don’t have the MCO2 pin. This doesn’t even allow changing the source with the config CONFIG_CLOCK_STM32_MCO2_SRC_x.

Unfortunately, there is no nucleo board with that version of chip to confirm that issue.

Would you be able to somehow confirm that this is expected behavior or it is kind of silicon bug?

About this issue

  • Original URL
  • State: closed
  • Created 6 months ago
  • Comments: 17 (17 by maintainers)

Most upvoted comments

FYI ST community post regarding MCO2.

Ok, thanks for the info. I wasn’t sure if I’ve missed something and it can be done without changes.