-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Files #56
Comments
Hi! #copyright (c) 2010 Espressif System ifndef PDIR endif AR = $(XTENSA_TOOLS_ROOT)/xtensa-lx106-elf-ar |
Is that it? Just add that to the top of the file, call it makefile.windows and it’ll work in Windows?? From: Istvan Puzsar [mailto:notifications@github.com] Hi! |
HI! |
Great, I am downloading. |
Hi! |
Just a little clarity please... Assume that the Eclipse installation is already done - has all he projects in Espressif/examples - and that the installation is already compiling and blowing other packages (the setup for this comes with a load of installations already). So what is then left to do.... change the Makefile?? What else.. when I tried to copy nodemcu-firmware into espressif/examples and then IMPORT in Eclipse - nothing happened - the ok button was greyed out... |
Hi |
Warning, the directory name doesn't contain spaces!!! |
Hi, c:/espressif/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../ Any idea where is the problem? (compiler optimization...?) |
I hope that others can help – I am not yet an expert on using that compiler. |
Hi there I have followed the instructions a number of times - in each case there is ONE item missing from your otherwise excellent instructions - you assume everyone has PYTHON27 installed - which of course they don't. I've just installed the lot on a new machine and followed your further instructions to install the LUA interpreter. At the end..... I'm getting problems - I have followed the instructions EXACTLY and then installed Python..
|
Scargill, those messages are a consequence and not the problem. E.g. you cannot link if any object file isn’t created (compiled). |
I have fixed the eclipse project. now you can import it and build it. have to install python27 and pyserial27 |
Hi there Loaded the master ZIP off your site just now.. unzipped and dumped the whole thing into ECLIPSE. Told Eclipse to import – APP. Looks good – and ALL seems to compile but no… It’s not finding MAKE… The AT demo works a treat – the MQTT import works a treat… but I’m having no luck with nodeMCU –I downloaded your code this morning.. Tried this on 2 machines – same result.
|
right click the imported project. Or, just add C:\Espressif\xtensa-lx106-elf\bin to the system environment PATH. |
have you delete the previous nodemcu-firmware project completely. |
Oh, also add |
Hi yes I did – and I’m trying this on 2 computers.. I also made sure that I added the PATH item you suggested AND checked that the path exists. I still get this.
|
RIGHT! NOW I can compile. TThe FLASH item at the end of not working – and in you MAKEFILE I can’t see the COM port reference? It says it can’t find SERIAL – but other projects are blowing FLASH?? Ok, installed PYSERIAL – wants to use COM1 – where do you set the COM port? 10:00:47 **** Build of configuration Default for project nodemcu-firmware ****
|
in flash.bat or flash.sh file。 |
esptool.py have some problem when flash two piece as one firmware. |
You might be interested in this – the MAKEFILE for the AT software – there is an EXE file for flashing the chips and hence PY stuff not used – also COM port is set in the same file.. ChangelogChanged the variables to include the header file directoryAdded global var for the XTENSA tool rootThis make file still needs some work.Output directors to store intermediate compiled filesrelative to the project directoryBUILD_BASE = build FW_BASE = firmware Base directory for the compilerXTENSA_TOOLS_ROOT ?= c:/Espressif/xtensa-lx106-elf/bin base directory of the ESP8266 SDK package, absoluteSDK_BASE ?= c:/Espressif/ESP8266_SDK #Esptool.py path and port ESPTOOL ?= c:\Espressif\utils\esptool.exe ESPPORT ?= COM4 name for the target projectTARGET = app which modules (subdirectories) of the project to include in compilingMODULES = driver user EXTRA_INCDIR = include $(SDK_BASE)/../include libraries used in this project, mainly provided by the SDKLIBS = c gcc hal phy pp net80211 lwip wpa upgrade main compiler flags using during compilation of source filesCFLAGS = -Os -g -O2 -Wpointer-arith -Wundef -Werror -Wl,-EL -fno-inline-functions -nostdlib -mlongcalls -mtext-section-literals -D__ets__ -DICACHE_FLASH linker flags used to generate the main object fileLDFLAGS = -nostdlib -Wl,--no-check-sections -u call_user_start -Wl,-static linker script used for the above linkier stepLD_SCRIPT = eagle.app.v6.ld various paths from the SDK used in this projectSDK_LIBDIR = lib SDK_LDDIR = ld SDK_INCDIR = include include/json we create two different files for uploading into the flashthese are the names and options to generate themFW_FILE_1 = 0x00000 FW_FILE_1_ARGS = -bo $@ -bs .text -bs .data -bs .rodata -bc -ec FW_FILE_2 = 0x40000 FW_FILE_2_ARGS = -es .irom0.text $@ -ec select which tools to use as compiler, librarian and linkerCC := $(XTENSA_TOOLS_ROOT)/xtensa-lx106-elf-gcc AR := $(XTENSA_TOOLS_ROOT)/xtensa-lx106-elf-ar LD := $(XTENSA_TOOLS_ROOT)/xtensa-lx106-elf-gcc no user configurable options below hereFW_TOOL ?= $(XTENSA_TOOLS_ROOT)/esptool SRC_DIR := $(MODULES) BUILD_DIR := SDK_LIBDIR := SDK_INCDIR := SRC := OBJ := LIBS := APP_AR := TARGET_OUT := LD_SCRIPT := INCDIR := EXTRA_INCDIR := MODULE_INCDIR := FW_FILE_1 := FW_FILE_2 := V ?= $(VERBOSE) ifeq ("$(V)","1") Q := vecho := @true else Q := @ vecho := @echo endif vpath %.c $(SRC_DIR) define compile-objects $1/%.o: %.c
endef .PHONY: all checkdirs clean all: checkdirs
checkdirs: $(BUILD_DIR):
firmware:
flash: firmware/0x00000.bin firmware/0x40000.bin
test: flash
rebuild: clean all clean:
From: zeroday [mailto:notifications@github.com] esptool.py have some problem when flash two piece as one firmware. — |
Everything is now working. Needed to add PYSERIAL and those two items in the path… also needed to find the COM setting – might want to make that more obvious – can it go in the MAKEFILE? For some reason the compiled code does not start up every time – never had that before.. Will check another board… Pete. |
great. |
use esptool.py to generate firmware, and burn with esptool.py. |
Well done. |
in the latest commit, eclipse project file is moved to root. |
@scargill Hello. |
I'd like to have a play with this - having tried just about every binary up to now - it's great that you've made it open source. For the sake of us poor mortals on Windows who are just picking this up - I note on many of these projects they include 3 make files ... "makefile", "makefile.linux" and "makefile.windows" so that those in the Windows environment don't have to re-invent the wheel.. the MQTT project is one..
Any chance you could include those other makefiles?? I'm not sure I'd know where to start.
The text was updated successfully, but these errors were encountered: