Page 2 of 4

Re: ILI9488 not working in FC10

Posted: Mon Mar 06, 2023 6:56 pm
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

Re: ILI9488 not working in FC10

Posted: Mon Mar 06, 2023 11:21 pm
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.

Re: ILI9488 not working in FC10

Posted: Tue Mar 07, 2023 5:18 am
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

Re: ILI9488 not working in FC10

Posted: Tue Mar 07, 2023 10:02 am
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.

Re: ILI9488 not working in FC10

Posted: Tue Mar 07, 2023 10:21 am
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.

Re: ILI9488 not working in FC10

Posted: Tue Mar 07, 2023 10:22 am
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

Re: ILI9488 not working in FC10

Posted: Tue Mar 07, 2023 10:57 am
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.

Re: ILI9488 not working in FC10

Posted: Tue Mar 07, 2023 11:04 am
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.

Re: ILI9488 not working in FC10

Posted: Tue Mar 07, 2023 11:49 am
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

Re: ILI9488 not working in FC10

Posted: Tue Mar 07, 2023 12:28 pm
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?