<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://badge.emfcamp.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jimconner</id>
	<title>EMF Badge - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://badge.emfcamp.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jimconner"/>
	<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/wiki/Special:Contributions/Jimconner"/>
	<updated>2026-04-08T21:47:17Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/Firmware_Update&amp;diff=219</id>
		<title>TiLDA MK3/Firmware Update</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/Firmware_Update&amp;diff=219"/>
		<updated>2016-08-10T11:36:19Z</updated>

		<summary type="html">&lt;p&gt;Jimconner: /* Windows */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Update your Tilda Mk3==&lt;br /&gt;
&lt;br /&gt;
This websites will help you to update your Tilda Mk3 badge. But be careful, following these instructions will delete all files and setting on your badge, so make sure you have copies of everything!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Before you start==&lt;br /&gt;
&lt;br /&gt;
You need to put your badge into DFU mode. To do this please press down the joystick button in the center while at the same time quickly pushing the reset button at the back. &lt;br /&gt;
&lt;br /&gt;
Your screen should go white and then you'll now be ready to update your badge.&lt;br /&gt;
&lt;br /&gt;
==OSX==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Prerequisites needed for Mac OS X'''&lt;br /&gt;
&lt;br /&gt;
1. XCode (from App Store)&lt;br /&gt;
&lt;br /&gt;
2. [http://docs.python-guide.org/en/latest/starting/install/osx/ Homebrew and Pip]&lt;br /&gt;
&lt;br /&gt;
3. You then need to (from the terminal) use homebrew to install libusb &amp;lt;code&amp;gt;brew install libusb&amp;lt;/code&amp;gt; and pip to install libusb1 and pyusb &amp;lt;code&amp;gt;pip install libusb1 pyusb&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. You should be good to go! &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open a terminal and execute this line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;curl --silent --show-error --retry 5 https://update.badge.emfcamp.org/update.py | python&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Linux ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open a terminal and execute this line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;curl --silent --show-error --retry 5 https://update.badge.emfcamp.org/update.py | python&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Windows ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
On a Windows PC, you will need to download the STMicroelectronics DfuSe USB device firmware updater software http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/stsw-stm32080.html and use the 'Upgrade or Verify Action' part of the GUI to update the firmware instead.&lt;br /&gt;
&lt;br /&gt;
* Install the STMMicroelectronics util from the link above.&lt;br /&gt;
* Download the firmware.dfu file from https://update.badge.emfcamp.org/firmware.dfu and save it off.&lt;br /&gt;
* Start up DfuSeDemo.exe, and click the 'Choose' button - select the firmware.dfu file and then hit 'Upgrade'&lt;br /&gt;
* Your firmware will now be updated.&lt;br /&gt;
&lt;br /&gt;
== Other Operating systems==&lt;br /&gt;
&lt;br /&gt;
To update your badge please download the following script and run it via python: [https://update.badge.emfcamp.org/update.py update.py]&lt;br /&gt;
&lt;br /&gt;
If you know how to flash the badge yourself you can also download the DFU binary directly: [https://update.badge.emfcamp.org/firmware.dfu firmware.dfu]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Build your own version==&lt;br /&gt;
&lt;br /&gt;
If you want to build your own version of the firmware have a look [https://badge.emfcamp.org/wiki/TiLDA_MK3/build here]&lt;/div&gt;</summary>
		<author><name>Jimconner</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/Firmware_Update&amp;diff=218</id>
		<title>TiLDA MK3/Firmware Update</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/Firmware_Update&amp;diff=218"/>
		<updated>2016-08-10T11:35:11Z</updated>

		<summary type="html">&lt;p&gt;Jimconner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Update your Tilda Mk3==&lt;br /&gt;
&lt;br /&gt;
This websites will help you to update your Tilda Mk3 badge. But be careful, following these instructions will delete all files and setting on your badge, so make sure you have copies of everything!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Before you start==&lt;br /&gt;
&lt;br /&gt;
You need to put your badge into DFU mode. To do this please press down the joystick button in the center while at the same time quickly pushing the reset button at the back. &lt;br /&gt;
&lt;br /&gt;
Your screen should go white and then you'll now be ready to update your badge.&lt;br /&gt;
&lt;br /&gt;
==OSX==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Prerequisites needed for Mac OS X'''&lt;br /&gt;
&lt;br /&gt;
1. XCode (from App Store)&lt;br /&gt;
&lt;br /&gt;
2. [http://docs.python-guide.org/en/latest/starting/install/osx/ Homebrew and Pip]&lt;br /&gt;
&lt;br /&gt;
3. You then need to (from the terminal) use homebrew to install libusb &amp;lt;code&amp;gt;brew install libusb&amp;lt;/code&amp;gt; and pip to install libusb1 and pyusb &amp;lt;code&amp;gt;pip install libusb1 pyusb&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. You should be good to go! &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open a terminal and execute this line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;curl --silent --show-error --retry 5 https://update.badge.emfcamp.org/update.py | python&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Linux ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open a terminal and execute this line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;curl --silent --show-error --retry 5 https://update.badge.emfcamp.org/update.py | python&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Windows ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
On a Windows PC, you will need to download the STMicroelectronics DfuSe USB device firmware updater software http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/stsw-stm32080.html and use the 'Upgrade or Verify Action' part of the GUI to update the firmware instead.&lt;br /&gt;
&lt;br /&gt;
    Install the STMMicroelectronics util from the link above.&lt;br /&gt;
    Download the firmware.dfu file from https://update.badge.emfcamp.org/firmware.dfu and save it off.&lt;br /&gt;
    Start up DfuSeDemo.exe, and click the 'Choose' button - select the firmware.dfu file and then hit 'Upgrade'&lt;br /&gt;
    Your firmware will now be updated.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Other Operating systems==&lt;br /&gt;
&lt;br /&gt;
To update your badge please download the following script and run it via python: [https://update.badge.emfcamp.org/update.py update.py]&lt;br /&gt;
&lt;br /&gt;
If you know how to flash the badge yourself you can also download the DFU binary directly: [https://update.badge.emfcamp.org/firmware.dfu firmware.dfu]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Build your own version==&lt;br /&gt;
&lt;br /&gt;
If you want to build your own version of the firmware have a look [https://badge.emfcamp.org/wiki/TiLDA_MK3/build here]&lt;/div&gt;</summary>
		<author><name>Jimconner</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/build&amp;diff=217</id>
		<title>TiLDA MK3/build</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/build&amp;diff=217"/>
		<updated>2016-08-10T11:31:11Z</updated>

		<summary type="html">&lt;p&gt;Jimconner: /* Flashing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Dependencies ==&lt;br /&gt;
&lt;br /&gt;
You can use either windows or linux, although windows will not have most things installed by default&lt;br /&gt;
&lt;br /&gt;
=== git, make, python, etc ===&lt;br /&gt;
I will just assume you have this&lt;br /&gt;
&lt;br /&gt;
=== arm-none-eabi-gcc ===&lt;br /&gt;
https://launchpad.net/gcc-arm-embedded/+download&lt;br /&gt;
You will have to make the arm-none-eabi-gcc from the bin directory available to your system (add to PATH, symlink or copy)&lt;br /&gt;
&lt;br /&gt;
On Ubuntu you can follow these instructions: https://launchpad.net/~team-gcc-arm-embedded/+archive/ubuntu/ppa&lt;br /&gt;
&lt;br /&gt;
=== pyusb===&lt;br /&gt;
&amp;lt;pre&amp;gt;sudo pip install pyusb&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== USB Permissioning on Linux ==&lt;br /&gt;
&lt;br /&gt;
On some Linux distributions it may be necessary to add additional udev rules in order to allow the REPL to work:&lt;br /&gt;
&lt;br /&gt;
copy the following text to /etc/udev/rules.d/49-tilda-mk3.rules&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# 0483:df11 - Tila Mk3 based on Mircropython board&lt;br /&gt;
ATTRS{idVendor}==&amp;quot;0483&amp;quot;, ATTRS{idProduct}==&amp;quot;df11&amp;quot;, ENV{ID_MM_DEVICE_IGNORE}=&amp;quot;1&amp;quot;&lt;br /&gt;
ATTRS{idVendor}==&amp;quot;0483&amp;quot;, ATTRS{idProduct}==&amp;quot;df11&amp;quot;, ENV{MTP_NO_PROBE}=&amp;quot;1&amp;quot;&lt;br /&gt;
SUBSYSTEMS==&amp;quot;usb&amp;quot;, ATTRS{idVendor}==&amp;quot;0483&amp;quot;, ATTRS{idProduct}==&amp;quot;df11&amp;quot;, MODE:=&amp;quot;0666&amp;quot;&lt;br /&gt;
KERNEL==&amp;quot;ttyACM*&amp;quot;, ATTRS{idVendor}==&amp;quot;0483&amp;quot;, ATTRS{idProduct}==&amp;quot;df11&amp;quot;, MODE:=&amp;quot;0666&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And then restart the udev service:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo udevadm control --reload-rules&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Flashing ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Clone this repo&lt;br /&gt;
git clone --recursive git@github.com:emfcamp/micropython.git &lt;br /&gt;
&lt;br /&gt;
# Switch to our work branch&lt;br /&gt;
cd micropython&lt;br /&gt;
git checkout tilda-master&lt;br /&gt;
&lt;br /&gt;
# Now we can build the firmware and flash it to the badge&lt;br /&gt;
# You have to boot the badge into dfu mode by pressing down the center&lt;br /&gt;
# joystick button while pressing the reset button to trigger a reboot&lt;br /&gt;
make -C stmhal BOARD=STM32L475_EMFBADGE deploy&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== What to do when the firmware update.py script fails ==&lt;br /&gt;
&lt;br /&gt;
When attempting an update from linux, some users have hit timeouts during hte mass_erase step. This leaves the badge in an ususable state.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ python update.py &lt;br /&gt;
Hello - Welcome to the automated TiLDA firmware updater&lt;br /&gt;
We found your badge. So far, so good...&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
  File &amp;quot;update.py&amp;quot;, line 556, in &amp;lt;module&amp;gt;&lt;br /&gt;
    main()&lt;br /&gt;
  File &amp;quot;update.py&amp;quot;, line 530, in main&lt;br /&gt;
    mass_erase()&lt;br /&gt;
  File &amp;quot;update.py&amp;quot;, line 114, in mass_erase&lt;br /&gt;
    &amp;quot;\x41&amp;quot;, __TIMEOUT)&lt;br /&gt;
  File &amp;quot;/usr/local/lib/python2.7/dist-packages/usb/core.py&amp;quot;, line 1043, in ctrl_transfer&lt;br /&gt;
    self.__get_timeout(timeout))&lt;br /&gt;
  File &amp;quot;/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py&amp;quot;, line 883, in ctrl_transfer&lt;br /&gt;
    timeout))&lt;br /&gt;
  File &amp;quot;/usr/local/lib/python2.7/dist-packages/usb/backend/libusb1.py&amp;quot;, line 595, in _check&lt;br /&gt;
    raise USBError(_strerror(ret), ret, _libusb_errno[ret])&lt;br /&gt;
usb.core.USBError: [Errno 110] Operation timed out&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have access to a Windows PC, you can download the STMicroelectronics DfuSe USB device firmware updater software http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/stsw-stm32080.html and use the 'Upgrade or Verify Action' part of the GUI to update the firmware instead. &lt;br /&gt;
&lt;br /&gt;
* Install the STMMicroelectronics util from the link above.&lt;br /&gt;
* Download the firmware.dfu file from https://update.badge.emfcamp.org/firmware.dfu and save it off.&lt;br /&gt;
* Start up DfuSeDemo.exe, and click the 'Choose' button - select the firmware.dfu file and then hit 'Upgrade'&lt;br /&gt;
* Your badge should now be un-bricked&lt;/div&gt;</summary>
		<author><name>Jimconner</name></author>
	</entry>
</feed>