zhongfu wrote:USB to serial RS-232 cable
You need low-voltage 3V UART cable, not a "real" (high-voltage, bipolar) RS232. They're same at protocol logic, but it's about voltage levels. CPU talks plain 3V logic-level UART, it using 0V as logical zero and about 3V as logical one. Real RS232 uses bipolar voltages of +/-3 ... 12V. Needless to say, idea to put 12V signals at 3V CPU pins can burn CPU to the hell in worst case. This interface is NOT FOOL PROOF. It's internal/debugging thing for those who knows what they're doing. So check pinout and voltages TWICE before turning it on. Else you can PERMANENTLY destroy CPU in fatal way. As rule of thumb, when you deal with standard digital I/O pads it's really invalid idea to put voltages below ground plane level (aka 0V) or above of I/O power supply rail level (3.3V in case of most routers, but you better to check this twice, too).
And if you're 100% sure that voltage level and pinout is correct, but there is still some garbage, check baud rate settings, stop bits and parity settings. Rather common setting is 115200 bps, 8-N-1 (8 bits, no parity, 1 stop bit). But it can vary and not set in stone. Messing these settings isn't anyhow fatal - it just warrants some funny garbage if settings of sender and receiver do not match.
(Last edited by t3st3r on 9 Jan 2014, 00:06)