Why not start touch with cubeprogrammer but only with stm32ide
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-13 10:26 AM
Hi
I do have a program with touchgfx running on a stm32f746-disco.
When program with stm32cibe IDE it starts up and running very fine
BUT when i take the .elf file and program the board with the stm32cube programmer it do not start up touch ..
what do you guys think the problem can be ?
Best regards
Hjalmar
- Labels:
-
STM32F7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-13 10:52 AM
Why yes? Programmer do what is setup. After flash load hold in reset etc... Have GO cmd ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-14 2:10 AM
Hi
How to give it a GO command ?
The screen on the board are showing start up screen but touch not working when loading with cube programmer but when loading with IDE then everything is working
Hjalmar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-14 3:26 AM
In STM32ToucController.cpp in the generated code I found this:
static void I2Cx_Error(I2C_HandleTypeDef* i2c_handler, uint8_t Addr) { /* De-initialize the I2C communication bus */ HAL_I2C_DeInit(i2c_handler); /* Re-Initialize the I2C communication bus */ //I2Cx_Init(i2c_handler); }
Which I changed to:
static void I2Cx_Error(I2C_HandleTypeDef* i2c_handler, uint8_t Addr) { /* De-initialize the I2C communication bus */ HAL_I2C_DeInit(i2c_handler); /* Re-Initialize the I2C communication bus */ //I2Cx_Init(i2c_handler); HAL_I2C_Init(i2c_handler); }
And now the app works perfectly after a reboot.
I guess the touch controller is maybe starting up slower than the app can handle without the error handling.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-11-14 4:23 AM
