cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U575CGTx ADC, DAC

ATroš.1
Associate II

Hello,

I am having trouble configuring and enabling DAC on my U575CGTx. I am a beginner programmer, and I have very little experience programming STM32 MCUs. Reading through the reference manual feels like learning Chinese.

I do not have an external oscillator on my board. I want 

ADC examples do not work. My guess is because they are meant for the Nucleo board with the U575ZI-Q.

I was following these tutorials, and it still does not work. ADC does not turn on and the DR is empty, all zeros: STM32U5 workshop - 01 Introduction and agenda

I've included *.ioc project files if anyone has time to check it. I'd appreciate any help, specifically what do I need to check to make the ADC work.

3 REPLIES 3
KDJEM.1
ST Employee

Hello @ATroš.1;

 

I recommend you to take a look at this wiki "Getting started with ADC - stm32mcu" and get inspired to create your project.

This wiki can help you to create a simple application to start the ADC and measure the DAC output.

 

I hope this help you.

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hello @KDJEM.1 ,

Thank you for the reply but it does not help me at all. I programmed ADC on F and H series before and it's pretty straightforward, like in the tutorial you mentioned. However, the U series has completely different ADC settings and no tutorials that actually work. I might just throw my U5 into garbage and redesign my project for the F series despite not being a low power MCU.

KDJEM.1
ST Employee

Hello @ATroš.1,

 

Could you please check the GPDMA configuration and the linkedlist settings. For that I recommend you to look to .ioc file in ADC_DMA_Transfer example and get inspired to check the GPDMA and the linkedlist. 

It is better to let channel 12 to 15 free for 2D operations.

May be How to configure the linked list mode in STM32CubeMX can help you.

 

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.