cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F429 Discovery + ADC + DMA + TIM2 + TFT-LCD problem

KTeer.1866
Associate

Hello, I am new to STM32. I'm using ST32F429 Discovery board and I'm tring to read audio samples from ADC1 (PA5)+DMA, which is trigged by TIM2, and visualize the data on the LCD screen using BSP driver. I am using STM32CUBEIDE to generate source codes. I'm able to toggle the green LED every time the adc conversions (10 data) is completed. However, when I initialize the LCD using BSP_LCD functions, the led is not blinking.

Please help me solving this problem.

Thank you

2 REPLIES 2

> when I initialize the LCD using BSP_LCD functions, the led is not blinking.

Use debugger to find out, if it ends up up in error handler, or gets stuck in an ISR forever, or loops in an endless loop.

JW

KTeer.1866
Associate

Thanks you for you suggestion. I am sure what causes the problem, but I found that my settings on PPLSAIN (x50), PPLSAIR (/2) and PLLCDCLK divisor (/2) were different from the values in stm32f429i_discovery_lcd.c. After changing these values to PPLSAIN=x192, PLLSAIR=/4, and PLLLCDCLK divisor=/8, the LCD is working again.