Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #47066 > unrolled thread

Just wondering if anyone has given pijFORTHos (forth on bare metal for Raspberry PI)?

Started bymurphy.darin@gmail.com
First post2016-05-12 17:49 -0700
Last post2016-05-14 09:44 +0000
Articles 14 — 8 participants

Back to article view | Back to comp.lang.forth


Contents

  Just wondering if anyone has given pijFORTHos (forth on bare metal for Raspberry PI)? murphy.darin@gmail.com - 2016-05-12 17:49 -0700
    Re: Just wondering if anyone has given pijFORTHos (forth on bare metal for Raspberry PI)? trevor <tgritchie@blueyonder.co.uk> - 2016-05-13 17:01 +0100
      Re: Just wondering if anyone has given pijFORTHos (forth on bare metal for Raspberry PI)? josv@planet.nl - 2016-05-14 00:15 -0700
    Re: Just wondering if anyone has given pijFORTHos (forth on bare metal for Raspberry PI)? Paul Rubin <no.email@nospam.invalid> - 2016-05-13 10:53 -0700
      Re: Just wondering if anyone has given pijFORTHos (forth on bare metal for Raspberry PI)? murphy.darin@gmail.com - 2016-05-13 14:09 -0700
        Re: Just wondering if anyone has given pijFORTHos (forth on bare metal for Raspberry PI)? Paul Rubin <no.email@nospam.invalid> - 2016-05-13 14:26 -0700
        Re: Just wondering if anyone has given pijFORTHos (forth on bare metal for Raspberry PI)? Coos Haak <chforth@hccnet.nl> - 2016-05-14 01:31 +0200
          Re: Just wondering if anyone has given pijFORTHos (forth on bare metal for Raspberry PI)? murphy.darin@gmail.com - 2016-05-13 18:01 -0700
            Re: Just wondering if anyone has given pijFORTHos (forth on bare metal for Raspberry PI)? Paul Rubin <no.email@nospam.invalid> - 2016-05-13 19:00 -0700
              Re: Just wondering if anyone has given pijFORTHos (forth on bare metal for Raspberry PI)? murphy.darin@gmail.com - 2016-05-13 19:10 -0700
            Re: Just wondering if anyone has given pijFORTHos (forth on bare metal for Raspberry PI)? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2016-05-14 07:33 +0000
              Re: Just wondering if anyone has given pijFORTHos (forth on bare metal for Raspberry PI)? Bernd Paysan <bernd.paysan@gmx.de> - 2016-05-14 20:53 +0000
            Re: Just wondering if anyone has given pijFORTHos (forth on bare metal for Raspberry PI)? Bernd Paysan <bernd.paysan@gmx.de> - 2016-05-14 20:51 +0000
        Re: Just wondering if anyone has given pijFORTHos (forth on bare metal for Raspberry PI)? Albert van der Horst <albert@cherry.spenarnc.xs4all.nl> - 2016-05-14 09:44 +0000

#47066 — Just wondering if anyone has given pijFORTHos (forth on bare metal for Raspberry PI)?

Frommurphy.darin@gmail.com
Date2016-05-12 17:49 -0700
SubjectJust wondering if anyone has given pijFORTHos (forth on bare metal for Raspberry PI)?
Message-ID<604b701e-81da-4c54-8a2a-68d8b9dbd302@googlegroups.com>
It's based on Jonesforth-Asm.  I'm currently using a Raspberry PI 3 as I pursue my B.S. of C.S. at UoPeople Online and don't want to take the risk of possibly damaging my PI if I try to use it. Here's the link:

https://github.com/organix/pijFORTHos

If any of you have tried it on Raspberry, please let me know. Take care now.

[toc] | [next] | [standalone]


#47089

Fromtrevor <tgritchie@blueyonder.co.uk>
Date2016-05-13 17:01 +0100
Message-ID<FTmZy.575893$UJ.452818@fx42.am4>
In reply to#47066
On 13/05/16 01:49, murphy.darin@gmail.com wrote:
> It's based on Jonesforth-Asm.  I'm currently using a Raspberry PI 3 as I pursue my B.S. of C.S. at UoPeople Online and don't want to take the risk of possibly damaging my PI if I try to use it. Here's the link:
>
> https://github.com/organix/pijFORTHos
>
> If any of you have tried it on Raspberry, please let me know. Take care now.
>
Hello - I looked at this repository about a year ago but I didn't get as
far running it on my Raspberry Pi for a number of reasons. First, even
back then, the code seemed to be very much "work-in-progress" rather 
than a complete out-of-the-box bare metal Forth. Second a quick glance 
at it now reveals that the last commit was 16 June 2015 so there doesn't 
seem to have been much further progress on it since I looked at it. I 
think for a newbie you'd be better off sticking to gforth under linux.

The trouble with the Raspberry Pi for bare metal is the i/o devices 
(keyboard, mouse etc) are almost exclusively USB-based and while this is 
wonderful if you have OS support, its "universality" conflicts somewhat 
with Forth's underlying "keep it simple" mentality. In my studies I have 
been looking at different ways of getting round this problem but have 
not yet reached any satisfactory conclusions.

That said there a number of quite interesting projects in the RPi bare 
metal forum that attempt to provide the relevant i/o device support 
without recourse to Linux.

[toc] | [prev] | [next] | [standalone]


#47114

Fromjosv@planet.nl
Date2016-05-14 00:15 -0700
Message-ID<bdd9d917-b6ac-4fd8-8291-5326739508b8@googlegroups.com>
In reply to#47089
Hi,

On my rPi B+ nothing is connected to the USB Ports. It's monitor is mostly off and it has no mouse.
To edit files I use the IDE of Win32Forth in Unix mode on a PC that uses an Ethernet connection to the rPi. The debugger is indeed a problem. CR .S ABORT does the trick in case of a problem.

Gforth is able to run automatically an application on the Rpi. 
Then it provides a server with a Html-Gui for my tablet or phone.

Jos

May 13th, 2016  18:01:44 UTC+2 trevor wrote:
> On 13/05/16 01:49, mur...@gmail.com wrote:
> > It's based on Jonesforth-Asm.  I'm currently using a Raspberry PI 3 as I pursue my B.S. of C.S. at UoPeople Online and don't want to take the risk of possibly damaging my PI if I try to use it. Here's the link:
> >
> > https://github.com/organix/pijFORTHos
> >
> > If any of you have tried it on Raspberry, please let me know. Take care now.
> >
> Hello - I looked at this repository about a year ago but I didn't get as
> far running it on my Raspberry Pi for a number of reasons. First, even
> back then, the code seemed to be very much "work-in-progress" rather 
> than a complete out-of-the-box bare metal Forth. Second a quick glance 
> at it now reveals that the last commit was 16 June 2015 so there doesn't 
> seem to have been much further progress on it since I looked at it. I 
> think for a newbie you'd be better off sticking to gforth under linux.
> 
> The trouble with the Raspberry Pi for bare metal is the i/o devices 
> (keyboard, mouse etc) are almost exclusively USB-based and while this is 
> wonderful if you have OS support, its "universality" conflicts somewhat 
> with Forth's underlying "keep it simple" mentality. In my studies I have 
> been looking at different ways of getting round this problem but have 
> not yet reached any satisfactory conclusions.
> 
> That said there a number of quite interesting projects in the RPi bare 
> metal forum that attempt to provide the relevant i/o device support 
> without recourse to Linux.

[toc] | [prev] | [next] | [standalone]


#47090

FromPaul Rubin <no.email@nospam.invalid>
Date2016-05-13 10:53 -0700
Message-ID<87futl4zge.fsf@jester.gateway.pace.com>
In reply to#47066
murphy.darin@gmail.com writes:
> It's based on Jonesforth-Asm.  I'm currently using a Raspberry PI 3 as
> I pursue my B.S. of C.S. at UoPeople Online and don't want to take the
> risk of possibly damaging my PI if I try to use it. ...

I wouldn't worry too much about damaging your pi, but the low level
coding and debugging involved in dealing with bare metal is quite
tedious even if you're already a fluent programmer.  From a learning
perspective I think it's better to start under an OS.  And if you do
want to program bare metal, it's better to start out with something like
an Arduino or the original MSP430G2553 Launchpad.  A Raspberry Pi is
monstrously complicated by comparison.

Before trying to walk across a carpet, it might seem logical to develop
one's balancing skills by starting out on a tightrope, but in practice
most people find it easier to master the carpet before approaching the
tightrope ;-).

[toc] | [prev] | [next] | [standalone]


#47096

Frommurphy.darin@gmail.com
Date2016-05-13 14:09 -0700
Message-ID<1487c916-5e2a-42d1-9c24-87467d006658@googlegroups.com>
In reply to#47090
LOL Now that's a very good analogy. I think your right. The problem I have with gforth is it very unstable on my android. Even it's debugger (gforth ITC) crashes way, way too much. It's very hard to tell if I did something wrong or it did. That's one of the reasons I wanted a SBC that I could hook up with my raspberry pi that only ran a good and stable forth, that way it would be easier for me to understand what the computer was doing was what I was telling it to do and not all of the layers of complexity between it and I. Heck if it just had an assemblier and open and complete documentation then I could put something like forth-79 or 83 on it eventually, so that the complexity of software layers would be down to 2 instead of 8 or a dozens which seems to be the current level.

[toc] | [prev] | [next] | [standalone]


#47097

FromPaul Rubin <no.email@nospam.invalid>
Date2016-05-13 14:26 -0700
Message-ID<87vb2h3b03.fsf@jester.gateway.pace.com>
In reply to#47096
murphy.darin@gmail.com writes:
> The problem I have with gforth is it very unstable on my android.

No idea about android but it should work fine on your rpi.  I'd
suggest running it on the rpi and connecting to it.

> That's one of the reasons I wanted a SBC that I could hook up with my
> raspberry pi that only ran a good and stable forth,

If you really want this, try amforth on an arduino or one of the several
msp430 forths on a launchpad.  That will be far easier to understand
than anything running bare metal on a pi.

> Heck if it just had an assemblier and open and complete documentation
> then I could put something like forth-79 or 83 on it eventually, so
> that the complexity of software layers would be down to 2 

You should probably look at eforth then, the most understandable Forth I
know of.  I never understood the attraction of Jonesforth except as a
way of starting in the comfort zone of assembly language programmers.
There aren't that many assembly language programmers out there these
days, who don't also use HLL's and know how implement them.

> instead of 8 or a dozens which seems to be the current level.

I wouldn't worry about this.  Linux and gforth do a good job of
abstracting away the lowest level stuff so you don't have to think about
it.  You get a Forth that works and that you can treat as a VM.  There's
a separate body of knowledge, of implementation techniques to run Forth
on typical register-style computers.  That topic is interesting in its
own right, but I wouldn't worry about it right away.  It won't make that
much sense to you until you're more comfortable with programming in
general.  

The Moving Forth series at http://www.bradrodriguez.com/papers/ is a
good place to learn about Forth implementation.  There's nothing special
about Forth 79 or 83.

[toc] | [prev] | [next] | [standalone]


#47100

FromCoos Haak <chforth@hccnet.nl>
Date2016-05-14 01:31 +0200
Message-ID<o9o8o2w2g5i9.18nro1a5c4eua$.dlg@40tude.net>
In reply to#47096
Op Fri, 13 May 2016 14:09:07 -0700 (PDT) schreef murphy.darin@gmail.com:

> LOL Now that's a very good analogy. I think your right. The problem 
> I have with gforth is it very unstable on my android.

What version do you have? I installed Gforth from the play store
on my cellphone and my tablet. It updates itself and at the moment
I have version 0.7.9_20160427. I never have crashes.
( Maybe because I use Forth since 1981 ;-)

> Even it's 
> debugger (gforth ITC) crashes way, way too much.

Never heard of or used a gforth debugger.

BTW, it's _its_ debugger.

groet Coos

[toc] | [prev] | [next] | [standalone]


#47101

Frommurphy.darin@gmail.com
Date2016-05-13 18:01 -0700
Message-ID<1d8cae03-c1b7-4910-a51a-ce18803c33e6@googlegroups.com>
In reply to#47100
Paul, thank you so much for all of this useful information. I'll have to look into audrino implementations.  Coos, I am running the same version of gforce. Also my tablet is a Google Pixel C, which is running the newest update of Marshmallow. gforth as a debug forth called gforth ITC. It has a step by step execution using dbg like this: 15 dbg fizzbuzz. I've already spoken with the developer and he reports that there are some bugs, especially in the gforce ITC.

[toc] | [prev] | [next] | [standalone]


#47102

FromPaul Rubin <no.email@nospam.invalid>
Date2016-05-13 19:00 -0700
Message-ID<87mvnt2ybq.fsf@jester.gateway.pace.com>
In reply to#47101
murphy.darin@gmail.com writes:
> Also my tablet is a Google Pixel C, which is running the newest update
> of Marshmallow.... there are some bugs, especially in the gforce ITC.

Really if you're trying to be a programmer you should use similar
computers to what programmers use.  Android is a media consumption
system and the latest version of it is simply more of the same.  You
want a development system and not a consumption system.  My suggestion
is sell that Pixel on Craigslist and use the money to buy a crappy old
laptop and install Debian on it.  Or if you must use the Pixel, just use
it as a terminal into your Rpi and do your development on the rpi.

[toc] | [prev] | [next] | [standalone]


#47103

Frommurphy.darin@gmail.com
Date2016-05-13 19:10 -0700
Message-ID<b75acb93-966d-4e99-a301-15310284a280@googlegroups.com>
In reply to#47102
Thanks Paul for that advice. I'll probably remote in. I hate to give up my Pixel because there is a lot I can do with it, but you are right that it's not really very useful for developement. Take care now.

[toc] | [prev] | [next] | [standalone]


#47116

Fromanton@mips.complang.tuwien.ac.at (Anton Ertl)
Date2016-05-14 07:33 +0000
Message-ID<2016May14.093324@mips.complang.tuwien.ac.at>
In reply to#47101
murphy.darin@gmail.com writes:
>gforth as a debug forth called gforth ITC. It has a step =
>by step execution using dbg like this: 15 dbg fizzbuzz.

The single-stepper works only with gforth-itc, yes.  It can be useful
for novices to understand execution, but I don't find it useful for
debugging, and use more effective debugging techniques (in particular,
inserting ~~ tracers).  And so does Bernd Paysan.  As a result, we
don't use the single-stepper or gforth-itc much, and if it breaks,
please make a useful bug report: What did you do, what did you expect,
and what did actually happen.

- anton
-- 
M. Anton Ertl  http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
     New standard: http://www.forth200x.org/forth200x.html
   EuroForth 2016: http://www.euroforth.org/ef16/

[toc] | [prev] | [next] | [standalone]


#47124

FromBernd Paysan <bernd.paysan@gmx.de>
Date2016-05-14 20:53 +0000
Message-ID<nh838u$stm$2@dont-email.me>
In reply to#47116
Am Sat, 14 May 2016 07:33:24 +0000 schrieb Anton Ertl:

> What did you do, what did you expect,
> and what did actually happen.

I already got a useful bug report. He ran into a stack empty crash, and 
the debugger hung next time when debugging the same word.

That was because the debugger didn't remove the breakpoint.  Actually, 
nobody seemed to have debugged a crashing program so far ;-).

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
net2o ID: kQusJzA;7*?t=uy@X}1GWr!+0qqp_Cn176t4(dQ*
http://bernd-paysan.de/

[toc] | [prev] | [next] | [standalone]


#47123

FromBernd Paysan <bernd.paysan@gmx.de>
Date2016-05-14 20:51 +0000
Message-ID<nh8358$stm$1@dont-email.me>
In reply to#47101
Am Fri, 13 May 2016 18:01:37 -0700 schrieb murphy.darin:

> Paul, thank you so much for all of this useful information. I'll have to
> look into audrino implementations.  Coos, I am running the same version
> of gforce. Also my tablet is a Google Pixel C, which is running the
> newest update of Marshmallow. gforth as a debug forth called gforth ITC.
> It has a step by step execution using dbg like this: 15 dbg fizzbuzz.
> I've already spoken with the developer and he reports that there are
> some bugs, especially in the gforce ITC.

The debugger only works in the ITC system. As very few people seem to use 
it, it had a bug when it ran into a crash.  That has been fixed, if you 
auto-update Gforth, you should either already have or soon get a version 
of the debugger that doesn't crash.

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
net2o ID: kQusJzA;7*?t=uy@X}1GWr!+0qqp_Cn176t4(dQ*
http://bernd-paysan.de/

[toc] | [prev] | [next] | [standalone]


#47118

FromAlbert van der Horst <albert@cherry.spenarnc.xs4all.nl>
Date2016-05-14 09:44 +0000
Message-ID<slrnnje0dn.kuo.albert@cherry.spenarnc.xs4all.nl>
In reply to#47096
On 2016-05-13, murphy.darin@gmail.com <murphy.darin@gmail.com> wrote:
> LOL Now that's a very good analogy. I think your right. The problem
> have with gforth is it very unstable on my android. Even it's
> debugger (gforth ITC) crashes way, way too much. It's very hard to
> tell if I did something wrong or it did. That's one of the reasons I
> wanted a SBC that I could hook up with my raspberry pi that only ran a
> good and stable forth, that way it would be easier for me to
> understand what the computer was doing was what I was telling it to do
> and not all of the layers of complexity between it and I. Heck if it
> just had an assemblier and open and complete documentation then I
> could put something like forth-79 or 83 on it eventually, so that the
> complexity of software layers would be down to 2 instead of 8 or a
> dozens which seems to be the current level.

The ciforth for the ARM at last has passed all tests, including the
generation of turnkey programs. The pdf for ARM ciforth remains to
be done, but i86 pdf is largely applicable.
It misses interfaces to c-libraries.
Send me an e-mail if you want to have a beta.

This comes in FIG-Forth style with a single assembler source.
If you'll find a defect you're likely to fix it without too much
trouble.
[Then there is the meta system, based on m4. I advice that if you want
to change from ITC to DTC. ]

Groetjes Albert

--
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- being exponential -- ultimately falters.
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.forth


csiph-web