Debugging embedded systems
AssigneeSTMicroelectronics S.r.l.
InventorMark Phillips
Life of this patent
Estimating the term…
Abstract
A host computer has a file with a subroutine required for operation of an application on a target. The file is dynamically loaded to memory of the target, whereby the file has an entry point at a dynamically-determined location. Data representative of the address of the entry point is stored in memory at a predetermined location. The application is then run on the target, causing the application to determines the entry point, thereby accessing the subroutine and allowing the subroutine to run.
Claims9
A method of operating a target computer system, wherein said target computer system has a memory comprising plural addressable locations and is adapted to run an application, the method comprising:
- providing on a host computer a file, comprising a subroutine required for operation of said application;
- dynamically loading said file from said host computer to said memory of said target computer system, whereby said file has an entry point at a dynamically-determined addressable location;
- storing at a predetermined one of said addressable locations data representative of the address of said entry point;
- running said application, whereby said application determines said data representative of said address thereby accessing said subroutine;
- and
- running said subroutine.
A method of debugging a target system connected to a host computer, the target having a digital signal processor with a memory including a reserved storage location designated as a vector, said memory further storing an application program, the method comprising:
- loading a stack into said memory;
- storing in said reserved location information indicative of said stack location;
- dynamically loading a computer file into said memory, said file containing a subroutine required for use by said application program;
- and
- storing at a predetermined location in said stack data indicative of an entry point into said dynamically loaded file;
- running said application on said target, whereby said application accesses said vector to thereby call said entry point and thus run said subroutine.
A device for operating an embedded digital signal processor, said embedded signal processor having a memory comprising plural addressable locations, and being adapted to run an application,
- the device comprising a host computer connected to said embedded digital signal processor, said host computer comprising a computer file including a subroutine required for said application;
- said host computer comprising a linker-loader connected to said link and operative to send said file and dynamically load said file to said memory of said embedded computer system whereby said file has an entry point at one of said addressable locations, said linker-loader comprising means for storing at a predetermined one of said addressable locations data representative of the address of said entry point;
- said embedded digital signal processor comprising processor circuitry running said application whereby said application determines said data representative of said address, thereby accessing said file to enable said application to run.
A debugging device comprising a target system connected to a host computer, the target having a digital signal processor with a memory including a reserved storage location designated as a vector, said memory further storing an application program, the device comprising:
- first loading circuitry for loading a stack into said memory;
- vector writing circuitry for storing in said reserved location information indicative of said stack location;
- dynamic loading circuitry in said host for loading a computer file into said memory of said digital signal processor, said file containing a subroutine required for use by said application program;
- stack writing circuitry for storing at a predetermined location in said stack data indicative of an entry point into said dynamically loaded file;
- wherein when said digital signal processor runs said application, said application accesses said vector to thereby call said entry point and thus runs said subroutine.
Dependencies are inferred from the claim text.