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

Is it possible to compile the example of TrustZone for Cortex-A9 with a GNU compiler or the ARM is the only one usable?

I'm trying to compile the VersatileExpress_TrustZone_Example with a GNU compiler and it's full of errors.

I compiled the example with the ARM one ansd it worked perfectly but i only have a evaluation license to use it.

So I would like to know if there is a way to use a GNU compiler to do it, maybe by making some changes in the code?

Thanks

JohannG

  • Short answer is no...

    Longer answer, yes - with difficulty.  The example includes a number of assembler files.  The ARM assembler (armasm) and GNU assembler (gas) use different syntaxes. Meaning you would have to port the files to gas.  This is syntax changes rather than actual code changes.  How easy it is do depends on how well you know both syntaxes.

    Another, potentially harder, problem is the libraries.  It's a baremetal example, and based on ARM's bare metal libraries.  You'd have to replace those libraries, which means changing things like out the reset handler calls the C library init.

    You'd also have to port the makefile, as it's using the armcc/armasm/armlink flags.

  • So, i think:

    ARM should provide 2 sets examples, one for armcc , the other for gnu gcc.

    Like ARM Trusted Firmware.

    because gnu compiler is widely used now.