Forum : ST7/STM8
Original Post
Post Information | Post |
---|---|
May 30, 2008 - 8:22am
|
When I download the program to debug with the ride7 and Rlink, The ride7 will always erase the eeprom area (1000h,st7lite49k2).How can I download without erasing 1000h area? |
Hi,
For now you have to program the whole chip, including the EEPROM.
I plan to add an option to allow to program only the flash, but I cannot say when I will be able to do it.
I suggest you read the EEPROM back from the device, merge it with the hex file containing the FLASH content that you want to program (you can do that in RFlasher or automatically using some hex-file manipulation tools), and then download the file containing both EEPROM and Flash.
Best Regards,
Vincent
Dear Vincent:
Thank you for your help!
But, this solution is not fitting my application,.My application is using the EEprom to monitor the position of a motor in real time.
I debug the program, and the data in eeprom vary everytime when I stop the program. So the ride 7 must NOT erase the eeprom area
When I download my applition program.
minyang
Hi,
Here is a test version of some RIDE files :
ftp://www.raisonance.com/temp/ST/Patch_080602_RKitSTM8_v2.02.0001_NoProgEEPROMST7XFLASH.zip
This will add two options: "Erase", which you should check, and "Program EEPROM", which you should uncheck.
I'm waiting for your feedback before I commit the modification for the next official release and apply it to STM8.
(I suggest you save your old files in case there is a problem with the patch)
Best Regards,
Vincent
Hi Vincent:
I had installed your test version and tested for my application. it's ok. Thank you for helpping!
There is another bug in your ride7. when I had changed some program, then use , the ride7 display ok, but it is not be writen into flash. Sometime the function of cant'nt work properly , I must use ST7 Visual Programmer to change this option bytes.
Best Regards
minyang
Hi,
Thank you for your feedback.
Please give me more information on these problems:
* About the :
Do you recompile the project after modifying the source and before opening the debug options?
Can you send your project to "support@raisonance.com"? (at least the hex file)
* About the option bytes:
What value are you trying to write and what value was written before that?
How often does it happen?
Can you send your board's schematic to "support@raisonance.com"? (at least the parts containing ST7 µC, ICC connector, power, clocks and reset)
Best Regards,
Vincent
Was the modification implemented in Ride7 for STM8S? I would really need it.
Ride7 version 7.20.09.0139
RKIT-STM8 version 2.20.09.0139
Hi,
No, this has not been done for STM8 yet.
If you are in production phase, you can use STM8_pgm, which does allow to erase and program each region independently.
If you are debugging, you'll have to first dump the content of the eeprom to a hex file using STM8_pgm, and then include this hex file in your project, like if it was a source file. Then Ride will erase the eeprom and reprogram whatever was there before, from the hex file.
I hope it helps.
Best Regards,
Vincent