Skip to main content
Associate II
September 22, 2023
Question

Can I read the voltage through stm32f401ccu6 and ST-LINK?

  • September 22, 2023
  • 3 replies
  • 1105 views

I'm going to use CubeMX, is there a way to measure the voltage input through STM32F401CCU6 and ST-LINK? I'd like to know an example code or method if there is

This topic has been closed for replies.

3 replies

waclawek.jan
Super User
September 22, 2023

The short answer is, no.

The long answer is, theoretically yes, but it's unlikely anybody ever made the effort to do that.

JW

KnarfB
Super User
September 22, 2023

ST-LINK has a TVCC pin for measuring the target voltage. You will find the value in the logs or STM32CubeProgrammer.

hth

KnarfB

AScha.3
Super User
September 22, 2023

Just to make sure: you want see supply voltage of target or voltage at a pin of target, by ADC of target CPU?

"If you feel a post has answered your question, please click ""Accept as Solution""."