You have to create the target before the init command. One could talk about allowing targets to be created/deleted on the fly, but OpenOCD isn't at that stage today.
This works: openocd -s lib/openocd/ -f interface/dummy.cfg -f target/omap3530.cfg -c "target create omap3.cpu cortex_m3 -endian little -chain-position omap3.cpu" -c init -c "ocd_mem2array dataval 32 [expr \"0x54011000 + 0 * 4\"] 1" Move init and it fails: openocd -s lib/openocd/ -f interface/dummy.cfg -f target/omap3530.cfg -c init -c "target create omap3.cpu cortex_m3 -endian little -chain-position omap3.cpu" -c "ocd_mem2array dataval 32 [expr \"0x54011000 + 0 * 4\"] 1" -- Øyvind Harboe Embedded software and hardware consulting services http://consulting.zylin.com _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development