Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GRAPHIC CONSTANTS with eFORTH web

153 views
Skip to first unread message

Marc Petremann

unread,
May 10, 2023, 5:12:19 PM5/10/23
to
Hi,
Create true graphical constants with eFORTH web.
Listing here:
https://github.com/MPETREMANN11/uEforth/blob/main/web/TESTS/GRAPHIC_CONSTANTS.html
The newPath2D: word is used to create a word which then functions as a FORTH constant. Example:
s" ...svg commands..." newPath2D: myDraw
To display myDraw it must be preceded by the position x y in canvas. Example:
10 10 myDraw

Marc Petremann

unread,
May 12, 2023, 1:05:57 PM5/12/23
to
New article:
https://eforth.arduino-forth.com/article/installation_web_graphic_graphicConstants

For example, how drawing a logic AND GATE:

s" M 0 8 h 10 Z
M 0 20 h 10 Z
M 10 0 v 28 h 24
a 16 -14 0 0 0 0 -28
h -24 Z
M 50 14 h 10 Z " newPath2D: GATE_AND

10 10 GATE_AND
10 50 GATE_AND

Zbig

unread,
May 14, 2023, 2:57:33 PM5/14/23
to
I tried to flash development board „WeMos D1 ESP32 R32 WROOM-32 WiFi”
using the procedure you've described on your page, the flashing utility
reported it has been done, but — unfortunately — there's no answer when
I started the terminal.
Is the binary from your page unsuitable for WROOM variant?

Zbig

unread,
May 14, 2023, 4:06:00 PM5/14/23
to
Oh, I forgot — when I press „boot” button it spits out error message:

ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:5564
load:0x40078000,len:0
load:0x40078000,len:13756
entry 0x40078fb4
I (29) boot: ESP-IDF v3.0.3 2nd stage bootloader
I (29) boot: compile time 08:53:32
I (29) boot: Enabling RNG early entropy source...
I (34) boot: SPI Speed : 40MHz
I (38) boot: SPI Mode : DIO
I (42) boot: SPI Flash Size : 4MB
E (46) flash_parts: partition 4 invalid magic number 0xebeb
E (52) boot: Failed to verify partition table
E (57) boot: load partition table error!
user code done

Zbig

unread,
May 15, 2023, 10:47:37 AM5/15/23
to
OK, I managed this somehow. So here's the correct procedure
how to flash your Forth while working within Linux environment,
using esptool.py:

1. If the devboard got messed up — like I spoiled mine, trying to
follow the procedure you've described on your pages — firstly
there's a need to reinstall the bootloader. The bootloader I used is
the one to be found in the file available at
https://download.espressif.com/esp_at/firmware/ESP32/ESP32_WROOM/ESP32-WROOM-32_AT_Bin_V2.4.0.0.zip
(the file bootloader.bin in the bootloader sub-dir)

a) Erase the flash memory:
esptool.py --port /dev/ttyUSB0 --chip esp32 erase_flash
b) Flash the bootloader into memory:
esptool.py --port /dev/ttyUSB0 --chip esp32 write_flash 0x1000 bootloader.bin

Of course if the board in use shows up at different port than USB0,
that need to be changed in the spells listed above.

2. Flash the Forth files:
esptool.py --port /dev/ttyUSB0 --chip esp32 write_flash \
0x8000 ESP32forthV70610_extended.ino.partitions.bin \
0x10000 ESP32forthV70610_extended.ino.bin

Yes, now it seems to be working at last. Testing two different devboards.

Does there exist any doc to ESP32Forth? Any „reference guide”
or anything like that? I hope not just these few clues listed on your WWW
pages — and the whole rest one needs to guess?

SpainHackForth

unread,
Jun 11, 2023, 10:36:49 AM6/11/23
to
That is pretty cool ! I’ve not done much on the graphical side of things… but looks like a promising path to test and experiments.
0 new messages