<?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 soft reset Maple programatically</title>
		<link>http://forums.leaflabs.com/topic.php?id=74283</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:09:41 +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=74283" rel="self" type="application/rss+xml" />

		<item>
			<title>JoshSanders on "How to soft reset Maple programatically"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74283#post-105284</link>
			<pubDate>Fri, 14 Mar 2014 10:28:01 +0000</pubDate>
			<dc:creator>JoshSanders</dc:creator>
			<guid isPermaLink="false">105284@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks, Ventosus!&#60;/p&#62;
&#60;p&#62;Also, I missed a post with a different reset solution that works beautifully:&#60;br /&#62;
&#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=16585#post-32097&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=16585#post-32097&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;For convenience the answer is:&#60;/p&#62;
&#60;p&#62;#define SCB_AIRCR ((volatile uint32*) (0xE000ED00 + 0x0C))&#60;br /&#62;
#define SCB_AIRCR_SYSRESETREQ (1 &#38;lt;&#38;lt; 2)&#60;br /&#62;
#define SCB_AIRCR_RESET ((0x05FA0000) &#124; SCB_AIRCR_SYSRESETREQ)&#60;/p&#62;
&#60;p&#62;void setup() {&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;void loop () {&#60;br /&#62;
    if (you want to hard-reset) {&#60;br /&#62;
      *(SCB_AIRCR) = SCB_AIRCR_RESET;&#60;br /&#62;
    }&#60;br /&#62;
}
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ventosus on "How to soft reset Maple programatically"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74283#post-105271</link>
			<pubDate>Sun, 09 Mar 2014 03:50:04 +0000</pubDate>
			<dc:creator>ventosus</dc:creator>
			<guid isPermaLink="false">105271@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;'nvic_sys_reset' forces a reset of the maple and is the libmaple equivalent to 'NVIC_SystemReset'.&#60;br /&#62;
&#60;a href=&#34;https://github.com/leaflabs/libmaple/blob/master/libmaple/nvic.c&#34; rel=&#34;nofollow&#34;&#62;https://github.com/leaflabs/libmaple/blob/master/libmaple/nvic.c&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;libmaple triggers the latter to get into boot loader mode after receiving a magic sequence via USB.&#60;br /&#62;
&#60;a href=&#34;https://github.com/leaflabs/libmaple/blob/master/wirish/usb_serial.cpp&#34; rel=&#34;nofollow&#34;&#62;https://github.com/leaflabs/libmaple/blob/master/wirish/usb_serial.cpp&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>JoshSanders on "How to soft reset Maple programatically"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74283#post-105270</link>
			<pubDate>Sat, 08 Mar 2014 23:24:41 +0000</pubDate>
			<dc:creator>JoshSanders</dc:creator>
			<guid isPermaLink="false">105270@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi Leafers&#60;/p&#62;
&#60;p&#62;I was trying to find a simple command to soft-reset Maple.&#60;br /&#62;
After some digging, I found a STM32 library called core_cm3.h with the following command:&#60;/p&#62;
&#60;p&#62;/** \brief  System Reset&#60;br /&#62;
    The function initiates a system reset request to reset the MCU.&#60;br /&#62;
 */&#60;br /&#62;
__STATIC_INLINE void NVIC_SystemReset(void)&#60;br /&#62;
{&#60;br /&#62;
    (Function code)&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;it's located here:&#60;br /&#62;
&#60;a href=&#34;http://code.google.com/p/stm32lib/source/browse/Libraries/CMSIS/CM3/CoreSupport/core_cm3.h?r=887cedeb263237b453b66ab14dee02f4638a6d15&#34; rel=&#34;nofollow&#34;&#62;http://code.google.com/p/stm32lib/source/browse/Libraries/CMSIS/CM3/CoreSupport/core_cm3.h?r=887cedeb263237b453b66ab14dee02f4638a6d15&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I'm working on an open source project, and it would complicate things for my users if they had to download this library in order to upload my sketch - is there a simpler way to accomplish what I'm trying to do from within Maple's framework? I noticed limited NVIC support in libmaple, but no reference to a reset function...&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Josh
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
