cancel
Showing results for 
Search instead for 
Did you mean: 

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

gocchan
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
Simon V.
ST Employee

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

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.

View solution in original post

4 REPLIES 4
Simon V.
ST Employee

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

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.

gocchan
Associate III

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.
ST Employee

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

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.

gocchan
Associate III

Hello,

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

Thank you.