Skip to content

mimxrt10xx: Implement sdioio, define pins for Teensy 4.1 #4020

Open
@nezra

Description

@nezra

On the Teensy 4.1 Version 6 circuitpython, the wrong SD card interface is built in:

https://circuitpython.org/board/teensy41/

The builtin interface is for SDcardio. However, the SDcard is actually handled by SDIOIO interface, not SPI for the onboard SDcard slot. i'd suspect given the teensy 4.0's pinout it'd work the same if the pins referenced there are tied to the same ones on the chip.

defined in the port pin map of github/circuitpython for verification of sdioio:

https://github.com/adafruit/circuitpython/blob/main/ports/mimxrt10xx/boards/teensy41/pins.c

defined on the pjrc pinout, matches the pins.c of the port/board:

https://www.pjrc.com/store/teensy41.html#pins

Following the directions here, SDIOIO when iimported states no module. I used the unaltered sample code from the directions here:

https://learn.adafruit.com/adafruit-microsd-spi-sdio/using-sdioio

I attempted to locate the library in the circuitpython 6 library file, but it's not included here:

https://circuitpython.org/libraries

Is there a way to get this fixed, or download the SDIOIO library?

As another side note, the Teensy 4.1 uses all 4 data pins for the SDcard. The "read the docs" references 4 can be used, but its not very clear as to how:

https://circuitpython.readthedocs.io/en/6.0.x/shared-bindings/sdioio/index.html?highlight=sdioio

I can't find anything on "Sequence" in the docs to explain how to properly use this. i'm assuming it's actually a tuple based on the example referenced above, so it'd need to be entered as (....,Data=[board.DAT1,board.DAT2.(etc)...)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions