Open mpmarks opened 5 years ago
Where is wm_tools.exe
? The system can't find it and so can't I looking through the folders.
Its in the w600/sdk repository ( https://github.com/w600/sdk) in the tools subdirectory
Thank you so much! ❤️ It's working now \o/
I hope this repository will get updated soon to:
(Poke @linux-downey )
Right now it only works on Windows with starting Arduino as administrator.
But for others that are lost in the current state (21 July 2019) of the repository, here's how I got it working with Arduino 1.8.9 on an Air602 board :
1) Download w600-arduino-InnerIDE-0.2.1.zip
2) Extract the .zip file
3) Open the extracted folder and extract hardware.tar.xz
(If you get a hardware.tar
file, extract that too)
4) Open the hardware
folder you have extrated and copy the w600
folder
5) Go to your Arduino hardware folder, usually somewhere under Documents/Arduino/hardware
and paste the w600
folder (should now be Documents/Arduino/hardware/w600
).
If there is no hardware
folder, create one!
If there is no Arduino
folder, check where your skecthbook loation is and go there to paste the folder (Open Arduino, click File -> Preferences)
6) Go to the wmtools
folder (Documents/Arduino/hardware/w600/wmtools
)
7) Download and paste wm_tool.exe there
8) Go to the w600-arduino-0.2.0
folder (Documents/Arduino/hardware/w600-arduino-0.2.0
)
9) Edit platform.txt
10) Replace
tools.wmtools.cmd.windows=download.exe
tools.wmtools.path={runtime.tools.wmtools.path}
tools.wmtools.upload.protocol=arduino
tools.wmtools.upload.params.verbose=-vv
tools.wmtools.upload.params.quiet=
tools.wmtools.upload.pattern="{runtime.hardware.path}/wmtools/{cmd}" -c "{serial.port}" -f "{build.path}/{build.project_name}.gz.img"
With:
tools.wmtools.cmd=download.exe
#tools.wmtools.cmd.windows=download.exe
tools.wmtools.cmd.windows=wm_tools.exe
tools.wmtools.path={runtime.tools.wmtools.path}
tools.wmtools.upload.protocol=arduino
tools.wmtools.upload.params.verbose=-vv
tools.wmtools.upload.params.quiet=
#tools.wmtools.upload.pattern="{runtime.hardware.path}/wmtools/{cmd}" -c "{serial.port}" -f "{build.path}/{build.project_name}.gz.img"
tools.wmtools.upload.pattern="{runtime.hardware.path}/wmtools/{cmd}" -p "{serial.port}" -b 115200 write_flash "{build.path}/{build.project_name}.gz.img"
11) Open Arduino as administrator (If you open it normally, you get an error on compilation)
12) In Arduino go to Tools
-> Board
and select Generic W600 Board
13) Create a new File (File
-> New
)
14) Paste this
void setup() {
Serial.begin(115200);
}
void loop() {
Serial.println("Hello World!");
delay(2000);
}
15) Save the sketch
16) Now connect your W600 board, go to Tools
-> Port
and select the COM port of the w600 board. If no COM port is showing up, install the ch340 drivers.
17) Click on upload. Press the reset button on your board if the terminal output in the bottom tells you to reset the device. Wait until the upload is finished.
18) Open the serial monitor (Tools
-> Serial Monitor
) and select 115200 baud
in the right
19) If you see a Hello World!
printed every 2 seconds, everything was corretnly setup!
I found that the arduino code compiles and links OK but fails to upload to the Air602. It complains of an error with download.py. But the wm_tools.exe does work. I moved that exe to the wmtools directory and modified platform.txt like this: .... tools.wmtools.cmd=download.exe
tools.wmtools.cmd.windows=download.exe
tools.wmtools.cmd.windows=wm_tools.exe tools.wmtools.path={runtime.tools.wmtools.path} tools.wmtools.upload.protocol=arduino tools.wmtools.upload.params.verbose=-vv tools.wmtools.upload.params.quiet=
tools.wmtools.upload.pattern="{runtime.hardware.path}/wmtools/{cmd}" -c "{serial.port}" -f "{build.path}/{build.project_name}.gz.img"
tools.wmtools.upload.pattern="{runtime.hardware.path}/wmtools/{cmd}" -p "{serial.port}" -b 115200 write_flash "{build.path}/{build.project_name}.gz.img"
This scheme does require a press of the reset button when loading starts but otherwise it works perfectly.
Hope this is useful