Build current firmware with rle compression

This commit is contained in:
optixx
2016-05-22 15:13:49 +02:00
parent f8db20fccb
commit 15abd671fe
8 changed files with 12082 additions and 1131 deletions

View File

@@ -16,20 +16,21 @@
# Author: Christian Starkjohann
# =====================================================================================
DEBUG = 1
DEBUG = 0
TTY = /dev/tty.PL2303-00002126
DEVICE = atmega644
F_CPU = 20000000
TARGET = main
AVRDUDE = avrdude -c usbasp -p $(DEVICE)
SIZE = avr-size
BOOT_LOADER = 1
BOOT_LOADER = 2
BOOT_COMPRESS = rle
BOOT_ROM01 = ../../roms/qd16boot01.smc
BOOT_ROM02 = ../../roms/qd16boot02.smc
ifeq ($(DEBUG),1)
BOOT_DEBUG = debug
LDFLAGS =-Wl,-u,vfprintf
CFLAGS =-Iusbdrv -I. -DDEBUG_LEVEL=0
OBJECTS = usbdrv/usbdrv.o usbdrv/usbdrvasm.o usbdrv/oddebug.o \
@@ -37,7 +38,8 @@ ifeq ($(DEBUG),1)
dump.o timer.o watchdog.o loader.o info.o shared_memory.o \
system.o pwm.o util.o shell.o irq.o command.o testing.o
else
LDFLAGS =-Wl,-u
BOOT_DEBUG = nodebug
LDFLAGS =
CFLAGS =-Iusbdrv -I. -DDEBUG_LEVEL=0 -DNO_DEBUG -DNO_INFO
OBJECTS = usbdrv/usbdrv.o usbdrv/usbdrvasm.o usbdrv/oddebug.o main.o usb_bulk.o \
sram.o crc.o debug.o dump.o loader.o \
@@ -104,7 +106,7 @@ bootconvert:
$(BOOT_CONVERTER) $(BOOT_ROM)
release: main.hex
cp -v main.hex ../../files/firmware/firmware-loader0$(BOOT_LOADER)-$$(date +%Y%m%d).hex
cp -v main.hex ../../files/firmware/firmware-loader0$(BOOT_LOADER)-$(BOOT_COMPRESS)-$(BOOT_DEBUG)-$$(date +%Y%m%d).hex
.c.o:
$(COMPILE) -c $< -o $@

File diff suppressed because it is too large Load Diff

View File

@@ -1,15 +1,16 @@
/*
File: qd16boot01.smc
Time: Sun, 21 Feb 2016 18:47:17
File: qd16boot02.smc
Time: Wed, 18 May 2016 15:44:45
*/
#ifndef __FIFO_H__
#define __FIFO_H__
#define LOADER_NAME "qd16boot01.smc"
#define LOADER_NAME "qd16boot02.smc"
#define LOADER_COMPRESS "ZIP"
#define ROM_ZIP_SIZE 17897
#define ROM_BUFFER_CNT 1
#define ROM_ZIP_SIZE 33654
#define ROM_BUFFER_CNT 2
#define ROM_BUFFER_SIZE01 17897
#define ROM_BUFFER_SIZE01 32767
#define ROM_BUFFER_SIZE02 887
#endif