Patent ID: 7039831

Claim:
A method of debugging a target system using a host system connected thereto, the target system comprising a digital signal processor having associated memory comprising plural addressable locations, said target system further having a reserved storage location designated as a vector address, said memory further storing a plurality of application programs, each application program having respective associated exception handler code, the method comprising: dynamically loading a stack to a reserved region of said memory; causing the vector address of said target system to point to said stack, whereby all said application programs use said stack for a particular exception; dynamically loading a library to said target system from said host system whereby said dynamically loaded library has an entry point at one of said plural addressable locations, wherein said library includes at least one routine needed for running at least one of said application programs; storing information indicative of the address of said one location at a reserved location in said stack; using said host system to start one of said application programs, whereby a running application identifies the need for said at least one routine; reading said vector address; using the contents of the vector address to access said stack; reading said reserved stack location to derive the entry point of said library to said one application program; and calling said at least one routine from said library, wherein said at least one routine comprises a communication routine enabling said host system and said target system to communicate.