<?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; User Favorites: blackswords</title>
		<link><a href='http://forums.leaflabs.com/profile.php?id=4596'>4596</a></link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:12:28 +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?profile=4596" rel="self" type="application/rss+xml" />

		<item>
			<title>blackswords on "Modified bootloader for my own boad"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1665&amp;page=2#post-10690</link>
			<pubDate>Wed, 16 May 2012 03:20:56 +0000</pubDate>
			<dc:creator>blackswords</dc:creator>
			<guid isPermaLink="false">10690@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;So, I finally managed to get my board working!&#60;br /&#62;
I modified the IDE to add a kind of generic board, with all the pins declared (from PA0 to PG15) and they can be accessed by the standard numbering (0 to 111) or by they real name (PA6 for example) which is more convenient when you don't have an official board. Of course, if you want to modify the location of the button(s) and the LED(s) you just have to modify the &#34;MyBoard.h&#34; file. The linker script is for a 256k (Flash)/48k (Ram) device but it can be easily changed for another configuration. &#60;/p&#62;
&#60;p&#62;This modified IDE can be found &#60;a href=&#34;http://www.mediafire.com/download.php?q2tv7s1921bnryj&#34;&#62;here&#60;/a&#62; (it's the Mac OS version)&#60;/p&#62;
&#60;p&#62;I think it would be great is these kind of generic board can be implemented in MapleIDE. And maybe add an utility to generate the files according the user configuration (pinout and memory specifications)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ala42 on "Modified bootloader for my own boad"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1665&amp;page=2#post-10674</link>
			<pubDate>Tue, 15 May 2012 17:32:30 +0000</pubDate>
			<dc:creator>ala42</dc:creator>
			<guid isPermaLink="false">10674@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;&#38;gt; Ala, have you ported bootloader to F4?&#60;br /&#62;
No, currently I just use a dummy boot loader that starts the main program. I have added the basic USB serial stuff in the mean time for the F4 using the STM VCP driver. Sleep mode, close and reopen are not implemented yet, just the basic USB serial I/O. Have already added a software reset when USB sees a DTR and byte sequence to issue a reset. Next step is to start the CPU internal boot loader in this case.&#60;br /&#62;
The F4 built in boot loader works with dfu-util 0.6, but the reset after flashing does not seem to work.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "Modified bootloader for my own boad"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1665#post-10659</link>
			<pubDate>Tue, 15 May 2012 10:05:15 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">10659@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;the bootloader won't work on F4; the USB peripheral is different.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>blackswords on "Modified bootloader for my own boad"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1665#post-10656</link>
			<pubDate>Tue, 15 May 2012 03:31:00 +0000</pubDate>
			<dc:creator>blackswords</dc:creator>
			<guid isPermaLink="false">10656@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;So sorry, I don't have any F4 devices so I can't try.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>anton on "Modified bootloader for my own boad"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1665#post-10653</link>
			<pubDate>Mon, 14 May 2012 23:42:01 +0000</pubDate>
			<dc:creator>anton</dc:creator>
			<guid isPermaLink="false">10653@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Ala, have you ported bootloader to F4?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>blackswords on "Modified bootloader for my own boad"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1665#post-10636</link>
			<pubDate>Sun, 13 May 2012 11:45:30 +0000</pubDate>
			<dc:creator>blackswords</dc:creator>
			<guid isPermaLink="false">10636@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Oh I'm sorry, I'm not used to git and I didn't see the branches part. I found the bootlader, I'll check that and post some results
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "Modified bootloader for my own boad"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1665#post-10627</link>
			<pubDate>Sat, 12 May 2012 10:32:40 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">10627@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;the first result of the google search ala42 pointed you towards is a forum thread explaining how to get the RET6 sources. please &#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=994#post-6048&#34;&#62;remember to search the forum&#60;/a&#62; to see if your question has already been answered.&#60;/p&#62;
&#60;p&#62;the short answer is that RET6 bootloader sources are in the maple-ret6 branch of the maple-bootloader git repository, as i explained in my earlier post:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
you should start with one of the maple-bootloader branches for a high-density board, like the native-boot (for Maple Native) or maple-ret6 (for Maple RET6 Ed.) branches&#60;/p&#62;
&#60;/blockquote&#62;
&#60;p&#62;i'll leave you to read up on &#60;strong&#62;git&#60;/strong&#62; to figure out how to &#60;strong&#62;checkout&#60;/strong&#62; the &#60;strong&#62;maple-ret6&#60;/strong&#62; branch ;).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>blackswords on "Modified bootloader for my own boad"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1665#post-10626</link>
			<pubDate>Sat, 12 May 2012 08:38:46 +0000</pubDate>
			<dc:creator>blackswords</dc:creator>
			<guid isPermaLink="false">10626@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks but I need the sources of the RET6 version to remap the LED, the button and USB Connect pin, I only found the binary version of the RET6 bootloader (here &#60;a href=&#34;https://github.com/leaflabs/leaflabs-docs/blob/master/source/bootloader.rst#id34)&#34; rel=&#34;nofollow&#34;&#62;https://github.com/leaflabs/leaflabs-docs/blob/master/source/bootloader.rst#id34)&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ala42 on "Modified bootloader for my own boad"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1665#post-10619</link>
			<pubDate>Fri, 11 May 2012 17:36:13 +0000</pubDate>
			<dc:creator>ala42</dc:creator>
			<guid isPermaLink="false">10619@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;&#60;a href=&#34;http://lmgtfy.com/?q=+RET6+bootloader+git+hub&#34; rel=&#34;nofollow&#34;&#62;http://lmgtfy.com/?q=+RET6+bootloader+git+hub&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>blackswords on "Modified bootloader for my own boad"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1665#post-10612</link>
			<pubDate>Fri, 11 May 2012 02:34:21 +0000</pubDate>
			<dc:creator>blackswords</dc:creator>
			<guid isPermaLink="false">10612@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Okay, where can I find the RET6 bootloader? I only found the one on git hub. I'll try to fix the one I have to use it without optimizations
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ala42 on "Modified bootloader for my own boad"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1665#post-10596</link>
			<pubDate>Thu, 10 May 2012 18:05:23 +0000</pubDate>
			<dc:creator>ala42</dc:creator>
			<guid isPermaLink="false">10596@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;The boot loader fits with the default optimization settings into the first $5000 bytes of code, even fits in the first $4000 bytes. When you optimize for size it gets a lot smaller, but does not work anymore.&#60;br /&#62;
Keep it simple and just change as few as possible to get it running at all. Start with the RET6 boot loader, it should work out of the box.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>blackswords on "Modified bootloader for my own boad"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1665#post-10585</link>
			<pubDate>Thu, 10 May 2012 08:00:53 +0000</pubDate>
			<dc:creator>blackswords</dc:creator>
			<guid isPermaLink="false">10585@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I recompile the bootloader with the optimization for size turned on and the size is now less than 0x5000 bytes so I changed my linker script to put the code to 0x8005000 as it should be. I changed the wTransferSize to 0x0800 too. But now I still have a problem, when I launch the upload via the bootloader, it get stuck here : &#60;/p&#62;
&#60;p&#62;void dfuFinishUpload() {&#60;br /&#62;
	while (1) {&#60;br /&#62;
		if (userFlash) {&#60;br /&#62;
			if (code_copy_lock == BEGINNING) {&#60;br /&#62;
				code_copy_lock=MIDDLE;&#60;br /&#62;
				strobePin(LED_BANK,LED,2,0x1000);&#60;br /&#62;
				dfuCopyBufferToExec();&#60;br /&#62;
				strobePin(LED_BANK,LED,2,0x500);&#60;br /&#62;
				code_copy_lock = END;&#60;br /&#62;
			}&#60;br /&#62;
		}&#60;br /&#62;
		/* otherwise do nothing, dfu state machine resets itself */&#60;br /&#62;
	}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;When I check the value of code_copy_lock in the memory, it seems to be 2 so 'END'.&#60;br /&#62;
USER_FLASH = TRUE.&#60;br /&#62;
userFirmwareLen is equal to 2048 so only one packet was transfered.&#60;/p&#62;
&#60;p&#62;This is the output of MapleIDE : &#60;/p&#62;
&#60;p&#62;Opening USB Device 0x1eaf:0x0003...&#60;br /&#62;
Found Runtime: [0x1eaf:0x0003] devnum=0, cfg=0, intf=0, alt=1, name=&#34;DFU Program FLASH 0x08005000&#34;&#60;br /&#62;
Claiming USB DFU Interface...&#60;br /&#62;
Setting Alternate Setting ...&#60;br /&#62;
Determining device status: state = dfuIDLE, status = 0&#60;br /&#62;
dfuIDLE, continuing&#60;br /&#62;
Transfer Size = 0x0800&#60;br /&#62;
bytes_per_hash=285&#60;br /&#62;
Error during download get_status&#60;br /&#62;
Starting download: [#######&#60;/p&#62;
&#60;p&#62;Do you have an idea of what could be wrong?&#60;/p&#62;
&#60;p&#62;EDIT : In fact, the second packet is received but not written to Flash
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ala42 on "Modified bootloader for my own boad"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1665#post-10581</link>
			<pubDate>Wed, 09 May 2012 17:28:40 +0000</pubDate>
			<dc:creator>ala42</dc:creator>
			<guid isPermaLink="false">10581@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;&#38;gt; Yes I modified the liker script to start at 0x8007000 but I can see that in the uploading :&#60;br /&#62;
It is a very bad idea to make such changes with a boot loader that did not work before. Roll back to standard addresses, flash your program using USB and read it back using the build in serial boot loader over USART1 with the STM Flash Loader Demo tool and compare the binaries.&#60;/p&#62;
&#60;p&#62;&#38;gt;Found Runtime: [0x1eaf:0x0003] devnum=0, cfg=0, intf=0, alt=1, name=&#34;DFU Program FLASH 0x08005000&#34;&#60;br /&#62;
I adapted the text &#34;DFU Program FLASH 0x08005000&#34; which is defined in usb_descriptor.c when I changed the start address, and IIRC it was a necessary change, not just cosmetics.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mbolivar on "Modified bootloader for my own boad"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1665#post-10575</link>
			<pubDate>Wed, 09 May 2012 08:41:42 +0000</pubDate>
			<dc:creator>mbolivar</dc:creator>
			<guid isPermaLink="false">10575@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;The bootloader repository is a mess; sorry for all the trouble you've been having.&#60;/p&#62;
&#60;p&#62;I'm away from my development box right now, so I can't answer your question directly, but if you're targeting a high-density STM32F1, you should start with one of the maple-bootloader branches for a high-density board, like the native-boot (for Maple Native) or maple-ret6 (for Maple RET6 Ed.) branches. That should take care of the problems you've been having with flash page size.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>blackswords on "Modified bootloader for my own boad"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1665#post-10551</link>
			<pubDate>Wed, 09 May 2012 00:45:52 +0000</pubDate>
			<dc:creator>blackswords</dc:creator>
			<guid isPermaLink="false">10551@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;In fact I didn't know there are two versions of the bootloader so I think I picked up the wrong one. So I modified the page size to 0x800 in the function mentioned but there are any other places that it should be modified?&#60;/p&#62;
&#60;p&#62;Yes I modified the liker script to start at 0x8007000 but I can see that in the uploading : &#60;/p&#62;
&#60;p&#62;Opening USB Device 0x1eaf:0x0003...&#60;br /&#62;
Found Runtime: [0x1eaf:0x0003] devnum=0, cfg=0, intf=0, alt=1, name=&#34;DFU Program FLASH 0x08005000&#34;&#60;br /&#62;
Claiming USB DFU Interface...&#60;br /&#62;
Setting Alternate Setting ...&#60;br /&#62;
Determining device status: state = dfuIDLE, status = 0&#60;br /&#62;
dfuIDLE, continuing&#60;br /&#62;
Transfer Size = 0x0400&#60;br /&#62;
bytes_per_hash=286&#60;br /&#62;
Starting download: [##################################################] finished!&#60;br /&#62;
state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present&#60;br /&#62;
Done!&#60;br /&#62;
Resetting USB to switch back to runtime mode&#60;/p&#62;
&#60;p&#62;MapleIDE upload 1Kb pages instead of 2Kb, where can I modifiy this please?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
