mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
Dynamic report of the chipID for flashing purposes
This commit is contained in:
parent
fce082db56
commit
4727ab96d7
5 changed files with 64 additions and 5 deletions
|
@ -122,8 +122,10 @@ void UsbPacketReceived(uint8_t *packet, int len) {
|
|||
switch (c->cmd) {
|
||||
case CMD_DEVICE_INFO: {
|
||||
dont_ack = 1;
|
||||
arg0 = DEVICE_INFO_FLAG_BOOTROM_PRESENT | DEVICE_INFO_FLAG_CURRENT_MODE_BOOTROM |
|
||||
DEVICE_INFO_FLAG_UNDERSTANDS_START_FLASH;
|
||||
arg0 = DEVICE_INFO_FLAG_BOOTROM_PRESENT |
|
||||
DEVICE_INFO_FLAG_CURRENT_MODE_BOOTROM |
|
||||
DEVICE_INFO_FLAG_UNDERSTANDS_START_FLASH |
|
||||
DEVICE_INFO_FLAG_UNDERSTANDS_CHIP_INFO;
|
||||
if (common_area.flags.osimage_present)
|
||||
arg0 |= DEVICE_INFO_FLAG_OSIMAGE_PRESENT;
|
||||
|
||||
|
@ -131,6 +133,13 @@ void UsbPacketReceived(uint8_t *packet, int len) {
|
|||
}
|
||||
break;
|
||||
|
||||
case CMD_CHIP_INFO: {
|
||||
dont_ack = 1;
|
||||
arg0 = *(AT91C_DBGU_CIDR);
|
||||
reply_old(CMD_CHIP_INFO, arg0, 0, 0, 0, 0);
|
||||
}
|
||||
break;
|
||||
|
||||
case CMD_SETUP_WRITE: {
|
||||
/* The temporary write buffer of the embedded flash controller is mapped to the
|
||||
* whole memory region, only the last 8 bits are decoded.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue