USBula - Serial to USB-Flash-Drive Bridge Firmware
USBula is a ready-to-use firmware accessing USB flash drives from your application over a simple serial protocol.Features
- Connects USB memory stick to your application without USB programming
- Ready to flash binary files (HEX format, supported by most programmers)
- Runs on well available PIC24FJ64GB002 microcontroller (on stock part from many distributors)
- Free version for evaluation and personal use
- Source code available (via license option) – modify it for your needs
- +5V tolerant serial interface with simple protocol for file access
- FAT16/FAT32 is supported. 8+3 character filenames are used.
Typical application
The PIC24F is designed into the application. It is programmed with USBula firmware. For a circuit example and design hints, please see the USBula User Manual, section "Integration Guide".Evaluation Board
An evaluation board preprogrammed with USBula firmware is available:
Order USBula EB now!
€ 37,90 incl. 19% VAT excl. € 4 shipping.
Example
Serial.print("U\n"); // sync (baudrate detection) while (Serial.read() != '\n'); // consume response Serial.print("O1A:test.txt\n"); // open file (id 1, append mode) while (Serial.read() != '\n'); // consume response Serial.print("W10b\n"); // prepare write of 11 bytes while (Serial.read() != '\n'); // consume response Serial.print("Hello World"); // write data to file while (Serial.read() != '\n'); // consume response Serial.print("C1\n"); // close file while (Serial.read() != '\n'); // consume response"Hello World" is written to the file "test.txt" on the USB stick. The code is shown in Arduino style (see whole Arduino USBula example), but any other programming language or host system can be used to communicate over the UART with USBula.
For a detailed protocol description, please see the USBula User Manual, section "Communication protocol".