1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

166 Commits

Author SHA1 Message Date
david gauchard
cbfbc1ad63 lwip2 fixes and time/ntp management
core: +settimeofday()
core: +coredecls.h +sntp-lwip2.c
core: fix clock_gettime() with micros64()
core: honor DST in configTime()
core: internal clock is automatically started
examples: +esp8266/NTP-TZ-DST.ino
lwip2: sntp client removed
lwip2: fix crashing with WiFi.softAPConfig(ip,ip,ip)
fix #3852
2017-11-21 10:50:48 +08:00
david gauchard
7315095e46 lwip2: build: include and lib 2017-11-03 10:09:53 +08:00
david gauchard
84cf2f4b5e lwip2: automatically clone lwip's git 2017-11-03 10:09:53 +08:00
david gauchard
32f6826dcf lwip2 integration 2017-11-03 10:09:53 +08:00
Ivan Grokhotkov
5c01841430 sdk: update to v2.1.0-14-g33f234f
33f234f4a6
2017-10-31 02:05:40 +08:00
Ivan Grokhotkov
84512ec811 fixes for SDK update
- recompile liblwip_gcc.a with new err_t definitions
- update espconn.h (function signature change, new function)
- add option to build lwip with debug-prefix-map
2017-10-15 14:59:37 +08:00
Ivan Grokhotkov
e04903225e sdk: update to v2.1.0-10-g509eae8 2017-10-15 01:40:10 -05:00
Ivan Grokhotkov
f85f8269b7 axtls: update to 24af415
Clear bigint cache once certificates and keys are loaded, and also
during verification. Can save up to 3kB of heap in a typical use case.
2017-10-08 05:00:08 +08:00
Ivan Grokhotkov
80e9a841d6 axTLS: update to 49b9deb
- Upstream fix: Fixed issue with pathlen=0 for root certs

Fixes #2711, #3340
2017-10-02 00:26:43 +08:00
Ivan Grokhotkov
c8947953ac axtls: update to 66d530a, fixes #3335
SHA512 module stored padding in PROGMEM, but would then pass the pointer
to padding into Update function which would do a memcpy. Use the same
approach as with SHA256, that is to copy padding to the stack first, and
then pass it to Update.
2017-09-20 11:37:26 +08:00
Ivan Grokhotkov
3e9caf7a3d tools/sdk: remove conflicting time.o from libmain.a 2017-09-15 05:55:00 -05:00
Ivan Kravets
ff4bb73084 Integration with @PlatformIO Build System 2017-08-07 15:41:35 +03:00
Shelby Merrick
d425438839 Replace r_rand with os_random for LWIP_RAND() (#3499) 2017-08-07 15:40:11 +03:00
Earle F. Philhower, III
a662e81146 Move ASSERT() macro file text to PMEM (#3477)
Every assert() includes a __FILE__ constant string to RODATA which
can be quite large as it includes the complete path as well as
the filename.

Move that string into PMEM, and update the postmortem to work with
either PMEM or RAM strings for dumping abort/assert/exception
information.
2017-08-01 18:37:26 +03:00
Ivan Grokhotkov
f05ed6e27d Update axTLS to 5de79d71.
Includes two PRs:

- https://github.com/igrr/axtls-8266/pull/46 by @earlephilhower:
  Move debug strings from RAM to Flash

- https://github.com/igrr/axtls-8266/pull/50:
  Fix memory leak in ssl_ext_host_name
2017-07-23 16:15:37 +08:00
Charles
0b47911b69 Added 1M (No SPIFFS) board option (#3203) 2017-05-12 02:51:20 -05:00
Ivan Grokhotkov
03baea27ef ArduinoOTA: forward errors from Update.begin to espota.py
If Update.begin fails, instead of printing “No response from device”,
espota.py will print the actual error message from the Updater.
2017-05-09 06:17:06 -05:00
Ivan Grokhotkov
1d41859238 axTLS: update to 1b2c299
Includes memory optimizations (less .rodata, less heap)
2017-05-09 17:40:52 +08:00
Trygve Laugstøl
2d9e767630 Fixing a few compiler warnings to allow compilation with -Wall -Wextra and -Werror. (#3153) 2017-05-08 04:56:08 -05:00
Ivan Grokhotkov
c5c138ec5a axtls: update to bddda2a0
- update ssl_client_new signature
- add max fragment length negotiation support (hardcoded to 4096 bytes)
- build axtls with -f{function,data}-sections, ~1k less DRAM usage,
  ~3k less flash
- strip prefix from build paths in debug symbols
2017-04-29 22:58:19 +08:00
Ivan Grokhotkov
93413efcf4 Remove queue.h contents originating from BSD (#2982)
fixes #2981
2017-02-19 05:36:30 +03:00
Matt
cc84a64793 Set DHCP subnet correctly for softAP (#2648)
Removes hard coded subnet of 255.255.255.0 and fetches the correct subnet from wifi_get_ip_info()
2017-02-03 10:27:06 +03:00
Ivan Grokhotkov
ae13809c81 Update SDK to 2.0.0
- Update SDK header files and libraries to SDK 2.0.0 plus 2.0.0_16_08_09
  patch
- Remove mem_manager.o from libmain.a (replaced with umm_malloc)
- Disable switch from DIO to QIO mode for certain flash chips (saves
  IRAM space)
- Add user_rf_cal_sector_set; it points to rf_init_data sector.
- Change the way rf_init_data is spoofed.
  This is now done by wrapping spi_flash_read and returning the data we
  need during startup sequence.
- Place lwip library into flash using linker script instead of section
  attributes (saves IRAM space)
2017-02-03 04:21:20 +03:00
hreintke
f18b18d53d move libstdc++ to flash (#2804)
* move stdc++ to flash

* Update : change tab to leading spaces, correct indentation
2017-01-17 10:08:11 +08:00
Ivan Grokhotkov
c2414a2252 Update axTLS to 144994c
https://github.com/igrr/axtls-8266/pull/23
2016-08-29 13:48:54 +08:00
Ivan Grokhotkov
35ee060c09 axTLS: update to d26f23a (2.0.0+) 2016-08-25 12:49:32 +08:00
Me No Dev
7746288b41 fix mdns.h guard defines (#2396) 2016-08-18 10:19:56 +03:00
Jean-Baptiste
db5e20f237 proposal for issue #1845 wifi_wps_status_cb get an undefined status 4 and missed wifi_wps_disable (#2312) 2016-08-01 11:46:29 +08:00
Me No Dev
f50a6c0a8a Add support for 8 and 16 MB Flash (#2351)
Add to core dev config initially
2016-08-01 11:20:53 +08:00
Me No Dev
07f4d4c241 Lwip addons (#2260)
* Add multicast TTL to UDP and rework UdpContext

* Add limit for TCP TIME_WAIT pcbs

* Add liblwip_gcc.a

* Make the changes be backward compatible with the current xcc version
2016-07-11 21:07:45 +08:00
mmarchese1
24f84664e7 fixed argument passing (#2209)
Using espota.py as a module by calling espota.main(args) was not working because the args given to main were not being passed into parser.parse_args().  I fixed this by having main pass args to the parser function, which in turn passes them to the parser object's parse_args() function.
2016-07-06 10:59:23 +08:00
Me No Dev
79ce12247e add option to define hardware folder as parameter (#2230)
current hardware folder used for the core is wrong, but I have not come
up with a way to properly configure it
2016-07-05 14:22:54 +08:00
Ivan Grokhotkov
1588b45a8a Force core_version to be added to compiled binary 2016-06-24 10:54:51 +08:00
Ivan Grokhotkov
93d627a61d Update SDK to 1.5.4 (#2138) 2016-06-23 18:39:40 +08:00
Ivan Grokhotkov
1e7e5d4e96 Fix _packed redefinition 2016-06-23 17:53:25 +08:00
Ivan Grokhotkov
d7d98d03ca Use libc from newlib (#1752)
* Use newlib libc library

This change adds libcmin.a, which is created from newlib libc by selectively removing some of the object files (mostly related to heap management).
The list of files is available in tools/sdk/lib/make_libcmin.sh. Files which are not needed are commented out.
This change adds support for various functions which were missing, like sscanf, strftime, etc.

* Fix some of the time functions

* Redirect stdout to serial

* Implement __putc_r

* Switch to custom newlib build

Built from https://github.com/igrr/newlib-xtensa using:
./configure --with-newlib --enable-multilib --disable-newlib-io-c99-formats --enable-newlib-supplied-syscalls --enable-target-optspace --program-transform-name="s&^&xtensa-lx106-elf-&" --disable-option-checking --with-target-subdir=xtensa-lx106-elf --target=xtensa-lx106-elf --enable-newlib-nano-formatted-io --enable-newlib-reent-small  --prefix=path-to-arduino-core/tools/sdk/libc
CROSS_CFLAGS="-DMALLOC_PROVIDED -DSIGNAL_PROVIDED -DABORT_PROVIDED" make
make install

* Update tests
2016-06-23 17:27:57 +08:00
Ivan Grokhotkov
6f3785b4b7 sntp_localtime: return -1 in tm_isdst field (#2010) 2016-06-13 15:29:05 +08:00
Ivan Grokhotkov
fc80526ebf Remove symbols defined in abi.cpp from libstdc++ 2016-06-13 15:02:59 +08:00
Ivan Grokhotkov
9dd7910aed Enable SO_REUSE in LwIP and WiFiServer (#1431) (#2140) 2016-06-13 10:36:10 +08:00
Ivan Grokhotkov
0f0386e3c4 Update axTLS to ab516f7
fe6e51a...ab516f7
2016-06-13 00:56:38 +08:00
Ivan Grokhotkov
6bb8e1145b Rebuild libstdc++ with mlongcalls and link against it (#1983) 2016-06-07 22:47:35 +08:00
Ivan Grokhotkov
32bd42b028 Store git version of the core in the compiled binary (#2099)
* Store git version of the core in the compiled binary

* Don't update version number when using boards manager package
2016-06-06 14:37:39 +08:00
Ivan Grokhotkov
9e60d4d463 Update axTLS to fe6e51a (1.5.3+) 2016-06-01 17:40:04 +08:00
Ivan Grokhotkov
e8b8a606e4 Update axTLS to 139914f
- Fix occasional software WDT due to lengthy bigint operations
- Implement truly blocking reads as a workaround for half-duplex nature of axTLS
2016-05-10 23:34:33 +08:00
Ivan Grokhotkov
a2b82ed6b6 Use gcc-built LwIP by default (#1926)
It is still possible to use xcc-built LwIP by selecting "Core Development" board from tools menu.
2016-05-06 20:09:15 +08:00
Ivan Grokhotkov
0b7f8f9773 Fix crash in igmp_start_timer (#1826) 2016-05-06 19:45:21 +08:00
Ivan Grokhotkov
f266f8a2ff Update SDK to 1.5.3 2016-05-06 19:33:48 +08:00
Ivan Grokhotkov
234a8743c9 Fix NMI interrupt handler alignment
as suggested at http://www.esp8266.com/viewtopic.php?f=6&t=4675&start=48#p46002
2016-04-26 16:28:45 +08:00
Ivan Grokhotkov
c8a1507504 Update axTLS to 69c757f
Fix issue with handling of large certificates (#1816)
2016-04-19 09:32:51 +03:00
Ivan Grokhotkov
39fc85fa10 Merge pull request #1931 from andig/andig-patch-2
Python 3 compatibility
2016-04-19 08:52:00 +03:00