ILI9488 not working in FC10

Any bugs you encounter with Flowcode should be discussed here.
jgu1
Posts: 813
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 696 times
Been thanked: 183 times

Re: ILI9488 not working in FC10

Post by jgu1 »

Hi Ben!

Thank you.

Yes I have update, check everytime I start FC.
I tryed your resized modification, But no luck. What do you mean that "Touch screen component is missing a Prescaler value"

Concerning chip format = $PORTX.X it is not possible to change for that. As soon I tic for the Chip reference its ok, but when I close the windov it go back again?

No, none action in the display at all, totally blank, not even a flicker.

I have compared all setting in FC9 > FC10 they are equal.
Strange hope you can find out of something, pleace

EDIT: I try to run my testprogram for ILI9341 also, work fine in FC9 but not in FC10 either.
Let me hear if there is something I do or help you ;)

Jorgen
Attachments
Standard.h
(26.67 KiB) Downloaded 351 times
Standard.fcfx
(25.78 KiB) Downloaded 515 times
Standard.c
(96.4 KiB) Downloaded 319 times

BenR
Matrix Staff
Posts: 1952
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 510 times
Been thanked: 698 times

Re: ILI9488 not working in FC10

Post by BenR »

Thanks Jorgen I'll try with your program.

Out if interest if you create a new simple v10 project then does that work at all.

jgu1
Posts: 813
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 696 times
Been thanked: 183 times

Re: ILI9488 not working in FC10

Post by jgu1 »

If I create a new program in FC10 with ESP32 and a Ili9488 it does not work. If I add a 1sec flasher in the same program this work, and in my ‘newSolar` program ligthsensor work also, an output go High when it is dark. Only the ILIxxxx displays will not.

Again let me hear If I in anyway can help :)

Jorgen

BenR
Matrix Staff
Posts: 1952
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 510 times
Been thanked: 698 times

Re: ILI9488 not working in FC10

Post by BenR »

Hi Jorgen,

Took me a while to spot but your Standard program is using the ILI9341 display and not the ILI9488. Which display are you trying to target?

The NewSun project is usilng the ILI9488 so I'll carry on testing with that one.

BenR
Matrix Staff
Posts: 1952
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 510 times
Been thanked: 698 times

Re: ILI9488 not working in FC10

Post by BenR »

Right the problem seems to be $pin14 the CS pin is remaining high, if I change this to $pin12 then all is working correctly and the display fires up.

Not sure what's wrong with $pin14 so I'll investigate.

jgu1
Posts: 813
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 696 times
Been thanked: 183 times

Re: ILI9488 not working in FC10

Post by jgu1 »

Ben! I made a test with the ILI9341 in FC10 also. This is also not working, so ILI9341 and Ili9488 does not work in FC10 :) but both work perfect in FC9

BenR
Matrix Staff
Posts: 1952
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 510 times
Been thanked: 698 times

Re: ILI9488 not working in FC10

Post by BenR »

Hello,

Now working for me on $pin14, I've pushed a change to the IO.c CAL file which hopefully will help to solve the problem on both displays. Your program now working great on the hardware.

Let me know how you're getting on.

BenR
Matrix Staff
Posts: 1952
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 510 times
Been thanked: 698 times

Re: ILI9488 not working in FC10

Post by BenR »

Just a word of warning on your NewSun program. You seem to have a circular calling structure which will eventually lead to stack corruption.

Main -> FrontValg -> VoltAmp -> Lyssensor -> Setting -> Test_Out -> FrontValg

As you go round and round the loop the return path will be added to the stack on each macro call and at some point the stack will run out of memory and bad things may happen. Best case the MCU will reset.

Ideally you should allow for the stack to push and pop as required and not have circular calls unless there is specific cases that allow all the macros to return.

jgu1
Posts: 813
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 696 times
Been thanked: 183 times

Re: ILI9488 not working in FC10

Post by jgu1 »

Hi again!

Thank you for the warnings, I may change the program. Just perform a test with my standard and sun program after update , but sorry still no luck :roll:

This standarprogram is the ILI9341
Attachments
Standard.fcfx
(25.79 KiB) Downloaded 373 times
Last edited by jgu1 on Tue Mar 07, 2023 12:41 pm, edited 1 time in total.

jgu1
Posts: 813
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 696 times
Been thanked: 183 times

Re: ILI9488 not working in FC10

Post by jgu1 »

Just testing and testing. I have my .FCFX placed in a lib. and first time you compile, normally FC create a new lib for the Build an Main in the same lib.
but now theese lib is placed outside the other lib. ? does this help you?

Suggest, what if I test your program which work by you Ben?

Post Reply