Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to transfer "Packet Buffer" from SDK (PS) to Vivado (PL) side? #6

Open
wSafwan opened this issue Aug 23, 2022 · 5 comments
Open

Comments

@wSafwan
Copy link

wSafwan commented Aug 23, 2022

I have successfully implemented this code on zedboard and monitored the packet over Wireshark. Now I want to process the packet on the PL side. Could you help me with how can I transfer the packet from PS to the PL side?

@delhatch
Copy link
Owner

delhatch commented Aug 23, 2022 via email

@delhatch
Copy link
Owner

delhatch commented Aug 23, 2022 via email

@wSafwan
Copy link
Author

wSafwan commented Aug 24, 2022

@delhatch
Thank You for Giving Me Your Valuable Time. 👍👍

@wSafwan
Copy link
Author

wSafwan commented Sep 26, 2022

Hi @delhatch ,
I have successfully implemented the Zynq_UDP by monitoring the packet over Wireshark (as I told earlier).
I have defined an array in "main.c" i.e. " volatile u8 packetBuffer[EthBytesReceived]; ".
I tried to copy the received udp packet to my packetBuffer[] using this command in "echo.c" i.e. "memcpy(packetBuffer, (u32*) p->payload, EthBytesReceived); "
But it is giving me an error on building project.

I would be very grateful to you if you help me in copying the incoming udp packet to my custom packetBuffer array.

@delhatch
Copy link
Owner

I'm not a C expert. Since you are receiving bytes, wouldn't you need to re-cast the pointer to u8 instead of u32?
Like: (u8*) instead of (u32*)
Maybe (uint8_t*) or (u8_t*), whatever the compiler understand.
I hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants