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

add support to esp32s2 #2

Merged
merged 2 commits into from
Nov 10, 2020
Merged

add support to esp32s2 #2

merged 2 commits into from
Nov 10, 2020

Conversation

zouffin
Copy link

@zouffin zouffin commented Oct 23, 2020

No description provided.

@zouffin
Copy link
Author

zouffin commented Oct 23, 2020

Sorry but something was wrong on the merge request:

my modification is to add a methode:

  private String getChip() {
    String targetBoardId = BaseNoGui.getTargetBoard().getId();

    if (targetBoardId.contains("s2")) {
      return "esp32s2";
    }
    else {
      return "esp32";
    }

  } 

and call it each time you need to set "chip", ex:

sysExec(new String[]{esptool.getAbsolutePath(), "--chip", getChip(), "--port", serialPort, "--before", "default_reset", "--after", "hard_reset", "erase_flash"});

@lorol
Copy link
Owner

lorol commented Nov 10, 2020

Hi, I have no experience with merging etc. Will try ...

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

Successfully merging this pull request may close these issues.

3 participants