did you power your Udoo while uploading the sketch?
It happened to me. Turned out you need to power your Udoo.
Separate names with a comma.