<?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: how to tell your maple boards apart</title>
		<link>http://forums.leaflabs.com/topic.php?id=9977</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:16:09 +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=9977" rel="self" type="application/rss+xml" />

		<item>
			<title>feurig on "how to tell your maple boards apart"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9977#post-21780</link>
			<pubDate>Tue, 25 Dec 2012 22:44:40 +0000</pubDate>
			<dc:creator>feurig</dc:creator>
			<guid isPermaLink="false">21780@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Nice!! I will have to test that out!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ventosus on "how to tell your maple boards apart"</title>
			<link>http://forums.leaflabs.com/topic.php?id=9977#post-21778</link>
			<pubDate>Tue, 25 Dec 2012 14:27:29 +0000</pubDate>
			<dc:creator>ventosus</dc:creator>
			<guid isPermaLink="false">21778@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;While searching for an easy way to create a per-board unique locally administered MAC address I've found out that each MCU has a unique ID (which can be quite handy if you need to tell your boards apart).&#60;/p&#62;
&#60;p&#62;For the whole STM32F10xxx family, this unique 96-bit ID is located in the system memory area in the flash memory at 0x1FFFF7E8.&#60;/p&#62;
&#60;p&#62;For byte-wise access I use the following code&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
// byte-wise access from UID_BASE[0] - UID_BASE[11]&#60;br /&#62;
#define UID_BASE  ((const uint8_t *)0x1FFFF7E8)&#60;/p&#62;
&#60;p&#62;// create a MAC address based on the lower 48 bits&#60;br /&#62;
uint8_t uid_mac [6] = {&#60;br /&#62;
  (UID_BASE[5] &#124; 0x02) &#38;amp; 0xfe, // locally administered unicast: 0bxxxxxx10&#60;br /&#62;
  UID_BASE[4],&#60;br /&#62;
  UID_BASE[3],&#60;br /&#62;
  UID_BASE[2],&#60;br /&#62;
  UID_BASE[1],&#60;br /&#62;
  UID_BASE[0]&#60;br /&#62;
};&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
