https://badge.emfcamp.org/w/api.php?action=feedcontributions&user=John&feedformat=atomEMF Badge - User contributions [en]2024-03-28T13:12:24ZUser contributionsMediaWiki 1.35.5https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/build&diff=169TiLDA MK3/build2016-08-06T11:25:58Z<p>John: </p>
<hr />
<div>== Dependencies ==<br />
<br />
You can use either windows or linux, although windows will not have most things installed by default<br />
<br />
=== git, make, python, etc ===<br />
I will just assume you have this<br />
<br />
=== arm-none-eabi-gcc ===<br />
https://launchpad.net/gcc-arm-embedded/+download<br />
You will have to make the arm-none-eabi-gcc from the bin directory available to your system (add to PATH, symlink or copy)<br />
<br />
On Ubuntu you can follow these instructions: https://launchpad.net/~team-gcc-arm-embedded/+archive/ubuntu/ppa<br />
<br />
=== pyusb===<br />
<pre>sudo pip install pyusb</pre><br />
<br />
== USB Permissioning on Linux ==<br />
<br />
On some Linux distributions it may be necessary to add additional udev rules in order to allow the REPL to work:<br />
<br />
copy the following text to /etc/udev/rules.d/49-tilda-mk3.rules<br />
<br />
<pre><br />
# 0483:df11 - Tila Mk3 based on Mircropython board<br />
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", ENV{ID_MM_DEVICE_IGNORE}="1"<br />
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", ENV{MTP_NO_PROBE}="1"<br />
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666"<br />
KERNEL=="ttyACM*", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666"<br />
</pre><br />
<br />
And then restart the udev service:<br />
<br />
<pre><br />
sudo udevadm control --reload-rules<br />
</pre><br />
<br />
== Flashing ==<br />
<br />
<pre><br />
# Clone this repo<br />
git clone --recursive git@github.com:emfcamp/micropython.git <br />
<br />
# Switch to our work branch<br />
cd micropython<br />
git checkout tilda-master<br />
<br />
# Now we can build the firmware and flash it to the badge<br />
# You have to boot the badge into dfu mode by pressing down the center<br />
# joystick button while pressing the reset button to trigger a reboot<br />
make -C stmhal BOARD=STM32L475_EMFBADGE deploy<br />
</pre></div>John