rrosier wrote on Tuesday, March 12, 2013:
Thank you all for your replies.
For information I found out what the issue was; the FreeRTOS CLI as used by the Atmel A.S.F. 3.5.1 does not fully handle backspace as sent by all potential terminal emulators.
My Windows 7 Terminal Emulator is PuTTY. When I press Backspace (’\b’ or 0x08), PuTTY sends Erase (0x7F).
The Atmel A.S.F. 3.5.1 does not respond to 0x7F in any special way; it only responds to ‘\b’ in a special way and for all other characters it echoes it back to the terminal.
PuTTY responds to receiving the echoed 0x7F by performing a destructive backspace. So it looks as though everything is fine and working.
Sadly when return is pressed, the 0x7F characters in the command string are passed through to FreeRTOS CLI and mess up the command string matching.
As a result, it appears that Backspace doesn’t work when FreeRTOS CLI is asked to parse the command.