Uncompressing the tar archive will yield the following installer program. Just run it and it will guide you through the basic installation.
Installer_LPCXpresso_7.1.1_125_Linux-x86
Note that section 2.2.2 of the user guide at the following URL gives some general Linux installation guidelines. However, they are not entirely accurate for the Debian environment.
* Install a correct udev rules file to the /etc/udev/rules.d directory. (i.e. This must be done as super user.)
Normal user processes, such as LPCXpresso, don't have permission to access USB devices due of a problem with the default udev rules shipped with LPCXpresso. The name of the file is 85-lpcxpresso.rules and it is in the /etc/udev/rules.d directory. (i.e. It is not designed for Debian systems.)
The problem can be corrected by creating or copying a correct rules file to the /etc/udev/rules.d directory. You can fix the default rules file in the following way:
Append the GROUP="plugdev" to each line of the file as shown below.
IMPORTANT: Verify that your login ID is in the plugdev group in the /etc/group file, and execute the following command after the correct rules file has been installed.
# Define some simple rules for LPCXpresso supported USB Devices # Each rules simply makes the device world writable when connected # thus avoiding the need to run the debug drivers as root
# FTDI adapters (i.e. USB serial ports) # Generically set to world read/write. If not, ftdi driver aborts when trying to # scan for debug adapters. SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", MODE="0666", GROUP="plugdev"
**************** End 85-lpcxpresso.rules *********************************
* Get the LPC4088 LPCOPEN project and example code from the following URL.
* Install 64 bit FTDI libraries for the FT232RL chip on the LCP4088 board. (i.e. I used version 1.1.12) They can be downloaded via the following URL: (i.e. A newer version may be available.)
Now build the examples and try the sanity checks per the ReadMe.txt file in the release directory.
Go to the release/build/x86_64 directory and do the following as super user. Also, if you run lsusb you should see something like this.
Bus 005 Device 003: ID 0403:6001 Future Technology Devices International, \ Ltd FT232 USB-Serial (UART) IC
LPCXpresso INSTALLATION -----------------------
IMPORTANT: Make sure your account is in the "sudo" list before beginning the procedure.
* Download Xpresso version 7.1.1 via the following URL. (i.e. The same version works for both 32 bit and 64 bit architecture and a newer version is probably available.)
Uncompressing the tar archive will yield the following installer program. Just run it and it will guide you through the basic installation.
Installer_LPCXpresso_7.1.1_125_Linux-x86
Note that section 2.2.2 of the user guide at the following URL gives some general Linux installation guidelines. However, they are not entirely accurate for the Debian environment.
* Install a correct udev rules file to the /etc/udev/rules.d directory. (i.e. This must be done as super user.)
Normal user processes, such as LPCXpresso, don't have permission to access USB devices due of a problem with the default udev rules shipped with LPCXpresso. The name of the file is 85-lpcxpresso.rules and it is in the /etc/udev/rules.d directory. (i.e. It is not designed for Debian systems.)
The problem can be corrected by creating or copying a correct rules file to the /etc/udev/rules.d directory. You can fix the default rules file in the following way:
Append the GROUP="plugdev" to each line of the file as shown below.
IMPORTANT: Verify that your login ID is in the plugdev group in the /etc/group file, and execute the following command after the correct rules file has been installed.
# Define some simple rules for LPCXpresso supported USB Devices # Each rules simply makes the device world writable when connected # thus avoiding the need to run the debug drivers as root
# FTDI adapters (i.e. USB serial ports) # Generically set to world read/write. If not, ftdi driver aborts when trying to # scan for debug adapters. SUBSYSTEM=="usb", ATTRS{idVendor}=="0403", MODE="0666", GROUP="plugdev"
**************** End 85-lpcxpresso.rules *********************************
* Get the LPC4088 LPCOPEN project and example code from the following URL. (i.e. There may be a newer version.)
* Start LPCXpresso and import the .zip file you just downloaded.
* Build all the project files and note any errors and exit Xpresso.
LPCXpresso Execution --------------------
* Plug in both the LCP4088 dev. board and LPC-Link2 module into USB ports.
* Kill any instances of the Redlink Server.
* Remove conflicting modules as follows: (i.e. This will not harm your system configuration.)
rmmod ftdi_sio rmmod usbserial
* Check the information on your LPC-Link2 module with lsusb. You should see something like this.
Bus 003 Device 003: ID 1fc9:000c NXP Semiconductors
LPCXpresso SANITY CHECK -------------------------
* You should be able to compile and run the "FreeRTOS Blinky" example with Debug now.
Adding BSP and CSP, Board and Chip, Support Packages ----------------------------------------------------- First, I need to clarify what is in the LPCOpen project BSP and CSP. The BSP does not contain a bootloader which in the LPC4088 environment is burned into the chip. It does contain the drivers for the basic peripherals on the board. Similary, the CSP contains the basic drivers for the peripheral devices on the processor. Those drivers are provided in library form.
These are the locations of the downloaded BSP packages on Linux and Windows respectively. (i.e. There may be newer versions.)
LINUX ------ /usr/local/lpcxpresso_7.1.1_125/lpcxpresso/Examples/NXP/LPC4000/LPC407x_8x/LPC407x_8x_Libraries.zip
WINDOWS ------- C:\nxp\LPCXpresso_7.2.0_153\lpcxpresso\Examples\NXP\LPC4000\LPC407x_8x\LPC407x_8x_Libraries.zip
This is the procedure--as far as I know, for installing the BSP packages within LPCXpresso.
* Start LPCXpresso
* Select "Import projects" and navigate to the BSP package. At that point select OK to open the package and just use defaults as the GUI guides you through the import process.
* Rebuild all projects--optimally in debug mode.
At this point point the BSP package in LPCXpresso and configured correctly. It is assumed one more step is needed to download the BSP package to the board. You only need to do this once. Subsequently, if you build any project the correct drivers will be included in the board executable image.
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 == '543736' && "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 + '