Linux ubuntu串口下载stm32(工具爲stm32flash)
2014-03-14 14:28
399 查看
进入root
Linux下用于串口下载stm32固件的程序,
Usage:./stm32flash
[-bvngfhc] [-[rw] filename] /dev/ttyS0
-brate
Baud rate (default 57600)
-rfilename
Read flash to file
-wfilename
Write flash to file
-uDisable
the flash write-protection
-en
Only erase n pages before writing the flash
-vVerify
writes
-ncount
Retry failed writes up to count times (default 10)
-gaddress
Start execution at specified address (0 filename= flashstart)
-sstart_page
Flash at specified page (0 = flash start)
-fForce
binary parser
-hShow
this help
-cResume
the connection (don't send initial INIT)
*Baudrate
must be kept the same as the first init*
Thisis
useful if the reset fails
Examples:
Getdevice
information:
./stm32flash/dev/ttyS0
Writewith
verify and then start execution:
./stm32flash-w
filename -v -g 0x0 /dev/ttyS0
Readflash
to file:
./stm32flash-r
filename /dev/ttyS0
Startexecution:
./stm32flash-g
0x0 /dev/ttyS0
OK 就这么简单
cd /home/heyaowu/桌面/stm32flash
Linux下用于串口下载stm32固件的程序,
Usage:./stm32flash
[-bvngfhc] [-[rw] filename] /dev/ttyS0
-brate
Baud rate (default 57600)
-rfilename
Read flash to file
-wfilename
Write flash to file
-uDisable
the flash write-protection
-en
Only erase n pages before writing the flash
-vVerify
writes
-ncount
Retry failed writes up to count times (default 10)
-gaddress
Start execution at specified address (0 filename= flashstart)
-sstart_page
Flash at specified page (0 = flash start)
-fForce
binary parser
-hShow
this help
-cResume
the connection (don't send initial INIT)
*Baudrate
must be kept the same as the first init*
Thisis
useful if the reset fails
Examples:
Getdevice
information:
./stm32flash/dev/ttyS0
Writewith
verify and then start execution:
./stm32flash-w
filename -v -g 0x0 /dev/ttyS0
Readflash
to file:
./stm32flash-r
filename /dev/ttyS0
Startexecution:
./stm32flash-g
0x0 /dev/ttyS0
OK 就这么简单
相关文章推荐
- Ubuntu不错的下载工具Flashget for Linux 于firefox关联
- Ubuntu/linux下最强大的下载工具-aria2
- Ubuntu linux系统下安装C-kermit串口工具
- Ubuntu/linux下最强大的下载工具-aria2
- [Linux] Ubuntu下非常给力的下载工具
- Ubuntu/linux下最强大的下载工具-aria2
- linux下串口下载工具
- Ubuntu Linux操作系统下好用的下载工具
- Linux开发环境搭建 二 (Ubuntu串口工具minicom的安装及使用)
- 【BT下载】ubuntu10.10 下bit下载工具 Transmission 或者 wine+uTorrent 【PlayOnLinux:Wine 辅助程序】
- Linux_Hi3518E开发_SPI Flash程序下载成功后串口打印信息
- Ubuntu/linux下最强大的下载工具-aria2
- Ubuntu/linux下最强大的下载工具-aria2
- Linux下的下载工具
- Linux系统(ubuntu14.04) 下安装glib-2.44.1调试工具的过程研究
- 在Windows下删除Linux系统的方法(附修复MBR的工具下载)
- Ubuntu 12.04系统天嵌Linux交叉编译开发工具的安装
- Ubuntu 下安装LXR(linux源代码阅读工具)
- mac os 中类似于Linux的yum工具,或ubuntu的apt-get工具Homebrew
- ubuntu下载工具aria2 & uGet