This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

cross compiling the hello trust zone example

Is it possible for me to cross compile the hello Trust Zone example referenced here: Cortex-A9 TrustZone example ? The build file contains the command options for the arm compiler. I do not have the board this example was meant for, and I am trying to see if I can run it on a different platform. I did see a --treanslate-gcc option referenced on the documentation. Would that by chance help me with what I am trying to do?

Parents
  • If you're using GCC I expect that you'll face a number of problems...

    • The assembler is written in armasm syntax, which is incompatible with GAS syntax. That should be fairly easy to work around.
    • The example makes some assumption about how to call/initialize the C library, which will be different if you're not using the one from the ARM tool chain.
Reply
  • If you're using GCC I expect that you'll face a number of problems...

    • The assembler is written in armasm syntax, which is incompatible with GAS syntax. That should be fairly easy to work around.
    • The example makes some assumption about how to call/initialize the C library, which will be different if you're not using the one from the ARM tool chain.
Children
  • Greetings-

    I am running into another error now. It is:

    gcc     -c -o retarget_secure.o retarget_secure.c

    /tmp/cctqYaNq.s: Assembler messages:

    /tmp/cctqYaNq.s:15: Error: operand type mismatch for `call'

    make: *** [retarget_secure.o] Error 1

    Here is my makefile:

    CROSS_COMPILE?= /home/sansari/tbt/tools/arm-eabi-4.7/bin/arm-eabi-

    CC = gcc

    objects := $(patsubst %.c,%.o,$(wildcard *.c))

    foo:$(objects) monitor.s startup_normal.s startup_secure.s v7.s

         $(CROSS_COMPILE)$(CC) -mcpu=cortex-a15 -o foo $(objects)

    Can you help?