Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: bdm.cpp
- Revision:
- 4:682d96ff6d79
- Parent:
- 2:bf3a2b29259a
- Child:
- 5:1775b4b13232
--- a/bdm.cpp Tue Jun 07 12:23:28 2011 +0000
+++ b/bdm.cpp Wed Sep 11 11:55:51 2013 +0000
@@ -181,6 +181,7 @@
case CMD_VERSION:
printf("%02x", FW_VERSION_MAJOR);
printf("%02x", FW_VERSION_MINOR);
+ printf("\r\n");
return TERM_OK;
// get momentary status of BDM pins 0...5 (for debugging)
@@ -191,6 +192,7 @@
// printf("DS %d, ", PIN_DS.read());
printf("FREEZE %d, ", PIN_FREEZE.read());
printf("DSO %d, ", PIN_DSO.read());
+ printf("\r\n");
return TERM_OK;
// pull BKPT low
@@ -245,6 +247,7 @@
case CMD_GETVERIFY:
CHECK_ARGLENGTH(0);
printf("%02x", (uint8_t)verify_flash);
+ printf("\r\n");
return TERM_OK;
// set verification flag
@@ -304,6 +307,7 @@
return TERM_ERR;
}
printf("%02x", (uint8_t)cmd_result);
+ printf("\r\n");
return TERM_OK;
// read word
@@ -313,6 +317,7 @@
return TERM_ERR;
}
printf("%04X", (uint16_t)cmd_result);
+ printf("\r\n");
return TERM_OK;
// read long word
@@ -322,6 +327,7 @@
return TERM_ERR;
}
printf("%08X", cmd_result);
+ printf("\r\n");
return TERM_OK;
// dump byte
@@ -331,6 +337,7 @@
return TERM_ERR;
}
printf("%02x", (uint8_t)cmd_result);
+ printf("\r\n");
return TERM_OK;
// dump word
@@ -340,6 +347,7 @@
return TERM_ERR;
}
printf("%04X", (uint16_t)cmd_result);
+ printf("\r\n");
return TERM_OK;
// dump long word
@@ -349,6 +357,7 @@
return TERM_ERR;
}
printf("%08X", cmd_result);
+ printf("\r\n");
return TERM_OK;
// write byte
@@ -415,6 +424,7 @@
return TERM_ERR;
}
printf("%08X", cmd_result);
+ printf("\r\n");
return TERM_OK;
// write system register
@@ -430,6 +440,7 @@
return TERM_ERR;
}
printf("%08X", cmd_result);
+ printf("\r\n");
return TERM_OK;
// write A/D register