An FTP server for the PicoCalc (Pico 2 W): no more SD card swapping

TheKiwil wrote an FTP server for the PicoCalc, PicoCalc_FTP, and never posted about it here that I could find. adcockm found it while searching GitHub. It turns a Pico 2 W PicoCalc into an FTP server on your WiFi, so you can copy files to and from the SD card from FileZilla, WinSCP or Windows Explorer without taking the card out. It has saved me a lot of card swapping.

Running it with UF2 Loader and Blair’s PicoCalc Shell turned up a few problems, so I fixed them and sent the changes back to TheKiwil as a pull request:

Fix passive-mode listings and file times; run from the PicoCalc boot menu by ctorkildson-netizen · Pull Request #2 · TheKiwil/PicoCalc_FTP · GitHub

What’s different:

  • Directory listings work in passive mode (they failed with “425 No data connection” in FileZilla and others).
  • File times are right. They were off by your time zone.
  • It builds for the Pico 2 W with the current arduino-pico core.
  • It runs from the boot menu, and Esc goes back to the menu, no power cycle needed.
  • With no config_ftp.conf, it uses the WiFi settings from settime.cfg or virtualt.cfg, and the login is picocalc / picocalc.
  • Uploaded files get real dates from NTP.
  • Uploads are safe: a failed or interrupted upload leaves the old file as it was.
  • It no longer freezes after a while (the screen log used to read the display back, and that could hang).
  • No white flash when it starts.

The code is on my fork, branch picocalc-fixes:

GitHub - ctorkildson-netizen/PicoCalc_FTP · GitHub

I’m not posting a .uf2 yet. The original repo has no license, and I’ve asked TheKiwil whether he’d add one. If he does, or merges the PR, I’ll post a build.

For anyone using LovyanGFX on the PicoCalc: two things I ran into along the way. Reading the screen back on the RP2040/RP2350 can hang (I’ve sent a fix to LovyanGFX), and its ILI9488 startup shows a white flash on this panel (the fix is in LGFX_config.hpp in the fork).

3 Likes