Hi Jahn.

On Thu, 30 Apr 2015 22:35:01 +0200, Jahn wrote:
> Does nobody use OpenOCD to read/write chips? OpenOCD is not usul fefor that?
> 
>> Is there a sample ( code) showing  how I can use OpenOCD to write/read
>> NAND flash? Thanks

OpenOCD is mainly designed for being a debugger. That said, it's not restricted 
to being only a debugger.
I haven't heard of anyone using OpenOCD for writing NAND-flash directly and I 
do not know yet if that is possible.
(Someone else will probably be able to provide you with a much better answer 
than mine).
-But I can see the convenience in being able to write to NAND-flash, when you 
have for instance a CubieBoard2 or some TV-box with a Cortex-A microcontroller, 
which boot from NAND-flash.

However, I know that OpenOCD already does something similar, as it can write to 
SPIFI (Quad-SPI) through the LPC43xx.
The supported SPIFI chips there include devices from Micron, Spansion and 
others, however they're in the LPC2000 SPIFI driver.

Since NAND-flash does not have a SWD or JTAG interface, the best guess would be 
to transfer data serially in a SD/MMC card like style, though I do not know if 
In-Circuit-Programming would be possible (or reliable) unless going through the 
main CPU there.
For NAND-flash like SD cards, I think it would technically be possible to write 
a driver for direct transfers, but then why not just use a SD/MMC USB adapter?

Is your question related to a certain board or NAND-chip ?


Love
Jens

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to