你好:
最近在调试6678的srio,调试ti提供的pdk_c6678_1_1_2_5中exampleprojects中SRIO_Lookbacktestproject例程时出现如下许多错误:
#137 struct "Srio_AppManagedCfg" has no field "rxDescSize" srio_drv.c /SRIO_LoopbackTestProject line 1615 C/C++ Problem
#137 struct "Srio_AppManagedCfg" has no field "srioPktDmaTxPrio" srio_drv.c /SRIO_LoopbackTestProject line 1743 C/C++ Problem
#137 struct "Srio_AppManagedCfg" has no field "srioPktDmaTxPrio" test_main.c /SRIO_LoopbackTestProject line 934 C/C++ Problem
#137 struct "Srio_AppManagedCfg" has no field "txQueueNum" srio_drv.c /SRIO_LoopbackTestProject line 1765 C/C++ Problem
#137 struct "Srio_AppManagedCfg" has no field "txQueueNum" test_main.c /SRIO_LoopbackTestProject line 931 C/C++ Problem
#137 struct "Srio_AppManagedCfg" has no field "txQueueNum" test_main.c /SRIO_LoopbackTestProject line 949 C/C++ Problem
#20 identifier "SRIO_MAX_CACHE_ALIGN" is undefined srio_drv.c /SRIO_LoopbackTestProject line 1099 C/C++ Problem
#20 identifier "SRIO_MAX_CACHE_ALIGN" is undefined test_main.c /SRIO_LoopbackTestProject line 133 C/C++ Problem
#20 identifier "SRIO_MAX_CACHE_ALIGN" is undefined test_multicore.c /SRIO_LoopbackTestProject line 112 C/C++ Problem
#20 identifier "Srio_Opt_DIO_READ_SOCK_COMP_CODE" is undefined srio_drv.c /SRIO_LoopbackTestProject line 3572 C/C++ Problem
#20 identifier "Srio_PktDma_Prio_Low" is undefined test_main.c /SRIO_LoopbackTestProject line 934 C/C++ Problem
#20 identifier "SRIO_TYPE11_HW_ASSIGNED_LETTER_VALUE" is undefined srio_drv.c /SRIO_LoopbackTestProject line 550 C/C++ Problem
#20 identifier "SRIO_TYPE11_HW_ASSIGNED_LETTER_VALUE" is undefined srio_drv.c /SRIO_LoopbackTestProject line 2257 C/C++ Problem
#20 identifier "SRIO_TYPE11_HW_ASSIGNED_LETTER_VALUE" is undefined test_nonblocking.c /SRIO_LoopbackTestProject line 574 C/C++ Problem
#20 identifier "SRIO_TYPE11_RX_ACCEPT_ALL_MBOX_VALUE" is undefined srio_drv.c /SRIO_LoopbackTestProject line 552 C/C++ Problem
#20 identifier "SRIO_TYPE11_RX_ACCEPT_ALL_MBOX_VALUE" is undefined srio_drv.c /SRIO_LoopbackTestProject line 2249 C/C++ Problem
出现许多no field和undefined,这是例程有问题吗?如果是的话,该如何解决?
我的环境:
ccs5.1 compiler v7.4.2 tmdxevm6678l
pdk_c6678_1_1_2_5中exampleprojects里面其他关于srio的例程也有类似错误。
SurfaceBook:
第一,ccs是否安装正确。
第二,可以尝试将ccs更新至最新版本。
第三,编译器的版本。
user1871791:
楼主需要设置包含的路径是否正确?
楼主使用例程是否添加了评估板所要求的源文件?
建议楼主在原来文件夹中编译和调试程序,并添加好文件路径
fuming bai:
回复 user1871791:
我是直接安装的套件,然后直接加载的例程,这样也有问题,该添加文件?试了很多库、头文件,搞不定,可能是哪个文件呢?求指教。