espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
12.98k stars 7.11k forks source link

mosi is high in idf4.3.2 but low in idf5.2.2 when spi is idle (IDFGH-13028) #13974

Open achao1104 opened 1 month ago

achao1104 commented 1 month ago

Answers checklist.

IDF version.

idf5.2.2

Espressif SoC revision.

esp32s2

Operating System used.

Windows

How did you build your project?

Command line with Make

If you are using Windows, please specify command line type.

None

Development Kit.

esp32s2

Power Supply used.

USB

What is the expected behavior?

mosi is high in idf4.3.2 but low in idf5.2.2 when spi is idle, and I need it same as before, that means to keep mosi high when spi is idle.

What is the actual behavior?

mosi is high in idf4.3.2 but low in idf5.2.2 when spi is idle

Steps to reproduce.

mosi is high in idf4.3.2 but low in idf5.2.2 when spi is idle

Debug Logs.

No response

More Information.

No response

suda-morris commented 1 month ago

Background: https://github.com/espressif/esp-idf/commit/8f5851d0646cf7fbccc66929b2e307f0e4b438e3 The IDLE level on esp32 is low, and as a driver, we want to keep the same behavior for all ESP targets.

May I know why your use case depends on a non-standard MOSI idle level?