After update!

Any bugs you encounter with Flowcode should be discussed here.
BenR
Matrix Staff
Posts: 1739
http://meble-kuchenne.info.pl
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

Re: After update!

Post by BenR »

Hi Jorgen,

Sorry you're running into these issues, I'm very keen to help get them ironed out for you.

It might help if I give you the ability to alter things under the hood. First I would ensure you are using the latest of everything including the latest CAL ESP SPI C file.

Next please select a hardware channel for the SPI, displays using software SPI are going to be very slow. You also need to check your SPI rate isn't too fast as this can stop the displays from working, more so if you're using the high speed SPI pins. Maybe start at 20Mhz and see how you get on with that speed.


If it's still not working after tweaking the SPI speed then here is something else you can try.

Go to view and Component Debugger, inside the new Component Debugger window tick the Expose full component tree item.

Next go to the properties window and click the drop down at the top. You're looking for the CAL SPI component nested inside the display component.
PropSelect.jpg
PropSelect.jpg (17.63 KiB) Viewed 798 times
Once you have selected the cal_spi component look at the Clock Phase and Clock Polarity settings. Try changing these values until the hardware is working again. Once it's working please let us know which settings you're using and we can apply them here as the defaults.

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: After update!

Post by jgu1 »

Hi Ben!

Hope you understand my frustation. As I earlyer have mentioned I like FC and is a great user andsee all the benefit and are aware it is a big program.
But when I am working on a project as well in HW and progam and have compiled many time, then suddently after an update it not work, It's annoying ;)
I will always be helpful with everything I can.

After I discover that the display not work, I though it was me who had made an error, an begin to change everyting regarding the display, also the speed down to 400kHz, so all this I have tested. Fortunately I always make a backup everytime before change something, so at least I can roll back in my project, because I know this ver. have worked.

Ok I have tryed to find the Cal component, but I think I miss something, please guide a bit more I not sure that I am on rigth way, and I will try your suggest ;)
Attachments
SPI.png
SPI.png (209.84 KiB) Viewed 793 times

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: After update!

Post by jgu1 »

So far so good Ben I can´t find the Clock Phase and Clock Polarity settings, if I do how do I edit in these?

If I uninstall FC10 and install again, is this a possibility?

WingNut
Posts: 254
Joined: Tue Jul 13, 2021 1:53 pm
Has thanked: 33 times
Been thanked: 23 times

Re: After update!

Post by WingNut »

Click the properties tab

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: After update!

Post by jgu1 »

Already done, but no Clock Phase and Clock Polarity settings.

@ Ben, will it work if I uninstall FC and reinstall?

Otherwice I can send you an ILI9488 + ST7796 display and you could try to fix the component for these?

Br Jorgen

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

Re: After update!

Post by BenR »

@ Ben, will it work if I uninstall FC and reinstall?
No, don't do that, that is a guarenteed waste of your time.

You need to be on the Properties tab of the properties window, then use the drop down menu at the top to look inside the display component.
Props.jpg
Props.jpg (101.74 KiB) Viewed 784 times
These are the properties of the cal_spi nested inside the display. I've highlighted the ones of interest.
Props2.jpg
Props2.jpg (62.37 KiB) Viewed 783 times

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: After update!

Post by jgu1 »

Hi Ben!

Finally I found the SPI in the path.

After trying different setting with Clock Phase and Clock Polarity settings, "the sun project" seemed to work again as earlyer, wow I am saved and can continue with my project. The setting for the sun project (slow) is as att. picture.

But the Highspeed for Ili9488 and ST7796 Display, no matter what I do with Clock Phase and Clock Polarity settings mHz ect. it not work at all, display Blanck?

The ILI9341 Highspeed work..

Jorgen
Attachments
Setting SunProject.png
Setting SunProject.png (122.69 KiB) Viewed 750 times

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: After update!

Post by jgu1 »

Hi Ben!

Further investigation.

If I use the above setting for Colorphase and Polarity Idle and I roll the ESP_cal_Spi.c file back from ver.8 to 7 my "sun-" project work If i update not working.

Same issue for the Highspeed ILI9488

Edit...After roll back,ESP_cal_Spi.c file ver.8 to 7 now the ST7796 Highspeed also work perfeckt

Look like something wrong with the EESP_cal_Spi.c file.

Br Jorgen

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: After update!

Post by jgu1 »

Hi Ben!

During working with the display the last time I think I have them working and maybe a finally solution :D
Odd.
Tested on 2 labtop.

I have to flip the Clock Phase and Clock Polarity settings one time and back again (need to), and if you update, you have to roll back, ESP_cal_Spi.c file ver.8 to 7. ESP_cal_Spi.c ver 8 the display doesn´t work
then all the Ili and ST7796 display work as the should again, at least for me. So far when I update, I avoid update the ESP_cal_Spi.c keep it on 7.

Hope this is helpfull.

Br Jorgen
Attachments
Working.png
Working.png (6.16 KiB) Viewed 703 times

MJU20
Posts: 244
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 75 times
Been thanked: 50 times

Re: After update!

Post by MJU20 »

jgu1 wrote:
Sun Jul 30, 2023 10:28 am

I have a project with ESP32 and a ILI9488, today I want to change somethingin the program and as always, before change something I try to compile to see everything is ok.

Today same procedure, but now the ILI9488 doesn´t work anymore? Then I begin to investergate. Let me say the "the new Sun" project is a project before the highspeed SPI which Ben made. It work before but now blank screen?

Same with the ILI9341_SPI component after an update of the used components in a testfile.
Loaded the project in V9, and this still works.

I was working on this file yesterday and it worked fine.
Let FC10 get the last updates today and the display doesn't work anymore..

Post Reply