mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
Merge pull request #1154 from Links2004/master
fix #1151 + eclipse makefile example
This commit is contained in:
commit
1368a82a82
@ -26,7 +26,7 @@ class UpdaterClass {
|
|||||||
Call this to check the space needed for the update
|
Call this to check the space needed for the update
|
||||||
Will return false if there is not enough space
|
Will return false if there is not enough space
|
||||||
*/
|
*/
|
||||||
bool begin(size_t size, int = U_FLASH);
|
bool begin(size_t size, int command = U_FLASH);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Writes a buffer to the flash and increments the address
|
Writes a buffer to the flash and increments the address
|
||||||
|
@ -494,7 +494,7 @@ extern uint8_t esp8266_gpioToFn[16];
|
|||||||
|
|
||||||
//SPI Phase Length Locations
|
//SPI Phase Length Locations
|
||||||
#define SPILCOMMAND 28 //4 bit in SPIxU2 default 7 (8bit)
|
#define SPILCOMMAND 28 //4 bit in SPIxU2 default 7 (8bit)
|
||||||
#define SPILADDR 16 //6 bit in SPIxU1 default:23 (24bit)
|
#define SPILADDR 26 //6 bit in SPIxU1 default:23 (24bit)
|
||||||
#define SPILDUMMY 0 //8 bit in SPIxU1 default:0 (0 cycles)
|
#define SPILDUMMY 0 //8 bit in SPIxU1 default:0 (0 cycles)
|
||||||
#define SPILMISO 8 //9 bit in SPIxU1 default:0 (1bit)
|
#define SPILMISO 8 //9 bit in SPIxU1 default:0 (1bit)
|
||||||
#define SPILMOSI 17 //9 bit in SPIxU1 default:0 (1bit)
|
#define SPILMOSI 17 //9 bit in SPIxU1 default:0 (1bit)
|
||||||
|
39
doc/eclipse/makefile.init
Normal file
39
doc/eclipse/makefile.init
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
vecho := @echo
|
||||||
|
Q := @
|
||||||
|
|
||||||
|
PROJECT_NAME=project_name
|
||||||
|
|
||||||
|
OTA_IP=192.168.254.100
|
||||||
|
OTA_PORT=8266
|
||||||
|
|
||||||
|
SERIAL_PORT=COM3
|
||||||
|
SERIAL_BAUD=230400
|
||||||
|
|
||||||
|
ARDUINO_BASE = D:/Coding/avr/Programme/arduino-nightly
|
||||||
|
ESP8266_BASE = $(ARDUINO_BASE)/hardware/esp8266com/esp8266
|
||||||
|
ESP8266_TOOLS = $(ESP8266_BASE)/tools
|
||||||
|
XTENSA_TOOLS_ROOT = $(ESP8266_TOOLS)/xtensa-lx106-elf/bin
|
||||||
|
|
||||||
|
PYTHON_BIN = python
|
||||||
|
ESPTOOL_PY_BIN = $(ESP8266_TOOLS)/esptool.py
|
||||||
|
ESPOTA_PY_BIN = $(ESP8266_TOOLS)/espota.py
|
||||||
|
ESPTOOL_BIN = $(ESP8266_TOOLS)/esptool/esptool.exe
|
||||||
|
|
||||||
|
ota:
|
||||||
|
$(vecho) ota...
|
||||||
|
$(PYTHON_BIN) $(ESPOTA_PY_BIN) -i $(OTA_IP) -p $(OTA_PORT) --auth= -f ./$(PROJECT_NAME).bin
|
||||||
|
|
||||||
|
ota_spiffs:
|
||||||
|
$(vecho) ota spiffs...
|
||||||
|
$(PYTHON_BIN) $(ESPOTA_PY_BIN) -i $(OTA_IP) -p $(OTA_PORT) --auth= -s -f ./$(PROJECT_NAME)_spiffs.bin
|
||||||
|
|
||||||
|
erase_flash:
|
||||||
|
$(vecho) "Erase Flash"
|
||||||
|
$(PYTHON_BIN) $(ESPTOOL_PY_BIN) -p $(SERIAL_PORT) -b $(SERIAL_BAUD) erase_flash
|
||||||
|
|
||||||
|
dumpmem:
|
||||||
|
$(vecho) "Read Flash need some time..."
|
||||||
|
$(PYTHON_BIN) $(ESPTOOL_PY_BIN) -p $(SERIAL_PORT) -b $(SERIAL_BAUD) read_flash 0 4194304 dump.bin
|
||||||
|
|
||||||
|
objdump:
|
||||||
|
"$(XTENSA_TOOLS_ROOT)/xtensa-lx106-elf-objdump" -S $(PROJECT_NAME).elf > $(PROJECT_NAME).dobj
|
Loading…
x
Reference in New Issue
Block a user