Messaging protocols

GDB remote packet builder

Escape RSP payload bytes and calculate the transmitted packet checksum.

Your inputs

Start with an example

Your inputs stay in your browser.

Your result

Example result

How it works

Escape $, #, } and * with } followed by byte XOR 20 hex. Sum the escaped payload modulo 256 and add $/# framing.

Payload m0,1 has checksum fa and packet bytes 24 6D 30 2C 31 23 66 61.

Limits

Binary-escaped payload framing only. Commands, response run lengths, acknowledgements and target state are not validated. The download is a hex listing; no debugger is contacted.