cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
huyongwei
Observer
Observer
5,353 Views
Registered: ‎04-09-2019

VDMA with TPG

Jump to solution

Hello,

    When I make an example with VDMA 、TPG、VTC and Video Out IP core。my system block is like this。just flow

QQ截图20190410104027.jpg

 

when I use SDK run the VDMA example (xaxivdma_example_intr.c),during I config VDMA core with the function int XAxiVdma_SetFrmStore(XAxiVdma *InstancePtr, u8 FrmStoreNum, u16 Direction);(in xaxivdma.h) 

------------------------------------------------------------------------------------------------------------------

int XAxiVdma_SetFrmStore(XAxiVdma *InstancePtr, u8 FrmStoreNum, u16 Direction)
{
XAxiVdma_Channel *Channel;

if(FrmStoreNum > InstancePtr->MaxNumFrames) {
return XST_FAILURE;
}

Channel = XAxiVdma_GetChannel(InstancePtr, Direction); // ERROR

if (!Channel) {
return XST_FAILURE;
}

if(XAxiVdma_ChannelIsRunning(Channel)) {
xdbg_printf(XDBG_DEBUG_ERROR, "Cannot set frame store..."
"channel is running\r\n");
return XST_FAILURE;
}

if (!(Channel->DbgFeatureFlags & XAXIVDMA_ENABLE_DBG_FRMSTORE_REG)) {
xdbg_printf(XDBG_DEBUG_ERROR,
"Frame Store Register is disabled\n\r");
return XST_NO_FEATURE;
}

XAxiVdma_WriteReg(Channel->ChanBase, XAXIVDMA_FRMSTORE_OFFSET,
FrmStoreNum & XAXIVDMA_FRMSTORE_MASK);

Channel->NumFrames = FrmStoreNum;

XAxiVdma_ChannelInit(Channel);

return XST_SUCCESS;

}

-----------------------------------------------------------------------------------------------------------

I get Channel with 0x19, mean  NULL.  Now how can I fix the problom?

Tags (2)
0 Kudos
Reply
1 Solution

Accepted Solutions
florentw
Moderator
Moderator
5,265 Views
Registered: ‎11-09-2015

HI @huyongwei ,

Do you have any updates on this? Were you able to solve your issue?

If your question is answered or your issue is solved, please kindly mark the response which helped as solution (click on "Accept as solution" button below the reply)

If this is not solved/answered, please reply in the topic giving more information on your current status.

Thanks and Regards,


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**

View solution in original post

0 Kudos
Reply
6 Replies
florentw
Moderator
Moderator
5,293 Views
Registered: ‎11-09-2015

Hi @huyongwei ,

Can you share your full project?

You might want to refer to some video series I wrote related to the VDMA, this might help:

Video Series 24: Using the AXI VDMA in Triple Buffer Mode

Video Series 25: Debugging issues on the AXI VDMA IP

Video Series 26: Examples of advanced uses of the AXI VDMA IP

Regards,


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
florentw
Moderator
Moderator
5,266 Views
Registered: ‎11-09-2015

HI @huyongwei ,

Do you have any updates on this? Were you able to solve your issue?

If your question is answered or your issue is solved, please kindly mark the response which helped as solution (click on "Accept as solution" button below the reply)

If this is not solved/answered, please reply in the topic giving more information on your current status.

Thanks and Regards,


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**

View solution in original post

0 Kudos
Reply
huyongwei
Observer
Observer
5,245 Views
Registered: ‎04-09-2019

Hello, @Moderator

Thanks for your reply, But my issue is'not be solved,Maybe the file xaxivdma_example_intr.c (API)can't be used in a baremetal system? Now I use Xli_IO.h for may VDMA's configuration. then everythings is going on well.

Thanks and Regards.

0 Kudos
Reply
florentw
Moderator
Moderator
4,107 Views
Registered: ‎11-09-2015

HI @huyongwei ,

xaxivdma_example_intr.c is for a baremetal application but you need to make sure the VDMA is properly connected (you have the interrupts connected properly in you HW).

Regards


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Reply
luoyanghero
Explorer
Explorer
1,282 Views
Registered: ‎11-24-2016

@florentw I meet the same question too. This is my question discription.

https://forums.xilinx.com/t5/Video/ZCU102-VDMA-test-failed/m-p/977233#M25453

0 Kudos
Reply
troublesig
Contributor
Contributor
1,099 Views
Registered: ‎08-15-2018
I have also encountered this problem. Is there a hardware project corresponding to vdma_example_intr.c?
0 Kudos
Reply