Cannot get ILI9320 build but SSD1289 will. Why?

daviddawe1982
Posts: 94
Joined: Thu Apr 11, 2013 10:35 am

Cannot get ILI9320 build but SSD1289 will. Why?

Postby daviddawe1982 » Sat Apr 20, 2013 4:08 pm

Hello,
Well i am finally able to build and connect via STlink in ubuntu. I think my windows install was giving me a lot of grief.
I can build the Graph example from the Chibios GFX example master and download it to my board but it uses the SSD1289 and when i change it in my makefile to my ILI9320 driver i get a heap of errors in build for example :

/home/david/Desktop/ChibiStudio/chibios/demos/ChibiOS-GFX-Example-master/graph/../../../ext/gfx/drivers/gdisp/ILI9320/gdisp_lld.c:90: undefined reference to `gdisp_lld_write_data'
/home/david/Desktop/ChibiStudio/chibios/demos/ChibiOS-GFX-Example-master/graph/../../../ext/gfx/drivers/gdisp/ILI9320/gdisp_lld.c:90: undefined reference to `gdisp_lld_write_data'
build/obj/gdisp_lld.o: In function `lld_lcdWriteIndex':
/home/david/Desktop/ChibiStudio/chibios/demos/ChibiOS-GFX-Example-master/graph/../../../ext/gfx/drivers/gdisp/ILI9320/gdisp_lld.c:86: undefined reference to `gdisp_lld_write_index'
build/obj/gdisp_lld.o: In function `lld_lcdWriteData':
/home/david/Desktop/ChibiStudio/chibios/demos/ChibiOS-GFX-Example-master/graph/../../../ext/gfx/drivers/gdisp/ILI9320/gdisp_lld.c:90: undefined reference to `gdisp_lld_write_data'

these errors do not exist when using the SSD1289 driver.
Am i not switching to my driver correctly?
Thanks

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: Cannot get ILI9320 build but SSD1289 will. Why?

Postby Tectu » Sat Apr 20, 2013 6:08 pm

It looks like you're missing the board files. Did you create and include them as the documentation describes?


~ Tectu

daviddawe1982
Posts: 94
Joined: Thu Apr 11, 2013 10:35 am

Re: Cannot get ILI9320 build but SSD1289 will. Why?

Postby daviddawe1982 » Sun Apr 21, 2013 8:08 am

I have included the board file and set it up using both the "olimex_stm32" and the one that came with the gfx example master as it was set up for the stm32f4 discovery.I have connected the controller to the discovery as you stated in the interface tutorial.
I worked out that my problem at the start was the original board file that came with the examples master was coded like this :

static __inline void acquire_bus(void)

where it needed to be like this

static inline void acquire_bus(void)

once i did that for each in my board file the original errors went away and the project would build.
but sadly i still do not have a operating lcd.
i have e-mailed you a copy of my board file, could you have a quick look at it and see if i have made a mistake some where??
thanks

daviddawe1982
Posts: 94
Joined: Thu Apr 11, 2013 10:35 am

Re: Cannot get ILI9320 build but SSD1289 will. Why?

Postby daviddawe1982 » Sun Apr 21, 2013 8:14 am

my board file for ILI9320 ON STM32F4 discovery
Attachments
gdisp_lld_board.zip
my board file
(2.14 KiB) Downloaded 169 times

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: Cannot get ILI9320 build but SSD1289 will. Why?

Postby Tectu » Sun Apr 21, 2013 9:26 am

The inline issue has been fixed months ago, are you sure that you are on the latest master? When the wiring is correct (please double check), there aren't many other issues that can occure with FSMC. Have you used too long wires? Please try to lowed the FSMC speed/timings.


~ Tectu

daviddawe1982
Posts: 94
Joined: Thu Apr 11, 2013 10:35 am

Re: Cannot get ILI9320 build but SSD1289 will. Why?

Postby daviddawe1982 » Sun Apr 21, 2013 2:08 pm

the board file in the examples master was the old one.
i have reconnected and double checked my connections.
i have the backlight just connected to 3v
i have reset connect to vdd (have tried with out it connected two)
i dont even get a flicker.
could it be a faulty controller??
i do have a SSD1963 controlled lcd on its way i hope i have more luck with that one..

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: Cannot get ILI9320 build but SSD1289 will. Why?

Postby Tectu » Sun Apr 21, 2013 3:56 pm

Are you absolutely sure that you have an ILI9320 controller? There have been some earlier issues with the ILI93xx. Sometimes the ILI9325 driver worked.
Also, please open the datasheet of your MCU and make sure the FSMC pins are right. If you find any issues compared to the table on the gfx website, I'd be thankful if you'd tell me (I checked them my self, seems to be all right).


~ Tectu

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: Cannot get ILI9320 build but SSD1289 will. Why?

Postby Tectu » Sun Apr 28, 2013 10:58 am

Could you get your display working in the mean time?


~ Tectu


Return to “LCD Driver and Graphic Framework”

Who is online

Users browsing this forum: No registered users and 1 guest