Suitability of arm-none-eabi-gcc

Asked by hasan

Dear All,

I need to know is it perfectly matched if I use arm-none-eabi-gcc in case of STM32 ARM-based chip?

I have an error while using this compiler,

Take a look this

arm-none-eabi-gcc: fatal error: no input files
compilation terminated.

Question information

Language:
English Edit question
Status:
Answered
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Thomas Preud'homme (thomas-preudhomme) said :
#1

Hi Hasan,

Ues arm-none-eabi-gcc is suited to build something for that chip. However we will need more information to tell you what is wrong in your case. Could you share the command line you used to build your application?

Best regards.

Revision history for this message
hasan (porosh2016) said :
#2

Dear Sir,
Thank you very much.

Here is the console view after build my project.

09:02:35 **** Incremental Build of configuration Debug for project notun_pj ****
Info: Internal Builder is used for build
arm-none-eabi-gcc -mthumb -mfloat-abi=soft "-IC:\\STM32_toolchain\\Workspace\\notun_pj\\Drivers\\CMSIS\\Device\\ST\\STM32F0xx\\Include" "-IC:\\STM32_toolchain\\arm-none-eabi\\include;" "-IC:\\MinGW\\include;" "-I -O0 -g3 -Wall -fmessage-length=0 -ffunction-sections -c -o inc\\Src\\stm32f0xx_ll_usart.o ..\\inc\\Src\\stm32f0xx_ll_usart.c"
arm-none-eabi-gcc: fatal error: no input files
compilation terminated.

09:02:35 Build Finished (took 89ms)

Revision history for this message
Thomas Preud'homme (thomas-preudhomme) said :
#3

Hi Hasan,

Try removing the semicolon after -IC:\\MinGW\\include, ie. ""-IC:\\MinGW\\include"

Best regards.

Revision history for this message
hasan (porosh2016) said :
#4

Dear Sir,

Thank you once again for your kind help.
After removing the MinGW( that might not be able to compile such ARM chip), I have just keep arm-none-eabi.

This time toolchain is Ac6 STM32 MCU GCC and builder CDT internal.

Now console view says,

09:04:29 **** Incremental Build of configuration Debug for project notun_pj ****
Info: Internal Builder is used for build
arm-none-eabi-gcc -mthumb -mfloat-abi=soft "-IC:\\STM32_toolchain\\Workspace\\notun_pj\\Drivers\\CMSIS\\Device\\ST\\STM32F0xx\\Include" "-IC:\\Users\\swend95_하산\\Desktop\\Design\\notun_pj\\Drivers\\STM32F0xx_HAL_Driver\\Inc" "-IC:\\STM32_toolchain\\arm-none-eabi\\include -I" "-I -I" -O0 -g3 -Wall -fmessage-length=0 -ffunction-sections -c -o "inc\\Src\\stm32f0xx_hal_dac_ex.o" "..\\inc\\Src\\stm32f0xx_hal_dac_ex.c"
In file included from ..\inc\Src\stm32f0xx_hal_dac_ex.c:56:0:
C:\Users\swend95_하산\Desktop\Design\notun_pj\Drivers\STM32F0xx_HAL_Driver\Inc/stm32f0xx_hal.h:48:32: fatal error: stm32f0xx_hal_conf.h: No such file or directory
compilation terminated.

09:04:29 Build Finished (took 71ms)

Now when I add the stm32f0xx_hal_conf.h, its says again, fatal error: mxconstants.h: No such file or directory
compilation terminated.

Do you want me such adding file on that path continuously?

Revision history for this message
Thomas Preud'homme (thomas-preudhomme) said :
#5

Hi Hasan,

I'm afraid this is more of a problem on how to use the IDE with the BSP for your board. the directory where stm32f0xx_hal_conf.h is should have been in your include path and likewise for mxconstants.h. I would suggest you to go on a forum dedicated to ST hardware or dedicated to your IDE to get more useful help.

Best regards.

Revision history for this message
hasan (porosh2016) said :
#6

Dear Sir Thomas,

Thank you to take a part on this post.

I am already on STM32 device and Ac6 STM32/Eclipse forum, asking these problem regularly.

Beside solving those include path, build and gcc setting problem.
I am getting strange problem that might be C coding related or something else.

Do you think, I should remove some folders from Project explorer those are contain same files in include paths ?

Right at this moment the CDT console view says,

In file included from ..\startup\Src\stm32f0xx_hal_dac_ex.c:56:0:
C:\Users\swend95_하산\Desktop\Design\notun_pj\Drivers\STM32F0xx_HAL_Driver\Inc/stm32f0xx_hal.h:528:29: error: unknown type name '__IO'
 void HAL_Delay(__IO uint32_t Delay);

I know this is not the place where should I ask this issue, but from your experience can you suggest anything ?

Regards
Hasan

Can you help with this problem?

Provide an answer of your own, or ask hasan for more information if necessary.

To post a message you must log in.