Mail Archives: geda-user/2012/09/03/03:54:54
--00248c7690468045da04c8c774a1
Content-Type: text/plain; charset=ISO-8859-1
Thanks for everyone posting answers. They were very helpfull.
After seeing these solutions I came to the conclusion that I roll my own
interpreter.
On Sun, Sep 2, 2012 at 8:16 PM, Hannu Vuolasaho <vuokko AT msn DOT com> wrote:
> > Date: Fri, 31 Aug 2012 19:52:59 -0500
> > From: john AT ecosensory DOT com
>
> >
> > On 08/31/2012 08:58 AM, Levente wrote:
> > > On the root node there is a RTOS (also my code), but on the sensors
> and 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, or editing from a keypad, etc. I could write code in
> > > native C of course, but I don't want to re-program the root-card each
> time I want to set new temperature, etc.
>
> Well, I didn't saw that AVR was specified.
> 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!
>
> 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, select and some other
> parts. ficl can't and I don't know how it even could be possible to change
> the running code, but ficl could write data to eeprom and with that change
> the 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
> project is next to impossible :(
>
> Best regards,
> Hannu Vuolasaho
>
--00248c7690468045da04c8c774a1
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Thanks for everyone posting answers. They were very helpfull.<br><br>After =
seeing these solutions I came to the conclusion that I roll my own interpre=
ter.<br><br><div class=3D"gmail_quote">On Sun, Sep 2, 2012 at 8:16 PM, Hann=
u Vuolasaho <span dir=3D"ltr"><<a href=3D"mailto:vuokko AT msn DOT com" target=
=3D"_blank">vuokko AT msn DOT com</a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
<div><div dir=3D"ltr">
> Date: Fri, 31 Aug 2012 19:52:59 -0500<br><div>> From: <a href=3D"ma=
ilto:john AT ecosensory DOT com" target=3D"_blank">john AT ecosensory DOT com</a><div cla=
ss=3D"im"><br>> <br>> On 08/31/2012 08:58 AM, Levente wrote:<br>> =
> On the root node there is a RTOS (also my code), but on the sensors an=
d actor nodes there's only a while(1) loop.<br>
> ><br>> > I don't know how to solve the programmability wi=
th your approach. Maybe I wasn't clear enough. I want to change the pro=
gram at run<br>> > time as well for example by writing an SMS to the =
integrated GSM modem, or editing from a keypad, etc. I could write code in<=
br>
> > native C of course, but I don't want to re-program the root-c=
ard each time I want to set new temperature, etc.<br><br></div>Well, I didn=
't saw that AVR was specified. <br>However if AVR is used its flash can=
be reprogrammed interactively from the other parts except boot-loader part=
.<br>
AmForth does this and writes data to flash with i! <br><br>Another problem =
is that Amforth can't be used with C programs. One solution might be us=
ing ficl. <a href=3D"http://ficl.sf.net" target=3D"_blank">ficl.sf.net</a><=
br>
<br>It would require some modification with printf, select and some other p=
arts. ficl can't and I don't know how it even could be possible to =
change the running code, but ficl could write data to eeprom and with that =
change the behaviour of the sytem. However under ficl you can call C functi=
ons. But porting ficl needs some work.<br>
<br>Most Forths are written with assembler and embedding them to existing p=
roject is next to impossible :(<br><br>Best regards,<br>Hannu Vuolasaho<br>=
</div> </div></div>
</blockquote></div><br>
--00248c7690468045da04c8c774a1--
- Raw text -