I want to do some PicoMite development on the Mac, at the moment the process is:
Taking the SD card from the device → editing the file → saving to SD card → putting the SD card in the PicoCalc and booting → testing → rinse and repeat.
I tried using it via the Mac terminal but the “edit’“ is still limited to the 80x24 resolution.
Is there a better way to do it?
If you have a PicoW or Pico2W installed, and WebMite, you could use TFTP to transfer file to and from the PicoCalc. Once I started using TFTP, I no longer put the SD card in my iMac. This also avoids getting those pesky hidden files prefixed by a period.
The PicoMite firmware for PicoW and Pico2W is called WebMite. It’s PicoMite with network capability. @tabemann has posted a link to where you can download v6.02 which is the latest build.
I had success running MMEdit 5 on my Mac by using Crossover, creating an empty Windows XP bottle and copying the MMEdit XP Standalone folder to it. you can download it here Geoff's Projects - MMEdit
I gave it a try but it did not work correctly, it did not display some of the elements and did not connect to the device, not via serial and not via tcp.
I guess I’ll continue with the TFTP, so far it’s the best solution (although flaky)
The way it works is by sending a string via the serial to start the xmodem xmodem receive <file>
This will put the device in listening mode and the sz -X -B 1024 $file < $port > $port will send the file in 1K blocks.
keep in mind that by default the script uploads to the B drive i.e. to the SD card.
Thank you @regevt for sharing this. TFTP works about 95% of the time as long as I have the pico in a place with a good WiFi signal.
For your solution, I assume I need to have the Pico connected to my Mac via a min-usb cable?
How do I determine the port name?
Can this script be enhanced to allow transfers from the pico to the Mac?
I’m going to try this. It’s great to have options…..Brian
You need to connect the Mac to the USB-C of the PicoCalc not to the pico itself.
According to the documentation, yes it is possible to use xmodem to pull files from the device using xmodem send <file> and my guess is that you will need to run something on the Mac that will receive it.
maybe the sz I use to send can receive but I will need to check the documentation.
I updated my VSCode extension to allow remote debugging and file browsing (upload, download, delete, etc). I work on macOS so I know it works on Mac and Linux. I haven’t tested it on Windows but I don’t see any reason it wouldn’t work.