Commit Graph

8178 Commits

Author SHA1 Message Date
Zim Kalinowski
f3e40d21bb Merge branch 'feature/dis_uart_dl_mode_v4.0' into 'release/v4.0'
feature: Disable UART download mode (v4.0)

See merge request espressif/esp-idf!10766
2021-07-19 01:35:03 +00:00
Zim Kalinowski
308bbd1e89 Merge branch 'bugfix/link_gcov_rtio_backport_v4.0' into 'release/v4.0'
Bugfix/link gcov rtio backport v4.0

See merge request espressif/esp-idf!13847
2021-07-16 06:11:32 +00:00
Zim Kalinowski
02e9ca69bc Merge branch 'docs/spi_max_transfer_sz_limit_v4.0' into 'release/v4.0'
spi_docs: Fixed the default value of max_transfer_sz_limit (backport v4.0)

See merge request espressif/esp-idf!14255
2021-07-16 06:09:34 +00:00
Zim Kalinowski
d8c011428e Merge branch 'nimble/fix_broadcaster_role_v4.0' into 'release/v4.0'
NimBLE: Fix build error for broadcaster role and bug in peer_dev_record (v4.0)

See merge request espressif/esp-idf!14304
2021-07-16 06:07:58 +00:00
Angus Gratton
d9710a6498 flash encryption: In Release mode, set FLASH_CRYPT_CNT to max value
Compared to write disabling, this leaves possibility to burn
UART_DL_DIS efuse later.
2021-07-16 10:59:51 +10:00
Angus Gratton
5a4091a2c0 efuse: Add ESP32 V3 'disable Download Mode' functionality 2021-07-16 10:59:51 +10:00
Angus Gratton
363589e849 efuse: Add new esp_efuse_read_field_bit() convenience function 2021-07-16 10:59:51 +10:00
Angus Gratton
9ca02bd8ac efuse: Add new esp_efuse_write_field_bit() convenience function 2021-07-16 10:59:51 +10:00
Angus Gratton
814ff17256 efuse: Don't need to burn WR_CRYPT_CNT if CRYPT_CNT is already max
Reduces write cycles, and useful on ESP32 ECO3 as UART_DIS_DL is protected by
the same efuse.

Also fixes accidental macro definition introduced in 7635dce502
2021-07-16 10:59:51 +10:00
Angus Gratton
12704ae528 Merge branch 'origin/feature/prevent_unwind_code_linking_4.0' into 'release/v4.0'
[C++]: prevent unwind code linking (backport 4.0)

See merge request espressif/esp-idf!13806
2021-07-15 11:44:19 +00:00
Ivan Grokhotkov
68d417c4dc esp_ringbuf: don't test xRingbufferCreate with cache disabled
Creating a ringbuffer is not an operation that needs to be done when
the cache is disabled.
2021-07-13 18:52:53 +10:00
Renz Bagaporo
8de50b5655 components: fix ldgen check errors 2021-07-13 18:52:40 +10:00
Prasad Alatkar
817de5bee1 NimBLE: Fix build error for broadcaster role and bug in peer_dev_record (v4.0)
* Fix bug in nvs deletion of `ble_dev_record`.
* Update NimBLE submodule to nimble-1.1.0-idf
2021-07-13 13:56:03 +08:00
Mahavir Jain
190ef37994 Merge branch 'bugfix/pthread_join_debug_log_v4.0' into 'release/v4.0'
pthread: Fix possible deadlock when using pthread_join() and Debug log level (v4.0)

See merge request espressif/esp-idf!13779
2021-07-12 11:23:21 +00:00
Angus Gratton
2f1feb8ea1 driver test: Increase stack for the "spi poll tasks" test
Current stack usage gets very close to overflowing
2021-07-12 08:46:04 +08:00
Zim Kalinowski
eec2482ecf Merge branch 'feature/regi2c_add_lock_v4.0' into 'release/v4.0'
regi2c: add a spinlock for accessing (reg)I2C devices (v4.0)

See merge request espressif/esp-idf!13716
2021-07-09 07:33:19 +00:00
Michael (XIAO Xufeng)
84b149fcc5 spi_docs: Fixed the default value of max_transfer_sz.
(cherry picked from commit e89fabb963)
2021-07-05 14:20:34 +08:00
Michael (XIAO Xufeng)
911f432e82 Merge branch 'bugfix/spi_flash_cs_setup_v4.0' into 'release/v4.0'
spi_flash: fix cs line setup to make the flash driver more stable (v4.0)

See merge request espressif/esp-idf!13894
2021-07-03 06:05:02 +00:00
Michael (XIAO Xufeng)
8fc6c7d404 Merge branch 'bugfix/freemodbus_change_max_task_prio_v40' into 'release/v4.0'
Bugfix/freemodbus change max task prio (backport v4.0)

See merge request espressif/esp-idf!13720
2021-07-03 05:59:57 +00:00
Wang Meng Yang
4a181c7872 Merge branch 'bugfix/invalid_feat_page_exec_v4.0' into 'release/v4.0'
bt controller: Fixed handling for invalid feature page. (v4.0)

See merge request espressif/esp-idf!13574
2021-07-02 13:01:33 +00:00
David Čermák
d7967133c8 Merge branch 'bugfix/start_emac_after_phy_reset_v4.0' into 'release/v4.0'
esp_eth: restart negotiation in esp_eth_start (v4.0)

See merge request espressif/esp-idf!13704
2021-07-02 12:51:13 +00:00
Ivan Grokhotkov
0f47e6b189 Merge branch 'feature/portmux_debug_bump_timeout_v4.0' into 'release/v4.0'
bugfix/freertos: increase portmux timeouts to avoid crashing when using debug feature (v4.0)

See merge request espressif/esp-idf!13750
2021-07-02 12:31:51 +00:00
Mahavir Jain
7b994feb13 Merge branch 'bugfix/http_client_test_memcorupt_v4.0' into 'release/v4.0'
ci/test: Fix esp_http_client test not to use pointer after free (v4.0)

See merge request espressif/esp-idf!13703
2021-07-02 12:17:59 +00:00
Wang Meng Yang
06ee358a09 Merge branch 'bugfix/fix_data_length_callback_param_err_v4.0' into 'release/v4.0'
Fixed data length update callback parameters error (back port v4.0)

See merge request espressif/esp-idf!14183
2021-07-02 12:16:31 +00:00
Wang Meng Yang
783bf67cbd Merge branch 'bugfix/spp_connect_20_fail_v4.0' into 'release/v4.0'
component_bt: fix spp acceptor deadlock

See merge request espressif/esp-idf!14108
2021-07-02 12:15:26 +00:00
David Cermak
754a15890e ci/test: Fix esp_http_client test not to use pointer after free 2021-06-30 14:05:59 +02:00
zwj
16e5b25c98 - fix data length update failed
- fix no callback when the value being used is the same as the value to be set
2021-06-29 14:16:03 +08:00
Jiang Jiang Jian
7504329ef9 Merge branch 'bugfix/fix_amsdu_fragment_vulnerability_v4.0' into 'release/v4.0'
esp_wifi: fix amsdu & fragment vulnerabilities(v4.0)

See merge request espressif/esp-idf!14101
2021-06-25 11:45:15 +00:00
ChenJianxing
f3f1190959 esp_wifi: fix amsdu & fragment vulnerabilities 2021-06-24 22:39:13 +08:00
He Yin Ling
03fc307e21 versions: Update version to 4.0.3 2021-06-24 17:35:06 +08:00
xiongweichao
8a45db1a7a fix spp acceptor deadlock 2021-06-23 11:12:59 +08:00
wangjialiang
6ba3ae339b ble_mesh: stack: Fix AuthValue Leak and Predictable AuthValue in Bluetooth Mesh Provisioning Leads to MITM 2021-06-17 16:53:07 +08:00
wangjialiang
f9b2bba5a4 ble_mesh: stack: Add check the value of Provisioning Random & Confirmation sent and received by provisioner 2021-06-16 21:28:52 +08:00
Island
577aef29ad Merge branch 'bugfix/btdm_enable_gattc_cache_will_crash_v4.0' into 'release/v4.0'
component/bt: fix enable gattc nvs cache lead to crash

See merge request espressif/esp-idf!13916
2021-06-10 02:56:25 +00:00
Chinmay Chhajed
e42479e129 Bluedroid: Check only x component of passkey to avoid passkey impersonation attack. 2021-06-08 10:09:21 +05:30
Cao Sen Miao
e6222ccf60 spi_flash: fix cs line setup to make the flash driver more stable 2021-06-08 01:02:39 +08:00
xiewenxiang
3892a92d80 component/bt: fix enable gattc nvs cache lead to crash 2021-06-07 18:03:19 +08:00
Alexey Gerenkov
37538d2188 gcov: Fixes not linked gcov rtio functions 2021-06-03 11:43:05 +03:00
liaowenhao
ac190b6a01 bugfix/fix crash when lmp flooding 2021-06-02 17:25:45 +08:00
Angus Gratton
c572e0bf5f paritition_table: Verify the partition table md5sum when loading the app
Additionally, always enable the partition MD5 check if flash encryption is on in
Release mode. This ensures the partition table ciphertext has not been modified
(CVE-2021-27926).

The exception is pre-V3.1 ESP-IDF bootloaders and partition tables, which
don't have support for the MD5 entry.
2021-06-02 16:30:02 +10:00
baohongde
cff9332ddd components/bt: Delete BLE ADV priority high 2021-06-02 11:35:56 +08:00
Jakob Hasse
1d8ca35eec [C++]: wrapper functions around unwind code
* Replaced all C++ exception related
  functions with wrappers if -fno-exception
  is used. This prevents linking of the
  corresponding code in libgcc. The code
  size will decrease by around 7-9 KB when
  building with -fno-exception.
* added no except test app

Closes https://github.com/espressif/esp-idf/pull/5380
Closes https://github.com/espressif/esp-idf/issues/5363
Closes https://github.com/espressif/esp-idf/issues/5224
Closes IDFGH-3153
Closes IDF-2577
2021-06-01 15:00:23 +08:00
Angus Gratton
aea01b00e1 pthread: Fix possible deadlock when using pthread_join() and Debug log level
Possible for a joined task to be deleted at the moment it is logging,
meaning it might hold the stdout lock. In that case the lock isn't
released and the next task to try and take it (i.e. call printf)
will block indefinitely.
2021-05-31 13:50:41 +10:00
Felipe Neves
e29da11f6b freertos/portmux: increase portmux timeouts to avoid crashing when using debug feature
Closes: https://github.com/espressif/esp-idf/issues/3629#
2021-05-28 09:52:26 +10:00
aleks
44832d2379 freemodbus: increase max priority of modbus tasks
allows to avoid issues with modbus processing when higher priority tasks are used in user application
2021-05-25 16:31:04 +02:00
Omar Chebib
8d1f243bff regi2c: add a spinlock for accessing (reg)I2C devices
When not compiling bootloader, a spinlock will be used for reading or writing
I2C internal devices/registers.
When compiling for bootloader, no need to use any lock.
2021-05-25 17:57:07 +08:00
Prasad Alatkar
fc9f2e8782 NimBLE: Fix MITM vulnerability and free AES context (v4.0) 2021-05-25 14:57:37 +05:30
morris
7ab8594813 esp_eth: restart negotiation in esp_eth_start 2021-05-25 15:31:53 +08:00
Chinmay Chhajed
805f30fda9 bt controller: Fixed handling for invalid feature page. 2021-05-25 05:09:36 +00:00
Island
532d0a72c3 Merge branch 'nimble/fix_host_flow_ctrl_v4.0' into 'release/v4.0'
NimBLE: Fix host flow control in NimBLE porting layer and host (release/v4.0)

See merge request espressif/esp-idf!13577
2021-05-19 09:50:27 +00:00