Microchip-MPLAB-Harmony / gfx

Harmony 3 Graphics library
https://microchip-mplab-harmony.github.io/gfx/
Other
15 stars 14 forks source link

GFX on pic32MK #17

Open raf6410 opened 3 years ago

raf6410 commented 3 years ago

Hi,

I use the project "legato_quickstart" on my dev board curiosity pic32 mz ef. it's works i have try to convert this project to a PIC 32MK1024MCM100 and now it NOT working. After many try, nothings works. they are no activity on SPICLK pin. I use terminal ( putty) to try to debug, the program it still running.

Please, could you help me.

MHGC commented 3 years ago

Hi,

Is this flavor of the legato_quickstart the one you are based off of? https://microchip-mplab-harmony.github.io/gfx_apps_pic32mz_ef/apps/legato_quickstart/firmware/legato_qs_mzef_cu2_cpro_spi.X/

Are you using the same display for the PIC32MK1024MCM100?

raf6410 commented 3 years ago

hi,

Yes i use this one. I try : 1) in properties i change the ref of the pic => building ok => but nothings on the screen 2) use the files .MHC of the exemple in a new project base on pic 32MK => building ok => but nothings on the screen 3) I switch the display on my board curiosity board pic 32mz => it works on this one

MHGC commented 3 years ago

Do you have the datasheet for your display?

Also, can you post a picture of the MHC project diagram (the one in the Harmony Configurator) for 2.?

raf6410 commented 3 years ago

hi,

this is my display : http://www.lcdwiki.com/3.5inch_SPI_Module_ILI9488_SKU:MSP3520

I use harmony 3 :

MHC project diagrm

MHGC commented 3 years ago

Ok. Next is the pin manager. Do these pin definitions: GFX_DISP_INTF_PIN_RESET (GPIO OUT/LATCH HIGH) GFX_DISP_INTF_PIN_RSDC (GPIO OUT/LATCH HIGH) GFX_DISP_INTF_PIN_CS (GPIO OUT/LATCH HIGH) GFX_DISP_INTF_PIN_BACKLIGHT (GPIO OUT/LATCH LOW)

match with the pins from your PIC to the interface?

MHGC commented 3 years ago

Can you measure the pin output of each of these pins? Compare the behavior out of the MZ EF Curiosity 2.0 vs your board? See which ones have similar behavior and which one does not?

raf6410 commented 3 years ago

HI, i have check pin manager these signals are OK and correctly attributed I measure each signal, all Signals are differents GPIO PIN and SPI PIN SPI pin are correctly attach in PIN manager

PIN SPI_Setting

MHGC commented 3 years ago

Hi,

"all Signals are differents GPIO PIN and SPI PIN" Do you mean these signals look different coming out of MZ EF versus your MK board?

Can you probe the 4-line SPI pins durng driver initialization in DRV_ILI9488_Configure and send picture of the probe signals?

raf6410 commented 3 years ago

Hi,

Sorry for my response late.

For exemple below the signal SPI Clock on initialization phase on my custom PIC32MK board 048

and now the same signal on the PIC32 MZ EF curiosity 045

I try to connect my display on all SPI on the PIC, it is the same probleme