codes
All checks were successful
ci/woodpecker/push/msm6050 Pipeline was successful

This commit is contained in:
wrapper 2026-03-24 14:52:26 +07:00
parent 2bf61d240c
commit a06a4269bc
2 changed files with 6 additions and 6 deletions

View file

@ -114,16 +114,16 @@ typedef struct {
#define DCC_READ_ERROR 0x28 // Read error
#define DCC_W_ASSERT_ERROR 0x2A // Ready flag timeout during write
#define DCC_E_ASSERT_ERROR 0x2B // Ready flag timeout during erase
#define DCC_ROFS_ERROR 0x2D // Cannot write to read-only memory
#define DCC_WPROT_ERROR 0x2D // Cannot write to read only memory
#define DCC_E_UNK_ERROR 0x2E // Unknown erase error, Please file a bug report
#define DCC_WUPROT_TIMEOUT 0x2F // Write unprotect timeout
#define DCC_WUPROT_ERROR 0x30 // Write unprotect failed, Attempted to write unprotect the block but still write protected afterwards.
#define DCC_WUPROT_ERROR 0x30 // Write unprotect error
#define DCC_W_UNK_ERROR 0x31 // Unknown write error, Please file a bug report
#define DCC_UNK_ERROR 0x32 // Unknown error, may happen if the flash is not completely initialized.
#define DCC_FLASH_NOENT 0x37 // Flash with this ID is not probed/not found
#define DCC_WPROT_ERROR 0x3C // Read-only memory or Write/Erase routines not implemented
#define DCC_ROFS_ERROR 0x3C // Read-only memory or Write/Erase routines not implemented
#define DCC_NOMEM_ERROR 0x3D // Not enough memory
#define DCC_E_INSUFF_DATA 0x3E // Insufficient data
#define DCC_E_INSUFF_DATA 0x3E // Insufficient data is received
// Functions
// 01 - Compress

4
main.c
View file

@ -241,7 +241,7 @@ void dcc_main(uint32_t StartAddress, uint32_t PageSize) {
if (fbFlashIndex < 0x11 && dev_mem[fbFlashIndex - 1].type != MEMTYPE_NONE) {
// TODO: Erasing
DN_Packet_Send_One(CMD_WRITE_ERASE_STATUS(DCC_WPROT_ERROR, fbFlashIndex));
DN_Packet_Send_One(CMD_WRITE_ERASE_STATUS(DCC_ROFS_ERROR, fbFlashIndex));
} else {
DN_Packet_Send_One(CMD_WRITE_ERASE_STATUS(DCC_FLASH_NOENT, fbFlashIndex));
}
@ -281,7 +281,7 @@ void dcc_main(uint32_t StartAddress, uint32_t PageSize) {
continue;
}
// TODO: Writing
DN_Packet_Send_One(CMD_WRITE_ERASE_STATUS(DCC_WPROT_ERROR, fbFlashIndex));
DN_Packet_Send_One(CMD_WRITE_ERASE_STATUS(DCC_ROFS_ERROR, fbFlashIndex));
} else {
DN_Packet_Send_One(CMD_WRITE_ERASE_STATUS(DCC_FLASH_NOENT, fbFlashIndex));
}