swiftio.bingenerated in the
.builddirectory. You just need to copy it to the root directory of the SD card, eject it, then the SwiftIO board will reset and run your code.
path_to/mm-sdk/tools_mac/scripts/dist/mm/mm build --sdk path_to/mm-sdk --module ~/Document/MadMachine/Library
Blink/.build/swiftio.binto the USB drive
--sdkThe path to mm-sdk
--moduleThe path to the Library. Since currently there is no available package management feature, we have to put all the dependent libraries into the same folder, and then assign it when invoking this building command.
Blink.mmp(Actually, it’s a TOML file)
Blink.bin, then we get
swiftio.binis loaded and executed on the board. In fact, a pre-installed bootloader (or called firmware) has been written into the onboard Flash. This flow chart would reveal the key information about how it works:
.binfile to the onboard Flash. In this condition, you don’t need an SD card at all.
swiftio.binto the USB drive and eject the USB drive in the background.
Documents/MadMachinefolder when you first run it. But it may encounter permission problems. If it failed to copy those files, you would meet errors when building your project. Check out if there are those two directories in your
swiftio.bin. At the same time, we’ll continue to improve the compatibility of the firmware.