Commit Graph

10028 Commits

Author SHA1 Message Date
baohongde
628655b6be components/coex: Some bugfix about ble dynamic prio
Rewrite ble dynamic prio to fix ble disconn in conn_param_update/channel_map_update
Rewrite ble dynamic prio in connection establishment
Fix ble dynamic prio with latency
Fix status bit set error when conn fail
2020-09-29 21:08:13 +08:00
Jiang Jiang Jian
07499cc898 Merge branch 'feature/8021x_sha256_akm_support' into 'master'
esp_wifi: Add support for 802.1x sha256 auth key mode

Closes WIFI-2773

See merge request espressif/esp-idf!10412
2020-09-29 20:45:12 +08:00
Renz Bagaporo
04c67e83f3 esp_pm: temporarily disable failing test 2020-09-29 18:35:47 +08:00
kapil.gupta
ebc0b42c75 esp_wifi: Add support for 802.1x sha256 auth key mode
Closes https://github.com/espressif/esp-idf/issues/5805
2020-09-29 15:23:39 +05:30
mathiasbredholt
8a102926f8 lwip: Changed to C linkage for fixing bug when using mixed C/C++ code
Merges https://github.com/espressif/esp-idf/pull/5900
2020-09-29 11:47:32 +02:00
Jiang Jiang Jian
96d59ff3e9 Merge branch 'bugfix/fix_bredr_read_rssi_delta' into 'master'
Bugfix/Fix Read Rssi Delta Bug in Bredr

Closes IDFGH-3739

See merge request espressif/esp-idf!10574
2020-09-29 16:47:43 +08:00
Michael (XIAO Xufeng)
f4aacbef9b Merge branch 'feature/support_access_internal_i2c_register' into 'master'
feature(rtc): add new APIs support access internal i2c register

See merge request espressif/esp-idf!10039
2020-09-29 08:08:51 +08:00
Island
a46ab4ae84 Merge branch 'bugfix/channel_map_send_time' into 'master'
component/bt: Insert the llcp packet to the top of the tx_preg linked list.

Closes BT-993

See merge request espressif/esp-idf!10170
2020-09-28 21:49:48 +08:00
Mahavir Jain
79f52a0658 Merge branch 'fix/mbedtls_target_library_link' into 'master'
mbedtls: Fixed target library linking when using the DS peripheral

See merge request espressif/esp-idf!10650
2020-09-28 20:35:30 +08:00
Michael (XIAO Xufeng)
c449a0efe2 Merge branch 'bugfix/gdma_ll_tx_fifo' into 'master'
gdma: fix incorrect calculation of tx fifo size

See merge request espressif/esp-idf!10610
2020-09-28 15:51:25 +08:00
Jiang Jiang Jian
1dc850b95b Merge branch 'bugfix/update_esp32_phy_v4500' into 'master'
esp_wifi: update esp32 phy v4500

See merge request espressif/esp-idf!10621
2020-09-28 15:44:47 +08:00
Michael (XIAO Xufeng)
4e781d1263 Merge branch 'bugfix/flash_clear_WEL_rom_patch' into 'master'
spi_flash: ROM patch for clearing WEL bit for unlock

See merge request espressif/esp-idf!10540
2020-09-28 15:36:19 +08:00
Aditya Patwardhan
db3cbf91f9 mbedtls: Fixed target library linking when using the DS peripheral 2020-09-28 12:58:54 +05:30
Jiang Jiang Jian
caba103d51 Merge branch 'bugfix/add_clear_bond_complete_evt' into 'master'
componenet_bt/bugfix: add remove bond device complete event

Closes BT-1013

See merge request espressif/esp-idf!10342
2020-09-28 14:39:40 +08:00
Cao Sen Miao
f448e97fea flash:patch for clearing WEL in ROM 2020-09-28 12:53:06 +08:00
ChenJianxing
f3813c9062 esp_wifi: update esp32 phy v4500
improve frequence offset feature.
2020-09-28 11:42:05 +08:00
Michael (XIAO Xufeng)
c7264f04c6 Merge branch 'bugfix/fix_incorrect_i2s_pdm_clk_issue' into 'master'
Bugfix(I2S):  Fix I2S PDM clock incorrect issue when using APLL.

Closes IDFGH-3423 and IDFGH-3106

See merge request espressif/esp-idf!9101
2020-09-28 11:35:31 +08:00
Michael (XIAO Xufeng)
60fb1a6ef3 Merge branch 'bugfix/spi_add_flash' into 'master'
spi_flash: fix a logic bug in checking ex_flash and psram

Closes IDFGH-2230

See merge request espressif/esp-idf!10009
2020-09-28 10:47:07 +08:00
Jiang Jiang Jian
b963dd3b32 Merge branch 'bugfix/no_event_for_connect' into 'master'
esp_wifi: fix the bug that no event when run connect twice

Closes WIFI-2390

See merge request espressif/esp-idf!10515
2020-09-27 23:16:49 +08:00
Jiang Jiang Jian
07f7ae7df0 Merge branch 'bugfix/bredr_bugfix_release_for_qa_dummy_disconnect' into 'master'
component_bt/bugfix: fix a2dp test case dummy and disconnect

Closes BT-706

See merge request espressif/esp-idf!10184
2020-09-27 21:15:43 +08:00
baohongde
acce9e5fea components/bt: Replace task post with btc_inter_profile_call, when post message from btc_dm to btc_gap 2020-09-27 19:55:12 +08:00
baohongde
dac798afbb components/bt: Fix crash in BTM_SetPowerMode after disconnect
Introduced by commit 0583a049
2020-09-27 19:55:12 +08:00
baohongde
ecd75ec652 components/bt: Fix clear bond fail when connected without ble included 2020-09-27 19:55:12 +08:00
xiongweichao
4e4c86b267 add remove bond device complete event 2020-09-27 19:55:12 +08:00
Jiang Jiang Jian
0739cab478 Merge branch 'feature/add_tx_done_cb_api' into 'master'
wifi: Add support to register tx_done callback

Closes WIFI-2599

See merge request espressif/esp-idf!9727
2020-09-27 12:44:35 +08:00
fuzhibo
247789bb2e rtc: support access internal i2c register 2020-09-27 12:12:17 +08:00
liqigan
ba51da8c91 1. fix read rssi delta bug in bredr
2. modify read rssi related function names

Closes https://github.com/espressif/esp-idf/issues/5660
2020-09-27 10:44:18 +08:00
Angus Gratton
e95c8c1d66 Merge branch 'feature/esptool_allow_no_stub' into 'master'
Allow esptool's download stub to be disabled by other options and applications

See merge request espressif/esp-idf!10114
2020-09-26 01:25:53 +08:00
Yorick van Pelt
65707cfb41 esp_eth_mac_esp32: optionally setup SMI GPIO's
This enables passing smi_mdio_gpio_num = -1 to disable that signal

Merges https://github.com/espressif/esp-idf/pull/5903
2020-09-25 19:59:41 +08:00
wangcheng
8ddbadafe7 component/bt: Insert the llcp packet to the top of the tx_preg linked list. 2020-09-25 18:27:10 +08:00
Marius Vikhammer
4d57a5c2c7 gdma: fix incorrect calculation of tx fifo size 2020-09-25 16:15:56 +08:00
Renz Bagaporo
17b2d7864e esp32s3: move s3 pm to esp_pm 2020-09-25 05:24:10 +00:00
Renz Bagaporo
fb749440fd esp_pm: create pm init function 2020-09-25 05:24:10 +00:00
Renz Bagaporo
f33f49331f ci: update configs to include/exclude esp_pm in unit test 2020-09-25 05:24:10 +00:00
Renz Bagaporo
6462f9bfe1 esp32, esp32s2: create esp_pm component 2020-09-25 05:24:10 +00:00
Island
87bc33f7df Merge branch 'optimize/ble_mesh_provisioner_delete_dev' into 'master'
ble_mesh: stack: Optimize Provisioner delete device function

See merge request espressif/esp-idf!10557
2020-09-25 11:52:31 +08:00
xiongweichao
b0c4988d69 1.revert dummy command
2.fix send MEDIA_CTRL command in disconnect
2020-09-25 11:14:24 +08:00
xiongweichao
84cacaba51 1.fix test case dummy
2.fix sink send media control ESP_A2D_MEDIA_CHECK_SRC_RDY
2020-09-25 10:54:13 +08:00
Cao Sen Miao
4ce8b59016 spi_flash: fix initialization failure when ex_flash with psram on
non-SPI1 bus.

Close https://github.com/espressif/esp-idf/issues/4379
2020-09-25 10:22:24 +08:00
Hrudaynath Dhabe
8746d3726b wifi: Add IDF specific changes to add support for registering tx_done callback 2020-09-24 18:39:04 +05:30
Marius Vikhammer
3c14900a95 RSA: add max RSA bit len as a soc caps 2020-09-24 16:52:50 +08:00
Krzysztof Budzynski
b07a60c0b8 Merge branch 'docs/update_rtc_clock_source_description_in_api_references' into 'master'
docs: update the description for RTC Clock Sources for esp32 and esp32s2

Closes DOC-530

See merge request espressif/esp-idf!10577
2020-09-24 15:31:53 +08:00
zhangyanjiao
7b10cbfaaa esp_wifi: fix the bug that no event when run connect twice 2020-09-24 14:40:41 +08:00
lly
2607662054 ble_mesh: stack: Optimize Provisioner delete device function
Since we have provided separate functions for deleting node
information with node's unicast address, device uuid, etc.
So we update the behavior of this function, which will only
be used to delete device information which is not provisioned
or just under provisioning.
2020-09-24 06:29:22 +00:00
Jiang Jiang Jian
e093eb064c Merge branch 'feature/run_esp32c3_code_on_esp32_and_esp32s2' into 'master'
Feature/run esp32c3 code on esp32 and esp32s2

See merge request espressif/esp-idf!10213
2020-09-24 13:27:47 +08:00
Armando
1e1beb69aa spi: fix build fail issue when target is esp32s3 2020-09-24 10:51:23 +08:00
Xia Xiaotian
bdbe74693f esp_wifi: refactor wifi code in order to adapter to new chips 2020-09-24 10:15:50 +08:00
Ivan Grokhotkov
4f6fe91c3d Merge branch 'bugfix/nvs_correct_namespaces' into 'master'
NVS: put wild functions into namespace

See merge request espressif/esp-idf!10514
2020-09-23 22:11:36 +08:00
Jiang Jiang Jian
b626e306da Merge branch 'bugfix/can_mmap_after_get_enough_free_mmu_pages' into 'master'
flash_mmap: can mmap after get enough free MMU pages

Closes IDFCI-49 and IDFCI-84

See merge request espressif/esp-idf!9728
2020-09-23 21:03:53 +08:00
Mahavir Jain
4a3b5b73a8 Merge branch 'feature/esp_ds_sw_support' into 'master'
Added support for  RSA  sign using DS peripheral (only for ESP32-S2)

Closes IDF-1626

See merge request espressif/esp-idf!9477
2020-09-23 20:39:04 +08:00
Wang Fang
a50966cf7a docs: update the description for RTC Clock Sources for esp32 and esp32s2 2020-09-23 17:13:19 +08:00
Michael (XIAO Xufeng)
4b95f7efa8 Merge branch 'feature/spi_dma_hal_ll_refactor' into 'master'
spi: refactor DMA ll layer functions

Closes IDFGH-3538 and IDFGH-2555

See merge request espressif/esp-idf!9929
2020-09-23 15:32:41 +08:00
Michael (XIAO Xufeng)
3c2f2aaffe Merge branch 'docs/spi_flash_readme_update' into 'master'
hal: Update readme aftering extracting hal document from soc document

See merge request espressif/esp-idf!10453
2020-09-23 13:33:08 +08:00
Cao Sen Miao
5baf124219 docs: update readme aftering extracting hal document from soc document 2020-09-23 11:47:23 +08:00
Renz Bagaporo
6d7606aee5 soc: remove unecessary compile line include dir orderding control 2020-09-23 02:53:03 +00:00
Renz Bagaporo
7f5893d53c soc: move dac_hal to hal 2020-09-23 02:53:03 +00:00
Renz Bagaporo
01d9aa8070 soc: move mpu_hal test to hal component 2020-09-23 02:53:03 +00:00
Renz Bagaporo
2bcf99527c soc: move out rtc_hal to hal component 2020-09-23 02:53:03 +00:00
Aditya Patwardhan
91b88acaec tcp_transport: Added required API to support Digital Signature for SSL 2020-09-22 18:31:31 +05:30
Aditya Patwardhan
47f7c6a991 esp32s2/esp_ds: Digital Signature software support
1)Added support for alt rsa sign implementation with DS peripheral (
through ESP-TLS - mbedTLS SSL/TLS stack)
2020-09-22 18:31:31 +05:30
morris
0bb21281ca esp32s3: select esp32s3 beta version in menuconfig 2020-09-22 15:15:03 +08:00
morris
9fa06719fa global: enable build uinit test for esp32-s3 2020-09-22 15:15:03 +08:00
Marius Vikhammer
bff0016eb8 crypto accelerator support on esp32s3
SHA: passing unit tests
RSA: pass tests
AES: tests passing
2020-09-22 15:15:03 +08:00
morris
cc66334014 esp_timer: initial support on esp32-s3 2020-09-22 15:15:03 +08:00
morris
75a372a9f0 unit_test: support reference clock, test delay function 2020-09-22 15:15:03 +08:00
morris
e90dbe29cb esp32s3: run on chip 2020-09-22 15:15:03 +08:00
jiangguangming
28145e0894 support flash instr and rodata copy to SPIRAM 2020-09-22 15:15:03 +08:00
morris
61f89b97c6 bringup esp32-s3 on FPGA 2020-09-22 15:15:03 +08:00
Cao Sen Miao
d7e50c6457 spi_flash:bringup some flash supports for esp32s3 2020-09-22 15:15:03 +08:00
chenjianqiang
f19cabb7e4 psram: support psram for esp32s3 2020-09-22 15:15:03 +08:00
morris
6225932201 bootloader_support: add esp32-s3 initial support 2020-09-22 15:15:03 +08:00
Xia Xiaotian
2e0c60461c esp_wifi: refactor PHY access
- Simplify PHY access API
- Move coexist initializing and deinitializing out from PHY API
  to Wi-Fi and Bluetooth
- Remove coexist pause and resume for they are no longer needed.
2020-09-22 15:00:05 +08:00
Jiang Jiang Jian
b845bb5787 Merge branch 'bugfix/ipv6_send_data_error_when_src_ip_miss' into 'master'
lw-ip:ipv6 send multicast data fail when src address is null

Closes WIFI-2489

See merge request espressif/esp-idf!9716
2020-09-22 14:19:31 +08:00
Jiang Jiang Jian
cfc4be0f06 Merge branch 'bugfix/confirmed_bugfix_from_baidu_proj' into 'master'
component_bt/bugfix: Confirmed bugfix from Baidu project

See merge request espressif/esp-idf!10450
2020-09-22 11:38:29 +08:00
Jiang Jiang Jian
c2c6c24e35 Merge branch 'bugfix/wifi_spin_lock_allocation_in_PSRAM' into 'master'
wifi: Fix spin lock allocation in PSRAM bug

See merge request espressif/esp-idf!10449
2020-09-22 11:36:54 +08:00
Island
0ba0c3a01d Merge branch 'bugfix/ble_mesh_node_deinit' into 'master'
ble_mesh: stack: Persistent storage misc fixes

See merge request espressif/esp-idf!9467
2020-09-22 10:08:03 +08:00
Ivan Grokhotkov
58ab54979c Merge branch 'bugfix/efuse_test_stackoverflow' into 'master'
CI: Increase stack size for efuse unit test

See merge request espressif/esp-idf!10531
2020-09-21 21:58:15 +08:00
Armando
59e350b195 spi: seperate the pointer for the TX and RX DMA 2020-09-21 20:33:56 +08:00
Armando
27a6f2666a spi_master: refactor hal context structures
This commit seperates the hal context into different configuration
structures based on their members' definitions. Through refactoring
spi_master.c, the device related configuration should be passed in and
set each time before a new transaction. The transaction related
configuration now is a local variable in case of the fact that error
occurs without any notice when user forgets to pass new transaction
configuration in (which means the old driver will use the trans_config
that is saved from last transaction).

Besides, via above refactor, this commit fixs a bug which leads to
wrong cs polarity setting.
Closes https://github.com/espressif/esp-idf/pull/5490

Moreover, via above refactor, this commit also fixs a bug about duplex
mode switching when multiple devices are added to the bus.
Closes https://github.com/espressif/esp-idf/issues/4641
2020-09-21 20:32:41 +08:00
lly
e14868ff30 ble_mesh: stack: Persistent storage misc fixes
* Fix the issue that deinit node with "erase_flash"
  set to true, but info is not erased from nvs
* Reuse bt_mesh_cfg_reset() when deinit node
* Optimize Provisioner related erase operations
* No store pending timeout will be used when Node
  is not provisioned OR Provisioner is disabled
  and erase operation is performed
* Change the default timeout for settings operation
  to 0, and rpl store rate to 0
2020-09-21 11:46:52 +00:00
Ivan Grokhotkov
396dea51ba Merge branch 'bugfix/core_dump_regression' into 'master'
bugfix/esp_system: fix core_dump on flash regression by placing esp_system_abort back to IRAM

See merge request espressif/esp-idf!10522
2020-09-21 16:11:22 +08:00
Angus Gratton
033f49f974 Merge branch 'bugfix/cpp_header_rom_secure_boot' into 'master'
Secure Boot: Fixes the cpp macro in esp32 secure boot rom functions.

Closes IDFGH-3998

See merge request espressif/esp-idf!10528
2020-09-21 15:51:03 +08:00
jiangguangming
052f88f1d1 flash_mmap: restore interrupt and cache before err return 2020-09-21 07:37:50 +00:00
jiangguangming
61e341e791 flash_mmap: can mmap after get enough free MMU pages 2020-09-21 07:37:50 +00:00
Angus Gratton
5004812dd6 Merge branch 'bugfix/spiram_reserve_size_pr5373' into 'master'
SPIRAM reserved memory size fixes

Closes IDFGH-3407 and IDFGH-3931

See merge request espressif/esp-idf!9185
2020-09-21 12:27:00 +08:00
Marius Vikhammer
ae0931be06 CI: Increase stack size for efuse unit test
"Batch mode is thread-safe" case would occasionally cause a stackoverflow.
Increased stack size.
2020-09-21 12:23:14 +08:00
Angus Gratton
a381ecca6f Merge branch 'bugfix/cxx_exception_crash_test' into 'master'
Temporarily remove cxx exception frequent intr unit test

See merge request espressif/esp-idf!10426
2020-09-21 10:31:27 +08:00
Michael (XIAO Xufeng)
ea1eb495a5 Merge branch 'bugfix/spi_master_multiple_dev_with_diff_cs_lvl_master' into 'master'
spi_master: correctly set cs polarity

See merge request espressif/esp-idf!10265
2020-09-21 10:17:38 +08:00
Angus Gratton
95177d5f07 esp32s2 spiram: Fix unused variable warnings 2020-09-21 11:43:55 +10:00
Angus Gratton
d1b86720f1 esp32s2: Reduce calls to esp_spiram_get_size() when initializing PSRAM 2020-09-21 11:43:55 +10:00
Angus Gratton
3f034a5005 spiram: Add soc macro for SPIRAM address space size, use it where applicable
Reference https://github.com/espressif/esp-idf/pull/5373
2020-09-21 11:43:55 +10:00
negativekelvin
5eb5bb5f72 Fix reserved psram region
Closes https://github.com/espressif/esp-idf/pull/5373

Closes https://github.com/espressif/esp-idf/issues/5821
2020-09-21 11:39:54 +10:00
Jakob Hasse
6292d359f8 Removed C++ unit test
* Removed cxx exception frequent intr unit test
  It sometimes stalled by too frequent interrupts
  in some configurations, causing CI trouble.
* Opened Jira IDF-2144 for further investiation
2020-09-21 01:32:23 +00:00
Supreet Deshpande
0e940c80d4 Secure Boot: Fixes the cpp macro in esp32 secure boot rom functions.
Closes https://github.com/espressif/esp-idf/issues/5878
2020-09-20 22:50:44 +05:30
Michael (XIAO Xufeng)
3b2e8648eb bootloader: create public bootloader_flash.h header
Move non-public functions into bootloader_flash_priv.h header
2020-09-19 10:52:02 +08:00
Michael (XIAO Xufeng)
fefdee1349 bootloader: fix the WRSR format for ISSI flash chips
1. The 2nd bootloader always call `rom_spiflash_unlock()`, but never help to clear the WEL bit when exit. This may cause system unstability.

   This commit helps to clear WEL when flash configuration is done.

   **RISK:** When the app starts, it didn't have to clear the WEL before it actually write/erase. But now the very first write/erase operation should be done after a WEL clear. Though the risk is little (all the following write/erase also need to clear the WEL), we still have to test this carefully, especially for those functions used by the OTA.

2. The `rom_spiflash_unlock()` function in the patch of ESP32 may (1) trigger the QPI, (2) clear the QE or (3) fail to unlock the ISSI chips.

   Status register bitmap of ISSI chip and GD chip:

| SR | ISSI | GD25LQ32C |
| -- | ---- | --------- |
| 0  | WIP  | WIP       |
| 1  | WEL  | WEL       |
| 2  | BP0  | BP0       |
| 3  | BP1  | BP1       |
| 4  | BP2  | BP2       |
| 5  | BP3  | BP3       |
| 6  | QE   | BP4       |
| 7  | SRWD | SRP0      |
| 8  |      | SRP1      |
| 9  |      | QE        |
| 10 |      | SUS2      |
| 11 |      | LB1       |
| 12 |      | LB2       |
| 13 |      | LB3       |
| 14 |      | CMP       |
| 15 |      | SUS1      |

   QE bit of other chips are at the bit 9 of the status register (i.e. bit 1 of SR2), which should be read by RDSR2 command.

   However, the RDSR2 (35H, Read Status 2) command for chip of other vendors happens to be the QIOEN (Enter QPI mode) command of ISSI chips. When the `rom_spiflash_unlock()` function trys to read SR2, it may trigger the QPI of ISSI chips.

   Moreover, when `rom_spiflash_unlock()` try to clear the BP4 bit in the status register, QE (bit 6) of ISSI chip may be cleared by accident. Or if the ISSI chip doesn't accept WRSR command with argument of two bytes (since it only have status register of one byte), it may fail to clear the other protect bits (BP0~BP3) as expected.

   This commit makes the `rom_spiflash_unlock()` check whether the vendor is issi. if so, `rom_spiflash_unlock()` only send RDSR to read the status register, send WRSR with only 1 byte argument, and also avoid clearing the QE bit (bit 6).

3. `rom_spiflash_unlock()` always send WRSR command to clear protection bits even when there is no protection bit active. And the execution of clearing status registers, which takes about 700us, will also happen even when there's no bits cleared.

   This commit skips the clearing of status register if there is no protection bits active.

Also move the execute_flash_command to be a bootloader API; move
implementation of spi_flash_wrap_set to the bootloader
2020-09-19 10:51:51 +08:00
Felipe Neves
e8a276d641 esp_system: revert the esp_system_abort to the IRAM section 2020-09-18 22:18:30 -03:00
cnlohr
507c08251e esp_netif: Enable use of the ESP-IDF with a non-LWIP (and non-BSD-style) IP stack.
Note: besides the esp-netif component, this commit also disables
net_sockets.c from mbedtls, which is one of the base components and uses BSD API (not specifically lwIP). This might be refactored to use CONFIG_SUPPORT_BSD_API instead of CONFIG_ESP_NETIF_TCPIP_LWIP
in the future.
It also disables smartconfig_ack.c and wifi_init.c from esp_wifi
component for referencing some lwIP config options (smartconfig_ack.c changes might be also
updated to check CONFIG_SUPPORT_BSD_API)

Merges https://github.com/espressif/esp-idf/pull/5856
2020-09-18 15:10:55 +02:00
Jakob Hasse
0e118c6070 NVS: put wild functions into namespace 2020-09-18 15:38:40 +08:00
xueyunfei
8feadde2fa ipv6 send multicast data fail when src address is null 2020-09-18 14:24:14 +08:00