• Re: GRAPHIC CONSTANTS with eFORTH web

    From Marc Petremann@21:1/5 to All on Fri May 12 10:05:55 2023
    Le mercredi 10 mai 2023 à 23:12:19 UTC+2, Marc Petremann a écrit :
    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

    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Zbig@21:1/5 to All on Sun May 14 11:57:31 2023
    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?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Zbig@21:1/5 to All on Sun May 14 13:05:58 2023
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Zbig@21:1/5 to All on Mon May 15 07:47:35 2023
    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?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From SpainHackForth@21:1/5 to Marc Petremann on Sun Jun 11 07:36:47 2023
    On Friday, May 12, 2023 at 7:05:57 PM UTC+2, Marc Petremann wrote:
    Le mercredi 10 mai 2023 à 23:12:19 UTC+2, Marc Petremann a écrit :
    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
    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
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)