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:
- The project created by the MRS template comes with a .launch configuration file.
- 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.
- 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 .