Commit Graph

24076 Commits

Author SHA1 Message Date
songruojing
b3d8db3ae2 bootloader, esp_system: esp32c2 console uart to support 26MHz xtal
Gets the XTAL frequency from the RTC storage register, remove UART_CLK_FREQ_ROM macro from soc.h
2022-07-11 12:24:58 +08:00
songruojing
ef813b23fa rtc: esp32c2 support 26MHz xtal in startup code and rtc_clk.c 2022-07-11 12:24:58 +08:00
Ivan Grokhotkov
2e37218ce5 soc, hal: remove XTAL_CLK_FREQ
XTAL_CLK_FREQ now depends on the actual XTAL used, remove this macro
and get the XTAL frequency from the RTC register instead.
No uses of XTAL_CLK_FREQ found, other than in the UART LL.
2022-07-11 12:24:58 +08:00
Ivan Grokhotkov
a1d7089b59 ci: add build-only test for esp32c2 with 26 MHz XTAL option enabled 2022-07-11 12:24:58 +08:00
Ivan Grokhotkov
5b54ae76d4 esp_timer, hal: add support for non-integer systimer frequency
When ESP32-C2 is paired with a 26 MHz XTAL, the systimer tick
frequency becomes equal to 26 / 2.5 = 10.4 MHz. Previously we always
assumed that systimer tick frequency is integer (and 1 MHz * power of
two, above that!).
This commit introduces a new LL macro, SYSTIMER_LL_TICKS_PER_US_DIV.
It should be set in such a way that:

1. SYSTIMER_LL_TICKS_PER_US / SYSTIMER_LL_TICKS_PER_US_DIV equals the
   actual systimer tick frequency,
2. and SYSTIMER_LL_TICKS_PER_US is integer.

For ESP32-C2 this means that SYSTIMER_LL_TICKS_PER_US = 52 and
SYSTIMER_LL_TICKS_PER_US_DIV = 5.

This introduced two possible issues:

1. Overflow when multiplying systimer counter by 5
   - Should not be an issue, since systimer counter is 52-bit, so
     counter * 5 is no more than 55-bit.
2. The code needs to perform:
   - divide by 5: when converting from microseconds to ticks
   - divide by 52: when converting from ticks to microseconds
   The latter potentially introduces a performance issue for the
   esp_timer_get_time function.
2022-07-11 12:24:37 +08:00
Ivan Grokhotkov
f0f9890096 bootloader: set the initial XTAL frequency based on the Kconfig option 2022-07-08 15:04:26 +08:00
Ivan Grokhotkov
672e70a023 esp_hw_support: add 26 MHz XTAL option for esp32c2
Some esp32c2 boards will be produced with a 26 MHz XTAL. This commit
adds the basic Kconfig option for this type of hardware.
Support for CONFIG_ESP32C2_XTAL_FREQ_26 in other areas of IDF will be
implemented in subsequent commits.
2022-07-08 15:04:17 +08:00
Jiang Jiang Jian
7e2ee82160 Merge branch 'bugfix/fix_qos_null_update_ba_ssn' into 'master'
wifi:bugfix fix qos null update ba ssn

Closes IDFGH-6811

See merge request espressif/esp-idf!18882
2022-07-08 14:00:11 +08:00
Mahavir Jain
03c1ada871 Merge branch 'bugfix/netif_interface_reg_sequence_issue' into 'master'
esp_wifi: netif: set interface before registering Wi-Fi driver RX callback

Closes WIFI-4515 and WIFI-4472

See merge request espressif/esp-idf!18895
2022-07-08 13:23:31 +08:00
Shen Jun
d09e4d673c Merge branch 'bugfix/fix_esp32c2_tx_crash_issue' into 'master'
esp_wifi: fix esp32c2 tx crash issue

Closes WIFI-4581

See merge request espressif/esp-idf!18911
2022-07-08 10:37:27 +08:00
Wang Fang
a8aead1986 Merge branch 'docs/update_ide_documentation' into 'master'
docs: deleted IDE documentation and provided links to these IDE GitHub repos

Closes DOC-3254, DOC-2982, and DOC-2961

See merge request espressif/esp-idf!18627
2022-07-08 09:35:13 +08:00
Roland Dobai
55d95dd813 Merge branch 'fix/esptool_esp32c2_minrev_v2' into 'master'
tools: Generate images for ESP32-C2 with required minimal revision

Closes IDF-5303

See merge request espressif/esp-idf!18917
2022-07-08 05:41:57 +08:00
Jiang Jiang Jian
f0172d5ae0 Merge branch 'bugfix/fix_wrong_params_in_hidd' into 'master'
Fix wrong parameter of get_report_by_id_and_type in bt_hidd.c

See merge request espressif/esp-idf!18892
2022-07-08 01:10:20 +08:00
Darian
ceffde5cb6 Merge branch 'bugfix/coredump_shebang' into 'master'
espcoredump: Fix espcoredump.py shebang and file mode

See merge request espressif/esp-idf!18902
2022-07-07 19:20:15 +08:00
Wang Fang
c69908e976 docs: deleted IDE documentation and provided links to these IDE GitHub repos 2022-07-07 18:14:26 +08:00
Guillaume Souchere
9b8c558e63 Merge branch 'bugfix/backtrace_formatting_add_missing_space' into 'master'
Reverts Backtrace: format to what it used to be

Closes IDFGH-7580

See merge request espressif/esp-idf!18783
2022-07-07 16:51:47 +08:00
morris
75bd6fc2d9 Merge branch 'contrib/github_pr_9302' into 'master'
ESP32S3 USB external PHY pinout (GitHub PR)

Closes IDFGH-7761

See merge request espressif/esp-idf!18909
2022-07-07 16:17:26 +08:00
Roland Dobai
9ee3661b4b tools: Generate images for ESP32-C2 with required minimal revision 2022-07-07 15:44:55 +08:00
xueyunfei
95591fdf65 wifi:bugfix fix qos null update ba ssn 2022-07-07 15:23:29 +08:00
Marius Vikhammer
f78d13398e Merge branch 'bugfix/enable_freertos_tests_c2' into 'master'
freertos: re-enable tests disabled for C2

Closes IDF-5140

See merge request espressif/esp-idf!18885
2022-07-07 14:14:46 +08:00
morris
d02b721a21 Merge branch 'docs/esp32c2_wifi_programming_guide_doc' into 'master'
doc: esp32c2 wifi programming guide doc.

Closes IDF-4216

See merge request espressif/esp-idf!18552
2022-07-07 14:13:12 +08:00
Mu Hai Dong
eb4421bf33 doc: esp32c2 wifi programming guide doc. 2022-07-07 14:13:11 +08:00
Rahul Tank
020dc7b2ec Merge branch 'bugfix/fix_extra_event_init_periodic' into 'master'
NimBLE: Removed extra event init done during periodic_sync_alloc

See merge request espressif/esp-idf!18494
2022-07-07 13:02:53 +08:00
Wang Zi Yan
390c572bb6 Merge branch 'docs/provide_404_tips' into 'master'
docs: update 404.rst

Closes DOC-2996

See merge request espressif/esp-idf!18838
2022-07-07 11:54:42 +08:00
morris
b0e228f756 soc: update copyright for usb phy pins 2022-07-07 11:50:06 +08:00
Michael (XIAO Xufeng)
a58362a429 Merge branch 'feature/efuse_rev_major_minor' into 'master'
efuse: Adds major and minor versions

See merge request espressif/esp-idf!18255
2022-07-07 11:48:54 +08:00
shenjun
988f9b3a59 esp_wifi: fix esp32c2 tx crash issue 2022-07-07 11:32:00 +08:00
Island
0d86ca59a6 Merge branch 'update/esp32h2_h2_beta2_controller_lib_to_cd9dd20' into 'master'
Update esp32h2 beta2 lib to controller master

See merge request espressif/esp-idf!18876
2022-07-06 22:13:05 +08:00
Song Ruo Jing
b662f4b74f Merge branch 'feature/support_26M_32M_xtal_bbpll_c2' into 'master'
support c2 26M/32M xtal for bbpll

Closes IDF-5485

See merge request espressif/esp-idf!18769
2022-07-06 21:17:52 +08:00
Roland Dobai
12e8f0ba8c Merge branch 'feature/auto_hints_with_ci_fix' into 'master'
idf.py: Add automated hints on how to resolve errors with fix for ci

Closes IDF-4511, IDF-4512, and IDF-4631

See merge request espressif/esp-idf!18759
2022-07-06 21:05:33 +08:00
Darian Leung
5de652bbe2 espcoredump: Fix espcoredump.py shebang and file mode
This commit adds back the shebang and executable file mode for
espcoredump.py
2022-07-06 21:03:11 +08:00
lsita
9ceff23c6d USB external PHY pinout set as in Reference Manual Figure 29-3. 2022-07-06 14:54:35 +02:00
morris
a92cce9861 Merge branch 'bugfix/calib_i2c_clk' into 'master'
I2C: Make I2C clock frequency accurate

Closes IDF-5363

See merge request espressif/esp-idf!18686
2022-07-06 20:52:31 +08:00
Anton Maklakov
a5d6a93c3c Merge branch 'bugfix/clang-tidy-for-esp32s3' into 'master'
tools: fix clang-tidy work for esp32s2 and esp32s3

Closes RDT-228 and IDFGH-7756

See merge request espressif/esp-idf!18773
2022-07-06 19:49:42 +08:00
Zim Kalinowski
5ed792a296 Merge branch 'bugfix/fix_sdio_master_slave_test_with_freertos_smp' into 'master'
freertos-smp: Fix sdio driver master slave performance test with FreeRTOS SMP

See merge request espressif/esp-idf!18865
2022-07-06 19:39:03 +08:00
morris
0b782e2883 Merge branch 'docs/translate_api_reference' into 'master'
docs: provide translation for gptimer

Closes DOC-3036

See merge request espressif/esp-idf!18625
2022-07-06 17:39:23 +08:00
Wang Zi Yan
5e768f7f2d docs: provide translation for gptimer 2022-07-06 17:39:23 +08:00
Jiang Jiang Jian
7b3ee47c67 Merge branch 'bugfix/fix_ble_ke_mem_c_assert_on_c3_s3' into 'master'
Fixed BLE ke_mem.c assert on esp32c3 and esp32s3

Closes BT-2405, BT-2406, and BCI-302

See merge request espressif/esp-idf!18863
2022-07-06 16:58:07 +08:00
morris
627b171a3c Merge branch 'feature/enable_rpa_modem_reset_function_in_esp32h2' into 'master'
Enable rpa_moudle reset function

See merge request espressif/esp-idf!18891
2022-07-06 14:47:37 +08:00
Harshit Malpani
495d35949d Merge branch 'bugfix/fix_ota_example_tests' into 'master'
Fix OTA example test to fix CI failures

See merge request espressif/esp-idf!18690
2022-07-06 12:55:14 +08:00
Zim Kalinowski
ecac5d02fc Merge branch 'bugfix/fix_esp_event_test_with_freertos_smp' into 'master'
freertos-smp: Update performance threshold for esp_event performance test with FreeRTOS SMP

Closes IDF-5449

See merge request espressif/esp-idf!18848
2022-07-06 12:41:05 +08:00
Guo Jia Cheng
fb181e0482 Merge branch 'bugfix/timer-overflow' into 'master'
openthread: update library to fix timer overflow

See merge request espressif/esp-idf!18889
2022-07-06 12:21:25 +08:00
Rahul Tank
d3e7d9b090 NimBLE: Removed extra event init done during periodic_sync_alloc 2022-07-06 09:50:17 +05:30
Marius Vikhammer
457e31a715 freertos: re-enable tests disabled for C2 2022-07-06 12:15:04 +08:00
Zim Kalinowski
6062748203 Merge branch 'bugfix/fix_vfs_test_with_freertos_smp' into 'master'
freertos-smp: Update performance thresholds for VFS Open, Write, Close test with FreeRTOS SMP

Closes IDF-5448

See merge request espressif/esp-idf!18849
2022-07-06 12:14:19 +08:00
Cao Sen Miao
e218723e0e I2C: Make I2C clock frequency accurate 2022-07-06 11:58:08 +08:00
Mahavir Jain
f45dbd1f97
esp_wifi: netif: set interface before registering Wi-Fi driver RX callback
If appropriate interface is not set then RX callback can potentially dereference
null pointer from `s_wifi_netifs` table. This in-fact resulted in `LoadProhibited` exception
in HTTP server example test case.

Order here for setting interface and then registering callback was correct but
it was modified in 0e71a325de causing this regression.
2022-07-06 09:03:08 +05:30
Song Ruo Jing
2bc0f45d85 Merge branch 'feature/uart_get_free_tx_buffer_size' into 'master'
uart: Add a new API to get the free space size of tx buffer

Closes IDFGH-7348 and IDFGH-642

See merge request espressif/esp-idf!18749
2022-07-06 11:18:57 +08:00
Jing Li
9fd5e15b83 Merge branch 'docs/improve_docs_for_flash_power_down' into 'master'
docs: improve docs about flash power-down

Closes IDF-5258

See merge request espressif/esp-idf!18696
2022-07-06 11:02:54 +08:00
Jiang Jiang Jian
5134af1c6b Merge branch 'bugfix/ext_adv_param_check' into 'master'
Bluedroid: fix channel map of ext adv params check

See merge request espressif/esp-idf!18877
2022-07-06 11:02:46 +08:00