eblot / pyspiflash

SPI data flash device drivers (pure Python)
MIT License
40 stars 30 forks source link

Fix possibility to select different chipselect with pyftdi>=0.40 #15

Closed j123b567 closed 5 years ago

j123b567 commented 5 years ago

pyftdi>=0.40 changes default number of chipselects from 4 to 1. Chipselect number can be passed to method SerialFlashManager.get_flash_device(), but it no longer works for cs>0, because SpiController must be initialised with propper number of available chipselects, which cant be done.

May be related to #1

eblot commented 5 years ago

Upcoming pyspiflash will support this new API.

I wrote the code this afternoon, but I did not have the HW at end to run a minimal test session.

eblot commented 5 years ago

Now addressed in v0.6.0

eblot commented 5 years ago

See spiflash/tests/serialflash.py for example.

j123b567 commented 5 years ago

You are fast! Thank you.