<?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: Function of DISC circuit, USBP and BOOT0</title>
		<link>http://forums.leaflabs.com/topic.php?id=1284</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:13:20 +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=1284" rel="self" type="application/rss+xml" />

		<item>
			<title>siy on "Function of DISC circuit, USBP and BOOT0"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1284&amp;page=2#post-7808</link>
			<pubDate>Fri, 20 Jan 2012 09:33:23 +0000</pubDate>
			<dc:creator>siy</dc:creator>
			<guid isPermaLink="false">7808@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Send me a message to sergiy.yevtushenko at gmail dot com and I'll send you Eagle design files once I'll be at home (in a couple of hours I guess).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nplayle on "Function of DISC circuit, USBP and BOOT0"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1284&amp;page=2#post-7807</link>
			<pubDate>Fri, 20 Jan 2012 08:45:02 +0000</pubDate>
			<dc:creator>nplayle</dc:creator>
			<guid isPermaLink="false">7807@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi siy, &#60;/p&#62;
&#60;p&#62;That would be much appreciated. I've got most of the board layed out and ready to be made but I want to make sure of the finer details first. &#60;/p&#62;
&#60;p&#62;Logically there wouldn't be any difference in the button pin for the bootloader right? All seems to do is pull up the BOOT0 line which sends a signal to the bootloader via the BOOT0 pin. &#60;/p&#62;
&#60;p&#62;Do the forums have a PM system?&#60;/p&#62;
&#60;p&#62;Nick
&#60;/p&#62;</description>
		</item>
		<item>
			<title>siy on "Function of DISC circuit, USBP and BOOT0"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1284#post-7796</link>
			<pubDate>Thu, 19 Jan 2012 12:55:34 +0000</pubDate>
			<dc:creator>siy</dc:creator>
			<guid isPermaLink="false">7796@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Yes, my circuit contains PU in STF202 (or in USBUF02W6 which is basically identical to STF202 from this point of view).&#60;/p&#62;
&#60;p&#62;Changing button pin is definitely possible because different versions of Maple have it connected to different pin - PB8 for Mini, PC9 for Maple/Maple RET6, PG15 for Native (in fact this is the same pin as BOOT0). Beside bootloader this affects libmaple (BOARD_BUTTON_PIN definition, at least). Perhaps it might be helpful in your case just compare board definitions in libmaple for Maple and Olimex STM32-H103. Since boards are identical by the means of the MCU and basic hardware but have different pin assignments, all relevant differences in code will be clearly visible. As far as I know there is no bootloader for Olimex board (at least I saw nothing like that).&#60;/p&#62;
&#60;p&#62;Also, if you're interested, I can send you my version of board.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nplayle on "Function of DISC circuit, USBP and BOOT0"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1284#post-7795</link>
			<pubDate>Thu, 19 Jan 2012 10:03:11 +0000</pubDate>
			<dc:creator>nplayle</dc:creator>
			<guid isPermaLink="false">7795@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;OK I think this is starting to make sense now, thanks guys.&#60;br /&#62;
Looking at the Olimexino board (&#60;a href=&#34;http://www.olimex.com/dev/DUINO/OLIMEXINO-STM32/OLIMEXINO-STM32_Rev.A-schematic.pdf&#34; rel=&#34;nofollow&#34;&#62;http://www.olimex.com/dev/DUINO/OLIMEXINO-STM32/OLIMEXINO-STM32_Rev.A-schematic.pdf&#60;/a&#62; ), they use a pull up resistor on the D+ line beacuase the transistor they use doesn't contain a pull up resistor, whereas your (siy) circuit contains a PU in the STF202?&#60;/p&#62;
&#60;p&#62;Changing the DISC pin is possible via changing #defines in maple.h and usb_config.h&#60;/p&#62;
&#60;p&#62;Use the RET6 branch of code because it's nice&#60;/p&#62;
&#60;p&#62;Anyone have any input on the possibility of switching the button pin from PC9 to a different pin? I assume it would be possible since it looks like BOOT0 is just being taken off as a signal for the bootloader?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>siy on "Function of DISC circuit, USBP and BOOT0"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1284#post-7789</link>
			<pubDate>Thu, 19 Jan 2012 00:42:53 +0000</pubDate>
			<dc:creator>siy</dc:creator>
			<guid isPermaLink="false">7789@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Well, my circuit also does pull USBP. If you look into datasheet for STF202 (for example, here: &#60;a href=&#34;http://www.onsemi.com/pub_link/Collateral/STF202-22T1-D.PDF)&#34; rel=&#34;nofollow&#34;&#62;http://www.onsemi.com/pub_link/Collateral/STF202-22T1-D.PDF)&#60;/a&#62;, then you'll notice that VBUS pin has only two internal connections - ESD protection diode and pull up resistor. My circuit just uses this resistor instead of external component. In fact any upstream USB protection IC has similar pull up resistor with same value (1.5K) as it is necessary to satisfy USB specs. In my recent boards I'm using USBUF02W6 for this purpose and I think that STF203 would work fine too (had no chance to purchase them in local stores).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Rod on "Function of DISC circuit, USBP and BOOT0"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1284#post-7783</link>
			<pubDate>Wed, 18 Jan 2012 22:29:24 +0000</pubDate>
			<dc:creator>Rod</dc:creator>
			<guid isPermaLink="false">7783@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;The Olimexino board does something similar in using a DTA114YKAT, but it pulls USBDP+ low (as does Maple) instead of VBUS.&#60;/p&#62;
&#60;p&#62;sly I wonder if you have a comment?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ala42 on "Function of DISC circuit, USBP and BOOT0"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1284#post-7749</link>
			<pubDate>Tue, 17 Jan 2012 19:06:35 +0000</pubDate>
			<dc:creator>ala42</dc:creator>
			<guid isPermaLink="false">7749@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;You also have to change the USB_DISC_DEV and USB_DISC_PIN defines in usb_config.h. I simply use a 470 Ohm resistor to pull down the D+ line, but this requires inverted software logic and an open drain output mode settings.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>siy on "Function of DISC circuit, USBP and BOOT0"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1284#post-7746</link>
			<pubDate>Tue, 17 Jan 2012 18:07:34 +0000</pubDate>
			<dc:creator>siy</dc:creator>
			<guid isPermaLink="false">7746@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;In regard to changes required for different DISC pin: as far as I understand, things mentioned above should be enough to make bootloader work properly. Unfortunately I have no hardware to check this in details (all my boards share DISC and BUTTON pin assignments with Maple r5).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>siy on "Function of DISC circuit, USBP and BOOT0"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1284#post-7744</link>
			<pubDate>Tue, 17 Jan 2012 17:55:20 +0000</pubDate>
			<dc:creator>siy</dc:creator>
			<guid isPermaLink="false">7744@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;RET6 and Maple r5 have identical schematic, the only change is different chip version used as MCU. To build bootloader for RBT6 from RET6 sources you need to do following changes:&#60;br /&#62;
1. Set FLASH_PAGE_SIZE to 0x400 in config.h&#60;br /&#62;
2. Replace stm32_lib/c_only_md.ld with one from master branch (or edit it manually, set LENGTH for RAM 20K and for FLASH 128K)&#60;/p&#62;
&#60;p&#62;I've just checked this approach with one of my boards and so far built bootloader works fine.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>nplayle on "Function of DISC circuit, USBP and BOOT0"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1284#post-7741</link>
			<pubDate>Tue, 17 Jan 2012 17:18:51 +0000</pubDate>
			<dc:creator>nplayle</dc:creator>
			<guid isPermaLink="false">7741@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I like the looks of that circuit mikep, specifically that it gets rid of all the external components. My board is pretty cramped and that is the main reason for wanting the change. &#60;/p&#62;
&#60;p&#62;Regarding the RET6 branch, does it require much work to get it working with the RBT6? I only ask because I have a bunch of sample RBT6 chips lying around I'd like to put to good use, and the extra features on the RET6 aren't of great importance to me. &#60;/p&#62;
&#60;p&#62;Regarding changing the button and DISC port, I assume it would just require changing the following lines:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;/* USB configuration. BOARD_USB_DISC_DEV is the GPIO port containing&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;* the USB_DISC pin, and BOARD_USB_DISC_BIT is that pin&#38;#39;s bit. */&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;#define BOARD_USB_DISC_DEV GPIOC&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;#define BOARD_USB_DISC_BIT 12&#60;/code&#62;&#60;br /&#62;
&#60;code&#62;#define BOARD_BUTTON_PIN        38&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mikep on "Function of DISC circuit, USBP and BOOT0"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1284#post-7727</link>
			<pubDate>Tue, 17 Jan 2012 15:07:06 +0000</pubDate>
			<dc:creator>mikep</dc:creator>
			<guid isPermaLink="false">7727@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Yes, that's what I meant, the resistance value. So it's 10k each. Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>siy on "Function of DISC circuit, USBP and BOOT0"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1284#post-7725</link>
			<pubDate>Tue, 17 Jan 2012 12:47:09 +0000</pubDate>
			<dc:creator>siy</dc:creator>
			<guid isPermaLink="false">7725@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Sorry, didn't understand that you mean resistance. Component referred at circuit has 10K resistors built in, if I remember correctly. But I think there is no difference and any PNP digital transistor will work here.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>siy on "Function of DISC circuit, USBP and BOOT0"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1284#post-7724</link>
			<pubDate>Tue, 17 Jan 2012 12:32:38 +0000</pubDate>
			<dc:creator>siy</dc:creator>
			<guid isPermaLink="false">7724@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;There are no resistors at all (I mean as separate components). Resistors are part of symbol of &#34;digital transistor&#34; which has these resistors built in.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mikep on "Function of DISC circuit, USBP and BOOT0"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1284#post-7718</link>
			<pubDate>Tue, 17 Jan 2012 10:00:27 +0000</pubDate>
			<dc:creator>mikep</dc:creator>
			<guid isPermaLink="false">7718@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;This is interesting.&#60;br /&#62;
How big are the two resistors on the base of the PNP transistor in your circuit?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>siy on "Function of DISC circuit, USBP and BOOT0"</title>
			<link>http://forums.leaflabs.com/topic.php?id=1284#post-7710</link>
			<pubDate>Tue, 17 Jan 2012 04:19:02 +0000</pubDate>
			<dc:creator>siy</dc:creator>
			<guid isPermaLink="false">7710@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;By the way: the DISC circuit can be simplified in several ways for most uses. Original circuit follows USB specs precisely and does not perform disconnect if there is no VBUS voltage. This is not necessary in wast majority of cases. With some change in the logic of bootloader it can be reduced to single resistor (original circuit is inverting). I've took slightly different approach, my boards using circuit which can be seen on this picture: &#60;a href=&#34;http://we.easyelectronics.ru/uploads/images/00/22/11/2011/12/27/d14b13.png&#34; rel=&#34;nofollow&#34;&#62;http://we.easyelectronics.ru/uploads/images/00/22/11/2011/12/27/d14b13.png&#60;/a&#62;. Recent versions of my boards use different component for ESD protection, but the idea of circuit remains the same.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
