I am trying to learn to use the uVision IDE from Keil on an Open1114 development board and cannot seem to get the UART simulation. I am using a simple UART program that came with the IDE that prints a message and then will echo Ascii characters with the hex value.
I can connect with the development board through the com interface and program it with the "Flash Magic" program.
However, I cannot see any output on any of the "virtual" UARTs of the IDE and cannot seem to input a character. The program is always at the reading of the UART_receive routine, looking for a character as if there is not a character available and the breakpoints that are set are not hit.
How do I select the "virtual" UART under the IDE so I can test the code ?
Ken-
Not sure if you got any help with this, but I've been down the same road.
I suspect the problem is both devices are trying to control the reset pin. The reset pin is brought out to both the serial port and the SWD port. The ISP uses reset to enter ISP mode, the Ulink2 uses it to enter SWD mode. The two devices are fighting for control of the same pin.
Try connecting your USB-ISP-serial device to just the RXD, TXD & GND pins, leaving the others floating/NC. The ISP pod will not be able to reset the LPC1111 or download code, but it should see the UART data.
Then use the Ulink2 for debugging.
hope this helps.
-MarkR