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.

[参考译文] RM46L852:CCSv12 -调试器在 main()上不't halt

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1191726/rm46l852-ccsv12---debugger-doesn-t-halt-on-main

器件型号:RM46L852
主题中讨论的其他器件:HALCOGEN

您好!

我使用的是 Code Composer Studio 版本12.2.0.00009、并且在我开始调试时、调试器永远不会在 main ()处停止。
程序只是像没有断点一样运行。  这种行为使调试初始化代码变得非常困难。

以下是我的设置配置:
 阅读了 FAQ 后,我认为这些会确保程序在 main ()停止。

是否有办法强制调试器考虑我的断点?

我在另一个线程中看到、脚本控制台可能会提供更多信息

JS:>eval ("Debug_DumpBreakpoints"()")

CortexR4: GEL Output: 	Memory Map Setup for Flash @ Address 0x0CortexR4: Breakpoint Manager Dump: Total Allocated Logical Breakpoints: 6

CortexR4: Breakpoint Manager Dump: Total Allocated Software Physical Breakpoints: 7

CortexR4: Breakpoint Manager Dump: Total Allocated Legacy Hardware Physical Breakpoints: 0

CortexR4: Breakpoint Manager Dump: Total Allocated 55 Hardware Physical Breakpoints: 0

CortexR4: Breakpoint Manager Dump: Total Allocated Thread Physical Breakpoints: 0

CortexR4: Breakpoint Manager Dump: 

CortexR4: Breakpoint Manager Dump: Enabled: 2

CortexR4: Breakpoint Manager Dump: 

CortexR4: Breakpoint Manager Dump: 	Hardware Configuration

CortexR4: Breakpoint Manager Dump: 		Location: 0x1d67c

CortexR4: Breakpoint Manager Dump: 	Debugger Response

CortexR4: Breakpoint Manager Dump: 		Condition: 

CortexR4: Breakpoint Manager Dump: 		Skip Count: 0

CortexR4: Breakpoint Manager Dump: 			Current Count: 0

CortexR4: Breakpoint Manager Dump: 		Action: Finish Auto Run

CortexR4: Breakpoint Manager Dump: 	Miscellaneous

CortexR4: Breakpoint Manager Dump: 		Group: Default Group

CortexR4: Breakpoint Manager Dump: 		Name: 

CortexR4: Breakpoint Manager Dump: 	Breakpoint set by the system

CortexR4: Breakpoint Manager Dump: 

CortexR4: Breakpoint Manager Dump: 	Hardware Configuration

CortexR4: Breakpoint Manager Dump: 		Location: C:\dev\fz\Example-Hercules-FreeRTOS\Debug/../source/sys_main.c, line 130 ("C:\dev\fz\Example-Hercules-FreeRTOS\Debug\mcu.out") (0x1d690)

CortexR4: Breakpoint Manager Dump: 	Debugger Response

CortexR4: Breakpoint Manager Dump: 		Condition: 

CortexR4: Breakpoint Manager Dump: 		Skip Count: 0

CortexR4: Breakpoint Manager Dump: 			Current Count: 0

CortexR4: Breakpoint Manager Dump: 		Action: Remain Halted

CortexR4: Breakpoint Manager Dump: 	Miscellaneous

CortexR4: Breakpoint Manager Dump: 		Group: Default Group

CortexR4: Breakpoint Manager Dump: 		Name: Breakpoint

CortexR4: Breakpoint Manager Dump: 	Breakpoint set by the user

CortexR4: Breakpoint Manager Dump: 

CortexR4: Breakpoint Manager Dump: Disabled: 4

CortexR4: Breakpoint Manager Dump: 

CortexR4: Breakpoint Manager Dump: 	Hardware Configuration

CortexR4: Breakpoint Manager Dump: 		Location: "C$$IOE$$"

CortexR4: Breakpoint Manager Dump: 	Debugger Response

CortexR4: Breakpoint Manager Dump: 		Condition: 

CortexR4: Breakpoint Manager Dump: 		Skip Count: 0

CortexR4: Breakpoint Manager Dump: 			Current Count: 0

CortexR4: Breakpoint Manager Dump: 		Action: Process CIO

CortexR4: Breakpoint Manager Dump: 	Miscellaneous

CortexR4: Breakpoint Manager Dump: 		Group: Default Group

CortexR4: Breakpoint Manager Dump: 		Name: 

CortexR4: Breakpoint Manager Dump: 	Breakpoint set by the system

CortexR4: Breakpoint Manager Dump: 

CortexR4: Breakpoint Manager Dump: 	Hardware Configuration

CortexR4: Breakpoint Manager Dump: 		Location: "C$$EXIT" (0x1e62e)

CortexR4: Breakpoint Manager Dump: 	Debugger Response

CortexR4: Breakpoint Manager Dump: 		Condition: 

CortexR4: Breakpoint Manager Dump: 		Skip Count: 0

CortexR4: Breakpoint Manager Dump: 			Current Count: 0

CortexR4: Breakpoint Manager Dump: 		Action: Terminate Program Execution

CortexR4: Breakpoint Manager Dump: 	Miscellaneous

CortexR4: Breakpoint Manager Dump: 		Group: Default Group

CortexR4: Breakpoint Manager Dump: 		Name: 

CortexR4: Breakpoint Manager Dump: 	Breakpoint set by the system

CortexR4: Breakpoint Manager Dump: 

CortexR4: Breakpoint Manager Dump: 	Hardware Configuration

CortexR4: Breakpoint Manager Dump: 		Location: "C$$IO$$"

CortexR4: Breakpoint Manager Dump: 	Debugger Response

CortexR4: Breakpoint Manager Dump: 		Condition: 

CortexR4: Breakpoint Manager Dump: 		Skip Count: 0

CortexR4: Breakpoint Manager Dump: 			Current Count: 0

CortexR4: Breakpoint Manager Dump: 		Action: Process CIO

CortexR4: Breakpoint Manager Dump: 	Miscellaneous

CortexR4: Breakpoint Manager Dump: 		Group: Default Group

CortexR4: Breakpoint Manager Dump: 		Name: 

CortexR4: Breakpoint Manager Dump: 	Breakpoint set by the system

CortexR4: Breakpoint Manager Dump: 

CortexR4: Breakpoint Manager Dump: 	Hardware Configuration

CortexR4: Breakpoint Manager Dump: 		Location: "C$$EXITE"

CortexR4: Breakpoint Manager Dump: 	Debugger Response

CortexR4: Breakpoint Manager Dump: 		Condition: 

CortexR4: Breakpoint Manager Dump: 		Skip Count: 0

CortexR4: Breakpoint Manager Dump: 			Current Count: 0

CortexR4: Breakpoint Manager Dump: 		Action: Terminate Program Execution

CortexR4: Breakpoint Manager Dump: 	Miscellaneous

CortexR4: Breakpoint Manager Dump: 		Group: Default Group

CortexR4: Breakpoint Manager Dump: 		Name: 

CortexR4: Breakpoint Manager Dump: 	Breakpoint set by the system

此致、
加布里埃尔

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

    尊敬的 Gabriel:

    进入调试模式后、您可以点击 断开目标 连接目标

    右键单击调试器即可看到此选项。

    --

    谢谢。此致、
    Jagadish。

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

     Jagadish、您好!

    感谢您的回答。

    测试完成后,它仍然不会在 main ()上停止。

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

    尊敬的 Gabriel:

    在进入实际调试 屏幕之前、您是否获得了"Loading Program Window"?

    --

    谢谢。此致、

    Jagadish。

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

    是的;我是这样做的。

    为清楚起见、我的断点是有效的。  
    不会在启动时进行。 我需要暂停程序、以便"注册"断点。

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

    这里是发生的事情的 gif 图片。

    如您所见、断点没有执行任何操作。

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

    尊敬的 Gabriel:

    此问题是仅发生在此特定项目还是发生在所有项目上?

    您是否尝试过诸如 LED 闪烁之类的 HALCoGen 简单示例项目?

    ..\Hercules_examples\LaunchPad\RM46L8\Project_0

    Hercules 示例/Hercules 示例- Hercules 处理器软件示例(TI.com)

    --

    谢谢。此致、
    Jagadish。

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

    Jagadish、您好!

    实际上,示例项目在 main ()停止,这正是我想要的。

    问题:示例项目设置与 我的一个项目是相同的。
    我可以看到示例项目与我的项目之间的唯一区别是使用 FreeRTOS……

    我迷路了。 调试器还有其他设置页面吗?

    此致、
    加布里埃尔

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

    尊敬的 Gabriel:

    您的 FreeRTOS 项目是从 HALCoGen 生成的吗?

    我怀疑时钟初始化可能无法正常进行。 所以、

    您是否可以将项目源代码包含在示例项目中并进行测试? 并使初始化与示例项目相同。

    --

    谢谢。此致、
    Jagadish。

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

    Jagadish、您好!

    您的 FreeRTOS 项目是从 HALCoGen 生成的吗?

    [/报价]

    是的、没错。

    我怀疑时钟初始化可能无法正确进行

    是什么让您认为它是时钟问题? 一切看起来都很好。
    我遇到的唯一问题是调试器无法在 main 上正确停止。

    您是否可以将项目源代码包含在示例项目中并进行测试? 并使初始化与示例项目相同。

    [/报价]

    测试已完成、似乎可以正常工作...  
    CCS 的配置似乎与我从头开始创建一个不同。

    您是否知道 CCS 将配置存储在文件中的什么位置(可能在.cproject 中)?  
    我们可以使用它们来比较这两者、而不是使用 GUI。

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

    尊敬的 Gabriel:

    您是否知道 CCS 在文件中的哪个位置存储配置(可能在.cproject 中)?  [/报价]

    我不知道、必须向内部团队核实这一点。

    您是否能够在调试配置中正确设置以下内容

    可以在"Run"菜单中找到"Debug configurations"选项

    --

    谢谢。此致、
    Jagadish。

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

    Jagadish、您好!

    你将在该线程的第一条消息中找到我的配置。
    您可以看到、配置似乎是相同的。

    目前、我将复制-粘贴用于创建新项目的 CCS 项目。
    它可以正常工作、但并不理想:当我的构建系统中没有"魔法"时、我感觉更加自信。

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

    尊敬的 Gabriel:

    您可以看到,配置似乎是相同的。

    是的、完全相同。

    您是否有可能分享您的整个非工作项目?  

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

    你好、Jagadish。


    现在、似乎可以复制-粘贴有效项目;我将关闭此线程。
    很抱歉给读这个线程的人;我没有为您提供解决方案。

    如果您发现其他问题、请告诉我。

    此致、
    加布里埃尔

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    现在,复制粘贴有效的项目似乎可以工作

    好的。

    请告诉我您是否找到其他内容。

    当然、我会的。