tres: lower SOM reset timeout (#1945)

* tres: lower SOM reset timeout

* update test
This commit is contained in:
Adeeb Shihadeh 2024-05-03 14:03:54 -07:00 committed by GitHub
parent 3c4c1d95dc
commit 2b70e283c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,7 @@ void bootkick_tick(bool ignition, bool recent_heartbeat) {
* once BOOT_RESET is triggered, it stays until countdown is finished
*/
if (!bootkick_reset_triggered && (boot_state == BOOT_BOOTKICK) && (boot_state_prev == BOOT_STANDBY)) {
waiting_to_boot_countdown = 45U;
waiting_to_boot_countdown = 20U;
}
if (waiting_to_boot_countdown > 0U) {
bool serial_activity = uart_ring_som_debug.w_ptr_tx != bootkick_last_serial_ptr;

View File

@ -362,6 +362,7 @@ class Panda:
this_serial = device.getSerialNumber()
except Exception:
logging.exception("failed to get serial number of panda")
continue
if serial is None or this_serial == serial:
logging.debug("opening device %s %s", this_serial, hex(device.getProductID()))

View File

@ -145,7 +145,7 @@ def test_recovery_from_qdl(p, pj):
pj.set_header_pin(i, 0)
# normally, this GPIO is set immediately since it's first enabled in the ABL
for i in range(40):
for i in range(17):
assert not p.read_som_gpio()
time.sleep(1)