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

armlink stuck in armcc

Hi

I want to use armcc to pre-process my scatter file:

#! armcc -E

...

but armlink gets stuck.

If I kill armcc.exe armlink returns an error that armcc terminated (because of killing).

Any idea?

  • Hi,

           I tried to run the following command with ARM Compiler 5.05u1:

    armcc -E scatter.scat
    

    Where scatter.scat is a scatter file in an example project but I don't see armcc calling armlink.

    Can you expand a bit on what are you trying to do or what command line you are using ? What version of ARM Compiler are you using for your project ?

    Best Regards,

    Stefano

  • Stefano

    I have a scatter file which instructs armlink (also 5.05u1) to pre-process it with armcc

    For example like this:

    #! armcc -E

    #define TEST 1

    #if TEST == 1

    #error Works

    #endif

    If I try this, armcc does not stop (as it is waiting for more input) and therefore armlink hangs.

    Using instead:

    #! arm-none-eabi-gcc -E -P -x c

    works fine.

  • Hi,

         Unfortunately, due to a defect that affects ARM Compiler 5.05, 5.05 update 1, and 5.05 update 2, you will need to temporarily separate the scatter-file preprocessing from the link step as a workaround:

    1. Use armcc to preprocess the scatter-file;
    2. Pass the result of 1 as your scatter-file input to armlink.

    We expect this issue will be fixed in the next ARM Compiler 5 release. Sorry for the inconvenience this issue is causing to you.

    Best Regards,

    Stefano

  • Ok, thanks for the info.

    Cheers,

    42Bastian