User avatar
scruss
Posts: 4494
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Forth (Mecrisp Stellaris 2.5.6) for Raspberry Pi Pico

Thu Feb 25, 2021 6:23 pm

is here, apparently:

https://sourceforge.net/projects/mecrisp/files/

As there are some Forth-heads here, I thought I'd pass it on. I've had pretty much zero luck getting Mecrisp Stellaris to do anything useful on other ARM platforms. It's not particularly beginner friendly, and the documentation is … well, I'll let you decide.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

bgolab
Posts: 375
Joined: Sat Jan 30, 2021 12:59 pm
Location: Krakow, PL

Re: Forth (Mecrisp Stellaris 2.5.6) for Raspberry Pi Pico

Thu Feb 25, 2021 7:35 pm

Found stack-based machines and RPN very interesting years ago. Requires different mind-set. But the produced code seems to be little bit unreadable. Particularly after a few months;)
Anyway worth trying.

User avatar
HermannSW
Posts: 4837
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

Re: Forth (Mecrisp Stellaris 2.5.6) for Raspberry Pi Pico

Fri Feb 26, 2021 8:20 pm

scruss wrote:
Thu Feb 25, 2021 6:23 pm
is here, apparently:

https://sourceforge.net/projects/mecrisp/files/
Cool.

From CHANGELOG:

Code: Select all

11.02.2021, Matthias Koch, Mecrisp-Stellaris 2.5.6

  - New target: RP2040 on Raspberry Pico board

Any idea how to avoid drifting right and get meaningful output in miniterm?

Code: Select all

Welcome to minicom 2.7.1

OPTIONS: I18n 
Compiled on Aug 13 2017, 15:25:34.
Port /dev/serial0, 21:16:21

Press CTRL-A Z for help on special keys

1234 u.4 1234 ok.
                 234 u.8 00000234 ok.
                                     17 const.  #17 ok.
                                                       blinky blinky not found.
https://github.com/Hermann-SW/memrun
https://stamm-wilbrandt.de/2wheel_balancing_robot
https://stamm-wilbrandt.de/en#raspcatbot
https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://stamm-wilbrandt.de/en/Raspberry_camera.html


User avatar
HermannSW
Posts: 4837
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

Re: Forth (Mecrisp Stellaris 2.5.6) for Raspberry Pi Pico

Sat Feb 27, 2021 12:09 pm

bgolab wrote:
Fri Feb 26, 2021 8:26 pm
Try to review this:
https://stackoverflow.com/questions/528 ... s-expected
That is not helpful, because the commands in my miniterm get executed (u.4, u.8, ...).
It is just the missing carriage return that is a problem, linefeed happens.
https://github.com/Hermann-SW/memrun
https://stamm-wilbrandt.de/2wheel_balancing_robot
https://stamm-wilbrandt.de/en#raspcatbot
https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://stamm-wilbrandt.de/en/Raspberry_camera.html

User avatar
scruss
Posts: 4494
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: Forth (Mecrisp Stellaris 2.5.6) for Raspberry Pi Pico

Sat Feb 27, 2021 1:03 pm

You're using minicom, not miniterm, because:

Code: Select all

Welcome to minicom 2.7.1
Fiddle with your line ending settings: by the looks of things Mecrisp Stellaris is expecting CRLF but you're sending it LFs
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

drgeoff
Posts: 12420
Joined: Wed Jan 25, 2012 6:39 pm

Re: Forth (Mecrisp Stellaris 2.5.6) for Raspberry Pi Pico

Sat Feb 27, 2021 1:31 pm

scruss wrote:
Sat Feb 27, 2021 1:03 pm
You're using minicom, not miniterm, because:

Code: Select all

Welcome to minicom 2.7.1
Fiddle with your line ending settings: by the looks of things Mecrisp Stellaris is expecting CRLF but you're sending it LFs
Close but no cigar.

Mecrisp Stellaris is sending only LFs but minicom is expecting CRLFs.

https://unix.stackexchange.com/question ... -n-to-crlf
Quis custodiet ipsos custodes?

Return to “General”