cancel
Showing results for 
Search instead for 
Did you mean: 

HSO :: How to add own ADC measurements to oversampling buffers?

TheFellowTeam
Associate

Hello,

Setup: G431 MCU, custom board with three phase voltage channels, HSO. 

Default Workbench generated project measures three currents, three voltages, Vbus and Temperature.

We need to measure two additional analog signals, how to make it without reworking most of oversampling and ADC relates defines and structures?

Simple modification @ STM32CubeIDE will not work because DMA structures are deep in motor control code.

Thank you in advance!

Sergey 

2 REPLIES 2
z h
Associate II

STM32G431CB configure HSO,

bus voltage sensor and potentiometer are configured to PF0, PF1 (using internal clock) console can not generate code,

manually change bus voltage sensor and potentiometer to PF0, PF1 can work again.

Is it because of hardware limitations that cannot be configured or is it a bug?

TheFellowTeam
Associate

Hello!

Workbench generates a project with a kind of "hardcoded ADC schema" for HSO: Iu, Iv, Iw, Vv, Vu, Vw, Vbus and Temp. Actually, ADC measures nothing else, right? There is a potentiometer, on the bridge but it is in use and is not mentioned in the corresponding board descriptor. So, how to instruct ADC to measure some additional analog signals and how to get access to the raw values then?