From 1e40d8f1e1fb15671e925b59d51b2766fb01c9be Mon Sep 17 00:00:00 2001 From: Daniele Verducci su MatissePenguin Date: Sat, 2 Jan 2021 17:02:30 +0100 Subject: [PATCH] pal-adapter: fuses config and readme --- .../software/avr-assembly/README.md | 13 +++++++++++++ .../software/avr-assembly/fuses.conf | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 pat80-io-devices/composite-pal-adapter/software/avr-assembly/README.md create mode 100644 pat80-io-devices/composite-pal-adapter/software/avr-assembly/fuses.conf diff --git a/pat80-io-devices/composite-pal-adapter/software/avr-assembly/README.md b/pat80-io-devices/composite-pal-adapter/software/avr-assembly/README.md new file mode 100644 index 0000000..e4299ed --- /dev/null +++ b/pat80-io-devices/composite-pal-adapter/software/avr-assembly/README.md @@ -0,0 +1,13 @@ +# Atmega Microcontroller +## Build ASM code +`avra filename.asm` (generates *filename.hex*) + +## Flash +### Rom +`minipro -w filename.hex -p ATMEGA1284` + +### Fuses +Read fuses: `minipro -r -c config -p ATMEGA1284` (`-r -c config` means read configuration (fuses)) +Fuses must be written all together, so read the current values, edit the generated file and write it. +The meaning of every bis is in the conf file. +Write fuses: `minipro -w fuses.conf -c config -p ATMEGA1284` \ No newline at end of file diff --git a/pat80-io-devices/composite-pal-adapter/software/avr-assembly/fuses.conf b/pat80-io-devices/composite-pal-adapter/software/avr-assembly/fuses.conf new file mode 100644 index 0000000..76a3a9a --- /dev/null +++ b/pat80-io-devices/composite-pal-adapter/software/avr-assembly/fuses.conf @@ -0,0 +1,4 @@ +fuses_lo = 0x6F +fuses_hi = 0x99 +fuses_ext = 0xff +lock_byte = 0xff