This program was working great for me.
ILI9488 not working in FC10
-
- Matrix Staff
- Posts: 1952
- http://meble-kuchenne.info.pl
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 510 times
- Been thanked: 698 times
Re: ILI9488 not working in FC10
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- 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
Hi Ben!
I have test your program. I see that you use CH2 and your Prescale is 20 mHz. I have config the pin as in your program, and check many times.
When I open your program a message came up "this program is made in a newer version"
Unfortunately it doesn´t work for for me, no matter what we do, and it work for you, and work perfect for me in FC9 strange?
I don´t know how much time and troubleshooting you will do? but we must state that Ilixxxx cannot be safely used in FC10. Now I know and must continue in FC9 if nothing to do - so far thanks for your efforts.
br
Jorgen
I have test your program. I see that you use CH2 and your Prescale is 20 mHz. I have config the pin as in your program, and check many times.
When I open your program a message came up "this program is made in a newer version"
Unfortunately it doesn´t work for for me, no matter what we do, and it work for you, and work perfect for me in FC9 strange?
I don´t know how much time and troubleshooting you will do? but we must state that Ilixxxx cannot be safely used in FC10. Now I know and must continue in FC9 if nothing to do - so far thanks for your efforts.
br
Jorgen
-
- 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
Hi Jorgen,
I'd like to solve it if we can. In my project the display is constantly being written to. Do you have anything that you can use to check the state of each io pin. A simple led and series resistor might do to checl the state of each pin. I've compared the v9 and v10 code and so far haven't found anything significant that would be causing the problem.
I'd like to solve it if we can. In my project the display is constantly being written to. Do you have anything that you can use to check the state of each io pin. A simple led and series resistor might do to checl the state of each pin. I've compared the v9 and v10 code and so far haven't found anything significant that would be causing the problem.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- 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
Hi Ben!
Yes I have a scoope and led and I rest later today and you hear. Yesterday I try to Compile on my other laptop too, but same result, compile fine but nothing in the display.
Could be nice if other here in forum have the possibility perform a test also
Yes I have a scoope and led and I rest later today and you hear. Yesterday I try to Compile on my other laptop too, but same result, compile fine but nothing in the display.
Could be nice if other here in forum have the possibility perform a test also

-
- 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
Hi Ben!
Progres, progres
All the data when I use my scope look equal for the SPI pins on the display when FC9 compiling and FC10 compiling. Exept the Reset pin.
When compiled with FC9 reset always HIGH
When compiled With FC10 reset always LOW. If I remove the resetpin from ESP and connect this to 3v3 and reset the ESP, the display work, so if the reset is active low, logig nothing shown in the display.
Finally, so nice, you and I are good
Can/will you fix this and maybe the same issue with ILI9341, I have not test this yet?
Thank´s in advance.
Br
Jorgen
Progres, progres




All the data when I use my scope look equal for the SPI pins on the display when FC9 compiling and FC10 compiling. Exept the Reset pin.
When compiled with FC9 reset always HIGH
When compiled With FC10 reset always LOW. If I remove the resetpin from ESP and connect this to 3v3 and reset the ESP, the display work, so if the reset is active low, logig nothing shown in the display.


Can/will you fix this and maybe the same issue with ILI9341, I have not test this yet?
Thank´s in advance.
Br
Jorgen
-
- 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
Hi Jorgen,
I've looked and the code is setting the reset pin highbin the initialise function so this is strange. Please can you look at the initialise function in the c file. I compared your generated c code to mine though and didn't find any differences. I did push an io fix last week that may help if you don't already have it.
I've looked and the code is setting the reset pin highbin the initialise function so this is strange. Please can you look at the initialise function in the c file. I compared your generated c code to mine though and didn't find any differences. I did push an io fix last week that may help if you don't already have it.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- 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
Hi Ben1
Sorry it´s me, yes you send this update file last week and you already have found the problem concerning th e reset pin.
(I though I have found the golden stone
)
Yes I have up date, always check when startup FC. Honest, I am not able to see what happend in the .c file so I made a fresh compiling again in FC9 and FC10 with same program and still the reset pin is low when compile in FC10. I add the .c file rename them, will you please have a check and let me hear if I can do something.
Thank´s in advance
Jorgen
Sorry it´s me, yes you send this update file last week and you already have found the problem concerning th e reset pin.


Yes I have up date, always check when startup FC. Honest, I am not able to see what happend in the .c file so I made a fresh compiling again in FC9 and FC10 with same program and still the reset pin is low when compile in FC10. I add the .c file rename them, will you please have a check and let me hear if I can do something.
Thank´s in advance
Jorgen
- Attachments
-
- NewSunFC9.c
- (235.83 KiB) Downloaded 383 times
-
- NewSunFc10.c
- (235.83 KiB) Downloaded 478 times
-
- 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
I have had a look, don´t know if it is the correct place but the .c file is equal in FC9 and the FC10 compiled .c file
void FCD_01de1_gLCD_ILI9488_SPI1__Initialise()
{
//Local variable definitions
MX_UINT8 FCL_DAT;
FC_CAL_SPI_Master_Init_1();
// reset_pin = 1
SET_PORT_PIN(B, 1, 1);
FCI_DELAYBYTE_MS(5);
// reset_pin = 0
SET_PORT_PIN(B, 1, 0);
// chip_sel_pin = 1
SET_PORT_PIN(A, 14, 1);
FCI_DELAYBYTE_MS(5);
// dc_pin = 0
SET_PORT_PIN(A, 27, 0);
// reset_pin = 1
SET_PORT_PIN(B, 1, 1);
FCI_DELAYBYTE_MS(150);
#if (0)
//Code has been optimised out by the pre-processor
#else
// chip_sel_pin = 0
SET_PORT_PIN(A, 14, 0);
#endif
void FCD_01de1_gLCD_ILI9488_SPI1__Initialise()
{
//Local variable definitions
MX_UINT8 FCL_DAT;
FC_CAL_SPI_Master_Init_1();
// reset_pin = 1
SET_PORT_PIN(B, 1, 1);
FCI_DELAYBYTE_MS(5);
// reset_pin = 0
SET_PORT_PIN(B, 1, 0);
// chip_sel_pin = 1
SET_PORT_PIN(A, 14, 1);
FCI_DELAYBYTE_MS(5);
// dc_pin = 0
SET_PORT_PIN(A, 27, 0);
// reset_pin = 1
SET_PORT_PIN(B, 1, 1);
FCI_DELAYBYTE_MS(150);
#if (0)
//Code has been optimised out by the pre-processor
#else
// chip_sel_pin = 0
SET_PORT_PIN(A, 14, 0);
#endif
-
- Matrix Staff
- Posts: 2086
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 644 times
- Been thanked: 702 times
Re: ILI9488 not working in FC10
Hi Jorgen.
Your NewSunFc10.c shows:
With the same date and time as NewSunFC9.c
Your NewSunFc10.c shows:
Code: Select all
Generated by: Flowcode v9.3.1.36
Martin