mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-23 09:08:30 -04:00
Tools: added H7 info in uploader
and don't mention 1M flaw unless family is vulnerable to it
This commit is contained in:
parent
7925abe390
commit
36ea023e8d
@ -632,6 +632,9 @@ class uploader(object):
|
|||||||
0x449: "STM32F74x_75x",
|
0x449: "STM32F74x_75x",
|
||||||
0x451: "STM32F76x_77x",
|
0x451: "STM32F76x_77x",
|
||||||
}
|
}
|
||||||
|
H7_IDS = {
|
||||||
|
0x450: "STM32H74x_75x",
|
||||||
|
}
|
||||||
|
|
||||||
family = mcu_id & 0xfff
|
family = mcu_id & 0xfff
|
||||||
chip_s = "%x [unknown family/revision]" % (chip)
|
chip_s = "%x [unknown family/revision]" % (chip)
|
||||||
@ -654,12 +657,16 @@ class uploader(object):
|
|||||||
|
|
||||||
if rev in revs:
|
if rev in revs:
|
||||||
(label, flawed) = revs[rev]
|
(label, flawed) = revs[rev]
|
||||||
if flawed:
|
if flawed and family == 0x419:
|
||||||
print(" %x %s rev%s (flawed; 1M limit)" % (chip, mcu, label,))
|
print(" %x %s rev%s (flawed; 1M limit)" % (chip, mcu, label,))
|
||||||
else:
|
elif family == 0x419:
|
||||||
print(" %x %s rev%s (no 1M flaw)" % (chip, mcu, label,))
|
print(" %x %s rev%s (no 1M flaw)" % (chip, mcu, label,))
|
||||||
|
else:
|
||||||
|
print(" %x %s rev%s" % (chip, mcu, label,))
|
||||||
elif family in F7_IDS:
|
elif family in F7_IDS:
|
||||||
print(" %s %08x" % (F7_IDS[family], chip))
|
print(" %s %08x" % (F7_IDS[family], chip))
|
||||||
|
elif family in H7_IDS:
|
||||||
|
print(" %s %08x" % (H7_IDS[family], chip))
|
||||||
else:
|
else:
|
||||||
print(" [unavailable; bootloader too old]")
|
print(" [unavailable; bootloader too old]")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user