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.

CC1352P7: TI15.4 gateway SDK Linux error while executing the .run file

Part Number: CC1352P7

Hi TI Team,

    I working on TI-15.4-STACK-GATEWAY-LINUX-SDK. I am using Beaglebone Black Wireless (BBBW). I downloaded the image file AM33xx Debian 11.7 2023-08-05 4GB eMMC IoT Flasher

I have downloaded the SDK files from this link: https://www.ti.com/tool/TI-15.4-STACK-GATEWAY-LINUX-SDK#downloads

When I executing it I am getting this error:

                                    debian@BeagleBone:~$ sudo ./ti154stack_linux_x64_4_40_00_03.run
                                   ./ti154stack_linux_x64_4_40_00_03.run: 1: ELF: not found
                                  ./ti154stack_linux_x64_4_40_00_03.run: 5: Syntax error: "(" unexpected

Please help me on this

Selva

  • Hi Selva,

    The installer is meant for x86 architecture. The BBBW uses another architecture, which is why you get the error. You could execute the installer on a linux machine with x86 architecture and then push the binaries to the BBBW. Check this link for a guide: Development Environment — SimpleLinkTm Linux SDK TI 15.4-Stack User's Guide 3.40.00.00 documentation.

    Marvin

  • Hi marvin,

    Thanks for the reply,

    I followed the link which you gave. While crossing compiling for BBB it showing this error:(Step 7b)

    make -f Makefile ARCH=bbb
    make[1]: Entering directory '/home/selva/ti/ti154stack_linux_x64_4_40_00_03/example/cc13xx-sbl/app/linux'
    Cannot find BBB Compiler: /home/selva/ti-processor-sdk-linux-am335x-evm-08.02.00.24/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc
    Please update variable: bbb_TI_PROC_SDK_DIR
    in the file SDK_ROOT/scripts/front_matter.mak
    ERROR: Cannot continue
    make[1]: *** [../../../../scripts/front_matter.mak:137: bbb_compiler_check] Error 1
    make[1]: Leaving directory '/home/selva/ti/ti154stack_linux_x64_4_40_00_03/example/cc13xx-sbl/app/linux'
    make: *** [../../../../scripts/front_matter.mak:222: bbb] Error 2

    If I choose host it works. When I choose BBB it is not working. Can you help me in this ? 

    My Linux machine spec is:generic #86-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux

    Reagrds,

    Selva

  • Hi again,

    Did you install the processor SDK for the AM335X. The SDK is for the processor that BBB uses and is required for cross-compilation.

    If not, here is the link to the SDK installer: PROCESSOR-SDK-AM335X Software development kit (SDK) | TI.com. Make sure that the file front_matter.mak stated in section 6 actually has correct file path to the SDK.

    Let me know if this is not the issue.

    Regards,

    Marvin

  • Hi Marvin,

    Yes, I Installed that processor SDK as well.

    Installed this one:

    PROCESSOR-SDK-LINUX-AM335X

    Not this:

    PROCESSOR-SDK-LINUX-RT-AM335X.

    BTW, I just wanted to the difference between these two.

    .ti-processor-sdk-linux-am335x-evm-08.02.00.24-Linux-x86-Install.bin file I installed in machine.

    followed the section 6.

    Then, I got this error while executing the section 6 for BBB.

    Also, I tired to execute the application in host machine instead of  BBBW. In that is also, got some error in webserver.js file in socket.isten(server) line.

    Regards,

    Selva

  • The RT-version is for real-time applications. Beaglebone has some real-time cores that are utilized with that version.

    What have you set the bbb_TI_PROC_SDK_DIR variable as in the "front_matter.mak" file?

    You could also try and compile on the host and apply it to the beaglebone. So compile it first on the host, then send the binaries to the beaglebone to run the application. I did something similar with the beaglebone play. 

    In the mean time I will try and reproduce your error you got running the application on the host machine.

    Regards,

    Marvin

  • Hi Marvin,

    Thanks for the quick reply,

    value I set was bbb_TI_PROC_SDK_DIR=/home/selva/ti-processor-sdk-linux-am335x-evm-08.02.00.24 in front_matter.make file.

    Yes,I tired that also. But no luck. 

    Regards,

    Selva 

  • Hi Selva,

    What kind of error message do you get when you try and compile on the host and run the application on the BBB?

    Regards,

    Marvin

  • Hi Marvin,

    This is the error I am getting:

    debian@BeagleBone:~/prebuilt$ ./run_demo.sh
    Launching the Collector Application in the background
    Collector Running as Process id: 1235
    Launching Node-JS gateway application in background
    Gateway is running as Process id: 1243

    On your host, launch your browser using:
    debian@BeagleBone:~/prebuilt$ No reset response received after device reset

    (node:1477) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
    ERROR: Rcvd Error on the socket connection with AppServer this one is keep on printing.

    It says collector app and gateway app running in the background. When I tired to access from  IP_ADDRESS:1310

    response see this image:

    Regards,

    Selva

  • Hi again Selva,

    I think I found  the issue regarding your first error with cross-compiling. You need to go in the front_matter.mak file. Check line 119 where you see this: 

    "bbb_PREFIX=${bbb_BIN_DIR}/arm-linux-gnueabihf-"
    You need to add "none" after "arm". It will look like this:
    "bbb_PREFIX=${bbb_BIN_DIR}/arm-none-linux-gnueabihf-".
    If you go in the directory of where the compiler is located then you will see that the name of the compiler files is not correct with what was written before in the front:matter.mak file.
    Try and cross-compile after you have done the changes. It should work as I tested it.
    Regards,
    Marvin
  • Hi Marvin,

    Thank you so much,

    Now, I able to cross-compile for BBB in host machine.

    I transferred to BBBW after execute ./run-demo.sh file.

    Again I got this error. 

    debian@BeagleBone:~/prebuilt$ ./run_demo.sh
    Launching the Collector Application in the background
    Collector Running as Process id: 1235
    Launching Node-JS gateway application in background
    Gateway is running as Process id: 1243

    On your host, launch your browser using:
    debian@BeagleBone:~/prebuilt$ No reset response received after device reset

    (node:1477) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
    ERROR: Rcvd Error on the socket connection with AppServer this one is keep on printing.

    Just could not understand the problem is in LP or in the gateway SDK code. Can you help in this?  I tried changing to the different network as well.

    Regards,

    Selva

  • Good to hear:)

    Have you made sure that the firmware you are using is compatible with the LP? Which LP are you using?

    Regards,

    Marvin

  • Hi Marvin,

    I am using CC1352P7_1 LP. Yes, I am using co processor project from SDK 7.10, Also tired from SD 5.40,6.40..

    Regards,

    Selva

  • Hi Selva,

    Can you try and run the command "ls -l /dev/ttyACM*" in the linux command line to see how many devices are connected through USB. It may be that the port set as default in the SDK is not the same as the port the coprocessor is connected to. The default port is "/dev/ttyACM0".

    Regards,

    Marvin

  • Hi Marvin,

    I used an latest SDK it works fine. I am able to toggle the LED from the UI.

    But I want to do the OAD in this. I am working on it. IF there is any problems I faced, 

    I will come back to you again for the discussion.

    Catch you again.

    Regards,

    Selva

  • Great!

    Regards,

    Marvin

  • Hi Marvin,

    Good morning,

    Now I am working the OAD TI 15.4. I am trying to upload the .hex to sensor node from Linux gateway. I followed this link

    https://dev.ti.com/tirex/explore/node?node=A__AMUyuBXNKfa6upwi5KJtuA__com.ti.SIMPLELINK_ACADEMY_CC13X0SDK__1FaRUBA__LATEST

    But, I am not able to upload the .hex file from UI it shows only LED toggle button only.  not able to upload it from terminal as well.

    can you help me in this ?

     Regards,

    Selva

  • Hi Marvin,

    From the previous thread I am able to upload it from teminal as given that link.

    Now, How can I uplaod it from UI. 

    can you help me in this ?

    Regards,

    Selva

  • Hi Selva,

    With UI, do you mean a webpage that can enable OAD?

    Regards,

    Marvin

  • Hi Marvin,

    yes, To update the Sensor Node.

    The given link is to upload it via the terminal using the commands.  I am looking for UI to upload the .bin file to sensor node. how it is working like toggleLED button. 

    To make User friendly to update the sensor node.

    Reagrds,

    Selva

  • Unfortunately we don't support this functionality.  

    Regards,

    Marvin

  • Thank you for the confirmation Marvin. Let me customize it then.

    Regards,

    Selva