Embedded OpenOCD read_bank命令要求提供更多参数

Embedded OpenOCD read_bank命令要求提供更多参数,embedded,microcontroller,jtag,openocd,stm32f0,Embedded,Microcontroller,Jtag,Openocd,Stm32f0,我们正在尝试用OpenOCD读取STM32F0x微控制器的部分内容,我们也使用OpenOCD对其进行编程。但是,flash read\u bank命令无法按文档所述工作。无论我们输入什么,错误都是: flash read_bank 0 test.bin: command requires more arguments 例如,我们通过以下方式调用它: sudo openocd -f interface/stlink-v2.cfg -f target/stm32f0x_stlink.cfg -c

我们正在尝试用OpenOCD读取STM32F0x微控制器的部分内容,我们也使用OpenOCD对其进行编程。但是,
flash read\u 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


命令
flash read\u bank
似乎很少使用。“至少是这样,”我的谷歌搜索说。有人知道如何使用这个命令吗?

闪存读取库需要另外两个参数:偏移量和长度

所以在STM32 MCU上,我可以使用


flash read\u bank 0 test.bin 0x8000000 0x4000

读取闪存的前16KB


请记住,OpenOCD中也有一个“help”命令。

您尝试过这个命令吗?对我们来说,我们通过哪些论点和多少论点并不重要。错误总是“需要更多参数”:
sudo openocd-f interface/stlink-v2.cfg-f target/stm32f0x_stlink.cfg-c“init”-c“reset init”-c“flash read_bank 0 test.bin 0x800000 0x4000”-c“exit”
flash read\u bank 0 test.bin 0x8000000 0x4000:命令需要在“flash”过程中使用更多参数。
文档中说偏移量和长度是可选的。请检查OpenOCD版本附带的文档。我的仍然没有将offsert和length标记为可选。无论文档中是否有offset和length参数,该命令都不起作用,并要求“更多参数”。我可以添加更多的论点,但它仍然要求更多。
openocd -f interface/stlink-v2.cfg -f target/stm32f0x_stlink.cfg -c init -c "flash banks" -c exit