• Content Count

  • Joined

  • Last visited

Reputation Activity

  1. Like
    Sophia_123 reacted to jpeyron in How to constraint the XADC to external pins   
    Hi @Sophia_123,
    Here is a xilinx forum question dealing with issues with debug_net.ltx. I did a compare between the xadc-demo for the zybo made for Vivado 2016.4 here and the code you provide above. You have made changes to the demo. I just ran the unchanged demo with no issue in Vivado 2016.4. I have attached a screen shot of waveforms as well as pictures of the zybo and Analog Discovery 2.  Have you been able to run the original demo in VIvado 2016.4?
  2. Like
    Sophia_123 reacted to [email protected] in Failed to simulate the BRAM test   
    I wasn't actually joking.
    I remember once, years ago, working with a partner who was struggling to get some code working.  He'd make changes--obvious ones like printf("I am here");--and recompile and nothing would change.  He'd then undo those changes, try something else, and the code would now print "I am here."  This created quite the frustrating evening, until we realized that he was editing on one computer, building on another, and the files were stored on a third computer/file server.  Once he switched to editing and building on the same computer, the strangeness went away.
    I've had the problem with Vivado as well.  Once I set the flag to copy my sources into my project, built it, didn't like it, edited the sources and none of my changes took.  I made more changes--no difference.  More changes, no difference.  It wasn't until sometime later that I discovered Vivado had copied my files into another directory that it was then using to build from.
    So ... I'm just asking, it might not be your problem--but it's worth double checking.
  3. Like
    Sophia_123 got a reaction from JColvin in How to get the data from lwip?   
    thanks for reply,I have got the data
  4. Like
    Sophia_123 reacted to JColvin in How to get the data from lwip?   
    Hi Sophia,
    I personally haven't used lwip, so I'm not able to directly answer your question, but I imagine (coming from more of a C++ based background where this sort of suggestion is fairly straightforward) you would want to first be able to collect the data from using lwip and then write it to BRAM. Here are a couple of places that I have found that discuss how they might get data from lwip (as opposed to just confirming it was received) here and here. Here is a Xilinx thread talking about how they would read and write data into BRAM; it's for a Spartan 3A, but I imagine that the guides that are referenced in that thread also exist for Zynq chips.
  5. Like
    Sophia_123 reacted to jpeyron in Testing echo server DHCP timeout   
    Hi Sophia,
    It looks like your question was answered here. please post back here it not.
    thank you,
  6. Like
    Sophia_123 reacted to debugasm in How to obtain the MAC address of Zybo   
    there are two cases one for "bare metal" one for "linux" :
    "bare metal"
    Add this code to FSL bootloader (this code from Digilent source), Zybo board have I2C eeprom that have unique MAC address:
    /****************************************************************************** * This function is the hook which will be called before the FSBL does a handoff * to the application. The user can add all the customized code required to be * executed before the handoff to this routine. * * @param None * * @return * - XST_SUCCESS to indicate success * - indicate failure * ****************************************************************************/ u32 FsblHookBeforeHandoff(void) { u32 Status; Status = XST_SUCCESS; /* * User logic to be added here. * Errors to be stored in the status variable and returned */ fsbl_printf(DEBUG_INFO,"In FsblHookBeforeHandoff function \r\n"); /* Read Out MAC Address */ { int Status; XIicPs Iic; XIicPs_Config *Iic_Config; XEmacPs Emac; XEmacPs_Config *Mac_Config; unsigned char mac_addr[6]; int i = 0; fsbl_printf(DEBUG_GENERAL,"Look Up I2C Configuration\n\r"); Iic_Config = XIicPs_LookupConfig(XPAR_PS7_I2C_0_DEVICE_ID); if(Iic_Config == NULL) { return XST_FAILURE; } fsbl_printf(DEBUG_GENERAL,"I2C Initialization\n\r"); Status = XIicPs_CfgInitialize(&Iic, Iic_Config, Iic_Config->BaseAddress); if(Status != XST_SUCCESS) { return XST_FAILURE; } fsbl_printf(DEBUG_GENERAL,"Set I2C Clock\n\r"); XIicPs_SetSClk(&Iic, 200000); mac_addr[0] = 0xFA; fsbl_printf(DEBUG_GENERAL,"Set Memory Read Address\n\r"); XIicPs_MasterSendPolled(&Iic, mac_addr, 1, 0x50); while(XIicPs_BusIsBusy(&Iic)); fsbl_printf(DEBUG_GENERAL,"Get Mac Address\n\r"); XIicPs_MasterRecvPolled(&Iic, mac_addr, 6, 0x50); while(XIicPs_BusIsBusy(&Iic)); fsbl_printf(DEBUG_GENERAL,"MAC Addr: "); for(i = 0; i < 6; i++) { fsbl_printf(DEBUG_GENERAL,"%02x ", mac_addr[i]); } fsbl_printf(DEBUG_GENERAL,"\n\r"); fsbl_printf(DEBUG_GENERAL,"Look Up Emac Configuration\n\r"); Mac_Config = XEmacPs_LookupConfig(XPAR_PS7_ETHERNET_0_DEVICE_ID); if(Mac_Config == NULL) { return XST_FAILURE; } fsbl_printf(DEBUG_GENERAL,"Emac Initialization\n\r"); Status = XEmacPs_CfgInitialize(&Emac, Mac_Config, Mac_Config->BaseAddress); if(Status != XST_SUCCESS){ return XST_FAILURE; } fsbl_printf(DEBUG_GENERAL,"Set Emac MAC Address\n\r"); Status = XEmacPs_SetMacAddress(&Emac, mac_addr, 1); if(Status != XST_SUCCESS){ return XST_FAILURE; } fsbl_printf(DEBUG_GENERAL,"Verify Emac MAC Address\n\r"); XEmacPs_GetMacAddress(&Emac, mac_addr, 1); if(Status != XST_SUCCESS){ return XST_FAILURE; } } return (Status); } "linux"
    To get actual MAC address
    zybo:~# ifconfig eth0 Link encap:Ethernet HWaddr 00:11:22:33:44:55 inet addr: Bcast: Mask: UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:333436242 errors:0 dropped:111 overruns:0 frame:0 TX packets:166776007 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:3075863808 (2.8 GiB) TX bytes:462587297 (441.1 MiB) Interrupt:54 Base address:0xb000 lo Link encap:Local Loopback inet addr: Mask: UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:432 errors:0 dropped:0 overruns:0 frame:0 TX packets:432 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:31127 (30.3 KiB) TX bytes:31127 (30.3 KiB) To set new MAC address
    zybo:~# ifconfig eth0 hw ether 00:11:22:33:44:55 I hope I was helpful.