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

Assembler example for STM32F103

Hi everybody,

I have here an MCBSTM32E with an STM32F103ZE. I want to write a short routine in assembler, becaue my C code is to slow. But unfortunatly i dont find any example how to use Inline Assembly with the µVision 4 IDE.
Hope somebody here can help me.
In the routine i want to start a Timer and let a GPIO Pin toggle.

Regards

Parents
  • > Ok Thanks, where is the difference between Inline
    > and Embedded Assembly?

    As far as Cortex-M3 and ARM C compilers are concerned the latter works :-)

    The ARM C compiler only supports the traditional ARM instruction set (not Thumb) with inline assembler. It has been officially deprecated for architectures >=v7

    Regards
    Marcus

Reply
  • > Ok Thanks, where is the difference between Inline
    > and Embedded Assembly?

    As far as Cortex-M3 and ARM C compilers are concerned the latter works :-)

    The ARM C compiler only supports the traditional ARM instruction set (not Thumb) with inline assembler. It has been officially deprecated for architectures >=v7

    Regards
    Marcus

Children