forked from esprfid/esp-rfid
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
249 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,30 @@ | ||
echo off | ||
@ECHO OFF | ||
cls | ||
set /p com=Enter which COM Port your ESP is connected eg. COM1 COM2 COM7: | ||
esptool.exe -vv -cd nodemcu -cb 921600 -cp %com% -ca 0x00000 -cf firmware.bin | ||
|
||
echo - [1] Flash Generic Firmware | ||
echo - [2] Flash Firmware for Official Hardware (v2) | ||
echo - [3] Erase the Firmware on ESP8266 by flashing empty file | ||
|
||
set /p opt=Please choose an option eg. 1: | ||
|
||
2>NUL CALL :%opt% | ||
IF ERRORLEVEL 1 CALL :DEFAULT_CASE | ||
|
||
:1 | ||
set /p com=Enter which COM Port your ESP is connected eg. COM1 COM2 COM7: | ||
esptool.exe -vv -cd nodemcu -cb 921600 -cp %com% -ca 0x00000 -cf generic.bin | ||
:2 | ||
set /p com=Enter which COM Port your ESP is connected eg. COM1 COM2 COM7: | ||
esptool.exe -vv -cd nodemcu -cb 921600 -cp %com% -ca 0x00000 -cf forV2Board.bin | ||
:3 | ||
set /p com=Enter which COM Port your ESP is connected eg. COM1 COM2 COM7: | ||
esptool.exe -vv -cd nodemcu -cb 921600 -cp %com% -ca 0x00000 -cf blank4mb.bin | ||
:DEFAULT_CASE | ||
ECHO Unknown option "%opt%" | ||
GOTO END_CASE | ||
:END_CASE | ||
VER > NUL # reset ERRORLEVEL | ||
GOTO :EOF # return from CALL | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Import("env") | ||
import shutil | ||
import os | ||
# | ||
# Dump build environment (for debug) | ||
# print env.Dump() | ||
# | ||
|
||
# | ||
# Upload actions | ||
# | ||
|
||
def after_build(source, target, env): | ||
shutil.copy(firmware_source, 'bin/forV2Board.bin') | ||
|
||
env.AddPostAction("buildprog", after_build) | ||
|
||
firmware_source = os.path.join(env.subst("$BUILD_DIR"), "firmware.bin") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.