My lab doesn't have a wired network. And that makes it difficult to develop on the SAMA5D4 Xplained Ultra board.
The only way I am able to move compiled binaries from my Windows development machine to the board is via SCP.
But that meant that I have to connect the board to the wired network in my living room.
In this post you can read my successful work to enable file transfer over the USB connection. I can now transfer my programs to the board in my lab.
No need to take it out of the circuit under construction anymore.
Tera Term: Terminal Program with File Transfer
Tera Term is a terminal program, comparable to PuTTY and HyperTerminal. It has file transfer capabilities, and supports multiple protocols.
The modus operandi isn't difficult. You first log on to the board with the serial port, similar to PuTTY.
Once connected, you have to adapt the Serial Port attributes for the Xplained Ultra.
Most likely this can be set in a configuration file, but I haven't looked into that yet.
On the linux prompt, log on as root.
Start the XMODEM listener
Prepare your linux session for file receiving by entering the rz command:
rz -e -b -X HelloARMWorld
rz is the file receive command.
-e takes care that all special commands are properly escaped
-b does a like for like (binary) transfer
-X selects the XMODEM protocol
Send the file
On the Tera Term menu, select File -> Transfer -> XMODEM -> Send...
A dialog pops up to select the source file. Once you selected the file, a progress bar appears:
When that transfer is finished, the file is available on linux.
The only thing we have to do is make it executable:
chmod +x HelloARMWorld
and run it: