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.

SYSCONFIG: C2000: HRPWM SFO: SFO_V8.h library not found when added through sysconfig in Linux. Case sensitive issue?

Part Number: SYSCONFIG
Other Parts Discussed in Thread: C2000WARE

Hello I have a c2000 project using sysconfig. Use the HRPWM SFO library added through sysconfig. 

I also added the c2000 libraries to the include paths as explained in some other thread here. 

The problem: SFO_V8.h is not found when compiling in linux,  in windows the project is compiling. I think it's an issue with case sensitive since I changed the file name of sfo_v8.h to SFO_V8.h in my installation folder in linux and it worked. 

Here is an image that shows that the filed path is included but it's not compiling. Can you explain how to fix it or if it is a bug of ccs? 

as you can see I have installed C2000Ware 5.2.0, CCS  Version: 12.7.1. . In windows the version of CCS is 12.6 I think.

Thanks in advance 

Agustin J. Gomez

  • short update: focusing on that it is a problem of case sensitiveness, I modified the sysconfig template file in /home/agomez/ti/C2000Ware_5_02_00_00/libraries/.meta/calibration/hrpwm/templates/sfo.c2000ware_libraries.h.xdt

    SFO_V8.h to sfo_v8.h and it works on both, linux based and windows

    This could be a fix on sysconfig. 

    % var moduleName = "sfo"
    % var libraryFolder = "sfo"
    % var module = system.modules['/libraries/calibration/hrpwm' + '/' + moduleName + '.js'];
    %if (module != null)
    %{
    #include <sfo_v8.h>
    
    extern int MEP_ScaleFactor;
    extern volatile uint32_t ePWM[];
    
    % for(var i = 0; i < module.$instances.length; i++) {
        % var instance = module.$instances[i];      
    % }
    void `instance.$name`_runtime();
    void `instance.$name`_init();
    %}

     Another thing here is why <sfo_v8.h> and not "sfo_v8.h" as used in for example "DCL.h"

  • Hi,

    I will raise a bug for this and it will be fixed in the next release of C2000Ware.

    Best Regards

    Siddharth