stm32h7xx-hal
stm32h7xx-hal copied to clipboard
No QSPI support for memories
Some of the features that would be required to communicate with memories over QSPI (instructions, dummy cycles..) are not supported
I'm wanting to interface with 25LP064 QSPI flash memory and so I'm hoping my efforts can help this HAL.
I'm wondering if you all have any advice for the API for this?
Would it make sense to add instruction: Option<u8>
to read and write and mode: Option<u8>
to read (I haven't seen mode in write)?
I'm assuming I can update the imode
value based on the value set in admode
?
I've started implementing some new methods for interfacing with OCTOSPI flash memories, and these are probably applicable to QSPI also. I'll make a PR with the progress so far..
In the example in that PR there's an instruction with no address and no data phases (line 80), as well as an instruction with both address and data phases (line 84).
It should be close to working for QSPI memories also, but I've not tried it. If there's only small changes needed to work with the 25LP064, that would be very useful to know.
In the example in that PR there's an instruction with no address and no data phases (line 80), as well as an instruction with both address and data phases (line 84).
It should be close to working for QSPI memories also, but I've not tried it. If there's only small changes needed to work with the 25LP064, that would be very useful to know.
Great @richardeoin I'll give this a go soon.