OS4 DepotLogo by Alessandro Bacchia 
(anonymous IP:,2218) 

   Bug tracker
   Locale browser


   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (600)
   o Document (22)
   o Driver (97)
   o Emulation (148)
   o Game (1005)
   o Graphics (499)
   o Library (116)
   o Network (233)
   o Office (66)
   o Utility (927)
   o Video (69)

Total files: 4379

Full index file
Recent index file



Support the site

 Readme for:  Utility » Misc » tinyulmui.lha


Description: MUI-based tinybld PIC uploader (e.g. for Minimig)
Download: tinyulmui.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 55kb
Version: 1.1
Date: 03 Jul 2024
Author: Frank Wille
Submitter: Samir Hawamdeh
Homepage: http://sun.hasenbraten.de/~frank/projects/
Requirements: MUI 3.9+
Category: utility/misc
License: Other
Distribute: yes
Min OS Version: 4.0
FileID: 12992
Comments: 0
Snapshots: 0
Videos: 0
Downloads: 39  (Current version)
39  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show videos Show content Show crashlogs Replace file 
After I got tired asking friends for flashing my Minimig with the closed
source Windows tool "Tinybld" I found an open source project for Linux
called "tinyul". It's just the uploader, reengineered from Tinybld, but
what more do we need? I ported the Linux source to NetBSD and soon realized
that an Amiga port wouldn't be much more difficult.

About Tinybld: The "Tiny PIC Bootloader" by Claudio Chiculito is a small
boot loader program for dsPIC, 16F- and 18F-series PICs which resides
in the last 200 bytes of a PIC's flash memory. It allows flashing itself
via RS-232 (serial interface). The program used for communicating with
the tiny boot loader is called Tinybld and only available for Windows.
The Minimig is just one of many devices using the tiny boot loader.

About Tinyul: The "Tiny Uploader". A command line based replacement for
Tinybld written by Thomas Themel for Linux.


Copy the program (and icon) for your prefered architecture anywhere you want.
Look into the directory AmigaOS3, AmigaOS4 or MorphOS.


You need the Magic User Interface from Stefan Stuntz. Plain old V19
(MUI 3.8) is sufficient: http://aminet.net/util/libs/mui38usr.lha.
MorphOS and AmigaOS4.x already have a recent MUI version installed.

You may start TinyulMUI either by clicking its icon on the Workbench or
from command line. The latter also allows you to pass the name of the
file to upload as an optional parameter.

Before you can flash any PIC you need to enter:

1. The configuration for your serial interface.
   The serial.device unit 0 with 115200 bps is preconfigured by default,
   which usually works fine for AmigaOS3 and MorphOS. For AmigaOS4 you
   will have to change the device name to a1serial.device or
   pegserial.device (or whatever your hardware supports).
   Also you might want to change the device settings when you have a
   3rd-party serial board (like MFC, etc.) in the 68k-Amiga. 115200 bps
   are required by Minimig.
   When the serial interface was successfully opened the "Check PIC"
   button becomes available.

2. The path to the file to upload.
   Tinyul accepts Intel-Hex (ihex) files, which are common for PICs. Upon
   entering its name the file will be parsed and checked for errors. When
   everything is ok (checksums are correct) the "Upload file" button
   becomes available.

Now TinyulMUI offers you two possible actions:

Check PIC: The ATTN byte (0xc1) is sent, which the PIC has to reply with
its identification byte and a handshake. When the identification represents
a supported PIC type its name will be printed. The progress bar shows when
the maximum number of retries is reached.

Upload file: This will flash the PIC with the selected ihex file.
It includes a "Check PIC", before flashing can start. The current state of
the flashing process is shown by a progress bar. It can take a few seconds.

Other settings:
The timeout defaults to 500ms, which is the time Tinyul will wait for
an acknowledge from the PIC. An acknowledge takes place after sending
the identification byte and after every 64-byte block being transfered.
The number of retries (10 by default) and "Ignore garbage chars" has only
a meaning during "Check PIC".

I tested the program on all the three supported architectures with success.
MorphOS with serial.device and AmigaOS4 with pegserial.device on a
Pegasos2/G3, and the AmigaOS3 version on an A3000 with 68060/50.
Flashing the Minimig's PIC (18F252) works very reliable for me.
No other PICs were tested!

Theoretically Tinyul supports the following PIC types:


A 68060 CPU had no problem to keep up with 115200 bps transfer rates, but
you have to be careful with slower CPUs. The transfer might fail in the
middle because of lost characters and wrong checksums.

In the case of the Minimig a half-finished upload should be no problem, as
I was told that the boot loader usually stays operational.

But, nevertheless, I take no responsibility when you brick your device
with TinyulMUI!


V1.0 (31-Dec-09):
After two days of hard work. Just in time before New Year and for the
latest Minimig updates from Christmas.

V1.1 (02-Jan-10):
Improved the MUI code with some help from Gianfranco Gignina (ShInKurO).
Fixed a listview problem which made all output disappear after resizing
the window. Make sure the scrollbar is always moved to the last entry.

For bug reports, suggestions, etc. contact Frank Wille (frank()phoenix.owl.de).

Copyright © 2004-2024 by Björn Hagström All Rights Reserved