You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
I have searched the issue tracker for a similar issue and not found a similar issue.
IDF version.
v5.2.1
Espressif SoC revision.
ESP32-D0WDQ6 (revision v1.0)
Operating System used.
macOS
How did you build your project?
CLion IDE
If you are using Windows, please specify command line type.
None
Development Kit.
Dev Kit with ESP32-WROOM-32
Power Supply used.
USB
What is the expected behavior?
According to the Technical Reference Manual (5.1), the value of the 'GPIO_FUNCn_OUT_SEL' bits in the register 'GPIO_FUNCn_OUT_SEL_CFG_REG' (n=21 &n=22) is a valid peripheral output signal (Table 42. GPIO Matrix Peripheral Signals) or the value '256'.
What is the actual behavior?
The default value of the bits is 0x101 (257), for both (GPIO 21 && GPIO 22).
I would suggest not rely on the default values that were documented in the TRM, because it may be changed in the ROM code if these GPIOs have another special purpose. So always call the APIs provided by the driver/gpio.h for initializing the GPIO.
In the TRM, it didn't say this field has a default value of 256 (shows x in the screenshot from the TRM). It only says if you want a GPIOn to be used as a simple GPIO output, then this field needs to be 256.
Hi @songruo , ok, I realize that. I found it strange that the value is outside the range of a valid value according to TRM. Do you know if the value 257 means anything, or where this value comes from?
Answers checklist.
IDF version.
v5.2.1
Espressif SoC revision.
ESP32-D0WDQ6 (revision v1.0)
Operating System used.
macOS
How did you build your project?
CLion IDE
If you are using Windows, please specify command line type.
None
Development Kit.
Dev Kit with ESP32-WROOM-32
Power Supply used.
USB
What is the expected behavior?
According to the Technical Reference Manual (5.1), the value of the 'GPIO_FUNCn_OUT_SEL' bits in the register 'GPIO_FUNCn_OUT_SEL_CFG_REG' (n=21 &n=22) is a valid peripheral output signal (Table 42. GPIO Matrix Peripheral Signals) or the value '256'.
What is the actual behavior?
The default value of the bits is 0x101 (257), for both (GPIO 21 && GPIO 22).
Steps to reproduce.
Code:
Debug Logs.
The text was updated successfully, but these errors were encountered: