This repository has been archived by the owner on Oct 4, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 97
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
23 changed files
with
2,270 additions
and
987 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ | |
platformio.ini | ||
lib/readme.txt | ||
.travis.yml | ||
*.py | ||
stackdmp.txt | ||
*.jar |
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,26 @@ | ||
#!/usr/bin/env python | ||
from subprocess import call | ||
import os | ||
Import("env") | ||
|
||
def code_check(source, target, env): | ||
print("\n** Starting cppcheck...") | ||
call(["cppcheck", os.getcwd()+"/.", "--force", "--enable=all"]) | ||
print("\n** Finished cppcheck...\n") | ||
print("\n** Starting cpplint...") | ||
call(["cpplint", "--extensions=ino,cpp,h", "--filter=-legal/copyright,-build/include,-whitespace", | ||
"--linelength=120", "--recursive", "src", "lib/myESP"]) | ||
print("\n** Finished cpplint...") | ||
|
||
#my_flags = env.ParseFlags(env['BUILD_FLAGS']) | ||
#defines = {k: v for (k, v) in my_flags.get("CPPDEFINES")} | ||
# print defines | ||
# print env.Dump() | ||
|
||
# built in targets: (buildprog, size, upload, program, buildfs, uploadfs, uploadfsota) | ||
env.AddPreAction("buildprog", code_check) | ||
# env.AddPostAction(.....) | ||
|
||
# see http://docs.platformio.org/en/latest/projectconf/advanced_scripting.html#before-pre-and-after-post-actions | ||
# env.Replace(PROGNAME="firmware_%s" % defines.get("VERSION")) | ||
# env.Replace(PROGNAME="firmware_%s" % env['BOARD']) |
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,14 @@ | ||
#!/usr/bin/env python | ||
from subprocess import call | ||
import os | ||
Import("env") | ||
|
||
def clean(source, target, env): | ||
print("\n** Starting clean...") | ||
call(["pio", "run", "-t", "erase"]) | ||
call(["esptool.py", "-p COM6", "write_flash 0x00000", os.getcwd()+"../firmware/*.bin"]) | ||
print("\n** Finished clean.") | ||
|
||
# built in targets: (buildprog, size, upload, program, buildfs, uploadfs, uploadfsota) | ||
env.AddPreAction("buildprog", clean) | ||
|
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,22 @@ | ||
#!/usr/bin/env python | ||
from subprocess import call | ||
import os | ||
|
||
# example stackdmp.txt would contain text like below copied & pasted from a 'crash dump' command | ||
# >>>stack>>> | ||
# 3fffff20: 3fff32f0 00000003 3fff3028 402101b2 | ||
# 3fffff30: 3fffdad0 3fff3280 0000000d 402148aa | ||
# 3fffff40: 3fffdad0 3fff3280 3fff326c 3fff32f0 | ||
# 3fffff50: 0000000d 3fff326c 3fff3028 402103bd | ||
# 3fffff60: 0000000d 3fff34cc 40211de4 3fff34cc | ||
# 3fffff70: 3fff3028 3fff14c4 3fff301c 3fff34cc | ||
# 3fffff80: 3fffdad0 3fff14c4 3fff3028 40210493 | ||
# 3fffff90: 3fffdad0 00000000 3fff14c4 4020a738 | ||
# 3fffffa0: 3fffdad0 00000000 3fff349c 40211e90 | ||
# 3fffffb0: feefeffe feefeffe 3ffe8558 40100b01 | ||
# <<<stack<<< | ||
|
||
# java -jar .\EspStackTraceDecoder.jar C:\Users\Paul\.platformio\packages\toolchain-xtensa\bin\xtensa-lx106-elf-addr2line.exe .pioenvs/d1_mini/firmware_d1_mini.elf stackdmp.txt | ||
|
||
# python decoder.py -p ESP8266 -t C:\Users\Paul\.platformio\packages\toolchain-xtensa -e .pioenvs/nodemcuv2/firmware.elf stackdmp.txt | ||
call(['python', 'decoder.py ', '-s', '-e', os.getcwd()+"/.pioenvs/d1_mini/firmware_d1_mini.elf", 'stackdmp.txt']) |
Oops, something went wrong.