Cypress技术william hill官网
直播中

李巍

7年用户 1427经验值
私信 关注
[问答]

CYW943907AEVAL1F调试问题

你好
我开始使用CYW943907AEV1F工具,我遵循“CYW943907AEVA1F评估工具包用户指南”的说明。不过,调试过程中遇到了一些问题。我正在编写选项:
CITW943907AEVA1F.ADCULY测量CYW943907AEVAL1F FRESRTO-LWIP调试下载
我在Linux主机上。
在调试会话启动时,我从调试控制台获得以下内容:
[新线程- 1 ]
警告:当前语言与此帧不匹配。
81 LDR R10,= SysScTrLyInIyVal/*分配值为R10*/
我一启动调试会话就知道了。尽管如此,调试器转到了StasyGcc.s上的代码,我可以一步一步地通过代码。然后我把断点放到调用启动函数上,并执行到那个点。到目前为止一切都很好。
然后,在函数启动时,通过代码遍历需要永远,这是第二个问题。通常情况下应该是瞬时的。所以我跨过SkyStLip();
ApDistabyPrimulthIn();并进入主();
在主体()上,当我试图跨过这条线时
XTaskCube((TaskFoeStudit))SysMyRealOrthTraceRead主,“系统监视器”,SysSytRealOrthRead StaskyStsix/SsieOf(PotoStaskyType),NULL,RTOSHI-HESTESTHOLL优先级,以及SypSyMealOrthTraceRad句柄;
执行被卡住,这是,它从来没有超过函数,如果我打暂停,我得到的错误:
[新螺纹5474072 ]
在FD 9上检测到错误
远程通信错误。目标断开连接:资源暂时不可用。
退出
有人知道我为什么会这样吗?
当做。
曼努埃尔马拉贡

以上来自于百度翻译


     以下为原文
  Hello

I'm starting to use the CYW943907AEVAL1F tool and I followed the instructions on the "CYW943907AEVAL1F Evaluation Kit User Guide". Nevertheless, I'm having problems with the debug session. I'm compiling the options:
kits.CYW943907AEVAL1F.adc_measure-CYW943907AEVAL1F-FreeRTOS-LwIP-debug download
And I'm on a Linux host computer.


Upon debugging session launch I'm getting the following from the debug console:
[New Thread -1]
Warning: the current language does not match this frame.


81     LDR        r10, =SYS_CTRL_INIT_VAL /* Assign value to r10 */

I get that as soon as I launch the debug session. In spite of that, the debugger goes to the code on the start_GCC.S and I can single step through the code. Then I put a breakpoint on the call to the _start function and execute to that point. Everything fine so far.

Then, on the function _start, stepping over through the code takes forever, which is the second issue. Normally it should be instantaneous. So I step over _start_low( ); and
_start_platform_init( ); and go into main( );

On main( ), when I try to step over the line

xTaskCreate( (TaskFunction_t) system_monitor_thread_main, "system monitor", SYSTEM_MONITOR_THREAD_STACK_SIZE/sizeof( portSTACK_TYPE ), NULL, RTOS_HIGHEST_PRIORITY, &system_monitor_thread_handle);

The execution gets stuck, this is, it never steps over the function and if I hit pause I get the error:

[New Thread 5474072]
Error detected on fd 9
Remote communication error.  Target disconnected.: Resource temporarily unavailable.
Quit

Does anyone know why I am experiencing this?

Regards.

Manuel Malagon

回帖(5)

石俊梅

2018-12-5 14:43:14
你好,
可以通过在调试控制台中键入信息框或显示语言来了解所使用的语言。它将被设置为自动,在这种情况下,你可以忽略警告。由于依赖关系,一些API可能需要更长的时间。对于XTaskCube,你是在尝试进入还是跨过。跳过工作,但进入有时会引发同样的错误,你指出。我假设(如果我错了,请纠正我)进入XTaskCube(踢看门狗)可能会导致错误,因为WICE系统监视器线程周期性地踢/喂看门狗。可能是在你的应用程序试图重置它导致崩溃之前,看门狗已经被踢过了,可能处于某种中间状态。

以上来自于百度翻译


     以下为原文
  Hi,
 
The language that is used could be known by typing in info frame or show language in the debug console. It would be set to auto in which case you could ignore the warning. Stepping over some API's might take longer because of the dependencies. And for xTaskCreate, are you trying stepping into or stepping over. Stepping over works but stepping into sometimes throws the same error you pointed out. I assume that (correct me if i am wrong)Stepping into xTaskCreate(which kicks the watchdog) might throw up an error because the WICED System Monitor thread periodically kicks/feeds the watchdog . It might be the case that the watchdog had already been kicked and might be in some intermediate state before your application tries to reset it again leading to a crash.
举报

李巍

2018-12-5 15:02:28
引用: swanegong 发表于 2018-12-5 06:18
你好,
可以通过在调试控制台中键入信息框或显示语言来了解所使用的语言。它将被设置为自动,在这种情况下,你可以忽略警告。由于依赖关系,一些API可能需要更长的时间。对于XTaskCube,你是在尝试进入还是跨过。跳过工作,但进入有时会引发同样的错误,你指出。我假设(如果我错了,请纠正我)进入XTaskCube(踢看门狗)可 ...

发生在步进和进入XTaskCube中的VNAK都会创建错误。你能帮我知道如何才能禁用看门狗以便调试成功吗?

以上来自于百度翻译


     以下为原文
  vnak that happens both stepping over and stepping into xTaskCreate creates the error. Could you please help me know how I can disable the watchdog in order to debug successfully?
举报

石俊梅

2018-12-5 15:15:18
引用: huhuiyun 发表于 2018-12-5 06:37
发生在步进和进入XTaskCube中的VNAK都会创建错误。你能帮我知道如何才能禁用看门狗以便调试成功吗?

以上来自于百度翻译

您是否尝试在应用程序中使用宏WiDeDeDababl看门狗?

以上来自于百度翻译


     以下为原文
  Have you tried using the macro WICED_DISABLE_WATCHDOG in you application.
举报

李巍

2018-12-5 15:32:40
引用: swanegong 发表于 2018-12-5 06:50
您是否尝试在应用程序中使用宏WiDeDeDababl看门狗?

以上来自于百度翻译

我不知道我能做那件事。我在哪里指定?在什么文件里?
谢谢!

以上来自于百度翻译


     以下为原文
  vnak I didn't know I could do that. Where do I specify that? In what file?
 
Thanks!
举报

更多回帖

发帖
×
20
完善资料,
赚取积分