Notice: We have migrated to GitLab launching 2024-05-01 see here:

#3789 closed defect (fixed)

TMS570 applciation build error

Reported by: Andreas Werner Owned by: Sebastian Huber
Priority: normal Milestone: 5.1
Component: arch/arm Version: 5
Severity: normal Keywords:
Cc: Blocked By:


expected behaviour

Build without errors and without runtime errors

undesired behaviour

bsp_start_hook_0_done is undefined
CPACR Register is not setup

target hardware

Hercules Safety MCU development Kit TMS570 MCU

toolchain version

Modified GCC, binutils and gdb build script to build armeb compiler build with RTEMS Source Builder master(see patches for RTEMS Soucre Builder)
I need a ARM Compiler with Big Endian Support as default for TMS570.

configuration options for bsp

../rtems/configure '--prefix=[bsp path]/bsp/armeb-rtems5' '--host=arm-rtems5' '--target=arm-rtems5' '--enable-posix' '--enable-rtems-debug' '--disable-tests' '--disable-networking' '--enable-rtemsbsp=tms570ls3137_hdk' 'CC_FOR_TARGET=armeb-rtems5-gcc' 'CXX_FOR_TARGET=armeb-rtem5-gcc' 'AR=armeb-rtems5-ar' 'TMS570_USE_HWINIT_STARTUP=1'

Test on master commit RTEMS (4a9a58ea8ad75248af5876c01ef654f9bc59c312)

Bug Fix

define simbol bsp_start_hook_0_done in start.S
add if defined(ARM_ARCH_7R)
see patches

Change History (3)

comment:1 Changed on 08/23/19 at 08:51:44 by Andreas Werner

I can't upload Atachments the patches and files can be found under:

comment:2 Changed on 08/26/19 at 05:57:34 by Sebastian Huber

Component: bspsarch/arm
Milestone: 5.1
Owner: set to Sebastian Huber
Status: newaccepted

The problem is triggered by the TMS570_USE_HWINIT_STARTUP=1 BSP option. In bspstarthooks-hwinit.c we have:

#if 1
   * Do not depend on link register to be restored to
   * correct value from stack. If TCRAM self test is enabled
   * the all stack content is zeroed there.

Leading to:

bsps/arm/tms570/start/bspstarthooks-hwinit.c:375: undefined reference to `bsp_start_hook_0_done'

comment:3 Changed on 12/19/19 at 10:00:52 by Sebastian Huber <sebastian.huber@…>

Resolution: fixed
Status: acceptedclosed

In [changeset:"2497da06de6f35ccd4a08ff3942a67b9ef972a70/rtems" 2497da06/rtems]:

bsps/arm: Export bsp_start_hook_0_done

Close #3789.

Note: See TracTickets for help on using tickets.