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/CC3220: Rebuilding the driver library

Part Number: CC3220

Tool/software: Code Composer Studio

If I were to make changes to the driver library in the CC3220 SDK, how would I rebuild the library files?  Note that this is not the driverlib project, but rather the driver library that compiles into:

${COM_TI_SIMPLELINK_CC32XX_SDK_INSTALL_DIR}/source/ti/drivers/lib/drivers_cc32xx.aem4

It appears to be a package, but I cannot see how to import the package for it to be rebuilt.  Is there a way for me to recompile the library files in "${COM_TI_SIMPLELINK_CC32XX_SDK_INSTALL_DIR}/source/ti/drivers/lib/"  ?

Not sure if this would be better suited for another sub-forum, but where this is a package deployed with the SimpleLink SDK, I thought it best to be asked here.

Thanks,

Trevor

  • As a side note, I have tried running gmake in the source/ti/drivers directory but I got lots of errors:
    iar.targets.arm.M4: warning: exec of 'c:/Program Files (x86)/IAR Systems/Embedded Workbench 7.5/arm/bin/iccarm -v' failed:java.io.IOException: Cannot run program "c:/Program" (in directory "."): CreateProcess error=2, The system cannot find the file specified; check tools installation
    iar.targets.arm.M4: warning: version match failed on ''
    iar.targets.arm.M4: warning: version match failed on ''
    ......
    C:/Users/user/AppData/Local/Temp/make13184-1.sh: 1: Syntax error: "(" unexpected
    gmake[1]: *** [package/lib/lib/drivers_cc32xx/package/package_ti.drivers.orm4] Error 2
    xdctools_3_50_01_12_core\gmake.exe: *** [.,.libraries] Error 2
    gmake: *** [all] Error 2


    However, now that I am looking at it closer, it looks like it did actually produce new library files. So I was able to build the libraries again using gmake. But since I have already asked the question, is there a way to import this into CCS to build/configure it from there?


    Thanks,
    Trevor
  • Hi Trevor,

    Please check that the paths in "<sdk-install>/imports.mak" complies with your environment.
    If you only use CCS, you can avoid the IAR (or any other compiler) compilation by removing the relative compiler path.
    Just to make sure, the gmake that you run should come from the relevant xdc folder (e.g. "c:/ti/xdctools_3_50_01_12_core/gmake.exe").

    Br,
    Kobi
  • Hi Kobi,

    I have modified the imports.mak file by commenting out the IAR compiler and ensuring I am using the proper xdc tools versions. I was able to recompile the libraries with no errors.

    Is this the proper way to build the driver library or is there a method for having CCS import the project to compile it from there? If the command line with gmake is the recommended method, I will continue to use it.

    Thanks,
    Trevor
  • This is the only way to build currently.

    Br,
    Kobi