嵌入式开发者社区

标题: tcp_client+upp通讯错误问题 [打印本页]

作者: 70010x    时间: 2016-12-23 16:54
标题: tcp_client+upp通讯错误问题
程序涉及一个Upp硬件中断,两个任务线程,upp传输和tcp链接,tcp链接和传输任务优先级高于upp,没有任务休眠,程序运行后自动停止出现如图错误,没有找到解决的方法,望指点。如图[attach]1748[/attach]

作者: 70010x    时间: 2016-12-26 10:37
补充:console里的提示说硬件中断部分有问题:
ti.sysbios.family.c64p.Hwi: line 190: E_alreadyDefined: Hwi already defined: intr# 6
ti.sysbios.family.c64p.Hwi: line 265: E_handleNotFound: Hwi handle not found: 0xc00000f8
xdc.runtime.Error.raise: terminating execution

作者: Lewis    时间: 2016-12-26 11:29
UPP的中断号换一个
作者: 70010x    时间: 2016-12-26 13:27
Lewis 发表于 2016-12-26 11:29
UPP的中断号换一个

怎么讲?这个应该是固定的吧? 94
作者: Lewis    时间: 2016-12-26 13:50
6号cpu 主机中断已经被网口占用了,换一个
作者: 70010x    时间: 2016-12-26 15:09
Lewis 发表于 2016-12-26 13:50
6号cpu 主机中断已经被网口占用了,换一个

恩,改过了,错误变成了缓存的问题,我给你截两张图,你帮我看看。[attach]1749[/attach][attach]1750[/attach][attach]1751[/attach]
Description        Resource        Path        Location        Type
Cache settings were changed in user configuration. User configuration options will override platform settings. Check your memory map to make sure that Cache does not conflict with your L1/L2 memory placement. To avoid conflicts between L1/L2 memory and cache, we recommended specifying cache sizes along with memory sizes in a platform package.        app.cfg        /TCP_Client        ti.sysbios.family.c64p.Cache        XDCTools Configuration Marker



作者: 70010x    时间: 2016-12-26 15:12
Lewis 发表于 2016-12-26 13:50
6号cpu 主机中断已经被网口占用了,换一个

[attach]1753[/attach]

作者: Lewis    时间: 2016-12-26 16:09
这个不一定是缓存的问题,造成这种现象的情况比较多,检查一下数组访问有没有越界,读写数组是不是超出的数组的范围。
作者: 70010x    时间: 2016-12-26 16:21
嗯,检查过了,没有指针越界,和读写超过数组范围。
作者: 70010x    时间: 2016-12-26 16:22
Lewis 发表于 2016-12-26 16:09
这个不一定是缓存的问题,造成这种现象的情况比较多,检查一下数组访问有没有越界,读写数组是不是超出的数 ...


嗯,检查过了,没有指针越界,和读写超过数组范围。
作者: 70010x    时间: 2016-12-26 17:25
Lewis 发表于 2016-12-26 16:09
这个不一定是缓存的问题,造成这种现象的情况比较多,检查一下数组访问有没有越界,读写数组是不是超出的数 ...

问题已经解决,谢谢工程师Lewis
1.硬件中断问题
2.未创建开关量却访问开关量的相关参数,导致了内存使用错误。




欢迎光临 嵌入式开发者社区 (https://www.51ele.net/) Powered by Discuz! X3.4