<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>INSTALL.md - collab/mm20 @ firmware</title>
<meta name="description" content="INSTALL.md in collab/mm20 at firmware.">
<meta property="og:title" content="INSTALL.md - collab/mm20 @ firmware">
<meta property="og:description" content="INSTALL.md in collab/mm20 at firmware.">
<meta property="og:type" content="website">
<meta property="og:site_name" content="git.julia.blue">
<link rel="stylesheet" href="/css/style.css?v=62">
<script type="module" src="/js/main.js?v=62"></script>
</head>
<body>
<main data-ref="firmware" data-tip="8b79c2ea703a0b75aad8bcb72a3fdcc17c5f7cd9">
<noscript>
  <div class="callout">
    <p>
      hey! this is a static git repo viewer. commit diffs, file history,
      older commits and other revisions won't load without javascript.
    </p>
    <p>
      you are still able to view source files on branch/tag tips,
      but the experience is degraded.
    </p>
  </div>
</noscript>
<header class="repo"><div>
<h1>collab/mm20</h1>
</div>
<pre class="clone">git clone https://git.julia.blue/collab/mm20</pre>
</header>
<p class="snapshot-commit"><span class="commit-author">Joseph Ryan</span><span class="commit-message" data-commit="79f4ff494203d7d32be6d1b0541c0bd0ca57bad5">Add encoder initialization</span><span class="snapshot-sha sha" data-commit="79f4ff494203d7d32be6d1b0541c0bd0ca57bad5">79f4ff4</span><time datetime="2019-11-13T13:12:20-06:00" title="2019-11-13 13:12:20 -0600">2019-11-13</time></p>
<header class="topbar"><details class="switcher"><summary>firmware</summary><div class="menu"><strong>branches</strong><a href="/collab/mm20/ref/adc/">adc</a><a href="/collab/mm20/ref/algorithms/">algorithms</a><a class="current" href="/collab/mm20/ref/firmware/">firmware</a><a href="/collab/mm20/ref/master/">master</a><a href="/collab/mm20/ref/pcb/">pcb</a><a href="/collab/mm20/ref/telemetry/">telemetry</a><a class="all" href="/collab/mm20/refs">all refs →</a></div></details><nav class="crumbs"><a href="/collab/mm20/">mm20</a> / <span class="cur">INSTALL.md</span></nav>
<span class="view-stats"><span>4.9 KiB</span><span>80 lines</span></span><span class="actions"><a class="raw" href="/collab/mm20/raw/ea55ed17c5d8b05b4979b494089ffe81583dcab0/INSTALL.md">raw</a></span></header>
<div class="markdown-view"><input type="radio" name="markdown-view" id="markdown-rendered" checked><label for="markdown-rendered">rendered</label><input type="radio" name="markdown-view" id="markdown-code"><label for="markdown-code">code</label><section class="readme rendered"><h1>Installation Guide</h1>
<h2>Windows</h2>
<h3>Building</h3>
<ul>
<li>Install <a href="https://www.keil.com/demo/eval/arm.htm">Keil</a>
<ul>
<li>The device we're using is the <code>TM4C123GH6PM</code></li>
<li>If it doesn't accept your UT email, download it from <a href="https://utexas.box.com/s/gsnnv6mcyqviivyvzziii3ygvl9g9866">here</a></li>
</ul>
</li>
<li>Install the <a href="https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads">GNU Arm Embedded Toolchain</a> using option 2 in the linked page</li>
<li>Clone this repository <code>git clone https://github.com/ut-ras/mm20.git</code> from command prompt or use github desktop for a graphical experience</li>
<li>Double click mm.uvprojx, it should open the micromouse project in Keil</li>
<li>Starting from the <code>Project</code> menu at the top of the screen, navigate to <code>Project-&gt;Manage-&gt;Project Items-&gt;Folder/Extensions</code></li>
<li>Check the option <code>Use gcc compiler</code>, the ARM compiler should now be grayed out</li>
<li>Click on the folder sub-field and browse to <code>C:\Program Files (x86)\GNU Tools ARM Embedded\8 2019-q3-update\</code></li>
<li>Exit the menu, and navigate to the menu <code>Project -&gt; Options -&gt; Debug</code>
<ul>
<li>In the dropdown next to the <code>use</code> field, select <code>Stellaris ICDI</code></li>
</ul>
</li>
<li>Because of peculiarities in the way Keil links the c libraries we need, we must now manual move the library files to our repository
<ul>
<li>From the folder <code>C:\Program Files (x86)\GNU Tools ARM Embedded\8 2019-q3-update\arm-none-eabi\lib\thumb\v7e-m+fp\hard</code> copy the files <code>libc_nano.a</code>, <code>libm.a</code>, and <code>libnosys.a</code></li>
<li>Paste them into <code>mm20/misc</code></li>
</ul>
</li>
<li>Click the build button, you might have warnings but the build should complete without errors</li>
</ul>
<h3>Flashing</h3>
<ul>
<li>Next download and unzip <a href="http://www.ti.com/tool/STELLARIS_ICDI_DRIVERS">Stellaris ICDI</a>
<ul>
<li>Once a TM4C microcontroller is plugged in, open <code>Device Manager</code> and find and right click on the unrecognized usb device</li>
<li>Select <code>Update Drivers</code> and select <code>browse my computer for driver software</code>, then select the uncompressed ICDI folder</li>
<li>Unplug and Reconnect your microcontroller</li>
<li>In Keil you should now be able to hit the flash button to flash code to the TM4C microcontroller</li>
</ul>
</li>
</ul>
<h3>Serial (UART)</h3>
<ul>
<li>Download <a href="https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html">PuTTY</a></li>
<li>In the <code>Ports -&gt; USB serial device</code> menu of <code>Device Manager</code> you should be able to see the <code>COM</code> port the microcontroller is hooked up to ex. <code>COM4</code>.</li>
<li>In the <code>Session</code> menu, select the <code>Serial</code> connection type</li>
<li>Enter the correct serial line from device manager, ex. <code>COM4</code> and set the speed to <code>115200</code></li>
<li>You will now be able to send and recieve information to the TM4C through UART</li>
</ul>
<h3>Simulation</h3>
<ul>
<li>
<p>Install the MinGW gcc compiler</p>
<ul>
<li>Download <code>MinGW-W64-install.exe</code> from <a href="https://sourceforge.net/projects/mingw-w64/files/">the download page</a></li>
<li>Install from the exe, make sure to change the architecture selection to x86_64</li>
</ul>
</li>
<li>
<p>Add the MinGW compiler to your path</p>
<ul>
<li>Open the Windows Environment variables settings screen</li>
<li>Select PATH, click edit, choose the next empty line and click browse</li>
<li>Navigate to the <code>MinGW</code> folder in <code>Program Files</code> and select the <code>bin</code> folder</li>
<li>save your settings and open command prompt, type in gcc and hit enter, if you get an error meesage from gcc, it was correctly added to your path</li>
</ul>
</li>
<li>
<p>Clone the template algorithm <code>git clone https://github.com/mackorone/mms-c.git</code></p>
</li>
<li>
<p>Download and uncompress the <a href="https://github.com/mackorone/mms/releases">mms</a> simulator</p>
</li>
<li>
<p>Run <code>mms.exe</code> and click the "+" button to configure a new algorithm</p>
<ul>
<li>Enter a name, then for the directory field navigate to where you cloned <code>mms-c</code> and select the <code>mms-c</code> folder</li>
<li>Enter <code>gcc API.c Main.c</code> for the build command</li>
<li>For the run command, copy the directory path and append <code>\a.exe</code></li>
<li>The build and run buttons should now be able to run the algorithm</li>
</ul>
</li>
</ul>
<h2>Ubuntu (Not WSL)</h2>
<ul>
<li>Create a file called <code>61.dialout.rules</code> in <code>/etc/udev/rules.d</code> with the following line:
<ul>
<li><code>SUBSYSTEM=="usb", ATTRS{idVendor}=="1cbe", ATTRS{idProduct}=="00fd", MODE="0666"</code></li>
<li>This allows any program to read or write to your TM4C</li>
<li>Run <code>udevadm control --reload</code> and/or unplug and reconnect your TM4C</li>
</ul>
</li>
<li><code>sudo apt update</code></li>
<li><code>sudo apt install gcc-arm-none-eabi gdb-arm-none-eabi make clang openocd screen</code></li>
<li><code>git clone https://github.com/ut-ras/mm20.git</code></li>
<li><code>cd mm20</code></li>
<li>Run <code>make</code> to build, <code>make flash</code> to flash, <code>make debug</code> to debug, and <code>make uart</code> to view serial output</li>
</ul>
<h2>Arch</h2>
<ul>
<li>Create a file called <code>61.dialout.rules</code> in <code>/etc/udev/rules.d</code> with the following line:
<ul>
<li><code>SUBSYSTEM=="usb", ATTRS{idVendor}=="1cbe", ATTRS{idProduct}=="00fd", MODE="0666"</code></li>
<li>This allows any program to read or write to your TM4C</li>
<li>Run <code>udevadm control --reload</code> and/or unplug and reconnect your TM4C</li>
</ul>
</li>
<li>Using an AUR compatible package manager, install the compiler, simulator and <code>screen</code> to view UART
<ul>
<li><code>yay -Syu arm-none-eabi-newlib arm-none-eabi-gdb mms-git screen</code></li>
</ul>
</li>
<li><code>git clone https://github.com/ut-ras/mm20.git</code></li>
<li><code>cd mm20</code></li>
<li>Run <code>make</code> to build, <code>make flash</code> to flash, <code>make debug</code> to debug, and <code>make uart</code> to view serial output</li>
</ul>
</section><div class="code-panel"><pre class="code src language-markdown"><span class="code-line"><a class="ln" id="L1" href="#L1">1</a><span class="code-text"><a-p>#</a-p> <a-tt>Installation Guide</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L2" href="#L2">2</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L3" href="#L3">3</a><span class="code-text"><a-p>##</a-p> <a-tt>Windows</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L4" href="#L4">4</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L5" href="#L5">5</a><span class="code-text"><a-p>###</a-p> <a-tt>Building</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L6" href="#L6">6</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L7" href="#L7">7</a><span class="code-text"><a-p>- </a-p>Install [Keil](https://www.keil.com/demo/eval/arm.htm)</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L8" href="#L8">8</a><span class="code-text"><a-p>  - </a-p>The device we&#39;re using is the `TM4C123GH6PM`</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L9" href="#L9">9</a><span class="code-text"><a-p>  - </a-p>If it doesn&#39;t accept your UT email, download it from [here](https://utexas.box.com/s/gsnnv6mcyqviivyvzziii3ygvl9g9866)</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L10" href="#L10">10</a><span class="code-text"><a-p>- </a-p>Install the [GNU Arm Embedded Toolchain](https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads) using option 2 in the linked page</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L11" href="#L11">11</a><span class="code-text"><a-p>- </a-p>Clone this repository `git clone https://github.com/ut-ras/mm20.git` from command prompt or use github desktop for a graphical experience</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L12" href="#L12">12</a><span class="code-text"><a-p>- </a-p>Double click mm.uvprojx, it should open the micromouse project in Keil</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L13" href="#L13">13</a><span class="code-text"><a-p>- </a-p>Starting from the `Project` menu at the top of the screen, navigate to `Project-&gt;Manage-&gt;Project Items-&gt;Folder/Extensions`</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L14" href="#L14">14</a><span class="code-text"><a-p>- </a-p>Check the option `Use gcc compiler`, the ARM compiler should now be grayed out</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L15" href="#L15">15</a><span class="code-text"><a-p>- </a-p>Click on the folder sub-field and browse to `C:\Program Files (x86)\GNU Tools ARM Embedded\8 2019-q3-update\`</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L16" href="#L16">16</a><span class="code-text"><a-p>- </a-p>Exit the menu, and navigate to the menu `Project -&gt; Options -&gt; Debug`</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L17" href="#L17">17</a><span class="code-text"><a-p>  - </a-p>In the dropdown next to the `use` field, select `Stellaris ICDI`</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L18" href="#L18">18</a><span class="code-text"><a-p>- </a-p>Because of peculiarities in the way Keil links the c libraries we need, we must now manual move the library files to our repository</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L19" href="#L19">19</a><span class="code-text"><a-p>  - </a-p>From the folder `C:\Program Files (x86)\GNU Tools ARM Embedded\8 2019-q3-update\arm-none-eabi\lib\thumb\v7e-m+fp\hard` copy the files `libc_nano.a`, `libm.a`, and `libnosys.a`</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L20" href="#L20">20</a><span class="code-text"><a-p>  - </a-p>Paste them into `mm20/misc`</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L21" href="#L21">21</a><span class="code-text"><a-p>- </a-p>Click the build button, you might have warnings but the build should complete without errors</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L22" href="#L22">22</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L23" href="#L23">23</a><span class="code-text"><a-p>### </a-p><a-tt>Flashing</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L24" href="#L24">24</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L25" href="#L25">25</a><span class="code-text"><a-p>- Next download and unzip [Stellaris ICDI](http://www.ti.com/tool/STELLARIS_ICDI_DRIVERS)</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L26" href="#L26">26</a><span class="code-text"><a-p>  - Once a TM4C microcontroller is plugged in, open `Device Manager` and find and right click on the unrecognized usb device</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L27" href="#L27">27</a><span class="code-text"><a-p>  - Select `Update Drivers` and select `browse my computer for driver software`, then select the uncompressed ICDI folder</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L28" href="#L28">28</a><span class="code-text"><a-p>  - Unplug and Reconnect your microcontroller</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L29" href="#L29">29</a><span class="code-text"><a-p>  - In Keil you should now be able to hit the flash button to flash code to the TM4C microcontroller</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L30" href="#L30">30</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L31" href="#L31">31</a><span class="code-text"><a-p>### </a-p><a-tt>Serial (UART)</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L32" href="#L32">32</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L33" href="#L33">33</a><span class="code-text"><a-p>- Download [PuTTY](https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html)</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L34" href="#L34">34</a><span class="code-text"><a-p>- In the `Ports -&gt; USB serial device` menu of `Device Manager` you should be able to see the `COM` port the microcontroller is hooked up to ex. `COM4`.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L35" href="#L35">35</a><span class="code-text"><a-p>- In the `Session` menu, select the `Serial` connection type</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L36" href="#L36">36</a><span class="code-text"><a-p>- Enter the correct serial line from device manager, ex. `COM4` and set the speed to `115200`</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L37" href="#L37">37</a><span class="code-text"><a-p>- You will now be able to send and recieve information to the TM4C through UART</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L38" href="#L38">38</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L39" href="#L39">39</a><span class="code-text"><a-p>### </a-p><a-tt>Simulation</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L40" href="#L40">40</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L41" href="#L41">41</a><span class="code-text"><a-p>- Install the MinGW gcc compiler</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L42" href="#L42">42</a><span class="code-text"><a-p>  - Download `MinGW-W64-install.exe` from [the download page](https://sourceforge.net/projects/mingw-w64/files/)</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L43" href="#L43">43</a><span class="code-text"><a-p>  - Install from the exe, make sure to change the architecture selection to x86_64</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L44" href="#L44">44</a><span class="code-text"><a-p>- Add the MinGW compiler to your path</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L45" href="#L45">45</a><span class="code-text"><a-p>  - Open the Windows Environment variables settings screen</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L46" href="#L46">46</a><span class="code-text"><a-p>  - Select PATH, click edit, choose the next empty line and click browse</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L47" href="#L47">47</a><span class="code-text"><a-p>  - Navigate to the `MinGW` folder in `Program Files` and select the `bin` folder</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L48" href="#L48">48</a><span class="code-text"><a-p>  - save your settings and open command prompt, type in gcc and hit enter, if you get an error meesage from gcc, it was correctly added to your path</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L49" href="#L49">49</a><span class="code-text"><a-p>- Clone the template algorithm `git clone https://github.com/mackorone/mms-c.git`</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L50" href="#L50">50</a><span class="code-text"><a-p>- Download and uncompress the [mms](https://github.com/mackorone/mms/releases) simulator</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L51" href="#L51">51</a><span class="code-text"><a-p>- Run `mms.exe` and click the &quot;+&quot; button to configure a new algorithm</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L52" href="#L52">52</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L53" href="#L53">53</a><span class="code-text"><a-p>  - Enter a name, then for the directory field navigate to where you cloned `mms-c` and select the `mms-c` folder</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L54" href="#L54">54</a><span class="code-text"><a-p>  - Enter `gcc API.c Main.c` for the build command</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L55" href="#L55">55</a><span class="code-text"><a-p>  - For the run command, copy the directory path and append `\a.exe`</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L56" href="#L56">56</a><span class="code-text"><a-p>  - The build and run buttons should now be able to run the algorithm</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L57" href="#L57">57</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L58" href="#L58">58</a><span class="code-text"><a-p>## </a-p><a-tt>Ubuntu (Not WSL)</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L59" href="#L59">59</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L60" href="#L60">60</a><span class="code-text"><a-p>- Create a file called `61.dialout.rules` in `/etc/udev/rules.d` with the following line:</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L61" href="#L61">61</a><span class="code-text"><a-p>  - `SUBSYSTEM==&quot;usb&quot;, ATTRS{idVendor}==&quot;1cbe&quot;, ATTRS{idProduct}==&quot;00fd&quot;, MODE=&quot;0666&quot;`</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L62" href="#L62">62</a><span class="code-text"><a-p>  - This allows any program to read or write to your TM4C</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L63" href="#L63">63</a><span class="code-text"><a-p>  - Run `udevadm control --reload` and/or unplug and reconnect your TM4C</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L64" href="#L64">64</a><span class="code-text"><a-p>- `sudo apt update`</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L65" href="#L65">65</a><span class="code-text"><a-p>- `sudo apt install gcc-arm-none-eabi gdb-arm-none-eabi make clang openocd screen`</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L66" href="#L66">66</a><span class="code-text"><a-p>- `git clone https://github.com/ut-ras/mm20.git`</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L67" href="#L67">67</a><span class="code-text"><a-p>- `cd mm20`</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L68" href="#L68">68</a><span class="code-text"><a-p>- Run `make` to build, `make flash` to flash, `make debug` to debug, and `make uart` to view serial output</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L69" href="#L69">69</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L70" href="#L70">70</a><span class="code-text"><a-p>## </a-p><a-tt>Arch</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L71" href="#L71">71</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L72" href="#L72">72</a><span class="code-text"><a-p>- Create a file called `61.dialout.rules` in `/etc/udev/rules.d` with the following line:</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L73" href="#L73">73</a><span class="code-text"><a-p>  - `SUBSYSTEM==&quot;usb&quot;, ATTRS{idVendor}==&quot;1cbe&quot;, ATTRS{idProduct}==&quot;00fd&quot;, MODE=&quot;0666&quot;`</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L74" href="#L74">74</a><span class="code-text"><a-p>  - This allows any program to read or write to your TM4C</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L75" href="#L75">75</a><span class="code-text"><a-p>  - Run `udevadm control --reload` and/or unplug and reconnect your TM4C</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L76" href="#L76">76</a><span class="code-text"><a-p>- Using an AUR compatible package manager, install the compiler, simulator and `screen` to view UART</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L77" href="#L77">77</a><span class="code-text"><a-p>  - `yay -Syu arm-none-eabi-newlib arm-none-eabi-gdb mms-git screen`</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L78" href="#L78">78</a><span class="code-text"><a-p>- `git clone https://github.com/ut-ras/mm20.git`</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L79" href="#L79">79</a><span class="code-text"><a-p>- `cd mm20`</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L80" href="#L80">80</a><span class="code-text"><a-p>- </a-p>Run `make` to build, `make flash` to flash, `make debug` to debug, and `make uart` to view serial output</span></span></pre></div></div>
</main>
</body>
</html>
