Commit Graph

17288 Commits

Author SHA1 Message Date
morris
4cc763fbf0 Merge branch 'feature/mcpwm_update_compare_iram_safe' into 'master'
mcpwm: make set_compare_value iram safe

Closes IDFGH-8314

See merge request espressif/esp-idf!20254
2022-09-22 22:18:45 +08:00
Roland Dobai
2dcb19515a Merge branch 'bugfix/fatfsgen-enable-lfn-for-nonascii' into 'master'
fatfsgen.py: use lfn record when forbidden character detected in the file name

Closes IDF-5981

See merge request espressif/esp-idf!20180
2022-09-22 18:15:25 +08:00
Mahavir Jain
787c69a2cc Merge branch 'bugfix/add_so_linger_to_httpd_config' into 'master'
esp_http_server: Add struct linger in httpd_config_t

Closes IDFGH-8004

See merge request espressif/esp-idf!20142
2022-09-22 17:18:33 +08:00
Michael (XIAO Xufeng)
eb290ecd12 Merge branch 'doc/usj_sw_reset_alive_bbpll_doc' into 'master'
usb_serial_jtag: fixed the docs that we can use usj in sleep modes

See merge request espressif/esp-idf!20096
2022-09-22 15:30:41 +08:00
Shreyas Sheth
48fd5bcda4 esp_wifi: Set AP rsnxe while connection 2022-09-22 12:42:38 +05:30
Song Ruo Jing
701e49278a uart: Fix unwanted processing of TX_DONE interrupt immediately after calling uart_wait_tx_done()
In previous transmission(s), the TX_DONE interrupt raw bit may be raised, but never been cleared.
TX_DONE interrrupt status bit should be cleared before enabling it to check the new transmission.

Introduced in 4e09d147b11ed8a094b5858642c9f60d658ef656
2022-09-22 14:30:39 +08:00
Darian
b39435647e Merge branch 'feature/freertos_task_delay_test_refactor' into 'master'
FreeRTOS: Refactor vTaskDelay() tests

See merge request espressif/esp-idf!20271
2022-09-22 12:52:04 +08:00
Harshit Malpani
a3fd6d1070
esp_http_server: Add linger in httpd_config_t
Closes: https://github.com/espressif/esp-idf/issues/9514
2022-09-22 10:11:50 +05:30
morris
57562b3a55 Merge branch 'refactor/migrate_gdma_test_pytest' into 'master'
gdma: migrate ut to pytest

Closes IDF-5329

See merge request espressif/esp-idf!20281
2022-09-22 12:30:07 +08:00
jingli
42699637ec soc: remove unused DR_REG_DPORT_END macro for c2/c3/s2/s3 2022-09-22 11:45:20 +08:00
jingli
cce2af9193 wifi/bt: fix part of modem module not reset when power up 2022-09-22 11:45:20 +08:00
Darian Leung
aaf7547665 freertos: Refactor vTaskDelay() and vTaskDelayUntil() unit tests
This commit refactors the existing vTaskDelayUntil() unit test according to
the FreeRTOS unit test guidelines, and adds a new vTaskDelay() unit test.
2022-09-22 11:27:29 +08:00
Darian Leung
193e30bbf7 freertos: Rename vTaskDelayUntil unit test file 2022-09-22 11:27:29 +08:00
Darian Leung
0d9d4f60df freertos: Add unit test utilities
This commit adds "freertos_test_utils.h/c" that contains utility functions
used in FreeRTOS unit tests.
2022-09-22 11:27:29 +08:00
morris
09b511c578 Merge branch 'feature/esp32c6_gpio_sdm_bringup' into 'master'
gpio_sdm: bring up SDM driver on esp32c6

Closes IDF-5318

See merge request espressif/esp-idf!20158
2022-09-22 10:54:39 +08:00
morris
ff6855c4b1 gdma: migrate ut to pytest 2022-09-22 10:44:57 +08:00
morris
d609884407 Merge branch 'refactor/esp_rom_pytest' into 'master'
esp_rom: migrate ut to pytest

Closes IDF-5583

See merge request espressif/esp-idf!20258
2022-09-22 10:31:37 +08:00
Alexey Lapshin
29655fe22a tools: fixed elf symbols load if gdbinit specified
ROM and bootloader symbols add to use in GDB (via 'idf.py gdb')
2022-09-21 22:39:03 +04:00
Michael (XIAO Xufeng)
a0bf87ee5d usb_serial_jtag: fixed the docs that we can use usj in sleep modes
Related to: https://github.com/espressif/esp-idf/issues/8507, https://github.com/espressif/esp-idf/issues/8884
2022-09-22 01:36:06 +08:00
Jiang Jiang Jian
5a83ed8b27 Merge branch 'bugfix/bludroid_debug_esp32c2' into 'master'
Bugfix/bludroid debug esp32c2

See merge request espressif/esp-idf!20029
2022-09-22 00:07:10 +08:00
David Cermak
9e31c5077d lwip: Document 32 bit NTP timestamp converstion to 64b time_t 2022-09-21 17:38:37 +02:00
Martin Gaňo
567f5f963c fatfsgen.py: use lfn record when forbidden character detected in the file name
The file name is recorded as a LFN when it doesn't fit 8.3 pattern or if it contains characters prohibited in SFN
2022-09-21 15:22:51 +00:00
Martin Vychodil
72de7c512e Merge branch 'bugfix/increase-total-files-in-dir' into 'master'
fatfsgen.py: Increase number of files in directory

Closes IDF-5970

See merge request espressif/esp-idf!20155
2022-09-21 23:22:38 +08:00
Jing Li
db1bbdafea Merge branch 'bugfix/fix_c2_xtal_unstable_when_wakeup_from_sleep' into 'master'
esp_hw_support/esp32c2/rtc: fix c2 xtal unstable when wakeup from sleep

See merge request espressif/esp-idf!20272
2022-09-21 22:53:59 +08:00
Martin Vychodil
4799cc1439 Merge branch 'feature/nvs_partition_parse_tool' into 'master'
tools: NVS partition parser

Closes IDF-4049

See merge request espressif/esp-idf!18107
2022-09-21 22:16:13 +08:00
morris
c99edc6715 mcpwm: make set_compare_value iram safe
Closes https://github.com/espressif/esp-idf/issues/9793
2022-09-21 13:37:49 +00:00
Martin Gaňo
b187fad076 fatfsgen.py: Increase number of files in directory
By starting the ID at the value 1, instead of ord('1') we increase the possible number of files by 49.
2022-09-21 13:30:05 +00:00
cjin
8e348c3f63 update ble controller lib for bugfix on esp32c2 2022-09-21 12:34:41 +00:00
cjin
42a07cf16b fix err using rpa for confirmation calculation 2022-09-21 12:34:41 +00:00
cjin
872baad9b9 mbuf copy hci data error fix 2022-09-21 12:34:41 +00:00
cjin
b345e89b4a fix on data len change cmd malfunction 2022-09-21 12:34:41 +00:00
jingli
04530d7112 esp_hw_support/esp32c2/rtc: take a safer xtal buf wait 2022-09-21 12:27:26 +00:00
Darian
9657e687e4 Merge branch 'feature/freertos_10.4.3_sync_various_functions' into 'master'
FreeRTOS: (Sync v10.4.3) Update various functions (Remerge)

See merge request espressif/esp-idf!20235
2022-09-21 16:04:06 +08:00
Rocha Euripedes
819dae8008 Merge branch 'feature/mqtt_cmakefile_cleanup' into 'master'
Mqtt:  Cmakelists.txt file simplification.

See merge request espressif/esp-idf!19966
2022-09-21 15:21:07 +08:00
Jiang Jiang Jian
a0908b1764 Merge branch 'bugfix/fix_xtal32k_error_detect' into 'master'
esp_hw_support/clk_cali: fix xtal32k error detect

Closes BT-2621 and IDF-5788

See merge request espressif/esp-idf!19500
2022-09-21 13:50:56 +08:00
Gao Xu
1005c3b9d5 Merge branch 'feature/add_flash_copy_to_psram_example' into 'master'
system: add an example showing moving Flash content to PSRAM feature

Closes IDF-5156

See merge request espressif/esp-idf!19340
2022-09-21 12:15:19 +08:00
Rahul Tank
c40fcb1089 Nimble: Re-ordered the function sequence in stack deinit to be reverse of stack init process 2022-09-21 09:40:56 +05:30
wanlei
ee6d3de128 spi_slave: add a flag SPI_SLAVE_NO_RETURN_RESULT to bypass return descriptor from ISR
if using this flag, driver willn't return the trans-done descriptor from ISR, so
`spi_slave_get_trans_result()` shouldn't be called.
besides, callback is the only way to know transaction status in that case, so a
`post_trans_cb` will be checked mandatory.
2022-09-21 11:56:27 +08:00
Ivan Grokhotkov
4a69a3f7ef Merge branch 'feature/cmake_use_new_features' into 'master'
cmake: use features introduced between 3.5 and 3.16

Closes IDF-5955

See merge request espressif/esp-idf!19819
2022-09-21 11:05:06 +08:00
jingli
60c1811433 esp_hw_support/clk_cali: remove redundant check for cali value 2022-09-21 03:03:25 +00:00
jingli
05a2fbe810 esp_hw_support/clk_cali: fix xtal32k error detect 2022-09-21 03:03:25 +00:00
Jiang Jiang Jian
292fe7c57f Merge branch 'bugfix/ble_light_sleep_error_on_esp32c2_master' into 'master'
Bugfix/ble light sleep error on esp32c2 master

Closes BLE-161 and BLE-162

See merge request espressif/esp-idf!20248
2022-09-21 10:53:18 +08:00
morris
65767769a9 esp_rom: migrate ut to pytest 2022-09-21 10:42:13 +08:00
Darian
5f85f507fb Merge branch 'feature/freertos_test_reorganization' into 'master'
FreeRTOS: Add test reorganization guidelines and initial batch of refactored tests

Closes IDF-5997

See merge request espressif/esp-idf!20233
2022-09-21 00:36:51 +08:00
Kapil Gupta
2bbd5ea69c Merge branch 'bugfix/wps_connect_to_open_ap' into 'master'
esp_wifi: bugfix wps connect to open AP

See merge request espressif/esp-idf!20247
2022-09-20 23:59:47 +08:00
Mahavir Jain
44bee0acfd Merge branch 'bugfix/esptool_secure_boot_signing_key_path' into 'master'
esptool: (re)populate the secure boot signing key path

Closes IDFGH-8075

See merge request espressif/esp-idf!20218
2022-09-20 22:26:34 +08:00
Mo Fei Fei
ec680a2a82 Docs: Add CN translation for nvs_partition_parser/README.rst 2022-09-20 14:02:23 +00:00
Matus Fabo
1c6edff560 add: data classes for parsing NVS binary data
add: functions to print formatted NVS data
add: color support via ANSI escape sequences
add: documentation
2022-09-20 14:02:23 +00:00
Jash Gujarathi
ee493e0b45 Merge branch 'bugfix/fix_sta_scan_when_already_connected' into 'master'
esp-wifi: Restores station status to connected when no other AP is found for roam

Closes WIFI-4785

See merge request espressif/esp-idf!20120

\[WiFi\]Fixed the bug that station connected to an AP already connected caused subsequent scan fail.
2022-09-20 20:59:44 +08:00
Kapil Gupta
1cfd20c476 Merge branch 'bugfix/wps_connection_optimization' into 'master'
wpa_supplicant: Use channel from WPS scan for WPS connect

See merge request espressif/esp-idf!20184
2022-09-20 20:09:31 +08:00
Island
cfbdc55717 Merge branch 'bugfix/lpn_not_recv_message_to_all_node' into 'master'
ble_mesh: stack: Add option for lpn auto sub all-nodes

See merge request espressif/esp-idf!19711
2022-09-20 20:03:08 +08:00
Marius Vikhammer
0b0a541c7d Merge branch 'feature/pthread_pytest' into 'master'
pthread: migrate unit tests to pytest test app

Closes IDF-5600

See merge request espressif/esp-idf!20188
2022-09-20 17:58:20 +08:00
Ivan Grokhotkov
66554aa215
cmake: remove unused defines from several host test apps
These macros are seemingly only used in the NVS host test, and are not
necessary in the other host test apps.
2022-09-20 11:35:45 +02:00
Ivan Grokhotkov
c392c06216
cmake: remove -D prefix from COMPILE_DEFINITIONS property
Unlike COMPILE_OPTIONS, COMPILE_DEFINITIONS CMake property assumes
values without the -D prefix, such as NAME or NAME=VAL.
Previously, IDF build system was passing COMPILE_DEFINITIONS build
property to CMake COMPILE_OPTIONS property, so -D prefix was not
a problem.
Now that COMPILE_DEFINITIONS CMake property is used, -D prefix has
to be removed.

(Note that this doesn't affect 'target_compile_definitions' function,
which strips -D prefix before adding the definition to the property.)
2022-09-20 11:08:02 +02:00
Ivan Grokhotkov
237b2ce40c
cmake: use target_link_options and _directories supported since 3.13
Now that the supported CMake version is >=3.16, this code can be
simplified.

The code to deduplicate the directories can be removed since this is
handled by target_link_directories.
2022-09-20 11:08:02 +02:00
Ivan Grokhotkov
72b8ff7f87
cmake: use the ternary generator expressions supported since 3.8
Now that the supported CMake version is >=3.16, this code can be
simplified.
2022-09-20 11:08:02 +02:00
Darian Leung
c126b910b6 freertos: Expand CONFIG_FREERTOS_SMP description
This commit adds more details to the CONFIG_FREERTOS_SMP option's description.
2022-09-20 16:46:43 +08:00
Darian Leung
882515fcef freertos: Add priority scheduling unit tests
This commit adds a priority scheduling unit test to test that the scheduler
always schedules the highest priority ready state task. Single core and SMP
variants of the test are both added.
2022-09-20 16:46:43 +08:00
Darian Leung
188c21319d freertos: Add test reorganization README.md and portTestMacro.h
This commit adds a README.md containing guidelines on how to refactor the
FreeRTOS unit tests for upstreaming. A portTestMacro.h header was also added
which contains port implementation specific macros used by the test cases.
2022-09-20 16:46:43 +08:00
Mahavir Jain
59f79a7b92 Merge branch 'bugfix/parttool_commands_extra_partition_subtypes' into 'master'
parttool: fix parttool commands attribute parsing

Closes IDF-5879

See merge request espressif/esp-idf!20122
2022-09-20 16:22:53 +08:00
Jiang Jiang Jian
19759d5d33 Merge branch 'bugfix/acl_buf_ocf_and_conn_fail' into 'master'
bugfix/fixed the exhaustion of ACL buffer and duplicated connection requests

Closes ESPCS-855

See merge request espressif/esp-idf!19794
2022-09-20 15:12:14 +08:00
Chen Jian Hua
6014e92a8d Merge branch 'bugfix/fix_ble_gen_rpa_by_host' into 'master'
Bluedroid: fix ble rpa generate and update by host

See merge request espressif/esp-idf!19617
2022-09-20 14:49:26 +08:00
zwl
16c8a369e6 fixed wifi can't be connected after enable bt sleep mode 2022-09-20 14:44:00 +08:00
Shreyas Sheth
d12351f7a6 esp_wifi: bugfix wps connect to open AP
Set Mac address in correct field
2022-09-20 11:43:53 +05:30
Wang Meng Yang
02aad58856 Merge branch 'bugfix/fix_ble_disconnect_due_to_channel_map_instant_passed' into 'master'
Fixed BLE disconnection issue when channel map instant passed due to bad channels

Closes BT-2764, BT-2730, and BT-2649

See merge request espressif/esp-idf!20189
2022-09-20 14:13:27 +08:00
harshal.patil
aca27c8db2 parttool: fix extra_partition_subtypes attribute parsing 2022-09-20 11:28:52 +05:30
jgujarathi
9e44dde2cd esp_wifi : updated the wifi lib to fix the printf issue on esp32c2 2022-09-20 05:45:30 +00:00
jgujarathi
b5b1a1f31d esp-wifi : Adds the status connected for station, when the station is already connected to the ap of the same bss- wifi-4785 2022-09-20 05:45:30 +00:00
zwl
f42eed9491 fixed ble can't enter light sleep 2022-09-20 12:08:09 +08:00
Jiang Jiang Jian
9d8d118397 Merge branch 'feature/add_mesh_support_macro' into 'master'
ble_mesh: docs: Remove BLE Mesh related reference for C2

Closes IDF-4215

See merge request espressif/esp-idf!19513
2022-09-20 11:06:25 +08:00
Jiang Jiang Jian
09f7589ef2 Merge branch 'bugfix/fix_extend_adv_tx_pwr_signed_type_err' into 'master'
Fixed extend adv tx power range error

See merge request espressif/esp-idf!20191
2022-09-20 10:45:25 +08:00
Jiang Jiang Jian
7df49f05c3 Merge branch 'bugfix/so_linger_close_wait_forever' into 'master'
lwip: Fix close() might block forever if SO_LINGER=y

Closes IDF-5851

See merge request espressif/esp-idf!20216
2022-09-20 10:44:49 +08:00
morris
6f1d1409d1 Merge branch 'bugfix/tinyusb_corrected_typo_naming_of_acm' into 'master'
tinyusb: fix typo naming of ACM

See merge request espressif/esp-idf!20212
2022-09-20 10:31:21 +08:00
Darian Leung
7e49d67bad freertos: Move some port functions into flash by default
This commit places some functions in port.c and port_common.c into flash by
default. These functions are mostly called once during startup, thus shouldn't
affect applications much when placed into flash instead of the default IRAM.
2022-09-19 23:35:25 +08:00
Darian Leung
aa5d74410b freertos: Synchronize tasks.c functions (minor changes) to v10.4.3
This commit synchronizes multiple functions in tasks.c with upstream v10.4.3
that contain minor differences.

The following functions have had their parameter names or code formatting
updated:

- xTaskCreateStaticPinnedToCore()
- xTaskCreatePinnedToCore()
- prvInitialiseNewTask()
- prvTaskIsTaskSuspended()
- vTaskStartScheduler()
- xTaskResumeAll()
- xTaskCheckForTimeOut()
- uxTaskResetEventItemValue()

The following functions have had their missing "xAlreadyYielded" restored

- xTaskDelayUntil()
- vTaskDelay()

The following functions have had their critical section/interrupt disdable
usage update

- vTaskSuspendAll()
- xTaskGetTickCountFromISR()
- xTaskGetApplicationTaskTagFromISR()
2022-09-19 21:30:52 +08:00
Darian Leung
5742c194e1 freertos: Synchronize tasks.c functions (major changes) to v10.4.3
This commit synchronizes multiple functions that contain major differences with
upstream v10.4.3. Multi-core modifications are then reapplied to the function.

Vanilla code uses "pxTCB == pxCurrentTCB" to check whether a task is currently
running. This commit adds the following macros instead.

- taskIS_CURRENTLY_RUNNING()
- taskIS_CURRENTLY_RUNNING_ON_CORE()

The following functions have been updated to use those macros instead.

- eTaskGetState()
- vTaskPrioritySet()
- vTaskResume()

The following functions have been synchronized with upstream v10.4.3.
Multi-core modifications are then reapplied.

- vTaskSuspend()
- vTaskDelete()
- prvGetExpectedIdleTime()
2022-09-19 21:30:47 +08:00
Darian Leung
15d8fc0722 freertos: Restore xAlreadyYielded usage in event_groups
This commit restores xAlreadyYielded in various event_group functions to
synchronize with upstream v10.4.3.
2022-09-19 21:30:43 +08:00
Darian Leung
5352ba06fa freertos: Synchronize xStreamBufferSend() to v10.4.3
This commit synchronizes xStreamBufferSend() with upstream v10.4.3.
2022-09-19 21:30:38 +08:00
Darian Leung
77f2eba57e freeRTOS: Synchronize queue functions to v10.4.3
This commit synchronizes multiple functions in queue.c with upstream v10.4.3.
Multi-core modifications are then reapplied to these functions. The following
functions were modified:

prvNotifyQueueSetContainer()
xQueueGenericCreateStatic()
xQueueGenericCreate()
xQueueGetMutexHolder()
xQueueCreateCountingSemaphoreStatic()
xQueueCreateCountingSemaphore()
xQueueGenericSend()
xQueueGenericSendFromISR()
xQueueReceiveFromISR()
uxQueueMessagesWaiting()
prvUnlockQueue()
prvIsQueueFull()
xQueueAddToSet()
xQueueRemoveFromSet()
prvNotifyQueueSetContainer()

Note: The SEGGER_SYSVIEW traceQUEUE_SEND() macro was updated as the
      xCopyPosition argument is no longer available in scenarios where the
      macro is called.
2022-09-19 21:30:32 +08:00
Island
728654a6d4 Merge branch 'bugfix/memory_leak_init_deinit_blufi_example' into 'master'
Fix: blufi example memory leak while init and deinit

Closes BT-2798

See merge request espressif/esp-idf!20196
2022-09-19 20:28:07 +08:00
Marius Vikhammer
46c092c04a pthread: migrate unit tests to pytest test app 2022-09-19 17:43:33 +08:00
Jiang Jiang Jian
5aeba87e51 Merge branch 'bugfix/change_mblock_size_on_esp32c2' into 'master'
change block1 size and num for esp ble controller

Closes BLE-157

See merge request espressif/esp-idf!20183
2022-09-19 17:21:53 +08:00
Euripedes Rocha
736424c366 [MQTT] Simplifies MQTT CMakeLists file
- Uses mocks from tools instead of creating them.
- Move host based definition to test code.
2022-09-19 09:11:15 +00:00
Mahavir Jain
64129c2e51 Merge branch 'ci/migrate_mbedtls_unit_test_app' into 'master'
ci: Migrate mbedtls unit tests from unit-test-app to component-test-app

Closes IDF-5593

See merge request espressif/esp-idf!19783
2022-09-19 16:52:02 +08:00
Mahavir Jain
ca851c87cf
esptool: (re)populate the secure boot signing key path
For project with reduced component list, secure boot signing key
path was not getting correctly. This change sets the secure boot
signing key path explicitly based on the relevant config option.

Closes https://github.com/espressif/esp-idf/issues/9578
Close IDFGH-8075
2022-09-19 11:43:34 +05:30
Marius Vikhammer
cb48a7b9f9 Merge branch 'feature/ulp_fsm_adc_s3' into 'master'
ulp-fsm: Update ulp-fsm ADC example with S3 support

Closes IDFGH-6299

See merge request espressif/esp-idf!19924
2022-09-19 14:08:33 +08:00
David Cermak
4959b0a213 lwip: Fix close() might block forever if SO_LINGER=y
* Update submodule: git log --oneline ec115c720b8909364ec5898dc5cc430cc898192d..316cfc17ce24f2d5d65c9f28251ec43a59a74cb1

Detailed description of the changes:
  - tcp/close: Fix clean socket closure when lignering (espressif/esp-lwip@316cfc17)
  - tcp_in: Fix incomplete closure if linger active (espressif/esp-lwip@8b599aa1)
  - ci: Introduce lwip test apps (espressif/esp-lwip@0866f578)
2022-09-19 07:21:21 +02:00
satish.solanke
77b8276578 Fix: blufi example memory leak while init and deinit 2022-09-19 10:17:50 +05:30
gaoxu
0909f5b230 system: don't disable cache if Flash .text and .rodata are moved to PSRAM 2022-09-19 12:23:23 +08:00
chenjianhua
940ee1f7f4 fix ble adv tx power map 2022-09-19 12:02:40 +08:00
jiangguangming
e147629a02 tinyusb: fix typo naming of ACM 2022-09-19 11:49:21 +08:00
Marius Vikhammer
29830f609d Merge branch 'docs/misc_broken_link_fixes' into 'master'
docs: fixed misc broken links

See merge request espressif/esp-idf!20208
2022-09-19 10:58:58 +08:00
Marius Vikhammer
8540e7a772 docs: fixed misc broken links 2022-09-18 15:03:39 +08:00
Island
f25af53077 Merge branch 'bugfix/relay_friend_cred_message' into 'master'
ble_mesh: stack: Fix friend relay lpn message when relay disable.

See merge request espressif/esp-idf!19753
2022-09-18 14:31:05 +08:00
harshal.patil
317eeddce4
fix: memory leaks check added 2022-09-17 14:31:36 +05:30
harshal.patil
146f101289
ci: Migrate mbedtls unit tests from unit-test-app to component-test-app 2022-09-17 14:31:36 +05:30
morris
a2c132c5c3 Merge branch 'docs/update_wakeup_gpio_esp32s2_esp32s3' into 'master'
docs: update gpios serving as wakeup source in esp32s2 and esp32s3

Closes DOC-3461

See merge request espressif/esp-idf!20161
2022-09-17 16:25:29 +08:00
morris
f6eba4ccfe gpio_sdm: bring up SDM driver on esp32c6 2022-09-17 16:15:56 +08:00
morris
b562754a2f rmt: support esp32c6 2022-09-17 04:56:49 +00:00
morris
c71bd0e4fa rmt: disable rc_fast clock when it's used up 2022-09-17 04:56:49 +00:00
Martin Gano
e9d7340f3b Merge branch 'bugfix/fatfsgen-enable-multiple-dots' into 'master'
fatfsgen.py: Enable multiple dots in lfn filename

Closes IDF-5969

See merge request espressif/esp-idf!20153
2022-09-17 01:27:43 +08:00
Kevin (Lao Kaiyao)
740a8b5729 Merge branch 'test/add_i2s_tdm_full_duplex_test_app' into 'master'
test: add i2s tdm full duplex multi device test app

Closes IDFGH-8003

See merge request espressif/esp-idf!19904
2022-09-17 00:57:21 +08:00
Darian
03b25c6a0d Merge branch 'bugfix/riscv_interrupt_function_naming' into 'master'
riscv: Fix interrupt function naming and redundancy

See merge request espressif/esp-idf!19251
2022-09-17 00:33:33 +08:00
Darian
6d29411db6 Merge branch 'refactor/rename_usb_host_hal_to_dwc2' into 'master'
USB Host: Rename struct/ll/hal file and functions to use "usb_dwc" prefix

See merge request espressif/esp-idf!20033
2022-09-17 00:23:44 +08:00
zwj
f95c347013 update BLE lib for ESP32C3 and ESP32S3
Fixed BLE disconnection issue when channel map update failed due to bad channels
2022-09-16 21:25:22 +08:00
Jiang Jiang Jian
cef946eea6 Merge branch 'bugfix/fix_send_eapol_key_request_frame_when_wpa_group_handshake_issue' into 'master'
Bugfix/fix send eapol key request frame when wpa group handshake issue

Closes ESPCS-842, IDFGH-6592, and IDFGH-5563

See merge request espressif/esp-idf!19905
2022-09-16 20:34:40 +08:00
Martin Gaňo
53c2ea2d08 fatfsgen.py: enable multiple dots in the long file name 2022-09-16 13:50:12 +02:00
wangjialiang
6e79d05814 ble_mesh: docs: Remove BLE Mesh related reference for C2 2022-09-16 19:39:51 +08:00
Linda
4723974419 docs: update gpios serving as wakeup source in esp32s2 and esp32s3 2022-09-16 11:23:53 +00:00
Martin Vychodil
952c0f7b23 Merge branch 'bugfix/fatfsparse-fix-ignoring-first-file' into 'master'
fatfsparse.py: Fixed ignoring first file in directory

Closes IDF-5968

See merge request espressif/esp-idf!20145
2022-09-16 19:14:01 +08:00
laokaiyao
af0c0bd8ce i2s: fix the data lagging of slave role
Closes https://github.com/espressif/esp-idf/issues/9513
2022-09-16 18:45:02 +08:00
wangyuanze
4d0ac129b4 test: add i2s tdm full duplex multi device test app 2022-09-16 18:45:02 +08:00
Zim Kalinowski
d9df69e815 Merge branch 'feature/bootloader_pytest' into 'master'
bootloader support: move unit tests to pytest

Closes IDF-5566

See merge request espressif/esp-idf!20157
2022-09-16 17:35:06 +08:00
chenjianhua
8598610ccd bluedroid: fix ble rpa generate and update by host 2022-09-16 16:54:58 +08:00
Darian Leung
abf0bc13e6 riscv: Fix esprv_intc_int_set_threshold() naming
This commit fixes the function declaration naming from esprv_intc_set_threshold()
to esprv_intc_int_set_threshold(), thus allowing the underlying ROM funciton to be
exposed via the header.
2022-09-16 16:45:43 +08:00
Darian Leung
0c97fbd5ba riscv: Remove redundant riscv_interrupts.h header
This commit removes the riscv_interrupts.h header is it has become redundant. The previously
exposed API has been handled as follows:

- "riscv_interrupt_enable()" and "riscv_interrupt_disable()" have been removed. These functions
  were declarations only and never had any implementation.
- "riscv_global_interrupts_enable()" and "riscv_global_interrupts_disable()" renamed to
  "rv_utils_intr_global_enable()" and "rv_utils_intr_global_disable()" respectively and now
  placed in rv_utils.h
2022-09-16 16:45:43 +08:00
Darian Leung
d333833f59 usb_host: Rename struct/ll/hal symbols to use "usb_dwc" prefix
Following the file renaming to use the "usb_dwc" prefix, this commit
updates the symbol names of those files to use the "usb_dwc" as well.

Some LL functions were also renamed so that the register name is
mentioned.
2022-09-16 16:45:26 +08:00
Darian Leung
d8d4e3acb0 usb_host: Rename struct/ll/hal files to use "usb_dwc" prefix
This commit updates the DWC_OTG based struct/ll/hal file names to
use the prefix "usb_dwc". This naming scheme reduces ambiguity if
another USB controller implementation is added.

As a result, "hcd.c" has been renamed to "hcd_dwc.c"
2022-09-16 16:45:26 +08:00
Fu Hanxi
a42849f63c Merge branch 'test/test_adc_on_dedicated_runners' into 'master'
ci: use adc dedicated test runners

See merge request espressif/esp-idf!19164
2022-09-16 15:58:36 +08:00
zwj
e9f4a4e92d Fixed extend adv tx power range error 2022-09-16 15:45:40 +08:00
Mahavir Jain
961bdde289 Merge branch 'ci/migrate_esp-tls_unit_test_app' into 'master'
ci: Migrate esp-tls unit tests from unit-test-app to component-test-app

Closes IDF-5571

See merge request espressif/esp-idf!20099
2022-09-16 14:34:44 +08:00
morris
e8a356ec91 Merge branch 'feature/esp32c6_fast_gpio_bringup' into 'master'
fast_gpio: bring up fast gpio driver on esp32c6

Closes IDF-5331

See merge request espressif/esp-idf!20159
2022-09-16 14:17:40 +08:00
Jiang Jiang Jian
f03ec22327 Merge branch 'bugfix/fix_vhci_hack_for_external_bt' into 'master'
Nimble: Added check to not include VHCI buffer handling code if controller support is disabled

See merge request espressif/esp-idf!19876
2022-09-16 14:16:52 +08:00
Kapil Gupta
3c5c108fa8 wpa_supplicat: Use same channel as found in WPS scan for WPS connect 2022-09-16 10:58:03 +05:30
Kevin (Lao Kaiyao)
04b4bc6cb5 Merge branch 'feature/support_i2s_on_esp32c6' into 'master'
i2s: support i2s on esp32c6

See merge request espressif/esp-idf!19989
2022-09-16 12:31:24 +08:00
Armando
7be7a3e996 esp_adc: added comments to c3 test thresh, also sync to legacy tests 2022-09-16 03:21:29 +00:00
Armando
eee5085281 ci: use adc dedicated test runners for adc tests 2022-09-16 03:21:29 +00:00
Omar Chebib
4f1a9e436e Merge branch 'feature/add_int_task_wdt_esp32c2' into 'master'
WDT: implement interrupt wdt and task wdt for ESP32-C2

Closes IDF-4035, IDF-4205, and IDF-5055

See merge request espressif/esp-idf!18918
2022-09-16 10:43:34 +08:00
Martin Gaňo
26f7f105c3 fatfsparse.py: Fixed ignoring first file in directory
Closes IDF-5968
2022-09-15 19:38:39 +02:00
Martin Vychodil
1146b83bf1 Merge branch 'feature/detect-wl-automatically' into 'master'
fatfsparse.py: enable automatic WL detection

Closes IDF-5903

See merge request espressif/esp-idf!20076
2022-09-16 00:23:50 +08:00
laokaiyao
bae4944b90 i2s: bringup i2s on esp32c6 2022-09-15 20:03:39 +08:00
Martin Vychodil
f644d71d26 Merge branch 'bugfix/fatfsgen-add-name-termination' into 'master'
fatfsgen.py: fixed missing NULL terminator

Closes IDF-5964

See merge request espressif/esp-idf!20130
2022-09-15 19:58:27 +08:00
laokaiyao
7197e987cb i2s: add XTAL clock source 2022-09-15 19:32:06 +08:00
morris
77ce37f235 Merge branch 'feature/check_mcpwm_sync_direction' into 'master'
mcpwm: check sync direction is valid

See merge request espressif/esp-idf!20134
2022-09-15 19:05:57 +08:00
Martin Gaňo
30dd0fbf30 fatfsparse.py: enable automatic WL detection 2022-09-15 10:51:48 +00:00
wangjialiang
5242f63080 ble_mesh: stack: Add option for lpn auto sub all-nodes. 2022-09-15 09:34:13 +00:00
wangjialiang
f736d9cb3f ble_mesh: stack: Fix friend relay lpn message when relay disable. 2022-09-15 09:27:10 +00:00
Mahavir Jain
98747ceeb6 Merge branch 'bugfix/fix_custom_certificate_test_case' into 'master'
mbedtls: fix custom certificate bundle test case

See merge request espressif/esp-idf!19758
2022-09-15 15:33:00 +08:00
Marius Vikhammer
7cef82e0df bootloader support: move unit tests to pytest 2022-09-15 15:19:42 +08:00
Omar Chebib
6798bfc4b0 TWDT: the Kconfig option ESP_TASK_WDT_EN is now used to enable Task Watchdog 2022-09-15 14:37:59 +08:00
Omar Chebib
30d12af191 TWDT: refactor the TWDT to be driver agnostic
This refactoring brings a private API for the TWDT implementation, which
can now use a hardware timer (Timer Group) or a software timer (esp_timer)
2022-09-15 14:37:59 +08:00
Omar Chebib
53c7dd4efc WDT: implement interrupt wdt and task wdt for ESP32-C2
ESP32-C2 has a single group timer, thus it will use it for the interrupt watchdog,
which is more critical than the task watchdog. The latter is implement in
software thanks to the `esp_timer`component.
2022-09-15 14:37:59 +08:00
morris
fd325c9fa2 fast_gpio: bring up fast gpio driver on esp32c6 2022-09-15 11:02:31 +08:00
Martin Gaňo
131b28314e fatfsgen.py: fixed missing NULL terminator 2022-09-14 16:55:13 +02:00
morris
5f550b2a13 rmt,gptimer: don't support rc_fast clock source for c6 and h2
The RC_FAST clock source on ESP32C6 and ESP32H2 can't be calibrated.
Which makes it impossible to work stable for peripherals like timer, RMT
2022-09-14 14:40:28 +00:00
zwl
9f940f14f6 change block1 size and num for esp ble controller 2022-09-14 20:02:09 +08:00
Harshit Malpani
d78fddd81a
mbedtls: fix custom certificate bundle test case 2022-09-14 14:20:29 +05:30
morris
52576faa9e Merge branch 'bugfix/update_esp_rom_c6_caps' into 'master'
esp_rom: update esp32c6 rom caps

See merge request espressif/esp-idf!20133
2022-09-14 15:01:39 +08:00
harshal.patil
aaf8b5d98e ci: Migrate esp-tls unit tests from unit-test-app to component-test-app 2022-09-14 12:03:49 +05:30
morris
1fc458b3f7 mcpwm: check sync direction is valid 2022-09-14 11:49:37 +08:00
Simon
2f13368c63 Merge branch 'feature/gd_e_hpm_support' into 'master'
spi_flash: Add GD25QxxE and ZBit flash HPM(120M) support

Closes IDF-5848

See merge request espressif/esp-idf!19741
2022-09-14 11:16:08 +08:00
jiangguangming
b2a1b13958 esp_rom: update esp32c6 rom caps 2022-09-14 10:38:54 +08:00
Wan Lei
f7748beb4d Merge branch 'bugfix/spi2_add_device_cs_more_than_3' into 'master'
spi_master: fix error when use `spi_bus_add_device` add more than 3 devices

Closes IDFGH-7288

See merge request espressif/esp-idf!19798
2022-09-14 10:33:37 +08:00
Ivan Grokhotkov
16dbb8f249 Merge branch 'feature/ulp_binutils_multi_target' into 'master'
ulp: support the new multi-target ULP-FSM binutils

Closes IDFGH-4618

See merge request espressif/esp-idf!19818
2022-09-13 21:35:53 +08:00
wanlei
241f182408 spi_master: add test for spi_bus_add_device() more than 3 device
1.add 6 devices freely to check master can mount 6 devices
2.replace each one by a real device to check they can work
2022-09-13 19:20:07 +08:00
Zim Kalinowski
889b5fbea3 Merge branch 'bugfix/fix_tlsf_patch_esp32c2' into 'master'
TLSF: fix the patch for tlsf_check function in ROM

Closes IDFCI-1442 and IDFCI-1441

See merge request espressif/esp-idf!19839
2022-09-13 18:32:40 +08:00
Cao Sen Miao
421e77d773 spi_flash: Add several flash chips HPM(120M) support 2022-09-13 17:06:43 +08:00
Alexey Lapshin
a9bd454529 tools: update esp32ulp-elf to v2.35_20220830
Closes https://github.com/espressif/esp-idf/issues/6432
Closes https://github.com/espressif/binutils-esp32ulp/issues/23
2022-09-13 12:55:48 +04:00
Mahavir Jain
f684ab62e5 Merge branch 'feature/esp_http_client_support_setting_server_common_name' into 'master'
tcp_transport: Add support of setting the common name for the TLS

Closes IDFGH-8194

See merge request espressif/esp-idf!20102
2022-09-13 16:06:46 +08:00
Song Ruo Jing
0b048387bc Merge branch 'test/move_rtcio_test_to_test_app' into 'master'
rtcio: Move unit test to gpio test_apps

Closes IDF-5618

See merge request espressif/esp-idf!19919
2022-09-13 14:33:42 +08:00
Kevin (Lao Kaiyao)
8880d38522 Merge branch 'bugfix/add_error_check_for_esptimer_in_touch_sensor' into 'master'
touch_sensor: add esp_timer error check

Closes IDF-5905

See merge request espressif/esp-idf!20072
2022-09-13 14:09:18 +08:00
Aditya Patwardhan
4904d57fd9 esp_http_client: Added support to set server common name. 2022-09-13 05:31:43 +00:00
Aditya Patwardhan
ce32183749 tcp_transport: Add support of setting the common name fot the TLS
context
2022-09-13 05:31:43 +00:00
wangyuanze
ad8d6cdedd rtcio: Move rtcio test cases from unit-test-app to gpio test_app, and enable the tests for ESP32S3 2022-09-13 12:13:51 +08:00
Song Ruo Jing
de0401047c rtcio: Disable USB Serial JTAG pad when setting pins 19 and 20 as RTC function on ESP32S3
Similar to the fix in gpio lower layers, USB Serial JTAG pad should be disabled when the DM and DP pins want to be used as rtcio pins.
2022-09-13 12:13:51 +08:00
morris
a1030307f1 gptimer: bringup driver on esp32c6 2022-09-13 10:50:58 +08:00
Martin Gano
890a84dcc4 Merge branch 'bugfix/fix-corrpted-content-full-partition' into 'master'
fatfsparse.py: Limit the file content size to correct number

Closes IDF-5947

See merge request espressif/esp-idf!20048
2022-09-13 05:46:26 +08:00
Martin Vychodil
56f2001317 sdmmc/sdspi: allow custom setup of SD card frequency
In order to allow flexible setup of SD card frequency, sdmmc_host_t.max_freq_khz is used as a limit

Closes https://github.com/espressif/arduino-esp32/issues/6225
2022-09-12 17:08:36 +02:00
radek.tandler
723adae0ec spiffs: convert host tests from Make to CMake 2022-09-12 14:14:09 +00:00
Martin Gaňo
37178dfa74 fatfsparse.py: limit the file content size to correct number 2022-09-12 14:13:03 +00:00
Ivan Grokhotkov
0332b8db07 Revert "Merge branch 'feature/freertos_10.4.3_sync_various_functions' into 'master'"
This reverts merge request !19761
2022-09-12 19:53:09 +08:00
Dai Zi Yan
3ca44d4d0f Merge branch 'docs/update_get-started' into 'master'
docs: updated gpio and sync up line numbers

Closes DOC-3350 and DOC-3390

See merge request espressif/esp-idf!19959
2022-09-09 17:24:32 +08:00
Darian
c575dec8f3 Merge branch 'feature/freertos_10.4.3_sync_various_functions' into 'master'
freeRTOS: (Sync v10.4.3) Update various functions

See merge request espressif/esp-idf!19761
2022-09-09 15:53:44 +08:00
Armando (Dou Yiwen)
2c2384e39c Merge branch 'bugfix/fix_spi_bus_lock_concurrency_issue' into 'master'
spi_bus_lock: fix a concurrency bug

Closes IDFGH-6528

See merge request espressif/esp-idf!19925
2022-09-09 15:42:24 +08:00
laokaiyao
91c2928ff5 touch_sensor: add esp_timer error check 2022-09-09 14:59:42 +08:00
daiziyan
49aaea7509 docs: updated gpio and sync up line numbers 2022-09-09 02:39:35 +00:00
gaoxu
5934ba731e SPI: Fix SPI wrong dummy bits on ESP32H2 2022-09-09 01:54:53 +00:00
morris
96d03461ae Merge branch 'feature/esp32c6_bringup_pcnt' into 'master'
pcnt: support esp32c6

Closes IDF-5806

See merge request espressif/esp-idf!19882
2022-09-09 08:58:16 +08:00
Martin Gano
99f836e07a Merge branch 'feature/fatfsparse-enable-automatic-detection-wl-lfn' into 'master'
fatfsparse.py: enable automatic detection of lfn

Closes IDF-5622

See merge request espressif/esp-idf!20007
2022-09-09 01:10:43 +08:00
Omar Chebib
3ffa2ad39c Merge branch 'feature/bootloader_date_log' into 'master'
Bootloader: print date and time to the banner on boot

Closes IDFGH-8229

See merge request espressif/esp-idf!20002
2022-09-08 22:39:18 +08:00
Tomas Rezucha
cf59a8a2bd Merge branch 'feature/usb_v5_qol' into 'master'
usb: USB IDF v5 update

Closes IDF-4690 and IDF-5767

See merge request espressif/esp-idf!19875
2022-09-08 19:50:22 +08:00
Island
71bc1a28cc Merge branch 'fix/DOC_3566' into 'master'
Updating doc for the issue doc_3566

Closes DOC-3566

See merge request espressif/esp-idf!19971
2022-09-08 19:27:18 +08:00
Jiang Jiang Jian
e2f57ecff1 Merge branch 'bugfix/fix_some_ble_bugs_on_esp32c3_and_esp32s3' into 'master'
Fixed some BLE controller bugs on ESP32-C3 and ESP32-S3

Closes BT-2760, BT-2733, BT-2687, BT-2588, BT-2574, BT-2470, and BT-2355

See merge request espressif/esp-idf!19970
2022-09-08 18:52:40 +08:00
morris
6539aa2275 pcnt: support esp32c6 2022-09-08 18:26:04 +08:00
Martin Gaňo
72acbeb921 fatfsparse.py: enable automatic detection of lfn 2022-09-08 10:53:04 +02:00
Omar Chebib
3a429b8b7a Bootloader: print date and time to the banner on boot
* Closes https://github.com/espressif/esp-idf/issues/9718
2022-09-08 06:08:49 +00:00
Rahul Tank
95c057861d Nimble: Added check to not include VHCI buffer handling code if
controller support is disabled
2022-09-08 05:52:34 +00:00
morris
892437d829 Merge branch 'bugfix/fix_touch_test_wdt_timeout' into 'master'
touch_sensor: fixed timer period

Closes IDFCI-1454

See merge request espressif/esp-idf!20018
2022-09-08 13:17:33 +08:00
morris
aa6408502a Merge branch 'bugfix/wrong_bpp_for_rgb666' into 'master'
lcd: fix wrong bpp size of rgb666 format

Closes IDFGH-8241

See merge request espressif/esp-idf!20000
2022-09-08 12:36:02 +08:00
Island
a3b7751981 Merge branch 'bugfix/adapt_new_btc' into 'master'
ble_mesh: stack: Corrected parameter size when the btc_transfer_context is used

See merge request espressif/esp-idf!19964
2022-09-08 11:27:22 +08:00
Jiang Jiang Jian
735063c508 Merge branch 'bugfix/fix_ble_get_cur_pkt_num_crash_sometimes_when_bluetooth_is_disconnecting' into 'master'
Fixed calling esp_ble_get_cur_sendable_packets_num() sometimes crashes when bluetooth is disconnecting

Closes BT-2699

See merge request espressif/esp-idf!19993
2022-09-08 10:41:47 +08:00
Darian Leung
bb5e189d2b freertos: Synchronize tasks.c functions (minor changes) to v10.4.3
This commit synchronizes multiple functions in tasks.c with upstream v10.4.3
that contain minor differences.

The following functions have had their parameter names or code formatting
updated:

- xTaskCreateStaticPinnedToCore()
- xTaskCreatePinnedToCore()
- prvInitialiseNewTask()
- prvTaskIsTaskSuspended()
- vTaskStartScheduler()
- xTaskResumeAll()
- xTaskCheckForTimeOut()
- uxTaskResetEventItemValue()

The following functions have had their missing "xAlreadyYielded" restored

- xTaskDelayUntil()
- vTaskDelay()

The following functions have had their critical section/interrupt disdable
usage update

- vTaskSuspendAll()
- xTaskGetTickCountFromISR()
- xTaskGetApplicationTaskTagFromISR()
2022-09-07 23:34:52 +08:00
Darian Leung
d382a2c952 freertos: Synchronize tasks.c functions (major changes) to v10.4.3
This commit synchronizes multiple functions that contain major differences with
upstream v10.4.3. Multi-core modifications are then reapplied to the function.

Vanilla code uses "pxTCB == pxCurrentTCB" to check whether a task is currently
running. This commit adds the following macros instead.

- taskIS_CURRENTLY_RUNNING()
- taskIS_CURRENTLY_RUNNING_ON_CORE()

The following functions have been updated to use those macros instead.

- eTaskGetState()
- vTaskPrioritySet()
- vTaskResume()

The following functions have been synchronized with upstream v10.4.3.
Multi-core modifications are then reapplied.

- vTaskSuspend()
- vTaskDelete()
- prvGetExpectedIdleTime()
2022-09-07 23:34:52 +08:00
Darian Leung
9b5392e8e8 freertos: Restore xAlreadyYielded usage in event_groups
This commit restores xAlreadyYielded in various event_group functions to
synchronize with upstream v10.4.3.
2022-09-07 23:34:52 +08:00
Darian Leung
c6b054693b freertos: Synchronize xStreamBufferSend() to v10.4.3
This commit synchronizes xStreamBufferSend() with upstream v10.4.3.
2022-09-07 23:34:52 +08:00
Darian Leung
48e03e4cbd freeRTOS: Synchronize queue functions to v10.4.3
This commit synchronizes multiple functions in queue.c with upstream v10.4.3.
Multi-core modifications are then reapplied to these functions. The following
functions were modified:

prvNotifyQueueSetContainer()
xQueueGenericCreateStatic()
xQueueGenericCreate()
xQueueGetMutexHolder()
xQueueCreateCountingSemaphoreStatic()
xQueueCreateCountingSemaphore()
xQueueGenericSend()
xQueueGenericSendFromISR()
xQueueReceiveFromISR()
uxQueueMessagesWaiting()
prvUnlockQueue()
prvIsQueueFull()
xQueueAddToSet()
xQueueRemoveFromSet()
prvNotifyQueueSetContainer()

Note: The SEGGER_SYSVIEW traceQUEUE_SEND() macro was updated as the
      xCopyPosition argument is no longer available in scenarios where the
      macro is called.
2022-09-07 23:34:52 +08:00
laokaiyao
586a14af63 touch_sensor: fixed timer period 2022-09-07 19:13:39 +08:00
Mahavir Jain
38c0740509 Merge branch 'bugfix/http_server_sess_count' into 'master'
http_server: Increment active socket count for SSL session

Closes IDFGH-8188

See merge request espressif/esp-idf!19991
2022-09-07 18:09:58 +08:00
satish.solanke
50ec07c45d updating doc for the issue doc_3566 2022-09-07 15:05:49 +05:30
Marius Vikhammer
77ba84eeb7 ulp-fsm: Update ulp-fsm ADC example with S3 support
Closes https://github.com/espressif/esp-idf/issues/7963
2022-09-07 16:48:06 +08:00
Armando (Dou Yiwen)
ee2ae1d589 Merge branch 'contrib/github_pr_9715' into 'master'
adc: esp32s2: fix unit to offset calculation (GitHub PR)

Closes IDFGH-8226 and IDFGH-8212

See merge request espressif/esp-idf!19969
2022-09-07 13:58:57 +08:00
morris
8e2d307c52 lcd: fix wrong bpp size of rgb666 format
Closes https://github.com/espressif/esp-idf/issues/9729
2022-09-07 13:22:20 +08:00
Laukik Hase
463b02eeec
http_server: Increment active socket count for SSL session
- The callback `open_fn` is used for creating a new SSL session
  with httpd_sess_new.
- If the call fails, the active socket count (httpd_data->hd_sd_active_count)
  is not incremented. But, httpd_sess_delete is called, which decrements the
  count, resulting in a negative value for several failed session creations
  in a row.

Closes https://github.com/espressif/esp-idf/issues/9683
2022-09-07 10:27:22 +05:30
zwj
c6b7bbdab9 Update ESP32-C3 and ESP32-S3 BLE lib
- Fixed the performance issue of usage of PLL track related baseband IRQsFixed the performance issue of BLE sync scan in coexistence scenario when PLL track is enabled
    - Fixed connect failed due to error sync found signal
    - Fixed BLE disconnect failed due to terminate_ind have sent but no ACK is received
    - Added ADV mode error check in ADV rx isr handler function
    - Fixed BLE RAL_UNDERRUN and TX_CRYPT_ERR assert
    - Disable scan continue
    - Fixed scan forever if scan continue is disable
2022-09-07 12:20:01 +08:00
Jiang Jiang Jian
15e0606ca0 Merge branch 'bugfix/esp32c2_rom_aes_128_cmac_decrypt' into 'master'
esp_wifi: Remove ieee80211_crypto_aes_128_cmac_decrypt from esp32c2 rom

See merge request espressif/esp-idf!19929
2022-09-07 12:10:29 +08:00
Wang Meng Yang
a026d9816a Merge branch 'feature/sink_support_mono' into 'master'
bt: Fixed sink not being able to output mono audio because it can only decode dual channel audio data

Closes BT-2698

See merge request espressif/esp-idf!19759
2022-09-07 11:59:57 +08:00
Simon
c6610ec4c2 Merge branch 'bugfix/fix_the_duplicated_type_name_in_i2s' into 'master'
i2s: fix the duplicated type name in i2s

Closes IDF-5891

See merge request espressif/esp-idf!19960
2022-09-07 10:53:28 +08:00
Rahul Tank
639612269e Merge branch 'bugfix/fix_data_overwrite' into 'master'
Nimble: Add extra allocation for data pointer returned by controller for ESP IP

See merge request espressif/esp-idf!19861
2022-09-07 00:43:03 +08:00
zwj
2942a98f5d fix calling esp_ble_get_cur_sendable_packets_num() sometimes crashes when bluetooth is disconnecting 2022-09-06 21:12:30 +08:00
Pavlo Hamov
726e985b34 adc: esp32s2: fix unit to offset calculation
eFuse offset is screwed up on 4.4 to 5.0 transition

Closes https://github.com/espressif/esp-idf/issues/9705
Closes https://github.com/espressif/esp-idf/pull/9715
2022-09-06 20:35:39 +08:00
morris
885b25d775 Merge branch 'feature/add_esp32c6_esp_system_support' into 'master'
ESP32C6: Add esp_system related support

See merge request espressif/esp-idf!19923
2022-09-06 19:24:42 +08:00
Kevin (Lao Kaiyao)
e55464c26e Merge branch 'bugfix/touch_sensor_v1_timer_expired_after_deleted' into 'master'
touch_senser: fixed ci issue timer expired after it is deleted

Closes IDFCI-1426

See merge request espressif/esp-idf!19850
2022-09-06 18:24:12 +08:00
Rahul Tank
730b932de0 Nimble: Add extra allocation for data pointer returned by controller for ESP IP 2022-09-06 15:15:21 +05:30
wuzhenghui
308e4dcbfa esp32c6: add esp_timer support 2022-09-06 09:13:20 +00:00
wuzhenghui
ab09c07fdd esp32c6: add esp_system support 2022-09-06 09:13:20 +00:00
wuzhenghui
c5d8e94898 freertos, ulp: Fix header inclusion to be compatible with new esp32c6 target 2022-09-06 09:13:20 +00:00
Armando
3c8f6dd1cf SPI_BUS_LOCK: fix a concurrency issue
define: lock_bits = (lock->status & LOCK_MASK) >> LOCK_SHIFT;  This `lock_bits` is the Bit 29-20 of the lock->status

1. spi_hdl_1:
   acquire_end_core():
   uint32_t status = lock_status_clear(lock, dev_handle->mask & LOCK_MASK);
   Becuase this is the first `spi_hdl_1`, so after this , lock_bits == 0`b0. status == 0

2. spi_hdl_2:
   acquire_core:
   uint32_t status = lock_status_fetch_set(lock, dev_handle->mask & LOCK_MASK);
   Then here status is 0`b0, but lock_bits == 0`b10. Because this is the `spi_hdl_2`

3. spi_hdl_2:
   `acquire_core` return true, because status == 0. `spi_bus_lock_acquire_start(spi_hdl_2)` then won't block.

4. spi_hdl_2:
   spi_device_polling_end(spi_hdl_2).

5. spi_hdl_1:
   acquire_end_core:
   status is 0, so it cleas the lock->acquiring_dev

6. spi_hdl_2:
   spi_device_polling_end:
   assert(handle == get_acquiring_dev(host)); Fail

Closes https://github.com/espressif/esp-idf/issues/8179
2022-09-06 16:59:02 +08:00
Sudeep Mohanty
867745a05c Merge branch 'feature/ulp-rtc-i2c-driver-support' into 'master'
ulp: Added support for RTC I2C driver for ULP RISC-V on esp32s2 and esp32s3

Closes IDF-1715 and IDF-5798

See merge request espressif/esp-idf!19549
2022-09-06 16:43:36 +08:00
Marius Vikhammer
572e79530c Merge branch 'bugfix/c2_skip_validate' into 'master'
bootloader: allow skip image validation on C2

Closes IDF-5827

See merge request espressif/esp-idf!19755
2022-09-06 14:21:15 +08:00
laokaiyao
3bdcf2edf5 i2s: add notes for the read task of i2s basic examples 2022-09-06 10:29:30 +08:00
laokaiyao
648a75dbed i2s: fixed the duplicated type name 2022-09-06 10:27:52 +08:00
Darian Leung
89f828ee02 usb_host: Fix incorrect memset() usage in HCD
This commit fixes incorrect usage of memset() in the HCD's various
_buffer_parse_...() functions. The memset was not clearing the qtd lists, and
were simply setting the first qtd to a non zero value (i.e., the length of
the QTD list).

However, no bug occurred as the subsequent _buffer_fill_...() functions would
overwrite the QTD list anyways.
2022-09-05 20:15:03 +02:00
Tomas Rezucha
dfdb814644 usb: Remove -Wno-format compile option 2022-09-05 20:14:56 +02:00
muhaidong
0960aa8d87 wpa_supplicant: try install gtk before send 2 of 2 2022-09-05 21:28:19 +08:00
wangjialiang
289ed8bca8 ble_mesh: stack: added the judgment that the parameter is NULL but the parameter len is not zero to avoid btc_transfer_context failed 2022-09-05 20:27:57 +08:00
laokaiyao
045b65e85d touch_senser: fixed ci issue timer expired after it is deleted 2022-09-05 18:25:32 +08:00
Shreyas Sheth
4e830d843a esp_wifi: Remove ieee80211_crypto_aes_128_cmac_decrypt from esp32c2 rom 2022-09-05 14:27:06 +05:30
Marius Vikhammer
0ecf0af5a1 Merge branch 'gdbstub/unused_handle' into 'master'
gdbstub: fixed build-error due to potentially uninitialized variable on -O2

Closes IDFGH-8213

See merge request espressif/esp-idf!19939
2022-09-05 16:54:52 +08:00
Sudeep Mohanty
4fde033a5f ulp: Added support for RTC I2C driver for ULP RISC-V on esp32s2 and esp32s3
This commit adds support for using the RTC I2C peripheral on the ULP
RISC-V core for esp32s2 and esp32s3. It also adds an example to demonstrate the
usage of the RTC I2C peripheral.

This commit also modifies the rtc_i2c register structure files to enable
the use of bitfields in the ULP RISC-V RTC I2C driver.
2022-09-05 10:21:43 +02:00
Mahavir Jain
6193e4c8e8 Merge branch 'bugfix/stringop_overflow_warning' into 'master'
bootloader_support: fix stringop-overflow warning with `PERF` compiler optimization

See merge request espressif/esp-idf!19932
2022-09-05 16:04:15 +08:00
Wang Meng Yang
4eb98adf43 Merge branch 'bugfix/deadlock_after_call_esp_bluedroid_disable' into 'master'
bt:Fixed deadlock due to wrong parameter when calling btc_transfer_context() after calling esp_bluedroid_disable()

Closes IDFGH-8175 and BT-2744

See merge request espressif/esp-idf!19859
2022-09-05 13:38:18 +08:00
Mahavir Jain
4aaf02b093
bootloader_support: fix stringop-overflow warning with PERF compiler optimization
This commit fixes build issue because of function `bootloader_common_reset_rtc_retain_mem`
getting inlined with compiler optimization level set to `PERF` (-O2).

Build failure log:
-----------------

In function 'bootloader_common_reset_rtc_retain_mem',
    inlined from 'bootloader_common_update_rtc_retain_mem' at /h/esp-idf/components/bootloader_support/src/bootloader_common_loader.c:183:13:
/h/esp-idf/components/bootloader_support/src/bootloader_common_loader.c:159:5: error: 'memset' writing 16 bytes into a region of size 0 overflows the destination [-Werror=stringop-overflow=]
  159 |     memset(rtc_retain_mem, 0, sizeof(rtc_retain_mem_t));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2022-09-05 10:42:11 +05:30
Marius Vikhammer
326b6a929e Merge branch 'bugfix/bootloader_assert' into 'master'
bootloader: dont print assert msg if CONFIG_OPTIMIZATION_ASSERTIONS_SILENT is set

Closes IDFGH-5811

See merge request espressif/esp-idf!19915
2022-09-05 12:30:26 +08:00
Mu Hai Dong
681c538d77 Merge branch 'bugfix/fix_set_country_code_before_wifi_start_issue' into 'master'
esp_wifi: fix set country code before wifi start issue.

Closes IDFGH-8011

See merge request espressif/esp-idf!19631
2022-09-05 12:17:11 +08:00
Mahavir Jain
ec5df3efe2 Merge branch 'feature/wifi_prov_mgr_is_provisioned_api_change' into 'master'
wifi_provisioning: decouple `wifi_prov_mgr_is_provisioned` from manager state

Closes IDF-5878

See merge request espressif/esp-idf!19911
2022-09-05 12:11:51 +08:00
wanlei
96aa2792f8 spi_master:fix error when use spi_bus_add_device more than 3 device
update gpio_sig at `spics_out` array in each spi_periph.c of chips later than s2
then `spi_bus_add_device` can correctly distribute gpio_signals for cs_signal

Closes https://github.com/espressif/esp-idf/issues/8876
2022-09-05 12:10:22 +08:00
Marius Vikhammer
f4a220b3f9 gdbstub: fixed build-error due to potentially uninitialized variable on -O2
Closes https://github.com/espressif/esp-idf/issues/9706
2022-09-05 10:55:29 +08:00
morris
7bc264ed80 Merge branch 'bugfix/build-ulp-riscv-uart-printf-for-s2-s3-only' into 'master'
ulp:  temporarily disables SOC_RISCV_COPROC_SUPPORTED from esp32c6

See merge request espressif/esp-idf!19928
2022-09-05 10:08:05 +08:00
muhaidong
067f4df513 esp_wifi: add small UT for country code 2022-09-03 20:31:37 +08:00
muhaidong
6f25e37ccb esp_wifi: fix set country code before wifi start issue. 2022-09-03 20:31:23 +08:00
Song Ruo Jing
0637ea91a3 Merge branch 'bugfix/fix_gpio_intr_lost' into 'master'
gpio: Fix interrupt lost issue

Closes IDFGH-5069

See merge request espressif/esp-idf!19625
2022-09-02 18:54:17 +08:00
Rahul Tank
f57356fcc9 Merge branch 'bugfix/change_log_level_for_print' into 'master'
Nimble : updated debug level for a print to avoid unwanted console log.

See merge request espressif/esp-idf!19108
2022-09-02 18:10:47 +08:00
Sudeep Mohanty
42214abbf5 ulp: temporarily disable SOC_RISCV_COPROC_SUPPORTED for esp32c6
This commit diables SOC_RISCV_COPROC_SUPPORTED capability for esp32c6
until the feature is supported on this target.
2022-09-02 12:10:07 +02:00
Konstantin Kondrashov
15ec31e902 Merge branch 'bugfix/clobbering_freertos_base_priority' into 'master'
spi_flash: fix issue linked with raising of task priority while priority is already raised

Closes IDFGH-5881

See merge request espressif/esp-idf!19037
2022-09-02 12:37:36 +08:00
Marius Vikhammer
a77dce6979 bootloader: dont print assert msg if CONFIG_OPTIMIZATION_ASSERTIONS_SILENT is set
Closes https://github.com/espressif/esp-idf/pull/7518
2022-09-02 11:01:50 +08:00
Simon
e923c15859 Merge branch 'refactor/i2c_hal' into 'master'
I2C: Refactor i2c hal and ll(pre-MR of I2C driver-NG)

See merge request espressif/esp-idf!19750
2022-09-02 10:47:35 +08:00
Mahavir Jain
83d15ffb1b Merge branch 'bugfix/httpd_ssl_config_default' into 'master'
esp_https_server: fix issue with default initialization through `HTTPD_SSL_CONFIG_DEFAULT`

Closes IDFGH-8157

See merge request espressif/esp-idf!19906
2022-09-01 23:56:09 +08:00
Mahavir Jain
251faf98f9 Merge branch 'ci/migrate_protocomm_unit_test_app' into 'master'
ci: Migrate protocomm unit tests from unit-test-app to component-test-app

Closes IDF-5599

See merge request espressif/esp-idf!19781
2022-09-01 23:16:36 +08:00
Jakob Hasse
4905fbff32 Merge branch 'doc/remove_esp_event_deprecation_notes' into 'master'
doc (esp_event): removed deprecation notes

See merge request espressif/esp-idf!19855
2022-09-01 22:42:26 +08:00
Mahavir Jain
bc2334d403 Merge branch 'bugfix/fix_calling_cb_func_before_perform' into 'master'
esp_https_ota: fix bug where `http_client_init_cb` is called after esp_http_client_perform()

Closes IDFGH-8080

See merge request espressif/esp-idf!19897
2022-09-01 20:09:17 +08:00
Marius Vikhammer
0a3131998f Merge branch 'bugfix/miniz_header_doc' into 'master'
esp-rom: fixed error in miniz header documention for tdefl_init

Closes IDFGH-6808

See merge request espressif/esp-idf!19871
2022-09-01 18:11:02 +08:00
Mahavir Jain
025a8378ef
wifi_provisioning: decouple wifi_prov_mgr_is_provisioned from manager state
`wifi_prov_mgr_is_provisioned()` API uses the `esp_wifi_get_config()` API
to check if Wi-Fi credentials are configured. It does not really require
any other information from the wifi_prov component. Hence, this commit
removed dependency of this API on provisioning manager initialization state.

Closes IDF-5878
2022-09-01 15:24:19 +05:30
Mahavir Jain
46bc5eedb6
esp_https_server: fix issue with default initialization through HTTPD_SSL_CONFIG_DEFAULT
Closes https://github.com/espressif/esp-idf/issues/9653
Closes IDFGH-8157
2022-09-01 15:01:37 +05:30
Martin Vychodil
58c5c15f7e Merge branch 'doc/nvs_max_num_namespaces' into 'master'
doc (nvs): added note about maximum possible namespaces

See merge request espressif/esp-idf!19737
2022-09-01 17:17:25 +08:00
Omar Chebib
779d880580 Merge branch 'bugfix/rtc_retain_mem_always_erased' into 'master'
Bootloader: retained memory can now be kept after reboot when custom data enabled

See merge request espressif/esp-idf!19809
2022-09-01 16:42:54 +08:00
morris
7b2c491064 Merge branch 'feature/add_esp32c6_g0_components' into 'master'
ESP32C6: Add G0 components support (hal, soc, riscv, esp_common)

See merge request espressif/esp-idf!19826
2022-09-01 16:11:40 +08:00
Song Ruo Jing
61282cc5dd gpio: Fix interrupt lost issue
In previous gpio default isr, interrupt status bits get cleared at the exit of the isr.
However, for edge-triggered interrupt type, the interrupt status bit should be cleared before entering the per-pin handlers to avoid any potential interrupt lost.

Closes https://github.com/espressif/esp-idf/pull/6853
2022-09-01 16:01:01 +08:00
Cao Sen Miao
31b88a4c88 I2C: Refactor i2c hal and ll 2022-09-01 15:53:59 +08:00
KonstantinKondrashov
aea2fe0816 freertos: Adds new APIs to set/get and restore base priority
Closes https://github.com/espressif/esp-idf/issues/7580
2022-09-01 07:07:08 +00:00
Harshit Malpani
1c92feae38
esp_https_ota: fix bug where http_client_init_cb is called after esp_http_client_perform() instead of before.
Closes https://github.com/espressif/esp-idf/issues/9581
2022-09-01 12:04:40 +05:30
Marius Vikhammer
5e47c7ce13 Merge branch 'docs/malloc_header' into 'master'
heap: remove misleading info about malloc being equivalent to heap_caps_malloc(p, MALLOC_CAP_8BIT)

Closes IDFGH-5971

See merge request espressif/esp-idf!19889
2022-09-01 14:31:58 +08:00
morris
e2634b5223 Merge branch 'feature/rgb_lcd_yuv_converter' into 'master'
RGB-YUV converter

Closes IDF-4598

See merge request espressif/esp-idf!19094
2022-09-01 13:41:14 +08:00
Nachiket Kukade
86c4094f1d Merge branch 'bugfix/fast_scan_profile_issue' into 'master'
Fix repeated scans causing bss overwrite in connect process

See merge request espressif/esp-idf!19353
2022-09-01 13:22:30 +08:00
Roshan Bangar
c401efa7bb Nimble : updated debug level for a print to avoid unwanted console log. 2022-09-01 05:03:40 +00:00
harshal.patil
a17313ad32 ci: Migrate protocomm unit tests from unit-test-app to component-test-app 2022-09-01 10:24:33 +05:30
Song Ruo Jing
06b517efcb ci: Modify build-test-rules.yml enable' to disable` to exclude preview targets 2022-09-01 12:38:00 +08:00
Song Ruo Jing
158b53e777 esp32c6: mmu & cache related g0 components changes 2022-09-01 12:38:00 +08:00
wuzhenghui
1d299a8976 esp32c6: add hal support 2022-09-01 12:37:51 +08:00
songruojing
688fb18faa esp32c6: add soc/ xxx_periph, xxx_channel, xxx_pins, etc. files 2022-09-01 12:28:06 +08:00
songruojing
9d515185d0 esp32c6: clean up existing soc files and header file inclusion in IDF to be compatible with the new chip 2022-09-01 12:28:06 +08:00
wuzhenghui
d6d44b4781 perfmon: fix xtensa_perfmon build target 2022-09-01 12:28:00 +08:00
xiongweichao
80e3d965ae Fixed deadlock due to wrong parameter when calling btc_transfer_context() after calling esp_bluedroid_disable()
Closes https://github.com/espressif/esp-idf/issues/9672
2022-09-01 11:47:46 +08:00
Marius Vikhammer
e1f27cf31b heap: remove misleading info about malloc being equivalent to heap_caps_malloc(p, MALLOC_CAP_8BIT)
The actual memory allocated for malloc() depends on a lot of factors, see heap_caps_malloc_default()

Closes https://github.com/espressif/esp-idf/issues/7659
2022-09-01 11:39:34 +08:00
Wang Meng Yang
cf8abdb554 Merge branch 'bugfix/remove_bt_dft_init_semicolon' into 'master'
bt: Remove trailing semicolon from bt dft initializer

Closes IDFGH-8058

See merge request espressif/esp-idf!19773
2022-09-01 11:30:21 +08:00
morris
82f2ad9b6d Merge branch 'bugfix/propagate_isr_allocation_failure' into 'master'
Fix MCPWM multiplication overflow

Closes IDFGH-8151 and IDFGH-8155

See merge request espressif/esp-idf!19829
2022-09-01 10:44:15 +08:00
morris
6088f53966 Merge branch 'refactor/add_ledc_i2c_soc_caps' into 'master'
soc_caps: Introduce SOC_LEDC_SUPPORTED and SOC_I2C_SUPPORTED caps to IDF

See merge request espressif/esp-idf!19885
2022-08-31 23:42:24 +08:00
Jakob Hasse
95a05cd83d doc (esp_event): removed deprecation notes
We decided the corresponding functions will remain in regular use.
2022-08-31 17:20:11 +02:00
morris
4daa04481b Merge branch 'bugfix/usb_serial_jtag_console_crash' into 'master'
console: fix a crash when initializing usb_serial_jtag console

Closes IDFGH-8166

See merge request espressif/esp-idf!19866
2022-08-31 22:17:16 +08:00
Song Ruo Jing
6a60ecf780 soc_caps: Introduce SOC_LEDC_SUPPORTED and SOC_I2C_SUPPORTED caps to IDF
Wrap the ledc, i2c source files with the new caps in CMakeLists and linker.lf.
This could avoid potential source file not found warning during linking time.
2022-08-31 20:43:22 +08:00
Ivan Grokhotkov
4d9018e925 Merge branch 'feature/ulp_cmake_cleanups' into 'master'
ulp: CMake and python cleanups

See merge request espressif/esp-idf!19817
2022-08-31 17:59:05 +08:00
morris
731db1c873 mcpwm: fix multiplication overflow in converting us to compare ticks
Closes https://github.com/espressif/esp-idf/issues/9648
2022-08-31 17:38:29 +08:00
morris
a0d03a60cd legacy_timer: propagate isr register failure
Closes https://github.com/espressif/esp-idf/issues/9651
2022-08-31 17:18:55 +08:00
jincheng
1282eda148 fixed the exhaustion of ACL buffer
fixed the duplication of connection request from the same device
2022-08-31 16:24:59 +08:00
Omar Chebib
0b5ab940ae TLSF: fix the patch for tlsf_check function in ROM
tlsf_check in the patch was not called because the the TLSF functions
table in ROM was still pointing to the ROM implementation.
2022-08-31 13:30:10 +08:00
Marius Vikhammer
acc8b8ee0a esp-rom: fixed error in miniz header documention for tdefl_init
Closes https://github.com/espressif/esp-idf/issues/8435
2022-08-31 11:36:56 +08:00
Omar Chebib
26c4550e6d Bootloader: retained memory can now be kept after reboot when custom data enabled
User's custom data are not taken into account during the CRC calculation anymore.
Which means taht the retained mem structure is not systematically erased
on each reboot anymore.
2022-08-31 03:23:30 +00:00
wuzhenghui
c31aaeda2a ll: add reset interface to rtc_cntl_ll 2022-08-31 01:59:36 +00:00
wuzhenghui
82ffe7e438 replacing reset by register operations with ROM interfaces to decouple the effects of register name changes 2022-08-31 01:59:36 +00:00
wuzhenghui
88c123f805 esp_rom: add esp_rom_software_reset and esp_rom_software_reset_cpu interface 2022-08-31 01:59:36 +00:00
Ivan Grokhotkov
5b88c6b142
console: pass esp_console_repl_universal_t pointer to the repl task
For usb_serial_jtag REPL only, xTaskCreate was passing a pointer to
esp_console_repl_com_t, while esp_console_repl_task was expecting
a pointer to esp_console_repl_universal_t.

The way the two structures are defined, this makes no difference, and
the pointer values are the same. Still, this could potentially break
in the future.

(I am not sure what is the distinction between repl_com (common?) and
repl_universal; it seems that `int uart_channel` could just as well
be part of esp_console_repl_com_t; alternatively, as suggested in the
previous commit, this structure could contain a callback function
pointer, which would allow `esp_console_new_repl_*` functions to
specify how stdin/stdout should be initialized by the REPL task.)
2022-08-30 19:37:15 +02:00
Ivan Grokhotkov
c1d5717013
console: fix a crash when initializing usb_serial_jtag console
The crash occurred when calling setvbuf(stdin,...) with stdin==NULL.
This happened because esp_console_repl_task started running before
its args->uart_channel was initialized; then esp_console_repl_task
went into the code path 'uart_channel != CONFIG_ESP_CONSOLE_UART_NUM',
and tried to 'fopen("/dev/uart/0");`
Since the UART VFS is not registered when ESP_CONSOLE_USB_SERIAL_JTAG
option is enabled, fopen failed and 'stdin' was NULL.
Fix by moving the initialization of repl task arguments before the
start of the task, same as it is done for the usb_cdcacm case.

The crash started happening after the commit 287ab7566b. I haven’t
verified this, but I guess the reason why it wasn’t happening before
was that xTaskCreate was not correctly yielding to the newly created
higher-priority 'repl' task, therefore the code which was setting
the repl task arguments after xTaskCreate had time to execute.

It should be noted that the 'uart_channel' argument is a bit hacky,
in the first place. The code should be refactored to pass a callback
function to the repl task, and let this callback initialize stdin and
stdout based on the chosen console channel. Then esp_console_repl_task
does not require assumptions about the specific interface used.

Closes https://github.com/espressif/esp-idf/issues/9662
2022-08-30 19:16:51 +02:00
Mahavir Jain
0a93ee1337 Merge branch 'bugfix/ctx_lock_wifi_prov' into 'master'
Fixed provisioning manager deinit

Closes IDFGH-8171

See merge request espressif/esp-idf!19828
2022-08-30 23:09:29 +08:00
Marius Vikhammer
dfaaefe2ce Merge branch 'bugfix/uart_sclk_freq' into 'master'
uart: fixed sclk_freq not init warning when compiling with asserts disabled

Closes IDFGH-8144

See merge request espressif/esp-idf!19792
2022-08-30 16:24:38 +08:00
morris
1ca3fad458 Merge branch 'bugfix/gpio_ut_usj' into 'master'
gpio: add a test case to test the ability of disabling USB D+ pin pull-up

See merge request espressif/esp-idf!19838
2022-08-30 14:09:45 +08:00
Gao Xu
0da21aca0d Merge branch 'bugfix/fix_spi_hd_quad_issue_esp32c3' into 'master'
essl_spi: fix wrong dummy cycle under quad spi mode ant add a test to verify spi quad mod

Closes IDF-5182 and IDF-5181

See merge request espressif/esp-idf!18680
2022-08-30 10:53:11 +08:00
Simon
f8c3d093f0 Merge branch 'bugfix/btld_flash_ram' into 'master'
bootloader_flash: Some bootloader flash functions are not put in IRAM

See merge request espressif/esp-idf!19832
2022-08-30 10:51:52 +08:00
Ivan Grokhotkov
9aecfe2b9d
ulp: fix typo in peripherals ld file names 2022-08-30 02:34:28 +02:00
Ivan Grokhotkov
2916bf9b6c
ulp: esp32ulp_mapgen: remove the special case for RISC-V, cleanup
There are multiple changes in this commit:

1. Unify the RISC-V and ULP-FSM code paths in esp32ulp_mapgen.py.
   It seems that these were originally introduced because `nm` output
   for the RISC-V case contained symbol sizes, while for the ULP-FSM
   no symbol sizes were reported. This makes sense, because the
   ULP-FSM object files are produced from assembly source, symbol
   sizes have to be added manually using the .size directive.
   In the case of RISC-V, the object files are built from C sources
   and the sizes are automatically added by the compiler.

   Now 'posix' output format is used for both RISC-V and ULP-FSM.

2. Move BASE_ADDR out of esp32ulp_mapgen.py. This now has to be passed
   from CMake, which should make it easier to modify if a new chip
   with a different RTC RAM base address is added.

3. Add C++ guards to the generated header file.

4. Switch from optparse to argparse for similarity with other IDF
   tools.

5. Add type annotations.
2022-08-30 02:34:28 +02:00
Ivan Grokhotkov
4b03e233d0
ulp: cmake: simplify the dependency on the generated LD script
* "dummy loop to force pre-processed linker file generation" seems to
  be unnecessary. It looks like the idea was copied from the
  dependency of ULP-FSM preprocessed source files on the LD script.
* Can use add_dependencies instead of
  set_target_properties(...LINK_DEPENDS...) which is more readable
* Use target_link_options instead of target_link_libraries, which is
  supported starting from CMake 3.13. Unlike target_link_libraries,
  it doesn't require manually quoting the pats.
2022-08-30 02:34:28 +02:00
Ivan Grokhotkov
67bd7a300a
ulp: cmake: add the target early, use target_* commands everywhere
Instead of collecting options in various variables, use CMake
commands like target_sources and target_link_options.
2022-08-30 02:34:28 +02:00