Skip to content

SPI flash end address is sometimes displayed incorrectly #603

@harbaum

Description

@harbaum

When writing very small chunks via SPI flash, some data behind is also erased. This is of course to be expected due to the flash block size. But I was slightly confused by the output in this line:

printf("start addr: %08x, end_addr: %08x\n", base_addr, (base_addr + size + 0xffff) & ~0xffff);

It always assumes an end address based on a block size of 64k, while the actual end address with known flash models may be derived from a 4k block size. Is there are reason why it doesn't just output the end_addr that was computed a few lines before? The current output is somewhat misleading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions