TS201S EZ-KIT VDK ISR

Hi
           
Is any body is having idea how to can interrupts in VDK for using LinkPort  DMA.
I did test data communication using DMA in the LinkPorts,

referenced by example code "Producer_Consumer_MP" except for Multicore process & message.

when I sarted this code it did not enter the ISR function and driver open funtion.

I don't know What is problem.


with regards,

Nathan

Int_level_test2.zip
  • Hi Nathan,

                  I had gone through the code you have shared. I could not find the link port initialization code in the attached files. Have you verified on whether the link port transfers are happening in the system? I tested your code on the EZ-KIT, I can see that the link port registers are not initialized after running the code.

    Please share more details on your application requirements and the hardware details. Are you testing this code on the EZ-KIT or a custom board?

    Best Regards,

    Jeyanthi

  • Hi

    Thank you for your attend to the my linkport problem.

    I am Testing this code on the EZ-KIT

    According to the following Producer_Consumer_MP  example

    case VDK::kIO_Init:     

         ret_val = Init(inUnion);

         break;

    case VDK::kIO_Activate: 

         ret_val = Activate(inUnion);

         break;

    case VDK::kIO_Open:     

         ret_val = Open(inUnion);

         break;

    ...

    and

    int LinkPort::Init (const VDK::DispatchUnion &inUnion)

    {

    // Clear the flag bits

    m_readFlags  = 0;

    m_writeFlags = 0;

    // Create the deviceflags

    m_DevFlagRead  = VDK::CreateDeviceFlag();

    m_DevFlagWrite = VDK::CreateDeviceFlag();

    // Get the link number from the boot I/O object initializer

    m_linkNo = *((long *)inUnion.Init_t.pInitInfo);

    return 0;

    }

    so I think This Part is Initiation of Linkport .

    and procedure of Linport Driver in VDK is VDK::kIO_Init -> VDK::kIO_Open

    Where do i mistake about it?

    If I do not use VDK, I can use Link port in DMA mode. but I want to use LinkPort With VDK Based.

    Where Can i get useful Example Code about VDK?

    Best Regards,

    Nathan

  • Hi Nathan,

              Sorry for the delay in getting back on this. I have not tested the link port DMA codes using VDK based application any time. I have gone through your application code and it looks o.k. I will try to test this code on the EZ-KIT and see what happens.

    Mean time I will give you some suggestions to debug the problem from Link port point of view:

    1. Can you check for the Link port register values after running the code? Have the DMA started?

    2. Do you see any data words in the transmit/receive buffers?

    3. Are there any error conditions set?

    4. If possible probe the link port signals as well.

    Best Regards,

    Jeyanthi

  • Hi Jeyanthi

    Thank for your reply

    1. Can you check for the Link port register values after running the code? Have the DMA started?

    -yes i checked Link port register values after running the code

    2. Do you see any data words in the transmit/receive buffers?

    - I can transmited data using Lonk port based on VDK but when data receive, ISR routine did not activate and driver open function didn't called

    3. Are there any error conditions set?

    4. If possible probe the link port signals as well

    - I will check

     

    Best Regards,

    Nathan

  • Hi Nathan,

                 In your code if you are trying to communicate between the link ports of two DSPs you can also capture the Transmit buffer contents and the receive buffer contents and share the VDSP screenshots for the same.

    Best Regards,

    Jeyanthi