Installation
Depending on the environment, this application may not work or may require various settings. If you encounter any problems, please refer to the description in this document to improve your environment.
In order to build a development environment, you must install the software suite and agree to the license agreement. In addition, you may need to configure security settings on your PC or workstation.
Although we take all due precautions when distributing the software, we ask that you take care to check for viruses, etc.
Please check with the administrator of your environment regarding your security policy and operations (e.g., whether or not to install external applications).
In addition, please see "Application Distribution and Execution". Topics include topics related to the following
Confirmation of identity with downloaded files
Handling of code signatures on macOS/Windows
Download the TWELITE STAGE SDK for your system (Windows, macOS, Linux, etc.).
Extract the downloaded archive file (e.g. ZIP). The folder name of each level of the destination folder should not contain any characters other than one-byte numbers 0..9
, one-byte alphabets a..zA..Z
, and some symbols -_.
. It must not contain spaces, Kanji characters, Hiragana characters, etc. Example(Windows): × C:\work\作業\
× C:\Users\user1\work dir\
〇 C:\Work\Work1
Check the folder after expansion. If you extract on C:\Work
, the folder name will be something like C:\Work\MWSTAGE
, but your extractor may create a folder with the archive file name. Rename or move the folder as needed.
In the text, the expanded folder (e.g. C:\WorkMWSTAGE
)} may be written as {MWSTAGE installation}
.
See below.
The folder {MWSTAGE installation}
where the TWELTIE STAGE SDK is installed contains the following
TWELITE STAGE application executable
MWSDK folder - libraries, source code, etc.
Tools - toolchain for building, etc.
For details, see Folder Structure" for details.
TWELITE_Stage installation (macOS)
macOS
We develop in the following environment
macOS 10.14 (Mojave, Intel)
macOS 12.4 (Monterey, Apple Silicon)
The download archive is not signed. At runtime, you may receive a security warning as an application downloaded from the Internet.
You may be asked for permission to run from the path where you installed TWELITE_Stage.
You may get an installation dialog for the make utility when executing a build.
The toolchain is code-signed, but if the code signature is not properly authenticated, you may be asked for permission to run each executable in the build toolchain (ba-elf-gcc etc.}).
The above is required to give permission or installation work for the TWELITE_Stage to work.
※ Different OS versions and other factors may require a different procedure.
If an error occurs when executing make on the command line (bash), install XCode.
After installation is complete, type "make" and the following message should appear.
MONOSTICK and TWELITE-R use FT232 series semiconductors from FTDI (https://www.ftdichip.com). In order to use them, you may need to deal with device drivers.
If the serial port does not appear when you start TWELITE-R, you need to unload (disable) FTDI's driver. See "Reference" below.
This utility suppresses the loading of the OS standard device driver when our MONOSTICK or TWELITE-R is inserted, but it also suppresses it for non-MONOSTICK devices (those with the same USB ID).
Download and use D2xxHelper from https://www.ftdichip.com/Drivers/D2XX.htm. You can find the same in our archive in the TWELITE_Stage/INSTALL folder.
Unload FTDI-related drivers.
TWELITE_Stage installation (Linux)
Linux
USB device ID for TWELITE R2 has changed from 0403:6001 to 0403:6015. udev setting needs to be added.
32bit version is not available.
The Linux environment has different types of packages available depending on the distribution and version. You may need to install and configure packages individually.
Please refer to general information by referring to the error messages.
TWELITE STAGE is developed and tested in the following environment.
Ubuntu 16.04, 18.04, 20.04
NNLinux Beta8 64bit
Centos7
In order to recognize MONOSTICK or TWELITE-R from TWELITE STAGE, you must unload the ftdi_sio module and also have read/write permission to the USB device.
The ID of the USB device will be as follows.
Vendor ID 0x0403
Product ID 0x6001(MONOSTICK,TWELITE R) or 0x6015 (TWELITE R2)
We have a udev configuration script Ј(Ubuntu, CentOS Ј) to automate this configuration. It copies the definition to /etc/udev/rules.d
and reloads the configuration. After configuration, unplug and plug the USB device before running TWELITE_Stage.run
. If the USB device appears on the screen right after startup, the configuration is reflected.
Definition file (line breaks for easier reading)
Definition file (line breaks for easier reading)
Register your program according to your desktop environment if necessary.
You may not be able to run TWELITE_Stage.run
from the file icon on your desktop. This is because the system may not recognize TWELITE_Stage.run
as an executable.
Definition file generation scripts for Ubuntu are available.
This script creates a .desktop
file (app definition) in $HOME/.local/share/applications
.
After the script is executed, the TWELITE STAGE icon will be added to the application list.
TWELITE_Stage installation (Windows)
Windows
The following environment is used for development.
Windows 10 version 1903
VisualStudio 2019 (32bit build )
FTDI's FT232 series may require device driver installation to work; if MONOSTICK or TWELITE-R is not recognized, please install the D2XX driver from ftdichip.com. Visual C++ Distributable Code for Visual Studio 2019 (runtime library) may be required. If you get an error when starting the application and it does not start, please redistribute it in this package TWELITE_Stage³_INSTALL³VC_redist.x86.exe or get it from Microsoft's website and install it. Distribution binaries are 32-bit.
TWELITE_Stage installation (Raspberry Pi)
RasPi
The TWELITE Stage app runs on a Raspberry Pi.
Mouse and touch screen support.
The build toolchain is included and can be used to compile the application.
Four executable versions are available: framebuffer version, X11 version, framebuffer lightweight version, and X11 lightweight version. The lightweight version omits semi-transparency effects, etc.
Depending on the OS type, version, and installation status of your RaspberryPi, it may not work or you may need to recompile it.
TWELITE STAGE has been developed and tested in the following environment.
Hardware
Raspberry Pi 3 Model B
LCD Screen: Raspberry Pi Touch Display (7")
OS & distribution
Raspberry PI OS (32bit) Lite (Version:August 2020)
Operation of /dev/serial0
may fail on the first boot.
The operation of /dev/serial0
has not been tested on Raspberry Pi 4B.
Touch screen operation has not been tested on Raspberry Pi 4B.
The input string to TWELITE STAGE is passed as is to the input string to the shell or getty running on /dev/tty1
. It is recommended to start from /dev/tty1
.
This may be affected by other installations or running programs (such as X11).
The downloaded archive file should be extracted to a folder whose path name does not contain spaces or Japanese characters.
In the following, it is extracted to the home folder of the Raspberry Pi.
In order to recognize MONOSTICK or TWELITE-R from TWELITE STAGE, you must unload the ftdi_sio module and also have read/write permission to the USB device.
The ID of the USB device will be as follows.
Vendor ID 0x0403
Product ID 0x6001(MONOSTICK,TWELITE R) or 0x6015 (TWELITE R2)
A udev configuration script is provided to automate this setup. It copies the definition to /etc/udev/rules.d
and reloads the configuration. After configuration, unplug and plug the USB device before running TWELITE_Stage.run
. If the USB device appears on the screen right after startup, the configuration is reflected.
Definition file (line breaks for easier reading)
In the environment described above, /dev/serial0
is available by configuring the serial port from raspi-config
.
Refer to the manufacturer's manual for both TWELITE and RaspberryPi.
DIP# is the pin number of the TWELITE DIP.
The above wiring does not guarantee stable operation of the TWELITE wireless microcontroller module.
It will not run on the X11 desktop; close X11.
Run TWELITE_Stage.run
. The TWELITE Stage app will appear on the screen screen.
Mouse and touch screen are supported.
During the TWELITE Stage app, the characters you enter may also be displayed on the console screen.
You may get the following error when starting TWELITE_Stage.run
.
You may ignore it.
At build time, if the number of CPUs is 4 or more, the parallel compilation is executed minus one CPU number (3 parallel compilations for 4 cores). In some cases, insufficient memory may occur. In that case, please change the number of parallels.
This information has not been fully validated.
The following settings are required: OpenGL related drivers must be enabled.
Select Advanced Settings → A2 GL Driver → G2 GL (Fake KMS\ in raspi-config
)
Install the libgles-dev
package.
Touch screen operation has not been tested