Skip to main content
Associate
Mar 26, 2025 10:21 AM UTC
Question

STM32U585: ADC DMA not work on Optimization level 2 and 3

Hi, 
I am working with STM32U585, I read 10 ADC channel which work perfectly on optimization level O0 and O1.

but when I set optimization level O2 or O3, I didn't get some channel's value. we got 0 on that channel. 

Channel which which not work there values are stable 1.65V on Pin. 

Some one please help to resolve this issue. 

 

Pankaj

This topic has been closed for replies.

1 reply

Andrew Neil
Super User
Mar 26, 2025 10:25 AM UTC

welcome to the forum.

Please show your code - preferably, a minimal example which illustrates the issue.

See: How to write your question to maximize your chances to find a solution.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.