Skip to main content
Associate III
Dec 10, 2025 12:57 PM UTC
Question

Problem regarding Debugging of a simple ADC program

I have a new STM32N6570-DK MCU, I am running a simple program configuring ADC1 with the help of STMcubeIDE, selecting application mode, in secure mode, I have connected one sensor who is biased at 1.5V to A2 of MCU as well as ground of sensor and MCU are connected, code has been generated with some basic settings, It is not getting Debug properly, sometimes code is crashing before entering in main, sometimes board is not responding at all, before that I tried blink LED that worked

Kindly tell me the proper steps to make this code run

Is there any proper step to initialize the MCU when using for first time?

Is application mode in secure version is okay for data extraction from analog sensors with the help of ADC

I am attaching the related files, kindly reply

1 reply

Simon V.
ST Employee
Jan 12, 2026 10:01 AM UTC

Hello,

Do ADC Nucleo HAL example is working properly ADC_SingleConversion_TriggerTimer_DMA ?

It would be a good trial to preliminary verify your debug environnement.

Regards,

Simon

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.