Forum : ST7/STM8
Original Post
Post Information | Post |
---|---|
October 15, 2012 - 11:14pm
|
Hello, Can anyone tell me the difference between verify and compare using the command line options ? our software engineers have to read-protect the software and the verify option doesn't work with the command line when programming TSTM8AF519, however compare does seem to work but I don't actualy know what it is looking at. error I get when verifying device using my batch file: (9) Checking Read-Out Protection... OK !!! Error 103: Verification failure. a little extra info: Device: Thanks |
Hi,
We would need complete command lines to answer you more accurately.
The only difference between command 'C' (Compare) and command 'V' (Verify) is that Verify considers a mismatch as an error, which will stop the process and make the exe return an error code, while Compare just tells you if it matches or not and goes on with the rest of the process regardless of the mis/match status.
In both cases, the comparison includes a reading of the flash, which cannot be performed if the device is read-out protected.
What you can do is split your input (hex) file in two parts: one file with the Flash (&EEPROM) content and a second file with the Option Bytes. Then you can program the Flash & EEPROM, then Verify it, and in the end you program the Option Bytes.
I hope it helps.
Best Regards,
Vincent
this is the batch file I wrote
@echo off
::**********************************************************************************************************
::**** ICP Batch File ****
::**** Written By: R.Nelson ****
::**** Date: Oct 15, 2012 ****
::**********************************************************************************************************
::**** This Section Sets the following: ****
::**** Device: ****
::**** ****
::**** ****
::**** ****
::**** ****
::**********************************************************************************************************
cd V:\Dept_Prod_Engineering\In_CCT_Program\STM8 Programming
V:
echo. ******************
echo. ** **
echo. ******************
echo.
echo.
echo.
echo. Type Q to exit, P to program
echo.
echo.
echo. MAKE SURE THE HEADER IS CONNECTED TO PROGAMMING PADS BEFORE PROGRAMMING
echo.
echo.
choice /C:PQ /N
if errorlevel ==2 goto BYEBYE
if errorlevel ==1 goto PROGRAM
:PROGRAM
cls
STM8_pgm TSTM8AF519 EA Pmyhexfile.hex Vmyhexfile.hex
if errorlevel ==1 goto FAIL
:PASS
cls
echo.
echo. ******** *** ****** ******
echo. ** ** ** ** ** ** ** **
echo. ** ** ** ** ** **
echo. ******** ** ** ****** ******
echo. ** ********* ** **
echo. ** ** ** ** ** ** **
echo. ** ** ** ****** ******
echo.
echo.
goto NEXT
:FAIL
echo.
echo. PROGRAMMING HAS FAILED!
echo.
echo. ******** *** **** **
echo. ** ** ** ** **
echo. ** ** ** ** **
echo. ****** ** ** ** **
echo. ** ********* ** **
echo. ** ** ** ** **
echo. ** ** ** **** ********
echo.
echo. Ensure the header is connected to programming Pads
echo.
echo. Type Q to exit or R to retry programming
choice /C:RQ /N
if errorlevel ==2 goto BYEBYE
if errorlevel ==1 goto PROGRAM
:NEXT
echo. ******************
echo. ** **
echo. ******************
echo.
echo.
echo.
echo. Type Q to exit, P to program
echo.
echo.
echo. MAKE SURE THE HEADER IS CONNECTED TO PROGAMMING PADS BEFORE PROGRAMMING
echo.
echo.
choice /C:PQ /N
if errorlevel ==2 goto BYEBYE
if errorlevel ==1 goto PROGRAM
:BYEBYE
echo.
echo. Good Bye:-)
Hi,
Thanks for the details.
Did you read my previous post completely? I think your answer is there...
Best Regards,
Vincent