Skip to content

flash.py: size is erased with read option #35

@biboc

Description

@biboc

I read my SPI memory with

The flash.py program reads only two bytes, why?
In the code, I don't get why you replace size variable at line https://github.com/jamesbowman/spidriver/blob/master/python/samples/flash.py#L97

    if '-r' in optdict:
        read(0)
        chunk = 8 * 1024
        size,chunk = 128,128
        with open(optdict['-r'], "wb") as f:

By commenting the line size,chunk = 128,128, it works

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