Expand description
Programming mode access for full radio memory read/write.
The TH-D75 stores all radio configuration in a 500,480-byte flash
memory (1,955 pages of 256 bytes), accessible only via the binary
programming protocol (0M PROGRAM). This module provides methods to
read and write individual pages, memory regions, or the entire image.
§Protocol
By default the entire programming session runs at 9600 baud – no baud rate switching. This is the safe, proven approach. Switching to 57600 baud after entry crashes the radio into MCP error mode.
An optional McpSpeed::Fast mode switches the serial port to
115200 baud after the initial handshake (~8 seconds for a full dump
instead of ~55 seconds). Enable it with Radio::set_mcp_speed.
§Warning
Entering programming mode makes the radio stop responding to normal
CAT commands. The display shows “PROG MCP”. Always call
exit_programming_mode when done,
even on error. The high-level methods handle entry/exit automatically.
§Connection Lifetime
The USB connection does not survive the programming mode transition.
The radio’s USB stack resets when exiting MCP mode. After calling
any method in this module, the Radio instance should be dropped
and a fresh connection established for subsequent CAT commands.
§Safety
The last 2 pages (1953-1954) contain factory calibration data and are
never written by this library. Attempts to write these pages return
Error::MemoryWriteProtected.
The 0M handler is at firmware address 0xC002F01C.
Enums§
- McpSpeed
- MCP transfer speed options.