Debug protocol V0.7
Global message layout
Get Info ('I')
Get version ('V')
Write Register ('W')
Query Register ('Q')
Config Channel ('C')
Decimation ('D')
Reset Time ('T')
Read Channel Data ('R')
Debug String ('S')
Clear History
Built with
from
Grav
and
Hugo
Embedded Debugger
>
Debug protocol V0.7
>
Global message layout
> Query Register ('Q')
Query Register ('Q')
cmd-ID
cmd-data
PC -> uC
‘Q’ = 0x51
off3
off2
off1
off0
ctrl
size
-
PC <- uC
‘Q’ = 0x51
off3
off2
off1
off0
ctrl
size
d7
[d6]
…
[d0]
off3…off0: offset-address in bytes (4 Gbyte addressable)
ctrl:
see ctrl
size: number of bytes to read (also determines number of data-bytes that follow in the reply from µC -> PC) if size = 0, there is an error in reading the specified register
d7 … d0: data-bytes, only number of bytes used are sent (indicated by size)