Fix SWD, output couldn't be disabled in dedic_gpio (EUB-98)#40
Fix SWD, output couldn't be disabled in dedic_gpio (EUB-98)#40viric wants to merge 1 commit intoespressif:masterfrom
Conversation
👋 Welcome viric, thank you for your first contribution to 📘 Please check project Contributions Guide of the project for the contribution checklist, information regarding code and documentation style, testing and other topics. Pull request review and merge process you can expectWe do welcome contributions in the form of bug reports, feature requests and pull requests via this public GitHub repository.
|
|
@viric Thank you for the fix and the PR. I’m a bit busy this week, but I’ll probably be able to review it next week. |
The SWDIO output was never disabled, and this caused all readings to be wrong. This seems related to ESP32-S2 and S3 SOC_DEDIC_GPIO_OUT_AUTO_ENABLE. I change to use dedic_gpio only for input, and then I drive the output the usual gpio_ll_set_level way. This makes openocd finally work for me; debugging an nrf52 target.
|
@viric which IDF release are you using to build the project? IDF v5.4 and later include some changes related to dedic_gpio, and we haven’t adapted to those yet. v5.3 should work without any changes. Could you please confirm this as a first step? |
|
I was using ESP-IDF 5.5.1. |
|
Any chance to build & test with v5.3? Then we can focus on the issue and find a common fix for all branches. |
The SWDIO output was never disabled, and this caused all readings to be wrong. This seems related to ESP32-S2 and S3
SOC_DEDIC_GPIO_OUT_AUTO_ENABLE.
I change to use dedic_gpio only for input, and then I drive the output the usual gpio_ll_set_level way.
This makes openocd finally work for me; debugging an nrf52 target.
Description
Related
Testing
Checklist
Before submitting a Pull Request, please ensure the following: