From c863a35662d8ef0322820641efd6e29f49f6bf80 Mon Sep 17 00:00:00 2001 From: Shu Chen Date: Fri, 20 Jul 2018 05:47:50 +0800 Subject: [PATCH] [nrf52840] don't reinitialize cc310 during pseudo reset (#2897) The device hangs when reinitialize cc310. --- examples/platforms/nrf52840/platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/platforms/nrf52840/platform.c b/examples/platforms/nrf52840/platform.c index 6c7296099..ab40ad1bd 100644 --- a/examples/platforms/nrf52840/platform.c +++ b/examples/platforms/nrf52840/platform.c @@ -78,12 +78,12 @@ void PlatformInit(int argc, char *argv[]) if (!gPlatformPseudoResetWasRequested) { nrf5UartInit(); + nrf5CryptoInit(); } #ifndef SPIS_TRANSPORT_DISABLE nrf5SpiSlaveInit(); #endif nrf5MiscInit(); - nrf5CryptoInit(); nrf5RadioInit(); nrf5TempInit(); @@ -94,13 +94,13 @@ void PlatformDeinit(void) { nrf5TempDeinit(); nrf5RadioDeinit(); - nrf5CryptoDeinit(); nrf5MiscDeinit(); #ifndef SPIS_TRANSPORT_DISABLE nrf5SpiSlaveDeinit(); #endif if (!gPlatformPseudoResetWasRequested) { + nrf5CryptoDeinit(); nrf5UartDeinit(); } nrf5RandomDeinit();