Skip to main content
BParh.1
Senior III
September 20, 2021
Question

Where we should put LCD initialization code for custom board?

So my project started to build custom hardware instead of using DISCO board. This mean needs to write my own LCD init code but I don't know where should I put it. With respect to the code skeleton generated by CubeMX for TouchGFX, which file I should insert this specific LCD init code?

This topic has been closed for replies.

1 reply

Romain DIELEMAN
ST Employee
September 21, 2021

Hi,

I believe you should put it in the main.c generated by STM32CubeMX in the core/src folder. Or are you talking about driver code ? In that case you could add it under the Drivers/BSP (BSP stands for Board Support Package) folder like we do for the TBSs available in TouchGFX Designer.

/Romain