Skip to content

[Feature] Build HAT flash memory support #2482

@dlech

Description

@dlech

The Raspberry Pi Build HAT has a 2MB flash memory chip that is basically only used for the bootloader.

I suspect there will be many ideas on how we could use this. So I will share some ideas on why we shouldn't use it. But don't let that stop anyone from having fun brainstorming about it and sharing ideas anyway. 😄

  • We could put the Pybricks firmware on the flash memory instead of running it from RAM and run it from there. Since the flash memory operates over SPI, this would make the execution slower. We should of course measure it to be sure though.
  • If we allow writing to the flash memory, we could accidentally wipe out the bootloader. The only way to recover then would be using a SWT debugger. This is special hardware that most people don't have, so effectively it would brick their Build HAT.
  • There isn't a button on the Build HAT to start user programs, so there isn't much use is storing user programs in the flash memory.

The only other feature we would be missing from Pybricks that requires flash memory is storing user data between power cycles. This could be offloaded to the Raspberry Pi though and stored in a file there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    hub: buildhatIssues related to the Raspberry Pi Build HATsoftware: pybricks-micropythonIssues with Pybricks MicroPython firmware (or EV3 runtime)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions