一.配置Jlink
1.jlink for Linux包下载地址
当前最新版本为V5.41,以此为例
2.将其放在用户目录中解压
tar zxvf JLink_Linux_V541e_i386.tgz
3.修改文件夹名
mv
JLink_Linux_V541e_i386 Jlink
4.配置(读README.txt文件)
cd Jlink
cp 99-jlink.rules /etc/udev/rules.d
5.重启系统,然后在虚拟机中,点击连接Jlink
6.启动Jlink for linux
./JLinkExe
-
user@instant-contiki:~/Jlink$ ./JLinkExe
-
SEGGER J-Link Commander V5.41e (Compiled May 30 2016 17:33:48)
-
DLL version V5.41e, compiled May 30 2016 17:33:43
-
-
Connecting to J-Link via USB...O.K.
-
Firmware: J-Link ARM V8 compiled Jan 31 2018 18:34:52
-
Hardware version: V8.00
-
S/N: 20080643
-
License(s): RDI,FlashDL,FlashBP,JFlash,GDBFull
-
VTref = 1.831V
-
-
-
Type "connect" to establish a target connection, '?' for help
-
J-Link>
二.使用Jlink
1.设置目标板
J-Link>exec device=STM32F103VE
2.擦除目标板
J-Link>erase
3.下载bin文件
J-Link>loadbin /home/user/file/led.bin,0x08000000
4.退出
J-Link>q
5.重启开发板
阅读(2599) | 评论(0) | 转发(0) |