diff --git a/hardware/esp8266com/esp8266/bootloaders/eboot/Makefile b/hardware/esp8266com/esp8266/bootloaders/eboot/Makefile index 8aaac9cab..cd9e14143 100644 --- a/hardware/esp8266com/esp8266/bootloaders/eboot/Makefile +++ b/hardware/esp8266com/esp8266/bootloaders/eboot/Makefile @@ -18,7 +18,7 @@ OBJDUMP := $(XTENSA_TOOCHAIN)xtensa-lx106-elf-objdump CFLAGS += -std=gnu99 -CFLAGS += -Os -g -Wpointer-arith -Wno-implicit-function-declaration -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mno-text-section-literals +CFLAGS += -O0 -g -Wpointer-arith -Wno-implicit-function-declaration -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mno-text-section-literals LDFLAGS += -nostdlib -Wl,--no-check-sections -umain diff --git a/hardware/esp8266com/esp8266/bootloaders/eboot/eboot.c b/hardware/esp8266com/esp8266/bootloaders/eboot/eboot.c index 86a27eff0..b3193e299 100644 --- a/hardware/esp8266com/esp8266/bootloaders/eboot/eboot.c +++ b/hardware/esp8266com/esp8266/bootloaders/eboot/eboot.c @@ -150,7 +150,7 @@ int copy_raw(const uint32_t src_addr, void main() { - int res; + int res = 9; struct eboot_command cmd; eboot_command_read(&cmd); diff --git a/hardware/esp8266com/esp8266/bootloaders/eboot/eboot.elf b/hardware/esp8266com/esp8266/bootloaders/eboot/eboot.elf index b7908dfd6..0637a0525 100755 Binary files a/hardware/esp8266com/esp8266/bootloaders/eboot/eboot.elf and b/hardware/esp8266com/esp8266/bootloaders/eboot/eboot.elf differ diff --git a/hardware/esp8266com/esp8266/bootloaders/eboot/eboot.ld b/hardware/esp8266com/esp8266/bootloaders/eboot/eboot.ld index 0b9250dea..303ae8a56 100644 --- a/hardware/esp8266com/esp8266/bootloaders/eboot/eboot.ld +++ b/hardware/esp8266com/esp8266/bootloaders/eboot/eboot.ld @@ -4,7 +4,7 @@ MEMORY { dport0_0_seg : org = 0x3FF00000, len = 0x10 dram0_0_seg : org = 0x3FFE8000, len = 0x14000 - iram1_0_seg : org = 0x4010f800, len = 0x800 + iram1_0_seg : org = 0x4010f000, len = 0x1000 irom0_0_seg : org = 0x40240000, len = 0x32000 }