cancel
Showing results for 
Search instead for 
Did you mean: 

How to Include .h file Found in Workspace in the Simulator?

Richard Lowe
Senior III

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?

1 REPLY 1
Richard Lowe
Senior III

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"
};