UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Participant avinash.pisal.s
Participant
13,211 Views
Registered: ‎08-08-2013

How to use jtag uart to display message

Jump to solution

Hi,

 

In my system i dont have UART interface.To simpilfy microblaze based debug i want to add jtag uart. I have selected jtag uart option in mdm ip core.But i dont know what is the sdk setting and "c" code required to send message(print("hello") to sdk console. 

 

Thanks.

0 Kudos
1 Solution

Accepted Solutions
Scholar sampatd
Scholar
24,624 Views
Registered: ‎09-05-2011

Re: How to use jtag uart to display message

Jump to solution
If you are using a 7-series device, you can use XSDB to print using JTAG UART. Follow the steps below:

1. Launch the XSDB console

2. Use the "connect" command to connect to the board

3. Configure the FPGA.

4. Change the targets to Debug Module using "targets" command

5. Use the command "jtagterminal -start" to launch a JTAG-based hyperterminal

6. Change the target to the MicroBlaze processor using "targets" command

7. Download the application elf using the "dow" command

8. Run the application using "con" command.

You should now see application output on the JTAG-based hyperterminal.

View solution in original post

0 Kudos
4 Replies
Scholar sampatd
Scholar
24,625 Views
Registered: ‎09-05-2011

Re: How to use jtag uart to display message

Jump to solution
If you are using a 7-series device, you can use XSDB to print using JTAG UART. Follow the steps below:

1. Launch the XSDB console

2. Use the "connect" command to connect to the board

3. Configure the FPGA.

4. Change the targets to Debug Module using "targets" command

5. Use the command "jtagterminal -start" to launch a JTAG-based hyperterminal

6. Change the target to the MicroBlaze processor using "targets" command

7. Download the application elf using the "dow" command

8. Run the application using "con" command.

You should now see application output on the JTAG-based hyperterminal.

View solution in original post

0 Kudos
Participant avinash.pisal.s
Participant
13,201 Views
Registered: ‎08-08-2013

Re: How to use jtag uart to display message

Jump to solution

During project create i selected peripheral test. When i am using print or xil_printf build step giving following error.

../../test_bsp/microblaze_0/lib\libgloss.a(print.o): In function `print':
(.text+0x20): undefined reference to `outbyte'
../../test_bsp/microblaze_0/lib\libgloss.a(xil_printf.o): In function `padding.part.0':
(.text+0x2c): undefined reference to `outbyte'
../../test_bsp/microblaze_0/lib\libgloss.a(xil_printf.o): In function `outnum':
(.text+0x170): undefined reference to `outbyte'
../../test_bsp/microblaze_0/lib\libgloss.a(xil_printf.o): In function `xil_printf':
(.text+0x244): undefined reference to `outbyte'
../../test_bsp/microblaze_0/lib\libgloss.a(xil_printf.o): In function `xil_printf':
(.text+0x3f0): undefined reference to `outbyte'
../../test_bsp/microblaze_0/lib\libgloss.a(xil_printf.o):(.text+0x484): more undefined references to `outbyte' follow
collect2.exe: error: ld returned 1 exit status
make: *** [test.elf] Error 1

 

0 Kudos
Scholar sampatd
Scholar
13,188 Views
Registered: ‎09-05-2011

Re: How to use jtag uart to display message

Jump to solution

In the BSP settings, what are the STDIN and STDOUT values? Set them to mdm uart

 

bsp_with_mdm.png

Participant avinash.pisal.s
Participant
13,172 Views
Registered: ‎08-08-2013

Re: How to use jtag uart to display message

Jump to solution
Thank you for help.
0 Kudos