2023-08-29 04:17 AM
I am using STM32H723ZG nucleo board. When I enable HAL_ADC_Start_DMA(&hadc1, (uint32_t*)adc_buf, ADC_BUF_LEN); USB Virtual port doesn't show up and when I disable it, it shows up. Can anyone explain what could be the issue?
I was able to print "Hello" character using CDC_Transmit_HS function when DMA(in circular mode) wasn't enabled. When I enabled it, Virtual port doesn't show up. Please help me with this.
Above is the clock setting.
Solved! Go to Solution.
2023-08-29 06:18 AM
Would be good to see more relevant code.
Guessing the issue is related to your ADC complete handling/callback, probably stuck in interrupts and not servicing the USB properly.
2023-08-29 05:07 AM - edited 2023-08-29 05:07 AM
How are adc_buf and ADC_BUF_LEN defined?
And just to make sure that you are not activating any DMA stuff before MX_DMA_Init(), better move that "up", so that MX_DMA_Init() is called immediately after GPIO init.
2023-08-29 06:02 AM
#define ADC_BUF_LEN 128
volatile uint32_t adc_buf[ADC_BUF_LEN];
2023-08-29 06:18 AM
Would be good to see more relevant code.
Guessing the issue is related to your ADC complete handling/callback, probably stuck in interrupts and not servicing the USB properly.
2023-08-29 06:36 AM
You are right. In the complete callback function I called system reset function.
My Bad!!
Thank you so much