J722S MCU+ SDK  09.02.00
Build a Hello World example

Using makefiles

  • When using makefiles to build, make sure you have built the example of interest using makefiles (see Using SDK with Makefiles)
  • Given below is the command to build the "hello world example". Note, use make in Linux
    cd ${SDK_INSTALL_PATH}
    make -s -C examples/hello_world/{board}/main-r5fss0-0_freertos/ti-arm-clang
  • For MCU R5F
    cd ${SDK_INSTALL_PATH}
    make -s -C examples/hello_world/{board}/mcu-r5fss0-0_freertos/ti-arm-clang
    
  • For WKUP R5F
    cd ${SDK_INSTALL_PATH}
    make -s -C examples/hello_world/{board}/r5fss0-0_freertos/ti-arm-clang
    
  • For C75
    cd ${SDK_INSTALL_PATH}
    make -s -C examples/hello_world/{board}/c75ss0-0_freertos/ti-c7000
    make -s -C examples/hello_world/{board}/c75ss1-0_freertos/ti-c7000
    
  • For MCU R5F
    cd ${SDK_INSTALL_PATH}
    make -s -C examples/hello_world/{board}/mcu-r5fss0-0_freertos/ti-arm-clang
    
  • For WKUP R5F
    cd ${SDK_INSTALL_PATH}
    make -s -C examples/hello_world/{board}/wkup-r5fss0-0_freertos/ti-arm-clang
    
  • After the executable is built successfully, now you can load and run it (see CCS Launch, Load and Run)

Rebuilding libraries

  • When a CCS example project is built or a single example is built with makefiles, as described above, the libraries are not re-built.
  • If you have modified any source or header file with a library, you need to rebuild the libraries using makefiles.
  • By default the SDK when installed has all libraries pre-built, however if you want to rebuild the libraries, do below
      cd ${SDK_INSTALL_PATH}
      make -s libs PROFILE=debug      # for debug mode libraries
      # OR
      make -s libs PROFILE=release    # for release mode libraries
    
  • See also Using SDK with Makefiles for more library build options and makefile tips.