cancel
Showing results for 
Search instead for 
Did you mean: 

Why not start touch with cubeprogrammer but only with stm32ide

hjh
Associate III

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

4 REPLIES 4
MM..1
Chief II

Why yes? Programmer do what is setup. After flash load hold in reset etc... Have GO cmd ...

hjh
Associate III

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

Maybe same issue as on other thread











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.