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

		<item>
			<title>Yogybear on "How to change device name?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10246#post-24277</link>
			<pubDate>Fri, 05 Apr 2013 03:02:13 +0000</pubDate>
			<dc:creator>Yogybear</dc:creator>
			<guid isPermaLink="false">24277@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;[SOLVED][SOLUTION]&#60;/p&#62;
&#60;p&#62;Hi folks,&#60;/p&#62;
&#60;p&#62;I figured it out and I like to share my new knowledge to the world :)&#60;/p&#62;
&#60;p&#62;Introduction for Newbies (like me)&#60;br /&#62;
==================================&#60;br /&#62;
First of all (as already known) there are two states in which the stm32/Maple Board could be - first the &#34;bootloader mode&#34; and second the &#34;user program mode&#34;. If there is no user program on the uC, it stays in the &#34;bootloader mode&#34;, because there is no program in which it could jump in. This happens with a factory new uC or after flashing the bootloader. While connected to a PC (or power source), the stm32/Maple Board goes first for about 3-5 sec in the &#34;bootloader mode&#34;. After this time is elapsed, it changes into the &#34;user program mode&#34;. For the device/hardware managers of all operating systems on PCs, every mode appears as a separate hardware device with a separate device name.&#60;/p&#62;
&#60;p&#62;Essence&#60;br /&#62;
=======&#60;br /&#62;
The device name for the &#34;bootloader mode&#34; differs from the device name of the &#34;user program mode&#34;. In addition the places where the names are stored differs too. You can change the device name of each mode separately.&#60;/p&#62;
&#60;p&#62;The &#34;bootloader mode device&#34; name is stored in the &#34;usb_descriptor.c&#34; in the maple bootloader. To change this name you need to flash the bootloader according to this manual: &#60;a href=&#34;http://leaflabs.com/docs/bootloader.html&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/bootloader.html&#60;/a&#62; and change some values in the file &#34;usb_descriptor.c&#34;. These values are u8_usbStringVendor and u8_usbStringProduct. You need to do this (of course) before compiling and flashing. You need to adapt the string length in hex - be patient, you need to add 3 to the string length (I don't know why). You also need to change the string length in the bottom of the file.&#60;/p&#62;
&#60;p&#62;The &#34;user program mode&#34; name is stored in the Maple IDE in the &#34;descriptor.c&#34; file. You can find this file in [MAPLE IDE PATH]/hardware/leaflabs/cores/maple. Here you can find the values &#34;usbVcomDescriptor_iManufacturer&#34; and &#34;usbVcomDescriptor_iProduct&#34;. Again, you have to adapt the string length of these values. The &#34;user program mode&#34; name will change when you upload a new user program.&#60;/p&#62;
&#60;p&#62;That's it. Hope I could help some people out there with these informations.&#60;/p&#62;
&#60;p&#62;Cheers&#60;/p&#62;
&#60;p&#62;[SOLVED][SOLUTION]
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Yogybear on "How to change device name?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10246#post-24250</link>
			<pubDate>Tue, 02 Apr 2013 10:30:21 +0000</pubDate>
			<dc:creator>Yogybear</dc:creator>
			<guid isPermaLink="false">24250@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thank you for your fast reply!&#60;/p&#62;
&#60;p&#62;I'll take a look and report if I could solve the problem.&#60;/p&#62;
&#60;p&#62;Cheers
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ventosus on "How to change device name?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10246#post-24247</link>
			<pubDate>Tue, 02 Apr 2013 09:15:12 +0000</pubDate>
			<dc:creator>ventosus</dc:creator>
			<guid isPermaLink="false">24247@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;The strings you want to change seem to be located in the code for the USB serial driver of libmaple:&#60;/p&#62;
&#60;p&#62;./libmaple/libmaple/usb/stm32f1/usb_cdacm.c&#60;/p&#62;
&#60;p&#62;search for usbVcomDescriptor_iManufacturer and usbVcomDescriptor_iProduct...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Yogybear on "How to change device name?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10246#post-24246</link>
			<pubDate>Tue, 02 Apr 2013 08:40:04 +0000</pubDate>
			<dc:creator>Yogybear</dc:creator>
			<guid isPermaLink="false">24246@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi folks,&#60;/p&#62;
&#60;p&#62;I'd like to capture this topic again, because my initial problem is not completely solved yet.&#60;/p&#62;
&#60;p&#62;For fast readers: I'd like to change the device name which appears in the device manager while the board is connected to a Windows-PC via USB and a user programm is running. Usually the name &#34;Maple&#34; is visible, but I'd like to have my own device name.&#60;/p&#62;
&#60;p&#62;As bnewbold has already mentioned, in the &#34;usb_descriptor.c&#34; which can be found in the root directory of the bootloader ( &#60;a href=&#34;https://github.com/leaflabs/maple-bootloader&#34; rel=&#34;nofollow&#34;&#62;https://github.com/leaflabs/maple-bootloader&#60;/a&#62; ) you can edit the values of usbStringVendor and usbStringProduct.&#60;/p&#62;
&#60;p&#62;BUT&#60;/p&#62;
&#60;p&#62;This only affects the device name while it is in the DFU-Mode (alias bootloader mode). The device is only about 5 sec in this mode and jumps subsequently in the user program, while it changes it's name to 'Maple'. Until now I couldn't find any record to change the device name 'Maple' while a user program is running.&#60;/p&#62;
&#60;p&#62;For the curious minds out there: Imagine you have a couple of boards on your desk but you forgot which is the board you are looking for. Sure you could mark it, but I would like also to see the right device name popping up in the corner &#34;Device XYZ is ready for use&#34;&#60;/p&#62;
&#60;p&#62;Thanks a lot.&#60;/p&#62;
&#60;p&#62;Cheers
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Yogybear on "How to change device name?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10246#post-22405</link>
			<pubDate>Tue, 19 Feb 2013 11:40:35 +0000</pubDate>
			<dc:creator>Yogybear</dc:creator>
			<guid isPermaLink="false">22405@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;You understood me right! This is the answer I was looking for, thank you very much!&#60;/p&#62;
&#60;p&#62;In my opinion there is no really need for a user-friendly bootloader, the energy which this would cost should be saved in some places where it's really needed.&#60;/p&#62;
&#60;p&#62;Thank you for your help.&#60;/p&#62;
&#60;p&#62;[SOLVED]
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bnewbold on "How to change device name?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10246#post-22404</link>
			<pubDate>Tue, 19 Feb 2013 10:29:43 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">22404@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;You are probably looking for u8_usbStringVendor and u8_usbStringProduct in maple-bootloader/usb_descriptor.c. This isn't user-friendly code, so i'd recommend reading the USB specification (if you can find a copy) and/or not changing the length of any of the arrays in usb_descriptor.c. You might be able to find a more user-friendly bootloader floating around the net.&#60;/p&#62;
&#60;p&#62;You could/should also change the Vendor string and USB vendor/product IDs if you're going to do something like this (the curious mind wonders why).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Yogybear on "How to change device name?"</title>
			<link>http://forums.leaflabs.com/topic.php?id=10246#post-22403</link>
			<pubDate>Tue, 19 Feb 2013 04:56:51 +0000</pubDate>
			<dc:creator>Yogybear</dc:creator>
			<guid isPermaLink="false">22403@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi folks,&#60;/p&#62;
&#60;p&#62;is there any way to change the device name of the Maple (Maple R3) which appears in the Device Manager of MS Windows before the drivers are installed.&#60;/p&#62;
&#60;p&#62;To be clear:&#60;br /&#62;
I know that there is a way by editing the &#34;DESCRIPTION = ...&#34; in the maple_serial.inf and after installation of this driver the new device name appears in the device manager.&#60;/p&#62;
&#60;p&#62;But:&#60;br /&#62;
I want to have a custom device name before any drivers are installed.&#60;/p&#62;
&#60;p&#62;I already searched in the Internet, this forum and in the boot loader files for any hint without success.&#60;/p&#62;
&#60;p&#62;I would appreciate any hints and help.&#60;/p&#62;
&#60;p&#62;Cheers
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
