mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-27 01:25:41 +08:00
bootrom: remove deprecated CMD_SETUP_WRITE
This commit is contained in:
parent
9370649861
commit
3560cf5466
4 changed files with 2 additions and 12 deletions
|
@ -1895,7 +1895,6 @@ static void PacketReceived(PacketCommandNG *packet) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
case CMD_SETUP_WRITE:
|
|
||||||
case CMD_FINISH_WRITE:
|
case CMD_FINISH_WRITE:
|
||||||
case CMD_HARDWARE_RESET: {
|
case CMD_HARDWARE_RESET: {
|
||||||
usb_disable();
|
usb_disable();
|
||||||
|
|
|
@ -150,15 +150,6 @@ void UsbPacketReceived(uint8_t *packet, int len) {
|
||||||
}
|
}
|
||||||
break;
|
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.
|
|
||||||
*/
|
|
||||||
for (i = 0; i < 12; i++)
|
|
||||||
_flash_start[i + arg0] = c->d.asDwords[i];
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
case CMD_FINISH_WRITE: {
|
case CMD_FINISH_WRITE: {
|
||||||
for (int j = 0; j < 2; j++) {
|
for (int j = 0; j < 2; j++) {
|
||||||
uint32_t flash_address = arg0 + (0x100 * j);
|
uint32_t flash_address = arg0 + (0x100 * j);
|
||||||
|
|
|
@ -200,7 +200,7 @@ Bootrom code will still use the old frame format to remain compatible with other
|
||||||
(`bootrom/bootrom.c`)
|
(`bootrom/bootrom.c`)
|
||||||
|
|
||||||
usb_read (common/usb_cdc.c) ⇒ UsbPacketReceived (bootrom.c)
|
usb_read (common/usb_cdc.c) ⇒ UsbPacketReceived (bootrom.c)
|
||||||
⇒ CMD_DEVICE_INFO / CMD_START_FLASH / CMD_FINISH_WRITE / CMD_HARDWARE_RESET / CMD_SETUP_WRITE
|
⇒ CMD_DEVICE_INFO / CMD_START_FLASH / CMD_FINISH_WRITE / CMD_HARDWARE_RESET
|
||||||
|
|
||||||
also `usb_enable`, `usb_disable` (`common/usb_cdc.c`)
|
also `usb_enable`, `usb_disable` (`common/usb_cdc.c`)
|
||||||
|
|
||||||
|
|
|
@ -253,7 +253,7 @@ typedef struct {
|
||||||
|
|
||||||
// For the bootloader
|
// For the bootloader
|
||||||
#define CMD_DEVICE_INFO 0x0000
|
#define CMD_DEVICE_INFO 0x0000
|
||||||
#define CMD_SETUP_WRITE 0x0001
|
//#define CMD_SETUP_WRITE 0x0001
|
||||||
#define CMD_FINISH_WRITE 0x0003
|
#define CMD_FINISH_WRITE 0x0003
|
||||||
#define CMD_HARDWARE_RESET 0x0004
|
#define CMD_HARDWARE_RESET 0x0004
|
||||||
#define CMD_START_FLASH 0x0005
|
#define CMD_START_FLASH 0x0005
|
||||||
|
|
Loading…
Reference in a new issue