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.
Key words
IDE /
RISC-V /
RAC102 /
GDB /
OpenOCD
{{custom_sec.title}}
{{custom_sec.title}}
{{custom_sec.content}}
References
[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.