X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com Message-ID: Content-Type: multipart/alternative; boundary="_9d5ec2fb-5940-4807-b08d-869053a82b8d_" X-Originating-IP: [85.131.65.206] From: Hannu Vuolasaho To: Subject: RE: [geda-user] OT scripting inside an MCU Date: Sun, 2 Sep 2012 21:16:28 +0300 Importance: Normal In-Reply-To: <50415C6B.7020402@ecosensory.com> References: <5040BF06 DOT 9040601 AT ecosensory DOT com> ,<50415C6B DOT 7020402 AT ecosensory DOT com> MIME-Version: 1.0 X-OriginalArrivalTime: 02 Sep 2012 18:16:28.0627 (UTC) FILETIME=[12441230:01CD8937] Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk --_9d5ec2fb-5940-4807-b08d-869053a82b8d_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > Date: Fri=2C 31 Aug 2012 19:52:59 -0500 > From: john AT ecosensory DOT com >=20 > On 08/31/2012 08:58 AM=2C Levente wrote: > > On the root node there is a RTOS (also my code)=2C but on the sensors a= nd actor nodes there's only a while(1) loop. > > > > I don't know how to solve the programmability with your approach. Maybe= I wasn't clear enough. I want to change the program at run > > time as well for example by writing an SMS to the integrated GSM modem= =2C or editing from a keypad=2C etc. I could write code in > > native C of course=2C but I don't want to re-program the root-card each= time I want to set new temperature=2C etc. Well=2C I didn't saw that AVR was specified.=20 However if AVR is used its flash can be reprogrammed interactively from the= other parts except boot-loader part. AmForth does this and writes data to flash with i!=20 Another problem is that Amforth can't be used with C programs. One solution= might be using ficl. ficl.sf.net It would require some modification with printf=2C select and some other par= ts. ficl can't and I don't know how it even could be possible to change the= running code=2C but ficl could write data to eeprom and with that change t= he behaviour of the sytem. However under ficl you can call C functions. But= porting ficl needs some work. Most Forths are written with assembler and embedding them to existing proje= ct is next to impossible :( Best regards=2C Hannu Vuolasaho = --_9d5ec2fb-5940-4807-b08d-869053a82b8d_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
>=3B Date: Fri=2C 31 Aug 2012 19:52:59 -0500
>=3B From: john AT ec= osensory.com
>=3B
>=3B On 08/31/2012 08:58 AM=2C Levente wrote:<= br>>=3B >=3B On the root node there is a RTOS (also my code)=2C but on = the sensors and actor nodes there's only a while(1) loop.
>=3B >=3B<= br>>=3B >=3B I don't know how to solve the programmability with your ap= proach. Maybe I wasn't clear enough. I want to change the program at run>=3B >=3B time as well for example by writing an SMS to the integrated= GSM modem=2C or editing from a keypad=2C etc. I could write code in
>= =3B >=3B native C of course=2C but I don't want to re-program the root-ca= rd each time I want to set new temperature=2C etc.

Well=2C I didn't = saw that AVR was specified.
However if AVR is used its flash can be rep= rogrammed interactively from the other parts except boot-loader part.
Am= Forth does this and writes data to flash with i!

Another problem is= that Amforth can't be used with C programs. One solution might be using fi= cl. ficl.sf.net

It would require some modification with printf=2C se= lect and some other parts. ficl can't and I don't know how it even could be= possible to change the running code=2C but ficl could write data to eeprom= and with that change the behaviour of the sytem. However under ficl you ca= n call C functions. But porting ficl needs some work.

Most Forths ar= e written with assembler and embedding them to existing project is next to = impossible :(

Best regards=2C
Hannu Vuolasaho
=
= --_9d5ec2fb-5940-4807-b08d-869053a82b8d_--