CN1786924A - Electronic appliance with error eliminating function and method thereof - Google Patents
Electronic appliance with error eliminating function and method thereof Download PDFInfo
- Publication number
- CN1786924A CN1786924A CN 200410100320 CN200410100320A CN1786924A CN 1786924 A CN1786924 A CN 1786924A CN 200410100320 CN200410100320 CN 200410100320 CN 200410100320 A CN200410100320 A CN 200410100320A CN 1786924 A CN1786924 A CN 1786924A
- Authority
- CN
- China
- Prior art keywords
- electronic apparatus
- debugging
- 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.)
- Granted
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention provides an electronic apparatus, able to provide a debugging function, and comprising a memory, an executing file and an interface. As executing the executing file, it generates a corresponding file and stores the corresponding file into the memory, where the corresponding file contains at least a name and at least a memory address, which each correspond to at least a function or variant in the executing file. And the interface is connected with the memory, and as connected with the interface, a debugging device accesses the memory through the interface. The electronic apparatus also comprises a monitoring device, which updates the data of a corresponding file in the debugging device by periodically transmitting the corresponding file back to the debugging device.
Description
Technical field
The present invention has about a kind of electronic apparatus can provide error eliminating function, 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 parameter 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 parameter, 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 parameter.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 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 the data that make electronic apparatus periodically note down storer, 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, in order to do carrying 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 parameter, and these functions and parameter correspond to each storage address of execute file 101, this execute file 101 also can use the execution of the interior function/parameters 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 parameter title 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 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 parameter, 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 on a computing machine.In another embodiment, interface 110 is a RS232 connector, is connected with apparatus for debugging 11 in being installed on 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 (16)
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 parameter 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 was by this this storer of interface access.
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 computing machine is electrically connected on this electronic apparatus with a RS232 connector.
6. electronic apparatus as claimed in claim 1, 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 pass this numerical value back this apparatus for debugging.
7. electronic apparatus as claimed in claim 1, 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.
8. electronic apparatus as claimed in claim 1, this apparatus for debugging reads this respective file in this storer by this interface.
9. electronic apparatus as claimed in claim 1, this apparatus for debugging writes a debug respective file in this storer by this interface.
10. 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 parameter 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.
11. debug method as claimed in claim 11 also comprises the data that make this electronic apparatus periodically note down this storer.
12. debug method as claimed in claim 11 also is included in a schedule time automatically with this apparatus for debugging of this data back.
13. debug method as claimed in claim 11, 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).
14. debug method as claimed in claim 11, wherein this computing machine is electrically connected on this electronic apparatus through a RS232 connector.
15. debug method as claimed in claim 11, wherein this electronic apparatus is when carrying out this execute file, 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 electronic apparatus is stored, and pass this numerical value back this apparatus for debugging.
16. debug method as claimed in claim 11, 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.
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 true CN1786924A (en) | 2006-06-14 |
CN100407163C 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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113157471A (en) * | 2020-01-22 | 2021-07-23 | 宏正自动科技股份有限公司 | Debugging system and early warning system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1108561C (en) * | 1998-11-13 | 2003-05-14 | 无敌科技(西安)有限公司 | 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 |
-
2004
- 2004-12-06 CN CN2004101003200A patent/CN100407163C/en not_active Expired - Fee Related
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113157471A (en) * | 2020-01-22 | 2021-07-23 | 宏正自动科技股份有限公司 | Debugging system and early warning system |
CN113157471B (en) * | 2020-01-22 | 2024-05-24 | 宏正自动科技股份有限公司 | Debug system and early warning system |
Also Published As
Publication number | Publication date |
---|---|
CN100407163C (en) | 2008-07-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Ganssle | The art of programming embedded systems | |
EP1130518B1 (en) | Software analysis system having an apparatus for selectively collecting analysis data from a target system executing software instrumented with tag statements and method for use thereof | |
US8543976B1 (en) | Generation of multi-domain code from a graphical program | |
US9898388B2 (en) | Non-intrusive software verification | |
US20050102583A1 (en) | Methodology for debugging RTL simulations of processor based system on chip | |
CN102467446A (en) | Processor chip simulator capable of setting program pointer value | |
CN111142918A (en) | Programmable device program parameter configuration and flow control method | |
CN102929688B (en) | The simulator of a kind of simulated touch screen realizes method and this simulator | |
CN116501378B (en) | Implementation method and device for reverse engineering reduction source code and electronic equipment | |
CN102193860B (en) | Microcontroller online debugging circuit and method as well as microcontroller | |
CN100407163C (en) | Electronic appliance with error eliminating function and method thereof | |
CN102467444A (en) | Simulation debugging system for special function register | |
CN1293400A (en) | Method for debugging basic I/O system of keyboard for developing notebook computer | |
CN112765018B (en) | Instrument and meter debugging system and method | |
Su et al. | GASP! A standardized performance analysis tool interface for global address space programming models | |
CN102455798A (en) | Method and device for operating spectrum analyzer | |
CN1851612A (en) | System and method for recording reset types | |
CN101593257B (en) | System and method for protecting software based on.Net virtual machine | |
Ibrahim | PIC32 Microcontrollers and the Digilent ChipKIT: Introductory to Advanced Projects | |
CN101183326A (en) | Misarrange system applied to ROM-BIOS and method thereof | |
CN1508676A (en) | Computer chip data write-in device and method | |
Dolinskii et al. | In-circuit emulators of microprocessors and microcontrollers | |
Mather | Embedding DSP | |
Studio | Getting Started Guide | |
CN101901145A (en) | Method for programming single crystal wafer by means of picture control |
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 |