<?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: Stuck in Maple boot.bin. How to get out and back to st-link.</title>
		<link>http://forums.leaflabs.com/topic.php?id=9724</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:16:31 +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=9724" rel="self" type="application/rss+xml" />

		<item>
			<title>Mubase on "Stuck in Maple boot.bin. How to get out and back to st-link."</title>
			<link>http://forums.leaflabs.com/topic.php?id=9724#post-21362</link>
			<pubDate>Fri, 30 Nov 2012 07:22:21 +0000</pubDate>
			<dc:creator>Mubase</dc:creator>
			<guid isPermaLink="false">21362@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Tormod: It means I haven't programmed using Shell commands before.&#60;br /&#62;
I normally use IDEs.&#60;br /&#62;
So if I got the bl.zip to work.Whats the best way of creating programs for the F4 and uploading them .....Without using Eclipse which is a PITA for me to use.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ala42 on "Stuck in Maple boot.bin. How to get out and back to st-link."</title>
			<link>http://forums.leaflabs.com/topic.php?id=9724#post-21341</link>
			<pubDate>Thu, 29 Nov 2012 17:52:52 +0000</pubDate>
			<dc:creator>ala42</dc:creator>
			<guid isPermaLink="false">21341@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;&#38;gt;That would be the bl.zip from &#60;a href=&#34;http://code.google.com/p/stm32f4discovery-libmaple/downloads/list&#34; rel=&#34;nofollow&#34;&#62;http://code.google.com/p/stm32f4discovery-libmaple/downloads/list&#60;/a&#62;&#60;br /&#62;
&#38;gt;I don't know if it works, and I could not find the source code.&#60;br /&#62;
The project home page points back to my F4 port, so the bootcode is not a real USB boot loader, but jumps into the CPU built in boot loader on demand, as discussed before in another thread here.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tormod on "Stuck in Maple boot.bin. How to get out and back to st-link."</title>
			<link>http://forums.leaflabs.com/topic.php?id=9724#post-21340</link>
			<pubDate>Thu, 29 Nov 2012 16:17:59 +0000</pubDate>
			<dc:creator>tormod</dc:creator>
			<guid isPermaLink="false">21340@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;If what you describe above is what f4_discovery.bin is meant to do, it does sound like you got everything to work.&#60;/p&#62;
&#60;p&#62;&#38;gt; One thing though.&#60;br /&#62;
&#38;gt; I am not akin to open source coding...&#60;/p&#62;
&#60;p&#62;What does that mean?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Mubase on "Stuck in Maple boot.bin. How to get out and back to st-link."</title>
			<link>http://forums.leaflabs.com/topic.php?id=9724#post-21336</link>
			<pubDate>Thu, 29 Nov 2012 08:01:47 +0000</pubDate>
			<dc:creator>Mubase</dc:creator>
			<guid isPermaLink="false">21336@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi Guys! An update on this problem:&#60;br /&#62;
1stly Tormod, you are right. It is the bl.zip from kl&#60;br /&#62;
 &#60;a href=&#34;http://code.google.com/p/stm32f4discovery-libmaple/downloads/list&#34; rel=&#34;nofollow&#34;&#62;http://code.google.com/p/stm32f4discovery-libmaple/downloads/list&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I got as far as burning the maple_boot.bin and using Zadig to install the driver for it.. I believe that was what caused St-link utility to go blind...&#60;br /&#62;
As far as if the bl.zip patch works.... I did manage to burn the f4_discovery.bin onto the board which flashed all four lights on the STM32f4 discovery board AND opened up a VCP on port 13 which, when I opened up a hyperterminal on the same port, flashed &#34;HELLO WORLD&#34; down the Hyperterminal screen ?!&#60;/p&#62;
&#60;p&#62;Since then I have managed to fix the ST-link utility by GOING BACK IN TIME!&#60;br /&#62;
( I ran a system restore back to the day before I started the Maple experiment..)&#60;br /&#62;
Now ST-Link recognises the board again.. &#60;/p&#62;
&#60;p&#62;:0)&#60;/p&#62;
&#60;p&#62;Does it sound like I was on the right track with Maple?&#60;br /&#62;
I am a bit of a noob to this but I like the idea of maple very much as I have used Arduino ( I have 3 arduino boards..)&#60;/p&#62;
&#60;p&#62;One thing though.&#60;br /&#62;
I am not akin to open source coding...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tormod on "Stuck in Maple boot.bin. How to get out and back to st-link."</title>
			<link>http://forums.leaflabs.com/topic.php?id=9724#post-21332</link>
			<pubDate>Thu, 29 Nov 2012 04:06:49 +0000</pubDate>
			<dc:creator>tormod</dc:creator>
			<guid isPermaLink="false">21332@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;&#38;gt;&#38;gt; 3. Maple bootloader (ported to STM32F4Discovery), USB ID 1eaf:0003&#60;br /&#62;
&#38;gt;This one does not exist for the F4 AFAIK.&#60;/p&#62;
&#60;p&#62;That would be the bl.zip from &#60;a href=&#34;http://code.google.com/p/stm32f4discovery-libmaple/downloads/list&#34; rel=&#34;nofollow&#34;&#62;http://code.google.com/p/stm32f4discovery-libmaple/downloads/list&#60;/a&#62;&#60;br /&#62;
I don't know if it works, and I could not find the source code.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ala42 on "Stuck in Maple boot.bin. How to get out and back to st-link."</title>
			<link>http://forums.leaflabs.com/topic.php?id=9724#post-21323</link>
			<pubDate>Wed, 28 Nov 2012 19:07:08 +0000</pubDate>
			<dc:creator>ala42</dc:creator>
			<guid isPermaLink="false">21323@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;&#38;gt; 3. Maple bootloader (ported to STM32F4Discovery), USB ID 1eaf:0003&#60;br /&#62;
This one does not exist for the F4 AFAIK.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>tormod on "Stuck in Maple boot.bin. How to get out and back to st-link."</title>
			<link>http://forums.leaflabs.com/topic.php?id=9724#post-21322</link>
			<pubDate>Wed, 28 Nov 2012 18:17:28 +0000</pubDate>
			<dc:creator>tormod</dc:creator>
			<guid isPermaLink="false">21322@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;To load code onto the STM32F4 it does not matter if you use STLINK/V2 or the build-in USB DFU bootloader. Both should always be possible, whatever you have programmed to the flash memory. So it is a bit confusing that your recipe uses both.&#60;/p&#62;
&#60;p&#62;Make sure you understand the difference between the possible USB devices that the board can represent:&#60;/p&#62;
&#60;p&#62;1. STLINK/V2 through the USB mini plug, USB ID 0483:3748. Should always be available. Any access problems like yours is probably because the Windows driver for this USB device is borken. Maybe you chose this device in Zadig.exe and selected a wrong driver for it.&#60;/p&#62;
&#60;p&#62;2. USB DFU through the USB micro port (when resetting with BOOT0 high and BOOT1/PB2 low), USB ID 0483:df11. This uses the ST DfuSe protocol (use for instance ST Dfuse Demo or dfu-util 0.7). Because dfu-util 0.7 uses libusb-1.0, you need to install WinUSB for this device.&#60;/p&#62;
&#60;p&#62;3. Maple bootloader (ported to STM32F4Discovery), USB ID 1eaf:0003, on the USB micro port. Hardware-wise this runs as a normal application, programmed to flash. This uses standard DFU (use dfu-util). Maple ships an old dfu-util which uses libusb0 so libusb-win32 is usually installed for this on Windows. But you can also use newer dfu-util/libusb-1.0/WinUSB.&#60;/p&#62;
&#60;p&#62;If your Windows is messed up and doesn't see this device, you can always use (1) or (2) to upload a sketch as well, although less convenient.&#60;/p&#62;
&#60;p&#62;4. Maple &#34;sketch&#34;, something based on libmaple, USB ID 1eaf:0004, appears as a CDC serial port, on the USB micro port. Using native Windows OS drivers AFAIK.&#60;/p&#62;
&#60;p&#62;So at any stage, make sure you have the right USB plug connected and check which USB device is seen by the computer. Use &#34;USBview.exe&#34; or something similar on Windows, and lsusb on Linux.&#60;/p&#62;
&#60;p&#62;HTH,&#60;br /&#62;
Tormod
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Stuck in Maple boot.bin. How to get out and back to st-link."</title>
			<link>http://forums.leaflabs.com/topic.php?id=9724#post-21318</link>
			<pubDate>Wed, 28 Nov 2012 12:12:51 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">21318@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Mubase - Welcome to the forum. &#60;/p&#62;
&#60;p&#62;To be fair to us, we are interested in Maples, libmaple, and STM32F. One of the forum members might be able to help you, but there is no guarantee that the author of &#60;a href=&#34;http://code.google.com/p/stm32f4discovery-libmaple/&#34; rel=&#34;nofollow&#34;&#62;http://code.google.com/p/stm32f4discovery-libmaple/&#60;/a&#62; visits this forum.&#60;/p&#62;
&#60;p&#62;What OS are you using?&#60;/p&#62;
&#60;p&#62;Just to check, you have tried to upload maple_boot.bin? Where did you get that? Is it from &#60;a href=&#34;http://code.google.com/p/stm32f4discovery-libmaple/&#34; rel=&#34;nofollow&#34;&#62;http://code.google.com/p/stm32f4discovery-libmaple/&#60;/a&#62;&#60;br /&#62;
or LeafLabs.&#60;/p&#62;
&#60;p&#62;If it is &#60;a href=&#34;http://code.google.com/p/stm32f4discovery-libmaple/&#34; rel=&#34;nofollow&#34;&#62;http://code.google.com/p/stm32f4discovery-libmaple/&#60;/a&#62; it might be worth raising an issue at that project.&#60;br /&#62;
One of the forums members here might help, but you might also try&#60;br /&#62;
&#60;a href=&#34;http://aeroquad.com/forum.php&#34; rel=&#34;nofollow&#34;&#62;http://aeroquad.com/forum.php&#60;/a&#62;&#60;br /&#62;
and&#60;br /&#62;
&#60;a href=&#34;https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx&#34; rel=&#34;nofollow&#34;&#62;https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx&#60;/a&#62;&#60;br /&#62;
I have no idea what the 'zadig' utility does.&#60;/p&#62;
&#60;p&#62;The normal Maple bootloader is for an STM32F103, and I am pretty sure will not run on an STM32F4.&#60;br /&#62;
(The USB peripherals are in different memory addresses. so the bootloader can't find the peripheral on the STM32F4. Also, the STM32F4 USB peripheral has more features than the STM32F103 USB, so code likely needs 'tweaking' to work. Further, the Maples STM32F103 has external electronics to 'disconnect' USB, trigger the host to re-enumerate (query) the USB interface, and hence Maple can tell the host PC it is a USB-DFU device, or a USB CDC serial device. The STM32F4 on the STM32F4 discovery can do the same thing, but the code is different.)&#60;/p&#62;
&#60;p&#62;If you unplug the STM32F4 USB lead, and only use the STLINK/V2 USB, it should always be possible to talk to the STLINK/V2. That USB device should never change.&#60;/p&#62;
&#60;p&#62;If you are on Windows, you could use the STLINK utility from ST Micro (www.st.com)&#60;br /&#62;
Folks, including me, have had success using the STLINK/V2 utility at &#60;a href=&#34;https://github.com/texane/stlink&#34; rel=&#34;nofollow&#34;&#62;https://github.com/texane/stlink&#60;/a&#62;&#60;br /&#62;
Then use gdb to check what the processor is doing. It is possible to upload a bootloader to the STM32F4 using gdb, or one of the other texane/stlink utility programs.&#60;/p&#62;
&#60;p&#62;(Full disclosure: I am not a member of LeafLabs staff)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Mubase on "Stuck in Maple boot.bin. How to get out and back to st-link."</title>
			<link>http://forums.leaflabs.com/topic.php?id=9724#post-21312</link>
			<pubDate>Tue, 27 Nov 2012 13:18:38 +0000</pubDate>
			<dc:creator>Mubase</dc:creator>
			<guid isPermaLink="false">21312@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi All.&#60;br /&#62;
I have a small problem. I have been trying to install the Maple Lib on my STM32F4 discovery following the instructions here:&#60;/p&#62;
&#60;p&#62;To start development u need to do next steps:&#60;br /&#62;
Download Sourcery_CodeBench_Lite_for_ARM_EABI.zip and extract it to hard disk&#60;br /&#62;
Need to update variable PATH to Sourcery_CodeBench_Lite_for_ARM_EABI\bin directory&#60;br /&#62;
Download bl.zip and upload it to board using FlashV2.bat&#60;br /&#62;
Place jumper between BOOT0 and VDD pin on stm32f4discovery board and reset it (stm32f4discovery now will work in DFU mode)&#60;br /&#62;
Extract and run zadig utility&#60;br /&#62;
Click Options-&#38;gt;List all devices , Select STM32-Bootloader , in Driver selectbox choose &#34;WinUSB&#34;, press Install drivers&#60;br /&#62;
Download and extract libmaple.zip to disk&#60;br /&#62;
Run build to upload code to adress 0x08010000&#60;br /&#62;
This batch file will&#60;/p&#62;
&#60;p&#62;Compile all neded files&#60;br /&#62;
Run python script to reset device using VCP driver (it will send magic word to f4)&#60;br /&#62;
Upload code to adress 0x08010000&#60;/p&#62;
&#60;p&#62;from this site:  &#60;a href=&#34;http://code.google.com/p/stm32f4discovery-libmaple/&#34; rel=&#34;nofollow&#34;&#62;http://code.google.com/p/stm32f4discovery-libmaple/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;and have got as far as burning maple_boot.bin onto my board. I can get the board into bootloader mode thru the micro USB port and installed the bootloader drivers when prompted.. However, Windows drivers needed to set up using Zadig had problems and seemed not to install..  I don't know where to go next..&#60;br /&#62;
Also, I am worried as now the board is stuck in maple_boot.bin mode.&#60;/p&#62;
&#60;p&#62;When I try to connect to the board using ST-Link utility I get this message:&#60;/p&#62;
&#60;p&#62;18:05:06 : [maple_boot.bin] opened successfully.&#60;br /&#62;
18:05:12 : No STLink detected&#60;br /&#62;
18:06:34 : No STLink detected&#60;br /&#62;
18:06:47 : No STLink detected&#60;/p&#62;
&#60;p&#62;and now I am worried I won't be able to either carry on to get Maple Lib to work OR revert back to the original boot mode for ordinary ST programming... :(&#60;br /&#62;
I am a total noob so please if someone who maybe knows what I am talking about could help I would be put out of my worry...&#60;br /&#62;
So if anyone knows how I get ST utility to recognize the board again I could restart!&#60;/p&#62;
&#60;p&#62;Thanks to anyone who reads this.&#60;br /&#62;
All the best,&#60;br /&#62;
Steve.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
