<spanid="lattice"></span><h1>Lattice notes<aclass="headerlink"href="#lattice-notes"title="Link to this heading">¶</a></h1>
<sectionid="machxo2-machxo3">
<h2>MachXO2/MachXO3<aclass="headerlink"href="#machxo2-machxo3"title="Link to this heading">¶</a></h2>
<sectionid="flash-memory">
<h3>Flash memory<aclass="headerlink"href="#flash-memory"title="Link to this heading">¶</a></h3>
<p><codeclass="docutils literal notranslate"><spanclass="pre">.jed</span></code> file is the default format generated by <em>Lattice Diamond</em>, so nothing special must be done to generates this
<p>and where <codeclass="docutils literal notranslate"><spanclass="pre">--flash-sector</span><spanclass="pre">CFG0</span></code> is needed for the MachXO3D Breakout Board.</p>
<p><codeclass="docutils literal notranslate"><spanclass="pre">.bit</span></code> may also be used for <em>machXO2</em></p>
</section>
<sectionid="sram">
<h3>SRAM<aclass="headerlink"href="#sram"title="Link to this heading">¶</a></h3>
<p>To generates <codeclass="docutils literal notranslate"><spanclass="pre">.bit</span></code> file <em>Bitstream file</em> must be checked under <em>Exports Files</em> in <em>Lattice Diamond</em> left panel.</p>
<h2>iCE40<aclass="headerlink"href="#ice40"title="Link to this heading">¶</a></h2>
<p><codeclass="docutils literal notranslate"><spanclass="pre">.bin</span></code> is the default format generated by <em>nextpnr</em>, so nothing special must be done.</p>
<p>Since most ice40 boards uses the same pinout between <em>FTDI</em> and <em>SPI flash</em> a generic <em>ice40_generic</em> board is provided.</p>
<p>For the specific case of the <em>iCE40HXXK-EVB</em> where no onboard programmer is present, please use this:</p>
<p>Since it’s a direct access to the flash (SPI) the <codeclass="docutils literal notranslate"><spanclass="pre">-b</span></code> option is required.</p>
<h2>ECP5/ECP3/Certus-NX/CertusPro-NX/Crosslink-NX<aclass="headerlink"href="#ecp5-ecp3-certus-nx-certuspro-nx-crosslink-nx"title="Link to this heading">¶</a></h2>
<sectionid="id1">
<h3>SRAM<aclass="headerlink"href="#id1"title="Link to this heading">¶</a></h3>
<p>By default, openFPGALoader loads bitstream in memory, so the <codeclass="docutils literal notranslate"><spanclass="pre">-m</span></code> argument is optional.</p>
</div>
</section>
<sectionid="spi-flash">
<h3>SPI Flash<aclass="headerlink"href="#spi-flash"title="Link to this heading">¶</a></h3>
<divclass="admonition note">
<pclass="admonition-title">Note</p>
<p>SPI Flash write is not supported for ECP3 family.</p>
</div>
<p>BIT:</p>
<divclass="highlight-bash notranslate"><divclass="highlight"><pre><span></span>openFPGALoader<spanclass="w"></span><spanclass="o">[</span>-b<spanclass="w"></span>yourBoard<spanclass="o">]</span><spanclass="w"></span><spanclass="o">[</span>-c<spanclass="w"></span>yourCable<spanclass="o">]</span><spanclass="w"></span>-f<spanclass="w"></span>project_name/*.bit<spanclass="w"></span><spanclass="c1"># or *.bin</span>
</pre></div>
</div>
<p>MCS:</p>
<p>To generate <codeclass="docutils literal notranslate"><spanclass="pre">.mcs</span></code> file <em>PROM File</em> must be checked under <em>Exports Files</em> in <em>Lattice Diamond</em> left panel.</p>