public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* unknown cpu 'cortex-m0'
@ 2013-02-21 12:37 ehuijben
  2013-02-21 15:46 ` Ian Lance Taylor
  2013-02-21 15:53 ` ehuijben
  0 siblings, 2 replies; 5+ messages in thread
From: ehuijben @ 2013-02-21 12:37 UTC (permalink / raw)
  To: gcc-help

Dear all,

I have some serious issues with the GCC compiler when using a cortex-M0 
(STM32F051)

When compiling my code with GCC version 4.6.3, which should support 
cortex-M0 microcontrollers, I get next messages:
Error: unknown cpu `cortex-m0'
Error: unrecognized option -mcpu=cortex-m0

When compiling the same code with the codesourcery lite package (same 
gcc version), it works fine, however I like to configure my own gcc 
version.

I configured GCC with next options:

  ../configure --target=arm-axon-eabi --prefix=toolchain \
    --with-cpu=cortex-m0 --with-mode=thumb \
    --enable-interwork --disable-multilib \
    --enable-languages="c" --with-newlib --without-headers \
    --disable-shared --with-gnu-as --with-gnu-ld \
    2>&1 | tee configure.log

Looking in the logging, the cortex-m0 is recognized
Also with the newest version 4.7.2 I have the same problems

Who can help me with this issue?

Regards,

Evert




--
View this message in context: http://gcc.1065356.n5.nabble.com/unknown-cpu-cortex-m0-tp916014.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: unknown cpu 'cortex-m0'
  2013-02-21 12:37 unknown cpu 'cortex-m0' ehuijben
@ 2013-02-21 15:46 ` Ian Lance Taylor
  2013-02-21 15:53 ` ehuijben
  1 sibling, 0 replies; 5+ messages in thread
From: Ian Lance Taylor @ 2013-02-21 15:46 UTC (permalink / raw)
  To: ehuijben; +Cc: gcc-help

On Thu, Feb 21, 2013 at 4:37 AM, ehuijben <evert.huijben@axon.tv> wrote:
>
> When compiling my code with GCC version 4.6.3, which should support
> cortex-M0 microcontrollers, I get next messages:
> Error: unknown cpu `cortex-m0'
> Error: unrecognized option -mcpu=cortex-m0

Those are not the error messages I would expect to see from an ARM GCC
for an unrecognized CPU.  Can you show us the exact command that you
typed and the exact output of that command?  Thanks.

Ian

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: unknown cpu 'cortex-m0'
  2013-02-21 12:37 unknown cpu 'cortex-m0' ehuijben
  2013-02-21 15:46 ` Ian Lance Taylor
@ 2013-02-21 15:53 ` ehuijben
  2013-02-21 15:59   ` Ian Lance Taylor
  1 sibling, 1 reply; 5+ messages in thread
From: ehuijben @ 2013-02-21 15:53 UTC (permalink / raw)
  To: gcc-help

Hello,

Here is the complete logging of my build:

**** Build of configuration Default for project GDR216 ****

make all 
make -C ../../Libs/C/GNU_STM32/Libraries
make[1]: Entering directory `/home/evert/sandbox/Libs/C/GNU_STM32/Libraries'
arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m0
-march=armv6s-m -ffreestanding -nostdlib -includestm32f0xx_conf.h
-ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include
-ISTM32F0xx_StdPeriph_Driver/inc -c -o stm32f0xx_adc.o
STM32F0xx_StdPeriph_Driver/src/stm32f0xx_adc.c
arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m0
-march=armv6s-m -ffreestanding -nostdlib -includestm32f0xx_conf.h
-ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include
-ISTM32F0xx_StdPeriph_Driver/inc -c -o stm32f0xx_cec.o
STM32F0xx_StdPeriph_Driver/src/stm32f0xx_cec.c
arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m0
-march=armv6s-m -ffreestanding -nostdlib -includestm32f0xx_conf.h
-ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include
-ISTM32F0xx_StdPeriph_Driver/inc -c -o stm32f0xx_comp.o
STM32F0xx_StdPeriph_Driver/src/stm32f0xx_comp.c
arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m0
-march=armv6s-m -ffreestanding -nostdlib -includestm32f0xx_conf.h
-ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include
-ISTM32F0xx_StdPeriph_Driver/inc -c -o stm32f0xx_crc.o
STM32F0xx_StdPeriph_Driver/src/stm32f0xx_crc.c
arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m0
-march=armv6s-m -ffreestanding -nostdlib -includestm32f0xx_conf.h
-ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include
-ISTM32F0xx_StdPeriph_Driver/inc -c -o stm32f0xx_dac.o
STM32F0xx_StdPeriph_Driver/src/stm32f0xx_dac.c
arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m0
-march=armv6s-m -ffreestanding -nostdlib -includestm32f0xx_conf.h
-ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include
-ISTM32F0xx_StdPeriph_Driver/inc -c -o stm32f0xx_dbgmcu.o
STM32F0xx_StdPeriph_Driver/src/stm32f0xx_dbgmcu.c
arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m0
-march=armv6s-m -ffreestanding -nostdlib -includestm32f0xx_conf.h
-ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include
-ISTM32F0xx_StdPeriph_Driver/inc -c -o stm32f0xx_dma.o
STM32F0xx_StdPeriph_Driver/src/stm32f0xx_dma.c
arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m0
-march=armv6s-m -ffreestanding -nostdlib -includestm32f0xx_conf.h
-ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include
-ISTM32F0xx_StdPeriph_Driver/inc -c -o stm32f0xx_exti.o
STM32F0xx_StdPeriph_Driver/src/stm32f0xx_exti.c
arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m0
-march=armv6s-m -ffreestanding -nostdlib -includestm32f0xx_conf.h
-ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include
-ISTM32F0xx_StdPeriph_Driver/inc -c -o stm32f0xx_flash.o
STM32F0xx_StdPeriph_Driver/src/stm32f0xx_flash.c
arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m0
-march=armv6s-m -ffreestanding -nostdlib -includestm32f0xx_conf.h
-ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include
-ISTM32F0xx_StdPeriph_Driver/inc -c -o stm32f0xx_gpio.o
STM32F0xx_StdPeriph_Driver/src/stm32f0xx_gpio.c
arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m0
-march=armv6s-m -ffreestanding -nostdlib -includestm32f0xx_conf.h
-ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include
-ISTM32F0xx_StdPeriph_Driver/inc -c -o stm32f0xx_i2c.o
STM32F0xx_StdPeriph_Driver/src/stm32f0xx_i2c.c
arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m0
-march=armv6s-m -ffreestanding -nostdlib -includestm32f0xx_conf.h
-ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include
-ISTM32F0xx_StdPeriph_Driver/inc -c -o stm32f0xx_iwdg.o
STM32F0xx_StdPeriph_Driver/src/stm32f0xx_iwdg.c
arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m0
-march=armv6s-m -ffreestanding -nostdlib -includestm32f0xx_conf.h
-ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include
-ISTM32F0xx_StdPeriph_Driver/inc -c -o stm32f0xx_misc.o
STM32F0xx_StdPeriph_Driver/src/stm32f0xx_misc.c
arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m0
-march=armv6s-m -ffreestanding -nostdlib -includestm32f0xx_conf.h
-ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include
-ISTM32F0xx_StdPeriph_Driver/inc -c -o stm32f0xx_pwr.o
STM32F0xx_StdPeriph_Driver/src/stm32f0xx_pwr.c
arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m0
-march=armv6s-m -ffreestanding -nostdlib -includestm32f0xx_conf.h
-ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include
-ISTM32F0xx_StdPeriph_Driver/inc -c -o stm32f0xx_rcc.o
STM32F0xx_StdPeriph_Driver/src/stm32f0xx_rcc.c
arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m0
-march=armv6s-m -ffreestanding -nostdlib -includestm32f0xx_conf.h
-ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include
-ISTM32F0xx_StdPeriph_Driver/inc -c -o stm32f0xx_rtc.o
STM32F0xx_StdPeriph_Driver/src/stm32f0xx_rtc.c
STM32F0xx_StdPeriph_Driver/src/stm32f0xx_rtc.c: In function 'RTC_DeInit':
STM32F0xx_StdPeriph_Driver/src/stm32f0xx_rtc.c:311:17: warning: unused
variable 'wutcounter' [-Wunused-variable]
arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m0
-march=armv6s-m -ffreestanding -nostdlib -includestm32f0xx_conf.h
-ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include
-ISTM32F0xx_StdPeriph_Driver/inc -c -o stm32f0xx_spi.o
STM32F0xx_StdPeriph_Driver/src/stm32f0xx_spi.c
arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m0
-march=armv6s-m -ffreestanding -nostdlib -includestm32f0xx_conf.h
-ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include
-ISTM32F0xx_StdPeriph_Driver/inc -c -o stm32f0xx_syscfg.o
STM32F0xx_StdPeriph_Driver/src/stm32f0xx_syscfg.c
arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m0
-march=armv6s-m -ffreestanding -nostdlib -includestm32f0xx_conf.h
-ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include
-ISTM32F0xx_StdPeriph_Driver/inc -c -o stm32f0xx_tim.o
STM32F0xx_StdPeriph_Driver/src/stm32f0xx_tim.c
arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m0
-march=armv6s-m -ffreestanding -nostdlib -includestm32f0xx_conf.h
-ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include
-ISTM32F0xx_StdPeriph_Driver/inc -c -o stm32f0xx_usart.o
STM32F0xx_StdPeriph_Driver/src/stm32f0xx_usart.c
arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m0
-march=armv6s-m -ffreestanding -nostdlib -includestm32f0xx_conf.h
-ICMSIS/Include -ICMSIS/Device/ST/STM32F0xx/Include
-ISTM32F0xx_StdPeriph_Driver/inc -c -o stm32f0xx_wwdg.o
STM32F0xx_StdPeriph_Driver/src/stm32f0xx_wwdg.c
arm-none-eabi-ar -r libstm32f0.a stm32f0xx_adc.o stm32f0xx_cec.o
stm32f0xx_comp.o stm32f0xx_crc.o stm32f0xx_dac.o stm32f0xx_dbgmcu.o
stm32f0xx_dma.o stm32f0xx_exti.o stm32f0xx_flash.o stm32f0xx_gpio.o
stm32f0xx_i2c.o stm32f0xx_iwdg.o stm32f0xx_misc.o stm32f0xx_pwr.o
stm32f0xx_rcc.o stm32f0xx_rtc.o stm32f0xx_spi.o stm32f0xx_syscfg.o
stm32f0xx_tim.o stm32f0xx_usart.o stm32f0xx_wwdg.o
arm-none-eabi-ar: creating libstm32f0.a
make[1]: Leaving directory `/home/evert/sandbox/Libs/C/GNU_STM32/Libraries'
/home/evert/sandbox/GDR216/C/scripts/toolchain/bin/arm-axon-eabi-gcc -Wall
-std=c99 -Os -g  -mlittle-endian -mcpu=cortex-m0 -march=armv6-m -mthumb 
-ffunction-sections -fdata-sections  -Wl,--gc-sections
-Wl,-Map=gdr216-01xx.map -I inc -I ../../Libs/C/GNU_STM32/Libraries -I
../../Libs/C/GNU_STM32/Libraries/CMSIS/Device/ST/STM32F0xx/Include -I
../../Libs/C/GNU_STM32/Libraries/CMSIS/Include -I ../../Libs/C/GNU_STM32 -I
../../Libs/C/GNU_STM32/Libraries/STM32F0xx_StdPeriph_Driver/inc 
-I/home/evert/sandbox/GDR216/C/scripts/toolchain/arm-axon-eabi/include
-DGDR216 -DSTM32F0xx_CONF -DDEBUG -DSLACK_ENUM_ITEMS 
../../Libs/C/GNU_STM32/SynapseMain.c src/system_stm32f0xx.c
../../Libs/C/GNU_STM32/Axon.c ../../Libs/C/GNU_STM32/AxonNet_DL.c
../../Libs/C/GNU_STM32/AxonNet_AL.c ../../Libs/C/GNU_STM32/SmallTimers.c
../../Libs/C/GNU_STM32/Eeprom.c ../../Libs/C/GNU_STM32/Interface_DL.c
../../Libs/C/GNU_STM32/ledo.c ../../Libs/C/GNU_STM32/watchdog.c
src/Menu_GDR216.c ../../Libs/C/GNU_STM32/SerialNum.c src/Application.c
../../Libs/C/GNU_STM32/usart.c ../../Libs/C/GNU_STM32/syscalls.c
../../Libs/C/GNU_STM32/Spi.c src/Config.c
../../Libs/C/GNU_STM32/Libraries/CMSIS/Device/ST/STM32F0xx/Source/Templates/TrueSTUDIO/startup_stm32f0xx.s
-o gdr216-01xx.elf -L../../Libs/C/GNU_STM32/Libraries -lstm32f0 -lm -lgcc
-LDevice -Tstm32_flash.ld
In file included from
../../Libs/C/GNU_STM32/Libraries/CMSIS/Include/core_cm0.h:121:0,
                 from
../../Libs/C/GNU_STM32/Libraries/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h:216,
                 from
../../Libs/C/GNU_STM32/Libraries/STM32F0xx_StdPeriph_Driver/inc/stm32f0xx_rcc.h:38,
                 from ../../Libs/C/GNU_STM32/SynapseMain.c:7:
/home/evert/sandbox/GDR216/C/scripts/toolchain/lib/gcc/arm-axon-eabi/4.6.3/include/stdint.h:3:26:
fatal error: stdint.h: No such file or directory
compilation terminated.
In file included from
../../Libs/C/GNU_STM32/Libraries/CMSIS/Include/core_cm0.h:121:0,
                 from
../../Libs/C/GNU_STM32/Libraries/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h:216,
                 from src/system_stm32f0xx.c:84:
/home/evert/sandbox/GDR216/C/scripts/toolchain/lib/gcc/arm-axon-eabi/4.6.3/include/stdint.h:3:26:
fatal error: stdint.h: No such file or directory
compilation terminated.
Assembler messages:
Error: unknown cpu `cortex-m0'
Error: unrecognized option -mcpu=cortex-m0
In file included from
../../Libs/C/GNU_STM32/Libraries/CMSIS/Include/core_cm0.h:121:0,
                 from
../../Libs/C/GNU_STM32/Libraries/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h:216,
                 from
../../Libs/C/GNU_STM32/Libraries/STM32F0xx_StdPeriph_Driver/inc/stm32f0xx_usart.h:38,
                 from ../../Libs/C/GNU_STM32/AxonNet_DL.c:7:
/home/evert/sandbox/GDR216/C/scripts/toolchain/lib/gcc/arm-axon-eabi/4.6.3/include/stdint.h:3:26:
fatal error: stdint.h: No such file or directory
compilation terminated.
../../Libs/C/GNU_STM32/AxonNet_AL.c:10:20: fatal error: string.h: No such
file or directory
compilation terminated.
In file included from
../../Libs/C/GNU_STM32/Libraries/CMSIS/Include/core_cm0.h:121:0,
                 from
../../Libs/C/GNU_STM32/Libraries/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h:216,
                 from
../../Libs/C/GNU_STM32/Libraries/STM32F0xx_StdPeriph_Driver/inc/stm32f0xx_tim.h:38,
                 from ../../Libs/C/GNU_STM32/SmallTimers.c:10:
/home/evert/sandbox/GDR216/C/scripts/toolchain/lib/gcc/arm-axon-eabi/4.6.3/include/stdint.h:3:26:
fatal error: stdint.h: No such file or directory
compilation terminated.
In file included from
../../Libs/C/GNU_STM32/Libraries/CMSIS/Include/core_cm0.h:121:0,
                 from
../../Libs/C/GNU_STM32/Libraries/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h:216,
                 from
../../Libs/C/GNU_STM32/Libraries/STM32F0xx_StdPeriph_Driver/inc/stm32f0xx_cec.h:38,
                 from ../../Libs/C/GNU_STM32/Libraries/stm32f0xx_conf.h:35,
                 from inc/Config.h:12,
                 from ../../Libs/C/GNU_STM32/Axon.h:8,
                 from ../../Libs/C/GNU_STM32/AxonNet_AL.h:8,
                 from inc/Application.h:99,
                 from ../../Libs/C/GNU_STM32/Eeprom.c:17:
/home/evert/sandbox/GDR216/C/scripts/toolchain/lib/gcc/arm-axon-eabi/4.6.3/include/stdint.h:3:26:
fatal error: stdint.h: No such file or directory
compilation terminated.
In file included from ../../Libs/C/GNU_STM32/Interface_DL.c:10:0:
/home/evert/sandbox/GDR216/C/scripts/toolchain/lib/gcc/arm-axon-eabi/4.6.3/include/stdint.h:3:26:
fatal error: stdint.h: No such file or directory
compilation terminated.
In file included from
../../Libs/C/GNU_STM32/Libraries/CMSIS/Include/core_cm0.h:121:0,
                 from
../../Libs/C/GNU_STM32/Libraries/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h:216,
                 from
../../Libs/C/GNU_STM32/Libraries/STM32F0xx_StdPeriph_Driver/inc/stm32f0xx_gpio.h:38,
                 from ../../Libs/C/GNU_STM32/ledo.c:8:
/home/evert/sandbox/GDR216/C/scripts/toolchain/lib/gcc/arm-axon-eabi/4.6.3/include/stdint.h:3:26:
fatal error: stdint.h: No such file or directory
compilation terminated.
In file included from
../../Libs/C/GNU_STM32/Libraries/CMSIS/Include/core_cm0.h:121:0,
                 from
../../Libs/C/GNU_STM32/Libraries/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h:216,
                 from
../../Libs/C/GNU_STM32/Libraries/STM32F0xx_StdPeriph_Driver/inc/stm32f0xx_iwdg.h:38,
                 from ../../Libs/C/GNU_STM32/watchdog.c:5:
/home/evert/sandbox/GDR216/C/scripts/toolchain/lib/gcc/arm-axon-eabi/4.6.3/include/stdint.h:3:26:
fatal error: stdint.h: No such file or directory
compilation terminated.
In file included from
../../Libs/C/GNU_STM32/Libraries/CMSIS/Include/core_cm0.h:121:0,
                 from
../../Libs/C/GNU_STM32/Libraries/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h:216,
                 from
../../Libs/C/GNU_STM32/Libraries/STM32F0xx_StdPeriph_Driver/inc/stm32f0xx_cec.h:38,
                 from ../../Libs/C/GNU_STM32/Libraries/stm32f0xx_conf.h:35,
                 from inc/Config.h:12,
                 from ../../Libs/C/GNU_STM32/Axon.h:8,
                 from ../../Libs/C/GNU_STM32/AxonNet_AL.h:8,
                 from inc/Application.h:99,
                 from src/Menu_GDR216.c:1:
/home/evert/sandbox/GDR216/C/scripts/toolchain/lib/gcc/arm-axon-eabi/4.6.3/include/stdint.h:3:26:
fatal error: stdint.h: No such file or directory
compilation terminated.
In file included from
../../Libs/C/GNU_STM32/Libraries/CMSIS/Include/core_cm0.h:121:0,
                 from
../../Libs/C/GNU_STM32/Libraries/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h:216,
                 from
../../Libs/C/GNU_STM32/Libraries/STM32F0xx_StdPeriph_Driver/inc/stm32f0xx_cec.h:38,
                 from ../../Libs/C/GNU_STM32/Libraries/stm32f0xx_conf.h:35,
                 from inc/Config.h:12,
                 from ../../Libs/C/GNU_STM32/Axon.h:8,
                 from ../../Libs/C/GNU_STM32/AxonNet_AL.h:8,
                 from inc/Application.h:99,
                 from ../../Libs/C/GNU_STM32/SerialNum.c:8:
/home/evert/sandbox/GDR216/C/scripts/toolchain/lib/gcc/arm-axon-eabi/4.6.3/include/stdint.h:3:26:
fatal error: stdint.h: No such file or directory
compilation terminated.
src/Application.c:3:19: fatal error: stdio.h: No such file or directory
compilation terminated.
../../Libs/C/GNU_STM32/usart.c:3:19: fatal error: stdio.h: No such file or
directory
compilation terminated.
../../Libs/C/GNU_STM32/syscalls.c:13:22: fatal error: sys/stat.h: No such
file or directory
compilation terminated.
In file included from
../../Libs/C/GNU_STM32/Libraries/CMSIS/Include/core_cm0.h:121:0,
                 from
../../Libs/C/GNU_STM32/Libraries/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h:216,
                 from
../../Libs/C/GNU_STM32/Libraries/STM32F0xx_StdPeriph_Driver/inc/stm32f0xx_spi.h:38,
                 from ../../Libs/C/GNU_STM32/Spi.c:11:
/home/evert/sandbox/GDR216/C/scripts/toolchain/lib/gcc/arm-axon-eabi/4.6.3/include/stdint.h:3:26:
fatal error: stdint.h: No such file or directory
compilation terminated.
In file included from
../../Libs/C/GNU_STM32/Libraries/CMSIS/Include/core_cm0.h:121:0,
                 from
../../Libs/C/GNU_STM32/Libraries/CMSIS/Device/ST/STM32F0xx/Include/stm32f0xx.h:216,
                 from
../../Libs/C/GNU_STM32/Libraries/STM32F0xx_StdPeriph_Driver/inc/stm32f0xx_cec.h:38,
                 from ../../Libs/C/GNU_STM32/Libraries/stm32f0xx_conf.h:35,
                 from inc/Config.h:12,
                 from src/Config.c:1:
/home/evert/sandbox/GDR216/C/scripts/toolchain/lib/gcc/arm-axon-eabi/4.6.3/include/stdint.h:3:26:
fatal error: stdint.h: No such file or directory
compilation terminated.
Assembler messages:
Error: unknown cpu `cortex-m0'
Error: unrecognized option -mcpu=cortex-m0
make: *** [gdr216-01xx.elf] Error 1

**** Build Finished ****



--
View this message in context: http://gcc.1065356.n5.nabble.com/unknown-cpu-cortex-m0-tp916014p916076.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: unknown cpu 'cortex-m0'
  2013-02-21 15:53 ` ehuijben
@ 2013-02-21 15:59   ` Ian Lance Taylor
  2013-02-22 10:16     ` ehuijben
  0 siblings, 1 reply; 5+ messages in thread
From: Ian Lance Taylor @ 2013-02-21 15:59 UTC (permalink / raw)
  To: ehuijben; +Cc: gcc-help

On Thu, Feb 21, 2013 at 7:53 AM, ehuijben <evert.huijben@axon.tv> wrote:

> Assembler messages:
> Error: unknown cpu `cortex-m0'
> Error: unrecognized option -mcpu=cortex-m0
> make: *** [gdr216-01xx.elf] Error 1

Thanks.  No wonder these errors messages looked odd.  They are coming
from the assembler, not the compiler.  You need to build a newer
version of the assembler.  It looks like support for cortex-m0 was
added in GNU binutils version 2.20.

Ian

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: unknown cpu 'cortex-m0'
  2013-02-21 15:59   ` Ian Lance Taylor
@ 2013-02-22 10:16     ` ehuijben
  0 siblings, 0 replies; 5+ messages in thread
From: ehuijben @ 2013-02-22 10:16 UTC (permalink / raw)
  To: gcc-help

Hi Ian,

I've updated the binutils and the cortex-m0 is recognized now!

Thank you,

Evert



--
View this message in context: http://gcc.1065356.n5.nabble.com/unknown-cpu-cortex-m0-tp916014p916274.html
Sent from the gcc - Help mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-02-22 10:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-21 12:37 unknown cpu 'cortex-m0' ehuijben
2013-02-21 15:46 ` Ian Lance Taylor
2013-02-21 15:53 ` ehuijben
2013-02-21 15:59   ` Ian Lance Taylor
2013-02-22 10:16     ` ehuijben

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).