<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rsewiki.electro.dtu.dk/index.php?action=history&amp;feed=atom&amp;title=Compile_teensy</id>
	<title>Compile teensy - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rsewiki.electro.dtu.dk/index.php?action=history&amp;feed=atom&amp;title=Compile_teensy"/>
	<link rel="alternate" type="text/html" href="https://rsewiki.electro.dtu.dk/index.php?title=Compile_teensy&amp;action=history"/>
	<updated>2026-06-12T04:30:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rsewiki.electro.dtu.dk/index.php?title=Compile_teensy&amp;diff=3249&amp;oldid=prev</id>
		<title>S130074: /* Introduction */</title>
		<link rel="alternate" type="text/html" href="https://rsewiki.electro.dtu.dk/index.php?title=Compile_teensy&amp;diff=3249&amp;oldid=prev"/>
		<updated>2017-12-07T21:59:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Introduction&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:59, 7 December 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot;&gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As all code is located and updated through the git repository, it necessary to have a set of standard instructions on how the code is brought to the NUC, compiled and uploaded to the Teensy.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As all code is located and updated through the git repository, it necessary to have a set of standard instructions on how the code is brought to the NUC, compiled and uploaded to the Teensy.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is advised that the code on the NUC stays untouched as it both is somewhat difficult to maintain and edit the code from the NUC and you most likely will forget to commit and push the changes to the git repository when you are done. Then the git repo will fall out of sync, you head will explode trying to fix and Flexbot will run away (if it could). So change the code locally on your PC/laptop and follow this guide to get it running on Flexbot.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;It is advised that the code on the NUC stays untouched as it both is somewhat difficult to maintain and edit the code from the NUC and you most likely will forget to commit and push the changes to the git repository when you are done. Then the git repo will fall out of sync, you head will explode trying to fix &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;it &lt;/ins&gt;and Flexbot will run away (if it could). So change the code locally on your PC/laptop and follow this guide to get it running on Flexbot.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Pulling the code from the NUC=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Pulling the code from the NUC=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>S130074</name></author>
	</entry>
	<entry>
		<id>https://rsewiki.electro.dtu.dk/index.php?title=Compile_teensy&amp;diff=3248&amp;oldid=prev</id>
		<title>S130074: Created page with &quot;Back to Flexbot main page  =Introduction= As all code is located and updated through the git repository, it necessary to have a set of standard instructions on how the cod...&quot;</title>
		<link rel="alternate" type="text/html" href="https://rsewiki.electro.dtu.dk/index.php?title=Compile_teensy&amp;diff=3248&amp;oldid=prev"/>
		<updated>2017-12-07T21:58:47Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Back to &lt;a href=&quot;/index.php?title=Flexbot&quot; title=&quot;Flexbot&quot;&gt;Flexbot&lt;/a&gt; main page  =Introduction= As all code is located and updated through the git repository, it necessary to have a set of standard instructions on how the cod...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Back to [[Flexbot]] main page&lt;br /&gt;
&lt;br /&gt;
=Introduction=&lt;br /&gt;
As all code is located and updated through the git repository, it necessary to have a set of standard instructions on how the code is brought to the NUC, compiled and uploaded to the Teensy.&lt;br /&gt;
&lt;br /&gt;
It is advised that the code on the NUC stays untouched as it both is somewhat difficult to maintain and edit the code from the NUC and you most likely will forget to commit and push the changes to the git repository when you are done. Then the git repo will fall out of sync, you head will explode trying to fix and Flexbot will run away (if it could). So change the code locally on your PC/laptop and follow this guide to get it running on Flexbot.&lt;br /&gt;
&lt;br /&gt;
=Pulling the code from the NUC=&lt;br /&gt;
Start by connecting the NUC to the internet via ethernet. &amp;#039;&amp;#039;You might have to reboot before it actually has connection.&amp;#039;&amp;#039;&lt;br /&gt;
Join the NUC network with&lt;br /&gt;
 ssid: NUC&lt;br /&gt;
 pw: grenen89&lt;br /&gt;
ssh with X into the NUC by &lt;br /&gt;
 ssh -x local@10.42.0.1&lt;br /&gt;
or use a screen and keyboard connected to it. X isn&amp;#039;t tested on the NUC - if it isn&amp;#039;t supported go ahead and install it for others to enjoy.&lt;br /&gt;
Go to &lt;br /&gt;
 ~/flexbot&lt;br /&gt;
and type&lt;br /&gt;
 git pull&lt;br /&gt;
if you get any errors it is probably one out of two things, or both:&lt;br /&gt;
* You forgot to restart after connecting the ethernet.&lt;br /&gt;
* Someone changed the code on the NUC and did not commit and push.&lt;br /&gt;
If the latter is true, type&lt;br /&gt;
 git reset --hard&lt;br /&gt;
and try pulling again.&lt;br /&gt;
&lt;br /&gt;
=Compiling Teensy code=&lt;br /&gt;
Now that a new version is pulled onto the NUC, go to the folder&lt;br /&gt;
 ~/flexbot_deploy&lt;br /&gt;
and compile the code by&lt;br /&gt;
 make&lt;br /&gt;
&lt;br /&gt;
=Uploading to Teensy=&lt;br /&gt;
From the folder&lt;br /&gt;
 ~/flexbot_deploy&lt;br /&gt;
open up the Teensy application by typing&lt;br /&gt;
 ./teensy&lt;br /&gt;
Push the button on the Teensy located in the Flexbot leg, and upload the code from the Teensy application.&lt;br /&gt;
&lt;br /&gt;
=Closing Remarks=&lt;br /&gt;
It is always recommended to completely reboot the power supply to the Flexbot leg after uploading the code. The IMU&amp;#039;s are known to sometimes have issues after the Teensy have rebooted and they have not. So to be safe, just kill the power to the hardware and turn it on again.&lt;/div&gt;</summary>
		<author><name>S130074</name></author>
	</entry>
</feed>