You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi everybody
I am working on a project that is writing a device driver for axi ethernet lite on CHIPYARD. Below is my main function used to run the ping application and also set the IP address for the FPGA board. There are 2 problems, the first is that I cannot execute the two functions lwip_init() and ping_init(), the second is that my device cannot receive the ip address as I set it.
If anyone has ever done an ethernet related project on CHIPYARD, please give me advice. Thank you very much.
`#include <stdio.h>
#include "lwip/init.h"
#include "lwip/netif.h"
#include "lwip/tcpip.h"
#include "lwip/dhcp.h"
#include "xemaclite.h" // Assuming this is the correct header for your Ethernet interface
#include "ping.h"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everybody
I am working on a project that is writing a device driver for axi ethernet lite on CHIPYARD. Below is my main function used to run the ping application and also set the IP address for the FPGA board. There are 2 problems, the first is that I cannot execute the two functions lwip_init() and ping_init(), the second is that my device cannot receive the ip address as I set it.
If anyone has ever done an ethernet related project on CHIPYARD, please give me advice. Thank you very much.
`#include <stdio.h>
#include "lwip/init.h"
#include "lwip/netif.h"
#include "lwip/tcpip.h"
#include "lwip/dhcp.h"
#include "xemaclite.h" // Assuming this is the correct header for your Ethernet interface
#include "ping.h"
// Network interface structure
static struct netif netif;
int main() {
printf("Check Main\n");
// Initialize the lwIP stack
#if!NO_SYS
tcpip_init(NULL, NULL);
printf("Check tcpip_init\n");
#else
lwip_init();
printf("Check lwip_init\n");
#if LWIP_DHCP
// Use DHCP to dynamically obtain network settings
dhcp_start(&netif);
#endif
}`
Beta Was this translation helpful? Give feedback.
All reactions