Topic : Possible not to initialize EEPROM data when (re-)programming?

Forum : ST7/STM8

Original Post
Post Information Post
February 4, 2010 - 1:21am
Guest

Hi,

Is it possible to program an STM8S105xx part using the SWIM interface without causing the EEPROM area to be re-initialized? I see that if I do not supply an initial value, a warning appears in the build log and it is initialized to 0.

unsigned char eeprom serial_number = 0xA5; // works
unsigned char eeprom serial_number;        //  *** WARNING C230 IN LINE 243 OF var.h : Initialization missing  

It would be nice to be able to update the firmware on my product without having to reload its specific EEPROM data. Is there an option for this somewhere in RIDE? Thanks in advance.

Ride7 -- 6.26.09.0351
RKit-STM8 for Ride7 -- 2.26.09.0317

Replies
Post Information Post
+1
0
-1
February 4, 2010 - 9:42am
Raisonance Support Team

Hello Jacob,

This is not possible as of today.
However, the next version of RKit-STM8 will have this feature amongst others (do not reprogram flash before debugging, do not modify option bytes etc). There is no precise release date yet, but this should be mid-March.

Regards,
Bruno

+1
0
-1
February 4, 2010 - 9:54am
Raisonance Support Team

Hi,

If this is for production purpose, you can do it with STM8_pgm in the current version of the software.

As Bruno said it will be available also in Ride and RFlasher in the next version of the software.

Best Regards,

Vincent

+1
0
-1
February 4, 2010 - 7:42pm
Guest

Thank you for your comments. I will look forward to the next release, and if necessary, will try STM8_pgm.

In my case, this is for a new design and a "program without erasing EEPROM" feature would be something desirable for maintenance/service purposes (returned goods, upgrading products in the field, etc.).