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.

TMS320F28377S: CCS 7.1.0 Link Error __error__ unresolved

Part Number: TMS320F28377S
Other Parts Discussed in Thread: CONTROLSUITE, C2000WARE

Including can.c into a project from the ./device_support/F2837xS/v210/F2837xS_common/driverlib directory in controlSUITE is issuing a linker error regarding the symbol __error__.

This symbol (it turns out is a function call within a macro) is referenced in the ASSERT() macro when performing error checking on incoming function arguments.  If we compile without the DEBUG defined, this effectively prunes out the ASSERT() call and everything builds.  But if we wanted to compile with debug capability, we need to fix this issue.

Where is __error__ defined and what files/libraries/etc. need to be added to the project to address this?

Thank you.

  • Hi Brandon,

    It looks like we don't actually provide an implementation of __error__() anywhere in controlSUITE--just the prototype. You can add something like this to the example code to alert you that an assert was violated

    void __error__(char *pcFilename, unsigned long ulLine)
    {
        ESTOP0;
    }

    We address this better in C2000Ware where we do provide an example implementation of __error__() in the new driverlib examples in the device.c file.

    Whitney

  • Thank you. I would suggest in the next update to controlSUITE that we get this addressed such that examples can actually build.