This library needs both a File descriptor, like from the SD library and a Stream (Serial).

This handles X/Y-Modem both in 128 byte and 1k blocks and the CRC-16 extension.

http://peter.turczak.de/XModem.zip

Share