Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIMXRT1020-EVK unable to get SPI working #3055

Closed
timonsku opened this issue Jun 21, 2020 · 1 comment
Closed

MIMXRT1020-EVK unable to get SPI working #3055

timonsku opened this issue Jun 21, 2020 · 1 comment
Labels
bug mimxrt10xx iMX RT based boards such as Teensy 4.x
Milestone

Comments

@timonsku
Copy link

Running CPY 5.3.0 I'm trying to use SPI bus 1 which is mapped to D11-D13 in the pins config here:
https://github.com/adafruit/circuitpython/blob/main/ports/mimxrt10xx/boards/imxrt1020_evk/pins.c#L19-L21
Here the excerpt from the datasheet:
image
I defined my SPI bus like so:
spi = busio.SPI(clock=board.D13,MOSI=board.D12,MISO=board.D11)

D12/GPIO_AD_B0_13 is designated as "LPSPI1_SDI" which I have to assume is Secondary Device Input aka MOSI so that sounds correct to me but CPY complains that its an invalid SPI pin selection.

I reverse MISO and MOSI it does not complain but posts:
common_hal_busio_spi_write: status 400

I can not test anything higher than 5.3 unfortunately as that seems to crash, the CPY drive never comes up.

@hierophect hierophect added the mimxrt10xx iMX RT based boards such as Teensy 4.x label Jun 22, 2020
@tannewt tannewt added the bug label Jun 22, 2020
@tannewt tannewt added this to the Long term milestone Jun 22, 2020
@jepler
Copy link
Member

jepler commented Mar 24, 2021

We believe this the error "common_hal_busio_spi_write: status 400" has been fixed #4048. Please feel free to re-open (or open a fresh issue if "re-open" is not available) if this problem still exists.

We are aware of the problem getting the 1020-EVK to work at all (#3510) and hope to address it soon.

Note that in the datasheet, "SDI" indicates Serial Data In from the point of view of the microcontroller, which is MISO (microcontroller in, secondary out) in SPI parlance.

@jepler jepler closed this as completed Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mimxrt10xx iMX RT based boards such as Teensy 4.x
Projects
None yet
Development

No branches or pull requests

4 participants