Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
biboc opened this issue Nov 4, 2022 · 0 comments
Open

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

biboc opened this issue Nov 4, 2022 · 0 comments

Comments

@biboc
Copy link

biboc commented Nov 4, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant