2022-07-14 09:08 AM
After upgrading from TouchGFX 4.19.1 to 4.20.0 the TouchController (and maybe also GPIO) does not work anymore.
The reason is, that now (after device configuration tool code generation or TouchGFX update) our user code in all files in the directory "target" disappeared. During migration it could be selected do keep the user code - the user code in main.c was kept.
Before:
/* USER CODE BEGIN STM32TouchController */
#include <STM32TouchController.hpp>
#include "touch.h"
extern I2C_HandleTypeDef hi2c3;
extern TS_Driver_t ts_driver;
TS_State_t state;
void STM32TouchController::init()
{
/**
* Initialize touch controller and driver
*
*/
ts_driver.Init();
ts_driver.GetFWVersion(&hi2c3,state.fw_version);
ts_driver.GetModelName(&hi2c3,state.model_name);
}
----------------------------
Now:
/* USER CODE BEGIN STM32TouchController */
#include <STM32TouchController.hpp>
void STM32TouchController::init()
{
/**
* Initialize touch controller and driver
*
*/
}
Is this a bug? How can this be fixed/avoided?
Solved! Go to Solution.
2022-07-15 02:54 AM
Hello @awiernie ,
I know that there was some issues with file deletion with CubeMX 6.6.0.
They just released version 6.6.1, can you try to regenerate with this one and let us know ?
Thank you,
/Yoann
2022-07-14 09:20 AM
If I replace the files with the older version, the files are rewritten if I build the project with the empty versiond.
2022-07-14 10:43 AM
IDE 1.10.0 and MX 6.6.0 have this issue maybe latest solve this .
I on every upgrade touchgfx backup and erase target manualy.
After generate compare and solve diffs.
2022-07-15 02:54 AM
Hello @awiernie ,
I know that there was some issues with file deletion with CubeMX 6.6.0.
They just released version 6.6.1, can you try to regenerate with this one and let us know ?
Thank you,
/Yoann
2022-07-15 05:28 AM
I had already installed 6.6.1, but I clicked continue (and not migrate):
Now I have migrated and the code was not erased - the TouchScreen works again.