Charles
d9a51f9fa1
Added getResetReason in human readable form
2016-01-25 00:43:57 +01:00
Markus Sattler
898737422e
ESP class - move interpretation of magic bytes in function
2015-12-19 14:30:13 +01:00
Markus Sattler
f57ab609ec
move flash size check to a function in ESP class,
...
allow real size bigger the IDE for Update
2015-12-17 13:02:14 +01:00
Martin Ayotte
5d7a3e939c
add BergMicro Flash IDs
2015-11-24 15:11:20 -05:00
Martin Ayotte
348efba5b2
Merge remote-tracking branch 'upstream/esp8266' into esp8266
2015-09-09 10:54:30 -04:00
chaeplin
4b07256802
adding resetInfo.reason 6
...
enum rst_reason {
REASON_DEFAULT_RST = 0,
REASON_WDT_RST = 1,
REASON_EXCEPTION_RST = 2,
REASON_SOFT_WDT_RST = 3,
REASON_SOFT_RESTART = 4,
REASON_DEEP_SLEEP_AWAKE = 5,
REASON_EXT_SYS_RST = 6
};
2015-09-06 14:36:56 +09:00
Martin Ayotte
fe1cc18ddb
add W25Q40 chipid
2015-09-04 09:52:27 -04:00
Ivan Grokhotkov
c355f626f2
Add flash read/write/erase APIs to ESPClass
2015-08-18 23:38:23 +03:00
Markus Sattler
4ad894683e
add system_soft_wdt_feed to ESP.wdtFeed();
2015-08-10 17:35:15 +02:00
Ivan Grokhotkov
3a3f25997c
Disable interrupts inside Esp.getVcc ( #567 )
2015-08-05 08:54:45 -04:00
Ivan Grokhotkov
cc152de907
Return to scheduler context from ESP::deepSleep ( #609 )
2015-08-05 08:42:29 -04:00
Markus Sattler
d4ddb66fc4
update SDK to v1.2.0_15_07_03
2015-07-07 18:09:23 +03:00
Ivan Grokhotkov
5763dbba3b
Code review
2015-07-06 21:04:08 +03:00
John Doe
0d969e9760
Fixes and HTTP Post update example
...
Because eboot first erases the space required for the new sketch, and
if the new sketch is larger then the old one, with the old way, part of
the beginning of new sketch will be deleted. Therefore for now I opted
to keep the max update size either half the available space for
sketches or what's left from the first one, whichever is smaller.
To be able to create a simple post mechanism for updates, I needed to
have a way to write the new binary, without knowing it's final size, so
I added an option to the end() method. Example in the WebServer
examples.
2015-07-06 12:32:28 +03:00
John Doe
6f2069deac
New Update library, example, upload and more
...
Proper error handling in the uploading python script
Much faster OTA example sketch with better results
New Update class that simplifies updating the firmware from any source
Updated Esp.updateSketch() to use the new class
2015-07-06 12:31:24 +03:00
John Doe
d828312299
fix fail on slow streams
2015-07-06 12:27:54 +03:00
John Doe
2e08c5d797
Add an option to reboot on failed update
2015-07-06 12:27:44 +03:00
Markus Sattler
3a34aa61e0
Merge remote-tracking branch 'remotes/esp8266/esp8266' into esp8266
...
Conflicts:
hardware/esp8266com/esp8266/cores/esp8266/Esp.cpp
2015-06-25 20:02:37 +02:00
Ivan Grokhotkov
788095c66e
Remove implementations of WDT-related functions
...
which were not correct since 0.9.3 anyway
2015-06-25 00:13:06 +03:00
Markus Sattler
f11c65e9a7
add basic check for valid data for in updateSketch (first byte of bin is always 0xE9)
...
send SDK version by HTTP Update
2015-06-22 10:23:33 +02:00
Markus Sattler
93f215cb2e
add wait time after reset
2015-06-21 21:38:19 +02:00
Markus Sattler
fe1b39fa0e
update AVR src
...
* java code not tested *
Merge remote-tracking branch 'remotes/arduino/master' into esp8266
Conflicts:
README.md
app/src/processing/app/AbstractMonitor.java
arduino-core/src/processing/app/Serial.java
libraries/WiFi/examples/WiFiWebClientRepeating/WiFiWebClientRepeating.ino
libraries/WiFi/library.properties
2015-06-17 14:24:25 +02:00
Markus Sattler
e856053254
update getResetInfo
2015-06-17 12:08:52 +02:00
Ivan Grokhotkov
26eede862f
Add function to update sketch from Stream
2015-06-05 14:07:55 +03:00
Ivan Grokhotkov
becc1d32ed
rename EspClass::eraseESPconfig to eraseConfig
2015-06-05 14:07:42 +03:00
Markus Sattler
5a19cc24bf
correct addr
2015-05-25 13:13:05 +02:00
Markus Sattler
5852c484ca
add ESP.eraseESPconfig() to erase the ESP SDK configuration (including wifi)
...
improve WiFiMulti
2015-05-25 12:29:26 +02:00
Markus Sattler
dc52cf82c5
read the rst reason from the SDK if stored.
...
add String getResetInfo(void); and struct rst_info * getResetInfoPtr(void);
2015-05-25 11:15:29 +02:00
Ivan Grokhotkov
4fdd546ad5
Fix build
2015-05-24 15:35:18 +03:00
ficeto
ba65783177
add method to get the actual size of the flash
2015-05-18 22:34:34 +03:00
ficeto
18349b2090
fix buffer and block size
2015-05-18 21:45:00 +03:00
Markus Sattler
163858dc44
fix use SPI.beginTransaction crash
2015-05-07 19:25:25 +02:00
Markus Sattler
5c915ff385
add Winbond flash chip Ids
2015-05-05 18:41:38 +02:00
Markus Sattler
1d2d8f8dd2
add function to get flash size based of flash Chip id
2015-04-30 16:06:01 +02:00
Markus Sattler
55b2d88d07
in Arduino.h make some errors by compiling in some cases moved to Esp.cpp
2015-04-30 15:19:36 +02:00
Markus Sattler
fab5104cff
use User-defined literals for kHz, MHz, GHz, kBit, MBit, GBit, kB, MB and GB
...
see #145
2015-04-30 15:04:10 +02:00
Ivan Grokhotkov
cf9da93b61
Remove some definitions from global namespace
...
Names like kB, MB and kHz are likely to collide with variable names in user sketches.
Nowadays this should be implemented using c++14 user-defined literals (http://en.cppreference.com/w/cpp/language/user_literal )
2015-04-30 19:06:11 +08:00
Ivan Grokhotkov
a4536d5935
Minor code style changes
2015-04-30 18:54:16 +08:00
Markus Sattler
724baf7910
add functions to read out the flash config
...
Serial.print(F("Flash Chip Size: "));
Serial.println(ESP.getFlashChipSize());
Serial.print(F("Flash Chip Speed: "));
Serial.println(ESP.getFlashChipSpeed());
Serial.print(F("Flash Chip Mode: 0x"));
Serial.println(ESP.getFlashChipMode(), HEX);
2015-04-30 10:42:17 +02:00
Markus Sattler
8cb330eadf
add ESP.getFlashChipId()
2015-04-29 22:33:15 +02:00
Markus Sattler
6bcb8198b8
add to ESP class:
...
getChipId
getSDKversion
getBootVersion
getBootMode
getCPUfreqMHz
add some defines for AVR like WDT control
2015-04-19 10:20:33 +02:00
Markus Sattler
8aa93b6bf6
add EspClass::getFreeHeap see #81
2015-04-19 09:50:58 +02:00
Markus Sattler
6cf87708c5
add void restart(void) and uint16_t getVCC(void) to Esp class
2015-04-17 11:05:02 +02:00
Ivan Grokhotkov
6b593a7978
Add ESP.reset() method
2015-04-12 02:07:56 +08:00
Ivan Grokhotkov
5c94d333c5
Add watchdog and deep sleep APIs
...
requested in #34
2015-04-11 10:58:57 +08:00