feat(pm5): report AT32 MCU, flash size and PM5 target in hw version/status
`hw version` and `hw status` decoded the reported chip id as an Atmel AT91 CIDR. On PM5 (AT32) the id is an ARM DBGMCU IDCODE, so it showed "MCU Unknown", a bogus flash size (32 KB / 973% used) and "PM3 GENERIC". - Client: when IfPm5(), print MCU "AT32F437" and the real flash size, and add a "PM5" target line, instead of running the AT91 decode. - Firmware: the flash size can't be derived from the AT32 IDCODE, so the device now sends GetChipFlashSize(). It is appended AFTER the version string in the CMD_VERSION reply, so the wire layout is unchanged and it stays compatible in both directions (old client ignores the trailing bytes; new client length- guards and treats a missing value as 0). GetChipFlashSize() already exists for both AT91 and AT32.
This commit is contained in:
1 parent
06bc3239ab
commit
6da7c77427
4 files changed
+67
-6
No files matched your search
@@ -18,6 +18,10 @@ PLATFORM=PM3RDV4
|
||||
# uncomment the line below
|
||||
#PLATFORM=PM3ULTIMATE
|
||||
|
||||
# For Proxmark5 (PM5, Artery AT32F435/437):
|
||||
# uncomment the line below
|
||||
#PLATFORM=PM5
|
||||
|
||||
# If you want more than one PLATFORM_EXTRAS option, separate them by spaces:
|
||||
#PLATFORM_EXTRAS=BTADDON
|
||||
#PLATFORM_EXTRAS=FLASH
|
||||
|
||||
Reference in new issue
Block a user