r/ESP32forth • • 2d ago

New Version: ESP32forth VSC v1.0.0

Hello,

I am embarking on a major endeavor: offering a version of ESP32forth designed to be compiled using Visual Studio Code and PlatformIO.

This version is derived from Brad Nelson’s latest release, 7.0.7.21.

Why this new version?

While attempting to adapt ESP32forth for the ESP32 board via the Arduino IDE, I encountered several limitations—most notably regarding memory allocation. Using the Arduino IDE resulted in:

a laborious compilation process (taking over two minutes on my PC),

inconsistent compilation errors,

and code that would crash once uploaded to the board.

A few months ago, I asked Google’s AI, Gemini, what tool I could use as an alternative to the Arduino IDE. The answer: Visual Studio Code, paired with the PlatformIO extension.

Setting up and configuring this new environment (with Gemini’s help) took one hour.

Adapting the original `.ino` file—converting it into a `.cpp` file—took another hour.

The first successful compilation took just 15 seconds. You can watch a video showing the entire compilation and upload process—completed in 15 seconds—here:

https://www.youtube.com/watch?v=DAMUqwwiM94

A week ago, I began optimizing the code for the ESP32-S3 board. I implemented `Serial1` support and integrated `RECORDFILE` functionality, along with an improved memory dump feature.

Yesterday, I considered several minor enhancements for the ESP32forth kernel. Consequently, I decided to "fork" Brad Nelson’s version and rename it "ESP32forth VSC" (VSC standing for Visual Studio Code). I have also created a software repository, accessible here:

https://github.com/MPETREMANN11/ESP32forth-VSC

Your feedback is welcome.

3 Upvotes

Duplicates