摘要
为了满足自研芯片配套集成开发环境的需求,自主设计了一套主要由Eclipse、GDB、OpenOCD组成的集成开发环境方案。进一步,选定RISC-V架构的RAC102芯片作为调试目标,在驱动适配和操作系统仿真的基础上,通过对GDB和OpenOCD进行定制化编译、调试和移植,实现了基于RISC-V架构的交叉调试系统。最后,在此方案实现的交叉调试系统中进行GDB调试命令以及对应远程通信协议的分析,在验证交叉调试系统功能正确性的同时,详细说明了各个调试命令对应的远程通信协议数据包集合。
Abstract
In order to meet the demand of integrated development environment for self-developed chips,a set of integrated development environment scheme composed of Eclipse,GDB and OpenOCD is designed.Further,RAC102 chip of RISC-V architecture is selected as the debugging target.On the basis of driver adaptation and operating system simulation,GDB and OpenOCD are customized compiled,debugging and ported,and a cross-debugging system based on RISC-V architecture is realized.Finally,the GDB debugging command and the corresponding remote serial protocol are analyzed in the cross-debugging system implemented by this scheme,and the corresponding remote serial protocol packet set of each debugging command is explained in detail while verifying the functional correctness of the cross-debugging system.
关键词
集成开发环境 /
RISC-V /
RAC102 /
GDB /
OpenOCD
Key words
IDE /
RISC-V /
RAC102 /
GDB /
OpenOCD
陈龙震, 徐康民, 徐天骅, 张铆.
RISCV架构的交叉调试系统设计[J]. 集成电路与嵌入式系统. 2023, 23(12): 15-18
Chen Longzhen, Xu Kangmin, Xu Tianhua, Zhang Mao.
Design of Cross Debugging Based on RISC-V Architecture[J]. Integrated Circuits and Embedded Systems. 2023, 23(12): 15-18
{{custom_sec.title}}
{{custom_sec.title}}
{{custom_sec.content}}
参考文献
[1] 董洪均.Eclipse CDT与gdb通信原理解析[J].福建电脑, 2011,27(3):50-66.
[2] 余梓奇,章建雄,马鹏,等.基于OpenOCD和DAP的嵌入式远程调试系统研究与设计[J].电子设计工程,2017,25(22):149-153.
[3] 盛建忠,王胜,张庆文.GDB RSP协议与USB通信在嵌入式调试系统中的应用[J].电子与封装,2013,13(3):43-48.
[4] 赵纪堂,耿锐,林广栋.GNU调试器中的远程通信协议深入解析[J].单片机与嵌入式系统应用,2022(5):30-38.
[5] Richard Stallman,Roland Pesch,Stan Shebs,et al.Debugging with GDB:The GNU Source-Level Debugger [M].10th ed,12th Media Services,2023.