Skip to content

Commit 8effe7c

Browse files
committed
added files to Visual Studio project for editing on Windows machine. Removed flash_size parameter from esptool.py
1 parent 1934a4d commit 8effe7c

File tree

5 files changed

+376
-3
lines changed

5 files changed

+376
-3
lines changed

.gitignore

Lines changed: 247 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,247 @@
1+
#ignore my settings
2+
C:\workspace\myPrivateSettings.h
3+
C:\workspace\myPrivateSettings.cpp
4+
5+
## Ignore Visual Studio temporary files, build results, and
6+
## files generated by popular Visual Studio add-ons.
7+
8+
# User-specific files
9+
*.suo
10+
*.user
11+
*.userosscache
12+
*.sln.docstates
13+
14+
# User-specific files (MonoDevelop/Xamarin Studio)
15+
*.userprefs
16+
17+
# Build results
18+
[Dd]ebug/
19+
[Dd]ebugPublic/
20+
[Rr]elease/
21+
[Rr]eleases/
22+
[Xx]64/
23+
[Xx]86/
24+
[Bb]uild/
25+
bld/
26+
[Bb]in/
27+
[Oo]bj/
28+
29+
# Visual Studio 2015 cache/options directory
30+
.vs/
31+
# Uncomment if you have tasks that create the project's static files in wwwroot
32+
#wwwroot/
33+
34+
# MSTest test Results
35+
[Tt]est[Rr]esult*/
36+
[Bb]uild[Ll]og.*
37+
38+
# NUNIT
39+
*.VisualState.xml
40+
TestResult.xml
41+
42+
# Build Results of an ATL Project
43+
[Dd]ebugPS/
44+
[Rr]eleasePS/
45+
dlldata.c
46+
47+
# DNX
48+
project.lock.json
49+
artifacts/
50+
51+
*_i.c
52+
*_p.c
53+
*_i.h
54+
*.ilk
55+
*.meta
56+
*.obj
57+
*.pch
58+
*.pdb
59+
*.pgc
60+
*.pgd
61+
*.rsp
62+
*.sbr
63+
*.tlb
64+
*.tli
65+
*.tlh
66+
*.tmp
67+
*.tmp_proj
68+
*.log
69+
*.vspscc
70+
*.vssscc
71+
.builds
72+
*.pidb
73+
*.svclog
74+
*.scc
75+
76+
# Chutzpah Test files
77+
_Chutzpah*
78+
79+
# Visual C++ cache files
80+
ipch/
81+
*.aps
82+
*.ncb
83+
*.opendb
84+
*.opensdf
85+
*.sdf
86+
*.cachefile
87+
*.VC.db
88+
89+
# Visual Studio profiler
90+
*.psess
91+
*.vsp
92+
*.vspx
93+
*.sap
94+
95+
# TFS 2012 Local Workspace
96+
$tf/
97+
98+
# Guidance Automation Toolkit
99+
*.gpState
100+
101+
# ReSharper is a .NET coding add-in
102+
_ReSharper*/
103+
*.[Rr]e[Ss]harper
104+
*.DotSettings.user
105+
106+
# JustCode is a .NET coding add-in
107+
.JustCode
108+
109+
# TeamCity is a build add-in
110+
_TeamCity*
111+
112+
# DotCover is a Code Coverage Tool
113+
*.dotCover
114+
115+
# NCrunch
116+
_NCrunch_*
117+
.*crunch*.local.xml
118+
nCrunchTemp_*
119+
120+
# MightyMoose
121+
*.mm.*
122+
AutoTest.Net/
123+
124+
# Web workbench (sass)
125+
.sass-cache/
126+
127+
# Installshield output folder
128+
[Ee]xpress/
129+
130+
# DocProject is a documentation generator add-in
131+
DocProject/buildhelp/
132+
DocProject/Help/*.HxT
133+
DocProject/Help/*.HxC
134+
DocProject/Help/*.hhc
135+
DocProject/Help/*.hhk
136+
DocProject/Help/*.hhp
137+
DocProject/Help/Html2
138+
DocProject/Help/html
139+
140+
# Click-Once directory
141+
publish/
142+
143+
# Publish Web Output
144+
*.[Pp]ublish.xml
145+
*.azurePubxml
146+
147+
# TODO: Un-comment the next line if you do not want to checkin
148+
# your web deploy settings because they may include unencrypted
149+
# passwords
150+
#*.pubxml
151+
*.publishproj
152+
153+
# NuGet Packages
154+
*.nupkg
155+
# The packages folder can be ignored because of Package Restore
156+
**/packages/*
157+
# except build/, which is used as an MSBuild target.
158+
!**/packages/build/
159+
# Uncomment if necessary however generally it will be regenerated when needed
160+
#!**/packages/repositories.config
161+
# NuGet v3's project.json files produces more ignoreable files
162+
*.nuget.props
163+
*.nuget.targets
164+
165+
# Microsoft Azure Build Output
166+
csx/
167+
*.build.csdef
168+
169+
# Microsoft Azure Emulator
170+
ecf/
171+
rcf/
172+
173+
# Windows Store app package directory
174+
AppPackages/
175+
BundleArtifacts/
176+
177+
# Visual Studio cache files
178+
# files ending in .cache can be ignored
179+
*.[Cc]ache
180+
# but keep track of directories ending in .cache
181+
!*.[Cc]ache/
182+
183+
# Others
184+
ClientBin/
185+
[Ss]tyle[Cc]op.*
186+
~$*
187+
*~
188+
*.dbmdl
189+
*.dbproj.schemaview
190+
*.pfx
191+
*.publishsettings
192+
node_modules/
193+
orleans.codegen.cs
194+
195+
# RIA/Silverlight projects
196+
Generated_Code/
197+
198+
# Backup & report files from converting an old project file
199+
# to a newer Visual Studio version. Backup files are not needed,
200+
# because we have git ;-)
201+
_UpgradeReport_Files/
202+
Backup*/
203+
UpgradeLog*.XML
204+
UpgradeLog*.htm
205+
206+
# SQL Server files
207+
*.mdf
208+
*.ldf
209+
210+
# Business Intelligence projects
211+
*.rdl.data
212+
*.bim.layout
213+
*.bim_*.settings
214+
215+
# Microsoft Fakes
216+
FakesAssemblies/
217+
218+
# GhostDoc plugin setting file
219+
*.GhostDoc.xml
220+
221+
# Node.js Tools for Visual Studio
222+
.ntvs_analysis.dat
223+
224+
# Visual Studio 6 build log
225+
*.plg
226+
227+
# Visual Studio 6 workspace options file
228+
*.opt
229+
230+
# Visual Studio LightSwitch build output
231+
**/*.HTMLClient/GeneratedArtifacts
232+
**/*.DesktopClient/GeneratedArtifacts
233+
**/*.DesktopClient/ModelManifest.xml
234+
**/*.Server/GeneratedArtifacts
235+
**/*.Server/ModelManifest.xml
236+
_Pvt_Extensions
237+
238+
# LightSwitch generated files
239+
GeneratedArtifacts/
240+
ModelManifest.xml
241+
242+
# Paket dependency manager
243+
.paket/paket.exe
244+
245+
# FAKE - F# Make
246+
.fake/
247+
/imageConvert2BMP/Properties/PublishProfiles/gojimmypi-dev-imageConvert2BMP.pubxml

ESPTOOL.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
This command used to work:
2+
3+
~/workspace/esptool/esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --flash_size=8m 0 ~/workspace/micropython/esp8266/build/firmware-combined.bin
4+
5+
esptool.py v2.0-beta2
6+
Connecting....
7+
Detecting chip type... ESP8266
8+
Uploading stub...
9+
Running stub...
10+
Stub running...
11+
Attaching SPI flash...
12+
Configuring flash size...
13+
Flash params set to 0x0020
14+
Compressed 573408 bytes to 375743...
15+
Wrote 573408 bytes (375743 compressed) at 0x00000000 in 33.9 seconds (effective 135.4 kbit/s)...
16+
Hash of data verified.
17+
18+
Leaving...
19+
Hard resetting...
20+
21+
but gives errors, spewing this error over and over:
22+
23+
ets Jan 8 2013,rst cause:2, boot mode:(3,7)
24+
25+
load 0x40100000, len 32096, room 16
26+
tail 0
27+
chksum 0x8d
28+
load 0x3ffe8000, len 1088, room 8
29+
tail 8
30+
chksum 0xfa
31+
load 0x3ffe8440, len 3000, room 0
32+
tail 8
33+
chksum 0x9f
34+
csum 0x9f
35+
#0 ets_task(40209c08, 31, 3ffe9010, 4)
36+
rf_cal[0] !=0x05,is 0xFF
37+
38+
The reason for this is the esptool.py has changed and no longer requires the --flash_size parameter (and if specified, no lponger wants units in bits!)

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,43 @@ To get started quickly, here's a simple script to fetch the build script, flag i
1010
## build_esp8266.sh
1111
This is the main script to build MicroPython for the ESP8266
1212

13+
Usage:
14+
./build_esp8266.sh [OPTION]
15+
16+
OPTIONS
17+
18+
HELP
19+
show this help. Source will be placed in ~/workspace/ directory.
20+
21+
FULL
22+
Update OS and installed apps, download latest esp-open-sdk and micropython, build everything, erase and upload new binary to /dev/ttyUSB0
23+
24+
MAKE-ONLY
25+
Download latest esp-open-sdk and micropython, build everything.
26+
27+
MAKE-ONLY-ESP8266
28+
Download latest micropython and build (skip esp-open-sdk).
29+
30+
RUN-TESTS
31+
Run the esp8266 test script
32+
33+
FLASH-ONLY
34+
Only writing existing flash to device. (no updates, no build)
35+
36+
37+
Note the FULL option, of rebuilding EVERYTHING can take a quite long time on the Raspberry Pi.
38+
39+
#Examples:
40+
41+
./build_esp8266.sh MAKE-ONLY-ESP8266
42+
43+
./build_esp8266.sh FLASH-ONLY
44+
45+
which really just does this:
46+
47+
~/workspace/esptool/esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash 0 ~/workspace/micropython/esp8266/build/firmware-combined.bin
48+
49+
1350
## Comments & feedback
1451
You can leave messages on the MicroPython forum:
1552

0 commit comments

Comments
 (0)