How should I debug my mbed project?
I'd advise that you check your serial link. Disconnect the serial cable from the mbed and short the TX and RX lines. If it's working, you'll see your data echoing back as you type it from the PC.