【发布时间】:2017-10-24 12:07:02
【问题描述】:
我们正在尝试使用 OpenOCD 读取我们的 STM32F0x 微控制器的部分内容,我们也使用 OpenOCD 对其进行编程。但是,flash read_bank 命令无法按文档说明工作。无论我们输入什么,错误都是:
flash read_bank 0 test.bin: command requires more arguments
我们调用它例如:
sudo openocd -f interface/stlink-v2.cfg -f target/stm32f0x_stlink.cfg -c "init" -c "reset init" -c "flash read_bank 0 test.bin" -c "exit"
其他闪存操作按预期工作,例如:
openocd -f interface/stlink-v2.cfg -f target/stm32f0x_stlink.cfg -c init -c "flash info 0" -c exit
或
openocd -f interface/stlink-v2.cfg -f target/stm32f0x_stlink.cfg -c init -c "flash banks" -c exit
flash read_bank 命令似乎很少使用。至少,这是我的谷歌搜索说的。有人知道如何使用这个命令吗?
【问题讨论】:
标签: embedded microcontroller jtag openocd stm32f0