2023-10-09 10:00 PM
I can configurate the touchGFX configurator with the stm32f746, i can open the .part and designer some figures and bottoms, these yes appears in the LCD, i use the hardware stm32f746 discoveryboard.
But i no can active the function of the touch, have activate the I2C3 with 100khz, standard mode, as examples use the GFX Designer, but i no find put the FT5336 driver, or how i can configurete o call a these file autmatically ? i no understad how active the touch controller,
Solved! Go to Solution.
2023-10-11 01:13 AM
Hello @RMasi.19 ,
Did you include the path of your ft5336 driver?
2023-10-10 02:48 AM
Hello @RMasi.19 ,
If you use an STM32F746G-Discovery board, we already provide a TBS that you can use without changing the driver or anything to enable touch screen.
Have you tried it?
2023-10-10 06:47 AM
Hi, yes i have probed the stm32F746 discovery kit, but i want practice with touchGFX generator and take the discoveryboard as if it were my design, i can generate images but the touch no work
2023-10-10 09:33 PM - edited 2023-10-10 09:36 PM
2023-10-11 01:13 AM
Hello @RMasi.19 ,
Did you include the path of your ft5336 driver?
2023-10-11 06:24 PM
Thank you, i can now activate the touch with touchgfx generator,
i now have two function in Screen1View.cpp, one for a button and other for aa toggle button:
void Screen1View::myPulsador1()
{
if( Pulsador1.getPressedState() ) HAL_GPIO_WritePin(GPIOI, GPIO_PIN_1, GPIO_PIN_SET);
else HAL_GPIO_WritePin(GPIOI, GPIO_PIN_1, GPIO_PIN_RESET);
//HAL_GPIO_TogglePin(GPIOI, GPIO_PIN_1);
}
void Screen1View::myToggleLed2()
{
if(toggleButton1.getState()) HAL_GPIO_WritePin(GPIOI, GPIO_PIN_1, GPIO_PIN_SET);
else HAL_GPIO_WritePin(GPIOI, GPIO_PIN_1, GPIO_PIN_RESET);
}
the function for toggle button work and PI1 is on/off, but function of button no activa the PI1, i know what enter here because when write the function togglePin yes active PI1 on/off. Maybe Pulsador1.getPressedState() no is the correct question, i think what it is the state of the button, some suggestion ?
2023-10-17 05:25 AM
Hello @RMasi.19 ,
I don't understand why you need a condition for your button. You just need to declare an interaction with as trigger : "Button is Clicked". Like this :
Then you can code that function in your Screen1View.cpp
void Screen1View::myButtonIsClicked()
{
HAL_GPIO_WritePin(GPIOI, GPIO_PIN_1, GPIO_PIN_SET);
}
I think it's simpler like that. Could you try that and tell us?
2023-10-31 04:46 PM
ok, thanks, can i now drive the touchGFX generator, configurate the sram external and nor_flash external, but these take two months, driven a discovery_board with touchgfx designer is more simple, but configure a custom board the learning is hard.
2023-11-02 06:54 AM
Hello @RMasi.19 ,
Thank you for your feedback. We try to be better with our documentation so we'd like to know which part was difficult for you?
2023-11-02 06:44 PM
i believe consider a discoveryF746 as a custom board, with external ram mt48lc, eternal flash n25q128a, touch controller ft5336, ,make a video where configure these from the touchgfx generator, creating a project without the discovery setup or BSP functions.