File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -730,35 +730,36 @@ class STVPHexUploader extends HexUploader<string[]> {
730730 if ( programs . length == 0 ) {
731731 throw new Error ( `no any program files !` ) ;
732732 }
733-
734- // not verify
735- commands . push ( '-no_verif' ) ;
736-
733+
734+ // program
737735 const binFile = this . toAbsolute ( programs [ 0 ] . path ) ;
738- if ( binFile . IsFile ( ) ) {
739- commands . push ( '-FileProg=\"' + binFile . path + '\"' ) ;
740- } else {
741- commands . push ( '-no_progProg' ) ;
742- }
736+ commands . push ( '-FileProg=\"' + binFile . path + '\"' ) ;
743737
738+ // eeprom
744739 const eepromFile = this . toAbsolute ( options . eepromFile ) ;
745740 if ( eepromFile . IsFile ( ) ) {
746741 commands . push ( '-FileData=\"' + eepromFile . path + '\"' ) ;
747742 } else {
748743 commands . push ( '-no_progData' ) ;
749744 }
750745
746+ // option bytes
751747 const opFile = this . toAbsolute ( options . optionByteFile ) ;
752748 if ( opFile . IsFile ( ) ) {
753749 commands . push ( '-FileOption=\"' + opFile . path + '\"' ) ;
754750 } else {
755751 commands . push ( '-no_progOption' ) ;
756752 }
753+
754+ // verify prog
755+ commands . push ( '-verif' ) ;
757756 }
758757
759758 // erase all
760759 else {
760+ commands . push ( '-no_progProg' ) ;
761761 commands . push ( '-erase' ) ;
762+ commands . push ( '-no_verif' ) ;
762763 }
763764
764765 return {
You can’t perform that action at this time.
0 commit comments