CN108563452A - A kind of method and system of embedded scm automatic online programming program - Google Patents

A kind of method and system of embedded scm automatic online programming program Download PDF

Info

Publication number
CN108563452A
CN108563452A CN201810193633.7A CN201810193633A CN108563452A CN 108563452 A CN108563452 A CN 108563452A CN 201810193633 A CN201810193633 A CN 201810193633A CN 108563452 A CN108563452 A CN 108563452A
Authority
CN
China
Prior art keywords
programming
target board
file
automatic online
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810193633.7A
Other languages
Chinese (zh)
Inventor
刘志兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ke Lu Intelligent Grid Science And Technology Ltd Of Nanchang City
Original Assignee
Ke Lu Intelligent Grid Science And Technology Ltd Of Nanchang City
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ke Lu Intelligent Grid Science And Technology Ltd Of Nanchang City filed Critical Ke Lu Intelligent Grid Science And Technology Ltd Of Nanchang City
Priority to CN201810193633.7A priority Critical patent/CN108563452A/en
Publication of CN108563452A publication Critical patent/CN108563452A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order

Abstract

The invention discloses a kind of methods of embedded scm automatic online programming program comprising following steps:System, which receives and stores, waits for firm file;After the completion of system detectio is crimped to Target Board, start programming;After system detectio to Target Board programming success, result is reported into database, and continue programming;When system detectio fails to the Target Board programming, then Target Board is repaiied or replaced to maintenance handover.A kind of system of embedded scm automatic online programming program comprising:File reception module and programming module.Its whole process need not be participated in manually.Operator only needs Target Board to be put into device, then waits for programming as a result, simple and clear, evades interference from human factor, effectively improve production efficiency.When needing to extend multistation parallel work-flow, it is only necessary to increase programming device, expense of expanding production is more much lower than increasing PC hosts, while production efficiency also higher, is widely used in microcontroller field.

Description

A kind of method and system of embedded scm automatic online programming program
Technical field
The present invention relates to microcontroller field, specially the method for embedded scm automatic online programming program and it is System.
Background technology
MCU:Micro-control unit, also known as one chip microcomputer or microcontroller refer to large scale integrated circuit Occur and its develops, on one chip by CPU, RAM of computer, ROM, timer conter and a variety of I/O Interface integrations, shape At the computer of chip-scale, various combination control is done for different application scenarios.
RAM:Random access memory, also referred to as " random access memory " are the storage insides that data are directly exchanged with CPU Device is also main memory (memory).It can read and write at any time, and speed is quickly, usually as operating system or other be currently running In program ephemeral data storaging medium
Flash:The English name of flash memory is " Flash Memory ", commonly abbreviated as " Flash ", it belongs to memory devices One kind, be a kind of Nonvolatile memory, also can muchly keep data under conditions of no electric current is supplied, storage is special Property be equivalent to hard disk, this characteristic be exactly flash memory be able to as all kinds of pocket digital devices storage medium basis.In MCU In for storing executable program.
PCB:Printed circuit board, also known as printed wiring board, important electronic unit are the supporters of electronic component, electricity The carrier of sub- component electrical connection.Since it is made of electron printing, therefore it is referred to as " printing " circuit board.
USB flash disk:Full name USB flash drive, English name " USB flash disk ".It is it is a kind of using USB interface be not necessarily to object The miniature high power capacity product for managing driver, is connect by USB interface with computer, realizes plug and play.
SD card:SD storage cards are a kind of memory devices of new generation based on semiconductor fast-flash memory device, due to it is small, Data transmission bauds is fast, the excellent characteristic such as hot-swappable, by widely in being used on mancarried device, such as digital camera, Personal digital assistant (foreign language abbreviation PDA) and multimedia player etc..
LQFP:It is 1.4mm's that i.e. slim QFP (Low-profile Quad Flat Package), which refers to encapsulation main body thickness, QFP is the name quad flat formula encapsulation technology (Quad used in the new QFP form-factors of Japan Electromechanical Industry Association formulation Flat Package), the technology realize cpu chip pin between apart from very little, pin is very thin.General extensive or super large rule Vlsi die uses this packing forms, and number of pins is generally all 100 or more.It is easy to operate when technology encapsulation CPU, it can By property height;And its packaging appearance size is smaller, and parasitic parameter reduces, and is suitble to frequency applications;The technology is mainly suitable for using SMT tables Face mounting technology installation wiring on PCB.
JTAG(Joint Test Action Group;Joint test working group) it is a kind of international standard test protocol (compatibilities of IEEE 1149.1) is mainly used for chip interior test.Most high-grade devices all supports JTAG protocol now, such as DSP, FPGA device etc..The jtag interface of standard is 4 lines:TMS, TCK, TDI, TDO, respectively model selection, clock, data are defeated Enter and DOL Data Output Line.Jtag interface is also commonly used for realizing ISP (In-System Programmer, in-system programming), right The devices such as FLASH are programmed.
With the high speed development of intelligent grid, intelligent electric meter and the additional function of automatization terminal product gradually increase, and And more focus on portable and low-power consumption, product design size is smaller and smaller, then this mean that will be in same or more corpusculum More product functions are realized in product.The number of pin of system master chip MCU, internal processes space, etc. are with product work( It can increase and be continuously increased, in limited chip package volume, chip pin spacing is closer and closer, this produces product in batches And repair brings great inconvenience.Due to cost considerations, the RAM and Flash of such embedded single-chip computer system are in MCU Portion, producing line just need batch programming program to MCU.It burns there are two types of piece methods, one is chip is put into special fever writes, It is before patch that program burn writing is good.This scheme is generally used only in LQFP100 feet chip below, such chip pin spacing Typically greater than it is equal to 1mm, the relatively good positioning of pin when one single chip captures;But for chip more than LQFP144 feet, Lead pin pitch, which is generally less than, is equal to 0.5mm, the extremely difficult positioning when one single chip captures.So this chip is just needed using first Then patch passes through reserved programming interface programming program on product pcb board.One kind is inquired into herein passes through exterior storage medium The method of automatic programming program.Program burn writing success rate can be effectively improved, human intervention is reduced, improves production efficiency.
Firm file is usually stored on a PC host, so by common embedded product program in line writing method Afterwards by PC machine USB interface or serial ports linking objective plate programming interface, the ends PC programming software, artificial selection is then used to burn piece File carries out chip programming.
It is existing to need a PC host in line writing method, while artificial selection programming file being needed to carry out programming.It is large quantities of When piece is burnt in amount production, it has not been convenient to multistation concurrent working is extended, and needs manually to participate in programming process, qualification rate and work effect Rate is easy by interference from human factor.
To sum up, it is necessary to be improved for the technology.
Invention content
In order to solve the above-mentioned technical problem, the object of the present invention is to provide a kind of embedded scm automatic online programmings The method and system of program.
The technical solution adopted in the present invention is:
The present invention provides a kind of method of embedded scm automatic online programming program comprising following steps:
System, which receives and stores, waits for firm file;
After the completion of system detectio is crimped to Target Board, start programming;
After system detectio to Target Board programming success, result is reported into database, and continue programming;
When system detectio fails to the Target Board programming, then Target Board is repaiied or replaced to maintenance handover.
As the improvement of the technical solution, system will wait for that firm file is stored into USB flash disk or SD card.
As the improvement of the technical solution, the Target Board programming success comprising:By target program file programming to mesh System reset Target Board after target, by respective communication interface attempt read Target Board software version number, and in programming file Version be compared, version is identical, judge programming success.
Further, when system detectio to Target Board programming fails, then control that indicator light is bright and/or display screen is carried Show.
On the other hand, the present invention also provides a kind of systems of embedded scm automatic online programming program comprising:
File reception module receives and stores executing step system and waits for firm file;
Programming module, to execute step system detect Target Board crimping after the completion of, start programming;System detectio is to institute After stating Target Board programming success, result is reported into database, and continue programming;When system detectio is lost to the Target Board programming It loses, then Target Board is repaiied or replaced to maintenance handover.
The beneficial effects of the invention are as follows:The method of embedded scm automatic online programming program provided by the invention and System, whole process need not be participated in manually.Operator only needs Target Board to be put into device, then waits for programming as a result, straight It sees and is illustrated, evade interference from human factor, effectively improve production efficiency.When needing to extend multistation parallel work-flow, it is only necessary to increase Add programming device, expense of expanding production is more much lower than increasing PC hosts, while production efficiency higher.And it can in programming device To increase some plank test functions, programming and primary completion of testing oneself.Enterprise's manufacture system data can also be recorded in programming situation Library, to track and to recall to product manufacturing situation.
Description of the drawings
The specific implementation mode of the present invention is described further below in conjunction with the accompanying drawings:
Fig. 1 is the flow diagram of first embodiment of the invention;
Fig. 2 is the system connection diagram of second embodiment of the invention;
Fig. 3 is the schematic device of third embodiment of the invention.
Specific implementation mode
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.
Referring to Fig.1, the present invention provides a kind of method of embedded scm automatic online programming program comprising following Step:
System, which receives and stores, waits for firm file;
After the completion of system detectio is crimped to Target Board, start programming;
After system detectio to Target Board programming success, result is reported into database, and continue programming;
When system detectio fails to the Target Board programming, then Target Board is repaiied or replaced to maintenance handover.
As the improvement of the technical solution, system will wait for that firm file is stored into USB flash disk or SD card.
As the improvement of the technical solution, the Target Board programming success comprising:The chip provided according to chip manufacturer Programming protocol or industry universal programming protocol (agreements such as serial ports, JTAG) are target program file programming to Target Board;Programming is complete At rear programming device meeting positive return Target Board, and passes through respective communication interface (such as serial ports, Ethernet) and attempt to read target Plate software version number is simultaneously compared with the version in programming file, and version is identical, judges programming success, differs or read Other situations such as failure (attempting to read within a certain period of time multiple) then judge that programming fails.
Further, when system detectio to Target Board programming fails, then control that indicator light is bright and/or display screen is carried Show.
On the other hand, the present invention also provides a kind of systems of embedded scm automatic online programming program comprising:
File reception module receives and stores executing step system and waits for firm file;
Programming module, to execute step system detect Target Board crimping after the completion of, start programming;System detectio is to institute After stating Target Board programming success, result is reported into database, and continue programming;When system detectio is lost to the Target Board programming It loses, then Target Board is repaiied or replaced to maintenance handover.
As an embodiment, the programming method that this programme provides uses a kind of programming device, the device to support USB flash disk or SD card Equipment and network waiting for that firm file is stored in USB flash disk or SD card, and are linked into programming device, and device recognizes placement After Target Board, it is automatically performed file programming.Programming process and result are directly displayed on included LCD display, are used simultaneously Polychromatic light carries out condition prompting, member's intuitive judgment plank programming quality easy to operation.
The whole process of this method need not be participated in manually, and operator only needs Target Board to be put into device, then waits for Programming evades interference from human factor, effectively improves production efficiency as a result, simple and clear.When need extend multistation parallel work-flow When, it is only necessary to increase programming device, expense of expanding production is more much lower than increasing PC hosts, while production efficiency also higher.And And some plank test functions can be increased in programming device, programming and primary completion of testing oneself.Enterprise can also be recorded in programming situation Industry manufacture system database, to track and to recall to product manufacturing situation.
With reference to shown in Fig. 2, Fig. 3, Target Board needle plate therein is field-replaceable unit, is replaced and is corresponded to according to different product model Product objective plate needle plate, you can realize different product line switching.Specification programming interface, programming tooling can reuse, Cost is reduced, production efficiency is improved.
System interface:External 200V power supplys power to whole system after internal insulation transformer isolation, prevent worker Misoperation, which is got an electric shock, threatens personal safety.
SD card interface/USB interface:Upgrade programming tooling mainframe program and imports the functions such as Target Board programming file.
Ethernet interface:With PC host communication interfaces, for enterprise's manufacture system online communication, carry out programming result on Report.
Crimp button:After Target Board crimping in place, programming tooling can be automatically into programming state;Target Board is crimped portable When rising, tooling automatically cuts off Target Board power supply, so that worker replaces plank.
Only preparing outside firm file and the artificial participation of drop target plate needs in the entire programming flow of this programme, other sections Point is all that programming device is automatically performed;Piece situation can also will be burnt simultaneously and reports manufacturing database in time, so as to product manufacturing Situation tracks and backtracking.
The programming device incorporates the programming of the ends PC and file memory function, at low cost, can work online for a long time, reliability It is high;Programming file is stored in external agency, and program version is replaceable, and reusable is in multiple types product manufacturing;Programming device root It is automatically performed programming according to plank crimping situation, does not need manual intervention;Programming device is connected with enterprise manufacture system database, energy Record the programming situation and program version of every piece of plank;Programming device can be intuitive with instructions, operators such as liquid crystal display and LED Clear judgement plank programming quality;Programming device manufacturing cost is low, can be carried out replicating according to the condition of production and expanded production.
The prior art line writing program needs to solve firm file storage, programming process control, programming situation track, The problems such as can in high volume replicating;Method effective solution these problems that this programme uses, especially suitable for can not in chip Before patch the case where programming program.
It is to be illustrated to the preferable implementation of the present invention, but the invention is not limited to the implementation above Example, those skilled in the art can also make various equivalent variations or be replaced under the premise of without prejudice to spirit of that invention It changes, these equivalent deformations or replacement are all contained in the application claim limited range.

Claims (5)

1. a kind of method of embedded scm automatic online programming program, which is characterized in that
It includes the following steps:
System, which receives and stores, waits for firm file;
After the completion of system detectio is crimped to Target Board, start programming;
After system detectio to Target Board programming success, result is reported into database, and continue programming;
When system detectio fails to the Target Board programming, then Target Board is repaiied or replaced to maintenance handover.
2. the method for embedded scm automatic online programming program according to claim 1, it is characterised in that:System It will wait for that firm file is stored into USB flash disk or SD card.
3. the method for embedded scm automatic online programming program according to claim 1, which is characterized in that described Target Board programming success comprising:By system reset Target Board after target program file programming to Target Board, pass through respective communication Interface is attempted to read Target Board software version number, and is compared with the version in programming file, and version is identical, judges programming Success.
4. the method for embedded scm automatic online programming program according to any one of claims 1 to 3, feature Be, when system detectio to Target Board programming fail,
Then control that indicator light is bright and/or display screen is prompted.
5. a kind of system of embedded scm automatic online programming program, which is characterized in that it includes:
File reception module receives and stores executing step system and waits for firm file;
Programming module, to execute step system detect Target Board crimping after the completion of, start programming;System detectio is to the mesh After target programming success, result is reported into database, and continue programming;When system detectio fails to the Target Board programming, Then Target Board is repaiied or replaced to maintenance handover.
CN201810193633.7A 2018-03-09 2018-03-09 A kind of method and system of embedded scm automatic online programming program Pending CN108563452A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810193633.7A CN108563452A (en) 2018-03-09 2018-03-09 A kind of method and system of embedded scm automatic online programming program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810193633.7A CN108563452A (en) 2018-03-09 2018-03-09 A kind of method and system of embedded scm automatic online programming program

Publications (1)

Publication Number Publication Date
CN108563452A true CN108563452A (en) 2018-09-21

Family

ID=63532514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810193633.7A Pending CN108563452A (en) 2018-03-09 2018-03-09 A kind of method and system of embedded scm automatic online programming program

Country Status (1)

Country Link
CN (1) CN108563452A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542466A (en) * 2018-11-15 2019-03-29 上海乐野网络科技有限公司 A method of based on the quick programming firmware of SD card
CN109739517A (en) * 2018-12-19 2019-05-10 努比亚技术有限公司 Printed circuit board, terminal, firmware burning method and readable storage medium storing program for executing
CN111338658A (en) * 2020-02-27 2020-06-26 上海电力大学 Method and system for downloading PIC single-chip microcomputer program based on stm32CPU
CN112420535A (en) * 2019-08-21 2021-02-26 中移物联网有限公司 Chip manufacturing method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102625176A (en) * 2012-03-29 2012-08-01 深圳市同洲电子股份有限公司 Method for burning secret key, digital terminal and system for burning secret key
CN102819442A (en) * 2012-07-31 2012-12-12 深圳市赛格导航科技股份有限公司 Method and system for programming programs into embedded equipment program
US20140143466A1 (en) * 2012-11-21 2014-05-22 Hon Hai Precision Industry Co., Ltd. Computer capable of protecting cpu
CN105679366A (en) * 2015-12-31 2016-06-15 北京兆易创新科技股份有限公司 Portable multifunctional offline programmer
CN105760191A (en) * 2016-02-02 2016-07-13 西安诺瓦电子科技有限公司 Embedded system equipment programming mass production method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102625176A (en) * 2012-03-29 2012-08-01 深圳市同洲电子股份有限公司 Method for burning secret key, digital terminal and system for burning secret key
CN102819442A (en) * 2012-07-31 2012-12-12 深圳市赛格导航科技股份有限公司 Method and system for programming programs into embedded equipment program
US20140143466A1 (en) * 2012-11-21 2014-05-22 Hon Hai Precision Industry Co., Ltd. Computer capable of protecting cpu
CN105679366A (en) * 2015-12-31 2016-06-15 北京兆易创新科技股份有限公司 Portable multifunctional offline programmer
CN105760191A (en) * 2016-02-02 2016-07-13 西安诺瓦电子科技有限公司 Embedded system equipment programming mass production method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542466A (en) * 2018-11-15 2019-03-29 上海乐野网络科技有限公司 A method of based on the quick programming firmware of SD card
CN109739517A (en) * 2018-12-19 2019-05-10 努比亚技术有限公司 Printed circuit board, terminal, firmware burning method and readable storage medium storing program for executing
CN109739517B (en) * 2018-12-19 2024-01-09 努比亚技术有限公司 Printed circuit board, terminal, firmware burning method and readable storage medium
CN112420535A (en) * 2019-08-21 2021-02-26 中移物联网有限公司 Chip manufacturing method and system
CN111338658A (en) * 2020-02-27 2020-06-26 上海电力大学 Method and system for downloading PIC single-chip microcomputer program based on stm32CPU
CN111338658B (en) * 2020-02-27 2023-10-10 上海电力大学 Method and system for downloading PIC (personal computer) singlechip program based on stm32CPU (Central processing Unit)

Similar Documents

Publication Publication Date Title
CN108563452A (en) A kind of method and system of embedded scm automatic online programming program
CN106230431B (en) A kind of pin multiplexing method and CPLD chip
CN108924014B (en) Test method of 4G wireless module test device of power system
CN219512630U (en) MCU multichannel burning device
CN216901630U (en) Interface conversion circuit and chip burning device
CN201638219U (en) Real-time FPGA verification system
CN203250312U (en) Extensible common core processing daughter board with interferences
CN108254703A (en) A kind of computer readable storage medium and mobile terminal for the lamp test that glistens
CN103389438B (en) A kind of for the welding detection system with cpu pcb and method
CN111104131A (en) Power panel, chip burning device and burning method
CN205067680U (en) Bga chip testing system
CN205263798U (en) Simple and easy singlechip burns to be write and testing arrangement
CN204270060U (en) STM32F103R8T6 single-chip minimum system plate
CN115061079A (en) Electric energy meter metering error online measurement method and batch test system
CN114167840A (en) Wireless charging chip test system combined with peripheral MCU
CN110992671B (en) Ammeter address forwarding method, device and system and electronic equipment
CN202748777U (en) On-line singlechip debugging system
CN111290988A (en) BMC daughter card module based on domestic MCU
CN216850675U (en) Line concentration device
CN113012655A (en) Manufacturing method of burning tool of display module
CN206460486U (en) A kind of integrated GPRS contact IC card reader-writer
CN101196943A (en) Test point error-checking method
CN214311711U (en) Power panel and chip burning device
CN213458022U (en) Power panel and chip burning device
CN205302356U (en) Vehicle -mounted electronic label and PCB board thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180921

RJ01 Rejection of invention patent application after publication