Skip to content

Commit

Permalink
Merge pull request #13 from jhoenicke/master
Browse files Browse the repository at this point in the history
DebugLink Memory access
  • Loading branch information
prusnak committed Jun 12, 2016
2 parents e6295a3 + 6599d75 commit 70d8ac8
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions protob/messages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ enum MessageType {
MessageType_DebugLinkState = 102 [(wire_debug_out) = true];
MessageType_DebugLinkStop = 103 [(wire_debug_in) = true];
MessageType_DebugLinkLog = 104 [(wire_debug_out) = true];
MessageType_DebugLinkMemoryRead = 110 [(wire_debug_in) = true];
MessageType_DebugLinkMemory = 111 [(wire_debug_out) = true];
MessageType_DebugLinkMemoryWrite = 112 [(wire_debug_in) = true];
MessageType_DebugLinkFlashErase = 113 [(wire_debug_in) = true];
}

////////////////////
Expand Down Expand Up @@ -754,3 +758,38 @@ message DebugLinkLog {
optional string bucket = 2;
optional string text = 3;
}

/**
* Request: Read memory from device
* @next DebugLinkMemory
*/
message DebugLinkMemoryRead {
optional uint32 address = 1;
optional uint32 length = 2;
}

/**
* Response: Device sends memory back
* @prev DebugLinkMemoryRead
*/
message DebugLinkMemory {
optional bytes memory = 1;
}

/**
* Request: Write memory to device. WARNING: Writing to the wrong
* location can irreparably break the device.
*/
message DebugLinkMemoryWrite {
optional uint32 address = 1;
optional bytes memory = 2;
optional bool flash = 3;
}

/**
* Request: Erase block of flash on device. WARNING: Writing to the wrong
* location can irreparably break the device.
*/
message DebugLinkFlashErase {
optional uint32 sector = 1;
}

0 comments on commit 70d8ac8

Please sign in to comment.