cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
diegosantibanez
Participant
Participant
1,027 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
diegosantibanez
Participant
Participant
1,300 Views
Registered: ‎07-25-2017

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

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