Commit Graph

10520 Commits

Author SHA1 Message Date
Michael (XIAO Xufeng)
49022d4d92 Merge branch 'fix/adc_hal_reading_efuse_in_critical' into 'master'
adc: fixed efuse called in critical section issue

See merge request espressif/esp-idf!11519
2020-12-10 14:09:09 +08:00
Jakob Hasse
ff03bbce78 NVS: fixed coverage-report target in Makefile 2020-12-10 03:51:16 +00:00
Angus Gratton
e4407468bc Merge branch 'feature/flash_binary_partition_with_name' into 'master'
buildsystem: flash binary to a named partition

Closes IDF-2387

See merge request espressif/esp-idf!11342
2020-12-10 06:24:15 +08:00
Mahavir Jain
1584ccf834 Merge branch 'feature/http_error_code' into 'master'
Feature/support 401, 403 response error code for HTTP server

Closes IDFGH-3511

See merge request espressif/esp-idf!11473
2020-12-09 23:45:38 +08:00
KonstantinKondrashov
aa96c9a4d8 esp_timer: Add an option to skip unhandled events for periodic timers
- Added an option to skip unhandled events for periodic timers. Useful for light sleep.
- Added doc about this case
- Added Test a latency between a call of callback and real event (14-16us). and UT to check skip_unhandled_events.
- Fixed for esp_timer_dump() if name of timer is NULL
- Refactored timer_process_alarm()
- Added the delete function after using in UTs
2020-12-09 17:19:19 +08:00
David Čermák
bf294fd1ae Merge branch 'bugfix/crt_bundle_bad_md' into 'master'
esp_crt_bundle: allow weak hash algorithm for trusted certificate

Closes IDFGH-4266

See merge request espressif/esp-idf!11376
2020-12-09 16:16:35 +08:00
Liu Han
669d9820fc esp_http_server: Add some response error code, such as 401, 403 etc.
Closes https://github.com/espressif/esp-idf/issues/5466
2020-12-09 06:22:01 +00:00
Island
4605a8ac80 Merge branch 'optimize/ble_mesh_miscellaneous' into 'master'
Optimize/ble mesh miscellaneous

See merge request espressif/esp-idf!11500
2020-12-08 19:35:46 +08:00
Michael (XIAO Xufeng)
04d6b115ae adc: fixed efuse called in critical section issue 2020-12-08 17:41:49 +08:00
Angus Gratton
c0e0be6ac3 Merge branch 'bugfix/bootloader_dont_trigger_address_decoding' into 'master'
bootloader: avoid printing load addresses with '0x'

See merge request espressif/esp-idf!11445
2020-12-08 15:19:58 +08:00
lly
fb531815b0 ble_mesh: stack: Move bt_mesh_rand to mesh_common.c 2020-12-08 15:13:04 +08:00
lly
19c3f38b36 ble_mesh: stack: Remove useless BT_DBG_ENABLED in a few files 2020-12-08 15:13:04 +08:00
lly
b77563abb0 ble_mesh: Replace zephyr integer types with C99 types [Zephyr] 2020-12-08 15:13:04 +08:00
lly
162e11cff3 ble_mesh: stack: Update ARRAY_SIZE definition 2020-12-08 15:13:04 +08:00
Omar Chebib
02ddecb69f buildsystem: flash binary to a named partition
Changed optional value parameter 'encrypted' to a named parameter
called 'ALWAYS_PLAINTEXT'. This flag can be passed to:
- esptool_py_flash_target
- esptool_py_flash_target_image
Fix wrong identation.
2020-12-08 12:16:02 +08:00
Michael (XIAO Xufeng)
f174cc35a8 Merge branch 'test/disable_sdio_single_core_tests' into 'master'
ci: disable some sdio_slave tests on single core config

Closes IDFCI-233 and IDFCI-240

See merge request espressif/esp-idf!11492
2020-12-08 11:48:13 +08:00
Marius Vikhammer
7e0f362149 esp_crt_bundle: add additional unit tests
Add unit test for:
 * Trusted certificate with weak hash algorithm signature
 * Certificate with wrong signature

Merges https://github.com/espressif/esp-idf/pull/6117
2020-12-08 10:11:31 +08:00
Michael (XIAO Xufeng)
85ac572e4a Merge branch 'bugfix/phy_set_xpd_sar' into 'master'
wifi: add set_xpd_sar override

Closes IDFGH-235, IDFGH-1442, IDFGH-1917, IDFGH-2473, and IDFGH-2168

See merge request espressif/esp-idf!7185
2020-12-07 16:09:02 +08:00
Ivan Grokhotkov
4bfa2c937f Merge branch 'bugfix/nvs_close_nukes_all_handles' into 'master'
NVS: fixed deinit other partition's handles

Closes FCS-533

See merge request espressif/esp-idf!10940
2020-12-07 15:57:14 +08:00
Island
4f082154e0 Merge branch 'feat/ble_mesh_multiple_nvs_namespace' into 'master'
ble_mesh: stack: Provisioner supports multiple nvs namespaces

Closes BLEMESH-260

See merge request espressif/esp-idf!11355
2020-12-07 14:43:04 +08:00
Angus Gratton
3d1d22f1f4 Merge branch 'esp32/include_extram_bss_in_linker_fragment' into 'master'
esp32: Provision to redirect .bss to external ram through linker fragments

See merge request espressif/esp-idf!9894
2020-12-07 14:01:21 +08:00
Cao Sen Miao
d6f0b4af6f adc_i2s: solve the i2s_adc issue when using wifi 2020-12-07 10:45:04 +08:00
Ivan Grokhotkov
d890a516a1 driver: add notes about GPIO36/39 issue (ECO 3.11) workaround
Closes IDFGH-1917
Closes https://github.com/espressif/esp-idf/issues/4117
2020-12-07 10:45:04 +08:00
Ivan Grokhotkov
80e7252c13 wifi: add set_xpd_sar override
Wi-Fi enables and disables ADC when exiting and entering sleep mode.
Coordinate ADC power state with other modules, using adc_power_acquire
and adc_power_release.
2020-12-07 10:45:04 +08:00
Ivan Grokhotkov
a4f81d0bd3 adc: add adc_power_acquire/release, deprecate adc_power_on/off 2020-12-07 10:45:04 +08:00
Michael (XIAO Xufeng)
a579011584 ci: disable some sdio_slave tests on single core config 2020-12-07 10:15:35 +08:00
lly
a90e3cdf95 ble_mesh: stack: Provisioner supports multiple nvs namespaces
Now Provisioner can use different NVS namespaces to store
different instances of mesh information, for example, for
different user accounts.
2020-12-04 20:31:25 +08:00
Sachin Parekh
be5563207d esp32: Provision to redirect .bss to external ram through linker fragments
Include external ram section in the linker template to process it
through linker script generation mechanism. This enables redirection of .bss section to external memory using linker fragments

libnet80211, libpp, libbt, liblwip: Redirect .bss through fragments
2020-12-04 06:32:38 +00:00
Liu Han
620b0df2b1 esp_event: fix misuse of recursive semaphore take/give calls for profiling_mutex
Closes/Merges https://github.com/espressif/esp-idf/pull/6102
2020-12-04 11:12:27 +08:00
Cao Sen Miao
eeddd44d0a esp_flash: update document to reflect the restrictions of mmap/cache 2020-12-04 11:10:43 +08:00
Konstantin Kondrashov
4a487af43a efuse: Add new APIs for keys, purposes, wr/rd protection
- the batch mode can be called recursively
2020-12-04 10:42:57 +08:00
Michael (XIAO Xufeng)
a92d90435f Merge branch 'feature/esp32s2_adc_calib' into 'master'
adc: add driver for esp32s2 adc calibration scheme

Closes IDFGH-3500, IDF-1458, and IDF-2013

See merge request espressif/esp-idf!9557
2020-12-03 20:09:07 +08:00
Wu Bo Wen
5cc329b9d0 driver/adc: support for esp32s2 adc calibration scheme V2
notice that the o_code is now pulled from efuse instead of automatically calibrated. This may influence other parts of the system.

Closes https://github.com/espressif/esp-idf/issues/5455
2020-12-03 20:08:59 +08:00
Shubham Kulkarni
bc78b8f2da esp_https_ota: Add definition for esp_https_ota_abort
Update esp_https_ota API to use esp_https_ota_abort in case of error
2020-12-03 14:49:55 +05:30
lucastcox
d5d722c66f app_update: Add definition for esp_ota_abort
Closes: https://github.com/espressif/esp-idf/issues/5329
Merges: https://github.com/espressif/esp-idf/pull/5331

Signed-off-by: Shubham Kulkarni <shubham.kulkarni@espressif.com>
2020-12-03 14:49:52 +05:30
Jeff Epler
a79cb9f8cd esp_crt_bundle: Allow verify_callback to correct BADCERT_BAD_MD 2020-12-03 14:53:53 +08:00
Island
e2e05fd91c Merge branch 'feature/btdm_support_some_ble_new_features' into 'master'
Feature/btdm support some ble new features

See merge request espressif/esp-idf!11432
2020-12-03 11:50:55 +08:00
Ivan Grokhotkov
89d39308a0 bootloader: avoid printing load addresses with '0x'
Since idf_monitor decodes anything that looks like a code address and
starts with 0x, bootloader logs often get annotated with function
names such as WindowOverflow and other random and scary looking things
unrelated to the issue the user is facing. Print the addresses without
0x to avoid confusion by decoded function names. Print hexadecimal
size with 'h' suffix to distinguish it from the decimal value that
follows.
2020-12-02 16:33:43 +01:00
Mahavir Jain
a5fd7878db Merge branch 'fix/update_tls_sockfd_after_freeing_internally' into 'master'
esp-tls : (Fix) update tls->sockfd value after socket is freed internally

Closes IDFGH-4321

See merge request espressif/esp-idf!11417
2020-12-02 21:23:39 +08:00
xiewenxiang
945606b658 component/bt: support BLE Read Attribute value by UUID 2020-12-02 20:04:36 +08:00
martin.gano
f4ea2dcb74 Tools: add Python 2 deprecation warning 2020-12-02 11:08:48 +01:00
Aditya Patwardhan
95d9533294 esp-tls : (Fix) update tls->sockfd value after socket is freed internally
Closes https://github.com/espressif/esp-idf/issues/6163
2020-12-02 03:47:15 +00:00
xiewenxiang
7e5e0ba7de component/bt: refactor ble random address setting 2020-12-02 09:08:31 +08:00
XieWenxiang
e840191a0c component/bt: support BLE Application Layer Encryption key size check 2020-12-02 09:08:03 +08:00
XieWenxiang
366b036ba5 component/bt: support BLE Authorization 2020-12-02 09:07:24 +08:00
xiewenxiang
3d8eb26fe1 component/bt: fix incorrect encryption flag setting 2020-12-02 09:06:44 +08:00
Omar Chebib
f4ac8433c1 coredump: Core dump is encrypted if the partition itself is encrypted
Core dump can now be written in plain text if the partition itself is encrypted.
So it is important to modify the partition table if the user wants an encrypted
core dump partition as by default, it is not.
Added some functions in core_dump_port.c to abstract the checksum implementation
from core_dump_flash.c file.

Closes IDF-458
2020-12-01 16:58:45 +08:00
Angus Gratton
38116853f4 Merge branch 'feature/esp32c3_small_changes' into 'master'
esp32c3: Merge small target support changes

Closes IDF-2361

See merge request espressif/esp-idf!11381
2020-12-01 13:46:57 +08:00
Angus Gratton
493ffe0f46 Merge branch 'feature/esp32c3_soc' into 'master'
esp32c3: Add initial soc, hal, esp_rom, esp_hw_support

Closes IDF-2360

See merge request espressif/esp-idf!11253
2020-12-01 13:27:39 +08:00
Angus Gratton
337985de04 driver: Simplify spi dma peripheral enable/disable logic 2020-12-01 10:58:50 +11:00
Angus Gratton
beb75b13f2 driver test: Use regular target guards for single-target test files 2020-12-01 10:58:50 +11:00
Angus Gratton
5228d9f9ce esp32c3: Apply one-liner/small changes for ESP32-C3 2020-12-01 10:58:50 +11:00
Ivan Grokhotkov
499f3e1540 Merge branch 'bugfix/parttool_miss_arg' into 'master'
partition_table: Fix missing argument not present for all parsers

See merge request espressif/esp-idf!11373
2020-12-01 07:30:42 +08:00
Ivan Grokhotkov
e241884cfd Merge branch 'bugfix/plain_coredump_encrypted_flash' into 'master'
coredump: fix plain coredump written on an encrypted flash

Closes IDF-458

See merge request espressif/esp-idf!11166
2020-12-01 07:29:36 +08:00
Armando
f80bcb733a uart: modify s3 ll functions of reading/writing fifo 2020-11-30 15:23:15 +11:00
Armando
d393699ab6 uart: bringup on esp32c3 2020-11-30 15:23:15 +11:00
Angus Gratton
076be2b480 esp_rom: Refactor ROM CMakeLists.txt file
Reduce duplication and use a utility function for the "add ROM linker script"
pattern, move to a simple file structure of "one if block per target"
2020-11-30 15:23:15 +11:00
Angus Gratton
b696d2917e esp_hw_support: Add initial ESP32-C3 support
From internal commit 7761d6e8
2020-11-30 15:23:15 +11:00
Angus Gratton
7c08be5771 hal: Add initial ESP32-C3 support
From internal commit 7761d6e8
2020-11-30 15:23:15 +11:00
Angus Gratton
b68094199f esp_rom: Add initial ESP32-C3 support
From internal commit 7761d6e8
2020-11-30 11:12:56 +11:00
Angus Gratton
c29d93986d soc: Add initial ESP32-C3 support
From internal commit 7761d6e8
2020-11-30 11:12:56 +11:00
Artem Godlevskyi
3caa9699ae Added missing MYNEWT_VAL_BLE_L2CAP_COC_MPS definition
Signed-off-by: Prasad Alatkar <prasad.alatkar@espressif.com>

Merges https://github.com/espressif/esp-idf/pull/5825
2020-11-27 11:50:03 +00:00
Prasad Alatkar
922a994896 NimBLE: Fix misc coverity issues in NimBLE host
- NimBLE NVS : Additional check to account for NVS operation failure
- NimBLE host: Fix minor bug in ble_eddystone_set_adv_data_gen
- NimBLE host: remove recursive call, upstream PR: https://github.com/apache/mynewt-nimble/pull/857
2020-11-27 11:50:03 +00:00
Jakob Hasse
09d2c5daa6 nvs_flash: fixed deinit other partition's handles
* When deinitializing or erasing a partition,
  nvs used to close all handles instead of only
  the current partition's handles.
  This is fixed now
* Added a unit test for that case

Closes FCS-533
2020-11-27 18:51:05 +08:00
Jiang Jiang Jian
079247b42a Merge branch 'bugfix/blufi_config_potential_double_free' into 'master'
Bugfix/blufi config potential double free

Closes BCI-249, BCI-241, BCI-244, and BT-1174

See merge request espressif/esp-idf!9980
2020-11-27 13:44:37 +08:00
Jiang Jiang Jian
4985310b29 Merge branch 'bugfix/fix_crash_of_divide_zero' into 'master'
Fix crash caused by dividing zero

Closes AUD-2450

See merge request espressif/esp-idf!11100
2020-11-27 12:01:13 +08:00
Jiang Jiang Jian
5196976dbd Merge branch 'docs/fix_some_typos_in_wifi.h' into 'master'
fixed some typos

See merge request espressif/esp-idf!11076
2020-11-27 11:28:28 +08:00
dongyou
070eaea67e Add description for esp_wifi_set_inactive_time()
Add documentation to avoid using WiFi modem sleep for WiFi/BT coexistence
Remove description of unusable API esp_wifi_restart()
Update esp_now_fetch_peer discription
Update table format prblm for esp_wifi_set_max_tx_power()
Update description for ssid and password

Closes https://github.com/espressif/esp-idf/issues/6049
Closes https://github.com/espressif/esp-idf/issues/5759
Closes https://github.com/espressif/esp-idf/issues/5719
Closes https://github.com/espressif/esp-idf/issues/3762
2020-11-26 20:52:36 +08:00
Paweł pidpawel Kozubal
cf60ec0ffc lwip: Added support for configurable LwIP hooks
Added lwIP hooks which could be optionally overwritten in the
application code. These three options are provided in Kconfig:
* NONE: No hook support
* DEFAULT: Default implementation is provided. If IDF doesn't
have a specific hook implementation, an empty stub is provided, which
could be overwritten by strong implementation in application code.
* CUSTOM: Hooks are declared only to be implemented in application code.

Merges https://github.com/espressif/esp-idf/pull/6034
2020-11-26 12:02:00 +00:00
Jiang Jiang Jian
fc08ff8162 Merge branch 'bugfix/pmf_tx_rx_routine' into 'master'
esp_wifi: Always register pmf tx/rx routines

Closes WIFI-2958

See merge request espressif/esp-idf!11045
2020-11-26 19:23:39 +08:00
Michael (XIAO Xufeng)
a3b59aeeb5 Merge branch 'bugfix/clk_allocator' into 'master'
I2C: Fix logic issue on i2c clk allocator

See merge request espressif/esp-idf!11343
2020-11-26 18:18:52 +08:00
Omar Chebib
a56a0921aa espcoredump: fix plain coredump written on an encrypted flash
The coredump is now encrypted when saved on an encrypted flash.
The cache used for saving the file onto the flash is bigger,
making the proccess more efficient.

Relates to IDF-458
Closes https://github.com/espressif/esp-idf/issues/2932
2020-11-26 16:28:32 +08:00
Anton Maklakov
01d8782393 Merge branch 'bugfix/pppos_app_test_python3' into 'master'
CI: Fix python3 issue on PPPoS app test

Closes IDFCI-251

See merge request espressif/esp-idf!11344
2020-11-26 11:12:11 +08:00
Michael (XIAO Xufeng)
665c7f05d2 Merge branch 'feature/uart_bringup_on_esp32s3' into 'master'
uart: bringup on esp32s3

Closes IDF-1768

See merge request espressif/esp-idf!11298
2020-11-26 10:45:17 +08:00
Island
bebdd08e08 Merge branch 'optimize/ble_mesh_provision_dev_uuid_check' into 'master'
ble_mesh: stack: Need uuid when adding device for provisioning

See merge request espressif/esp-idf!11299
2020-11-26 10:36:10 +08:00
Omar Chebib
ccaee8ce88 buildsystem: flash binary to a named partition
Add support for CMake version less than 3.8. These versions don't
provide a way to have ternary expressions in expressions generator.
2020-11-26 10:04:34 +08:00
Omar Chebib
956538e364 buildsystem: flash binary to a named partition
- Add the function esptool_py_flash_to_partition to flash a binary
image to a named partition. If encryption is enabled, this function
will also determine if the partition needs to be encrypted or not
according the its type, subtype and flag in the CSV file (if any).
- Use idf.py encrypted-flash will now flash both encrypted and
non-encrypted file if any (spiffs for example) using esptool.py's
--encrypt-files option.

Closes IDF-2387
Relates to IDF-723
Relates to IDF-2231
2020-11-26 10:04:34 +08:00
Roland Dobai
075d3a57ac partition_table: Fix missing argument not present for all parsers 2020-11-25 23:33:57 +01:00
David Cermak
8bd758b72a ci: Removed remaining binary size checks in app-tests
Also removes unused references to http-request app size in idf_performance.h
2020-11-25 21:22:18 +01:00
Mahavir Jain
0a933f66e3 Merge branch 'fix/https_server_mem_leak_for_error_ret' into 'master'
Fix/https server mem leak for error ret

Closes IDFGH-4300

See merge request espressif/esp-idf!11369
2020-11-26 00:11:58 +08:00
lly
992ceca71b ble_mesh: stack: Need uuid when adding device for provisioning 2020-11-25 20:51:23 +08:00
Anton Maklakov
bf10c537e4 Merge branch 'bugfix/ci_espcoredump' into 'master'
tools: Fix non-existing key in espcoredump's GDMI payload and increase internal GDB delay for CI tests

Closes IDFCI-74 and IDFCI-226

See merge request espressif/esp-idf!11221
2020-11-25 19:16:24 +08:00
Michael (XIAO Xufeng)
5b97f4ab5b Merge branch 'feature/esp_flash_32b_addr_doc' into 'master'
spi_flash: add a block of flash chip supports in the document

See merge request espressif/esp-idf!9895
2020-11-25 17:01:12 +08:00
Aditya Patwardhan
c707d0d323 Fixed ssl_ctx not being freed at the time of error.
Closes https://github.com/espressif/esp-idf/issues/6143
2020-11-25 13:47:38 +05:30
Cao Sen Miao
31afe8109f i2c: Fix bug on i2c clk allocator 2020-11-25 14:26:37 +08:00
Armando
05a4a8d864 uart: seperate sclk and baudrate setting 2020-11-24 19:12:52 +08:00
Armando
fb8b905539 uart: add uart support on esp32s3 2020-11-24 19:12:51 +08:00
kapil.gupta
447eb894c0 esp_wifi: Always register pmf tx/rx routines
Fixes the issue when PMF packets are not sent after mode change.
2020-11-24 15:56:42 +05:30
Michael (XIAO Xufeng)
af992c26bc Merge branch 'bugfix/fix_x32k_startup_slow_bug' into 'master'
bugfix: Fix xtal 32k not oscillate or oscillate too slowly issue for esp32

See merge request espressif/esp-idf!10519
2020-11-24 17:37:29 +08:00
Cao Sen Miao
a610b3ac42 spi_flash: add a block of flash chip supports in the document 2020-11-24 15:46:53 +08:00
Angus Gratton
7446988959 Merge branch 'bugfix/secure_boot_v2_manual_enablement' into 'master'
Secure Boot V2: Fix an issue leading to manual enablement of Secure Boot v2.

See merge request espressif/esp-idf!11161
2020-11-24 15:39:00 +08:00
Michael (XIAO Xufeng)
10fd0c26d4 Merge branch 'bugfix/spi_fix_spi_ll_func_name' into 'master'
spi: fix rx_eof and out_eof related function names in spi_ll.h

See merge request espressif/esp-idf!11007
2020-11-24 12:25:04 +08:00
wangcheng
d1bf93e055 component/bt: Add a macro to control the compilation of blufi. 2020-11-24 10:43:18 +08:00
wangcheng
714d88e426 component/bt: Fix a potential double free error. 2020-11-24 10:22:40 +08:00
wangcheng
709ad66d44 blufi: fix an error caused by incorrect conn_id parameters. 2020-11-24 10:22:32 +08:00
Island
58f11c0c33 Merge branch 'feat/ble_mesh_provisioner_recv_hb_support' into 'master'
ble_mesh: stack: Provisioner supports receiving heartbeat

Closes BLEMESH-259

See merge request espressif/esp-idf!11244
2020-11-23 20:02:33 +08:00
Jiang Jiang Jian
e130d27fb7 Merge branch 'bugfix/control_wpa3_code_with_flag' into 'master'
Use WPA3 flag to reduce code size

Closes WIFI-2910 and IDFGH-4103

See merge request espressif/esp-idf!10963
2020-11-23 19:52:38 +08:00
chaijie
a48b5246cc ESP32: Fix xtal 32k not oscillate or oscillate too slowly issue
ESP32 in revision0 and revision1 uses touchpad to provide
current to oscillate xtal 32k. But revision2 and revision3
do not need to do that.
Note: touchpad can not work and toupad/ULP wakeup sources
are not available when toupad provides current to xtal 32k
2020-11-23 19:38:11 +08:00
Angus Gratton
d6bdd1cb32 Merge branch 'bugfix/small_cleanups' into 'master'
Small cleanups

See merge request espressif/esp-idf!11141
2020-11-23 17:23:53 +08:00
Supreet Deshpande
73d1be4281 Secure Boot V2: Fix an issue leading to manual enablement of Secure Boot v2.
Fixes https://github.com/espressif/esp-idf/issues/6050
2020-11-23 06:52:44 +00:00