Skip to content

PyBoard`s SD card dies with SPI device attached and initialized #2667

@kamikaze

Description

@kamikaze

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions