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

Debugging ESP32S3 in Eclipse IDE (IEP-1299) #1026

Closed
jrdecesare opened this issue Jul 30, 2024 · 12 comments
Closed

Debugging ESP32S3 in Eclipse IDE (IEP-1299) #1026

jrdecesare opened this issue Jul 30, 2024 · 12 comments
Assignees

Comments

@jrdecesare
Copy link

Hi!
For quite some time I was able to compile and debug my ESP32S3 project. I went back to the project a few weeks later and I am now getting this error message when I debug:

Usage: idf.py Marine\BMS\Software\BMS_Test_App\build [OPTIONS]
Try 'idf.py Marine\BMS\Software\BMS_Test_App\build --help' for help.

Error: No such option: -p

It seems as if the -p is no longer an option?? I have my USB connected to my workstation as COM9. This used to work so I don't know if a windows update had something to do with this.

I also:

  • downloaded the latest tools ESP-IDF-V5.3
  • can compile the code succesfully
  • deleted the Debug Configuration and recreated one. Problem still exists.
  • Rebooted my workstation twice.

Thanks!!
John

image
image

@github-actions github-actions bot changed the title Debugging ESP32S3 in Eclipse IDE Debugging ESP32S3 in Eclipse IDE (IEP-1299) Jul 30, 2024
@sigmaaa
Copy link
Collaborator

sigmaaa commented Jul 31, 2024

Hi @jrdecesare,

I could not reproduce this issue with the ESP32-S3 devkit and ESP-IDF 5.3 (I've tested the uart flashing, the serial monitor, and the openocd debugging). It's weird, that you're encountering this problem when trying to debug, as the -p argument is used for UART flashing. If you use the debug configuration (ESP-IDF GDB OpenOCD Debugging), you don't need the UART port, as flashing is done via JTAG.

If you are using the ESP32-S3 devkit, please follow these steps for debugging:

  1. Create the ESP-IDF GDB OpenOCD Debugging configuration if you don't already have one.

  2. Edit the Configuration and navigate to the Debugger tab -> Select the esp32s3 target and ESP32-S3 chip (via built-in USB-JTAG) board.

  3. Specify Flash Size on Windows: Sometimes it's necessary to specify flash size on Windows. To do it: Open sdkconfig in your project (double-click the file). Search for Serial flasher config and set the Flash size to 4MB.

  4. Connect the Device: The ESP32-S3 devkit has two micro USB ports (USB and UART). Connect to the USB port.

  5. Start the Debug Session: Select the debug configuration in debug mode and click "Debug". The flash process will be done automatically via JTAG, and then the debug session should start.

@jrdecesare
Copy link
Author

jrdecesare commented Jul 31, 2024 via email

@sigmaaa
Copy link
Collaborator

sigmaaa commented Jul 31, 2024

I can build my application fine with no errors.

@.***

I created a debug configuration as such:

@.***

@.***

When I debug, I get this error:

@.***

Hi @jrdecesare,

we can't see the screenshots. Could you please upload it again? Thank you

@jrdecesare
Copy link
Author

jrdecesare commented Jul 31, 2024 via email

@sigmaaa
Copy link
Collaborator

sigmaaa commented Aug 1, 2024

Hi @jrdecesare

we can't see the word document either. Looks like github blocking the files uploaded from the email

@jrdecesare
Copy link
Author

jrdecesare commented Aug 1, 2024 via email

@sigmaaa
Copy link
Collaborator

sigmaaa commented Aug 2, 2024

Hi @jrdecesare,

you can send them via a browser on the GitHub page or to me at this address - [email protected]. Thanks

@sigmaaa
Copy link
Collaborator

sigmaaa commented Aug 2, 2024

Hi @jrdecesare,

the configuration that you are showing on the screenshot (ESP-IDF Application) is for flashing. For openOCD debugging, you must use the "ESP-IDF GDB OpenOCD Debugging" configuration. I've deleted the default one and recorded a small demo of how the debug should work. Please, take a look:

debug.esp32s3.demo.mp4

PS I'm using the latest master, so the icon for the configuration is different

@sigmaaa
Copy link
Collaborator

sigmaaa commented Aug 2, 2024

Hi @jrdecesare,

one more thing. It's not clear why you are having this issue:
image
Could you please provide an error log after you face it again by following these steps? https://github.com/espressif/idf-eclipse-plugin?tab=readme-ov-file#error-log

@sigmaaa
Copy link
Collaborator

sigmaaa commented Aug 7, 2024

Hi @jrdecesare,

Is there any update on this? Were you able to debug?

@sigmaaa sigmaaa self-assigned this Aug 7, 2024
@jrdecesare
Copy link
Author

jrdecesare commented Aug 7, 2024 via email

@sigmaaa
Copy link
Collaborator

sigmaaa commented Sep 12, 2024

Hi @jrdecesare,

Is there any update on this?

@sigmaaa sigmaaa closed this as completed Oct 3, 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

2 participants