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

3779 Commits

Author SHA1 Message Date
Ruggero Tomaselli
a460cb7935
Add clear method to IPAddress (#7586) 2020-09-09 12:24:35 +02:00
Ruggero Tomaselli
08f170510d
Check also if IP is not IPADDR_NONE (#7585) 2020-09-09 12:03:41 +02:00
9bryan
8258db53da
Fix error message typo (#7581)
Sorry, I know it's little.  But it eats at me...
2020-09-07 10:46:13 -07:00
gnorbsl
88be34e2dc
Update certs-from-mozilla.py (#7578)
* Update certs-from-mozilla.py

Check if ar exists, if not tell the user what to get to prevent issue #7300 also dynamically get certs instead of hardcoded row item https://github.com/esp8266/Arduino/pull/7573#issuecomment-686192353
changed comment for missing ar exception
updated path and check for openssl
2020-09-07 15:06:36 +02:00
deive
bfecdb0e39
Update DigestAuthorization.ino (Simple example update) (#7579)
Simple example update to pass the method as a parameter to getDigestAuth(), so it is more easily used for POST.
Add setting the ransom seed to RANDOM_REG32 in setup() for better getCNonce() values.
2020-09-04 12:03:55 -07:00
Earle F. Philhower, III
2171a2e852
Fix gzip+signed OTA error (#7577)
The last 4 bytes of a GZIP file is the decompressed file length, and
are used in eboot to do sanity checks and know when decompression is
done.

Updater was incorrectly telling eboot to look at
"end-of-bin + sizeof(signing)", and when eboot did so it got an
incorrect value causing either the update to be skipped or for only a
portion of update to be completed.

Fix by adjusting the size back to the end of binary.
Fixes #7570
2020-09-04 08:57:03 -07:00
Valerii Koval
22a197eea1
Properly replace toolchain in PlatformIO CI script (#7580) 2020-09-04 18:15:02 +03:00
gnorbsl
e636a6587c
Update certs-from-mozilla.py (#7573)
Looks like Mozilla changed the csv, certs are now at row 32
2020-09-02 19:53:54 -07:00
Develo
d02bc02fac
Merge pull request #7547 from earlephilhower/noboom
Don't overwrite boot sector unless OTA changes it
2020-09-02 17:58:08 -04:00
Develo
f1c8982a9b
Merge branch 'master' into noboom 2020-09-02 16:21:04 -04:00
Dirk Mueller
8b7126d9e3
Fixup weird combination of oneline/multi line comments (#7566)
Although GCC seems to be able to grok it, it looks weird
in my editor. this is the only place in the code base where
this combination is used, so I hope its okay to remove it.
2020-09-02 08:55:44 -07:00
Dirk Mueller
df01d19d29
Reduce codesize of setOutputPower (#7572)
The logic can be simplified by using integer logic without a functional
change. Reduces code size by 40% (78 bytes -> 46 bytes) and silences
a Warith-conversion warning.
2020-09-02 08:47:48 -07:00
Develo
ca149a23c7
Merge pull request #7569 from standby24x7/tests-typo
Fix typos in tests
2020-09-01 12:10:17 -04:00
Masanari Iida
cbb44b2cc9 Fix typos in tests
This patch fixes some spelling typos found in tests directory.
2020-09-01 23:37:14 +09:00
Develo
885851a5ea
Merge pull request #7557 from dok-net/fixfix
Fixup #7554: Inline, fewer LOC, remove redundant definition in cpp.
2020-08-31 21:07:30 -04:00
Dirk O. Kaar
c74dcc924c Force gcc inlining, use same style for getCycleCount as for getCpuFreqMHz. 2020-08-31 15:59:52 +02:00
Dirk O. Kaar
400632f818 Even more concise #if form. 2020-08-31 15:59:52 +02:00
Dirk O. Kaar
72051eea91 Inline, fewer LOC, remove redundant definition in cpp. 2020-08-31 15:59:52 +02:00
Develo
5b767a37eb
new w/ OOM now aborts by defaults, or throw an exception (#7536)
* replace `new` by `new (std::nothrow)`, remove `arduino_new`

* deleted:    arduino_new/arduino_new.ino

* fixes

* remove (std::nothrow) where nullptr case is not handled
remove legacy new management

* new w/ OOM raises an exception, shows the caller address for decoders

* overwrite weak `new (std::nothrow)` calls

* fix displaying caller address

* board generator: remove comments, remove now useless define

Co-authored-by: Earle F. Philhower, III <earlephilhower@yahoo.com>
Co-authored-by: Develo <deveyes@gmail.com>
2020-08-31 01:19:20 -04:00
Develo
ef92ab28e1
Merge branch 'master' into stdnothrow 2020-08-30 23:27:08 -04:00
hreintke
be812d2a8d
Netump Initial commit (#7527) 2020-08-30 13:07:52 -07:00
Earle F. Philhower, III
247d5f1218
Merge branch 'master' into stdnothrow 2020-08-30 12:39:55 -07:00
Valerii Koval
b9db9440fe
Delete owner field (#7563) 2020-08-30 00:10:45 +03:00
Dirk Mueller
953dfd945f
Avoid float-double-conversion (#7559)
Converting floats to doubles is very expensive on esp8266, so prefer
calculations or comparisons as float. This saves 10% (20 bytes) of the
String::parseFloat() code size and probably quite a bit of runtime
overhead.
2020-08-28 17:09:44 -04:00
Dirk Mueller
59873908c4
Use direct member initialization instead of ctr initialisation (#7556)
This removes a bit of code repetition.
2020-08-28 10:23:05 -04:00
Earle F. Philhower, III
c366f84520
Add CI test for eboot build (#7546)
Check that building the eboot.c block generates the same binary as
the verison checked into the repo.  Catches the case where a library
or eboot.c file is changed, but an updated eboot.elf isn't included
in a PR.

Can't do simple binary diff of the ELFs because paths and compile
times will change, so dump the two sections we care about.
2020-08-27 18:32:58 -07:00
david gauchard
53e4dec51f
getCpuFreqMHz(): fix when F_CPU is not defined (#7554) 2020-08-27 21:56:03 +02:00
david gauchard
e53aa87160
emulation-on-host makefile update, allowing to pass more options (#7552) 2020-08-26 15:40:54 +02:00
5chufti
83535a01d2
add sdk options to "generic esp8285 module" (#7550)
* add sdk options to "generic esp8255 module"
upgrade esp8285 variant to full generic device
2020-08-25 16:14:14 +02:00
david gauchard
3ee6710fa5 board generator: remove comments, remove now useless define 2020-08-25 11:04:30 +02:00
david gauchard
f23e765ab1 fix displaying caller address 2020-08-25 11:00:48 +02:00
david gauchard
c111713208 overwrite weak new (std::nothrow) calls 2020-08-24 22:42:29 +02:00
david gauchard
2b6423edcc new w/ OOM raises an exception, shows the caller address for decoders 2020-08-24 22:15:33 +02:00
david gauchard
11f7d1766e remove (std::nothrow) where nullptr case is not handled
remove legacy new management
2020-08-24 09:51:58 +02:00
Earle F. Philhower, III
cf1b8e067a Don't overwrite boot sector unless OTA changes it
There is a window where the eboot sector is erased and
unwritten/partially written.  If there's a power cycle at this time, the
chip will brick due to eboot being corrupted.

Avoid this by checking if the new eboot 4K sector is identical to the
one already in flash, and if so don't rewrite it.
2020-08-23 19:33:58 -07:00
david gauchard
a16e1e5b8a fixes 2020-08-23 19:43:32 +02:00
david gauchard
f23caa2dcd Merge branch 'master' into stdnothrow 2020-08-23 19:28:21 +02:00
standby24x7
1ff927d04c
Fix spelling typo under doc/faq (#7538)
This patch fixes some spelling typo found in doc/faq.
2020-08-18 07:45:37 -07:00
Cristian Popescu
c33a6a261d
Updater MD5 cleanup on begin (#7534)
Co-authored-by: Cristian Popescu <cristian.popescu@esolutions.ro>
2020-08-17 17:26:22 -07:00
david gauchard
385bfd7635 deleted: arduino_new/arduino_new.ino 2020-08-17 18:23:44 +02:00
david gauchard
6925982284 replace new by new (std::nothrow), remove arduino_new 2020-08-17 18:15:45 +02:00
Earle F. Philhower, III
5b3d290de8
Add synthetic IntegerDivideByZero exception (#7496)
The ROM routine __divsi3 is called by code whenever a division is needed,
because there is no divide unit on the ESP8266 core.  When the divide
routine in ROM hits a div-by-zero case, it jumpt to an ILL(egal instruction)
at a fixed address which causes a HW exception 0 (IllegalInsnException).

In the postmortem dump, when an ILL exception is detected at this address
in ROM, convert it to a DivByZeroException for printout (6).

Divde by zero errors now print as follows:
````
--------------- CUT HERE FOR EXCEPTION DECODER ---------------
Exception (6):
epc1=0x4000dce5 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

>>>stack>>>
...
<<<stack<<<
--------------- CUT HERE FOR EXCEPTION DECODER ---------------
````

And will decode as follows:
````
Exception 6: IntegerDivideByZero: QUOS, QUOU, REMS, or REMU divisor operand is zero
PC: 0x4000dce5
EXCVADDR: 0x00000000

Decoding stack results
...
````
2020-08-16 17:50:17 -07:00
david gauchard
f42327da34
doc: gcc handles duplicate literal strings (#7531) 2020-08-16 17:43:15 -07:00
Earle F. Philhower, III
e2b8f6acfb
Update PIO CI to be less chatty, fix CI fail (#7530)
Remove get.py percent dump to shorten PIO output 99%.

Use latest release version of PIO, not bleeding edge, to fix
failures introduced in devel (non-release) PIO versions.
Thanks, @mcspr, for noticing this!
2020-08-16 11:41:42 -07:00
david gauchard
e0fedc577b
avoid circular #include dependence for PolledTimeout (#7356)
* move features to features.h

* fix std:: dependencies

* fix emulation on host

* api explanation
2020-08-15 15:24:35 -04:00
Develo
01edc0e51f
Fix and add details to Serial doc (#7521)
Fixes #7484

Clarify blocking case for write()

Add flush() method.

Missing ), clarifications
2020-08-13 16:41:57 -04:00
standby24x7
683b8e606c
Fix spelling typos in files under doc/esp8266wifi (#7520)
This patch fixes some spelling typos in following files
bearssl-client-secure-class.rst
client-class.rst
scan-class.rst
scan-examples.rst
server-examples.rst
2020-08-12 08:28:22 -07:00
david gauchard
6feda9ebda
base64 class uses String, adding harmless #include (#7517) 2020-08-11 14:30:39 +02:00
david gauchard
777323709b
webserver: add define WEBSERVER_HAS_HOOK when ::addHook() is present (#7515)
This allows conditional compilation for external libraries
2020-08-11 02:15:46 +02:00
Takayuki 'January June' Suwa
fc2426a5e9
sys/pgmspace.h: Refactor inline asm (#7510)
* Refactor asm tabs for `.S` cosmetics

* Avoid fixed regname (`a14`) allocation

* Remove unnecessary explicit cast and word masking
2020-08-08 17:29:30 -07:00