Xilinix EDK :Hyperterminal to Develoment Kit

Status
Not open for further replies.

ishailesh

Junior Member level 3
Joined
Apr 4, 2012
Messages
31
Helped
6
Reputation
12
Reaction score
6
Trophy points
1,288
Location
New Delhi, India
Activity points
1,652
Hey All!

I have got a task to complete, in which i will be taking input from hyperterminal and displaying on my development kit and vice-verse.
My Board is Virtex2Pro
I am Using EDK 10.1.
I have build the hardware part using base system builder wizard.
Now all i want to have is software code for implementing uart.

Help me in doing the same

Here are screenshots of System assembly View and Block diagram





Regards
 

G'day

I haven't used EDK 10.1 or the PPC core, so I may be hindering rather than helping.... but assuming it's similar to ISE 12 or 13 using the microblaze softcore.... the easiest way to get some UART action is to fire up the Xilinx SDK (I'm assuming you've instantiated your PPC core into a top level design somewhere?) -> from ISE select the core (see pic) then in the process window select Export Hardware Design to SDK with Bitstream. This should open Xilinx SDK. from there proceed with the 'hello world' project example which uses the UART to output 'hello world'.
 
I Got it done by creating a source code in EDK itself:

#include "xparameters.h"
#include "xuartlite.h"
#include "xstatus.h"
#include "xuartlite_l.h"

int main(void)
{
Xuint8 data;
data = XUartLite_RecvByte(XPAR_RS232_UART_BASEADDR);
XUartLite_SendByte(XPAR_RS232_UART_BASEADDR, data) ;
}
 

If you select the debug options, then XPS will add UART functions and these codes for you.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…