Skip to main content
KTeer.1866
Associate
November 25, 2019
Question

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

  • November 25, 2019
  • 2 replies
  • 1211 views

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

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
November 25, 2019

> 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
December 2, 2019

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.