cancel
Showing results for 
Search instead for 
Did you mean: 

UNABLE TO DISPLAY IMAGE ON 240x320 TFT DISPALY

soobia
Associate II
Posted on May 05, 2014 at 06:22

Can some one help me out  as 

I am

 unable to display image on HY32D TFT.The TFT Display controller is ILI9320 and ''LCDVision'' is used to convert image into c array.

Is there any turn around to this problem ?

Hardware and other system details are ,

Hardware Board:Hy mini STM32V   

Controller:STM32F103VCT6

Thanks

Regards

#image-display-on-tft
7 REPLIES 7
Posted on May 05, 2014 at 11:19

What have you tried? Are there not drivers available from the board house?

http://www.powermcu.com

  HAOYU Electronics

http://www.coocox.org/forum/topic.php?id=3391

http://www.micro4you.com/store/hy-mini-stm32v.html

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
soobia
Associate II
Posted on May 05, 2014 at 11:54

Driver is available but no code to display image so I have downloaded the code from net but that is not working .

Can I get a code to display image on the said TFT.

soobia
Associate II
Posted on May 05, 2014 at 12:17

The function LCD_BMP of the file attached is used to display the image. 

soobia
Associate II
Posted on May 05, 2014 at 12:42

Forgot to attach file in previous mail

Sorry for inconvenience and refer the file attached

________________

Attachments :

ili9320.c : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzOi&d=%2Fa%2F0X0000000bLD%2FrMcN.WlUq3dAiz.uHUpLWU4cqxb1Ck18tYQqjf67qO8&asPdf=false
Posted on May 05, 2014 at 15:17

You can edit your own posts.

With the code you provided were you able to do anything with the display? Change colour? Draw lines?

Observe that you have provided code using SPI to access the display, but all evidence is that is is a parallel/fsmc based display. Please look at the code/downloads at the sites I provided earlier.

http://www.micro4you.com/files/Poweravr/HY-MiniSTM32V_2012.2.28.rar

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
soobia
Associate II
Posted on May 06, 2014 at 07:53

I have used the LCD_BMPmono function of that file only.

I have used your proposed ''LCD_DrawPicture'' function of GLCD.c this function is displaying same Image multiple times on the screen.

I got an ''Image'' and its ''Carray'' from internet .When I test the ''LCD_DrawPicture'' function, the image draws multiple time on the screen but when I convert the same image by myself either using ''LCDvision'' or LCD2Image converter and test the function then only dots or lines are appered .

Plz suggest an'' image to c array converter'' and alsochanges in ''LCD_DrawPicture'' function to display the monochrome images

My code , image i am displaying and the image Carray is attached here with for your perusal

Regards.

________________

Attachments :

hy32d_Display_Image.rar : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzNl&d=%2Fa%2F0X0000000bLC%2F8O3pFnGNLUFD2CqGSCJR0aqEnUiRmez7T5palXw5bLU&asPdf=false
Posted on May 06, 2014 at 17:05

I don't have your board/display, but the BMP you have uses a 24-bit Colour space (RGB 8:8:8), where as the display uses 16-bit (5:6:5). The LCD_DrawPicture() function is attempting to write directly to the LCD using the data in the structure, and so it expects the data to be suitably encoded. It also doesn't appear to handle lines properly, or program the controller with window dimensions.

Generating data for the display in a C array is not a particular complicated programming task, I would typically just code my own. If you are using any number of third party tools you will need to evaluate the command line options, and associated documentation, to understand what input and output files it deals with, and how it manipulates the data or converts to different colour spaces.

[DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Decoding%20bmp&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx?Paged%3DTRUE%26p_StickyPost%3D%26p_DiscussionLastUpdated%3D20140503%252008%253a14%253a41%26p_ID%3D41426%26View%3D%257bF47A9ED8%252dE726%252d42BE%252dACED%252d732F13B66581%257d%26FolderCTID%3D0x012001%26PageFirstRow%3D41&currentviews=385]A long thread on bitmaps

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