cubeide generated driver for stm32l152rc MX_LCD_Init(); will jam !
..
..
Hi @国庆 �?� ,
Please precise what do you expect exactly as result?
I checked your ioc file with the STM32L152RCT6 Discovery kit (32L152CDISCOVERY). It seems there is no code to display on the LCD, there is only LCD initialization and blink led code.
From my side, I updated the LED pin of your code and used LD4 connected to the I/O PB6 and the LD4 is successfully blinked.
I advise you to start with the LCD examples under STM32CubeL1 MCU package to learn about programming the display and configure LCD, review the HAL structure and get inspired from them to configure your files :
STM32Cube_FW_L1_V1.10.2\Projects\32L152CDISCOVERY\Examples\LCD\
The UM1079 User manual "Discovery kits with STM32L152RCT6 and STM32L152RBT6 MCUs", will help you on the hardware features of your device to develop your application.
Hope this helps you.
Please mark the post as best by clicking on the "Select as Best" button if it helped :)
Imen
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.