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/CC2642R: simplelink : Missing aux_ctrl.h file in driverlib folder

Part Number: CC2642R
Other Parts Discussed in Thread: CC2640R2F, AWR1642

Tool/software: Code Composer Studio

The issue is regarding simplelink_cc13x2_26x2_sdk_3_20_00_68 SDK

the driverlib.c file that is present in the path (simplelink_cc13x2_26x2_sdk_3_20_00_68\source\ti\devices\cc13x2_cc26x2\rom )

has a command #include "../driverlib/aux_ctrl.h" but aux_ctrl.h file is not present in the path

(simplelink_cc13x2_26x2_sdk_3_20_00_68\source\ti\devices\cc13x2_cc26x2\driverlib)

due to this there is an error #1965 cannot open source file "../driverlib/aux_ctrl.h" the simple link package was downloaded from 

http://www.ti.com/tool/download/SIMPLELINK-CC13X2-26X2-SDK with windows as an operating system

can you help me in finding aux_ctrl.h file.

  • Hi madharkhan,

    You are not supposed to be able to compile driverlib.c yourself, hence we don't ensure driverlib.c compiles cleanly. Why are you trying to compile this file?

  • Hi Severin Suveren,

    Thanks for Reply.

    When I created an Empty Project (with main.c ) and tried to build the same, I encountered with an error "  Error: undefined symbol "ResetISR", unresolved symbols remain " .

    When  searched to solve this error ,I found this issue resolved in the following thread

    https://e2e.ti.com/support/tools/ccs/f/81/t/796036?tisearch=e2e-sitesearch&keymatch=faq%3Atrue      which redirects to 

     

    http://software-dl.ti.com/ccs/esd/documents/sdto_ccs_build-errors.html#error-unresolved-symbols-remain  

    Following steps are mentioned in above thread  to fix the unresolved symbol ResetISR error:

    • copy the file startup_ccs.c from C:\ti\simplelink_cc13x0_sdk_1_30_00_06\source\ti\devices\cc13x0\startup_files to your CCS project

    • Under Project Properties->Build->Compiler->Include Options, add the path to the startup_files folder to --include_path option (eg: "C:\ti\simplelink_cc13x0_sdk_1_30_00_06\source\ti\devices\cc13x0\startup_files")

    • Under Project Properties->Build->Linker->File Search Path, add driverlib.lib to --library option, and add the path to driverlib.lib to --search_path option (eg: "C:\ti\simplelink_cc13x0_sdk_1_30_00_06\source\ti\devices\cc13x0\driverlib\bin\ccs")

       

      After following above steps ,CCS itself is compiling the file " driverlib.c" 

      As " aux_ctrl.h " is included in the driverlib.c , I am unable to build the project successfully.  

      As a result,I faced with the error  #1965 cannot open source file "../driverlib/aux_ctrl.h" which I had mentioned earlier in the first post.

    Regards,

    madharkhan.

    Error: undefined symbol "ResetISR", unresolved symbols remain

  • If CCS suddenly builds driverlib.c, then you have done something weird with your CCS project.

    Check that the Entry symbol defined in either your linker file or your CCS project settings to be the same symbol as defined in startup_ccs.c. Remember the symbol name is case sensitive.

  • Hi Severin Suveren,

    #Check that the Entry symbol defined in either your linker file or your CCS project settings to be the same symbol as defined in startup_ccs.c. Remember the symbol name is case sensitive.

    In  this case (while building empty project) I checked for Entry Point i.e.,  --entry_point ResetISR in linker file (cc26x2rlf.cmd) the Entry symbol is same in startup_ccs.c file (considering case sensitive).

    To drive in deep I tried to build Empty projects with different Controllers. Results are as follows: 

    1. Same error (i.e., "  Error: undefined symbol "ResetISR", unresolved symbols remain " ) in case of CC2642R1F, CC1312R1F3, CC1350F128,  CC2640R2F. (May be there is some problem with RF controllers)
    2. It was successfully built with other Controllers AWR1642, CC2538NF11, CC3220, CC2538SF23  etc..

    Can you please help me in resolving this error to successfully build for  CC2642R1F .

     

    Regards,

    madharkhan.

     

  • Do not use the default-included linker file (cc26x2rlf.cmd) from CCS. Rather you should use the linker file from the boards/ folder, as such: <source/ti/boards/CC26X2R1_LAUNCHXL/CC26X2R1_LAUNCHXL_TIRTOS.cmd>.

  • Hi Severin Suveren,

    Thank you for the Reply.

    #Do not use the default-included linker file (cc26x2rlf.cmd) from CCS. Rather you should use the linker file from the boards/ folder, as such: <source/ti/boards/CC26X2R1_LAUNCHXL/CC26X2R1_LAUNCHXL_TIRTOS.cmd>.


     Your suggestions are very helpful,  I tried to build the project with CC26X2R1_LAUNCHXL_TIRTOS.cmd and I found These errors 

    error #10234-D: unresolved symbols remain
    warning #10062-D: entry-point symbol "ResetISR" undefined
    warning #10202-D: no suitable entry-point found; setting to 0
    error #10010: errors encountered during linking; "Sample1.out" not built

    I also tried with CC26X2R1_LAUNCHXL_NoRTOS.cmd but the results remain the same. I have gone through several threads related to these errors but they were not helpful in my case.

    Regards,

    madharkhan.

  • I would highly suggest to start with a freshly imported CCS project from the SDK rather than configuring your own from scratch; the empty project founder under drivers/ would be an excellent starting point. This way you would not encounter these problems.

    Please try that.