Page 1 of 1

Cannot get ILI9320 build but SSD1289 will. Why?

Posted: Sat Apr 20, 2013 4:08 pm
by daviddawe1982
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

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

Posted: Sat Apr 20, 2013 6:08 pm
by Tectu
It looks like you're missing the board files. Did you create and include them as the documentation describes?


~ Tectu

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

Posted: Sun Apr 21, 2013 8:08 am
by daviddawe1982
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

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

Posted: Sun Apr 21, 2013 8:14 am
by daviddawe1982
my board file for ILI9320 ON STM32F4 discovery

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

Posted: Sun Apr 21, 2013 9:26 am
by Tectu
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

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

Posted: Sun Apr 21, 2013 2:08 pm
by daviddawe1982
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..

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

Posted: Sun Apr 21, 2013 3:56 pm
by Tectu
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

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

Posted: Sun Apr 28, 2013 10:58 am
by Tectu
Could you get your display working in the mean time?


~ Tectu