<?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: Arduino / Maple Time micros command</title>
		<link>http://forums.leaflabs.com/topic.php?id=86</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:17:14 +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=86" rel="self" type="application/rss+xml" />

		<item>
			<title>StephenFromNYC on "Arduino / Maple Time micros command"</title>
			<link>http://forums.leaflabs.com/topic.php?id=86&amp;page=2#post-1443</link>
			<pubDate>Wed, 29 Sep 2010 19:42:53 +0000</pubDate>
			<dc:creator>StephenFromNYC</dc:creator>
			<guid isPermaLink="false">1443@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Wednesday September 29, 2010&#60;/p&#62;
&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;The possible problem with strcmp() does not involve micros().  I just wanted to use micros() as a course tool to diagnose the problem.&#60;/p&#62;
&#60;p&#62;I started a new thread to describe my problem with strcmp().&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://forums.leaflabs.com/topic.php?id=209&#34; rel=&#34;nofollow&#34;&#62;http://forums.leaflabs.com/topic.php?id=209&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Thanks for the help!&#60;/p&#62;
&#60;p&#62;Stephen from NYC
&#60;/p&#62;</description>
		</item>
		<item>
			<title>perry on "Arduino / Maple Time micros command"</title>
			<link>http://forums.leaflabs.com/topic.php?id=86&amp;page=2#post-1427</link>
			<pubDate>Tue, 28 Sep 2010 18:18:13 +0000</pubDate>
			<dc:creator>perry</dc:creator>
			<guid isPermaLink="false">1427@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi stephen,&#60;/p&#62;
&#60;p&#62;Can you post the most minimal sample code you can make that exhibits the problem?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>StephenFromNYC on "Arduino / Maple Time micros command"</title>
			<link>http://forums.leaflabs.com/topic.php?id=86&amp;page=2#post-1420</link>
			<pubDate>Tue, 28 Sep 2010 09:59:11 +0000</pubDate>
			<dc:creator>StephenFromNYC</dc:creator>
			<guid isPermaLink="false">1420@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Tuesday September 28, 2010&#60;/p&#62;
&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I was wondering if someone can give me a complete list of the files I need to copy from the github repository to my Windows XP Professional SP3 system to implement the micros() function.&#60;/p&#62;
&#60;p&#62;I am currently using Maple-IDE 0.0.6.&#60;/p&#62;
&#60;p&#62;I have some code (originally written for the Arduino Duemilanove) which uses the strcmp() function to interpret a command sent from the system to the microcontroller.  I want to determine the execution time of one call to strcmp() in different situations (eg. different values of the string being compared).&#60;/p&#62;
&#60;p&#62;The code works on the Arduino (yes, I included the string.h file), but when I use the modified code (eg. deleted Serial.begin() and using SerialUSB()) on the Maple it pauses for several seconds every 21st iteration of the while loop.  The delay I experience is different at each &#34;hiccup&#34;.  Sometimes it pauses at 42 (getting through the 21st iteration of the while loop) or 63 (getting through the 21st and 42nd iteration of the while loop), etc.  I think I once saw the code reach the 168th iteration without stopping, but this is not common.&#60;/p&#62;
&#60;p&#62;I am speculating the problem might involve timing, so I want to see if the execution of strcmp is slower or faster every 21n iteration.  This is why I cannot execute strcmp 1000X and then use millis().&#60;/p&#62;
&#60;p&#62;If I can create a short version of my code which produces the problem I will post the code another time.&#60;/p&#62;
&#60;p&#62;Thanks for the help!&#60;/p&#62;
&#60;p&#62;Stephen from NYC
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bnewbold on "Arduino / Maple Time micros command"</title>
			<link>http://forums.leaflabs.com/topic.php?id=86&amp;page=2#post-662</link>
			<pubDate>Tue, 03 Aug 2010 00:08:20 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">662@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Programs do run privileged, though in some cases further flags must be configured to actually access registers. In this case libmaple has access, so usercode will too. &#60;/p&#62;
&#60;p&#62;It does look like we should be able to get micros() and delay() to work without too much pain.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Arduino / Maple Time micros command"</title>
			<link>http://forums.leaflabs.com/topic.php?id=86#post-648</link>
			<pubDate>Wed, 28 Jul 2010 19:06:08 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">648@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Sorry for asking for more information on Systick. &#60;/p&#62;
&#60;p&#62;I used my Mac's Spotlight, and found &#34;PM0056 Programming manual, STM32F10xxx Cortex-M3 programming manual&#34;, and the register is described in:&#60;br /&#62;
&#34;4.5.3 SysTick current value register (STK_VAL) ...&#60;br /&#62;
Bits 23:0 CURRENT[23:0]: Current counter value&#60;br /&#62;
The VAL register contains the current value of the SysTick counter.&#60;br /&#62;
Reads return the current value of the SysTick counter.&#34;&#60;br /&#62;
So it looks like micros() could be implemented by reading that value, and a bit of math to scale it. plus the value of millis.&#60;/p&#62;
&#60;p&#62;Do programs run 'privileged', so that it can read those values?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Arduino / Maple Time micros command"</title>
			<link>http://forums.leaflabs.com/topic.php?id=86#post-647</link>
			<pubDate>Wed, 28 Jul 2010 18:45:45 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">647@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Excellent news on fixing SerialUSB on XP. Well done. That is very pleasing.&#60;/p&#62;
&#60;p&#62;On a different subject, I wonder if I am missing something about the Systick timer? I am interested in fixing micros().&#60;/p&#62;
&#60;p&#62;In document 13587 (STM32F103x8/xB, &#34;Medium-density performance line ARM-based 32-bit MCU ...&#34;), it says:&#60;br /&#62;
&#34;SysTick timer&#60;br /&#62;
This timer is dedicated for OS, but could also be used as a standard downcounter. It&#60;br /&#62;
features:&#60;br /&#62;
● A 24-bit downcounter&#60;br /&#62;
● Autoreload capability&#60;br /&#62;
● Maskable system interrupt generation when the counter reaches 0&#60;br /&#62;
● Programmable clock source&#34;&#60;br /&#62;
The 24-bit downcounter might be visible, but I haven't found any further useful information.&#60;/p&#62;
&#60;p&#62;I looked in document 13902 (RM0008 Reference manual), and the only information I can find it says is&#60;br /&#62;
&#34;9.1.1 SysTick calibration value register&#60;br /&#62;
The SysTick calibration value is set to 9000, which gives a reference time base of 1ms with&#60;br /&#62;
the SysTick clock set to 9 MHz (max HCLK/8).&#34;&#60;/p&#62;
&#60;p&#62;Which sounds like other values could be set (and why use a 24-bit downcounter to count down from 9000, unless it can?)&#60;br /&#62;
I've also tried searching ST.COM looking for Systick, and didn't find anything helpful.&#60;/p&#62;
&#60;p&#62;Any suggestions where I might find more information?&#60;br /&#62;
I use micros() quite a lot in some Arduino code, so I am interested in digging around to fix it on Maple (in my 473uSec of spare time :-)&#60;/p&#62;
&#60;p&#62;GB
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bnewbold on "Arduino / Maple Time micros command"</title>
			<link>http://forums.leaflabs.com/topic.php?id=86#post-646</link>
			<pubDate>Wed, 28 Jul 2010 15:12:18 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">646@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Awesome!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>leaflabsandy on "Arduino / Maple Time micros command"</title>
			<link>http://forums.leaflabs.com/topic.php?id=86#post-642</link>
			<pubDate>Wed, 28 Jul 2010 09:25:24 +0000</pubDate>
			<dc:creator>leaflabsandy</dc:creator>
			<guid isPermaLink="false">642@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Quote: &#34;Has anybody who was having trouble with SerialUSB under XP tried the 0.0.6 IDE?&#34; &#60;/p&#62;
&#60;p&#62;Works for me. &#60;/p&#62;
&#60;p&#62;Quote:  It worked in our testing, though I think it worked last time as well. &#60;/p&#62;
&#60;p&#62;It probably worked on the other platforms last time (0.5.0) but never on the XP platform&#60;br /&#62;
for me.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bnewbold on "Arduino / Maple Time micros command"</title>
			<link>http://forums.leaflabs.com/topic.php?id=86#post-637</link>
			<pubDate>Tue, 27 Jul 2010 21:37:58 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">637@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Has anybody who was having trouble with SerialUSB under XP tried the 0.0.6 IDE? Success/Failure? It worked in our testing, though I think it worked last time as well.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>poslathian on "Arduino / Maple Time micros command"</title>
			<link>http://forums.leaflabs.com/topic.php?id=86#post-545</link>
			<pubDate>Tue, 13 Jul 2010 13:22:45 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">545@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;thanks for lining up your coverage in one place. VERY helpful! &#60;/p&#62;
&#60;p&#62;I agree the worst problem is the SerialUSB portability issue. Were working on a different direction there, hopefully well see some improvement soon.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bnewbold on "Arduino / Maple Time micros command"</title>
			<link>http://forums.leaflabs.com/topic.php?id=86#post-543</link>
			<pubDate>Tue, 13 Jul 2010 13:03:03 +0000</pubDate>
			<dc:creator>bnewbold</dc:creator>
			<guid isPermaLink="false">543@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;As an update... &#60;/p&#62;
&#60;p&#62;#1. Color fixed&#60;br /&#62;
#3. Color fixed&#60;br /&#62;
#4. Color fixed&#60;br /&#62;
#6. Noted in docs&#60;br /&#62;
#8. Noted in docs&#60;br /&#62;
#9. Color fixed&#60;/p&#62;
&#60;p&#62;These changes should appear in 0.0.6
&#60;/p&#62;</description>
		</item>
		<item>
			<title>perry on "Arduino / Maple Time micros command"</title>
			<link>http://forums.leaflabs.com/topic.php?id=86#post-513</link>
			<pubDate>Thu, 08 Jul 2010 18:07:47 +0000</pubDate>
			<dc:creator>perry</dc:creator>
			<guid isPermaLink="false">513@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;We've been tracking issues internally, feel free to post issues on github and we'll update as necessary.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Arduino / Maple Time micros command"</title>
			<link>http://forums.leaflabs.com/topic.php?id=86#post-503</link>
			<pubDate>Thu, 08 Jul 2010 05:21:57 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">503@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Sorry Perry, a fair comment. I am v. busy till mid/late September, but if I get some time, I'll try to look at some. I don't use Windows, so I can't help there.&#60;/p&#62;
&#60;p&#62;Where are the issues tracked or recorded? I only see 4 at github.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>perry on "Arduino / Maple Time micros command"</title>
			<link>http://forums.leaflabs.com/topic.php?id=86#post-499</link>
			<pubDate>Wed, 07 Jul 2010 13:38:35 +0000</pubDate>
			<dc:creator>perry</dc:creator>
			<guid isPermaLink="false">499@http://forums.leaflabs.com/</guid>
			<description>&#60;br /&#62;</description>
		</item>
		<item>
			<title>perry on "Arduino / Maple Time micros command"</title>
			<link>http://forums.leaflabs.com/topic.php?id=86#post-497</link>
			<pubDate>Wed, 07 Jul 2010 11:10:18 +0000</pubDate>
			<dc:creator>perry</dc:creator>
			<guid isPermaLink="false">497@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi guys,&#60;/p&#62;
&#60;p&#62;Please bear with us. I'll try to deal with each issue as I get to it. I'm sorry about the delay, I have a day job and very little time to work on this in my spare time :*(&#60;/p&#62;
&#60;p&#62;As always, patches are always encouraged, we're trying to encourage a true open source project here...
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
