Discussion:
[OpenOCD-devel] OpenOCD support for new Cortex M4 based target with QSPI Flash
Goutham Dugyala
2017-07-10 10:36:48 UTC
Permalink
Hi,

We have new Cortex M4 controller with QSPI NAND flash, for which we
developed Flash algorithm on Keil and tested with CMSIS DAP, Jlink
debuggers.
Now I am trying to add same target support on OpenOCD, I am very new to
OpenOCD and struggling to find what all steps need to be taken care when
adding new target.
I have gone through link
(http://openocd.org/doc/html/Flash-Commands.html#flashdriverlist) and
source code from sourceforge (https://sourceforge.net/projects/openocd/),
What I understood was in (openocd-0.10.0\src\flash\nand) folder I need
to implement my target.c with following structure filled

struct nand_flash_controller Mychip = {
.name = "Mychip",
.commands = ,
.nand_device_command = ,
.init = ,
.reset = ,
.command = ,
.address = ,
.write_data = ,
.read_data = ,
.nand_ready = ,
};

which will take care of programming my Flash I guess !
From here I couldn't find a way on how to include my target specific
files with Myboard.cfg file (with Mytarget.cfg, cmsis-dap.cfg or
jlink.cfg as debugger) to current project build and install, which would
take inputs from my target.c file to program flash.

Thanks,
Goutham.

Loading...