I have now single-stepped my code on the LPC11U35 target :) :)
But I have one remaining problem: When I click "Debug" [u]a second time,[/u] after terminating the first Debug session with a click on the red square icon, I get a pop-up saying:
Quote: Error in final launch sequence Error: Error reported by server (redlinkserv): RedlinkAPI: Hardware interface transfer error Redlink Server has been terminated and will be restarted. Please restart your debug session. If the problem recurs, please power cycle your debug probe and restart LPCXpresso.
To work around the problem I have to replug the USB cable after every Debug session :(( . Very annoying..... If anyone has a remedy for this situation, I'm very grateful.
Here are some of the things I've tried to solve the issue: ------------------------------------------------------------------------------------------------------- 1. All USB ports on the laptop and on the docking station give this error. (It's a Dell Laitiude E6410)
2. I connected the LPC-LINK2, using the same USB cable, to a different laptop, which also runs Fedora Workstation 21 and LPCXpresso v7.7.2 [Build 379]. Here the LPC-LINK2 works repeatedly, not just the first time after connecting it. (This Fedora instance is not a virtual machine)
4. If I start LPCXpresso, plug in the USB cable, and click the RedLink Server icon, I get this in the Console window "RedlinkServer": [Started server] [Connected on port 3025]
At this ppoint lsusb says: Bus 001 Device 025: ID 1fc9:000c NXP Semiconductors
5. When I start the first Debug session I get this in the Console window "RedlinkServer":
and the Console window "my_project Debug messages" says:
LPCXpresso RedlinkMulti Driver v7.7 (Mar 31 2015 21:02:36 - crt_emu_cm_redlink build 317) Emu(0): Conn&Reset. DpID: 0BB11477. CpuID: 410CC200. Info: (null) Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled. loaded v.2 On-chip Flash Memory LPC11_12_13_64K_8K.cfx image 'LPC11_12_13 (64K Flash, min 8K RAM) Mar 17 2015 09:28:33' Connected: was_reset=true. was_stopped=false LPCXpresso Free License - Download limit is 256K Writing 30388 bytes to address 0x00000000 in Flash Progress meter completed at over 100% (32768/30388 bytes) Erased/Wrote page 0-7 with 30388 bytes in 1142msec Flash Write Done Flash Program Summary: 30388 bytes in 1.14 seconds (25.99 KB/sec) Stopped (Was Reset) [Reset from Unknown] Stopped: Breakpoint #1
Obviously, everything is working fine the first time debugging.
6. But when I terminate the first Debug session, click Debug again, close the pop-up from this failing Debug session, and click Redlink Server icon, the "Redlinkserver" Console window says:
[Started server] [Connected on port 3025] redlink>ProbeList Index = 1 Manufacturer = NXP Description = LPC-LINK2 REDLINK VID = 21BD, PID=0006 Path = /dev/hidraw0 redlink>ProbeStatus Index = 1 Manufacturer = NXP Description = LPC-LINK2 REDLINK VID = 21BD, PID=0006 Path = /dev/hidraw0 IsOpen = FALSE WireInitialized = FALSE WireProtocol = JTAG CoresConfigured = FALSE PacketSize = 1024 Reference Count = 0 HasSWV = FALSE HasETM = FALSE HasJTAG = TRUE HasSWD = TRUE Probe Type = REDLINK Probe Reference Count = 0 redlink>ProbeIsOpen 1 FALSE redlink>ProbeOpenByIndex 1 Probe Handle 1 Open redlink>WireIsConnected 1 FALSE redlink>WireSwdConnect 1 RedlinkAPI: Hardware interface transfer error [Closed] [Started server] [Connected on port 3025] redlink>ProbeStatus redlink>exit [Closed] [Started server] [Connected on port 3025]
, even though the LPC-LINK is still seen by the (Virtual machine's) Fedora installation:
[vagrant@localhost ~]$ lsusb Bus 001 Device 004: ID 21bd:0006 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub [vagrant@localhost ~]$
I'm very close to having a fully operational LPCXpresso environment on Fedora in Virtualbox, but this final hurdle is nullifying all my prior efforts. After strugling to get this far with my LPCXpresso installation I'm hoping someone has seen this before and can offer some advice on how to solve the issue. Thanks!
Content originally posted in LPCWare by up_in_ARMs on Thu Apr 09 16:46:02 MST 2015 Thanks for the input, FallGuy.
OK, I finally gave up on VirtualBox and installed the free Vmware Player 7.1, and used Player to create a machine identical to my troubled Fedora Workstation 21 instance above. Installed LPCXpresso, activated it, created a project, and started debugging sessions.
What a difference! NO error messages any more :) I can start debugging sessions over and over again, hurray!
My conclusion: [u]VirtualBox 4.3.26 is NOT compatible with LPC-LINK2[/u]. If you want to run LPCXpresso in a virtual machine, don't waste your time on Virtualbox.
Just in case someone may need this in the future; this is the [u]working[/u] configuration I now use : Debian 7.7 as host, (free) VMware Player 7.1 as virtualizer, Fedora Workstation 21 as guest. LPCXpresso 7.7.2 (with LPC-LINK2 debugger probe) Note that this symbolic link described here http://www.lpcware.com/content/faq/lpcxpresso/connection-refused-linux made no difference for my setups/trials of Fedora 21, I run fine without the symbolic link.
Content originally posted in LPCWare by TheFallGuy on Thu Apr 09 00:11:02 MST 2015 I had lots of USB issues when using VirtualBox. When I switched to VMWare, all my USB problems went away...
0
Kudos
Reply
'
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 = "This content was translated from lilicon-trans-text using AI-assisted tools.".replace(/lilicon-trans-text/g, tr_obj[0].title);
tr_text +='View original';
try {
if ($scope.wootMessages[$rootScope.profLang] != undefined) {
tr_text = $scope.wootMessages[$rootScope.profLang].replace(/lilicon-trans-text/g, tr_obj[0].title);
tr_text +='View original';
}
} 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", "Translate icon");
// tr_fTag.setAttribute("title", "Disclaimer for Translate icon");
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 == '585592' && "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 + '