Hi David,
Just wanted to clarify the setup to make sure I understood your question, and ensure you get a full picture of what is going on.
The LPC1768 target microcontroller has 4 UARTs. UART0 is connected directly to the mbed interface onboard, whos job it is to convert it to USB Serial so that you can access the UART through the same USB connection as is used for the MSD drag 'n' drop programming. The 3 other UARTs pin out on the DIP pins.
Note, the USB interface used for programming/serial debug provided by the mbed interface is totally separate from the USB on the LPC1768 target microcontroller, which pins out on the D+ and D- pins. This means you are free to use the LPC1768 USB interface as you wish; we intentionally don't use it, so you can! Here is the diagram:
When you say Serial pc(USBTX, USBRX), this means you are tying to UART0 and the pins connected to the mbed usb interface. So if you have a program that uses this, and you run it on a custom board, you'll see the characters on UART0, specifically P0.2 and P0.3.
In the same way, you'll only get anything from the LPC1768 USB if you are running some code on the LPC1768 that is using the USB peripheral, whether on the mbed or a custom board.
Hope this clarifies things and confirms what you are seeing.
Simon
Howdy:
I have a program running on the mbed but I am trying to demonstrate that it can run on a production board. I am using the NGX board for now. If I download a simple led blink program using flash magic it works fine. My problem is I have a larger program that won't run. The program has a lot of printf commands that use the pc serial port which (I think) goes out the usb port.
I am using the usb port pins D+ and D- (host) for output of my application. Is there someway I can get a debug report out of the system? How does the serial output actually get back to the pc? The schematic on the mbed I found a while back doesn't depict exactly how the usb connector on the mbed is connected. Is it connected to the D+ and D- also or is there some magic chip doing something?
Any help would be appreciated.