When SD card is being inserted and code (that initializes SPI and sends some init data to device) launched from it in REPL and then Ctrl+D is being pressed - BOOM, SD card error occurs.
Here is the sample initialization: https://github.com/kamikaze/pyboard-examples/blob/master/display/__init__.py#L18
It doesn't die if CS pin init is commented out... but SPI device is not working too then. I've tried to use X5, Y5 (SS) pins for appropriate SPI buses and even random Y4 pin. Same behaviour.
I think same behaviour may occur with SSD1306 (because my init process is the same) or with any other device (but not sure).
Here is my long and painful investigation: http://forum.micropython.org/viewtopic.php?f=6&t=2657
When SD card is being inserted and code (that initializes SPI and sends some init data to device) launched from it in REPL and then Ctrl+D is being pressed - BOOM, SD card error occurs.
Here is the sample initialization: https://github.com/kamikaze/pyboard-examples/blob/master/display/__init__.py#L18
It doesn't die if CS pin init is commented out... but SPI device is not working too then. I've tried to use X5, Y5 (SS) pins for appropriate SPI buses and even random Y4 pin. Same behaviour.
I think same behaviour may occur with SSD1306 (because my init process is the same) or with any other device (but not sure).
Here is my long and painful investigation: http://forum.micropython.org/viewtopic.php?f=6&t=2657