Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows support #46

Open
rgkirch opened this issue Apr 7, 2022 · 0 comments
Open

windows support #46

rgkirch opened this issue Apr 7, 2022 · 0 comments

Comments

@rgkirch
Copy link

rgkirch commented Apr 7, 2022

clj -M -m esprit.flash --erase in powershell gives

clj -M -m esprit.flash --erase
Execution error (IOException) at java.lang.ProcessImpl/create (ProcessImpl.java:-2).
CreateProcess error=193, %1 is not a valid Win32 application

Full report at:
C:\Users\richie\AppData\Local\Temp\clojure-17993955824004058831.edn
{:clojure.main/message
 "Execution error (IOException) at java.lang.ProcessImpl/create (ProcessImpl.java:-2).\r\nCreateProcess error=193, %1 is not a valid Win32 application\r\n",
 :clojure.main/triage
 {:clojure.error/class java.io.IOException,
  :clojure.error/line -2,
  :clojure.error/cause
  "CreateProcess error=193, %1 is not a valid Win32 application",
  :clojure.error/symbol java.lang.ProcessImpl/create,
  :clojure.error/source "ProcessImpl.java",
  :clojure.error/phase :execution},
 :clojure.main/trace
 {:via
  [{:type java.io.IOException,
    :message
    "Cannot run program \"esptool.py\": CreateProcess error=193, %1 is not a valid Win32 application",
    :at [java.lang.ProcessBuilder start "ProcessBuilder.java" 1141]}
   {:type java.io.IOException,
    :message
    "CreateProcess error=193, %1 is not a valid Win32 application",
    :at [java.lang.ProcessImpl create "ProcessImpl.java" -2]}],
  :trace
  [[java.lang.ProcessImpl create "ProcessImpl.java" -2]
   [java.lang.ProcessImpl <init> "ProcessImpl.java" 492]
   [java.lang.ProcessImpl start "ProcessImpl.java" 158]
   [java.lang.ProcessBuilder start "ProcessBuilder.java" 1108]
   [java.lang.ProcessBuilder start "ProcessBuilder.java" 1072]
   [esprit.flash$run_and_print invokeStatic "flash.clj" 15]
   [esprit.flash$run_and_print doInvoke "flash.clj" 14]
   [clojure.lang.RestFn invoke "RestFn.java" 421]
   [esprit.flash$erase invokeStatic "flash.clj" 25]
   [esprit.flash$erase invoke "flash.clj" 20]
   [esprit.flash$_main invokeStatic "flash.clj" 74]
   [esprit.flash$_main doInvoke "flash.clj" 68]
   [clojure.lang.RestFn applyTo "RestFn.java" 137]
   [clojure.lang.Var applyTo "Var.java" 705]
   [clojure.core$apply invokeStatic "core.clj" 667]
   [clojure.main$main_opt invokeStatic "main.clj" 514]
   [clojure.main$main_opt invoke "main.clj" 510]
   [clojure.main$main invokeStatic "main.clj" 664]
   [clojure.main$main doInvoke "main.clj" 616]
   [clojure.lang.RestFn applyTo "RestFn.java" 137]
   [clojure.lang.Var applyTo "Var.java" 705]
   [clojure.main main "main.java" 40]],
  :cause
  "CreateProcess error=193, %1 is not a valid Win32 application"}}

I tried running all the steps manually but I ended up with a javascript repl instead of a clojure repl.

python -m esptool erase_flash
success

then in mfikes\esprit\resources

python -m esptool --baud 2000000 write_flash 0x1000 bootloader.bin 0x8000 partitions_espruino.bin 0x10000 espruino_esp32.bin
success

then build main.bin with wifi and password

python -m esptool --baud 2000000 --port COM3 write_flash 0x320000 main.bin
success

pio device monitor -b 115200

--- Available filters and text transformations: colorize, debug, default, direct, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://bit.ly/pio-monitor-filters
--- Miniterm on COM3  115200,8,N,1 ---
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x17 (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:0x3fff0018,len:4
load:0x3fff001c,len:2668
load:0x40078000,len:7304
load:0x40080000,len:5312
entry 0x40080274

>
>1+1
=2

I made a duplicate request for support here

Thanks for the cool stuff and thanks again for the help and support!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant