cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U575 LPBAM Configure ADC4 does not work

BLS_Karo
Associate II

Hi ST Community,

I create LBPAM application which continuously convert ADC4 data channel 22 (PC4) of STM32U575 VGTX.

I add HAL_DBGMCU_EnableDBGStopMode(); so I can debug in stop mode. I run LPTIM1 and ADC4 before going to STOP mode. I also move VoltageData buffer to SRAM4 uint16_t VoltageData[32] __attribute__((section(".sram4")));
LPBAM configuration contains one queue in Circular mode and only one node for ADC4 conversion.
After enter stop mode 2, no adc4 trigger, and VoltageData always is 0.
I attach my configuration so you guy can check it.

Thank you.

BLS_Karo_0-1769589545056.png

 

3 REPLIES 3
TDK
Super User

The posted code doesn't use ADC4 at all as far as I can tell. No MX_ADC4_Init call. No other calls in main().

TDK_0-1769601709013.png

In the IOC file, ADC4 is not enabled.

TDK_1-1769601781867.png

Am I missing it somewhere?

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

BLS_Karo_0-1769661283638.png

@TDK I configure ADC4 in LPBAM configuration.
I run ADC4 in MX_ADC4_Init() (LPBAM/ChargeDetection/lpbam_chargedetection_volmealoop_config.c)

OOUAD
ST Employee

Hello BLS_Karo,

 

 

Have you observed the same behavior in STOP 1 or STOP 0 modes?

otherwise , you can refer to a similar example located in the U5 CubeFW at:
"STM32Cube_FW_U5_V1.7.0\Projects\NUCLEO-U575ZIQ\Applications\LPBAM\LPBAM_ADC_IntExtChannelSwitch" 

 

BRs.