<?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: maple random number generation</title>
		<link>http://forums.leaflabs.com/topic.php?id=74328</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:08:46 +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=74328" rel="self" type="application/rss+xml" />

		<item>
			<title>gbulmer on "maple random number generation"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74328#post-105385</link>
			<pubDate>Tue, 13 May 2014 12:59:12 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">105385@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;wandrson - to avoid confusion, ...&#60;/p&#62;
&#60;p&#62;The Maple's STM32F103 does not have hardware random number generator manufactured in.&#60;/p&#62;
&#60;p&#62;However, there are several community designed boards at: &#60;a href=&#34;https://github.com/gbulmer/openstm32hw&#34; rel=&#34;nofollow&#34;&#62;https://github.com/gbulmer/openstm32hw&#60;/a&#62;&#60;br /&#62;
which support the STM32F2xx and STM32F4xx microcontrollers. Those families of parts do have hardware random number generators manufactured in. Hence, if one wanted to consume random numbers, it might be worth looking at those families, and not limiting choice to Maple's STM32F103.&#60;/p&#62;
&#60;p&#62;I should have been clearer in my post.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>wandrson on "maple random number generation"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74328#post-105375</link>
			<pubDate>Sun, 11 May 2014 12:17:38 +0000</pubDate>
			<dc:creator>wandrson</dc:creator>
			<guid isPermaLink="false">105375@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I am the author of the above library.  When manitou contacted me about the possibility of porting the library to the maple boards, I looked at the &#60;a href=&#34;http://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/CD00161566.pdf&#34;&#62;datasheet&#60;/a&#62; for the ARM chip used by the board, the STM32F103RB, and could not find any mention of a hardware random number generator.  If you can provide a reference to the device and perhaps some example code for it, I would appreciate it.   The library already uses the internal hardware generator on the ATSAM ARM processor used on the Arduino Due, so it can easily be configured to do so on the  Maple boards if such a device is available.  If not, I have provided manitou with draft code to make use of potential jitter based random numbers on the Maple boards, using his test code as a base.  Unfortunately I do not have any such boards available so I am unable to test it.&#60;/p&#62;
&#60;p&#62;If one or more users of the boards is interested in working with me to test the code and verify it, I can incorporate Maple support into the library.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "maple random number generation"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74328#post-105373</link>
			<pubDate>Sun, 11 May 2014 07:17:07 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">105373@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Interesting!&#60;/p&#62;
&#60;p&#62;Members of both &#60;a href=&#34;http://www.st.com/web/en/catalog/mmc/FM141/SC1169/SS1577&#34;&#62;STM32F4&#60;/a&#62; and &#60;a href=&#34;http://www.st.com/web/en/catalog/mmc/FM141/SC1169/SS1575&#34;&#62;STM32F2&#60;/a&#62; families have hardware random number generators (RNG) built in. They use analogue circuitry generating noise, to seed values.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>manitou on "maple random number generation"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74328#post-105372</link>
			<pubDate>Sat, 10 May 2014 12:34:18 +0000</pubDate>
			<dc:creator>manitou</dc:creator>
			<guid isPermaLink="false">105372@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Maple has a software random() function for generating pseudo random numbers.  Walter Anderson has developed an Entropy library for Arduino and ARM processors to use hardware timers and systick to generate stronger random numbers, see&#60;br /&#62;
  &#60;a href=&#34;https://sites.google.com/site/astudyofentropy/project-definition/timer-jitter-entropy-sources/entropy-library&#34; rel=&#34;nofollow&#34;&#62;https://sites.google.com/site/astudyofentropy/project-definition/timer-jitter-entropy-sources/entropy-library&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;As a proof of concept, I ported Walter's bit mixing functions into a maple sketch that uses the LSI clock and SYSTICK_BASE-&#38;gt;CNT to generate random bits.  The sketch which also uses the RTC lib is here&#60;br /&#62;
    &#60;a href=&#34;https://github.com/manitou48/DUEZoo/blob/master/maplerng.pde&#34; rel=&#34;nofollow&#34;&#62;https://github.com/manitou48/DUEZoo/blob/master/maplerng.pde&#60;/a&#62;&#60;br /&#62;
A cursory analysis of a few megabytes of generated bits with diehard, rngtest, and ent, indicates the sketch provides &#34;good&#34; random bits.&#60;/p&#62;
&#60;p&#62;Running the LSI clock at a 10-ms interrupt rate yields a random bit every 10 ms.  The DUE hardware TRNG can generate 32 random bits every microsecond.  Some other bit-generation rates are at&#60;br /&#62;
   &#60;a href=&#34;https://github.com/manitou48/DUEZoo/blob/master/RNGperf.txt&#34; rel=&#34;nofollow&#34;&#62;https://github.com/manitou48/DUEZoo/blob/master/RNGperf.txt&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
