<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0"
 xmlns:blogChannel="http://backend.userland.com/blogChannelModule"
>

<channel>
<title><![CDATA[Dobrica Pavlinušić's random unstructured stuff: FPGA]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?action=weblog_display;category=FPGA</link>
<description></description>
<pubDate>Mon, 24 Jan 2022 11:37:27 -0000</pubDate>
<webMaster>root@saturn.ffzg.hr</webMaster>
<generator>Socialtext Workspace v2.19.0.2</generator>

<item>
<title><![CDATA[OrangeCrab]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?orangecrab</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: FPGA</div><hr/><div class="wiki">
<p>
<a target="_blank" title="(external link)" href="https://gregdavill.github.io/OrangeCrab/">https://gregdavill.github.io/OrangeCrab/</a></p>
<p>
<a target="_blank" title="(external link)" href="https://github.com/gregdavill/OrangeCrab">https://github.com/gregdavill/OrangeCrab</a></p>
<pre>
[Mon Sep 14 13:46:12 2020] usb 2-2.3: new full-speed USB device number 8 using xhci_hcd
[Mon Sep 14 13:46:12 2020] usb 2-2.3: New USB device found, idVendor=1209, idProduct=5af0, bcdDevice= 1.01
[Mon Sep 14 13:46:12 2020] usb 2-2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[Mon Sep 14 13:46:12 2020] usb 2-2.3: Product: OrangeCrab r0.2 DFU Bootloader v3.1
[Mon Sep 14 13:46:12 2020] usb 2-2.3: Manufacturer: GsD

</pre>
<br /><h1 id="microwatt_with_linux_on_orangecrab">Microwatt with Linux on OrangeCrab</h1>
<p>
<a target="_blank" title="(external link)" href="https://codeconstruct.com.au/docs/microwatt-orangecrab/">https://codeconstruct.com.au/docs/microwatt-orangecrab/</a></p>
<pre>
⦗OSS CAD Suite⦘ dpavlin@klin:/klin/FPGA/microwatt$ make microwatt.bit 2&gt;&amp;1 | tee ~/tmp/build1.txt

</pre>
</div>
]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>FPGA</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?orangecrab</guid>
<pubDate>Mon, 24 Jan 2022 11:37:27 -0000</pubDate>
</item>
<item>
<title><![CDATA[cfu-playground]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?cfu_playground</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: FPGA</div><hr/><div class="wiki">
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#video">Dobrica Pavlinušić's random unstructured stuff (video)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] video} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#git">Dobrica Pavlinušić's random unstructured stuff (git)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] git} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#ulx3s_board">Dobrica Pavlinušić's random unstructured stuff (ulx3s board)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] ulx3s board} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#build">Dobrica Pavlinušić's random unstructured stuff (build)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] build} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#sumulation">Dobrica Pavlinušić's random unstructured stuff (sumulation)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] sumulation} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#boot_over_serial_using_network">Dobrica Pavlinušić's random unstructured stuff (boot over serial using network)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] boot over serial using network} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#host_with_ulx3s_connected">Dobrica Pavlinušić's random unstructured stuff (host with ulx3s connected)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] host with ulx3s connected} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#machine_running_litex">Dobrica Pavlinušić's random unstructured stuff (machine running litex)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] machine running litex} --></span></li>
</ul></ul></ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="video">video</h1>
<ul>
<li><a target="_blank" title="(external link)" href="https://www.youtube.com/watch?v=_1yrxrl61o4">https://www.youtube.com/watch?v=_1yrxrl61o4</a></li>
<li><a target="_blank" title="(external link)" href="https://www.youtube.com/watch?v=kRTs6B-kEOE">https://www.youtube.com/watch?v=kRTs6B-kEOE</a></li>
</ul>
<h1 id="git">git</h1>
<pre>
dpavlin@klin:/klin/FPGA/CFU-Playground$ git remote -v
origin  https://github.com/google/CFU-Playground.git (fetch)
origin  https://github.com/google/CFU-Playground.git (push)
dpavlin@klin:/klin/FPGA/CFU-Playground$ git submodule init
dpavlin@klin:/klin/FPGA/CFU-Playground$ git submodule update
</pre>
<br /><h1 id="ulx3s_board">ulx3s board</h1>
<p>
<a target="_blank" title="(external link)" href="https://github.com/litex-hub/litex-boards/blob/master/litex_boards/targets/radiona_ulx3s.py">https://github.com/litex-hub/litex-boards/blob/master/litex_boards/targets/radiona_ulx3s.py</a></p>
<pre>
dpavlin@klin:/klin/FPGA/CFU-Playground$ find . -name radiona_ulx3s.py
./third_party/python/litex_boards/litex_boards/targets/radiona_ulx3s.py
./third_party/python/litex_boards/litex_boards/platforms/radiona_ulx3s.py
# edit fpga settings here
dpavlin@klin:/klin/FPGA/CFU-Playground$ vi ./third_party/python/litex_boards/litex_boards/targets/radiona_ulx3s.py
</pre>
<br /><p>
modifications for 85F <span class="nlw_phrase"><a href="https://saturn.ffzg.hr/rot13/index.cgi/litex-85f.diff?action=attachments_download;page_name=cfu_playground;id=20210722074538-0-29873">litex-85f.diff</a><!-- wiki: {file: litex-=85f.diff} --></span></p>
<h1 id="build">build</h1>
<p>
you really need riscv64 toolchain from <a target="_blank" title="(external link)" href="https://github.com/sifive/freedom-tools/releases/tag/v2020.04.0-Toolchain.Only">https://github.com/sifive/freedom-tools/releases/tag/v2020.04.0-Toolchain.Only</a></p>
<pre>
dpavlin@klin:/klin/FPGA/CFU-Playground/proj$ cat build.sh
#!/bin/sh -xe

echo https://github.com/google/CFU-Playground

export PATH=/opt/riscv64-unknown-elf-gcc-8.3.0-2020.04.1-x86_64-linux-ubuntu14/bin/:$PATH
export TARGET=radiona_ulx3s
export UART_SPEED=115200
time make prog load
</pre>
<br /><h2 id="sumulation">sumulation</h2>
<pre>
dpavlin@klin:/klin/FPGA/CFU-Playground/proj/avg_pdti8$ time make PLATFORM=sim load -j 4
</pre>
<br /><h2 id="boot_over_serial_using_network">boot over serial using network</h2>
<h3 id="host_with_ulx3s_connected">host with ulx3s connected</h3>
<p>
root@pihdmi:/home/pi# socat /dev/ttyUSB0,b115200,raw,echo=0 TCP:10.60.0.92:2003</p>
<h3 id="machine_running_litex">machine running litex</h3>
<p>
dpavlin@klin:/klin/FPGA/CFU-Playground/proj/hps_accel$ socat TCP-LISTEN:2003 PTY,link=ttyV2,raw</p>
<ol>
<li>re-run terminal with new virtal ttyV2</li>
</ol>
<pre>
dpavlin@klin:/klin/FPGA/CFU-Playground/proj/hps_accel$ /klin/FPGA/CFU-Playground/soc/bin/litex_term --speed 115200  --serial-boot --kernel /klin/FPGA/CFU-Playground/proj/hps_accel/build/software.bin ttyV2

litex&gt; serialboot
Booting from serial...
Press Q or ESC to abort boot completely.
sL5DdSMmkekro
[LXTERM] Received firmware download request from the device.
[LXTERM] Uploading /klin/FPGA/CFU-Playground/proj/hps_accel/build/software.bin to 0x40000000 (1313688 bytes)...
[LXTERM] Upload complete (9.9KB/s).
[LXTERM] Booting the device.
[LXTERM] Done.
Executing booted program at 0x40000000

--============= Liftoff! ===============--
Hello, World!
</pre>
</div>
<hr/><div>Attachments: litex-85f.diff</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>FPGA</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?cfu_playground</guid>
<pubDate>Fri, 03 Dec 2021 20:24:27 -0000</pubDate>
</item>
<item>
<title><![CDATA[Colorlight 5A-75B]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?colorlight_5a_75b</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: FPGA</div><hr/><div class="wiki">
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#links">Dobrica Pavlinušić's random unstructured stuff (links)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] links} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#chubby75">Dobrica Pavlinušić's random unstructured stuff (chubby75)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] chubby75} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#original_protocol">Dobrica Pavlinušić's random unstructured stuff (original protocol)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] original protocol} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#replace_level_shifters_to_get_input">Dobrica Pavlinušić's random unstructured stuff (replace level shifters to get input)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] replace level shifters to get input} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#chiselwatt">Dobrica Pavlinušić's random unstructured stuff (chiselwatt)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] chiselwatt} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#litex">Dobrica Pavlinušić's random unstructured stuff (litex)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] litex} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#fpga_pin_mapping">Dobrica Pavlinušić's random unstructured stuff (fpga pin mapping)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] fpga pin mapping} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#fpga_images">Dobrica Pavlinušić's random unstructured stuff (fpga images)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] fpga images} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><p>
Board version: v7.0</p>
<ul>
<li>Lattice ECP5 <tt>LFE5U-25F-6BG256C</tt> (<a target="_blank" title="(external link)" href="https://www.latticesemi.com/Products/FPGAandCPLD/ECP5">product page<!-- wiki-renamed-hyperlink "product page"<https://www.latticesemi.com/Products/FPGAandCPLD/ECP5> --></a>)</li>
<li>Winbond <tt>25Q32JVSIQ</tt>, 32 Mbits SPI flash (<a target="_blank" title="(external link)" href="https://github.com/q3k/chubby75/blob/master/5a-75b/datasheets/w25q32jv_spi_revc_08302016.pdf">datasheet<!-- wiki-renamed-hyperlink "datasheet"<https://github.com/q3k/chubby75/blob/master/5a=-75b/datasheets/w25q32jv_spi_revc_08302016.pdf> --></a>)</li>
<li>2x Broadcom <tt>B50612D</tt> Gigabit Ethernet PHYs (<a target="_blank" title="(external link)" href="https://github.com/q3k/chubby75/blob/master/5a-75b/datasheets/B50610-DS07-RDS.pdf">datasheet<!-- wiki-renamed-hyperlink "datasheet"<https://github.com/q3k/chubby75/blob/master/5a=-75b/datasheets/B50610=-DS07=-RDS.pdf> --></a>)</li>
<li>2x ESMT <tt>M12L16161A-5T</tt> 1M x 16bit 200MHz SDRAMs (organized as 1M x 32bit) (<a target="_blank" title="(external link)" href="https://github.com/q3k/chubby75/blob/master/5a-75b/datasheets/M12L16161A.pdf">datasheet<!-- wiki-renamed-hyperlink "datasheet"<https://github.com/q3k/chubby75/blob/master/5a=-75b/datasheets/M12L16161A.pdf> --></a>)</li>
<li>12x <tt>74HC245T</tt> Octal Bidirectional Transceiver (used for level translation to 5V)</li>
</ul>
<span class="nlw_phrase"><img alt="cl-5a-75b-v70-front-800.jpg" src="https://saturn.ffzg.hr/rot13/index.cgi/cl-5a-75b-v70-front-800.jpg?action=attachments_download;page_name=colorlight_5a_75b;id=20200218155036-4-19247" /><!-- wiki: {image: cl-=5a-=75b-=v70-=front-=800.jpg} --></span><br /><br /><h1 id="links">links</h1>
<ul>
<li><a target="_blank" title="(external link)" href="https://hackaday.com/2020/01/24/new-part-day-led-driver-is-fpga-dev-board-in-disguise/">https://hackaday.com/2020/01/24/new-part-day-led-driver-is-fpga-dev-board-in-disguise/</a></li>
</ul>
<h2 id="chubby75">chubby75</h2>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/q3k/chubby75/tree/master/5a-75b">https://github.com/q3k/chubby75/tree/master/5a-75b</a></li>

<ul>
<li>upstream: <a target="_blank" title="(external link)" href="https://github.com/tomverbeure/chubby75/tree/5a-75b/5a-75b">https://github.com/tomverbeure/chubby75/tree/5a-75b/5a-75b</a></li>
<li>upstream for v7 board: <a target="_blank" title="(external link)" href="https://github.com/miek/chubby75/blob/5a-75b-v7_pinout/5a-75b/hardware_V7.0.md">https://github.com/miek/chubby75/blob/5a-75b-v7_pinout/5a-75b/hardware_V7.0.md</a></li>
</ul></ul>
<h2 id="original_protocol">original protocol</h2>
<ul>
<li>send data to original fpga image: <a target="_blank" title="(external link)" href="https://github.com/FalconChristmas/fpp/blob/master/src/channeloutput/ColorLight-5a-75.cpp">https://github.com/FalconChristmas/fpp/blob/master/src/channeloutput/ColorLight-5a-75.cpp</a></li>
</ul>
<h2 id="replace_level_shifters_to_get_input">replace level shifters to get input</h2>
<ul>
<li><a target="_blank" title="(external link)" href="https://twitter.com/edu_arana/status/1231466891354525698">https://twitter.com/edu_arana/status/1231466891354525698</a></li>
</ul>
<p>
<a target="_blank" title="(external link)" href="https://twitter.com/Claude1079/status/1231194849350647808">https://twitter.com/Claude1079/status/1231194849350647808</a></p>
<p>
&nbsp;SN74CBT3245APW 8bit bidirectional FET switches<br />
QS3245QG</p>
<span class="nlw_phrase"><img alt="colorLight5A-75b.jpg" src="https://saturn.ffzg.hr/rot13/index.cgi/colorLight5A-75b.jpg?action=attachments_download;page_name=colorlight_5a_75b;id=20200223103108-0-7620" /><!-- wiki: {image: colorLight5A-=75b.jpg} --></span><br /><br /><h2 id="chiselwatt">chiselwatt</h2>
<p>
<a target="_blank" title="(external link)" href="https://github.com/antonblanchard/chiselwatt/commit/5a7fcbc8142ed2b390e1f8bfaaa801fe09a60351">https://github.com/antonblanchard/chiselwatt/commit/5a7fcbc8142ed2b390e1f8bfaaa801fe09a60351</a></p>
<p>
UART RX is on J19, labelled key+ on the silk screen on the back<br />
UART TX is on J1, pin 1.</p>
<p>
LOCATE COMP &quot;clock&quot; SITE &quot;P6&quot;;</p>
<p>
LOCATE COMP &quot;io_tx&quot; SITE &quot;F3&quot;;<br />
LOCATE COMP &quot;io_rx&quot; SITE &quot;M13&quot;;</p>
<h1 id="litex">litex</h1>
<p>
basic example of litex on colorLight 5A-75B based on fpga_101/lab004</p>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/trabucayre/litexOnColorlightLab004/">https://github.com/trabucayre/litexOnColorlightLab004/</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/NiklasFauth/colorlight-led-cube">https://github.com/NiklasFauth/colorlight-led-cube</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/ghent360/riscvOnColorlight-5A-75B">https://github.com/ghent360/riscvOnColorlight-5A-75B</a></li>
</ul>
<h1 id="fpga_pin_mapping">fpga pin mapping</h1>
<p>
<a target="_blank" title="(external link)" href="https://twitter.com/adamgreig/status/1297255957320421383">https://twitter.com/adamgreig/status/1297255957320421383</a></p>
<p>
I don't want to load a new image onto this totally blind, so I used the prjtrellis tools (<a target="_blank" title="(external link)" href="https://github.com/YosysHQ/prjtrellis/">https://github.com/YosysHQ/prjtrellis/</a>) to write a script (<a target="_blank" title="(external link)" href="https://github.com/adamgreig/cl/blob/master/pins.py">https://github.com/adamgreig/cl/blob/master/pins.py</a>) which works out input/output/bidi for all pins used in any ECP5 bitstream. It found only one unused pin...</p>
<p>
<a target="_blank" title="(external link)" href="https://github.com/adamgreig/cl/blob/master/pins.py">https://github.com/adamgreig/cl/blob/master/pins.py</a></p>
<h1 id="fpga_images">fpga images</h1>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/suglover/5a-75x-images">https://github.com/suglover/5a-75x-images</a></li>
<li>ecpprog (FTDI jtag probe): <a target="_blank" title="(external link)" href="https://github.com/gregdavill/ecpprog">https://github.com/gregdavill/ecpprog</a></li>
</ul>
</div>
<hr/><div>Attachments: cl-5a-75b-v70-front-800.jpg, colorLight5A-75b.jpg</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>FPGA</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?colorlight_5a_75b</guid>
<pubDate>Wed, 30 Sep 2020 11:01:57 -0000</pubDate>
</item>
<item>
<title><![CDATA[FPGA]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?fpga</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: FPGA</div><hr/><div class="wiki">
<p>
List of useful (to me) FPGA resources:</p>
<h1 id="books">Books</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.freerangefactory.org/site/pmwiki.php/Main/Books">http://www.freerangefactory.org/site/pmwiki.php/Main/Books</a> (read all three of them, first two are VHDL)</li>
</ul>
<h1 id="tools">Tools</h1>
<ul>
<li>The ideal software tool to write, simulate and synthesize your VHDL code. <a target="_blank" title="(external link)" href="https://code.google.com/p/boot-vhdl/">https://code.google.com/p/boot-vhdl/</a></li>
</ul>
<h1 id="projects">Projects</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://hamsterworks.co.nz/mediawiki/index.php/Main_Page">http://hamsterworks.co.nz/mediawiki/index.php/Main_Page</a> (great projects)</li>
<li>FPGA-BASED USB INTERFACE <a target="_blank" title="(external link)" href="http://www.xess.com/projects/FPGA-USB-V2/readmeusb-v2.php">http://www.xess.com/projects/FPGA-USB-V2/readmeusb-v2.php</a></li>
<li>How-to debug internal FPGA Logic with the $50 Openbench Logic Sniffer. <a target="_blank" title="(external link)" href="http://logicsniffer.gadgetfactory.net/index.php?n=LogicSniffer.DebugAnFPGA">http://logicsniffer.gadgetfactory.net/index.php?n=LogicSniffer.DebugAnFPGA</a></li>
<li><a target="_blank" title="(external link)" href="http://www.kickstarter.com/projects/1575992013/logi-fpga-development-board-for-raspberry-pi-beagl">http://www.kickstarter.com/projects/1575992013/logi-fpga-development-board-for-raspberry-pi-beagl</a></li>

<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/fpga-logi">https://github.com/fpga-logi</a></li>
</ul>
<li>FPGA Arithmetic the way it should be <a target="_blank" title="(external link)" href="http://flopoco.gforge.inria.fr/">http://flopoco.gforge.inria.fr/</a></li>
<li><a target="_blank" title="(external link)" href="http://www.asics.ws/">http://www.asics.ws/</a></li>
<li>RGB video input for Altera DE1 board + PAL Modulator <a target="_blank" title="(external link)" href="https://github.com/svofski/videoconditioner">https://github.com/svofski/videoconditioner</a></li>
</ul>
<ul>
<li><a target="_blank" title="(external link)" href="https://blackmesalabs.wordpress.com/2016/12/22/sump2-100-msps-32bit-logic-analyzer-for-icoboardraspberrypi/">https://blackmesalabs.wordpress.com/2016/12/22/sump2-100-msps-32bit-logic-analyzer-for-icoboardraspberrypi/</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/fpga-logi">https://github.com/fpga-logi</a></li>
</ul>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                <a href="/rot13/index.cgi?action=weblog_display;category=FPGA">Recent Changes in Tag FPGA</a>
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<br /><ul>
<li><span class="nlw_phrase"><a title="inter-workspace link: rot13" href="https://saturn.ffzg.hr/rot13/index.cgi?orangecrab">OrangeCrab</a><!-- wiki: {link: [OrangeCrab]} --></span></li>
<li><span class="nlw_phrase"><a title="inter-workspace link: rot13" href="https://saturn.ffzg.hr/rot13/index.cgi?cfu_playground">cfu-playground</a><!-- wiki: {link: [cfu-=playground]} --></span></li>
<li><span class="nlw_phrase"><a title="inter-workspace link: rot13" href="https://saturn.ffzg.hr/rot13/index.cgi?colorlight_5a_75b">Colorlight 5A-75B</a><!-- wiki: {link: [Colorlight 5A-=75B]} --></span></li>
<li><span class="nlw_phrase"><a title="inter-workspace link: rot13" href="https://saturn.ffzg.hr/rot13/index.cgi?fpga">FPGA</a><!-- wiki: {link: [FPGA]} --></span></li>
<li><span class="nlw_phrase"><a title="inter-workspace link: rot13" href="https://saturn.ffzg.hr/rot13/index.cgi?x300_dongle">X300 dongle</a><!-- wiki: {link: [X300 dongle]} --></span></li>
<li><span class="nlw_phrase"><a title="inter-workspace link: rot13" href="https://saturn.ffzg.hr/rot13/index.cgi?altera">Altera</a><!-- wiki: {link: [Altera]} --></span></li>
<li><span class="nlw_phrase"><a title="inter-workspace link: rot13" href="https://saturn.ffzg.hr/rot13/index.cgi?ov7670">OV7670</a><!-- wiki: {link: [OV7670]} --></span></li>
<li><span class="nlw_phrase"><a title="inter-workspace link: rot13" href="https://saturn.ffzg.hr/rot13/index.cgi?ulx2s">ULX2S</a><!-- wiki: {link: [ULX2S]} --></span></li>
<li><span class="nlw_phrase"><a title="inter-workspace link: rot13" href="https://saturn.ffzg.hr/rot13/index.cgi?papilio">Papilio</a><!-- wiki: {link: [Papilio]} --></span></li>
<li><span class="nlw_phrase"><a title="inter-workspace link: rot13" href="https://saturn.ffzg.hr/rot13/index.cgi?proxmark">Proxmark</a><!-- wiki: {link: [Proxmark]} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {tag_list: FPGA}
--></div><br /></div>
]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>FPGA</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?fpga</guid>
<pubDate>Sat, 14 Jan 2017 11:13:39 -0000</pubDate>
</item>
<item>
<title><![CDATA[X300 dongle]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?x300_dongle</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: FPGA</div><hr/><div class="wiki">
<br /><div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#x300_dongle">Dobrica Pavlinušić's random unstructured stuff (X300 dongle)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] X300 dongle} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#jtag">Dobrica Pavlinušić's random unstructured stuff (JTAG)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] JTAG} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#svf_programming">Dobrica Pavlinušić's random unstructured stuff (SVF programming)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] SVF programming} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#vhdl_to_toggle_pins">Dobrica Pavlinušić's random unstructured stuff (VHDL to toggle pins)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] VHDL to toggle pins} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#rj45">Dobrica Pavlinušić's random unstructured stuff (RJ45)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] RJ45} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#ps2">Dobrica Pavlinušić's random unstructured stuff (PS2)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] PS2} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#audio_jack">Dobrica Pavlinušić's random unstructured stuff (Audio jack)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Audio jack} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#channel_1">Dobrica Pavlinušić's random unstructured stuff (channel 1)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] channel 1} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#channel_2">Dobrica Pavlinušić's random unstructured stuff (channel 2)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] channel 2} --></span></li>
</ul></ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="x300_dongle">X300 dongle</h1>
<ul>
<li><a href="https://saturn.ffzg.hr/rot13/index.cgi?altera" title="(119 months) Bunch of references for Altera FPGA toc JTAG pinout image altera-jtag-pinout.jpg Bus Pirate programm...">Altera</a> EPM3064A TC44-10N <a target="_blank" title="(external link)" href="ftp://ftp.altera.com/outgoing/download/bsdl/3064at44.bsd">ftp://ftp.altera.com/outgoing/download/bsdl/3064at44.bsd</a></li>
<li>LD1117A L33AUD</li>
</ul>
<h2 id="jtag">JTAG</h2>
<p>
I took picture of both sides of board, corrected it using perspective tool in gimp and added layers with VCC (5V and 3.3V) and GND (checked with unimer continuity test).</p>
<span class="nlw_phrase"><img alt="x300_dongle-jtag.jpg" src="https://saturn.ffzg.hr/rot13/index.cgi/x300_dongle-jtag.jpg?action=attachments_download;page_name=x300_dongle;id=20140804143748-0-24283" /><!-- wiki: {image: x300_dongle-=jtag.jpg} --></span><br /><br /><p>
JTAG pinout doesn't match silkscreen designation of pin 1 (it's rotated). It also doesn't have VCC pin connected, so you need to supply 5V power via other means (I used PS/2 connector).</p>
<p>
<a href="https://saturn.ffzg.hr/rot13/index.cgi?bus_blaster" title="(87 months)  file BusBlaster-v2.0a1.sch.landscape.pdf http dangerousprototypes.com docs Bus_Blaster_v2_design_ov...">Bus Blaster</a> jtag try:</p>
<pre>
jtag&gt; cable jtagkey vid=0x0403 pid=0x6010 interface=0
Connected to libftd2xx driver.
jtag&gt; detect
IR length: 10
Chain length: 1
Device Id: 00010111000001100100000011011101 (0x170640DD)
  Manufacturer: Altera (0x0DD)
  Part(0):      EPM3064A (0x7064)
  Stepping:     1
  Filename:     /usr/local/share/urjtag/altera/epm3064a/epm3064a

jtag&gt; print chain
 No. Manufacturer              Part                 Stepping Instruction          Register
-------------------------------------------------------------------------------------------------------------------
*  0 Altera                    EPM3064A             1        BYPASS               BYPASS

# IMPORTANT: load signal aliases for this package
jtag&gt; include /usr/local/share/urjtag/altera/epm3064a/t44

# get values of all pins

jtag&gt; instruction SAMPLE/PRELOAD
jtag&gt; shift ir
jtag&gt; shift dr
jtag&gt; dr
010010111010111010010111010010010010111111111010111010
111010010010010111010010010010010010010010010010010010
010010010010010010010010010010010010010010010010010010
010010010010010111010111010010
 (0x0000000000000000000000000000000024924924924975D2)

jtag&gt; print chain
 No. Manufacturer              Part                 Stepping Instruction          Register
-------------------------------------------------------------------------------------------------------------------
*  0 Altera                    EPM3064A             1        SAMPLE/PRELOAD       BSR

jtag&gt; get signal IO2
IO2 = 1
jtag&gt; get signal IO3
IO3 = 1
jtag&gt; get signal IO43
IO43 = 1
jtag&gt; get signal IO44
IO44 = 1

# toggle single pin

jtag&gt; instruction EXTEST
jtag&gt; shift ir

jtag&gt; print chain
 No. Manufacturer              Part                 Stepping Instruction          Register
-------------------------------------------------------------------------------------------------------------------
*  0 Altera                    EPM3064A             1        EXTEST               BSR

jtag&gt; set signal IO10 out 0
jtag&gt; shift dr

# re-read values of all pins

jtag&gt; instruction SAMPLE/PRELOAD
jtag&gt; shift ir
jtag&gt; shift dr
jtag&gt; get signal IO10
IO10 = 0

</pre>
<br /><h2 id="svf_programming">SVF programming</h2>
<pre>
jtag&gt; svf /blue-zfs/FPGA/Altera-x300/x300_dongle/output_files/dongle1.svf stop progress
detail: Parsing     20/520 (  3%)warning: unimplemented mode 'ABSENT' for TRST
detail: Parsing    520/520 (100%)detail: 
detail: Scanned device output matched expected TDO values.
</pre>
<br /><h2 id="vhdl_to_toggle_pins">VHDL to toggle pins</h2>
<p>
Toggle pins on all four sides of CPLD and create additional two images with all one and all zero for easy test where pin is</p>
<span class="nlw_phrase"><a href="https://saturn.ffzg.hr/rot13/index.cgi/dongle1.vhd?action=attachments_download;page_name=x300_dongle;id=20140805185701-0-16161">dongle1.vhd</a><!-- wiki: {file: dongle1.vhd} --></span><br /><br /><p>
Then I connected logic analyzer on pins and tried different svf files (all-0, all-1, left, bottom, right, top) to locate which pin change depending on image loaded. To isolate pins I used EXTEST and toggled pins.</p>
<h2 id="rj45">RJ45</h2>
<span class="nlw_phrase"><img alt="rj45-pins.jpg" src="https://saturn.ffzg.hr/rot13/index.cgi/rj45-pins.jpg?action=attachments_download;page_name=x300_dongle;id=20140802213808-0-17133" /><!-- wiki: {image: rj45-=pins.jpg} --></span> <span class="nlw_phrase"><img alt="Pro050-rj45.png" src="https://saturn.ffzg.hr/rot13/index.cgi/Pro050-rj45.png?action=attachments_download;page_name=x300_dongle;id=20160615100846-0-25787" /><!-- wiki: {image: Pro050-=rj45.png} --></span><br /><br /><table style="border-collapse: collapse;" class="formatter_table">
<tr>
<td style="border: 1px solid black;padding: .2em;">pin</td>
<td style="border: 1px solid black;padding: .2em;">pull</td>
<td style="border: 1px solid black;padding: .2em;">cable</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">1</td>
<td style="border: 1px solid black;padding: .2em;"><span style="padding:.5em">&nbsp;</span></td>
<td style="border: 1px solid black;padding: .2em;">GND</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">2</td>
<td style="border: 1px solid black;padding: .2em;">1</td>
<td style="border: 1px solid black;padding: .2em;">VGA?</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">3</td>
<td style="border: 1px solid black;padding: .2em;">0</td>
<td style="border: 1px solid black;padding: .2em;">IO?</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">4</td>
<td style="border: 1px solid black;padding: .2em;">1</td>
<td style="border: 1px solid black;padding: .2em;">VGA?</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">5</td>
<td style="border: 1px solid black;padding: .2em;">0</td>
<td style="border: 1px solid black;padding: .2em;">IO?</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">6</td>
<td style="border: 1px solid black;padding: .2em;">1</td>
<td style="border: 1px solid black;padding: .2em;">VGA?</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">7</td>
<td style="border: 1px solid black;padding: .2em;"><span style="padding:.5em">&nbsp;</span></td>
<td style="border: 1px solid black;padding: .2em;">IO10</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">8</td>
<td style="border: 1px solid black;padding: .2em;"><span style="padding:.5em">&nbsp;</span></td>
<td style="border: 1px solid black;padding: .2em;">5V</td>
</tr>
</table>
<br /><h2 id="ps2">PS2</h2>
<span class="nlw_phrase"><div class="wiki-include-page">
<div class="wiki-include-title"><a href='https://saturn.ffzg.hr/rot13/index.cgi?ps2' >PS2</a> </div>
<div class="wiki-include-content">
<p>
<a target="_blank" title="(external link)" href="http://www.computer-engineering.org/ps2protocol/">http://www.computer-engineering.org/ps2protocol/</a></p>
<table style="border-collapse: collapse;" class="formatter_table">
<tr>
<td style="border: 1px solid black;padding: .2em;">female socket</td>
<td style="border: 1px solid black;padding: .2em;">male plug</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;"><span class="nlw_phrase"><img alt="ps2-female-socket.JPG" src="https://saturn.ffzg.hr/rot13/index.cgi/ps2-female-socket.JPG?action=attachments_download;page_name=ps2;id=20140805113214-0-9264" /><!-- wiki: {image: ps2-=female-=socket.JPG} --></span></td>
<td style="border: 1px solid black;padding: .2em;"><span class="nlw_phrase"><img alt="ps2-male-plug.JPG" src="https://saturn.ffzg.hr/rot13/index.cgi/ps2-male-plug.JPG?action=attachments_download;page_name=ps2;id=20140805113203-0-9246" /><!-- wiki: {image: ps2-=male-=plug.JPG} --></span></td>
</tr>
</table>
<br /><p>
6-pin Mini-DIN (PS/2): <br />
1 - Data <br />
2 - Not Implemented <br />
3 - Ground <br />
4 - Vcc (+5V) <br />
5 - Clock <br />
6 - Not Implemented</p>
</div></div><!-- wiki: {include: [PS2]} --></span><br /><br /><p>
Keyboard (left, purple)</p>
<table style="border-collapse: collapse;" class="formatter_table">
<tr>
<td style="border: 1px solid black;padding: .2em;">pin</td>
<td style="border: 1px solid black;padding: .2em;">IO</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">1 (data)</td>
<td style="border: 1px solid black;padding: .2em;">IO43</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">5 (clock)</td>
<td style="border: 1px solid black;padding: .2em;">IO44</td>
</tr>
</table>
<br /><p>
Mouse (right, green)</p>
<table style="border-collapse: collapse;" class="formatter_table">
<tr>
<td style="border: 1px solid black;padding: .2em;">pin</td>
<td style="border: 1px solid black;padding: .2em;">IO</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">1 (data)</td>
<td style="border: 1px solid black;padding: .2em;">IO34</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">5 (clock)</td>
<td style="border: 1px solid black;padding: .2em;">IO35</td>
</tr>
</table>
<br /><h1 id="audio_jack">Audio jack</h1>
<p>
R2R D2A</p>
<p>
all measurements are done on Hantek 2090 with 500mV/div setting which may account for some accuracy errors</p>
<h2 id="channel_1">channel 1</h2>
<table style="border-collapse: collapse;" class="formatter_table">
<tr>
<td style="border: 1px solid black;padding: .2em;">state</td>
<td style="border: 1px solid black;padding: .2em;">min</td>
<td style="border: 1px solid black;padding: .2em;">max</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">off</td>
<td style="border: 1px solid black;padding: .2em;">64.17 mV</td>
<td style="border: 1px solid black;padding: .2em;">95.54 mV</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">IO23</td>
<td style="border: 1px solid black;padding: .2em;">1.664 V</td>
<td style="border: 1px solid black;padding: .2em;">1.696 V</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">IO22</td>
<td style="border: 1px solid black;padding: .2em;">864 mv</td>
<td style="border: 1px solid black;padding: .2em;">895 mV</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">IO21</td>
<td style="border: 1px solid black;padding: .2em;">472 mV</td>
<td style="border: 1px solid black;padding: .2em;">503 mV</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">IO20</td>
<td style="border: 1px solid black;padding: .2em;">283 mV</td>
<td style="border: 1px solid black;padding: .2em;">299 mV</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">IO19</td>
<td style="border: 1px solid black;padding: .2em;">189 mv</td>
<td style="border: 1px solid black;padding: .2em;">221 mV</td>
</tr>
</table>
<br /><h2 id="channel_2">channel 2</h2>
<table style="border-collapse: collapse;" class="formatter_table">
<tr>
<td style="border: 1px solid black;padding: .2em;">state</td>
<td style="border: 1px solid black;padding: .2em;">min</td>
<td style="border: 1px solid black;padding: .2em;">max</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">off</td>
<td style="border: 1px solid black;padding: .2em;">3.3</td>
<td style="border: 1px solid black;padding: .2em;">50 mV</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">IO33</td>
<td style="border: 1px solid black;padding: .2em;">113 mV</td>
<td style="border: 1px solid black;padding: .2em;">144 mV</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">IO31</td>
<td style="border: 1px solid black;padding: .2em;">207 mV</td>
<td style="border: 1px solid black;padding: .2em;">254 mV</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">IO28</td>
<td style="border: 1px solid black;padding: .2em;">395 mV</td>
<td style="border: 1px solid black;padding: .2em;">442 mV</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">IO27</td>
<td style="border: 1px solid black;padding: .2em;">803 mV</td>
<td style="border: 1px solid black;padding: .2em;">850 mV</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">IO25</td>
<td style="border: 1px solid black;padding: .2em;">1.603 V</td>
<td style="border: 1px solid black;padding: .2em;">1.635 V</td>
</tr>
</table>
</div>
<hr/><div>Attachments: altera-jtag-pinout.jpg, dongle1.vhd, Pro050-rj45.png, rj45-pins.jpg, x300_dongle-jtag.jpg</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>FPGA</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?x300_dongle</guid>
<pubDate>Wed, 15 Jun 2016 10:11:23 -0000</pubDate>
</item>
<item>
<title><![CDATA[Altera]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?altera</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: FPGA</div><hr/><div class="wiki">
<p>
Bunch of references for Altera FPGA</p>
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#jtag_pinout">Dobrica Pavlinušić's random unstructured stuff (JTAG pinout)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] JTAG pinout} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#bus_pirate_programming">Dobrica Pavlinušić's random unstructured stuff (Bus Pirate programming)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Bus Pirate programming} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#usb_blaster">Dobrica Pavlinušić's random unstructured stuff (USB Blaster)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] USB Blaster} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#quartus">Dobrica Pavlinušić's random unstructured stuff (Quartus)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Quartus} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#create_svf_file">Dobrica Pavlinušić's random unstructured stuff (Create SVF file)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Create SVF file} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#manual_pin_assigment">Dobrica Pavlinušić's random unstructured stuff (manual pin assigment)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] manual pin assigment} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#13_0sp1_start">Dobrica Pavlinušić's random unstructured stuff (13.0sp1 start)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] 13.0sp1 start} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#altera_hardware">Dobrica Pavlinušić's random unstructured stuff (Altera hardware)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Altera hardware} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="jtag_pinout">JTAG pinout</h1>
<span class="nlw_phrase"><img alt="altera-jtag-pinout.jpg" src="https://saturn.ffzg.hr/rot13/index.cgi/altera-jtag-pinout.jpg?action=attachments_download;page_name=altera;id=20140802123649-0-20679" /><!-- wiki: {image: altera-=jtag-=pinout.jpg} --></span><br /><br /><h1 id="bus_pirate_programming">Bus Pirate programming</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://dangerousprototypes.com/forum/viewtopic.php?f=4&amp;t=2505">http://dangerousprototypes.com/forum/viewtopic.php?f=4&amp;t=2505</a></li>
</ul>
<p>
The Bus Pirate can program CPLDs and FPGAs using XSVF format bitstreams and XSVF player firmware. Altera might not output XSVF directly, but there is a simple converter for SVF to XSVF.</p>
<p>
Windows binaries are provided, but the source should also compile under Linux. Source is in the Bus Pirate SVN:<br />
<a target="_blank" title="(external link)" href="https://code.google.com/p/the-bus-pirate/source/browse/#svn%2Ftrunk%2Fscripts%2FXSVF">https://code.google.com/p/the-bus-pirate/source/browse/#svn%2Ftrunk%2Fscripts%2FXSVF</a></p>
<p>
Bus Pirate FPGA and CPLD programming with XSVF:<br />
<a target="_blank" title="(external link)" href="http://dangerousprototypes.com/docs/Bus_Pirate#FPGA_and_CPLD_programming">http://dangerousprototypes.com/docs/Bus_Pirate#FPGA_and_CPLD_programming</a></p>
<p>
SVF to XSVF converter:<br />
<a target="_blank" title="(external link)" href="http://dangerousprototypes.com/docs/JTAG_SVF_to_XSVF_file_converter">http://dangerousprototypes.com/docs/JTAG_SVF_to_XSVF_file_converter</a></p>
<h1 id="usb_blaster">USB Blaster</h1>
<p>
<a href="https://saturn.ffzg.hr/rot13/index.cgi?fx2lp" title="(117 months)  image CY7C68013A.jpg toc Cypress CY7C68013A EZ-USB FX2LP file U2CY7C68013-56.pdf 1. With CY7C68013A...">FX2LP</a> firmware</p>
<ul>
<li>libusb tools <a target="_blank" title="(external link)" href="https://github.com/swetland/jtag">https://github.com/swetland/jtag</a></li>
</ul>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/mithro/ixo-usb-jtag">https://github.com/mithro/ixo-usb-jtag</a> usb-jtag - Altera USB Blaster Emulation with a FX2</li>
</ul>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/binary-logic/vj-uart">https://github.com/binary-logic/vj-uart</a> - serial over JTAG USB Blaster for Cyclone IV</li>
</ul>
<h1 id="quartus">Quartus</h1>
<h2 id="create_svf_file">Create SVF file</h2>
<p>
<a target="_blank" title="(external link)" href="http://www.altera.com/support/kdb/solutions/rd07222008_677.html">http://www.altera.com/support/kdb/solutions/rd07222008_677.html</a></p>
<p>
To generate an SVF file in Quartus® II software, follow the steps below:</p>
<ul>
<li>Open the Quartus II programmer and add a .sof / .pof file into the programmer window.</li>
<li>Select the File Menu then select Create/Update within this menu choose Create JAM, SVF, or ISC File.</li>
<li>Input a file name for your SVF file output.</li>
<li>In the File Format drop-down select Serial Vector File (SVF) as your output file type.</li>
<li>Press ok to generate your SVF file.</li>
</ul>
<h2 id="manual_pin_assigment">manual pin assigment</h2>
<p>
edit .*qsf file and add:</p>
<pre>
set_location_assignment PIN_AP30 -to qdr_q[35]
</pre>
<br /><h2 id="13_0sp1_start">13.0sp1 start</h2>
<pre>
dpavlin@klin:~$ /opt/altera/13.0sp1/quartus/bin/quartus --64bit

</pre>
<br /><h1 id="altera_hardware">Altera hardware</h1>
<ul>
<li><a href="https://saturn.ffzg.hr/rot13/index.cgi?x300_dongle" title="(119 months)  toc X300 dongle [Altera] EPM3064A TC44-10N ftp ftp.altera.com outgoing download bsdl 3064at44.bsd L...">X300 dongle</a></li>
<li><a href="https://saturn.ffzg.hr/rot13/index.cgi?x300_pci" title="(120 months)  [Altera] EP1C6 Q240C8N L BCE9S0719A Altera EPM3128 ATC100-10N Samsung K4S643232H-UC60 JYEC 80 Mhz T...">X300 PCI</a></li>
<li><a href="https://saturn.ffzg.hr/rot13/index.cgi?minipcie_pci_lpc_combo_debug_card" title="(133 months) MiniPCIe PCI LPC Combo-Debug Card [Altera] MAX 3000A CPLD EPM3064ATC100 JTAG 6 pin header left of LC...">MiniPCIe/PCI/LPC Combo-Debug Card</a></li>
</ul>
</div>
<hr/><div>Attachments: altera-jtag-pinout.jpg, dongle1.vhd, rj45-pins.jpg, x300_dongle-jtag.jpg</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>FPGA</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?altera</guid>
<pubDate>Mon, 13 Jun 2016 12:40:32 -0000</pubDate>
</item>
<item>
<title><![CDATA[OV7670]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?ov7670</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: FPGA, hardware, RaspberryPi</div><hr/><div class="wiki">
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#references">Dobrica Pavlinušić's random unstructured stuff (References)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] References} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#raspberrypi">Dobrica Pavlinušić's random unstructured stuff (RaspberryPi)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] RaspberryPi} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#fpga">Dobrica Pavlinušić's random unstructured stuff (FPGA)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] FPGA} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#stereo_vision">Dobrica Pavlinušić's random unstructured stuff (Stereo vision)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Stereo vision} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="references">References</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://embeddedprogrammer.blogspot.com/2012/07/hacking-ov7670-camera-module-sccb-cheat.html">http://embeddedprogrammer.blogspot.com/2012/07/hacking-ov7670-camera-module-sccb-cheat.html</a></li>
</ul>
<h1 id="raspberrypi"><a href="https://saturn.ffzg.hr/rot13/index.cgi?raspberrypi" title="(92 months)  file mount-rpi-image.sh toc tag_list raspberrypi Interestring projects TODO test them out and write...">RaspberryPi</a></h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://nicolasfley.fast-page.org/?page_id=35">http://nicolasfley.fast-page.org/?page_id=35</a></li>
</ul>
<h1 id="fpga">FPGA</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://hamsterworks.co.nz/mediawiki/index.php/OV7670_camera">http://hamsterworks.co.nz/mediawiki/index.php/OV7670_camera</a></li>
<li><a target="_blank" title="(external link)" href="https://github.com/ahmadabbas55/miniOV7670">https://github.com/ahmadabbas55/miniOV7670</a></li>
</ul>
<h1 id="stereo_vision">Stereo vision</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://danstrother.com/2011/06/10/fpga-stereo-vision-core-released/">http://danstrother.com/2011/06/10/fpga-stereo-vision-core-released/</a></li>

<ul>
<li><a target="_blank" title="(external link)" href="http://code.danstrother.com/dls_cores/">http://code.danstrother.com/dls_cores/</a></li>
</ul></ul>
</div>
]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>FPGA, hardware, RaspberryPi</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?ov7670</guid>
<pubDate>Tue, 17 Feb 2015 14:47:14 -0000</pubDate>
</item>
<item>
<title><![CDATA[ULX2S]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?ulx2s</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: FPGA</div><hr/><div class="wiki">
<span class="nlw_phrase"><img alt="down-button.jpg" src="https://saturn.ffzg.hr/rot13/index.cgi/down-button.jpg?action=attachments_download;page_name=ulx2s;id=20150124183406-0-32492" /><!-- wiki: {image: down-=button.jpg} --></span><br /><br /><span class="nlw_phrase"><img alt="composite.png" src="https://saturn.ffzg.hr/rot13/index.cgi/composite.png?action=attachments_download;page_name=ulx2s;id=20150124183231-0-22817" /><!-- wiki: {image: composite.png} --></span><br /><br /><pre>
dpavlin@blue:/bluez/FPGA/ULX2S/uk101$ KERNEL[16887.354856] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.1/3-1.1.3 (usb)
KERNEL[16887.358543] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.1/3-1.1.3/3-1.1.3:1.0 (usb)
UDEV  [16887.365476] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.1/3-1.1.3 (usb)
KERNEL[16888.370326] add      /module/usbserial (module)
KERNEL[16888.370344] add      /bus/usb-serial (bus)
KERNEL[16888.370378] add      /bus/usb/drivers/usbserial (drivers)
KERNEL[16888.370396] add      /bus/usb/drivers/usbserial_generic (drivers)
KERNEL[16888.370413] add      /bus/usb-serial/drivers/generic (drivers)
UDEV  [16888.370685] add      /module/usbserial (module)
UDEV  [16888.370725] add      /bus/usb-serial (bus)
UDEV  [16888.370879] add      /bus/usb/drivers/usbserial (drivers)
UDEV  [16888.370901] add      /bus/usb-serial/drivers/generic (drivers)
UDEV  [16888.370928] add      /bus/usb/drivers/usbserial_generic (drivers)
KERNEL[16888.371900] add      /module/ftdi_sio (module)
KERNEL[16888.371923] add      /bus/usb/drivers/ftdi_sio (drivers)
KERNEL[16888.371945] add      /bus/usb-serial/drivers/ftdi_sio (drivers)
UDEV  [16888.371980] add      /module/ftdi_sio (module)
UDEV  [16888.372050] add      /bus/usb-serial/drivers/ftdi_sio (drivers)
KERNEL[16888.372098] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.1/3-1.1.3/3-1.1.3:1.0/ttyUSB0 (usb-serial)
UDEV  [16888.372124] add      /bus/usb/drivers/ftdi_sio (drivers)
KERNEL[16888.372401] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.1/3-1.1.3/3-1.1.3:1.0/ttyUSB0/tty/ttyUSB0 (tty)
UDEV  [16888.372546] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.1/3-1.1.3/3-1.1.3:1.0 (usb)
UDEV  [16888.372888] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.1/3-1.1.3/3-1.1.3:1.0/ttyUSB0 (usb-serial)
UDEV  [16888.374650] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.1/3-1.1.3/3-1.1.3:1.0/ttyUSB0/tty/ttyUSB0 (tty)
KERNEL[16929.333395] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3 (usb)
KERNEL[16929.333629] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3/3-1.6.3:1.0 (usb)
UDEV  [16929.338304] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3 (usb)
UDEV  [16929.338759] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3/3-1.6.3:1.0 (usb)
KERNEL[16929.708966] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3/3-1.6.3.2 (usb)
KERNEL[16929.712382] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3/3-1.6.3.2/3-1.6.3.2:1.0 (usb)
KERNEL[16929.712433] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3/3-1.6.3.2/3-1.6.3.2:1.0/media0 (media)
KERNEL[16929.773679] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3/3-1.6.3.2/3-1.6.3.2:1.0/video4linux/video0 (video4linux)
KERNEL[16929.773733] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3/3-1.6.3.2/3-1.6.3.2:1.0/input/input30 (input)
KERNEL[16929.773790] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3/3-1.6.3.2/3-1.6.3.2:1.0/input/input30/event16 (input)
KERNEL[16929.773883] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3/3-1.6.3.2/3-1.6.3.2:1.1 (usb)
KERNEL[16929.942458] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3/3-1.6.3.3 (usb)
KERNEL[16929.943007] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3/3-1.6.3.3/3-1.6.3.3:1.0 (usb)
KERNEL[16929.943064] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3/3-1.6.3.3/3-1.6.3.3:1.0/video4linux/video2 (video4linux)
UDEV  [16929.949326] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3/3-1.6.3.2 (usb)
UDEV  [16929.949933] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3/3-1.6.3.2/3-1.6.3.2:1.1 (usb)
UDEV  [16929.949946] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3/3-1.6.3.2/3-1.6.3.2:1.0 (usb)
UDEV  [16929.950176] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3/3-1.6.3.3 (usb)
UDEV  [16929.950550] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3/3-1.6.3.2/3-1.6.3.2:1.0/media0 (media)
UDEV  [16929.950861] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3/3-1.6.3.2/3-1.6.3.2:1.0/input/input30 (input)
UDEV  [16929.951576] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3/3-1.6.3.2/3-1.6.3.2:1.0/input/input30/event16 (input)
UDEV  [16929.952469] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3/3-1.6.3.2/3-1.6.3.2:1.0/video4linux/video0 (video4linux)
UDEV  [16930.953075] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3/3-1.6.3.3/3-1.6.3.3:1.0 (usb)
UDEV  [16930.954337] add      /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.6/3-1.6.3/3-1.6.3.3/3-1.6.3.3:1.0/video4linux/video2 (video4linux)

dpavlin@blue:/bluez/FPGA/ULX2S/uk101$ 
dpavlin@blue:/bluez/FPGA/ULX2S/uk101$ ../ujprog-x86-64 ./uk101-ulx2s8k.jed 
ULX2S JTAG programmer v 1.07 $Id: ujprog.c 1748 2014-01-09 15:07:43Z marko $
KERNEL[17115.768270] remove   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.1/3-1.1.3/3-1.1.3:1.0/ttyUSB0/tty/ttyUSB0 (tty)
KERNEL[17115.768305] remove   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.1/3-1.1.3/3-1.1.3:1.0/ttyUSB0 (usb-serial)
Using USB JTAG cable.
UDEV  [17115.769313] remove   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.1/3-1.1.3/3-1.1.3:1.0/ttyUSB0/tty/ttyUSB0 (tty)
UDEV  [17115.769664] remove   /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.1/3-1.1.3/3-1.1.3:1.0/ttyUSB0 (usb-serial)
Programming: 100%  
Completed in 5.88 seconds.
dpavlin@blue:/bluez/FPGA/ULX2S/uk101$ 
</pre>
</div>
<hr/><div>Attachments: composite.png, down-button.jpg</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>FPGA</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?ulx2s</guid>
<pubDate>Sat, 24 Jan 2015 18:34:06 -0000</pubDate>
</item>
<item>
<title><![CDATA[Papilio]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?papilio</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: FPGA</div><hr/><div class="wiki">
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#loader">Dobrica Pavlinušić's random unstructured stuff (loader)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] loader} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#zap_ide">Dobrica Pavlinušić's random unstructured stuff (ZAP IDE)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] ZAP IDE} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#compilation">Dobrica Pavlinušić's random unstructured stuff (compilation)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] compilation} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#fix_papilio_prog_to_use_linux_binary">Dobrica Pavlinušić's random unstructured stuff (fix papilio-prog to use Linux binary)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] fix papilio-=prog to use Linux binary} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#running_ide">Dobrica Pavlinušić's random unstructured stuff (running IDE)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] running IDE} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#zpugcc">Dobrica Pavlinušić's random unstructured stuff (zpugcc)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] zpugcc} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#retrocade_megawing">Dobrica Pavlinušić's random unstructured stuff (RetroCade MegaWing)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] RetroCade MegaWing} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#lcd">Dobrica Pavlinušić's random unstructured stuff (LCD)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] LCD} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#zpu_without_arduino_ide">Dobrica Pavlinušić's random unstructured stuff (ZPU (without Arduino IDE))</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] ZPU (without Arduino IDE)} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#xilinx_virtual_cable_daemon">Dobrica Pavlinušić's random unstructured stuff (Xilinx Virtual Cable Daemon)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Xilinx Virtual Cable Daemon} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="loader">loader</h1>
<p>
<a target="_blank" title="(external link)" href="https://github.com/GadgetFactory/Papilio-Loader/pull/6">https://github.com/GadgetFactory/Papilio-Loader/pull/6</a></p>
<pre>
dpavlin@blue:/blue-zfs/FPGA/Papilio$ git clone https://github.com/GadgetFactory/Papilio-Loader.git
dpavlin@blue:/blue-zfs/FPGA/Papilio$ cd Papilio-Loader/papilio-prog
dpavlin@blue:/blue-zfs/FPGA/Papilio/Papilio-Loader/papilio-prog$ git checkout -b revert-libftdi2 261d0dd02f5489c63e8227c6f916af5efacfbe7a
dpavlin@blue:/blue-zfs/FPGA/Papilio/Papilio-Loader/papilio-prog$ ./autogen.sh 
dpavlin@blue:/blue-zfs/FPGA/Papilio/Papilio-Loader/papilio-prog$ ./configure &amp;&amp; make

# check compiled binary
dpavlin@blue:/blue-zfs/FPGA/Papilio/Papilio-Loader/papilio-prog$ ./papilio-prog -v -j
Using built-in device list
JTAG chainpos: 0 Device IDCODE = 0x24001093     Desc: XC6SLX9
USB transactions: Write 3 read 2 retries 1

</pre>
<br /><h1 id="zap_ide">ZAP IDE</h1>
<h2 id="compilation">compilation</h2>
<pre>
dpavlin@blue:/blue-zfs/FPGA/Papilio$ git clone https://github.com/GadgetFactory/ZAP--ZPUino-Arduino-Papilio--IDE.git

dpavlin@blue:/blue-zfs/FPGA/Papilio$ cd ZAP--ZPUino-Arduino-Papilio--IDE/build/
dpavlin@blue:/blue-zfs/FPGA/Papilio/ZAP--ZPUino-Arduino-Papilio--IDE/build$ ant

dpavlin@blue:/blue-zfs/FPGA/Papilio/ZAP--ZPUino-Arduino-Papilio--IDE/build/linux$ ln -s zpu_tools_linux32.tar.bz2 zpu_tools_linux64.tar.bz2 
</pre>
<br /><h2 id="fix_papilio_prog_to_use_linux_binary">fix papilio-prog to use Linux binary</h2>
<pre>
dpavlin@blue:/blue-zfs/FPGA/Papilio/ZAP--ZPUino-Arduino-Papilio--IDE/build/linux/work$ vi ./hardware/zpuino/zpu/platform.txt

# fix papilioprog to papilio-prog
tools.papilioprog.cmd=papilio-prog

# remove .exe from this line
tools.papilioprog.erase.pattern=&quot;{path}/bin/papilio-prog&quot; -c


dpavlin@blue:/blue-zfs/FPGA/Papilio/ZAP--ZPUino-Arduino-Papilio--IDE/build/linux/work$ chmod 755 hardware/tools/papilio/papilio_loader/Papilio_Programmer.sh 


# copy compiled papilio-prog to correct location and fix permissions
dpavlin@blue:/blue-zfs/FPGA/Papilio/ZAP--ZPUino-Arduino-Papilio--IDE/build/linux/work$ cp ../../../../Papilio-Loader/papilio-prog/papilio-prog hardware/tools/papilio/papilio_loader/bin/
dpavlin@blue:/blue-zfs/FPGA/Papilio/ZAP--ZPUino-Arduino-Papilio--IDE/build/linux/work$ chmod 755 hardware/tools/papilio/papilio_loader/bin/papilio-prog
</pre>
<br /><h2 id="running_ide">running IDE</h2>
<p>
Run arduino GUI:</p>
<pre>
dpavlin@blue:/blue-zfs/FPGA/Papilio/ZAP--ZPUino-Arduino-Papilio--IDE/build/linux/work$ ./arduino
</pre>
<br /><p>
Compilation works, but programming doesn't with error:</p>
<pre>
Board: Unknown board @ 96000000 Hz (0xa4041700)
</pre>
<br /><p>
so, let's rebuild zpuprogrammer</p>
<p>
<a target="_blank" title="(external link)" href="http://forum.gadgetfactory.net/index.php?/topic/1588-how-to-program-the-arduino-sketch-for-zpuino-to-the-spi-flash/page-2#entry11242">http://forum.gadgetfactory.net/index.php?/topic/1588-how-to-program-the-arduino-sketch-for-zpuino-to-the-spi-flash/page-2#entry11242</a></p>
<pre>
dpavlin@blue:/blue-zfs/ZPUino/ZPUino-HDL/zpu/hdl/zpuino/programmer$ git remote -v
origin  https://github.com/alvieboy/ZPUino-HDL/ (fetch)
origin  https://github.com/alvieboy/ZPUino-HDL/ (push)

dpavlin@blue:/blue-zfs/ZPUino/ZPUino-HDL/zpu/hdl/zpuino/programmer$ autoreconf --install
dpavlin@blue:/blue-zfs/ZPUino/ZPUino-HDL/zpu/hdl/zpuino/programmer$ ./configure
dpavlin@blue:/blue-zfs/ZPUino/ZPUino-HDL/zpu/hdl/zpuino/programmer$ make
dpavlin@blue:/blue-zfs/ZPUino/ZPUino-HDL/zpu/hdl/zpuino/programmer$ cp zpuinoprogrammer /blue-zfs/FPGA/Papilio/ZAP--ZPUino-Arduino-Papilio--IDE/build/linux/dist/tools/
# this one is for already built version
dpavlin@blue:/blue-zfs/ZPUino/ZPUino-HDL/zpu/hdl/zpuino/programmer$ cp zpuinoprogrammer /blue-zfs/FPGA/Papilio/ZAP--ZPUino-Arduino-Papilio--IDE/build/linux/work/hardware/tools/zpu/bin/zpuinoprogrammer
</pre>
<br /><p>
program boot file (IDE doesn't have permission to do so)</p>
<pre>
dpavlin@blue:/blue-zfs/FPGA/Papilio$ ./papilio-prog -v -f ./zap-2.0.5/hardware/zpuino/zpu/bootloaders/lx9/zpuino-1.0-PapilioPro-S6LX9-RetroCade-1.0.bit
Using built-in device list
JTAG chainpos: 0 Device IDCODE = 0x24001093     Desc: XC6SLX9
Created from NCD file: papilio_pro_routed.ncd;UserID=0xFFFFFFFF
Target device: 6slx9tqg144
Created: 2012/11/20 00:16:43
Bitstream length: 2727072 bits

Uploading &quot;./zap-2.0.5/hardware/zpuino/zpu/bootloaders/lx9/zpuino-1.0-PapilioPro-S6LX9-RetroCade-1.0.bit&quot;. DNA is 0x190efd25eb57c9fe
Done.
Programming time 549.2 ms
USB transactions: Write 176 read 8 retries 5
</pre>
<br /><p>
run IDE</p>
<pre>
dpavlin@blue:/blue-zfs/FPGA/Papilio/ZAP--ZPUino-Arduino-Papilio--IDE/build/linux/work$ ./arduino
Experimental:  JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
</pre>
<br /><p>
verification will fail, so just upload sketch:</p>
<pre>
dpavlin@blue:/blue-zfs/FPGA/Papilio/Papilio-SOC/zpu/hdl/zpuino/programmer$ ./zpuinoprogrammer -s 1000000 -R -d /dev/ttyUSB1 -b /tmp/build383944339812357036.tmp/Autoscroll.cpp.bin -U
Board: GadgetFactory Papilio Pro LX9 @ 96000000 Hz (0xa4041700)
Upload completed successfully in 0.05 seconds.
</pre>
<br /><h1 id="zpugcc">zpugcc</h1>
<pre>
dpavlin@blue:/blue-zfs/FPGA/Papilio$ git clone git://repo.or.cz/zpugcc.git
Cloning into 'zpugcc'...
remote: Counting objects: 35519, done.
remote: Compressing objects: 100% (26110/26110), done.
remote: Total 35519 (delta 8445), reused 35519 (delta 8445)
Receiving objects: 100% (35519/35519), 70.18 MiB | 426.00 KiB/s, done.
Resolving deltas: 100% (8445/8445), done.
Checking connectivity... done.
Checking out files: 100% (35311/35311), done.
dpavlin@blue:/blue-zfs/FPGA/Papilio$ cd zpugcc/toolchain
dpavlin@blue:/blue-zfs/FPGA/Papilio/zpugcc/toolchain$ git diff build.sh
diff --git a/toolchain/build.sh b/toolchain/build.sh
index 783beaa..034929c 100644
--- a/toolchain/build.sh
+++ b/toolchain/build.sh
@@ -3,6 +3,9 @@ set -e
 rm -rf build
 mkdir build
 cd build
+mkdir bin
+ln -s /bin/true bin/makeinfo
+export PATH=`pwd`/bin:$PATH
 ../binutils/configure --target=zpu-elf --prefix=`pwd`/../install
 make
 make install
dpavlin@blue:/blue-zfs/FPGA/Papilio/zpugcc/toolchain$ sh -x build.sh
</pre>
<br /><h1 id="retrocade_megawing">RetroCade MegaWing</h1>
<p>
<a target="_blank" title="(external link)" href="http://retrocade.gadgetfactory.net/index.php?n=Main.RetroCadeMegaWing">http://retrocade.gadgetfactory.net/index.php?n=Main.RetroCadeMegaWing</a></p>
<h2 id="lcd">LCD</h2>
<p>
Modify Examples/LiqueidCrystal/Autoscroll</p>
<pre>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(26, 24, 23, 22, 21, 20);

void setup() {
  // contrast to GND
  pinMode(46, OUTPUT);
  digitalWrite(46, LOW);
  // RW to ground
  pinMode(25, OUTPUT);
  digitalWrite(25, LOW);

  // set up the LCD's number of columns and rows: 
  lcd.begin(16,2);
}
</pre>
<br /><h1 id="zpu_without_arduino_ide">ZPU (without Arduino IDE)</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://forum.gadgetfactory.net/index.php?/topic/1863-bare-metal-zpu-hello-world/">http://forum.gadgetfactory.net/index.php?/topic/1863-bare-metal-zpu-hello-world/</a></li>
</ul>
<h1 id="xilinx_virtual_cable_daemon">Xilinx Virtual Cable Daemon</h1>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/tmbinc/xvcd/tree/ftdi">https://github.com/tmbinc/xvcd/tree/ftdi</a></li>
</ul>
</div>
]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>FPGA</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?papilio</guid>
<pubDate>Mon, 30 Jun 2014 21:13:52 -0000</pubDate>
</item>
<item>
<title><![CDATA[Proxmark]]></title>
<link>https://saturn.ffzg.hr/rot13/index.cgi?proxmark</link>
<description><![CDATA[<div>Creator: Dobrica Pavlinušić</div><hr/><div>Tags: FPGA, hardware, RFID</div><hr/><div class="wiki">
<div class="nlw_phrase"><table class="wafl_container">
  <tr>
    <td>
      <div class="wafl_box">
        
          <div class="wafl_titlebox">
            <div class="wafl_title">
              
                Contents: [Dobrica Pavlinušić's random unstructured stuff]
              
            </div>
          </div>
          <div class="wafl_items">
            
              <div class="wiki">
<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#cheap_er_china_proxmark">Dobrica Pavlinušić's random unstructured stuff (Cheap(er) China Proxmark)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Cheap(er) China Proxmark} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#mifare_sniff_crack">Dobrica Pavlinušić's random unstructured stuff (Mifare sniff/crack)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Mifare sniff/crack} --></span></li>

<ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#usage">Dobrica Pavlinušić's random unstructured stuff (Usage)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Usage} --></span></li>
</ul>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#brute_force_26_bit_proxcard">Dobrica Pavlinušić's random unstructured stuff (brute force 26-bit proxcard)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] brute force 26-=bit proxcard} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#firmware_version">Dobrica Pavlinušić's random unstructured stuff (firmware version)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] firmware version} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#flashing_update">Dobrica Pavlinušić's random unstructured stuff (flashing update)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] flashing update} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#compile_new_version_of_firmware">Dobrica Pavlinušić's random unstructured stuff (Compile new version of firmware)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Compile new version of firmware} --></span></li>
<li><span class="nlw_phrase"><a title="section link" href="https://saturn.ffzg.hr/rot13/index.cgi?dobrica_pavlinu%C5%A1i%C4%87_s_random_unstructured_stuff#boot_loader">Dobrica Pavlinušić's random unstructured stuff (Boot loader)</a><!-- wiki: {link: [Dobrica Pavlinušić's random unstructured stuff] Boot loader} --></span></li>
</ul>
</div>

            
            
          </div>
        
      </div>
    </td>
  </tr>
</table>
<!-- wiki: {toc: }
--></div><br /><br /><h1 id="cheap_er_china_proxmark">Cheap(er) China Proxmark</h1>
<ul>
<li><a target="_blank" title="(external link)" href="http://www.xfpga.com/e_products/?big_id=17&amp;small_id=7">http://www.xfpga.com/e_products/?big_id=17&amp;small_id=7</a></li>
<li><a target="_blank" title="(external link)" href="http://www.proxmark.org/forum/viewtopic.php?id=863">http://www.proxmark.org/forum/viewtopic.php?id=863</a></li>
</ul>
<h1 id="mifare_sniff_crack">Mifare sniff/crack</h1>
<p>
<a target="_blank" title="(external link)" href="http://code.google.com/p/crapto1/">http://code.google.com/p/crapto1/</a></p>
<p>
<a target="_blank" title="(external link)" href="http://www.youtube.com/watch?v=kTvb7tjbSTI">http://www.youtube.com/watch?v=kTvb7tjbSTI</a><br />
<a target="_blank" title="(external link)" href="http://www.fuzzysecurity.com/tutorials/rfid/3.html">http://www.fuzzysecurity.com/tutorials/rfid/3.html</a></p>
<p>
Proxmark firmware comparison on emulated Mifare 4k</p>
<table style="border-collapse: collapse;" class="formatter_table">
<tr>
<td style="border: 1px solid black;padding: .2em;">r</td>
<td style="border: 1px solid black;padding: .2em;">command</td>
<td style="border: 1px solid black;padding: .2em;">note</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">590</td>
<td style="border: 1px solid black;padding: .2em;"><span style="padding:.5em">&nbsp;</span></td>
<td style="border: 1px solid black;padding: .2em;">USB HID</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;"><span style="padding:.5em">&nbsp;</span></td>
<td style="border: 1px solid black;padding: .2em;">hf mf rdbl 0 A a0a1a2a3a4a5</td>
<td style="border: 1px solid black;padding: .2em;">OK</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;"><span style="padding:.5em">&nbsp;</span></td>
<td style="border: 1px solid black;padding: .2em;">hf mf chk 0 A a0a1a2a3a4a5</td>
<td style="border: 1px solid black;padding: .2em;">Can't select card</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">617</td>
<td style="border: 1px solid black;padding: .2em;"><span style="padding:.5em">&nbsp;</span></td>
<td style="border: 1px solid black;padding: .2em;">USB HID</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;"><span style="padding:.5em">&nbsp;</span></td>
<td style="border: 1px solid black;padding: .2em;">hf mf rdbl 0 A a0a1a2a3a4a5</td>
<td style="border: 1px solid black;padding: .2em;">OK</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;"><span style="padding:.5em">&nbsp;</span></td>
<td style="border: 1px solid black;padding: .2em;">hf mf chk 0 A a0a1a2a3a4a5</td>
<td style="border: 1px solid black;padding: .2em;">Can't select card</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;"><span style="padding:.5em">&nbsp;</span></td>
<td style="border: 1px solid black;padding: .2em;">hf mf mifare</td>
<td style="border: 1px solid black;padding: .2em;">2 red, needs power cycle</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;"><span style="padding:.5em">&nbsp;</span></td>
<td style="border: 1px solid black;padding: .2em;">hf mf nested o 0 a a0a1a2a3a4a5 4 t</td>
<td style="border: 1px solid black;padding: .2em;">Can't select card</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">672</td>
<td style="border: 1px solid black;padding: .2em;"><span style="padding:.5em">&nbsp;</span></td>
<td style="border: 1px solid black;padding: .2em;">proxendian.h:22:4: error: #error Define BYTE_ORDER</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">756</td>
<td style="border: 1px solid black;padding: .2em;"><span style="padding:.5em">&nbsp;</span></td>
<td style="border: 1px solid black;padding: .2em;">USB CCID</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;"><span style="padding:.5em">&nbsp;</span></td>
<td style="border: 1px solid black;padding: .2em;">hf mf rdbl 0 A a0a1a2a3a4a5</td>
<td style="border: 1px solid black;padding: .2em;">Auth error</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;"><span style="padding:.5em">&nbsp;</span></td>
<td style="border: 1px solid black;padding: .2em;">hf mf chk 0 A a0a1a2a3a4a5</td>
<td style="border: 1px solid black;padding: .2em;">Can't select card</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;"><span style="padding:.5em">&nbsp;</span></td>
<td style="border: 1px solid black;padding: .2em;">hf mf mifare</td>
<td style="border: 1px solid black;padding: .2em;">red, yellow, red, needs power cycle</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;"><span style="padding:.5em">&nbsp;</span></td>
<td style="border: 1px solid black;padding: .2em;">hf mf nested o 0 a a0a1a2a3a4a5 4 t</td>
<td style="border: 1px solid black;padding: .2em;">Can't select card</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;">840</td>
<td style="border: 1px solid black;padding: .2em;"><span style="padding:.5em">&nbsp;</span></td>
<td style="border: 1px solid black;padding: .2em;">latest</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;"><span style="padding:.5em">&nbsp;</span></td>
<td style="border: 1px solid black;padding: .2em;">hf mf rdbl 0 A a0a1a2a3a4a5</td>
<td style="border: 1px solid black;padding: .2em;">Can't select card</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;"><span style="padding:.5em">&nbsp;</span></td>
<td style="border: 1px solid black;padding: .2em;">hf mf chk 0 A a0a1a2a3a4a5</td>
<td style="border: 1px solid black;padding: .2em;">Can't select card</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;"><span style="padding:.5em">&nbsp;</span></td>
<td style="border: 1px solid black;padding: .2em;">hf mf mifare</td>
<td style="border: 1px solid black;padding: .2em;">Can't select card</td>
</tr>
<tr>
<td style="border: 1px solid black;padding: .2em;"><span style="padding:.5em">&nbsp;</span></td>
<td style="border: 1px solid black;padding: .2em;">hf mf nested o 0 a a0a1a2a3a4a5 4 t</td>
<td style="border: 1px solid black;padding: .2em;">Can't select card</td>
</tr>
</table>
<br /><h2 id="usage">Usage</h2>
<pre>
proxmark3&gt; hw version
#db# Prox/RFID mark3 RFID instrument                 
#db# bootrom: svn 816 2013-10-11 22:09:42                 
#db# os: svn 816 2013-10-11 22:09:43                 
#db# FPGA image built on 2012/ 1/ 6 at 15:27:56                 
uC: AT91SAM7S256 Rev B          
Embedded Processor: ARM7TDMI          
Nonvolatile Program Memory Size: 256K bytes          
Second Nonvolatile Program Memory Size: None          
Internal SRAM Size: 64K bytes          
Architecture Identifier: AT91SAM7Sxx Series          
Nonvolatile Program Memory Type: Embedded Flash Memory          

proxmark3&gt; hw tune
#db# Measuring antenna characteristics, please wait...                 
#db# Measuring complete, sending report back to host                 
          
# LF antenna:  0.00 V @   125.00 kHz          
# LF antenna:  0.00 V @   134.00 kHz          
# LF optimal:  0.00 V @ 12000.00 kHz          
# HF antenna:  7.28 V @    13.56 MHz          
# Your LF antenna is unusable.          

proxmark3&gt; hf 14a read
ATQA : 02 00          
 UID : ?? ?? ?? ??
 SAK : 38 [1]          
TYPE : Nokia 6212 or 6131 MIFARE CLASSIC 4K          
 ATS : 0d 78 f7 b1 02 4a 43 4f 50 76 32 34 31 27 cc           
       -  TL : length is 13 bytes          
       -  T0 : TA1 is present, TB1 is present, TC1 is present, FSCI is 8          
       - TA1 : different divisors are NOT supported, DR: [2, 4, 8], DS: [2, 4, 8]          
       - TB1 : SFGI = 0, FWI = 8          
       - TC1 : NAD is NOT supported, CID is supported          
       -  HB : 4a 43 4f 50 76 32 34 31           


</pre>
<br /><h1 id="brute_force_26_bit_proxcard">brute force 26-bit proxcard</h1>
<ul>
<li><a target="_blank" title="(external link)" href="https://github.com/brad-anton/proxbrute">https://github.com/brad-anton/proxbrute</a></li>
</ul>
<h1 id="firmware_version">firmware version</h1>
<p>
According to <a target="_blank" title="(external link)" href="http://wiki.radiowar.org/Proxmark3%E5%9B%BA%E4%BB%B6%E5%88%97%E8%A1%A8">http://wiki.radiowar.org/Proxmark3%E5%9B%BA%E4%BB%B6%E5%88%97%E8%A1%A8</a><br />
firmwares newer than 617 have problems.</p>
<p>
Google translated version</p>
<blockquote>
Please do not upgrade your firmware to the CDC Proxmark3 version r617 ~ r830 driver's! We found that because the problem will lead to Proxmark3 code appears unable to identify high-frequency card, and 816 will appear after Nested number of keys for 000000000000.</blockquote>
<br /><h1 id="flashing_update">flashing update</h1>
<pre>
dpavlin@blue:/blue-zfs/FPGA/proxmark/proxmark3$ make flash-all

</pre>
<br /><h1 id="compile_new_version_of_firmware">Compile new version of firmware</h1>
<p>
<strong>All instructions below this are for old version of software</strong> see <a target="_blank" title="(external link)" href="http://www.proxmark.org/forum/viewtopic.php?id=1668">http://www.proxmark.org/forum/viewtopic.php?id=1668</a></p>
<p>
<a target="_blank" title="(external link)" href="http://code.google.com/p/proxmark3/wiki/Compiling">http://code.google.com/p/proxmark3/wiki/Compiling</a> je strgan <a target="_blank" title="(external link)" href="http://www.proxmark.org/forum/post/3244/#p3244">http://www.proxmark.org/forum/post/3244/#p3244</a></p>
<pre>
sudo apt-get install build-essential libreadline5 libreadline-dev libusb-0.1-4 libusb-dev libqt4-dev perl pkg-config

dpavlin@t61p:/tank/proxmark3$ svn co http://proxmark3.googlecode.com/svn/trunk proxmark3
</pre>
<br /><h1 id="boot_loader">Boot loader</h1>
<pre>
dpavlin@t61p:/tank/proxmark3/proxmark3$ ./client/flasher -b ./bootrom/obj/bootrom.elf 
Loading ELF file './bootrom/obj/bootrom.elf'...
Loading usable ELF segments:
0: V 0x00100000 P 0x00100000 (0x00000200-&gt;0x00000200) [R X] @0x94
1: V 0x00200000 P 0x00100200 (0x000017a8-&gt;0x000017a8) [R X] @0x294

Waiting for Proxmark to appear on USB...
Connected units:
        1. SN: ? [004/013]
 Found.
Entering bootloader...
(Press and release the button only to abort)
Waiting for Proxmark to reappear on USB....
Connected units:
        1. SN: ? [004/014]
 Found.

Flashing...
Writing segments for file: ./bootrom/obj/bootrom.elf
 0x00100000..0x001001ff [0x200 / 2 blocks].. OK
 0x00100200..0x001019a7 [0x17a8 / 24 blocks]........................ OK

Resetting hardware...
All done.

Have a nice day!
</pre>
<br />^
<br /><pre>
dpavlin@t61p:/tank/proxmark3/proxmark3$ ./client/flasher ./armsrc/obj/fullimage.elf 
Loading ELF file './armsrc/obj/fullimage.elf'...
Loading usable ELF segments:
0: V 0x00102000 P 0x00102000 (0x0000a4bc-&gt;0x0000a4bc) [R  ] @0xb4
1: V 0x00110000 P 0x00110000 (0x0000ba8c-&gt;0x0000ba8c) [R X] @0xa570
2: V 0x00200000 P 0x0011ba8c (0x00000004-&gt;0x00000004) [RW ] @0x15ffc
Note: Extending previous segment from 0xba8c to 0xba90 bytes

Waiting for Proxmark to appear on USB...
Connected units:
        1. SN: ? [004/015]
 Found.
Entering bootloader...
(Press and release the button only to abort)
Waiting for Proxmark to reappear on USB....
Connected units:
        1. SN: ChangeMe [004/016]
 Found.

Flashing...
Writing segments for file: ./armsrc/obj/fullimage.elf
 0x00102000..0x0010c4bb [0xa4bc / 165 blocks]..................................................................................................................................................................... OK
 0x00110000..0x0011ba8f [0xba90 / 187 blocks]........................................................................................................................................................................................... OK

Resetting hardware...
All done.

Have a nice day!
</pre>
</div>
<hr/><div>Attachments: gnuarm.diff</div>]]></description>
<author>Dobrica Pavlinu&#x161;i&#x107;</author>
<category>FPGA, hardware, RFID</category>
<guid isPermaLink="true">https://saturn.ffzg.hr/rot13/index.cgi?proxmark</guid>
<pubDate>Fri, 24 Jan 2014 10:05:09 -0000</pubDate>
</item>
</channel>
</rss>