Hello,
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 uVision3 IDE.
Is there a simple sollution for this or is plain impossible?
Thanks in advance,
Ruud van Heugten
"To use the physical UART of the microcontroller can I use the ULink2 box"
No.
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 emulator).
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 great.
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 IDE.
p6.6,50,*RXD2,"Debug, SerialPort, DSPortAdapter",Can configure as native I/O p6.7,49,*TXD2,"Debug, SerialPort, DSPortAdapter",Can configure as native I/O How can I change them to general I/O?Which register control them? Thank you.