Skip to main content
Visitor II
August 1, 2013
Question

whether there are libraries for STM8 periphery? (assembler)

  • August 1, 2013
  • 4 replies
  • 896 views
Posted on August 01, 2013 at 11:56

whether there are libraries for STM8 periphery? (assembler)

I didn't find if at someone is, report the link, please.

    This topic has been closed for replies.

    4 replies

    s1975Author
    Visitor II
    August 1, 2013
    Posted on August 01, 2013 at 11:57

    STVD assembler

    Visitor II
    August 1, 2013
    Posted on August 01, 2013 at 12:04

    The hardware peripheral include files are stored under the root directory of your STVD installation, i.e. inside C:\Program Files\STMicroelectronics\st_toolset\asm

    s1975Author
    Visitor II
    August 1, 2013
    Posted on August 01, 2013 at 12:11

    more correctly, for example i2c library, etc., so that it would be possible to use record and reading function, as for C

    Visitor II
    August 1, 2013
    Posted on August 01, 2013 at 13:22

    Sorry, there is no assembler library for using a STM8 peripheral.

    If you want one, you could compile the STM8 standard peripheral library and use the compiler assembler output.

    You can also ''call'' the library C functions from your assembler code if it meets the calling convention of the C compiler, but it's easier to ''translate'' the C algorithm in an assembler one starting from the assembler output of the compiler...