GDBServerFoundation::IFLASHProgrammer Class Referenceabstract
Implements methods required to program the FLASH memory. More...
#include <IGDBTarget.h>
Public Member Functions | |
virtual GDBStatus | GetEmbeddedMemoryRegions (std::vector< EmbeddedMemoryRegion > ®ions)=0 |
Returns a list of all memory regions inside the device. | |
virtual GDBStatus | EraseFLASH (ULONGLONG Address, size_t length)=0 |
Erases a given region of FLASH memory. | |
virtual GDBStatus | WriteFLASH (ULONGLONG Address, const void *pBuffer, size_t length)=0 |
Writes data into the FLASH memory. | |
virtual GDBStatus | CommitFLASHWrite ()=0 |
Called when the FLASH write operations are done. | |
Detailed Description
Implements methods required to program the FLASH memory.
If your GDB target contains FLASH memory that requires special block erase commands, GDB will issue them automatically if you implement this interface and return a pointer to it in IStoppedGDBTarget::GetFLASHProgrammer().
- Remarks
- If you do not implement this interface, GDB will try to write to the memory using the IStoppedGDBTarget::WriteTargetMemory() method.
Member Function Documentation
|
pure virtual |
Called when the FLASH write operations are done.
|
pure virtual |
Erases a given region of FLASH memory.
- Parameters
-
Address Specifies the starting address of the region to be erased. length Specifies the length in bytes of the region to be erased.
- Remarks
- The erase region size is determined from the data returned by GetEmbeddedMemoryRegions() method.
|
pure virtual |
Returns a list of all memory regions inside the device.
|
pure virtual |
Writes data into the FLASH memory.
- Remarks
- Note that IFlashProgrammer::CommitFLASHWrite() method will be called after all FLASH writing operations are completed. Thus, the actual writing can be delayed until that call if it increases performance.
The documentation for this class was generated from the following file: