<?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: 24lc256 and Wire library</title>
		<link>http://forums.leaflabs.com/topic.php?id=679</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:12:30 +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=679" rel="self" type="application/rss+xml" />

		<item>
			<title>trunet on "24lc256 and Wire library"</title>
			<link>http://forums.leaflabs.com/topic.php?id=679#post-5642</link>
			<pubDate>Tue, 12 Jul 2011 22:39:34 +0000</pubDate>
			<dc:creator>trunet</dc:creator>
			<guid isPermaLink="false">5642@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;well I think I duplicate this post :( sorry for that
&#60;/p&#62;</description>
		</item>
		<item>
			<title>redfox74 on "24lc256 and Wire library"</title>
			<link>http://forums.leaflabs.com/topic.php?id=679#post-3915</link>
			<pubDate>Wed, 16 Mar 2011 14:55:41 +0000</pubDate>
			<dc:creator>redfox74</dc:creator>
			<guid isPermaLink="false">3915@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi Perry,&#60;br /&#62;
i check your code  ... i have all the problem because i use high density micro ... that i know and now i try to use the i2c2 i2c1 don't can see if it work but i think  that it work on maple ... i tested it on maple v5 1 week ago ...&#60;br /&#62;
So I see that inside the code there're some infinite loop and that is not good ... because if you have some problem on device you freeze the program ... could be better if you put inside a time out ..&#60;br /&#62;
Do you have some suggestions about the i2c on second i2c2 channel ?&#60;br /&#62;
I need to pull up the pin ? I need to set the pinmode as output for sda and scl port ?&#60;br /&#62;
I need to add rcc for that device ?&#60;br /&#62;
Now don't work i see only a glitch on sda a and clock is a 0 level .. don't see any signal.&#60;br /&#62;
Best&#60;br /&#62;
Roberto
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Xavier on "24lc256 and Wire library"</title>
			<link>http://forums.leaflabs.com/topic.php?id=679#post-3908</link>
			<pubDate>Wed, 16 Mar 2011 08:14:37 +0000</pubDate>
			<dc:creator>Xavier</dc:creator>
			<guid isPermaLink="false">3908@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks a lot Perry,&#60;br /&#62;
It works now :-)&#60;/p&#62;
&#60;p&#62;I thought that the pins defined in i2c_dev1 (6 and 7 in i2c.c) were the ones i had to plug my eeprom.... I missed something.&#60;/p&#62;
&#60;p&#62;Is 64 bytes the maximum length of data during a transfer ?&#60;br /&#62;
I tried with more and i get weird results.&#60;/p&#62;
&#60;p&#62;Anyway, i'll cut my data in  several pieces and can go ahead.&#60;/p&#62;
&#60;p&#62;Thanks again,&#60;/p&#62;
&#60;p&#62;Xavier
&#60;/p&#62;</description>
		</item>
		<item>
			<title>perry on "24lc256 and Wire library"</title>
			<link>http://forums.leaflabs.com/topic.php?id=679#post-3901</link>
			<pubDate>Tue, 15 Mar 2011 18:49:53 +0000</pubDate>
			<dc:creator>perry</dc:creator>
			<guid isPermaLink="false">3901@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Xavier,&#60;/p&#62;
&#60;p&#62;Yes, sorry. I turned off the USB in the last commit while I was testing to minimize other things going off in the chip. The latest push should reenable them, so you can flash it. It only works with I2C1, pins 5 (SCL) and pins 9 (SDA). You also need external pullups, since those outputs are open drain.&#60;/p&#62;
&#60;p&#62;I will add a timeout.&#60;/p&#62;
&#60;p&#62;The speed is currently fixed at 100khz standard mode, but I will make it configurable.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Xavier on "24lc256 and Wire library"</title>
			<link>http://forums.leaflabs.com/topic.php?id=679#post-3897</link>
			<pubDate>Tue, 15 Mar 2011 16:51:11 +0000</pubDate>
			<dc:creator>Xavier</dc:creator>
			<guid isPermaLink="false">3897@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks, now it compiles.&#60;/p&#62;
&#60;p&#62;But i cannot make it work: i've changed the slave_address because my 24LC256 is wired to '000'.&#60;br /&#62;
I plugged it to SDA 7 and SCL 6.&#60;br /&#62;
But it freezes my maple. I cannot even flash it anymore. I have to use the &#34;perpetual boot loader&#34; trick.&#60;br /&#62;
BTW, the doc &#60;a href=&#34;http://leaflabs.com/docs/i2c.html&#34; rel=&#34;nofollow&#34;&#62;http://leaflabs.com/docs/i2c.html&#60;/a&#62; says other pins for the i2c1.&#60;/p&#62;
&#60;p&#62;That would be great to have a kind of timeout in the i2c functions so that it returns with an error if something wrong happens.&#60;/p&#62;
&#60;p&#62;Is it possible to try the communication at 10Khz ?&#60;/p&#62;
&#60;p&#62;Thanks,&#60;/p&#62;
&#60;p&#62;Xavier
&#60;/p&#62;</description>
		</item>
		<item>
			<title>perry on "24lc256 and Wire library"</title>
			<link>http://forums.leaflabs.com/topic.php?id=679#post-3859</link>
			<pubDate>Fri, 11 Mar 2011 00:52:49 +0000</pubDate>
			<dc:creator>perry</dc:creator>
			<guid isPermaLink="false">3859@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;hi xavier,&#60;/p&#62;
&#60;p&#62;try again. I just pushed some changes. I didn't have time to add anything but at least it should compile now and write/read to the 24LC2556.&#60;/p&#62;
&#60;p&#62;-perry
&#60;/p&#62;</description>
		</item>
		<item>
			<title>anton on "24lc256 and Wire library"</title>
			<link>http://forums.leaflabs.com/topic.php?id=679#post-3853</link>
			<pubDate>Wed, 09 Mar 2011 22:45:32 +0000</pubDate>
			<dc:creator>anton</dc:creator>
			<guid isPermaLink="false">3853@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;It can be 60 or so.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Xavier on "24lc256 and Wire library"</title>
			<link>http://forums.leaflabs.com/topic.php?id=679#post-3850</link>
			<pubDate>Wed, 09 Mar 2011 12:09:35 +0000</pubDate>
			<dc:creator>Xavier</dc:creator>
			<guid isPermaLink="false">3850@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi Perry,&#60;/p&#62;
&#60;p&#62;Thanks for you help but... same problem.&#60;/p&#62;
&#60;p&#62;I have also this error when downloading the full branch here :&#60;br /&#62;
&#60;a href=&#34;https://github.com/leaflabs/libmaple/tree/i2c-wip&#34; rel=&#34;nofollow&#34;&#62;https://github.com/leaflabs/libmaple/tree/i2c-wip&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;In what file is supposed to be this NR_INTERRUPTS constant?&#60;/p&#62;
&#60;p&#62;Xavier
&#60;/p&#62;</description>
		</item>
		<item>
			<title>perry on "24lc256 and Wire library"</title>
			<link>http://forums.leaflabs.com/topic.php?id=679#post-3849</link>
			<pubDate>Wed, 09 Mar 2011 11:36:45 +0000</pubDate>
			<dc:creator>perry</dc:creator>
			<guid isPermaLink="false">3849@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi Xavier,&#60;/p&#62;
&#60;p&#62;I'm not sure how you checked out the branch. Try this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;git fetch
git checkout i2c-wip
git reset --hard origin/i2c-wip
make clean
make&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Xavier on "24lc256 and Wire library"</title>
			<link>http://forums.leaflabs.com/topic.php?id=679#post-3847</link>
			<pubDate>Wed, 09 Mar 2011 09:20:50 +0000</pubDate>
			<dc:creator>Xavier</dc:creator>
			<guid isPermaLink="false">3847@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Anton, Perry,&#60;/p&#62;
&#60;p&#62;I'm new to git but i cannot figure out what i do wrong :&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;
$ git checkout i2c-wip&#60;br /&#62;
Switched to branch 'i2c-wip'&#60;br /&#62;
$ make&#60;br /&#62;
================================================================================&#60;/p&#62;
&#60;p&#62;  Build info:&#60;br /&#62;
     BOARD:           maple&#60;br /&#62;
     MCU:             STM32F103RB&#60;br /&#62;
     MEMORY_TARGET:   flash&#60;/p&#62;
&#60;p&#62;  See 'make help' for all possible targets&#60;/p&#62;
&#60;p&#62;================================================================================&#60;/p&#62;
&#60;p&#62;  [CC]        ./libmaple/adc.c&#60;br /&#62;
  [CC]        ./libmaple/bkp.c&#60;br /&#62;
  [CC]        ./libmaple/dac.c&#60;br /&#62;
  [CC]        ./libmaple/dma.c&#60;br /&#62;
  [CC]        ./libmaple/exti.c&#60;br /&#62;
  [CC]        ./libmaple/flash.c&#60;br /&#62;
  [CC]        ./libmaple/fsmc.c&#60;br /&#62;
  [CC]        ./libmaple/gpio.c&#60;br /&#62;
  [CC]        ./libmaple/iwdg.c&#60;br /&#62;
  [CC]        ./libmaple/nvic.c&#60;br /&#62;
libmaple/nvic.c: In function 'nvic_init':&#60;br /&#62;
libmaple/nvic.c:108: error: 'NR_INTERRUPTS' undeclared (first use in this function)&#60;br /&#62;
libmaple/nvic.c:108: error: (Each undeclared identifier is reported only once&#60;br /&#62;
libmaple/nvic.c:108: error: for each function it appears in.)&#60;br /&#62;
make: *** [build/./libmaple/nvic.o] Error 1&#60;/p&#62;
&#60;/blockquote&#62;</description>
		</item>
		<item>
			<title>anton on "24lc256 and Wire library"</title>
			<link>http://forums.leaflabs.com/topic.php?id=679#post-3842</link>
			<pubDate>Tue, 08 Mar 2011 04:04:01 +0000</pubDate>
			<dc:creator>anton</dc:creator>
			<guid isPermaLink="false">3842@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Xavier, to compile you should use libmaple files from i2c-wip branch.&#60;/p&#62;
&#60;p&#62;Perry, can you add I2Cx_ER_IRQHandler which will just send stop on AF condition?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Xavier on "24lc256 and Wire library"</title>
			<link>http://forums.leaflabs.com/topic.php?id=679#post-3840</link>
			<pubDate>Tue, 08 Mar 2011 03:03:50 +0000</pubDate>
			<dc:creator>Xavier</dc:creator>
			<guid isPermaLink="false">3840@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Thanks Perry,&#60;br /&#62;
I wanted to give a try to your library but it does not compile :&#60;br /&#62;
libmaple/nvic.c: In function 'nvic_init':&#60;br /&#62;
libmaple/nvic.c:108: error: 'NR_INTERRUPTS' undeclared (first use in this function)&#60;br /&#62;
libmaple/nvic.c:108: error: (Each undeclared identifier is reported only once&#60;br /&#62;
libmaple/nvic.c:108: error: for each function it appears in.)&#60;/p&#62;
&#60;p&#62;Then PCLK1 is also undeclared...&#60;/p&#62;
&#60;p&#62;As i don't really need performance for my 24LC256 access, i thought i could use the software/synchronized current version of i2c.&#60;br /&#62;
Anyway... no problem, take your time to clean the code and merge this into the master branch ;-)&#60;/p&#62;
&#60;p&#62;Xavier
&#60;/p&#62;</description>
		</item>
		<item>
			<title>perry on "24lc256 and Wire library"</title>
			<link>http://forums.leaflabs.com/topic.php?id=679#post-3839</link>
			<pubDate>Tue, 08 Mar 2011 00:49:32 +0000</pubDate>
			<dc:creator>perry</dc:creator>
			<guid isPermaLink="false">3839@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hi Xavier,&#60;/p&#62;
&#60;p&#62;I have some development code you can try here:&#60;br /&#62;
&#60;a href=&#34;https://github.com/leaflabs/libmaple/tree/i2c-wip&#34; rel=&#34;nofollow&#34;&#62;https://github.com/leaflabs/libmaple/tree/i2c-wip&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;If you look at main.cpp, you'll see a basic example of reading and writing to the 24LC256.&#60;/p&#62;
&#60;p&#62;I will clean up the code and merge it into the master branch this week. If you wait until then I can help you then.&#60;/p&#62;
&#60;p&#62;-perry
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Xavier on "24lc256 and Wire library"</title>
			<link>http://forums.leaflabs.com/topic.php?id=679#post-3837</link>
			<pubDate>Mon, 07 Mar 2011 16:14:33 +0000</pubDate>
			<dc:creator>Xavier</dc:creator>
			<guid isPermaLink="false">3837@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;Has anyone managed to have a communication with a EEPROM 24lc256 with the current libmaple version using the Wire object ?&#60;/p&#62;
&#60;p&#62;Are these methods supposed to work to write and read to/from the 24lc  ?&#60;br /&#62;
&#60;a href=&#34;http://pastebin.com/f3a36644b&#34; rel=&#34;nofollow&#34;&#62;http://pastebin.com/f3a36644b&#60;/a&#62;&#60;br /&#62;
All i read is '0'.... same as if i unplug the chip.&#60;/p&#62;
&#60;p&#62;Thanks a lot for any help,&#60;/p&#62;
&#60;p&#62;Xavier
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
