Tidying
This commit is contained in:
@@ -96,7 +96,7 @@ namespace DebugToolDrivers::Microchip::Protocols::Edbg::Avr
|
|||||||
const Targets::Microchip::Avr8::Avr8TargetConfig& targetConfig
|
const Targets::Microchip::Avr8::Avr8TargetConfig& targetConfig
|
||||||
)
|
)
|
||||||
: edbgInterface(edbgInterface)
|
: edbgInterface(edbgInterface)
|
||||||
, session(EdbgAvr8Session(targetDescriptionFile, targetConfig))
|
, session(EdbgAvr8Session{targetDescriptionFile, targetConfig})
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void EdbgAvr8Interface::init() {
|
void EdbgAvr8Interface::init() {
|
||||||
|
|||||||
@@ -52,6 +52,12 @@ namespace Targets::RiscV::Wch
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
if (this->targetConfig.physicalInterface != TargetPhysicalInterface::SDI) {
|
||||||
|
throw Exceptions::InvalidConfig{
|
||||||
|
"Invalid physical interface selection - WCH RISC-V targets only support the SDI interface"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
this->targetConfig.programSegmentKey.has_value()
|
this->targetConfig.programSegmentKey.has_value()
|
||||||
&& *(this->targetConfig.programSegmentKey) != this->bootProgramSegmentDescriptor.key
|
&& *(this->targetConfig.programSegmentKey) != this->bootProgramSegmentDescriptor.key
|
||||||
|
|||||||
@@ -264,6 +264,8 @@ list(
|
|||||||
${CMAKE_CURRENT_SOURCE_DIR}/src/Targets/TargetDescriptionFiles/AVR8/MEGA/ATMEGA3290PA.xml
|
${CMAKE_CURRENT_SOURCE_DIR}/src/Targets/TargetDescriptionFiles/AVR8/MEGA/ATMEGA3290PA.xml
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/src/Targets/TargetDescriptionFiles/AVR8/MEGA/ATMEGA328PB.xml
|
${CMAKE_CURRENT_SOURCE_DIR}/src/Targets/TargetDescriptionFiles/AVR8/MEGA/ATMEGA328PB.xml
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/src/Targets/TargetDescriptionFiles/AVR8/MEGA/ATMEGA809.xml
|
${CMAKE_CURRENT_SOURCE_DIR}/src/Targets/TargetDescriptionFiles/AVR8/MEGA/ATMEGA809.xml
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/src/Targets/TargetDescriptionFiles/RISC-V/WCH/CH32X035.xml
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/src/Targets/TargetDescriptionFiles/RISC-V/WCH/CH32V003.xml
|
||||||
)
|
)
|
||||||
|
|
||||||
# Because the TDF_FILES_LIST is only used to specify dependencies for some custom commands, there is nothing enforcing
|
# Because the TDF_FILES_LIST is only used to specify dependencies for some custom commands, there is nothing enforcing
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ namespace Targets
|
|||||||
/**
|
/**
|
||||||
* Fetches data from the cache.
|
* Fetches data from the cache.
|
||||||
*
|
*
|
||||||
|
* TODO: Change return type to TargetMemoryBufferSpan
|
||||||
|
*
|
||||||
* @param startAddress
|
* @param startAddress
|
||||||
* @param bytes
|
* @param bytes
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user