Images not displaying on mikromedia for PIC32 with ILI9341

General discussion on mikroElektronika development boards.
Post Reply
Author
Message
zdan
Posts: 11
Joined: 04 Apr 2013 00:39

Images not displaying on mikromedia for PIC32 with ILI9341

#1 Post by zdan » 04 Apr 2013 00:57

Hi,

I've just received a new Mikromedia for PIC32 board. On arrival it was displaying its tiger image just fine, and when I used mikroC v3.3.0 to produce a simple IO-toggling program, this worked fine too.

However after this I have been unable to get any of the examples to display images on the TFT. I tried the ones that come with mikroC; I tried the ones downloadable from libstock at http://www.libstock.com/projects/view/1 ... 2-examples . I tried VisualTFT v3.50, but only got as far as realizing that it does NOT have a hardware pattern for my board (no PIC32 for Mikromedia boards, although there is one for MikroMMB).

The examples appear to upload and run (I am using mikroBootloader v2.1.0.0), but the screen stays white. When I upload my IO-toggling program, I see RB0 toggling at the rate I expect; when I upload something else, I see RB0 staying flat.

I wonder if this has something to do with the insert that came with my board, which reads: "As of March 20th 2013, all mikroElektronika products that used to contain MI0283QT-2 display with HX8347D controller now feature the new improved MI0283QT-9A display with ILI9341 display controller." My board does indeed have the new display.

Can anyone help? I am working on a project that is all about displaying images...

Thanks,
Dan

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Images not displaying on mikromedia for PIC32 with ILI93

#2 Post by filip » 04 Apr 2013 13:24

Hi,

First of all, update the compiler to version 3.3.1 using Help -> Check For Updates options from the IDE.
Then load the examples from the attachment.

Regards,
Filip.
Attachments
mikromedia for PIC32.rar
(775.02 KiB) Downloaded 313 times

zdan
Posts: 11
Joined: 04 Apr 2013 00:39

Re: Images not displaying on mikromedia for PIC32 with ILI93

#3 Post by zdan » 04 Apr 2013 16:17

Thanks filip. I am trying to update to mikroC Pro v3.3.1.0, but this is failing. Help -> Check For Updates finds it, but when I try to actually download it I always get this pop-up:

"Download Error. Server connection problem. Yes/No"

(Choosing "Yes" attempts the download again, but it fails again. Choosing "No" closes the pop-up, but the IDE seems to be in a bad state: my cursor is stuck in its spinning-circle state. This is on Win7 home premium SP1 64-bit.)

Thanks,
Dan

Berni4
Posts: 16
Joined: 29 Jan 2013 22:20

Re: Images not displaying on mikromedia for PIC32 with ILI93

#4 Post by Berni4 » 04 Apr 2013 22:03

Hi,
I have the same problem. But I want to use my old programs. When comes the Visual TFT update? Or can I make the settings by hand?

Berni4

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Images not displaying on mikromedia for PIC32 with ILI93

#5 Post by filip » 05 Apr 2013 14:27

Hi,

Please, find the __Lib_TFT_Defs.c file in the attachment, replace it with the existing one found in the ..\mikroC PRO for PIC32\uses\ folder (backup just in case)
and the ILI9431 will be populated in the TFT_Defs library in the Library Manager.

Regards,
Filip.
Attachments
__Lib_TFT_Defs.rar
(8.52 KiB) Downloaded 358 times

zdan
Posts: 11
Joined: 04 Apr 2013 00:39

Re: Images not displaying on mikromedia for PIC32 with ILI93

#6 Post by zdan » 05 Apr 2013 17:08

Thank you Filip, with __Lib_TFT_Defs.c it is working now.
Dan

Berni4
Posts: 16
Joined: 29 Jan 2013 22:20

Re: Images not displaying on mikromedia for PIC32 with ILI93

#7 Post by Berni4 » 05 Apr 2013 18:44

Thank you.
Where is the controller setting which makes visual tft in the generated code?

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Images not displaying on mikromedia for PIC32 with ILI93

#8 Post by filip » 08 Apr 2013 12:25

Hi,

We will be releasing the Visual TFT update soon which will cover this controller.

Regards,
Filip.

zdan
Posts: 11
Joined: 04 Apr 2013 00:39

Re: Images not displaying on mikromedia for PIC32 with ILI93

#9 Post by zdan » 11 Apr 2013 21:48

Update: I was able to get mikroC to update by running it as administrator, before asking it to check for updates.

Dan

Jires
Posts: 4
Joined: 21 May 2013 03:25

Re: Images not displaying on mikromedia for PIC32 with ILI93

#10 Post by Jires » 21 May 2013 19:59

I have the same problem here...it seems that the new TFT is not compatible withe the examples provided.


could you please provide a hex working example for STM32 M4 (mikroC).

thanks

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Images not displaying on mikromedia for PIC32 with ILI93

#11 Post by filip » 22 May 2013 11:04

Hi,

Please find the TFT example for the new ILI9341 controller in the attachment.

Regards,
Filip.
Attachments
TFT (MMB).rar
(322.05 KiB) Downloaded 369 times

alekarasma
Posts: 18
Joined: 12 Aug 2013 06:27

Re: Images not displaying on mikromedia for PIC32 with ILI93

#12 Post by alekarasma » 20 Aug 2013 06:53

Hello filip
Can u please give me the same code for mikro C PRO for PIC18....
plz its very urgent and important..
thank you....

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Images not displaying on mikromedia for PIC32 with ILI93

#13 Post by filip » 20 Aug 2013 09:04

Hi,

Which MCU and development board are you using ?

Regards,
Filip.

Post Reply

Return to “Development Boards”