Jiang Jiang Jian
d152a5bb00
Merge branch 'bugfix/usb_serial_jtag_write_return_val_v4.4' into 'release/v4.4'
...
fix(usb_serial_jtag): Fix usb_serial_jtag wrong return value, vfs lose data randomly(backport v4.4)
See merge request espressif/esp-idf!25711
2023-09-06 16:39:47 +08:00
morris
69fbe51d28
Merge branch 'bugfix/fix_adc_continuous_driver_conv_frame_issue_v4.4' into 'release/v4.4'
...
adc: fix adc continuous driver conv_frame_size not bigger than 4092 issue / pr 11500, use circular dma descriptors in adc continuous mode (v4.4)
See merge request espressif/esp-idf!24741
2023-09-06 14:19:24 +08:00
Michael (XIAO Xufeng)
56bd34a980
Merge branch 'fix/spi_polling_api_buslock_logic_v4.4' into 'release/v4.4'
...
fix(spi_master): polling_transmit forgot release bus lock when alloc DMA buffer failed (v4.4)
See merge request espressif/esp-idf!25699
2023-09-05 17:19:04 +08:00
Armando
b282c244cb
DMA EOF may happens per multiple dma descriptors, instead of only one.
...
Closes https://github.com/espressif/esp-idf/pull/11500
2023-09-05 11:18:56 +08:00
Armando
85ce6abdec
Fix #10804 by running continuous ADC DMA in endless loop instead of restarting after each run (descriptor chain) to avoid losing samples. Use descriptor error callback for GDMA to check for DMA buffer overrun.
2023-09-05 11:18:56 +08:00
Armando
91da3bcdc1
adc: fix adc continuous driver conv_frame_size not bigger than 4092 issue
2023-09-05 11:18:52 +08:00
Jiang Jiang Jian
7588771b52
Merge branch 'bugfix/sdmmc_host_cclk_lp_v4.4' into 'release/v4.4'
...
sdmmc: keep clock enabled for the duration of ACMD41 (v4.4)
See merge request espressif/esp-idf!24335
2023-09-05 11:17:35 +08:00
Cao Sen Miao
e2eb773c30
fix(usb_serial_jtag): Fix usb_serial_jtag wrong return value, vfs lose data randomly,
...
Closes https://github.com/espressif/esp-idf/issues/12119 ,
Closes https://github.com/espressif/esp-idf/pull/11344 ,
Closes https://github.com/espressif/esp-idf/issues/9318
Closes https://github.com/espressif/esp-idf/issues/11192
2023-09-04 11:56:00 +08:00
wanlei
b445b103c7
fix(spi_master): polling_transmit forgot release bus lock when alloc DMA buffer failed
...
Close https://github.com/espressif/esp-idf/issues/11845
2023-09-01 17:25:38 +08:00
Song Ruo Jing
8e3f509cd2
fix(gpio): fix potential crash when processing gpio isr
...
If CONFIG_SPIRAM_USE_MALLOC is enabled, and cache is disabled when GPIO ISR is triggered,
it would lead to Guru Meditation Error due to "Cache disabled but cached memory region accessed".
Closes https://github.com/espressif/esp-idf/issues/11876
2023-07-19 20:02:13 +08:00
Ivan Grokhotkov
e246071d6d
sdmmc: keep clock enabled for the duration of ACMD41
...
SD specification requires that card clock is not disabled until the
card is idle, following ACMD41 command.
2023-07-18 18:17:48 +02:00
wuzhenghui
2ca1c1a617
example: inform ulp adc usage status to sleep process
2023-07-10 02:32:13 +00:00
morris
564e20dd6b
Merge branch 'refactor/improve_adc_power_maintanance_v4.4' into 'release/v4.4'
...
adc: improve power logic (v4.4)
See merge request espressif/esp-idf!23275
2023-06-20 10:52:46 +08:00
morris
5ef69e8a63
mcpwm: fix typo in backward compatible macro name
2023-06-14 11:40:40 +08:00
morris
d9d5327dfa
Merge branch 'bugfix/add_len_check_per_spi_master_transaction_v4.4' into 'release/v4.4'
...
spi master: added transaction length check to refuse longer than hardware supported length (v4.4)
See merge request espressif/esp-idf!23749
2023-06-12 10:47:59 +08:00
Armando
61ecbb44a5
spi: added an API to get max transaction length and use in spi lcd driver
2023-05-19 09:30:06 +00:00
Armando
4e67ea0fe3
spi: added transaction length check to refuse longer than hardware supported length
2023-05-19 09:30:06 +00:00
Marius Vikhammer
e0e913839f
gdma: fixed crash from logging when using newlib nano
...
Newlib nano printf formatting do not support %z, and will crash if such an identifier
is followed by a %s indentifier.
Closes https://github.com/espressif/esp-idf/issues/9631
2023-05-06 13:49:31 +08:00
morris
9516e80f61
Merge branch 'bugfix/wakeup_io_hold_unhold_in_sleep_v4.4' into 'release/v4.4'
...
gpio: Fix deep sleep wakeup IOs unable to unhold after wakeup (v4.4)
See merge request espressif/esp-idf!22670
2023-04-21 10:51:05 +08:00
morris
2dc6c95859
Merge branch 'bugfix/usb_serial_driver_block_v4.4' into 'release/v4.4'
...
usb_serial_jtag: Fix bug of blocking TX xfer when using driver (backport v4.4)
See merge request espressif/esp-idf!22831
2023-04-20 11:01:01 +08:00
Armando
1b2a254d71
adc: improve power logic
2023-04-20 10:42:12 +08:00
Armando
fb6d9cd741
sdmmc: I/O phase adjustments
...
1. Fix incorrect meaning of SDMMC.clock bits, synchronize the names
with the TRM.
2. Choose input and output phases to satisfy typical timing
requirements.
3. Move use_hold_reg setting into the host driver, since it is related
to timing.
Closes https://github.com/espressif/esp-idf/issues/8521
Related to https://github.com/espressif/esp-idf/issues/8257
2023-04-18 20:07:32 +08:00
Song Ruo Jing
81b59071fd
gpio: Fix IO hold function related problems
...
1. Fix deep sleep wakeup IOs can not be unhold issue
2. Correct hold related APIs' description
3. Fix gpio_force_hold_all API
docs: Add GPIO wakeup source to sleep_modes doc for ESP32C3
2023-03-29 17:21:50 +08:00
Song Ruo Jing
5552c29b3e
rtcio: Add a test case to test RTCIO's hold ability after deep sleep wakeup
2023-03-29 17:21:50 +08:00
Michael (XIAO Xufeng)
2a052f09f2
Merge branch 'bugfix/fix_uart_tx_done_hardware_concurrency_v4.4' into 'release/v4.4'
...
uart: Fix TX side concurrency issues (v4.4)
See merge request espressif/esp-idf!22596
2023-03-23 16:46:49 +08:00
Cao Sen Miao
897082dbe5
usb_serial_jtag: Fix bug of blocking TX xfer when using driver,
...
Merges https://github.com/espressif/esp-idf/pull/10208
2023-03-20 14:39:35 +08:00
Jiang Jiang Jian
48b3f236d3
Merge branch 'contrib/github_pr_10402_v4.4' into 'release/v4.4'
...
ledc: move callback to IRAM as it's called from an ISR (GitHub PR) (v4.4)
See merge request espressif/esp-idf!22593
2023-03-20 14:06:23 +08:00
Jiang Jiang Jian
3c8bc2213c
Merge branch 'feature/esp32c3_uart_add_wakeup_event_v4.4' into 'release/v4.4'
...
UART: add uart wakeup event for esp32c3 and esp32s3 (v4.4)
See merge request espressif/esp-idf!22647
2023-03-20 14:05:42 +08:00
Michael (XIAO Xufeng)
61521da8d0
Merge branch 'test/add_spi_slave_freq_test_v4.4' into 'release/v4.4'
...
spi_slave: fix io re-config issue (v4.4)
See merge request espressif/esp-idf!22591
2023-03-17 19:25:07 +08:00
morris
6e950ad679
Merge branch 'bugfix/adc2_legacy_oneshot_clk_gating_issue' into 'release/v4.4'
...
adc: fix legacy oneshot driver clock gating issue on c3 (v4.4)
See merge request espressif/esp-idf!22609
2023-03-09 13:29:40 +08:00
laokaiyao
ac67d5dd35
uart: support light sleep on esp32s3
2023-03-08 11:10:43 +08:00
Chen Yi Qun
176f44c15f
uart: add wakeup event for esp32c3
2023-03-08 10:02:23 +08:00
Armando
eab3534c90
adc: no longer support adc2 oneshot mode on esp32c3
...
Due to HW limitation, we don't support this anymore. On c3, ADC2 under oneshot mode is not stable.
However, you can enable CONFIG_ADC_ONESHOT_FORCE_USE_ADC2_ON_C3 to force use
ADC2.
Refer to errata to know more details:
https://www.espressif.com/sites/default/files/documentation/esp32-c3_errata_en.pdf
2023-03-07 11:58:27 +08:00
Armando
f0af48b585
adc: fix legacy oneshot driver clock gating issue on c3
2023-03-07 02:39:11 +00:00
Armando
ffb2db586a
adc: no longer support adc2 continuous mode on esp32c3 and esp32s3
...
Due to HW limitation, we don't support this anymore. On s3 and c3, ADC2 under continuous mode is not stable.
However, you can enable CONFIG_ADC_CONTINUOUS_FORCE_USE_ADC2_ON_C3_S3 to force use
ADC2.
Refer to errata to know more details:
https://www.espressif.com/sites/default/files/documentation/esp32-s3_errata_en.pdf
https://www.espressif.com/sites/default/files/documentation/esp32-c3_errata_en.pdf
2023-03-06 18:57:58 +08:00
Song Ruo Jing
093eaae4e5
uart: Fix two TX concurrency issues
...
1. Concurrency might cause ESP_ERR_TIMEOUT when calling uart_wait_tx_done
2. Concurrency might cause RTS line being de-assreted during tx transmission for rs485 mode
2023-03-03 18:01:46 +08:00
Song Ruo Jing
022a697ed8
ledc: Add check for whether the registered callback is in iram in ledc_cb_register
2023-03-03 17:35:35 +08:00
wanlei
86fd4b983f
spi_slave: fix io re-config issue
2023-03-03 17:28:54 +08:00
Darian Leung
3819d22e93
twai: Add errata workaround for listen only mode
...
This commit adds a workaround for the TWAI listen only mode errata which is
present on the ESP32, ESP32-S2, ESP32-S3, and ESP32-C3. twai_get_status_info()
has also been updated to account for the fact that TEC/REC are frozen in
listen only mode.
Errata Description:
When the TWAI controller is put into listen only mode, it should not influence
the TWAI bus in any way (i.e., should never send a dominant bit). However,
on the targets listed above, the TWAI controller will send dominant bits in an
error frame (i.e., active error frame), even if the controller is set to listen
only mode.
Workaround:
We can force the TWAI controller into the error passive state on startup (by
setting the REC to >= 128). Since the TEC/REC are frozen in listen only mode,
the TWAI controller will remain error passive and only send recessive bits
(i.e., passive error frames), thus will not influence the TWAI bus.
Closes https://github.com/espressif/esp-idf/issues/9157
2023-02-24 20:26:53 +08:00
morris
a43e796f60
rmt: force inline LL functions
...
Closes https://github.com/espressif/esp-idf/issues/9487
2023-02-14 15:11:35 +08:00
jingli
8c491be452
sleep: fix gpio wakeup not working properly in some cases
...
Before this fix, when we call esp_pm_configure after gpio_wakeup_enable,
the configuration of GPIO in sleep state in gpio_wakeup_enable will be
overwritten by esp_pm_configure.
2023-02-09 17:58:40 +08:00
jingli
200dcce535
soc_caps: remove SOC_GPIO_SUPPORT_SLP_SWITCH
...
all esp chips support this feature
2023-02-09 17:52:49 +08:00
morris
854c55c61e
Merge branch 'feature/_spi_slave_reset_trans_queue_api_v4.4' into 'release/v4.4'
...
spi: limit esp32 dma workaround only on esp32(v4.4)
See merge request espressif/esp-idf!21382
2023-02-02 21:39:51 +08:00
morris
46b66530ce
gdma: prevent mutli-channels connect to the same peripheral
...
1. add check in the gdma driver, to prevent multiple channels connecting
to the same peripheral
2. memory copy DMA ID will occupy the peripheral's DMA ID on some ESP
targets (e.g. esp32c3/s3). We should search for a free one when
install async memcpy driver.
Closes https://github.com/espressif/esp-idf/issues/10575
2023-02-01 11:10:26 +08:00
morris
2a9759ea24
gdma: correct the dma trigger of uart
...
GDMA trigger actually is not assigned to UART controller, but for UHCI
controller
2023-02-01 10:56:01 +08:00
morris
e72afc771f
Merge branch 'bugfix/fix_slave_gpio_cs_mixed_with_iomux_bus_v4.4' into 'release/v4.4'
...
spi_slave: fix slave can't use iomux bus mixed with gpio cs_pin (v4.4)
See merge request espressif/esp-idf!21375
2022-12-08 10:58:08 +08:00
Omar Chebib
622fb9e906
CI: check_public_headers script will detect the use of static asserts in headers
...
When a public header contains _Static_assert or static_assert, check_public_headers.py script will detect it and report it as an issue.
Indeed, public headers shall now use ESP_STATIC_ASSERT.
2022-12-06 19:28:51 +08:00
Armando
b23a2b0a75
spi: limit esp32 dma workaround only on esp32
2022-12-01 20:57:09 +08:00
wanlei
cd08ea1f31
spi_slave: fix slave can't use iomux bus mixed with gpio cs_pin
2022-12-01 20:15:21 +08:00
Cao Sen Miao
9a6a28734b
I2C: put some interrupt used functions into IRAM,
...
closes https://github.com/espressif/esp-idf/issues/10079
2022-12-01 16:20:56 +08:00