2023-10-02 06:19 PM
I have a definition file (.h file) that contains some data type definitions. I'd like to use them while running the Simulator of TouchGFX, but when I run the simulator it can not find that .h file.
Where do I add file and path inclusions for the Simulator?
It appears that there is a Makefile in the simulator/gcc directory, is this the correct place?
2023-10-02 06:40 PM - edited 2023-10-02 07:41 PM
That is it. Include in the Makefile located in the simulator/gcc directory. The application path is the root, so any directories you add need to refer to that directory.
I have a slight issue with the Queues I've created in the freertos.c file. Any hints on that?
#include <gui/model/Model.hpp>
#include <gui/model/ModelListener.hpp>
#include "cmsis_os.h"
#include "engine_params.h"
extern "C"
{
extern osMessageQueueId_t GUIQueueHandle; // <-- Simulator can not find
}
They are declared in ../../CM7/Core/Scr/freertos.c
/* Definitions for GUIQueue */
osMessageQueueId_t GUIQueueHandle;
const osMessageQueueAttr_t GUIQueue_attributes = {
.name = "GUIQueue"
};