Commit Graph

34274 Commits

Author SHA1 Message Date
Ricardo Quesada
206f843e82 fix(uart): add missing include for rom/uart.h
Without this include it fails to compile with this error:

```
esp/esp-idf-v5.2/components/esp_rom/include/esp32/rom/uart.h:262:32: error: implicit declaration of function 'UART_STATUS_REG' [-Werror=implicit-function-declaration]
  262 |         status = READ_PERI_REG(UART_STATUS_REG(uart_no));
```

Merges https://github.com/espressif/esp-idf/pull/13025
2024-03-01 14:36:43 +08:00
Laukik Hase
8582b27f1d
refactor(protocomm): Make the protocomm proto-c headers public 2024-03-01 10:26:23 +05:30
Laukik Hase
4a7cda8cb0
feat(tools/test_apps): Add violation tests for the flash I/DROM region
- For SoCs supporting PMP
2024-03-01 10:25:08 +05:30
Laukik Hase
68442ecaa0
refactor(esp_hw_support): Remove redundant PMP entry for ROM region
- The ROM text and data sections share the address range
    (see SOC_I/DROM_MASK_LOW - SOC_I/DROM_MASK_HIGH).
  - Initially, we had two PMP entries for this address range - one marking the
    region as RX and the other as R.
  - However, the latter entry is redundant as the former locks the PMP settings.
  - We can divide the ROM region into text and data sections later when we
    define boundaries marking these regions from the ROM.
2024-03-01 10:25:07 +05:30
Laukik Hase
a56fc41215
fix(esp_hw_support): Fix the I/DCACHE region PMP protection 2024-03-01 10:25:07 +05:30
Jiang Jiang Jian
4f6cca6f08 Merge branch 'bugfix/fix_c2_disconnect_reason_code_wrong_issue_v5.2' into 'release/v5.2'
fix(wifi): fix esp32c2 disconnect reason code wrong issue(Backport v5.2)

See merge request espressif/esp-idf!29346
2024-03-01 10:56:35 +08:00
Cao Sen Miao
355df44822 fix(spi_flash): Fix issue that flash encryption failed while rom_impl config is enabled
The issue is `esp_flash_write_encryped` function in ROM on ESP32C3, ESP32S3
calls legacy implementation, which uses old configuration. And this causes
write fails.
The solution in this commit is to compile and link this function(and related)
in IRAM instead of the ROM one.
The IRAM cost increases around 1.2KB after the fix
2024-03-01 10:38:27 +08:00
muhaidong
d005e71acd fix(wifi): fix esp32c2 disconnect reason code wrong issue 2024-02-29 19:21:18 +08:00
Rahul Tank
c410322070 fix(nimble): Increase range of reattempt connection count 2024-02-29 15:57:28 +05:30
Darian Leung
6bacffff21
change(console): Add build test for no console output
This commit adds a build test to test the scenario where both the primary and
secondary console outputs are disabled by Kconfig.
2024-02-29 17:39:34 +08:00
Darian Leung
1f73689c50
fix(console): Fix build issues when CONFIG_ESP_CONSOLE_NONE is enabled
This commit fixes the following build issues when CONFIG_ESP_CONSOLE_NONE is
enabled:

- esp_console_repl.c will have 'defined but unused' warnings on various console
functions.
- esp_console_repl.c does not use "TAG" when CONFIG_ESP_CONSOLE_NONE is
enabled, leading to a "defined by not used" warning.

Closes https://github.com/espressif/esp-idf/issues/12984
2024-02-29 17:36:41 +08:00
Darian Leung
50282f1e7a
fix(usb): Fix bug where usbh_process() misses an event
This commit fixes a bug where if multiple concurrent USBH API calls trigger
multiple events on the same device, some events will be lost. As a result,
those lost events don't get processed by the subsequent usbh_process() call.
2024-02-29 16:02:30 +08:00
Ondrej Kosta
ed304d5173 fix(esp_eth): Fixed Ethernet link reset when Ethernet is stopped 2024-02-28 15:47:56 +01:00
radek.tandler
c4eaf86516 fix(nvs): Improved lockig mechanism for initialization phase 2024-02-28 12:37:21 +01:00
radek.tandler
e51277fbc7 fix(nvs): eraseMultiPageBlob to robustly delete all related BLOB_DATA records and respect VER_ANY 2024-02-28 12:37:21 +01:00
radek.tandler
7938bbf3c0 fix(nvs): corrected findItem to return BLOB_DATA when chunkIndex = CHUNK_ANY 2024-02-28 12:37:21 +01:00
radek.tandler
2fc1fabcee fix(nvs): added check and erase of mismatched BLOB_DATA on init 2024-02-28 12:37:21 +01:00
Ivan Grokhotkov
4746554954 fix(nvs): prevent out of bounds write if blob data is inconsistent 2024-02-28 12:37:21 +01:00
Mahavir Jain
016575ccda
fix(docs): correct the UART ROM DL mode disable section for ESP32 2024-02-28 08:33:35 +05:30
Erhan Kurubas
1bebd2d8d2 fix(gcov): avoid multiple tick hook registration 2024-02-26 13:56:33 +01:00
Ondrej Kosta
2ceb122ee2 ci(esp_eth): run iperf over longer period for SPI ETH bridge 2024-02-26 12:28:15 +01:00
wuzhenghui
df6a32f305
fix(esp_hw_support): fix cache safe check function 2024-02-26 17:42:14 +08:00
Jan Beran
88e3e64348 fix: Bump up pre-commit hooks version 2024-02-26 10:34:39 +01:00
harshal.patil
0f7c9a29a2
ci(mbedtls/gcm): Added test to verify software fallback for non-AES cipher GCM operations 2024-02-26 14:29:20 +05:30
harshal.patil
ca4f560f2b
fix(mbedtls/gcm): Add support for software fallback for non-AES ciphers in a GCM operation
- Even if the config MBEDTLS_HARDWARE_AES is enabled, we now support fallback
to software implementation of GCM operations when non-AES ciphers are used.
2024-02-26 14:29:18 +05:30
gongyantao
c365c5db2a change(bt/bluedroid): Redirect app functions in controller based on the bluetooth mode 2024-02-23 18:57:53 +08:00
zwl
a055ee6da6 bugfix(ble) : fixed some ble issues on ESP32-C2 2024-02-23 18:02:57 +08:00
linruihao
1143fea119 docs: update rf coexistenct api guides
1. support esp32c2
2. fix inconsistency between CN and EN docs of rf coexistence
3. adjust the visibility of some contents based on soc_caps
2024-02-23 16:20:18 +08:00
linruihao
3d5852131b fix(esp_coex): add support_coexistence soc_caps for esp32c2 and esp32h2 2024-02-23 16:15:45 +08:00
zhanghaipeng
4521a50db5 fix(ble/bluedroid): Update maximum BLE reconnection attempts configuration 2024-02-23 15:57:45 +08:00
zwl
f04e4f99e6 ble(update):
Update c2 lib to 79be7ec9
Update h2 lib to c6f7cb08
Update c6 lib to c6f7cb08
2024-02-23 14:08:03 +08:00
Mahavir Jain
72ba89f191 fix(spi_flash): check for safe write address in encrypted flash API 2024-02-23 12:42:31 +08:00
Jiang Jiang Jian
a328e1a08f Merge branch 'bugfix/fixed_some_wifi_bugs_240222_v5.2' into 'release/v5.2'
fix(wifi): fixed some wifi bugs 240222 v5.2 (Backport v5.2)

See merge request espressif/esp-idf!29185
2024-02-23 00:18:45 +08:00
Darshan Dobariya
80a1f5e18c fix(nimble): Fix compilation issue in nimble for -O2 flag (v5.2) 2024-02-22 21:36:12 +05:30
Rahul Tank
e573b7cee1 Merge branch 'bugfix/remove_namespace_variable_name_v5.2' into 'release/v5.2'
fix(nimble): update variable name to avoid using keyword (v5.2)

See merge request espressif/esp-idf!28973
2024-02-22 23:58:10 +08:00
Lou Tianhao
f0ae83d056 change(pm): use old ext1 api for pytest 2024-02-22 20:06:28 +08:00
Jiang Jiang Jian
8e1cd38970 Merge branch 'c6_auto_dbias_master_hsq_v5.2' into 'release/v5.2'
ESP32C6: Active & sleep dbg and dbias get from efuse to fix the voltage (v5.2)

See merge request espressif/esp-idf!28729
2024-02-22 20:04:08 +08:00
KonstantinKondrashov
2f707291eb fix(esp_hw_support): Fix esp_intr_free when taks has no core affinity
Closes https://github.com/espressif/esp-idf/issues/12608
2024-02-22 13:00:34 +02:00
Omar Chebib
f10d734f30 change(espcoredump): save RAM space by placing constants in flash
All the log messages of espcoredump component used to be in DRAM, which would
lower the available RAM space for the user application. Since the cache is always
enabled after an exception, constants can be put in flash.
2024-02-22 18:45:52 +08:00
Peter Dragun
24615ef848 fix(tools): catch more general errors in python dependency checker 2024-02-22 10:23:41 +01:00
Jiang Jiang Jian
2fc023ef95 Merge branch 'bugfix/cannot_jump_range_v5.2' into 'release/v5.2'
fix(temperature_sensor): Cannot switch the range smmothly on esp32h2(backport v5.2)

See merge request espressif/esp-idf!29152
2024-02-22 16:53:41 +08:00
muhaidong
20a3c78034 fix(wifi): fixed some wifi issues
1. fix(wifi/mesh): wait for child disconnect when mesh deinit
2. fix(wifi): fix wifi stop cost too much time
3. fix(clk): clear all lpclk source at clk init
4. fix(wifi): fixed scan and home channel change issues
5. fix(wifi):fix issues that in mplen clear and esp_wifi_set_mode
6. fix(wifi): fix qos encapsulated eapol issue
7. fix(wifi): fixed dhcp offer and dhcp ack data rates
8. fix(wifi): fix lmac_stop_hw_txq issue
2024-02-22 15:36:14 +08:00
morris
383a1e8697 Merge branch 'feat/oled_example_use_new_i2c_master_driver_v5.2' into 'release/v5.2'
feat(i2c_lcd): use new i2c master driver in oled example (v5.2)

See merge request espressif/esp-idf!29178
2024-02-22 15:27:57 +08:00
Jiang Jiang Jian
3f730f2453 Merge branch 'feature/add_fall_back_dns_config_in_menuconfig_v5.2' into 'release/v5.2'
feat(lwip): add fall back dns config in menuconfig (v5.2)

See merge request espressif/esp-idf!29154
2024-02-22 15:21:51 +08:00
muhaidong
1aca617c33 fix(wifi): fix some wifi issues
1. fix qos encapsulated eapol issue
2. fixed dhcp offer and dhcp ack data rates
2024-02-22 15:11:10 +08:00
muhaidong
faf0de3b55 fix(example): fixed app partion is too small for binary size 2024-02-22 15:11:00 +08:00
zhangyanjiao
8a6c2fe68f fix(wifi): fixed scan and home channel change issues
1. update scan ap number when clear scan ap records
2. fixed the old_snd filed error in WIFI_EVENT_HOME_CHANNEL_CHANGE event

Closes https://github.com/espressif/esp-idf/issues/13051
2024-02-22 15:09:09 +08:00
liuning
27e3d41026 fix(clk): clear all lpclk source at clk init 2024-02-22 15:07:59 +08:00
hongshuqing
b3a73d5b63 feat(pmu): set fix voltage to different mode for esp32c6 2024-02-22 14:49:01 +08:00
Marius Vikhammer
e930ff0b1f fix(system): update reset reasons for C6 and H2 2024-02-22 12:37:49 +08:00