cancel
Showing results for 
Search instead for 
Did you mean: 

I Create Custom Project on the STM32H735 DK with TouchGFX and i have problem to enable the touch controller

MSale.1
Senior

BSP_TS_GetState inTouchGFX Return Hardfault and the i2c4 state is always Reset in the BSP_TS_Init. i use STM32H735 Discovery Kit.

15 REPLIES 15
Alexandre RENOUX
Principal

Hello MSale.1,

We have the Application template for H735-DK in TouchGFX Designer. Are you saying that the touch controller does not work on the code we provide ?

Or is it your own project that is not working ? If so, you should check the Application template.

A touch controller is simply an I2C communication. Are you sure your I2C peripheral is correctly initialized ?

/Alexandre

MSale.1
Senior

@Alexandre RENOUX​ 

Hi.

The Application Template is working fine. i build new project using the CUBE IDE. After i disabled the I2C in the CUBE configuration the BSP_TS_Init work fine but i can not get the touch controller ID.

its fails here exactly.

 /* Wait until TXIS flag is set */

 if (I2C_WaitOnTXISFlagUntilTimeout(hi2c, Timeout, Tickstart) != HAL_OK)

 {

  return HAL_ERROR;

 }

of course i must use the BSP here cause touchgfx use this functions as well.

I did it this way with many discovery boards and never faced such issues.

I did nothing with the I2C initialization. i just use your BSP Package.

Mahmoud

Hi MSale.1,

If you cannot get the touch controller ID, this means BSP_TS_Init does not work fine. Make sure FT5336_Probe() returns no error.

Try to trace back what are the differences between your new code and the Application Template. If the hardware is the same, you must have something wrong in your new code.

/Alexandre

Hi @Alexandre RENOUX​ 

The BSP_TS_Init does not return any error. I dont think the problem in the code its just generated code from the CUBE IDE.

There are no differences really between your template and my code. maybe the clock configuration so i will check it. I dont know if you used the CUBE IDE to generate your template or not but if you did not then it will be good idea to try to create custom project on that board.

Regards

Mahmoud

Hi @Community member​ ,

Could you share your project in this thread ?

Beforehand, please delete the following folders to make the project smaller in size :

  • Middlewares/
  • Object files in STM32CubeIDE/
  • TouchGFX/build - TouchGFX/generated

/Alexandre

Hi @Alexandre RENOUX​ 

Here is the project

Hi @Alexandre RENOUX​ 

Any update?

Regards

Mahmoud

Hello MSale.1,

I cannot compile because the wiced/ folder is missing. Could you send it to me ?

/Alexandre

@Alexandre RENOUX​ 

Hello,

Here is another project created with cube ide with the same problem. i only deleted the middleware.

Best Regards

Mahmoud Salem