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.

CCS: gmake: *** [main.obj] Error 1

Tool/software: Code Composer Studio

Hi there. I'm trying to compile a test code to blink an LED with an RM48, however I'm getting this error in Code Composer Studio:

>> Compilation failure
subdir_rules.mk:9: recipe for target 'main.obj' failed
"C:\Users\tekver\AppData\Local\Temp\1420810", ERROR! at line 80: [E0002] Instruction only available in V7
WFI


Errors in Source - Assembler Aborted
gmake: *** [main.obj] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

Note that I'm using some linked files from another project, however I've provided all the paths in the project properties. Any idea of what might be triggering this error? 

Also the other project I talk about compiles without any errors (I didn't code that other project, just to specify that the problem is probably being caused in this project alone.)

Thanks in advance.

Gabriel Sá Pinto

  • UPDATE: I was missing a specification in the build properties, however I now have thousands of errors, and they all originate from an ARM library I included. This is how it looks like....

  • Gabriel,

    What is the source of the libraries you are using? Seems the compatibility with the RM48 is suspect or, at least, compatibility with the TI ARM compiler might be suspect.
  • I don't know the exact source, when I started working on this project they gave me an already compiled project to study, now I'm supposed to make some tests and see how it works, thus starting with the LED blink. All the libraries I'm using already came with that project, but they compile without any problem with the other project, and I'm using the same microcontroller to the same board that was used with that project, the only difference is that I created a new project in CCS to test the LED...

  • Gabriel,

    I see that these are related to the CMSIS library. The error you are getting is a syntax error indicating a missing bracket. This could be an error in a macro definition or an error due to some nested comments, etc. You should track down the specific file and have a look at where the error is indicated to see if you can determine the root cause.

    If this same file is working well in your other project definition and there are absolutely no differences in the source, then this is problematic as there would have to be a difference somewhere. You might want to double check you include paths and include types as well as any instantiation of the library functions you may be using in your project. Other potential areas are to look at the specific compiler version and the linker command file for any differences. There has to be some difference somewhere or it would also compile without issue like the original project.
  • Hi Chuck,

    Thank you for your help, I couldn't find the problem that was causing the previous error, however I found that the CMSIS libraries I included weren't really needed for my test.

    Nonetheless I have yet some other errors, which are displayed in the image below. I really don't understand the deal with those "unresolved symbol" errors, I know that has something to do with the includes, but the thing is I included all the references and declarations as far as I can tell.

    Those 3 errors are being originated in control.c (listed in the linked files on the left, underlined in red), those 3 variables are externally declared in board.h which is in the include path above. I also linked to the board.c. What else do I need to do? Is there something missing?

    (I'm linking files which are from another project "RM48App" is there a problem with that?)

    Thank you once again for the help.

    Gabriel  

  • Hello Gabriel,

    I apologize for the delay in getting back with you. Are you still seeing this issue or have you been able to resolve it? If you are still seeing these errors, I would suggest you post a question regarding the inclusion of another projects object files into you current project since this is more of a compiler related issue and not a device specific issue.
  • Hello, I haven't been able to resolve it, but currently I have this project in standby since I'm working on different stuff now.
    When I get back to it I'll be sure to follow your advice.
    Thank you