Skip to content

Commit

Permalink
Misc. fixes
Browse files Browse the repository at this point in the history
- Fix for buserror#461

  Borrowed from https://stuvel.eu/post/2021-04-27-atmega328pb-on-gcc/

- Add easy to understand usage instructions
  • Loading branch information
kholia committed Jan 14, 2022
1 parent ea4c450 commit 2bb79fa
Show file tree
Hide file tree
Showing 2 changed files with 1,247 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Expand Up @@ -149,3 +149,30 @@ And this is a gtkwave trace of what the firmware is doing. You can zoom in, meas
in gtkwave, select trades to see etc.

Quite a few other examples are available!

Usage
-----

Install build dependencies:

```
sudo apt-get install libelf-dev freeglut3 freeglut3-dev gcc-avr avr-libc gcc make
```

Clone and build the latest `simavr` code:

```
git clone https://github.com/buserror/simavr.git
cd simavr
make
```

Run sample programs:

```
./simavr/run_avr -f 16000000 -m atmega328p ArduinoUniqueID.ino.elf
./simavr/run_avr -f 16000000 -m atmega328p ArduinoUniqueID.ino.hex
```

0 comments on commit 2bb79fa

Please sign in to comment.