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

Problem using GNU toolchain(CodeSourcery) in Keil

Hi everybody
I'm trying to use 'Sourcery CodeBench Lite for ARM EABI' to assemble my ARM assembly files in Keil.
I have changed my project tool chain configuration for Keil(in Components Environment And Books), and when I use Keil 4.1 everything works well.
But I have a problem when I use Keil 4.6-4.7 for assembling files. Keil will not be able to find GNU assemble of CodeBench(with same setting that works in Keil 4.1) and generates following error:
Error: failed to execute 'arm-none-eabi-as'
Any idea why does this error happen?

Regards

Parents Reply Children
  • All executable files with 'arm-none-eabi-' prefix run correctly in command prompt and this shows that PATH variable has been configured correctly but Keil MDK can not run them.

  • Hello Mojtaba Jafariqamsari,

    Did you check that your project settings under TAB Components, Environment and Books - Folders/Extensions fit to your GCC installation?

    The GNU-Tool Folder must contain the path to your GCC installation. One folder level obove the bin folder.
    If you are using Win7 than it should be something like :C:\Program Files (x86)\CodeSourcery\Sourcery G++ Lite\.
    The GNU-Tool-Prefix must contain the used prefix for the GCC executables.

    Best Regards,
    Martin Guenther

  • Dear Martin,

    I noticed what the problem was. When I was specifying GNU-Tool Folder, I was used a path to bin folder like this:
    C:\Program Files (x86)\CodeSourcery\Sourcery G++ Lite\bin\
    Because executable files are located in this folder. But after your reply, I noticed that I should specify root folder like this:
    C:\Program Files (x86)\CodeSourcery\Sourcery G++ Lite\

    Thanks a lot for help, this solved my problem. :)

    Regards