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.

Linux/LAUNCHXL-CC1352P: How to flash via usb connected to RPi

Part Number: LAUNCHXL-CC1352P

Tool/software: Linux

Hello in my current project I am working with RPis which use launchpad boards to communicate with each other by RF. Launchpads are connected by usb to RPis, for future updates I must be able to flash launchpad board via RPi connected to WiFi network. I have .out file generated by CCS, is it possible to somehow send this file over uart and flash the board? 

  • Hello Piotr,

    I will check on this and get back!

    Thanks,
    Sai
  • I suppose you can use serial boot loader to download FW into CC1352. There’s host_cc13xx-sb in TI 15.4 Stack Linux GW to show you such capability. You can refer to discussions in

  • Sorry for the delay of my reply. I tried to use host_cc13xx-sbl but it gets stuck in connecting. I am aware that this is beacuse I haven't changed my first application that was flashed with CCS. Would you kindly explain to me how do I change my initial application in order to enable flashing using sbl program from TI 15.4 Stack. I looked into the mentioned thread but the solution was based on using some pin in order to put microcontroller to bootloader mode. I won't be able to do it in my case so the solution I need is to find some way to flash just like CCS, through usb without anything else or in other words how to use onboard xds110 to flash CC1352 using only command line or something that RPi can handle. 

  • So after a long battle I finally did this.
    Here is step by step solution for programming TI boards with Raspberry PI.
    Step 1.
    Install these packets on your RPi

    • libusb-1.0-0-dev
    • autoconf
    • libtool

    Simply use sudo apt-get install packetName.

    Then clone TI openocd repository from here git://git.ti.com/sdo-emu/openocd.git (original openocd and the openocd from this link http://www.ti.com/tool/SIMPLELINK-OPENOCD, doesn't work correctly!!!)

    After that enter cloned repository and do this (terminal commands)

    1. autoreconf -f -i
    2. ./configure
    3. make (remove -Werror flag from Makefile)
    4. sudo make install

    After you complete steps above you can easily program your launchpad board with *.out binary files generated from code composer studio.

    Example: (your terminal must be opened in directory where Program.out is saved)

    sudo openocd -f board/ti_cc13x2_launchpad.cfg -c ”program Program.out verify reset exit”
    cfg files for different boards can be found in this directory /usr/local/share/openocd/scripts/board