This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi there,
context (skip if you what):
"I'm working with the microcontroller TMS320F28386D, and i have a project with multiple cores, CPU1, CPU2 and CortexM, resulting in 3 projects, the CPUx cores have the sysconfig tool to configure pin mux and generates a header file with name "board.h" automatically, i want to import this header file to CortexM project without import others automatically generated headers in the same directory."
Problem:
Is there any way to include only a header file from a extern directory with multiple header files to a project? or automatically copy this file before building the project? or any other solution using a system project?
Thanks for your guidance,
Ramon,
Hello,
Is there any way to include only a header file from a extern directory with multiple header files to a project?
I'm not sure I understand the issue. Your source file can explicitly include this header file so as long as the file exists and the compiler knows where to look, it can pull the file in
or automatically copy this file before building the project?
You can specify a pre-build step to copy the file also:
Thanks
ki
Hello Ki,
Thanks for the answer, the pre-build step resolves my problem.
The problem in including the header file in it's folder is that seems the folder is included on the search path, then other header files are processed and in this case there is a header file with the macro "#error" causing error on build.
Best Regards,
Ramon.