TouchGFx generated project gets messed up by IDE after ioc modification and code regen ('TouchINT' undeclared and other errors)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-15 4:12 AM
Steps to reproduce:
- generate project in TouchGFX
- open in IDE, it compiles
- 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)
- 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
Solved! Go to Solution.
- Labels:
-
STM32CubeIDE
-
STM32H7 series
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-17 8:32 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-04-17 8:32 AM
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.
