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 > &regions)=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

virtual GDBStatus GDBServerFoundation::IFLASHProgrammer::CommitFLASHWrite ( )
pure virtual

Called when the FLASH write operations are done.

virtual GDBStatus GDBServerFoundation::IFLASHProgrammer::EraseFLASH ( ULONGLONG  Address,
size_t  length 
)
pure virtual

Erases a given region of FLASH memory.

Parameters
AddressSpecifies the starting address of the region to be erased.
lengthSpecifies the length in bytes of the region to be erased.
Remarks
The erase region size is determined from the data returned by GetEmbeddedMemoryRegions() method.
virtual GDBStatus GDBServerFoundation::IFLASHProgrammer::GetEmbeddedMemoryRegions ( std::vector< EmbeddedMemoryRegion > &  regions)
pure virtual

Returns a list of all memory regions inside the device.

virtual GDBStatus GDBServerFoundation::IFLASHProgrammer::WriteFLASH ( ULONGLONG  Address,
const void *  pBuffer,
size_t  length 
)
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: