我可以禁用Windows中的STM微控制器的读取保护(使用st-link软件),但是我不知道如何在ubuntu中执行此操作。我在终端中尝试了以下命令:
st-flash write my_firmware.bin 0x08000000
我得到以下答复:
2019-04-17T13:53:56 INFO common.c: Loading device parameters....
2019-04-17T13:53:56 INFO common.c: Device connected is: F07x device, id 0x20016448
2019-04-17T13:53:56 INFO common.c: SRAM size: 0x4000 bytes (16 KiB), Flash: 0x20000 bytes (128 KiB) in pages of 2048 bytes
2019-04-17T13:53:56 INFO common.c: Attempting to write 96804 (0x17a24) bytes to stm32 address: 134217728 (0x8000000)
Flash page at addr: 0x08017800 erased
2019-04-17T13:53:56 INFO common.c: Finished erasing 48 pages of 2048 (0x800) bytes
2019-04-17T13:53:56 INFO common.c: Starting Flash write for VL/F0/F3/F1_XL core id
2019-04-17T13:53:56 INFO flash_loader.c: Successfully loaded flash loader in sram
2019-04-17T13:53:59 ERROR flash_loader.c: flash loader run error
2019-04-17T13:53:59 ERROR common.c: stlink_flash_loader_run(0x8000000) failed! == -1
stlink_fwrite_flash() == -1
如何禁用ubunto中的写保护,以便可以在stm微控制器中写入二进制文件。