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

GCC compiler in Keil

Hi,

I want to use a free GCC compiler. I have downloaded gcc-arm-none-eabi 5.4 V. Then I set in Project>Manage>Project items>Folder/Extensions and there I check the Use GCC Compiler (GNU) for ARM projects.
PRefix is: arm-none-eabi- and Folder is C:\Program Files (x86)\GNU Tools ARM Embedded\5.4 2016q3\bin\

Then I tried to compile do project but with error:
--- Error: failed to execute 'arm-none-eabi-gcc'

What I did a wrong? Did I forget for anything?

Thank you.

P.S. The project runs correctly with standard keil compiler...

  • Folder should be C:\Program Files (x86)\GNU Tools ARM Embedded\5.4 2016q3\

    not Folder is C:\Program Files (x86)\GNU Tools ARM Embedded\5.4 2016q3\bin\

  • ... i get/got the same error message:

    Rebuild target 'STM32F407 RAM'
    assembling STM32F40xxx_41xxx_OPT.s...
    --- Error: failed to execute 'arm-none-eabias'
    ".\Blinky.elf" - 1 Error(s), 0 Warning(s).
    Target not created.
    Build Time Elapsed:  00:00:00
    

    The window items in "Manage Project Items" are:
    Use GCC Compiler (GNU) for ARM projects
    Prefix: arm-none-eabi
    Folder: C:\Program Files (x86)\GNU Tools ARM Embedded\7 2017-q4-major\

    Toolbox installed from:
    developer.arm.com/.../downloads
    " Windows 32-bit File: gcc-arm-none-eabi-7-2018-q2-update-win32.exe (82.98 MB)"
    on a 64bit Windows 10 (1709).

    Command-Window-trial:

    C:\Program Files (x86)\GNU Tools ARM Embedded\7 2017-q4-major>arm-none-eabi-gcc c:\work\Blinky_5.24.2.0_probier\Blinky.c
    c:\work\Blinky_5.24.2.0_probier\Blinky.c:15:77: fatal error: stm32f4xx_hal.h: No such file or directory
     #include "stm32f4xx_hal.h"              // Keil::Device:STM32Cube HAL:Common
                                                                                 ^
    compilation terminated.
    

    For any help many thanks in advance, Roland (newbie)