Content originally posted in LPCWare by CodeRedSupport on Wed Jun 30 22:59:09 MST 2010
A lot of questions/misunderstanding here. Let me try and explain.
The LPCXpresso board is powered AND debugged via the USB port.
When you first plugin your LPCXpresso board, it will appear in the Device Manager as a "USB Device with DFU Capabilities".
When you build an application and press the Quickstart panels "Debug" button the first time, it will "boot" the LPC-Link portion of the LPCXpresso board with an image that allows it to act as a debugger. You will see this happening with a splash screen saying "Initializing LPC-Link". The LPCXpresso board will now appear in Device Manager as an LPC-Link (or possibly a HID device). You will hear Windows make it's "new device" noise.
Now, the IDE will go on and load your application into the target processor. It will stop whatever is running and download the new image to flash. It will set a breakpoint on the first instruction within main(). You are now debugging, meaning you can examine memory, registers, peripherals, local variable etc. You can also set breakpoints, single step etc. You are in control and you can do what you want.
The "Program Flash" button will just download your application to the Flash on the board. It will not allow you to debug.
The Target setting for your project *must* match the actual target you are trying to debug, If your project is set for an LPC1114 and you try to connect to any other sort of target, you will get the "03:failed on chip setup:Ec(01). Invalid, mismatched or unknown part" error.
You can see the Target setting of your application by looking in the status line in the bottom right corner of the IDE. For example, it will show "NXP LPC1343" for the blinky project from the LPC1343 examples.
Give your description I would suggest that your LPCXpresso board does not match the projects/examples that you are trying to load. For example you may have an LPC1343 board, but are trying to load the examples from the LPC1114 (or vice-versa). Please check.
The board is programmed with the blinky application when shipped. If you are choosing to download the blinky application, you will not see any difference.Try a different application, such as the "twinkle" example. This will still flash the LED but at a variable rate.
Hope that Helps,