Open main menu

DocumentsEdit

AssemblerEdit

ASEM-51Edit

A51Edit

ToolsEdit

SDCCEdit

CH341Edit

stcgalEdit

stcgal requires Python 3.5 (or later), pyserial 3.0 or later and TQDM 4.0.0 or later. USB support is optional and requires pyusb 1.0.0b2 or later. You can run stcgal directly with the included stcgal.py script if the dependencies are already installed.

There are several options for permanent installation:

    Use Python3 and pip. Run pip3 install stcgal to install the latest release of stcgal globally on your system. This may require administrator/root permissions for write access to system directories.

    Use setuptools. Run ./setup.py build to build and sudo ./setup.py install to install stcgal.

 $ sudo apt install python3-pip
 $ pip3 install stcgal
 $ stcgal -h
 $ ./stcgal.py -P stc89
 $ ./stcgal xxxxx.ihx -P stc89 -p /dev/ttyUSB0
 $ cd ../.local/bin
 $ ls -l /dev/ttyUSB0
 $ sudo chmod 666 /dev/ttyUSB0
 $ stcgal ~/Desktop/mcs-51/001*/uart.ihx -P stc89 -p /dev/ttyUSB0

pip3 install stcgal error: externally-managed-environment

× This environment is externally managed ╰─> To install Python packages system-wide, try apt install

   python3-xyz, where xyz is the package you are trying to
   install.
   
   If you wish to install a non-Debian-packaged Python package,
   create a virtual environment using python3 -m venv path/to/venv.
   Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
   sure you have python3-full installed.
   
   If you wish to install a non-Debian packaged Python application,
   it may be easiest to use pipx install xyz, which will manage a
   virtual environment for you. Make sure you have pipx installed.
   
   See /usr/share/doc/python3.12/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification.

pip3 install stcgal --break-system-packages Defaulting to user installation because normal site-packages is not writeable Collecting stcgal

 Downloading stcgal-1.10-py3-none-any.whl.metadata (1.8 kB)

Requirement already satisfied: pyserial>=3.0 in /usr/lib/python3/dist-packages (from stcgal) (3.5) Collecting tqdm>=4.0.0 (from stcgal)

 Downloading tqdm-4.67.1-py3-none-any.whl.metadata (57 kB)
    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.7/57.7 kB 315.9 kB/s eta 0:00:00

Downloading stcgal-1.10-py3-none-any.whl (37 kB) Downloading tqdm-4.67.1-py3-none-any.whl (78 kB)

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.5/78.5 kB 615.8 kB/s eta 0:00:00

Installing collected packages: tqdm, stcgal

 WARNING: The script tqdm is installed in '/home/mq/.local/bin' which is not on PATH.
 Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
 WARNING: The script stcgal is installed in '/home/mq/.local/bin' which is not on PATH.
 Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

Successfully installed stcgal-1.10 tqdm-4.67.1

stcgal -h
stcgal: command not found
cd /home/***/.local/bin
***:~/.local/bin$ ls
stcgal  tqdm
***~/.local/bin$ ./stcgal
Serial port error: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'

Serial StudioEdit

othersEdit

TutorialsEdit

Electro TechEdit

ExamplesEdit

Related LinksEdit

illustrationEdit

Media:A-minimal-Atmel-AT89C2051-circuit-with-RC-reset.png

Media:MCS-51 pins.gif

Media:Interfacing LCD in 4-bit mode with 8051.jpg

ComponentsEdit


ProjectsEdit

HistoryEdit

Qrcode for gh a3b9e9962ce8 1280.jpg