<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>README.md - collab/mm20 @ algorithms</title>
<meta name="description" content="README.md in collab/mm20 at algorithms.">
<meta property="og:title" content="README.md - collab/mm20 @ algorithms">
<meta property="og:description" content="README.md in collab/mm20 at algorithms.">
<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="algorithms" data-tip="9fadb5c8cc176e5b503e6e95867300c7f8fcba38">
<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">Allen Jiang</span><span class="commit-message" data-commit="95db54026e1c316d77232368b6ac1f82c8f07f35">Update README.md</span><span class="snapshot-sha sha" data-commit="95db54026e1c316d77232368b6ac1f82c8f07f35">95db540</span><time datetime="2020-09-07T03:16:17-05:00" title="2020-09-07 03:16:17 -0500">2020-09-07</time></p>
<header class="topbar"><details class="switcher"><summary>algorithms</summary><div class="menu"><strong>branches</strong><a href="/collab/mm20/ref/adc/">adc</a><a class="current" href="/collab/mm20/ref/algorithms/">algorithms</a><a 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">README.md</span></nav>
<span class="view-stats"><span>2.8 KiB</span><span>42 lines</span></span><span class="actions"><a class="raw" href="/collab/mm20/raw/9a4ba00a55b30730c7ed0f24b693d665500faebc/README.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>mm20</h1>
<p>🐭🤖</p>
<p><strong>TM4C Code Composer Studio Environment Setup</strong></p>
<ol>
<li>
<p>Download and install <a href="https://www.ti.com/tool/download/CCSTUDIO/9.3.0.00012">Code Composer Studio (CCS) v9.3.0</a>.</p>
<ul>
<li>Choose either the single-file installer or on-demand installer.</li>
<li>Leave all settings as default except the following:</li>
<li><img src="https://i.imgur.com/PTGEXd5.png" alt="Settings Image" /></li>
</ul>
</li>
<li>
<p>Open Resource Explorer</p>
<ul>
<li><img src="https://i.imgur.com/TyU6Rpb.png" alt="Resource Explorer Image" /></li>
</ul>
</li>
<li>
<p>Navigate to Software -&gt; Click on TI-RTOS for TivaC and click install. Leave settings as default in the popup box.</p>
<ul>
<li><img src="https://i.imgur.com/BMF9vZH.png" alt="Resource Explorer Image 2" /></li>
<li><img src="https://i.imgur.com/8Pujq0D.png" alt="Resource Explorer Install Image" /></li>
</ul>
</li>
<li>
<p>Go to Resource Explorer -&gt; TI-RTOS for TivaC -&gt; EK-TM4C123GXL -&gt; Driver Examples -&gt; GPIO Examples -&gt; GPIO Interrupt</p>
<ul>
<li>Press the import button <img src="https://i.imgur.com/aZa60IC.png" alt="Import" /></li>
<li>Press OK on any dialogs that come up</li>
</ul>
</li>
<li>
<p>After the project is imported, it should appear in your project explorer. If you can't find the project explorer, click on View -&gt; Project Explorer</p>
<ul>
<li><img src="https://i.imgur.com/gMqyJJb.png" alt="Project Explorer" /></li>
</ul>
</li>
<li>
<p>Right click the project inside project explorer and create a new Target Configuration File. File name does not matter. Open the new target configuration file and in the window that pops up, change your settings to the following and click on save:</p>
<ul>
<li>Connection: Stellaris In-Circuit Debug Interface</li>
<li>Board or Device: In the search bar, look up GH6PM and activate the checkbox for Tiva TM4C123GH6PM</li>
<li>Click on the save button under Save Configuration</li>
<li><img src="https://i.imgur.com/rmmsKlo.png" alt="Target Config" /></li>
<li><img src="https://i.imgur.com/Tz6Cn8R.png" alt="CCXML" /></li>
</ul>
</li>
<li>
<p>Download <a href="http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc/3_32_01_22/index_FDS.html">XDCtools 3.32</a>. Delete everything inside C:\ti\ccs930\xdctools_3_60_02_34_core and replace it with the contents of your downloaded xdctools_3_32_01_22_core folder.</p>
<ul>
<li>Make sure to <em><strong>not</strong></em> download the one that is labeled "XDCtools Core without a JRE"</li>
</ul>
</li>
<li>
<p>Restart CCS. If you get a popup asking if you want to update XDCtools, ignore it and press cancel.</p>
</li>
<li>
<p>The example code can be found in your project gpiointerrupt_EK_TM4C.../gpiointerrupt.c</p>
</li>
<li>
<p>Plug the board into your computer and set the board power switch so that the green LED turns on. Make sure to plug the USB into the same port as the one in the picture. Press the debug button and accept any dialog boxes.</p>
<ul>
<li><img src="https://i.imgur.com/XmdeF07.png" alt="USB Port" /></li>
<li><img src="https://i.imgur.com/fHwHgSs.png" alt="Debug Button" /></li>
</ul>
</li>
<li>
<p>Click on the debug button again. CCS will now flash your TM4C board with the new code. To test the code, play around with the bottom 2 buttons and make sure the LED turns on.</p>
</li>
</ol>
</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>mm20</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"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L4" href="#L4">4</a><span class="code-text">__TM4C Code Composer Studio Environment Setup__</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>1. </a-p>Download and install [Code Composer Studio (CCS) v9.3.0](https://www.ti.com/tool/download/CCSTUDIO/9.3.0.00012).</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L6" href="#L6">6</a><span class="code-text"><a-p>    * </a-p>Choose either the single-file installer or on-demand installer.</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>Leave all settings as default except the following:</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>![Settings Image](https://i.imgur.com/PTGEXd5.png)</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></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>2. </a-p>Open Resource Explorer</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>![Resource Explorer Image](https://i.imgur.com/TyU6Rpb.png)</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></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>3. </a-p>Navigate to Software -&gt; Click on TI-RTOS for TivaC and click install. Leave settings as default in the popup box.</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>![Resource Explorer Image 2](https://i.imgur.com/BMF9vZH.png)</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>![Resource Explorer Install Image](https://i.imgur.com/8Pujq0D.png)</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L16" href="#L16">16</a><span class="code-text"></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>4. Go to Resource Explorer -&gt; TI-RTOS for TivaC -&gt; EK-TM4C123GXL -&gt; Driver Examples -&gt; GPIO Examples -&gt; GPIO Interrupt</a-p></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>      * Press the import button ![Import](https://i.imgur.com/aZa60IC.png)</a-p></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>      * Press OK on any dialogs that come up</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L20" href="#L20">20</a><span class="code-text"></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>5. After the project is imported, it should appear in your project explorer. If you can&#39;t find the project explorer, click on View -&gt; Project Explorer</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L22" href="#L22">22</a><span class="code-text"><a-p>      * ![Project Explorer](https://i.imgur.com/gMqyJJb.png)</a-p></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></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L24" href="#L24">24</a><span class="code-text"><a-p>6. Right click the project inside project explorer and create a new Target Configuration File. File name does not matter. Open the new target configuration file and in the window that pops up, change your settings to the following and click on save:</a-p></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>      * Connection: Stellaris In-Circuit Debug Interface</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>      * Board or Device: In the search bar, look up GH6PM and activate the checkbox for Tiva TM4C123GH6PM</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>      * Click on the save button under Save Configuration</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>      * ![Target Config](https://i.imgur.com/rmmsKlo.png)</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>      * ![CCXML](https://i.imgur.com/Tz6Cn8R.png)</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>7. Download [XDCtools 3.32](http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/rtsc/3_32_01_22/index_FDS.html). Delete everything inside C:\ti\ccs930\xdctools_3_60_02_34_core and replace it with the contents of your downloaded xdctools_3_32_01_22_core folder.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L32" href="#L32">32</a><span class="code-text"><a-p>      * Make sure to ___not___ download the one that is labeled &quot;XDCtools Core without a JRE&quot;</a-p></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>      </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>8. Restart CCS. If you get a popup asking if you want to update XDCtools, ignore it and press cancel.</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"></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>9. The example code can be found in your project gpiointerrupt_EK_TM4C.../gpiointerrupt.c</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"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L38" href="#L38">38</a><span class="code-text"><a-p>10. Plug the board into your computer and set the board power switch so that the green LED turns on. Make sure to plug the USB into the same port as the one in the picture. Press the debug button and accept any dialog boxes. </a-p></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>      * ![USB Port](https://i.imgur.com/XmdeF07.png)</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L40" href="#L40">40</a><span class="code-text"><a-p>      * ![Debug Button](https://i.imgur.com/fHwHgSs.png)</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L41" href="#L41">41</a><span class="code-text"></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>11. </a-p>Click on the debug button again. CCS will now flash your TM4C board with the new code. To test the code, play around with the bottom 2 buttons and make sure the LED turns on.</span></span></pre></div></div>
</main>
</body>
</html>
