cancel
Showing results for 
Search instead for 
Did you mean: 

Where to place own source/header files on CUBE IDE?

JSILV.2
Senior

Even copying and pasting my *.h & *.c files into my new project CUBE IDE does not accept these files, issuing: "No such file or directory" and aborting the compilation. What should I do?

My bult: Version: 1.3.1

Build: 6291_20200406_0752 (UTC)

2 REPLIES 2
TDK
Guru

Generally, you place them in the same directory as main.c and main.h, although you can put them elsewhere if you tell the IDE about those directories. Drag/drop into the directory should work.

If you feel a post has answered your question, please click "Accept as Solution".
JSILV.2
Senior

Thanks for your answer.

In spite of we have the explained two ways to insert customer files, the drag & drop method seems to produce less "warning" messages.