This tool supports uploading original or your own PACK files via Y-Modem protocol over USB UART adapters.
- PACK File Validation: Ensures the file is a valid PACK file and not an SPI dump
- Header Validation: Verifies PACK magic bytes, offset, and length
- Size Check: Rejects files larger than 2MB
- Directory Validation: Checks PACK directory structure and entries
- Y-Modem Upload: Transfers validated PACK files via serial connection at 115200 baud
- Cross-Platform: Works on Windows, macOS, and Linux
./cmd -list-ports# Upload with auto-detected default port (always 115200 baud)
./cmd -upload "pack.bin"
# Windows - Upload with custom port
./cmd.exe -upload "pack.bin" -port COM5
# macOS - Upload with USB serial adapter
./cmd -upload "pack.bin" -port /dev/tty.usbserial-0001
# Linux - Upload with USB serial adapter
./cmd -upload "pack.bin" -port /dev/ttyUSB0
# Upload PACK file
./cmd -upload "packFile - mainware 1.09.03 - batteryware 1.17 - bleware 2.4.01 - motorware S.0.00.22 - shifterware 0.237.bin"- Connect USB UART adapter to debug port
- Use JTAG pinout: Black=GND, Green=TX, Orange=RX, Yellow=NC
- Windows: COM1, COM2, COM3, etc.
- macOS: /dev/tty.usbserial-, /dev/tty.usbmodem-, /dev/tty.SLAB_USBtoUART*
- Linux: /dev/ttyUSB*, /dev/ttyACM*, /dev/ttyS*
- Windows: COM3
- macOS: /dev/tty.usbserial-0001
- Linux: /dev/ttyUSB0
- Must start with "PACK" magic bytes
- File size must be less than 2MB
- Must contain valid directory structure
- Directory entries must have valid filenames
The tool will reject:
- Files larger than 2MB (exceeds Chip limits)
- Files without PACK magic header
- Files with invalid directory structure
- Files with corrupted headers
- Enter BLE debug shell:
bledebugin main console - Delete existing PACK:
pack-delete - Start upload:
pack-upload - Start tool to Transfer Pack
- Process PACK:
pack-process - System will reboot with new firmware