Renamed 'updateDwenFuseBit' AVR8 param to 'manageDwenFuseBit'
This commit is contained in:
@@ -92,7 +92,7 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit
|
||||
}
|
||||
|
||||
if (
|
||||
this->targetConfig->updateDwenFuseBit && this->avrIspInterface == nullptr
|
||||
this->targetConfig->manageDwenFuseBit && this->avrIspInterface == nullptr
|
||||
&& this->targetConfig->physicalInterface == PhysicalInterface::DEBUG_WIRE
|
||||
) {
|
||||
Logger::warning(
|
||||
@@ -157,7 +157,7 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit
|
||||
this->avr8DebugInterface->activate();
|
||||
|
||||
} catch (const Exceptions::DebugWirePhysicalInterfaceError& debugWireException) {
|
||||
if (!this->targetConfig->updateDwenFuseBit) {
|
||||
if (!this->targetConfig->manageDwenFuseBit) {
|
||||
throw TargetOperationFailure(
|
||||
"Failed to activate debugWire physical interface - check target connection and DWEN fuse "
|
||||
"bit. Bloom can manage the DWEN fuse bit automatically. For instructions on enabling this "
|
||||
|
||||
@@ -27,8 +27,13 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit
|
||||
|
||||
this->physicalInterface = Avr8TargetConfig::debugPhysicalInterfacesByConfigName.at(physicalInterfaceName);
|
||||
|
||||
// The 'manageDwenFuseBit' param used to be 'updateDwenFuseBit' - we still support the old, for now.
|
||||
if (targetNode["updateDwenFuseBit"]) {
|
||||
this->updateDwenFuseBit = targetNode["updateDwenFuseBit"].as<bool>();
|
||||
this->manageDwenFuseBit = targetNode["updateDwenFuseBit"].as<bool>();
|
||||
}
|
||||
|
||||
if (targetNode["manageDwenFuseBit"]) {
|
||||
this->manageDwenFuseBit = targetNode["manageDwenFuseBit"].as<bool>();
|
||||
}
|
||||
|
||||
if (targetNode["cycleTargetPowerPostDwenUpdate"]) {
|
||||
|
||||
@@ -43,12 +43,12 @@ namespace Bloom::Targets::Microchip::Avr::Avr8Bit
|
||||
bool disableDebugWireOnDeactivate = false;
|
||||
|
||||
/**
|
||||
* The updateDwenFuseBit flag determines if Bloom should manage the DWEN fuse bit, for debugWire sessions.
|
||||
* The manageDwenFuseBit flag determines if Bloom should manage the DWEN fuse bit, for debugWire sessions.
|
||||
*
|
||||
* This parameter is optional, and the function is disabled by default. Users must explicitly enable it in
|
||||
* their target configuration.
|
||||
*/
|
||||
bool updateDwenFuseBit = false;
|
||||
bool manageDwenFuseBit = false;
|
||||
|
||||
/**
|
||||
* For debug tools that provide target power management functions (such as some evaluation boards), Bloom can
|
||||
|
||||
Reference in New Issue
Block a user