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.

Warning Code Does Not Show

Other Parts Discussed in Thread: CONTROLSUITE

I use CCS v5.4 and build an example project from controlSuite. The warning message does not show the fault code, which is usually shown in my own projects.

Is there a way to turn on some option to show the fault code or how to find out the fault code. I want to suppress the known warning messages.

Thanks!

  • Hi Louis!

    If you mean the warning on your screenshot then you have not "fault code".  Refer please to this link http://processors.wiki.ti.com/index.php/C28x_Compiler_Error_and_Warning_Messages#Warning:_entry-point_symbol_other_than_.22_c_int00.22_specified:_.22code_start.22

    Regards,

    Igor

  • Hi Igor,

    You are right I should not say fault code, but what I asked was how to turn on the message code which is usually associated with the warning message. The screenshot was just an example that did not have a message code.

    I look for a way to turn on the message code.

  • Louis,

    The warning you cited about the entry point symbol is a project level warning and is not associated with a source file.  That is why there is no link to the cause of the warning in a source file.

    The entry point is specified in the CCS project options.  It is a purely artificial thing, and used only by CCS when you do a "Restart" command in the debugger.  CCS prefers to use the default entry point _c_int00, which is the start of the C-compiler initialization routine from the RTS library.  If you specify a different entry point, CCS complains.  Personally, I'd like to see CCS not complain about this as there is no reason for it, but that is a different matter.

    Regards,

    David

     

  • I should add, you can easily (and safely) suppress this particular warning message.  When you do the build, look in the CCS 'console' view.  You will see something like this:

    warning #10063-D: entry-point symbol other than "_c_int00" specified: "code_start"

    The diagnostic ID is seen as 10063.  Open your CCS project, and under C2000 linker add '10063' to the --diag_suppress options box:

    The warning will no longer appear when you do a build.

    Note that in general, you do not want to be suppressing diagnostic messages unless you fully understand why the message has appeared, have concluded that you can safely ignor it, and know that you will not have future instances where you may want this message to be produced.  In the case of the entry point symbol, there is only a single cause for it, and we understand why it is happening.  Therefore, it is safe to suppress it if the user wants to do that.

    - David

     

     

  • Hi Louis!

    Louis Zhu said:

    what I asked was how to turn on the message code which is usually associated with the warning message.

    Generally when you create new project the option "Suppress warnings" is off by default (refer please to above screenshot of David). Thus you will get warning message and if one is associated with some "problem" code then you can detect this "problem" line through left double click on this warning. For example I have defined a variable which is not used:
    Regards,
    Igor
  • I really appreciate your time. There is a message number #179 associated with your warning, however, there was no message number to the warning in my screenshot (see the posting at the top). That's my question, why the message number was not shown? How to turn it on?

  • Louis,

    You need just to fill check box "Emit diagnostic identifier numbers" (refer please to screenshot of David).

    Regards,

    Igor

  • Louis,

    I understand what you are asking now.  My 'Problems' window shows the diagnostic number too.  It always has.  I did not do anything special to turn this on.  Now I am using CCSv5.5 and you are using v5.4, but I recall the diagnostic numbers being there in previous versions too.

    One immediate thing you can do is use the 'Console' view instead (View->Console, if it is not already open in your CCS).  The diagnostic numbers should be in there:

     

    Regards,

    - David

  • Igor Gorbachev said:

    You need just to fill check box "Emit diagnostic identifier numbers" (refer please screenshot of David).

    That is interesting Igor.  Notice that I do not have that option checked in my CCS project, and yet I produce the diagnostic numbers in the 'Problems' view:

    It will be interesting to see if checking the 'Emit Diagnostic Indentifier Numbers' box makes the numbers appear for Louis.

    - David

  • Yes, David. Indeed It does work at least under my CCSv5.2.

    Regards,

    Igor

  • Igor,

    You are right!  The "Emit Diagnostic Identifier Numbers' appears on two different CCS project screens - one for the Compiler diagnostics, the other for the Linker diagnostics.  From what I can see, both boxes cause the same cgtools option of -pden in the build command.  In my project, I had the compiler screen box checked and the linker screen box unchecked.  If I also uncheck the option on the compiler screen, I do not get the identifier number in neither the 'Problems' view nor the 'Console' view.  One or both of these boxes must be checked to get the identifier numbers.

    The new project default is for this box to be checked on both the compiler and linker screens.  I'm not sure why my test project had it unchecked under linker.  This is an old project from many CCS versions back.  Maybe something didn't migrate quite right.

    - David

  • David,

    I found one insignificant thing. When I create own project the option "Emit Diagnostic Identifier Numbers" is ON by default. But when I import some example projects from controlSUITE this option is OFF. Obviously examples were created with the option disabled and Louis has deal with such example project likely. Generally it is not very good. Especially for beginners. It would be best if this option has been enabled by default in examples for to detect problem faster.

    Regards,

    Igor

  • Igor,

    I think the ControlSuite examples were created with older versions of CCS.  When they are imported and auto-updated for CCSv5.x, I suspect that this feature doesn't quite port right.  I'd be surprised if the C2000 team deliberately turned off the identifier feature (I mean, why would anyone care if it is on?  They can just ignor the numbers if they don't like them!).

    - David

  • David,

    David M. Alter said:

    I suspect that this feature doesn't quite port right.

    Yes, I think it is the most likely explanation, because this option is quite important with my view point at least.

    Regards,

    Igor

  • Hi Louis!

    It would be very interesting to know about the solutions of your issue.

    Regards,

    Igor

  • I confirmed that checking the Emit diagnostic identifier number option in either C2000 Compiler or C2000 Linker will solve the issue.

    I appreciate your time and effort!

  • Well, I am glad that together we have resolved your issue finally.

    Regards,

    Igor

  • hi David

    i'm using ccs5.5.0 with tiva c series mcu. i want to supress warning with id 145-d. but above given method is not working. what can i do?