H7-TOOL offline programming functions of the open source release

H7-TOOL summary of posts: https: //www.cnblogs.com/armfly/p/12283459.html

 

Current already STM32F030, STM32F103, STM32F429, STM32F746 for the perfect fit.

STM32 support other models, we can see the operating instructions, to do the adaptation.

Other manufacturers will follow the embedded chip on the market do support, even RISC-V kernel.

We in use, have any suggestions, feedback is welcome.

Offline programming video show video effects:
http://v.qq.com/x/page/p30628h2ou7.html

version V1.08 APP program: h7_tool_app (V1.08) .bin H7-TOOL_STM32H7_App-Master (V1.08 ) .zip PC upgrade to V.02: H7-TOOL PC software (V0.2) .zip H7-TOOL PC software source code (V0.2 2020-02-07) .zip file to be stored in eMMC: H7-TOOL eMMC disk file (V1.08) .zip
 







 


Offline programming [Features]
1, select files by file browsing. Without limiting the number of directories and files.
2, FLM algorithm to copy files from KEIL MDK out, stored to disk emmc \ H7-TOOL \ Programmer \ FLMaccording to the manufacturer classification.
3, the target program file, programming scripts stored in: \ H7-TOOL \ Programmer \folder. And does not limit the number of directory levels.
4, dynamic resolution FLM file, the memory image is loaded into the isolated target cpu ram through swd.
5, support for multi-bin written.
6, supports the option bytes programming, programming is complete set read protection.
7, support for automatic release read protection.
8, support for dynamic filling product serial number, encrypting the UID field, user-defined fields.
9, automatic save programming times, to limit the number of remaining support functions.
10, supports continuous programming mode, automatic programming after detecting IC.
11, dynamic display CPU voltage and supply current.
12, the configuration algorithm and data files (bin) and a control script by lua programming process.
13, lua is very flexible and can be easily expanded features, such as:
allowed to burn within (1) the date window period.
(2) the target plate current limit alarm.
(3) defines a UID (CPU unique serial number) is allowed to conform to the rules programming.
(4) UID encryption algorithms defined by the user.
(5) filled with arbitrary data short (less than 1K), such as date and time of production can be written or customer code.
(6) on the program file security issues, the latter consider it, because H7-TOOL software is open source, open source file structure, in order to avoid the program file is leaked plants, initially conceived as follows:
       a, USB virtual disk control program entry, increased labor input password.
       B, in the bottom of the virtual disk sector read and write functions, 512 bytes to increase customer-defined encryption and decryption algorithms. Such emmc content data is encrypted, even if the chip is copied out into emmc other H7-TOOL motherboard can not be recognized.


[Instructions]
hardware connection:
. 1, SWD programming interfaces: the GND TVCC D4 D6 D8
2, connected to the target board 5P Dupont line.
3, the target plate may be powered by the H7-TOOL TVCC pin.
4,5P cable length less recommended 20CM.
 

And file selection procedure proceeds:
1, the online mode, press S, pop-up "extensions" menu
2, select "1 offline programming device", press OK S, into the offline programming interface
3, by S to switch to "select file", press S enters the file browser interface
4 selects a corresponding lua file length is determined by the S

key functions:
1, press S switch to the "start burn" button
2, press C to start programming
3, continuous press S to enter programming mode (programming the chip automatically detected)
4, press the C key to terminate programming

[Review] lua document
1, the on-line mode, press S enters extensions - > system settings -> USB eMMC disk
2, wait about 10 seconds you can see on the computer eMMC disk
3, the computer disk file browser eMMC content operation
4, two key directories:
        H7-TOOL \ Programmer \ FLM store burned algorithm file
        H7-TOOL \ Programmer \ User store the user's lua files, bin file

Note:
1, if eMMC simulation U disk is not recognized see this post on the second floor:
HTTP: / /www.armbbs.cn/forum.php?mod=viewthread&tid=96090

2, unpack the archive and out, to copy all eMMC inside.
 

Lua file [Description]
1, to find a lua file as a template, a copy of the catalog or replace the name of the current template provides the following:
 

2, use Notepad to open the lua file for editing.
3, several key parameters are as follows, you need to specify the algorithm and program files.
(1) algorithm standard file directory 0: / H7-TOOL / Programmer / FLM
        AlgoFile_FLASH = "ST / STM32F10x / STM32F10x_512.FLM"
        AlgoFile_OPT = "ST / STM32F10x / STM32F10x_OPT.FLM"

(2) bin file name and destination FLASH address.
         = DataFile_0 "../TestBin/512K.bin"
         FlashAddr_0 = 0x08000000

(3) base directory 0: / H7-TOOL / Programmer / User, and lua files in the same directory support ../ parent directory.

4, more advanced settings, you can continue to browse lua files, there is the C programming language to read, some screenshots:

For example:
For example, a programmer bin file output.bin to our development board STM32-V6
1, you can use the file STM32F429BI_512K .lua a template, just inside the bin to repair the file name and destination address Flash
DataFile_0 = "../TestBin/output.bin"
FlashAddr_0 = 0x08000000

2, the output.bin file into the folder inside TestBin:
 

3, H7-TOOL after entering the programming kit, select STM32F429BI_512K.lua file:
 

4, click the start burn:
 

5, the burning process points to erase, program and verify:
 

part LUA script files shots, mainly under the familiar parameters can be configured:
 

[ ini file of the same name and lua DESCRIPTION
document follows, notepad can edit
Locked = 0 --1 indicates lock, currently unused
ProgramLimit = 0 - number of programming control, 0 is no limit,> 0 indicates the number of times of limitation
ProgrammedCount = 43 - the number of times has been programmed
ProductSN = 0 - serial number rolling code
LastTotalTime = 0 - temporarily unused
LastEraseChipTime = 22 - chip In addition to time (ms), the program automatically recorded

Guess you like

Origin www.cnblogs.com/armfly/p/12311217.html
Recommended