Skip to main content
Exit0815
Senior
February 12, 2023
Question

Simulation error: *** missing separator. Stop.

  • February 12, 2023
  • 2 replies
  • 1959 views

Hello,

i know the problem of the error "*** missing separator. Stop." from the build, but i do not understand why it happen here. What i know is that it should have Tab instead of spaces, but line 4 does not have multiple spaces.

I created a simple simulation.h file which content is:

#ifndef INC_SIMULATION_H_
#define INC_SIMULATION_H_
 
typedef enum{
 TEST,
 TEST2
};
 
 
#endif /* INC_SIMULATION_H_ */

Makefile with this iclude:

ADDITIONAL_SOURCES := ../Core/Inc/simulation.h

And the error output when i start the simulator is:

Run Simulator
 Generate
 Done
 Generate Assets
 make -f simulator/gcc/Makefile assets -j8
 Reading ./application.config
 Reading ./target.config
 Done
 Post Generate
 touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
 Done
 Post Generate Target
 touchgfx update_project
 Writing STM32CubeIDE project file: ../.cproject
 Done
 Compile
 make -f simulator/gcc/Makefile -j8
 Reading ./application.config
 Reading ./target.config
 ../Core/Inc/simulation.h:4: *** missing separator. Stop.
 generated/simulator/gcc/Makefile:155: recipe for target 'generate_assets' failed
 make[1]: *** [generate_assets] Error 2
 make: *** [all] Error 2
 simulator/gcc/Makefile:32: recipe for target 'all' failed
 Failed
 Failed

What can i do here?

Thank you.

This topic has been closed for replies.

2 replies

Roger.ch
Associate III
February 12, 2023

Have you ever tried to give your typedef a name?

Is it otherwise difficult to declare the variable?

I always do it like this: 

typedef enum _e_gruppe_t

{

    E_GRUPPE_Sensor,

    E_GRUPPE_Aktor,

    E_GRUPPE_Parameter,

    E_GRUPPE_HMI,

    E_GRUPPE_ANZ,

}e_gruppe_t;

Exit0815
Exit0815Author
Senior
February 12, 2023

Yes, i just wrote a simple example.

Same problem when adding a typedef name.

line with "typedef enum xyz" is error " *** missing separator"

does it work somewhere else?

touchgfx version 4.21.1