Content originally posted in LPCWare by andrenvq on Sun Mar 06 23:50:33 MST 2016 So I tried to flash LPC1768 through ISP starting at FLASH address 0x00. I am flashing 256 bytes at once. The first two runs that flashes at FLASH address 0x00 and 256 fails as can be seen below, then the third run and so on run just fine; however, the code runs fine on LPC1768. I commanded the ISP bootloader to read FLASH and RAM content to check validity.
What I checked: 1. Correct checksum at 0x1C 2. Return code from all commands are 0 3. Contents in RAM are correct, checked with online UU-encoder 4. I did call unlock 231300 5. I did call prepare command for sector 0 as in "P 0 0"
Synchronized
SynchronizedOK
12000OK
U 231300
P 0 290
E 0 290
A 0
0
0
0 <-- "W 268435968 256"
OK <- checksum
0 <- P 0 0
0 <- C 0 268435968 256
0 <- R 268435968 256
M`(``$`T"```5`@``%P(``!D"```;`@``'0(``'9S_^\````````````````?
M`@``(0(````````C`@``)0(``"<"```G`@``)P(``"<"```G`@``)P(``"<"
M```G`@``)P(``"<"```G`@``)P(``"<"```G`@``)P(``"<"```G`@``)P(`
M`"<"```G`@``)P(``"<"```G`@``)P(``"<"```G`@``)P(``"<"```G`@``
M)P(``"<"```G`@``)P(```#P`O@`\);X"J"0Z``,@D2#1*KQ`0?:10'1`/"+
?^*_R"0ZZZ`\`$_`!#QB_^QI#\`$#&$D0P``1$,`````
8428
0 <- R 0 256
M_!\`$($`_Q\`````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M``````````````````````````````````````````````````#?^!A`W_@0
M4"9H!>H&!B9@W_@`\`$"_Q__O___P,,/0```````````````````````````
M````````````````````````````````````````````````````````````
?````````````````````````````````````````````
4789
0
OK
0
0
0
M$#HDOWC(>,'ZV%(')+\PR##!1+\$:`Q@<$<````C`"0`)0`F$#HHOWC!^]A2
M!RB_,,%(OPM@<$=N*0#PD8-P*0#PQX1F*0/P18=E*0/P0H=G*0/P/X=A*0/P
M/H<#:!L**+]!\(`!:2D`\#Z#9"D`\#N#=2D`\#B#;RD`\%6$>"D`\).$Z2D`
M\.^#Y"D`\.R#]2D`\.F#[RD`\%*$^"D`\)*$`VC;"2B_0?"``6,I`?#Q@W,I
M`?#V@^,I`?`!A/,I`?`&A``@<$<?M9WH`P``\%?_`?"S_@0``"``(0/P_/U`
?'&!@`"``(0/PX/W@8`#PD?X`\"_Z'[T"\-C]$4;_]_?W
27771
0
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
?````````````````````````````````````````````
0
0
OK
0
0
0
MX_\"\*3\`O`7_P``!DB`1P9(`$?^Y_[G_N?^Y_[G_N?^Y_[G_N?^YY4K``#%
M````"T8!1AA&`/`GNP``#[0`M8VP$*D)D`"1"Y!/\/\P"I``(`R0!DAX1`:0
M!DAX1&I&!Y`/F0FH`/`)_0VP7?@4^T,*``!;"@``<+4$1L!H@0<3T(`&`=6E
M:@3@H6E@:`A$(6E%&B!&`/#Y_0`B!D8I1B!&`/`?_3!&<+T`('"]<+40L;WH
M<$#?YP`E!TQN'@?@($;_]]G_`+$U1B!M(/`!!``L]=$H1G"]?`(`$#HH`-(P
?."#P(`)!*@'3HO$W`(A"`=-/\/\P<$=P1W!'________
27231
0
MX_\"\*3\`O`7_P``!DB`1P9(`$?^Y_[G_N?^Y_[G_N?^Y_[G_N?^YY4K``#%
M````"T8!1AA&`/`GNP``#[0`M8VP$*D)D`"1"Y!/\/\P"I``(`R0!DAX1`:0
M!DAX1&I&!Y`/F0FH`/`)_0VP7?@4^T,*``!;"@``<+4$1L!H@0<3T(`&`=6E
M:@3@H6E@:`A$(6E%&B!&`/#Y_0`B!D8I1B!&`/`?_3!&<+T`('"]<+40L;WH
M<$#?YP`E!TQN'@?@($;_]]G_`+$U1B!M(/`!!``L]=$H1G"]?`(`$#HH`-(P
?."#P(`)!*@'3HO$W`(A"`=-/\/\P<$=P1W!'________
27231
0
Content originally posted in LPCWare by andrenvq on Sun Mar 13 01:11:20 MST 2016 I tried the method and then reset to let the code runs. It didn't work. I checked if I receive 'OK' and '0', I did, but still cannot write to FLASH.
Content originally posted in LPCWare by DF9DQ on Mon Mar 07 09:32:08 MST 2016 This happens when the boot code is visible at address 0 (see SYSMEMREMAP register). You should change this register to contain 1, so that the user flash becomes mapped to address 0.
It is not possible to write to a register via ISP, so you must download and execute a small piece of code to do it. Download the following 12 bytes to address 0x10000200, and execute them in Thumb mode: 0x01 0x48 0x01 0x21 0x01 0x60 0x70 0x47 0x40 0xC0 0x0F 0x40
Send: W 268435968 12
Receive: 0
Send: ,`4@!(0%@<$=`P`]`
Send: 722<CR>
Receive: OK
Send: G 268435968 T
Receive: 0
After that it should be possible to program/verify the first 512 bytes.
0
项奖励
回复
'
var data = div.getElementsByClassName("video-js");
var script = document.createElement('script');
script.src = "https://players.brightcove.net/" + data_account + "/" + data_palyer + "_default/index.min.js";
for(var i=0;i< data.length;i++){
videodata.push(data[i]);
}
}
}
for(var i=0;i< videodata.length;i++){
document.getElementsByClassName('lia-vid-container')[i].innerHTML = videodata[i].outerHTML;
document.body.appendChild(script);
}
}
catch(e){
}
/* Re compile html */
$compile(rootElement.querySelectorAll('div.lia-message-body-content')[0])($scope);
}
if (code_l.toLowerCase() != newBody.getAttribute("slang").toLowerCase()) {
/* Adding Translation flag */
var tr_obj = $filter('filter')($scope.sourceLangList, function (obj_l) {
return obj_l.code.toLowerCase() === newBody.getAttribute("slang").toLowerCase()
});
if (tr_obj.length > 0) {
tr_text = "内容由 lilicon-trans-text 使用 AI 辅助工具翻译".replace(/lilicon-trans-text/g, tr_obj[0].title);
tr_text +='查看原文';
try {
if ($scope.wootMessages[$rootScope.profLang] != undefined) {
tr_text = $scope.wootMessages[$rootScope.profLang].replace(/lilicon-trans-text/g, tr_obj[0].title);
tr_text +='查看原文';
}
} catch (e) {
}
} else {
//tr_text = "This message was translated for your convenience!";
tr_text = "lilicon-trans.your.convenience";
}
try {
if (!document.getElementById("tr-msz-" + value)) {
var tr_para = document.createElement("P");
tr_para.setAttribute("id", "tr-msz-" + value);
tr_para.setAttribute("class", "tr-msz");
tr_para.style.textAlign = 'justify';
var tr_fTag = document.createElement("IMG");
tr_fTag.setAttribute("class", "tFlag");
tr_fTag.setAttribute("alt", "翻译图标");
// tr_fTag.setAttribute("title", "翻译图标免责声明");
tr_fTag.setAttribute("src", "/html/assets/translate-icon.svg");
tr_para.appendChild(tr_fTag);
var container = document.createElement('span');
container.innerHTML = tr_text;
//var tr_textNode = document.createTextNode(container);
tr_para.appendChild(container);
/* Woot message only for multi source */
if(rootElement.querySelector(".lia-message-body-content").previousElementSibling != null && rootElement.querySelector(".lia-message-body-content").previousElementSibling.getAttributeNames().includes("data-generation-timestamp")){
rootElement.querySelector(".lia-message-body-content").previousElementSibling.remove()
}
if(rootElement.querySelector(".lia-quilt-forum-message")){
rootElement.querySelector(".lia-quilt-forum-message .lia-message-body").insertBefore(tr_para,rootElement.querySelector(".lia-message-body-content"));
} else if(rootElement.querySelector(".lia-message-view-blog-topic-message")) {
rootElement.querySelector(".lia-message-view-blog-topic-message .lia-message-body").insertBefore(tr_para,rootElement.querySelector(".lia-message-body-content"));
} else if(rootElement.querySelector(".lia-quilt-blog-reply-message")){
rootElement.querySelector(".lia-quilt-blog-reply-message .lia-message-body").insertBefore(tr_para,rootElement.querySelector(".lia-message-body-content"));
} else if(rootElement.querySelector(".lia-quilt-tkb-message")){
rootElement.querySelectorAll(".lia-quilt-tkb-message .lia-message-body")[0].insertBefore(tr_para,rootElement.querySelector(".lia-message-body-content"));
} else if(rootElement.querySelector(".lia-quilt-tkb-reply-message")){
rootElement.querySelectorAll(".lia-quilt-tkb-reply-message .lia-message-body")[0].insertBefore(tr_para,rootElement.querySelector(".lia-message-body-content"));
} else if(rootElement.querySelector(".lia-quilt-idea-message")){
rootElement.querySelector(".lia-quilt-idea-message .lia-message-body").insertBefore(tr_para,rootElement.querySelector(".lia-message-body-content"));
} else if(rootElement.querySelector(".lia-quilt-idea-reply-message")){
rootElement.querySelector(".lia-quilt-idea-reply-message .lia-message-body").insertBefore(tr_para,rootElement.querySelector(".lia-message-body-content"));
} else if(rootElement.querySelector('.lia-quilt-occasion-message')){
rootElement.querySelector('.lia-quilt-occasion-message .lia-message-body').insertBefore(tr_para,rootElement.querySelector(".lia-message-body-content"));
}
else {
if (rootElement.querySelectorAll('div.lia-quilt-row-footer').length > 0) {
rootElement.querySelectorAll('div.lia-quilt-row-footer')[0].appendChild(tr_para);
} else {
rootElement.querySelectorAll('div.lia-quilt-column-message-footer')[0].appendChild(tr_para);
}
}
}
} catch (e) {
}
}
} else {
/* Do not display button for same language */
// syncList.remove(value);
var index = $scope.syncList.indexOf(value);
if (index > -1) {
$scope.syncList.splice(index, 1);
}
}
}
}
}
}
/*if(mszList_l.length <= 0){
setTimeout(()=>{
var mszListl = [];
angular.forEach(document.querySelectorAll("[class*='lia-js-data-messageUid']"), function(element) {
var mszId = element.getAttribute("data-lia-message-uid");
if (mszId != null) {
mszListl.push(mszId);
}
});
var mszListid = mszListl;
console.log("mszListl:",mszListl);
},2000)
}else{
var mszListid = mszList_l;
}*/
console.log("mszList_l:",mszList_l.length);
angular.forEach(mszList_l, function (value) {
if (document.querySelectorAll('div.lia-js-data-messageUid-' + value).length > 0) {
var rootElements = document.querySelectorAll('div.lia-js-data-messageUid-' + value);
}else if(document.querySelectorAll('.lia-occasion-message-view .lia-component-occasion-message-view').length >0){
var rootElements = document.querySelectorAll('.lia-occasion-message-view .lia-component-occasion-message-view')[0].querySelectorAll('.lia-occasion-description')[0];
}else {
var rootElements = document.querySelectorAll('div.message-uid-' + value);
}
angular.forEach(rootElements, function (rootElement) {
if (value == '519553' && "ForumTopicPage" == "TkbArticlePage") {
rootElement = document.querySelector('.lia-thread-topic');
}
/* V1.1 Remove from UI */
if (document.getElementById("tr-msz-" + value)) {
document.getElementById("tr-msz-" + value).remove();
}
if (document.getElementById("tr-sync-" + value)) {
document.getElementById("tr-sync-" + value).remove();
}
/* XPath expression for subject and Body */
var lingoRBExp = "//lingo-body[@id = "+"'lingo-body-"+value+"'"+"]";
lingoRSExp = "//lingo-sub[@id = "+"'lingo-sub-"+value+"'"+"]";
/* Get translated subject of the message */
lingoRSXML = doc.evaluate(lingoRSExp, doc, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for(var i=0;i 0){
angular.forEach(document.querySelectorAll(".PageTitle"), function(subEle) {
subEle.textContent = sub_L;
});
}
}
}
// Label translation
try{
var labelEle = document.querySelector("#labelsForMessage");
if(!labelEle){
labelEle = document.querySelector(".LabelsList");
}
if(labelEle) {
var listContains = labelEle.querySelector('.label');
if (listContains) {
/* Commenting this code as bussiness want to point search with source language label */
// var tagHLink = labelEle.querySelectorAll(".label")[0].querySelector(".label-link").href.split("label-name")[0];
var lingoLabelExp = "//lingo-label/text()";
trLabels = [];
trLabelsHtml = "";
/* Get translated labels of the message */
lingoLXML = doc.evaluate(lingoLabelExp, doc, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
var labelsLength = document.querySelector(".LabelsList").querySelectorAll(".label").length;
var labelSnapshotLength = lingoLXML.snapshotLength;
if (labelsLength == labelSnapshotLength){
for (var k = 0; k < lingoLXML.snapshotLength; k++) {
//trLabels.push(lingoLXML.snapshotItem(i).textContent);
if (k != 0) {
//trLabelsHtml = trLabelsHtml + '