Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.lang.forth > #23090

Re: Charles Shattuck's myforth Arduino

From Charley Shattuck <cshattuck@surewest.net>
Subject Re: Charles Shattuck's myforth Arduino
Newsgroups comp.lang.forth
References <0a233239-220c-4b20-a9d4-24dba9d67ee3@googlegroups.com> <83ffe$51a7bc2f$42cd8ada$30575@EVERESTKC.NET> <b09b19b3-7811-4783-8d98-3aecdc478717@googlegroups.com>
Message-ID <9f86d$51a8d3f8$42cd8ada$14429@EVERESTKC.NET> (permalink)
Organization UseNetServer.com
Date 2013-05-31 16:46 +0000

Show all headers | View raw


On Fri, 31 May 2013 07:30:55 -0700, cumulant35 wrote:

>> Hi Lothar,
>> 
>> 
>> 
>> This is the first time anyone has shown the slightest bit of interest,
>> so
>> 
>> thanks!
>> 
>> 
>> 
>> Gforth is used only for compiling. Avrdude is used to download (if
>> you've
>> 
>> installed the Arduino software then avrdude should be there). A
>> terminal
>> 
>> program such as minicom is used to test interactively at 9600 N81. When
>> 
>> you say that gforth prompts "ok" after your typing "on" or "off" I
>> wonder
>> 
>> if you were using a terminal to talk to the Arduino.
>> 
>> 
>> 
>> I'd be happy to help (offline if you prefer) if you give me some more
>> 
>> information. I'd also be happy to discuss design choices and
>> applications.
>> 
>> 
>> 
>> Thanks again,
>> 
>> Charley.
> 
> Hi Charley,
> thanks for your reply, I would have never let me dream that the creator
> of myforth would answer. I've made some progress with myforth after
> compiling and downloading to the arduino target board, I started minicom
> 9600/8N/1 and after pressing enter I got that prompt: ?C�
> ( I think the character with the question mark in the diamond is a non
> printable ASCII char. )
> Now, switching the LED with on and off works as well.
> I've then studied a little the excellent myforth reference manual for
> the 8051 family controllers, written by Bob Nash. Am I right in the
> assumption that I have created a so called "Standalone target" and not a
> "Tethered target" application. Does myforth for Arduino support the
> tethered operation at all and how would this work together with gforth ?
> Apropos gforth, after I started the "t" script I got the following
> output:
> 
> HERE=3527 Host stack= <1> 1000 Forth for Arduino
> 
> Is "HERE" the occupied flash memory in the target ?
> When I type "order" I get:
> 
> order Forth Forth targ Root     Forth  ok
> 
> I think "targ" is the target vocabulary, but if I switch to "targ" and
> execute "words" there is no output but ok. Is it somehow possible to
> display only the words of the cross compiled application ( in this case
> the words from main.fs in the morsecode pgm. ) ?
> Uuh, I think I should stop to ask questions now, otherwise it will be
> too much and I'll steel your precious time.
>  
> thanks in advance and have a nice weekend Lothar

Hi Lothar,

Yes, this is a "standalone target". I was having trouble getting the 
serial port to work with gforth 0.7 when I did this and decided not to 
make a tethered target, at least not until the gforth serial problems 
were solved. Since I already had avrdude for downloading and minicom and 
the simple interpreter for testing I wasn't very motivated to solve the 
gforth serial problem. I'm sorry there isn't a manual for this like Bob 
Nash's for the 8051.

That's the target HERE, see the word "report" in compiler.fs for details. 
What's not clear to me right now is whether this is a byte address or a 
word address. I haven't been using this much until just recently. Also 
after typing "t" you can then type "target-words" to see what words have 
been compiled for the target. The target words are in a list of labels 
separate from the targ vocabulary and that list gets tacked on to the end 
of the target dictionary at the end of compilation. The word "words" is 
in the list appended to the target. Execute "words" from minicom and see 
what happens. Press space to continue and return to stop. If only I could 
get Bob to write a manual for this.

Another thing, the "Host stack= <1> 1000" indicates that something was 
wrong. Normally the host stack should be empty. That report is there so 
I'll notice when, for example, I forget to match an "if" with a "then" or 
forget to put # after a number.

Finally, the weird characters you mention come from a bug in the 
interpreter which I recently (I think) fixed. I want to do a few more 
things with it first, but will package up the new version and get it to 
you pretty soon, ok?

Thanks again for the interest,
Charley.

Back to comp.lang.forth | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Charles Shattuck's myforth Arduino cumulant35@gmail.com - 2013-05-30 02:39 -0700
  Re: Charles Shattuck's myforth Arduino Zbiggy <zbigniew2011REMOVE@gmail.REMOVE.com> - 2013-05-30 11:23 +0000
  Re: Charles Shattuck's myforth Arduino Charley Shattuck <cshattuck@surewest.net> - 2013-05-30 20:53 +0000
    Re: Charles Shattuck's myforth Arduino cumulant35@gmail.com - 2013-05-31 07:30 -0700
      Re: Charles Shattuck's myforth Arduino Charley Shattuck <cshattuck@surewest.net> - 2013-05-31 16:46 +0000
        Re: Charles Shattuck's myforth Arduino cumulant35@gmail.com - 2013-06-03 07:41 -0700

csiph-web