Mikromedia TFT and SD Card

General discussion on mikroC PRO for PIC32.
Post Reply
Author
Message
Bill Legge
Posts: 235
Joined: 28 Oct 2007 03:16
Location: West Australia

Mikromedia TFT and SD Card

#1 Post by Bill Legge » 26 May 2019 07:53

I am using a Mikromedia board with the TFT and an SD Card
Both use SPI2 and when I write/read to the card it corrupts the TFT screen
I presume this is because they share SPI2?
I have tried disabling/enabling the TFT_CS whilst using the card but the corruption remains.
Any advice please?

Regards Bill Legge

Bill Legge
Posts: 235
Joined: 28 Oct 2007 03:16
Location: West Australia

Re: Mikromedia TFT and SD Card

#2 Post by Bill Legge » 26 May 2019 07:55

Sorry - I got that wrong!
The TFT uses the PMP; so why is it corrupting the display when I write/read the SD card?
I have tried disabling the PMD during write/read the SD card but no luck?

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: Mikromedia TFT and SD Card

#3 Post by stefan.filipovic » 27 May 2019 10:46

Hi Bill,

Have you tried to run the MMC example from the following link?
https://libstock.mikroe.com/projects/vi ... 2-examples
Could you tell me exactly which microSD card are you using, and how it is formatted?

Would you like to share your project or to send it directly to my email: [stefan.filipovic@mikroe.com], so I can reproduce the same behavior?

Kind regards,
Stefan Filipović

Bill Legge
Posts: 235
Joined: 28 Oct 2007 03:16
Location: West Australia

Re: Mikromedia TFT and SD Card

#4 Post by Bill Legge » 28 May 2019 01:53

Stefan,
Thanks, the demo code worked OK on my Mikromedia for PIC32.
I've done a minimalist version of my code and that also works OK.
So, the fault lies in my code - ill try and find it an post a good working version here.
Regards Bill Legge

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: Mikromedia TFT and SD Card

#5 Post by stefan.filipovic » 28 May 2019 14:58

Hi Bill,

I'm glad that you have managed to get it works.

I suggest comparing the working example with your example to check if there is any difference which might cause this issue.

Kind regards,
Stefan Filipović

Post Reply

Return to “mikroC PRO for PIC32 General”