Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Eclipse 2024-03, idf-eclipse-plugin v3.0.0] Unable to debug ESP32-P4 (IEP-1316) #1039

Closed
GTCLive opened this issue Aug 27, 2024 · 10 comments
Closed
Assignees
Milestone

Comments

@GTCLive
Copy link

GTCLive commented Aug 27, 2024

Operating System: linux
Java Runtime Version: 17.0.12+7
Eclipse Version: 4.31.100.v20240229-0520
Eclipse CDT Version: 11.5.0.202312062348
IDF Eclipse Plugin Version: 3.0.0.202406051940
ESP-IDF v5.4-dev-2472-gc9df77efbf

Hi guys. Upgraded to 2024-03 to give the new LSP Editor implementation a shot and I think it's a great improvement. Awesome work from Team Espressif once again!

However, I am having difficulties with a ESP32-P4NRW32 silicon though. Incapable to debug with the default settings. Not entirely sure if I'm doing anything wrong or something I should bring to your attention (bug?). Regardless, I'm putting this here for review. Let me know if you need any screengrabs or logs.

P4-debug

P4-debug2

@github-actions github-actions bot changed the title [Eclipse 2024-03, idf-eclipse-plugin v3.0.0] Unable to debug ESP32-P4 [Eclipse 2024-03, idf-eclipse-plugin v3.0.0] Unable to debug ESP32-P4 (IEP-1316) Aug 27, 2024
@espressif espressif deleted a comment from YeGop0218 Aug 27, 2024
@sigmaaa sigmaaa self-assigned this Aug 28, 2024
@kolipakakondal kolipakakondal added this to the v3.1.0 milestone Sep 3, 2024
@erhankur
Copy link

@GTCLive Can you disable the Watchdogs (Interrupt and Task Wdts) from the menuconfig and try again?

@GTCLive
Copy link
Author

GTCLive commented Sep 19, 2024

Screenshot_2024-09-19_12-29-07

Screenshot_2024-09-19_12-28-50

@erhankur
Oh wow. It's Alive!! You're right, thanks so much for the heads up and workaround. Screengrabs for others shall any confusion about disabling the WDs arise. Works greats at my end.

Note: compiled against the latest esp-14.2.0_20240906 toolchain. Master branch 5.4. Fwiw.

@alirana01 alirana01 modified the milestones: v3.1.0, v3.1.1 Sep 26, 2024
@erhankur
Copy link

erhankur commented Oct 9, 2024

@GTCLive Possible fix has been merged into the OpenOCD master branch. 542d1d75fcadf35ff70738f6aaeead420f4d80da

Can you verify if it works for you, too? Thanks

@GTCLive
Copy link
Author

GTCLive commented Oct 10, 2024

@erhankur Didn't get lucky this time. It now stop at a user breakpoint, which it wasn't before, and so that's an improvement already. However pressing the 'Step Over' arrow sends it off looping continuously. Let me know if you suspect that I'm doing anything wrong, I'll give it another shot. (ps. tried twice; a blinky as above (failed), and that simple template as per visual below (also failed.)

Screenshot_2024-10-10_11-41-47

Screenshot_2024-10-10_11-49-31

@GTCLive
Copy link
Author

GTCLive commented Oct 10, 2024

@erhankur Wait wait... do I need to recompile esp-idf or anything?? I see your PR is in /espressif/openocd-esp32. I've just updated/checkout the /espressif/esp-idf master branch and updated the tools before that test above. Prolly explains it...

Anything more specific I need to do please shout, happy to test if you need.

@erhankur
Copy link

@GTCLive Yes, you need to update your OpenOCD with the unreleased version.

You can get the latest one from here. https://github.com/espressif/openocd-esp32/actions/runs/11263636120

@GTCLive
Copy link
Author

GTCLive commented Oct 10, 2024

@erhankur Ah. Ofc. (thanks!).

Ok, I've done that, took a backup (copy 1) of my released version, and replaced the content of the openocd-esp folder with the /bin/ & /share/ content from the one you linked up. Exact same file structure, yet unhappy with the espressif kit :(

Guess we'll have to wait for the release to give it a go. I honestly wouldn't know where to look in the source-code to make this work, and the last thing I want is to make you waste your time (and patience!). I'll keep an eye open for the release and update.

Screenshot_2024-10-10_15-04-57

@erhankur
Copy link

Ok. No worries. I think we will have a new release soon with several p4 bug fixes. Thanks for your help and patience.

@erhankur
Copy link

@GTCLive IDF master branch is updated with the new OpenOCD release. Please check it out, run install.sh and use the latest OpenOCD with your P4 environment.

@GTCLive
Copy link
Author

GTCLive commented Oct 31, 2024

@erhankur
Fixed. Top quality. And much appreciated on behalf of world.

Closing this.

@GTCLive GTCLive closed this as completed Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants