Home › Forums › snickerdoodle › • Getting Started › Ravven Labs Blink Tutorial

Viewing 11 reply threads
  • Author
    Posts
    • notthat
      Participant
      Post count: 4

      I’m having a bit of difficulty getting a “hello world” going following the Ravven Labs tutorials and I’m hoping someone can help me out with it and nudge me in the right direction.

      Setup:

      • Snickerdoodle Black (rev 4.11/04)
      • breakyBreaky baseboard (rev 4.0)
      • Vivado 2020.1 (Windows 10)
      • Digilent JTAG-HS3

      What I’ve done so far…

      • I completed the first blink tutorial (Snickerdoodle Blink Hardware) where I took the provided ‘system.bit.bin’ file and placed it into the /snickerdoodle directory located on the SD card and performed the following commands via the onboard Linux terminal:
        • echo 0 > /sys/class/fpga_manager/fpga0/flags
        • cp system.bit.bin /lib/firmware
        • echo system.bit.bin > /sys/class/fpga_manager/fpga0/firmware
      • After following the Snickerdoodle Blink Hardware tutorial, the white LED on the Snickerdoodle blinked approximately 4 times per second. This corresponds nicely with Dr. Kaputa’s period of 25,000,000 for the clock divider (presuming 100MHz clock frequency).
      • I then moved on to the ‘Snick Meets Vivado and Blinks’ tutorial.
      • I followed the directions and connected the IP blocks as follows:
      • After making the block diagram and validating the design, I created an HDL wrapper and let Vivado manage the wrapper and auto-update.
      • I connect +3.3V and VIOA with the provided jumper for the respective bank on the breakyBreaky board and attached jumper wires to the output and ground pins within the same bank.
      • I then powered on the Snickerdoodle via USB connection.
      • I modified constraints.xdc accordingly for the pin I used as an output. For example, I used JA1.7 initially when following Dr. Kaputa’s tutorial:
        • ### JA1.7 (IO_L5N_T0_AD9N_35)
          set_property PACKAGE_PIN E19 [get_ports led]
          set_property IOSTANDARD LVCMOS33 [get_ports led]
      • After generating the bit stream I opened up the hardware manager and programmed the Snickerdoodle.
      • There are no errors when programming and the white LED changes to a heartbeat pattern.
      • No matter which pin I choose on the breakyBreaky board, I cannot view the signal on my oscilloscope.

      Things I have done to try and troubleshoot the issue:

      • I have verified my oscilloscope is working by hooking up another source to the probe.
      • I have checked that the Snickerdoodle is firmly and securely connected to the breakyBreaky board with each connection fully seated.
      • After programming the bitstream to the device, I have verified that the Linux system is still working via serial terminal.
      • I have verified with a multimeter that the jumpered +3.3V and VIOA pins of the respective bank do indeed read +3.3V relative to that bank’s ground pins.
      • I have picked random pins in banks JA1, JA2, JB1, and JB2 and modified contraints.xdc accordingly for each pin chosen – to no avail.

      I’m sort of at a loss where I might be screwing something up here and how I can troubleshoot this further to figure out why it’s just not working, so any tips or nudges in the right direction will be greatly appreciated.

      Thanks in advance for taking the time to read this!

    • Ryan Cousins
      Keymaster
      Post count: 343

      Sorry for the late reply… Can you confirm which snickerdoodle and piSmasher version you’re using? Should be shown on a little thermal sticker on the top side of the respective board. There are some minor differences with earlier versions of the hardware, so I just want to double check that before looking further into troubleshooting.

      -cousins

    • notthat
      Participant
      Post count: 4

      Hi Ryan – As mentioned in my original post, my setup is as follows:

      • Snickerdoodle Black (rev 4.11/04)
      • breakyBreaky baseboard (rev 4.0)
      • Vivado 2020.1 (Windows 10)
      • Digilent JTAG-HS3

      Also, I am using the breakyBreaky baseboard, not the piSmasher.

    • Ryan Cousins
      Keymaster
      Post count: 343

      Ah yes, sorry—I should have gone back to check the beginning of your post after I got to the end.

      One thing I’m confused by is you mention “After following the Snickerdoodle Blink Hardware tutorial, the white LED on the Snickerdoodle blinked approximately 4 times per second. This corresponds nicely with Dr. Kaputa’s period of 25,000,000 for the clock divider (presuming 100MHz clock frequency).”

      Which LED are you referring to here? The white LED should only breathe/heartbeat once a new bitstream is loaded, not rapidly blink. Or are you referring to an external LED?

      It’s a little hard to debug what’s going wrong here, as it doesn’t sound like there are any errors so it’s likely some very minor configuration issue.

      -Ryan

    • jasonnet
      Participant
      Post count: 30

      Ryan, notthat,

      As a point of information, I just followed the RavvenLabs “Workout” and “Snickerdoodle Blink Hardware” videos.  I did not hook up any wires.  I did use this bit.bin file, which the tutorial referenced:

      https://u.pcloud.link/publink/show?code=kZCij2kZYksNF4F3bWStVlBEMTGNYXKQ9TtV#folder=5138030423

      This resulted in the white LED displaying the heartbeat pattern.   I have not hooked up wires or oscilloscope, so I don’t have that info to share.

      I hope this helps.

      J.

       

    • notthat
      Participant
      Post count: 4

      Hi Ryan – As to your confusion where I mentioned that the LED was blinking approx. 4 times per second, it was the LED that displays the heartbeat. It blinked consistently on/off without the “breathing” effect. I mentioned the 25,000,000 because in the next tutorial, Dr. Kaputa shows how to modify the blink rate by changing the period (or counter) value in the provided Blink IP. The initial value that is shown is 25,000,000, so I am making an assumption that the system.bit.bin file in the this tutorial was based off of that example and that’s the value he had it set at.

      When I went to the next tutorial ‘Snick Meets Vivado and Blinks’ and attempted to upload the bitstream to Snickerdoodle, no matter what pin I chose to output the “LED” signal to, I couldn’t view it on my ‘scope. The white LED in this instance shows the expected heartbeat with the “breathing” effect.

      Maybe I have the clock setup wrong in my constraints? Which ZYNQ pin would you recommend using for the create_clock statement when using JA1.7 (E19) as the output pin?

    • Ryan Cousins
      Keymaster
      Post count: 343

      My apologies for not getting back to this sooner! You may have already resolved the issue, but one thing I wanted to confirm: Are you supplying a voltage to VCCO (JA1.3) on that I/O bank? If you’re ok with 3.3V, you can simply jumper VIO from pin JA1.1. That might be why you’re not seeing any activity on the intended output (JA1.7).

      If you’re still not getting any output, can you try connecting an ILA in Vivado? That would tell you if the issue is with the clock/reset…or if it’s more likely a ‘software problem.’

      -Ryan

    • elamericano
      Participant
      Post count: 2

      Hello,

      This is precisely the issue I am having as well.  I am using Snickerdoodle Black (rev 4.11/04).  I don’t think apysmasher or anything else should be required to blink an LED.

      I have followed this video instruction on Ravven website with the .tcl scripts to produce a system.bit.bin, transfer to snickerdoodle folder on FPGA, program FPGA.  Only the “breathing” white APP LED which is slowing turning on / off.  I am able to log in, (remote desktop and connect via USB)

      The Project from Ravven provides two blink sources (on E19/ B20).  One which is tunable, one which is not.  However, neither of the output pins provide any voltage.  I have expanded the number of IO in the constraints to no avail.  When I connect LED to 3.3V pin and GND, it works fine.

      There are no errors in Vivado, so I am not sure what can be the issue.  But in order to start any projects, this simple LED blink would need to work.

      Filezilla used to transfer system.bit.bin to FPGA.

      Flashing bit.bin to FPGA:
      echo 0 > /sys/class/fpga_manager/fpga0/flags
      cp system.bit.bin /lib/firmware
      echo system.bit.bin > /sys/class/fpga_manager/fpga0/firmware

      Please clarify if there is another “approach” or “workflow” or a known issue to resovle this.

       

      Thanks,

       

       

    • Ryan Cousins
      Keymaster
      Post count: 343

      The most common reason for this is the I/O bank isn’t being supplied a voltage.

      Assuming you’re also on JA1, are you supplying a voltage to VCCO (JA1.3) on that I/O bank? If you’re ok with 3.3V, you can simply jumper VIO from pin JA1.1.

      -Ryan

    • jasonnet
      Participant
      Post count: 30

      One word of warning:  The connector orientation is not consistent between the BreakyBreaky and the Snickerdoodle.    This can cause confusion and lead to one connecting the wrong pins.

      • Ryan Cousins
        Keymaster
        Post count: 343

        Ah yes…on the ‘old, old’ breakyBreakys (the first batch we ever ran), the 0.1″ headers were flipped around as I recall. The silkscreen should be right, but agreed this is very confusing. We’ve of course fixed this on subsequent builds and there is a note describing the mixing and matching of hardware revs:

        Warning: snickerdoodle rev 3 and earlier have +1.8V on J3 pin 1 and an unconnected J3 pin 3. Please confirm connections for J3 pin 1 and pin 3 prior to connection of external hardware. For use with snickerdoodle rev 3 and earlier, install a 0 ohm 0603 resistor at R3. For use with snickerdoodle rev 4 and later, a 0 ohm 0603 resistor can be installed at R2 if needed.

    • zoikablat
      Participant
      Post count: 4

      Hello everyone,

      I have been running into the same problem mentioned above. I want to output a pulse using a snickerdoodle black rev 4.11 on a breaky breaky rev 4.0. For this purpose I have made several projects in Vivado 2020.2 on Windows 10.

      My block design is this:

      the RTL block is the simple clock divider found in ravvenlabs tutorials.The output is then routed to E19 (JA1.7) and hooked up on a scope. We’re expecting a square pulse of 3.3V and a frequency of 1-2 Hz, depending on the counter settings and FCLK_CLK0 frequency.

      I manage through synthesis, implementation and bitstream generation without errors. I flash the code, I see the led “breathing” and then no signal output on the scope. Yes, I do provide the banks with 3.3 V. Actually, at the beginning my outputs were LVDS 2.5V (because eventually I will need the outputs for differential signalling) and even in that case I saw Vp-Vn =-0.8 approx, which stands for logical 0.

      So to me it looks like I power correctly the banks according to what I want the I/Os to be but then they’re not used by the fabric to output anything. Can somebody confirm that it is possible to output a clock from Zynq without the need for c code initialising the PS? I haven’t touched Vitis yet.

      Is it also possible to bypass completely the Zynq block and just work with the clock input from a clock pin, from where I could use simple clocking wizard to do the test? If yes, which are the clock pins used in Snickerdoodle black?

      Thanks in advance for any feedback.

      Kind regards,

      Zoe

       

    • Ryan Cousins
      Keymaster
      Post count: 343

      Hi Zoe,

      Sorry to hear you’re having issues. At first glance, it would seem that the clock isn’t being enabled. To answer your first question, you do need to initialize the clock in software (it’s controlled by PLLs and dividers/registers on the PS side). That should all be inserted into the initialization code automatically by Vivado based on your block diagram.

      On your second question, if you mean providing an external clock and bypassing the PS, that’s not something we’ve tried (I believe the PS has to boot on the Zynq 7000).

      Have you tried our ‘hello world’ Vitis example script? That might be the quickest/easiest way to get something immediately up and running with something to build off: https://github.com/krtkl/snickerdoodle-examples/tree/snickerdoodle-black-vitis-hello-world/snickerdoodle-black/snickerdoodle-black-vitis-hello-world

      Let me know how that goes or if you have luck after initializing the clock.

      -Ryan

Viewing 11 reply threads
  • You must be logged in to reply to this topic.