Hi Lionel, On 11/04/14 01:50, Lionel Ains wrote: >> Let me add one more thing. >> >> Also I should point out that this is the process I use on boards with >> completely empty flash. If the board already has a boot loader installed >> then I generally don't do the "meminit" call, only the "loaduboot". >> Re-running the meminit seems very problematic, and you don't need to >> if it has already be run by flash installed boot code. >> >> Regards >> Greg >> >> ------------------------------------------------------------------------------ >> Put Bad Developers to Shame >> Dominate Development with Jenkins Continuous Integration >> Continuously Automate Build, Test & Deployment >> Start a new project now. Try Jenkins in the cloud. >> http://p.sf.net/sfu/13600_Cloudbees >> > > Hi Greg, > > I tried the script above (adapting > tools/openocd/platforms/armada/armada370.tcl to my > tcl/target/armada370.cfg), and matching the JTAG probe I use. > However, it seems to fail initializing when it meets the line 32 in > armada370.cfg, namely "dap apsel 1": > > openocd-x64-0.8.0-rc1 -f mirabox.cfg > Open On-Chip Debugger 0.8.0-rc1 (2014-03-31-08:16) > Licensed under GNU GPL v2 > For bug reports, read > http://openocd.sourceforge.net/doc/doxygen/bugs.html > Info : only one transport option; autoselect 'jtag' > adapter speed: 5000 kHz > Warn : target name is deprecated use: 'cortex_a' > Info : clock speed 5000 kHz > Info : JTAG tap: armada370.dap tap/device found: 0x4ba00477 (mfg: 0x23b, > part: 0xba00, ver: 0x4) > Warn : Invalid ACK 0 in JTAG-DP transaction > Warn : Invalid ACK 0 in JTAG-DP transaction > Runtime Error: openocd-0.8.0-rc1/scripts/target/armada370.cfg:32: > in procedure 'script' > at file "embedded:startup.tcl", line 58 > at file "mirabox.cfg", line 5 > in procedure 'dap' called at file > "openocd-0.8.0-rc1/scripts/target/armada370.cfg", line 32
In terms of adapter setup I had: reset_config trst_and_srst adapter_nsrst_delay 200 jtag_ntrst_delay 200 adapter_khz 1000 I am using an Amontec JTAGkey. I just tried using a git head of openocd, and it seems to not work as well as my older openocd on this target. Although I can still connect, I can't access memory, getting errors like: > mdw 0 0x20 Timeout (1000ms) waiting for ACK=OK/FAULT in JTAG-DP transaction - aborting JTAG-DP OVERRUN - check clock, memaccess, or reduce jtag speed MEM_AP_CSW 0x800000c2, MEM_AP_TAR 0xc230108c Failed to read memory and, additionally, failed to find out where JTAG-DP STICKY ERROR MEM_AP_CSW 0x800000c2, MEM_AP_TAR 0xc230108c JTAG-DP STICKY ERROR MEM_AP_CSW 0x800000c2, MEM_AP_TAR 0xc230108c error Regards Greg ------------------------------------------------------------------------------ Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
