openOCD在ubuntu16 04上的安裝

2021-08-10 19:15:14 字數 3303 閱讀 5951

openocd適用於微處理器的debug和燒寫。

sudo apt-get install build-essential pkg-config autoconf automake libtool libusb-dev libusb-1.0-0-dev libhidapi-dev
sudo apt-get install libtool libsysfs-dev

git clone git: openocd

3.編譯並安裝openocd:

cd openocd
sudo ./bootstrap
sudo ./configure
make
sudo make install

4.測試是否安裝成功:

openocd --version

測試如下:

open on-chip debugger 0.10.0+dev-00207-g4109263 (2017-11-14-20:14)

licensed under gnu gpl v2

for bug reports, read

一些錯誤:

錯誤1:./bootstrap 報錯:

+ automake --gnu --add-missing --copy

src/makefile.am:4: error: bad characters in variable name '%c%_openocd_sources'

makefile.am:143: 'src/makefile.am' included from here

src/makefile.am:7: error: bad characters in variable name '%c%_libopenocd_la_sources'

makefile.am:143: 'src/makefile.am' included from here

src/makefile.am:11: error: bad characters in variable name '%c%_openocd_ldadd'

makefile.am:143: 'src/makefile.am' included from here

src/makefile.am:13: error: bad characters in variable name '%c%_openocd_ldadd'

makefile.am:143: 'src/makefile.am' included from here

src/makefile.am:16: error: bad characters in variable name '%c%_openocd_ldadd'

makefile.am:143: 'src/makefile.am' included from here

src/makefile.am:18: error: bad characters in variable name '%c%_openocd_ldadd'

makefile.am:143: 'src/makefile.am' included from here

src/makefile.am:21: error: bad characters in variable name '%c%_libopenocd_la_cppflags'

makefile.am:143: 'src/makefile.am' included from here

src/makefile.am:26: error: bad characters in variable name '%c%_libopenocd_la_cppflags'

makefile.am:143: 'src/makefile.am' included from here

src/makefile.am:27: error: bad characters in variable name '%c%_libopenocd_la_cppflags'

makefile.am:143: 'src/makefile.am' included from here

src/makefile.am:29: error: bad characters in variable name '%c%_libopenocd_la_cppflags'

makefile.am:143: 'src/makefile.am' included from here

src/makefile.am:30: error: bad characters in variable name '%c%_libopenocd_la_cppflags'

makefile.am:143: 'src/makefile.am' include

缺少超級使用者許可權:

sudo ./bootstrap

錯誤2:

+ aclocal

+ libtoolize --automake --copy

+ autoconf

configure.ac:12: error: possibly undefined macro: ac_msg_warn

if this token and others are legitimate, please use m4_pattern_allow.

see the autoconf documentation.

configure.ac:36: error: possibly undefined macro: ac_disable_shared

configure.ac:37: error: possibly undefined macro: ac_prog_libtool

configure.ac:204: error: possibly undefined macro: ac_define

configure.ac:608: error: possibly undefined macro: ac_msg_notice

缺少libtool和libsysfs-dev

安裝:

sudo apt-get install libtool libsysfs-dev

Windows 遠端桌面連線Ubuntu 14

windows 遠端桌面連線到ubuntu 14.04具體操作步驟如下 步驟一 安裝xrdp 使用快捷鍵 ctrl alt t 開啟乙個終端視窗,輸入 sudo apt get install xrdp 回車 輸入root使用者的密碼 回車 輸入 y 回車,安裝完成。步驟二 安裝vnc4server...

Windows10遠端連線Ubuntu18 04

說明 看了很多部落格,測試了好多方法,也許別人是成功的,但是我這裡就是不行。本來不想寫這個教程,但是網上的教程太不爭氣了,繁瑣還不好使!sudo apt update sudo apt install openssh server 如果安裝了ssh,可以進行遠端執行下面命令 sudo apt get...

Windows遠端桌面連線Ubuntu 14 04

由於xrdp gnome和unity之間的相容性問題,在ubuntu 14.04版本中仍然無法使用xrdp登陸gnome或unity的遠端桌面,現象是登入後只有黑白點為背景,無圖示也無法操作。與13.10中的解決方式相同,使用xrdp只能登入xfce的遠端桌面。windows 7下硬碟安裝ubunt...