Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By dnts
#7042
CHERTS wrote:
dnts wrote:Great! Finally I can compile the server files! one thing I did modify in the makefile is force it to regenerate the html file system:
Code: Select allhtmlflash: webpages.espfs
   rm -f webpages.espfs
   cd html; find | ../mkespfsimage/mkespfsimage.exe > ../webpages.espfs; cd ..
   if [ $$(stat -c '%s' webpages.espfs) -gt $$(( 0x2E000 )) ]; then echo "webpages.espfs too big!"; false; fi
   $(ESPTOOL) -p $(ESPPORT) write_flash 0x12000 webpages.espfs

Now I can make incremental changes and flash them.


Your code is incorrect when running target htmlflash first start will be target webpages.espfs, so it makes no sense to duplicate code.

Code: Select allwebpages.espfs:
   cd html; find | ../mkespfsimage/mkespfsimage.exe > ../webpages.espfs; cd ..

htmlflash: webpages.espfs
   if [ $$(stat -c '%s' webpages.espfs) -gt $$(( 0x2E000 )) ]; then echo "webpages.espfs too big!"; false; fi
   $(ESPTOOL) -p $(ESPPORT) write_flash 0x12000 webpages.espfs


Hi CHERTS,
I know it doesn't make sense but ALL and CLEAN do not erase the webpages.espfs file so it doesn't get regenerated when doing HTMLFLASH.. at first I had to manually erase it to force the make to rebuild it. Then I just added the complete sequence to the htmlflash (erase, remake, flash).
I don't know why (first time with make files for me..).
Nir
User avatar
By CHERTS
#7045
dnts wrote:Hi CHERTS,
I know it doesn't make sense but ALL and CLEAN do not erase the webpages.espfs file so it doesn't get regenerated when doing HTMLFLASH.. at first I had to manually erase it to force the make to rebuild it. Then I just added the complete sequence to the htmlflash (erase, remake, flash).
I don't know why (first time with make files for me..).
Nir


It would be correct to do so:

Code: Select allwebpages.espfs: cleanwebpages
   cd html; find | ../mkespfsimage/mkespfsimage.exe > ../webpages.espfs; cd ..

htmlflash: webpages.espfs
   if [ $$(stat -c '%s' webpages.espfs) -gt $$(( 0x2E000 )) ]; then echo "webpages.espfs too big!"; false; fi
   $(ESPTOOL) -p $(ESPPORT) write_flash 0x12000 webpages.espfs

clean:
   $(Q) rm -f $(APP_AR)
   $(Q) rm -f $(TARGET_OUT)
   $(Q) find $(BUILD_BASE) -type f | xargs rm -f
   $(Q) rm -rf $(BUILD_BASE)
   $(Q) rm -f $(FW_FILE_1)
   $(Q) rm -f $(FW_FILE_2)
   $(Q) rm -rf $(FW_BASE)
   $(Q) rm -f webpages.espfs

cleanwebpages:
   $(Q) rm -f webpages.espfs
User avatar
By CHERTS
#7170 A new version of my build Espressif DevKit for Windows v1.0.5
The list of changes to the first page:
viewtopic.php?f=9&t=820&p=4639#p4639

Support for DevKit x64 version is discontinued, use DevKit x86 version.

Update procedure:
1. Remove the version 1.0.x
2. Install the new version 1.0.5
ATTENTION!!! When you delete the old version will be removed entire directory C:\Espressif
User avatar
By missyrat
#7292 @CHERTS

Thank you for the awesome easy to use devkit install!

Version 1.0.5 doesn't seem to include g++ - from the comments on this forum I get the impression that pre 1.0.5 did - do you plan to add it back in?

Thanks again!