cancel
Showing results for 
Search instead for 
Did you mean: 

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

PZuko.1
Associate
 
1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

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.

View solution in original post

5 REPLIES 5
AA1
Senior III

Yes, it is possible.

You can try with STVP.

Peter BENSCH
ST Employee

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.
PZuko.1
Associate

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!

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.

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
Up vote any posts that you find helpful, it shows what's working..