Complete initial working revision of PDI programming in the AVRISP project (XMEGAs can now be programmed by the firmware).
This commit is contained in:
parent
79efd8c79e
commit
2f6c096050
5 changed files with 59 additions and 81 deletions
|
@ -77,7 +77,7 @@
|
|||
#define NVM_CMD_LOADFLASHPAGEBUFF 0x23
|
||||
#define NVM_CMD_ERASEFLASHPAGEBUFF 0x26
|
||||
#define NVM_CMD_ERASEFLASHPAGE 0x2B
|
||||
#define NVM_CMD_FLASHPAGEWRITE 0x2E
|
||||
#define NVM_CMD_WRITEFLASHPAGE 0x2E
|
||||
#define NVM_CMD_ERASEWRITEFLASH 0x2F
|
||||
#define NVM_CMD_FLASHCRC 0x78
|
||||
#define NVM_CMD_ERASEAPPSEC 0x20
|
||||
|
@ -111,8 +111,7 @@
|
|||
bool NVMTarget_WaitWhileNVMControllerBusy(void);
|
||||
bool NVMTarget_GetMemoryCRC(uint8_t CRCCommand, uint32_t* CRCDest);
|
||||
bool NVMTarget_ReadMemory(uint32_t ReadAddress, uint8_t* ReadBuffer, uint16_t ReadSize);
|
||||
bool NVMTarget_WriteByteMemory(uint8_t WriteCommand, uint32_t WriteAddress, uint8_t* WriteBuffer,
|
||||
uint16_t WriteSize);
|
||||
bool NVMTarget_WriteByteMemory(uint8_t WriteCommand, uint32_t WriteAddress, uint8_t* WriteBuffer);
|
||||
bool NVMTarget_WritePageMemory(uint8_t WriteBuffCommand, uint8_t EraseBuffCommand, uint8_t WritePageCommand,
|
||||
uint8_t PageMode, uint32_t WriteAddress, uint8_t* WriteBuffer, uint16_t WriteSize);
|
||||
bool NVMTarget_EraseMemory(uint8_t EraseCommand, uint32_t Address);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue