Categories

{{ selectedCategory.name }}

{{ topic.Title }} {{ topic.Ddate | formatDate }}

{{ topic.Content }}

No topics found!

winIDEA SDK: Create a breakpoint on a specific core

24-May-2024

To create a breakpoint on a specific core it's important to understand that each core needs its own instance of the Connection Manager and Breakpoint Controller.


Possible solution

To set a breakpoint on a specific core with a Python script, you have to:

1. Create a Connection Manager ConnectionMgr() instance for the secondary core, which you can achieve with launchCore1() called on the Connection Manager for the primary core.

2. Create CBreakpointController() instance with the secondary core Connection Manager.

3. Call setBP() with the created CBreakpointController().


Example:

import isystem.connect as ic
cfg = ic.CConnectionConfig()
connMgr = ic.ConnectionMgr()
connMgr.connect(cfg)  # this instance is connected to primary core

bpCtrl = ic.CBreakpointController(connMgr)
bpCtrl.setBP(10, "main0.c")	# set bp in primary core

connMgr1 = connMgr.launchCore1(1)  # this instance is connected to Core1
bpCtrl1 = ic.CBreakpointController(connMgr1)
bpCtrl1.setBP(11, "main1.c")	# set bp in Core1


More resources in winIDEA SDK User's Guide

Was this answer helpful?

Sorry this article didn't answer your question, we'd love to hear how we can improve it.
Note: This form won't submit a case. We'll just use it to make this article better.

Similar topics

{{ topic.Title }} {{ topic.Ddate | formatDate }}

{{ topic.Content }}

No similar topics found!

Other topics in the same category

{{ topic.Title }} {{ topic.Ddate | formatDate }}

{{ topic.Content }}

No topics found!