2025-03-02 1:39 PM
Dear fellows,
I've been trying to use OCTOSPI just as serial-to-parallel I/F which is protocol-free, continously working...
I'm not intending to interface with any existing serial-memory devices. That's why I noted "protocol-free".
Intending just have an interval-time-stable output pins...
I suppose to make OCTOSPI protocol-free, AMODE, IMODE, ABMODE are to be set 0 and DMODE to be set for the number of pins to be employed, 0b001 for single pin, 0b011 for quad pins etc...
And additionally, I'm supposing only the following parameter settings are importantly required:
indirect-write mode, DR=0xFFFFFFFF(a maximum), DEVSIZE=0x1F(maximum) .
Most of all others can be left as initial reset values, zero, I suppose.
When I make a write access to DR register the data should go out on the pins ....
I've done and gotten success on the similar setting on STM32L4xx(not L4+)'s OSPI.
So, I guess also on STM32H5xx's OCTOSPI should work by similar setting. But, it did NOT...
As busmaster to make write access to DR, I've tried CPU instruction and GPDMA.
But, both bus master methos don't work as expected.
When I invoke those write-access continupusly , the SWD connection to the debugger will be lost somewhat...
SWD connection lost is very painful for me to make further analysis....
Anyway, is there any BIG changing in OCTOSPI from QSPI?
Are there some required parameter setting are missing to have the expected behavior?
Just as behavior comparison checks, I've tested with some DEVSIZE settings.
for DEVSIZE=0, it works, al least SWD connection is NOT lost.
for DEVSIZE=1, it works, at least SWD connection is NOT lost.
for DEVSIZE=2, it works for certain amout of time, but SWD connection will ne lost then,,,,
I hope those give some hints to the experts...
Does anypne have suggestions ?
2025-03-03 12:35 AM
Hello @kojima and welcome to the community;
Could you specify which STM32H5 you're using?
Do you have the same problem with single and octal communications?
I recommend you to look at the STM32H5 errata sheet and check the OCTOSPI errata.
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.