<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TKJ Electronics &#187; DFU</title>
	<atom:link href="http://elec.tkjweb.dk/blog/tag/dfu/feed/" rel="self" type="application/rss+xml" />
	<link>http://elec.tkjweb.dk/blog</link>
	<description>The electronics-blog</description>
	<lastBuildDate>Sun, 20 Jun 2010 11:51:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>STM32 DFU Programming</title>
		<link>http://elec.tkjweb.dk/blog/2010/01/stm32-dfu-programming/</link>
		<comments>http://elec.tkjweb.dk/blog/2010/01/stm32-dfu-programming/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 20:46:22 +0000</pubDate>
		<dc:creator>Thomas Jespersen</dc:creator>
				<category><![CDATA[ARM Projects]]></category>
		<category><![CDATA[DFU]]></category>
		<category><![CDATA[STM32]]></category>

		<guid isPermaLink="false">http://elec.tkjweb.dk/blog/?p=267</guid>
		<description><![CDATA[The time is currently 21:42 and I&#8217;ve been sitting in front of my computer in 2 hours to get the DFU programming to work.
Now it is working, and I&#8217;m able to make one of my excisting projects into a DFU loadable project (compiled it&#8217;s a .dfu filed)
I&#8217;ve also changed the DFU bootloader code to use [...]]]></description>
			<content:encoded><![CDATA[<p>The time is currently 21:42 and I&#8217;ve been sitting in front of my computer in 2 hours to get the DFU programming to work.</p>
<p>Now it is working, and I&#8217;m able to make one of my excisting projects into a DFU loadable project (compiled it&#8217;s a .dfu filed)</p>
<p>I&#8217;ve also changed the DFU bootloader code to use GPIOA_0 as DFU Enable pin, and GPIOA_1 as USB Disconnect &#8211; this makes me able to use the GPIOB and GPIOC for my display without any interferrance!</p>
<p>Here is how you make a Ride7 project DFU loadable:</p>
<div id="_mcePaste">The Default Startup script (in settings) has been set to No, as we have included a special startup script in the project (startup_stm32f10x_hd.s &#8211; found in CMSIS\Core\CM3\startup\gcc)</div>
<div id="_mcePaste">Also change the Linker Script in project settings to match the processor group you are using (Connectivity, High Density&#8230; and so on &#8211; fx stm32f10x_hd_flash_offset.ld)</div>
<div id="_mcePaste">Also be aware of the change in the NVIC_Configuration &#8211; here we tell the processor that the Flash has to start at adress 0&#215;3000</div>
<div></div>
<div id="_mcePaste">When you have compiled the code to a HEX file, run &#8220;DFU File Manager&#8221; to create a .dfu file.</div>
<div id="_mcePaste">Target ID: 00 is Internal Flash</div>
<div id="_mcePaste">Target ID: 01 is SPI Flash</div>
<div id="_mcePaste">Target ID: 02 is NOR Flash</div>
<div></div>
<div>Now you can use DfuSe to load the .dfu file into the internal flash of your STM32!</div>
]]></content:encoded>
			<wfw:commentRss>http://elec.tkjweb.dk/blog/2010/01/stm32-dfu-programming/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>STM32 USB Connection</title>
		<link>http://elec.tkjweb.dk/blog/2010/01/stm32-usb-connection/</link>
		<comments>http://elec.tkjweb.dk/blog/2010/01/stm32-usb-connection/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 07:22:07 +0000</pubDate>
		<dc:creator>Thomas Jespersen</dc:creator>
				<category><![CDATA[ARM Projects]]></category>
		<category><![CDATA[DFU]]></category>
		<category><![CDATA[STM32]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[Virtual COM Port]]></category>

		<guid isPermaLink="false">http://elec.tkjweb.dk/blog/?p=243</guid>
		<description><![CDATA[The USB connection between the STM32 and the computer is finally working.
I&#8217;ve tried the different USB programs from the StdPeriph Library
Fx.

Virtual COM Port
DFU Programming

As I&#8217;m using Ride7 for programming, I can upload the project and sources if you want me too.
&#160;
OBS: If you have projects which DOESN&#8217;T use the USB, you have to set the [...]]]></description>
			<content:encoded><![CDATA[<p>The USB connection between the STM32 and the computer is finally working.<br />
I&#8217;ve tried the different USB programs from the StdPeriph Library</p>
<p>Fx.</p>
<ul>
<li>Virtual COM Port</li>
<li>DFU Programming</li>
</ul>
<p>As I&#8217;m using Ride7 for programming, I can upload the project and sources if you want me too.</p>
<p>&nbsp;</p>
<p><strong>OBS: If you have projects which DOESN&#8217;T use the USB, you have to set the USB Disconnect jupmer to Ground (Pos. 1-2), as if not, the STM32 will stop in some kind of USB Interrupt trying to make a data communication with the computer, but it never comes as the STM32 doesn&#8217;t start one!</strong></p>
<p><strong>I discovered this Â when I tried DFU&#8217;ing my 320&#215;240 LCD code &#8211; and when I went back to normal .hex, it didn&#8217;t work &#8211; that was because I had to set the USB Disconnect to Ground!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://elec.tkjweb.dk/blog/2010/01/stm32-usb-connection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
