<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-2056</id>
	<title>Nabble - MicroControllers - Ethernut</title>
	<updated>2009-11-25T11:02:38Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/MicroControllers---Ethernut-f2056.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/MicroControllers---Ethernut-f2056.html" />
	<subtitle type="html">Discussions about the Ethernut embedded ethernet-enabled microcontroller.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26518455</id>
	<title>Submit some patches</title>
	<published>2009-11-25T11:02:38Z</published>
	<updated>2009-11-25T11:02:38Z</updated>
	<author>
		<name>Rich Peters-2</name>
	</author>
	<content type="html">hi everyone,
&lt;br&gt;&lt;br&gt;my first post here...
&lt;br&gt;I have inherited a firmware project that was based on ethernut 4.0.1.
&lt;br&gt;This project contains a number of modifications to the Nut/OS, which I
&lt;br&gt;dont know if they were ever submitted as patches or not. &amp;nbsp;I have merged
&lt;br&gt;the patches with 4.8.5 and tested them. They work well, so I have
&lt;br&gt;submitted them to sourceforge in the patch area. &amp;nbsp;Please evaluate the
&lt;br&gt;utility and applicability of them.
&lt;br&gt;&lt;br&gt;They are:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; 1. &amp;nbsp;fix to nut\crt\write.c to guarantee serialized access to the
&lt;br&gt;write used in fputs.c. &amp;nbsp;this prevents multiple threads from interleaving
&lt;br&gt;characters
&lt;br&gt;&amp;nbsp; &amp;nbsp; 2. &amp;nbsp;fix to \nut\pro\dhcpc.c - modification to DHCP client code so
&lt;br&gt;you can switch between DHCP and static IP addresses without
&lt;br&gt;resetting/power cycling.
&lt;br&gt;&amp;nbsp; &amp;nbsp; 3. &amp;nbsp;fix to nut\net\ifconfig.c - modification so NutNetIfSetup()
&lt;br&gt;doesn't save settings to the EEPROM. &amp;nbsp;This was using up the available
&lt;br&gt;memory writes for the eeprom part since it happens each time the unit
&lt;br&gt;powers up. &amp;nbsp;Code was added to the application to determine when the
&lt;br&gt;network information should be saved in the EEPROM. &amp;nbsp;This might impact
&lt;br&gt;compatibility, so maybe this needs to be implemented as a parameter to
&lt;br&gt;this function.
&lt;br&gt;&lt;br&gt;thanks
&lt;br&gt;&lt;br&gt;Rich
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Submit-some-patches-tp26518455p26518455.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26510882</id>
	<title>Re: Hardware combo of Ethernut 1.3h &amp; 2.1b</title>
	<published>2009-11-25T02:58:37Z</published>
	<updated>2009-11-25T02:58:37Z</updated>
	<author>
		<name>asdus</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;What of this ways are prefer? And where i can get an xc9636xl source,
&lt;br&gt;if it possible? Ty!
&lt;br&gt;&lt;br&gt;2009/11/9 Harald Kipp &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26510882&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;harald.kipp@...&lt;/a&gt;&amp;gt;:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; asdus wrote:
&lt;br&gt;&amp;gt;&amp;gt; Can i use ethernut 2.1b schematic, but exchange ethernet part with one
&lt;br&gt;&amp;gt;&amp;gt; from 1.3h?
&lt;br&gt;&amp;gt;&amp;gt; Just RTL8019 + FB2022 instead of LAN91C111 + TG110
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Not one to one. On Ethernut 1 the Realtek is at address 0x8300 to 0x831F
&lt;br&gt;&amp;gt; (using the Realtek's internal address decoder). On Ethernut 2 this
&lt;br&gt;&amp;gt; region is occupied by RAM:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.ethernut.de/en/hardware/enut2/memmap.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ethernut.de/en/hardware/enut2/memmap.html&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You may either use the Ethernet Controller chip select from the CPLD and
&lt;br&gt;&amp;gt; set the RTL8019 address pins to 0x_300 or connect A14 *and* A15 to the
&lt;br&gt;&amp;gt; inputs of IC7. This will map the Realtek to 0xC300.
&lt;/div&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hardware-combo-of-Ethernut-1.3h---2.1b-tp26263291p26510882.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26489577</id>
	<title>Re: A few network related feature polls</title>
	<published>2009-11-23T17:54:58Z</published>
	<updated>2009-11-23T17:54:58Z</updated>
	<author>
		<name>Bernd Walter-2</name>
	</author>
	<content type="html">On Mon, Nov 23, 2009 at 04:21:56PM +0100, Harald Kipp wrote:
&lt;br&gt;&amp;gt; Bernd Walter wrote:
&lt;br&gt;&amp;gt; &amp;gt; My target is to get 6LoWPAN including forwarding from Ethernet running.
&lt;br&gt;&amp;gt; &amp;gt; Hardware is a AT91SAM7X256/512 with CC2420 Module.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Interestingly we at egnite plan something similar. Our first idea was to
&lt;br&gt;&amp;gt; implement ZigBee, but license issues makes this far less attractive.
&lt;br&gt;&lt;br&gt;That was the same reason why I never used ZigBee, but the ZigBee
&lt;br&gt;modules always had been quite atractive.
&lt;br&gt;About half a year ago I first heared about 6LoWPAN and was very excited,
&lt;br&gt;because it was IP and I work with IPv6 since about 10 years.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;gt; So far I have two options available.
&lt;br&gt;&amp;gt; &amp;gt; - Run a uIP thread on Nut/OS and catch all IPv6 packet.
&lt;br&gt;&amp;gt; &amp;gt; - extend Ethernut to every required feature
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Adam's license fits well and we can probably steal a lot from his code
&lt;br&gt;&amp;gt; to extend the Nut/OS stack.
&lt;br&gt;&lt;br&gt;At least the MAC code should be able to port without problems and I
&lt;br&gt;hope a lot of the header compression code can be taken as well.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;gt; The second is a lot more work, but more attractive in the long run.
&lt;br&gt;&amp;gt; &amp;gt; Basicly it is a list of many features, which I'm unsure about current
&lt;br&gt;&amp;gt; &amp;gt; development status.
&lt;br&gt;&amp;gt; &amp;gt; The main points are:
&lt;br&gt;&amp;gt; &amp;gt; - running multiple interfaces with multiple IPs
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; A little bit tricky, but not too difficult. At least routing is already
&lt;br&gt;&amp;gt; prepared for more interfaces.
&lt;br&gt;&lt;br&gt;Well IPv6 is a bit more tricky if done completely.
&lt;br&gt;Additoonal to the 128bit address you have a scope, which is a local
&lt;br&gt;interface number.
&lt;br&gt;Every packet parsed locally has to take the scope into account because
&lt;br&gt;the scope tells on which interface to send the answer back.
&lt;br&gt;The scope is technically nothing more than an index to the local
&lt;br&gt;interface extending the addresses within the OS.
&lt;br&gt;An interface have multiple addresses by design.
&lt;br&gt;You always have a link-local address in the fe80::/64 range.
&lt;br&gt;You usually want a routable IP address as well.
&lt;br&gt;You should handle multicast address for everyhost and 6LoWPAN routers
&lt;br&gt;also need to handle neighbor discovery related multicast addresses.
&lt;br&gt;&lt;br&gt;I think I will start adding a uIP thread to Ethernut.
&lt;br&gt;Having a working reference would be good I asume.
&lt;br&gt;Then start with adding hosts running native stack, which neither require
&lt;br&gt;routing nor multiple interfaces.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; - forwarding packet between networks
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; dito.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; - IPv6 packet format in general
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I know that IPv6 is not available, but it was often discussed and what
&lt;br&gt;&amp;gt; &amp;gt; about the other points?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Exactly.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm only unsure about the release. We have 4.9 beta available for some
&lt;br&gt;&amp;gt; time now. Actually I'd prefer to have 4.10 (or 5.0?) out first, before
&lt;br&gt;&amp;gt; starting to add such a modification like IPv6. There is still some
&lt;br&gt;&amp;gt; clean-up work to be done (mainly the docs) for the next stable version.
&lt;br&gt;&amp;gt; I'd also like to have the qt based configurator and stable AVR32 builds
&lt;br&gt;&amp;gt; as well.
&lt;/div&gt;&lt;br&gt;Well for me that's a different thing :)
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;B.Walter &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26489577&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bernd@...&lt;/a&gt;&amp;gt; &lt;a href=&quot;http://www.bwct.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bwct.de&lt;/a&gt;&lt;br&gt;Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-few-network-related-feature-polls-tp26461573p26489577.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26489047</id>
	<title>Re: A few network related feature polls</title>
	<published>2009-11-23T17:16:31Z</published>
	<updated>2009-11-23T17:16:31Z</updated>
	<author>
		<name>Thiago A. Corrêa</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;On Mon, Nov 23, 2009 at 1:21 PM, Harald Kipp &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26489047&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;harald.kipp@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Bernd Walter wrote:
&lt;br&gt;&amp;gt;&amp;gt; My target is to get 6LoWPAN including forwarding from Ethernet running.
&lt;br&gt;&amp;gt;&amp;gt; Hardware is a AT91SAM7X256/512 with CC2420 Module.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Interestingly we at egnite plan something similar. Our first idea was to
&lt;br&gt;&amp;gt; implement ZigBee, but license issues makes this far less attractive.
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;I'm also interested in an 6LoWPAN implementation in Nut/OS. Is the
&lt;br&gt;merge with btnut still on the horizon? Perhaps we should think on a
&lt;br&gt;radio interface implementation as we have for the ethernet so drivers
&lt;br&gt;implement a common API and we can choose different radio chips.
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; So far I have two options available.
&lt;br&gt;&amp;gt;&amp;gt; - Run a uIP thread on Nut/OS and catch all IPv6 packet.
&lt;br&gt;&amp;gt;&amp;gt; - extend Ethernut to every required feature
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Adam's license fits well and we can probably steal a lot from his code
&lt;br&gt;&amp;gt; to extend the Nut/OS stack.
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;Last I saw there was some heavy development, specially at the routing
&lt;br&gt;level. Is it stable now?
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; The second is a lot more work, but more attractive in the long run.
&lt;br&gt;&amp;gt;&amp;gt; Basicly it is a list of many features, which I'm unsure about current
&lt;br&gt;&amp;gt;&amp;gt; development status.
&lt;br&gt;&amp;gt;&amp;gt; The main points are:
&lt;br&gt;&amp;gt;&amp;gt; - running multiple interfaces with multiple IPs
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; A little bit tricky, but not too difficult. At least routing is already
&lt;br&gt;&amp;gt; prepared for more interfaces.
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;I guess we should include a Nut Configurator option, to keep the
&lt;br&gt;binary size down for those who don't need it. I for one can see myself
&lt;br&gt;building both routed and unrouted versions for different products.
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; - IPv6 packet format in general
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I know that IPv6 is not available, but it was often discussed and what
&lt;br&gt;&amp;gt;&amp;gt; about the other points?
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;It was a requested feature from way back. I know very little about
&lt;br&gt;IPv6, but I've been trying to study a bit.
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm only unsure about the release. We have 4.9 beta available for some
&lt;br&gt;&amp;gt; time now. Actually I'd prefer to have 4.10 (or 5.0?) out first, before
&lt;br&gt;&amp;gt; starting to add such a modification like IPv6. There is still some
&lt;br&gt;&amp;gt; clean-up work to be done (mainly the docs) for the next stable version.
&lt;br&gt;&amp;gt; I'd also like to have the qt based configurator and stable AVR32 builds
&lt;br&gt;&amp;gt; as well.
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;The qnutconf is missing a Delegate (so it will show radio icons on the
&lt;br&gt;tree instead of a checkbox icon) and create proper editor widget
&lt;br&gt;(qcombobox) for the multiple choice options and spinbox for the
&lt;br&gt;integer options. Other than that, tweaks here and there, and the part
&lt;br&gt;that generates the sample tree. It actually builds already, but with
&lt;br&gt;the missing custom delegate, some choices are unavailable for
&lt;br&gt;modification.
&lt;br&gt;&lt;br&gt;Are you aware of problems with the AVR32 build?
&lt;br&gt;&lt;br&gt;Kind Regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp; Thiago A. Correa
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-few-network-related-feature-polls-tp26461573p26489047.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26479998</id>
	<title>Re: A few network related feature polls</title>
	<published>2009-11-23T07:21:56Z</published>
	<updated>2009-11-23T07:21:56Z</updated>
	<author>
		<name>Ethernut</name>
	</author>
	<content type="html">Bernd Walter wrote:
&lt;br&gt;&amp;gt; My target is to get 6LoWPAN including forwarding from Ethernet running.
&lt;br&gt;&amp;gt; Hardware is a AT91SAM7X256/512 with CC2420 Module.
&lt;br&gt;&lt;br&gt;Interestingly we at egnite plan something similar. Our first idea was to
&lt;br&gt;implement ZigBee, but license issues makes this far less attractive.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; So far I have two options available.
&lt;br&gt;&amp;gt; - Run a uIP thread on Nut/OS and catch all IPv6 packet.
&lt;br&gt;&amp;gt; - extend Ethernut to every required feature
&lt;br&gt;&lt;br&gt;Adam's license fits well and we can probably steal a lot from his code
&lt;br&gt;to extend the Nut/OS stack.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; The second is a lot more work, but more attractive in the long run.
&lt;br&gt;&amp;gt; Basicly it is a list of many features, which I'm unsure about current
&lt;br&gt;&amp;gt; development status.
&lt;br&gt;&amp;gt; The main points are:
&lt;br&gt;&amp;gt; - running multiple interfaces with multiple IPs
&lt;br&gt;&lt;br&gt;A little bit tricky, but not too difficult. At least routing is already
&lt;br&gt;prepared for more interfaces.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; - forwarding packet between networks
&lt;br&gt;&lt;br&gt;dito.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; - IPv6 packet format in general
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I know that IPv6 is not available, but it was often discussed and what
&lt;br&gt;&amp;gt; about the other points?
&lt;br&gt;&lt;br&gt;Exactly.
&lt;br&gt;&lt;br&gt;I'm only unsure about the release. We have 4.9 beta available for some
&lt;br&gt;time now. Actually I'd prefer to have 4.10 (or 5.0?) out first, before
&lt;br&gt;starting to add such a modification like IPv6. There is still some
&lt;br&gt;clean-up work to be done (mainly the docs) for the next stable version.
&lt;br&gt;I'd also like to have the qt based configurator and stable AVR32 builds
&lt;br&gt;as well.
&lt;br&gt;&lt;br&gt;Any other opinions?
&lt;br&gt;&lt;br&gt;Harald
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-few-network-related-feature-polls-tp26461573p26479998.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26461573</id>
	<title>A few network related feature polls</title>
	<published>2009-11-21T15:47:58Z</published>
	<updated>2009-11-21T15:47:58Z</updated>
	<author>
		<name>Bernd Walter-2</name>
	</author>
	<content type="html">My target is to get 6LoWPAN including forwarding from Ethernet running.
&lt;br&gt;Hardware is a AT91SAM7X256/512 with CC2420 Module.
&lt;br&gt;&lt;br&gt;So far I have two options available.
&lt;br&gt;- Run a uIP thread on Nut/OS and catch all IPv6 packet.
&lt;br&gt;- extend Ethernut to every required feature
&lt;br&gt;&lt;br&gt;The first point sounds easy since there is uIP code for 6LoWPAN with
&lt;br&gt;CC2420 available.
&lt;br&gt;The bad side is that this requires a rewrite of all applications
&lt;br&gt;because IPv6 and IPv4 services use different client API.
&lt;br&gt;Likely I will do this anyway to have a reference design available and
&lt;br&gt;start doing simple services.
&lt;br&gt;&lt;br&gt;The second is a lot more work, but more attractive in the long run.
&lt;br&gt;Basicly it is a list of many features, which I'm unsure about current
&lt;br&gt;development status.
&lt;br&gt;The main points are:
&lt;br&gt;- running multiple interfaces with multiple IPs
&lt;br&gt;- forwarding packet between networks
&lt;br&gt;- IPv6 packet format in general
&lt;br&gt;&lt;br&gt;I know that IPv6 is not available, but it was often discussed and what
&lt;br&gt;about the other points?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;B.Walter &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26461573&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bernd@...&lt;/a&gt;&amp;gt; &lt;a href=&quot;http://www.bwct.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bwct.de&lt;/a&gt;&lt;br&gt;Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/A-few-network-related-feature-polls-tp26461573p26461573.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26459769</id>
	<title>Re: support for SD-HC cards</title>
	<published>2009-11-21T12:03:06Z</published>
	<updated>2009-11-21T12:03:06Z</updated>
	<author>
		<name>Rob van Lieshout (PragmaLab)</name>
	</author>
	<content type="html">Hello Malte,
&lt;br&gt;&lt;br&gt;&amp;gt; But the changelogs does not say anything about sd-hc, so I think its
&lt;br&gt;&amp;gt; not
&lt;br&gt;&amp;gt; included yet.
&lt;br&gt;&amp;gt; Would someone be so kind, to tell me where I can find the modifications
&lt;br&gt;&amp;gt; or send them to me?
&lt;br&gt;&lt;br&gt;October 2008 I send the modifications in phatdir.c and phatfs.c (support for
&lt;br&gt;SD-HC and some small fs enhancements). Harald and Ole looked into these
&lt;br&gt;modifications but that was the last thing I heard about it. There is still
&lt;br&gt;some other work to do when it comes to improve the current filesystem.
&lt;br&gt;Although we use it without too many problems in our streaming-audio
&lt;br&gt;applications, we would like to speed up the write routines. But SD-HC
&lt;br&gt;support is working fine as well as the support for long filenames.
&lt;br&gt;&lt;br&gt;Kind regards,
&lt;br&gt;&lt;br&gt;Rob van Lieshout
&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/support-for-SD-HC-cards-tp26448766p26459769.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26448766</id>
	<title>support for SD-HC cards</title>
	<published>2009-11-20T11:12:23Z</published>
	<updated>2009-11-20T11:12:23Z</updated>
	<author>
		<name>Malte Marwedel</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;I found in several messages in the mailinglist archive, that there are 
&lt;br&gt;modifications to support SD-HC cards:
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/pipermail/en-nut-discussion/2008-April/009258.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/pipermail/en-nut-discussion/2008-April/009258.html&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/pipermail/en-nut-discussion/2009-February/010325.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/pipermail/en-nut-discussion/2009-February/010325.html&lt;/a&gt;&lt;br&gt;But the changelogs does not say anything about sd-hc, so I think its not 
&lt;br&gt;included yet.
&lt;br&gt;Would someone be so kind, to tell me where I can find the modifications 
&lt;br&gt;or send them to me?
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Malte
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/support-for-SD-HC-cards-tp26448766p26448766.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26437282</id>
	<title>Re: Nut OS reliable on AT91SAM7X Evaluation Board?</title>
	<published>2009-11-19T17:53:22Z</published>
	<updated>2009-11-19T17:53:22Z</updated>
	<author>
		<name>Bernd Walter-2</name>
	</author>
	<content type="html">On Wed, Nov 18, 2009 at 05:21:25PM +0100, Ole Reinhardt wrote:
&lt;br&gt;&amp;gt; Hi Ulrich,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I come back to your code next week. I'd like to implement PDC/DMA for 
&lt;br&gt;&amp;gt; &amp;gt; the network and the SPI channels. If supported, I'd like to implement it 
&lt;br&gt;&amp;gt; &amp;gt; for a background memcpy too.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Background memcopy won't work, as the PDC does not support
&lt;br&gt;&amp;gt; memory&amp;lt;-&amp;gt;memory dma.
&lt;br&gt;&lt;br&gt;Not directly, but there are IO functions which have internal loopback
&lt;br&gt;support - at least USART would do.
&lt;br&gt;Unless you use that function for real IO it can be harnessed to
&lt;br&gt;copy data.
&lt;br&gt;But you need to be carefull - byte level IO does byte access to memory,
&lt;br&gt;while a CPU driven copy would access long words.
&lt;br&gt;Depending on the actual overhead for reading opcodes it might be
&lt;br&gt;less efficient.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;B.Walter &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26437282&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bernd@...&lt;/a&gt;&amp;gt; &lt;a href=&quot;http://www.bwct.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.bwct.de&lt;/a&gt;&lt;br&gt;Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nut-OS-reliable-on-AT91SAM7X-Evaluation-Board--tp26332340p26437282.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26432066</id>
	<title>Re: Nut OS reliable on AT91SAM7X Evaluation Board?</title>
	<published>2009-11-19T11:00:31Z</published>
	<updated>2009-11-19T11:00:31Z</updated>
	<author>
		<name>uprinz</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;That would be great. I started with a local version for my OLED too, but 
&lt;br&gt;I missed to take my scope with me. So no timing tests possible and then 
&lt;br&gt;the day turned into a meeting day... Uah...
&lt;br&gt;Didn't get anything done...
&lt;br&gt;&lt;br&gt;Bye, Ulrich
&lt;br&gt;&lt;br&gt;Ole Reinhardt schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi!
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Hihi, with my radio driver I was experimenting on that. I first need to 
&lt;br&gt;&amp;gt;&amp;gt; send out 2 bytes for the chipset to set it to the right mode, then I 
&lt;br&gt;&amp;gt;&amp;gt; have to send the complete radio packet. So I tried a double buffer DMA, 
&lt;br&gt;&amp;gt;&amp;gt; programming the first page for 2 bytes of the command and the second 
&lt;br&gt;&amp;gt;&amp;gt; pointer pair points to the data buffer.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; But I didn't get it to work, as I had not enough time to figure out how 
&lt;br&gt;&amp;gt;&amp;gt; to enable the PDC support or what to do with these pipes mentioned in 
&lt;br&gt;&amp;gt;&amp;gt; the PDC driver version. I'll keep on as I have time.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If you mind and I find it again, I could send you a short example
&lt;br&gt;&amp;gt; routine that uses SPI with PDC. It's not encapsulated in a NutOS driver
&lt;br&gt;&amp;gt; but a simple routine to communicate with a LCD display.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Bye,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Ole
&lt;br&gt;&amp;gt; 
&lt;/div&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nut-OS-reliable-on-AT91SAM7X-Evaluation-Board--tp26332340p26432066.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26424047</id>
	<title>Re: [Bulk] Re: Nut OS reliable on AT91SAM7X Evaluation Board?</title>
	<published>2009-11-19T02:39:10Z</published>
	<updated>2009-11-19T02:39:10Z</updated>
	<author>
		<name>Ole Reinhardt-2</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;&amp;gt; Yes if it works, it can be a great speed improvement. But it is 
&lt;br&gt;&amp;gt; difficult to implement in an 'intelligent' way, as Ole stated in this 
&lt;br&gt;&amp;gt; thread. Setting up 10 PDC registers doesn't make sense if you need to 
&lt;br&gt;&amp;gt; transfer to bytes only :)
&lt;br&gt;&lt;br&gt;Especial if you have an end of transfer interrupt you still need to
&lt;br&gt;calculate the thread switch latency if the CPU was given up to another
&lt;br&gt;thread in the meantime.
&lt;br&gt;&lt;br&gt;Bye,
&lt;br&gt;&lt;br&gt;Ole
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;_____________________________________________________________
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;| Embedded-IT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;| Ole Reinhardt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Tel. / Fax: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+49 (0)271 &amp;nbsp;7420433 |
&lt;br&gt;| Luisenstraße 29 &amp;nbsp; &amp;nbsp; &amp;nbsp;Mobil: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +49 (0)177 &amp;nbsp;7420433 |
&lt;br&gt;| 57076 Siegen &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; eMail: &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26424047&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ole.reinhardt@...&lt;/a&gt; |
&lt;br&gt;| Germany &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Web: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.embedded-it.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.embedded-it.de&lt;/a&gt;&amp;nbsp;|
&lt;br&gt;|_____________________________________________________________|
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nut-OS-reliable-on-AT91SAM7X-Evaluation-Board--tp26332340p26424047.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26423988</id>
	<title>Re: Nut OS reliable on AT91SAM7X Evaluation Board?</title>
	<published>2009-11-19T02:35:04Z</published>
	<updated>2009-11-19T02:35:04Z</updated>
	<author>
		<name>Ole Reinhardt-2</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;&amp;gt; Hihi, with my radio driver I was experimenting on that. I first need to 
&lt;br&gt;&amp;gt; send out 2 bytes for the chipset to set it to the right mode, then I 
&lt;br&gt;&amp;gt; have to send the complete radio packet. So I tried a double buffer DMA, 
&lt;br&gt;&amp;gt; programming the first page for 2 bytes of the command and the second 
&lt;br&gt;&amp;gt; pointer pair points to the data buffer.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; But I didn't get it to work, as I had not enough time to figure out how 
&lt;br&gt;&amp;gt; to enable the PDC support or what to do with these pipes mentioned in 
&lt;br&gt;&amp;gt; the PDC driver version. I'll keep on as I have time.
&lt;br&gt;&lt;br&gt;If you mind and I find it again, I could send you a short example
&lt;br&gt;routine that uses SPI with PDC. It's not encapsulated in a NutOS driver
&lt;br&gt;but a simple routine to communicate with a LCD display.
&lt;br&gt;&lt;br&gt;Bye,
&lt;br&gt;&lt;br&gt;Ole
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;_____________________________________________________________
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;| Embedded-IT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;| Ole Reinhardt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Tel. / Fax: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+49 (0)271 &amp;nbsp;7420433 |
&lt;br&gt;| Luisenstraße 29 &amp;nbsp; &amp;nbsp; &amp;nbsp;Mobil: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +49 (0)177 &amp;nbsp;7420433 |
&lt;br&gt;| 57076 Siegen &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; eMail: &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26423988&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ole.reinhardt@...&lt;/a&gt; |
&lt;br&gt;| Germany &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Web: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.embedded-it.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.embedded-it.de&lt;/a&gt;&amp;nbsp;|
&lt;br&gt;|_____________________________________________________________|
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nut-OS-reliable-on-AT91SAM7X-Evaluation-Board--tp26332340p26423988.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26417850</id>
	<title>Re: [Bulk] Re: Nut OS reliable on AT91SAM7X	Evaluation Board?</title>
	<published>2009-11-18T15:37:03Z</published>
	<updated>2009-11-18T15:37:03Z</updated>
	<author>
		<name>uprinz</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;Marcus Jansson schrieb:
&lt;br&gt;&amp;gt; Ulrich Prinz wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Marcus Jansson schrieb:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; I'd like to implement PDC/DMA for the network and the SPI channels. 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; This can be done, the SPI seem to have a long list of errata associated with the PDC, though.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Yes, I saw it and I don't like it :) But what should I do, I'd like to 
&lt;br&gt;&amp;gt;&amp;gt; get out optimal performance...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; All I see is an opportunity clever workarounds.
&lt;br&gt;&lt;br&gt;Yea, read the part today and was not so upset as I feared. There are 
&lt;br&gt;only a few erratas about SPI and PDC and mostly problems with CS1 or 
&lt;br&gt;different timing setups ( SPI timer and CPOL). In my system, CS1 is not 
&lt;br&gt;used for any device and CPOL is the same for all devices. So there 
&lt;br&gt;should be no problem. It is some more work to detect these situations 
&lt;br&gt;that possibly crash in a general Nut/OS version. If you write an open 
&lt;br&gt;source driver, it should be more comfortable... or have #warning or lots 
&lt;br&gt;of comments...
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; If supported, I'd like to implement it for a background memcpy too.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I can not see how this can be done with the PDC ...hand optimized LDM/STM block copy ... existing
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; slow memcpy()... increasing performance in internal RAM?
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Yeah ... optimization ... CPU driven memcpy ... many different tasks... 
&lt;br&gt;&amp;gt;&amp;gt; It's another strategy... DSP ... DMA ... modify the content ... chain 
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;gt; ... pipe ... totally different ... 12MBit ... polling mode No!...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Yes, that should be possible. I wasnt thinking out of the box.
&lt;br&gt;&amp;gt; These pipes btwn ETH-unit and SPI are totally different.
&lt;br&gt;&amp;gt; The CPU will mostly wait for DMA to be finished! Lots of power left for other
&lt;br&gt;&amp;gt; things to do. Very good.
&lt;/div&gt;&lt;br&gt;Yes if it works, it can be a great speed improvement. But it is 
&lt;br&gt;difficult to implement in an 'intelligent' way, as Ole stated in this 
&lt;br&gt;thread. Setting up 10 PDC registers doesn't make sense if you need to 
&lt;br&gt;transfer to bytes only :)
&lt;br&gt;&lt;br&gt;Best regards, Ulrich
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nut-OS-reliable-on-AT91SAM7X-Evaluation-Board--tp26332340p26417850.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26417792</id>
	<title>Re: Nut OS reliable on AT91SAM7X Evaluation Board?</title>
	<published>2009-11-18T15:32:29Z</published>
	<updated>2009-11-18T15:32:29Z</updated>
	<author>
		<name>uprinz</name>
	</author>
	<content type="html">Hi Ole,
&lt;br&gt;&lt;br&gt;Ole Reinhardt schrieb:
&lt;br&gt;&amp;gt; Hi Ulrich,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;nbsp; &amp;gt; Background memcopy won't work, as the PDC does not support
&lt;br&gt;&amp;gt; memory&amp;lt;-&amp;gt;memory dma.
&lt;br&gt;The data sheet is a bit unclear in that point, but I figured out that is 
&lt;br&gt;doesn't work too. Doesn't harm the actual application. IN most cases 90% 
&lt;br&gt;of the buffer content needs to be created or modified and instead of 
&lt;br&gt;writing it back I can write it to the new position as well.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; And always keep in mind the overhead for the pdc. Especial with the SPI
&lt;br&gt;&amp;gt; I implemented PDC for the SPI function and these became notably slower
&lt;br&gt;&amp;gt; as polling mode when just sending small data packets. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;Yes, that's an important point. I didn't mention that as it was obvious 
&lt;br&gt;that is doesn't make sense to preset 10 registers if you have to send 
&lt;br&gt;out only two bytes.
&lt;br&gt;&lt;br&gt;&amp;gt; Having both possibilities and an automatic decision which of them to use
&lt;br&gt;&amp;gt; would be nice. 
&lt;br&gt;&lt;br&gt;Hihi, with my radio driver I was experimenting on that. I first need to 
&lt;br&gt;send out 2 bytes for the chipset to set it to the right mode, then I 
&lt;br&gt;have to send the complete radio packet. So I tried a double buffer DMA, 
&lt;br&gt;programming the first page for 2 bytes of the command and the second 
&lt;br&gt;pointer pair points to the data buffer.
&lt;br&gt;&lt;br&gt;But I didn't get it to work, as I had not enough time to figure out how 
&lt;br&gt;to enable the PDC support or what to do with these pipes mentioned in 
&lt;br&gt;the PDC driver version. I'll keep on as I have time.
&lt;br&gt;&lt;br&gt;Regards, Ulrich
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nut-OS-reliable-on-AT91SAM7X-Evaluation-Board--tp26332340p26417792.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26410875</id>
	<title>Re: Nut OS reliable on AT91SAM7X Evaluation Board?</title>
	<published>2009-11-18T08:21:25Z</published>
	<updated>2009-11-18T08:21:25Z</updated>
	<author>
		<name>Ole Reinhardt-2</name>
	</author>
	<content type="html">Hi Ulrich,
&lt;br&gt;&lt;br&gt;&amp;gt; I come back to your code next week. I'd like to implement PDC/DMA for 
&lt;br&gt;&amp;gt; the network and the SPI channels. If supported, I'd like to implement it 
&lt;br&gt;&amp;gt; for a background memcpy too.
&lt;br&gt;&lt;br&gt;Background memcopy won't work, as the PDC does not support
&lt;br&gt;memory&amp;lt;-&amp;gt;memory dma.
&lt;br&gt;&lt;br&gt;And always keep in mind the overhead for the pdc. Especial with the SPI
&lt;br&gt;I implemented PDC for the SPI function and these became notably slower
&lt;br&gt;as polling mode when just sending small data packets. 
&lt;br&gt;&lt;br&gt;Having both possibilities and an automatic decision which of them to use
&lt;br&gt;would be nice. 
&lt;br&gt;&lt;br&gt;Bye,
&lt;br&gt;&lt;br&gt;Ole
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&amp;nbsp;_____________________________________________________________
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;| Embedded-IT &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |
&lt;br&gt;| Ole Reinhardt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Tel. / Fax: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+49 (0)271 &amp;nbsp;7420433 |
&lt;br&gt;| Luisenstraße 29 &amp;nbsp; &amp;nbsp; &amp;nbsp;Mobil: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +49 (0)177 &amp;nbsp;7420433 |
&lt;br&gt;| 57076 Siegen &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; eMail: &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26410875&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ole.reinhardt@...&lt;/a&gt; |
&lt;br&gt;| Germany &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Web: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.embedded-it.de&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.embedded-it.de&lt;/a&gt;&amp;nbsp;|
&lt;br&gt;|_____________________________________________________________|
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nut-OS-reliable-on-AT91SAM7X-Evaluation-Board--tp26332340p26410875.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26408727</id>
	<title>Re: [Bulk] Re: Nut OS reliable on AT91SAM7X	Evaluation Board?</title>
	<published>2009-11-18T06:26:11Z</published>
	<updated>2009-11-18T06:26:11Z</updated>
	<author>
		<name>Marcus Jansson</name>
	</author>
	<content type="html">Ulrich Prinz wrote:
&lt;br&gt;&amp;gt;&amp;gt; Marcus Jansson schrieb:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'd like to implement PDC/DMA for the network and the SPI channels. 
&lt;br&gt;&amp;gt;&amp;gt; This can be done, the SPI seem to have a long list of errata associated with the PDC, though.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; Yes, I saw it and I don't like it :) But what should I do, I'd like to 
&lt;br&gt;&amp;gt; get out optimal performance...
&lt;br&gt;&lt;br&gt;All I see is an opportunity clever workarounds.
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; If supported, I'd like to implement it for a background memcpy too.
&lt;br&gt;&amp;gt;&amp;gt; I can not see how this can be done with the PDC ...hand optimized LDM/STM block copy ... existing
&lt;br&gt;&amp;gt;&amp;gt; slow memcpy()... increasing performance in internal RAM?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; Yeah ... optimization ... CPU driven memcpy ... many different tasks... 
&lt;br&gt;&amp;gt; It's another strategy... DSP ... DMA ... modify the content ... chain 
&lt;br&gt;&amp;nbsp;&amp;gt; ... pipe ... totally different ... 12MBit ... polling mode No!...
&lt;br&gt;&lt;br&gt;Yes, that should be possible. I wasnt thinking out of the box.
&lt;br&gt;These pipes btwn ETH-unit and SPI are totally different.
&lt;br&gt;The CPU will mostly wait for DMA to be finished! Lots of power left for other
&lt;br&gt;things to do. Very good.
&lt;br&gt;&lt;br&gt;/Marcus
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nut-OS-reliable-on-AT91SAM7X-Evaluation-Board--tp26332340p26408727.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26395340</id>
	<title>Re: Nut OS reliable on AT91SAM7X Evaluation Board?</title>
	<published>2009-11-17T10:47:42Z</published>
	<updated>2009-11-17T10:47:42Z</updated>
	<author>
		<name>Thiago A. Corrêa</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;On Tue, Nov 17, 2009 at 4:33 PM, Ulrich Prinz &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26395340&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uprinz2@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'd like to implement PDC/DMA for the network and the SPI channels.
&lt;br&gt;&amp;gt;&amp;gt; This can be done, the SPI seem to have a long list of errata associated with the PDC, though.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; Yes, I saw it and I don't like it :) But what should I do, I'd like to
&lt;br&gt;&amp;gt; get out optimal performance and why carrying bytes by hand if these is
&lt;br&gt;&amp;gt; an automated way for the background.
&lt;br&gt;&lt;br&gt;I saw a similar question on the Linux mailing list. It was more like,
&lt;br&gt;which driver one was supposed to use, and their answer as to use the
&lt;br&gt;gpio driver, as the atmel spi driver never worked reliabily.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; What was the reason for not having Thumb code in Nut/OS?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I never thought about that and I wasn't in the project at the time where
&lt;br&gt;&amp;gt; these decision was made. So you have to ask Harald for that.
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;I believe that has been asked before. Looks like parts of the lib
&lt;br&gt;could be compiled with Thumb, and the user code could also be thumb.
&lt;br&gt;But I don't use ARM, so I know very little about that.
&lt;br&gt;&lt;br&gt;Kind Regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp; Thiago A. Correa
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nut-OS-reliable-on-AT91SAM7X-Evaluation-Board--tp26332340p26395340.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26395124</id>
	<title>Re: Nut OS reliable on AT91SAM7X Evaluation	Board?</title>
	<published>2009-11-17T10:33:07Z</published>
	<updated>2009-11-17T10:33:07Z</updated>
	<author>
		<name>uprinz</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;Marcus Jansson schrieb:
&lt;br&gt;&amp;gt; Ulrich Prinz wrote:
&lt;br&gt;&amp;gt;&amp;gt; I'd like to implement PDC/DMA for the network and the SPI channels. 
&lt;br&gt;&amp;gt; This can be done, the SPI seem to have a long list of errata associated with the PDC, though.
&lt;br&gt;&amp;gt; 
&lt;br&gt;Yes, I saw it and I don't like it :) But what should I do, I'd like to 
&lt;br&gt;get out optimal performance and why carrying bytes by hand if these is 
&lt;br&gt;an automated way for the background.
&lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; If supported, I'd like to implement it for a background memcpy too.
&lt;br&gt;&amp;gt; I can not see how this can be done with the PDC, unless you're talking about a memcpy() to/from memories (possibly
&lt;br&gt;&amp;gt; eeproms) connected to the SPI or similar. Otherwise a hand optimized LDM/STM block copy loop instead of the existing
&lt;br&gt;&amp;gt; slow memcpy() might be in order for increasing memcpy() performance in internal RAM?
&lt;br&gt;&amp;gt; 
&lt;br&gt;Yeah, there might be an optimization chance in the code for the CPU 
&lt;br&gt;driven memcpy. But most systems do many different tasks. So why block 
&lt;br&gt;the CPU with some dump copy while other things that need calculation 
&lt;br&gt;work have to wait. And it doesn't make programming much more complex.
&lt;br&gt;It's another strategy behind the programming style, more DSP way. SO 
&lt;br&gt;something ist giving you an interrupt and you setup DMA to fetch the 
&lt;br&gt;data into a buffer_1. After DMA finishes, you setup a function to modify 
&lt;br&gt;the content at special places, lets say filling in certain data into 
&lt;br&gt;certain positions. Then you setup DMA to copy the buffer over to another 
&lt;br&gt;functions buffer to fill in other data or preparation of frame 
&lt;br&gt;information. This can be repeated many times until the chain reaches a 
&lt;br&gt;point where everything is prepared and the data can be send to another 
&lt;br&gt;device like TCP or IIS or whatever. This can also be done via DMA.
&lt;br&gt;&lt;br&gt;Now, while this DMA chaining doesn't make sense if you only have one 
&lt;br&gt;buffer and slow incoming data, it important for situations where you 
&lt;br&gt;have several of each buffer in parallel. While receiving in buffer 1, 
&lt;br&gt;copy out of buffer 0. While decoding in the first functions buffer 0, 
&lt;br&gt;transfer decoded data to buffer 1 of second function.
&lt;br&gt;&lt;br&gt;The style of programming is then totally different as it is in Nut/OS 
&lt;br&gt;now, as you program functions as interrupt requests. The software is 
&lt;br&gt;controlled by the data moving through it and not the other, normal, way 
&lt;br&gt;round.
&lt;br&gt;&lt;br&gt;It's sort of DSP programming where you attach handlers to the buffers, 
&lt;br&gt;the so called pipes.
&lt;br&gt;&lt;br&gt;In my case I have to route radio packets the often only need another 
&lt;br&gt;header in front of existing data. Instead of creating another buffer of 
&lt;br&gt;the size of the packet plus the packet itself, filling in the new header 
&lt;br&gt;and attaching the packet with memcpy, I simply create a new buffer, add 
&lt;br&gt;the header in front and DMA-copy the packet into the tail. With the DMA 
&lt;br&gt;Interrupt I setup another DMA throwing the new packet through SPI to tha 
&lt;br&gt;radio chipset.
&lt;br&gt;&lt;br&gt;There is another way of handling this. I setup a table of pointers 
&lt;br&gt;collecting a radio packet and it's different headers out of the memory. 
&lt;br&gt;But then I have to carefully track each pointer operation and have to 
&lt;br&gt;check if another header exists and so on. It will save some time but I 
&lt;br&gt;have to track a lot. The previous DMA wakes DMA is much more elegant and 
&lt;br&gt;the CPU can do lots of other things while the DMA works in background.
&lt;br&gt;&lt;br&gt;There is another reason for DMA. The SPI to the radio chipset can run at 
&lt;br&gt;12MBit plus. You cannot put data fast enough together if you try to do 
&lt;br&gt;that in polling mode... I guess that even on 4MBit I have larger gaps 
&lt;br&gt;between the packets where the CPU is busy with fetching bytes.
&lt;br&gt;&lt;br&gt;&amp;gt; What was the reason for not having Thumb code in Nut/OS?
&lt;br&gt;&lt;br&gt;I never thought about that and I wasn't in the project at the time where 
&lt;br&gt;these decision was made. So you have to ask Harald for that.
&lt;br&gt;&lt;br&gt;Best regards, Ulrich
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nut-OS-reliable-on-AT91SAM7X-Evaluation-Board--tp26332340p26395124.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26390695</id>
	<title>Re: Maybe obvious ...</title>
	<published>2009-11-17T06:16:03Z</published>
	<updated>2009-11-17T06:16:03Z</updated>
	<author>
		<name>Paolo Simoncelli</name>
	</author>
	<content type="html">&lt;br&gt;Hey, seems that it wasn't all that obvious ;-)
&lt;br&gt;Thank you very much for sharing.
&lt;br&gt;&lt;br&gt;Ciao
&lt;br&gt;Paolo
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Maybe-obvious-...-tp26323864p26390695.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26377398</id>
	<title>Propox board for Sam7X, Good or Bad?</title>
	<published>2009-11-16T10:44:11Z</published>
	<updated>2009-11-16T10:44:11Z</updated>
	<author>
		<name>Eric Haver</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&lt;br&gt;Does anyone have experience with Propox? &amp;nbsp; Their website has a copy of
&lt;br&gt;Ethernet 3.8, or some such. My engineer likes the 16x2 LCD available.
&lt;br&gt;&lt;br&gt;*E
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Propox-board-for-Sam7X%2C-Good-or-Bad--tp26377398p26377398.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26371856</id>
	<title>Re: Nut OS reliable on AT91SAM7X Evaluation Board?</title>
	<published>2009-11-16T05:25:59Z</published>
	<updated>2009-11-16T05:25:59Z</updated>
	<author>
		<name>Marcus Jansson</name>
	</author>
	<content type="html">&lt;br&gt;Ulrich Prinz wrote:
&lt;br&gt;&amp;gt; I'd like to implement PDC/DMA for the network and the SPI channels. 
&lt;br&gt;This can be done, the SPI seem to have a long list of errata associated with the PDC, though.
&lt;br&gt;&lt;br&gt;&amp;gt; If supported, I'd like to implement it for a background memcpy too.
&lt;br&gt;I can not see how this can be done with the PDC, unless you're talking about a memcpy() to/from memories (possibly
&lt;br&gt;eeproms) connected to the SPI or similar. Otherwise a hand optimized LDM/STM block copy loop instead of the existing
&lt;br&gt;slow memcpy() might be in order for increasing memcpy() performance in internal RAM?
&lt;br&gt;&lt;br&gt;What was the reason for not having Thumb code in Nut/OS?
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Marcus
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nut-OS-reliable-on-AT91SAM7X-Evaluation-Board--tp26332340p26371856.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26362774</id>
	<title>Re: Maybe obvious ...</title>
	<published>2009-11-15T12:09:56Z</published>
	<updated>2009-11-15T12:09:56Z</updated>
	<author>
		<name>Nathan Moore-5</name>
	</author>
	<content type="html">Hey Rob,
&lt;br&gt;&lt;br&gt;On Sun, Nov 15, 2009 at 6:26 AM, Rob van Lieshout (PragmaLab) &amp;lt;
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26362774&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;info@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Please be aware that in the end 'fprint' is using IO to print the message
&lt;br&gt;&amp;gt; (normally the UART will be used for that). So in other words, this fprintf
&lt;br&gt;&amp;gt; statement might end up in a NutThreadYield() as well... If there's enough
&lt;br&gt;&amp;gt; space in the IO-buffer (driver) to send the message in 1 piece, the thread
&lt;br&gt;&amp;gt; will not be yielded, if not, the thread is yielded and is set running again
&lt;br&gt;&amp;gt; by the driver as soon as its buffer has space available.....
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;That's sort of what I what I was trying to say, but fprintf doesn't have to
&lt;br&gt;use
&lt;br&gt;any actual IO (in ram filesystem or null dev), could do non-blocking IO, or
&lt;br&gt;could use polling IO (avr's debug uart), all of which won't require a
&lt;br&gt;context
&lt;br&gt;(thread) switch.
&lt;br&gt;&lt;br&gt;Nathan
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Maybe-obvious-...-tp26323864p26362774.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26358521</id>
	<title>Re: Nut OS reliable on AT91SAM7X Evaluation	Board?</title>
	<published>2009-11-15T04:03:59Z</published>
	<updated>2009-11-15T04:03:59Z</updated>
	<author>
		<name>uprinz</name>
	</author>
	<content type="html">Never mind,
&lt;br&gt;&lt;br&gt;I come back to your code next week. I'd like to implement PDC/DMA for 
&lt;br&gt;the network and the SPI channels. If supported, I'd like to implement it 
&lt;br&gt;for a background memcpy too.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Ulrich
&lt;br&gt;&lt;br&gt;Marcus Jansson schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Oh, I should think before posting! And sorry for not getting the mails into threads.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What I should have said in the previous post from me was:
&lt;br&gt;&amp;gt; &amp;quot;For AT91SAM7X256 I have ADC PDC implemented, and PWMC too. But I have not done PDC implementations of the other PDC 
&lt;br&gt;&amp;gt; channels. My code is not yet in the Nut/OS.&amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I hope I didnt give anyone false hopes.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;gt;&amp;gt; Wiegelmann wrote:
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;gt;&amp;gt;&amp;gt; I'm looking for hardwareplattform with a little bit more performance than Ethernut 1-2 but cheaper than 3 or EIR. 
&lt;br&gt;&amp;gt; The At91Sam7x with the integrated network controller seems to ideal for me. Does anyone has experience with the 
&lt;br&gt;&amp;gt; At91Sam7x- Eval Board and NutOs running? I think that a design with this processor could be a good and cheap replacement 
&lt;br&gt;&amp;gt; for Ethernut1.3 or 2. What do you think?
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;gt;&amp;gt; The bad thing is, that Nut/OS doesn't make use of all the goodies
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;gt;&amp;gt; offered by this chip [sam7x]. For example, PDC (DMA) is almost not implemented
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;gt;&amp;gt; in the drivers.
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;gt;I have implemented PDC (DMA) and also the PWMC unit for the AT91SAM7X256 Olimex board in Nut/OS.
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;gt;I think Ulrich Prinz is reviewing the code right now ;)
&lt;br&gt;&amp;gt; &amp;nbsp;&amp;gt;Hopefully the code can make it into Nut/OS.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Marcus
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;/div&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nut-OS-reliable-on-AT91SAM7X-Evaluation-Board--tp26332340p26358521.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26358319</id>
	<title>Re: Nut OS reliable on AT91SAM7X Evaluation	Board?</title>
	<published>2009-11-15T03:33:37Z</published>
	<updated>2009-11-15T03:33:37Z</updated>
	<author>
		<name>uprinz</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;&lt;br&gt;I have to step in :) Even I love the EIR and did a lot of development on
&lt;br&gt;the Ethernut 3 board, the AT91SAM7X-EK is perfect. We have a fleet of
&lt;br&gt;20 Boards as development and prototype- / field-test systems at work and
&lt;br&gt;they are pretty cool and running perfectly with Nut/OS.
&lt;br&gt;&lt;br&gt;I did some extensions to Nut/OS like new button driver and LED driver.
&lt;br&gt;The AT45D serial flash should work fine too.
&lt;br&gt;&lt;br&gt;We are now running very complex software on that system including a 
&lt;br&gt;radio stack with several network layers and it seems to run out a 
&lt;br&gt;coldfire system with lots more ram and flash. It is fast enough, costs 
&lt;br&gt;only a fraction and consumes a lot less power.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Ulrich
&lt;br&gt;&lt;br&gt;Harald Kipp schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Joerg,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Wiegelmann wrote:
&lt;br&gt;&amp;gt;&amp;gt; I'm looking for hardwareplattform with a little bit more
&lt;br&gt;&amp;gt;&amp;gt; performance than Ethernut 1-2 but cheaper than 3 or EIR. The
&lt;br&gt;&amp;gt;&amp;gt; At91Sam7x with the integrated network controller seems to ideal for
&lt;br&gt;&amp;gt;&amp;gt; me. Does anyone has experience with the &amp;nbsp;At91Sam7x- Eval Board and
&lt;br&gt;&amp;gt;&amp;gt; NutOs running? I think that a design with this processor could be a
&lt;br&gt;&amp;gt;&amp;gt; good and cheap replacement for Ethernut1.3 or 2. What do you think?
&lt;br&gt;&amp;gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; egnite doesn't offer something in that range and as a good company
&lt;br&gt;&amp;gt; guy I should convince you, that Ethernut 3 is the best choice. ;-)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Seriously, the SAM7X is a very good choice, if you are just looking
&lt;br&gt;&amp;gt; for a bit more performance and memory space. Nut/OS is running very
&lt;br&gt;&amp;gt; well on this platform and our company currently develops a network
&lt;br&gt;&amp;gt; device based on this chip (no developer board). We regularly run
&lt;br&gt;&amp;gt; tests on the AT91SAM7X-EK as well. I was told, that Nut/OS also works
&lt;br&gt;&amp;gt; with the SAM7X board from Olimex.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The bad thing is, that Nut/OS doesn't make use of all the goodies 
&lt;br&gt;&amp;gt; offered by this chip. For example, PDC (DMA) is almost not
&lt;br&gt;&amp;gt; implemented in the drivers.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If calculating your memory requirements, be aware, that Ethernet 
&lt;br&gt;&amp;gt; transmit and receive buffers are taken from internal RAM.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Harald
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________ 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;/div&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nut-OS-reliable-on-AT91SAM7X-Evaluation-Board--tp26332340p26358319.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26358293</id>
	<title>Re: Maybe obvious ...</title>
	<published>2009-11-15T03:26:08Z</published>
	<updated>2009-11-15T03:26:08Z</updated>
	<author>
		<name>Rob van Lieshout (PragmaLab)</name>
	</author>
	<content type="html">&lt;div class='shrinkable-quote'&gt;&amp;gt; Also, it's good to remind that Nut/OS uses cooperative threads,
&lt;br&gt;&amp;gt; meaning one thread must relinquish it's hold on the CPU before the
&lt;br&gt;&amp;gt; other runs. This happens when you call IO functions, NutSleep or
&lt;br&gt;&amp;gt; NutThreadYield. So, if your hello world had something like this:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; main() {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;fprintf( fp, &amp;quot;Hello World&amp;quot; );
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;while( true );
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Then no context switching is ever happening, because of the inifinite
&lt;br&gt;&amp;gt; loop in there. Unless of course, you had a NutThreadYield in the loop.
&lt;/div&gt;&lt;br&gt;&lt;br&gt;Hello Nathan,
&lt;br&gt;&lt;br&gt;Please be aware that in the end 'fprint' is using IO to print the message
&lt;br&gt;(normally the UART will be used for that). So in other words, this fprintf
&lt;br&gt;statement might end up in a NutThreadYield() as well... If there's enough
&lt;br&gt;space in the IO-buffer (driver) to send the message in 1 piece, the thread
&lt;br&gt;will not be yielded, if not, the thread is yielded and is set running again
&lt;br&gt;by the driver as soon as its buffer has space available.....
&lt;br&gt;&lt;br&gt;Kind regards,
&lt;br&gt;&lt;br&gt;Rob van Lieshout
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Maybe-obvious-...-tp26323864p26358293.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26341350</id>
	<title>Re: Common way for exact timing</title>
	<published>2009-11-13T10:42:00Z</published>
	<updated>2009-11-13T10:42:00Z</updated>
	<author>
		<name>Ethernut</name>
	</author>
	<content type="html">Daniel wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I have 3 Threads where each of them has to be executed every 50 ms. A
&lt;br&gt;&amp;gt; deviation of 3-4 ms is enough here. I had to many situations in the last
&lt;br&gt;&amp;gt; month, where NutSleep(x) did not work as expected (maybe because of my
&lt;br&gt;&amp;gt; code).
&lt;br&gt;&lt;br&gt;NutSleep guarantees a minimal sleep time only. In typical applications
&lt;br&gt;(avoiding CPU intensive loops) the deviation is probably below 1ms.
&lt;br&gt;&lt;br&gt;However, polling device drivers may provide problems. Try to stick with
&lt;br&gt;interrupt driven drivers.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; So, is there a common way of exact timing for those realtime-threads? 
&lt;br&gt;&lt;br&gt;Hard realtime requirements can be fulfilled by timer interrupts only.
&lt;br&gt;Unless you use NutEnterCritical (or avr-lib's cli), this will provide
&lt;br&gt;minimum jitter (less than 200 us on AVR systems). Nut/OS minimizes
&lt;br&gt;critical sections to minimize interrupt latencies and provide hard
&lt;br&gt;realtime behavior on interrupts.
&lt;br&gt;&lt;br&gt;In any case, interrupt latencies caused by the kernel are deterministic.
&lt;br&gt;&amp;nbsp;That means, that the is a maximum latency, which will never be
&lt;br&gt;exceeded. No matter how many timers, events or threads are active. But
&lt;br&gt;note, that in worst case situations all critical section will sum up.
&lt;br&gt;This is the maximum latency. In reality it is possible, but quite
&lt;br&gt;difficult to determine this time.
&lt;br&gt;&lt;br&gt;As a side note: There are several discussions about whether an RTOS with
&lt;br&gt;cooperative scheduler will be an RTOS. If one refers to task switching,
&lt;br&gt;it won't without strict programmer's discipline. If one refers to
&lt;br&gt;response time in general, it definitely will. Interrupts are the key to
&lt;br&gt;strict timing.
&lt;br&gt;&lt;br&gt;Harald
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Common-way-for-exact-timing-tp26340856p26341350.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26340856</id>
	<title>Common way for exact timing</title>
	<published>2009-11-13T10:09:30Z</published>
	<updated>2009-11-13T10:09:30Z</updated>
	<author>
		<name>Daniel-378</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Sorry to bother you with timing questions again.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Which is a common way to get sure, that a thread is executed everytime with
&lt;br&gt;the same interval?
&lt;br&gt;&amp;nbsp;
&lt;br&gt;I have 3 Threads where each of them has to be executed every 50 ms. A
&lt;br&gt;deviation of 3-4 ms is enough here. I had to many situations in the last
&lt;br&gt;month, where NutSleep(x) did not work as expected (maybe because of my
&lt;br&gt;code).
&lt;br&gt;&amp;nbsp;
&lt;br&gt;So, is there a common way of exact timing for those realtime-threads? 
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Best regards
&lt;br&gt;Daniel
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Common-way-for-exact-timing-tp26340856p26340856.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26337767</id>
	<title>Re: Maybe obvious ...</title>
	<published>2009-11-13T06:52:06Z</published>
	<updated>2009-11-13T06:52:06Z</updated>
	<author>
		<name>Nathan Moore-5</name>
	</author>
	<content type="html">&amp;gt;
&lt;br&gt;&amp;gt; main() {
&lt;br&gt;&amp;gt; &amp;nbsp; fprintf( fp, &amp;quot;Hello World&amp;quot; );
&lt;br&gt;&amp;gt; &amp;nbsp; while( true );
&lt;br&gt;&amp;gt; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This could yield before the while loop based on what the file described by
&lt;br&gt;fp did with _write, which is called indirectly by fprintf.
&lt;br&gt;_write could call NutEventWait which calls NutThreadYield.
&lt;br&gt;&lt;br&gt;Once you got into the while loop there wouldn't be any more context
&lt;br&gt;switching, so no other threads could run.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Nathan
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Maybe-obvious-...-tp26323864p26337767.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26337501</id>
	<title>Re: Nut OS reliable on AT91SAM7X Evaluation Board?</title>
	<published>2009-11-13T06:35:23Z</published>
	<updated>2009-11-13T06:35:23Z</updated>
	<author>
		<name>Marcus Jansson</name>
	</author>
	<content type="html">Oh, I should think before posting! And sorry for not getting the mails into threads.
&lt;br&gt;&lt;br&gt;What I should have said in the previous post from me was:
&lt;br&gt;&amp;quot;For AT91SAM7X256 I have ADC PDC implemented, and PWMC too. But I have not done PDC implementations of the other PDC 
&lt;br&gt;channels. My code is not yet in the Nut/OS.&amp;quot;
&lt;br&gt;&lt;br&gt;I hope I didnt give anyone false hopes.
&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;gt;&amp;gt; Wiegelmann wrote:
&lt;br&gt;&amp;nbsp;&amp;gt;&amp;gt;&amp;gt; I'm looking for hardwareplattform with a little bit more performance than Ethernut 1-2 but cheaper than 3 or EIR. 
&lt;br&gt;The At91Sam7x with the integrated network controller seems to ideal for me. Does anyone has experience with the 
&lt;br&gt;At91Sam7x- Eval Board and NutOs running? I think that a design with this processor could be a good and cheap replacement 
&lt;br&gt;for Ethernut1.3 or 2. What do you think?
&lt;br&gt;&amp;nbsp;&amp;gt;&amp;gt;
&lt;br&gt;&amp;nbsp;&amp;gt;&amp;gt; The bad thing is, that Nut/OS doesn't make use of all the goodies
&lt;br&gt;&amp;nbsp;&amp;gt;&amp;gt; offered by this chip [sam7x]. For example, PDC (DMA) is almost not implemented
&lt;br&gt;&amp;nbsp;&amp;gt;&amp;gt; in the drivers.
&lt;br&gt;&amp;nbsp;&amp;gt;
&lt;br&gt;&amp;nbsp;&amp;gt;I have implemented PDC (DMA) and also the PWMC unit for the AT91SAM7X256 Olimex board in Nut/OS.
&lt;br&gt;&amp;nbsp;&amp;gt;I think Ulrich Prinz is reviewing the code right now ;)
&lt;br&gt;&amp;nbsp;&amp;gt;Hopefully the code can make it into Nut/OS.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Marcus
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nut-OS-reliable-on-AT91SAM7X-Evaluation-Board--tp26332340p26337501.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26337203</id>
	<title>Re: Ethernut 3 Ethernet not working</title>
	<published>2009-11-13T06:13:31Z</published>
	<updated>2009-11-13T06:13:31Z</updated>
	<author>
		<name>Ethernut</name>
	</author>
	<content type="html">Hi Martin,
&lt;br&gt;&lt;br&gt;ml wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; There are only 2 (Description from harald was 4 in the 4.40 version of nut,
&lt;br&gt;&amp;gt; but 2 are set) . 
&lt;br&gt;&amp;gt; It must be 3 or more because the timing with 2 is so critical that
&lt;br&gt;&amp;gt; tolerances of the chips and 
&lt;br&gt;&amp;gt; oszillator may add so bad that the write command to the nic failed.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; After changing this my boards works reliable.
&lt;br&gt;&lt;br&gt;&lt;br&gt;I feel guilty:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://ethernut.svn.sourceforge.net/viewvc/ethernut/trunk/nut/arch/arm/init/crtat91_rom.S&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://ethernut.svn.sourceforge.net/viewvc/ethernut/trunk/nut/arch/arm/init/crtat91_rom.S&lt;/a&gt;&lt;br&gt;&lt;br&gt;My assumption is, that I wanted to unify the wait states used in
&lt;br&gt;different setups (crt.S, bootloader). Obviously I did this in a very
&lt;br&gt;casual way, without too much testing or verifying the timings in the
&lt;br&gt;datasheet. I'm most sorry that you and probably others wasted their time
&lt;br&gt;to locate the troublemaker.
&lt;br&gt;&lt;br&gt;Many thanks for reporting this.
&lt;br&gt;&lt;br&gt;Harald
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Ethernut-3-Ethernet-not-working-tp26336244p26337203.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26336631</id>
	<title>Re: TCP connection to fixe IP</title>
	<published>2009-11-13T05:32:16Z</published>
	<updated>2009-11-13T05:32:16Z</updated>
	<author>
		<name>Thiago A. Corrêa</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;On Thu, Nov 12, 2009 at 6:24 PM, Ulrich Prinz &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26336631&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;uprinz2@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; I cannot really believe that exchanging ip-packets through the internet
&lt;br&gt;&amp;gt; doesn't work with Nut/OS, as I use the Elektor Internet Radio. It gets
&lt;br&gt;&amp;gt; its playlists via http-request and receives the selected streams without
&lt;br&gt;&amp;gt; any problems.
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;My company produces Ethernut 1 based boards and one of those was
&lt;br&gt;accessible thru the internet as a server and working ok. Harald and
&lt;br&gt;some others also have done the same with ARM, so I think there is
&lt;br&gt;clearly a problem with either the code or the network configuration.
&lt;br&gt;&lt;br&gt;A better test than ping is to telnet to your port 5001 from the board
&lt;br&gt;network to your remote network. If a connection isn't established,
&lt;br&gt;then there is some network config issue, most likely a NAT forward
&lt;br&gt;rule missing on the remote end. While pinging is valid, if there is a
&lt;br&gt;NAT forward rule to access this specific port, a telnet will also
&lt;br&gt;certify that a connection to that port specific, using the TCP
&lt;br&gt;protocol is possible.
&lt;br&gt;&lt;br&gt;I noticed that you have enabled Nut Discovery, what does the nutdisc
&lt;br&gt;tool gives you as your board's setup address? Does the gateway IP is
&lt;br&gt;correct? And mask? According to your earlier emails, the only way your
&lt;br&gt;board at 192.168.1.x would be able to access your gateway at
&lt;br&gt;192.168.0.254 were if it was using an 255.255.0.0 mask. Also, notice
&lt;br&gt;that your gateway must use the same mask or it won't talk back to the
&lt;br&gt;board ;)
&lt;br&gt;&lt;br&gt;Kind Regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp; Thiago A. Correa
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/TCP-connection-to-fixe-IP-tp25737294p26336631.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26336431</id>
	<title>Re: Maybe obvious ...</title>
	<published>2009-11-13T05:17:27Z</published>
	<updated>2009-11-13T05:17:27Z</updated>
	<author>
		<name>Thiago A. Corrêa</name>
	</author>
	<content type="html">On Thu, Nov 12, 2009 at 5:20 PM, Nathan Moore &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26336431&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nategoose@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Other threads that might be running though you didn't call NutThreadCreate
&lt;br&gt;&amp;gt; directly are the receive threads
&lt;br&gt;&amp;gt; for any network devices you have, the TCP state machine thread, the PPP
&lt;br&gt;&amp;gt; state machine thread, and the
&lt;br&gt;&amp;gt; DHCP thread.  There could be more, and it's likely that not all of these are
&lt;br&gt;&amp;gt; running on your &amp;quot;hello world&amp;quot;
&lt;br&gt;&amp;gt; set up.  These threads are created by the functions you would call to set up
&lt;br&gt;&amp;gt; the network interfaces.
&lt;br&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;Also, it's good to remind that Nut/OS uses cooperative threads,
&lt;br&gt;meaning one thread must relinquish it's hold on the CPU before the
&lt;br&gt;other runs. This happens when you call IO functions, NutSleep or
&lt;br&gt;NutThreadYield. So, if your hello world had something like this:
&lt;br&gt;&lt;br&gt;main() {
&lt;br&gt;&amp;nbsp; &amp;nbsp;fprintf( fp, &amp;quot;Hello World&amp;quot; );
&lt;br&gt;&amp;nbsp; &amp;nbsp;while( true );
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Then no context switching is ever happening, because of the inifinite
&lt;br&gt;loop in there. Unless of course, you had a NutThreadYield in the loop.
&lt;br&gt;&lt;br&gt;Kind Regards,
&lt;br&gt;&amp;nbsp; &amp;nbsp; Thiago A. Correa
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Maybe-obvious-...-tp26323864p26336431.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26336244</id>
	<title>Ethernut 3 Ethernet not working</title>
	<published>2009-11-13T05:03:32Z</published>
	<updated>2009-11-13T05:03:32Z</updated>
	<author>
		<name>ml</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;on some of my own build (Ethernut 3 based) cpu boards ethernet interface is not working when
&lt;br&gt;code is in rom. In ram it works good. &amp;nbsp;
&lt;br&gt;First i thought that it might be a hardware related problem because only 2 board´s of 100 show this
&lt;br&gt;error. But later on i tried to find out where it comes from. (Hard thing because it don´t be able to
&lt;br&gt;debug in rom mode) &amp;nbsp;After a bit modern debugging with my logicanalayzer i found out that the timing
&lt;br&gt;at the dm9000e nic is a bit critical. This depends on the waitstates defined &amp;nbsp;in crtat91_rom.s.
&lt;br&gt;There are only 2 (Description from harald was 4 in the 4.40 version of nut, but 2 are set) . 
&lt;br&gt;It must be 3 or more because the timing with 2 is so critical that tolerances of the chips and 
&lt;br&gt;oszillator may add so bad that the write command to the nic failed.
&lt;br&gt;&lt;br&gt;After changing this my boards works reliable.
&lt;br&gt;&lt;br&gt;In crtat91_boot.s i see that there are 4 waits defined so this will work even. 
&lt;br&gt;I see in the 4.9 version that harald has changed the crtat91_rom.s. But he changed the comment 
&lt;br&gt;to 2 waits not the the EBI define itself to 3 or 4 which will be better i think.
&lt;br&gt;&lt;br&gt;may be this helps someone else.
&lt;br&gt;&lt;br&gt;martin
&lt;br&gt;who learned a lot of the deeps of &amp;nbsp;ethernut and tcp while solving this strange problem :)</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Ethernut-3-Ethernet-not-working-tp26336244p26336244.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26335725</id>
	<title>Re: Nut OS reliable on AT91SAM7X Evaluation Board?</title>
	<published>2009-11-13T04:16:15Z</published>
	<updated>2009-11-13T04:16:15Z</updated>
	<author>
		<name>Marcus Jansson</name>
	</author>
	<content type="html">&amp;gt; Wiegelmann wrote:
&lt;br&gt;&amp;gt;&amp;gt; I'm looking for hardwareplattform with a little bit more performance than Ethernut 1-2 but cheaper than 3 or EIR. The At91Sam7x with the integrated network controller seems to ideal for me. Does anyone has experience with the &amp;nbsp;At91Sam7x- Eval Board and NutOs running? I think that a design with this processor could be a good and cheap replacement for Ethernut1.3 or 2. What do you think?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The bad thing is, that Nut/OS doesn't make use of all the goodies
&lt;br&gt;&amp;gt; offered by this chip [sam7x]. For example, PDC (DMA) is almost not implemented
&lt;br&gt;&amp;gt; in the drivers.
&lt;br&gt;&lt;br&gt;I have implemented PDC (DMA) and also the PWMC unit for the AT91SAM7X256 Olimex board in Nut/OS.
&lt;br&gt;I think Ulrich Prinz is reviewing the code right now ;)
&lt;br&gt;Hopefully the code can make it into Nut/OS.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Marcus
&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nut-OS-reliable-on-AT91SAM7X-Evaluation-Board--tp26332340p26335725.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26333334</id>
	<title>Re: Nut OS reliable on AT91SAM7X Evaluation Board?</title>
	<published>2009-11-13T01:00:59Z</published>
	<updated>2009-11-13T01:00:59Z</updated>
	<author>
		<name>Ethernut</name>
	</author>
	<content type="html">Hi Joerg,
&lt;br&gt;&lt;br&gt;Wiegelmann wrote:
&lt;br&gt;&amp;gt; I'm looking for hardwareplattform with a little bit more performance than Ethernut 1-2 but cheaper than 3 or EIR. The At91Sam7x with the integrated network controller seems to ideal for me. Does anyone has experience with the &amp;nbsp;At91Sam7x- Eval Board and NutOs running? I think that a design with this processor could be a good and cheap replacement for Ethernut1.3 or 2. What do you think?
&lt;br&gt;&lt;br&gt;egnite doesn't offer something in that range and as a good company guy I
&lt;br&gt;should convince you, that Ethernut 3 is the best choice. ;-)
&lt;br&gt;&lt;br&gt;Seriously, the SAM7X is a very good choice, if you are just looking for
&lt;br&gt;a bit more performance and memory space. Nut/OS is running very well on
&lt;br&gt;this platform and our company currently develops a network device based
&lt;br&gt;on this chip (no developer board). We regularly run tests on the
&lt;br&gt;AT91SAM7X-EK as well. I was told, that Nut/OS also works with the SAM7X
&lt;br&gt;board from Olimex.
&lt;br&gt;&lt;br&gt;The bad thing is, that Nut/OS doesn't make use of all the goodies
&lt;br&gt;offered by this chip. For example, PDC (DMA) is almost not implemented
&lt;br&gt;in the drivers.
&lt;br&gt;&lt;br&gt;If calculating your memory requirements, be aware, that Ethernet
&lt;br&gt;transmit and receive buffers are taken from internal RAM.
&lt;br&gt;&lt;br&gt;Harald
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;&lt;a href=&quot;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lists.egnite.de/mailman/listinfo/en-nut-discussion&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Nut-OS-reliable-on-AT91SAM7X-Evaluation-Board--tp26332340p26333334.html" />
</entry>

</feed>
