cancel
Showing results for 
Search instead for 
Did you mean: 

Where we should put LCD initialization code for custom board?

BParh.1
Senior III

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?

1 REPLY 1
Romain DIELEMAN
ST Employee

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