cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer
Observer
1,995 Views
Registered: ‎04-08-2017

UartNs550 Failed (Spartan-6 FPGA Embedded Kit)

Hi there,

 

I have started using the embedded kit and the associated Xilinx SDK recently.
I have encountered a scenario where the UART module failed (i.e. transmit did NOT match receive).

If anybody knows why and what I can do to fix this issue, please help me...

 

I have attached a zipped folder here for the entire workspace (SDK_Workspace_2_Zip).
The main driver code is: SDK_Workspace_2\peripheral_tests_2\src\testperiph.c
 
The datasheet for the UART module that I found is also included here (DS748_axi_uart16550).
The target software interface is Modem Control Register, Page 15.

 

Basically, my driver code is identical to the template code in the SDK they provided as part of their peripheral testing. The only difference is that I expanded all their functions (i.e. in many source files) into a single block in one source file (testperiph.c).

The failure seems to arise after the following statement is executed in my driver code:
   XUartNs550_WriteReg((&UartNs550)->BaseAddress, XUN_MCR_OFFSET, McrRegister | XUN_MCR_LOOP);
This is supposed to enable the loopback test, which could be verified by 'TestString' and 'ReturnString' buffers in my driver code.
However, this loopback test failed in my driver code.

 

The hardware (UG669) and software (UG670) setup references can be found online.
If anybody knows why and what I can do to fix this issue, please help me...
I can also provide more information for more debugging as well...

 

Thanks,
TH

 

0 Kudos
3 Replies
Highlighted
Observer
Observer
1,770 Views
Registered: ‎04-08-2017

Re: UartNs550 Failed (Spartan-6 FPGA Embedded Kit)

Please ignore my previous message because it has been resolved. Thanks, TH.

0 Kudos
Highlighted
Moderator
Moderator
1,766 Views
Registered: ‎06-05-2013

Re: UartNs550 Failed (Spartan-6 FPGA Embedded Kit)

Please share the resolution if you think it would be helpful for other community members and accept that post as solution.

Thanks,
Harshit
-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Highlighted
Observer
Observer
1,761 Views
Registered: ‎04-08-2017

Re: UartNs550 Failed (Spartan-6 FPGA Embedded Kit)

Hi harshit,

 

Goodness, thanks for your quick reply.

Anyway, I did NOT exactly solve the problem. What I did is just deleting that workspace (i.e. the one with 'UartNs550SelfTestExample' failed) and generating another workspace with 'UartLiteSelfTestExample', which passed the peripheral test. Also, I noticed in the second workspace (i.e. UartLite), the top-level driver also mentions that:

   /*
    * Peripheral SelfTest will not be run for RS232_Uart_1
    * because it has been selected as the STDOUT device
    */

So, maybe the above comment in the template file could be part of the problem/solution.

 

I am NOT sure if my reply to my own question can be accepted as a solution either. I was just looking for help and when there is NONE within a given time frame, I will attempt to delete my original post and move on to other things.

 

Thanks,

TH