cancel
Showing results for 
Search instead for 
Did you mean: 

FORTH Compiler for STM32 devices

jjonethal
Associate II
Posted on October 29, 2015 at 10:36

If you want a development system on chip,

incremental software updates, test driven interactive developments this is worth a look:

Mecrisp Stellaris Forth compiler updated with support for a number of STM32 controllers

stm32f030f4, stm32f051, stm32f100, stm32f103, stm32f303, stm32f401, stm32f407, stm32f411, stm32f429, stm32L053c8, stm32L152

others comming soon

http://mecrisp.sourceforge.net/

#compiler #forth #interpreter #forth-mecrisp-stellaris
16 REPLIES 16
Posted on November 19, 2015 at 21:51

I did take a peek. Back in the early/mid 80s I reimplemented this

http://www.acornelectron.co.uk/info_books/electron/acornsoft_adder/Forth.html

 to Native 6502 code, and tinkered a bit with the Z80 AMS-FORTH, with it's interesting decompiler.

You should get yourself an STM32F469I-DISCO, it's got a lot of memory and expansion options.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
jjonethal
Associate II
Posted on November 20, 2015 at 05:53

I've just got a stm32F746Disco board. The instruction set should be compatible. So this will come first.

Do you still use forth in some areas ?
jjonethal
Associate II
Posted on January 20, 2016 at 19:10

With version 2.2.1 Mecrisp Stellaris Forth runs on Cortex-M7 now - 

e.g. the STM32F746G Disco board. Some example code is included.

jjonethal
Associate II
Posted on September 03, 2016 at 21:22

New Version of Mecrisp Stellaris Forth v2.2.9

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

with support for STM32F303K8 and STM32F207ZG
Oleksandr Fenenko
Associate
Posted on June 09, 2018 at 16:52

c library FORTH environment

https://sourceforge.net/projects/libsfc/

turboscrew
Senior III
Posted on June 09, 2018 at 18:07

So how does it work? My german is too rusted - it would take a long time to read.

Does the compilation replace the outer interpreter by flashing the dictionary entry tables and then the inner interpreter executes the 'main word' using the tables?

The mecrisp compiler compiles to machine code and subroutine calls. It can compile to flash or ram. The new functions are added to the dictionary list. When compiler finished it switches back to interpreter. The : is used to switch to compiler.

: Add + ;

2 3 add .