davydnorris wrote:This is my Makefile (modified version based heavily on work by CHERTS) for NonOS projects. You can use this as the basis of your own compile.
Up top you can see options for setting the size of your flash, and how to compile - for area 1 or area 2 in a FOTA build, or 0 for a non FOTA. Your current blinky is being built for a non FOTA build
Hope this helps
DavydNorris,
If this works.... I love you...
Edit:
[osboxes@osboxes blinky]$ make clean
Makefile:19: *** Recursive variable `SDK_BASE' references itself (eventually). Stop.
Are you getting this as well?
Edit2:
I updated the following in the makefile to try to get it to fly and I got this
#############################################################
#
# Root Level Makefile
#
# Version 2.3
#
# Based heavily on the Makefile by CHERTS <sleuthhound@gmail.com>
# and included in his Espressif Development Kit
#
#############################################################
BUILD_BASE = build
FW_BASE = firmware
XTOOLS_HOME ?= /home/osboxes/esp-open-sdk/xtensa-lx106-elf
# Base directory for the compiler
XTENSA_TOOLS_ROOT ?= ${XTOOLS_HOME}/bin
# base directory of the ESP8266 SDK package, absolute
SDK_BASE ?= /home/osboxes/esp-open-sdk
[osboxes@osboxes blinky]$ make all
AR build/app_app.a
LD build/app.out
/home/osboxes/esp-open-sdk/xtensa-lx106-elf/lib/gcc/xtensa-lx106-elf/4.8.5/../../../../xtensa-lx106-elf/bin/ld: cannot open linker script file /home/osboxes/esp-open-sdk/ld/eagle.app.v6.new.2048.ld: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [build/app.out] Error 1
[osboxes@osboxes blinky]$