CN100407163C - Electronic appliance with error eliminating function and method thereof - Google Patents

Electronic appliance with error eliminating function and method thereof Download PDF

Info

Publication number
CN100407163C
CN100407163C CN2004101003200A CN200410100320A CN100407163C CN 100407163 C CN100407163 C CN 100407163C CN 2004101003200 A CN2004101003200 A CN 2004101003200A CN 200410100320 A CN200410100320 A CN 200410100320A CN 100407163 C CN100407163 C CN 100407163C
Authority
CN
China
Prior art keywords
debugging
electronic apparatus
file
storer
execute file
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.)
Expired - Fee Related
Application number
CN2004101003200A
Other languages
Chinese (zh)
Other versions
CN1786924A (en
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.)
BenQ Corp
Original Assignee
BenQ Corp
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 BenQ Corp filed Critical BenQ Corp
Priority to CN2004101003200A priority Critical patent/CN100407163C/en
Publication of CN1786924A publication Critical patent/CN1786924A/en
Application granted granted Critical
Publication of CN100407163C publication Critical patent/CN100407163C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present invention provides an electronic appliance with an error eliminating function and a method thereof. The electronic appliance comprises a memory, an execution file and an interface. When the electronic appliance executes the execution file, a corresponding file is generated and is stored in the memory; the corresponding file comprises at least one name and at least one memory address; the name and the memory address correspond to at least one function or at least one variable in the execution file; the interface is connected with the memory; when the interface is connected with an error eliminating device, the error eliminating device accesses the memory through the interface. The electronic appliance of the present invention also comprises a monitoring device which transmits the corresponding file back to the error eliminating device, and data of the corresponding file in the error eliminating device are updated.

Description

Electronic apparatus and method with error eliminating function
Technical field
The present invention has error eliminating function about a kind of electronics device, and it is connected to an apparatus for debugging via an interface, so that carry out debug.
Background technology
A kind of apparatus for debugging and the method for existing electronic apparatus (as a kind of hand held mobile phone), simulation when utilizing simulator to carry out the running of analog mobile telephone internal program, and assign test point, function/instructions such as variable modification via implementing procedure, do not need to connect the mobile phone body, can simulation obtain the required debugging information of mobile phone internal program.The use of this type of simulator no doubt can be found out the position of program error simply, still, this type of simulator the problem that can simulate limited.Therefore, only can solve some program error.
Another kind of known apparatus for debugging and method relate to the software debug interface and the debugging tool that design via at the central processing unit of hand held mobile phone, obtain the information in the mobile phone.Yet its shortcoming is: in manufacture process, must reserve test point on the circuit board of electronic apparatus.Remove and stagger the time, must be earlier by direct-connected method, debugging tool is electrically coupled with test point in the electronic apparatus, handle the instruction of delivering to mobile phone via the debug interface of outside more little processing of inside is assigned instruction and collected the function of relative program or the data of variable, to carry out debug.Yet, after hand held mobile phone is sold,, must take hand held mobile phone earlier apart if will carry out debug, this is not that most consumer can accept.Moreover, reappear the problem that the mobile phone program error is produced, also non-easy thing, have the program error of part to be the mistake after carrying out for a long time, once turn off the power supply of mobile phone, program can be reset, the former program error that has produced may be destroyed, thereby the carrying out of down-stream debug can't be carried out.
Therefore, this case inventor design provides a kind of body that need not to disassemble electronic apparatus promptly can find out the apparatus for debugging and the method for its program error immediately, to avoid above-mentioned every shortcoming of prior art.
Summary of the invention
An aspect of of the present present invention provides a kind of electronic apparatus, is connected to an apparatus for debugging via an interface, need not take electronic apparatus apart, can carry out debug.Electronic apparatus of the present invention comprises a storer, an execute file and an interface.When this electronic apparatus is carried out execute file, produce a corresponding file (map file) and be stored in this storer.This respective file comprises at least one title and at least one storage address, corresponding at least one function in the execute file or at least one variable.One apparatus for debugging is by this this storer of interface access of connected storage.This electronic apparatus also can receive the read/write instruction that this apparatus for debugging transmits by this interface, and read/write instruction according to this, and read/write is arranged in the numerical value that a predetermined memory address section of this storer is stored.
Another aspect of the present invention provides a kind of electronic apparatus, comprises a supervising device, via periodically passing respective file back apparatus for debugging, to upgrade the data of respective file.
Another aspect of the present invention provides a kind of debug method of electronic apparatus, comprises: make electronic apparatus carry out an execute file, and then produce a corresponding file (map file); Connect electronic apparatus in an apparatus for debugging; And via apparatus for debugging, the access respective file is to carry out debug to execute file.When electronic apparatus is carried out this execute file, also can receive the read/write instruction that apparatus for debugging transmits, and read/write instruction according to this by an interface, read/write is arranged in the numerical value that a predetermined memory address section of storer is stored.
The debug method that a kind of electronic apparatus is provided again on the other hand of the present invention comprises and makes the periodically data of record storage of electronic apparatus, and a schedule time automatically with this data back apparatus for debugging.
Description of drawings
Fig. 1 is the calcspar of electronic apparatus of the present invention; And
Fig. 2 is the process flow diagram of the debug method of electronic apparatus of the present invention.
The figure elements symbol description
10 electronic apparatus
11 apparatus for debugging
100 storeies
101 execute files
103 respective file
110 interfaces
120 supervising devices
Embodiment
The invention provides a kind of electronic apparatus, be connected to an apparatus for debugging, to carry out debug via an interface.This electronic apparatus comprises but is non-limiting in hand held mobile phone, personal digital assistant, palmtop computer, and similar appliances, under the shape condition that itself is not opened, can be electrically connected to the apparatus for debugging of an outside, to carry out debug.
See also Fig. 1, electronic apparatus 10 of the present invention comprises storer 100, execute file 101 and interface 110.Electronic apparatus 10 operates its source code via the computing machine program compiler, produces an executable program sign indicating number, and promptly execute file 101.When producing execute file 101, also produce a corresponding file (mapfile) 103 and be stored in the storer 100.Each function in these source codes of respective file 103 record and each variable, and these functions and variable correspond to each storage address of execute file 101, this execute file 101 also can use the execution of the interior function/variablees continuation execute file 101 of respective file 103 simultaneously.Respective file 103 comprises multi-group data, and wherein each group data comprises four hurdles, is respectively function or name variable or its code, storage address, data pattern, reaches data length.Respective file 103 for example is stored in the storer 100.Interface 110 can be a software application interface, is connected with storer 100, and operates electronic apparatus 10 according to user's input information.When user's desire electronic apparatus 10 is removed and to stagger the time, an apparatus for debugging 11 of outside is connected to electronic apparatus 10, and by interface 110 access memories 100.In a preferred embodiment, when electronic apparatus 10 is carried out this execute file 101, can receive the reading command that apparatus for debugging 11 transmits, reading command according to this, read the numerical value (or whole respective file 103) that the predetermined memory address section that is arranged in storer 100 is stored, and pass this numerical value (or whole respective file 103) back apparatus for debugging 11.If thinking, the user needs to change this numerical value, electronic apparatus 10 is when carrying out execute file 101, also can receive one of apparatus for debugging 11 transmission and write instruction, and write instruction according to this, and a predetermined memory address section middle finger of a predetermined value write store 100 is decided to be this function or variable, continue to carry out execute file 101, observe its execution result, and then realize debug.In one embodiment, electronic apparatus 10 is a hand-held mobile phone, and interface 110 can be a hardware connectivity port, and it is electrically connected storer 100, in order to transmit input information from apparatus for debugging 11 to storer 100.In this embodiment, interface 110 is a USB (universal serial bus) (USB), is connected with apparatus for debugging 11 in being installed in a computing machine.In another embodiment, interface 110 is a RS232 connector, is connected with apparatus for debugging 11 in being installed in a computing machine.Yet this embodiment only supplies the usefulness of declarative description, is not intention restriction covering scope of the present invention.
Electronic apparatus 10 of the present invention also comprises a supervising device 120.Variation for data in the immediately monitoring storer 100, supervising device 120 can be accepted an instruction, show the storage address of required monitoring, the size of data of monitoring, frequency of monitoring or the like, and register a timer (not shown), and then realize periodically upgrading the data of respective file 103, and the respective file 103 after periodically will upgrading is passed apparatus for debugging 11 back.
See also Fig. 2, the debug method of electronic apparatus of the present invention starts from step 200.In step 201, electronic apparatus is carried out its execute file 101, to operate.Produce a corresponding file 103 in step 202 subsequently.In step 203, an apparatus for debugging 11 is connected with electronic apparatus 10.This Connection Step can be electrically connected electronic apparatus and computer method is implemented by USB (universal serial bus).Also can connect electronic apparatus and the apparatus for debugging 11 that is installed in the computing machine by the RS232 connector again.In step 204, present this respective file 103 in apparatus for debugging 11, analyze for the user, by analysis after, the user operates apparatus for debugging 11, to read a suspicious storage address (step 205).This read step (step 205) can receive the reading command that apparatus for debugging transmitted through electronic apparatus 10, according to this reading command, read the numerical value that the predetermined memory address section that is arranged in electronic apparatus 10 is stored, and pass this numerical value back apparatus for debugging 11.If suspect that this numerical value is wrong, a predetermined value can be write this predetermined memory address (step 206).This write step (step 206) can one write instruction through what electronic apparatus 10 received that apparatus for debugging 11 are transmitted, write instruction according to this, one predetermined value is write in this predetermined memory address section, and this predetermined value is used as this execute file of some continuation execution of execute file.
The many situations that taken place for more understanding electronic apparatus also can constantly be monitored the variation of some storer.Therefore, the debug method of electronic apparatus of the present invention also comprises a monitoring step.With electronic apparatus 10 with after apparatus for debugging 11 is connected (step 203), the data that are updated periodically respective file 103 are in step 207.The enforcement of this step 207 is via the electronic apparatus that can receive the monitored instruction that apparatus for debugging 11 transmitted, according to this monitored instruction, show the storage address of required monitoring, the size of data of monitoring, frequency of monitoring or the like, and register a timer, the memory data that record upgrades.Then, as the time interval that drives, by USB (universal serial bus), RS232 connector, its similar interface, the respective file data that transmit renewal are to apparatus for debugging (step 208) with the monitoring frequency.The user can then return the respective file after step 204 is further analyzed renewal, perhaps finishes debug operation (step 209).
Via the detailed description of above preferred embodiment, in order to clear feature of the present invention and spirit are described, but not in order to limit the scope of the invention.The arrangement of this preferred embodiment and various change and equivalence is all the scope that the present invention desires to be protected.Therefore, the protection domain that the present invention applied for should be done the broadest explanation according to the above description, and contains the arrangement of all possible change and equivalence.

Claims (12)

1. electronic apparatus comprises:
One storer;
One execute file, when this execute file is carried out, produce a corresponding file and be stored in this storer, this respective file comprises at least one title and at least one storage address, and this title and this storage address are at least one function or at least one variable in should execute file;
One interface connects this storer, and wherein when this interface was connected in an apparatus for debugging, this apparatus for debugging passed through this this storer of interface access,
Wherein, when carrying out this execute file, this electronic apparatus can receive the reading command that this apparatus for debugging transmits, and reading command according to this, read the numerical value that the predetermined memory address section that is arranged in this storer is stored, and with this numerical value pass back this apparatus for debugging and
Wherein, when carrying out this execute file, what this electronic apparatus can receive that this apparatus for debugging transmits one writes instruction, and writes instruction according to this, and a predetermined value is write in the predetermined memory address section of this storer.
2. electronic apparatus as claimed in claim 1 also comprises a supervising device, and this supervising device periodically upgrades the data of this respective file.
3. electronic apparatus as claimed in claim 2, wherein, this supervising device is periodically being passed this respective file back this apparatus for debugging.
4. electronic apparatus as claimed in claim 1, wherein, this apparatus for debugging is installed in the computing machine, and this computing machine is electrically connected on this electronic apparatus with a USB (universal serial bus).
5. electronic apparatus as claimed in claim 1, wherein, this apparatus for debugging is installed in the computing machine, and this computing machine is electrically connected on this electronic apparatus with a RS232 connector.
6. electronic apparatus as claimed in claim 1, wherein, this apparatus for debugging reads this respective file in this storer by this interface.
7. electronic apparatus as claimed in claim 1, wherein, this apparatus for debugging writes a corresponding file in this storer by this interface.
8. the debug method of an electronic apparatus, this method comprises:
This electronic apparatus is carried out an execute file, produces a corresponding file, and this respective file comprises at least one title and at least one storage address, and this title and this storage address are at least one function or at least one variable in should execute file;
Connect this electronic apparatus in an apparatus for debugging;
Via this apparatus for debugging, this respective file of access is carried out debug to this execute file,
Wherein, this electronic apparatus can receive the reading command that this apparatus for debugging transmits when carrying out this execute file, and reading command according to this, read the numerical value that the predetermined memory address section that is arranged in this electronic apparatus is stored, and pass this numerical value back this apparatus for debugging;
Wherein, this electronic apparatus is when carrying out this execute file, what can receive that this apparatus for debugging transmits one writes instruction, and write instruction according to this, and a predetermined value is write in the predetermined memory address section of this electronic apparatus, and this predetermined value is used as this execute file of part continuation execution of this execute file.
9. debug method as claimed in claim 8 also comprises the data that make this electronic apparatus periodically write down this storer.
10. debug method as claimed in claim 9 also is included in a schedule time automatically with this apparatus for debugging of this data back.
11. debug method as claimed in claim 9, wherein, this apparatus for debugging is installed in the computing machine, and this computing machine is electrically connected on this electronic apparatus through a USB (universal serial bus).
12. debug method as claimed in claim 9, wherein, this apparatus for debugging is installed in the computing machine, and this computing machine is electrically connected on this electronic apparatus through a RS232 connector.
CN2004101003200A 2004-12-06 2004-12-06 Electronic appliance with error eliminating function and method thereof Expired - Fee Related CN100407163C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2004101003200A CN100407163C (en) 2004-12-06 2004-12-06 Electronic appliance with error eliminating function and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2004101003200A CN100407163C (en) 2004-12-06 2004-12-06 Electronic appliance with error eliminating function and method thereof

Publications (2)

Publication Number Publication Date
CN1786924A CN1786924A (en) 2006-06-14
CN100407163C true CN100407163C (en) 2008-07-30

Family

ID=36784395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2004101003200A Expired - Fee Related CN100407163C (en) 2004-12-06 2004-12-06 Electronic appliance with error eliminating function and method thereof

Country Status (1)

Country Link
CN (1) CN100407163C (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI741488B (en) * 2020-01-22 2021-10-01 宏正自動科技股份有限公司 Debugging system and early warning system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1254128A (en) * 1998-11-13 2000-05-24 英业达集团(西安)电子技术有限公司 Error automatic detection device and method of personal digilal assistant device
CN1501678A (en) * 2002-11-15 2004-06-02 南京Lg同创彩色显示系统有限责任公司 Method for displaying state information of mobile phone via display

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1254128A (en) * 1998-11-13 2000-05-24 英业达集团(西安)电子技术有限公司 Error automatic detection device and method of personal digilal assistant device
CN1501678A (en) * 2002-11-15 2004-06-02 南京Lg同创彩色显示系统有限责任公司 Method for displaying state information of mobile phone via display

Also Published As

Publication number Publication date
CN1786924A (en) 2006-06-14

Similar Documents

Publication Publication Date Title
Barr Programming embedded systems in C and C++
Ganssle The art of programming embedded systems
US20080301502A1 (en) System crash analysis using path tracing technologies
CN100422953C (en) On-line debugging method for SoC system using HDL to expand serial port
EP1029275A1 (en) Field programmable gate array (fpga) emulator for debugging software
US11250193B1 (en) Productivity platform using system-on-chip with programmable circuitry
US7409602B2 (en) Methodology for debugging RTL simulations of processor based system on chip
CN104346273A (en) Method and system used for debugging
CN102467446A (en) Processor chip emulator capable of setting program pointer value
CN104050069A (en) Automated testing method for achieving correctness of MIPS processor by judging Verilog based on Mars
CN102193860B (en) Microcontroller online debugging circuit and method as well as microcontroller
CN100407163C (en) Electronic appliance with error eliminating function and method thereof
CN106528414A (en) Processor chip simulator
CN101436144A (en) SCM program editing and emulating host computer
CN103345413A (en) Method and device for updating codes and electronic equipment
CN102306013A (en) Portable airplane 1553B bus monitoring system based on universal serial bus (USB) interface and control method for portable airplane 1553B bus monitoring system
US20060117225A1 (en) Electronic device with debugging function and method thereof
Ibrahim PIC32 Microcontrollers and the Digilent ChipKIT: Introductory to Advanced Projects
CN101183326A (en) Misarrange system applied to ROM-BIOS and method thereof
CN101593257B (en) System and method for protecting software based on.Net virtual machine
Payne Embedded controller FORTH for the 8051 family
CN1936861A (en) Programe execution tracing method and system and memory medium capable of reading by computer
CN115857859B (en) Debugging method and device of element module, electronic equipment and storage medium
Adrielsson Zedboard based platform for condition monitoring and control experiments
CN106650082B (en) Intelligent traceability electronic scale assessment system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee