Looking at the code you posted, I suspect the output you are expecting is on TX1 (pin 4, counting from bottom up) on terminal block J5. This...
alexandros301 - I found that the default location for the SDI and SCK (MOSI, SCK) are pin2 and pin3 on terminal block J20 on the UDOO board.
Separate names with a comma.