Boot Engineering and App Engineering bin Merge release version good Bat (handy version)

Source: Internet
Author: User

Directly on the code (Code at the end), there is no use can leave a message:

The first step: Engineering Introduction, Key points--- 1.bat file in the same directory as the app and Boot project, 2.release to run the bat auto-generated folder

The second step: the version. Bat for specific items need to modify variables such as, AppPath, bootpath, size

Third step: Double-click Bat, Run as, Display Merge Success Description success, press any key pop release window release bin can be handed to the production burn!

Source:

1 ::XX company XX Equipment co-version bin2 ::creater: First Puck time:201709093 ::the file needs to be placed in the same directory as the project folder4 5 ::On /off display CLI information6 @echo off7 Echo***************** XX Project *****************8 9 ::cmd titleTen Title XX Limited Edition bin tool One  A ::Create the target folder release, and Clear - mkdir"%~dp0release" - del%~dp0\release\*.bin the  - ::Variable Declaration - SetApppath= "%~dp0xx-app-v1.00\ewarm\rtos\exe\xx_app_v1.00.bin" - SetBootpath= "%~dp0xx-boot\ewarm\demo\exe\xx_boot_v1.00.bin" + SetMerge= "%~dp0release\xx_app_boot_v1.bin" -  +  A ::Prepare boot file Empty bin file open no need to write part, size depends on the size of the app before flash start address at  for%%a in (%bootpath%) Do Set/A size=128*1024-%%~za -fsutil file CreateNew temp.bin%size% - Copy/b%bootpath% + Temp.binBoot.bin -  - ::Create a version file - Copy/bBoot. bin +%apppath%%merge% in  - ::Delete temporary files to delTemp.bin + del Boot.bin -  the ::execution success or not * if exist%merge% (GotoSuccessElse GotoFailure $ Panax Notoginseng  - : Success the Echo*************** merger success! ***************** + Pause A Start"" "%~dp0release\ " the Exit + : Failure - Echo **************** merger failure! **************** $ Pause $Exit

Note: The tools of the online merger bin such as Ubin principle are similar, the open part is XX (bat temporarily I did not find a way to write FF, need to call other plug-ins is not convenient), I take J-link The only difference between arm's combined bin and the above merged bin, compared with Beyondcompare, is that the open part is the difference between 00 and FF, and the general situation will not be affected (the flash will erase the 00->ff before writing).

Boot Engineering and App Engineering bin Merge release version good Bat (handy version)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.