Compare commits

...

5 Commits

Author SHA1 Message Date
Chad Attermann
1ec04e346b
Merge 1cee0a2619 into 4fdb9dda40 2024-05-31 15:48:36 +01:00
markqvist
4fdb9dda40
Merge pull request #509 from liamcottle/master
Fix for macos failing to set firmware hash on NRF52
2024-05-31 13:47:01 +02:00
liamcottle
c4705fd594 check platform is macos before delaying nrf52 reset 2024-05-31 13:12:39 +12:00
Chad Attermann
1cee0a2619 Fix for broken --rom manual device provisioning
Initializes `selected_model` with the value of model specified on the
command line.
2024-05-29 09:04:14 -06:00
liamcottle
df92fb1bcf fix for macOS failing to set firmware hash on NRF52 when resetting too quickly 2024-05-29 11:39:13 +12:00

View File

@ -3310,6 +3310,8 @@ def main():
if len(args.model) == 2:
model = ord(bytes.fromhex(args.model))
# Initialize selected_model from specified model
selected_model = model
if args.hwrev != None and (args.hwrev > 0 and args.hwrev < 256):
hwrev = chr(args.hwrev)
@ -3440,6 +3442,11 @@ def main():
time.sleep(6.5)
elif rnode.platform == ROM.PLATFORM_NRF52:
# Wait a few seconds before hard resetting.
# Otherwise, macOS fails to set firmware hash on NRF52
if RNS.vendor.platformutils.is_darwin():
time.sleep(5)
rnode.hard_reset()
# The hard reset on this platform is different
# to that of the ESP32 platform, it causes