<?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; Forum: Help Us Help You - Recent Posts</title>
		<link>http://forums.leaflabs.com/forum.php?id=5</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:01:20 +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?forum=5" rel="self" type="application/rss+xml" />

		<item>
			<title>JPB on "digitally signed driver???"</title>
			<link>http://forums.leaflabs.com/topic.php?id=73&amp;page=4#post-105765</link>
			<pubDate>Sun, 02 Aug 2015 09:23:06 +0000</pubDate>
			<dc:creator>JPB</dc:creator>
			<guid isPermaLink="false">105765@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi daduck748!&#60;br /&#62;
Your solution is fine!&#60;br /&#62;
Work on win 8.1/64  :-) !!!&#60;br /&#62;
&#34;after the compiler failed to find a &#34;Serial Device&#34;, it searches for DFU devices. This is when I hit the Reset button and my Blink program uploaded successfully. When you hit the Reset button at this point, you'll see &#34;Maple&#34; disappears and &#34;Maple 003&#34; will appear in the Device Manager.&#34;&#60;br /&#62;
Maple Mini (clone)&#60;br /&#62;
ebay:&#34;STM32 ARM Cortex-M3 Leaflabs Leaf Maple Mini Module for Arduino&#34;&#60;br /&#62;
AU $5.52
&#60;/p&#62;</description>
		</item>
		<item>
			<title>JoshSanders on "digitally signed driver???"</title>
			<link>http://forums.leaflabs.com/topic.php?id=73&amp;page=4#post-105670</link>
			<pubDate>Tue, 03 Mar 2015 14:52:45 +0000</pubDate>
			<dc:creator>JoshSanders</dc:creator>
			<guid isPermaLink="false">105670@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;RogerClark and Tim Schuerewegen, you are both officialy the bomb! This was such a pain before...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>rogerclark on "digitally signed driver???"</title>
			<link>http://forums.leaflabs.com/topic.php?id=73&amp;page=4#post-105636</link>
			<pubDate>Sun, 25 Jan 2015 17:01:22 +0000</pubDate>
			<dc:creator>rogerclark</dc:creator>
			<guid isPermaLink="false">105636@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;There is a now a good solution to the Windows driver issue.&#60;/p&#62;
&#60;p&#62;See &#60;a href=&#34;https://github.com/rogerclarkmelbourne/Arduino_STM32/tree/master/drivers/win&#34; rel=&#34;nofollow&#34;&#62;https://github.com/rogerclarkmelbourne/Arduino_STM32/tree/master/drivers/win&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Tim Schuerewegen, wrote a modified version of libwdi which installs does all the clever stuff to install custom cert's etc for the Leadlabs VID/PID
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fxstrike on "digitally signed driver???"</title>
			<link>http://forums.leaflabs.com/topic.php?id=73&amp;page=4#post-105633</link>
			<pubDate>Fri, 23 Jan 2015 05:00:28 +0000</pubDate>
			<dc:creator>fxstrike</dc:creator>
			<guid isPermaLink="false">105633@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;f343,&#60;/p&#62;
&#60;p&#62;please do send your WinUSB.sys driver
&#60;/p&#62;</description>
		</item>
		<item>
			<title>f3434 on "digitally signed driver???"</title>
			<link>http://forums.leaflabs.com/topic.php?id=73&amp;page=4#post-105582</link>
			<pubDate>Thu, 04 Dec 2014 08:18:42 +0000</pubDate>
			<dc:creator>f3434</dc:creator>
			<guid isPermaLink="false">105582@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Use WinUSB.sys driver. If you want I can send example code.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gruvin on "cancel my Leaflabs account"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74195#post-105292</link>
			<pubDate>Mon, 17 Mar 2014 22:53:49 +0000</pubDate>
			<dc:creator>gruvin</dc:creator>
			<guid isPermaLink="false">105292@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Can't help you, sorry. But I just looked over the site myself as a sanity check and I don't see any way to do it, either. &#60;/p&#62;
&#60;p&#62;There is a &#60;a href=&#34;http://leaflabs.com/contact/&#34;&#62;contact link&#60;/a&#62; on the home page. Try sending an email, perhaps?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "SPI not working properly"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74199#post-105072</link>
			<pubDate>Thu, 12 Dec 2013 06:56:04 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">105072@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;jappiemike - Thank you for posting the solution. Hopefully that will help others. I apologise for missing the pinModes; I can get a bit 'snow blind' some days.&#60;/p&#62;
&#60;p&#62;Maybe the documentation could call out more strongly and clearly that the pins are set by spi.begin, and there is no pinMode needed:&#60;br /&#62;
&#60;a href=&#34;http://leaflabs.com/docs/lang/api/hardwarespi.html#turning-the-spi-port-on&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/lang/api/hardwarespi.html#turning-the-spi-port-on&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Maybe using spi.transfer() might be worth trying. It would remove the need for wait(), and should be correct at any speed. Just discard the returned value.&#60;/p&#62;
&#60;p&#62;(Full disclosure: I am not a member of LeafLabs staff.)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jappiemike on "SPI not working properly"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74199#post-105071</link>
			<pubDate>Wed, 11 Dec 2013 22:52:41 +0000</pubDate>
			<dc:creator>jappiemike</dc:creator>
			<guid isPermaLink="false">105071@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Ok, a couple of things. Firstly, thanks for the replies and assistance.&#60;br /&#62;
 I took out the pinMode code in my program which set up the SPI pins(MOSI and CLK) but not the SS one. I then used the wait() function to allow the transfer to complete and it's now working perfectly at any speed. I'm surprised that my pinMode (which occurred after initialising the SPI) caused an error as I would've assumed it was also setting the pins up as OUTPUTS, I also noticed when my faulty code tried to run that pin 13 didn't glow but it does now and the brightness changes with the speed of the SPI transfer.&#60;br /&#62;
Now all I have to do is finish 2 8x10 rgb matrixes for Christmas!&#60;/p&#62;
&#60;p&#62;Cheers&#60;br /&#62;
Mike
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ventosus on "SPI not working properly"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74199#post-105070</link>
			<pubDate>Wed, 11 Dec 2013 05:44:33 +0000</pubDate>
			<dc:creator>ventosus</dc:creator>
			<guid isPermaLink="false">105070@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;@jappiemike&#60;/p&#62;
&#60;p&#62;I'm running 3 daisy-chained TLC5917s fine here with a Maple Mini.&#60;/p&#62;
&#60;p&#62;From the manual: &#60;em&#62;Serial data is transferred to the respective latch when LE(ED1) is high. The data is latched when LE(ED1) goes low.&#60;br /&#62;
Also, a control signal input for an Error Detection Mode and Current Adjust Mode (see Timing Diagram). LE(ED1) has&#60;br /&#62;
an internal pulldown.&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;Pulse duration for LE has to be 20ns minimum.&#60;/p&#62;
&#60;p&#62;There may be an additional problem in your usage of spi.write.&#60;/p&#62;
&#60;p&#62;spi.write calls the libmaple routine spi_tx which is a non-blocking function, e.g. it returns although the SPI Tx may still be busy (transmitting). If you then immediately pull high SS to trigger the latch, transmission may get corrupted.&#60;/p&#62;
&#60;p&#62;So, you may either have to check whether SPI Tx is still busy before pulling high SS, or use spi.transfer instead which is blocking and only returns when a byte from SPI Rx was received (and transmission therefore was successful).&#60;/p&#62;
&#60;p&#62;Changing spi.write to spi.transfer might already do the trick.&#60;/p&#62;
&#60;p&#62;I use the underlying libmaple routines directly.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
digitalWrite(BOARD_SPI1_NSS_PIN, LOW)&#60;br /&#62;
spi_tx(SPI1, rgb, 3);&#60;br /&#62;
while(spi_is_busy(SPI1))&#60;br /&#62;
  ; // wait until not busy&#60;br /&#62;
digitalWrite(BOARD_SPI1_NSS_PIN, HIGH)&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Or the problem may lie somewhere else...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "SPI not working properly"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74199#post-105069</link>
			<pubDate>Tue, 10 Dec 2013 22:35:09 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">105069@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;jappiemike - &#60;em&#62;Is setting SS to low purely to let the chip you are writing to know to expect some data or is it tied to the SPI data transmission from MOSI?&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;Normally, SS is a 'chip select', purely &#34;to let the chip you are writing to know to expect some data&#34;.&#60;/p&#62;
&#60;p&#62;However, the chapter on SPI in the RM0008 manual is 50 pages long. I don't know it well enough to answer definitely, and the answer is slightly more complex than you might like.&#60;/p&#62;
&#60;p&#62;AFAIK, the STM32F's NSS pin can be used in master mode to allow multiple SPI masters to collaborate and share the same signal connections. I don't believe you are trying to do that.&#60;/p&#62;
&#60;p&#62;AFAIK, there is no need for the Maple's (STM32F's) NSS to be used for SPI single master, single slave comms when the Maple (STM32F) is master.&#60;/p&#62;
&#60;p&#62;Further, the signal output on NSS from the Maple (STM32F) isn't enough to select between more than one slave on shared SPI signals. You have to do that in your program.&#60;/p&#62;
&#60;p&#62;I'd recommend not using Maple's NSS (if possible), and just get a TLC5917s working. Either wire the TLC5917's serial-in/serial-out in series, and use a common LE, or use multiple Maple pins to control LE (effectively chip select) with digitalWrite (or digitalwritefaster) to select the appropriate TLC5917, and so direct the MOSI data to the correct chip.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jappiemike on "SPI not working properly"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74199#post-105068</link>
			<pubDate>Tue, 10 Dec 2013 21:41:46 +0000</pubDate>
			<dc:creator>jappiemike</dc:creator>
			<guid isPermaLink="false">105068@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;OK, but my real problem is that the changing of the SS line appears to happen some time  after the CLK starts to toggle and the data transmission begins, I used a fairly slow data rate and I imagine the problem would be worse at 18MHZ. I'm also using digitalwritefaster to make my interrupt as fast as possible but I wouldn't think this is a problem. Is setting SS to low purely to let the chip you are writing to  know to expect some data or is it tied to the SPI data transmission from MOSI?&#60;br /&#62;
Cheers&#60;br /&#62;
Mike
&#60;/p&#62;</description>
		</item>
		<item>
			<title>superprp on "digitally signed driver???"</title>
			<link>http://forums.leaflabs.com/topic.php?id=73&amp;page=4#post-105065</link>
			<pubDate>Tue, 10 Dec 2013 12:18:24 +0000</pubDate>
			<dc:creator>superprp</dc:creator>
			<guid isPermaLink="false">105065@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;ok, finally after upload the bootloader with an arduino board as indicated in the maple bootloader i have found that the problem was that i was compiling the code as RET6 not REV3+ and i have the board REV5.&#60;br /&#62;
i hope that this could help you in the future checking this point at first.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "SPI not working properly"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74199#post-105064</link>
			<pubDate>Tue, 10 Dec 2013 12:10:17 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">105064@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;jappiemike - maybe try running the same program, but replace &#60;code&#62;random(255)&#60;/code&#62; with &#60;code&#62;0x81&#60;/code&#62; (first and last bits are 1, others 0)? It might be easier to see the relationship between edges.&#60;/p&#62;
&#60;p&#62;The SPI on Maple can run in a four different &#34;modes&#34; described at&#60;br /&#62;
&#60;a href=&#34;http://leaflabs.com/docs/lang/api/hardwarespi.html#id2&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/lang/api/hardwarespi.html#id2&#60;/a&#62;&#60;br /&#62;
These set the relationship between the clock (idle LOW, or idle HIGH), and the edge on which the data is sampled. AFAIK, this shouldn't be a big issue while you are outputting data, but will determine the idle state of the clock.&#60;/p&#62;
&#60;p&#62;Even when Maple's SPI is running as the master, IIRC, it doesn't assert the SS pin. Asserting SS is the job of your program, using a digitalWrite.&#60;/p&#62;
&#60;p&#62;(Full disclosure: I am not a member of LeafLabs staff.)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>superprp on "digitally signed driver???"</title>
			<link>http://forums.leaflabs.com/topic.php?id=73&amp;page=4#post-105063</link>
			<pubDate>Tue, 10 Dec 2013 07:23:02 +0000</pubDate>
			<dc:creator>superprp</dc:creator>
			<guid isPermaLink="false">105063@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I have just checked that maple doesnt work, this could be the reason to not detect the serial port.&#60;br /&#62;
I have created a basic program to ON the LED when the program start but the led still OFF after program the board.&#60;br /&#62;
When i program the board everything is ok. Could someone tell me if i am doing something wrong? or what could i checked?&#60;br /&#62;
No error has been found during device programming.&#60;br /&#62;
Thank you.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>jappiemike on "SPI not working properly"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74199#post-105056</link>
			<pubDate>Tue, 10 Dec 2013 03:28:47 +0000</pubDate>
			<dc:creator>jappiemike</dc:creator>
			<guid isPermaLink="false">105056@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hello again, So I'm working with some TLC5917s for an LED matrix which is working fine with a mega2560. When I tried one of the SPI examples ( the last one on the SPI hardware page) I noticed that it doesn't work as expected.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;// Use SPI port number 1
HardwareSPI spi(1);

void setup() {
    // Turn on the SPI port
    spi.begin(SPI_4_5MHZ, MSBFIRST, 0);
    pinMode(9,OUTPUT); // this line is always here
    pinMode(10,OUTPUT); // this line is always here
}

void loop() {
   digitalWrite(9,LOW); // this line was added later
   digitalWrite(10,LOW); // this line was added for 1 run
   spi.write(random(255));
   digitalWrite(10,HIGH); // this line was added for 1 run
   digitalWrite(9,HIGH); // this line was added later
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;there is a screen dump at the following link to illustrate the results &#60;a href=&#34;https://drive.google.com/file/d/0B1ghmDU_EL2BME1Pd28yb0p1d1E/edit?usp=sharing&#34; rel=&#34;nofollow&#34;&#62;https://drive.google.com/file/d/0B1ghmDU_EL2BME1Pd28yb0p1d1E/edit?usp=sharing&#60;/a&#62;&#60;br /&#62;
 Running the 2  variations of the program with my logic analyser gives these 2 results. Notice how the CLK((7) and MOSI (6) don't line up with the SS(5) as you would expect or my indicator (4 pin9) and when I remove the SS toggle it doesn't get activated by the SPI library but the CLK and MOSI still fire. So what am I doing wrong or are there problems with the library?&#60;br /&#62;
Cheers&#60;br /&#62;
Mike
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
