Tuesday, May 29, 2018

vim and FORTH-"IDE"-ish environment

Hi,

(I am on Linux.)

just for fun, entertainment and doing something new, I installed
Mecrisp-Stellaris FORTH on a STM32F103C8T6 ( aka "Blue Pill" )
micorcontroller board.

FORTH is interactive (has a REPL) and is a interpretive
(interpretative?) and compiler language at the same time.

For ceating new compiled code on the microcontroller is
as easy as cat-ting the sourcecode this way:

cat sourcecode.fs > /dev/ttyACM0

Now you can execute your program via the prompt you get
with a serial terminal which is connected via /dev/ttyACM0.

But what has all this to do with vim?

I want to write code in FORTH with vim (what else? ;), send
the code to the microcontroller and - if possible - want to
replace the extern console of the serial terminal with something
inside vim. I not neccessarily want to avoid the serial terminal --
I want to avoid the "external"...the switching between windows.

I found some rudimentary attempts of something like that (still
in need of an external something), which call 'cat' to transfer
the code to the microprocessor.
But those posts are from a long time ago.

Since vim got tasks and pipes and subprocesses I would like to ask
for some keywords or pointers to start with to acchieve what I have
described above.

Where should I start while trying to read the wheel a second time...?
:)

Thank you very much in advance for any help!
Cheers!
Meino


--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

1 comment:

techman-001 said...

I have developed a very similar system to what youre looking for, which uses VIM and GNU Screen. A Makefile uploads the files being edited (after stripping all Forth comments) at 460800 baud and hardware handshaking to the STM32 target.

It does this using the remote serial terminal capability of Screen.

More information is available here:
https://mecrisp-stellaris-folkdoc.sourceforge.io/devenv.html#devenv
Cheers,
Terry