Hello again,
I found that my problem was that I needed a variable to control when the send or receive proccess is complete and, for that, you must enable the interrupts. So, I modified the project in Vivado and I add the interrupt handlers in my code and everything is working now.
I follow the next webpage (it is in Spanish but you can find images with the Vivado design and the code): https://programmerclick.com/article/91841879660/
Have a nice day,