Commit Graph

16480 Commits

Author SHA1 Message Date
Krzysztof Budzynski
213b5911a5 Merge branch 'bugfix/lwip_docs_delete_while_select' into 'master'
lw-IP: Add docs about not supported delete of task while blocked on select

Closes IDF-2675

See merge request espressif/esp-idf!12145
2021-02-02 16:16:34 +08:00
Krzysztof Budzynski
d2e6793582 Merge branch 'docs/c3_get_started' into 'master'
docs: inital doc update for C3

Closes IDF-2312, IDF-2314, IDF-2551, IDF-2611, and IDF-2317

See merge request espressif/esp-idf!11884
2021-02-02 14:18:23 +08:00
dongyou
fe76c53fec update wifi docs 2021-02-02 11:42:00 +08:00
Marius Vikhammer
dab4913ab5 Merge branch 'doc/provide_CN_translation_for_MR11884' into 'docs/c3_get_started'
Provide CN translation for part of documents in MR11884

See merge request espressif/esp-idf!12199
2021-02-02 09:20:00 +08:00
Dai Zi Yan
5aaa0c9ca3 Provide CN translation for part of documents in MR11884 2021-02-02 09:19:58 +08:00
Angus Gratton
2b5cbcf852 Merge branch 'feature/fpga_warnings' into 'master'
esp_system: Add boot warning when running on FPGA, fix dropped log issue

Closes IDF-2687

See merge request espressif/esp-idf!12209
2021-02-02 09:02:23 +08:00
Ivan Grokhotkov
458308786b Merge branch 'doc/fix_pxTaskGetStackStart' into 'master'
[doc/freertos]: fixed doc of pxTaskGetStackStart()

Closes IDF-1668

See merge request espressif/esp-idf!12159
2021-02-02 07:09:00 +08:00
KonstantinKondrashov
25ac1d4d28 bootloader: Anti-rollback mode doesn't run test_app
- Cmake shows an error if the partition table has a test app.
- BOOTLOADER_APP_TEST depends on !BOOTLOADER_APP_ANTI_ROLLBACK.
- Bootloader does not boot the test app if secure version is low.

Closes: https://www.esp32.com/viewtopic.php?f=13&t=19164&p=71302#p71302
2021-02-01 23:24:23 +08:00
David Cermak
c17960312b lwip: Add docs about not supported delete of task while blocked on select 2021-02-01 09:50:59 +00:00
Pedro Minatel
42b85a82ae Apply 1 suggestion(s) to 1 file(s) 2021-02-01 08:35:25 +00:00
pedro.minatel
5c1d19ad02 example/storage: fix find_partition function when no partition is found 2021-02-01 08:35:25 +00:00
Marius Vikhammer
548fd02d10 docs: initial update of programming guide for C3
Updates "front page" content, get-started, and api-guides with C3 content

Enable building and publishing of C3 docs in CI
2021-02-01 15:40:02 +08:00
Krzysztof Budzynski
bd1578f2e3 Merge branch 'doc/update_CN_translation_for_api_guides' into 'master'
Doc/update CN translation for api guides

See merge request espressif/esp-idf!12135
2021-02-01 14:43:58 +08:00
morris
006a87557b esp_eth: added option to disable soft flow control when rx buffer is few 2021-02-01 14:14:54 +08:00
morris
932c509280 ethernet: not using test MAC address for EMAC example 2021-02-01 14:14:54 +08:00
Mahavir Jain
6e776946d0 Merge branch 'bugfix/update_howsmyssl_cert' into 'master'
examples/protocols: update www.howsmyssl.com certificate to fix test failures

See merge request espressif/esp-idf!12202
2021-02-01 13:22:30 +08:00
Omar Chebib
c4dc3acba9 heap: add light poisoning configuration to the tests.
Relates to IDF-2653
2021-02-01 11:58:42 +08:00
Omar Chebib
d902b4e7db heap: fix unaligned memory bug when poisoning is enabled.
Poisoned memory is now aligned as requested by the user.
Closes IDF-2653
2021-02-01 11:58:42 +08:00
Angus Gratton
dfda84c2ab esp_system: Fix some ESP_EARLY_LOG lines not being output fully
At least on ESP32, calling esp_rom_uart_set_clock_baudrate() causes the
contents of the UART FIFO to be discarded.
2021-02-01 14:24:38 +11:00
Angus Gratton
8dbb14b469 system: Log a warning when booting bootloader or app configured for FPGA use
Such a firmware may appear to work on normal chip, but not everything will function as expected.
2021-02-01 14:24:38 +11:00
Michael (XIAO Xufeng)
c4346abfb7 Merge branch 'feature/i2c_master_cmd_begin_const' into 'master'
i2c: modify internal impl to ensure the cmd will not be modified

See merge request espressif/esp-idf!12153
2021-02-01 11:18:02 +08:00
Jiang Jiang Jian
fb18b0ad18 Merge branch 'bug/fix_wapi_nvs' into 'master'
Fix wapi authmode in NVS and S3/C3 compability.

See merge request espressif/esp-idf!12203
2021-01-31 18:24:44 +08:00
alex.li
a9b0336ac5 Fix wapi authmode in NVS and S3/C3 compability. 2021-01-30 19:14:37 +08:00
Jiang Jiang Jian
7c6dad2a29 Merge branch 'bugfix/fix_some_wifi_bugs_0129' into 'master'
esp_wifi: fixed some Wi-Fi bugs

Closes WIFI-3239 and WIFI-969

See merge request espressif/esp-idf!12196
2021-01-30 10:32:04 +08:00
Mahavir Jain
d34acd0d82
examples/protocols: update www.howsmyssl.com certificate to fix test failures 2021-01-29 19:06:24 +05:30
zhangyanjiao
c97279b51c esp_wifi: fixed some Wi-Fi bugs
1. Fixed the MIC comparison logic AES-128-CMAC decryption
2. Fixed issue of setting incorrect log_length of NVS misc log
2021-01-29 19:29:57 +08:00
Ivan Grokhotkov
d653d52e3c Merge branch 'bugfix/coredump_extra_regs_parsing_error' into 'master'
fix(coredump): parse registers values from stack

Closes IDFCI-414

See merge request espressif/esp-idf!12189
2021-01-29 18:31:44 +08:00
zwj
d76d708bc3 add connection parameter check 2021-01-29 15:29:57 +08:00
zwj
ee53342786 fix throughput example build error 2021-01-29 15:29:18 +08:00
Jiang Jiang Jian
85303b0938 Merge branch 'bugfix/fix_wpa3_auth_fail_issue' into 'master'
Wi-Fi: Fixes some Wi-Fi bugs

Closes WIFI-3248, WIFI-3123, WIFI-2998, and WIFI-3099

See merge request espressif/esp-idf!12133
2021-01-29 14:50:27 +08:00
Anton Maklakov
af9add8dca Merge branch 'bugfix/win_inst_build' into 'master'
bugfix: revert command for invoking iscc

See merge request espressif/esp-idf!12164
2021-01-29 13:01:41 +08:00
Fu Hanxi
da73dc8195 fix(coredump): parse registers values from stack 2021-01-29 11:12:21 +08:00
ronghulin
84a1e65495 esp_wifi: fixes some Wi-Fi bugs
1. Clear hotspot bss when auth timeout happens.
2. Fix PMK not saved in NVS for SoftAP for PSK mode.
3. Fix the bug for esptouch find hidden AP fail.
4. Fix not connect to open AP when WPA3 auth fail.
2021-01-29 11:02:40 +08:00
Ivan Grokhotkov
8b96dcb5ff Merge branch 'bugfix/gdb_panic_server_py2.7' into 'master'
tools/gdb_panic_server.py: fix compatibility with python 2.7

See merge request espressif/esp-idf!12128
2021-01-29 08:34:48 +08:00
Ivan Grokhotkov
bb1f75179b Merge branch 'bugfix/freertos_systimer_stall_when_cpu_halted' into 'master'
freertos: stall systimer while CPU is in debug mode

See merge request espressif/esp-idf!12063
2021-01-29 07:02:30 +08:00
Ivan Grokhotkov
3dea56d15c Merge branch 'feature/esp32c3_supported_target' into 'master'
tools/idf.py: promote esp32c3 from preview to supported targets

See merge request espressif/esp-idf!12129
2021-01-29 07:01:50 +08:00
Ivan Grokhotkov
11a0e1d9fc Merge branch 'fix/ninja_1.10.2' into 'master'
tools: ninja: update to 1.10.2

Closes IDF-2216

See merge request espressif/esp-idf!12043
2021-01-29 06:50:15 +08:00
Jiang Jiang Jian
28faf93c51 Merge branch 'feature/esp32c3_power_down' into 'master'
esp32c3 : power down MAC and BB only if both Wi-Fi and BT power down

Closes FC3-99

See merge request espressif/esp-idf!12076
2021-01-28 23:27:19 +08:00
baohongde
eef66789d4 Mac BB power down in light sleep
components/bt: Do not use feature: timer support isr dispatch method

disable controller after wake up finished.

protect critical section of power down

choose clk in sleep

components/coex: mac bb power down in light sleep

components/coex: Macro changed

components/os: protect reserved interrupt number

update phy to phy_version 300,6e46ba7,Jan 25 2021

some bugfix
2021-01-28 22:28:04 +08:00
Jiang Jiang Jian
3af715ddd8 Merge branch 'bugfix/disable_hardware_encrp_for_s3' into 'master'
temporarily disable hardware encryption for esp32s3

See merge request espressif/esp-idf!12187
2021-01-28 22:07:48 +08:00
Mahavir Jain
56aa4ae16f Merge branch 'bugfix/reenable_encrypted_partition_write' into 'master'
Re-enable encrypted flash read/writes even if flash encryption is disabled

See merge request espressif/esp-idf!12122
2021-01-28 21:58:58 +08:00
ChenJianxing
243417c48c temporarily disable hardware encryption for esp32s3 2021-01-28 21:05:51 +08:00
Mahavir Jain
80b196a662 unit-test-app: disable encrypted flash read/write in psram config to fix build failure 2021-01-28 12:19:21 +00:00
Mahavir Jain
e712a91488 spi_flash: add config option to enable encrypted partition read/write
This feature can be disabled to save some IRAM (approx 1KB) for cases
where flash encryption feature is not required.
2021-01-28 12:19:21 +00:00
Mahavir Jain
8a01cc2c26 Revert "esp_partition: disable encrypted reads/writes if flash encryption is disabled"
This reverts commit bf35ef1ce7.

It has been noticed that there are scenarios where even though firmware is not enabled
with flash encryption config feature, it should be able to write to encrypted partitions.

This revert adds the feature back which was removed around v4.0 timelines, and same
change will be backported to all releases (upto v4.0) for consistency.
2021-01-28 12:19:21 +00:00
daiziyan
3d2d0e2247 update CN translation for ulp-risc-v partition-table tips-and-quirks and idf-monitor for api-guides 2021-01-28 19:42:54 +08:00
Jiang Jiang Jian
9eae54f3be Merge branch 'bugfix/fix_a2dp_sink_crash_due_to_ble5.0_code' into 'master'
fix a2dp sink crash due to ble 5.0 code

Closes BT-1358, BT-1354, and BT-1356

See merge request espressif/esp-idf!12170
2021-01-28 19:41:54 +08:00
wangmengyang
ee480b7776 Refactor Bluetooth init/deinit mechanism
free osi_funcs struct memory duiring failure of controller_init when necessary

components/bt: use s_lp_stat.phy_enabled to control the on/off of phy module

clean up style for controller_disable

clean up some empty functions and unnecessary comments

Added async wakeup src "BTDM_ASYNC_WAKEUP_SRC_TMR"

remove use of assert in controller_init, set error code upon some exceptions

move stop esp_timer early to phase0, add state variable wakeup_timer_started
2021-01-28 19:27:17 +08:00
wangmengyang
06ea8a3028 remove use of macro "CONFIG_SPIRAM_USE_MALLOC" 2021-01-28 19:25:03 +08:00
wangmengyang
086b36d737 Refactor Bluetooth sleep mechanism
Refactor bluetooth hardware PowerUp/PowerDown functions

component/bt: fix use of a deprecated MACRO "CONFIG_ESP32_WIFI_SW_COEXIST_ENABLE"

component/bt: fix sleep wakeup in controller disable procedure

remove use of s_pm_lock_sem

1. Modified the waking up approach from async to sync: post a message to controller task upon vhci downstream packets or controller disable, and in response, controller task goes through the wake-up procedure
2. Added Controller status check for the esp_vhci APIs
3. Adjust the procedure during controller_init, check the validity of arguments first

Some minor modifications for bluetooth sleep control and configuration

1. use variable flag s_btdm_allow_light_sleep to control the use of s_light_sleep_pm_lock
2. use variable btdm_lpclk_sel to choose bluetooth sleep clock, support only for external 32kHz crystal temporarily

component/bt: improve async_wakeup function

1. check power state first and then decide if wakeup needs to be performed
2. change the meaning of the return value, if wakeup request is posted to controller task, then return true, otherwise return false

put sleep control logics in controller init/deinit/enable/disable together

Use s_lp_cntl struct: replace bool-typed variable sleep_backup_en with s_lp_cntl.mac_bb_pd

Use s_lp_cntl struct: replace bool-typed variable s_btdm_allow_light_sleep with s_lp_cntl.no_light_sleep

Use s_lp_cntl struct: replace global variable btdm_lpclk_sel with s_lp_cntl.lpclk_sel

create semaphore s_wakeup_req_sem only when low power mode is required

Use s_lp_cntl struct: use s_lp_cntl.wakeup_timer_required to control the wakeup timer

use s_lp_stat to replace original state variable sleep_backup_done and s_pm_lock_acquired

one minor change for mac_bb_pd settings init: return error status if memeory allocation failed
2021-01-28 19:23:09 +08:00