cancel
Showing results for 
Search instead for 
Did you mean: 

STEMWIN porting on orient LCD

sanjeev majumdar
Associate III
Posted on April 03, 2018 at 07:35

Hi 

i have a custom board based on stm32f769. i have interfaced orient 7inch lCD 800*480 in RGB mode. i could successfully configure the LTDC and external SDRAM (FMC based 32MB) and tried out displaying static image using layer 0. now i would like to port STEMWIN lib for my LCD and try out examples based on that. LCD has HI8264+HI8664 driver. based on the STEMWIN starting guide i configured the GUIConf.c and LCDConf.c and used GUIDRV_LIN_24 with GUICC_M888 but no luck.

i have added necessary lib for Keil as well as the STEMWIN lib components.

can anybody please suggest whether LIN driver is compatible for HI8264 / HI8664?

#lcd-interfacing
1 ACCEPTED SOLUTION

Accepted Solutions
sanjeev majumdar
Associate III
Posted on April 19, 2018 at 06:10

Hi 

i could resolve the issue upto some level using GUIDRV_LIN16 & GUICC_565 along with layer0. i changed the SDRAM timings and its working till now ok.

/*alliance AS4C16M16S 256M – (16Mx16bit) Synchronous DRAM*/

SdramTiming.LoadToActiveDelay = 2;

SdramTiming.ExitSelfRefreshDelay = 9;

SdramTiming.SelfRefreshTime = 9;

SdramTiming.RowCycleDelay = 6;

SdramTiming.WriteRecoveryTime = 2;

SdramTiming.RPDelay = 3;

SdramTiming.RCDDelay = 3;

View solution in original post

6 REPLIES 6
sanjeev majumdar
Associate III
Posted on April 05, 2018 at 06:27

can anybody suggest that do i have to prepare customize driver? am i going correct way?

thanks

Imen.D
ST Employee
Posted on April 06, 2018 at 11:55

Hello

sanjeev.majumdar

,

Can you please describe clearlyyour issue ?Are you faced a display problem ?

I recommend you to use STM32CubeMX v4.25 supported STemwin to create and configure your project.

TheSTM32CubeMx

http://www.st.com/content/ccc/resource/technical/document/user_manual/10/c5/1a/43/3a/70/43/7d/DM001047pdf/files/DM001047pdf/jcr:content/translations/en.DM001047pdf

mayhelp you on this, in section 13 Tutorial 7 – Using STemWin Graphical framework.

Best Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on April 06, 2018 at 15:18

Get the manuals for the display and the controller, and then find an example with similar characteristics. Port the memory/geometry level stuff, and replace the register level stuff with setting appropriate for your panel/controller.

Ask the panel vendor for example code, or search web for controller code, and port to the STM32

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on April 07, 2018 at 12:20

Hello Clive thank you for replying. i already considered the manual and provided all the necessary settings for FMC based SDRAM, LTDC configuration and followed the STEMWIN lib porting procedure. i used GUIDRV_LIN_24 & GUICC_M888 color conversion but i am not able to see the string or any character i draw in 800*480 resolution although when i use GUIDRV_LIN_16 & GUICC_M565 i could draw a line or print a string in 200*480 active region for Layer0.

i am taking the examples provided inSTM32Cube\Repository\STM32Cube_FW_F7_V1.0\Projects\STM32F769I_EVAL\Applications\STemWin as reference but i couldnt succeed. The evaluation board i am having along with the display is connected in DSI but in my custom board its in RGB way. i just wanted to confirm whether i should use a custom driver based on the template provided in STEMWIN or i shud use the GUIDRV_LIN??? Also is the GUIDRV_LIN_24 & GUICC_M888 works??? i dint find any example for this driver can you plz suggest any example???

i am also attaching my files for your reference if u would like to have a look on them. thank you

________________

Attachments :

GUIConf.c.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxoU&d=%2Fa%2F0X0000000b14%2FS3XS1wiTc4aWn7oN0U5yYF4EVdoo6c7yyNX4pzA50Wk&asPdf=false

LCDConf_Lin.c.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxoF&d=%2Fa%2F0X0000000b0z%2FFB_WOYTKMJaquXrCKLKD_T8jI0e3zYTCSkstAZXArKk&asPdf=false

fmc.c.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxoA&d=%2Fa%2F0X0000000b10%2FNNlgdMXY2RU14RrfuImXj4yJYwdnrV1L7P0NlHonEB8&asPdf=false

ltdc.c.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hxo5&d=%2Fa%2F0X0000000b11%2FOhqpp6knIVPvniawWLdN5p6m_pnQTJT9YJBM4YEig2c&asPdf=false

main.c.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxcF&d=%2Fa%2F0X0000000b0y%2F.sFrK54z7QtZZcpnyLnC7DLy2u8_1wc0H7.mjnFCe6o&asPdf=false

BASIC_HelloWorld.c.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hxo0&d=%2Fa%2F0X0000000b0x%2FYq5C0toRqix3QEfday74iANt9D7IHPXeKvoPv10cqoQ&asPdf=false
Posted on April 07, 2018 at 12:30

Hello Imen,

thank you for replying. As i posted earlier i have a custom board having STM32F769BIT6 processor on it. When I am using GUIDRV_LIN_16 & GUICC_M565 i could draw a line pixel by pixel or display a string in 200*480 active region in layer0 for my LCD having 800*480 resolution. when i increase the resolution the pixels are getting scattered and not able to see any stable draw.

i also tried GUIDRV_LIN_24 & GUICC_M888 / GUIDRV_LIN_32 & GUICC_M8888 but i am not able to see any draw in 800*480 active region as well as 200*480 region. 

i followed the examples provided in STM32cubemx projects for various eval boards but there is no example for GUIDRV_LIN_24 / 32 driver. can you plz suggest.

in case of stm32cubemx i couldnot enable stemwin as its not coming for STM32F769BIT6 processor and if it comes enable for the STM32F769 family it requires DSI host config which is not available in my board, my LCD is interfaced through LTDC using RGB.

Best Regards,

sanjeev

sanjeev majumdar
Associate III
Posted on April 19, 2018 at 06:10

Hi 

i could resolve the issue upto some level using GUIDRV_LIN16 & GUICC_565 along with layer0. i changed the SDRAM timings and its working till now ok.

/*alliance AS4C16M16S 256M – (16Mx16bit) Synchronous DRAM*/

SdramTiming.LoadToActiveDelay = 2;

SdramTiming.ExitSelfRefreshDelay = 9;

SdramTiming.SelfRefreshTime = 9;

SdramTiming.RowCycleDelay = 6;

SdramTiming.WriteRecoveryTime = 2;

SdramTiming.RPDelay = 3;

SdramTiming.RCDDelay = 3;