From c4441cf4fca4df6bd9c71b0dba4bfedfcf567cba Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Sat, 17 Dec 2022 12:07:48 -0500 Subject: Makefile: Make this functional (at least, on Linux for Zach) --- Makefile | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 11efd6c..110b398 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,8 @@ -# As of arduino-cli 0.24.0, teensy boards are supported -# from https://www.pjrc.com/teensy/td_156/package_teensy_index.json -build/HexBoard_V1.ino.hex: HexBoard_V1.ino - arduino-cli compile -b teensy:avr:teensyLC --board-options usb=midi --output-dir build +# Copied fqbn from build.options.json +build/HexBoard_V1.1.ino.uf2: HexBoard_V1.1.ino + arduino-cli compile -b rp2040:rp2040:generic:flash=16777216_0,freq=133,opt=Small,rtti=Disabled,stackprotect=Disabled,exceptions=Disabled,dbgport=Disabled,dbglvl=None,usbstack=tinyusb,ipstack=ipv4only,boot2=boot2_generic_03h_2_padded_checksum --output-dir build -install: build/HexBoard_V1.ino.hex - echo "Waiting to install, maybe press program-mode button?" - teensy_loader_cli -w --mcu=TEENSYLC build/HexBoard_V1.ino.hex +install: build/HexBoard_V1.1.ino.uf2 + echo "Trying to copy into mounted device" + cp build/HexBoard_V1.1.ino.uf2 /run/media/zach/RPI-RP2/ echo "Installed." -- cgit 1.4.1