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

Nano ESP32: add debug support #8567

Merged
merged 5 commits into from
Aug 30, 2023

Conversation

pillo79
Copy link
Contributor

@pillo79 pillo79 commented Aug 25, 2023

Description of Change

This adds debugging capability to the Arduino Nano ESP32 board, by allowing the user to use the Hardware CDC USB peripheral.

  • 5a48caa fixes a minor issue with the build_opt.h file.
  • 4119409 makes the debug configuration file customizable by board, to allow special instructions on the Arduino Nano ESP32
  • 53fc5f6 fixes the shared prefix in platform.txt (even though it is overwritten by debug_custom.json)
  • 1feca59 adds the actual menu and related options to the Nano ESP32.

Tests scenarios

Tested with an Arduino Nano ESP32 on Mac, Windows and Linux with a recent Arduino IDE (nightly builds).

Related links

Includes commits from #8565 and #8566 to avoid conflicts on boards.txt.

@pillo79 pillo79 marked this pull request as draft August 25, 2023 17:02
@VojtechBartoska VojtechBartoska added this to the 2.0.12 milestone Aug 28, 2023
@pillo79 pillo79 marked this pull request as ready for review August 29, 2023 12:26
@me-no-dev
Copy link
Member

@pillo79 after merging the previous two, a merge conflict appeared :) please fix

"touch" would create the file if not present, but not delete its
contents if a previous run left the file in the build dir.
"debug.toolchain.prefix" must end with a dash, since only the tool name is
appended to this string.

The reason this is not a major issue is that the "debug_custom.json" file
(copied in the sketch directory when debugging is enabled) forces its own
prefix. And to make things more interesting, the "toolchainPrefix" entry
in that file should _not_ end with a dash.
@pillo79
Copy link
Contributor Author

pillo79 commented Aug 30, 2023

@me-no-dev Squash merge made Git do horrible things with "nested" PRs. 😖
This is now rebased over current release/v2.x and only contains the relevant previous commits + merge fix.

@me-no-dev me-no-dev merged commit 738be45 into espressif:release/v2.x Aug 30, 2023
35 checks passed
me-no-dev pushed a commit that referenced this pull request Sep 4, 2023
* Nano ESP32: fix previous merge issues

* platform: remove previous build options if file is missing

"touch" would create the file if not present, but not delete its
contents if a previous run left the file in the build dir.

* platform: make debug_custom.json file customizable by board

* platform: fix default debug prefix

"debug.toolchain.prefix" must end with a dash, since only the tool name is
appended to this string.

The reason this is not a major issue is that the "debug_custom.json" file
(copied in the sketch directory when debugging is enabled) forces its own
prefix. And to make things more interesting, the "toolchainPrefix" entry
in that file should _not_ end with a dash.

* Nano ESP32: add debugging support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants