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: 
Participant diegosantibanez
Participant
711 Views
Registered: ‎07-25-2017

XUART receiving problem.

Jump to solution

I'm trying to send data from a .bin file vía UART to an UltraScale+.

I use the xuartps library from Xilinx.

From Matlab I generate a .bin file where i write the data to be sent.

I configure the UART driver with an interrupt, that triggers when N bytes arrive.  

The problem arrives here:

 

If I send, for example, 8 bytes:

 


   102    76    14    14   117     4     3    32

 

 

The interrupt doesn't trigger.

Then, I manually send 4 chars ('f') vía keyboard, and the interrupt occurs.

The system receives:

 

102 76 117 32 113 113 113 113

 

113 is the ascii code for 'f'.

In other words, it ignores every byte with values smaller than 32.

IDK if it's a coincidence, but it's not receiving bytes with no symbol in ASCII: (I tried with other values)

 

sent.PNG

 

As you can see here:

 

ASCII.PNG

 

Any idea of what's going on?

Thanks in advance ;)

 

Diego.

 

 

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Participant diegosantibanez
Participant
984 Views
Registered: ‎07-25-2017

Re: XUART receiving problem.

Jump to solution

Solved. I was sending the .bin file via Tera Term. When you do so, you need to check the "Send as binary" box.

 

Thank you.

View solution in original post

0 Kudos
1 Reply
Highlighted
Participant diegosantibanez
Participant
985 Views
Registered: ‎07-25-2017

Re: XUART receiving problem.

Jump to solution

Solved. I was sending the .bin file via Tera Term. When you do so, you need to check the "Send as binary" box.

 

Thank you.

View solution in original post

0 Kudos