From 024ea604caa98713dea00cf2e84a8ad311e8f3d1 Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Thu, 24 Aug 2023 23:17:31 +0200 Subject: [PATCH] fix(core): fix optiga warm reset start-up time [no changelog] --- core/embed/trezorhal/stm32f4/optiga_hal.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/embed/trezorhal/stm32f4/optiga_hal.c b/core/embed/trezorhal/stm32f4/optiga_hal.c index 4cf15524a..2f3164402 100644 --- a/core/embed/trezorhal/stm32f4/optiga_hal.c +++ b/core/embed/trezorhal/stm32f4/optiga_hal.c @@ -12,11 +12,14 @@ void optiga_hal_init(void) { GPIO_InitStructure.Pin = GPIO_PIN_9; HAL_GPIO_Init(GPIOD, &GPIO_InitStructure); HAL_GPIO_WritePin(GPIOD, GPIO_PIN_9, GPIO_PIN_SET); - hal_delay(1); + // warm reset startup time min 15ms + hal_delay(20); } void optiga_reset(void) { HAL_GPIO_WritePin(GPIOD, GPIO_PIN_9, GPIO_PIN_RESET); hal_delay(10); HAL_GPIO_WritePin(GPIOD, GPIO_PIN_9, GPIO_PIN_SET); + // warm reset startup time min 15ms + hal_delay(20); }