2169 views|2 replies

71

Posts

0

Resources
The OP
 

RISC-V MCU Development (V): Debug Configuration [Copy link]

In embedded development, in addition to compile configuration, the debugging configuration of the project also needs attention. For projects created with built-in chip project templates, MounRiver Studio (MRS) will automatically configure the relevant debugging parameters, while imported external projects require manual specification of some debugging configuration items. MRS supports specifying online debugging emulators such as GD-Link, WCH-Link, and JLink, setting preset breakpoints, configuration files, OpenOCD tools, GDB tools, and other debugging parameters.

How to obtain the latest MRS V1.51 installation package: www.mounriver.com .

[Create debug configuration] MRS debug configuration can be created in the following ways:

  1. The project created by the MRS template comes with a .launch configuration file.

  1. Click the Debug Configurations option on the toolbar to open the debug configuration page. Double-click the GDB OpenOCD Debugging menu item to create a debug configuration.

  1. After selecting the project, just right-click the menu "Debug As->OpenOCD Debug", MRS will create a default debugging configuration according to the corresponding target chip core and start debugging.

[ OpenOCD Tool] MRS will automatically specify the default OpenOCD tool based on the chip manufacturer corresponding to the current project . Users can also specify other local openocd.exe .

[Debug Port] Users can specify the GDB , Telnet , Tcl and other interfaces required to establish the debugging channel .

[ OpenOCD Configuration File] Users can specify the OpenOCD configuration file adapted to the chip corresponding to the target project .

[ GDB Configuration] is used to specify the local GDB executable file and debugging instructions.

[ GDB connection target] is used to specify the host name /IP address and port number for the GDB connection . The system initial configuration is used by default , and users can also modify it.

[Run Configuration] You can specify whether to enable rerun, continue running, and preset breakpoint positions.

[ SVD file] With the .svd file corresponding to the target project , you can view the detailed information of all peripheral registers of this type of chip during debugging.

[Debug simulator switching] MRS supports GD-Link , WCH-Link , JLink and other online simulators. For projects created with built-in project templates, MRS will automatically configure the corresponding debugger according to the current chip type. Users can also manually switch the configuration through the

button in the project resource area or the "Project->Select Debugger" option in the main menu .

This post is from MCU

Latest reply

openocd is too slow. According to what tbb said, try pyocd.   Details Published on 2021-9-29 17:25
 

1412

Posts

3

Resources
2
 

Thanks for sharing, great review

This post is from MCU
 
Personal signature

没有什么不可以,我就是我,不一样的烟火! 

 

7462

Posts

2

Resources
3
 

openocd is too slow. According to what tbb said, try pyocd.

This post is from MCU
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews

Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list