Skip to content

USB Storage example broken #5454

@digitalentity

Description

@digitalentity

The usb-storage example may not persist the data that is written to the device. The reason for this is most likely that the writeBlock in the scsi_readwrite.go is performing WriteAt without erasing the page first.

The RP2 implementation of the WriteAt here clearly says that it "assumes that the destination is already erased". The low-level impl on RP2350 doesn't return an error in case of unsuccessful write (the flash_range_write is a void function, so we simply don't have the capability). All this causes the MSC driver to get a nil error even if the write actuall faild.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions