Skip to main content
Miloš
Associate II
April 15, 2023
Solved

TouchGFx generated project gets messed up by IDE after ioc modification and code regen ('TouchINT' undeclared and other errors)

Steps to reproduce:

  1. generate project in TouchGFX
  2. open in IDE, it compiles
  3. open IOC, enable interrupt for uart1, save, accept the code generation (it asks about migrating code, not sure why, I have latest versions IDE 1.12.0 and GFX 4.21.3, I chose to migrate)
  4. try to compile -> compilation errors

The first set of errors is easy to fix, they are related to the following lines dissapearing from freertos.c

volatile uint8_t TouchINT_irq = 0;

extern volatile uint8_t TouchINT;

int32_t X_touch;

int32_t Y_touch;

these lines were not in the "user code" sections and got cleared after code was generated by IDE.

If I restore those lines, there is a bunch of other errors starting with

quadspi.c:53:33: error: 'QSPI_Flash_Transfer_Mode' undeclared

I can see (thanks to GIT client) that quadspi.c "suffered" a lot of changes and one of them was removal of that constant.

I am using Riverdi 70STM32H7

This topic has been closed for replies.
Miloš
MilošBest answer
Associate II
April 17, 2023

For an update, after I revert the quadspi.h and quadsp.c to their initial state the program compiles again so there are no further problems in other files.

1 reply

Miloš
MilošAuthorBest answer
Associate II
April 17, 2023

For an update, after I revert the quadspi.h and quadsp.c to their initial state the program compiles again so there are no further problems in other files.