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.

CCSv5

I have a CCSv5 setup issue with the 'mcpu' flag. I am running on an am37x processor (a8) which I have my project set for (mcpu=a8) but have my subdirectories showing mcpu=m3. The build log shows that I am   compiling using the mcpu=m3 flag which is incorrect and hopefully the reason my project in not executing correctly. There must be a way to remove these 'm3' flags from the build.

For some reason I have 1 sub-directory that has the mcpu=a8 flag set correctly, all the remaining ones are set for mcpu=m3. No idea why.

Does anyone have any idea how I can clear these m3 flags out. I tried adding mcpu=a8 in the 'Other flags' box but  ended up with both the mcpu=m3 and mcpu=a8 flags set , which I did not attempt to build with.

  • Steven,

    Is this using code sourcery gcc?

    John

     

  • It is possible to set build options on a folder that then apply to any file in the folder.  Is there a little indicator on any of the folders like in the capture below.  This notes that options other than what is set as the project level have been applied to the selected item (file or folder).

     

    You can reset a item back to the project settings but selecting it, going into properties and clicking on the restore defaults button.  

  • John,

    Thank you for the quick response. Yes I have that icon on all but 1 of my directories. However, when I tried your suggestion all my added compiler switches and -D flags were removed for that directory. I guess I thought that the 'restore defaults' button would remove all of the extra flags, which took me many hours to put in, so I never tried it. That being said, is there another way that will remove the mcpu=m3 flag and save all the other flags that I added?

  • Steven,

    Instead of restoring the defaults for the folder you could change the folder to have mcpu=a8.  That would change everything in the folder to a8 except if any of the files themselves also had explicit overrides.  What I mean is that if a file got the m3 flag from the folder setting you are fine but if it got the setting from the options for that file being set then even if you change it for the folder it will keep the m3 setting.

     

    Regards,

    John

  • John,

    I must be missing something. If I go to a /src folder and select 'properties - settings' I get a screen that displays all my flags in the 'all options' box and has mcpu=m3. If I high-light the mcpu=m3 flag in the 'all options' box and then select 'restore defaults' I lose all my flags.

    How can I change the folder to have mcpu=a8 without using the 'restore defaults' button? None of my files have special options set.

    Thsnk You,

    Steve

  • Steve,

    I don't have code sourcery installed so I don't know exactly what their options dialog looks like.  But somewhere in the dialog should be a option to set the mcpu option.  I have a gcc project that uses the default gcc options it has groups of options that you can select and then modify the specific options.  In general the "Options" box that you see when you select C/C++ build on the left is read only, you need to select Settings under that and then hunt for your option.  

    Regards,

    John

  • John,

    I agree, that would be the logical assumption, but I've been looking for 2 days and have found nothing. This is what my CCSv5 'Settings' screen looks like. If you have any suggestions on where to look, I'm all ears. Thanks for your help to this point.