arjun.a
rename files
6c7b14a
Ticket Name: TDA2E: TDA2 network_rx issue
Query Text:
Part Number: TDA2E Other Parts Discussed in Thread: TDA2 Hello, I am using the TDA2 board with PROCESSOR_SDK_RADAR_03_07_00_00 and running the usecase for TI Cascade Radar. Using this use case i want to send the FFT2D samples, The size of the FFT2D samples are x*y*16*2(Int32 words) now when i run the network_rx.exe i saw following error. To check when this error comes i debug the IPU1_1 code and saw following things in NetworkTxLink_drvSendData: 1 . dataFormat is showing as SYSTEM_DF_BAYER_BGGR (Not sure what this means) 2 . The cmdHeader looks ok, Here the data size is correct x*y*16(Rx Channels)*8(Real & Imag of each 32 bits) cmdHeader struct <unnamed> {numBuf=1,header=0,payloadType=8,chNum=0,dataSize=16777216...} 0x8621C8F0 numBuf unsigned int 1 0x8621C8F0 header unsigned int 0 0x8621C8F4 payloadType unsigned int 8 0x8621C8F8 chNum unsigned int 0 0x8621C8FC dataSize unsigned int x*y*16*4*2 0x8621C900 width unsigned int 2048 0x8621C904 height unsigned int 256 0x8621C908 pitch unsigned int[2] [16384,16384] 0x8621C90C [0] unsigned int 16384 0x8621C90C [1] unsigned int 16384 0x8621C910 3 . Than in NetworkTxLink_drvWriteHeader when we tries to write Network_write in line number 207 than network_rx.exe throws the above mentioned error. 4. Afterwards in the NetworkTxLink_drvSendData line 532 i saw ack = 255 and than status was set to SYSTEM_LINK_STATUS_EFAIL in line 534. I guess the network_rx.exe cannot handle the packet where the header says packet size is more than 1920*1080*2. So i tried to compile a new network_rx.exe and followed the steps mentioned in section 1.1 of VisionSDK_UserGuide_NetworkTools.docx and then run "gmake Makefile all" and it crashes c:/CodeBlocks/MinGW/bin/gcc -c -Wall -IC:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build/../common/inc -I../inc -I../priv -I. -IC:/PROCESSOR_SDK_RADAR_03_07_00_00/ti_components/networking/nsp_gmacsw_4_16_01_01/packages -IC:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build/../common/inc -I../inc -I../priv -I. -IC:/PROCESSOR_SDK_RADAR_03_07_00_00/ti_components/networking/nsp_gmacsw_4_16_01_01/packages network_cons_main.c network_cons_thr_win32.c -M > MAKEFILE.DEPEND make[4]: Leaving directory `C:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/network_cons/src' make[3]: Leaving directory `C:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build' make[2]: Leaving directory `C:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build' "C:/Program Files (x86)/GnuWin32/bin/make.exe" libs make[2]: Entering directory `C:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build' "C:/Program Files (x86)/GnuWin32/bin/make.exe" -fMAKEFILE.MK -CC:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build/../common/src MODULE=common make[3]: Entering directory `C:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/common/src' common: Compiling network_api.c c:/CodeBlocks/MinGW/bin/gcc -c -Wall -O3 -IC:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build/../common/inc -I../inc -I../priv -I. -IC:/PROCESSOR_SDK_RADAR_03_07_00_00/ti_components/networking/nsp_gmacsw_4_16_01_01/packages -IC:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build/../common/inc -I../inc -I../priv -I. -IC:/PROCESSOR_SDK_RADAR_03_07_00_00/ti_components/networking/nsp_gmacsw_4_16_01_01/packages -oC:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build/../lib/obj/common//network_api.o network_api.c make[3]: *** [network_api.o] Error 1 make[3]: Leaving directory `C:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/common/src' make[2]: *** [libs] Error 2 make[2]: Leaving directory `C:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build' make[1]: *** [exe] Error 2 make[1]: Leaving directory `C:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build' gmake: *** [Makefile:27: all] Error 2 Also i see one popup coming up Can someone tell if my assumption with network_rx.exe is correct and how to compile this exe
Responses:
Hi Deepak, If you have made the changes as per mentioned in the UserGuide to the .mk files, the build should pass through, unless you have a compile error, which I don't see in your log. I am also not able to see the image files you have attached. I have only tried the network tools build in Linux. I see that you are using windows. Can you try with the gmake that comes with the XDC package anyways? Instead of the GnuWin32 one you have used. You should be able to find it under /ti_components/os_tools/windows/xdctools*/gmake Regards, Anand
Hello Anand, I change the Gmake to the one in xdctools and still sees the same issue. point to be noted is i don't have changed any code till now. gmake[4]: Entering directory `C:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/network_cons/src' network_cons: Making Directories, if not already created mkdir -p C:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build/../lib// mkdir -p C:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build/../lib/obj/network_cons/ mkdir -p C:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build/../bin/ network_cons: Building dependancies c:/CodeBlocks/MinGW/bin/gcc -c -Wall -IC:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build/../common/inc -I../inc -I../priv -I. -IC:/PROCESSOR_SDK_RADAR_03_07_00_00/ti_components/networking/nsp_gmacsw_4_16_01_01/packages -IC:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build/../common/inc -I../inc -I../priv -I. -IC:/PROCESSOR_SDK_RADAR_03_07_00_00/ti_components/networking/nsp_gmacsw_4_16_01_01/packages network_cons_main.c network_cons_thr_win32.c -M > MAKEFILE.DEPEND gmake[4]: Leaving directory `C:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/network_cons/src' gmake[3]: Leaving directory `C:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build' gmake[2]: Leaving directory `C:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build' "C:/PROCESSOR_SDK_RADAR_03_07_00_00/ti_components/os_tools/windows/xdctools_3_32_01_22_core/gmake.exe" libs gmake[2]: Entering directory `C:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build' "C:/PROCESSOR_SDK_RADAR_03_07_00_00/ti_components/os_tools/windows/xdctools_3_32_01_22_core/gmake.exe" -fMAKEFILE.MK -CC:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build/../common/src MODULE=common gmake[3]: Entering directory `C:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/common/src' common: Compiling network_api.c c:/CodeBlocks/MinGW/bin/gcc -c -Wall -O3 -IC:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build/../common/inc -I../inc -I../priv -I. -IC:/PROCESSOR_SDK_RADAR_03_07_00_00/ti_components/networking/nsp_gmacsw_4_16_01_01/packages -IC:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build/../common/inc -I../inc -I../priv -I. -IC:/PROCESSOR_SDK_RADAR_03_07_00_00/ti_components/networking/nsp_gmacsw_4_16_01_01/packages -oC:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build/../lib/obj/common//network_api.o network_api.c gmake[3]: *** [network_api.o] Error 1 gmake[3]: Leaving directory `C:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/common/src' gmake[2]: *** [libs] Error 2 gmake[2]: Leaving directory `C:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build' gmake[1]: *** [exe] Error 2 gmake[1]: Leaving directory `C:/PROCESSOR_SDK_RADAR_03_07_00_00/vision_sdk/apps/tools/network_tools/build' gmake: *** [Makefile:27: all] Error 2 Is it possible can you give me new network_rx.exe compiled at yours end by increasing the MAX_BUF_SIZE to some big value as i expect the data to be x*y*16*2 (int 32 words) where current limit is around 2*1920*1080 Thanks Deepak Joshi
Hello, The TI documentation is not complete, after lot of digging was able to figure out you need a particular version of CodeBlock and in all other version it will not work. and now have a stream of data
Hi Deepak, I ran into data offset overflow error in network_rx. I rebuilt this code in Ubuntu tool chain but is not working. What CodeBlock version exactly have you use to rebuilt network_rx that made it work? My problem was it streams for a while and then ran into overflown problem. Thanks for the help. Regards, --Khai
Hello Khai, you need codeblock version 13.12 and there it works for me. Regards Deepak Joshi