Wangjialin
4b34ae1258
bugfix(i2s): allow to use apll in pdm/adc/dac mode
...
1. Allow to use apll in pdm mode
2. Add clock frequency configuration for PDM mode
3. Allow to use apll in ADC/DAC mode
2018-11-27 18:41:20 +08:00
Renz Christian Bagaporo
0908fba1a3
mbedtls: import mbedtls project w/o modification
2018-11-27 13:59:26 +08:00
Renz Christian Bagaporo
37d30c7a6e
cmake: separate app from idf lib project
...
mbedtls: import mbedtls using unmodified cmake file
2018-11-27 13:59:24 +08:00
Angus Gratton
81231fcc4b
Merge branch 'feature/i2s_tx_descriptor_auto_clear' into 'master'
...
i2s: add (optional) support to clear tx descriptor in underflow case
See merge request idf/esp-idf!2397
2018-11-27 13:45:51 +08:00
Tian Hao
f3bfdeaeec
fix bug to unsupport rf reg access from hci cmd
...
Always return 0 when read rf register and do nothing when write rf register
2018-11-27 12:00:06 +08:00
Angus Gratton
c765035b3a
Merge branch 'update/nvs_part_gen' into 'master'
...
nvs_util: Add changes to nvs part gen util
See merge request idf/esp-idf!3531
2018-11-26 14:26:08 +08:00
michael
cfba157fdd
spi_slave: add valid check for DMA buffers
...
The DMA cannot receive data correctly when the buffer address is not
WORD aligned. Currently we only check whether the buffer is in the DRAM
region.
The DMA always write in WORDs, so the length arguments should also be
multiples of 32 bits.
A check is added to see whether the buffer is WORD aligned and has valid
length.
2018-11-26 03:49:26 +00:00
michael
435adaa22a
spi_master: add check for trans len
...
The driver decide whether use MOSI/MISO phases according to the buffer
address together with the SPI_TRANS_USE_*DATA. However someone may assue
that these phases will be skipped when the ``length``/``rxlength`` is
set to 0. In fact it is a feature that ``rxlength`` is allowed to be
set to 0 when tx and rx have the same length, and the driver fill the
``rxlength`` to ``length``.
An error check is added when the rxlength is 0 but there is data to be
sent.
2018-11-26 03:49:26 +00:00
Angus Gratton
fa59b1b1c9
Merge branch 'bugfix/fix_cmake_args_issue' into 'master'
...
Fix CMAKE_ARGS issue for ULP build
See merge request idf/esp-idf!3776
2018-11-26 07:58:09 +08:00
Ivan Grokhotkov
5aa7abb216
Merge branch 'bugfix/spiram_80m_clk_config' into 'master'
...
clk: fix regression in clock setting for SPIRAM with 80MHz config
See merge request idf/esp-idf!3724
2018-11-25 22:25:19 +08:00
Jiang Jiang Jian
a0468b2bd6
Merge branch 'feature/btdm_add_update_duplicate_scan_exceptional_list_apis' into 'master'
...
Component/bt: add update duplicate scan exceptional list APIs
See merge request idf/esp-idf!3763
2018-11-25 18:58:53 +08:00
zhiweijian
18a27b88c7
Component/bt: fix accept specified sec auth error
2018-11-23 20:14:03 +08:00
Jiang Jiang Jian
64d038c0d5
Merge branch 'bugfix/fix_some_wifi_bugs_1121' into 'master'
...
esp32: fix some wifi bugs
See merge request idf/esp-idf!3756
2018-11-23 17:08:25 +08:00
Mahavir Jain
765bf674d0
i2s: add (optional) support to clear tx descriptor in underflow case
...
It has been observed that, in case of underflow (data unavailability) in
I2S transmission, previously filled up tx descriptors continue to get
transmitted on line, causing noise in case of audio use case.
This change adds optional `tx_desc_auto_clear` field during I2S driver intialization
than can zero initialize tx descriptor in case of underflow situation in
interrupt handler itself.
Closes: https://github.com/espressif/esp-idf/issues/1789
2018-11-23 14:31:09 +05:30
zhiweijian
dd3d89db49
Component/bt: add update duplicate scan exceptional list APIs
2018-11-23 16:46:17 +08:00
Renz Christian Bagaporo
3a02a12aa4
cmake: remove unecessary info passed to bootloader build
2018-11-23 16:08:47 +08:00
Renz Christian Bagaporo
552f17e260
ulp: fix passing ulp srcs due to cmake_args bug
2018-11-23 16:08:41 +08:00
Liu Zhi Fu
f874b52f0a
esp32: fix some wifi bugs
...
Fix some WiFi bugs:
1. Enable RX BAR
2. Fix the bug that ESP32 AP negotiates with iphone to 11g
3. Fix the bug that ESP32 STA has ap_loss because CMCC AP contains two SSID
2018-11-23 05:41:41 +00:00
kooho
33138a3dec
driver(i2c): enable I2C master hardware filter by default.
2018-11-23 10:27:59 +08:00
Jiang Jiang Jian
e199587a11
Merge branch 'bugfix/btdm_move_func_into_iram' into 'master'
...
components/bt: Move function in interrupt into IRAM
See merge request idf/esp-idf!3757
2018-11-22 19:17:37 +08:00
baohongde
7e142f9d22
components/bt: Move function in interrupt into IRAM
...
1. Move function in interrupt into IRAM
2. Delete unused code, saving 240B DRAM and some code size
2018-11-22 15:59:53 +08:00
Ivan Grokhotkov
09a01f68ba
Merge branch 'bugfix/calloc_recursive' into 'master'
...
newlib: disable some optimizations for syscalls.c
See merge request idf/esp-idf!3774
2018-11-22 15:24:17 +08:00
Ivan Grokhotkov
8deb885ce3
newlib: disable some optimizations for syscalls.c
...
Don’t allow the compiler to convert malloc + memset into calloc,
causing a recursive call in _calloc_r. Fixes crash when building with
-O2 optimization level.
2018-11-22 12:19:49 +08:00
qiyueixa
86fedc3cbb
utest: increase IDF_PERFORMANCE_MAX_VFS_OPEN_WRITE_CLOSE_TIME to 50000
2018-11-21 19:14:07 +08:00
qiyueixa
6c3b5ae5a1
mesh: bugfix
...
1. fix failture of mesh stop caused by block-sending.
2. fix when FIXED_ROOT is set, 2nd layer devices can not receive mesh event ESP_ERR_MESH_NO_PARENT_FOUND.
3. fix when FIXED_ROOT is set and the root turns off mesh function, 2nd layer devices do not look for new parents.
4. add APIs esp_mesh_disconnect() and esp_mesh_connect().
5. disconnect from parent/router when the DSSS channel in received beacon is different from the home channel.
6. remove nvs task to release 3k bytes memory.
2018-11-21 19:13:41 +08:00
Shivani Tipnis
0c72b08872
nvs_util: update test case
2018-11-21 13:40:24 +05:30
Shivani Tipnis
582c547191
Update README
2018-11-21 12:55:47 +05:30
Shivani Tipnis
c44f15441f
Closes https://github.com/espressif/esp-idf/issues/2472
2018-11-21 12:55:47 +05:30
Shivani Tipnis
9db1987892
nvs_util: Add changes to nvs part gen util
...
nvs_util: Add changes to nvs part gen util
nvs_host_test: Add test case for keygen and keyfile paratmeters
2018-11-21 12:55:47 +05:30
Jiang Jiang Jian
0d7f2d77c2
Merge branch 'feature/btdm_add_set_long_adv_data_api' into 'master'
...
Component/bt: add set long adv data api
See merge request idf/esp-idf!3722
2018-11-21 11:31:13 +08:00
Jiang Jiang Jian
e7f9e3f6f6
Merge branch 'bugfix/add_connected_event_after_softap_finish_4_way' into 'master'
...
wifi: add connected event after softap finish 4 way
See merge request idf/esp-idf!3661
2018-11-20 20:04:12 +08:00
Jiang Jiang Jian
69c9e050b0
Merge branch 'bugfix/btdm_add_check_peer_addr_type_in_set_adv_params' into 'master'
...
Component/bt: add check peer addr type in set adv params
See merge request idf/esp-idf!3732
2018-11-20 20:02:13 +08:00
Angus Gratton
92f32f0060
Merge branch 'fix/spi_callback_in_iram' into 'master'
...
spi: fix the crash when callbacks are not in the IRAM
See merge request idf/esp-idf!3498
2018-11-20 16:25:08 +08:00
zhiweijian
5e3d88ee64
Component/bt: fix remove bonded device warnning
2018-11-20 07:15:02 +00:00
Jiang Jiang Jian
ffda37dd16
Merge branch 'feature/btdm_BLE_Blocking_APIs' into 'master'
...
Component/bt: add BLE Blocking APIs
See merge request idf/esp-idf!3513
2018-11-20 14:40:50 +08:00
Jiang Jiang Jian
b422a42697
Merge branch 'bugfix/btdm_errors_in_comment' into 'master'
...
components/bt: Some errors in comment
See merge request idf/esp-idf!3703
2018-11-20 14:26:12 +08:00
Angus Gratton
61ee1bd31f
Merge branch 'feature/esp_https_server' into 'master'
...
Add HTTPS Server component
See merge request idf/esp-idf!3608
2018-11-20 13:58:26 +08:00
Michael (XIAO Xufeng)
8cddfa35b8
spi: fix the crash when callbacks are not in the IRAM
...
Introduced in 9c23b8e5
and 4f87a62f
. To get higher speed, menuconfig
options are added to put ISR and other functions into the IRAM. The
interrupt flag ESP_INTR_FLAG_IRAM is also mistakenly set when the ISR is
put into the IRAM. However callbacks, which are wrote by the user, are
called in the master and slave ISR. The user may not be aware of that
these callbacks are not disabled during flash operations. Any cache miss
during flash operation will cause panic.
Essentially IRAM functions and intrrupt flag ESP_INTR_FLAG_IRAM are
different, the latter means not disabling the ISR during flash
operations. New bus_config flag intr_flags is offered to help set the
interrupt attribute, including priority level, SHARED, IRAM (not
disabled during flash operations). It introduced a small BREAK to
IDFv3.1 (but the same as IDFv3.0) that the user has to manually set IRAM
flag now (therefore he's aware of the IRAM thing) to void the ISR being
disabled during flash operations.
2018-11-20 13:07:13 +08:00
Alexey Gerenkov
3139b2d533
example: Adds SystemView tracing example app
2018-11-20 04:09:39 +00:00
Alexey Gerenkov
3eaba1c8ce
esp32: Fixes SystemView lock's IRQ state restore
2018-11-20 04:09:39 +00:00
zhiweijian
775c6e5ab7
Component/bt: add set long adv data api
2018-11-20 11:19:51 +08:00
Ivan Grokhotkov
8027adaf81
esp32, mbedtls: check component name when enabling test flags
...
Otherwise flags get enabled even when building tests for other components.
2018-11-20 01:27:24 +08:00
Mahavir Jain
62efef0444
test: spiram: fix and enable test cases for default configuration
2018-11-19 22:40:14 +05:30
Ivan Grokhotkov
00a13bd8d3
Merge branch 'bugfix/init_memctl' into 'master'
...
bootloader, esp32: add workaround for Tensilica erratum 572
See merge request idf/esp-idf!3605
2018-11-19 18:36:47 +08:00
Ivan Grokhotkov
a46b884a14
Merge branch 'feature/unit_test_example' into 'master'
...
Move Unity into components, add unit test example
See merge request idf/esp-idf!3562
2018-11-19 18:35:54 +08:00
zhiweijian
3c7819eaf2
Component/bt: add check peer addr type in set adv params
2018-11-19 17:04:48 +08:00
Angus Gratton
6cdfea4251
Merge branch 'fix/spi_freq_limit_check' into 'master'
...
spi: modify some docs about the freq limit and the ISR
See merge request idf/esp-idf!3686
2018-11-19 14:02:40 +08:00
Angus Gratton
8915f48208
Merge branch 'feature/linker_script_generator' into 'master'
...
Linker script generator
See merge request idf/esp-idf!2286
2018-11-19 12:43:27 +08:00
Ivan Grokhotkov
964f5a91f7
bootloader, esp32: add workaround for Tensilica erratum 572
...
If zero-overhead loop buffer is enabled, under certain rare conditions
when executing a zero-overhead loop, the CPU may attempt to execute an invalid instruction. Work around by disabling the buffer.
2018-11-19 04:39:35 +00:00
Ivan Grokhotkov
a98674d78b
unity: don't use stdio in runner, fix code style
2018-11-19 12:36:31 +08:00
Ivan Grokhotkov
6091021e83
unity: separate common and IDF specific functionality
...
New unity component can be used for testing other applications.
Upstream version of Unity is included as a submodule.
Utilities specific to ESP-IDF unit tests (partitions, leak checking
setup/teardown functions, etc) are kept only in unit-test-app.
Kconfig options are added to allow disabling certain Unity features.
2018-11-19 12:36:31 +08:00
Ivan Grokhotkov
aa692b3483
vfs: implement fsync for UART VFS
2018-11-19 12:36:31 +08:00
Ivan Grokhotkov
5fb3d59a92
esp32: fix typos in rom/uart.h
2018-11-19 12:36:31 +08:00
Anurag Kar
1d3f4074de
esp_https_server : change config option secure_enable to transport_mode and some minor changes
...
transport_mode accepts enum httpd_ssl_transport_t instead of true/false.
This will allow for extension to dual mode (server running on both secure and insecure ports) in the future.
2018-11-19 04:00:21 +00:00
Anurag Kar
9a9d18e466
esp_http_server : APIs renamed and context get/set implementations fixed
...
* http_sess_set_*_override APIs are now the only ones available to set custom recv/send/pending functions
* Fixed side effects to using http_sess_set/get_context inside URI handlers
2018-11-19 04:00:21 +00:00
Anurag Kar
aa6066a197
esp_https_server : Docs and API references fixed
2018-11-19 04:00:21 +00:00
Ondřej Hruška
4dd0fa61e9
Add a 'esp_https_server' component allowing to use http_server with OpenSSL
2018-11-19 04:00:21 +00:00
Ondřej Hruška
a10fc02dd9
esp_http_server improvements to allow adding transport layer encryption
...
Changes:
- renamed `httpd_free_sess_ctx_fn_t` to `httpd_free_ctx_fn_t`
- added a `httpd_handle_t` argument to `httpd_send_func_t` and `httpd_recv_func_t`
- internal function `httpd_sess_get()` is no longer static, as it's used in other
files besides httpd_sess.c
Bug fixes:
- removed a trailing semicolon from `HTTPD_DEFAULT_CONFIG()`
- fixed issue with failed `select()`, now it automatically closes invalid sockets
instead of shutting down the entire server
New features:
- `httpd_resp_send()` and `httpd_resp_send_chunk()` now accept -1 as length to use
`strlen()` internally
- added `httpd_sess_set_ctx()` to accompany `httpd_sess_get_ctx()`
- added a "transport context" to the session structure (next to user context)
- added `httpd_sess_{get,set}_transport_ctx()` to work with this transport context
- added "global user context" and "global transport context" stored in the server
config (and then the handle); supports a user-provided free_fn
- added a "pending func" to e.g. check for data in the transport layer receive
buffer
- added functions `httpd_set_sess_{send,recv,pending}_override()` that target
a session by ID (i.e. not using a request object)
- added `httpd_set_pending_override()`
- added a "open_fn" and "close_fn" - functions called when creating and closing
a session. These may be used to set up transport layer encryption or some other
session-wide feature
2018-11-19 04:00:21 +00:00
Deng Xin
5b4e3da759
wifi: add connected event after softap finish 4 way
...
Background
Softap will send connected event after receive assoc request as before, however, STA didn't connect to softAP if need security. As our mesh design, it will send data packet after receive connected event, so change the current behavior, softAP will send connected event if have encryption
2018-11-19 11:24:42 +08:00
Jiang Jiang Jian
26bcb7f2cf
Merge branch 'bugfix/wifi_sta_sniffer_phy_config_bug' into 'master'
...
wifi: fix wifi sta and sniffer phy config bug
See merge request idf/esp-idf!3566
2018-11-19 10:11:23 +08:00
Mahavir Jain
e3956787f6
clk: fix regression in clock setting for SPIRAM with 80MHz config
...
Support for HSPI to output clock for 4M SPIRAM introduced regression
in clock configuration affecting SPIRAM access with 80MHz clock. This
commit fixes the issue.
2018-11-17 00:08:20 +05:30
Ivan Grokhotkov
960c240578
Merge branch 'bugfix/cmake_ut_parsing' into 'master'
...
cmake: fix for parsing unit test config
See merge request idf/esp-idf!3696
2018-11-16 22:11:14 +08:00
Ivan Grokhotkov
8c9407f22f
Merge branch 'bugfix/fat_lock_log' into 'master'
...
fatfs: Do not log from critical sections
See merge request idf/esp-idf!3683
2018-11-16 21:29:56 +08:00
Ivan Grokhotkov
96f152341a
esp_timer: improve unit test robustness
...
1. call esp_timer_get_time and ref_clock_get in the same order on
start and in the loop
2. disable interrupts when calculating delta between ref_clock
and esp_timer
3. ensure both functions are in cache before calculating the delta
2018-11-16 12:00:39 +00:00
Ivan Grokhotkov
0db8c2e618
Merge branch 'feature/ut_filter_test_groups' into 'master'
...
unit test: allow filtering tests using TEST_GROUPS
See merge request idf/esp-idf!3695
2018-11-16 19:31:47 +08:00
Ivan Grokhotkov
a55d350f43
Merge branch 'bugfix/adjtime_test2' into 'master'
...
Resolve ""test for thread safety adjtime and gettimeofday functions" fails randomly"
Closes #37
See merge request idf/esp-idf!3657
2018-11-16 19:21:45 +08:00
Roland Dobai
ad2cdeb476
fatfs: Do not log from critical sections
...
Logging in the critical section can result in a deadlock when the logger
is redirected to FATFS.
Closes https://github.com/espressif/esp-idf/issues/1693
2018-11-16 11:19:01 +00:00
zhangyanjiao
8be8ea2488
wifi: fix the bug that if station (sleep is enabled) and sniffer are enabled at the same time,
...
when disable sniffer, station will never enable phy and rf again.
Closes: https://github.com/espressif/esp-idf/issues/2545
2018-11-16 11:16:37 +00:00
Jiang Jiang Jian
6fa2f388ef
Merge branch 'bugfix/btdm_controller_disable' into 'master'
...
Fix two bugs when disable bluetooth controller
See merge request idf/esp-idf!3692
2018-11-16 17:10:37 +08:00
David Cermak
d16762a036
mdns: sending search packets also in probing and announcing state
...
mdns queries did not work properly when send imeadiately after set_hostname, which cuased reinit of pcb and therefore restarted probing, so search packets were blocked until probing finished
closes #2507 , closes #2593
2018-11-16 07:22:29 +00:00
Renz Bagaporo
63411fc556
tools: implement linker script generation
2018-11-16 12:42:02 +08:00
Konstantin Kondrashov
b00be955ee
newlib: Fix UT adjtime
2018-11-16 04:11:55 +00:00
baohongde
ac5a3443a4
components/bt: Some errors in comment
2018-11-16 11:27:22 +08:00
Tian Hao
9c9aa4ea4c
Fix two bugs when disable bluetooth controller
...
1. Fix the bug that disable controller suddenly cause crash when ble is working. (585cfba1)
2. Fix the bug that when disable controller, it will cause wifi cannot RX, TX timeout, buffer lack and etc. (f8546145)
2018-11-16 02:42:38 +00:00
Ivan Grokhotkov
7b86247428
unit-test: use TEST_GROUPS to filter tests for psram_vspi and psram_hspi
2018-11-15 12:27:05 +00:00
Alexey Gerenkov
78a7a152d1
esp32: Fixes freezing core dump process when flash write address checks are enabled
2018-11-15 06:13:48 +00:00
Alexey Gerenkov
b152c1020c
esp32: Adds logging level to core dump script
2018-11-15 06:13:48 +00:00
Alexey Gerenkov
76e02cadcc
esp32: Adds support for core dump format version
2018-11-15 06:13:48 +00:00
Alexey Gerenkov
181a40ae30
esp32: Adds menuconfig option for max tasks number in core dump
2018-11-15 06:13:48 +00:00
Alexey Gerenkov
30e766ee6b
esp32: Core dump API to retrieve current core data layout in flash
2018-11-15 06:13:48 +00:00
Alexey Gerenkov
a55cc99f50
esp32: Replaces magic numbers with CRC for core dump in flash
2018-11-15 06:13:48 +00:00
Ivan Grokhotkov
8b5f61eb35
Merge branch 'bugfix/ethernet_fail_twice_init' into 'master'
...
fix bug of multi-call failure in esp_eth_init
See merge request idf/esp-idf!3673
2018-11-15 12:35:55 +08:00
Jiang Jiang Jian
bbdcff1f45
Merge branch 'bugfix/tw27096_fix_lwip_mbox_free_crash' into 'master'
...
fix the crash bug caused by sys_mbox_free
See merge request idf/esp-idf!3654
2018-11-15 10:31:35 +08:00
Ivan Grokhotkov
f1949a59b6
Merge branch 'bugfix/readdir_ut_timeout' into 'master'
...
spiffs: increase timeout in readdir test
Closes #41
See merge request idf/esp-idf!3687
2018-11-13 22:54:21 +08:00
morris
eec6de57ff
ethernet: multi-call failure in esp_eth_init
...
Because of incomplete state machine, ethernet driver will broken if esp_eth_init is called twice.
Detailed information here: https://ezredmine.espressif.cn:8765/issues/27332
2018-11-13 16:38:45 +08:00
michael
26626dfbf2
spi: add documents explicitly showing the executing core of the ISR
...
It is an ESP specific FreeRTOS feature that the ISR is always executed
on the core which calls the interrupt register function. In the SPI
driver, the function is always called in the bus initialization
function.
Hence, the ISR will be executed on the core which initialize the driver.
If the core is starved due to higher priority ISRs, or the interrupt is
disabled on the core (spinlock called, etc.), the ISR will not get
executed and SPI transactions will not be handled.
(MINOR CHANGE)
Resolves https://github.com/espressif/esp-idf/issues/2432 .
2018-11-13 11:49:31 +08:00
michael
a52ab8ca87
spi_master: modify the error msg a little when over freq limit
...
The MISO signal will be delayed if the GPIO matrix is enabled.
However, delay also comes from the slave.
Previous code only considers the former case, and assume the frequency
limitations is only violated when GPIO matrix is used.
Now we are able to calculate the freq limit when extenal MISO delay is
given (feature introduced in 9c6c6ec34ab0641ace89aeb9b1a133eb6fae1a18).
The frequency limit is lower when the external MISO delay is large, and
the limit is likely to be violated even with IOMUX.
Resolves https://github.com/espressif/esp-idf/issues/2690 .
2018-11-13 11:49:31 +08:00
Ivan Grokhotkov
356fe47ce1
spiffs: increase timeout in readdir test
...
Timeout of 15 seconds is not sufficient if SPIFFS partition needs to
be formatted, on some of the boards.
2018-11-13 11:41:19 +08:00
morris
5fccb73f86
ethernetif: fix potential memory leak
...
1. If L2_TO_L3_RX_BUF_MODE is not selected, we must assign l2_owner explictly before we call pbuf_free.
2. free intr resource in esp_eth_deinit
Closes https://github.com/espressif/esp-idf/issues/2670
2018-11-13 10:11:48 +08:00
Jiang Jiang Jian
ef4a87d62e
Merge branch 'bugfix/http_literal_caseinsensitive' into 'master'
...
Compare case-insensitive URI schemes
See merge request idf/esp-idf!3558
2018-11-12 17:03:06 +08:00
Ivan Grokhotkov
7efb3926c5
Merge branch 'feature/build_system_multi_target' into 'master'
...
build system: support for multiple targets (CMake only)
See merge request idf/esp-idf!3499
2018-11-12 15:30:36 +08:00
Jiang Jiang Jian
c7fb749b84
Merge branch 'bugfix/btdm_fix_memory_leak_in_v3.2' into 'master'
...
Component/bt: fix memory leak in service change char
See merge request idf/esp-idf!3631
2018-11-12 11:27:00 +08:00
Jiang Jiang Jian
ccb3841a9e
Merge branch 'feature/btdm_add_vendor_hci_cmd' into 'master'
...
component/bt: add vendor hci cmd
See merge request idf/esp-idf!3577
2018-11-12 11:26:35 +08:00
Angus Gratton
3685d325d8
Merge branch 'bugfix/multiple_github_pr' into 'master'
...
Multiple github PR's
See merge request idf/esp-idf!3665
2018-11-12 09:14:35 +08:00
Angus Gratton
a96deceb27
Merge branch 'feature/cmake_secure_boot_support' into 'master'
...
CMake : Secure Boot support added
See merge request idf/esp-idf!3522
2018-11-12 09:09:30 +08:00
Ivan Grokhotkov
ccfa134533
build system: support for multiple targets
2018-11-11 21:46:02 +08:00
Liu Zhi Fu
4fe3673f35
lwip: fix crash caused by sys_mbox_free
...
Fix lwip crashed bug caused by sys_mbox_free()
2018-11-11 12:15:51 +08:00
Jiang Jiang Jian
9859428606
Merge branch 'bugfix/btdm_add_scan_window_interval_check' into 'master'
...
Component/bt: add scan window and interval check when set scan params
See merge request idf/esp-idf!3581
2018-11-09 19:32:11 +08:00
zwj
baf57b9702
component/bt: add vendor hci cmd
2018-11-09 14:39:04 +08:00
zhiweijian
fb3aa88565
Component/bt: add BLE Blocking APIs
2018-11-09 03:31:08 +00:00
Stephen Bird
0c9f7271a9
Add checks to for CONFIG_MBEDTLS_SSL_ALPN
...
Merges https://github.com/espressif/esp-idf/pull/2569
2018-11-08 15:57:13 +05:30
Stephen Bird
b5c58557fc
bt: Fix bracket warning
...
Merges https://github.com/espressif/esp-idf/pull/2568
2018-11-08 15:57:12 +05:30
Damian Reboredo
049c9f7bea
esp_http_client: Fix infinite loop on esp_http_client_fetch_headers
...
error must also be returned if esp_tls_conn_read return 0 because socket was closed
Merges https://github.com/espressif/esp-idf/pull/2534
2018-11-08 15:57:11 +05:30
Paul Reimer
b358581ab8
heap: Compile heap_task_info.c conditionally on CONFIG_HEAP_TASK_TRACKING in heap CMakeLists.txt
...
Merges https://github.com/espressif/esp-idf/pull/2498
2018-11-08 15:57:11 +05:30
shawwwn
288d9b75e9
rtc_clk: bugfix: incorrect divider setting in rtc_clk_cpu_freq_to_config()
...
Merges https://github.com/espressif/esp-idf/pull/2404
2018-11-08 15:57:10 +05:30
Jiang Jiang Jian
71f1a34540
Merge branch 'feature/btdm_support_oob_in_SMP' into 'master'
...
Component/bt: support OOB in SMP
See merge request idf/esp-idf!3496
2018-11-08 16:44:15 +08:00
Jiang Jiang Jian
05838641ff
Merge branch 'bugfix/mesh_start_stop' into 'master'
...
mesh: update libs
See merge request idf/esp-idf!3569
2018-11-07 14:29:27 +08:00
qiyuexia
2d34a93dc4
mesh: update libs
...
1. fix ap_loss that occurs when the parent turns off the mesh function and becomes a normal WiFi with a different SSID.
2. add an event MESH_EVENT_NETWORK_STATE that contains information about whether there is a root in the current network.
3. modify the mechanism of mesh IE update.
4. fix a problem in the process of re-voting to select the root, the device that does not meet the conditions of being a root votes for itself.
5. fix an issue that occurs in esp_mesh_recv_toDS() when stopping the mesh.
6. when the user specifies a parent for the device, the device will set the authmode and password of its AP mode to the same value as the specified parent.
7. add two disconnected reason codes MESH_REASON_EMPTY_PASSWORD and MESH_REASON_PARENT_UNENCRYPTED.
2018-11-06 22:55:48 +08:00
Hrishikesh Dhayagude
2c353edbc4
components/bt: Fix btc_gatts_arg_deep_copy() and bta_gatts_indicate_handle()
2018-11-06 21:01:54 +08:00
Ivan Grokhotkov
621e316725
Merge branch 'feat/psram_support_hspi' into 'master'
...
esp32: support to use hspi to output clock for 4M psram
See merge request idf/esp-idf!3377
2018-11-06 20:34:41 +08:00
Anurag Kar
1f6622b2d1
CMake : Secure Boot support added
2018-11-06 17:09:55 +05:30
Jiang Jiang Jian
17c70a4a32
Merge branch 'bugfix/wifi_do_not_load_phy_data_if_fail_to_open_nvs' into 'master'
...
esp32: do not try to load PHY data if fail to open NVS
See merge request idf/esp-idf!3538
2018-11-06 18:01:58 +08:00
Jiang Jiang Jian
888406231c
Merge branch 'bugfix/btdm_fuction_in_isr_is_not_in_iram' into 'master'
...
components/bt: Put function in isr into iram
See merge request idf/esp-idf!3619
2018-11-06 17:13:34 +08:00
zhiweijian
77668b3912
Component/bt: add scan window and interval check when set scan params
2018-11-06 08:45:25 +00:00
zhiweijian
2e139c7885
Component/bt: fix memory leak in service change char
2018-11-06 08:43:59 +00:00
Ivan Grokhotkov
28f1e1597b
Merge branch 'bugfix/tickless_idle_single_core' into 'master'
...
freertos, pm: fix tickless idle not entered in single core mode
See merge request idf/esp-idf!3584
2018-11-06 12:15:03 +08:00
Ivan Grokhotkov
35d1c7b173
Merge branch 'bugfix/freertos_idle_tick_count' into 'master'
...
freertos: use xTaskQueueMutex to protect tick count
See merge request idf/esp-idf!3478
2018-11-06 12:14:51 +08:00
Ivan Grokhotkov
ddfd62ee66
Merge branch 'bugfix/register_map_LAN8720' into 'master'
...
ethernet: fix some bugs in Ethernet driver
See merge request idf/esp-idf!3490
2018-11-06 12:13:47 +08:00
Jiang Jiang Jian
ded53bd0ff
Merge branch 'bugfix/btdm_allow_a2dp_codec_dynamic_alloc' into 'master'
...
bugfix/btdm_allow_a2dp_codec_dynamic_allocated
See merge request idf/esp-idf!3598
2018-11-06 11:56:30 +08:00
morris
b6d7675e60
ethernet: fix some bugs in phy&mac driver
...
1. Original register mapping for LAN8720 has some registers that doesn't exist/support.
So just remove them, and fix the power and init function for LAN8720.
2. GPIO16 and GPIO17 is occupied by PSRAM, so only ETH_CLOCK_GPIO_IN mode is supported in that case if using PSRAM.
3. Fix bug of OTA failing with Ethernet
4. Fix bug of multicast with Ethernet
Closes https://github.com/espressif/esp-idf/issues/2564
Closes https://github.com/espressif/esp-idf/issues/2620
Closes https://github.com/espressif/esp-idf/issues/2657
2018-11-06 11:07:22 +08:00
Ivan Grokhotkov
364f033a49
Merge branch 'feature/vfs_utime' into 'master'
...
VFS: Implement utime() for FATFS and SPIFFS
See merge request idf/esp-idf!3610
2018-11-06 10:47:02 +08:00
Ivan Grokhotkov
761d44bd36
Merge branch 'bugfix/xts_compile_err' into 'master'
...
mbedtls: Fix compilation errors when CONFIG_MBEDTLS_HARDWARE_AES is disabled
See merge request idf/esp-idf!3506
2018-11-05 16:58:38 +08:00
Roland Dobai
fb334baa7c
VFS: Implement utime()
2018-11-05 09:54:01 +01:00
Ivan Grokhotkov
ada3bc3fb5
Merge branch 'bugfix/aes_sha_mpi_shared_regs' into 'master'
...
aes/sha/mpi: Bugfix a use of shared registers.
See merge request idf/esp-idf!3580
2018-11-05 16:31:03 +08:00
kooho
ea963c480c
driver(uart):update the comment of uart_set_wakeup_threshold
...
closes https://github.com/espressif/esp-idf/issues/2627
2018-11-05 13:09:12 +08:00
Ivan Grokhotkov
13046e7625
Merge branch 'bugfix/esp-tls-doc' into 'master'
...
esp-tls: Fix documentaion issue in esp_tls_conn_new_async API
See merge request idf/esp-idf!3545
2018-11-05 12:30:22 +08:00
Ivan Grokhotkov
ee0dea3d0d
Merge branch 'bugfix/esp_http_client_async_crash' into 'master'
...
esp_http_client: Fix crash in async mode
See merge request idf/esp-idf!3551
2018-11-05 12:30:04 +08:00
Konstantin Kondrashov
8bba348528
aes/sha/mpi: Bugfix a use of shared registers.
...
This commit resolves a blocking in esp_aes_block function.
Introduce:
The problem was in the fact that AES is switched off at the moment when he should give out the processed data. But because of the disabled, the operation can not be completed successfully, there is an infinite hang. The reason for this behavior is that the registers for controlling the inclusion of AES, SHA, MPI have shared registers and they were not protected from sharing.
Fix some related issue with shared using of AES SHA RSA accelerators.
Closes: https://github.com/espressif/esp-idf/issues/2295#issuecomment-432898137
2018-11-05 04:22:47 +00:00
Ivan Grokhotkov
fb7ba1baa0
Merge branch 'bugfix/unit_test_adjtime' into 'master'
...
Resolve ""test for thread safety adjtime and gettimeofday functions" fails randomly"
Closes #37
See merge request idf/esp-idf!3613
2018-11-05 12:20:07 +08:00
Ivan Grokhotkov
0716e65955
pm: prevent entering light sleep again immediately after wakeup
...
When light sleep is finished on one CPU, it is possible that the other
CPU will enter light sleep again very soon, before interrupts on the
first CPU get a chance to run. To avoid such situation, set a flag
for the other CPU to skip light sleep attempt.
2018-11-05 12:18:29 +08:00
Ivan Grokhotkov
22dd3103bd
pm: fix entering light sleep in single core mode
...
Tickless idle/light sleep procedure had a bug in single core mode.
Consider the flow of events:
1. Idle task runs and calls vApplicationIdleHook
2. This calls esp_vApplicationIdleHook, which calls esp_pm_impl_idle_hook, and pm lock for RTOS on the current core is released.
3. Then esp_vApplicationIdleHook calls esp_pm_impl_waiti, which checks that s_entered_light_sleep[core_id]==false and goes into waiti state.
4. Some interrupt happens, calls esp_pm_impl_isr_hook, which takes pm lock for RTOS. PM state goes back to CPU_FREQ_MAX.
5. Once the interrupt is over, vApplicationIdleHook returns, and Idle task continues to run, finally reaching the call to vApplicationSleep.
6. vApplicationSleep does not enter light sleep, because esp_pm_impl_isr_hook has already changed PM state from IDLE to CPU_FREQ_MAX.
This didn’t happen in dual core mode, because waiti state of one CPU was interrupted by CCOMPARE update interrupt from the other CPU, in which case PM lock for FreeRTOS was not taken.
Fix by inverting the meaning of the flag (for convenience) and only setting it to true when vApplicationSleep actually fails to enter light sleep.
2018-11-05 12:18:29 +08:00
Ivan Grokhotkov
ae08bdcc31
freertos: fix compilation warning in single core mode
...
When tickless idle is enabled
2018-11-05 12:18:29 +08:00
Ivan Grokhotkov
b7841ec313
freertos: use xTaskQueueMutex to protect tick count
...
Having two different spinlocks is problematic due to possibly
different order in which the locks will be taken. Changing the order
would require significant restructuring of kernel code which is
undesirable.
An additional place where taking xTickCountMutex was needed was in
vApplicationSleep function. Not taking xTickCountMutex resulted in
other CPU sometimes possibly advancing tick count while light sleep
entry/exit was happening. Taking xTickCountMutex in addition to
xTaskQueueMutex has shown a problem that in different code paths,
these two spinlocks could be taken in different order, leading to
(unlikely, but possible) deadlocks.
2018-11-05 03:08:26 +00:00
He Yin Ling
242724bbe9
Merge branch 'test/fix_bug_of_scan_interval_and_windows' into 'master'
...
test: fix bug of scan interval and window
See merge request idf/esp-idf!3606
2018-11-05 11:00:58 +08:00
baohongde
b33cdfc1f5
components/bt: Put function in isr into iram
2018-11-02 16:37:52 +08:00
Jiang Jiang Jian
930da8fd31
Merge branch 'bugfix/iperf_bt_error_when_wifi_connect' into 'master'
...
components/bt: Point ACL RX buffer ptr to ACL RX buffer if ACL RX buffer ptr is null
See merge request idf/esp-idf!3536
2018-11-02 16:12:31 +08:00
Ivan Grokhotkov
7d465a5487
Merge branch 'bugfix/event_perf_test_psram' into 'master'
...
esp_event: lower test performance threshold for PSRAM config
Closes #34
See merge request idf/esp-idf!3603
2018-11-02 14:12:17 +08:00
Konstantin Kondrashov
84f1eb5eac
newlib: Fix UT adjtime
2018-11-01 20:34:39 +08:00
baohongde
f2309f1013
components/bt: Point ACL RX buffer ptr to ACL RX buffer if ACL RX buffer ptr is null
...
1. When WIFI task or other high priority task blocks the Bluetooth task, ACL RX buffer will use up, ACL RX buffer ptr will point to null and will never point to a valid adress. Causing errors in Bluetooth.
2. hcimsgs.h used whether flow control is on or off
2018-11-01 17:33:44 +08:00
Jiang Jiang Jian
12b2268ee5
Merge branch 'bugfix/btdm_sniff_anchor_point_calculation_error' into 'master'
...
bugfix/btdm_sniff_anchor_point_calculation_error
See merge request idf/esp-idf!3582
2018-11-01 15:58:00 +08:00
Jiang Jiang Jian
a60a71ff07
Merge branch 'bugfix/btdm_name_buffer_allocation_size_differs' into 'master'
...
components/bt: Fix the different size of name buffer allocation size
See merge request idf/esp-idf!3587
2018-11-01 15:56:45 +08:00
Jiang Jiang Jian
cac7b951a8
Merge branch 'bugfix/btdm_fix_get_attr_value_error' into 'master'
...
Component/bt: fix get attr value API error
See merge request idf/esp-idf!3583
2018-11-01 15:55:22 +08:00
Jiang Jiang Jian
b601fcfde0
Merge branch 'bugfix/btdm_fix_ble_cannt_send_or_receive_packet_sometimes' into 'master'
...
Component/bt: fix ble cannot send or receive packet sometimes
See merge request idf/esp-idf!3585
2018-11-01 15:55:05 +08:00
Sagar Bijwe
fbcc160675
mbedtls: Fix compilation errors when CONFIG_MBEDTLS_HARDWARE_AES is disabled
2018-11-01 12:08:45 +05:30
Ivan Grokhotkov
d98d1ef1c2
Merge branch 'bugfix/bootloader_iram_overlap_check' into 'master'
...
bootloader: verify that loaded image does not overlap bootloader code
See merge request idf/esp-idf!3409
2018-11-01 13:56:43 +08:00
Ivan Grokhotkov
d28c99d36c
esp_event: lower test performance threshold for PSRAM config
2018-11-01 13:50:08 +08:00
Ivan Grokhotkov
cd38970ef9
Merge branch 'bugfix/wl_version_update' into 'master'
...
Version update from V1 to V2 now done in correct way.
See merge request idf/esp-idf!3557
2018-11-01 12:50:49 +08:00
chensheng
d336f1513f
test: fix bug of scan interval and window
2018-11-01 11:54:52 +08:00
baohongde
373f1c121b
component/bt: bugfix of error when entering sniff mode with attempt large than 0xFF
2018-10-31 16:16:49 +00:00
wangmengyang
159d4ac742
component/bt: bugfix for the error in calculation sniff anchor point which can result in supervision timeout after connection is brought into sniff mode
2018-10-31 16:16:49 +00:00
zhiweijian
1716d12547
Component/bt: fix ble cannot send or receive packet sometimes
2018-10-31 16:13:51 +00:00
wangmengyang
7bb83b0056
component/bt: allow dynamic allocation of SBC encoder/decoder buffer used in A2DP to save internal DRAM
2018-10-31 16:11:49 +00:00
Ivan Grokhotkov
a4357aed91
Merge branch 'fix/spi_test_memory_layout' into 'master'
...
test: fix the unit test fail issue under single_core config
See merge request idf/esp-idf!3596
2018-10-31 21:37:56 +08:00
Jiang Jiang Jian
dba29eeb2e
Merge branch 'bugfix/btdm_change_default_CoD_of_BT_profile' into 'master'
...
components/bt: Set default Class of Device of BT profile
See merge request idf/esp-idf!3564
2018-10-31 20:51:15 +08:00
baohongde
e19a352a2b
components/bt: Fix the different size of name buffer allocation size
...
Close https://github.com/espressif/esp-idf/issues/2615
2018-10-31 17:39:31 +08:00
Jiang Jiang Jian
39c03558e8
Merge branch 'bugfix/btdm_add_attr_handle_for_ESP_GATTS_CONF_EVT' into 'master'
...
Component/bt: add attr_handle for ESP_GATTS_CONF_EVT
See merge request idf/esp-idf!3492
2018-10-31 17:20:47 +08:00
Michael (XIAO Xufeng)
4132834faa
test: fix the unit test fail issue under single_core config
...
Introduced in 97e3542947
.
The previous commit frees the IRAM part when single core, but doesn't
change the memory layout functions. The unit test mallocs IRAM memory
from the heap, accidently into the new-released region, which doesn't
match the memory layout function.
This commit update the memory layout function to fix this.
2018-10-31 17:04:32 +08:00
Angus Gratton
e4369aaed4
Merge branch 'feature/mqtt_mutual_auth' into 'master'
...
MQTT: Added client cert ssl example per PR from GitHub
See merge request idf/esp-idf!3473
2018-10-31 07:06:58 +08:00
Jitin George
3551b84c3a
esp_http_client: Fix crash in async mode
...
Closes https://github.com/espressif/esp-idf/issues/2624
2018-10-30 09:58:57 +00:00
Jiang Jiang Jian
97e3542947
Merge branch 'bugfix/release_some_memory_on_single_core_mode' into 'master'
...
release memory not used in single core mode
See merge request idf/esp-idf!2733
2018-10-30 15:53:31 +08:00
Jiang Jiang Jian
f6dd3520c4
Merge branch 'bugfix/assert_when_do_wps_with_mikrotik' into 'master'
...
wifi: bugfix of assert when do wps with mikrotik
See merge request idf/esp-idf!3572
2018-10-30 15:52:02 +08:00
Jiang Jiang Jian
d335bdcf71
Merge branch 'bugfix/btdm_reduce_iram_size' into 'master'
...
components/bt: Reduce IRAM size
See merge request idf/esp-idf!3574
2018-10-30 15:17:06 +08:00
David Cermak
0cdb33c9dd
mqtt: ssl mutual authentication example added per PR from github, corrected cmake build, updated per idf style
...
Merges https://github.com/espressif/esp-idf/pull/2490
2018-10-30 08:04:09 +01:00
Riccardo Binetti
9ce8e1e5a1
transport_ssl: add support for mutual SSL authentication
...
Signed-off-by: David Cermak <cermak@espressif.com>
2018-10-30 08:04:09 +01:00
Riccardo Binetti
dec70a7601
esp-tls: add support for mutual SSL authentication
...
Signed-off-by: David Cermak <cermak@espressif.com>
2018-10-30 08:04:09 +01:00
zhiweijian
950fe25120
Component/bt: fix get attr value API error
2018-10-30 15:00:23 +08:00
Angus Gratton
b650d19c6b
Merge branch 'bugfix/docs_fixes_from_github' into 'master'
...
Documentation bugfixes from GitHub
See merge request idf/esp-idf!3570
2018-10-30 07:40:16 +08:00
Deng Xin
b8784a1863
wifi: bugfix of assert when do wps with mikrotik
...
Problem Decribe
The problem happenned when do wps with a mikrotik router
1. router always want to do connect with 32 without EAP-WSC step
2. after 4 way timeour, 32 crash
Root Cause
The reason why can not start EAP-WSC step is router's check method is RSN > WPA > WPS, when it found there include RSN and WPS in assoc, it will choice do 4 way rather than WPS
The reason of second problem is 32's EAPOL start timer didn't stop and send EAPOL start to a null pointer
Soultion
1. remove RSN and WPA ie when do WPS step
2. check mac address's pointer before send EAPOL start
closes: https://github.com/espressif/esp-idf/issues/2382
2018-10-29 13:29:41 +00:00
Michael (XIAO Xufeng)
ff346f92af
psram: add test for 4M psram
2018-10-29 20:26:30 +08:00
Michael (XIAO Xufeng)
20a666fe03
esp32: support to use hspi to output clock for 4MB PSRAM
...
Resolves https://github.com/espressif/esp-idf/issues/2128 .
2018-10-29 20:22:44 +08:00
Michael (XIAO Xufeng)
9b5d0f3322
spi: shown owner of spi host explicitly
2018-10-29 20:22:44 +08:00
baohongde
df5839420d
components/bt: Reduce IRAM size
...
libbtdm: 2608B
idf: 924B
2018-10-29 16:54:32 +08:00
Angus Gratton
98a80ccdab
Merge branch 'bugfix/mdns_crash_on_network_change' into 'master'
...
Fixed mdns crashes on network changes
See merge request idf/esp-idf!3546
2018-10-29 16:31:52 +08:00
XiaXiaotian
901e2af793
esp32: do not try to load PHY data if fail to open NVS
2018-10-29 02:24:58 +00:00
Peter Meerwald-Stadler
6a197d305f
Fix some typos related to ethernet documentation and Kconfig. Closes https://github.com/espressif/esp-idf/pull/2642
2018-10-28 21:12:09 +01:00
baohongde
67e62aa105
components/bt: Set default Class of Device of BT profile
...
The CoD of each profile both are 0x2c0414, now they are as follow:
A2DP sink: 0x240414
A2DP source: 0x280400
HFP: 0x200408
SPP: 0x001F00
2018-10-26 17:03:39 +08:00
Dmitry
82eca97300
Version update from V1 to V2 now done in correct way.
...
Before this works only first time.
The source and test updated.
State length was changed to macro.
2018-10-26 09:21:30 +03:00
Renz Christian Bagaporo
5a83347bec
event: Implement event loop library
2018-10-26 13:14:19 +08:00
Angus Gratton
cdb10ec5ad
Merge branch 'bugfix/rename_http_server' into 'master'
...
Rename http_server component to esp_http_server
See merge request idf/esp-idf!3553
2018-10-26 12:59:38 +08:00
Ivan Grokhotkov
73d1b5a7a0
bootloader: verify that loaded image does not overlap bootloader code
...
Fixes CVE-2018-18558
2018-10-26 12:44:10 +08:00
Angus Gratton
5bcd864430
Merge branch 'fix/spi_polling_speed_test' into 'master'
...
spi: speed up polling performance and fix several tests
Closes #33
See merge request idf/esp-idf!3530
2018-10-26 12:41:00 +08:00
Angus Gratton
705d184af2
Merge branch 'bugfix/missing_header_file' into 'master'
...
esp32: Add missing header file in esp_task.h
See merge request idf/esp-idf!3353
2018-10-26 12:19:50 +08:00
Jiang Jiang Jian
c884d0a3bc
Merge branch 'bugfix/fix_some_wifi_bugs_1022' into 'master'
...
esp32: fix some wifi bugs
See merge request idf/esp-idf!3539
2018-10-26 11:50:44 +08:00
Jiang Jiang Jian
93dbf2f3ba
Merge branch 'bugfix/btdm_read_multiple_return_callback_status_ESP_GATT_STACK_RSP' into 'master'
...
Component/bt: fix read multiple return callback status: ESP_GATT_STACK_RSP
See merge request idf/esp-idf!3437
2018-10-26 11:41:18 +08:00
Jiang Jiang Jian
0bc364f7ea
Merge branch 'bugfix/btdm_add_sniff_mode_to_spp' into 'master'
...
components/bt: Add sniff mode to SPP
See merge request idf/esp-idf!3472
2018-10-26 11:38:50 +08:00
Jiang Jiang Jian
762c04bd61
Merge branch 'bugfix/btdm_disconnect_ble_when_ESP_BLE_SM_ONLY_ACCEPT_SPECIFIED_SEC_AUTH_failed' into 'master'
...
Component/bt: add ble disconnect when ACCEPT_SPECIFIED_SEC_AUTH failed
See merge request idf/esp-idf!3465
2018-10-26 11:34:26 +08:00
Anton Maklakov
6e6f07ba59
http: Compare case-insensitive URI schemes like as in other places
2018-10-25 21:03:44 +08:00
Jitin George
e37aba0d93
esp-tls: Fix documentaion issue in esp_tls_conn_new_async API
...
Closes https://github.com/espressif/esp-idf/issues/2576
2018-10-25 09:13:49 +00:00
Liu Zhi Fu
8404b2546d
esp32: fix some wifi bugs
...
Fix following WiFi bugs:
1. Fix the bug that MIC verification fails on soft-AP mode
2. Modify mesh root to have same behavior as normal WiFi STA in state change
3. Fix the bug that sniffer can't catch control packets
4. Fix crash bug in soft-AP mode
5. Fix ACM(Admission Control Management) bug
2018-10-25 16:47:57 +08:00
zhiweijian
4e81705ca2
Component/bt: support OOB in SMP
2018-10-25 07:09:59 +00:00
zhiweijian
6b96a3c23b
Component/bt: add ble disconnect when ACCEPT_SPECIFIED_SEC_AUTH failed
2018-10-25 06:03:16 +00:00
Michael (XIAO Xufeng)
90d229eb6d
spi_master: speed up polling performance by putting into IRAM
2018-10-25 12:31:45 +08:00
Michael (XIAO Xufeng)
d0361a32d7
test: fix the IRAM type conflict issue using heap_caps_malloc
2018-10-25 12:31:44 +08:00
zwj
501ebabc4e
component/bt: fix remove bond list failed
2018-10-24 23:23:50 +00:00
Anurag Kar
e2b1ae259d
Protocomm : Use esp_http_server instead of http_server
2018-10-24 17:32:43 +05:30
Anurag Kar
2af9d7e0ed
HTTP Server : Added esp_ prefix to http_server component files
2018-10-24 17:32:20 +05:30
David Cermak
097282a8e3
mdns: fixed crashes on network changes
...
1) two events AP_STOP, AP_START shortly after each other may cause IGMP config on already stopped netif
2) not properly locked sending packets to queue from timer task
closes #2580
2018-10-24 12:03:41 +02:00
Jiang Jiang Jian
0de637cf9e
Merge branch 'bugfix/tw26711_fix_wifi_memory' into 'master'
...
esp32: fix wifi memory leak
See merge request idf/esp-idf!3523
2018-10-22 21:20:14 +08:00
Angus Gratton
38bd836d05
Merge branch 'feature/cmake-unit-test' into 'master'
...
cmake: add unit tests build support
See merge request idf/esp-idf!3003
2018-10-22 16:29:15 +08:00
Liu Zhi Fu
20217c7dfe
esp32: fix wifi memory leak
...
Fix a WiFi memory leak bug
2018-10-21 20:37:08 +08:00
Anton Maklakov
4319e234e2
tcp_transport: Remove the ignore warning because we had idf/esp-idf!3359
2018-10-21 15:11:45 +08:00
Anton Maklakov
e3fce506b8
test_spi_slave: fix warnings about unused identifiers
2018-10-21 15:11:45 +08:00
Anton Maklakov
ef84773689
intr: fix a type mismatch warning
2018-10-21 15:11:45 +08:00
Anton Maklakov
92caddb501
pthread: fix a type mismatch warning
2018-10-21 15:11:45 +08:00
Renz Bagaporo
cc774111bf
cmake: Add support for test build
2018-10-20 12:07:24 +08:00
zhiweijian
44827bb681
Component/bt: add attr_handle for ESP_GATTS_CONF_EVT
2018-10-19 08:19:36 +00:00
Jiang Jiang Jian
129d32772e
Merge branch 'feature/add_ping_packet_len_and_QoS' into 'master'
...
ping: add length and QoS
See merge request idf/esp-idf!3379
2018-10-19 15:29:58 +08:00
Ivan Grokhotkov
0663ab7609
Merge branch 'feature/uart_rs485_test' into 'master'
...
driver: rs485 test support
See merge request idf/esp-idf!2701
2018-10-19 13:05:55 +08:00
Ivan Grokhotkov
3e65ce3e93
Merge branch 'bugfix/unit_tests_tcpip_adapter' into 'master'
...
unit tests: Only initialise tcpip_adapter() when needed by the test
See merge request idf/esp-idf!3364
2018-10-19 12:33:09 +08:00
Ivan Grokhotkov
bd11965f6c
Merge branch 'bugfix/ndebug_build' into 'master'
...
soc,sdmmc: fix build failures when NDEBUG is used
See merge request idf/esp-idf!3352
2018-10-19 11:55:37 +08:00
Ivan Grokhotkov
c76f71cd5f
Merge branch 'bugfix/move_ringbuf_lib_to_iram' into 'master'
...
esp_ringbuf: fix default placement from flash to IRAM
See merge request idf/esp-idf!3452
2018-10-18 22:57:46 +08:00
Ivan Grokhotkov
efa43df039
Merge branch 'bugfix/fix_random_failure_with_ota_updates' into 'master'
...
app_update: fix intermittent failure with firmware updates
See merge request idf/esp-idf!3401
2018-10-18 22:32:33 +08:00
Jiang Jiang Jian
f47ae9fc26
Merge branch 'bugfix/coex_hw_blocking_2nd' into 'master'
...
coexist : fix coexist bugs related to coex hw blocking
See merge request idf/esp-idf!3414
2018-10-18 21:25:24 +08:00
Jiang Jiang Jian
88d4217f07
Merge branch 'bugfix/fix_autoip_bug' into 'master'
...
fix the compile bug for autoip
See merge request idf/esp-idf!3450
2018-10-18 14:55:34 +08:00
Mahavir Jain
26845936b3
app_update: remove unrequired static attribute from mmap handle
2018-10-18 04:38:31 +00:00
Mahavir Jain
b3aff63db4
app_update: fix intermittent failure with firmware updates
...
Routine `spi_flash_cache2phys` sometimes return incorrect value,
resulting in failure in getting currently running ota partition.
This in turn aborts firmware update process.This issue was more
prominent with SPIRAM enabled cases.
Fix ensures proper cache guards during `spi_flash_cache2phys`, and
also for few other similar APIs.
In addition, `esp_ota_get_running_partition` has also been optimized
to save currently running partition for subsequent invocations.
Fixes https://github.com/espressif/esp-idf/issues/2451
2018-10-18 04:38:31 +00:00
Mahavir Jain
49130c6b34
esp_ringbuf: fix default placement from flash to IRAM
...
In earlier change this component was decoupled from freertos and hence
regression was introduced which changed default placement to flash. Some
device drivers make use of ringbuffer while flash cache is being disabled
and hence default placement should instead be internal memory.
Closes: https://github.com/espressif/esp-idf/issues/2517
2018-10-17 23:34:07 -05:00
Tian Hao
6934a739d7
coexist : fix coexist bugs related to coex hw blocking
...
1. fix some bugs by previous coex hw blocking bugfix,
such like, rwble.c (64, 0) line 222
2. fix bug that ble scan performance is very low when software coexist
is working.
3. update libcoexist version to v1.1.0
2018-10-18 11:49:10 +08:00
Ivan Grokhotkov
18684f53ee
Merge branch 'bugfix/uart_wait_idle' into 'master'
...
uart: fix uart_tx_wait_idle to wait for fifo empty
See merge request idf/esp-idf!3489
2018-10-18 11:25:59 +08:00
Jiang Jiang Jian
9b566a8965
Merge branch 'bugfix/wpa2_fixes' into 'master'
...
wpa2_enterprise fixes from Github
See merge request idf/esp-idf!3166
2018-10-18 11:10:10 +08:00
Jiang Jiang Jian
7f9dfc060c
Merge branch 'mesh/bugfix_esp_ssid_ie' into 'master'
...
mesh: fix a bug in generating ESP-SSID IE
See merge request idf/esp-idf!3382
2018-10-18 11:06:44 +08:00
Angus Gratton
159ff6e08e
unit tests: Only initialise tcpip_adapter() when needed by the test
...
Prevents unexpected memory allocations when running tests which
don't require tcpip_adapter.
2018-10-17 22:53:46 +00:00
zhiweijian
30ea8c7048
Component/bt: read multiple return callback status: ESP_GATT_STACK_RSP
2018-10-17 12:34:34 +00:00
Anurag Kar
1437646ae0
HTTP Server : Automated 408 error response restricted to timeout in receiving packet header
2018-10-17 17:36:50 +05:30
Anurag Kar
ae5989528e
HTTP Server : Added helper functions for sending HTTP error 408 and 500
2018-10-17 17:36:50 +05:30
Anurag Kar
30632c0c34
HTTP Server : Bug fixed in httpd_recv logic and updated function descriptions
2018-10-17 17:36:50 +05:30
Anurag Kar
7e04e283d5
HTTP Server : Use getsockopt instead of errno
2018-10-17 17:36:50 +05:30
Anurag Kar
47a106879a
HTTP Server : Return HTTPD_SOCK_ERR_ based on errno set during send / recv
...
This feature allows `httpd_req_recv()` and `httpd_send()` functions to return
specific `HTTPD_SOCK_ERR_` codes in case of socket errors. This is useful
in case of errors like `EAGAIN`, `EINTR`, etc. when the user may want to
retry `httpd_req_recv()` / `httpd_send()` function call.
2018-10-17 17:36:50 +05:30
Alex Lisitsyn
f0eb9985b9
examples: freemodbus port slave basic implementation
...
This example adds functionality to support basic communication in RS485 networks using Modbus protocol.
This example uses FreeModbus stack and regular UART driver API to communicate in RS485 half duplex mode.
Added initial support of modbus controller pure C api to access device parameters over Modbus transport.
Move freemodbus stack and port files into components folder
Move the modbus_controller interface into components idf folder
Source files updated after review.
Add modbus interface documentation docs/en/api-reference/protocols/modbus.rst
porttimer.c: fix bug with timer1 selected in the Kconfig
Add support of cmake system (added cmake files)
Closes https://github.com/espressif/esp-idf/issues/858
2018-10-17 12:47:12 +02:00
Alex Lisitsyn
5b7b64b946
driver: rs485 test support (remove timeout tag)
...
Adds test functionality with TEST_CASE_MULTIPLE_DEVICES() macro for RS485 test support.
2018-10-17 12:47:12 +02:00
Alex Lisitsyn
61bc733791
driver: rs485 test support
...
Adds test functionality with TEST_CASE_MULTIPLE_DEVICES() macro for RS485 test support.
2018-10-17 12:45:56 +02:00
qiyueixa
71b5dcfd73
mesh: fix a bug in generating ESP-SSID IE
...
1. wifi: if Wi-Fi is not scanning, ignore beacons from different channels.
2018-10-17 17:52:29 +08:00
zhangyanjiao
32f3972284
add ping length and QoS
2018-10-17 09:39:27 +00:00
zhangyanjiao
e3322bde6f
fix the compile bug for autoip
2018-10-17 09:32:08 +00:00
island
024f27f3d5
component/bt: modify the BLE example to make it run with "numeric comparison" mode
2018-10-17 16:55:11 +08:00
Angus Gratton
222a7118a9
Merge branch 'docs/freertos_words_to_bytes' into 'master'
...
FreeRTOS: Update API reference from words to bytes
See merge request idf/esp-idf!3453
2018-10-17 16:41:28 +08:00
Ivan Grokhotkov
d57132b212
Merge branch 'bugfix/tw26696_fix_wifi_timer' into 'master'
...
esp32: fix WiFi timer inaccurate bug
See merge request idf/esp-idf!3471
2018-10-17 16:37:22 +08:00
Angus Gratton
dad3531f96
Merge branch 'update/mfg_gen' into 'master'
...
Update mfg utility and nvs partition utility to make Python2 and Python3 compatible
See merge request idf/esp-idf!3243
2018-10-17 15:23:27 +08:00
Liu Zhi Fu
1afb8001dd
esp32: fix WiFi timer inaccurate bug
...
Fix the bug that WiFi timer is not accurate when sleep is on
2018-10-17 09:47:25 +08:00
Angus Gratton
95e4bdf030
Merge branch 'bugfix/run_esptool_espport' into 'master'
...
cmake: Handle ESPPORT environment variable correctly
See merge request idf/esp-idf!3482
2018-10-17 08:14:20 +08:00
Angus Gratton
66a54c7abf
Merge branch 'feature/34_coding_scheme' into 'master'
...
bootloader: 3/4 Coding Scheme support
See merge request idf/esp-idf!3430
2018-10-16 15:07:43 +08:00
Angus Gratton
f53fef9936
Secure Boot & Flash encryption: Support 3/4 Coding Scheme
...
Includes esptool update to v2.6-beta1
2018-10-16 16:24:10 +11:00
Angus Gratton
7d7975d6c6
Merge branch 'bugfix/fuzzer_ci_tests_to_new_lwip' into 'master'
...
LWIP Fuzzer: updated fuzzer tests to be compatible with new lwip module
See merge request idf/esp-idf!3278
2018-10-16 08:01:00 +08:00
Ivan Grokhotkov
508fb79a26
uart: fix uart_tx_wait_idle to wait for fifo empty
...
In some cases, when data was just written into UART FIFO, transmitter
state could be still zero while the FIFO did contain some data.
This resulted in uart_tx_wait_idle occasionally returning before all
the data was sent out.
Fix by checking both UART transmitter state and TX FIFO count.
2018-10-15 20:08:16 +08:00
Jeroen Domburg
a78fd2b13c
Merge branch 'feature/64mb_psram_support_base' into 'master'
...
Feature/64mb psram support base
See merge request idf/esp-idf!2887
2018-10-15 15:54:10 +08:00
Ivan Grokhotkov
a1f809fcc5
bootloader: provide implementation of abort
...
ROM definition of `abort` was removed in 9240bbb
. The old definition
resulted in a panic due to a jump to a null pointer (abort member in
ROM stub table was zero). The new definition triggers a debug
exception if JTAG is connected, or goes into an infinite loop to be
reset by the WDT.
2018-10-15 15:02:56 +08:00
Ivan Grokhotkov
a20d9287fe
soc: use _EARLY versions of ESP_LOG
...
Some logging done in soc component may happen before logging via
stdout is possible. Use _EARLY version of log calls to make sure that
output is visible. The downside is that application does not have a
way to silence these logs. However since the soc component doesn’t
use any LOGV/LOGD/LOGI and only logs warnings and errors, this should
not impact the application.
2018-10-15 14:59:46 +08:00
Ivan Grokhotkov
ab68b9d90d
soc,sdmmc: fix build failures when NDEBUG is used
...
Use explicit error checking instead of asserts, use SOC_LOG to print
error/warning messages where needed.
2018-10-15 14:57:12 +08:00
Jeroen Domburg
81e35a142a
Spiram: Add option to reserve MMU banks; add himem API to make use of those banks
2018-10-15 14:32:58 +08:00
Angus Gratton
897670b0ab
cmake: Handle ESPPORT environment variable correctly
...
Closes https://github.com/espressif/esp-idf/issues/2553
2018-10-15 10:25:44 +11:00
Shivani Tipnis
7c08fcccaf
util: Update docs as per review comments
2018-10-12 11:04:49 +05:30
Shivani Tipnis
5bee9faf49
tools: Add Python2 and Python3 compatibility support to nvs util tool and mfg tool
2018-10-12 11:04:49 +05:30
Shivani Tipnis
1d38d8a17f
nvs_util: Add Python2 and Python3 compatible
2018-10-12 11:04:49 +05:30
Shivani Tipnis
0f6bcec2bc
nvs_part_gen: Add changes to partition size input
2018-10-12 11:04:49 +05:30
Shivani Tipnis
60df21115e
nvs_part_gen: Update to make python version compatible
...
(cherry picked from commit 3506b2d60792e5d4ed4f744b28f2da6733c6aae7)
2018-10-12 11:04:49 +05:30
Shivani Tipnis
1460f03065
nvs_util: Add Python2 and Python3 compatible
2018-10-12 11:04:49 +05:30
Shivani Tipnis
fb31788504
nvs_part_gen: Add changes to partition size input
2018-10-12 11:04:49 +05:30
Shivani Tipnis
4bc87a414f
nvs_part_gen: Update to make python version compatible
...
(cherry picked from commit 3506b2d60792e5d4ed4f744b28f2da6733c6aae7)
2018-10-12 11:04:49 +05:30
baohongde
a6d054b079
components/bt: Add sniff mode to SPP
...
In idle state for a while, SPP will enter sniff mode.
2018-10-12 11:22:28 +08:00
David Cermak
67153be14f
lwip: updated fuzzer tests to be compatible with new lwip module
2018-10-11 08:05:14 +02:00
Jiang Jiang Jian
1a743ad66d
Merge branch 'bugfix/several_bugfix_about_ba_session_setup' into 'master'
...
esp32: several fixes/optimizations about BlockAck(BA) setup
See merge request idf/esp-idf!3374
2018-10-11 11:28:20 +08:00
Angus Gratton
299704cec3
Merge branch 'feature/unified_provisioning' into 'master'
...
provisioning: This patch adds the unified provisioning support
See merge request idf/esp-idf!2812
2018-10-10 16:29:11 +08:00
Angus Gratton
3e0ff8e843
Merge branch 'doc/nvs_encr_doc' into 'master'
...
nvs_flash: Update documentation at various places to indicate NVS encryotion is supported
See merge request idf/esp-idf!3431
2018-10-10 14:58:15 +08:00
Angus Gratton
31cf117404
Merge branch 'feature/bss_seg_in_external_memory' into 'master'
...
memory: support .bss segment can be in psram
See merge request idf/esp-idf!2236
2018-10-10 14:40:21 +08:00
Angus Gratton
fc2230aeda
Merge branch 'feature/error_check_without_abort' into 'master'
...
esp32: Add macro to check a condition without abort
See merge request idf/esp-idf!3348
2018-10-10 14:31:38 +08:00
Angus Gratton
f1ccd47fdb
Merge branch 'bugfix/fix_psram_eid' into 'master'
...
bugfix(psram): fix psram eid
See merge request idf/esp-idf!3392
2018-10-10 11:37:43 +08:00
Angus Gratton
7904da0600
Merge branch 'bugfix/httpd_default_content_type' into 'master'
...
HTTP Server : Default content type of response should be HTTPD_TYPE_TEXT
See merge request idf/esp-idf!3443
2018-10-10 08:21:56 +08:00
Angus Gratton
aaacd5412d
Merge branch 'bugfix/httpd_chunked_content_len' into 'master'
...
Remove Content-Length from chunked encoding
See merge request idf/esp-idf!3442
2018-10-10 08:21:50 +08:00
Krzysztof Budzynski
cd5f8bcf74
MCPWM API doc update
2018-10-10 08:15:23 +08:00
Darian Leung
6f91640690
FreeRTOS: Update API reference from words to bytes
...
This commit updates some of the API references in task.h so
that stack sizes are referred to in bytes rather than words as
found in the vanilla version.
Closes #2528
2018-10-09 20:49:19 +08:00
Jiang Jiang Jian
9c148f6ad6
Merge branch 'bugfix/btdm_fix_connect_interval_error_in_slave_adv_params' into 'master'
...
Component/bt: fix connection interval error in slave adv params
See merge request idf/esp-idf!3407
2018-10-09 17:01:44 +08:00
Roland Dobai
d4e572bdb1
esp32: Add macro to check a condition without abort
...
Closes https://github.com/espressif/esp-idf/issues/2325
2018-10-09 08:57:23 +02:00
Liu Zhi Fu
660770ea97
esp32: several fixes about BA session setup
...
1. Fix the bug that ESP32 will reject the retry AddBA request frame
if AddBA response frame is failed to sent by WiFi LMAC
2. Fix the bug that AddBA request retrys too frequently
3. Forbid BA session setup for VO queue related TID
2018-10-09 12:07:30 +08:00
Jiang Jiang Jian
83d4081fba
Merge branch 'bugfix/fix_close_socket_crash_bug' into 'master'
...
lwip: fix the crash when close socket
See merge request idf/esp-idf!3384
2018-10-08 21:23:57 +08:00
Anurag Kar
8be9e0946f
HTTP Server : Default content type of response should be HTTPD_TYPE_TEXT
...
Closes https://github.com/espressif/esp-idf/issues/2527
2018-10-08 18:12:15 +05:30
chenjianqiang
a10b7e892c
bugfix(psram): fix psram driver
...
1. remove use EID to distinguish psram voltage
2. 1V8 64Mbit psram and 3V3 64Mbit psram use the same psram driver(standard spi interface)
3. set cs hold time register as 1
2018-10-08 19:55:13 +08:00
Assaf Inbal
f4e867a148
Remove Content-Length from chunked encoding
...
Content-Length header should not be included when using chunked encoding.
Some browsers will close the socket after seeing the 0 sized response instead of
reading the chunks.
Merges https://github.com/espressif/esp-idf/pull/2458
2018-10-08 15:58:41 +05:30
Angus Gratton
05c510b44e
Merge branch 'test/spi_slave_psram_disable' into 'master'
...
test: disable the spi slave startup test when psram is enabled
See merge request idf/esp-idf!3373
2018-10-08 16:28:41 +08:00
Angus Gratton
a85a633384
Merge branch 'fix/spi_master_cmd_addr_lsbfirst' into 'master'
...
spi_master: fix the command and address field when LSB_FIRST enabled
See merge request idf/esp-idf!3398
2018-10-08 16:26:27 +08:00
Jiang Jiang Jian
221eced06d
Merge branch 'bugfix/no_disconnect_event_report_if_no_correct_status_code_report' into 'master'
...
WiFi: bugfix of no disconnect event report if no correct status code report
See merge request idf/esp-idf!3370
2018-10-08 15:59:07 +08:00
Angus Gratton
1d58429bad
Merge branch 'feature/global_ca_store' into 'master'
...
esp_tls: Support for global CA store.
See merge request idf/esp-idf!3432
2018-10-08 14:51:02 +08:00
Angus Gratton
e99035af94
Merge branch 'feature/ethernet_example_iperf' into 'master'
...
ethernet: add iperf example to test real bandwidth
See merge request idf/esp-idf!3332
2018-10-08 12:27:05 +08:00
morris
7bc36d23e1
ethernet: add iperf example to test real bandwidth
...
1. Add command for Ethernet based on console component.
2. Make cmd_system and iperf a component that can be referenced by other examples
3. Add "version" command to cmd_system.c
4. Clean up the README.md in all ethernet examples[TW#26525]
2018-10-08 09:51:17 +08:00
Chirag Atal
b7cca3c414
Feature: Support for global CA store.
...
Added a new API esp_tls_set_global_ca_store(esp_tls_cfg_t *cfg) which creates a global_cacert which can be used by multiple connections by setting the use_global_ca_store variable to true in their respective structure of esp_tls_cfg_t. Also changed the cacert in the structure of esp_tls_t to a pointer.
2018-10-05 19:35:57 +05:30
Sagar Bijwe
454b69d2ea
nvs_flash: Update documentation at different places to indicate NVS encryotion is supported
2018-10-05 14:05:21 +05:30
Angus Gratton
1b272bb77e
Merge branch 'bugfix/rom_export_functions' into 'master'
...
esp32, bootloader: fix issues related to linking order
See merge request idf/esp-idf!3375
2018-10-05 12:40:05 +08:00
michael
6b180f70ac
test: modify the command/address test a bit to test the LSBFIRST feature
2018-10-04 15:03:26 +08:00
michael
e5ed450d95
spi: move gpio direction config to common func for coinsistence
...
(MINOR CHANGE)
2018-10-04 14:57:31 +08:00
Michael (XIAO Xufeng)
2600f43822
spi_master: fix the command and address field when LSB_FIRST enabled
...
Resolves https://github.com/espressif/esp-idf/issues/2444 .
2018-10-04 14:57:30 +08:00
Angus Gratton
3977d4b565
Merge branch 'feature/transpost_methods_renamed_no_collision' into 'master'
...
Renamed transport header files to esp_ prefixed
See merge request idf/esp-idf!3359
2018-10-04 13:11:49 +08:00
Anurag Kar
84f094453b
Examples : Added provisioning examples, tests and client tool.
...
* BLE and softAP provisioning examples added along with tests.
* An application specific example added for demonstrating custom provisioning scheme.
* tools/esp_prov/esp_prov.py can be used as a provisioning client for SoftAP, BLE and CLI based transports.
Co-Authored-By: Amey Inamdar <amey@espressif.com>
Co-Authored-By: Anurag Kar <anurag.kar@espressif.com>
2018-10-02 19:07:28 +05:30
Amey Inamdar
2b52465416
WiFi Provisioning : Added component providing framework for configuring WiFi credentials during provisioning
...
Co-Authored-By: Amey Inamdar <amey@espressif.com>
Co-Authored-By: Anurag Kar <anurag.kar@espressif.com>
2018-10-02 19:07:28 +05:30
Amey Inamdar
9428375368
Protocomm : Added support for choice of transport - WiFi (SoftAP+HTTPD), BLE, Console (development friendly transport)
...
Co-Authored-By: Amey Inamdar <amey@espressif.com>
Co-Authored-By: Anurag Kar <anurag.kar@espressif.com>
2018-10-02 19:07:28 +05:30
Amey Inamdar
e94dffc9c5
Protocomm : Added unit tests and protobuf-c generated files
...
Co-Authored-By: Amey Inamdar <amey@espressif.com>
Co-Authored-By: Anurag Kar <anurag.kar@espressif.com>
2018-10-02 19:07:28 +05:30
Amey Inamdar
d0c777b2e1
Protocomm : Added component core for protocol communication
...
* This manages secure sessions and provides framework for multiple transports.
* The application can use protocomm layer directly to have application specific extensions for provisioning (or non-provisioning) use cases.
* Following features are available for provisioning :
* Security - Security0 (no security), Security1 (curve25519 key exchange + AES-CTR encryption)
* Proof-of-possession support for Security1
* Protocomm requires specific protocol buffer modules for compilation which can be generated from the `.proto` files in the `proto` directory using make.
Co-Authored-By: Amey Inamdar <amey@espressif.com>
Co-Authored-By: Anurag Kar <anurag.kar@espressif.com>
2018-10-02 19:07:28 +05:30
Amey Inamdar
3ba8eed60a
protobuf-c : Added Google's protocol buffer C library as sub-module
...
Source https://github.com/protobuf-c/protobuf-c
Co-Authored-By: Amey Inamdar <amey@espressif.com>
Co-Authored-By: Anurag Kar <anurag.kar@espressif.com>
2018-10-02 19:07:28 +05:30
David Cermak
0d4f5cc495
tcp_transport: transport set handle refactoring, web socket client name updated
2018-10-02 15:19:46 +02:00
David Cermak
e02225cc07
tcp_transport: renamed possibly generic function names to be esp_ prefixed and not to colide with user namespace
2018-10-02 14:16:48 +02:00
Anton Maklakov
2c5a25a42e
tcp_transport: Use getrandom() instead of rand() in the entire esp-mqtt
...
Signed-off-by: David Cermak <cermak@espressif.com>
2018-10-02 14:16:26 +02:00
Anton Maklakov
e3c6839802
tcp_transport: Fix warning, put in order the nearest code, replace sprintf with snprintf
...
Signed-off-by: David Cermak <cermak@espressif.com>
2018-10-02 14:15:27 +02:00
David Cermak
40c6cbb3ab
tcp_transport: renamed transport related header files to esp_ prefixed to avoid collisions
...
tcp_transport component used public header files such as 'transport.h', etc. which are too generic and might collide with user or user libraries headers
This change closes #2417
2018-10-02 14:15:00 +02:00
Angus Gratton
127693126a
esp_err: Don't compile in error message strings in "silent assertions" mode
...
Reported on forum https://esp32.com/viewtopic.php?f=13&t=7396&p=31419#p31419
2018-10-02 17:00:57 +10:00
Angus Gratton
326d791ebb
bootloader: Fix secure boot digest generation for image length where (len%128 < 32)
2018-10-02 15:17:14 +10:00
Ivan Grokhotkov
9240bbb708
esp32: remove ROM functions redefined in IDF from LD script
...
In some cases, linker could choose to use ROM functions instead of the
ones defined in IDF.
For functions used in ROM stub table, this would lead to infinite
recursion when the corresponding function was called from ROM.
For crypto functions, some of these were modified in IDF, and
incompatible with ROM counterparts.
2018-10-02 01:20:04 +00:00
Ivan Grokhotkov
f694d057be
bootloader_support: exclude bootloader_init.c when building app
...
Depending on link order of libraries, bootloader implementation of
__assert_func could be linked instead of the one provided by newlib.
2018-10-02 01:20:04 +00:00
Angus Gratton
98b42a8b71
Merge branch 'bugfix/disable_coding_scheme_security_features' into 'master'
...
bootloader: Don't enable secure boot or flash encryption for 3/4 Coding Scheme
See merge request idf/esp-idf!3369
2018-10-02 07:54:11 +08:00
Ivan Grokhotkov
23984c8a03
Merge branch 'bugfix/rtc_fastmem_data_init' into 'master'
...
esp32: fixes related to CONFIG_ESP32_RTCDATA_IN_FAST_MEM
See merge request idf/esp-idf!3403
2018-10-01 18:13:43 +08:00
Ivan Grokhotkov
94e5ffdedc
Merge branch 'bugfix/workaround_free_peripherals_isr_when_using_dual_core' into 'master'
...
driver(interrupt): fix the issue that interrupt might be allocated and freed on different cores.
See merge request idf/esp-idf!3152
2018-09-30 21:42:52 +08:00
zhiweijian
fe7fd3bf4d
Component/bt: fix connection interval error in slave adv params
2018-09-30 11:14:27 +00:00
Jiang Jiang Jian
fda865b002
Merge branch 'bugfix/btdm_watchdog_timeout_after_pair_with_iphone' into 'master'
...
component/bt: Fix BTU task watchdog timeout after pair with iphone
See merge request idf/esp-idf!3366
2018-09-30 14:39:00 +08:00
Jiang Jiang Jian
42a9f99bc8
Merge branch 'bugfix/btdm_controller_stuck_on_waking_up' into 'master'
...
bugfix/btdm_controller_stuck_on_waking_up
See merge request idf/esp-idf!3395
2018-09-30 14:25:58 +08:00
Zhi Wei Jian
5d71940178
component/bt: add sequential check when add include service
2018-09-30 14:19:54 +08:00
Jiang Jiang Jian
d6bc6fad8b
Merge branch 'bugfix/btdm_add_ESP_BLE_SM_ONLY_ACCEPT_SPECIFIED_SEC_AUTH_in_set_security_param_API' into 'master'
...
Component/bt: add only accept sepecified authentication function for SMP
See merge request idf/esp-idf!3385
2018-09-30 14:18:23 +08:00
zhiweijian
3050e55801
Component/bt: add only accept sepecified Authentication
2018-09-29 21:23:55 +08:00
Jiang Jiang Jian
7014c14537
Merge branch 'bugfix/btdm_add_service_source_param_for_ESP_GATTC_SEARCH_CMPL_EVT' into 'master'
...
Component/bt: add “service from” param for ESP_GATTC_SEARCH_CMPL_EVT
See merge request idf/esp-idf!3399
2018-09-29 20:18:26 +08:00
Deng Xin
b557cca6b9
WiFi: bugfix of no disconnect event report if no correct status code report
...
Problem Description
The reporduce steps are as follows:
1. put more than one same ssid AP in the environment;
2. set the STA mac address in one of the APs blacklist, and make sure the AP is closest to STA;
3. set the scan method in station config as all channel scan;
4. try to connect the AP which set STA in blacklist
Phenmenon
STA fail to connect after send auth or assoc with a wrong status code, but no disconnect event report and can not connect the next one in the envrionment
Root Cause
Because there are some same ssid APs in the evnrionment, when do all channel scan, it will collect all the matched AP in rc list, because rc list is not empty, so it would send disconnect event, however, we didn't do other step such as connect to other one
VNC MR 570
closes https://github.com/espressif/esp-idf/issues/2323
2018-09-29 16:16:22 +08:00
Ivan Grokhotkov
c4a712b0bc
sleep: fix checking length of RTC data sections
...
_rtc_data_{start,end} can now describe data placed into RTC_FAST
segment, if CONFIG_ESP32_RTCDATA_IN_FAST_MEM is enabled.
Use new _rtc_slow_length symbol instead.
2018-09-29 14:02:16 +08:00
Ivan Grokhotkov
70412928de
esp32: fix placement of .rtc_noinit
...
When CONFIG_ESP32_RTCDATA_IN_FAST_MEM is enabled, .rtc_noinit should
be in RTC_FAST memory, same as .rtc.data
2018-09-29 14:02:16 +08:00
Ivan Grokhotkov
3e1c065493
esp32/test: split rtc_fast test cases
...
Move runtime behaviour test cases into test_reset_reason.c, move
placement test cases into test_rtc_fast.c
2018-09-29 14:02:16 +08:00
Ivan Grokhotkov
22b840f3df
bootloader: don’t reload RTC_FAST DRAM after deep sleep
...
When CONFIG_ESP32_RTCDATA_IN_FAST_MEM is enabled, RTC data is placed
into RTC_FAST memory region, viewed from the data bus. However the
bootloader was missing a check that this region should not be
overwritten after deep sleep, which caused .rtc.bss segment to loose
its contents after wakeup.
2018-09-29 14:02:16 +08:00
zhiweijian
e6d737780a
Component/bt: add “service from” param for ESP_GATTC_SEARCH_CMPL_EVT
2018-09-28 12:59:01 +00:00
zhiweijian
54b841dc30
Component/bt: fix service change char can’t read and write and no descr
2018-09-28 19:57:25 +08:00
wangmengyang
334cb88256
component/bt: bugfix that hci down stream datapath is unblocked too early on waking up from sleep
...
This issue can cause the controller to stuck after sleep interrupt happens and clock interrupt enabled
2018-09-28 03:45:52 +00:00
Ivan Grokhotkov
0a7065195c
Merge branch 'bugfix/regression_in_light_sleep_mode' into 'master'
...
esp32: fix regression introduced in automatic light sleep pm
See merge request idf/esp-idf!3371
2018-09-28 09:49:39 +08:00
Ivan Grokhotkov
4981c10ab3
Merge branch 'fix/sdio_slave_reset_ret_queue' into 'master'
...
sdio_slave: fix the ret_queue crash issue when being reset by the master
See merge request idf/esp-idf!3360
2018-09-27 18:25:57 +08:00
zhangyanjiao
54b431f2a8
lwip: fix the crash when close socket
2018-09-27 17:35:40 +08:00
Ivan Grokhotkov
71b5ce55d3
Merge branch 'feature/mbedtls_2_13_1' into 'master'
...
mbedtls: update to 2.13.1
See merge request idf/esp-idf!3301
2018-09-27 14:15:25 +08:00
Ivan Grokhotkov
5ebf4f7022
Merge branch 'feature/move_rtc_data_rtc_rodata_to_RTC_FAST_seg' into 'master'
...
esp32: Add option to place .rtc_data and .rtc_rodata into the RTC_FAST segment
See merge request idf/esp-idf!2128
2018-09-27 13:05:06 +08:00
Ivan Grokhotkov
11b444b8f4
Merge branch 'bugfix/sysview_enable_cmake' into 'master'
...
cmake: add app_trace as FreeRTOS dependency
See merge request idf/esp-idf!3335
2018-09-27 11:21:54 +08:00
Ivan Grokhotkov
6baf743212
Merge branch 'bugfix/lwip_compat_headers' into 'master'
...
lwip: add compatibility headers for sntp.h and esp_ping.h
See merge request idf/esp-idf!3231
2018-09-27 11:21:37 +08:00
Angus Gratton
d8c84cff3a
esptool: Update to v2.5.1
...
Release notes: https://github.com/espressif/esptool/releases/tag/v2.5.1
Needed to no longer burn keys if 3/4 Coding Scheme is enabled.
2018-09-27 10:12:32 +10:00
Tian Hao
337960338d
component/bt : fix coexist hardware blocking bug
...
fix the bug following:
1. after disable bluetooth controller, wifi cannot TX/RX any packets.
2. when software coexist working, there's a little ratio cause wifi task watchdog timeout
3. when software coexist working, there's a little ratio cause bluetooth cannot receive anything.
feature:
1. add libbtdm_app.a git commit local and remote checking
Known issues:
1. there's still a bug occurs with a very very low ratio cause bluetooth
cannot receive anything. The reproduce interval may great than 3days ~ 1week via
7x24 hours heavy testing.
2018-09-26 21:24:46 +08:00
Jiang Jiang Jian
93df37522f
Merge branch 'feature/mesh_decoupling' into 'master'
...
mesh: decoupling
See merge request idf/esp-idf!3261
2018-09-26 20:20:27 +08:00
Jiang Jiang Jian
fa784476ba
Merge branch 'bugfix/btdm_fix_get_bond_list_error_sometimes' into 'master'
...
Component/bt: fix get bond list error sometimes
See merge request idf/esp-idf!3288
2018-09-26 18:06:23 +08:00
Jiang Jiang Jian
042ef68ea5
Merge branch 'feature/btdm_add_send_service_change_indication_API' into 'master'
...
Component/bt: add gatts send service change indication API
See merge request idf/esp-idf!3302
2018-09-26 18:05:04 +08:00
michael
f4d4183000
test: disable the spi slave startup test when psram is enabled
2018-09-26 17:55:37 +08:00
Angus Gratton
4d99513bdb
bootloader: Fix crash enabling flash encryption
...
Regression in 9c715d7946
2018-09-26 18:26:06 +10:00
Angus Gratton
ff33406e74
bootloader: Don't enable secure boot or flash encryption for 3/4 Coding Scheme
2018-09-26 18:26:06 +10:00
baohongde
15fae990c1
component/bt: Fix BTU task watchdog timeout after pair with iphone
...
Create a new pending queue, then re-submit pending requests in old pending queue,preventing new events being inserted into it.
Closes https://github.com/espressif/esp-idf/issues/2191
2018-09-26 11:59:54 +08:00
Mahavir Jain
b5c321d981
esp32: fix regression introduced in automatic light sleep pm
...
Closes: https://github.com/espressif/esp-idf/issues/2459
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-09-26 08:52:15 +05:30
TianZhongXing
01308df8a6
doc: update document of external memory
2018-09-26 10:39:57 +08:00
kooho
bbca0e46ed
driver(interrupt): fix the issue that interrupt might be allocated and freed on different cores
...
closes https://github.com/espressif/esp-idf/issues/2211
2018-09-26 10:31:09 +08:00
qiyueixa
fe4dabe869
mesh: decoupling
...
Remove dependencies which cause mesh code to be linked even if mesh is not used.
2018-09-25 23:49:27 +08:00
michael
d4071a7c19
sdio_slave: fix the ret_queue crash issue when being reset by the master
2018-09-25 20:30:25 +08:00
Jiang Jiang Jian
46ad2c6ad0
Merge branch 'feature/wifi_esptouch_support_both_multicast_and_broadcast_packet' into 'master'
...
esp32: esp-touch supports both multicast and broadcast packets
See merge request idf/esp-idf!3291
2018-09-25 19:48:33 +08:00
Ivan Grokhotkov
e1ac237169
Merge branch 'doc/fix_config_links' into 'master'
...
doc: Fix config links, add navigation lists to config items page
See merge request idf/esp-idf!3310
2018-09-25 18:23:24 +08:00
zhiweijian
9fb188a1d9
Component/bt: add gatts send service change indication API
2018-09-25 08:26:55 +00:00
Ivan Grokhotkov
0139749ba6
esp32: only touch g_ticks_per_us_app in dual core mode
2018-09-25 15:13:47 +08:00
Ivan Grokhotkov
4ff262ecff
ipc: initialise automatically, if called from the app
2018-09-25 15:13:47 +08:00
Jack
2efd6859ed
release memory not used in single core mode
...
1. do not start ipc task in single core mode
2. do not use APP cpu cache memory in single core mode
3. relase data used in rom by APP cpu
2018-09-25 15:13:47 +08:00
Darian Leung
3c362f4d75
esp32: Add missing header file in esp_task.h
...
This commit adds a missing header file in esp_task.h
required for configMAX_PRIORITIES.
Closes #2341
2018-09-25 11:21:23 +08:00
XiaXiaotian
7b7964b47a
esp32: esp-touch supports both multicast and broadcast packets
...
Previously, esp-touch only supports multicast packets which are
transmitted from cellphone. But for most dual frequency routers
whose SSIDs of 5G and 2.4G are the same, broadcast packets are
forwarded from 5G interface to 2.4G interface while multicast
packets are not. In order to make esp-touch work when cellphone
connects to 5G interface of these routers, esp-touch is improved
to support both multicast and broadcast packets. Meanwhile, new
APP which is compiled with Andriod or IOS library(>= v0.3.6.2)
must be used in this situation. Note that for some routers,
broadcast and multicast packets are forwarded from 5G interface
to 2.4G interface only when another WiFi device is connected to
2.4G interface of the router. Old APP which is compiled with
Android or IOS library(< v0.3.6.2) also works with this improvement
when cellphone connects to 2.4G interface of the router.
The Android and IOS library of new esp-touch APP is now available
on Github.
Android: https://github.com/EspressifApp/EsptouchForAndroid
IOS: https://github.com/EspressifApp/EsptouchForIOS
2018-09-25 10:38:01 +08:00
Angus Gratton
96cd3b75cd
Merge branch 'feature/mbedtls_mem_alloc_options' into 'master'
...
mbedtls: configurable options for controlling dynamic memory allocations
See merge request idf/esp-idf!3343
2018-09-25 08:24:29 +08:00
Angus Gratton
66fd7e9cc3
Merge branch 'bugfix/python_gen_empty_partition' into 'master'
...
app_update: Make gen_empty_partition.py Python 2 & 3 compatible
See merge request idf/esp-idf!3347
2018-09-25 08:23:38 +08:00
Angus Gratton
dc135ed1f6
Merge branch 'feature/async_esp_http_client' into 'master'
...
Non Blocking `esp_http_perform()` API in esp_http_client
See merge request idf/esp-idf!3049
2018-09-25 08:20:06 +08:00
Angus Gratton
a4aadd1926
Merge branch 'feature/nvs_encryption' into 'master'
...
nvs_flash: Add support for nvs encryption
See merge request idf/esp-idf!2700
2018-09-25 08:15:55 +08:00
Angus Gratton
6ed00f50be
Merge branch 'bug_fix/multipage_blob_support' into 'master'
...
nvs_util: Fix generation of multipage blob data format
See merge request idf/esp-idf!3349
2018-09-25 08:01:57 +08:00
Jiang Jiang Jian
3665715d4d
Merge branch 'mesh/bugfix' into 'master'
...
mesh: bugfix
See merge request idf/esp-idf!3286
2018-09-24 20:31:31 +08:00
Roland Dobai
baca21050f
app_update: Make gen_empty_partition.py Python 2 & 3 compatible
...
Closes https://github.com/espressif/esp-idf/issues/2457
2018-09-24 12:16:16 +02:00
Shivani Tipnis
7c1360b10a
nvs_util: Fix multipage blob data format generate
2018-09-24 15:44:31 +05:30
Sagar Bijwe
48fccbf5dd
nvs_flash: Add support for nvs encryption
2018-09-24 11:25:21 +05:30
Mahavir Jain
54382277b6
mbedtls: configurable options for controlling dynamic memory allocations
...
Modifies https://github.com/espressif/esp-idf/pull/2237
2018-09-24 11:17:48 +05:30
Jitin George
0aec63c18e
examples/protocols/esp_http_client: Add example for asynchronous HTTP request
2018-09-24 05:42:28 +00:00
Jitin George
5309ca04d1
esp_http_client: Add support for non-blocking feature in esp_http_client_perform() API
...
Four internal APIs `esp_http_client_connect()`, `http_client_prepare_first_line()`, `esp_http_client_request_send()` and
`esp_http_client_send_post_data()` API have been added for perfoming connection establishment (sync as well as async),
preparing first line, sending request and sending post data respectively.
In `transport_ssl`, `ssl_connect_async()` API has been added for establishing asynchronous connection.
2018-09-24 05:42:28 +00:00
Jitin George
1be97fad09
esp-tls: Add support for non blocking connect
2018-09-24 05:42:28 +00:00
Angus Gratton
4d50427e87
Merge branch 'feature/nvs_util_backport' into 'master'
...
nvs_util: Add changes for utility to support old and new multipage blob
See merge request idf/esp-idf!3270
2018-09-24 11:53:29 +08:00
Angus Gratton
ae5df5d6ce
Merge branch 'feature/pthread_attributes' into 'master'
...
pthread : Add support for attributes
See merge request idf/esp-idf!2980
2018-09-24 11:19:41 +08:00
qiyueixa
9c4cc55012
mesh: bugfix
...
1. suppport mesh type, mesh ID, router and IE crypt func&key at any time after mesh is initalized.
2. support modify parent at any time after mesh is configured.
3. modify manual networking example.
4. update header file.
5. fix issues in root conflicts handling.
6. add max length of beacon to menuconfig.
7. fix issue when received a beacon without DSSS.
2018-09-23 21:11:02 +08:00
Jiang Jiang Jian
623641f26c
Merge branch 'bugfix/two_scenario_may_cause_no_disconnect_event_report' into 'master'
...
Wifi: bugfix of two sceanrio may cause no disconnect event report
See merge request idf/esp-idf!3322
2018-09-23 10:58:44 +08:00
Jiang Jiang Jian
da3c6220a5
Merge branch 'bugfix/IPv6_TCP_connection_fail' into 'master'
...
lwip: fix the bug that IPv6 TCP connection fail
See merge request idf/esp-idf!3331
2018-09-23 08:39:34 +08:00
Anurag Kar
f27db1f241
pthread : Add support for attributes and few APIs
...
This introduces the following changes :
* Implmentation added for pthread attribute related functions :
* pthread_attr_init
* pthread_attr_destroy
* pthread_attr_setdetachstate
* pthread_attr_getdetachstate
* pthread_attr_getstacksize
* pthread_attr_setstacksize
* pthread_create now supports passing attributes/configs through pthread_attr_t structure
* pthread_mutex_timedlock added
* pthread_exit added
* memory for joinable thread is freed before returning from pthread_join
2018-09-22 02:35:27 +05:30
Jiang Jiang Jian
93b588a0cf
Merge branch 'bugfix/wpa2_fixes_2' into 'master'
...
wpa_supplicant: more fixes from github
See merge request idf/esp-idf!3255
2018-09-21 20:14:56 +08:00
TianZhongXing
19a67271ef
lwip:move lwip bss segment to psram
2018-09-21 16:20:31 +08:00
TianZhongXing
974112378b
feature: allow .bss segment in external memory
2018-09-21 16:20:26 +08:00
Ivan Grokhotkov
b97e52210a
cmake: add app_trace as FreeRTOS dependency
...
This is needed because FreeRTOSConfig.h includes header file provided
by app_trace when CONFIG_SYSVIEW_ENABLE=y.
2018-09-21 14:58:34 +08:00
Deng Xin
7186475d94
Wifi: bugfix of two sceanrio may cause no disconnect event report
...
Problem Description
set some of routers as the same ssid in the same channel, when 32 in the fast scan connect mode, there may no disconnect event report in that two sceanrio:
1. set the correct password and connect, if target router didn't report 32's auth req before timeout, the state machine change to init but no disconnect event report
2. set a wrong password, if router send disassoc or deauth after run, rather than wait 4 way handshake timeout, the state machine change to init but no disconnect event report
Root Cause
Because the routers are in the same channel, all of them are matched the ssid, so all of them can be instore in the rc list wait for connect, when the first one want to connect fail at auth or receive
disassoc or deauth when password wrong, the rc list is not empty, it can not send disconnect event because rc is not empty
Solution
1. put the fail the router in the blacklist
2. Judge whether there is another router can be connect, if it has, try to connect with the next one
VNC MR 561
2018-09-21 06:22:20 +00:00
Roland Dobai
bf443a763f
tools: Support overwrite of includes for gen_esp_err_to_name.py
...
gen_esp_err_to_name.py includes files like
components/lwip/include/apps/esp_ping.h as "apps/esp_ping.h" because all
subdirectories of "include" are used. If "components/lwip/include/apps"
is in the path of the compiler instead of "components/lwip/include" then
include "apps/esp_ping.h" will fail. This fix allows to process lines
like:
'// gen_esp_err_to_name.py: some text "esp_ping.h" some text'
in header files for overwriting the include.
2018-09-21 14:09:37 +08:00
Ivan Grokhotkov
f8750eb58d
lwip: add compatibility headers for sntp.h and esp_ping.h
...
Before LwIP was moved into a submodule, sntp and esp_ping were
available as the following includes:
#include "apps/sntp/sntp.h"
#include "esp_ping.h"
This commit makes header files available at the old location, and adds
a deprecation warning for sntp.h.
Closes https://github.com/espressif/esp-idf/issues/2392
2018-09-21 14:09:37 +08:00
Ivan Grokhotkov
2e6e87816c
Merge branch 'feature/crosstool_backport' into 'master'
...
Backport of work of gcc8 toolchain to v3
See merge request idf/esp-idf!3154
2018-09-21 14:07:41 +08:00
zhiweijian
81e7689bf3
Component/bt: fix get bond list error sometimes
2018-09-21 02:44:16 +00:00
zhangyanjiao
e7d6c861b5
lwip: fix the bug that IPv6 TCP connection fail
...
The lwip code didn't create an new mld group when netif is up,
this will lead to the server can't find the matching netif when
receiving NS(neighbor solicitation) packet
2018-09-21 10:17:20 +08:00
Michael (Xiao Xufeng)
4af51833f3
spi_master: add new polling mode to decrease time cost each transaction
2018-09-20 19:46:46 +08:00
Anton Maklakov
3004744f2c
Merge branch 'bugfix/py273_gen_esp32part' into 'master'
...
partition_table: Fix encoding for Python 2.7.3
See merge request idf/esp-idf!3330
2018-09-20 19:06:52 +08:00
Anton Maklakov
7b4054a468
espcoredump: Fix a test case of new gdb from the new toolchain
2018-09-20 18:53:15 +08:00
Anton Maklakov
0d1285ebcf
bluetooth: fix indentation warning
2018-09-20 18:53:15 +08:00
Anton Maklakov
d6a5cd6e82
mqtt: silence a format warning
2018-09-20 18:53:15 +08:00
Anton Maklakov
d4cbfd34cc
cmake: silence some warnings in coap, bt, expat, libsodium, lwip and examples/bluetooth
2018-09-20 18:53:15 +08:00
Anton Maklakov
3471d369f9
lwip: silence uninitialized and fallthrough warnings
2018-09-20 18:53:15 +08:00
Anton Maklakov
ccbe517702
vfs: fix a fallthrough comment to silence the warning
2018-09-20 18:53:15 +08:00
Anton Maklakov
fdb369c76f
test/cxx: Test for exception from libstdc++ with -fno-exceptions
2018-09-20 18:53:15 +08:00
Alexey Gerenkov
e0f7e196f2
cxx: don’t define stubs for __throw_* functions
...
If exception support is disabled in IDF, and libstdc++ tries to throw
an exception, it will call __cxa_allocate_exception which is replaced
with abort in IDF.
We have a dramatically size reduction of the RO-section in binary when using '__throw_'-stubs in GCC5
In the case of using GCC8, we are faced with 'multiple definition' errors when using '__throw_'-stubs.
Good that we don't have the size problem due to gcc8
2018-09-20 18:53:15 +08:00
Alexey Gerenkov
f0c15e749a
gcov: use GCC API to control GCOV data dumps
2018-09-20 18:53:14 +08:00
Anton Maklakov
9a55557ad8
build system: Add a compatible old GCC flag
2018-09-20 18:53:14 +08:00
Ivan Grokhotkov
51c9b6b82d
bt: disable implicit fall through warnings
2018-09-20 18:53:14 +08:00
Ivan Grokhotkov
dd5d01a83e
bt: silence unused const variables warning
2018-09-20 18:53:14 +08:00
Jiang Jiang Jian
d68df94d2b
Merge branch 'bugfix/fix_the_bug_create_socket_fail' into 'master'
...
LWIP: fix the bug that failed to create socket
See merge request idf/esp-idf!3300
2018-09-20 18:43:58 +08:00
Roland Dobai
4465dc29bb
partition_table: Fix encoding for Python 2.7.3
...
struct.pack can handle Unicode argument in latest Python 2.7 but cannot
(at least) in 2.7.3.
2018-09-20 12:01:54 +02:00
Angus Gratton
8cf0f36dcc
Merge branch 'feature/ecc_crypto_wrappers' into 'master'
...
wpa_supplicant: Implement BIGNUM and ECC crypto wrapper apis for ESP using mbedtls
See merge request idf/esp-idf!3225
2018-09-20 13:46:08 +08:00
Ivan Grokhotkov
9188cb066a
mbedtls: update to 2.13.1
...
See release notes:
https://github.com/ARMmbed/mbedtls/releases/tag/mbedtls-2.13.0
2018-09-20 04:35:45 +00:00
Ivan Grokhotkov
07211ffeff
Merge branch 'bugfix/py23_nvs_flash_division' into 'master'
...
nvs_flash: fix division for Python 2 & 3
See merge request idf/esp-idf!3292
2018-09-20 12:10:18 +08:00
Ivan Grokhotkov
f5e772242d
Merge branch 'feature/py23_partition_table' into 'master'
...
partition_table: Add Python 2 & 3 support
See merge request idf/esp-idf!3290
2018-09-20 12:09:12 +08:00
Ivan Grokhotkov
af453841ea
Merge branch 'bugfix/ci_cmake_examples' into 'master'
...
CI/cmake: Fix cmake example build failures, gcov
See merge request idf/esp-idf!3296
2018-09-20 12:05:07 +08:00
Jiang Jiang Jian
7657c1c7d4
Merge branch 'bugfix/btdm_fix_crash_when_test_multi_connect' into 'master'
...
Component/bt: fix crash when test multi_connect
See merge request idf/esp-idf!3274
2018-09-20 12:04:18 +08:00
Ivan Grokhotkov
2e411aeccb
Merge branch 'bugfix/ethernet_infinite_loop' into 'master'
...
ethernet: fix infinite loop when init phy or reset mac
See merge request idf/esp-idf!3307
2018-09-20 11:59:51 +08:00
Ivan Grokhotkov
c09d4787ef
Merge branch 'bugfix/parttool_spaces' into 'master'
...
Remove trailing spaces from parttool.py output
See merge request idf/esp-idf!3317
2018-09-20 11:58:40 +08:00
Jiang Jiang Jian
ffbe5b7ae5
Merge branch 'bugfix/btdm_fix_iphoneX_error_when_get_wifi_list' into 'master'
...
Component/bt: fix iPhoneX error when getting wifi list
See merge request idf/esp-idf!3303
2018-09-20 10:54:43 +08:00
Jiang Jiang Jian
57573d0ed7
Merge branch 'feature/btdm_add_clear_rand_addr_API' into 'master'
...
component/bt: add clear rand address API
See merge request idf/esp-idf!3137
2018-09-20 10:47:37 +08:00
morris
20b7f0ec87
ethernet: fix infinite loop when init phy or reset mac
...
1. fix infinite loop problem when init phy device
2. fix infinite loop problem when reset mac
3. fix little bugs in ethernetif_init
4. fix incompatible return value between lwip and esp-idf
Closes https://github.com/espressif/esp-idf/issues/2331
Closes https://github.com/espressif/esp-idf/issues/2141
2018-09-20 10:09:38 +08:00
Angus Gratton
930ddf2b2c
Merge branch 'bugfix/use_component_srcs' into 'master'
...
List files manually for recently added components
See merge request idf/esp-idf!3315
2018-09-20 07:27:37 +08:00
Shivani Tipnis
ca3acef82c
nvs_util: Add support for old and new multipage blob
2018-09-19 22:00:08 +05:30
zhangyanjiao
f2d3efd875
lwip: fix the bug that failed to create socket
...
Closes: https://github.com/espressif/esp-idf/issues/2403
https://github.com/espressif/esp-idf/issues/2414
2018-09-19 09:44:28 +00:00
Ivan Grokhotkov
4e9338e357
Merge branch 'test/fix_incorrect_connect_ap_command' into 'master'
...
test: fix case use depreacated sta connect command
See merge request idf/esp-idf!3309
2018-09-19 17:39:58 +08:00
Renz Bagaporo
8f85fa1bfb
tcp_transport: list files manually in component cmake file
2018-09-19 16:48:31 +08:00
Renz Bagaporo
8fdfc22e2e
mqtt: list files manually in component cmake file
2018-09-19 16:48:12 +08:00
Angus Gratton
9add51bc6d
doc: Re-add summaries of what children each menu item has
...
Slightly different to the original version of this, but same goal.
2018-09-19 17:27:48 +10:00
zhiweijian
fdc352d090
Component/bt: fix iPhoneX error when getting wifi list
2018-09-19 15:17:57 +08:00
Ivan Grokhotkov
789855e71b
esp32: abort when running on single core chip in dual core mode
...
Ref. https://esp32.com/viewtopic.php?f=2&t=7307
2018-09-19 15:05:26 +08:00
Sagar Bijwe
112244bac4
wpa_supplicant: Implement BIGNUM and ECC crypto wrapper apis for ESP using mbedtls
2018-09-19 11:10:28 +05:30
He Yin Ling
60f0e9b77b
test: fix case use depreacated sta connect command
2018-09-19 13:31:56 +08:00
Angus Gratton
440b08c128
Merge branch 'bugfix/py23_unit_test' into 'master'
...
Correct Python 3 support for some test related scripts
See merge request idf/esp-idf!3236
2018-09-19 12:39:24 +08:00
Angus Gratton
b38a6da74b
cmake: Fix some failing example builds, fix gcov
2018-09-19 14:38:19 +10:00
Deomid Ryabkov
d40bfd21dc
Remove trailing spaces from parttool.py output
2018-09-18 16:49:30 +03:00
Roland Dobai
9dc024bc4c
partition_table: Add Python 2 & 3 support
2018-09-18 14:10:55 +02:00
Jiang Jiang Jian
72aaeb26ac
Merge branch 'bugfix/btdm_fix_save_error_key_in_smp_when_reconnect' into 'master'
...
Component/bt: fix save error key in smp when reconnect
See merge request idf/esp-idf!3251
2018-09-18 20:06:38 +08:00
Roland Dobai
da6479e6b7
Correct Python 3 support for some test related scripts
2018-09-18 09:55:51 +00:00
Ivan Grokhotkov
91f7a9a9e7
Merge branch 'feature/lwip_task_affinity' into 'master'
...
lwip: allow setting LwIP tasks affinity via sdkconfig
See merge request idf/esp-idf!2913
2018-09-18 15:10:17 +08:00
Angus Gratton
3276a1316f
Merge branch 'feature/cleanup_freertos_hooks' into 'master'
...
Cleanup freertos idle/tick hooks functionality
See merge request idf/esp-idf!3131
2018-09-18 08:07:41 +08:00
Angus Gratton
822fdd6e53
Merge branch 'feature/tasks_can_return' into 'master'
...
freertos: enclose task functions in wrapper function
See merge request idf/esp-idf!2935
2018-09-18 07:38:24 +08:00
Angus Gratton
3246404740
Merge branch 'bugfix/cmake_make_flash_target' into 'master'
...
cmake: Fix "make flash" & "ninja flash" targets
See merge request idf/esp-idf!3260
2018-09-18 07:31:57 +08:00
Roland Dobai
7183112cc4
nvs_flash: fix division for Python 2 & 3
2018-09-17 16:01:54 +02:00
zwj
fa00e6d4f7
component/bt: add clear rand address API
2018-09-17 20:09:03 +08:00
Mahavir Jain
ff81dc16e0
freertos: cleanup tick/idle hook functionality
...
If CONFIG_FREERTOS_LEGACY_HOOKS is kept enabled then defining
idle/tick hooks will be applications responsibility as was the
case earlier.
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-09-17 17:05:17 +05:30
Mahavir Jain
152043d469
esp_ringbuf: move ringbuf to seperate component
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-09-17 17:04:57 +05:30
Mahavir Jain
b0ef95b6eb
task_wdt: correct critical section API in ISR context
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-09-17 16:11:15 +05:30
Ivan Grokhotkov
5d1ccb9501
lwip: allow setting LwIP tasks affinity via sdkconfig
...
In some cases applications need to ensure that WiFi/BT related tasks
run on CPU1. This option can be used to set task affinity in such case.
https://github.com/espressif/esp-idf/issues/2233#issuecomment-409220381
2018-09-17 18:17:52 +08:00
Ivan Grokhotkov
5bcb7e26d7
freertos: add Kconfig FREERTOS_NO_AFFINITY constant
...
Use in place of tskNO_AFFINITY in Kconfig files
2018-09-17 18:17:52 +08:00
Jiang Jiang Jian
25c8ecaaf5
Merge branch 'bugfix/tw24884_fix_ampdu_sequence_compitable_issue' into 'master'
...
esp32: Fix AMPDU sequence incompitable bug
See merge request idf/esp-idf!3200
2018-09-17 18:07:14 +08:00
Jiang Jiang Jian
d41ee5c628
Merge branch 'bugfix/btdm_enable_modem_sleep_by_default' into 'master'
...
bugfix/btdm_enable_modem_sleep_by_default
See merge request idf/esp-idf!3284
2018-09-17 16:17:34 +08:00
Liu Zhi Fu
0828e8bd53
esp32: fix AMPDU sequence compitability issue
...
Fix AMPDU RX sequence compitability issue when connecting to some special APs, such as Mercury, Fast etc
2018-09-17 13:57:59 +08:00
Ivan Grokhotkov
eea49d250a
Merge branch 'feature/dhcp_skip_discovery' into 'master'
...
DHCP restore last ip and skip discovery
See merge request idf/esp-idf!3132
2018-09-17 12:27:56 +08:00
Ivan Grokhotkov
c305bd09dc
Merge branch 'bugfix/ethernet_low_level_output' into 'master'
...
ethernet: fix some bugs and complete some optimization
See merge request idf/esp-idf!3235
2018-09-17 11:33:50 +08:00
MartinValik
2e79baa1db
lwip: DHCP restore last IP
...
Closes https://github.com/espressif/esp-idf/issues/799
2018-09-17 11:11:25 +08:00
Ivan Grokhotkov
49125a87bb
Merge branch 'bugfix/mdns-lwip-update' into 'master'
...
Update network code for mDNS to work with newest LwIP
See merge request idf/esp-idf!3268
2018-09-17 10:42:04 +08:00
wangmengyang
bca2e110fc
component/bt: enable bluetooth modem sleep as default setting
2018-09-17 10:38:13 +08:00
morris
3063a62e3e
ethernet: fix some bugs in ethernet driver
...
1. create a new pbuf to squash linked pbuf
2. optimize emac driver by adding ESP_IRAM_ATTR
3. remove duplicated function declare in esp_eth.h
4. remove duplicated code in emac_setup_tx_desc
5. disable Promiscuous mode
2018-09-17 10:12:46 +08:00
Ivan Grokhotkov
0c6ff65b34
Merge branch 'bugfix/bootloader_set_freq' into 'master'
...
soc: fix CPU frequency not updated in rtc_clk_init
See merge request idf/esp-idf!3256
2018-09-17 09:49:43 +08:00
Jiang Jiang Jian
518942ec61
Merge branch 'bugfix/tw24694_dns_request_no_reply' into 'master'
...
lwip: add code for sending gratuitous ARP periodically
See merge request idf/esp-idf!3241
2018-09-16 15:18:32 +08:00
Jiang Jiang Jian
67160b2236
Merge branch 'bugfix/mdns_memory_leak' into 'master'
...
feat(mdns): fix bug when clean action memory
See merge request idf/esp-idf!3276
2018-09-16 15:04:46 +08:00
Deng Xin
427fa52276
Wifi: Optimize scan capability
2018-09-14 22:25:28 +08:00
Jiang Jiang Jian
18a893bd35
Merge branch 'bugfix/btdm_unreserve_scn1_for_hfp' into 'master'
...
component/bt: Unlock reserve of SCN 1 for HFP
See merge request idf/esp-idf!3269
2018-09-14 19:49:47 +08:00
Jiang Jiang Jian
8001737d3e
Merge branch 'bugfix/ble_adv_data_tx_power' into 'master'
...
fix TX power value in ble adv data is incorrect
See merge request idf/esp-idf!3185
2018-09-14 19:46:16 +08:00
me-no-dev
3ec0e7e2d2
Update network code for mDNS to work with newest LwIP
...
- Uses one PCB that listens to all interfaces
- Manages multicast groups for each interface
2018-09-14 11:02:47 +02:00
Liu Han
3d4deb9726
feat(mdns): fix bug when clean action memory
2018-09-14 15:36:52 +08:00
Liu Zhi Fu
9121ba22e9
esp32: fix some bugs of modem sleep
...
1. Keep awake to receive beacon at TBTT time no matter which state
station is on.
2. If there is any packet to send on dream or sleep state, send NULL
data with power save bit clear first.
2018-09-14 15:12:34 +08:00
Angus Gratton
773fb42a3a
Merge branch 'bugfix/mqtt_move_kconfig_to_idf' into 'master'
...
MQTT: Moved Kconfig from esp-mqtt submodule to esp-idf to support docs genration in RTD
See merge request idf/esp-idf!3265
2018-09-14 15:05:13 +08:00
baohongde
738522f1a3
component/bt: Unlock reserve of SCN 1 for HFP
2018-09-14 06:22:58 +00:00
Ivan Grokhotkov
31c14a5ee4
Merge branch 'feature/py3_espcoredump' into 'master'
...
espcoredump: Add tests and Python3 support
See merge request idf/esp-idf!3212
2018-09-14 12:39:30 +08:00
Angus Gratton
61835faed1
Merge branch 'bugfix/tcpip_stack_size_default' into 'master'
...
Default stack size for TCPIP task increased to avoid stack overflow.
See merge request idf/esp-idf!3258
2018-09-14 12:23:35 +08:00
David Cermak
1f8bf057a0
MQTT: Moved Kconfig from esp-mqtt submodule to esp-idf to support docs genration in RTD
2018-09-14 04:22:13 +00:00
zhiweijian
d0721e8f6d
Component/bt: fix crash when test multi_connect
2018-09-14 11:18:44 +08:00
Darian Leung
3ba63a520c
freertos: Add task function wrapper
...
This commit adds an option to enclose all FreeRTOS task functions within a
wrapper function. In the case that a task function returns, the wrapper function
will log an error and abort the application immediately.
Closes #2269
Closes #2300
2018-09-14 11:07:54 +08:00
Renz Bagaporo
454d65bbab
bt: remove non-existing source file from cmakelists
2018-09-14 08:47:22 +08:00
Jiang Jiang Jian
e6e2d7ebee
Merge branch 'feature/btdm_add_adv_packet_duplicate_in_scan_duplicate' into 'master'
...
component/bt: add adv packet duplicate in scan duplicate
See merge request idf/esp-idf!2939
2018-09-13 18:16:22 +08:00
Dmitry
2ff3f8b0c8
Stack size for TCPIP task increased from 2048 to 3072.
2018-09-13 12:38:56 +03:00
Renz Christian Bagaporo
946f55db85
cmake: add ulp components build support
2018-09-13 14:54:59 +08:00
Angus Gratton
62c3218981
Merge branch 'fix/spi_slave_free_cs' into 'master'
...
spi_slave: fix the issue rx dma get broken by master unexpected transaction
See merge request idf/esp-idf!3207
2018-09-13 13:50:56 +08:00
Angus Gratton
30388c7e87
cmake: Fix "make flash" & "ninja flash" targets
...
As reported on forum.
Requires a small CMake wrapper script to pick
up environment variables at flashing time.
2018-09-13 15:08:24 +10:00
Jiang Jiang Jian
60a9462f6e
Merge branch 'bugfix/optimize_BLE_memory_debug' into 'master'
...
component/bt: optimize bluetooth memory debug
See merge request idf/esp-idf!3047
2018-09-13 10:49:26 +08:00
He Yin Ling
4b41bd0cdd
test: fix incorrect tx power value in adv
2018-09-13 09:47:23 +08:00
Angus Gratton
7848cfdde7
Merge branch 'feature/mqtt_component' into 'master'
...
added tuan's mqtt library into idf
See merge request idf/esp-idf!2851
2018-09-13 09:06:09 +08:00
Renz Christian Bagaporo
944014f9f2
cmake: fix source list issues
2018-09-13 08:56:59 +08:00
negativekelvin
171f54bd7e
wpa_supplicant: more wpa2_enterprise fixes
...
Merges https://github.com/espressif/esp-idf/pull/2386
Closes https://github.com/espressif/esp-idf/issues/2383
Closes https://github.com/espressif/esp-idf/issues/2381
2018-09-12 22:29:15 +08:00
Jiang Jiang Jian
91f579d714
Merge branch 'feature/wifi_update_csi_api_and_fix_phy_dport_access_issue' into 'master'
...
esp32: update API to set CSI channel filter and HT_LTF data generating
See merge request idf/esp-idf!3180
2018-09-12 21:29:29 +08:00
negativekelvin
8e2856b83d
soc: fix CPU frequency not updated in rtc_clk_init
...
Add missing call to rtc_clk_cpu_freq_set_config
Merges https://github.com/espressif/esp-idf/pull/2398
2018-09-12 21:13:42 +08:00
Tian Hao
b9382b29fa
fix TX power value in ble adv data is incorrect
...
refence to https://github.com/espressif/esp-idf/issues/2284
Before fixing, the tx power in adv data is always 0xeb(-21dbm).
restriction:
If change BLE advertising TX power, please call esp_ble_gap_config_adv_data()
after BLE adv TX power changed.
Later, will implement set BLE advertising TX power via HCI, then the
TX power value in adv data can be update automatically after BLE adv
TX power changed.
2018-09-12 20:23:45 +08:00
zhiweijian
c462a66726
Component/bt: fix save error key in smp when reconnect
2018-09-12 19:51:59 +08:00
Ivan Grokhotkov
c4b0f00985
Merge branch 'bugfix/mdns_service_txt_set' into 'master'
...
bugfix: mdns_service_txt_set() wasn't allocating memory for TXT records
See merge request idf/esp-idf!3244
2018-09-12 18:43:53 +08:00
Jiang Jiang Jian
36337da8b2
Merge branch 'bugfix/btdm_a2dp_role_mixed_up' into 'master'
...
component/bt: bugfix that A2DP sink device can be connected by another A2DP sink device
See merge request idf/esp-idf!3191
2018-09-12 16:44:53 +08:00
Alex Lisitsyn
ec5eb1e5c2
esp32: Add option to place.rtc_data and .rtc_rodata into the RTC_FAST segment
...
Changes:
KConfig: The option CONFIG_ESP32_RTCDATA_IN_FAST_MEM is added in Kconfig file for esp32 component.
esp32.common.ld: added support of RTC_DATA_ATTR, RTC_RODATA_ATTR data placement into appropriate segment according to Kconfig option.
esp32.ld: linker script is modified to set alias for memory segment selected by Kconfig option to place data. The segments for force placement are added for RTC_FAST_ATTR, RTC_SLOW_ATTR attributes.
esp_attr.h: added new attributes RTC_FAST_ATTR, RTC_SLOW_ATTR for force placement into fest/slow memory.
test_rtc_fast.c: Added unit test cases to check data placement into appropriate memory segment.
Updated documentation for RTC_DATA_ATTR, RTC_FAST_ATTR, RTC_SLOW_ATTR in deep_sleep_stub.rst file.
TW#18001
Closes https://github.com/espressif/esp-idf/issues/1553
2018-09-12 09:25:13 +02:00
Angus Gratton
500ee99219
Merge branch 'bugfix/fix_mcpwm_api_mismatch_bug' into 'master'
...
driver(mcpwm): Fix some mcpwm related bug
See merge request idf/esp-idf!2510
2018-09-12 14:59:02 +08:00
Ivan Grokhotkov
5acf886324
Merge branch 'bugfix/set_a_real_wakeup_period' into 'master'
...
Corrected ULP wakeup period setup API to account for time the ULP FSM spends on…
See merge request idf/esp-idf!3228
2018-09-12 14:42:53 +08:00
David Cermak
23345d2021
MQTT: Integrate esp-mqtt library into idf
...
added docs and tests for mqtt library, small fixes (removed warnings, option for custom outbox, websocket bug fixed for longer transports). refactored to use common tcp_transport component, support for CMake build system.
Closes #2108
2018-09-12 08:00:59 +02:00
Konstantin Kondrashov
2a87f00942
partition_table: Check - partition names must be unique
2018-09-12 10:58:38 +08:00
Piyush Shah
e5e2702ca3
bugfix: mdns_service_txt_set() wasn't allocating memory for TXT records
...
Allocation was happening later, causing possible use of stack variables
of caller function, which could be invalid.
Signed-off-by: Piyush Shah <piyush@espressif.com>
2018-09-11 16:23:56 +05:30
Roland Dobai
b9e1869538
espcoredump: Add tests and Python3 support
2018-09-11 08:53:06 +02:00
zhangyanjiao
237cc88b9f
lwip: add code for sending gratuitous ARP periodically
2018-09-11 14:36:42 +08:00
Jiang Jiang Jian
9cce5f5a55
Merge branch 'bugfix/fix_the_bug_when_gateway_zero' into 'master'
...
esp32: fix the bug that SYSTEM_EVENT_STA_GOT_IP is forbidden when gateway is 0.0.0.0
See merge request idf/esp-idf!3210
2018-09-11 10:57:18 +08:00
zhiweijian
9103a04793
component/bt: add adv packet duplicate in scan duplicate
2018-09-11 02:31:11 +00:00
Renz Christian Bagaporo
d9939cedd9
cmake: make main a component again
2018-09-11 09:44:12 +08:00
zhiweijian
469b8c7e8e
component/bt: optimize bluetooth memory debug
2018-09-10 09:19:19 +00:00
Angus Gratton
f9bed53ea2
Merge branch 'feature/task_wdt_add_timestamp' into 'master'
...
esp32/task_wdt: Add timestamp to message isr_twdt
See merge request idf/esp-idf!3053
2018-09-10 16:31:20 +08:00
Angus Gratton
bd1e80b3f0
Merge branch 'bugfix/esp_ipc_call_blocking' into 'master'
...
ipc: fix `esp_ipc_call_blocking` to return after callback execution is completed
See merge request idf/esp-idf!3218
2018-09-10 16:27:50 +08:00
Jiang Jiang Jian
892fc4ac3f
Merge branch 'feature/btdm_add_set_default_passkey_function' into 'master'
...
Component/bt: add set/clear static passkey function
See merge request idf/esp-idf!3128
2018-09-10 16:08:05 +08:00
Angus Gratton
c5265b12dd
Merge branch 'feature/http_client_custom_method' into 'master'
...
esp_http_client: add support OPPTIONS/SUB/UNSUB/NOTIFY methods
See merge request idf/esp-idf!3214
2018-09-10 14:44:27 +08:00
krzychb
f6b0b27026
Corrected number of FSM cycles and related description
2018-09-10 07:14:19 +02:00
krzychb
5eee2bf37d
Corrected ULP wakeup period setup API to account for time the ULP FSM spends on internal tasks before being able to execute the program. Inspired by https://esp32.com/viewtopic.php?f=2&t=7081 .
2018-09-10 07:08:12 +02:00
michael
8f88a81f30
sdio_slave: fix the recv crash when trans finish and load at the same time
2018-09-10 13:06:54 +08:00
wangmengyang
36a8cd1bf5
component/bt: stop to inititate AVRC connection when A2DP connection fails to set up
...
AVRCP connection binds to A2DP in current implementation, despite the two profiles are\
independent according to specification. AVRCP connection is not necessary to set-up \
if A2DP connection fails to establish
2018-09-10 03:35:58 +00:00
wangmengyang
9621904cdc
component/bt: stop to initiate AVDTP connection on failure of A2DP service discovery
...
In opening state of AVDTP connection, if SDP client fails to get valid A2DP service record\
from peer SDP server, then do not initiate AVDTP connection request
2018-09-10 03:35:58 +00:00
wangmengyang
e9e3bc492b
component/bt: bugfix that A2DP sink device can be connected by another A2DP sink device
...
In pevious implementation, A2DP sink will register an A2DP source Stream End Point(SEP) although the SEP is not\
supposed to be used. Now remove the unused SEP for source so that only one role of A2DP can be supported at one
time. Service record in local SDP server only includes at most one service for A2DP sink role or source
2018-09-10 03:35:58 +00:00
Mahavir Jain
94c571c017
ipc: fix esp_ipc_call_blocking
to return after callback execution is completed
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-09-07 14:19:35 +05:30
He Yin Ling
6f5820814f
Merge branch 'test/driver_case_review' into 'master'
...
Test/driver case review
See merge request idf/esp-idf!3206
2018-09-07 16:48:59 +08:00
Ivan Grokhotkov
7e514c11ca
Merge branch 'bugfix/http_server_strcasecmp' into 'master'
...
using case-insensitive compare for getting http header
See merge request idf/esp-idf!3155
2018-09-07 16:45:52 +08:00
Ivan Grokhotkov
457e8d4265
Merge branch 'bugfix/slow_mem_keep_rtc_noinit' into 'master'
...
sleep: keep RTC_SLOW_MEM powered on if RTC_NOINIT is used
See merge request idf/esp-idf!3213
2018-09-07 15:54:52 +08:00
Angus Gratton
4eeed31a04
Merge branch 'feature/cmake' into 'master'
...
Merge experimental CMake support to master
See merge request idf/esp-idf!3024
2018-09-07 13:44:17 +08:00
michael
2d748b5d38
spi_slave: fix the issue rx dma get broken by master unexpected transaction
2018-09-07 12:04:55 +08:00
Tuan PM
738d49e02b
esp_http_client: add support OPPTIONS/SUB/UNSUB/NOTIFY methods
2018-09-07 03:06:09 +00:00
XiaXiaotian
7d56115992
esp32: update API to set CSI channel filter and HT_LTF data generating
...
method and apply pre-read APB register dport access method to PHY
Close: https://github.com/espressif/esp-idf/issues/2337
2018-09-07 11:05:59 +08:00
Tuan PM
958bf62e5f
http_server: using case-insensitive compare for getting http header
2018-09-07 03:04:43 +00:00
zhiweijian
d12982dc6e
Component/bt: add set default passkey function
2018-09-07 10:55:44 +08:00
Angus Gratton
aab43e6dda
Merge branch 'bugfix/enlarge_ethernet_mac_stack_size' into 'master'
...
ethernet: enlarge ethernet task stack size
See merge request idf/esp-idf!3203
2018-09-07 10:47:30 +08:00
Ivan Grokhotkov
13107d5968
Merge branch 'feature/light_sleep_gpio_uart_wakeup' into 'master'
...
sleep: add support for GPIO and UART wakeup from light sleep
See merge request idf/esp-idf!3004
2018-09-07 10:33:33 +08:00
morris
161a506f00
ethernet: enlarge ethernet task stack size
...
1. In original driver, the stack size for emac driver task "emacT" is only 2048 Bytes, which also can not be changed by user.
2. Each time when invoking "emac_start" function, it will reset emac registers, the driver should reconfig some important registers again.
2018-09-07 10:16:34 +08:00
Jiang Jiang Jian
8484b9cfd3
Merge branch 'feature/btdm_legacy_paring' into 'master'
...
component/bt: Add Legacy Pairing
See merge request idf/esp-idf!3057
2018-09-07 10:15:52 +08:00
Angus Gratton
deb46b415f
lwip: Re-add CONFIG_PPP_SUPPORT check, remove redundant CFLAGS
2018-09-06 20:23:20 +08:00
Angus Gratton
cff2ef695a
Merge branch 'master' into feature/cmake
2018-09-06 20:23:04 +08:00
Jiang Jiang Jian
affe75a102
Merge branch 'bugfix/btdm_hfp_invalid_hci_sync_pkt_len' into 'master'
...
bugfix/btdm_hfp_invalid_hci_sync_pkt_len
See merge request idf/esp-idf!3186
2018-09-06 19:51:42 +08:00
houchenyao
0cfed0b79b
rmt test: add the case for bug in github[ #1815 ]
2018-09-06 19:43:30 +08:00
houchenyao
47fcdeaa0b
rmt test: add case test test the bug of re-install problem
...
add pending bug case:rmt_tx_stop function cause the re-install fail when rmt_config_t.tx_config.loop_en==true
2018-09-06 19:43:30 +08:00
houchenyao
09dd1034de
rmt test: add case to check memory block.
...
add RMT channel num and memory block relationship test case to check the memory block range is used in right way.
2018-09-06 19:43:30 +08:00
houchenyao
836d01dcea
ledc test: ignore one case.
...
a bug caused by pcnt. it will fail randomly caused by PCNT bug. It will open when PCNT problem is resolved
2018-09-06 19:43:30 +08:00
Zhang Yan Jiao
3578fe39e0
Feature/sync lwip as submodule
2018-09-06 19:43:08 +08:00
houchenyao
f647ea81cc
pcnt test: ignore pcnt two test cases
...
a bug caused by pcnt. these two cases has about 10% fail ratio. they fail randomly in CI. stress test needed. they are ignored until this bug fixed.
2018-09-06 19:42:20 +08:00
Ivan Grokhotkov
281345c53a
sleep: keep RTC_SLOW_MEM powered on if RTC_NOINIT is used
...
Fixes a bug that if application uses RTC_NOINIT variables but doesn’t
use RTC_DATA variables, then RTC_NOINIT variables loose their values
after deep sleep.
Reported in https://esp32.com/viewtopic.php?f=2&t=7045&p=30301#p30299
2018-09-06 18:31:17 +08:00
houchenyao
22ac8cf424
ledc test: test low speed mode frequency.
...
remove the comment to test the scenario that ledc in low speed mode frequency can be changed, to make sure the bug has been resolved
2018-09-06 17:44:39 +08:00
houchenyao
98c868ff09
gpio test: add GPIO multi-level interrupt test
...
add case to test the bug of v3.0. If we trigger the level interrupt more than once, will cause the interrupt be triggered many times
2018-09-06 17:43:23 +08:00
Ivan Grokhotkov
599da58070
Merge branch 'feature/disable_rom_logging' into 'master'
...
esp32/sleep: Add a function to disable logging from ROM code
See merge request idf/esp-idf!3182
2018-09-06 16:11:23 +08:00
Ivan Grokhotkov
09d0b8d47b
sleep: allow esp_sleep_get_wakeup_cause to be used for light sleep
2018-09-06 15:42:34 +08:00
Ivan Grokhotkov
cf4f2c19e4
sleep: allow disabling all wakeup sources
2018-09-06 15:40:46 +08:00
Ivan Grokhotkov
75629b7fc3
sleep: add support for GPIO and UART wakeup from light sleep
2018-09-06 15:40:46 +08:00
Ivan Grokhotkov
002d913ab6
uart: add function to set light sleep wakeup threshold
2018-09-06 15:40:46 +08:00
Ivan Grokhotkov
1c5522575e
driver/gpio: support wakeup function for RTC IOs
2018-09-06 15:40:46 +08:00
zhangyanjiao
770e413d4c
esp32: fix the bug that SYSTEM_EVENT_STA_GOT_IP is forbidden when gateway is 0.0.0.0
...
Closes: https://github.com/espressif/esp-idf/issues/2344
2018-09-06 14:52:04 +08:00
Jiang Jiang Jian
5c3ca78a07
Merge branch 'bugfix/btdm_discovery_ble' into 'master'
...
component/bt : fix bug that set discovery mode will stop ble adv
See merge request idf/esp-idf!3183
2018-09-06 14:18:11 +08:00
Jiang Jiang Jian
e675c3cfed
Merge branch 'test/split_test_env_for_integration_test' into 'master'
...
test: split CI test environment
See merge request idf/esp-idf!3099
2018-09-06 13:09:11 +08:00
Angus Gratton
0bc5dcc2c2
cmake: Post-merge fixups
2018-09-06 11:14:30 +08:00
zhangyanjiao
8d698a59f4
defination: fix the bug that esp_derive_local_mac() defination missing
...
Closes: https://github.com/espressif/esp-idf/issues/2352
2018-09-05 14:36:37 +08:00
Angus Gratton
b355854d4d
Merge branch 'master' into feature/cmake
2018-09-05 10:35:04 +08:00
Ivan Grokhotkov
52477d77fb
Merge branch 'bugfix/nvs_doc' into 'master'
...
nvs_flash: Minor changes to NVS documentation
See merge request idf/esp-idf!3192
2018-09-05 10:20:34 +08:00
He Yin Ling
b9f7e0a1a2
test: split CI test environment:
...
Currently CI test environment is complicated, usually includes NIC, AP.
These devices are not used for a lot test cases. Therefore we split the
test environment, remove unnecessary devices. Then it will be easier to
create CI runners.
2018-09-05 01:45:48 +00:00
Sagar Bijwe
db7c257f33
nvs_flash: Minor changes to NVS documentation
...
1) Change API doc to reflect new limits on string and blob length.
2) Add "version" field to Page Header structure in README.
Fixes: https://github.com/espressif/esp-idf/issues/2321
2018-09-04 18:51:31 +05:30
baohongde
bd8b9960d5
component/bt: Add Legacy Pairing
2018-09-04 21:11:03 +08:00
Ivan Grokhotkov
6d865c6104
Merge branch 'feature/termios' into 'master'
...
Add basic support for termios.h
See merge request idf/esp-idf!3085
2018-09-04 20:42:21 +08:00
Ivan Grokhotkov
97b2281c49
Merge branch 'bugfix/can_driver_multiple_bugs' into 'master'
...
CAN: Add pm_lock, fix gpio bug, update docs
See merge request idf/esp-idf!3138
2018-09-04 20:34:06 +08:00
Ivan Grokhotkov
2469718481
Merge branch 'bugfix/check_python_order_only_prereq' into 'master'
...
Use check_python_dependencies everywhere as order-only-prerequisite
See merge request idf/esp-idf!3174
2018-09-04 20:31:49 +08:00
wangmengyang
4e6b3936c0
component/bt: bugfix for incorrect length of HCI SCO packet size in HFP resulted from uninitialized data buffer length
2018-09-04 20:09:07 +08:00
Angus Gratton
2ec0fd8fd6
Merge branch 'feature/signature_verify_updates' into 'master'
...
secure boot: Support signed app verification without hardware secure boot
See merge request idf/esp-idf!2814
2018-09-04 18:56:47 +08:00
Tian Hao
069f495006
component/bt : fix bug that set discovery mode will stop ble adv
...
As the bluedroid original implmentation of BR/EDR and BLE dual mode about discovery mode,
when set discovery mode for BR/EDR, it will stop ble advertising.
Reference to https://github.com/espressif/esp-idf/issues/2306
2018-09-04 17:07:10 +08:00
Konstantin Kondrashov
38098b713f
esp32/sleep: Add a function to disable logging from ROM code
2018-09-04 16:03:18 +08:00
Jiang Jiang Jian
b91cf5a33f
Merge branch 'bugfix/esp_bt_mem_release' into 'master'
...
components/bt: Fix broken API esp_bt_mem_release() for parameter ESP_BT_MODE_BTDM
See merge request idf/esp-idf!3121
2018-09-04 14:17:10 +08:00
Angus Gratton
e54f3d9616
Merge branch 'bugfix/bootloader_random_in_app' into 'master'
...
esp32: Allow bootloader_random.h use in app, add esp_fill_random() function
See merge request idf/esp-idf!3124
2018-09-04 10:39:12 +08:00
Angus Gratton
49656656c3
Merge branch 'bugfix/lock_up_if_supply_is_varying' into 'master'
...
bootloader_support: Fix enable wdt for resolve issue with varying supply
See merge request idf/esp-idf!2769
2018-09-04 00:37:52 +08:00
Roland Dobai
f755a0371d
Use check_python_dependencies everywhere as order-only-prerequisite
2018-09-03 11:42:10 +02:00
Angus Gratton
6976f5671c
Merge branch 'bugfix/heap_dma_pool_fixes' into 'master'
...
heap: Fixes around DMA reserved pool
See merge request idf/esp-idf!3034
2018-09-03 15:43:01 +08:00
Angus Gratton
1a0b39a1b3
Merge branch 'bugfix/add_core_id_to_idle_task_name' into 'master'
...
freertos: Add core ID to idle task names
See merge request idf/esp-idf!3159
2018-09-03 14:40:37 +08:00
Konstantin Kondrashov
26ee0f5203
esp32/task_wdt: Add timestamp to message isr_twdt
...
Closes https://github.com/espressif/esp-idf/issues/2270
2018-09-03 14:31:22 +08:00
Konstantin Kondrashov
4fc84306a2
esp32/task_wdt: Add esp_task_wdt_isr_user_handler function
...
Added esp_task_wdt_isr_user_handler function to receive twdt events in
the user code.
Closes https://github.com/espressif/esp-idf/issues/2270
2018-09-03 14:31:20 +08:00
Darian Leung
977619f23c
freertos: Add core ID to idle task names
...
This commit adds the core number to the name of each idle task.
2018-09-03 13:50:05 +08:00
Konstantin Kondrashov
9c715d7946
bootloader_support: Fix enable rtc_wdt for resolve issue with varying supply
...
Eliminates the issue with the lock up in the bootloader due to a power drawdown during its operation.
Closes https://github.com/espressif/esp-idf/issues/1814
2018-09-03 05:43:01 +00:00
Angus Gratton
83a179abb0
esp32: Add esp_fill_random() function
...
Convenience function to fill a buffer with random bytes.
Add some unit tests (only sanity checks, really.)
2018-09-03 04:39:45 +00:00
Angus Gratton
767ec27350
bootloader_support: Move bootloader_random.h to public header directory
2018-09-03 04:39:45 +00:00
Angus Gratton
5f1844a0c8
Merge branch 'bugfix/heap_poison_swap_check' into 'master'
...
heap: When verifying & swapping a fill pattern, stop swapping if verification fails
See merge request idf/esp-idf!2890
2018-09-03 11:19:16 +08:00
Angus Gratton
084ca82f96
Merge branch 'feature/bootloader_minor_enhancements' into 'master'
...
Feature/bootloader minor enhancements
See merge request idf/esp-idf!3111
2018-09-03 10:56:30 +08:00
Angus Gratton
27a1758908
Merge branch 'mesh/rewrite_docs' into 'master'
...
docs/rewrite_mesh_docs
See merge request idf/esp-idf!2990
2018-09-03 10:52:33 +08:00
Darian Leung
f4c3917712
docs/rewrite_mesh_docs
...
The following commit rewrites the ESP-MESH docs. This commit includes
new diagrams and a structure approach to the mesh docs. Some mesh api references
have also been modified.
2018-09-02 21:34:21 +08:00
negativekelvin
1d5dc2b9ef
wpa2_enterprise fixes
2018-09-01 22:19:48 -07:00
Darian Leung
dc3fa14a26
CAN: Add pm_lock, fix gpio bug, update docs
...
This commit does the following
- Add power management lock to CAN driver so that APB frequency does not change
whilst CAN driver is in use
- Fix incorrect flag in can_transmit()
- Refactor can_driver_install() and can_driver_uninstall() so that critical sections
are shorter
- Fix CAN gpio configuration bug on RX pin. Closes #2302
- Add docs about multiple ID configuration and fix example links
2018-09-01 02:46:05 +08:00
Hrishikesh Dhayagude
4abe47437f
components/bt: Fix broken API esp_bt_mem_release() for parameter ESP_BT_MODE_BTDM
...
Problem:
The new API esp_bt_mem_release() that was added freed BTDM data to heap from esp_bt_controller_mem_release().
Now with the BT memory optimization commit ee787085f9
,
the BTDM data is optimized and reduced to only 32 bytes which is not sufficient amount to be added to heap.
So, using the API leads to assert saying that the region is too small.
Solution:
Modify heap_caps_add_region_with_caps to return ESP_ERR_INVALID_SIZE in case the range is too small to create a new heap.
Do not assert if return value is ESP_ERR_INVALID_SIZE
This also fixes using API esp_bt_controller_mem_release() with ESP_BT_MODE_BTDM
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-08-31 14:28:23 +00:00
Jiang Jiang Jian
a557e8cc14
Merge branch 'bugfix/fix_bt_hdr_files' into 'master'
...
components/bt: Make a pass through Bluetooth header files
See merge request idf/esp-idf!3093
2018-08-31 22:04:39 +08:00
Jiang Jiang Jian
2d0124698e
Merge branch 'bugfix/btdm_update_private_address' into 'master'
...
component/bt: Update BLE private address after it's private address interval
See merge request idf/esp-idf!2987
2018-08-31 21:33:54 +08:00
Jiang Jiang Jian
4542bf19f7
Merge branch 'bugfix/btdm_rfcomm_test_command_cause_crash' into 'master'
...
component/bt: Fix bug rfcomm test command cause crash
See merge request idf/esp-idf!3080
2018-08-31 21:33:39 +08:00
Jiang Jiang Jian
e3778d7bd9
Merge branch 'bugfix/btdm_find_remote_service_by_uuid_always_return_success' into 'master'
...
component/bt: Fix bug of SDP find services by uuid always return success
See merge request idf/esp-idf!3036
2018-08-31 21:27:21 +08:00
Jiang Jiang Jian
430eeef5a2
Merge branch 'bugfix/esp_wifi_disconnect_fail' into 'master'
...
update wifi lib to fix two bugs
See merge request idf/esp-idf!3125
2018-08-31 21:01:12 +08:00
Jiang Jiang Jian
76413309a5
Merge branch 'bugfix/tw23350_fix_brownout_reset' into 'master'
...
when brownout reset occurs, set the phy TX Power to the lowest
See merge request idf/esp-idf!2854
2018-08-31 20:37:18 +08:00
Angus Gratton
38c0626090
cmake app_update: Add "flash blank otadata" functionality to cmake
2018-08-31 12:30:14 +08:00
zhangyanjiao
b952031947
fix the esp_wifi_disconnect() err when wifi is not started or inited
...
Closes: https://github.com/espressif/esp-idf/issues/2336
2018-08-31 10:49:52 +08:00
Jiang Jiang Jian
4cd1643006
Merge branch 'bugfix/btdm_security_vulnerability' into 'master'
...
fix bluetooth security vulnerability of ECDH public key checking
See merge request idf/esp-idf!3089
2018-08-31 02:02:59 +08:00
XiaXiaotian
cfaf6c2729
esp32: reorder MPDU as AMPDU
...
Some APs transmit AMPDU and MPDU by turns. Moreover, the sequence
numbers of AMPDU and MPDU are out of order, e.g. MPDU(1253) -
AMPDU(1251, 1252) - MPDU(1254) - AMPDU(1255, 1256). In order to
receive both AMPDU and MPDU in order, MPDU must be reordered with
AMPDU.
2018-08-30 17:18:48 +00:00
Roland Dobai
5395435816
Add basic support for termios.h
...
Closes https://github.com/espressif/esp-idf/issues/2063
2018-08-30 14:29:20 +02:00
Angus Gratton
5fbfd20f10
Merge branch 'master' into feature/cmake
2018-08-30 18:52:31 +08:00
Angus Gratton
a9c4ed7139
Merge branch 'master' into feature/cmake
2018-08-30 18:51:01 +08:00
zhangyanjiao
5425979932
when brownout reset occurs,set the phy TX Power to the lowest
2018-08-30 14:22:03 +08:00
Angus Gratton
c4ed9d15f7
heap: Drop priority of DMA reserved memory pool
...
Ensures that non-reserved memory should be used up first, before allocating from this pool.
2018-08-30 06:18:18 +00:00
Angus Gratton
776c57e0ac
heap: When adding a new heap, allocate its metadata block from internal memory only
2018-08-30 06:18:18 +00:00
Ivan Grokhotkov
b7e5b28f49
sdmmc: update unit tests for ESP_eMMC_TestBoard_V1
...
1. New tests for SD card on slot 0. Currently frequency for 4-bit mode
has to be reduced in the test.
2. Change pin for CD/WP tests, re-enable CD tests.
2018-08-30 13:14:26 +08:00
Ivan Grokhotkov
78fab8a0f9
sdmmc: implement partial DDR support
...
Works for 3.3V eMMC in 4 line mode.
Not implemented:
- DDR mode for SD cards (UHS-I) also need voltage to be switched to 1.8V.
- 8-line DDR mode for eMMC to be implemented later.
2018-08-30 13:11:54 +08:00
Ivan Grokhotkov
de42d99b1d
sdmmc: command layer refactoring
2018-08-30 13:11:54 +08:00
Tian Hao
5a8917c337
fix bluetooth security vulnerability of ECDH publick key checking
2018-08-30 11:39:19 +08:00
sergiu2014
383464749a
eMMC/MMC support for ESP32
...
Merges https://github.com/espressif/esp-idf/pull/1941
Previous work in https://github.com/espressif/esp-idf/pull/590
2018-08-30 11:36:28 +08:00
Ivan Grokhotkov
80e47a005d
sdmmc host: minor cleanup
...
Code style, comments
2018-08-30 11:36:28 +08:00
He Yin Ling
b01e87bbaf
Merge branch 'test/bugfix_BTSTK_GATT_25007' into 'master'
...
test: fix bug of BTSTK_GATT_25007
See merge request idf/esp-idf!3096
2018-08-30 11:19:04 +08:00
Jiang Jiang Jian
9be09692b1
Merge branch 'bugfix/btdm_get_acl_num' into 'master'
...
component/bt : fix get acl number incorrect due to memory release
See merge request idf/esp-idf!3090
2018-08-30 11:12:46 +08:00
Angus Gratton
ff54bfcde1
Merge branch 'bugfix/hwcrypto_mpi_ecp' into 'master'
...
mbedtls: Don't unnecessarily grow the result of a hardware bignum operation
See merge request idf/esp-idf!3041
2018-08-30 10:00:07 +08:00
Jiang Jiang Jian
ba17648aea
Merge branch 'bugfix/mesh_fix_hard_to_find_parent' into 'master'
...
mesh: bugfix and add two APIs
See merge request idf/esp-idf!3107
2018-08-29 23:05:32 +08:00
Angus Gratton
49a910adfb
cmake: partition_table: Use PYTHON interpreter when running parttool.py (fixes flasher args on Windows)
2018-08-29 20:22:55 +08:00
Angus Gratton
cb158f1194
cmake: Account for missing partition CSV file at cmake runtime
...
Avoid either breaking menuconfig (if cmake fails), or producing bad build output (if cmake succeeds
but no flashing offsets, etc. were generated.)
2018-08-29 20:22:55 +08:00
Angus Gratton
7f06543817
cmake/partitions: Apply offset to partition table metadata correctly
...
Also warn if the parttool.py has an error
2018-08-29 20:22:55 +08:00
Mahavir Jain
8227db4f5e
spi_flash: fix erase_range for block erase check
...
Erase in block (64k) as much as possible, before falling back
to sector (4k) erase.
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-08-29 12:04:32 +00:00
Mahavir Jain
62746e414e
bootloader: add API for erasing flash region
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-08-29 12:04:32 +00:00
Mahavir Jain
4a987dacca
bootloader: keep bootloader_common code to retention region
...
It is possible to utilize some of the routines related to otadata
partition validation, after firmware image is downloaded to RAM. Hence
these routines should be part of app cpu cache, so that they do not
get overwritten by firmware.
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-08-29 12:04:32 +00:00
Angus Gratton
393c29b656
cmake: Fix bt component dependencies
2018-08-29 19:37:25 +08:00
Angus Gratton
068a3e2f6a
cmake: Fix flasher argument generation
2018-08-29 19:37:19 +08:00
Angus Gratton
b364f23e17
secure boot: Support secure boot signatures without hardware secure boot
...
Allows OTA updates to be secured via signature checks, without requiring the overhead or complexity
of a full secure boot implementation.
Uses same signing mechanisms (build system and/or espsecure.py as Secure Boot).
Requires:
* [ ] More testing
* [ ] Documentation
2018-08-29 17:05:29 +08:00
Anton Maklakov
8c040e749f
bluetooth: fix format overflow warnings
2018-08-29 14:40:28 +08:00
Anton Maklakov
779bce7681
bluetooth: fix incorrect memset size
2018-08-29 14:40:28 +08:00
Anton Maklakov
e8eb8cb2a4
bluetooth: fix missing braces and indentation
2018-08-29 14:40:28 +08:00
Ivan Grokhotkov
ed546797d0
heap: test: don’t warn about oversized mallocs
2018-08-29 14:40:28 +08:00
Ivan Grokhotkov
033b694128
bt/a2dp: fix incorrect return type
...
res was declared as “bool” so expression
((count == 0) ? A2D_SET_ONE_BIT : A2D_SET_MULTL_BIT)
always evaluated to “true”, and was implicitly converted to
A2D_SET_ONE_BIT.
2018-08-29 14:40:28 +08:00
Ivan Grokhotkov
9fbe42c0f1
bt/bta: fix returning value from function returning void
2018-08-29 14:40:28 +08:00
Ivan Grokhotkov
536df958ad
bt/btm: fix misplaced debug statement
2018-08-29 14:40:28 +08:00
Ivan Grokhotkov
324004f7b3
spiffs: test: check for truncation in snprintf call
2018-08-29 12:49:15 +08:00
Ivan Grokhotkov
9ba5896d86
driver, ethernet: fix non-static inline functions
...
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81734
2018-08-29 12:49:15 +08:00
Ivan Grokhotkov
fc0c110efd
driver: test: fix memset out of bounds in spi_master test
2018-08-29 12:49:15 +08:00
Ivan Grokhotkov
946a823ccb
syscalls: fix type conversion for _raise_r stub
2018-08-29 12:49:15 +08:00
Alexey Gerenkov
7e5c235b9d
app_trace: Fix tmo initialization
2018-08-29 10:55:39 +08:00
Angus Gratton
669c5ac538
Merge branch 'feature/add_deinit_to_emac_driver' into 'master'
...
ethernet: support esp_eth_deinit
See merge request idf/esp-idf!3059
2018-08-28 18:09:55 +08:00
Angus Gratton
961f59ff57
mbedtls: Don't unnecessarily grow the result of a hardware bignum operation
...
Avoids growing the result of hardware bignum operations
(particularly for multiplication)
Fixes bugs where some Elliptic Curve operations fail or corrupt memory,
as they assume length of the number is never greater than the number of
non-zero limbs.
Includes some general refactoring to standardize terminology.
Closes https://github.com/espressif/esp-idf/issues/1556
Fixes TW12984
Adds test cases for both these issues.
2018-08-28 09:08:43 +00:00
Tian Hao
eb3f280cd3
component/bt : fix get acl number incorrect due to memory release
...
1. after memory release MR merged, due to the get acl number condition is not completed, it will cause get acl number value incorrect
2. It may cause set Security Mode (BR/EDR) enable failed
2018-08-28 15:35:40 +08:00
Jiang Jiang Jian
26850880b2
Merge branch 'bugfix/btdm_fix_crash_when_BLE_do_SMP_con_discon_stress_test' into 'master'
...
component/bt: fix crash when BLE do SMP connect and disconnect stress test
See merge request idf/esp-idf!3077
2018-08-28 13:40:20 +08:00
morris
ec07112f5b
ethernet: support esp_eth_deinit
...
1. change static emac-dma memory to dynamic
2. add esp_eth_deinit
3. modify ethernet example
4. add testcase for ethernet deinit function
5. GPIO0 could not output the 50MHz clock to PHY, so remove this configuration
2018-08-28 12:18:48 +08:00
Angus Gratton
1eaf112589
Merge branch 'bugfix/rtc_wdt_interval_overflow' into 'master'
...
rtc_wdt: fix overflow issue with setting wdt interval
See merge request idf/esp-idf!3110
2018-08-28 12:12:21 +08:00
chensheng
d04c101c96
test: fix bug of BTSTK_GATT_25007
2018-08-28 12:00:15 +08:00
Ivan Grokhotkov
cc8ad721f9
Merge branch 'bugfix/deep_sleep_stub_ptr_check' into 'master'
...
reset_reason: fix setting wake stub entry point to 0x80000000
See merge request idf/esp-idf!3101
2018-08-28 11:01:22 +08:00
Jiang Jiang Jian
f5b699cee7
Merge branch 'bugfix/btdm_a2dp_sink_pcm_buf_size' into 'master'
...
bugfix/btdm_a2dp_sink_pcm_buffer_size
See merge request idf/esp-idf!3052
2018-08-28 10:42:36 +08:00
qiyuexia
91dd05662d
mesh: bugfix and add two APIs
...
1. new APIs: esp_mesh_get_subnet_nodes_num() and esp_mesh_get_subnet_nodes_list().
2. fix hard to find the parent during connect.
3. disable Wi-Fi channel switch function.
4. fix a typo of MESH_EVENT_NO_PARENT_FOUND.
2018-08-27 19:12:40 +08:00
Ivan Grokhotkov
6dae5b206f
reset_reason: fix setting wake stub entry point to 0x80000000
...
esp_reset_reason_init would check for reset reason hint, and
unconditionally set RTC_RESET_CAUSE_REG (which is also
RTC_ENTRY_ADDR_REG) to hint value 0, i.e. 0x80000000. However the ROM
code treats this value as valid deep sleep wake stub entry point, and
tries to jump to it.
Clear RTC_RESET_CAUSE_REG only if it contained a valid reset reason
hint, and simply set the register value to 0 when doing so. Also add
a check to esp_get_deep_sleep_wake_stub function that deep sleep wake
stub entry address must be in IRAM.
Reported in https://esp32.com/viewtopic.php?f=13&t=6919 .
2018-08-27 19:01:03 +08:00
Angus Gratton
414b84c041
Merge branch 'feature/ci_fuzzer_tests_lwip' into 'master'
...
ci jobs running fuzz tests on dns, dhcp, dhcps + removed unnecessary references (libexpat)
See merge request idf/esp-idf!2866
2018-08-27 16:25:21 +08:00
Jiang Jiang Jian
147b349799
Merge branch 'bugfix/fix_several_wifi_bugs' into 'master'
...
esp32: update wifi lib to fix several WiFi bugs
See merge request idf/esp-idf!3095
2018-08-27 14:24:04 +08:00
Jiang Jiang Jian
6519f1833a
Merge branch 'bugfix/fix_probable_mem_leak' into 'master'
...
components/bt: Fix a probable memory leak for BTA_GATTS_CONF_EVT event
See merge request idf/esp-idf!2962
2018-08-27 14:10:22 +08:00
Angus Gratton
2c8c210a66
Merge branch 'feature/py3_for_gen_esp_err_to_name' into 'master'
...
tools: support python3 in gen_esp_err_to_name.py
See merge request idf/esp-idf!2827
2018-08-27 12:29:03 +08:00
Jiang Jiang Jian
1c676300f0
Merge branch 'bugfix/btdm_fix_get_error_adv_sometimes' into 'master'
...
Component/bt: fix get error adv packet sometimes
See merge request idf/esp-idf!3035
2018-08-27 12:17:23 +08:00
zwj
430d3da089
component/bt: fix crash when BLE do SMP connect and disconnect stress test
2018-08-27 11:09:29 +08:00
wangmengyang
3faee500bb
component/bt: bugfix for incorrect computation of PCM data buffer size in A2DP sink
2018-08-27 02:53:59 +00:00
Jiang Jiang Jian
df78612896
Merge branch 'bugfix/btdm_fix_memory_leak_in_security_server' into 'master'
...
component/bt: fix memory leak in security server
See merge request idf/esp-idf!3014
2018-08-27 10:19:27 +08:00
baohongde
588e006256
component/bt: Fix bug of SDP find services by uuid always return success
2018-08-27 02:14:45 +00:00
Angus Gratton
6c95285bdb
Merge branch 'bugfix/app_update_test' into 'master'
...
app_update: Change NUM_PIN_APP_TEST for unit test
See merge request idf/esp-idf!3050
2018-08-27 08:46:02 +08:00
Jiang Jiang Jian
51a4b4ba27
Merge branch 'bugfix/btdm_check_slave_feats_before_set_afh' into 'master'
...
bugfix/btdm_check_slave_feature_before_set_afh
See merge request idf/esp-idf!2972
2018-08-26 16:19:48 +08:00
Liu Zhi Fu
6a080febbc
esp32: update wifi lib to fix several WiFi bugs
...
Fix following WiFi bugs:
1. Shouldn't scan when connect
2. Check beacon length in modem sleep
3. Fix the bug that AP may deauth wrong station when inactivity timer expires
4. Fix the bug that WiFi assert the system when receiving empty MCS in association response frame
2018-08-26 12:47:24 +08:00
Hrishikesh Dhayagude
29ec0339f6
components/bt: Fix a probable memory leak for BTA_GATTS_CONF_EVT event
...
Multiple modules register their callback BTA_GATTS_AppRegister().
If any of the callbacks do not free the allocated pointer in
BTA_GATTS_CONF_EVT event, then this can result in memory leak.
So, free the pointer after the callback function is called and remove
the calls to free in the callback functions as it is now not required
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-08-25 16:26:37 +00:00
Hrishikesh Dhayagude
739b4aadf7
components/bt: Make a pass through Bluetooth header files
...
This is just a quick glance at all the header files exposed to the
users from cleanup point of view.
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-08-25 21:21:42 +05:30
zhiweijian
f74b041288
Component/bt: fix memory leak in security server
2018-08-25 15:47:47 +00:00
Mahavir Jain
f0fa66a50e
rtc_wdt: fix overflow issue with setting wdt interval
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-08-24 18:06:39 +05:30
wangmengyang
6b0a1bd700
component/bt: check support of AFH in remote slave device's LM feature then determine whether to send LMP_set_AFH
2018-08-24 11:48:12 +00:00
zhiweijian
1ca5b70803
Component/bt: fix get error adv packet sometimes
2018-08-24 09:24:49 +00:00
Konstantin Kondrashov
4e28799709
app_update: Change NUM_PIN_APP_TEST for unit test
...
Fixed error when `make TESTS_ALL=1`
2018-08-24 16:52:27 +08:00
baohongde
9eefd8c1aa
component/bt: Fix bug rfcomm test command cause crash
...
find when BQB
2018-08-24 14:49:33 +08:00
chensheng
ef0287de7d
fix bug BTSTK_GAP_14007,BTSTK_GAP_14008,BTSTK_GAP_14009 duplicate summary
2018-08-24 14:25:24 +08:00
Roland Dobai
79b9948cdf
tools: support python3 in gen_esp_err_to_name.py
2018-08-24 08:13:01 +02:00
Angus Gratton
c7f4fae8d0
Merge branch 'feature/python_future' into 'master'
...
Add python-future by using python requirements file
See merge request idf/esp-idf!2973
2018-08-24 08:04:18 +08:00
Ivan Grokhotkov
7abed5fc9e
Merge branch 'fix/spi_dma_config_in_iram' into 'master'
...
SPI: put dma config and slave functions into IRAM
See merge request idf/esp-idf!3038
2018-08-23 22:03:28 +08:00
He Yin Ling
32171da525
test: disable mesh recreate network test:
...
We have fixed a bug in test script. Before that, we didn't do strict check when generate the mesh tree, which makes the test pass.
Temp disable these cases, to let CI pass before bug fixed.
2018-08-23 17:49:59 +08:00
Roland Dobai
74fe7c82ae
bootloader: Don't use check_python_dependencies in the bootloader command
2018-08-23 11:41:40 +02:00
Angus Gratton
31ae3fe683
make: Use order-only prereq to check python dependencies
2018-08-23 08:28:57 +02:00
Roland Dobai
62cad3a7d7
Add python-future by using python requirements file
2018-08-23 08:28:57 +02:00
Michael (XIAO Xufeng)
4f87a62f18
spi_slave: add new menuconfig item to decide whether spi slave should be put into IRAM
2018-08-23 05:21:49 +00:00
Michael (XIAO Xufeng)
e3557b57be
spi: fix the issue that spi cannot be used when flash is disabled
...
The dma configuration function called in the ISR should be put into the IRAM.
Fixes https://github.com/espressif/esp-idf/issues/2307 .
2018-08-23 05:21:49 +00:00
Ivan Grokhotkov
88d40e01b4
Merge branch 'feature/rtc_slowclk_extra_options' into 'master'
...
Add more RTC_SLOW_CLK options
See merge request idf/esp-idf!2984
2018-08-23 11:27:14 +08:00
Jiang Jiang Jian
eb18122038
Merge branch 'bugfix/esp_bt_controller_mem_release' into 'master'
...
BT/BTDM memory release might fail if any of the memory regions is empty
See merge request idf/esp-idf!3031
2018-08-23 11:02:17 +08:00
Jiang Jiang Jian
33f0eadac9
Merge branch 'bugfix/timer_oneshot_timeout_twice' into 'master'
...
component/bt: Some timer oneshot will timeout twice
See merge request idf/esp-idf!2979
2018-08-23 10:41:53 +08:00
Ivan Grokhotkov
dda56ff55c
Merge branch 'bugfix/nvs_set_blob_bug' into 'master'
...
nvs_flash: Fix nvs_set_blob hang when partition is near to FULL
See merge request idf/esp-idf!3051
2018-08-23 10:27:20 +08:00
Angus Gratton
8846b5fb64
Merge branch 'bugfix/freertos_task_delete' into 'master'
...
freertos: Expose TCB & Stack memory capabilities as macro, fix task delete test
See merge request idf/esp-idf!3040
2018-08-22 19:39:21 +08:00
David Cermak
882ca87442
lwip: removed ASSERT in dhcp as the error might occur in runtime if packet is altered
2018-08-22 12:13:34 +02:00
David Cermak
ebebda9604
lwip: supported ci jobs running fuzz tests on dns, dhcp, dhcps
2018-08-22 12:13:20 +02:00
Ivan Grokhotkov
902344c516
Merge branch 'bugfix/trace_mem_layout_pro_cpu' into 'master'
...
soc: fix trace memory region for single core mode
See merge request idf/esp-idf!3029
2018-08-22 16:51:43 +08:00
Sachin Parekh
7a5400ce77
make dump_otadata: Displays app ota_seq and crc on console
2018-08-22 16:51:36 +08:00
Ivan Grokhotkov
9ab70d5379
Merge branch 'bugfix/http_write_data' into 'master'
...
esp_http_client: Fix minor bugs in `esp_http_client_write` and `esp_http_client_open` APIs
See merge request idf/esp-idf!2924
2018-08-22 16:49:29 +08:00
Ivan Grokhotkov
81d6c65379
Merge branch 'feature/esp_http_client_add_esp_tls' into 'master'
...
esp_http_client: Add esp-tls in esp_http_client
See merge request idf/esp-idf!2740
2018-08-22 16:48:35 +08:00
Ivan Grokhotkov
96971e3e9f
esp32: add support for 8MD256 and external 32k as slow clock options
2018-08-22 11:46:24 +08:00
Ivan Grokhotkov
5bf3654637
soc/rtc: Force power on 8M clock if it is used to derive RTC slow clock
2018-08-22 11:33:20 +08:00
Ivan Grokhotkov
8365f0f5d2
soc/rtc: add support for external 32k oscillator
...
Compared to external 32k XTAL, when active oscillator is used as input,
some parameters need to be set differently.
2018-08-22 11:33:20 +08:00
Ivan Grokhotkov
9efc06be0f
esp32/clk: remove unused code
...
When 32k XTAL was selected as clock source, if the first calibration
attempt failed, the code would fall back to 150kHz internal clock.
Calibration with the internal clock will always succeed.
Therefore `wait` would always be either 0 or 1. Based on this, some
code in this routine can be eliminated.
2018-08-22 11:33:20 +08:00
Ivan Grokhotkov
90f5456dba
Merge branch 'feature/rtc_cpu_freq_config' into 'master'
...
soc/rtc: Refactoring, support CPU frequencies lower than XTAL
See merge request idf/esp-idf!2856
2018-08-22 11:32:08 +08:00
Sagar Bijwe
911f96ad21
nvs_flash: Fix nvs_set_blob hang when partition is near to FULL
...
Marking a page full does not skip it from page selection process and the
same page might get returned if there is no other page with more unused
entries. Added a check for the same while storing blobs.
Fixes: https://github.com/espressif/esp-idf/issues/2313
2018-08-21 17:08:46 +05:30
Jitin George
4d6dcb71ce
esp_http_client: Add esp-tls APIs in SSL transport of esp_http_client
...
esp-tls APIs and SSL transport layer of esp_http_client try to
achieve similar things, so this is an effort to remove code redundancy.
2018-08-21 09:07:07 +00:00
Jitin George
7b56ae319d
esp-tls: Add support for network timeout
2018-08-21 09:07:07 +00:00
Jeroen Domburg
4eb28b9ace
Merge branch 'feature/spi_burst_desc' into 'master'
...
spi_master: change to DMA burst mode when access descriptors
See merge request idf/esp-idf!2824
2018-08-21 16:54:38 +08:00
Jeroen Domburg
9de884f586
Merge branch 'feat/spi_non_dma_64byte' into 'master'
...
spi_master: change high part config to allow transactions of 64 bytes
See merge request idf/esp-idf!3025
2018-08-21 16:53:37 +08:00
Ivan Grokhotkov
e59571eece
soc/rtc_clk: reduce data size by disabling CSWTCH generation
...
Saves about 200 bytes of DRAM at the expense of 4 bytes in IRAM.
2018-08-21 13:02:46 +08:00
Ivan Grokhotkov
db2f0f45be
soc/rtc_clk: split rtc_clk_init into separate object file
...
rtc_clk_init and related functions don’t need to be in IRAM/DRAM.
2018-08-21 13:02:46 +08:00
Ivan Grokhotkov
bcf79e5cf2
tests: use new CPU frequency setting API
2018-08-21 13:02:46 +08:00
Ivan Grokhotkov
c722cf3e06
bootloader: use new CPU frequency setting API
2018-08-21 13:02:46 +08:00
Ivan Grokhotkov
bec70ce298
esp32: use new CPU frequency setting API
2018-08-21 13:02:46 +08:00
Ivan Grokhotkov
2e31cce390
soc/rtc: CPU frequency settings refactoring
...
Previous APIs used to set CPU frequency used CPU frequencies listed in
rtc_cpu_freq_t enumeration. This was problematic for two reasons.
First, supporting many possible frequency values obtained by dividing
XTAL frequency was hard, as every value would have to be listed in
the enumeration. Since different base XTAL frequencies are supported,
this further complicated things, since not all of these divided
frequencies would be valid for any given XTAL frequency. Second,
having to deal with enumeration values often involved switch
statements to convert between enumeration and MHz values, handle
PLL/XTAL frequencies separately, etc.
This change introduces rtc_cpu_freq_config_t structure, which contains
CPU frequency (in MHz) and information on how this frequency has to
be generated: clock source (XTAL/PLL), source frequency, clock
divider value. More fields can be added to this structure in the
future. This structure simplifies many parts of the code, since both
frequency value and frequency generation settings can be accessed in
any place in code without the need for conversions.
Additionally, this change adds setting of REF_TICK dividers to support
frequencies lower then XTAL with DFS.
2018-08-21 13:02:03 +08:00
Ivan Grokhotkov
05a5410033
esp_clk.h: add esp_clk_xtal_freq
...
This adds a user API for getting the XTAL frequency
2018-08-21 13:02:03 +08:00
Ivan Grokhotkov
a6a9484084
Merge branch 'feature/move_CONFIG_TCPIP_LWIP_to_menuconfig' into 'master'
...
tcpip_adapter: optimise tcpip_adapter and fix a bug in emac_dev.c
See merge request idf/esp-idf!3017
2018-08-21 11:37:15 +08:00
Ivan Grokhotkov
4dd7233b20
Merge branch 'feature/reset_reason' into 'master'
...
Add API to get reset reason
See merge request idf/esp-idf!2871
2018-08-21 11:34:12 +08:00
baohongde
4fe04ae14d
component/bt: Update BLE private address after it's private address interval
2018-08-21 11:01:44 +08:00
Angus Gratton
c5d6845c5a
freertos: Expose TCB & Stack memory capabilities as macro, fix task delete test
...
Test was failing if task was allocating TCB & Stack memory from DMA only pool
which is not MALLOC_CAP_DEFAULT.
2018-08-21 12:19:33 +10:00
morris
b63f6a8a95
emac:optimise tcpip_adapter and fix emac_dev.c
...
1. move CONFIG_xx macros to Kconfig
2. fix a bug that make EMAC_DMAOPERATION_MODE_ERG mess
2018-08-20 19:52:48 +08:00
Jitin George
2122e5f83d
esp_http_client: Fix minor bugs in esp_http_client_write and esp_http_client_open APIs
...
`esp_http_client_write` API puts a constraint on the maximum length of the data that can be
written, which is equal to client handle buffer size, but the data to be sent can be more
than that, so in this case, this API has to be called multiple times.
In `esp_http_client_open` API, the return value of `transport_write` API, used to send HTTP
request, is not checked, and in rare cases, data written will be less than expected which will
cause a problem. So there are fixes for these minor issues in this MR.
2018-08-20 10:41:42 +00:00
Ivan Grokhotkov
8403adf4e0
docs: add API reference section for esp_system.h
2018-08-20 16:49:20 +08:00
Ivan Grokhotkov
3ef650cd46
esp32/test: add tests for reset reasons
2018-08-20 16:49:20 +08:00
Ivan Grokhotkov
0aa384d40c
esp32: add API to get reset reason
2018-08-20 16:49:20 +08:00
me-no-dev
afa091fe79
prevent heap_caps_add_region exception if region is empty
...
Calling `esp_bt_controller_mem_release` or `esp_bt_mem_release` might result in exception if any of the regions returned to heap are empty. This happens usually if BT/BLE is enabled, but not used/linked in the final firmware.
2018-08-17 08:49:48 +02:00
Ivan Grokhotkov
164e324fe2
Merge branch 'feature/bootloader_unit_tests' into 'master'
...
app_update: Add unit tests for ota, factory, test partitions
See merge request idf/esp-idf!2565
2018-08-17 14:39:50 +08:00
Jiang Jiang Jian
5ba0d6bde6
Merge branch 'bugfix/ut_bt_build_fix' into 'master'
...
bt: build unit tests only when CONFIG_BT_ENABLED=1
See merge request idf/esp-idf!3000
2018-08-16 19:49:14 +08:00
Jiang Jiang Jian
98eaa5c2ec
Merge branch 'docs/security' into 'master'
...
docs: Added more wordings to capture secure boot and flash encryption dependency.
See merge request idf/esp-idf!2947
2018-08-16 19:31:36 +08:00
Jiang Jiang Jian
00ef8bf726
Merge branch 'feature/decrease_bt_contrller_memory_with_new_mem_reserved' into 'master'
...
decrease bt contrller memory with new mem reserved
See merge request idf/esp-idf!2791
2018-08-16 19:12:44 +08:00
michael
404e99965d
spi_master: change high part config to allow transactions of 64 bytes
2018-08-16 18:55:09 +08:00
Angus Gratton
3012b0f887
Merge branch 'feature/nvs_multi_page_util' into 'master'
...
Bugfix: multi page blob creation was failing if only one entry was left in page
See merge request idf/esp-idf!2971
2018-08-16 15:23:11 +08:00
Angus Gratton
ff2404a272
Merge branch 'master' into feature/cmake
2018-08-16 17:14:17 +10:00
Shivani Tipnis
dfde105f25
Add support for input custom partition size
2018-08-16 11:54:46 +05:30
Shivani Tipnis
5ce40fce0c
Add nvs part gen utility multi page blob support update
2018-08-16 11:46:25 +05:30
Konstantin Kondrashov
1da0483619
app_update: Add unit tt pests for ota, factory, test partitions
2018-08-16 09:57:32 +05:00
Angus Gratton
4f227a4ce3
Merge branch 'bugfix/spiram_malloc_reserve_internal_fragments' into 'master'
...
esp32: Allow SPIRAM_MALLOC_RESERVE_INTERNAL to span multiple regions of memory
See merge request idf/esp-idf!2891
2018-08-16 11:19:39 +08:00
Tian Hao
ab73e0ff13
tools: fix ci example build report reassign warnning
2018-08-16 11:12:22 +08:00
Angus Gratton
ccd0c61ea1
Merge branch 'feature/rtc_wdt_api' into 'master'
...
soc/rtc_wdt: Add API functions for rtc_wdt
See merge request idf/esp-idf!2837
2018-08-16 08:19:12 +08:00
Mahavir Jain
0075e2f316
soc: fix trace memory region for single core mode
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-08-15 20:52:39 +05:30
Jiang Jiang Jian
020ade652d
Merge branch 'bugfix/tw24588_Android_get_IP_fail' into 'master'
...
fix the bug for Android phone getting IP fail when STA+AP mode
See merge request idf/esp-idf!3006
2018-08-15 11:47:13 +08:00
Konstantin Kondrashov
a8e46775c6
soc/rtc_wdt: Add API functions for rtc_wdt
...
Added functions:
rtc_wdt_protect_off/on
rtc_wdt_set_length_of_reset_signal
rtc_wdt_set_stage
rtc_wdt_set_time
rtc_wdt_feed
rtc_wdt_disable/enable
2018-08-14 17:48:02 +05:00
Liu Han
f3f0445f4d
mdns: Fix a portion of the queries are issued with the wildcard query type
2018-08-14 07:25:08 +00:00
zhangyanjiao
89601e0b9f
fix the bug for Android phone getting IP fail when STA+AP mode
2018-08-14 15:04:47 +08:00
Sagar Bijwe
b27773e87c
docs: Added more wordings to capture secure boot and flash encryption dependency.
2018-08-14 11:27:29 +05:30
Angus Gratton
08ae7ef9dc
Merge branch 'feature/ota_get_sha-256_of_partition' into 'master'
...
bootloader_support: Add API for getting sha256_of_partition
See merge request idf/esp-idf!2479
2018-08-14 11:32:39 +08:00
Tian Hao
ee787085f9
component/bt : decrease memory consumption by conn number
...
1. BLE only with 9(max) connection will decrease 3K DRAM
2. BR/EDR only with 7(max) connection will decrease 16K DRAM
3. Any of BLE or BR/EDR connection number decrease will also decrease DRAM consumption
4. Decrease one BLE connection will save about 1KB DRAM
5. Decrease one BR/EDR ACL connection will save about 1.2KB DRAM
6. Decrease one BR/EDR SCO/eSCO will save 2KB DRAM.
7. fix some definition and kconfig
8. remove 1.2k of vhci tx cache and make .bss & .data to heap about 1.4K
9. modify BT Reserved Memory size and modify example to support new bt kconfig
2018-08-14 02:29:17 +00:00
Ivan Grokhotkov
c7fc5b1171
ulp: add tests for jumps instruction
2018-08-13 16:48:27 +00:00
Ivan Grokhotkov
7fca027355
bt: build unit tests only when CONFIG_BT_ENABLED=1
2018-08-13 17:38:37 +03:00
Konstantin Kondrashov
117c79eae5
app_update: Add API for getting sha256_of_partition
...
Added bootloader_common_get_sha256_of_partition() and esp_partition_get_sha256() - get or calculate SHA-256
digest for app and data partitions.
Added bootloader_sha256_hex_to_str() - helps to print SHA-256 digest
Added esp_partition_check_identity() - compares two partitions by SHA-256 digest
Refactoring a function esp_image_load() in bootloader space to esp_image_verify() and
bootloader_load_image(). Old name function esp_image_load is deprecated
and will remove in V4.0 version.
spi_flash/sim: Fix error test_host. Add stub for bootloader_common_get_sha256_of_partition in sim/stubs
2018-08-13 13:59:07 +05:00
Jiang Jiang Jian
886bf4b88e
Merge branch 'bugfix/btdm_ecdh_public_key_not_check' into 'master'
...
component/bt: Fixed the vulnerability released by Bluetooth org when using…
See merge request idf/esp-idf!2933
2018-08-13 15:44:13 +08:00
yulong
72eaaff9fe
component/bt: Fixed the vulnerability released by Bluetooth org when using public key not check in the process of ECDH encryption.
...
1. Add the 100 times test when the private key is generated by the random number;
2. Add the bt components to the unit-test-app/config directory.
3. Added the bt unit test case to CI.
2018-08-13 14:08:11 +08:00
baohongde
31c66af560
component/bt: Some timer oneshot will timeout twice
...
Find when BQB
2018-08-13 06:00:11 +00:00
Jiang Jiang Jian
30545f4ccc
Merge branch 'bugfix/btdm_fix_get_bond_list_error_when_connection_with_no_bond' into 'master'
...
Component/bt: fix get bond list error when connection with no bond
See merge request idf/esp-idf!2957
2018-08-10 20:46:34 +08:00
Ivan Grokhotkov
8739111218
Merge branch 'bugfix/gpio_reset_bitmask' into 'master'
...
gpio: Bitmask overflow fix in gpio_reset_pin
See merge request idf/esp-idf!2966
2018-08-10 17:35:26 +08:00
Angus Gratton
383a3f788d
Merge branch 'doc/heap_tracing' into 'master'
...
heap docs: Fix some bad links & errors in the heap docs
See merge request idf/esp-idf!2942
2018-08-10 16:46:52 +08:00
Angus Gratton
c9cbc6b30c
heap docs: Fix some bad links & errors in the heap docs
...
Also add a note about printf() sometimes causing on-demand allocations.
2018-08-10 15:54:58 +10:00
Angus Gratton
f4b23d1505
Merge branch 'bugfix/http_client_null_auth_header' into 'master'
...
esp_http_client: Fixed exception on 401 without Www-Authenticate header
See merge request idf/esp-idf!2900
2018-08-10 13:44:55 +08:00
Jiang Jiang Jian
3486ce6898
Merge branch 'mesh/bugfix_parent_switch' into 'master'
...
mesh: modify parent switch mechanism
See merge request idf/esp-idf!2803
2018-08-10 11:31:50 +08:00
Ivan Grokhotkov
5fc6397589
nvs: fix memory leak when writing a blob
...
Introduced in 5a27a63
.
Clear usedPages list in all exit conditions, add test.
2018-08-09 10:35:19 +03:00
Michael (XIAO Xufeng)
203ceed1e7
spi_master: change to DMA burst mode when access descriptors
2018-08-08 13:56:01 +00:00
Ivan Grokhotkov
ee3f64cbad
Merge branch 'feature/http_client_head' into 'master'
...
esp_http_client: add head method support
See merge request idf/esp-idf!2895
2018-08-08 20:58:39 +08:00
Taavi Hein
f7749e18a8
gpio: Bitmask overflow fix in gpio_reset_pin
...
For pins 32 and up the BIT(nr) macro used here overflowed,
causing undetermined GPIO pins to be reset.
Example: freeing SPI device/bus where CS is on pin 33
caused debug UART to cease communication, TXD0 was
disabled.
Fixed as BIT64(nr) macro, to be used elsewhere as needed.
For example in definitions like GPIO_SEL_32..GPIO_SEL_39.
2018-08-08 15:31:17 +03:00
Angus Gratton
a53a5eeabd
Merge branch 'bugfix/add_mutex_for_some_touchpad_apis' into 'master'
...
fix(touch): add_mutex_for_some_touchpad_apis
See merge request idf/esp-idf!2714
2018-08-08 16:28:28 +08:00
Ivan Grokhotkov
80c5547b97
Merge branch 'bugfix/ulp_fixes' into 'master'
...
ULP fixes
See merge request idf/esp-idf!2948
2018-08-08 15:37:25 +08:00
zhiweijian
57355d7154
Component/bt: fix get bond list error when connection with no bond
2018-08-08 14:44:22 +08:00
qiyuexia
93c0c8da6b
mesh: modify parent switch mechanism
...
1. modify parent switch mechanism.
2. fix non-root doesn't clear the layer value in nvs.
3. fix retransmit the remove announcement packets.
4. add API esp_mesh_flush_upstream_packets().
5. automatically adjust passsive scan time based on the change of beacon interval.
2018-08-08 13:51:05 +08:00
He Yin Ling
a1a9801f00
Merge branch 'bugfix/remove_check_for_reason_assoc_expire' into 'master'
...
test: remove check for REASON_ASSOC_EXPIRE:
See merge request idf/esp-idf!2904
2018-08-08 12:58:20 +08:00
Angus Gratton
cdc792d72c
Merge branch 'feature/http_firmware_upgrade' into 'master'
...
esp_https_ota: Add esp_https_ota component
See merge request idf/esp-idf!2771
2018-08-08 12:27:05 +08:00
Angus Gratton
f1a4bc7c94
Merge branch 'feature/aws-iot-update-3.0.1' into 'master'
...
Feature/aws iot update 3.0.1
See merge request idf/esp-idf!2936
2018-08-08 07:14:58 +08:00
Ivan Grokhotkov
323caed83b
ulp: fix ULP binary format documentation
...
Fix incorrect offset value (4+2+2+2+2=12) of arbitrary data in ULP
binary format.
Closes https://github.com/espressif/esp-idf/issues/1705 .
2018-08-07 16:14:57 +03:00
Ivan Grokhotkov
22dfb92fe0
ulp: use += instead of := when setting component vars
...
Component which includes component_ulp_common.mk may also need to set
some of the same COMPONENT_XXX variables. Logically, we should combine
the lists of files to embed, ldflags, extra include dirs, etc.
Fixes https://github.com/espressif/esp-idf/issues/2157 .
2018-08-07 16:14:57 +03:00
Ivan Grokhotkov
33153748ba
ulp: fix missing include in esp32/ulp.h header
...
ulp.h uses some register base addresses, so needs to include soc.h
2018-08-07 16:14:57 +03:00
He Yin Ling
28ab4acb7e
test: update Wi-Fi test cases:
...
1. The test step for error code REASON_ASSOC_EXPIRE is not reliable. SoftAP
could also send error code WIFI_REASON_NOT_AUTHED
2. STA will be disconnected now if softAP restart DHCP server
2018-08-07 10:50:05 +00:00
Jiang Jiang Jian
81ac9c1fc7
Merge branch 'bugfix/wrong_connect_in_all_channel_scan' into 'master'
...
Wifi: bug fix of may connect to wrong AP in all channel scan
See merge request idf/esp-idf!2829
2018-08-07 18:31:31 +08:00
Anuj Deshpande
fe357c3617
aws-iot: Update to 3.0.1 release
...
- Fixes https://github.com/espressif/esp-idf/issues/2224
- Fixes https://github.com/espressif/esp-idf/issues/1808
2018-08-07 11:28:54 +05:30
Angus Gratton
5f56f2ca01
Merge branch 'feature/nvs_version_check' into 'master'
...
nvs_flash: Version compatibility check for nvs storage
See merge request idf/esp-idf!2855
2018-08-07 13:31:49 +08:00
Deng Xin
65c441a891
Wifi: bug fix of may connect to wrong AP in all channel scan
...
1. enable threshold in all channel scan
2. bug fix of may connect to an open AP even set password in all channel scan
2018-08-06 19:54:24 +08:00
Jiang Jiang Jian
c22e42d869
Merge branch 'bugfix/station_state_machine_change_and_ap_loss_happen' into 'master'
...
Wifi: station state machine change and fix ap loss
See merge request idf/esp-idf!2911
2018-08-06 18:49:31 +08:00
Jiang Jiang Jian
212e25760b
Merge branch 'bugfix/btdm_spp_crash_on_reset' into 'master'
...
component/bt: Fix bug of SPP crash on reset
See merge request idf/esp-idf!2801
2018-08-06 18:39:21 +08:00
Jiang Jiang Jian
744d703dba
Merge branch 'bugfix/btdm_hfp_invalid_sco_param' into 'master'
...
bugfix/btdm_hfp_invalid_sco_param
See merge request idf/esp-idf!2915
2018-08-06 15:35:27 +08:00
wangmengyang
d4cecc5a04
component/bt: modify the invalid retransmission setting for SCO link in HFP
2018-08-06 06:20:51 +00:00
Angus Gratton
272b95e8ce
linker: Don't link all of 'soc' into IRAM
...
Moves any code in *_perpih.c, memory_layout_utils.c to flash
2018-08-06 01:37:55 +00:00
Angus Gratton
a5ae5ac4b3
soc: Allow components to reserve fixed memory ranges that they need
...
No longer necessary to keep all reserved addresses in 'soc'.
Means 'soc' does not need to know about 'bt', for example.
Also means that Bluetooth can be enabled in config without any memory being reserved for BT
controller. Only if code calling the BT controller is linked in, will this memory be reserved...
2018-08-06 01:37:55 +00:00
Jiang Jiang Jian
f2f2744b29
Merge branch 'bugfix/fix_uart_tx_bug_when_using_ringbuffer' into 'master'
...
driver(uart): Fixed uart tx_empty interrupt wdt timeout bug
See merge request idf/esp-idf!2823
2018-08-05 23:49:40 +08:00
Jiang Jiang Jian
b85e8e10b9
Merge branch 'bugfix/btdm_fix_sc_mitm_bond_failed_in_smp_for_iphones' into 'master'
...
Component/bt: fix SC_MITM_BOND failed in smp for iphones
See merge request idf/esp-idf!2863
2018-08-05 23:48:23 +08:00
kooho
2d0af81ccf
driver(uart): Fixed uart tx_empty interrupt wdt timeout bug.
2018-08-05 06:34:34 +00:00
Tuan PM
9aec055ac2
esp_http_client: Fixed exception on 401 without Www-Authenticate header
...
Closes https://github.com/espressif/esp-idf/issues/2246
2018-08-05 06:24:53 +00:00
Deng Xin
97a41f29b8
Wifi: station state machine change and fix ap loss
...
1. fix ap loss issue
2. change station behavior when receive disassoc and deauth after connect
3. format state machine reason code
2018-08-05 13:44:58 +08:00
baohongde
2cd9eaccc7
component/bt: Fix bug of SPP crash on reset
...
In response to: https://github.com/espressif/esp-idf/issues/1998
2018-08-05 00:36:51 +00:00
Sagar Bijwe
1df85e0039
nvs_flash: Version compatibility check for nvs storage
...
This change adds a check for compatibility between the nvs version
found on nvs flash and the one assumed by running code during nvs
initialization. Any mismatch is reported to the user using new error
code ESP_ERR_NVS_NEW_VERSION_FOUND.
2018-08-05 00:00:56 +00:00
Sagar Bijwe
8ef7a49cc3
nvs_flash: Bump up nvs version
2018-08-05 00:00:56 +00:00
zhiweijian
163dbc3200
Component/bt: fix SC_MITM_BOND failed in smp for iphones
2018-08-04 16:52:53 +00:00
Liu Zhi Fu
0fa1fee8e8
esp32: update libphy.a to v3960
...
Update libphy.a to v3960:
1. Decrease phy_init time from 900us to 347us in sleep wakeup
2. Fix RX STBC initialization
3. Modify set_chan function to fix interrupt watchdog issue
2018-08-04 16:21:19 +00:00
Jitin George
2d79af3b13
esp_http_client: Add support for getting transport type
2018-08-03 16:47:08 +05:30
Jitin George
1fecdc3891
esp_https_ota: Add support for HTTPS based ota feature
2018-08-03 16:47:07 +05:30
Jiang Jiang Jian
ad739ee791
Merge branch 'feature/support_64mbit_psram' into 'master'
...
feature(psram): add support for 64MBit psram of 1.8v and 3.3v.
See merge request idf/esp-idf!2696
2018-08-03 17:59:36 +08:00
Jiang Jiang Jian
4f1e8df367
Merge branch 'bugfix/btdm_a2dp_disconnect_reason' into 'master'
...
bugfix/btdm_a2dp_disconnect_reason
See merge request idf/esp-idf!2914
2018-08-03 15:30:30 +08:00
Jiang Jiang Jian
f1d516314b
Merge branch 'bugfix/coex_wifi_pm' into 'master'
...
Bugfix/coex wifi pm
See merge request idf/esp-idf!2883
2018-08-03 15:22:13 +08:00
Angus Gratton
b3ff68a935
Merge branch 'bugfix/hard_error_partition_offset' into 'master'
...
partition_table: Hard error if CSV contains invalid/overlapping offsets
See merge request idf/esp-idf!2755
2018-08-03 14:52:43 +08:00
Tian Hao
d9dc2985e7
fix bug that wifi sleep before receive beacon
...
it will resolve the problem:
1. when bluetooth is running (For example: a2dp sink), wifi station cannot connect to AP easily
2. improve wifi connection success ratio when coexist is working
2018-08-03 05:07:06 +00:00
Angus Gratton
5aff7fd07f
Merge branch 'bugfix/btdm_fix_queue_block_when_scanning' into 'master'
...
Component/bt: fix queue blocking when scanning
See merge request idf/esp-idf!2706
2018-08-03 07:24:08 +08:00
Roland Dobai
ce3cb5c3aa
expat: add source of entropy
2018-08-02 11:02:45 +02:00
Angus Gratton
3c5af26506
Merge branch 'test/spi_region' into 'master'
...
spi_master: improve some tests
See merge request idf/esp-idf!2809
2018-08-02 12:09:44 +08:00
Ivan Grokhotkov
7ab4615757
Merge branch 'bugfix/http_chunked_read' into 'master'
...
bugfix/esp_http_client: fixed http chunked encoding packet loss & add check data before read for ssl transport
See merge request idf/esp-idf!2631
2018-08-02 09:40:39 +08:00
fuzhibo
81c762eb86
fix(touch): add_mutex_for_some_touchpad_apis
2018-08-01 18:06:21 +08:00
Ivan Grokhotkov
20147f951c
Merge branch 'bugfix/heap_caps_alloc_32bit' into 'master'
...
heap: heap_caps_malloc(..., MALLOC_CAP_32_BIT) should always allocate a 32-bit aligned size
See merge request idf/esp-idf!2889
2018-08-01 17:39:14 +08:00
Angus Gratton
6dea5c9546
partition table: Remove hard-coded offsets from default partition tables
...
Makes them compatible with moving the partition table offset
2018-08-01 19:23:38 +10:00
Angus Gratton
28801449e3
partition_table: Hard error if CSV contains invalid/overlapping offsets
...
Based on report on forum here:
https://esp32.com/viewtopic.php?f=13&t=6382&p=27514
Previous versions were much more relaxed about what could be in the partition
table, erroring out avoids unexpected changes on upgrade like different
partition offsets.
2018-08-01 19:23:38 +10:00
wangmengyang
7f7f8a02d0
component/bt: retrieve disconnection reason in AVDT when ACL-U link is disconnected
2018-08-01 17:16:52 +08:00
Angus Gratton
7457054c1f
Merge branch 'feature/add_rom_elf' into 'master'
...
Support for ROM functions in core dump backtraces
See merge request idf/esp-idf!2672
2018-08-01 15:21:03 +08:00
Tuan PM
2718a5f674
Add http_buffer description
2018-08-01 07:14:36 +00:00
Tuan
5589954800
esp_http_client: fixed http chunked encoding packet loss & add check data before read for ssl transport
...
- A bug of the http client when it downloads a chunked encoding packet is greater than the http_client's buffer, http_parser will call the callback body more than once, and the client will only handle the last
- with ssl_read, need to check before read to avoid timeout blocked when no data for reading
2018-08-01 07:14:36 +00:00
zhiweijian
658668b386
Component/bt: fix hci_hal_env.rx_q and xHciH4Queue blocking when scanning
2018-08-01 15:06:56 +08:00
Angus Gratton
7ea4db72de
Merge branch 'bugfix/wl_encryption' into 'master'
...
Bugfix: WL works with encrypted flash
See merge request idf/esp-idf!2530
2018-08-01 15:05:47 +08:00
Ivan Grokhotkov
98255f4225
Merge branch 'feature/mbedtls_2_12_0' into 'master'
...
mbedtls: update to 2.12.0
See merge request idf/esp-idf!2879
2018-08-01 14:56:50 +08:00
Ivan Grokhotkov
1898e5fbab
Merge branch 'bugfix/spi_flash_mmap_malloc_internal' into 'master'
...
spi_flash: allocate mmap pages array in internal memory
See merge request idf/esp-idf!2885
2018-08-01 14:56:18 +08:00
Ivan Grokhotkov
2a2f960afa
Merge branch 'feature/mbedtls_platform_memory_pr2237' into 'master'
...
Adds a Kconfig option for mbedtls' MBEDTLS_PLATFORM_MEMORY define. This makes it…
See merge request idf/esp-idf!2903
2018-08-01 14:55:54 +08:00
Jiang Jiang Jian
fe09c1cb59
Merge branch 'bugfix/btdm_oob_included' into 'master'
...
Fix undefined reference error by changing BTM_OOB_INCLUDED
See merge request idf/esp-idf!2878
2018-08-01 14:53:37 +08:00
Ivan Grokhotkov
5452e7848d
Merge branch 'bugfix/raise_r_signature' into 'master'
...
syscalls: fix arguments and return type for _raise_r
See merge request idf/esp-idf!2897
2018-08-01 14:50:59 +08:00
Jiang Jiang Jian
f048da2bf7
Merge branch 'feature/wifi_add_internal_api_to_set_fix_rate' into 'master'
...
esp32: add internal API to enable or disable transmitting WiFi MAC frame with fixed rate
See merge request idf/esp-idf!2835
2018-08-01 14:50:15 +08:00
Jiang Jiang Jian
a539754c2e
Merge branch 'doc/wifi_update_channel_state_information_document' into 'master'
...
docs: update channel state information document
See merge request idf/esp-idf!2793
2018-08-01 14:49:14 +08:00
Jiang Jiang Jian
29d7382c2b
Merge branch 'bugfix/btdm_lmp_trans_coll_state_uncleared' into 'master'
...
component/bt: btdm_lmp_transcation_collision_state_uncleared
See merge request idf/esp-idf!2731
2018-08-01 14:47:29 +08:00
Jiang Jiang Jian
b6f52a6455
Merge branch 'bugfix/fix_several_wpa2_issues' into 'master'
...
esp32: fix several wpa2 enterprise issues
See merge request idf/esp-idf!2825
2018-08-01 14:38:15 +08:00
Angus Gratton
6851af3c4b
Merge branch 'bugfix/btdm_fix_gattc_count_invalid' into 'master'
...
Component/bt: fix gattc get count invalid and discover included service error
See merge request idf/esp-idf!2770
2018-08-01 14:06:38 +08:00
Angus Gratton
e6dc0c7bde
Merge branch 'bugfix/remove_bt_dependency_on_lwip_header' into 'master'
...
Bugfix/remove bt dependency on lwip header
See merge request idf/esp-idf!2882
2018-08-01 13:57:35 +08:00
Liu Zhi Fu
343bd32bd8
esp32: fix several wpa2 enterprise issues
...
Fix following issues:
1. Fix heap corrupted bug
2. Fix memory leak bug
3. Make wpa2 enterprise thread-safe
Closes https://github.com/espressif/esp-idf/issues/1569
2018-08-01 03:43:30 +00:00
XiaXiaotian
149d79f9a1
esp32: add internal API to enable or disable transmitting WiFi MAC frame with
...
fixed rate
2018-08-01 11:19:43 +08:00
Jason von Nieda
d7a17ac941
Adds a Kconfig option for mbedtls' MBEDTLS_PLATFORM_MEMORY define. This makes it possible to override the mbedtls allocator with your own.
...
Merges https://github.com/espressif/esp-idf/pull/2237
2018-08-01 11:28:28 +10:00
Roland Dobai
1d1533ee8e
expat: Move libexpat into submodule and update to version 2.2.5
2018-07-31 13:25:00 +02:00
Ivan Grokhotkov
79e7f02286
spi_flash: allocate mmap pages array in internal memory
...
* spi_flash_mmap_pages needs pages array to be in internal memory.
Document and check this.
* Fix a bug that spi_flash_mmap did not allocate pages array in
internal memory.
* Minor style fixes: const-ify pages argument of spi_flash_mmap, add
spaces around operators, mark output arguments with [out].
Closes https://github.com/espressif/esp-idf/issues/2229 .
2018-07-31 13:11:04 +03:00
Michael (XIAO Xufeng)
0aa52057ed
spi_master: enable 2 tests in CI
...
The test is previously disabled for the requirement of external
connection. Now the signals are connected by internal connections.
Also change the failure logic of the test.
2018-07-31 18:04:51 +08:00
Michael (XIAO Xufeng)
fb15f970d2
spi_master: change test to test DMA tx/rx in regions like psram
2018-07-31 18:04:50 +08:00
wangmengyang
ae7bf1990e
component/bt: bugfix for uncleared LMP transaction collision state after rejecting sniff request from slave
2018-07-31 17:10:32 +08:00
Ivan Grokhotkov
1fdbbec13a
syscalls: fix arguments and return type for _raise_r
...
ROM code still uses incorrect function signature.
Closes https://github.com/espressif/esp-idf/issues/2245 .
2018-07-31 12:08:04 +03:00
Jason Kölker
483c3d7a7b
esp_http_client: add head method support
...
Merges https://github.com/espressif/esp-idf/pull/2093
2018-07-31 11:08:31 +03:00
Angus Gratton
6e4b0c3e2f
freertos: Remove either one or two assertions from "fast path" of vPortCPUReleaseMutex()
...
Saves a few cycles by only testing the count validity once, and never for the common case where the
mutex was not recursively locked.
2018-07-31 06:35:25 +00:00
Dmitry
6a950d6a17
Build test applicatoin on host failer fixed.
...
Make host tests compilible.
2018-07-31 08:45:43 +03:00
Dmitry
2281f6318a
Remove CR line ends.
2018-07-31 08:45:43 +03:00
Dmitry
e98a49a691
Position save included.
2018-07-31 08:45:43 +03:00
Dmitry
06bab70822
Usless read removed.
2018-07-31 08:45:43 +03:00
Dmitry
76ee450c3d
Erase flash before the first use added.
...
Пожалуйста, введите сообщение коммита для ваших изменений. Строки,
2018-07-31 08:45:43 +03:00
Dmitry
c9872c649e
Additional sector position should not be changed at update.
2018-07-31 08:45:43 +03:00
Dmitry
9d609af54c
Added check for version after write.
2018-07-31 08:45:43 +03:00
Dmitry
f392727abf
Additional info about version update included.
2018-07-31 08:45:42 +03:00
Dmitry
e834d6fffc
CRC check improved.
2018-07-31 08:45:42 +03:00
Dmitry
35842d02ab
Calculation for heap usage corrected with workaround.
...
Fixed problem with multiple mount/unmount for different devices.
Additional check for structure length included into the code.
Remove useless spaces.
Added initialization for reserved memory.
2018-07-31 08:45:42 +03:00
Dmitry
f05f3fbde8
Added test for version update from V1 to V2. Problems for tests on host are fixed. Random function changed to esp_random()
2018-07-31 08:45:42 +03:00
Dmitry
a6d6c58eca
The version of WL component changed from 1 to 2.
...
WL version 2 mark used sectors as 16 bytes block of bytes with CRC.
This changes required because old version did not worked with encryption.
Additional unit tests are implemented.
2018-07-31 08:45:42 +03:00
Angus Gratton
304e9085eb
esp32: Allow SPIRAM_MALLOC_RESERVE_INTERNAL to span multiple regions of memory
...
- Allocate this pool after main_task is running, so it can use startup stack RAM
- Raise the maximum allowed value in KConfig to 256KB
- Based on forum discussions https://esp32.com/viewtopic.php?f=2&t=6550&sid=76cd27bda76c6d0e83d3fcc9ec30c650&start=10#p28253
2018-07-31 15:17:07 +10:00
Angus Gratton
8cbd12b9b7
heap: When verifying & swapping a fill pattern, stop swapping if verification fails
...
Avoids situation where data has been overwritten during any post-mortem analysis
(core dump, gdbstub, etc).
As reported via forum https://esp32.com/viewtopic.php?f=2&t=6471&p=27790
2018-07-31 14:53:24 +10:00
Angus Gratton
ae59d7522a
heap: heap_caps_malloc(..., MALLOC_CAP_32_BIT) should always align a 32-bit aligned size
...
Fixes crash in heap poisoning code if a non-32bit-aligned size is specified.
2018-07-31 14:29:31 +10:00
zhiweijian
feef9b9387
Component/bt: fix gattc get count invalid
2018-07-31 02:36:46 +00:00
Ivan Grokhotkov
9d2f7c60d9
Merge branch 'bugfix/rmt_struct_bad_addressing' into 'master'
...
removed possible uint16 access to 32bit register, noted fifo use not recommended
See merge request idf/esp-idf!2821
2018-07-31 04:01:46 +08:00
Ivan Grokhotkov
43baa7f2b9
Merge branch 'feature/cermak_asio_support' into 'master'
...
asio component and examples in esp-idf
See merge request idf/esp-idf!2509
2018-07-31 03:59:28 +08:00
Jiang Jiang Jian
fd05dd206f
Merge branch 'bugfix/btdm_sco_end_crash_on_supv_to' into 'master'
...
bugfix/btdm_sco_end_crash_on_supv_to
See merge request idf/esp-idf!2737
2018-07-30 22:14:07 +08:00
Angus Gratton
bba047fb3e
Merge branch 'bugfix/heap_metadata_tests' into 'master'
...
heap: Fix heap metadata test to account for background memory allocations
See merge request idf/esp-idf!2872
2018-07-30 14:30:59 +08:00
David Cermak
1ef13c524c
asio: initial idf port of asio library without ssl
2018-07-30 06:28:43 +00:00
David Cermak
eee34ddd91
lwip fix for udp receivefrom
2018-07-30 06:28:43 +00:00
Ivan Grokhotkov
5b9feaa1fd
mbedtls: update to 2.12.0
2018-07-30 09:11:16 +03:00
Noble-Mushtak
dbd429af1b
Changed value of BTM_OOB_INCLUDED to TRUE
...
Merges https://github.com/espressif/esp-idf/pull/2206
2018-07-30 08:53:01 +03:00
Angus Gratton
97286b3107
Merge branch 'feature/cmd_flash_reset_ota_data' into 'master'
...
make: Add feature to cmd 'make flash' - reset ota_data partition
See merge request idf/esp-idf!2611
2018-07-30 13:52:43 +08:00
Mahavir Jain
02ddb7302e
wpa_supplicant: removed unrequired header dir include from component.mk
...
- Also fixed license header in rtc driver
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-07-30 11:17:11 +05:30
Mahavir Jain
b79fefa011
bluedroid: remove dependency on arpa/inet.h
include
...
Signed-off-by: Mahavir Jain <mahavir@espressif.com>
2018-07-30 11:16:38 +05:30
Angus Gratton
bfc6bb97c0
heap: Fix heap metadata test to account for background memory allocations
2018-07-30 11:41:30 +10:00
Jiang Jiang Jian
1ad4ec10b2
Merge branch 'bugfix/add_compatible_to_aes_encryption' into 'master'
...
Wifi: add compatible to ccmp encryption
See merge request idf/esp-idf!2802
2018-07-27 10:14:33 +08:00
wangmengyang
a23f857452
component/bt: bugfix on the crash during end of sco link resulted from link supervision timeout
2018-07-26 14:41:25 +08:00
Jiang Jiang Jian
8d5ec413d5
Merge branch 'bugfix/tw23404_dhcp_NAK_issue_3' into 'master'
...
modify the timers
See merge request idf/esp-idf!2798
2018-07-26 14:06:12 +08:00
Angus Gratton
cf593e84d3
Merge branch 'bugfix/spiffs_readdir_recursion' into 'master'
...
SPIFFS: fix stack overflow in readdir_r due to recursion
See merge request idf/esp-idf!2839
2018-07-26 08:33:24 +08:00
Jiang Jiang Jian
b3dd6ff9fc
Merge branch 'bugfix/btdm_controller_deinit' into 'master'
...
bt : fix bug that bluetooth controller init/disable/enable/disable may cause exception
See merge request idf/esp-idf!2800
2018-07-25 21:00:35 +08:00
Konstantin Kondrashov
de2b1cb02a
make: Add feature to cmd 'make flash' - reset ota_data partition
...
Add a command `make erase_ota` - erases otadata if it there is in the
partition table otherwise error 'Partition table does not have ota_data partition'.
Closes https://github.com/espressif/esp-idf/issues/1821
2018-07-25 11:22:15 +00:00
Ivan Grokhotkov
9a2583122c
heap/tests: make IRAM allocation size divisible by 4
...
heap_caps_malloc will fail to poison a block in IRAM with size not
divisible by 4. The proper fix will be to make poisoning code
smarter, or to disallow allocations from IRAM with size not aligned
by 4.
2018-07-25 09:45:39 +03:00
Angus Gratton
4f2fe93bc1
Merge branch 'feature/idf-fs-profile-modifications' into 'master'
...
IDF fs profiling tool modifications
See merge request idf/esp-idf!2705
2018-07-25 08:56:04 +08:00
Angus Gratton
21f327060b
Merge branch 'bugfix/host_tools_warnings' into 'master'
...
Fix host tools warnings
See merge request idf/esp-idf!2729
2018-07-25 08:55:29 +08:00
Ivan Grokhotkov
caeab09f65
Merge branch 'bugfix/src_encoding' into 'master'
...
Correct source code encoding
See merge request idf/esp-idf!2820
2018-07-24 22:03:46 +08:00
Ivan Grokhotkov
d50c03cc7d
Merge branch 'bugfix/unit-test-build-fix' into 'master'
...
unit-test-app: don’t include project.mk for ut- targets
See merge request idf/esp-idf!2619
2018-07-24 20:48:12 +08:00
Ivan Grokhotkov
f3260cc30f
test/uart: fix compilation warning
2018-07-24 09:56:40 +03:00
Ivan Grokhotkov
a981e73e22
heap: move get_all_caps to IRAM, used in unit test
2018-07-24 09:56:40 +03:00
Ivan Grokhotkov
964087b7c8
freertos: bump limit for spinlock performance test to 300 cycles
2018-07-24 09:56:40 +03:00
Ivan Grokhotkov
81ce7e4afa
newlib: fix unit test for psram config
2018-07-24 09:56:40 +03:00
Ivan Grokhotkov
7a154d6a4e
heap: fix unit test for the case when less than 10k of IRAM is available
2018-07-24 09:56:40 +03:00
Ivan Grokhotkov
253930acd1
spi_master, ulp: fix aliasing errors in unit tests
2018-07-24 09:54:55 +03:00
Angus Gratton
28787ad392
Merge branch 'bugfix/bootloader_dev_zero_app_count' into 'master'
...
bootloader: Fix issue - bs->app_count is zero but ota_data have valid entry
See merge request idf/esp-idf!2842
2018-07-24 14:41:05 +08:00
Renz Bagaporo
8ce14d0406
console: Suppress unused warning asprintf result
2018-07-24 06:08:48 +00:00
Renz Bagaporo
4355eb1bc2
console: Ignore var cloberred warning for argtable
2018-07-24 06:08:48 +00:00
Renz Bagaporo
d31b31787c
spiffs: Explicitly indicate unused value
2018-07-24 06:08:48 +00:00
Angus Gratton
beb3611ca3
Merge branch 'bugfix/fix_pcnt_isr_service_register_bug' into 'master'
...
driver(pcnt): fix the pcnt isr service can not be re registered bug.
See merge request idf/esp-idf!2439
2018-07-24 13:49:45 +08:00
Angus Gratton
002bf37f14
Merge branch 'bugfix/unit_test_thread_local_storage' into 'master'
...
ci/esp32: Fix race in "TLS Test" where s_task can go out of scope before cleanup finishes
See merge request idf/esp-idf!2794
2018-07-24 13:43:41 +08:00
Konstantin Kondrashov
8c808c2d9a
bootloader: Fix issue - bs->app_count is zero but ota_data have valid entry
...
If we have the partition table without any ota_apps but in ota_data have
valide entry, in this case we get an error(hang). This commit fix this
case. If bs->app_count is zero when selecting the factory app.
Closes https://github.com/espressif/esp-idf/issues/2218
2018-07-24 13:09:32 +08:00
kooho
01516abe5a
Add some comments in pcnt.h.
2018-07-24 10:33:58 +08:00
Ivan Grokhotkov
baa4613fc1
Merge branch 'bugfix/fix_touchpad_wakeup_status' into 'master'
...
fix(sleep): swap touchpad num in wakeup status
See merge request idf/esp-idf!2708
2018-07-24 04:08:43 +08:00
Ivan Grokhotkov
15b22e5aa5
spiffs: add test case for readdir_r with large number of files
...
Ref. https://esp32.com/viewtopic.php?f=13&t=6486
2018-07-23 15:34:18 +03:00
Angus Gratton
0905aa0103
Merge branch 'bugfix/bootloader_include_priv' into 'master'
...
bootloader_support: Rename include_priv directory to include_bootloader
See merge request idf/esp-idf!2686
2018-07-23 18:50:35 +08:00
Angus Gratton
b5db59ec31
Merge branch 'bugfix/http_client_enhanced' into 'master'
...
esp_http_client: Resolve some bugs from the github community
See merge request idf/esp-idf!2831
2018-07-23 17:55:49 +08:00
Angus Gratton
fbec7de7f8
bootloader_support: Rename include_priv directory to include_bootloader
...
Old rationale for "priv" no longer applies.
As reported here: https://esp32.com/viewtopic.php?f=13&t=6155&p=27151#p26601
2018-07-23 15:58:27 +10:00
David Cermak
409c91bcb9
removed possible uint16 access to 32bit register, noted fifo use not recommended
2018-07-23 07:57:18 +02:00
Renz Bagaporo
70e68c99d3
Modifications for fs profiling tool
2018-07-23 05:24:33 +00:00
Tuan PM
6ef558320a
esp_http_client: Resolve some bugs from the github community
...
- Closes https://github.com/espressif/esp-idf/issues/2135
- Closes https://github.com/espressif/esp-idf/issues/2208
- Closes https://github.com/espressif/esp-idf/issues/2213
2018-07-23 12:22:19 +07:00
Angus Gratton
5f2f84c220
Merge branch 'feature/http_server_finalize' into 'master'
...
Feature add HTTP Web Server component
See merge request idf/esp-idf!2606
2018-07-23 13:11:04 +08:00
Angus Gratton
cf614120a5
Merge branch 'bugfix/reclaim_bt_ble_bss' into 'master'
...
components/bt: Reclaim BT/BTDM BSS in bluetooth memory release function
See merge request idf/esp-idf!2750
2018-07-23 12:48:13 +08:00
Angus Gratton
e75a1129e0
Merge branch 'bugfix/bootloader_noreturn_always' into 'master'
...
bootloader: Ensure bootloader never returns to caller
See merge request idf/esp-idf!2815
2018-07-23 11:56:14 +08:00
Angus Gratton
b6a7458e14
esp32 tests: TLS test: use same size stack for static & non-static task
...
Use constant instead of magic number of task priorities.
2018-07-23 03:54:44 +00:00
Angus Gratton
7313f3f925
esp32: Fix race in "TLS Test" where s_task can go out of scope before cleanup finishes
...
Probable cause for CI failures of "LoadStoreError" after this task finishes running.
2018-07-23 03:54:44 +00:00
Angus Gratton
ae24c13da2
Merge branch 'bugfix/secure_boot_padding' into 'master'
...
secure boot: Fix padding issue allowing unverified data to be mapped into the address space
See merge request idf/esp-idf!2778
2018-07-23 11:44:50 +08:00
Anton Maklakov
ea1a99bcb9
Merge branch 'cermak_fuzzer_ci_job' into 'master'
...
added CI job for AFL fuzzer tests
See merge request idf/esp-idf!2537
2018-07-23 09:41:10 +08:00
Deng Xin
faede72435
Wifi: add compatible to ccmp encryption
2018-07-21 14:37:27 +08:00
Jiang Jiang Jian
8892174383
Merge branch 'bugfix/coex_pause' into 'master'
...
fix coex pause cause bluetooth performance decrease
See merge request idf/esp-idf!2741
2018-07-21 14:22:09 +08:00
Konstantin Klitenik
3486b51388
Fix stackoverflow due to recursion in vfs_spiffs_readdir_r
2018-07-20 10:27:53 -04:00
Ivan Grokhotkov
0e3694b542
Merge branch 'feature/freertos_vtasklist_xcoreid' into 'master'
...
freertos: Add option to display xCoreID in vTaskList
See merge request idf/esp-idf!2728
2018-07-20 18:46:41 +08:00
Anurg Kar
656bef7bb7
Http Server : Add a simple light weight HTTP Server Component.
...
Also add examples, docs and test apps for the HTTP Server.
2018-07-20 15:49:17 +05:30
David Cermak
0c147648f7
added CI job for AFL fuzzer tests
2018-07-20 10:28:12 +02:00
Tian Hao
6e4342a877
bt : fix bug that bluetooth controller init/disable/enable/disable may cause exception
...
1. when one task do deinit/init/disable/enable, especially different cpu
core, it may cause controller crash in ISR handler
2. fix while BLE is scanning, bluetooth controller is disabled cause BLE
scan is not abort.
2018-07-20 14:10:55 +08:00
Hrishikesh Dhayagude
f610249bdd
Reclaim BT/BTDM BSS and Data in bluetooth memory release function
...
1. Modify esp_bt_controller_mem_release() to release BTDM BSS and Data to heap if
ESP_BT_MODE_BTDM mode is passed to it
2. Add a new API esp_bt_mem_release() which internally calls
esp_bt_controller_mem_release() with the provided mode and then if mode
is ESP_BT_MODE_BTDM, releases BT BSS and Data to heap.
Background:
For Wi-Fi and BT/BLE applications, for e.g. the usecase is like when
Bluetooth is used for provisioning and once the device is connected to the Wi-Fi
AP, we can turn off Bluetooth completely. In such scenarios, it should be possible to
reclaim all the memory of Bluetooth. Although, currently this does not
happen.
Experiment:
Made the following modifications to examples/bluetooth/gatt_server :
1. Added support of simple_wifi to it
2. Moved all the bluetooth related code under CONFIG_BT_ENABLED config
option
3. Calculated the free heap in 2 similar scenarios:
i. Disabled BT (CONFIG_BT_ENABLED undefined) and checked the free
heap after STA connected
ii. Kept BT enabled and disabled it after STA connected and checked
the free heap
Ideally, the numbers for i., ii. above should have been similar. But
there was a delta of almost 30-31K. (i. > ii.)
4. Through make size-components checked the common BSS for libbta.a and libbtdm_app.a
and found it to be almost 30K. Data is around 1K
Solution:
1. Modified the linker script to mark the BSS and Data for these libraries and
free it when ESP_BT_MODE_BTDM mode is passed to mem release APIs.
2. Verified that the free heap is comparable for i. and ii. above.
Note: It is known that once this is done, Bluetooth can only be used
again post reboot.
Signed-off-by: Hrishikesh Dhayagude <hrishi@espressif.com>
2018-07-20 11:33:26 +05:30
Jiang Jiang Jian
e4fb359c34
Merge branch 'bugfix/btdm_bt_remove_device_fail_when_ble_connected' into 'master'
...
component/bt: Fix bug of remove bond device fail when BLE and BT are connectd at the same time
See merge request idf/esp-idf!2767
2018-07-20 10:46:31 +08:00
Angus Gratton
45275ab189
Merge branch 'feature/nvs_multipage_blob' into 'master'
...
nvs-flash: Support for blobs larger than half of SPI Flash sector size
See merge request idf/esp-idf!2182
2018-07-20 09:13:34 +08:00
Sagar Bijwe
5a27a63541
nvs-flash: Support for blobs larger than half of SPI Flash sector size
...
This change removes the earlier limitation of 1984 bytes for storing data-blobs.
Blobs larger than the sector size are split and stored on multiple sectors.
For this purpose, two new datatypes (multi-page index and multi-page data) are
added for entries stored in the sectors. The underlying read, write, erase and find
operations are modified to support these large blobs. The change is transparent
to users of the library and no special APIs need to be used to store these large
blobs.
2018-07-20 00:13:15 +05:30
Roland Dobai
0efb4a11ec
Correct source code encoding
2018-07-19 14:00:44 +02:00
Ivan Grokhotkov
fec079cd44
Merge branch 'bugfix/rtc_io_hold_regs' into 'master'
...
Fix errors in rtc_gpio_desc values
See merge request idf/esp-idf!2765
2018-07-19 15:04:42 +08:00
Angus Gratton
f0d74b1c64
bootloader: Ensure bootloader never returns to caller
...
* Fixes some "noreturn" functions in bootloader utils which did return (causing fatal CPU
exceptions).
* Marks bootloader entry as "noreturn", preventing "user code done" from stalling boot
Partial fix for https://github.com/espressif/esp-idf/issues/1814 TW20016
(Comprehensive fix for this issue will be enabling WDT during bootloader, coming shortly.)
2018-07-19 16:24:11 +10:00
Wang Jia Lin
de907e8801
Merge branch 'bugfix/rmt_mem_num_maximum_limit_is_not_accurate' into 'master'
...
bugfix(rmt): Modify the rmt_mem_num maximum limit value from 15 to 8.
See merge request idf/esp-idf!2734
2018-07-18 16:15:14 +08:00
Ivan Grokhotkov
c46b8178f2
Merge branch 'bugfix/sdmmc_auto_stop_cmd' into 'master'
...
sdmmc: enable host auto_stop only for certain commands
See merge request idf/esp-idf!2710
2018-07-18 14:55:45 +08:00
Ivan Grokhotkov
0b78959070
Merge branch 'bugfix/deep_sleep_flush_uart' into 'master'
...
sleep: fix flushing UARTs when entering deep sleep
See merge request idf/esp-idf!2698
2018-07-18 14:55:13 +08:00
Jiang Jiang Jian
d62293165b
Merge branch 'bugfix/btdm_using_osi_malloc_instead_of_malloc' into 'master'
...
component/bt: Using osi_malloc instead of malloc
See merge request idf/esp-idf!2748
2018-07-18 11:09:28 +08:00
Angus Gratton
aa4d77467b
Merge branch 'bugfix/esp_err_ignore_dirs' into 'master'
...
esp32: Do not document error codes defined in examples
See merge request idf/esp-idf!2732
2018-07-18 08:29:53 +08:00
Tian Hao
cf14826100
fix coex pause cause bluetooth performance decrease
...
1. it may cause BLE connection unstable
2. it may cause Classic BT connection unstable
3. it may cause BLE/BREDR scan performance decrease
2018-07-17 21:06:57 +08:00
Jiang Jiang Jian
603ce05376
Merge branch 'bugfix/ampdu_duplicate' into 'master'
...
wifi: fix ampdu duplicate issue
See merge request idf/esp-idf!2742
2018-07-17 20:45:45 +08:00
fuzhibo
54a67d92a4
fix(sleep): swap touchpad num in wakeup status
2018-07-17 20:25:06 +08:00
Ivan Grokhotkov
5376a06d7b
Merge branch 'bugfix/range_CONFIG_ESP32_RTC_CLK_CAL_CYCLES' into 'master'
...
soc/clk: Fix range CONFIG_ESP32_RTC_CLK_CAL_CYCLES
See merge request idf/esp-idf!2719
2018-07-17 19:43:11 +08:00
Ivan Grokhotkov
cffaa9f5b5
freertos: add configTASKLIST_INCLUDE_COREID
2018-07-17 10:57:26 +00:00
Dave McNaughton
0fb1945482
Added: display xCoreID in vTaskList
...
Merges https://github.com/espressif/esp-idf/pull/2064
2018-07-17 10:57:26 +00:00
Ivan Grokhotkov
ea452920bb
Merge branch 'bugfix/time_ut_wakeup_from_deep_sleep' into 'master'
...
esp32/test: Reduces a unit test execution time
See merge request idf/esp-idf!2776
2018-07-17 18:39:15 +08:00
zhangyanjiao
d90f8c06c2
changes for timers
2018-07-17 16:46:53 +08:00