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.
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?
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
ret_val = Init(inUnion);
ret_val = Activate(inUnion);
ret_val = Open(inUnion);
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);
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?
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.
Thank for your reply
-yes i checked Link port register values after running the code
- 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
4. If possible probe the link port signals as well
- I will check
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.