Do you want to use the external ***NAND*** flash for "execute-in-place", 
i. e. the QSPI interface in memory-mapped mode? If yes, then I doubt 
very much this is feasible at all: The quite page-oriented (in read 
mode!) structure, bad block management and high error rate found in 
***NAND*** flash devices are serious obstacles.

For ***NOR*** flash on the other hand it's quite simple: 
http://openocd.zylin.com/4321
There is still (well, at least ;-) ) one minor bug (start address must 
be page aligned), but if you need a fix, I could upload this  (didn't do 
it yet as hyper flash support isn't accomplished, and a new revision 
just for a one-liner is ...). Once the setup is correct, there is hardly 
any difference between internal and external flash. 
In-application-programming is a different topic, though.

Caveat: Don't use/read the very last words of this flash, otherwise the 
H7's prefetch mechanism might hit you, or follow "AN4838 Managing memory 
protection unit (MPU) in STM32 MCUs", section 3.4.

On 2018-09-29 22:58, Praveen via OpenOCD-devel wrote:

> We want to use Open OCD + GDB to program and debug from external quad
> NAND flash for STM32H7xx micrcontroller. Till now we have been using
> internal flash.


---

** [tickets:#208] Open OCD for external qspi programming and debugging**

**Status:** new
**Milestone:** 0.9.0
**Labels:** QSPI Flash 
**Created:** Sat Sep 29, 2018 08:58 PM UTC by Praveen
**Last Updated:** Sat Sep 29, 2018 08:58 PM UTC
**Owner:** nobody


Hi,

We want to use Open OCD + GDB to program and debug from external quad NAND 
flash for STM32H7xx micrcontroller. Till now we have been using internal flash.

Please share any reference documents or sample projects to develop the scripts 
or drivers to acheive our debug environment.

Thanks,
Praveen


---

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