Skip to main content
MSale.1
Senior
June 26, 2021
Question

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

  • June 26, 2021
  • 2 replies
  • 2368 views

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

This topic has been closed for replies.

2 replies

Alexandre RENOUX
Visitor II
June 29, 2021

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
MSale.1Author
Senior
June 29, 2021

@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

Alexandre RENOUX
Visitor II
June 30, 2021

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

MSale.1
MSale.1Author
Senior
June 30, 2021

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