GHI Electronics,LLC USBwiz User Manual
USBwiz Boot Loader
8. USBwiz Boot Loader
8.1. General Description
The boot loader is used to update the firmware of USBwiz. The firmware is the code that
sits inside the USBwiz chip and does all the work. When there is a new firmware release,
you can simply download the file from our website and, using simple commands, you can
load it on USBwiz. At power up, USBwiz boot loader takes control and checks the mode
pins (MODE0 and MODE1). If the mode pins are set in firmware interface mode, boot
loader makes a jump to the firmware to start executing immediately. Once the firmware is
executing, a user can access the loader through BL command. BL command is described
in the firmware commands sections.
8.2. Boot Loader Commands
All commands return ‘!‘ followed by the error number, !00 means no error. The boot loader
responds with ‘Wxx(CR)’ on every sector write, where xx is the sector number.
Command Use Notes
R Load and run USBwiz
firmware
If Boot loader returns BL then
reprogramming USBwiz is required
LQUx Load firmware file from
connected media
The x is the drive letter. LQUA will load
the firmware from MMC/SD card,
LQUB will load the firmware from USB
port 0 and LQUC will load it from USB
port 1.
W Write one sector to
internal FLASH
Follow ‘W’ by the sector number then
512 bytes of sector data. Transaction
must be terminated by a checksum
byte. Checksum byte is calculated by
adding all 512 data bytes.
GHI Internal Use
V Returns the loader version
Note: The boot loader is entirely separate program that loads USBwiz firmware. The
Rev.2.27 Page 58 of 64 www.ghielectronics.com
Commentaires sur ces manuels