Hacker Public Radio

HPR4497: fixing 328eforth


Listen Later

This show has been flagged as Clean by the host.

Table of Contents

─────────────────

  1. greetings

  2. links to software

  3. hardware

  4. install

  5. check it works

  6. now the fix

  7. outro

    0 greetings

    ═══════════════════

    continuation from episode 4388, review of the book the Arduino

    controlled by eforth by dr chen-hanson ting

    1 links to software

    ═══════════════════

    https://github.com/PeterForth/DR-TING-OFFETE-SVFIG-MIRROR,

    328eforth source code

    https://github.com/Ro5bert/avra,

    opensource assembler

    https://www.engbedded.com/fusecalc/,

    configuration fuse calculator

    https://github.com/avrdudes/avrdude,

    flashing software

    https://github.com/oh2aun/flashforth,

    terminal shell programs

    2 hardware

    ══════════

    programmer, avrisp2 recommended, build your own

    https://www.hackerpublicradio.org/eps/hpr2799/index.html

    Arduino UNO R3, Arduino Nano

    3 install

    ═════════

    download 2159_328eforth.zip unzip that file then cd into it

    build assembler file, avra 328eforth220.asm

    50+ warnings that avra generates because it pads out the words

    with null characters in order to get the write size for each

    word

    an over view of whats going on in the build process

    flashing process from the book,

    avrdude -p m328p -c avrisp2 -e -U flash:w:328eforth220.hex:i -U

    lfuse:w:0xff:m -U hfuse:w:0xd8:m -U efuse:w:0xfd:m

    what i use,

    avrdude -p m328p -c avrisp2 -e -U flash:w:328eforth220.hex:i -U

    lfuse:w:0xe2:m -U hfuse:w:0xd8:m -U efuse:w:0xfd:m

    4 check it works

    ════════════════

    open terminal and plug in board, or reset board you should see,

    328eforth v2.20 if you hit the return key you'll get an ok

    5 now the fix

    ═════════════

    clues from turnkey

    flush+

    : flush+ ( -- )

    context @ context i!

    cp @ cp i!

    dp @ dp i!

    last @ last i!

    flush

    ;

    \ flush+ at the terminal prompt saves words,updates the memory

    pointers

    \ saving words across reboots

    now you can save newly defined words across reboots

    6 outro

    ═══════

    You're currently going through a difficult transition period

    called, "Life."

    Provide feedback on this episode.

    ...more
    View all episodesView all episodes
    Download on the App Store

    Hacker Public RadioBy Hacker Public Radio

    • 4.2
    • 4.2
    • 4.2
    • 4.2
    • 4.2

    4.2

    34 ratings


    More shows like Hacker Public Radio

    View all
    The Changelog: Software Development, Open Source by Changelog Media

    The Changelog: Software Development, Open Source

    291 Listeners

    Defensive Security Podcast - Malware, Hacking, Cyber Security & Infosec by Jerry Bell and Andrew Kalat

    Defensive Security Podcast - Malware, Hacking, Cyber Security & Infosec

    371 Listeners

    LINUX Unplugged by Jupiter Broadcasting

    LINUX Unplugged

    266 Listeners

    SANS Internet Stormcenter Daily Cyber Security Podcast (Stormcast) by Johannes B. Ullrich

    SANS Internet Stormcenter Daily Cyber Security Podcast (Stormcast)

    652 Listeners

    Curious Cases by BBC Radio 4

    Curious Cases

    830 Listeners

    The Strong Towns Podcast by Strong Towns

    The Strong Towns Podcast

    424 Listeners

    Late Night Linux by The Late Night Linux Family

    Late Night Linux

    165 Listeners

    Darknet Diaries by Jack Rhysider

    Darknet Diaries

    8,017 Listeners

    Cybersecurity Today by Jim Love

    Cybersecurity Today

    177 Listeners

    CISO Series Podcast by David Spark, Mike Johnson, and Andy Ellis

    CISO Series Podcast

    189 Listeners

    TechCrunch Daily Crunch by TechCrunch

    TechCrunch Daily Crunch

    41 Listeners

    Strict Scrutiny by Crooked Media

    Strict Scrutiny

    5,776 Listeners

    2.5 Admins by The Late Night Linux Family

    2.5 Admins

    97 Listeners

    Cyber Security Headlines by CISO Series

    Cyber Security Headlines

    136 Listeners

    What the Hack? by DeleteMe

    What the Hack?

    222 Listeners