Hi, On Thu, May 08, 2014 at 11:47:37AM +0200, Zahari Doychev wrote: > we are having an imx6 based board with m25p80 SPI flash on it. We > would Iike to have the possibility to program this flash using > OpenOCD.
You've two options here: either load some appropriate pre-configure bootloader (e.g. barebox with flashing script) to RAM and run it, or write an OpenOCD SPI flash controller driver specifically for imx6, reusing the flash IDs from spi.c (flash_devices[]). I think the first option is easier even if you'd have to fully initialise DRAM controller with "mww/mwb" commands (probably you already have a suitable sequence of register writes in your bootloader, see how it produces "DCB" (?) table). HTH -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:[email protected] ------------------------------------------------------------------------------ Is your legacy SCM system holding you back? Join Perforce May 7 to find out: • 3 signs your SCM is hindering your productivity • Requirements for releasing software faster • Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
