Renesas M16C/6V Bedienungsanleitung Seite 18

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 18
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 17
FLASHER 5 Manual 18
@echo off
rem The first call of Flasher loads the the HEX file
Flasher test.mot -program -verify -exit
goto checkerror
rem Loop for repeated programming without download
:loop
pause
Flasher -program -verify -exit
rem Check errorlevel if succeed
:checkerror
if errorlevel 1 goto ERROR_%errorlevel%
echo Operation successfully finished
goto loop
rem handle errors
:ERROR_1
echo Undefined error
goto end
:ERROR_2
echo ERROR_TARGET_CHECKBLANK
goto end
:ERROR_3
echo ERROR_TARGET_VERIFY
goto end
:ERROR_4
echo ERROR_TARGET_CLEAR
goto end
:ERROR_5
echo ERROR_TARGET_AUTO
goto end
:ERROR_6
echo ERROR_TARGET_PROGRAM
goto end
:ERROR_7
echo ERROR_TARGET_READBACK
goto end
:ERROR_8
echo ERROR_TARGET_STARTAPPLICATION
goto end
:ERROR_9
echo ERROR_TARGET_TIMEOUT
goto end
:ERROR_10
echo ERROR_OPENDOCUMENTFILE
:end
echo Operation canceled
Relocate, delete, merge and save
The following example shows a batch file, where the software
reads file A.HEX,
deletes the range 0xFC0000..0xFFFFFF,
moves the remaining bytes 0x40000 bytes up,
saves the memory contents as B.MOT,
reads the file A.HEX again,
deletes the range 0xC00000..0xCFFFFF,
moves the remaining bytes 0x340000 bytes down,
saves the memory contents as C.MOT,
merges the files B.MOT and C.MOT
and save the new file as RESULT.BIN.
Flasher A.HEX -delrangeFC0000-FFFFFF -relocate040000 -saveasB.MOT -exit
Flasher A.HEX -delrangeC00000-CFFFFF -relocate340000 -saveasC.MOT -exit
Flasher B.MOT -mergeC.MOT -saveasRESULT.BIN,C00000-CFFFFF -exit
Selecting device and setting ID bytes
The following example shows a batch file, where the software
selects a device,
sets the ID bytes to FF,FF,FF,FF,FF,FF,FF
and reads the contents of the device.
Flasher -seldeviceM30201F6xx -password7,FF,FF,FF,FF,FF,FF,FF -readback
Seitenansicht 17
1 2 ... 13 14 15 16 17 18

Kommentare zu diesen Handbüchern

Keine Kommentare