From d2dd9441fcc784424a11c1494b05d6fc6b441ceb Mon Sep 17 00:00:00 2001 From: Nav Date: Mon, 21 Mar 2022 13:05:02 +0000 Subject: [PATCH] Included a power-up delay, to fix issue with some debug tools (evaluation boards). See comments in https://github.com/navnavnav/Bloom/issues/17 for more --- src/Targets/Microchip/AVR/AVR8/Avr8.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Targets/Microchip/AVR/AVR8/Avr8.cpp b/src/Targets/Microchip/AVR/AVR8/Avr8.cpp index 10cd8f23..3a57edb7 100644 --- a/src/Targets/Microchip/AVR/AVR8/Avr8.cpp +++ b/src/Targets/Microchip/AVR/AVR8/Avr8.cpp @@ -152,6 +152,12 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit Logger::debug("Enabling target power"); this->targetPowerManagementInterface->enableTargetPower(); + + Logger::debug( + "Waiting ~" + std::to_string(this->targetConfig->targetPowerCycleDelay.count()) + + " ms for target power-up" + ); + std::this_thread::sleep_for(this->targetConfig->targetPowerCycleDelay); } } catch (const Exception& exception) {