#3789 accepted defect

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:
Blocking:

Description

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 (2)

comment:1 Changed on Aug 23, 2019 at 8:51:44 AM by Andreas Werner

I can't upload Atachments the patches and files can be found under: https://www.cs.hs-rm.de/~werner/rtems/bugreport/

comment:2 Changed on Aug 26, 2019 at 5:57:34 AM 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.
   */
  bsp_start_hook_0_done();
#endif

Leading to:

bsps/arm/tms570/start/bspstarthooks-hwinit.c:375: undefined reference to `bsp_start_hook_0_done'
Note: See TracTickets for help on using tickets.