<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: Try to re-flash the bootloader of my Maple-Mini</title>
		<link>http://forums.leaflabs.com/topic.php?id=9322</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:17:06 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=9322" rel="self" type="application/rss+xml" />

		<item>
			<title>Bernardo769 on "Try to re-flash the bootloader of my Maple-Mini"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9322#post-20525</link>
			<pubDate>Sun, 28 Oct 2012 10:43:17 +0000</pubDate>
			<dc:creator>Bernardo769</dc:creator>
			<guid isPermaLink="false">20525@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;The PC (Win XP-SP3) on which I tried with Python 2.7 has only this version installed.&#60;br /&#62;
So I think the problem is elsewhere.&#60;/p&#62;
&#60;p&#62;On the first PC (Win Vista), I actually installed both versions of Python. And I have two error messages mentioned above.&#60;/p&#62;
&#60;p&#62;I'd be sure to use the correct procedure to re-flash the Maple-Mini.&#60;br /&#62;
The wiring between the FTDI and Maple-Mini is visible here: &#60;a href=&#34;http://bernard.o.perso.neuf.fr/Electronic/MAPLE/BurnBootLoader/BurnBootLoader.htm&#34; rel=&#34;nofollow&#34;&#62;http://bernard.o.perso.neuf.fr/Electronic/MAPLE/BurnBootLoader/BurnBootLoader.htm&#60;/a&#62;&#60;br /&#62;
When I plug the USB jack on the FTDI.&#60;br /&#62;
Maple-Mini blinks rapidly, then slowly, then stops blinking.&#60;br /&#62;
In Device Manager, the FTDI is recognized: USB serial port (COM4).&#60;br /&#62;
Then I press RESET buttons simultaneously and BUT.&#60;br /&#62;
Then I release the RESET button while keeping the button pressed BUT.&#60;br /&#62;
And finally I release the button BUT.&#60;br /&#62;
In this section, nothing happens on the LED&#60;/p&#62;
&#60;p&#62;Then I open a DOS session, and I run the following commands:&#60;br /&#62;
CD C:\Users\Olivier\Documents\Electronique\MAPLE STM32&#60;br /&#62;
&#34;C:\Program Files\Python33\python.exe&#34; stm32loader.py -p COM4 -evw maple_mini_boot.bin&#60;/p&#62;
&#60;p&#62;and .... this time, it worked :&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://bernard.o.perso.neuf.fr/Electronic/MAPLE/BurnBootLoader/BurnBootLoader.txt.html&#34; rel=&#34;nofollow&#34;&#62;http://bernard.o.perso.neuf.fr/Electronic/MAPLE/BurnBootLoader/BurnBootLoader.txt.html&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I can get into programming my Maple-Mini. Thank you for your help.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Try to re-flash the bootloader of my Maple-Mini"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9322#post-20524</link>
			<pubDate>Sun, 28 Oct 2012 09:08:31 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">20524@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Bernardo769 - I believe there are some incompatibilities between Python 2.x and 3.x. So have you tried un-installing all versions of Python, then installing 2.7?&#60;/p&#62;
&#60;p&#62;The upload for an ordinary Maple bootloader worked for me using Python 2.7 and the python serial package.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Bernardo769 on "Try to re-flash the bootloader of my Maple-Mini"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9322#post-20521</link>
			<pubDate>Sun, 28 Oct 2012 08:15:34 +0000</pubDate>
			<dc:creator>Bernardo769</dc:creator>
			<guid isPermaLink="false">20521@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Following my problem noted here: &#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=9223&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=9223&#60;/a&#62;&#60;br /&#62;
I now try to re-flash the bootloader of my Maple-Mini. But I came across the following problem:&#60;br /&#62;
&#60;a href=&#34;http://bernard.o.perso.neuf.fr/Electronic/MAPLE/BurnBootLoader/BurnBootLoader.htm&#34; rel=&#34;nofollow&#34;&#62;http://bernard.o.perso.neuf.fr/Electronic/MAPLE/BurnBootLoader/BurnBootLoader.htm&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;In summary:&#60;br /&#62;
I installed python 3.3&#60;br /&#62;
I installed pyserial-2.6&#60;br /&#62;
and when I try to flash the bootloader, I have the following messages:&#60;/p&#62;
&#60;p&#62;CD C:\Users\Olivier\Documents\Electronique\MAPLE STM32&#60;br /&#62;
&#34;C:\Program Files\Python33\python.exe&#34; stm32loader.py -p COM4 -evw maple_mini_boot.bin&#60;/p&#62;
&#60;p&#62;C:\Users\Olivier\Documents\Electronique\MAPLE STM32&#38;gt;&#34;C:\Program Files\Python33\python.exe&#34; stm32loader.py -p COM4 -evw maple_mini_boot.bin&#60;br /&#62;
Reading data from maple_mini_boot.bin&#60;br /&#62;
Traceback (most recent call last):&#60;br /&#62;
  File &#34;stm32loader.py&#34;, line 479, in &#38;lt;module&#38;gt;&#60;br /&#62;
    data = read(args[0])&#60;br /&#62;
  File &#34;stm32loader.py&#34;, line 383, in read&#60;br /&#62;
    if bytes.startswith('\x7FELF'):&#60;br /&#62;
TypeError: startswith first arg must be bytes or a tuple of bytes, not str&#60;/p&#62;
&#60;p&#62;I have another kind of problem when I try to re-flash with python2.7:&#60;/p&#62;
&#60;p&#62;F:\STM32&#38;gt;&#34;C:\Program Files\Python27\python.exe&#34; stm32loader.py -p COM4 -evw mapl&#60;br /&#62;
e_mini_boot.bin&#60;br /&#62;
Reading data from maple_mini_boot.bin&#60;br /&#62;
Can't init. Ensure BOOT0=1, BOOT1=0, and reset device&#60;br /&#62;
Traceback (most recent call last):&#60;br /&#62;
  File &#34;stm32loader.py&#34;, line 486, in &#38;lt;module&#38;gt;&#60;br /&#62;
    bootversion = cmd.cmdGet()&#60;br /&#62;
  File &#34;stm32loader.py&#34;, line 139, in cmdGet&#60;br /&#62;
    if self.cmdGeneric(0x00):&#60;br /&#62;
  File &#34;stm32loader.py&#34;, line 136, in cmdGeneric&#60;br /&#62;
    return self._wait_for_ack(hex(cmd))&#60;br /&#62;
  File &#34;stm32loader.py&#34;, line 87, in _wait_for_ack&#60;br /&#62;
    raise CmdException(&#34;No response to %s&#34; % info)&#60;br /&#62;
__main__.CmdException: No response to 0x0&#60;/p&#62;
&#60;p&#62;Please help...&#60;br /&#62;
Olivier BERNARD
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
