Non Windows User - VCSFA-MARS/ThinSat-Program GitHub Wiki

Flashing your CW01 from OS X or Linux Command Line

Here is a video that walks through flashing the CW01 from a *nix command line.

Tools needed:

  • esptool - a Python tool for programming the esp8266 (the chip on the CW01)
  • the XinaBox CW01 Binary

Using Windows Tools on OS X or Linux with WINE

I was unable to flash using avrdude above (seems at least baud rate should be 115200). But I was now able to get it to flash with FlashTool.exe under wine. What was needed (COM3 to /dev/ttyUSB0):

  1. Create symlink to setup COM3 to /dev/ttyUSB0 connection: ln -sf /dev/ttyUSB0 ~/.wine/dosdevices/com3. You will need to be in a group that has permissions to access /dev/ttyUSB0, likely dialout or so.
  2. Modify registry with wine regedit and add key HKEY_LOCAL_MACHINE\Software\Wine\Ports with string entry COM3 with value /dev/ttyUSB0.
  3. Reset wine server: wineserver -k.
  4. Start FlashTool in wine: wine xinaboxFlashTool.exe.
  5. Select XINABOX firmware and Safe Flash (it didn't work without safe flash for me).
  6. Type in COM3 in serial port dropdown (nothing in dropdown).
  7. Click Flash.
  8. Toggle DTE/DCE until it detects when going to DCE.