Not able to compile with PlatformIO (Or upload via ESPTool)
See original GitHub issueHeyo.
So first, ESPTool.
I’ve been running esptool.py write_flash X epaper...
, with X being 0x0, 0x1000, and 0x10000. I have been running erase_flash
between each one as well. None have been working, causing this error:
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3f400020,len:571968
, which might be due to incorrect DIO/DO/DI setting? Not sure.
And with PlatformIO, I have:
$ node --version
v10.19.0
$ npm --version
6.14.2
After running pio lib install
to get all dependencies, it fails at building the web pages.
Attempting to build webpage...
npm WARN @neutrinojs/style-minify@8.3.0 requires a peer of neutrino@^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN bootstrap@4.3.1 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-react@7.16.0 requires a peer of eslint@^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-plugin-react-hooks@2.2.0 requires a peer of eslint@^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN epaper_web3@1.0.0 No description
npm WARN epaper_web3@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
b'audited 13128 packages in 4.901s\n\n2 packages are looking for funding\n run `npm fund` for details\n\nfound 369 vulnerabilities (368 low, 1 moderate)\n run `npm audit fix` to fix them, or `npm audit` for details\n'
(node:14965) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
b'\n> epaper_web3@1.0.0 build /home/tony/Documents/PlatformIO/Projects/epaper_templates-master/web\n> webpack --mode production\n\nHash: 85bea136ff2616102151\nVersion: webpack 4.41.2\nTime: 6874ms\nBuilt at: 03/20/2020 7:36:09 PM\n Asset Size Chunks Chunk Names\n assets/2.8b74afbd.js 748 KiB 2 [emitted] [immutable] [big] \n assets/2.8b74afbd.js.gz 212 KiB [emitted] \n assets/index.63137acc.js 90.1 KiB 0 [emitted] [immutable] index\n assets/index.63137acc.js.gz 23.2 KiB [emitted] \n assets/index.d5272d06.css 149 KiB 0 [emitted] [immutable] index\n assets/index.d5272d06.css.gz 24.1 KiB [emitted] \n assets/runtime.07e3d730.js 1.46 KiB 1 [emitted] [immutable] runtime\nassets/runtime.07e3d730.js.gz 724 bytes [emitted] \n index.html 406 bytes [emitted] \n index.html.gz 261 bytes [emitted] \n web_assets.h 930 KiB [emitted] [big] \n\nWARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).\nThis can impact web performance.\nAssets: \n assets/2.8b74afbd.js (748 KiB)\n web_assets.h (930 KiB)\n\nWARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.\nEntrypoints:\n index (989 KiB)\n assets/runtime.07e3d730.js\n assets/2.8b74afbd.js\n assets/index.d5272d06.css\n assets/index.63137acc.js\n\n\nWARNING in webpack performance recommendations: \nYou can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.\nFor more info visit https://webpack.js.org/guides/code-splitting/\n'
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32doit-devkit-v1.html
PLATFORM: Espressif 32 1.9.0 > DOIT ESP32 DEVKIT V1
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 2.10002.190628 (1.0.2)
- tool-esptoolpy 1.20600.0 (2.6.0)
- tool-mkspiffs 2.230.0 (2.30)
- toolchain-xtensa32 2.50200.80 (5.2.0)
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
File ".get_version.py", line 31, in <module>
sys.stdout.write("-DEPAPER_TEMPLATES_VERSION=%s %s" % (version.decode('utf-8'), ' '.join(sys.argv[1:])))
AttributeError: 'str' object has no attribute 'decode'
OSError: 'python3 .get_version.py -DMQTT_DEBUG -Idist' exited 1:
File "/home/tony/.platformio/penv/lib/python3.8/site-packages/platformio/builder/main.py", line 156:
env.SConscript("$BUILD_SCRIPT")
File "/home/tony/.platformio/packages/tool-scons/script/../engine/SCons/Script/SConscript.py", line 597:
return _SConscript(self.fs, *files, **subst_kw)
File "/home/tony/.platformio/packages/tool-scons/script/../engine/SCons/Script/SConscript.py", line 286:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "/home/tony/.platformio/platforms/espressif32@1.9.0/builder/main.py", line 209:
target_elf = env.BuildProgram()
File "/home/tony/.platformio/packages/tool-scons/script/../engine/SCons/Environment.py", line 219:
return self.method(*nargs, **kwargs)
File "/home/tony/.platformio/penv/lib/python3.8/site-packages/platformio/builder/tools/platformio.py", line 61:
env.ProcessProgramDeps()
File "/home/tony/.platformio/packages/tool-scons/script/../engine/SCons/Environment.py", line 219:
return self.method(*nargs, **kwargs)
File "/home/tony/.platformio/penv/lib/python3.8/site-packages/platformio/builder/tools/platformio.py", line 115:
env.ProcessFlags(env.get("BUILD_FLAGS"))
File "/home/tony/.platformio/packages/tool-scons/script/../engine/SCons/Environment.py", line 219:
return self.method(*nargs, **kwargs)
File "/home/tony/.platformio/penv/lib/python3.8/site-packages/platformio/builder/tools/platformio.py", line 213:
env.Append(**env.ParseFlagsExtended(flags))
File "/home/tony/.platformio/packages/tool-scons/script/../engine/SCons/Environment.py", line 219:
return self.method(*nargs, **kwargs)
File "/home/tony/.platformio/penv/lib/python3.8/site-packages/platformio/builder/tools/platformio.py", line 176:
for key, value in env.ParseFlags(str(raw)).items():
File "/home/tony/.platformio/packages/tool-scons/script/../engine/SCons/Environment.py", line 805:
do_parse(arg)
File "/home/tony/.platformio/packages/tool-scons/script/../engine/SCons/Environment.py", line 671:
arg = self.backtick(arg[1:])
File "/home/tony/.platformio/packages/tool-scons/script/../engine/SCons/Environment.py", line 589:
raise OSError("'%s' exited %d" % (command, status))
And even after making a package.json with npm init
(or without it), installing all of the peer deps with install-peerdep
or manually, it’s giving the same error. :c
Issue Analytics
- State:
- Created 4 years ago
- Comments:29 (23 by maintainers)
Top Results From Across the Web
ESP32: code compiles but does not upload after june 25 update
Issue: I am using PlatformIO with VS Code. Everything was working fine until the June 25 update, after which my code will compile,...
Read more >Help with this error- can't upload to esp32
I got some .ini stuff from a website about using the ESP-Prog. ... Uploading .pio\build\esp32dev\firmware.bin esptool.py v3.3 Serial port ...
Read more >Project Fails to Upload to ESP32 on Platformio
This exact sketch uploads fine to my HiLetGo ESP32s (NodeMCU ESP32S) using the Arduino IDE, but when I try to upload via platformio...
Read more >[SOLVED] Upload failed, PIO is using own python esptool.py ...
hi, installed PlatformIO IDE new and tried to upload my 1st project. But got the following error: Uploading .pio/build/XXXXXXXXX Traceback ...
Read more >Cannot upload code to ESP32 unsing Platformio on VS code
However, on the vscode, I am able to build the project, but I have problems uploading. It complains with the error message:
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@insaneFu, if things are working properly, you’ll see a refresh immediately after boot or settings saved (including saving a template). Sounds like a hw issue if you’re not seeing any response from the screen.
The only reason the list of timezone selections is so sparse is because I’m lazy. I’d like for most major timezones to be there, just haven’t gotten around to it. Happy to add yours as a oneoff, but there should definitely be a broader selection.
@insaneFu Thanks for the detailed description!
But you actually want 4-pin SPI.
And as for timezones, I’m planning on having a guide of sorts for adding new timezones. Since CET isn’t that much of a “niche” timezone, I don’t think @sidoh would be against it being pushed to the master branch.
I should have something for you soon. Stay tuned.