Open matt-wood-ct opened 2 months ago
Update, I noticed I made a mistake in the overlay file on the teensy test, I referenced the wrong flexio bank, updated overlay:
teensy41.overlay.txt
With this corrected the test still bus faults but I do see some clock and MOSI activity:
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.
Describe the bug
nxp,flexio-spi
appears to not work on the imxrt10xx series, I had tried on my actual project board (imxrt1040 based) to use it in place of the LPSPI to avoid some undesirable behaviour from the HW SPI, but using the flexio version of the driver simply did not boot on my board. After some stepping through on a JTAG debugger I found it was stuck in an endless ISR loop on the first attempted SPI transaction.After this issue I went to the basic
tests/drivers/spi/spi_controller_peripheral
and wrote a quick overlay for theteensy41
board to validate if the driver works in a basic setup on supported imxrt based hardware. With the attached overlay teensy41.overlay.txt which replaces lpspi3 with a flexio clone the test faults, log:Also tried on latest main branch, same result:
To Reproduce
tests\drivers\spi\spi_controller_peripheral\boards
teensy41
targetExpected behavior
Impact FlexIO SPI not usable on all IMXRT10xx platforms
Logs and console output See above
Environment (please complete the following information):
Additional context On my imxrt1040 based custom board the SPI driver gets stuck while initialising an SPI NOR flash (
jedec,spi-nor
) on the first SPIspi_transceive
call. It does not fault but just gets stuck here and never makes any progress, it doesn't even timeout: