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

Support for FlexSpi #120

Open
Sandvoxel opened this issue Sep 25, 2022 · 6 comments
Open

Support for FlexSpi #120

Sandvoxel opened this issue Sep 25, 2022 · 6 comments

Comments

@Sandvoxel
Copy link

Sandvoxel commented Sep 25, 2022

Is there planned support for access to FlexSPI on the imxrt?

@Sandvoxel
Copy link
Author

Sandvoxel commented Sep 26, 2022

I have some knowledge of the hardware registers for the imxrt FlexSpi registers as I am using them in a library in C++ to access a flash chip that use QSpi. I would be happy to help out with writing the library to access FlexIo but I'm quite new to rust and don't really know to start on direct memory access to set up registers. I saw this issue on the matter but it seems to have gone cold. My current project is a teensy 4.1 custom board that is planed to be used as a flight computer in the future but is in the early stages (Just completed the first dev board). I would like to use rust over C++ but I would need more access to the hardware such as FlexSpi for the onboard flash chip for data logging.

@Sandvoxel
Copy link
Author

Sandvoxel commented Sep 26, 2022

I see that is this may have been done with the imxrt-ral library. I would still like to hear input on the matter.

With the course of working on this project I will be writing a SDCard library that should be compatible with the teensy 4.1 sdcard slot I would be happy to make it open source. I did see the post on the teensy-rs repo about adding SD card support.

@mciantyre
Copy link
Member

mciantyre commented Sep 27, 2022

I'm personally not planning FlexSPI support right now. I'm happy to support you or anyone who wants to tackle it.

This could eventually use imxrt-iomuxc support, but I think we could prototype without this feature. Add a marker trait for FlexSPI-compatible pins, and implement it for the Teensy 4.1 pins that you need. A few contributors have gone through the process of adding new traits and pins, so check out the merged PRs to see the process.

I see that is this may have been done with the imxrt-ral library.

Yup, I recommend using imxrt-ral to access the FlexSPI registers.

I will be writing a SDCard library [...]

Awesome. See #119, which we can use to track any HAL developments.

@mciantyre

This comment was marked as resolved.

@Sandvoxel

This comment was marked as resolved.

@Sandvoxel Sandvoxel changed the title Support for FlexIo Support for FlexSpi Sep 28, 2022
@mciantyre
Copy link
Member

See also mciantyre/teensy4-rs#100, which asks about EEPROM emulation using FlexSPI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants