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
  • seanans schrieb:

    Hi Martin

    Thanks for the quick reply. I am using arm-eaby-4.7. Here is the error:

    cc main_normal.c -o main_normal 

    main_normal.c:3:7: error: expected declaration specifiers or ‘...’ before numeric constant

    __smc(0) void yeild(void);

           ^

    make: *** [main_normal] Error 1

    I am sure the script is fine. I am trying to compile the code for a different platform. Also, the readme file stated that there is a .sh file? I did not see it in the package I downloaded.

    I guess you mean GCC.

    __smc(0) is an intrinsic in ARM CC. Try this

    __asm__(" smc #0");

    instead.

Reply
  • seanans schrieb:

    Hi Martin

    Thanks for the quick reply. I am using arm-eaby-4.7. Here is the error:

    cc main_normal.c -o main_normal 

    main_normal.c:3:7: error: expected declaration specifiers or ‘...’ before numeric constant

    __smc(0) void yeild(void);

           ^

    make: *** [main_normal] Error 1

    I am sure the script is fine. I am trying to compile the code for a different platform. Also, the readme file stated that there is a .sh file? I did not see it in the package I downloaded.

    I guess you mean GCC.

    __smc(0) is an intrinsic in ARM CC. Try this

    __asm__(" smc #0");

    instead.

Children