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.
工具/软件:Code Composer Studio
您好!
我尝试了很多东西、但无法完全为 ROV 启用 hwiLoad 和 swiLoad。 附件是显示的图片、在我认为会执行该操作的.cfg 条目下方。
请告知、
Robert
VAR Load = xdc.useModule ('ti.sysbios.utils.Load');
load.updateInIdle = true;
load.windowInms = 250;
load.taskEnabled = true;
load.swiEnabled = true;
load.hwiEnabled = true;
[引用 user="ToddMullanix"]您好、Robert、
是否还使用 LoggingSetup? 如果是、它的配置是什么? 我认为它可能会覆盖您的显式设置。
Todd
[/报价]
我是
VAR LoggingSetup = xdc.useModule ('ti.UIA.SysBIOS.LoggingSetup');
LoggingSetup.loadLoggerSize = 2048;
LoggingSetup.mainLoggerSize = 16384;
LoggingSetup.sysbiosLoggerSize = 16384;
LoggingSetup.loadLogging =真;
LoggingSetup.loadTaskLogging =真;
LoggingSetup.enableTaskProfiler =真;
LoggingSetup.benchmarkLogging = true;
LoggingSetup.sysbiosLogging = true;
LoggingSetup.sysbiosHwiLogging = true;
LoggingSetup.sysbiosHwiLoggingRuntimeControl = true;
Robert、
您能否尝试在运行时手动获取 CPU 负载。 运行一段时间并暂停后、您是否可以检查内存浏览器中的值?
#include uint32_t testCPULoad =(~0); void someTask() { testCPULoad = Load_getCPULoad(); }
ti.sysbios.utils.Load 文档中有一个标题为 cavoardes 的部分。 您能否验证这些情况是否适用于您?
谢谢、
Derrick
我将其设置为 false、我想这是 Load_getCPULoad 通常调用的方式
task.enableIdleTask = true
但是、当将其设置为 true 时、我现在会在运行时获得中止。 到目前为止、我在 BIOS 启动中跟踪到了 task.c 中的这一行
/*通过 ENTER()开始第一个任务*/
Task_SupportProxy_swap((ptr )&pingTask->context,
(ptr)&Task_module->curTask->context);
是否有方法在打开符号调试的情况下像这样构建 SYS-BIOS 文件、以便我可以获得更多信息?
Robert、
尝试在您的 application.cfg 中添加或修改以下代码。 这可能有助于在应用中止时获得更有意义的输出。
var text = xdc.useModule('xdc.runtime.Text'); /* 这些字符串放置在.const 段中。 将此参数设置为 * false 将节省.const 段中的空间。 错误、断言和日志消息 *将打印原始 ID 和 args、而不是格式化的消息。 * *选择一个: *- true (默认值) *此选项将测试字符串加载到.const 中以方便调试。 *- false *此选项可减小.const 占用空间。 // text.isLoaded = true;
谢谢、
Derrick
Robert、
非常好、我很高兴您能够解决您的问题。
Derrick