I made a program within the uVision3 IDE and used to be debugging
with a MCB2130 as a target. Because the package with the stuff needed
I used the simulator so that I could work ahead.
By the time I received the package I finished my program. It's an
advanced Blinky program with several options of led-loops and several
options to repeat them etc. To set-up the correct options and loop
you have to use the UART1 window and your keyboard as input.
Now comes my problem.. because in the simulator everthing works
like a charm however, if I want to debug the program using the
Ulink2-USB-kit I can't get to output text on my UART1 screen within
Is there a simple sollution for this or is plain impossible?
Thanks in advance,
Ruud van Heugten
" you have to use the UART1 window and your keyboard as
That's in the Simulator, because the simulator doesn't have
a real UART1:
* The UART1 window simulates the output from the
* The keyboard simulates the input to the UART.
When you use the uLink, the code actually runs in your target
hardware - it is no longer just being simulated in your
Therefore, the UART1 output actually comes out of the real, physical
UART of the microcontroller, and what you previously typed on the PC
keyboard has to be sent as serial data to the real, physical UART of
You can use a Terminal Emulator (eg, Hypoterminal) to do
Allright I See.. offcourse.. didn't think of that..
To use the physical UART of the microcontroller can I use the
ULink2 box in combination with an Terminal Emulator or is it only
possible when I connect an COM-cable to my PC?
"To use the physical UART of the microcontroller can I use the
Like I said, the UART data goes in & out on the physical pins
of the chip as electrical signals - so you need to connect these
signals to a suitable device (eg, a PC COM port and a terminal
The uLink just interfaces to the chip's on-baord debug logic.
OK I have got it to work. It prints the text to my screen nicely.
Problem now is.. I can't send output too the MCB2130 eval. board. I
think it's a simple setting mistake but tried a lot of things and non
worked. So if you could help me out a little bit more that would be
Have you set the terminal program to use 3-wire intrface, or
connected RTS/CTS on the PC side - yur terminal program is probably
waiting for ok to send any data.
Before I got to test it when I was trying to debug I noticed
whenever I executed printf() statements my JTAG connection was lost.
Could that be the problem? Some registers that aren't right?
At this moment I ain't receiving error-messages in uVision3
p6.6,50,*RXD2,"Debug, SerialPort, DSPortAdapter",Can configure as
p6.7,49,*TXD2,"Debug, SerialPort, DSPortAdapter",Can configure as
How can I change them to general I/Oï¼ŸWhich
register control them?