retro /nowind /

The cartridge

    Technical details of the Nowind Interface: how to use it with nwhostapp, firmware updates and troubleshooting.

    Hardware · MSX · USB · Android

    ← Back to Nowind


    Label of the Nowind Interface: “No wind, no waves”

    Hardware

    Type MSX cartridge with a USB connection
    USB chip FTDI FT245 USB FIFO (a USB 1.1 full-speed device)
    Flash memory 512 kB in version 1 and 4 MB in version 2. The firmware lives in flash, so it can be updated over USB
    Built-in software Nowind disk ROM, MSX-DOS 1, MSX-DOS 2, ROM drive, BASIC NOW: device
    Compatible with MSX, MSX2, MSX2+, MSX turbo R
    Speed About 320 kB/s reading on a 7 MHz MSX, similar to an MSX hard disk interface
    Host PC (Windows, Linux, macOS) with nwhostapp, or an Android phone with Nowind Companion. iPhone is not supported

    Versions

    Nowind Interface version 1 cartridge

    Version 1

    Nowind Interface version 2 cartridge from the 2013 batch

    Version 2 (2013 batch)

    Nowind Interface label with the Sunrise for MSX logo

    Label of a Sunrise-produced cartridge

    • Version 1: first batch built by the developers, later produced by Sunrise. 512 kB flash.
    • Version 2 (also the 2013 batch, by Sunrise): smaller form factor, 4 MB flash.

    Both versions use the same USB protocol, so all host software works with both versions.

    How it works

    The host software waits for commands from the MSX. When the MSX reads from a disk, the Nowind disk ROM sends the request over USB, and the host reads the sectors from an image file instead of a physical disk. The protocol checks every block and resends it when needed. That matters, because the MSX reads the USB buffer directly and can’t wait for slow data.

    Supported disk images

    • Floppy images: 360 kB and 720 kB (the common ones), plus 160, 180, 320 and 640 kB formats.
    • Hard disk images with partitions (FAT16) under MSX-DOS 2.
    • Write protection: if an image file is read-only on the host, the MSX sees a write-protected disk.

    Downloads

    Download Notes
    Firmware: nowind.rom Latest version (February 2013), for version 1 and 2
    nwhostapp for Windows, v4.2 August 2010. Also contains a simple Windows GUI (NowindInterfaceHostGUI.exe), NIC.COM and an older nowind.rom. Needs the FTDI D2XX driver
    nwhostapp for Linux 32-bit x86 (2013)
    nwhostapp for macOS 2013; may not run on recent macOS
    Source code To build it yourself

    Using the cartridge with a PC: nwhostapp

    nwhostapp is the command line host program for Windows, Linux and macOS.

    1. Insert the Nowind cartridge into the MSX while the MSX is switched off.
    2. Connect the cartridge to the PC with a USB cable.
    3. On Windows, install the FTDI D2XX driver if Windows doesn’t find one. On Linux, nwhostapp may need to run as root, or with a udev rule that gives your user access to the FTDI device.
    4. Start the host with a disk image:
    nwhostapp -i game.dsk
    1. Switch on the MSX. It boots from the disk image.

    nwhostapp options

    Usage: nwhostapp [-2afgijmpz] [-i image.dsk] [-f firmware.rom]
      --image,    -i   disk image or partition image
      --hdimage,  -m   hard disk image
      --romdisk,  -j   enable the ROM drive
      --flash,    -f   update the firmware (works on all versions, verifies)
      --glash,    -g   update the firmware, faster (does not verify, does not update rom headers)
      --dos2,     -2   prefer MSX-DOS 2 (MSX2 only; not needed on a turbo R)
      --phantom,  -p   create phantom drives (like NOT holding CTRL at boot)
      --allow,    -a   allow other disk ROMs to initialize as well
      --dsk2rom,  -z   convert a 360 kB image to a ROM drive image (romdisk.bin)
      --debug,    -d   show debug information

    Examples:

    nwhostapp -i image.dsk                 one floppy image
    nwhostapp -i disk1.dsk -i disk2.dsk    two drives (A: and B:)
    nwhostapp -2 -i image.dsk              boot MSX-DOS 2 on an MSX2
    nwhostapp -m hdimage.dsk               all partitions of a hard disk image
    nwhostapp -m hdimage.dsk:0             only the first partition
    nwhostapp -m hdimage.dsk:1-3           partitions 2 to 4
    nwhostapp -j                           add the ROM drive

    On the MSX

    Change disks from BASIC: CALL IMAGE "GAME2.DSK" (short form: _IMAGE "GAME2.DSK") asks the host to put another image file in the drive.

    • It always changes the first Nowind drive (normally A:).
    • The name must be quoted text (not a variable), at most about 38 characters.
    • It is a path on the PC: relative to the folder where nwhostapp was started, or a full path.
    • There is no error message if the file doesn’t exist.
    • With Nowind Companion, CALL IMAGE works too, but the name is a search: the phone looks for it in your library and in the archive of your disk image sources, and downloads and hosts the best match. A ROM can be chosen this way too.

    Files on the host from BASIC: the NOW: device reads and writes files in the folder where nwhostapp was started, with MSX-style 8.3 file names. FOR INPUT, FOR OUTPUT and FOR APPEND work; random access does not. With Nowind Companion, NOW: uses the Download/nowindcompanion/now folder on the phone.

    Reading a file:

    10 OPEN "NOW:README.TXT" FOR INPUT AS #1
    20 IF EOF(1) THEN 60
    30 LINE INPUT #1,A$
    40 PRINT A$
    50 GOTO 20
    60 CLOSE #1

    Writing a file:

    10 OPEN "NOW:HELLO.TXT" FOR OUTPUT AS #1
    20 PRINT #1,"Hello from MSX"
    30 CLOSE #1
    • Change disks from MSX-DOS: NIC.COM, the Nowind Image Changer: NIC path\file.dsk. Use /H for a hard disk image and /L to list images.
    • Test the connection: NTA.COM /R (read test) and NTA.COM /W (write test).
    • Other disk drives: if the MSX has its own disk drive, Nowind starts first and the internal drive is not initialized. Start nwhostapp with -a to allow other disk ROMs to start as well.

    Keys at startup

    Hold one of these keys right after you switch on or reset the MSX, and keep holding it until you hear the beep or the first disk drive sound. This changes how the MSX boots.

    • 1: boot MSX-DOS 1 (without a key, MSX-DOS 2 boots if it is available)
    • 6: switch 50/60 Hz (will switch to 60Hz if 50Hz is the default and vice versa)
    • CTRL: one drive per disk ROM, no phantom drive B:
    • F: Nowind Flash Writer Mode, for firmware updates (see below)

    With the host connected: when nwhostapp runs without special options, Nowind starts as if CTRL is held. There is no phantom drive B:, and MSX-DOS 2 is not started: Nowind skips all disk ROMs that come after the Nowind interface. Use -a to let them start, and -p for phantom drives.

    Without a connection to the host (nwhostapp or Nowind Companion not running), MSX-DOS 2 and the phantom drive B: are enabled as usual.

    Note: some games, for example Puyo Puyo, don’t like the way Nowind skips the initialization of the other disk ROMs. These games work better if you leave MSX-DOS 2 enabled: start nwhostapp with -a.

    Updating the firmware

    The firmware is stored in the cartridge’s flash memory and can be updated over USB from a PC, or from an Android phone with Nowind Companion (Settings → Interface → Firmware update), which can also check the interface version and back up the current firmware.

    1. Download nwhostapp and the latest firmware nowind.rom (see Downloads).
    2. Connect the cartridge to the PC. The MSX is still off.
    3. Hold the F key and switch on the MSX. Keep holding it until the screen turns red and shows “Nowind Flash Writer Mode”.
    4. On the PC, run:
    nwhostapp --flash nowind.rom

    This is the safe method: it verifies the result and updates the rom headers. -g is faster, but doesn’t verify.

    1. Wait until nwhostapp reports that it’s finished, then switch the MSX off and on again.

    Tips:

    • On an MSX turbo R you don’t need to do anything special: the flash writer switches to Z80 mode by itself.
    • If flashing with -g fails or is irregular (seen on 64-bit Windows 7), use -f.
    • If flashing fails, don’t panic. The flash writer mode is started from the cartridge itself, so you can hold F at boot and try again.

    Troubleshooting

    Problem What to try
    The MSX boots without Nowind, or hangs at boot Is the cartridge inserted firmly, with the MSX off while inserting? Try another cartridge slot. Is the host program running before the MSX starts?
    The host doesn’t find the interface Try another USB cable or port. On Windows, check that the FTDI driver is installed (Device Manager). On Linux, run as root or add a udev rule for the FTDI device.
    Many read errors or hangs, mostly on Windows Connect the cartridge to a USB 2.0 port or through a USB 2.0 hub, not directly to a USB 3 port. The MSX empties the cartridge’s USB buffer faster than some USB 3 ports refill it.
    A game doesn’t start with MSX-DOS 2 Most games don’t like DOS2. Start without -2, or switch DOS2 off in the Companion app.
    A game hangs or misbehaves at boot (for example Puyo Puyo) Some games don’t like Nowind skipping the other disk ROMs. Start nwhostapp with -a to leave MSX-DOS 2 enabled.
    The internal disk drive is gone Expected: Nowind takes over. Use -a to let other disk ROMs start too.
    Fewer or more drives than expected Holding CTRL at boot gives one drive per disk ROM. -p creates phantom drives.
    Firmware update fails Use -f instead of -g. Restart flash writer mode with F at boot.
    You need more information Run nwhostapp -d for debug output and report the problem on GitHub.