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.

[参考译文] MSPM0G3519:在多调试会话 CCS V20中自动加载程序

Guru**** 2220740 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1475341/mspm0g3519-automatic-load-program-in-multi-debug-session-ccs-v20

器件型号:MSPM0G3519

工具与软件:

您好!

我正在尝试使多调试会话的启动过程自动化。 换句话说,我想 .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

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    [quote userid="640040" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1475341/mspm0g3519-automatic-load-program-in-multi-debug-session-ccs-v20我正在尝试自动执行多调试会话的启动过程。 换句话说,我想 .out 连接到目标后要自动加载的文件。

    我将在启动配置中执行此操作:

    https://software-dl.ti.com/ccs/esd/documents/users_guide_ccs/ccs_debug-main.html#launch-configurations

    请参阅上一节中的第二个屏幕截图、了解将不同程序自动加载到多核调试会话的不同内核的示例。

    谢谢

    Ki  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    非常感谢您的建议。

    现在、它按我所需的方式工作。 当我启动调试会话时、程序已加载到每个内核中、为调试做好准备。 不过、还有一个问题。 当我启动调试时、在 Debug Output 视图中、加载程序后每个内核都会看到以下消息:

    Fullscreen
    1
    2
    3
    4
    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
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    尽管如此、调试仍然有效、但每次我添加断点时、即使断点工作正常、也会出现类似消息。

    Fullscreen
    1
    2
    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
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    这看起来调试器尝试在闪存中设置软件断点(不起作用)、然后切换到尝试使用硬件断点(我认为是成功的)。 这通常在未设置调试器存储器映射时发生。 调试器存储器映射通常在启动 GEL 文件中设置。 是否正确初始化了调试器存储器映射?