Skip to main content
Associate
October 22, 2024
Question

How to read/write a STM8S?

  • October 22, 2024
  • 1 reply
  • 2058 views

How can i read/write a STM8S series IC. Please help me.

    1 reply

    whitehorsesoft
    Associate III
    October 24, 2024

    You'll need software that generates a binary to load (ref STVD-STM8 at https://www.st.com/en/development-tools/stvd-stm8.html, sdcc at https://sdcc.sourceforge.net/, or asst8 at https://shop-pdp.net/ashtml/asxxxx.php).

    You'll also need the programmer hardware that sends the binary via the SWIM port (ref st-linkv2 at https://www.st.com/en/development-tools/st-link-v2.html), and the software to drive the programmer, to upload your generated binary (ref ref STVD-STM8 at https://www.st.com/en/development-tools/stvd-stm8.html or STM8-Flash at https://github.com/vdudouyt/stm8flash)

    Alternatively you can use a dev board, which has the chip and the programmer both on the board.

    whitehorsesoft
    Associate III
    October 24, 2024

    To read from the board you'll need to communicate from the board via a protocol (UART, SPI, roll-your-own, etc), and set up the software to use the protocol.