This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具与软件:
您好!
我正在尝试使多调试会话的启动过程自动化。 换句话说,我想 .out 连接到目标后自动加载的 UCD 器件文件。
我想、为了实现这一点、我需要对进行修改 GEL 因此我添加了以下代码:
OnTargetConnect()
{
GEL_Load ("c:\\mydir\\myfile.out"、"cpu_a"、"Emulator");
}
但是、未加载程序。
有什么建议吗?
谢谢!
大卫杜夫、您好!
您修改哪个 GEL 文件、mspm0_cs_dap_init.gel、device.gel、或者您手动设置的其他文件?
B.R.
SAL
首先我修改了 device.gel、然后我尝试使用一个自定义文件、其中我只编写上面的代码
谢谢。
我会将该线程转发给工具与编译器团队来获取 有关此主题的建议。
B.R.
SAL
我将在启动配置中执行此操作:
请参阅上一节中的第二个屏幕截图、了解将不同程序自动加载到多核调试会话的不同内核的示例。
谢谢
Ki
非常感谢您的建议。
现在、它按我所需的方式工作。 当我启动调试会话时、程序已加载到每个内核中、为调试做好准备。 不过、还有一个问题。 当我启动调试时、在 Debug Output 视图中、加载程序后每个内核都会看到以下消息:
CORTEX_M0P: Trouble Setting Breakpoint with the Action "Terminate Program Execution" at 0xa64e: (Error -1001 @ 0x0) Requested operation is not supported on this device. (Emulation package 20.0.0.3283) CORTEX_M0P: Breakpoint Manager: Retrying with a AET breakpoint CORTEX_M0P: Trouble Setting Breakpoint with the Action "Finish Auto Run" at 0x553c: (Error -1066 @ 0x553C) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 20.0.0.3283) CORTEX_M0P: Breakpoint Manager: Retrying with a AET breakpoint
尽管如此、调试仍然有效、但每次我添加断点时、即使断点工作正常、也会出现类似消息。
CORTEX_M0P: Trouble Setting Breakpoint with the Action "Remain Halted" at 0x5552: (Error -1066 @ 0x5552) Unable to set/clear requested breakpoint. Verify that the breakpoint address is in valid memory. (Emulation package 20.0.0.3283) CORTEX_M0P: Breakpoint Manager: Retrying with a AET breakpoint
这看起来调试器尝试在闪存中设置软件断点(不起作用)、然后切换到尝试使用硬件断点(我认为是成功的)。 这通常在未设置调试器存储器映射时发生。 调试器存储器映射通常在启动 GEL 文件中设置。 是否正确初始化了调试器存储器映射?