Commit Graph

10783 Commits

Author SHA1 Message Date
Prasad Alatkar
7252c99a14 BLE Mesh: Fix compilation for NimBLE-1.3.0 upgrade by typecasting adv data to void 2021-01-15 16:57:29 +00:00
Prasad Alatkar
8224aa69a2 NimBLE: Update NimBLE to latest 1.3.0 release 2021-01-15 16:57:29 +00:00
Mahavir Jain
526f682397 Merge branch 'bugfix/httpd_session_close_lru' into 'master'
esp_http_server: Add flag in sock_db to identify httpd_sess_close is called from httpd_session_close_lru

Closes IDF-2443

See merge request espressif/esp-idf!11543
2021-01-15 20:06:00 +08:00
Ivan Grokhotkov
9cb3ac94c4 Merge branch 'bugfix/linenoise_probe' into 'master'
console: fix linenoiseProbe never timing out

Closes IDFCI-387

See merge request espressif/esp-idf!12012
2021-01-15 19:31:14 +08:00
Mahavir Jain
c0d6b18e88 Merge branch 'bugfix/wifi_prov_zero_networks' into 'master'
wifi_provisioning: Add a check for number of scanned networks while allocating memory

See merge request espressif/esp-idf!8249
2021-01-15 19:22:05 +08:00
Jiang Jiang Jian
9ff1609a20 Merge branch 'feature/add_esptouch_v2' into 'master'
WiFi: add ESPTouch v2

Closes WIFI-942 and WIFI-2619

See merge request espressif/esp-idf!10093
2021-01-15 19:11:47 +08:00
Ivan Grokhotkov
9b2b86b7d9 console: fix linenoiseProbe never timing out
Fixes a regression from 753a92952: if cb was negative, read_bytes
overflowed, because the type was changed from int to size_t.

Also fixes incorrect timeout calculation: timeout_ms was 200, but
each iteration delayed for 10ms, and reduced timeout_ms by 1. This
made the effective timeout to be 2000ms.
2021-01-15 09:22:04 +01:00
ninh
27aa6c289f components/pm: Add slp gpio configure workaround 2021-01-15 15:34:45 +08:00
Ivan Grokhotkov
bba7826ac0 Merge branch 'feature/c3_gdb_stub_regard_uart' into 'master'
gdbstub: C3 - protection for UART register region

Closes IDF-2533

See merge request espressif/esp-idf!11745
2021-01-15 15:23:58 +08:00
Angus Gratton
19883d9799 Merge branch 'bugfix/fix_sign_conversion_warnign' into 'master'
freertos: Silence sign-conversion warning

Closes IDFGH-3949

See merge request espressif/esp-idf!10724
2021-01-15 14:40:59 +08:00
zhangyanjiao
1da9d9c356 esp_wifi: add esptouch v2
Closes https://github.com/espressif/esp-idf/issues/1311
2021-01-15 14:32:46 +08:00
Shubham Kulkarni
00876a8946 esp_http_server: Add lru_socket flag in sock_db to indicate httpd_sess_close is called from httpd_sess_close_lru 2021-01-15 05:53:41 +00:00
Michael (XIAO Xufeng)
b94c99a033 Merge branch 'feature/c3_twai_bringup' into 'master'
TWAI: bringup for S3 & C3

Closes IDF-2109 and IDF-1770

See merge request espressif/esp-idf!11984
2021-01-15 13:46:21 +08:00
Angus Gratton
ca7cc79d6b Merge branch 'feature/c3_stack_watchpoint' into 'master'
c3 stack watchpoint

Closes IDF-2307

See merge request espressif/esp-idf!11576
2021-01-15 13:28:56 +08:00
Piyush Shah
388f4fd7ef wifi_provisioning: Add a check for number of scanned networks while allocating memory
If number of scanned networks is zero, while getting the list, since we try
to allocate zero bytes, we get a NULL pointer in response. This is considered
as an error and the provisioning worflow breaks there.
Adding a check before allocation resolves the issue.
2021-01-15 05:01:35 +00:00
Angus Gratton
317c882133 Merge branch 'bugfix/elf_sha256_first_byte_skip' into 'master'
app_update: fix incorrect first byte from esp_ota_get_app_elf_sha256

Closes IDFGH-4572

See merge request espressif/esp-idf!11981
2021-01-15 06:55:15 +08:00
Marius Vikhammer
0713e93b8f TWAI: bringup for S3 and C3 2021-01-14 20:30:31 +08:00
Michael (XIAO Xufeng)
19d92ef6b2 Merge branch 'fix/tinyusb_cdc_remove_logv_assert_mutex_fail' into 'master'
tinyusb: reduce annoying log under verbose level in CDC

See merge request espressif/esp-idf!11934
2021-01-14 19:28:31 +08:00
Michael (XIAO Xufeng)
ea996df725 Merge branch 'feature/rmt_support_user_context_in_translator' into 'master'
rmt: support user context in translator

Closes IDFGH-4135 and IDFGH-3237

See merge request espressif/esp-idf!10894
2021-01-14 19:26:26 +08:00
Krzysztof Budzynski
8df9e67f15 Merge branch 'bugfix/show_missing_function_descriptions' into 'master'
docs: Update typos in 'esp_efuse.h' header file to show function descriptions

See merge request espressif/esp-idf!11923
2021-01-14 18:13:02 +08:00
Jakob Hasse
b51889dccb system: stack watchpoint support on C3
Closes IDF-2307
2021-01-14 17:46:44 +08:00
Mahavir Jain
569ebc181a Merge branch 'feature/enable_wifi_provisioning_for_esp32c3' into 'master'
wifi_provisioning: enable component build for ESP32-C3

Closes IDF-2251

See merge request espressif/esp-idf!11749
2021-01-14 17:35:12 +08:00
Itay Perl
563bc5d19d app_update: fix incorrect first byte from esp_ota_get_app_elf_sha256
At -O2 optimization level, GCC seems to optimize out the copying of the
first byte of the checksum, assuming it is zero. This "miscompilation"
happens because the esp_app_desc struct is declared const, but then modified
post-compilation. Casting to volatile disables the optimization.

Closes: https://github.com/espressif/esp-idf/pull/6389
2021-01-14 17:10:49 +08:00
Island
1e73d90c29 Merge branch 'bugfix/bluedroid_avoid_same_bdaddr_conn' into 'master'
Bluedroid: Do not connect if peer BD_ADDR is same as own BD_ADDR.

See merge request espressif/esp-idf!11806
2021-01-14 14:47:21 +08:00
Mahavir Jain
ccf89cd4bf wifi_provisioning: fix build warnings due to incorrect event handler argument type 2021-01-14 10:47:35 +05:30
Mahavir Jain
533c124280 wifi_provisioning: enable component build for ESP32-C3 2021-01-14 10:47:35 +05:30
Angus Gratton
a0eab085ad Merge branch 'bugfix/return_EINVAL_if_truncate_length_minus_zero' into 'master'
fatfs: return EINVAL if truncate length is less than 0

Closes IDFCI-390

See merge request espressif/esp-idf!11980
2021-01-14 12:03:14 +08:00
morris
95e712039c rmt: add workaround to get user context in a graceful way 2021-01-14 11:01:41 +08:00
Michael (XIAO Xufeng)
2d3f22918f Merge branch 'feature/gdma_channel_allocator' into 'master'
gdma channel allocator

Closes IDF-2124

See merge request espressif/esp-idf!11570
2021-01-14 10:52:49 +08:00
Nishanth Samala
21bb6f2334 rmt: support rmt user context in translator
Merges https://github.com/espressif/esp-idf/pull/6002
2021-01-14 10:51:25 +08:00
Renz Bagaporo
ff2d9fd96c [freertos] Silence sign-conversion warning 2021-01-14 10:54:15 +11:00
Angus Gratton
92ae75f955 Merge branch 'feature/support_serial_port_env_args_in_tools' into 'master'
Support port and baud env args for otatool targets

Closes IDFGH-3289

See merge request espressif/esp-idf!10812
2021-01-14 07:51:45 +08:00
Angus Gratton
401ad7f2e1 Merge branch 'bugfix/c3_retention_memory_aligned_alloc' into 'master'
heap: support aligned_alloc for retention memory on ESP32-C3

See merge request espressif/esp-idf!11974
2021-01-14 06:38:09 +08:00
morris
e9c131e174 fatfs: return EINVAL if truncate length is less than 0 2021-01-13 19:11:48 +08:00
Mahavir Jain
09604d6519 Merge branch 'bugfix/softap_prov_cookies' into 'master'
protocomm_httpd: Use HTTP cookies to track session

Closes IDFGH-4487

See merge request espressif/esp-idf!11883
2021-01-13 18:10:55 +08:00
jiangguangming
47f469b238 heap: support aligned_alloc for retention memory on ESP32-C3 2021-01-13 14:41:22 +08:00
Jiang Jiang Jian
7ef49203bd Merge branch 'bugfix/wifi_fix_no_tbtt_in_station_softap_mode_when_listen_interval_sleep' into 'master'
esp_wifi: fix the issue that no tbtt is generated in station+softap mode when maximum modem sleep is enabled

See merge request espressif/esp-idf!11658
2021-01-13 14:17:08 +08:00
Angus Gratton
f683db7aea Merge branch 'feature/c3_IDF-2554' into 'master'
global: Uses CCOUNT API instead of XTHAL macro

Closes IDF-2554

See merge request espressif/esp-idf!11954
2021-01-13 12:55:21 +08:00
Angus Gratton
820639cede Merge branch 'bugfix/c3_init_priority' into 'master'
fix[cxx/system]: init_priority ordering on RISCV

Closes IDF-2206 and IDFGH-4527

See merge request espressif/esp-idf!11660
2021-01-13 12:52:21 +08:00
Angus Gratton
9769be3fde Merge branch 'bugfix/fix_sign_compare' into 'master'
global: fix sign-compare warnings for system level components

See merge request espressif/esp-idf!11252
2021-01-13 12:45:05 +08:00
Piyush Shah
541cf16c9e protocomm security1: Restart security session if SESSION_STATE_CMD0 is received
With the introduction of cookies to track a session, it is possible that the
clients restart the provisioning on the same session, specifically when a user
cancels a current provisioning attempt. This can result in an error as the state
on the device side and client side will go out of sync.

This has now been changed such that if SESSION_STATE_CMD0 is received on
an existing session, the state is reset and flow allowed to continue.
2021-01-13 04:34:10 +00:00
Piyush Shah
72fa8d0750 protocomm_httpd: Use HTTP cookies to track session
Earlier, a "socket connection" was being considered as a protocomm "session".
However, for HTTP, we cannot expect clients to necessarily use the same
socket for all requests of a given transaction. This was indeed causing
some failures for Wi-Fi provisioning from Android phones.

So, we have introduced http cookies to track a session even if the socket
connection does not stay intact throughout the transaction.
This change is backward compatible. If the client does not use cookies, the
socket connection will be considered as the session.

Closes: https://github.com/espressif/esp-idf/issues/6316
Reference: https://github.com/espressif/esp-idf/pull/6330
2021-01-13 04:34:10 +00:00
Xia Xiaotian
50681db44c esp_wifi: fix the issue that no tbtt is generated in station+softap mode when
maximum modem sleep is enabled

    close https://github.com/espressif/esp-idf/issues/6006
2021-01-13 04:20:23 +00:00
Jiang Jiang Jian
26418edc85 Merge branch 'bugfix/IDFCI-377-tag' into 'master'
ci: Fix ci IDFCI-377

Closes IDFCI-377

See merge request espressif/esp-idf!11919
2021-01-13 11:59:16 +08:00
morris
40a6a0fac6 async_mcp: apply gdma driver 2021-01-13 10:52:27 +08:00
morris
e6d23a35ec gdma: dynamic alloc DMA channels 2021-01-13 10:52:27 +08:00
Krzysztof Budzynski
e277d8ef23 Merge branch 'bugfix/esp_sntp_header' into 'master'
docs: Add esp_sntp to API reference as it's default idf header

Closes DOC-854

See merge request espressif/esp-idf!11796
2021-01-13 10:28:39 +08:00
David Čermák
76f6dd6214 lwip: Moved default SNTP API to esp_sntp.h
and make sntp.h in port folders of lwip component obsoleted
2021-01-13 10:28:34 +08:00
ninh
6dd6c8c3cf ci: fix IDFCI-377 2021-01-12 13:04:53 +00:00
David Cermak
a807f8e263 lwip: Fixed minor debug print format issue
This caused some unsigned int prints out to be printed as singed integer which made the logs unreadable, for example sequence numbers in TCP packet headers
2021-01-12 11:57:49 +00:00