Skip to main content
jjonethal
Associate II
October 29, 2015
Question

FORTH Compiler for STM32 devices

  • October 29, 2015
  • 16 replies
  • 5780 views
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
    This topic has been closed for replies.

    16 replies

    jjonethal
    jjonethalAuthor
    Associate II
    November 20, 2015
    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
    jjonethalAuthor
    Associate II
    January 20, 2016
    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
    jjonethalAuthor
    Associate II
    September 3, 2016
    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
    June 9, 2018
    Posted on June 09, 2018 at 16:52

    c library FORTH environment

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

    turboscrew
    Senior III
    June 9, 2018
    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?

    jjonethal
    jjonethalAuthor
    Associate II
    January 29, 2019

    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 .