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

stm32f10x_vector.s with GNU compiler

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?

Parents
  • The point is that I am a beginner, this is the first time I deal with embbeded systems.

    It is not my specific task to do the assemble-compile process, but I am trying to ensure that the source code I have written works according to the specifications I was given.

    I have the source code of the library. If I try to compile with Real View compiler, using a STM32f10x template project from Keil toolchain , I get this error: "Trying to use configall_system for unknown compiler".

    I realized that uVision has the option of use GNU compiler, and I was trying to use it. But I found the error that I posted at this thread.

    Ah! And I have used "someone" because it is easier to me not to use the passive form. ( English is not my mother tongue ;-) Maybe some expresions from my post are not totally correct, excuse me)

    Thanks. This forum seems to be worthwhile.

Reply
  • The point is that I am a beginner, this is the first time I deal with embbeded systems.

    It is not my specific task to do the assemble-compile process, but I am trying to ensure that the source code I have written works according to the specifications I was given.

    I have the source code of the library. If I try to compile with Real View compiler, using a STM32f10x template project from Keil toolchain , I get this error: "Trying to use configall_system for unknown compiler".

    I realized that uVision has the option of use GNU compiler, and I was trying to use it. But I found the error that I posted at this thread.

    Ah! And I have used "someone" because it is easier to me not to use the passive form. ( English is not my mother tongue ;-) Maybe some expresions from my post are not totally correct, excuse me)

    Thanks. This forum seems to be worthwhile.

Children