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.

ti sysbios 6.35 时,



8168开发调试时。

通过在CCS自带sysbios typical demo例程中增加random hough检测椭圆。

先预处理通过前景检测粗略定位椭圆区域,现运行3帧图像后,跳出下面失败。通过跟踪代码,在free图像时,内存释放出错,查找释放位置(0x80368FB8),没有发现问题的。

enter main()

enter taskFxn()

上两行为程序中“system_printf()”打印的内容,表示代码出错提前完成吗?具体错误如下:

“ti.sysbios.heaps.HeapMem: line 345: assertion failure: A_invalidFree: Invalid free xdc.runtime.Error.raise: terminating execution.”

各位大牛,请帮忙解决:

附错误提示中涉及的line 345代码:

    /*      *  Make sure the entire buffer is in the range of the heap.    

                    *  Note the obj->head.size never changes.    

                    *  The "- 1" is to handle the case were the buffer goes up    

                    *  the 0xFFFFFFFF. Without the "- 1", the buf + size is 0.    

                    *  This was done to address SDOCM00096968.      */   

                   Assert_isTrue((((UArg)newHeader >= (UArg)(obj->buf)) && ((UArg)newHeader + (size - 1) <=   (UArg)(obj->buf) + (obj->head.size - 1))), HeapMem_A_invalidFree);