This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/utils/regtools/qeditor/backend.cpp b/utils/regtools/qeditor/backend.cpp | |
index 1dcbbd1..e61314f 100644 | |
--- a/utils/regtools/qeditor/backend.cpp | |
+++ b/utils/regtools/qeditor/backend.cpp | |
@@ -617,12 +617,14 @@ bool BackendHelper::DumpAllRegisters(BackendHelper *bh, const soc_desc::node_ins | |
soc_word_t val; | |
if(!ReadRegister(inst, val)) | |
{ | |
+ qDebug() << "cannot read reg " << QString::fromStdString(inst.get()->name); | |
ret = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/utils/regtools/qeditor/backend.cpp b/utils/regtools/qeditor/backend.cpp | |
index 2bc450f..5f006b0 100644 | |
--- a/utils/regtools/qeditor/backend.cpp | |
+++ b/utils/regtools/qeditor/backend.cpp | |
@@ -480,6 +480,8 @@ HWStubIoBackend::HWStubIoBackend(HWStubDevice *dev) | |
else | |
m_soc = QString("pp%1").arg(pp.wChipID, 4, 16, QChar('0')); | |
} | |
+ else if(target.dID == HWSTUB_TARGET_ATJ) | |
+ m_soc = "atj213x"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/utils/regtools/qeditor/backend.cpp b/utils/regtools/qeditor/backend.cpp | |
index 5f006b0..a3def07 100644 | |
--- a/utils/regtools/qeditor/backend.cpp | |
+++ b/utils/regtools/qeditor/backend.cpp | |
@@ -37,6 +37,20 @@ SocFile::SocFile(const QString& filename) | |
{ | |
soc_desc::error_context_t ctx; | |
m_valid = soc_desc::parse_xml(filename.toStdString(), m_soc, ctx); | |
+ for(size_t j = 0; j < ctx.count(); j++) | |
+ { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/utils/regtools/qeditor/backend.cpp b/utils/regtools/qeditor/backend.cpp | |
index 5f006b0..00e16ff 100644 | |
--- a/utils/regtools/qeditor/backend.cpp | |
+++ b/utils/regtools/qeditor/backend.cpp | |
@@ -36,7 +36,22 @@ SocFile::SocFile(const QString& filename) | |
:m_filename(filename) | |
{ | |
soc_desc::error_context_t ctx; | |
+ qDebug() << "try to load" << filename; | |
m_valid = soc_desc::parse_xml(filename.toStdString(), m_soc, ctx); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*************************************************************************** | |
* __________ __ ___. | |
* Open \______ \ ____ ____ | | _\_ |__ _______ ___ | |
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | |
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | |
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | |
* \/ \/ \/ \/ \/ | |
* This file was automatically generated by headergen, DO NOT EDIT it. | |
* headergen version: 3.0.0 | |
* vsoc version: 0.5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define HW_ICOLL_ENABLE_ADDR (0x80000000 + 0x8) | |
#define HW_ICOLL_ENABLE_SET_ADDR (0x80000000 + 0xc) | |
#define HW_ICOLL_ENABLE (*(volatile uint16_t *)(0x80000000 + 0x8)) | |
#define HW_ICOLL_ENABLE_SET (*(volatile uint16_t *)(0x80000000 + 0xc)) | |
#define BP_ICOLL_ENABLE_VDDIO_BO 0 | |
#define BM_ICOLL_ENABLE_VDDIO_BO 0x3 | |
#define BV_ICOLL_ENABLE_VDDIO_BO__DISABLED 0x0 | |
#define BV_ICOLL_ENABLE_VDDIO_BO__ENABLED 0x1 | |
#define BV_ICOLL_ENABLE_VDDIO_BO__NMI 0x2 | |
#define BF_ICOLL_ENABLE_VDDIO_BO(_v) (((_v) << 0) & 0x3) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/dfu/adfu.py b/dfu/adfu.py | |
index 6ea80a0..e454c8b 100644 | |
--- a/dfu/adfu.py | |
+++ b/dfu/adfu.py | |
@@ -181,6 +181,20 @@ def adfu_read_result_block(size): | |
0, # unused | |
0, 0, 0) | |
+def adfu_read_from_memory(length, start_address): | |
+ return struct.pack('<IIIBBBBIIIBBB', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*************************************************************************** | |
* __________ __ ___. | |
* Open \______ \ ____ ____ | | _\_ |__ _______ ___ | |
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | |
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | |
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | |
* \/ \/ \/ \/ \/ | |
* This file was automatically generated by headergen, DO NOT EDIT it. | |
* headergen version: 3.0.0 | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*************************************************************************** | |
* __________ __ ___. | |
* Open \______ \ ____ ____ | | _\_ |__ _______ ___ | |
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | |
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | |
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | |
* \/ \/ \/ \/ \/ | |
* This file was automatically generated by headergen, DO NOT EDIT it. | |
* headergen version: 3.0.0 | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*************************************************************************** | |
* __________ __ ___. | |
* Open \______ \ ____ ____ | | _\_ |__ _______ ___ | |
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | |
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | |
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | |
* \/ \/ \/ \/ \/ | |
* This file was automatically generated by headergen, DO NOT EDIT it. | |
* headergen version: 3.0.0 | |
* vsoc2000 version: 0.5 |