From 925d0670c45e1100e412070fa0ce2405604f219a Mon Sep 17 00:00:00 2001 From: Attila Veghelyi Date: Thu, 29 Jun 2023 16:24:54 +0200 Subject: Init repo --- strings.c | 1070 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1070 insertions(+) create mode 100644 strings.c (limited to 'strings.c') diff --git a/strings.c b/strings.c new file mode 100644 index 0000000..5899abe --- /dev/null +++ b/strings.c @@ -0,0 +1,1070 @@ +// Strings.c v0.12.0 + +#include "common.h" +#define NL "\n" + +char *STR_ID[DIM]; +char *strings_it[DIM]; +char *strings_en[DIM]; + + +int strfind(const char* langid,const char* langfile){ + FILE* f=fopen(langfile,"r"); + char line[4096],*id,*string,*p; + char temp[32]; + int i=0; +// printf("file %s f=%d\n",langfile, f); fflush(stdout); + if(f){ + temp[0]=0; + for(;fgets(line,sizeof(line),f);){ + if(sscanf(line,"[%[^]]",temp)&&!strncmp(langid,temp,sizeof(temp))){ + strings=malloc(DIM*sizeof(char*)); + for(i=0;i0&&line[0]=='[') break; //start of new table + id=strtok(line," \t"); + string=strtok(0,"\n"); + for(i=0;string&&i imposta breakpoint all'indirizzo " NL + " freeze [on,off] freeze periferiche" NL + " h[alt] ferma esecuzione" NL + " list mostra codice a partire da " NL + " p[rint] 0x osserva variabile all'indirizzo " NL + " p[rint] osserva variabile " NL + " p[rint] bank osserva i registri nel banco " NL + " p[rint] p osserva la memoria programma all'indirizzo " NL + " p[rint] ee osserva la memoria eeprom all'indirizzo " NL + " p[rint] ee osserva tutta la memoria eeprom" NL + " r[un] vai" NL + " s[tep] [n] passo singolo [n volte]" NL + " step over / ss [n] passo sopra le chiamate [n volte]" NL + " version leggi versione debugger" NL + " w[atch] variabile aggiungi/rimuovi variabile alla lista di osservazione" NL + " w[atch] 0x aggiungi/rimuovi variabile all'indirizzo alla lista di osservazione" NL; + strings_it[I_GUI_CMD_HELP]= + "Opzioni da linea di comando:" NL + " ?,h,help guida comandi" NL + " command invia al programmatore ed esci." NL + " Il messaggio è composto da byte esadecimali separati da uno spazio," NL + " fino a un massimo di 64; quelli non specificati vengono posti a 0" NL + " lang carica " NL + " langfile scrivi tutte le stringhe su file" NL; + strings_it[L_HELP]= + "op [opzioni]" NL NL + "-BKosccal carica BKosccal da file" NL + "-calib carica calibration da file" NL + "-command invia al programmatore ed esci." NL + " Il messaggio è composto da byte esadecimali separati da uno spazio," NL + " fino a un massimo di 64; quelli non specificati vengono posti a 0" NL + "-cwX forza config word X [1-7]" NL + "-d, device dispositivo" NL + "-ee usa eeprom" NL + "-err imposta massimo errori in scrittura" NL + "-fuse scrive il byte fuse low (solo Atmel)" NL + "-fuseh scrive il byte fuse high (solo Atmel)" NL + "-fusex scrive il byte extended fuse (solo Atmel)" NL + "-fuse3k scrive il byte fuse low a 3kHz (solo Atmel)" NL + "-h, help guida" NL + "-HWtest test hardware" NL + "-i, info informazioni programmatore" NL + "-icd abilita ICD (goto indirizzo)" NL + "-i2c_r leggi N byte dal bus I2C" NL + "-i2c_r2 leggi N byte dal bus I2C (indirizzi 16b)" NL + "-i2c_w scrivi N byte sul bus I2C" NL + "-i2c_w2 scrivi N byte sul bus I2C (indirizzi 16b)" NL + "-i2cspeed cambia velocità I2C: 0=100k,1=200k,2=500k,3=800k" NL + "-id usa ID" NL + "-l, log [=file] salva registro" NL + "-lang carica " NL + "-langfile scrivi tutte le stringhe su file" NL + "-lock scrive il byte lock (solo Atmel)" NL + "-mode SPI mode: 00,01,10,11" NL + "-nolvcheck salta controllo regolatore a 3,3V" NL + "-osccal carica osccal da file invece che dal valore salvato prima della cancellazione" NL + "-p, path percorso programmatore [/dev/usb/hiddev0]" NL + "-pid pid programmatore [0x100]" NL + "-r, reserved leggi area riservata" NL + "-rep dimensione report [64]" NL + "-s1, S1 Programmazione multipla comandata da S1" NL + "-s, save salva su file Ihex" NL + "-se, saveEE salva EEPROM su file Ihex (solo ATxxxx)" NL + "-spi_r leggi N byte dal bus SPI" NL + "-spi_w scrivi N byte sul bus SPI" NL + "-spispeed cambia velocità SPI: 0=100k,1=200k,2=300k,3=500k" NL + "-support dispositivi supportati" NL + "-use_BKosccal copia BKosccal su osccal" NL + "-v, version versione" NL + "-vid vid programmatore [0x4D8]" NL + "-w, write scrivi file Ihex" NL + "-we, writeEE scrivi EEPROM file Ihex (solo ATxxxx)" NL + "" NL + "es. op -d 12F683 -s prova.hex" NL; + strings_it[L_OPTERR]="Errore nelle opzioni" NL; + strings_it[L_INFO1]="vid 0x%04hx pid 0x%04hx versione 0x%04hx "; + strings_it[L_INFO2]= NL "bus: %d devnum: %d ifnum: %d" NL; + strings_it[L_UNKNOWN]="sconosciuto"; + strings_it[L_NAME]="Il dispositivo su %s si chiama %s" NL; + strings_it[L_DEV_RO]="Dispositivi supportati in sola lettura:"; + strings_it[L_DEV_RW]="Dispositivi supportati in lettura e scrittura:"; + +// ENGLISH strings + strings_en[S_NL]=NL; + strings_en[S_noprog]="Programmer not detected" NL; + strings_en[S_prog]="Programmer detected" NL; + strings_en[S_progDev]="Programmer detected on %s" NL; + strings_en[S_DevPermission]="Cannot open %s, make sure you have read permission on it" NL; + strings_en[S_nodev_r]="Device not supported for reading" NL; + strings_en[S_nodev_w]="Device not supported for writing" NL; + strings_en[S_nodev]="Unknown device" NL; + strings_en[S_DevMismatch]="Warning: the device is different from what specified in source data" NL; + strings_en[S_noV33reg]="3.3V Regulator not detected" NL; + strings_en[S_progver]="Firmware version %d.%d.%d" NL; + strings_en[S_progid]="Hardware ID: %d.%d.%d"; + strings_en[S_FWver2old]="This firmware is too old. Version %s is required" NL; + strings_en[S_lowUsbV]="USB voltage too low (VUSB<4.5V)" NL; + strings_en[S_HiVPP]="Warning: regulator voltage too high" NL NL; + strings_en[S_LowVPP]="Warning: regulator voltage too low" NL NL; + strings_en[S_reg]="Regulator up and running after %dms VPP=%.1fV" NL NL; + strings_en[S_dev_det]="Device detected: vid=0x%04X pid=0x%04X" NL "Path: %s" NL; + strings_en[S_file]="Hex8 files (*.hex)|*.hex|All files (*.*)|*.*||"; + strings_en[S_file2]="Hex8 files (*.hex)|*.hex|Binary files (*.bin)|*.bin|All files (*.*)|*.*||"; + strings_en[S_fileEEP]="Hex8 files (*.hex *.eep)|*.hex;*.eep|All files (*.*)|*.*||"; + strings_en[S_noDLL]="Error opening hid.dll"; + strings_en[S_openEEfile]="Open EEPROM file"; + strings_en[S_saveEEfile]="Save EEPROM file"; + // + strings_en[S_IhexShort]="Intel hex8 line too short:" NL "%s" NL; + strings_en[S_IhexChecksum]="Intel hex8 checksum error in line:" NL "%s" NL; + strings_en[S_InvHandle]="Invalid handle" NL; + strings_en[S_LogFile]="Log.txt"; + strings_en[S_FileSaved]="Saved file %s" NL; + // + strings_en[S_HVICSP]="High Voltage ICSP" NL; + strings_en[S_StartRead]="Reading ..." NL; + strings_en[S_Read]="Reading ... "; + strings_en[S_CodeReading1]="Reading code ... "; + strings_en[S_CodeReading]="Reading: %3d%%, add. %03X"; + strings_en[S_CodeReading2]="Reading: %3d%%, add. %05X"; + strings_en[S_ReadEnd]="Reading completed: %d words" NL; + strings_en[S_ReadID_CONFIG]="Reading ID and CONFIG"; + strings_en[S_Read_CONFIG_A]="Reading CONFIG area ... "; + strings_en[S_Read_EXE_A]="Reading Executive area ... "; + strings_en[S_ReadEE]="Reading EEPROM ... "; + strings_en[S_StartErase]="Erasing ... "; + strings_en[S_Writing]="Writing ..." NL; + strings_en[S_StartCodeProg]="Writing code ... "; + strings_en[S_CodeWriting]="Writing: %3d%%, add. %03X"; + strings_en[S_CodeWriting2]="Writing: %3d%%, add. %04X"; + strings_en[S_IDW]="Writing ID ... "; + strings_en[S_ConfigW]="Writing CONFIG ... "; + strings_en[S_ConfigAreaW]="Writing CONFIG area ... "; + strings_en[S_EEAreaW]="Writing EEPROM ... "; + strings_en[S_FuseAreaW]="Writing FUSE area ... "; + strings_en[S_CodeV]="Verifying code ... "; + strings_en[S_CodeV2]="Verifying: %d%%, add. %04X"; + strings_en[S_IDV]="Verifying ID ... "; + strings_en[S_ConfigV]="Verifying CONFIG ... "; + strings_en[S_EEV]="Verifying EEPROM ... "; + strings_en[S_IntW]="Write interrupted" NL; + strings_en[S_TotErr]="completed, %d total errors" NL; + strings_en[S_ComplErr]="completed, %d errors" NL; + strings_en[S_Compl]="completed" NL; + strings_en[S_Ready]="ready"; + strings_en[S_End]= NL "End (%.2f s)" NL NL; + strings_en[S_EndErr]= NL "End (%.2f s) %d %s" NL NL; + strings_en[S_ProtErase]="Device protected, overriding protection." NL; + // + strings_en[S_Inohex]="Error: '%.4s' doesn't look very hexadecimal, right?" NL; + strings_en[S_ReadErr]="Read error: requested words=%d, read=%d" NL; + strings_en[S_ReadCodeErr]="Error reading code area, requested %d words, read %d" NL; + strings_en[S_ReadCodeErr2]="Error reading code area, requested %d bytes, read %d" NL; + strings_en[S_ReadEEErr]="Error reading EEPROM area, requested %d bytes, read %d" NL; + strings_en[S_ConfigErr]="Error reading configuration area, requested %d words, read %d" NL; + strings_en[S_ReadConfigErr]="Error reading configuration area, requested %d bytes, read %d" NL; + strings_en[S_ErrOsccal]="Error reading OSCCAL and BKOSCCAL"; + strings_en[S_CodeWError]="Error writing address %3X: written %03X, read %03X" NL; + strings_en[S_CodeWError2]="Error writing address %3X: written %04X, read %04X" NL; + strings_en[S_CodeWError3]="Error writing address %4X: written %02X, read %02X" NL; + strings_en[S_CodeWError4]="Error writing code area, requested %d bytes, written %d" NL; + strings_en[S_ConfigWErr]="Error writing config area: written %03X, read %03X" NL; + strings_en[S_ConfigWErr2]="Error writing CONFIG"; + strings_en[S_ConfigWErr3]="Error writing config area: written %04X, read %04X" NL; + strings_en[S_WErr1]="Error writing %s: written %02X, read %02X" NL; + strings_en[S_WErr2]="Error writing %s: written %04X, read %04X" NL; + strings_en[S_IDErr]="Error writing ID%d: written %04X, read %04X" NL; + strings_en[S_ICDErr]="Error writing ICD (0x%X): written %04X, read %04X" NL; + strings_en[S_Calib1Err]="Error writing Calib1: written %04X, read %04X" NL; + strings_en[S_Calib2Err]="Error writing Calib2: written %04X, read %04X" NL; + strings_en[S_CodeVError]="Error verifying address %04X (%d), written %02X, read %02X" NL; + strings_en[S_CodeVError2]="Error verifying code area, requested %d bytes, read %d" NL; + strings_en[S_CodeVError3]="Error verifying code area, requested %d words, read %d" NL; + strings_en[S_ErrSing]="error"; + strings_en[S_ErrPlur]="errors"; + strings_en[S_MaxErr]="Exceeded maximum number of errors (%d), write interrupted" NL; + strings_en[S_I2CInitErr]="Error initializing I2C bus" NL; + strings_en[S_I2CAckErr]="I2C acknowledge error" NL; + strings_en[S_ComErr]="Communication error" NL; + strings_en[S_InsErr]="Unknown instruction" NL; + strings_en[S_SyncErr]="Synchronization error" NL; + strings_en[S_HVregErr]="HV regulator error" NL; + // + strings_en[S_Log1]="i=%d(0x%X), k=%d(0x%X) NumberOfBytesRead=%d" NL; + strings_en[S_Log2]="i=%d, k=%d, errors=%d, NumberOfBytesRead=%d" NL NL; + strings_en[S_Log3]="i=%d, k2=%d NumberOfBytesRead=%d" NL; + strings_en[S_Log4]="Config area. errors=%d NumberOfBytesRead=%d" NL; + strings_en[S_Log5]="dim=%d(0x%X), dimx=%d(0x%X), dimx/wbuf=%d " NL NL; + strings_en[S_Log6]="i=%d(0x%X), NumberOfBytesRead=%d" NL NL; + strings_en[S_Log7]="i=%d(0x%X), k=%d(0x%X)" NL; + strings_en[S_Log8]="i=%d(0x%X), k=%d(0x%X), errors=%d" NL; + strings_en[S_Log9]="Config area. errors=%d" NL; + // + strings_en[S_comTimeout]="Communication timeout" NL; + strings_en[S_EraseTimeout]="Timeout during erase" NL; + strings_en[S_ConfigTimeout]="Timeout reading CONFIG" NL; + strings_en[S_ConfigTimeout2]="Timeout reading config area" NL; + strings_en[S_CodeTimeout]="Timeout reading address %02X (%d)" NL; + strings_en[S_CodeTimeout2]="Timeout reading address %04X (%d)" NL; + strings_en[S_OsccalTimeout]="Timeout reading osccal" NL; + strings_en[S_EETimeout]="Timeout reading EEPROM, address %02X (%d)" NL; + strings_en[S_ConfigWTimeout]="Timeout verifying config" NL; + strings_en[S_CodeWTimeout]="Timeout writing address %02X (%d)" NL; + strings_en[S_ConfigWTimeout2]="Timeout writing config area" NL; + strings_en[S_EEWTimeout]="Timeout writing EEPROM, address %03X (%d)" NL; + strings_en[S_IDWTimeout]="Timeout writing ID" NL; + strings_en[S_ConfigNWTimeout]="Timeout writing CONFIG%d" NL; + strings_en[S_CodeVTimeout]="Timeout verifying address %04X (%d)" NL; + strings_en[S_ConfigVTimeout]="Timeout verifying config area" NL; + strings_en[S_ProgModeTimeout]="Timeout entering program mode" NL; + strings_en[S_ProgModeXTimeout]="Timeout exiting program mode" NL; + strings_en[S_LogTimeout]="Timeout" NL; + // + strings_en[S_CodeMem]= NL "Code memory:" NL; + strings_en[S_EEMem]= NL "EEPROM memory:" NL; + strings_en[S_IDMem]= NL "ID:" NL; + strings_en[S_ConfigMem]= NL "CONFIG:" NL; + strings_en[S_ConfigResMem]= NL "Configuration and reserved memory:" NL; + strings_en[S_CodeMem2]= NL "Code memory:" NL; + strings_en[S_ExeMem]= NL "Executive memory:" NL; + // + strings_en[S_LPOsc]="LP oscillator" NL; + strings_en[S_XTOsc]="XT oscillator" NL; + strings_en[S_IntOsc]="Internal osc." NL; + strings_en[S_RCOsc]="RC oscillator" NL; + strings_en[S_WDTON]="WDT ON" NL; + strings_en[S_WDTOFF]="WDT OFF" NL; + strings_en[S_CPOFF]="Code protection OFF" NL; + strings_en[S_CPON]="Code protection ON" NL; + strings_en[S_MCLRON]="Master clear ON" NL; + strings_en[S_MCLROFF]="Master clear OFF" NL; + strings_en[S_ChipID]="ID%d: 0x%03X ID%d: 0x%03X" NL; + strings_en[S_ChipID2]="ID%d: 0x%02X ID%d: 0x%02X" NL; + strings_en[S_BKOsccal]="Backup OSCCAL: 0x%03X" NL; + strings_en[S_Osccal]="OSCCAL: 0x%03X" NL; + strings_en[S_DevID]="DevID: 0x%04X" NL; + strings_en[S_DevID2]="DevID: 0x%02X%02X" NL; + strings_en[S_DevREV]="DevREV: 0x%04X" NL; + strings_en[S_ConfigWord]="Configuration word: 0x%03X" NL; + strings_en[S_Config2Cal1]="Configuration word2 or calibration word 1: 0x%03X" NL; + strings_en[S_ConfigWord2]="Configuration word2: 0x%04X" NL; + strings_en[S_ConfigWordX]="Configuration word %d: 0x%04X" NL; + strings_en[S_ConfigWordH]="CONFIG%dH: 0x%02X\t"; + strings_en[S_ConfigWordL]="CONFIG%dL: 0x%02X" NL; + strings_en[S_CalibWord1]="Calibration word1: 0x%04X" NL; + strings_en[S_Calib1_2]="Calibration word 1 or 2: 0x%04X" NL; + strings_en[S_CalibWord2]="Calibration word2: 0x%04X" NL; + strings_en[S_CalibWordX]="Calibration word %d: 0x%04X" NL; + strings_en[S_Protected]="protected device"; + // + strings_en[S_CodeLim]="Code size exceeds limits" NL; + strings_en[S_EELim]="Eeprom size exceeds limits" NL; + strings_en[S_ConfigLim]="Config area size exceeds limits" NL; + strings_en[S_WbufLim]="Write buffer size exceeds limits" NL; + strings_en[S_MaxRetry]="Max retries in writing: %d" NL; + // + strings_en[S_NoCode]="Data area is empty" NL; + strings_en[S_NoCode2]="Nothing to write" NL; + strings_en[S_NoCalibW]="Can't find calibration data" NL; + strings_en[S_NoEEMem]="Can't find EEPROM data" NL; + strings_en[S_NoConfigW]="Impossibile leggere la config word" NL; + strings_en[S_NoConfigW2]="Can't find CONFIG location (0xFFF)" NL; + strings_en[S_NoConfigW3]="Can't find CONFIG location (0x2007)" NL "End" NL; + strings_en[S_NoConfigW4]="Can't find CONFIG location (0x2008)" NL "End" NL; + strings_en[S_NoConfigW5]="Can't find CONFIG location (0x8007-0x8008)" NL "End" NL; + strings_en[S_NoConfigW6]="Can't find CONFIG location (0x8007-0x800B)" NL "End" NL; + strings_en[S_Empty]="(empty)" NL; + strings_en[S_NextIns]="Next instruction"; + strings_en[S_ForceConfigW]="Forcing config words" NL; + strings_en[S_ForceConfigWx]="Forcing config word%d [0x%04X]=0x%04X" NL; + strings_en[S_WarnFlashSize]="Warning, flash size is different from the expected value" NL; + // + strings_en[I_CANCEL]="_Cancel"; + strings_en[I_OPEN]="_Open"; + strings_en[I_SAVE]="_Save"; + strings_en[I_Fopen]="Open file"; + strings_en[I_Fsave]="Save file"; + strings_en[I_DevR]="Read device"; + strings_en[I_DevW]="Write device"; + strings_en[I_Info]="Info"; + strings_en[I_Data]="Data"; + strings_en[I_Opt]="Options"; + strings_en[I_Dev]="Device"; + strings_en[I_Type]="Filter by type"; + strings_en[I_Speed]="Speed"; + strings_en[I_ReadRes]="Read reserved area"; + strings_en[I_ID_BKo_W]="Write ID and BKosccal"; + strings_en[I_EE]="Read and write EEPROM"; + strings_en[I_CalW]="Write Calib1 e 2"; + strings_en[I_OSCW]="Write OSCCal"; + strings_en[I_OSC]="OSCCal"; + strings_en[I_BKOSC]="Backup OSCCal"; + strings_en[I_OSCF]="From File"; + strings_en[I_CONN]="Reconnect"; + strings_en[I_QUIT]="Quit"; + strings_en[I_LOG]="Log activity"; + strings_en[I_CK_V33]="Skip 3.3V regulator check"; + strings_en[I_LANG]="Language"; + strings_en[I_MAXERR]="Max errors during write"; + strings_en[I_ADDR]="Address"; + strings_en[I_USBD]="Min USB delay (ms)"; + strings_en[I_I2CDATAOUT]="Data to send"; + strings_en[I_I2CDATATR]="Data transferred"; + strings_en[I_I2C_NB]="Bytes to read/write"; + strings_en[I_I2CMode]="Mode"; + strings_en[I_I2CSend]="Send"; + strings_en[I_I2CReceive]="Receive"; + strings_en[I_TestHW]="Hardware test: remove any device from programmer"; + strings_en[I_TestHWB]="Hardware test"; + strings_en[I_TestMSG]="Verify on the programmer the value of the following voltages:"; + strings_en[I_IO_Enable]="Enable IO"; + strings_en[I_IO_Commands]="Manual commands"; + strings_en[I_SPIMEM]="SPI Memory"; + strings_en[I_I2CMEM]="I2C Memory"; + strings_en[I_UWMEM]="Microwire Memory"; + strings_en[I_OWMEM]="OneWire Memory"; + strings_en[I_OWDEV]="OneWire Device"; + strings_en[I_UNIOMEM]="UNI/O Memory"; + strings_en[I_3V3REQUIRED]="3.3V adapter"; + strings_en[I_PIC_FORCECW]="Force config word"; + strings_en[I_AT_FUSE]="Write Fuse Low"; + strings_en[I_AT_FUSEH]="Write Fuse High"; + strings_en[I_AT_FUSEX]="Write Extended Fuse"; + strings_en[I_AT_LOCK]="Write Lock"; + strings_en[I_AT_FUSELF]="Write Fuse Low @3kHz"; + strings_en[I_AT_COMM]="Communicating @ %.0f kbps" NL; + strings_en[I_W_LANGFILE]="Write language file"; + strings_en[I_WAITS1]="Wait for S1 before read/write"; + strings_en[I_PRESSS1]="Press S1 to start" NL; + strings_en[S_WaitS1W]="Press S1 to program, any key to exit"; + strings_en[S_WaitS1R]="Press S1 to read, any key to exit"; + strings_en[I_ICD_ENABLE]="Enable ICD"; + strings_en[I_ICD_ADDRESS]="ICD routine address"; + strings_en[I_LOAD_COFF]="Load COFF file ..."; + strings_en[I_SHOW_PC]="Show Program Counter"; + strings_en[I_SHOW_STATUS]="Show status registers"; + strings_en[I_SHOW_BANK0]="Show memory bank 0"; + strings_en[I_SHOW_BANK1]="Show memory bank 1"; + strings_en[I_SHOW_BANK2]="Show memory bank 2"; + strings_en[I_SHOW_BANK3]="Show memory bank 3"; + strings_en[I_SHOW_EE]="show EEPROM"; + strings_en[I_STOP]="Stopped" NL; + strings_en[I_ICD_RUN]="Run/Continue"; + strings_en[I_ICD_HALT]="Halt"; + strings_en[I_ICD_STEP]="Step"; + strings_en[I_ICD_STEPOVER]="Step over"; + strings_en[I_ICD_STOP]="Stop"; + strings_en[I_ICD_REFRESH]="Refresh"; + strings_en[I_ICD_CMD]="Command line"; + strings_en[I_ICD_HELP]="Help"; + strings_en[I_ICD_SOURCE]="Source"; + strings_en[I_ICD_STATUS]="Status"; + strings_en[I_ICD_HELP_TXT]= + "ICD help" NL NL + "Double click variable name to add to watch list;" NL + "double click again to remove it." NL + "Key shortcuts:" NL + " F1 help" NL + " F5 halt" NL + " F7 step" NL + " F8 step over" NL + " F9 run" NL + "Command-line help:" NL + " variable=x set variable to x" NL + " [var addr]=x set variable at addr to x" NL + " help command help" NL + " break set breakpoint at address " NL + " freeze [on,off] freeze peripherals" NL + " h[alt] halt execution" NL + " list show code starting from " NL + " p[rint] 0x print variable at address " NL + " p[rint] print variable " NL + " p[rint] bank print registers in bank " NL + " p[rint] p print program memory at address " NL + " p[rint] ee print eeprom memory at address " NL + " p[rint] ee print all eeprom memory" NL + " r[un] run" NL + " s[tep] [n] single step [n times]" NL + " step over / ss [n] step over calls [n times]" NL + " version read debugger version" NL + " w[atch] variable add/remove watch for variable" NL + " w[atch] 0x add/remove watch at address " NL; + strings_en[I_GUI_CMD_HELP]= + "Command line options:" NL + " ?,h,help this help" NL + " command send to the programmer and exit." NL + " The message is composed of up to 64 hexadecimal bytes separated by a space;" NL + " those not specified are 0" NL + " lang load strings" NL + " langfile write all strings to file" NL; + strings_en[L_HELP]="op [options]" NL + "-BKosccal load BKosccal from file" NL + "-calib load calibration from file" NL + "-command send to the programmer and exit." NL + " The message is composed of up to 64 hexadecimal bytes separated by a space;" NL + " those not specified are 0" NL + "-cwX force config word X [1-7]" NL + "-d, device device" NL + "-ee use eeprom" NL + "-err max errors during writing" NL + "-fuse write fuse low byte (Atmel only)" NL + "-fuseh write fuse high byte (Atmel only)" NL + "-fusex write extended fuse byte (Atmel only)" NL + "-fuse3k write fuse low byte at 3 kHz (Atmel only)" NL + "-h, help help" NL + "-HWtest hardware test" NL + "-i, info informations about programmer" NL + "-i2c_r read N bytes from I2C bus" NL + "-i2c_r2 read N bytes from I2C bus (16b address)" NL + "-i2c_w write N bytes to I2C bus" NL + "-i2c_w2 write N bytes to I2C bus (16b address)" NL + "-i2cspeed set I2C speed: 0=100k,1=200k,2=500k,3=800k" NL + "-id use ID" NL + "-icd enable ICD (goto address)" NL + "-l, log [=file] save log" NL + "-lang load strings" NL + "-langfile write all strings to file" NL + "-lock write lock byte (Atmel only)" NL + "-mode SPI mode: 00,01,10,11" NL + "-nolvcheck skip 3.3V regulator check" NL + "-osccal loads osccal from file instead of using the value saved before erase" NL + "-p, path programmer path [/dev/usb/hiddev0]" NL + "-pid programmer pid [0x100]" NL + "-r, reserved read reserved area" NL + "-rep report size [64]" NL + "-s1, S1 Multiple programming triggered by S1" NL + "-s, save save Ihex file" NL + "-se, saveEE save EEPROM on Ihex file (ATxxxx only)" NL + "-spi_r read N bytes from SPI bus" NL + "-spi_w write N bytes to SPI bus" NL + "-spispeed set SPI speed: 0=100k,1=200k,2=500k,3=800k" NL + "-support supported devices" NL + "-use_BKosccal copy BKosccal to osccal" NL + "-v, version version" NL + "-vid programmer vid [0x4D8]" NL + "-w, write write Ihex file" NL + "-we, writeEE write EEPROM on Ihex file (ATxxxx only)" NL + "" NL + "ex. op -d 12F683 -s test.hex" NL; + strings_en[L_OPTERR]="Error in command-line options" NL; + strings_en[L_INFO1]="vid 0x%04hx pid 0x%04hx version 0x%04hx "; + strings_en[L_INFO2]= NL "bus: %d devnum: %d ifnum: %d" NL; + strings_en[L_UNKNOWN]="Unknown"; + strings_en[L_NAME]="The device on %s says its name is %s" NL; + strings_en[L_DEV_RO]="Devices supported for reading only:"; + strings_en[L_DEV_RW]="Devices supported for reading and writing:"; +} -- cgit v1.2.3-54-g00ecf