Presentation

Introduction

Firmware Installation

Bootloader installation Firmware update

Settings

Settings Quickdisk

Usage

Usage modes Emulation from images Emulation from USB stick folder Emulation from USB stick partitions

Add-ons

OLED add-on LCD add-on OSD add-on Rotary & buttons add-on Buzzer add-on

Troubleshooting

Troubleshooting Test firmware

Support

Download Firmware customization Contact

Home Page Project Page Showroom Support Forum Sale points Download Contact us

HxC bootloader installation

Gotek STM32F105 MCU

The HxC bootloader is needed to install the HxC floppy emulator firmware for Gotek. The HxC bootloader can be installed with the following methods into the Gotek floppy emulator :

Serial TTL cable flash method

USB TTL serial adapter

Prerequisites :

  • A STM32 based floppy emulator hardware to flash (Gotek or clones…).

  • A PC under Windows connected to Internet.

  • Any 3.3V TTL serial cable to connect the Floppy Emulator hardware to the PC.

  • Your account information. You can purchase the firmware and get the account on this page : https://hxc2001.com/store/

STM32 Based hardware bootloader Downloader and Flasher :

HxC SecSerialBridge Gotek flasher software

This software allows you to download and program the STM32 HxC bootloader into a STM32 based floppy emulator hardware. (Typically these "Gotek" drives and clones or the next STM32 HxC Floppy emulator units).

Note
This Flash procedure is only needed once time per device since the STM32 HxC bootloader will allows you to update the device with a simple USB stick.

Procedure to Flash the device :

  1. Set the BOOT0 signal to the VCC3V3 on the device. (Add a connection between "J3" and the VCC3V3 pin. See below).

  2. Connect your serial adapter to the device and to the PC. (GND,RX,TX,+5V) Note 1: To power the device, you can use a external +5V source or the +5V coming from your USB adapter. Note 2: Cross connect your serial adapter to the device : TX wire to the RX pin, RX wire to the TX pin.

  3. Start the SecSerialBridge software and select the COM port of your serial adapter. Click on the button "Open"

  4. Enter your account login / password. Click on the button "Connect". If the connection to the server succeed you will get the "Link is UP !" status.

  5. Some seconds later you should get the "Device detected." status. Note : If you don’t get it, try to reset the STM32 by making a short connection of the reset signal (RST) to GND.

  6. Once the device is detected, you can press the "Program" button. The download and programming process finish with a "Done !" Status. The whole process take some minutes.

Once done, remove all the connections previously done on the programming pins.

The device should now display "Ldr" at power up and wait for a USB flash drive with a UPD file to use. You can download these files on the HxC website.

Note
Unlike the seven segments screen, the OLED and LCD screens will remain blank until you have fully installed the firmware/upd file. After the bootloader installation you need to copy the latest firmware UPD file present into the firmware archive to a MBR/FAT32 formatted USB stick and insert it in the Gotek. The OLED/LCD screen will be initialized some seconds later right after the firmware installation.

Programming connector

The Programming connector is near the power input connector. (SFRC922,SFRC526,…)

 ----------------------------
 |
-+--- NC
-+--- GND      O J3 (BOOT0)
-+--- GND      O VCC3V3
-+--- +5V     OO TX
 |        +5V OO RX
 |        GND OO RST
 |--
 |  |
 |  |
Gotek serial / programming interface

USB-A<>USB-A / Type A to Type A cable flash method

Type A to Type A USB cable

Prerequisites :

Procedure to Flash the device :

  1. Flash the hxc_installer.dfu file with the STM32 Dfuse tool. (download - see the attached dfuse instructions)

  2. Copy the EXCHANGE.BIN and the last HxC firmware version (HxCFEUSB_V3_X_X_Xa.UPD…) files to the root of an empty usb stick. (formatted in FAT32)

  3. Insert the usb stick into the drive.

  4. Once you got "001" displayed, remove the usb stick (Don’t switch off the emulator !)

  5. Send back the file EXCHANGE.BIN from the usb stick.

  6. Wait my feedback (And again don’t switch off the emulator ! ). Once received, overwrite the EXCHANGE.BIN file present on the stick with the one you have received.

  7. Insert the Stick in the emulator. The counter should pass to "000""002" and then "003" ("003" means that the HxC Bootloader installed) After this the HxC firmware is installed automatically from the upd file ("Ldr" message) and ~10 seconds later you should see the HxC firmware message "HxC" or "Nor" on the 7 segments screen.

USB stick flash method

USB Stick

The USB stick method is available on some Goteks. The method is similar to the USB-A USB-A/Type A to Type A cable flash method without the need to use any cable or software. Since this is only possible with some Gotek models, please contact us to figure out if your Gotek support this method.


HxC Floppy Emulator project Legal Mentions (C)2006-2020 HxC2001 / Jean-François DEL NERO