Tool/software: Code Composer Studio
Hello, I have imported a project from a folder and I am having some problems. These says: gmake:***[souce/filename.obj] Error 1 you can see the picture below. How can I solve the problem?
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.
Tool/software: Code Composer Studio
Hello, I have imported a project from a folder and I am having some problems. These says: gmake:***[souce/filename.obj] Error 1 you can see the picture below. How can I solve the problem?
Hello Andrea,
The links to all your screenshots are broken. Can you re-post?
If you continue to have issues, please see the below FAQ:
https://e2e.ti.com/support/tools/ccs/f/81/t/821597
Thanks
ki
Using this configuration seems it doesn't take the library correctly as shown in the figure. In addition, I have used this guide to charge the library: e2e.ti.com/.../537065
The #1965 error is saying that it cannot find some header files (F021.h, etc). You must make sure that you have the include search path to that header file specified. That would be the --include_path list you had in your first screenshot in the thread.
So you mean that I have to include the library in both places? In ARM Compiler - Include option and in ARM Linker - File search path?
No, libraries should be added to the Linker options. The include file search path (the directories where the compiler will look for header files) belongs in the Compiler options.
Andrea Adamo said:If I include the libraries in the complier option I have other error "gmako:***....."
No, you do not want to do that. You want the library in the Linker file search path like you did before. Please remove it from the --preinclude compiler option and add it back to the linker options.
What you want to do is have the directory to F021.h in the compiler include search path. Where does it exist on your PC? Make sure that path is added to the compiler --include_path list.
Ok, there are a lot of various compiler errors. Where did you get this project that you are trying to import?
It is a software coming from an STM32 to a TI uC. I solved some error but I still have a lot of errors which seems to be libraries errors. For example the error #28 expression must have a constant value, has no sense as the "ADC_saturation" has a constant value If you see, N_Prom is a constant value too.
In addition, all the GIOA and GIOB seems to be errors of the library gio.h.
I am not familiar with the code you are trying to port so i cannot offer much more help. Porting code from one platform to another can be a daunting task. Good luck!
Andrea Adamo said:and the two gmake errors
The 2 gmake errors are because of #20 and #29
Andrea Adamo said:#20 identifier spiChipSelect is undefined when I define the variable SS as spiChipSelect.
#29 expected an expression
These are very common and standard C compiler errors. Please check the lines where these errors occur and make sure spiChipSelect is properly defined and look for any syntax errors (again I am not familiar with the code so I cannot provide any more details than this)
Thanks
ki