Unfortunately it looks like there is no Mecrisp for Arduino or the AVR CPUs. I did find FlashForth.
If I am looking for minimal start up time, would FlashForth be recommended?
The others I've seen seem rather non-standard and even odd. I don't have time to figure out new stuff. I have a very simple project I need to get running.
On 28/03/2023 9:36 am, Lorem Ipsum wrote:
Unfortunately it looks like there is no Mecrisp for Arduino or the AVR CPUs. I did find FlashForth.
If I am looking for minimal start up time, would FlashForth be recommended?
The others I've seen seem rather non-standard and even odd. I don't have time to figure out new stuff. I have a very simple project I need to get running.FlashForth isn't bad. The Mega will give you approx 43K of free flash to play
with compared to 23K for the UNO. Should be easy to pick up as @ ! etc works on flash, ram. Biggest culture shock I found was FOR NEXT as opposed to DO LOOP.
Also FlashForth won't let you re-use the same name, requiring one to erase before
re-loading (e.g. using a MARKER word). I've been working on a fork that's a bit
more normal in that respect.
On Monday, March 27, 2023 at 7:37:07 PM UTC-4, dxforth wrote:suppose. Doesn't really matter. It was just a thought.
On 28/03/2023 9:36 am, Lorem Ipsum wrote:
Unfortunately it looks like there is no Mecrisp for Arduino or the AVR CPUs. I did find FlashForth.FlashForth isn't bad. The Mega will give you approx 43K of free flash to play
If I am looking for minimal start up time, would FlashForth be recommended? >>>
The others I've seen seem rather non-standard and even odd. I don't have time to figure out new stuff. I have a very simple project I need to get running.
with compared to 23K for the UNO. Should be easy to pick up as @ ! etc works >> on flash, ram. Biggest culture shock I found was FOR NEXT as opposed to DO LOOP.
Also FlashForth won't let you re-use the same name, requiring one to erase before
re-loading (e.g. using a MARKER word). I've been working on a fork that's a bit
more normal in that respect.
Oh, that sucks, the reuse thing. I was looking at parsing the input with the Forth interpreter. That would require using # as a new word. Any code using # inside <# #> could be early in the program, and # defined later. But that won't work I
I suppose I could get used to FOR NEXT, but I can't think why that would require no DO LOOP. Let the user decide which to use. I don't recall what the differences are. DO uses a start parameter and a limit. I don't recall what FOR NEXT does. Isthe conditional at opposite ends of the loop in the two constructs?
I don't recall what MPE costs. But maybe I should bite the bullet. It's such a tiny job. I guess I could use whatever the Arduino is usually programmed in.Forth Inc has SwiftX for AVR. I didn't think MPE made one (?)
Unfortunately it looks like there is no Mecrisp for Arduino or the AVR
CPUs. I did find FlashForth.
Lorem Ipsum <gnuarm.del...@gmail.com> writes:
Unfortunately it looks like there is no Mecrisp for Arduino or the AVR CPUs. I did find FlashForth.There is also amForth, but if this is for the RS232 converter, at this
point I wouldn't use an Arduino. It is obsolete imho, and the Mega is
stupid expensive. You'll have already gotten an email from me about
what I'd use instead.
On 28/03/2023 12:21 pm, Lorem Ipsum wrote:Doesn't really matter. It was just a thought.
On Monday, March 27, 2023 at 7:37:07 PM UTC-4, dxforth wrote:
On 28/03/2023 9:36 am, Lorem Ipsum wrote:
Unfortunately it looks like there is no Mecrisp for Arduino or the AVR CPUs. I did find FlashForth.FlashForth isn't bad. The Mega will give you approx 43K of free flash to play
If I am looking for minimal start up time, would FlashForth be recommended?
The others I've seen seem rather non-standard and even odd. I don't have time to figure out new stuff. I have a very simple project I need to get running.
with compared to 23K for the UNO. Should be easy to pick up as @ ! etc works
on flash, ram. Biggest culture shock I found was FOR NEXT as opposed to DO LOOP.
Also FlashForth won't let you re-use the same name, requiring one to erase before
re-loading (e.g. using a MARKER word). I've been working on a fork that's a bit
more normal in that respect.
Oh, that sucks, the reuse thing. I was looking at parsing the input with the Forth interpreter. That would require using # as a new word. Any code using # inside <# #> could be early in the program, and # defined later. But that won't work I suppose.
FWIW here's a link to my fork (called UnoForth to avoid confusion):conditional at opposite ends of the loop in the two constructs?
https://drive.google.com/drive/folders/1kh2WcPUc3hQpLcz7TQ-YQiowrozvxfGw
List of changes from FlashForth is given at the beginning of the source file.
Includes hex files for UNO, Mega, Leonardo.
I suppose I could get used to FOR NEXT, but I can't think why that would require no DO LOOP. Let the user decide which to use. I don't recall what the differences are. DO uses a start parameter and a limit. I don't recall what FOR NEXT does. Is the
IIRC DO LOOP exists as a loadable extension. FOR NEXT in FlashForth uses a count. Assuming
10 then R@ in the loop goes from 9 to 0. If count is zero, the loop is not entered. It's
the equivalent of eForth's:
... FOR AFT ... THEN NEXT ...
i.e. the AFT THEN is built-in. Conditional is at NEXT and AFT is an unconditional branch
that's run just once.
I don't recall what MPE costs. But maybe I should bite the bullet. It's such a tiny job. I guess I could use whatever the Arduino is usually programmed in.Forth Inc has SwiftX for AVR. I didn't think MPE made one (?)
What do you call "stupid"? I have no idea why you would think the
Arduino is "obsolete". I'll look at your email.
Lorem Ipsum <gnuarm.del...@gmail.com> writes:
What do you call "stupid"? I have no idea why you would think the"Stupid expensive" = idiom for something way more expensive than needed
Arduino is "obsolete". I'll look at your email.
for this purpose.
The Arduino Mega's main feature is a huge number of
i/o pins. I guess there are some control applications for which it
isn't obsolete, but for this type of communications app it's a poor fit nowadays.
The email suggested using a Raspberry Pi Pico with a
Waveshare RS232 board. I have one of the boards on order and have an
email question pending with the manufacturer, so I'll send you an update when something happens. The board should arrive around the end of the
week.
...
The email suggested using a Raspberry Pi Pico with a
Waveshare RS232 board.
...
The email suggested using a Raspberry Pi Pico with a
Waveshare RS232 board.
I never considered Pico but googling I found a video of it being used
with Forth. I gather the chip has 264K ram and 2MB flash which sounds >plenty. OTOH it doesn't have the add-on boards Arduino is famous for?
Also not sure how the on-chip peripherals compare with AVR. Can you
give a summary?
Locally Pico boards sell for $AU15 inc. post which is dirt cheap.
I assume these are legit - unlike Arduino clones with counterfeit
ATmega328P ? How hot does the Pico run? I notice some sellers include
a heatsink!
In article <u00ah8$3kei$1...@dont-email.me>, dxforth <dxf...@gmail.com> wrote:
On 28/03/2023 7:43 pm, Paul Rubin wrote:
...
The email suggested using a Raspberry Pi Pico with a
Waveshare RS232 board.
I never considered Pico but googling I found a video of it being used
with Forth. I gather the chip has 264K ram and 2MB flash which sounds >plenty. OTOH it doesn't have the add-on boards Arduino is famous for?
Also not sure how the on-chip peripherals compare with AVR. Can you
give a summary?
Locally Pico boards sell for $AU15 inc. post which is dirt cheap.
I assume these are legit - unlike Arduino clones with counterfeit >ATmega328P ? How hot does the Pico run? I notice some sellers include
a heatsink!
A new development is noforth for the pico boards, to
be pubished shortly.
The 10 i/o processors is a bonus. For example I could reserve
one of those processors to generate a midi signal at the exact
specs, with buffering and no need for interrupts.
https://home.hccnet.nl/anij/nof/noforth.html
This is mature, with dozens of tested projects (click on
'Egel project') This goes back to the 8051.
In article <u00ah8$3kei$1@dont-email.me>, dxforth <dxforth@gmail.com> wrote:
On 28/03/2023 7:43 pm, Paul Rubin wrote:
...
The email suggested using a Raspberry Pi Pico with a
Waveshare RS232 board.
I never considered Pico but googling I found a video of it being used
with Forth. I gather the chip has 264K ram and 2MB flash which sounds
plenty. OTOH it doesn't have the add-on boards Arduino is famous for?
Also not sure how the on-chip peripherals compare with AVR. Can you
give a summary?
Locally Pico boards sell for $AU15 inc. post which is dirt cheap.
I assume these are legit - unlike Arduino clones with counterfeit
ATmega328P ? How hot does the Pico run? I notice some sellers include
a heatsink!
A new development is noforth for the pico boards, to
be pubished shortly.
The 10 i/o processors is a bonus. For example I could reserve
one of those processors to generate a midi signal at the exact
specs, with buffering and no need for interrupts.
https://home.hccnet.nl/anij/nof/noforth.html
This is mature, with dozens of tested projects (click on
'Egel project') This goes back to the 8051.
Yes, I know what it means. Your comment still requires explanation.
I didn't realize the Pico used the oddball ARM chip, without the usual
rPi Linux. That might work ok.
Please don't assume I am not discussing this with others.
Also not sure how the on-chip peripherals compare with AVR. Can you
give a summary?
Locally Pico boards sell for $AU15 inc. post which is dirt cheap.
I thought I remembered reading that Mecrisp Forth runs on it? It also
runs Micropython is a more modern interactive programming environment,
though resource hungry in comparison to Forth. The board has plenty of resources though.
Lorem Ipsum <gnuarm.del...@gmail.com> writes:
Yes, I know what it means. Your comment still requires explanation.The Mega imho is overkill for the application, almost in the same way
that a mini PC is overkill.
I didn't realize the Pico used the oddball ARM chip, without the usual
rPi Linux. That might work ok.
Please don't assume I am not discussing this with others.It's fine, I don't want to send you a proposal to make the gadget until
I've tested the serial board and am comfortable with the idea of using
it. It's a $9 board, affordable even for a cave dweller like me, so I
don't mind having one to play with in any case. With luck I should have
it tomorrow.
dxforth <dxf...@gmail.com> writes:
Also not sure how the on-chip peripherals compare with AVR. Can youI have the impression that the AVR has better analog stuff but other
give a summary?
than that I'm not sure. The AVR can run at more voltages. The Pico
includes a built in DC to DC converter to give the right voltages to its RP2040 chip.
Locally Pico boards sell for $AU15 inc. post which is dirt cheap.The bare board is US $4 in the US (plus shipping), and the version with header pins pre-soldered is $5. There is another version that has a
wireless comms chip on board. The wireless chip does wifi and
bluetooth, but until recently the board was described as wifi-only,
since software support for bluetooth was not there yet. But, I think bluetooth software has started to appear.
It is computationally a far more powerful board than any version of the
AVR. It has two ARM 125 MHz Cortex M0+ cores, 264K of ram, and two programmable I/O processors (they are very minimal, like glorified
PWM's) that can be used for various timing constrained protocols as an alternative to software bit banging.
I thought I remembered reading that Mecrisp Forth runs on it? It also
runs Micropython is a more modern interactive programming environment, though resource hungry in comparison to Forth. The board has plenty of resources though.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 55:58:54 |
Calls: | 6,712 |
Files: | 12,243 |
Messages: | 5,355,401 |