Skip to main content
PZuko.1
Associate
November 3, 2022
Solved

Is it possible to read/write STM8 EEPROM memory with st-link ?

  • November 3, 2022
  • 5 replies
  • 2919 views

..

    This topic has been closed for replies.
    Best answer by Peter BENSCH

    Welcome, @PZuko.1​, to the community!

    Yes, you can do that.

    For example, you can connect the STM8 to the PC via ST-LINK and use STVP to make the connection. STVP is included in the software package STVD, which should not be installed in C:\Program Files\ because of irritating spaces (STVD is still from the old Windows era), but as admin in a short path like e.g. C:\ST\STVD

    In STVP there are three tabs at the bottom PROGRAM MEMORY, DATA MEMORY and OPTION BYTE, with which you can select the appropriate target area - so for the EEPROM area DATA MEMORY. If you have activated it, you can enter data directly in the EEPROM area, which can be written with

    • Program > Current Tab
    • Program > Address Range...

    With Address Range you define the range to be written, e.g. 1000...100F, which is to be written instead of the entire tab range.

    Does it answer your question?

    Regards

    /Peter

    5 replies

    AA1
    Senior III
    November 3, 2022

    Yes, it is possible.

    You can try with STVP.

    Peter BENSCH
    Peter BENSCHBest answer
    ST Technical Moderator
    November 3, 2022

    Welcome, @PZuko.1​, to the community!

    Yes, you can do that.

    For example, you can connect the STM8 to the PC via ST-LINK and use STVP to make the connection. STVP is included in the software package STVD, which should not be installed in C:\Program Files\ because of irritating spaces (STVD is still from the old Windows era), but as admin in a short path like e.g. C:\ST\STVD

    In STVP there are three tabs at the bottom PROGRAM MEMORY, DATA MEMORY and OPTION BYTE, with which you can select the appropriate target area - so for the EEPROM area DATA MEMORY. If you have activated it, you can enter data directly in the EEPROM area, which can be written with

    • Program > Current Tab
    • Program > Address Range...

    With Address Range you define the range to be written, e.g. 1000...100F, which is to be written instead of the entire tab range.

    Does it answer your question?

    Regards

    /Peter

    In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
    Tesla DeLorean
    Guru
    November 4, 2022

    The other more chilling issue with Program Files is that Microsoft really does not like apps writing into their directories there, and the multi-user, concurrently sense, which was common​ practice in earlier times. This and the Desktop have weird Virtual directories as Microsoft tries to manifest something like UNIX links.

    S​hort paths, no spaces or weird characters is a much safer bet.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    PZuko.1
    PZuko.1Author
    Associate
    November 3, 2022

    Hi,

    Yes! this is exactly what i was looking for.

    I need to dump flash and eeprom memory from one stm8 uP and write it to another one.

    Many thanks!

    Peter BENSCH
    ST Technical Moderator
    November 4, 2022

    You're welcome!

    If the problem is solved, please mark this thread as answered by selecting Select as best, as also explained here. This will help other users find that answer faster.

    Good luck!

    /Peter

    In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.