Commit Graph

14831 Commits

Author SHA1 Message Date
Angus Gratton
562ab01046 deep sleep: Calculate RTC CRC immediately before deep sleep, without using RAM
Fix for issues where RTC FAST memory is updated as part of going into deep
sleep. Very high risk if heaps are in RTC memory - in particular task stacks
may be in RTC memory, but also other variables.

Also fixes potential concurrency problems as RTC FAST memory is not accessible
by CPU during the CRC calculation itself.

Method:
- Disable interrupts (currently for single core only, will need update for S3)
- Load all registers before calculating CRC or going to sleep
2020-10-12 11:19:56 +11:00
Angus Gratton
e28cd68839 esp_system: Add test case for using deep sleep wake stub when stack is in RTC memory
This test currently fails on ESP32 & ESP32-S2, fix will be in next commit.
2020-10-08 11:17:27 +11:00
Angus Gratton
80f993bf31 Merge branch 'bugfix/ci_auto_checkout_revision_of_project_used_in_ci' into 'master'
CI: get git describe from annotated tags

Closes IDFCI-129 and IDFGH-721

See merge request espressif/esp-idf!10671
2020-10-07 10:43:01 +08:00
Angus Gratton
1612f84ab3 ci: Check version tags are always annotated
Closes https://github.com/espressif/esp-idf/issues/3114
2020-10-07 10:00:59 +11:00
Angus Gratton
261363855c build system: Also get IDF version from annotated tags only
Builds on previous commit.

Note: Getting the project version still pases --tags so still works with plain
tags, to keep compatibility for existing projects
2020-10-07 09:36:40 +11:00
Angus Gratton
e456af6537 Merge branch 'bugfix/fix_example_mapping' into 'master'
examples: fix eeprom ldgen mapping

See merge request espressif/esp-idf!10654
2020-10-06 16:20:51 +08:00
Angus Gratton
26a0df0423 Merge branch 'bugfix/bootloader_anti_rollback_mmap' into 'master'
bootloader_support: fix issue in memory mapping for getting app descriptor

Closes IDFGH-4038

See merge request espressif/esp-idf!10679
2020-10-06 07:44:37 +08:00
Angus Gratton
4b36da3f33 Merge branch 'feature/parttool_add_options_to_info_cmd' into 'master'
partition_table: Extend the get_partition_info command

See merge request espressif/esp-idf!10537
2020-10-06 07:35:32 +08:00
KonstantinKondrashov
55dc1524ee partition_table: Extend the get_partition_info command
A manufactory tool needs to retrieve info about partitions.  With a new flag - "--part_list" we can get a list of partitions with the same type/subtype and easily iterate by it.

- name and flag arguments
- added flag "--part_list" to get a list of partitions with the same type/subtype
- save prev behavior of the get_partition_info command (return the only first item)
- added host test
2020-10-05 17:56:43 +08:00
David Čermák
28d2b7a9b3 Merge branch 'bugfix/esp_netif_non_lwip' into 'master'
esp-netif: Enable use of the ESP-IDF with a non-LWIP (and non-BSD-style) IP stack.

Closes IDFGH-3971

See merge request espressif/esp-idf!10472
2020-10-05 16:16:11 +08:00
David Čermák
f1eb4b827e Merge branch 'bugfix/lwip_netdb_cpp_guards' into 'master'
lw-IP: Changed to C linkage in netdb.h for fixing bug when using mixed C/C++ code

Closes IDFGH-4027

See merge request espressif/esp-idf!10681
2020-10-05 15:51:00 +08:00
David Čermák
39b9e46273 Merge branch 'bugfix/optionally_set_smi_gpio' into 'master'
esp_eth_mac_esp32: optionally setup SMI GPIO's

Closes IDFGH-4030

See merge request espressif/esp-idf!10589
2020-10-05 15:24:11 +08:00
Angus Gratton
1eefe6494c Merge branch 'feature/rsa_caps' into 'master'
RSA: add max RSA bit len as a soc caps

See merge request espressif/esp-idf!10594
2020-10-05 12:56:28 +08:00
Michael (XIAO Xufeng)
a263d9a8e4 Merge branch 'fix/esp_flash_idle_logic' into 'master'
esp_flash: fix the incorrect check_idle logic in LL and chip_driver

See merge request espressif/esp-idf!10530
2020-10-03 09:18:41 +08:00
Angus Gratton
001a6be9b1 Merge branch 'bugfix/esp_pm_ignore_failing_test' into 'master'
esp_pm: temporarily disable failing test

See merge request espressif/esp-idf!10683
2020-10-02 14:01:28 +08:00
Michael (XIAO Xufeng)
fe37db3271 esp_flash: fix the incorrect check_idle logic in LL and chip_driver 2020-10-02 05:34:36 +00:00
Mahavir Jain
92b72aa6c8 Merge branch 'bugfix/http_digest_auth' into 'master'
esp_http_client: Include port in host field, fix return type in API declaration

Closes IDFGH-1344

See merge request espressif/esp-idf!10590
2020-10-01 16:47:26 +08:00
Mahavir Jain
b9c14aa65d Merge branch 'bugfix/esp_coredump_fixes_for_s2' into 'master'
esp_coredump: rename all config options to have generic `ESP` prefix

See merge request espressif/esp-idf!10697
2020-10-01 16:40:13 +08:00
Ivan Grokhotkov
48baf1294a Merge branch 'bugfix/cmock_flake8' into 'master'
Add Python-style ignore for the cmock component

See merge request espressif/esp-idf!10704
2020-10-01 00:17:43 +08:00
Ivan Grokhotkov
db09f9815b Merge branch 'bugfix/apptrace_opt2_build' into 'master'
apptrace: Fixes multiple defs of '__esp_apptrace_trax_eri_updated' for O2 builds

See merge request espressif/esp-idf!10690
2020-09-30 22:57:46 +08:00
Mahavir Jain
20af94ff53 Coredump config option rename throughout IDF 2020-09-30 20:22:27 +05:30
Mahavir Jain
bd19088125 esp_system: initialize coredump for ESP32-S2
This was regression introduced in recent refactoring changes
from startup code.
2020-09-30 20:22:27 +05:30
Mahavir Jain
237087a5ca espcoredump: remove ESP32 prefix from config options
- This component is applicable for ESP32 and ESP32-S2, hence the change
- Backward compatibility is maintained using `sdkconfig.rename` file
2020-09-30 20:22:27 +05:30
Shubham Kulkarni
b06035443f esp_http_client: Include port in host field
Closes: https://github.com/espressif/esp-idf/issues/3628
2020-09-30 15:39:42 +05:30
Roland Dobai
54ae6b871d Add Python-style ignore for the cmock component 2020-09-30 10:06:46 +02:00
Mahavir Jain
e08a3e1d63 test_apps: add anti rollback configuration for bootloader build 2020-09-30 12:21:24 +05:30
Shubham Kulkarni
661c18c578 esp_http_client.h: Fix return type in declaration of esp_http_client_flush_response.
Closes: https://github.com/espressif/esp-idf/pull/5845
2020-09-30 11:25:07 +05:30
Mahavir Jain
ab988ab5ca bootloader_support: move anti rollback API to common loader section
API `bootloader_common_get_partition_description` is required for
anti-rollback feature and should be part of common loader code.
2020-09-30 11:13:13 +05:30
Mahavir Jain
5b344610c9 bootloader_support: fix issue in memory mapping for getting app descriptor
For getting secure_version field in anti rollback case, bootloader tries
to map whole firmware partition but fails for cases where partition size
is beyond available MMU free pages capacity.

Fix here insures to map only required length upto application descriptor
size in firmware partition.

Closes https://github.com/espressif/esp-idf/issues/5911
2020-09-30 11:13:13 +05:30
He Yin Ling
0f8d1cbf1b CI: get git describe from annotated tags:
we should only parse IDF version from annotated tags
2020-09-30 11:28:59 +08:00
Jiang Jiang Jian
c34c961910 Merge branch 'bugfix/coex_some_bugfix_about_ble_dyn_prio' into 'master'
components/coex: Some bugfix about ble dynamic prio

Closes BT-1025

See merge request espressif/esp-idf!10189
2020-09-30 10:48:12 +08:00
Angus Gratton
a88ff4faf5 Merge branch 'bugfix/codeowners_hal' into 'master'
gitlab: add hal component to CODEOWNERS

See merge request espressif/esp-idf!10619
2020-09-30 10:43:24 +08:00
Angus Gratton
83a7891f84 Merge branch 'feature/intr_alloc' into 'master'
feature/intr_alloc: moved interrupt allocator to the esp-system and refactored it moving all platform specific code to its place

Closes IDF-1913

See merge request espressif/esp-idf!10267
2020-09-30 07:44:12 +08:00
Felipe Neves
2e826b7a8f intr_alloc: split interrupt allocator into common-code and platform-code
esp_system: removed repeated interrupt allocator code and moved common code to esp_system

xtens: moved xtensa specific code from freertos to the xtensa component

hal/interrupt_controller: added interrupt controller hal and ll files

docs: update the doxyfile with new location of esp_itr_alloc.h file

xtensa: fixed dangerous relocation problem after moving xtensa interrupt files out of freertos

docs: removed Xtensa reference from intr_allocator api-reference

xtensa: pushed the interrupt function that manages non iram interrupts to the xtensa layer

esp_system/test: fixed platform dependent setting for intr_allocator tests

hal: rename the functions used to manage non iram interrupt mask.
2020-09-30 07:44:12 +08:00
Alexey Gerenkov
1850941550 apptrace: Fixes multiple defs of '__esp_apptrace_trax_eri_updated' for O2 builds 2020-09-29 18:19:34 +03:00
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
Michael (XIAO Xufeng)
56403bd146 ci: define ESP_PLATFORM macro during public header check 2020-09-29 11:46:46 +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
Anton Maklakov
ead20bc1c9 Merge branch 'ci/disable_dev_push_pipelines' into 'master'
CI: Disable pipelines generated by push on dev branches

See merge request espressif/esp-idf!10609
2020-09-29 11:27:11 +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
Renz Bagaporo
0e1b1f7c69 examples: fix eeprom ldgen mapping 2020-09-28 15:29:38 +08:00