Answer
To reliably transfer files, your python app cannot be in a loop or printing any messages. Follow the steps provided below to ensure reliable file transfers.
- Open the UART and issue Ctrl+C.
- You should now have a REPL prompt.
- Open the UART with Xbit VS Code.
- Rename main.py to something else and reboot.
- Now you can transfer files.
- Important Note: To have a reliable file transfer experience, reduce the print messages in your python app, the file transfer is over this UART so cross talk must be eliminated.