3 个稳定版本
1.0.2 | 2020 年 6 月 26 日 |
---|---|
1.0.1 | 2020 年 6 月 25 日 |
#2677 在 命令行工具
150KB
4K SLoC
rxprog
实现特定 Renesas 微控制器的 Boot Mode 协议和固件图像编程 CLI 的库
rxprog-cli
安装
$ cargo install rxprog --features rxprog-cli
rxprog-cli
二进制文件现在将可用。
用法
有关详细信息,请参阅 rxprog-cli --help
。
连接到 COM3 上的目标以查询可用设备
$ rxprog-cli "p=COM3"
连接到 /dev/ttyS4
并编程图像
$ rxprog-cli "p=/dev/ttyS4;d=7805;cm=0;if=3200;mr=x1,x1;br=115200" image.ihex
示例
查询乘法比和输入频率范围
$ rxprog-cli "p=COM3;d=7805;cm=0"
Connecting to target on COM3
The selected debug adapter does not support automatic reset. Please reset the target into boot mode and press ENTER.
Continuing...
Initial connection succeeded
No input frequency, multiplication ratio and/or bit rate specified in connection string. Querying target for supported multiplication ratios and operating frequency ranges:
Clock Multiplication ratios
==============================
0 x1
1 x1
Clock Minimum frequency Maximum frequency
===============================================
0 3200 3200
1 3200 3200
Hint: select an input frequency, multiplication ratio and bit rate with if=<input frequency>;mr=<ratio 1>,<ratio 2>,...;br=<bit rate>
编程图像
$ rxprog-cli "p=COM3;d=7805;cm=0;if=3200;mr=x1,x1;br=115200" blink.ihex
Connecting to target on COM3
The selected debug adapter does not support automatic reset. Please reset the target into boot mode and press ENTER.
Continuing...
Initial connection succeeded
Detected ihex image from extension
Transitioned to programming/erasure state successfully
Programming...
Programming complete.
Verifying...
Verification complete.
依赖项
~1.7–2.6MB
~48K SLoC