Code Monkey home page Code Monkey logo

weavie's Introduction

Weavie

Weavie is an ongoing project to create a tiny, physical weaving pattern computer using only 32-bit ARM assembly. I wanted to learn more about embedded development and assembly programming, and building a weaving pattern editor seemed like a fun challenge. Weavie is built for the STM32 board, and has its own basic emulator based on Rust and Unicorn.


images

Getting Started

Requirements

All dependencies are defined in shell.nix. Run:

nix-shell

Or install using your preferred package manager.

Running in emulator

make

Running on hardware

  • Connect the BOOT0 (B0) pin to the 3.3V PIN. This enables the DFU bootloader mode.
  • Connect the board to the USB port.
  • Flash the chip:
make flash

Running in QEMU

To run in QEMU:

make qemu

Restarting QEMU inside gdb:

monitor system_reset

Exiting QEMU:

Ctrl-A X

Debugging

Debugging in gdb:

make debug

Step through assembly instruction:

si

Inspect register state:

info registers

Inspect memory address:

p/x 0x40020800
x $r2
x/t $r1
x/10x $r1
x/20c $r1

Hardware

Wiring

  • 3.3V to display VIN (power)
  • GND to display GND (ground)
  • SCK to display CLK (clock)
  • MO (MOSI) to display DI (data input)
  • PIN6 to display CS (chip-select)

Weaving

Documentation

Resources

weavie's People

Contributors

rechsteiner avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.