spidriver icon indicating copy to clipboard operation
spidriver copied to clipboard

flash.py: size is erased with read option

Open biboc opened this issue 2 years ago • 0 comments

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

biboc avatar Nov 04 '22 08:11 biboc