cancel
Showing results for 
Search instead for 
Did you mean: 

Does the LCD screen header and c files require extra drivers to operate?

SWall.2
Associate II

I have installed the example software for the recording machine on the STM32L476VG Disco MCU. The recording sofware has uploaded to the microcontroller. The mic input and the headphone outputs work fine.

TheLCD screen will not operate. I have installed the lcd.h and .c files for the MCU but I am getting 45 errors. Theses errors are unclear to me and I would like to know if aditional files are required or infromation an a suitable workaround for the problem. Can anyone help with this please?

6 REPLIES 6
Chopra.1
Associate II

you should check , reference manual or the description of the library for the internalization to be done , like starting the clock, enabling of control bit of the LCD , etc.

can you attach the screenshot of the errors that are occurring ???

SWall.2
Associate II

0693W000006F4JzQAK.jpg0693W000006F4JuQAK.jpg0693W000006F4JHQA0.jpg

SWall.2
Associate II

I have more snap shots but I didnt want to post too much. I have checked the manuals to see is drver file/s are missing but I cannt find anything. It looks like the LCD RAM registers are not accessible by the screen.A few HAL drivers are undeclared also.I have searched through the HAL driver manual and can't find a work around.

Try "greping" the files/directories you lifted the stuff from. The compiler's complaining it can't find components

For example LCD_RAM_REGISTER4

STM32Cube\Repository\STM32Cube_FW_L4_V1.14.0\Drivers\STM32L4xx_HAL_Driver\Inc\stm32l4xx_hal_lcd.h

Make sure that you've enabled the module at your project level configuration file

STM32Cube\Repository\STM32Cube_FW_L4_V1.14.0\Projects\32L476GDISCOVERY\Examples\BSP\Inc\stm32l4xx_hal_conf.h

..

#define HAL_LCD_MODULE_ENABLED // << UNCOMMENT THIS LINE TO FACILITATE PULLING THE LCD

..

#ifdef HAL_LCD_MODULE_ENABLED

 #include "stm32l4xx_hal_lcd.h"

#endif /* HAL_LCD_MODULE_ENABLED */

This might have some cascading dependencies on other modules, and you'll need to check those or against other buildable projects using the same components you want to use. The use of diff/merge type tools can help identify nuanced differences.

>> I have installed the lcd.h and .c files for the MCU but I am getting 45 errors.

What do mean "installed", trick here is to add the .C files to the project, and point at the include files via the "Include Paths", and to ensure that the stm32xyz_hal_conf.h enables the inclusion

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
SWall.2
Associate II

Thanks very much, the software cleared all its errors and upladed to the microcontroller.I cant get the LCD screen to enable on the microcontroller. The jumpers are in the right place. Do you know if there is a soldered link on the bottom the board that requires soldering to enable the LCD display? I have tried having a look in the manuals for the device and cant find any inforamtion. Thanks again for your help.

I think the BSP example exercises most of the functionality. Would try that, and then look at the schematic, the README didn't seem to indicate any dependencies on jumpers or solder bridges.

https://community.st.com/s/question/0D53W00000QttLZSAZ/is-there-a-soldered-connection-to-be-made-on-the-stm32l476vg-microcontroller-to-enable-the-lcd-display

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..