39195 Commits

Author SHA1 Message Date
C.S.M
d96f71c5cc fix(spi_flash): Fix build fail when rom_patch config disabled,
Closes https://github.com/espressif/esp-idf/issues/15229
2025-02-19 16:54:37 +08:00
Island
d4bb0e2aa3 Merge branch 'feat/support_ble_debug_with_gpio_v5.3' into 'release/v5.3'
Support change HID task size by Kconfig in HID example (v5.3)

See merge request espressif/esp-idf!36998
2025-02-19 16:37:56 +08:00
Jiang Jiang Jian
1698a58881 Merge branch 'fix/add_sleep_duration_check_for_timer_wakeup_v5.3' into 'release/v5.3'
fix(esp_hw_support): add timer wakeup sleep duration check (v5.3)

See merge request espressif/esp-idf!37011
2025-02-19 14:02:53 +08:00
Jiang Jiang Jian
edd28f9cf1 Merge branch 'bugfix/watchdog_timer_ap_sta_esp32c5_v5.3' into 'release/v5.3'
fix(wifi): Prevent overwriting of scan parameters in consecutive scans (Backport v5.3)

See merge request espressif/esp-idf!34073
2025-02-19 13:46:39 +08:00
Shu Chen
9b00dff1b9 Merge branch 'support/ieee802154_get_rssi_comp_from_phy_v5.3' into 'release/v5.3'
feat(802.15.4): support ieee802154 get rssi comp from phylib (v5.3)

See merge request espressif/esp-idf!37052
2025-02-19 11:03:40 +08:00
morris
85cf4c262b Merge branch 'fix/adc_func_register_not_reset_issue_v5.3' into 'release/v5.3'
adc: func register not reset issue (v5.3)

See merge request espressif/esp-idf!37046
2025-02-19 10:33:33 +08:00
Island
f258a14894 Merge branch 'bugfix/h2_ble_timer_clk_enable_fix_v5.3' into 'release/v5.3'
fix: H2 ble timer clk enable issue. (v5.3)

See merge request espressif/esp-idf!36544
2025-02-18 15:45:38 +08:00
Marius Vikhammer
fa4706e4cb Merge branch 'fix/usb-cdc-non-blocking-read_v5.3' into 'release/v5.3'
fix(esp_vfs_console): USB CDC read when non blocking (backport v5.3)

See merge request espressif/esp-idf!36749
2025-02-18 12:17:26 +08:00
zwx
c1adbead0c feat(802.15.4): use btbb function to get rssi comp for h2 2025-02-18 12:10:24 +08:00
Armando
aad78c3022 fix(adc): fixed adc function register not reset issue 2025-02-18 10:35:59 +08:00
Roland Dobai
dc36761eed Merge branch 'fix/ldgen_interm_no_secs_v5.3' into 'release/v5.3'
fix(ldgen): don't emit intermediate placements without sections (v5.3)

See merge request espressif/esp-idf!36968
2025-02-17 19:41:20 +08:00
wuzhenghui
0e2335f6f9
fix(esp_hw_support): add timer wakeup sleep duration check
Closes https://github.com/espressif/esp-idf/issues/15255
2025-02-17 19:09:44 +08:00
Jiang Jiang Jian
752c5e6b1e Merge branch 'bugfix/fix_delete_queue_error_in_espnow_example_v5.3' into 'release/v5.3'
fix(wifi): fix the delete queue error in espnow exapmle (v5.3)

See merge request espressif/esp-idf!37015
2025-02-17 16:19:38 +08:00
Nachiket Kukade
35d0114354 fix(wifi): Prevent overwriting of scan parameters in consecutive scans 2025-02-17 13:08:25 +05:30
Frantisek Hrbata
a60c3c4f29 fix(ldgen): don't emit intermediate placements without sections
When a symbol needs to be placed to a different target than the one
designated for the object file, the object file is expanded, which
includes the following steps:

1. Creating a new placement for the symbol's input section with the
   specified target.
2. Excluding the object placement from the orignal target.
3. Creating a new intermediate placement for the object for the original
   target, where its input sections are expanded, excluding the input
   section for the symbol.

Let's illustrate the object expansion process with the following example:

[sections:rodata]
entries:
    .rodata+
    .sdata2+
    .srodata+

[scheme:default]
entries:
    text -> flash_text
    rodata -> flash_rodata

[scheme:noflash]
entries:
    text -> iram0_text
    rodata -> dram0_data

[mapping:soc_pm]
archive: libsoc.a
entries:
    gpio_periph: GPIO_HOLD_MASK (noflash)

gpio_periph section headers:
  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
  [ 0]                   NULL            00000000 000000 000000 00      0   0  0
  [ 1] .text             PROGBITS        00000000 000034 000000 00  AX  0   0  2
  [ 2] .data             PROGBITS        00000000 000034 000000 00  WA  0   0  1
  [ 3] .bss              NOBITS          00000000 000034 000000 00  WA  0   0  1
  [ 4] .rodata.GPIO_HOLD_MASK PROGBITS        00000000 000034 000058 00   A  0   0  4
  [ 5] .rodata.GPIO_PIN_MUX_REG PROGBITS        00000000 00008c 000058 00   A  0   0  4
  [ 6] .debug_info       PROGBITS        00000000 0000e4 0000d8 00      0   0  1
  [ 7] .rela.debug_info  RELA            00000000 0009d4 000108 0c   I 16   6  4
  [ 8] .debug_abbrev     PROGBITS        00000000 0001bc 000070 00      0   0  1
  [ 9] .debug_aranges    PROGBITS        00000000 00022c 000018 00      0   0  1
  [10] .rela.debug_aranges RELA            00000000 000adc 00000c 0c   I 16   9  4
  [11] .debug_line       PROGBITS        00000000 000244 0001ab 00      0   0  1
  [12] .debug_str        PROGBITS        00000000 0003ef 00022d 01  MS  0   0  1
  [13] .comment          PROGBITS        00000000 00061c 000030 01  MS  0   0  1
  [14] .note.GNU-stack   PROGBITS        00000000 00064c 000000 00      0   0  1
  [15] .riscv.attributes RISCV_ATTRIBUTES 00000000 00064c 000044 00      0   0  1
  [16] .symtab           SYMTAB          00000000 000690 000260 10     17  36  4
  [17] .strtab           STRTAB          00000000 0008f0 0000e1 00      0   0  1
  [18] .shstrtab         STRTAB          00000000 000ae8 0000d1 00      0   0  1

1. Creating a new placement
.dram0.data :
{
    *libsoc.a:gpio_periph.*(.rodata.GPIO_HOLD_MASK .sdata2.GPIO_HOLD_MASK .srodata.GPIO_HOLD_MASK)
}

2. Excluding the object placement
.flash.rodata :
{
    *(EXCLUDE_FILE(*libsoc.a:gpio_periph.*) .rodata.* ...)
}

3. Creating a new intermediate placement
.flash.rodata :
{
    *libsoc.a:gpio_periph.*(.rodata.GPIO_PIN_MUX_REG)
}

Now, let's do the same, but also move GPIO_PIN_MUX_REG to noflash with an updated mapping.

[mapping:soc_pm]
archive: libsoc.a
entries:
    gpio_periph: GPIO_HOLD_MASK (noflash)
    gpio_periph: GPIO_PIN_MUX_REG (noflash)

1. Creating a new placement
.dram0.data :
{
    *libsoc.a:gpio_periph.*(.rodata.GPIO_HOLD_MASK .sdata2.GPIO_HOLD_MASK .srodata.GPIO_HOLD_MASK)
    *libsoc.a:gpio_periph.*(.rodata.GPIO_PIN_MUX_REG .sdata2.GPIO_PIN_MUX_REG
                            .srodata.GPIO_PIN_MUX_REG)
}

2. Excluding the object placement
.flash.rodata :
{
    *(EXCLUDE_FILE(*libsoc.a:gpio_periph.*) .rodata.* ...)
}

3. Creating a new intermediate placement
.flash.rodata :
{
    *libsoc.a:gpio_periph.*
}

The *libsoc.a:gpio_periph.* entity in step 3 no longer has input
sections, as there are no remaining .rodata input sections in the object
file. The linker behavior for this mapping is to include all object
input sections that have not yet been placed as described in
https://sourceware.org/binutils/docs/ld.html#Input-Section-Basics
"If you use a file name without a list of sections, then all sections in
the input file will be included in the output section. This is not
commonly done, but it may by useful on occasion."

The map file for such mapping now contains following input sections

 .flash.rodata   0x3c0a0120    0x19b34
     *libsoc.a:gpio_periph.*()
     .debug_info    0x3c0b95bf       0xd8 esp-idf/soc/libsoc.a(gpio_periph.c.obj)
     .debug_abbrev  0x3c0b9697       0x70 esp-idf/soc/libsoc.a(gpio_periph.c.obj)
     .debug_aranges
                    0x3c0b9707       0x18 esp-idf/soc/libsoc.a(gpio_periph.c.obj)
     .debug_line    0x3c0b971f      0x1ab esp-idf/soc/libsoc.a(gpio_periph.c.obj)
     .debug_str     0x3c0b98ca      0x21a esp-idf/soc/libsoc.a(gpio_periph.c.obj)
                                    0x22d (size before relaxing)
     .comment       0x3c0b9ae4       0x30 esp-idf/soc/libsoc.a(gpio_periph.c.obj)
     .note.GNU-stack
                    0x3c0b9ae4        0x0 esp-idf/soc/libsoc.a(gpio_periph.c.obj)
     .riscv.attributes
                    0x3c0b9ae4       0x44 esp-idf/soc/libsoc.a(gpio_periph.c.obj)

This is incorrect, and such intermediate placement should not be
generated. This type of placement can be recognized because it is not
explicitly defined in the mapping and lacks input sections. We can
identify this in the significant function and prevent issuing commands
for such placement.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2025-02-17 15:33:19 +08:00
zhangyanjiao
9b5d325650 fix(wifi): fix the delete queue error in espnow exapmle
Closes https://github.com/espressif/esp-idf/issues/15383
2025-02-17 14:56:16 +08:00
Zhang Hai Peng
d30c46cf98 feat(ble/bluedroid): Support change HID task size by Kconfig in HID example
(cherry picked from commit d4b3a7e99d29150d9718415384db7ac5ae7673d5)

Co-authored-by: Mitch Cairns <mitch.cairns@handheldlegend.com>
2025-02-17 11:15:21 +08:00
Zhang Hai Peng
61893e9fe5 docs(ble/bluedroid): Optimize doc for implementation of a characteristic with 128 bit UUID
(cherry picked from commit fa40d971a52e9eb66686ac3ae645fca2589f0807)

Co-authored-by: Erast  <78802792+MatoiDev@users.noreply.github.com>
2025-02-17 11:15:19 +08:00
Zhang Hai Peng
ff6425d301 fix(ble/bluedroid): Don't log error on 16/128-bit UUID mixed descriptors
(cherry picked from commit fed1d41aa7170d8418dd126dd8e3b47a977b4aca)

Co-authored-by: Nebojša Cvetković <nebkat@gmail.com>
2025-02-17 11:15:16 +08:00
Zhang Hai Peng
4a00e8d6b0 refactor(ble/bluedroid): Fix typos in gatt_sr.c
(cherry picked from commit 63b2dcc3a7b4b56486a7ef82050d8a43dd2bb4af)

Co-authored-by: Nebojsa Cvetkovic <nebkat@gmail.com>
2025-02-17 11:15:13 +08:00
Zhang Hai Peng
eab6ad5bd7 fix(ble/bluedroid): Allow 0 length indications
(cherry picked from commit 9b5a52e2f784a50c0e4c1a422a2b3d22ce5e9998)

Co-authored-by: Nebojsa Cvetkovic <nebkat@gmail.com>
2025-02-17 11:15:11 +08:00
Zhang Hai Peng
1b3771276c refactor(ble/bluedroid): Fix typos in bta_gatts_act.c
(cherry picked from commit a8041a99533628b044a8158bcc4410404f83ea63)

Co-authored-by: Nebojsa Cvetkovic <nebkat@gmail.com>
2025-02-17 11:15:08 +08:00
Zhang Hai Peng
04a238f88a fix(ble): Update bt lib for ESP32(2a2631f)
- Support ESP32 BLE GPIO DEBUG


(cherry picked from commit 0a7888f839fc64097b43dae37c13cd0f3e2de690)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
2025-02-17 11:13:49 +08:00
Island
c09aadf60c Merge branch 'feat/add_spi_output_v5.3' into 'release/v5.3'
Feat/add spi output (v5.3)

See merge request espressif/esp-idf!36955
2025-02-17 11:04:33 +08:00
Rahul Tank
92cf6566aa Merge branch 'bugfix/handle_slave_extra_disconn_v5.3' into 'release/v5.3'
fix(nimble): Handle not sending disconnect event if connect was not sent (v5.3)

See merge request espressif/esp-idf!36921
2025-02-15 22:42:50 +08:00
Rahul Tank
de76f43e11 fix(nimble): Handle not sending disconnect event if connect was not sent 2025-02-15 09:24:20 +05:30
Rahul Tank
4dd97f4847 Merge branch 'feat/long_read_offset_v5.3' into 'release/v5.3'
feat(nimble): Add offset in GATT server long read context (v5.3)

See merge request espressif/esp-idf!36977
2025-02-15 11:26:58 +08:00
Martin Vychodil
b11b31016f Merge branch 'bugfix/storage_generic_pytests_v5.3' into 'release/v5.3'
fix(ci): Removed storage related entries in known generate test child pipeline warnings (v5.3)

See merge request espressif/esp-idf!36685
2025-02-15 00:07:25 +08:00
Fu Hanxi
11142cffb3
ci: set app_list to empty list when not None 2025-02-14 14:04:18 +01:00
Jiang Jiang Jian
68556198ff Merge branch 'bugfix/stack_corruption_btm_task' into 'release/v5.3'
fix(esp_wifi): Fix stack curruption in btm task (v5.3)

See merge request espressif/esp-idf!36970
2025-02-14 19:02:01 +08:00
Aditya Patwardhan
f62b178a65 Merge branch 'refactor/security_docs_re-org_v5.3' into 'release/v5.3'
refactor(docs): re-organize security docs for better navigation (v5.3)

See merge request espressif/esp-idf!36961
2025-02-14 16:32:42 +08:00
Kapil Gupta
746abfa199 fix(esp_wifi): Fix stack curruption in btm task (v5.3) 2025-02-14 12:53:59 +05:30
Jiang Jiang Jian
2ff653bc56 Merge branch 'bugfix/skip_memory_reordering_wpa2_semaphr_v5.3' into 'release/v5.3'
fix(esp_wifi): fixed stack corruption in WiFi tasks (v5.3)

See merge request espressif/esp-idf!36937
2025-02-14 14:31:29 +08:00
Mahavir Jain
570b01fd9b
refactor(docs): re-organize security docs for better navigation 2025-02-14 11:48:24 +05:30
Abhinav Kudnar
4bba68caeb feat(nimble): Add offset in GATT server long read context 2025-02-14 11:22:28 +05:30
Rahul Tank
a106371679 Merge branch 'fix/blesync_periodic_adv_v5.3' into 'release/v5.3'
fix(nimble): Added sync reattempt for periodic adv (v5.3)

See merge request espressif/esp-idf!36788
2025-02-14 13:45:40 +08:00
Jiang Jiang Jian
b96b91c6a5 Merge branch 'feat/sleep_retention_expand_module_bitmap_v5.3' into 'release/v5.3'
backport v5.3: expand the number of sleep retention modules supported on different chips

See merge request espressif/esp-idf!35491
2025-02-14 13:29:03 +08:00
Zhou Xiao
96e01bf510 feat(ble): support esp ble controller spi output interface for ESP32-H2
(cherry picked from commit 9c98c7e040509836671fea35c63728e4768d3d00)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-14 11:54:05 +08:00
Zhou Xiao
8f2c1c02ce feat(ble): support esp ble controller spi output interface for ESP32-C6
(cherry picked from commit 58b8775f95d6584838fdb386f33b96da0e87c56d)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-14 11:54:02 +08:00
Zhou Xiao
d6fb7d4c0b feat(ble): support esp ble controller spi output interface for ESP32-C2
(cherry picked from commit 0b57f8ae875e52cfc816ebbb0eb1e7c7fb46cfad)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-14 11:53:59 +08:00
Zhou Xiao
c8456b78d3 feat(ble): add spi output interface for esp ble controller log
(cherry picked from commit 52106c989567515175538ef92163489ea9033f19)

Co-authored-by: Zhou Xiao <zhouxiao@espressif.com>
2025-02-14 11:53:56 +08:00
radek.tandler
b4af220c1e fix(storage/nvs): Fixed failing test cases in example folder 2025-02-13 20:40:06 +01:00
radek.tandler
f78620853b fix(storage/vfs): Fixed failing test cases in test_apps 2025-02-13 20:40:06 +01:00
radek.tandler
0f5073ea2c fix(ci): Removed storage related ignore warnings 2025-02-13 20:40:05 +01:00
Astha Verma
68420c726e fix(nimble): Added sync reattempt for periodic adv 2025-02-13 18:26:58 +05:30
Jiang Jiang Jian
8835b4d2e6 Merge branch 'bugfix/mem_leak_sae_pk_v5.3' into 'release/v5.3'
fix(wifi): Bugfix memory leak due to sae public key (v5.3)

See merge request espressif/esp-idf!36926
2025-02-13 20:36:19 +08:00
Rahul Tank
b80c387c9f Merge branch 'fix/core_err_code_def_v5.3' into 'release/v5.3'
fix(nimble): Enhanced error handling by adding to print core error definitions (v5.3)

See merge request espressif/esp-idf!36655
2025-02-13 19:45:04 +08:00
Mahavir Jain
562ca9f2e0 Merge branch 'bugfix/http_client_select_read_error_v5.3' into 'release/v5.3'
fix(tcp_tranport): Fix handling of select() return value (v5.3)

See merge request espressif/esp-idf!36918
2025-02-13 19:19:22 +08:00
Kapil Gupta
135a320b3c fix(esp_wifi): Fix stack corruption in wpa3 task 2025-02-13 14:23:35 +05:30
Kapil Gupta
70ad8d04ed fix(esp_wifi): fixed Stack corruption in DPP task 2025-02-13 14:23:35 +05:30