Skip to content

Programming flash in RP2350 #932

@highjeans

Description

@highjeans

In microzig v0.15.1, does programming flash on an RP2350 work? Currently I try to erase a sector from flash using a similar piece of code from the flash_program example, and it panics with "missing coprocessor usage = true". What can I do about this? Looking at the pico sdk, the functions for flash are the exact same for both the RP2040 and the RP2350, so I assumed the current code for erasing flash would work.

Edited: Turns out if all the bits of the flash are set to 1 already, it will crash when it tries to erase it. However, I can't seem to program it though as it crashes with "unaligned memory access = true" when writing anything from (seemingly) all 0xFFs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions