Forum : ST7/STM8
Original Post
Post Information | Post |
---|---|
October 8, 2008 - 3:53pm
|
Hi, we plan to use ST7_pgm to program production chips, however, we cannot verify that the programming has been successful. Is there a command line instruction to perform a verify? Best regards Damon |
Hi,
The current version of ST7_pgm does not allow to verify.
I will implement that for the next version of RIDE. Thank you for the suggestion.
Best Regards,
Vincent
Hi Vincent,
I am a little confused as on the 31-08-2007 this was your response to a question on a similar subject:-
Hi,
Of course you cannot verify the code in a chip that is programmed: "Verify" means "read and compare against expected", and since we cannot read a protected part...
However, if you use RFlasher or ST7_pgm, you will be able to execute the "program and verify" operation. In this configuration, we program the flash, then the option bytes except the protection bit, then all this is verified, and in the end we program the security bit. That's the best we can do.
Reading this assertion convinced me that your RIDE environment was the one to go for.
Best regards
Damon
Hi,
It seems that in the answer you refer to, I confused ST7_pgm and STR7_pgm, which does provide a verify feature. (and also I said 'programmed" instead of "protected" :/ )
I will send you a test version of ST7_pgm with the Verify feature at the beginning of next week.
In the meantime you should be able to verify with RFlasher.
Best Regards,
Vincent
Hi,
Here is the test version of ST7_pgm.exe that will allow you to verify using option 'V'. (run the exe without argument to see the help)
ftp://www.raisonance.com/temp/ST/fix_ST7_pgm_verify_091014.zip
I have made a few tests already, but I'm waiting for your feedback before I commit the changes to be included in the next build of RIDE.
Best Regards,
Vincent
Hi Vincent,
thank you for responding so quickly. I will try it later today and report back.
Best regards
Damon
Hi Vincent,
I have just tested the new version with 324BJ4 and Noticed that the 'F' switch seems to destroy all of the command line parameters and thus the exe just displays the help information.
without 'F', errorlevel returns zero so I presume that the changes are working fine. I have run the code in the target PCB and it performs perfectly.
I do, however, need to turn off the option byte warning so the F switch would need to work.
Best regards
Damon
Hi,
This is weird, because it works fine here.
Can you please give me your exact and complete command line?
Best Regards,
Vincent
Hi Vincent
My command line is st7_pgm st72f324bj4 I p307spv18.hex V 0x2687 F.
Hope that helps
Regards
Damon
Hi,
I have found the problem: I added an argument, but I forgot to increase the max number of arguments allowed. ;)
(and I didn't see it in my tests because I wasn't using the 'I' option)
Here is a new version:
ftp://www.raisonance.com/temp/ST/fix_ST7_pgm_verify_091014_2.zip
Thanks for the testing.
Best Regards,
Vincent
Hi Vincent,
Thanks for that. We will give the software some exercise in our development department for the next few days and see how it goes.
I will keep you informed as testing progresses.
Thank you for all the work you have done for us. I am very impressed by the speed with which you sort out problems.
Best regards
Damon