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

Failed to load .axf

Hi ,

I am using trial version of ARM development studio. I want to use M4 simulator. I am not able to stop at breakpoint cerated for symbol 'main', Also I am getting errors in commands tab as attcahed in image.

Can anybody suggest me what is to be done to resolve this issue?

Regards,

GB

Parents
  • Hi GB,

    My name is Stephen and I work at Arm.

    It looks like the .axf that you are trying to load has been compiled for AArch64 rather than AArch32.

    C code for Cortex-M4 would normally be compiled with Arm Compiler 6 with, e.g.:
    armclang --target=arm-arm-none-eabi -mcpu=cortex-m4 ...

    Please try the ready-made example for Cortex-M4, provided in the Arm DS Examples, named "startup_Cortex-M4_AC6".

    To import this example into the workspace:

    1. File > Import
    2. Arm Development Studio > Examples & Programming Libraries
    3. In the search field, enter e.g. "M4"
    4. Select the "startup_Cortex-M4_AC6" example

    To run the example, follow the instructions in the readme.

    Hope this helps

    Stephen


Reply
  • Hi GB,

    My name is Stephen and I work at Arm.

    It looks like the .axf that you are trying to load has been compiled for AArch64 rather than AArch32.

    C code for Cortex-M4 would normally be compiled with Arm Compiler 6 with, e.g.:
    armclang --target=arm-arm-none-eabi -mcpu=cortex-m4 ...

    Please try the ready-made example for Cortex-M4, provided in the Arm DS Examples, named "startup_Cortex-M4_AC6".

    To import this example into the workspace:

    1. File > Import
    2. Arm Development Studio > Examples & Programming Libraries
    3. In the search field, enter e.g. "M4"
    4. Select the "startup_Cortex-M4_AC6" example

    To run the example, follow the instructions in the readme.

    Hope this helps

    Stephen


Children