Skip to main content
Visitor II
May 24, 2021
Solved

Is there a register that can store and read user-specific information?

  • May 24, 2021
  • 4 replies
  • 836 views

Hi,

​I am developing with STM8S003F3.

I want to store user-specific information somewhere in the flash and read only that area with ST-LINK.

Is there such a way?

Regards,

Gotoda

    This topic has been closed for replies.
    Best answer by Simon V.

    Hello,

    I agree with your remark.

    STVP command line tool is dedicated to device programming automation.

    You should use the windows visual version of STVP to read specifically a desired memory area.

    Regards,

    Simon

    4 replies

    ST Employee
    May 24, 2021

    Hello Gotoda,

    STM8 data memory is dedicated for this usage.

    You can refer to programming manual PM0051 (How to program STM8S and STM8A Flash program memory and data EEPROM).

    You should find relevant information in chapter 4 Programming STM8 Flash microcontrollers.

    Regards,

    Simon

    gocchanAuthor
    Visitor II
    May 25, 2021

    Hello Simon,

    Thank you, I can now write to a specific area of PROGRAM MEMORY.

    Moreover I want to read this via SWIM. I tried using STVP_CmdLine.exe, but I don't know how to get the value of a specific area. Isn't it the -readProg command?

    0693W00000APRgxQAH.pngRegards,

    Gotoda

    Simon V.Answer
    ST Employee
    May 25, 2021

    Hello,

    I agree with your remark.

    STVP command line tool is dedicated to device programming automation.

    You should use the windows visual version of STVP to read specifically a desired memory area.

    Regards,

    Simon

    gocchanAuthor
    Visitor II
    May 26, 2021

    Hello,

    I understand that it is difficult to automatically read the values of PROGRAM/DATA MEMORY on the production line.

    Thank you.