You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I enable the timer it says its undeclared in z_display_ILI94XXX.h during compiling.
../Core/Inc/z_displ_ILI9XXX.h:124:41: error: 'htim14' undeclared (first use in this function); did you mean 'htim'?
124 | #define TGFX_T htim14
| ^~~~~~
../Core/Src/z_displ_ILI9XXX.c:1189:20: note: in expansion of macro 'TGFX_T'
1189 | if (htim==&TGFX_T){
| ^~~~~~
../Core/Inc/z_displ_ILI9XXX.h:124:41: note: each undeclared identifier is reported only once for each function it appears in
124 | #define TGFX_T htim14
| ^~~~~~
../Core/Src/z_displ_ILI9XXX.c:1189:20: note: in expansion of macro 'TGFX_T'
1189 | if (htim==&TGFX_T){
The main.cpp has the declaration
TIM_HandleTypeDef htim14;
//--------------Solution-------------------
You need to extern define the timer inside z_displ_ILI9XXX.c
Add the lines at the top under the spi declaration
That's a mistake: the extern declaration of TGFX_T is submitted to the dimming backlight.
It seems I didn't tested last updates with no "dimming".
And I suppose you didn't use it.
I am looking at the differences between in ILI9488 and the ILI9486. Both are the same resolution (320X480). The ili9488 does only RGB666 and the ILI9486 does both RGB565 and RGB666. This might explain what you are seeing with the V2/V1 issue, one of your displays may be a ILI9486 which are relatively new. There is a command: Read display identification information (04h) that might help explain what you are seeing. I don't have a ILI9486 display so unfortunately I can't do this.
Hi Maudeve,
When I enable the timer it says its undeclared in z_display_ILI94XXX.h during compiling.
../Core/Inc/z_displ_ILI9XXX.h:124:41: error: 'htim14' undeclared (first use in this function); did you mean 'htim'?
124 | #define TGFX_T htim14
| ^~~~~~
../Core/Src/z_displ_ILI9XXX.c:1189:20: note: in expansion of macro 'TGFX_T'
1189 | if (htim==&TGFX_T){
| ^~~~~~
../Core/Inc/z_displ_ILI9XXX.h:124:41: note: each undeclared identifier is reported only once for each function it appears in
124 | #define TGFX_T htim14
| ^~~~~~
../Core/Src/z_displ_ILI9XXX.c:1189:20: note: in expansion of macro 'TGFX_T'
1189 | if (htim==&TGFX_T){
The main.cpp has the declaration
TIM_HandleTypeDef htim14;
//--------------Solution-------------------
You need to extern define the timer inside z_displ_ILI9XXX.c
Add the lines at the top under the spi declaration
#ifdef TGFX_TIMER
extern TIM_HandleTypeDef TGFX_T;
#endif
// Also change the Lines in z_displ_ILI9XXX.h to (sub in your timer port)
#ifdef DISPLAY_SPI_DMA_MODE
#define TGFX_TIMER TIM14
#endif
#define TGFX_T htim14
The text was updated successfully, but these errors were encountered: