

- Segger embedded studio trouble linking how to#
- Segger embedded studio trouble linking code#
- Segger embedded studio trouble linking Bluetooth#
To debug using ST-Link GDB Server, open the project options and set: ST-Link GDB Server Embedded Studio project settings If another port should be used, change the project option as well as the command line option -port. The default connection is "localhost" on port 2331. The default GDB Server Command Line is "$(JLinkDIR)/JLinkGDBServerCL" -device "$(DeviceName)" -silent.

The GDB Server Command Line is used to start J-Link GDB Server.įor the installation path the macro $(JLinkDir) can be used.Īdditionally at least the device name need to be set and if necessary the target connection needs to be configured via command line optoions.
Segger embedded studio trouble linking how to#

Segger embedded studio trouble linking code#
The monitor code consists of the following parts: So technically, the CPU is still running and executing code while the application itself is halted, allowing it to still handle some interrupts as well as some synchronous maintenance operation that can be done within the monitor code. In contrast to halt mode debugging, in monitor mode debugging the target CPU does not halt on a debug request but takes a debug interrupt instead and jumps to a specific debug interrupt handler which then handles the communication with J-Link and also some low-level application maintenance that may be needed to be done while the application is halted. Monitor mode debugging allows the developer to debug in this scenario, too. to become totally unresponsive, so packets cannot be received anymore, even keep-alive packets etc.
Segger embedded studio trouble linking Bluetooth#
Monitor mode debugging allows the Bluetooth "keep-alive" interrupt(s) to run and handle the low-level Blutetooth communication while the rest of the application is halted and can be debugged.
