Write Register ('W')

cmd-ID cmd-data
PC -> µC ‘W’ = 0x57 off3 off2 off1 off0 ctrl size d7 [d6] [d0]
PC <- µC ‘W’ = 0x57 result -

  • off3…off0: offset-address in bytes (4 Gbyte addressable)
  • ctrl: see ctrl
  • size: number of bytes to write (also determines number of data-bytes that follow)
  • d7 … d0: data-bytes, only number of bytes used are sent (indicated by size)
  • result:
    0x00 = ok, value is written
    0x01 = invalid (offset) address
    0x02 = error dereferencing (null-pointer appeared at some dereference)