14 #ifndef RTLFLASHHANDLER_H 15 #define RTLFLASHHANDLER_H 19 #include "fpl_common.h" 21 #define DONT_CHANGE_TEST_STATE false 25 class FPLTargetDevice;
118 virtual int eraseFlash(
EraseInfo_t *pEraseInfo = NULL, FPLFile *pFile = NULL);
120 virtual int programFlash(
const quint32 &address,
const quint32 &length, quint8 *pBuffer);
121 virtual FPLFile *readFile(
const QString &fileName,
const quint32 &startAddress = 0);
122 virtual int readMemory(
const quint32 &address, quint32 *pLength, quint8 *pBuffer);
123 virtual int resetTarget(RESET_MODE mode);
124 virtual int verifyFlash(FPLFile *pFplFile,
ProgramInfo_t *pProgInfo = NULL);
125 virtual int writeMemory(
const quint32 &address,
const quint32 &length, quint8 *pBuffer);
126 virtual int runCpu(
bool debugMode);
127 virtual int haltCpu(
void);
128 virtual int writeCpuReg(
const CM3_CPU_REGISTERS ®Number,
const uint32_t &value);
131 static int deleteFileObject(FPLFile *pFplFile);
132 static void initEraseInfo(
EraseInfo_t *pEraseInfo);
137 QString normDeviceNameForFpl(
const QString rfDevName);
141 QString m_deviceName;
143 FPLEbDevice *m_pFplEbDevice;
145 FPLTargetDevice *m_pFplTargetDevice;
149 int createFplTargetDevice(XbalEb *pXbalEb);
150 int setTargetInfo(TargetInfo_t *pTargetInfo);
151 int setError(
const QString &text);
This structure is used as input to RTLDevice::programFlash() and RTLDevice::verifyFlash().
Definition: rtl_flash_handler.h:84
CPU Register 15.
Definition: rtl_flash_handler.h:107
Definition: rtl_device.h:29
CPU Register 10.
Definition: rtl_flash_handler.h:102
CPU Register 5.
Definition: rtl_flash_handler.h:97
QString parameters
Definition: rtl_flash_handler.h:86
This structure is used as input to RTLDevice::eraseFlash().
Definition: rtl_flash_handler.h:58
CPU Register 9.
Definition: rtl_flash_handler.h:101
CPU Register 3.
Definition: rtl_flash_handler.h:95
RTL_PROGRAM_TYPE type
Definition: rtl_flash_handler.h:85
Erase all pages used in source file.
Definition: rtl_flash_handler.h:33
CPU Register 13.
Definition: rtl_flash_handler.h:105
CPU Register 12.
Definition: rtl_flash_handler.h:104
Forced mass erase. Must be followed by a device re-connect.
Definition: rtl_flash_handler.h:31
CM3_CPU_REGISTERS
The XDS debug interface uses an offset of 512 to address the CPU registers.
Definition: rtl_flash_handler.h:90
CPU Register 4.
Definition: rtl_flash_handler.h:96
Definition: rtl_flash_handler.h:111
Exclude pages from source file filled with given value.
Definition: rtl_flash_handler.h:40
CPU Register 1.
Definition: rtl_flash_handler.h:93
Erase all unprotected pages.
Definition: rtl_flash_handler.h:30
RTL_ERASE_TYPE
Definition: rtl_flash_handler.h:28
Program all pages used in source file.
Definition: rtl_flash_handler.h:38
void writeMemory(void)
Write memory.
Definition: main.cpp:1905
void programFlash(void)
Program flash.
Definition: main.cpp:1798
QString parameters
Definition: rtl_flash_handler.h:61
CPU Register 14.
Definition: rtl_flash_handler.h:106
CPU Register 15.
Definition: rtl_flash_handler.h:108
RTL_PROGRAM_TYPE
Definition: rtl_flash_handler.h:36
RTL_ERASE_TYPE type
Definition: rtl_flash_handler.h:60
CPU Register 8.
Definition: rtl_flash_handler.h:100
CPU Register 0.
Definition: rtl_flash_handler.h:92
CPU Register 6.
Definition: rtl_flash_handler.h:98
Erase a range of pages.
Definition: rtl_flash_handler.h:32
void readMemory(void)
Read memory.
Definition: main.cpp:1850
Exclude given pages from source file.
Definition: rtl_flash_handler.h:39
CPU Register 11.
Definition: rtl_flash_handler.h:103
CPU Register 7.
Definition: rtl_flash_handler.h:99
CPU Register 2.
Definition: rtl_flash_handler.h:94