swimteam

Members
  • Content Count

    12
  • Joined

  • Last visited

About swimteam

  • Rank
    Member

Profile Information

  • Gender
    Male
  • Location
    Tucson, AZ
  • Interests
    FPGA's, Swimming, Piano

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I have implemented the examples in Chapter 5 of The Zynq Book Tutorials. This has the audio IP. Works fine. I would like to create the IP from scratch. They give all the source files, but that does not tell how to create the IP. I believe it is using the AXI-Lite interface. I can follow the IP example from the Zynq Book tutorial for creating an IP but not sure if I will be able to create the audio IP so it's identical to the one provided. Anyone have any documentation about creating that audio IP? Thanks
  2. swimteam

    ZYBO Port Names Problem

    Implementing a AXI_GPIO gives a choice of the leds, buttons, switches or custom. For example, I select leds and everything is fine. However, when I select CUSTOM the port name is "gpio" or something like that shows up. I then have a commented out Master Constraint file and un-comment the "leds" and rename them to "gpio" same as in the block diagram. It fails place & route. The Zyno board was selected during the create project phase. It seems to me that if I have a constraint file - then that would override the other constraints (whereever they may be) that are being used. That's not what is happening. Anyone know why? My goal is to control the PORT names. I would like to name the ports to whatever and use a constraint file to assign the pin to that port.
  3. Never mind I found the problem. All is fine.
  4. Well, I should have read the manual first. It's also my fault too. I installed those before I started but they don't alter the Zynq processor frequency. I had to change that from 33.33 MHz to 50 MHz as suggested. Debugger immediately worked and even the UART worked. Those videos did not say anything about setting up the Zynq for your board. All they said was to set up the GPIO. Oh well, lesson learned. Thanks all for your suggestions and help, Swimteam
  5. Rainer: I owe you a cup of coffee. Those people who put those getting started video and even Xilinx tutorials videos really need to get some learning. They are sloppy.
  6. I'll do this first thing after work. I did not read anywhere that I have to configure the ZYBO! These easy start tutorials mention nothing about that. They simply say put the Zynq processor in the block design. Why the 50 MHz? Is that the oscillator on the board? Is that the fastest the ZYBO board can run? I read where the ARM cores can run at either 650 MHz or 450 MHz. I would like to know to understand these settings.
  7. Here is my entire code. It's only one file. /* Borrowed from ZynqBook Tutorials */ /* Include Files */ #include "xparameters.h" #include "xgpio.h" #include "xstatus.h" #include "xil_printf.h" /* Definitions */ #define GPIO_DEVICE_ID XPAR_AXI_GPIO_0_DEVICE_ID /* GPIO device that LEDs are connected to */ #define LED 0x03 /* Initial LED value - 00XX */ #define LED_DELAY 70000000 /* Software delay length */ #define LED_CHANNEL 1 /* GPIO port for LEDs */ #define printf xil_printf /* smaller, optimized printf */ XGpio Gpio; /* GPIO Device driver instance */ /* Main function. */ int main(void){ int Status; /* Execute the LED output. */ Status = LEDOutputExample(); if (Status != XST_SUCCESS) { xil_printf("GPIO output to the LEDs failed!\r\n"); } return 0; } int LEDOutputExample(void) { volatile int Delay; int Status; int led = LED; /* Hold current LED value. Initialize to LED definition */ int count = 0; /* GPIO driver initialization */ Status = XGpio_Initialize(&Gpio, GPIO_DEVICE_ID); if (Status != XST_SUCCESS) { return XST_FAILURE; } /*Set the direction for the LEDs to output. */ XGpio_SetDataDirection(&Gpio, LED_CHANNEL, 0x00); /* Loop forever blinking the LED. */ while (1) { /* Write output to the LEDs. */ XGpio_DiscreteWrite(&Gpio, LED_CHANNEL, led); /* Flip LEDs. */ //led = ~led; ++count; led = count & 0x03; /* Wait a small amount of time so that the LED blinking is visible. */ for (Delay = 0; Delay < LED_DELAY; Delay++); } return XST_SUCCESS; /* Ideally unreachable */ } The code runs OK. It's when I try to debug. It just says (running) all the time. If I suspend the assembly code is always a loop. I put another break-point in the LED code. Does NOT stop there. SDK does not recognize breakpoints. When it's suspended the address is always 0x00000008. Seems SDK is not getting past initialization with such a low PC address.
  8. Thanks for the thread. Clean the project? I'll try that tonight. I am using System Debugger. Not GDB. I also noticed that the pre_ps7_init box has to be checked. Otherwise, an error comes back as complains about the DDR. The post_ps7_,.. is not checked. On the Applications tab the reset box is checked and at the top Stop at Main is checked. One time I turned on all the power, board, computer etc and then ran Vivado and SDK and it did stop at main. So I know the debugger can do it. I tried duplicating all my steps but no luck.
  9. I am trying to debug an simple program for the ZYBO board. I cannot get the SDK (2016) debugger to stop at main. The configure file has the "stop at main" box checked. I have a breakpoint at "main." Anyone know what's wrong?
  10. That's an understatement. It took me two and one half days with 18 hours a day, reading the entire SDK manual, viewing Xilinx SDK YouTubes (actually worthless) to finally blink a silly led. I used a combination of two "easy" getting started ZYBO projects on the Internet. I just now have it working, blinking the 4 LED's. Now I have to find out why it works and get the UART to work. For your info, one cannot use the Xilinx Web installer to download and install Vivado 2016.4 and SDK. At least it doesn't work on my ZBook 15. So, one has to find what they call an "image." This is a 20 GigaByte file that has all of the software. Everything. One has to download that and then run the setup that was downloaded with it. Oh, I almost forgot. It took 5 hours to download on my HP ZBook 15! Thanks for taking the time to read my post. Swimteam
  11. There's nothing wrong with the baud rate. It's all automatic anyway. Beside I did an experiment. I pushed the PS button and the SDK Terminal showed the messages that were output. Only when it was done the that junk started to appear. That's positive proof the terminals are set up correctly.
  12. I have the ZYBO board. Using Vivado 2016.4 and SDK. I have followed the tutorial. The LED's work when the switch is on. The UART only shows garbage. I have tried the SDK Terminal, SDK Console, and Tera Term. All set up as stated. Anyone know what's wrong? Thanks, Swimteam