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?
> Someone has decided that we must use STM32 and Keil > development tools, but my source code includes some > libraries compiled with GNU tools.
Have you actually tried linking the libraries? Objects from recent GCC (ABI compliant) are supposed to work fine. Got to try that myself one day...
Regards Marcus http://www.doulos.com/arm/