SparkFun Forums 

Where electronics enthusiasts find answers.

Open source ARM Debugger
By cyphunk
#68880
First, inside the manual for openocd constant references are given to targets/spartan3.cfg but i have yet to find this in the package.

That said, I attempted to define the start of a config for the spartan 3 using the BSDL. This is what I have:
jtag newtap xc3s1600.fpga fpga \
-irlen 6 \
-irmask 0x3f \
-ircapture 0x9 \
-expected-id 0x3874126

target create xc3s1600.fpga xscale -endian little
Execution results give:
Info : JTAG tap: xc3s1600.fpga.fpga tap/device found: 0x90e1d093 (Manufacturer: 0x049, Part: 0x0e1d, Version: 0x9)
Error: JTAG tap: xc3s1600.fpga.fpga got: 0x90e1d093 (mfg: 0x049, part: 0x0e1d, ver: 0x9)
Error: JTAG tap: xc3s1600.fpga.fpga expected 1 of 1: 0x03874126 (mfg: 0x093, part: 0x3874, ver: 0x0)
Any idea what I'm getting wrong here?

Here are some of the relavent parts from the BSDL:
By inventore123
#68886
Can OpenOCD program a Spartan 3 FPGA?? :shock:
If yes, I am very interested :)
By cyphunk
#68914
yeah that would be nice. at the moment i would like to just see if i can send basic queries. i have no idea why the pfd for openocd would use spartan3.cfg as an example target and then not include the file in the distraction.
By arturofa95
#195103
Hello cyphunk,

I know it has been a while since you posted this, but I was wondering if you ever managed to program a Spartan 3 with OpenOCD. I have been trying to this, for a while now. And I havent been lucky, yet.

Anything you learned from your experience would be greatly appreciated!

Thanks. :D