ST7789 Initialization problem with PIC32MX270F256D MCU

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
Sasi
Posts: 117
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 12:11 pm
Has thanked: 39 times
Been thanked: 14 times

ST7789 Initialization problem with PIC32MX270F256D MCU

Post by Sasi »

Hello Ben,

I'd like to ask for a little help.
I tried to install a firmware that uses the ST7789 display on the PIC32MX270F256D MCU.
This code on STM32F446RE run before, the display have worked correctly.

If I use the PIC32, the MCU sends the following command immediately after the SWRESET (01h) and SLPOUT (11h) commands during initialization. For some reason, there is no delay after the first two instructions. There is no time left for the display to process these instructions. The display isn't working.
PIC32MX270F256D_ST7789_Init.jpg
PIC32MX270F256D_ST7789_Init.jpg (23.83 KiB) Viewed 2263 times
For STM32, there is a pause of about 150 ms after the SWRESET instruction and about 500 ms after the SLPOUT instruction when the initialization component macro has run. The display is working.
ST7789_with_PIC32MX270F256D.fcfx
(8.9 KiB) Downloaded 353 times
ST7789_with_STM32F446RE.fcfx
(9.28 KiB) Downloaded 346 times
Thank you in advance for your help.

Best Regards,

Sasi

Sasi
Posts: 117
Joined: Wed Dec 02, 2020 12:11 pm
Has thanked: 39 times
Been thanked: 14 times

Re: ST7789 Initialization problem with PIC32MX270F256D MCU

Post by Sasi »

Hello,

The source of the problem is in the "PIC32BIT_CAL_Delay.c" file.
Works fine after the next modification.
PIC32BIT_CAL_Delay_c_repair.jpg
PIC32BIT_CAL_Delay_c_repair.jpg (65.63 KiB) Viewed 2235 times
(Thus, the "DELAY command" will also work if the "delay value" is greater than 127 ms.)
Please fix it.
Best Regards,
Sasi

Post Reply