32blit / 32blit-sdk

32blit SDK
https://32blit.com
MIT License
197 stars 69 forks source link

Extend .blit header with api/device info #822

Closed Daft-Freak closed 5 months ago

Daft-Freak commented 1 year ago

Some patches from the pico launcher/api stuff. Adds a device id and the api version to the .blit file header, taking advantage of there being an unused constant 00 00 00 90 at the end for backwards compatibility (first byte is repurposed as device id, non-0 means the api info is there).

I have no idea where the name "STM32Blit" came from though. Should probably be something like STH32H7 (existing .blits are built for cortex-m7 and assume STM32 RAM layout, though there isn't a loader for anything that isn't a 32blit...)

Gadgetoid commented 1 year ago

I have no idea where the name "STM32Blit" came from though.

I have no earthly clue, it's not even a nice round number of bytes :laughing:

Daft-Freak commented 1 year ago

I can only assume it has something to do with not being able to have a number at the start...

(Kinda forgot about this one, it's mostly relevant for the pico launcher stuff... but I'm not entirely sure what my plan for that is...)

Daft-Freak commented 1 year ago

Oh, it does allow checking files for compatibility before launching them as well. (WIP: https://github.com/Daft-Freak/32blit-beta/commit/99fb0985eec241757c32943b9af2489004286be9)

Daft-Freak commented 5 months ago

Okay, now this works: Launcher0 (Those are pico-blits)