Yes. SPI clock is configured as 8MHZ.

I have corrected CCR setting for memory mapped by using 0xEC but it throws same 
error.

I have commented out "setparms" to verify the memory mapped mode works but it 
shows error as below
->Log:QSPI INIT
->Log:QSPI GPIO INIT
->Log:QSPI CLK INIT
->Log:EXTERNAL FLASH RESET ENABLE on 1line
->Log:EXTERNAL FLASH RESET on 1line
->Log:EXTERNAL FLASH Enter4 Byte
->Log:EXTERNAL FLASH EXIT QSPI
->Log:EXTERNAL FLASH ENTER QSPI
->Log:EXTERNAL FLASH ENTER MEMORYMAPPED MODE
->Log:EXTERNAL FLASH REGISTER NEW FLASH
Error: auto_probe failed
in procedure 'reset' 
in procedure 'ocd_bouncer' 
in procedure 'ocd_process_reset' 
in procedure 'ocd_process_reset_inner' called at file "embedded:startup.tcl", 
line 248
in procedure 'stm32h7x.cpu' called at file "embedded:startup.tcl", line 382
in procedure 'ocd_bouncer'

Started by GNU ARM Eclipse
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : accepting 'gdb' connection on tcp/3333
Info : Device: STM32H7xx 2M
Info : flash size probed value 2048
Info : STM32H flash has dual banks. Bank (0) size is 1024kb, base address is 
0x8000000
Info : Device: STM32H7xx 2M
Info : flash size probed value 2048
Info : STM32H flash has dual banks. Bank (1) size is 1024kb, base address is 
0x8100000
Error: auto_probe failed
Error: Connect failed. Consider setting up a gdb-attach event for the target to 
prepare target for GDB connect, or use 'gdb_memory_map disable'.
Error: attempted 'gdb' connection rejected

Not sure what is the problem in reading external flash1 device id and continue 
with   "setparms"

As i said previously, there was an issue in debugging from internal flash  and  
it got fixed with a fix(PG bit clear before the Internal flash write), Would it 
be any similar issue in openocd source for external flash?


---

** [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:** Fri Jan 08, 2021 04:21 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