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.

RTOS/MSP432E401Y: MSP432Ware Makefile

Part Number: MSP432E401Y


Tool/software: TI-RTOS

Greetings:

Does there exist somewhere a makefile for building the MSP432 peripheral library? If not, what is the suggested approach for including changes to the application? Copy and paste the entire USBlib source into my project and include it in the build?

For the record, a Makefile and static library linkage is my preferred solution.

Regards,

Michael

  • Hello Michael,

    C:\ti\simplelink_msp432_sdk_1_40_01_00\source\ti\devices\msp432p4xx\driverlib\ccs
    C:\ti\simplelink_msp432_sdk_1_40_01_00\source\ti\devices\msp432p4xx\linker_files\ccs

    I recommend to import TI driverlib example and modifying it. dev.ti.com/.../

    You can add driverlib source files to your project if you need to do some modifications, profiling, etc.
  • Michael,

    It's a bug that our makefiles were not included for the usblib in the latest MSP432E4 SDK  release. Attached is a zip with the makefiles for building a static library using a makefile. They require you to update the top level 'imports.mak' file of the SDK to the correct paths for your compiler. You should see them included in the 2.40.00 SDK release and beyond.

    Thanks,

    Zack

    usblib_makefiles.zip

  • Ok; thank you for attaching them here. I'll have a look at them next week. In the meantime, I'm going to mark this as resolved.

    Regards,

    Michael
  • Zack,

    I am getting the following error when attempting to compile: "/Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/machine/_types.h:118:9: error: unknown type name '__WCHAR_T_TYPE__'

    typedef __WCHAR_T_TYPE__ ___wchar_t;"

    What do I need to do to get the compiler to recognize this?

    FYI, I have included a script capture of the output.

    Thanks,

    Michael Cress

    Script started on Tue Nov  6 14:35:47 2018
    [?1034hbash-3.2$ 
    bash-3.2$ 
    bash-3.2$ 
    bash-3.2$ pwd
    /Applications/ti/simplelink_msp432e4_sdk_2_30_00_14
    bash-3.2$ 
    bash-3.2$ 
    bash-3.2$ 
    bash-3.2$ 
    bash-3.2$ 
    bash-3.2$ ls
    changelog.html						manifest_simplelink_msp432e4_sdk_2_30_00_14.html
    compiler_output.txt					release_notes_simplelink_msp432e4_sdk_2_30_00_14.html
    docs							simplelinkmsp432e4sdk_2_30_00_14.log
    examples						source
    imports.mak						tools
    kernel							uninstall.app
    license_simplelink_msp432e4_sdk_2_30_00_14.txt
    bash-3.2$ 
    bash-3.2$ 
    bash-3.2$ 
    bash-3.2$ 
    bash-3.2$ cd source
    bash-3.2$ 
    bash-3.2$ 
    bash-3.2$ ls
    third_party	ti
    bash-3.2$ 
    bash-3.2$ 
    bash-3.2$ cd ti
    bash-3.2$ 
    bash-3.2$ ls
    boards	devices	display	drivers	grlib	ndk	net	posix	usblib	utils
    bash-3.2$ cd usblib
    bash-3.2$ ls
    msp432e4
    bash-3.2$ cd msp432e4/
    bash-3.2$ ls
    device			usbaudio.h		usbdma.c		usbmode.c		usbulpi.h
    host			usbbuffer.c		usbhid.h		usbmsc.h
    lib			usbcdc.h		usbkeyboardmap.c	usbringbuf.c
    obj			usbdesc.c		usblib.h		usbtick.c
    usb-ids.h		usbdfu.h		usblibpriv.h		usbulpi.c
    bash-3.2$ cd lib
    bash-3.2$ ls
    ccs	gcc	iar	keil
    bash-3.2$ cd gcc
    bash-3.2$ ls
    m4f
    bash-3.2$ cd m4f
    bash-3.2$ ls
    makefile		msp432e4_usblib.a
    bash-3.2$ 
    bash-3.2$ 
    bash-3.2$ 
    bash-3.2$ make
    Building ../../../obj/gcc/m4f/msp432e4_usblib/usbdaudio.o
    In file included from /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/_types.h:35:0,
                     from /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/stdint.h:35,
                     from /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdint.h:41,
                     from ../../../device/usbdaudio.c:25:
    /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/machine/_types.h:118:9: error: unknown type name '__WCHAR_T_TYPE__'
     typedef __WCHAR_T_TYPE__ ___wchar_t;
             ^~~~~~~~~~~~~~~~
    In file included from /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/stdint.h:37:0,
                     from /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdint.h:41,
                     from ../../../device/usbdaudio.c:25:
    /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/machine/_stdint.h:38:0: warning: ignoring #pragma diag_push  [-Wunknown-pragmas]
     #pragma diag_push
     
    /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/machine/_stdint.h:40:0: warning: ignoring #pragma CHECK_MISRA  [-Wunknown-pragmas]
     #pragma CHECK_MISRA("-19.4")
     
    /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/machine/_stdint.h:164:0: warning: ignoring #pragma diag_pop  [-Wunknown-pragmas]
     #pragma diag_pop
     
    In file included from /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/stdint.h:41:0,
                     from ../../../device/usbdaudio.c:25:
    /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/stdint.h:67:0: warning: ignoring #pragma diag_push  [-Wunknown-pragmas]
     #pragma diag_push
     
    /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/stdint.h:68:0: warning: ignoring #pragma CHECK_MISRA  [-Wunknown-pragmas]
     #pragma CHECK_MISRA("-19.4")
     
    /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/sys/stdint.h:72:0: warning: ignoring #pragma diag_pop  [-Wunknown-pragmas]
     #pragma diag_pop
     
    In file included from /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/time.h:41:0,
                     from /Applications/ti/simplelink_msp432e4_sdk_2_30_00_14/source/ti/devices/msp432e4/driverlib/hibernate.h:43,
                     from /Applications/ti/simplelink_msp432e4_sdk_2_30_00_14/source/ti/devices/msp432e4/driverlib/driverlib.h:51,
                     from ../../../device/usbdaudio.c:26:
    /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/_ti_config.h:41:0: warning: ignoring #pragma diag_push  [-Wunknown-pragmas]
     #pragma diag_push
     
    /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/_ti_config.h:42:0: warning: ignoring #pragma CHECK_MISRA  [-Wunknown-pragmas]
     #pragma CHECK_MISRA("-19.4")
     
    /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/_ti_config.h:43:0: warning: ignoring #pragma CHECK_MISRA  [-Wunknown-pragmas]
     #pragma CHECK_MISRA("-19.1")
     
    In file included from /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/_ti_config.h:98:0,
                     from /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/time.h:41,
                     from /Applications/ti/simplelink_msp432e4_sdk_2_30_00_14/source/ti/devices/msp432e4/driverlib/hibernate.h:43,
                     from /Applications/ti/simplelink_msp432e4_sdk_2_30_00_14/source/ti/devices/msp432e4/driverlib/driverlib.h:51,
                     from ../../../device/usbdaudio.c:26:
    /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/linkage.h:41:0: warning: ignoring #pragma diag_push  [-Wunknown-pragmas]
     #pragma diag_push
     
    /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/linkage.h:42:0: warning: ignoring #pragma CHECK_MISRA  [-Wunknown-pragmas]
     #pragma CHECK_MISRA("-19.4") /* macros required for implementation */
     
    /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/linkage.h:61:0: warning: ignoring #pragma diag_pop  [-Wunknown-pragmas]
     #pragma diag_pop
     
    In file included from /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/time.h:41:0,
                     from /Applications/ti/simplelink_msp432e4_sdk_2_30_00_14/source/ti/devices/msp432e4/driverlib/hibernate.h:43,
                     from /Applications/ti/simplelink_msp432e4_sdk_2_30_00_14/source/ti/devices/msp432e4/driverlib/driverlib.h:51,
                     from ../../../device/usbdaudio.c:26:
    /Applications/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include/_ti_config.h:100:0: warning: ignoring #pragma diag_pop  [-Wunknown-pragmas]
     #pragma diag_pop
     
    make: *** [../../../obj/gcc/m4f/msp432e4_usblib/usbdaudio.o] Error 1
    bash-3.2$ exit
    exit
    
    Script done on Tue Nov  6 14:36:27 2018
    

  • FYI: This appears to only happen when compiling using the TI compiler. If I use GCC (by commenting out CCS_ARMCOMPILER in imports.mak), then it appears to build just fine.

**Attention** This is a public forum