- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello ,
I am modifying the ethernet example , but doesn't work .
perhaps there is a working example .
while (1)
{
if ( 0 != EmacGetFrameLength(&EMAC0) ) // Emac received data?
{
LwIPInputHandle(); // Lwip handle the received data
}
LwipPeriodHandle(); // Lwip clears ARP table every 5 second
if ( 0 != EmacGetFrameLength(&EMAC0) ) // Emac received data?
{
err = udp_bind(upcb, IP_ADDR_ANY, UDP_SERVER_PORT);
IP4_ADDR(&ip6,192,168,7,11);
pb = pbuf_alloc(PBUF_TRANSPORT, 512, PBUF_REF);
pb->payload = str;
pb->len = pb->tot_len = 512;
udp_connect(upcb, &ip6,5000);
udp_send(upcb, pb );
udp_disconnect(upcb);
pbuf_free( pb);
}
}
I would appreciate any comment.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please get started with FM4 based LwIP example available at: https://www.cypress.com/documentation/software-and-drivers/demonstrate-lwip-fm4-sk-fm4-176l-s6e2cc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please get started with FM4 based LwIP example available at: https://www.cypress.com/documentation/software-and-drivers/demonstrate-lwip-fm4-sk-fm4-176l-s6e2cc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks a lot!