Closed N8BWert closed 7 months ago
I haven't tested on hardware, but I'm pretty sure this is a teensy4-bsp issue. The BSP isn't enabling the LPSPI3 clock gate. Within this collection in the teensy4-bsp package, try adding a call to
clock_gate::lpspi::<3>(),
This should automatically turn on the clock gate. If that works, your PR with the fix would help me expedite a release.
If this is your first time testing custom patches in your dependencies, the overriding dependencies guide might be helpful.
I'm currently using the Teensy 4.1 for a project and need to utilize bother the SPI0 (LPSPI4) and SPI1 (LPSPI3) instances. I have not problem with utilizing the LPSPI4 instance, however whenever the LPSPI3 instance is instantiated (i.e. caling hal::lpspi::Lpspi::new() with the LPSPI3 instance) the program hangs.
An example program that will cause the on-board led to blink 9 times (indicating the program stalled during initialization) is:
^(For context hal is imxrt-hal and ral is imxrt-ral)
I'm not sure what the issue could be but any help would be much appreciated. Thank you.