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: c2000 USB Libraries deprecated function calls

Part Number: TMS320F28377S
Other Parts Discussed in Thread: C2000WARE

The latest c2000ware libraries (V1.00.05.00) moved the USB library to non-deprecated but it still includes calls to deprecated functions. We would like to use all non-deprecated code.

What are the implications to changing the function calls to non-deprecated ones?

Why does the newly-non-deprecated USB library still call deprecated functions?

Thanks.

  • Hi Nicholas,

    Which deprecated functions are being called? What file are they in?

    Regards,
    sal
  • Nicholas is referring to the library usblib.lib. There are calls to MAP_* functions, which are macros defined in rom_map.h located in the driverlib folder within the deprecated folder. The macros resolve to deprecated functions. Therefore, a project that uses usblib.lib will not build.

    As an example, the function USBHCDInit() in usbhostenum.c has a call to MAP_SysCtlPeripheralReset(). MAP_SysCtlPeripheralReset() resolves to SysCtlPeripheralReset(), which no longer exists.

    It's as if the rom_map.h file was never updated and the usblib library was not rebuilt.

  • Even if rom_map.h was updated with the non-deprecated calls, the file itself is in the deprecated folder. This means that MAP_SysCtlPeripheralReset() is deprecated.

  • Yes, Colin is a colleague of mine and these are some of the deprecated files/functions we are concerned about.

  • Hi Nicholas, Colin,

    I am trying to understand the issue here.

    Where you say "As an example, the function USBHCDInit() in usbhostenum.c has a call to MAP_SysCtlPeripheralReset(). MAP_SysCtlPeripheralReset() resolves to SysCtlPeripheralReset(), which no longer exists" , it exists.

    Is your usblib project building?

    Which are the files you are concerned about and what is the change from the latest release to this release that you see a change in?

    I am trying to look into can you help me understand the problem better?

    Thanks and Regards
    Harshmeet Singh
  • Harshmeet,

    We are not trying to build the usblib project. What we are doing is including individual files (that are part of usblib) in our project. In order to build our project using the individual usblib files, we have to include header files located in <C2000Ware folder>\device_support\f2837xs\common\deprecated\driverlib\. Notice that one of the folder names is "deprecated".

    Referring to my example you quoted, usbhostenum.c requires us to use <C2000Ware folder>\device_support\f2837xs\common\deprecated\ as an include path. It also requires us to modify rom_map.h because the released version uses function calls that were changed (like SysCtlPeripheralReset() that was changed to SysCtl_resetPeripheral()). We do not want to use any deprecated files, regardless of whether they are source files or header files.

    Another example is that the file usbbuffer.c uses "uint8_t". This type is defined in the deprecated file hw_types.h.

    Is the usblib code going to be changed so that it uses no deprecated calls and requires no deprecated include paths?

    Thanks,

    Colin

  • Hi Colin,

    There is no current plan to change the driverlib from the deprecated to the non-deprecated one.

    You can try using the new driverlib which is in the c2000ware_release_folder/driverlib but it might require some changes.

    Thanks and Regards
    Harshmeet