I'm using semihosting under Eclipse to do console IO using jlink. Output works fine, but input just hangs. I'm using a nRF51822. What am I missing please?
CODE
OUTPUT
SEGGER J-Link GDB Server V4.98b - Terminal output channel
Please type a character:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Other linker flags: --specs=rdimon.specs -Wl,--start-group -lgcc -lc -lc -lm -lrdimon -Wl,--end-group
GDB SEGGER J-Link Debugging
Starting target CPU...
...Target halted @ semihosting bkpt, waiting for GDB handling
Reading 25 bytes @ address 0x20000B00
...Target halted @ semihosting bkpt, waiting for GDB handling
I have also tried using the more direct method using the following code with identical results
CODE
OUTPUT
SEGGER J-Link GDB Server V4.98b - Terminal output channel
Please type a character:
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Other linker flags: --specs=rdimon.specs -Wl,--start-group -lgcc -lc -lc -lm -lrdimon -Wl,--end-group
GDB SEGGER J-Link Debugging
Starting target CPU...
...Target halted @ semihosting bkpt, waiting for GDB handling
Reading 25 bytes @ address 0x20000B00
...Target halted @ semihosting bkpt, waiting for GDB handling
I have also tried using the more direct method using the following code with identical results