First, preface
Recently formatted the entire computer and changed it to a Linux operating system
Hope this will let oneself in a new world to explore the technology, improve their own bar ~
Win on the tools used more, do not want to change ~
Following the previous article onUbuntu install virtual machine problems (VMware Pit, Virtual-box simple installation, install Lite version in Virtual-box win7)
Link:http://www.cnblogs.com/zjutlitao/p/5061917.html
After the virtual machine pits were installed on Ubuntu, a new problem was encountered--
How do I install the Jlink driver on Ubuntu and try to write a program to Stm32 or nrf51822?
As a result, countless explanations on the internet, because a lot of explanations are outdated, so there is no corresponding version of the software, according to do when the donkey head not the horse mouth ~
In view of this I will be from the following two aspects of the text, convenient for everyone to quickly error ~
1, first in a simple and clear language to tell the correct installation method
2, again with wordy language vernacular I tread various pits
Second, the installation method of Jlink drive on Linux
2.1 . First, look at the version of Jlink you used in Keil on Windows (I assume you are turning from win!). )
As follows:
Found my keil5 in the Jlink version: 4.80g, the KEIL4 comes with the version is 4.60a
2.2, then, from the Segger website to download the same version (near) version of the Jlink for Linux driver
At the bottom of the https://www.segger.com/jlink-software.html page are:
Click Previous to enter the old version page:
Jlink for Linux is available in various versions from 4.78a to 5.10c with no 4.80g version
If the version of Jlink on your windows can find a corresponding version of for Linux in it is the best
If you can't do it like me, try to find a slightly lower version and close to the target version of the download installation
My choice was: hold the idea of trying, download 4.80e first try ~
2.3 . Finally, install the Deb file and test the line.
Before the installation you have to ensure that the update of the Usblib, and so on, this in other people's introduction of the article is always the first mention, do not know how to search someone else's look at a glance will know
Deb better install, double-click!
After the installation is successful--
will have a xxjlink.rules file in the/ETC/UDEV/RULES.D.
The Segger/jlink will be installed in the/opt.
The shell then relays to that directory and runs the./jlinkexe program
If the following behavior is successful (I was using Jlink link is a contex-m0 core nrf51822 chip, using the SW mode, if you connect stm32 may be slightly different)
Third, the hole encountered, you can learn from
3.1, let you download the things under, and finally put you dizzy
This is not the name of the WHO, this kind of main strategy is this
1, first update USB or something, 2, then download a 4.22 version, extract, delete something, and then start;3, finally run./jlinkexe then the device information appears
3.2, the wrong method and the correct mixed together, then do the equivalent of ice fire double days
The main steps are similar to the above, but more than the interpretation of their own pits
As the explanation of the pit did not give the reader a greeting in advance, the reader also followed into the pit!
The main steps in this category are-
1, first update;2, and then download a seemingly the latest version of the Linux driver, decompression, deletion, configuration, installation (said a lot), 3, and then suddenly said with this high version will be their own cottage version of the Jlink firmware broken; 4, and how to upgrade the firmware Jlink; 5. Finally, the simplest answer to others-download and win on the same version will not appear above the problem ...
Note: My anomaly class essay is a summary of the slightly trickier issues encountered during the installation of software and debugging
@beautifulzzzz 2015-12-21 continue~
[Exception resolution] installation of Jlink on Ubuntu the pits and suggestions to the later people