2023-09-22 12:56 AM
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
2023-09-22 02:50 AM
The short answer is, no.
The long answer is, theoretically yes, but it's unlikely anybody ever made the effort to do that.
JW
2023-09-22 03:32 AM - edited 2023-09-22 03:32 AM
ST-LINK has a TVCC pin for measuring the target voltage. You will find the value in the logs or STM32CubeProgrammer.
hth
KnarfB
2023-09-22 04:02 AM
Just to make sure: you want see supply voltage of target or voltage at a pin of target, by ADC of target CPU?