MCU programmer for J-LINK and DAPLink, using Keil MDK's *.FLM Flashing Algorithm
To run this software, you need python 3.6+ and pyqt5.
To use DAPLink, you need additional pyusb for CMSIS-DAPv2 and another usb-backend for CMSIS-DAPv1 (hidapi or pywinusb for windows, hidapi for mac, pyusb for linux).
pip install PyQt5 pyusb hidapi six pyelftools
add chip's name and FLM file path in devices.txt
as below:
STM32F103C8 FlashAlgo/STM32F10x_128.FLM
and then, MCUProg can erase/write STM32F103C8.
In the previous configuration, we assume that chip's RAM locates at 0x20000000, and FLM uses 4KB RAM.
If the default values do not apply to your chip, you can explicitly specify the address and size of RAM used by FLM as below:
NUM480 0x20000000 0x2000 FlashAlgo/M481_AP_512.FLM
class new_chip(chip.Chip):
def __init__(self, xlink):
super(new_chip, self).__init__(xlink, 'new_chip_algo')
('new_chip', new_chip.new_chip),
In class new_chip, you can add arbitrary python code to do something FLM don't support, so i call it 'Powerful method'.
FlashAlgo/flash_algo.py is used to parse Keil MDK's *.FLM file and extract code and its runing information into a python dict.
By using STM32_withBoot.ini
with content as below, you can write multi file to different address one-time for same flash algorithm.
[BOOT]
addr = 0x00000
path = D:/work_dir/STM32-Boot-Demo/STM32_UserBoot/out/STM32_stdperiph_lib.hex
[APP]
addr = 0x10000
path = D:/work_dir/STM32-Boot-Demo/STM32_App/out/STM32_stdperiph_lib.bin
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。