2026-01-22 11:33 PM
I am working on STM32N6570-DK board. I am trying to run a code for three channels ADC+DMA, INP8, INP10, INP16. The output at USART is coming out to be zero in all three channels. I am attaching the code here.
2026-01-23 1:40 AM
Hello @chanchal94
After checking main.c it seems that you do not configure the secure and privilege mode of analog GPIOs corresponding to INP8 (PB10), INP10 (PA9) and INP16 (PF3).
This must be done using the function:
HAL_GPIO_ConfigPinAttributes(GPIO_TypeDef *GPIOx, uint16_t GPIO_Pin, uint32_t PinAttributes)
Refer to the function SystemIsolation_Config() in the examples below:
STM32Cube_FW_N6_V1.3.0\Projects\NUCLEO-N657X0-Q\Examples\ADC\ADC_MultiChannelSingleConversion
and ADC_SingleConversion_TriggerTimer_DMA
You can also refer to this similar discussion :
Re: STM32N657X0-Q ADC+TIMER+DMA - STMicroelectronics Community
Best regards,
Romain,
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.