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: TI-RTOS/Starterware AM335x Beaglebone Black: binary executables don't run

Tool/software: TI-RTOS

Hello,

I am experiencing difficulties to run a simple application from Starterware for AM335x devices source code.

Since my board is a BBB I compiled (with the TI-RTOS arm-none-eabi toolchain) the application in:

/starterware-install-dir/examples/beaglebone/demo/

which have its binary file into

/starterware-install-dir//build/armv7a/gcc/am335x/beaglebone/demo

The SD boot is not a priority right now (I asked for it yesterday), since I would start to develop and being able to do something with RTOS or baremetal, so I tried to run the demo.out binary file from u-boot, but there's no way to make it run succesfully:

Press SPACE to abort autoboot in 2 seconds
=> fatload mmc 0 80000000 demo.out
reading demo.out
887451 bytes read in 65 ms (13 MiB/s)
=> go 80000000
## Starting application at 0x80000000 ...
## Application terminated, rc = 0x1

A similar problem happens when I try to run the binary file app as suggested from the TI-RTOS guideline.

Press SPACE to abort autoboot in 2 seconds
=> fatls mmc 0
   114696   app
    83028   mlo

2 file(s), 0=> fatload mmc 0 80000000 app
reading app
114696 bytes read in 12 ms (9.1 MiB/s)
=> go 80000000
## Starting application at 0x80000000 ...
data abort
pc : [<80009d28>]          lr : [<9ff546bb>]
reloc pc : [<608b6d28>]    lr : [<808016bb>]
sp : 9ef32d70  ip : 200001d3     fp : 00000002
r10: 9ffa3c20  r9 : 9ef32ed8     r8 : 9ef36290
r7 : 8002c8f0  r6 : 00000002     r5 : 80000000  r4 : 9ef36294
r3 : 80000000  r2 : 9ef36294     r1 : 00000001  r0 : 80009d1c
Flags: NzCv  IRQs off  FIQs on  Mode SYS_32
Resetting CPU ...

resetting ...

What's wrong with my attempts ?

Thank you in advance.

Simon





  • The RTOS team have been notified. They will respond here.
  • simozz,

    Please check out e2e.ti.com/.../425603

    Would you be open to evaluating the examples in the Processor SDK RTOS package instead of Starterware?
    Please see e2e.ti.com/.../628801

    This would be a better approach for your application development.
    You can download this release from software-dl.ti.com/.../index_FDS.html
    Training material is available at training.ti.com/processor-sdk-training-series

    There are several examples located at C:\ti\pdk_am335x_1_0_7\packages\MyExampleProjects for the BBB.
    Note that the MyExampleProjects directory will have to be created as instructed here processors.wiki.ti.com/.../Processor_SDK_RTOS_Building_The_SDK

    Hope this gets you moving in the right direction.

    Lali
  • Hello Lali,


    # There are several examples located at C:\ti\pdk_am335x_1_0_7\packages\MyExampleProjects for the BBB.


    I am sorry but there's no directory for BBB projects. The only directories I have referring to beaglebone are these:

    /path-to-install-dir/bios_6_46_05_55/packages/ti/platforms/beaglebone
    /path-to-install-dir/bios_6_46_05_55/packages/ti/platforms/beaglebone/package/ti.platforms.beaglebone.ccs
    /path-to-install-dir/bios_6_46_05_55/packages/ti/platforms/beaglebone/package/package_ti.platforms.beaglebone.c
    /path-to-install-dir/bios_6_46_05_55/packages/ti/platforms/beaglebone/package/ti.platforms.beaglebone.sch
    /path-to-install-dir/bios_6_46_05_55/packages/ti/platforms/beaglebone/package/ti_platforms_beaglebone.class
    /path-to-install-dir/bios_6_46_05_55/packages/ti/platforms/beaglebone/package/ti_platforms_beaglebone.java
    /path-to-install-dir/bios_6_46_05_55/docs/cdoc/ti/platforms/beaglebone
    /path-to-install-dir/pdk_am335x_1_0_8/packages/ti/starterware/tools/pinmux_config/am335x/beaglebone_config
    /path-to-install-dir/pdk_am335x_1_0_8/packages/ti/starterware/tools/pinmux_config/am335x/beaglebone_black_config
    /path-to-install-dir/pdk_am335x_1_0_8/packages/ti/starterware/board/am335x/am335x_beaglebone.c
    /path-to-install-dir/pdk_am335x_1_0_8/packages/ti/starterware/board/am335x/am335x_beaglebone_pinmux_data.c
    /path-to-install-dir/pdk_am335x_1_0_8/packages/ti/starterware/board/am335x/am335x_beagleboneblack_pinmux_data.c
    /path-to-install-dir/pdk_am335x_1_0_8/packages/ti/starterware/board/am335x/am335x_beagleboneblack.c
    /path-to-install-dir/pdk_am335x_1_0_8/packages/ti/starterware/board/am335x/am335x_beaglebone.h
    /path-to-install-dir/pdk_am335x_1_0_8/packages/ti/starterware/board/am335x/am335x_beagleboneblack.h

    Of course I have installed the TI-RTOS-SDK for Linux platform from the following link: software-dl.ti.com/.../index_FDS.html

  • simozz,

    "I am sorry but there's no directory for BBB projects. The only directories I have referring to beaglebone are these:"

    Please see my comment in the previous post.

    Note that the MyExampleProjects directory will have to be created as instructed here processors.wiki.ti.com/.../Processor_SDK_RTOS_Building_The_SDK

    Lali