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/CC1310: How to install TI-15.4-STACK-GATEWAY-LINUX-SDK on 32-bit system ?

Part Number: CC1310

Tool/software: Linux

Hello all,

I have installed TI-15.4-STACK-GATEWAY-LINUX-SDK on my raspberry pi 3b+ and it is working great with CC1310 LAUNCHXL , 

I wanted to know if I can use TI-15.4-STACK-GATEWAY-LINUX-SDK on"raspberry pi zero w " which has a 32-bit system.

If not, then can you please suggest me an alternative to TI-15.4-STACK-GATEWAY-LINUX-SDK which I can use on 32-bit system.

Thank You,

  • It should be no problem.
  • Thanks for a quick reply YK Chen,

    I tried to install TI-15.4-STACK-GATEWAY-LINUX-SDK same way I installed it on rpi3 (As explained in TI 15.4-Stack Linux Gateway User Guide ). First I installed it on 64-bit linux machine and then copied "prebuilt" directory to rpi zero w and tried to run the demo script which is throwing an error as it expects a 32-bit system.

    can you please show me the proper way I should follow.

    Thank You,
  • Can you do a screenshot to show me the problem?
  • Thanks for your response,

    I have downloaded TI-15-4-STACK-GATEWAY-LINUX-SDK_2.07.00.16 from

    then I followed this document to install it

    I copied prebuilt directory to pi zero w and run script "run_demo.sh" which shows me this error

  • It seems the prebuilt hex is for armv7 and is not compatible to armv6 which is used by CPU core of Raspberry Pi Zero. I suppose you have to rebuild the binary using cross compiler of Raspberry Pi Zero by yourself to make this work.
  • Thanks Chen,

    I have already tried to build the binary using cross compiler of Raspberry Pi Zero which shows following error

  • I suggest you to setup cross compiler on Ubuntu Desktop to build binary for Raspberry Pi zero instead building it on Raspberry Pi zero directly.
  • Thanks for your suggestion Chen ,

    I tried to google about how should I cross compile "ti154stack_linux_x64_2_07_00_16.run" file but I couldn't find anything useful.
    I don't know how to cross compile it for Raspberry Pi Zero as I only have executable "ti154stack_linux_x64_2_07_00_16.run" file.
    Can you guide me how should I proceed step by step ?

    Thank You.
  • 1. You have to run executable "ti154stack_linux_x64_2_07_00_16.run" on a Ubuntu Desktop to get the full source code of ti 15. 4stack linux gw under /Home/ti/ti154stack_linux_x64_2_07_00_16 folder on your Ubuntu Desktop.
    2. You can refer ti medium.com/.../the-useful-raspberrypi-cross-compile-guide-ea56054de187 to setup cross compiler for Raspberry Pi Zero on Ubuntu.
    3. Open front_matter.mak under /Home/ti/ti154stack_linux_x64_2_07_00_16/scripts and edit bbb_ARCH_CFLAGS to use architecture of Raspberry Pi Zero.
    4. Run "./build_all.sh bbb" under /Home/ti/ti154stack_linux_x64_2_07_00_16 to build binary for Raspberry Pi Zero

    Those steps are supposed to work. However, I don't test this since I don't have Raspberry Pi Zero.
  • Hello Chen,

    I followed the steps that you suggested and I have successfully compiled  "./build_all.sh bbb"  but still "run_demo.sh" is not working on Raspberry Pi Zero. I am attaching build log and the Screenshot of the error below.

    ~/ti/ti154stack_linux_x64_2_07_00_16/components/common ~/ti/ti154stack_linux_x64_2_07_00_16
    make -f Makefile ARCH=bbb 
    make[1]: Entering directory '/home/dnk/ti/ti154stack_linux_x64_2_07_00_16/components/common'
    Creating Lib: objs/bbb/libcommon.a
    make[1]: Leaving directory '/home/dnk/ti/ti154stack_linux_x64_2_07_00_16/components/common'
    ~/ti/ti154stack_linux_x64_2_07_00_16
    ~/ti/ti154stack_linux_x64_2_07_00_16/components/nv ~/ti/ti154stack_linux_x64_2_07_00_16
    make -f Makefile ARCH=bbb 
    make[1]: Entering directory '/home/dnk/ti/ti154stack_linux_x64_2_07_00_16/components/nv'
    Creating Lib: objs/bbb/libnv.a
    make[1]: Leaving directory '/home/dnk/ti/ti154stack_linux_x64_2_07_00_16/components/nv'
    ~/ti/ti154stack_linux_x64_2_07_00_16
    ~/ti/ti154stack_linux_x64_2_07_00_16/components/api ~/ti/ti154stack_linux_x64_2_07_00_16
    make -f Makefile ARCH=bbb 
    make[1]: Entering directory '/home/dnk/ti/ti154stack_linux_x64_2_07_00_16/components/api'
    Creating Lib: objs/bbb/libapimac.a
    make[1]: Leaving directory '/home/dnk/ti/ti154stack_linux_x64_2_07_00_16/components/api'
    ~/ti/ti154stack_linux_x64_2_07_00_16
    ~/ti/ti154stack_linux_x64_2_07_00_16/example/npi_server2 ~/ti/ti154stack_linux_x64_2_07_00_16
    make -f Makefile ARCH=bbb 
    make[1]: Entering directory '/home/dnk/ti/ti154stack_linux_x64_2_07_00_16/example/npi_server2'
    Creating App: (bbb) bbb_npi_server2
    Done.
    make[1]: Leaving directory '/home/dnk/ti/ti154stack_linux_x64_2_07_00_16/example/npi_server2'
    ~/ti/ti154stack_linux_x64_2_07_00_16
    ~/ti/ti154stack_linux_x64_2_07_00_16/example/collector ~/ti/ti154stack_linux_x64_2_07_00_16
    make -f Makefile ARCH=bbb 
    make[1]: Entering directory '/home/dnk/ti/ti154stack_linux_x64_2_07_00_16/example/collector'
    Creating App: (bbb) bbb_collector
    Done.
    make[1]: Leaving directory '/home/dnk/ti/ti154stack_linux_x64_2_07_00_16/example/collector'
    ~/ti/ti154stack_linux_x64_2_07_00_16
    ~/ti/ti154stack_linux_x64_2_07_00_16/example/cc13xx-sbl/app/linux ~/ti/ti154stack_linux_x64_2_07_00_16
    '/home/dnk/tools-master/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-'gcc -c -Wall -g -std=gnu99 -I../../cc13xxdnld -I../../platform/linux   main.c  -o objs/bbb/main.o
    '/home/dnk/tools-master/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-'gcc -c -Wall -g -std=gnu99 -I../../cc13xxdnld -I../../platform/linux   ../../cc13xxdnld/cc13xxdnld.c  -o objs/bbb/cc13xxdnld.o
    '/home/dnk/tools-master/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/bin/arm-linux-gnueabihf-'gcc -o bbb_cc13xx-sbl objs/bbb/main.o objs/bbb/cc13xxdnld.o objs/bbb/sblUart.o
    ~/ti/ti154stack_linux_x64_2_07_00_16
    

  • After you build binary, do you copy it to Raspberry Pi Zero?
  • Yes, I copied "bbb_prebuilt.tar.gz" to the Pi Zero and extracted it.
  • Are you sure "bbb_prebuilt.tar.gz" is built by you?
  • If I follow TI 15.4-Stack Linux Gateway User Guide then it is supposed to be the file built by "build_all.sh" and that is why I copied it.
  • What bbb_ARCH_CFLAGS do you use in front_matter.mak?
  • Here is the snap of  front_matter.mak.

  • Hello Chen

                     I have a same problem. i'm also using raspberry pi zero as a 6Lowpan gateway, however I have tested with rpi3 and it's working great, but my end goal is to run the setup with rpi zero 
    any suggestions

    Thanks  

  • I remenber it will build binary bbb_collector under example/collector folder and I suppose it won't pack a new bbb_prebuilt.tag.gz. I suggest you to copy the whole ti 15.4 stack source folder into your raspberry pi zero and run bbb_collector under example/collector folder to see if it works.
  • When you set bbb_* variables, do not enclose them in quotes ('). Just write path as normal.
  • Thanks Chen,
    As you suggested I copied whole ti 154 stack source , run the collector app , and it's working now.
    Thank you
  • Thanks for your reply Edvard,
    I made the changes you suggested ,,but it seems it doesn't makes any difference it is now working in both the condition. anyway , the issue has been solved now. :)