[NECTO Studio 2.5.0] Undeclared identifier 'TFT_MAX_BACKLIGHT' in expression [Solved]

Cross-platform IDE for the rapid development of applications for the embedded world, available on Windows, Linux, and macOS.
Post Reply
Author
Message
frank.malik
Posts: 96
Joined: 09 Apr 2021 20:37

[NECTO Studio 2.5.0] Undeclared identifier 'TFT_MAX_BACKLIGHT' in expression [Solved]

#1 Post by frank.malik » 28 Dec 2022 17:22

Hello,

installed Necto Studio v2.5.0 five minutes ago and already found the first mistake.

I made a new Designer Project to check another bug found several months ago ( which is still there ).
I just took the default template generated by Necto without any changes.

Code: Select all

void board_init()
{
    touch_controller_init(&display_driver, TFT_MAX_BACKLIGHT);
    // Initialize Graphic library.
    gl_set_driver(&display_driver);

    touch_controller_tp_init(&tp, &tp_interface);
}
This code raises the following compiler error ( also indicated by the parser )

Code: Select all

Undeclared identifier 'TFT_MAX_BACKLIGHT' in expression
Correct setting is TFT8_MAX_BACKLIGHT, as defined in "tft8.h"
Attachments
Test_v2-5-0_Designer.zip
(4.28 KiB) Downloaded 33 times
Kind regards
Frank

Fusion for STM32 v8, STM32F407ZG@168MHz, 4" TFT capacitive
mikromedia 3, PIC32MZ2048EFH100@200MHz, 3" TFT capacitive
NECTO Studio 3.0.0, mikroC AI for ARM/PIC32, mikroSDK v.2.7.2

frank.malik
Posts: 96
Joined: 09 Apr 2021 20:37

Re: [NECTO Studio 2.5.0] Undeclared identifier 'TFT_MAX_BACKLIGHT' in expression [Solved]

#2 Post by frank.malik » 29 Dec 2022 07:56

Hello,

the combination of Necto Studio 2.5.0 with any of the old MikroSDK versions is not a good idea.

In the setup that is used for the project, the SDK needs to be changed/updated to v2.7.1.
Now it works.
Kind regards
Frank

Fusion for STM32 v8, STM32F407ZG@168MHz, 4" TFT capacitive
mikromedia 3, PIC32MZ2048EFH100@200MHz, 3" TFT capacitive
NECTO Studio 3.0.0, mikroC AI for ARM/PIC32, mikroSDK v.2.7.2

Post Reply

Return to “IDE”