Browse Source

SYS_WRITE0 fix

Problem is, trying to print "Hello, world!\n" just prints endless H's, because r1 is never incremented.

One way to fix it would be to add a "++" after "r1".
tags/v0.5.0-rc1
John and Tina Peterson 13 years ago
committed by Øyvind Harboe
parent
commit
9f17b30f88
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/target/arm_semihosting.c

+ 1
- 1
src/target/arm_semihosting.c View File

@@ -139,7 +139,7 @@ static int do_semihosting(struct target *target)
case 0x04: /* SYS_WRITE0 */
do {
unsigned char c;
retval = target_read_memory(target, r1, 1, 1, &c);
retval = target_read_memory(target, r1++, 1, 1, &c);
if (retval != ERROR_OK)
return retval;
if (!c)


Loading…
Cancel
Save