I am using Keil uVision3 in order to compile a .cpp file using STM32F103VE microcontroller. I need to use GNU compiler instead of Keil ARM.
I am using the file stm32f10x_vector.s from the library of Keil\ARM\Startup\ST. The problem appears when I try to assemble this file with GNU ( "error: unknown cpu 'cortex m3')
Maybe I have to change the assembler control string "-mpcu=cortex-m3", but what should I put?
Or maybe the problem is that this file is for Keil Arm compiler. Where could I find a startup file for this controller compiling with GNU?
Maybe you could get some help from "http://www.keil.com/"
Your error message sounds like it is part of a
#if A_COMPILER_I_KNOW_ABOUT // do something useful #else #error "Trying to use configall_system for unknown compiler" #endif
Have you searched the code for "configall_system"?
You are right.
//something useful = It is to include the header file "configall_system.h"
This is supposed to be the header file for the Microsoft compiler, defining all system and compiler dependent configuration macros.
By the way, in my evaluation sotfware from Keil there isnÂ't any folder called \KEIL\ARM\GNU, as it appears in the help menu. This is the file where is supposed to be the startup file using gcc. I haven't been able to find this file surfing the internet.
Can anyone help me with this search?
See: http://www.keil.com/forum/docs/thread12738.asp