
Research Article
A Low-Cost Semihosting Approach to Debug DSP Application
@INPROCEEDINGS{10.1007/978-3-031-34790-0_3, author={Tao Huang and Haoqi Ren and Zhifeng Zhang and Bin Tan and Jun Wu}, title={A Low-Cost Semihosting Approach to Debug DSP Application}, proceedings={Communications and Networking. 17th EAI International Conference, Chinacom 2022, Virtual Event, November 19-20, 2022, Proceedings}, proceedings_a={CHINACOM}, year={2023}, month={6}, keywords={DSP Semihosting GDB Embedded debugging}, doi={10.1007/978-3-031-34790-0_3} }
- Tao Huang
Haoqi Ren
Zhifeng Zhang
Bin Tan
Jun Wu
Year: 2023
A Low-Cost Semihosting Approach to Debug DSP Application
CHINACOM
Springer
DOI: 10.1007/978-3-031-34790-0_3
Abstract
Applications of digital signal processor (DSP) involve large amounts of data processing. In order to be able to improve the speed of DSP application development, it is necessary to be able to implement debugging functions that can support File I/O at a small cost of modification. This paper proposes a complete set of implementation methods of the semihosting debugging function on a DSP without an operating system, including hardware support and software algorithms. On hardware, this article adds only one self-trapping instruction to support semihosting debugging. In software, this article is based on the GDB File I/O extension protocol to design and implement the debugging agent software and C language library underlying file operations. And after optimizing library files and application source code, the I/O speed of the architecture can meet users’ debugging needs. This solution can realize the semihosting debugging function for DSP chip at a low cost and has good performance. Therefore, provides more powerful debugging functions for DSP application development. In assembly level debugging, observing the execution of each assembly instruction can also verify the instruction execution of the chip itself. The addition of file operation can greatly validate the chip with larger data.