1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-10 04:22:05 +03:00
Commit Graph

4405 Commits

Author SHA1 Message Date
6ad9bf3b07 Expand the esp8266 hardware debugging limitations section (#8879)
It's trivial to run into a problem caused by the single hardware breakpoint
limitation, but the existing documentation doesn't explicitly address this
situation (and search results for the error message aren't particularly
helpful).

This commit updates the documentation with an explicit example of what
happens when a breakpoint expression matches multiple locations, along with
a possible workaround.
2023-03-11 12:44:50 +01:00
503502f13b Weak assignment in flash_hal (#8884)
The assignment done in FLASH_MAP_SETUP_CONFIG_ATTR did not apply the attribute to __flashdesc,
and made it impossible to override it with FLASH_MAP_SETUP_CONFIG.
2023-03-11 11:43:03 +01:00
32323e55b5 fix library name in library.properties (#8880) 2023-03-06 16:03:45 +01:00
74e02d1a6f basichttpsclient example: fingerprint handled by update scripts (#8311)
* basichttpsclient example: fingerprint handled by update scripts
2023-03-06 15:05:36 +01:00
be02af0504 Remove stale patch for SDK v1.1 and earlier (#8858)
rts_reg address referenced was not valid for SDK v2.0.0 and up.
rts_reg[30] = 0; cleared storaged used to set TestStaFreqCalValInput.
2023-02-23 01:02:55 +03:00
71a51b1113 Resolve Windows path problems (#8860)
Moved up os.makedirs for ./core/ directory.
Strange problem creating files with file paths with spaces.
Strange that "create file" would work when the path did not contain spaces and the last folder of the path hadn't been created.

Added try/except on main to commit print buffer on traceback for context.

Additional issues with diacritics and locale character encoding for shell vs source code.
build.opt is written with the same encoding as the shell; however, the data read from the Sketch.ino.global.h is UTF-8.

Tested on Windows 10 (en-US) with Arduino IDE 2.0.3 Under an
account with a diacritic character in the user ID path.

Needs testing on Japanese Windows
2023-02-22 20:46:25 +03:00
d7cd4bef6c make http-server less verbose in debug mode (#8850)
* make http-server less verbose in debug mode
2023-02-05 18:17:28 +01:00
9a3d55c781 Fix String build warning with DEBUG_ESP_PORT but without DEBUG_ESP_CORE (#8849) 2023-02-05 15:35:56 +03:00
badb407bbb Update SdFat fork (#8844)
SdFat 2.0.2+ doesn't call yield(), make sure we don't trigger SWDT

fix #8822
2023-02-02 18:21:11 -08:00
326be35c88 Postmortem improvements (#8839)
* divide by 0 reporting to point back at the divide function caller
* stack offset adjustments to be independent of __wrap_system_restart_local()'s stack frame size.
2023-02-01 18:57:32 +03:00
1beca6f4da Fix LowPowerDemo.ino (#8841)
CRC checking of data read from RTC was always true
2023-02-01 18:31:20 +03:00
6dfebec8c5 SdFat -> FS HAL mode fixes & test (#8833)
* re-use SdFat access mode through static const, no need to hard-code our own value w/ cast in the macro
* separate read-modes from flags; read, write and rw are distinct numbers
* simple compile-time tests in .cpp

resolve #8831
2023-01-31 22:28:37 +03:00
d7da591ed8 Revert ESPSoftwareSerial from v7 to v6
7.0.0 includes a breaking change to onReceive callback
https://github.com/plerup/espsoftwareserial/releases/tag/7.0.0
2023-01-30 18:23:57 +03:00
e25f9e9578 Safeguard for Ticker internal storage that may be changed during callback execution (#8820)
Temporarily move callback into the function scope and execute it from there.
Detaching would no longer destroy it, and re-scheduling would no longer be almost immediately cancelled by our code.
2023-01-26 15:50:14 +03:00
9c4a1239da String: informative messages on issues (#8821)
Always enable messages when serial debug port is enabled
Allocation issue was not reported
2023-01-26 14:45:09 +03:00
79dde219c5 Don't use -g++ or -gcc suffixes in command line arguments (#8829)
It may confuse some greedy parsers matching compiler either with a glob
or by iterating each argument and not stopping on the first one

ref. this library used by VSCode Arduino extension
ce12578557/src/ParserGcc.ts (L63-L68)

fix #8809
2023-01-26 14:20:17 +03:00
a9675ca837 emulation on host: fix UDP seek&peek (#8827) 2023-01-24 13:44:50 +01:00
cf24024292 New handling of missing perferences.txt in mkbuildoptglobals (#8814)
* Only rely on `perferences.txt ` when requested
* Always assume shared `core.a` caching is in use
* Ignore the passed-in IDE version. Too often, the value is not correct
2023-01-22 11:19:38 +03:00
bed2fa339d HTTPClient example: Fix typo (#8819)
fix from [HTTP} to [HTTP]
2023-01-20 15:47:42 +01:00
56107fb1f9 Properly handle u8 pointers when assigning and comparing (#8818)
* simplify ctors and operator=, use a common code paths instead of special handling here and there
* fix u8->u32 casts, copy before using u8 data
* do not use raw_address() internally
2023-01-20 12:26:12 +03:00
41c2be2068 Fix mkbuildoptglobals script not finding preferences.txt (#8812)
Also fixes os.utime usage on windows, as it does not accept file descriptors instead of file paths
2023-01-19 00:34:14 +03:00
39b41379ee Log all exceptions in upload.py (#8813)
Currently some exceptions cause a exit code 2, but without any relevant error message.

As an example, I had an issue with my USB drivers. But the only message I saw using the Arduino IDE was: uploading error: exit status 2. With this code change I could see a more specific Resource busy error message, which helped me identify the actual problem.
2023-01-18 05:16:48 +03:00
6af463baaf Back to 3.2.0-dev (#8807) 2023-01-15 02:47:00 +03:00
0e5d358c3c Version 3.1.1 (#8806) 3.1.1 2023-01-15 02:01:02 +03:00
6033ed35d5 Use subprocess.run in elf2bin (#8799)
Properly handle Popen object, it takes care of everything we need to do like .communicate() and handle timeouts. Introduce a small timeout to run so we also know when that happens
Clean-up with pythonic path join and formatting through f"" strings
2023-01-15 00:59:33 +03:00
39080e317e delay / esp_delay: transparently manage recurrent scheduled functions (#8802)
Recurrent scheduled functions will always be running in background.

esp_delay()'s interval (intvl_ms) is internally kept to its highest value allowing to honor recurrent scheduled functions requirements.

It transparently allows to keep with the arduino and nonos-sdk trivial programming way and still use background services or drivers running regularly.
2023-01-14 22:25:57 +01:00
e1c4a6c8e6 Portable python fix for mkbuildopts (#8804)
see #8226
mentioned in #8803
2023-01-14 21:22:28 +03:00
840ef78237 Fix C builds (#8795)
Missing stdbool.h for 'bool' in features .h, at least one user is arduinoWebSockets
Adds minimal headers sanity-check script to verify that C builds work as expected

Also noticed and removed default argument from crc32() in internal .h that may be used in .c
(not sure how extern C & default worked simultaniously, but at least in our .cpp Gcc somehow figured out it is a no overload solution)
2023-01-11 03:48:30 +03:00
7e2da8b25b Typo in EAP patch (#8797)
NONOSDK22x_191124 -> NONOSDK22x_191024
2023-01-09 21:36:26 +03:00
df59774eb5 Pointer<->Int casts are not constexpr (#8796) 2023-01-09 21:07:57 +03:00
c8dcdede34 Remove 400b stack allocation from AdvWeb example (#8793)
The AdvancedWebServer.ino example allocated a 400 byte char array on the
stack which, in the case of the example, will work but in general is a
dangerous thing to show new users to try.

Instead, use a StreamString to generate the string on the heap.
2023-01-07 10:01:56 -08:00
a76852a991 Fixup and hedgedoc (#8792) 2023-01-06 16:18:49 -08:00
a79b8f219c fix printf format in updater debug messages (#8791) 2023-01-07 00:31:01 +01:00
a276195731 Document updating the GitHub deployment keys (#8790) 2023-01-07 00:17:29 +01:00
3212f15cef back to dev (#8789) 2023-01-06 23:39:04 +01:00
8ae300d476 release 3.1.0 (#8788) 3.1.0 2023-01-06 22:06:06 +01:00
66ecc33916 Move C++ constructor and destructor tables from .bss to .irom0 (flash) (#8737) 2023-01-05 17:33:00 +03:00
f06710eb6e hostByName timeout fixes (#8787)
* single impl
2023-01-05 14:29:14 +01:00
3e357f32b1 Allow passing beacon interval to SoftAP config (#8695)
allow passing beacon_interval to the softAP
2023-01-05 09:54:05 +01:00
3f394616a6 Passing custom HTTPClient to HTTPUpdate (#8773)
This enables passing additional headers to HTTP query.
Based on ESP32 HTTPUpdate functionalities.
2023-01-05 09:38:12 +01:00
7cfb551f90 PHY status API for ethernet drivers (#8784)
* PHY status API for W5500 & ENC28J60 drivers
* move linkStatus() from ArduinoEthernet:: to LwipIntfDev::
* LwipIntfDev: include PHY status into ::connected()
2023-01-05 09:23:57 +01:00
c9f90a3ed3 Update to LittleFS 2.5.1 (very minor update) (#8786) 2023-01-04 14:48:57 +01:00
5a3da9a7d8 Fix Stream::parseFloat() (#8785)
cherry-pick updates for Stream::peekNextDigit() from AVR implementation: decimal dot is optionally allowed
2023-01-03 22:14:10 +03:00
204d2c93a7 NONOS SDK clean-up (#8770)
Remove nonos-sdk-v2.2.0-28-g89920dc aka 3v0, since we have a real v3
Remove 3.0.0...3.0.4 to reduce overhead in maintaining a bunch or binary patches
Update our docs and menu opts to mention 'experimental' status

Old versions still remains in git history, so anyone wanting to play around with 3.0.x could still make use of that work
2023-01-03 01:40:53 +03:00
3f1d608a19 EspSoftwareSerial release 7.0.0 with fix for compiler error (constexpr instance member function) and Rx IRQ callback (#8781) 2022-12-31 10:55:37 -08:00
137d421fdd Fix flashinit panic not printing (#8762)
* fix panic not printing

* improve panic to accept 0 lineno

* always present detailed error message

* Added back lost edit

* For SDK v3.0+, adjust conditional build to remove duplicate call
to flashinit from user_init.
2022-12-22 19:13:01 +03:00
edfde6ba1a lwip2: cleanup logging and use newlib printf (#8769)
https://github.com/d-a-v/esp82xx-nonos-linklayer/pull/61
2022-12-21 11:35:23 +03:00
4a639ab015 Added missing DRAM fallback to pvPortCallocIram, pvPortZallocIram, and (#8765)
pvPortMalloc(,,,true) case. Improved comments.
2022-12-19 20:51:12 +03:00
59b5bbab7a Resolve flash address issues with SDK v3.0.0 (#8755)
* Reslove flash address issues with SDK v3.0.0

Fix EEPROM vs RF_CAL flash address conflict. The EEPROM address and
RF_CAL address were the same.

Add support for Flash size: "Mapping defined by Hardware and Sketch"

Change at_partition_table static from dynamic to static.

* Cleanup and improve comments

* Improve flash size and partition error reporting/indication

Changed set_pll() to mmu_set_pll() and made available for debug builds
and other settings where required.

Provide more checks and feedback in the debug builds and
trim code for production.

* Now supports FLASH_MAP_SUPPORT with SDKs v3.0

RF_CAL and system_parameter always occupy the last 5
sectors of flash memory.

* cleanup and refactoring
comment cleanup

* Add more build issolation when including flash_hal.h

* Improve details for autoconfig fail.

* requested changes
2022-12-19 19:44:26 +03:00
b565b8686d Optimize disconnect method in WiFiSTA class (#8760) 2022-12-16 14:22:26 +01:00