flipperzero-rs / flipperzero

Rust on the Flipper Zero
MIT License
521 stars 35 forks source link

Add ability to flash / launch a fap from Rust #43

Closed twitchyliquid64 closed 1 year ago

twitchyliquid64 commented 1 year ago

It would be good to remove the remaining python/fbt tooling from the development toolchain/flow entirely. I had a quick looksies at how the official flipper zero tooling does file transfers and it looks like it might actually be very easy:

https://github.com/flipperdevices/flipperzero-firmware/blob/663eb6cd6d4a14d00caf93d402b71eadb9a4d63f/scripts/flipper/storage.py#L203

I'm getting back into Flipper stuff again (needless to say I need to rewrite all my trash onto your mature crates lol), so I might give this a go if you don't get around to it first.

dcoles commented 1 year ago

Hi @twitchyliquid64,

That would be great! That was part of the intent for the tools crate (a simple serial client, storage client, etc.), but hadn't had the opportunity.

Would happily accept something like that.

dcoles commented 1 year ago

I've started working on serial support in #54.

twitchyliquid64 commented 1 year ago

I had attempted to do it in bash but gave up once i saw how easy it was to copypasta storage.py and call one method.

The draft looks great!

dcoles commented 1 year ago

Merged in support for serial_cli and storage tools. 🎉

Would greatly appreciate if you could check it also works on your platform.

twitchyliquid64 commented 1 year ago

I was able to run the serial_cli tool, but the CTRL+] to exit thing didnt work for me.