How do I compile an UF2 file for the PicoCalc loader?


#1

Hi David,

just to hopefully get everything right: What workflow do you use to turn ulisp-picocalc.ino into an UF2 file? And what is the basis for the “alternative UF2 file” for the Pico 2?

I found these instructions: https://forum.arduino.cc/t/how-do-i-create-a-uf2-file-from-2-x/1299840/2
Is that the way you create the UF2? Or do I need to consider additional prerequisites to turn a freshly compiled uLisp with extensions and library into a UF2 file the PicoCalc firmware can work with?

Thanks for any hints!


#2

To create a UF2 file you set up the Arduino IDE as if you were going to upload uLisp with the settings you want to use, but you then choose Export compiled Binary from the Sketch menu. The .uf2 file will be put in the same folder as your .ino file.

On the ulisp-picocalc GitHub page the mail .uf2 file is for the default PicoCalc with the Raspberry Pi Pico, and the one in the Alternative UF2 images folder is for the Raspberry Pi Pico 2W. I haven’t created any images for the Pimoroni boards.


#3

Thank you, that looks very easy. (Planning to port the screen editor to the PicoCalc.)