Ivan Grokhotkov
05aab5c0b9
newlib: force including IDF locks implementation
2019-04-10 13:52:30 +08:00
Ivan Grokhotkov
898b4bdf4d
newlib: when compiling with GCC8, use newlib headers and libraries from toolchain
2019-04-10 13:52:30 +08:00
Ivan Grokhotkov
8c2f2867d8
esp_rom: don’t include locale functions when compiling with newlib 3
2019-04-10 13:52:30 +08:00
Ivan Grokhotkov
e84b26f531
esp_rom: export newlib functions as strong symbols
2019-04-10 13:52:30 +08:00
Ivan Grokhotkov
31b4fc8eb8
pthread: add dummy implementation of pthread_setcancelstate
...
Used by new versions of newlib in stdio functions.
2019-04-10 13:48:57 +08:00
Ivan Grokhotkov
d15e18aa5d
newlib: fixes for compatibility with newlib 3.0
2019-04-10 13:48:57 +08:00
Ivan Grokhotkov
4770acf1cb
newlib: add missing tzset() to the time test
2019-04-10 13:48:57 +08:00
Ivan Grokhotkov
7027d2dfe8
spi_master: compile as C11 due to use of stdatomic.h
...
stdatomic.h is available both in newlib and GCC include directories.
Normally (if you invoke the compiler without any flags) GCC include
directories are first on the list, so GCC’s stdatomic.h is used. In
IDF, we used to pass newlib include path as an extra include
directory, so newlib’s stdint.h got included instead.
Newlib 2.2.0 stdatomic implementation is compatible with -std=gnu99
but incompatible with -std=gnu11. And GCC doesn’t support atomic_load
with -std=gnu99 (it’s a C11 feature). So when we used atomic_load
with -std=gnu99, it worked due to newlib’s header.
Since we are no longer going to be including newlib headers into IDF,
GCC stdatomic will be used instead. Hence, add -std=gnu11 for source
files which use atomic features.
2019-04-10 13:48:57 +08:00
Vikram Dattu
a875505546
Fix url redirection issue.
...
Operation:
In `esp_http_client_set_url`, we check for if old_host is same as new_host.
Delete and open new connection if host is different.
Issue:
We just pointed `client->connection_info.host` to `old_host` and reassigned it.
This made old_host and new_host always point to same location and hence, using old_host with new request.
Fix:
Made a separate copy for old_host using strdup.
Closes https://github.com/espressif/esp-idf/issues/2631
Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
2019-04-10 05:40:16 +00:00
Angus Gratton
c064e00842
Merge branch 'bugfix/make_bootloader_depends_on_target' into 'master'
...
make bootloader depend on IDF_TARGET
See merge request idf/esp-idf!4704
2019-04-10 13:07:52 +08:00
XiaXiaotian
c580eecf89
esp32_wifi: fix the issue that the spike transmit power of WiFi is higher
...
than configured when WiFi and Bluetooth coexist
2019-04-10 10:19:55 +08:00
Jiang Jiang Jian
83d2ff07c6
Merge branch 'bugfix/increase_block_scan_timeout_value' into 'master'
...
esp_wifi: increase block scan timeout value
Closes WIFI-396
See merge request idf/esp-idf!4695
2019-04-09 20:45:21 +08:00
Wangjialin
448d32bc53
bugfix(psram): improve spi cs timing settings for psram
...
1. remove redundant SPI clock settings, use rom functions to set clock.
2. remove redundant SPI cs setup and hold settings.
3. for old 32Mbit psram, cs hold time must only be 0.5T due to the special driving mode.(cs_setup = 0; cs_hold = 0)
4. for new 64Mbit psram, cs hold time is recommended to be 2.5T. (cs_setup = 1, cs_setup_time = 0;cs_hold = 1, cs_hold_time = 1)
2019-04-09 11:24:10 +08:00
Angus Gratton
2cf4a69f9b
Merge branch 'bugfix/ws_transport_crash_on_connect_fail' into 'master'
...
transport_ws: Stop connecting when the parent's connect call has failed
See merge request idf/esp-idf!4701
2019-04-09 10:19:47 +08:00
Angus Gratton
911e503a36
Merge branch 'bugfix/prov_fix_conn_id' into 'master'
...
Unified Provisioning: Miscellaneous fixes in BLE
See merge request idf/esp-idf!4691
2019-04-09 09:28:18 +08:00
liu zhifu
005f95e3f3
esp_wifi: increase WiFi block scan timeout value
...
Increase WiFi block scan internal timeout value.
2019-04-09 09:24:34 +08:00
Angus Gratton
8e91677701
Merge branch 'bugfix/bootloader_flash_crypt_cnt_ff' into 'master'
...
flash encryption: reduce FLASH_CRYPT_CNT bit width to 7 bits
See merge request idf/esp-idf!4642
2019-04-09 08:10:06 +08:00
suda-morris
78034879a8
make bootloader depend on IDF_TARGET
2019-04-08 11:08:06 +08:00
XiaXiaotian
5d43ec64bd
esp_wifi: fix the bug that no TBTT will be generated anymore after receiving
...
wrong beacon when WiFi and BT coexist.
2019-04-08 10:36:29 +08:00
Hrishikesh Dhayagude
a717825b7e
Unified Provisioning: Miscellaneous fixes in BLE
...
1. Pass the correct conn_id to protocomm_req_handle
In transport_simple_ble_write(), passing param->exec_write.conn_id would
be invalid. Instead param->write.conn_id should be passed
Similar change in transport_simple_ble_exec_write() to use
param->exec_write.conn_id
2. simple_ble_start() assumes that the mode is BLE only and enables
Bluetooth controller accordingly. For, cases having BT + BLE like Alexa
(Provisioning over BLE + Audio over classic BT), this assumption should
be removed.
2019-04-05 14:27:24 +05:30
Angus Gratton
041c784ff8
Merge branch 'feature/common_fragment_grammar' into 'master'
...
ldgen: Common fragment grammar
See merge request idf/esp-idf!4576
2019-04-05 07:19:22 +08:00
Bas Verhoeven
16ee5663ad
transport_ws: Stop connecting when the parent's connect call has failed
...
Merges https://github.com/espressif/esp-idf/pull/3164
2019-04-04 16:14:42 +02:00
Jiang Jiang Jian
791209d0eb
Merge branch 'bugfix/coex_bt_disconn' into 'master'
...
components/coex: Fix BT disconnecting due to too many reset BB
See merge request idf/esp-idf!4675
2019-04-04 20:53:04 +08:00
zhiweijian
6e4a89ffce
component/bt: fix memory leak when settig tx power
2019-04-04 19:49:23 +08:00
Jiang Jiang Jian
3ab9d00219
Merge branch 'bugfix/btdm_fix_warning_when_disable_logs' into 'master'
...
components/bt: Fix warning when disable debug logs or in release mode and improve the code structure
See merge request idf/esp-idf!4618
2019-04-04 18:45:25 +08:00
Jiang Jiang Jian
e7f85f1987
Merge branch 'bugfix/btdm_disconn_with_apple_device' into 'master'
...
components/bt: Fix disconnect with apple device
See merge request idf/esp-idf!4665
2019-04-04 18:44:53 +08:00
Renz Christian Bagaporo
90ee405afd
ldgen: update component linker fragment files
2019-04-04 15:57:34 +08:00
Angus Gratton
34e89c46de
Merge branch 'update/mfg_util' into 'master'
...
mfg_util: Add changes to mfg_util as per changes in nvs_util
See merge request idf/esp-idf!3573
2019-04-04 14:40:33 +08:00
Angus Gratton
63261ec2d7
Merge branch 'bugfix/httpd_accept_conn' into 'master'
...
esp_http_server : Only accept new connections if server has capacity to handle more
Closes IDFGH-749
See merge request idf/esp-idf!4655
2019-04-04 14:26:49 +08:00
Angus Gratton
5136b76798
Merge branch 'feature/micro-ecc-only-in-bootloader' into 'master'
...
Use micro_ecc library only in bootloader
See merge request idf/esp-idf!4082
2019-04-04 14:26:48 +08:00
Angus Gratton
d6394818b0
Merge branch 'feature/misc_adjustment_of_esp32' into 'master'
...
misc adjustment of esp32 component
Closes IDF-36
See merge request idf/esp-idf!4627
2019-04-04 11:16:46 +08:00
Angus Gratton
203af5c0a5
Merge branch 'bugfix/soc_register_struct_names' into 'master'
...
soc:Added names to anonymous register structs
See merge request idf/esp-idf!4668
2019-04-04 07:42:24 +08:00
Anurag Kar
9542063236
esp_http_server : Test added to check limit on max_open_sockets config option
2019-04-03 13:34:12 +00:00
Anurag Kar
7e676c1055
esp_http_server : Only accept new connections if server has capacity to handle more
...
This fix prevents HTTP server from accepting new connections when the total count of connected
sockets has reached the max_open_sockets limit set during configuration. The pending connections
are kept in backlog until atleast one of the connected sockets is closed. The maximum number of
connection requests that can kept in backlog is specified as backlog_conn configuration option.
Note that this modification has no effect when LRU purge is enabled.
Also added sanity check on setting for max_open_sockets during configuration.
Solution suggested by jimparis https://github.com/espressif/esp-idf/issues/3183#issue-421234265
Closes https://github.com/espressif/esp-idf/issues/3183
2019-04-03 13:34:12 +00:00
baohongde
88efcdbe35
components/coex: Fix BT disconnecting due to too many reset BB
...
Update coex version to 1.1.6
2019-04-03 20:42:03 +08:00
morris
f5b03c9ea3
misc adjustment of esp32 component
2019-04-03 19:57:46 +08:00
baohongde
a332bca0c7
components/bt: Fix disconnect with apple device
...
1. Fix disconnect with apple device
2. Fix hci_refresh_enc_key_cmd will be ignored
3. Fix hci_refresh_enc_key_cmd will crash
Closes https://github.com/espressif/esp-idf/issues/3140
2019-04-03 17:22:01 +08:00
Shivani Tipnis
a88b40483d
mfg_util: Add changes to mfg_util as per changes in nvs_util
...
revert changeson this file
Update README for mfg util
Update to correct coding style of script
2019-04-03 11:31:49 +05:30
Angus Gratton
30e3e26834
Merge branch 'feature/support_comments_in_csv' into 'master'
...
nvs_util: Add support to include comments in csv file
See merge request idf/esp-idf!4656
2019-04-03 11:12:51 +08:00
huub
4aac441e46
soc:Added names to anonymous register structs
...
For typedef volatile struct in components/soc/esp32/include/soc
Merges https://github.com/espressif/esp-idf/pull/3199
2019-04-03 03:09:44 +00:00
Angus Gratton
4b4cd7fb51
efuse/flash encryption: Reduce FLASH_CRYPT_CNT to a 7 bit efuse field
...
8th bit is not used by hardware.
As reported https://esp32.com/viewtopic.php?f=2&t=7800&p=40895#p40894
2019-04-03 14:07:20 +11:00
Jiang Jiang Jian
53daf930c3
Merge branch 'bugfix/fix_some_sta_certification_issues' into 'master'
...
esp32: fix some STA certification issues
Closes WIFI-295, WIFI-299, WIFI-305, WIFI-306, WIFI-358, WIFI-367, and WIFI-368
See merge request idf/esp-idf!4434
2019-04-02 14:32:26 +08:00
Angus Gratton
3af14a065d
Merge branch 'bugfix/undefined_partition_table_bin_warning' into 'master'
...
make: fix undefined variables warning for PARTITION_TABLE_BIN
Closes IDFGH-685
See merge request idf/esp-idf!4633
2019-04-02 11:49:58 +08:00
Ivan Grokhotkov
43d3e75125
Merge branch 'feature/derive_esp_wifi_from_esp32' into 'master'
...
derive esp_wifi from esp32 component
See merge request idf/esp-idf!4602
2019-04-02 10:13:15 +08:00
Angus Gratton
ae585b6615
Merge branch 'bugfix/external_rtc_start_fail' into 'master'
...
Bugfix/external rtc start fail
See merge request idf/esp-idf!4374
2019-04-02 09:42:27 +08:00
Ivan Grokhotkov
fd91818074
Merge branch 'feature/sysview_heap_tracing' into 'master'
...
SystemView based heap and log tracing
See merge request idf/esp-idf!3952
2019-04-02 09:07:55 +08:00
Alexey Gerenkov
5ef3a64c00
sys_view: Adds heap tracing API
2019-04-01 19:31:27 +03:00
Jiang Jiang Jian
2f8b6cfc77
Merge branch 'feature/btdm_add_mesh_adv_type_and_srv_uuid_for_dup_scan_except' into 'master'
...
Component/bt: add mesh beacon adv and svc uuid for duplicate scan exceptional list
See merge request idf/esp-idf!4592
2019-04-01 21:49:18 +08:00
Liu Zhi Fu
b82872102e
esp32: fix some STA certification issues
...
Fix following STA WFA certification issues:
1. STA HT2040 coexist
2. Disallow WEP/TKIP with HT rates
3. WPA2 improvement
4. Minor refactor for WiFi internal global variable auth_type
2019-04-01 21:39:47 +08:00
Alexey Gerenkov
335576013e
heap: Separate standalone and common part of tracing module
2019-04-01 15:56:15 +03:00
Alexey Gerenkov
2d52ac48f9
apptrace: Adds checks for user arguments in apptrace API
2019-04-01 15:56:14 +03:00
Alexey Gerenkov
c0f37a324e
apptrace: Fixes tracing xQueueGiveFromISR
2019-04-01 15:56:13 +03:00
Ivan Grokhotkov
d52ecb71d6
Merge branch 'feature/spiffs_image_generator' into 'master'
...
SPIFFS Image Generator
See merge request idf/esp-idf!4156
2019-04-01 20:08:40 +08:00
morris
79bb5de426
derive esp_wifi from esp32 component
2019-04-01 20:04:52 +08:00
Shivani Tipnis
66e38e9bac
nvs_util: Add support to include comments in csv file
...
Closes https://github.com/espressif/esp-idf/issues/2965
2019-04-01 16:52:43 +05:30
Mahavir Jain
816fe38f3a
app_update: remove redundant (additional) check for signature verification
...
Call `esp_image_verify` takes care of validating image signature.
2019-04-01 15:47:01 +05:30
Mahavir Jain
fcff80ecf8
fix cmake build for bootloader
2019-04-01 15:47:01 +05:30
Mahavir Jain
202f689baa
bootloader: use mbedTLS for secure boot verification in firmware
2019-04-01 15:46:52 +05:30
Mahavir Jain
369e170ebc
micro-ecc: move into booloader directory
2019-04-01 15:45:26 +05:30
Jiang Jiang Jian
5b2247df2d
Merge branch 'bugfix/increase_block_scan_time' into 'master'
...
wifi: increase the block scan time
Closes WIFI-378 and WIFI-379
See merge request idf/esp-idf!4645
2019-04-01 17:24:04 +08:00
Angus Gratton
8914f6f9cd
Merge branch 'bugfix/http_server_lf_term_hdr' into 'master'
...
HTTP Server : Fix for tolerating LF terminated headers
Closes IDFGH-748
See merge request idf/esp-idf!4588
2019-04-01 13:25:24 +08:00
zhangyanjiao
b13ceaf468
wifi: increase the block scan time because of changing channel will take at 30nm when BT/WiFi coexist
2019-04-01 03:12:20 +00:00
Michael (XIAO Xufeng)
af2fc96ee1
spi_master: refactor and add HAL support
2019-03-28 17:14:50 +08:00
Ivan Grokhotkov
624725d6e0
coap: define WITH_POSIX in coap_config.h instead of globally
2019-03-28 16:29:13 +08:00
Ivan Grokhotkov
8016448fb1
coap: silence format truncation warning (appears with GCC 8)
2019-03-28 16:28:25 +08:00
Angus Gratton
6fcfdd3d6a
Merge branch 'update/nvs_partition_util' into 'master'
...
Update for creation of unique filename for encryption keys
See merge request idf/esp-idf!3808
2019-03-28 15:07:44 +08:00
zhiweijian
0acc2f59e5
Component/bt: add mesh beacon adv and svc uuid for duplicate scan exceptional list
2019-03-28 06:09:19 +00:00
Ivan Grokhotkov
85fb54a501
Merge branch 'feature/separate_xtensa_from_esp32' into 'master'
...
separate xtensa from esp32
See merge request idf/esp-idf!4625
2019-03-28 14:04:03 +08:00
Shivani Tipnis
cd8c42600c
nvs_util: Add support for creation of unique encryption keys
2019-03-28 05:06:12 +00:00
Angus Gratton
1db51e18b9
Merge branch 'bugfix/restore_deleted_factory_offset' into 'master'
...
partition_table: restore needed factory offset variable
See merge request idf/esp-idf!4601
2019-03-28 12:03:27 +08:00
Renz Christian Bagaporo
7112b9492e
make: fix undefined variables warning for PARTITION_TABLE_BIN
...
Closes https://github.com/espressif/esp-idf/issues/3136
2019-03-27 21:02:55 +08:00
morris
dbdb299bb1
create xtensa component
...
1. move xtensa specific files out of esp32 component
2. merge xtensa-debug-module component into xtensa
2019-03-27 20:24:28 +08:00
Anton Maklakov
da90966828
Merge branch 'feature/mqtt_weekend_tests' into 'master'
...
introducing weekend tests for mqtt and fuzzer test (mdns, LWIP)
Closes IDF-540
See merge request idf/esp-idf!4230
2019-03-27 19:12:33 +08:00
Ivan Grokhotkov
18946a5421
Merge branch 'feature/common_parts_into_esp_common' into 'master'
...
move common include files from esp32 into esp_common
See merge request idf/esp-idf!4515
2019-03-27 17:00:58 +08:00
Jiang Jiang Jian
21f6b4d6c3
Merge branch 'bugfix/modify_wifi_reason_code' into 'master'
...
wifi: modify wifi reason code
Closes WIFI-268 and WIFI-388
See merge request idf/esp-idf!4604
2019-03-27 16:50:35 +08:00
Jiang Jiang Jian
fe793eb574
Merge branch 'bugfix/btdm_modify_HCI_GET_CMD_BUF' into 'master'
...
Component/bt: modify HCI_GET_CMD_BUF
See merge request idf/esp-idf!4465
2019-03-27 14:23:52 +08:00
Jiang Jiang Jian
fc6b413667
Merge branch 'bugfix/btdm_add_new_param_for_update_whitelist_api' into 'master'
...
Component/bt: add new param for update_whitelist API
See merge request idf/esp-idf!4493
2019-03-27 14:23:12 +08:00
Anurag Kar
990af312d1
HTTP Server : Fix for tolerating LF terminated headers
...
List of changes:
* When parsing requests, count termination from LF characters only
* Correct memcpy() length parameter in httpd_unrecv() (pointed out by jimparis in GitHub issue thread)
* Use ssize_t to store results of length subtractions during parsing
* Modify some comments to reduce ambiguity
Closes https://github.com/espressif/esp-idf/issues/3182
2019-03-26 14:21:40 +05:30
morris
709a320f33
move hwcrypto from esp32 to mbedtls
2019-03-26 16:24:22 +08:00
baohongde
59d77660ef
components/bt: Fix warning when disable debug logs or in release mode and improve the code structure
2019-03-26 14:37:37 +08:00
morris
a2f07b0806
move common include files from esp32 into esp_common
2019-03-26 11:57:03 +08:00
zhangyanjiao
ebe7190f01
wifi: modify wifi reason code
2019-03-26 11:16:47 +08:00
Renz Christian Bagaporo
4d9c3a262d
cmake,make: Support SPIFFS image generation from build systems
2019-03-25 12:51:52 +08:00
Renz Christian Bagaporo
ca06f73a51
spiffs: Add host test for generated spiffs image
2019-03-25 12:51:52 +08:00
Renz Christian Bagaporo
8ba10bf3dc
spiffs: Implement spiffs image generation
2019-03-25 12:51:52 +08:00
Tim Nordell
eb5abca23d
nvs_flash: Fix typo in README.rst
...
Merges https://github.com/espressif/esp-idf/pull/3216
This should read "except for the new key-value pair" instead of
"expect for the new key-value pair".
Signed-off-by: Tim Nordell <tim.nordell@nimbelink.com>
2019-03-24 19:56:10 +01:00
zhiweijian
c0bdea6aae
Component/bt: add new param for update_whitelist()
2019-03-22 12:22:51 +00:00
David Cermak
bc60bbbeaf
fuzzer tests: update of mdns and lwip host compilation for fuzzer testing
...
Closes IDF-540
2019-03-22 11:37:26 +01:00
David Cermak
5141e0ec24
tcp_transport: ws fix on reception of longer data than receive buffer
2019-03-22 11:37:26 +01:00
David Cermak
1465f53f49
mqtt tests: adding weekend test for mqtt library to exercise publishing/receiving different data and references esp-mqtt commits to pass these tests
...
testing conditions:
transports (tcp, ssl, ws..)
qos (0, 1, 2)
short repeated messages (packed packets)
oversized messages (fragmented packets)
publish from a different thread
Closes https://github.com/espressif/esp-idf/issues/2870 by means of including commit 815623dfe5a0e41fa0e51ab4e336feb3eaa5ba15 from esp-mqtt
Closes https://github.com/espressif/esp-idf/issues/2975 by means of including commit 752953dc3be007cca4255b66a35d3087e61f6a54 from esp-mqtt
Closes https://github.com/espressif/esp-idf/issues/2850 by means of including commits df455d2a5fe562dd1b8351da99a1d6d82b66eff3 17fd713bced4f2d00df7ed664ed82a7d108ab317 from esp-mqtt
2019-03-22 11:37:26 +01:00
Renz Christian Bagaporo
7e93d4986c
partition_table: restore needed factory offset variable
2019-03-22 15:24:23 +08:00
Jiang Jiang Jian
c2d1f83bce
Merge branch 'mesh/decouple_addition' into 'master'
...
wifi: decouple mesh functions from net80211
See merge request idf/esp-idf!4393
2019-03-22 12:57:03 +08:00
Angus Gratton
1be147c457
Merge branch 'feature/allow_components_to_declare_images_to_flash' into 'master'
...
Allow components to present their own images to flash
See merge request idf/esp-idf!4148
2019-03-22 11:14:37 +08:00
morris
fcedf442ce
move common source files from esp32 to esp_common
2019-03-22 10:35:03 +08:00
Ivan Grokhotkov
940a1f6e79
Merge branch 'feature/separate_rom_from_esp32' into 'master'
...
separate rom from esp32 component to esp_rom
Closes IDF-542
See merge request idf/esp-idf!4500
2019-03-21 22:10:45 +08:00
Ivan Grokhotkov
3a779380a7
Merge branch 'feature/semihost_vfs' into 'master'
...
Adds semihosting VFS driver
Closes IDF-367
See merge request idf/esp-idf!4145
2019-03-21 22:03:06 +08:00
Ivan Grokhotkov
58314feff9
Merge branch 'feature/http_server_pinned_to_core_support' into 'master'
...
HTTP Server: Added ability to select core
See merge request idf/esp-idf!4586
2019-03-21 19:19:13 +08:00
Ivan Grokhotkov
ffa8bed7c8
Merge branch 'bugfix/nvs_util_write_single_page_big_blob_data' into 'master'
...
nvs_util: Fix to support write operation of multiple single page big blob data
See merge request idf/esp-idf!4268
2019-03-21 19:10:29 +08:00
morris
c159984264
separate rom from esp32 component to esp_rom
...
1. separate rom include files and linkscript to esp_rom
2. modefiy "include rom/xxx.h" to "include esp32/rom/xxx.h"
3. Forward compatible
4. update mqtt
2019-03-21 18:51:45 +08:00
Ivan Grokhotkov
77e7af4e90
Merge branch 'feature/update_libcoap_4.2.0' into 'master'
...
Update component/coap to libcoap version release-4.2.0
See merge request idf/esp-idf!4499
2019-03-21 18:35:20 +08:00