Compare commits

...

9 Commits

Author SHA1 Message Date
Olaf Rempel b0e59996cd reduce delays 2016-05-16 12:51:36 +02:00
Olaf Rempel 5d76525ed4 fix mega8 programming 2016-05-16 12:51:06 +02:00
Olaf Rempel b3bb5e029c notify user if device not tested yet 2016-05-16 12:50:43 +02:00
Olaf Rempel f0245a4402 add DL1414 display 2014-10-16 22:03:22 +02:00
Olaf Rempel f13e4f97d5 add untested devices 2014-10-16 21:58:36 +02:00
Olaf Rempel ea3cae90ba cleanup 2014-10-16 21:29:43 +02:00
Olaf Rempel e91782ec65 Autodetect SPI frequency
- add statemachine for ISP sync & signature read
- autoprobing of SPI frequency
- remove manual SPI frequency selection
- remove NVM code
2014-10-14 21:56:16 +02:00
Olaf Rempel 798fa7fbb1 ispprog2: keep ISP_RESET (/SS) as output
ISP_RESET is /SS pin of mega328p.
In master mode, the /SS pin must be configured as output.
If configured as input it must held high to ensure Master SPI operation.
2014-10-14 21:45:04 +02:00
Olaf Rempel 9f98314832 add new hardware 2014-10-12 11:13:30 +02:00
2 changed files with 526 additions and 368 deletions

View File

@ -7,24 +7,34 @@ SIZE := avr-size
TARGET = ispprog
SOURCE = $(wildcard *.c)
# select MCU
MCU = atmega16
#CONFIG = ispprog
CONFIG = ispprog2
AVRDUDE_PROG := -c butterfly -b 19200 -P /dev/ttyUSB0
#AVRDUDE_PROG := -c dragon_isp -P usb
# ---------------------------------------------------------------------------
ifeq ($(MCU), atmega16)
# (ext. crystal)
ifeq ($(CONFIG), ispprog)
# (7.3728MHz ext. crystal)
AVRDUDE_MCU=m16
AVRDUDE_FUSES=lfuse:w:0xff:m hfuse:w:0xda:m
MCU=atmega16
endif
ifeq ($(CONFIG), ispprog2)
# (8MHz int. osc, 2.7V BOD)
AVRDUDE_MCU=m328p -F
AVRDUDE_FUSES=lfuse:w:0xe2:m hfuse:w:0xdc:m efuse:w:0x02:m
MCU = atmega328p
endif
# ---------------------------------------------------------------------------
CFLAGS = -pipe -g -Os -mmcu=$(MCU) -Wall -fdata-sections -ffunction-sections
CFLAGS += -Wa,-adhlns=$(*F).lst
CFLAGS += -Wa,-adhlns=$(*F).lst -DCONFIG_$(CONFIG)=1
LDFLAGS = -Wl,-Map,$(@:.elf=.map),--cref,--relax,--gc-sections
# ---------------------------------------------------------------------------

874
ispprog.c

File diff suppressed because it is too large Load Diff