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.

dm642 ndk

Hi,

 I am interested in getting data and video streams off the dm642 over ethernet. I have an application which reads in images from a camera and processes them, this does not do any n/w communication. This runs fine. I added ndk to the project, initialized ndk, created n/w task, created and opened SCOM for passing messages from the video processing task to the n/w communication task.  For test purposes i was just using a unconnected udp socket to check the n/w communication ( from sample ndk application). Now the application runs sometime and sometime causes a software assertion either within few seconds or sometimes after few minutes.

Error message :

Assertion failed, (chan->status & 4), file vportcap.c, line 350

The network stdout is

Service Status: DHCPC    : Enabled  :          : 000
Service Status: DHCPC    : Enabled  : Running  : 000
Link Status: 100Mb/s Full Duplex on PHY 1
Network Added: If-1:10.0.0.110
Service Status: DHCPC    : Enabled  : Running  : 017

It sometimes reports MAC Address as 00-00-00-00-00-00

This unstable behaviour continues even if the network task is an empty loop ( sleep 5 sec) and nothing is being put into the SCOM queue. The application is setup to use the L2 cache (128K) with MAR128-143 register set as 0xFFFF.

I have inserted the read out from the DSP/BIOS kernel when the program execution gets halted due to the assertion at the end of the message. I would appreciate if anyone could suggest what additional settings I could try to check or any thing else I could try.

thanks ..

 

DSP/BIOS tool o/p follows


KNL

          Name, System Time, Start of Stack, Size of Stack, Stack Peak
           KNL,      24950,          0x81b8fc60,    0x1000,           0x300

TSK, -
        Name, Handle, State, Priority, Timeout, Time Remaining, Blocked On, Start of Stack, Size of Stack, Stack Peak
          NetTx,             0x8199cabc, Blocked, 7, 5219, 0, ,               0x8199bab0, 0x1000, 0x1a0
          DHCPclient,    0x8199d724, Blocked, 5, 303077, 278127, , 0x8199cb18, 0xc00, 0x204
          ConfigBoot,     0x8199ecac, Terminated, 15, 0, 0, ,             0x8199dca0, 0x1000, 0x1b8
          taskControl,    0x81b90fa4, Ready, 1, 0, 0, ,                        0x81b96e50, 0x400, 0x78
          Network_Main, 0x81b90f3c, Ready, 2, 0, 0, ,                       0x81b93000, 0x1400, 0x2d8
          tskLoopback,   0x81b90ed4, Running, 5, 0, 0, ,                   0x81b78860, 0x7d00, 0x6bc
         TSK_idle,         0x81b90e6c, Ready, 0, 0, 0, ,                       0x81b96a50, 0x400, 0x180
SWI, -
        Name, Handle, State, Priority, Mailbox Value, Function, arg0, arg1, Function Address
        KNL_swi, 0x81b97bf0, Inactive, 0, 0, KNL_run, 0x0, 0x0, 0x81b83380
       PRD_swi, 0x81b97bc4, Inactive, 1, 0, PRD_F_swi, 0x0, 0x0, 0x81b82120
MBX, -
       Name, Handle, # Tasks Pending, Tasks Pending, # Tasks Blocked Posting, Tasks Posting, # Msgs, Max Msgs, Msg Size, Mem Segment
       mbxProcess, 0x81b97b70, 0, , 0, , 1, 5, 20, .data
SEM, -
      Name, Handle, Count, # Tasks Pending, Tasks Pending
       0x814BC7CC, 0x814bc7cc, 0x0, 0,
       0x8199BA8C, 0x8199ba8c, 0x0, 0,
       0x8199ED0C, 0x8199ed0c, 0x0, 0,
       0x8199ED34, 0x8199ed34, 0x1, 0,
       0x8199EE64, 0x8199ee64, 0x2, 0, 
       0x81A7FEE4, 0x81a7fee4, 0x0, 0,
       0x81AFFF2C, 0x81afff2c, 0x0, 0,
MEM, -
      Name, Largest Free Block, Free Mem, Used Mem, Total Size, Start Address, End Address, Mem Segment
      .data, 0x10277e0, 0x12ba938, 0x8456c8, 0x1b00000, 0x80000000, 0x81afffff, 0
BUF, -
SIO, -
DEV, -
      Name, Device ID, Type, Stream, Device Function, Device Parameters
      VP2DISPLAY, 0x2 (C62_rier), IOM_Fxns, 0x81b88cd8, VPORTDIS_Fxns, 0x81b89654
     VP1CAPTURE, 0x1 (GBL_ENABLEINST), IOM_Fxns, 0x81b868d8, VPORTCAP_Fxns, 0x81b895d0
     VP0CAPTURE, 0x0 (RTDX_USERTEXECUTION), IOM_Fxns, 0x81b86418, VPORTCAP_Fxns, 0x81b895d0