Hi there,
I am using TSE MAC and SGDMA to capture a network frame,i am facing a issue related to receive frame.
Let me first clear my receive flow.
1)open the SGDMA by "alt_avalon_sgdma_open".
2)Allocating Rx_descriptor table space from main memory(onchip memory) using malloc.
3)Build a receive descriptor to and allocate buffer for that.
4) Register the ISRs that will get called when each (full) transfer completes
5)Starting receive transfers
6)Blocking until the SGDMA interrupts fire
7)Verify the returned data and free up the data buffers
in the last step i compare my frame with my expected frame,if this frame is not matched then it return_code 1.
if i found return_code 1 then build new descriptor using goto statement as you can see in the attached file.
But when i jump to top and reallocate rx_descriptor table i found "Allocating the descriptor memory failed... exiting" error message in NIOS II console.
i simply want to do compare and re build the descriptor if frame is not valid.
i don't know whats going wrong,please help me.
Thanks & Regards,
Hitesh
I am using TSE MAC and SGDMA to capture a network frame,i am facing a issue related to receive frame.
Let me first clear my receive flow.
1)open the SGDMA by "alt_avalon_sgdma_open".
2)Allocating Rx_descriptor table space from main memory(onchip memory) using malloc.
3)Build a receive descriptor to and allocate buffer for that.
4) Register the ISRs that will get called when each (full) transfer completes
5)Starting receive transfers
6)Blocking until the SGDMA interrupts fire
7)Verify the returned data and free up the data buffers
in the last step i compare my frame with my expected frame,if this frame is not matched then it return_code 1.
if i found return_code 1 then build new descriptor using goto statement as you can see in the attached file.
But when i jump to top and reallocate rx_descriptor table i found "Allocating the descriptor memory failed... exiting" error message in NIOS II console.
i simply want to do compare and re build the descriptor if frame is not valid.
i don't know whats going wrong,please help me.
Thanks & Regards,
Hitesh