My first program using the bootloader. The mandatory start-up, with GCBASIC SH1106A GLCD. This is a complete first program. It compiles as it-is of the board I am using, and it provides APP_VDD soft start, gcb_logo.h the logo, and the screen is drawn with GCBASIC's GLCD commands: glcd.h with GLCD_TYPE_SH1101A (glcd_SH1101A.h) on an 8bit GLCD bus, with the 1024-byte screen buffer. InitGLCD is called after AppPowerOn, because #StartupMethodsDisabled stops the library's own start-up. Saved under an...
My first program using the bootloader. The mandatory start-up, with GCBASIC SH1106A GLCD. This is a complete first program. It compiles as it-is of the board I am using, and it provides APP_VDD soft start, gcb_logo.h the logo, and the screen is drawn with GCBASIC's GLCD commands: glcd.h with GLCD_TYPE_SH1101A (glcd_SH1101A.h) on an 8bit GLCD bus, with the 1024-byte screen buffer. InitGLCD is called after AppPowerOn, because #StartupMethodsDisabled stops the library's own start-up. Saved under an...
UPDATED 13th Oct 2026: The programs I have cover the common device classes, plus a UPS. Scope covered Class Programs PC side CDC-ACM (virtual COM port) MENU, CDCB, CLCK, SERL, CDCT Any serial terminal (PuTTY, TeraTerm); CdcTerminal for CDCT HID boot mouse MOUS None: Windows' own driver HID joystick JOYS None: Windows' game controller settings (joy.cpl) HID boot keyboard (with the PC's lock lights) KEYB, LOGN None: Windows' own driver HID vendor-defined (64-byte reports) HIDC, LEVL HID PnP Demo (HIDC);...
I will post the schematic over the next few days but all pretty simple. I will validate using my old Great Cow BASIC Pcbs and any Microchip board I have.
We need @angel-spartan for this one.
Using the GCBASIC bootloader The bootloader starts every time microcontroller powers up or restarts. The intent is to load your program (a .HEX file) into the microcontroller and start it. There are three ways to load a program: Menu select - choose a .HEX file that is already on the SD card. USB drive - copy .HEX files to the SD card from the PC. USB HexLoader - one command on the PC copies, loads and starts your program. In every case the bootloader checks the whole file before it changes anything....
The programs I have cover the common device classes, plus a UPS. Scope covered Class Programs CDC-ACM (virtual COM port) MENU, CDCB, CLCK, SERL HID boot mouse MOUS HID joystick JOYS HID boot keyboard (with the PC's lock lights) KEYB, LOGN HID vendor-defined (64-byte reports) HIDC, LEVL HID Power Device (UPS) UPSB Mass storage (SD card as a drive) SDPT, SDRW, DLOG, the bootloader's drive mode
GCBASIC USB bootloader for the PIC18F/PIC16F I have written a replacement, written 100% in GCBASIC for an 18F/16F, USB interface and SD-card bootloader. Aims Same memory layout and behaviour, so every existing card hex runs unchanged: the bootloader in 0x0000-0x9FFF; programs from 0xA000, with their interrupt vectors at 0xA008 and 0xA018; programs up to 0xFBFF; the last page (0xFC00-0xFFFF, with the configuration words) is never written; MENU during a countdown opens the card's file list. Improvements...