From 8519f2c267ea2fbe020f5757e001436f22b6ad53 Mon Sep 17 00:00:00 2001 From: Pascal Nasahl Date: Wed, 11 Dec 2024 07:56:08 +0100 Subject: [PATCH] [pentest] Add otbn_busy_wait For english breakfast targets, we are not waiting for the otbn to be finished. However, for the other targets, we should do this. Signed-off-by: Pascal Nasahl (cherry picked from commit 0b13417925764d662582c4cfd00366221c9d1437) --- .../tests/penetrationtests/firmware/lib/pentest_lib.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sw/device/tests/penetrationtests/firmware/lib/pentest_lib.c b/sw/device/tests/penetrationtests/firmware/lib/pentest_lib.c index bbed0866ebe29..ea46d1d0f2ae6 100644 --- a/sw/device/tests/penetrationtests/firmware/lib/pentest_lib.c +++ b/sw/device/tests/penetrationtests/firmware/lib/pentest_lib.c @@ -576,11 +576,11 @@ void pentest_call_and_sleep(sca_callee callee, uint32_t sleep_cycles, wait_for_interrupt(); - // #if !OT_IS_ENGLISH_BREAKFAST - // if (otbn) { - // otbn_busy_wait_for_done(); - // } - // #endif +#if !OT_IS_ENGLISH_BREAKFAST + if (otbn) { + otbn_busy_wait_for_done(); + } +#endif if (sw_trigger) { pentest_set_trigger_low();