2 Replies Latest reply: Jul 4, 2014 2:04 PM by mazen.e RSS

Build startup_cortexA15MPcore using GNU toolchain. URGENT.

mazen.e Nibble

Dear all,


I am trying to build the example  startup_cortexA15MPcore (provided with DS-5)  using GNU toolchain. The example is originally designed for build using ARM standard tools, and the following variables are hence defined :







With what GNU tools should I substitute CC, AS, LD, AR, FE so that the example can be built using GNU toolchain. Does the below work:

CC = arm-none-eabi-gcc


AS= arm-none-eabi-as

LD= arm-none-eabi-ld

how about AR and FE?

Please help thank you very much.

  • Re: Build startup_cortexA15MPcore using GNU toolchain. URGENT.
    mweidmann Employee

    AR refers to "armar" which is the ARM utility for creating libraries. FR refers to "fromelf" which is a tool for inspecting ELF objects and images, for converting them to other formats. I haven't got a copy of the example to hand, but I doubt it actually needs either.


    Switch to GCC/GNU tools I foresee two problems. GAS (GNU assembler tool) and armasm (ARM's assembler tool) use different syntax. Which makes the .s files for one incompatible with the other.  Meaning you'll have to port it.  It's not too difficult (from limited past experience) but can be fiddly. Helps if you know one of the syntaxes well to start with.


    THe other potential problem is libraries.  The calls you make to set up and initialise the C library are different.