stm32h7xx-hal icon indicating copy to clipboard operation
stm32h7xx-hal copied to clipboard

No QSPI support for memories

Open richardeoin opened this issue 4 years ago • 4 comments

Some of the features that would be required to communicate with memories over QSPI (instructions, dummy cycles..) are not supported

richardeoin avatar Nov 03 '20 21:11 richardeoin

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 ?

x37v avatar Jun 22 '21 02:06 x37v

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..

richardeoin avatar Jun 22 '21 06:06 richardeoin

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.

richardeoin avatar Jun 22 '21 06:06 richardeoin

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.

x37v avatar Jun 22 '21 14:06 x37v