Your CCR setting for memory mapped mode uses 4-line modes for instruction, 
address and data, but instruction is 4FRQO (0x6C). DS however says:

Table 8.4: 4FRQO SPI, Quad data and

"8.8 FAST READ QUAD OUTPUT OPERATION (FRQO, 6Bh or 4FRQO 6Ch)
...
The FRQO/4FRQO instruction code is followed by three or four address bytes as 
above and dummy cycles (configurable, default is 8 clocks), transmitted via the 
IO0 line, with each bit latched-in during the rising edge of SCK. Then the 
first data byte addressed is shifted out on the IO3, IO2, IO1 and IO0 lines, 
..."
and both figures below support that description. Hence your setup for memory 
mapped mode might be wrong. You should use 4FRQIO (0xEC) for 4-4-4 reads. 

Please check that memory mapped mode works properly (comment out 'setparms') by 
reading the whole bank and verifying its contents (as STM32CuebProg works this 
should be no problem).

BTW: You're using a rather old version of the stmqspi patch which uses memory 
mapped mode for bank read, hence FSIZE should be set to 0x1A instead of 0x19 to 
work around silicon bug in some H7.

As I don't see anything regarding clock setup in your cfg, probably 64 MHz HSI? 
Then the prescaler gives 8 MHz SPI clock, so this is certainly ok.


---

** [tickets:#290] QSPI debugging is not working in some stm32h753 mcu**

**Status:** new
**Milestone:** 0.10.0
**Created:** Thu Jan 07, 2021 10:44 AM UTC by shaalik
**Last Updated:** Thu Jan 07, 2021 05:55 PM UTC
**Owner:** nobody


Hi All,

i have two custom stm32H753XI + NOR QSPI flash (IS25LP512M) board.  I am able 
to debug in one board successfully but in another board it fails and even it 
doesn't show the external flash ID of the chip. However i'm able to program 
both the boards using st cube programmer with external loader and it is working 
fine in normal mode.

In not working board, initially i faced issue in debug from internal flash 
itself.  And i found a fix from internet where they suggested to  add  PG bit 
clear before the Internal flash write.  I did the fix on top of 
http://openocd.zylin.com/4321 change, then i was able to debug from internal 
flash. But facing issue in debug from QSPI flash.

I have same cfg file which is working in one board and not working in another 
board.


Please anyone help me to resolve the issue.

Regards,
Shahul


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to