TouchGFX integration with External Project
Hi there, I'm coming across some issues with respect to Touch GFX and my project. I'm trying to build a UI on the Touch GFX Designer software such that it can display certain temperature readings onto the Riverdi STM32H7 embedded display. I'm trying to use SPI2 communication line from the on-display board MCU to the temperature sensor module and hardware seems to be fine. For the CS Pin I'm using the GPIOA Pin 5 which is used for DAC1 (I've commented out it's initialisation and used it as a Output pin).
I was able to successfully build the Touch GFX project and was able to access the 'gui' folder generated by the designer as you can see below:
Files
Next, I added the files pertaining to the MAX31856 temperature sensor that I'm using and please note that these files are in C and not C++. I also made sure that they were included in the project correctly however I'm not certain. Below are the include paths, the sensor files and the sensor file position in the project explorer:
A) GCC Compiler -> Include paths:
B) G++ Compiler -> Include paths:

C) MAX31856.c and .h files:
MAX31856.c file:


MAX31856.h file:


D) Project Explorer View:


C:/Tempcounter/CM7/TouchGFX/gui/src/screen1_screen/Screen1View.cpp:27: undefined reference to `MAX31865_readTemp()'
collect2.exe: error: ld returned 1 exit status
It would be great if anyone could help with this issue!
