Skip to content

Commit

Permalink
Merge pull request #1 from raomin/master
Browse files Browse the repository at this point in the history
updated esptool and added serial speed
  • Loading branch information
BattloXX authored Feb 10, 2020
2 parents 1fa69e6 + 82def59 commit 8a41de7
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 12 deletions.
Binary file removed FlashESP8266.exe
Binary file not shown.
41 changes: 34 additions & 7 deletions FlashESP8266/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions FlashESP8266/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Diagnostics;
using System.IO;
using System.IO.Ports;

using System.Management;
using System.Windows.Forms;

namespace FlashESP8266
Expand All @@ -12,7 +12,7 @@ public partial class Form1 : Form
public Form1()
{
InitializeComponent();

//Check Com Ports
string[] ports = SerialPort.GetPortNames();
//Check Firmware files
Expand All @@ -33,6 +33,7 @@ public Form1()

cbx_firmware.DropDownStyle = ComboBoxStyle.DropDownList;
cbx_serial.DropDownStyle = ComboBoxStyle.DropDownList;
speed.DropDownStyle = ComboBoxStyle.DropDownList;
}

private void bttn_flash_Click(object sender, EventArgs e)
Expand All @@ -54,7 +55,7 @@ private void bttn_flash_Click(object sender, EventArgs e)

string cmd = "esptool.exe";
//Flash Arguments for the esptool.exe. Change when needed.
string arg = "-vv -cd nodemcu -cb 115200 -cp " + serial + " -ca 0x00000 -cf " + firmware;
string arg = "--port " + serial + " --baud "+speed.Text+" write_flash 0x0 " + firmware;

Process myProcess = null;

Expand All @@ -67,7 +68,7 @@ private void bttn_flash_Click(object sender, EventArgs e)

if (myProcess.ExitCode != 0)
{
MessageBox.Show("Flash Failed, are the Settings correct?");
MessageBox.Show("Flash Failed with arg" +arg+ " are the Settings correct?");
}
else
{
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# ESPEasyFlasher

Small UI for Flashing ESPEasy with esptool. .NET 4.5.2 requierd.
Small and super light UI for Flashing ESPEasy with esptool. .NET 4.5.2 required.

![Screenshot](screenshot.png)
Binary file modified esptool.exe
Binary file not shown.
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8a41de7

Please sign in to comment.