fix(pm5): report PM5 in hw status [Model] firmware line
The [Model] section only distinguished RDV4 firmware from a "PM3 GENERIC" else branch, so PM5 (AT32) fell through and printed "Firmware... PM3 GENERIC" even though the banner/Target/MCU already report PM5/AT32F437. Add an IfPm5() branch that prints "Firmware... PM5" and the external-flash status. Note: the "[ FPGA ] ... 2s30vq100" line in hw version is separate and comes from the firmware-generated version string (fpga_version_info.c). On PM5 the build reuses the Xilinx fpga_pm3_hf.bit only to generate that version info (see Makefile.hal PM5 TODO), while the real Gowin FPGA is loaded via JTAG, so the reported bitstream name is a placeholder. Fixing that is a firmware/build change, not addressed here.
This commit is contained in:
1 parent
72d72ddc9d
commit
36027b48e6
2 files changed
+5
-1
No files matched your search
+4
-1
@@ -2203,7 +2203,10 @@ void pm3_version(bool verbose, bool oneliner) {
|
||||
SendCommandNG(CMD_VERSION, NULL, 0);
|
||||
|
||||
if (WaitForResponseTimeout(CMD_VERSION, &resp, 1000)) {
|
||||
if (IfPm3Rdv4Fw()) {
|
||||
if (IfPm5()) {
|
||||
PrintAndLogEx(NORMAL, " Firmware.................. " _GREEN_("PM5"));
|
||||
PrintAndLogEx(NORMAL, " External flash............ %s", IfPm3Flash() ? _GREEN_("present") : _YELLOW_("absent"));
|
||||
} else if (IfPm3Rdv4Fw()) {
|
||||
|
||||
// validate signature data
|
||||
rdv40_validation_t mem;
|
||||
|
||||
Reference in new issue
Block a user