NishanthMenon changed the topic of #openocd to: this is the place to discuss all things OpenOCD | Logs: https://libera.irclog.whitequark.org/openocd/
zkrx has quit [*.net *.split]
Pokey has quit [*.net *.split]
Bertl has quit [*.net *.split]
gamiee has quit [*.net *.split]
van has quit [*.net *.split]
tsal has quit [*.net *.split]
shoragan has quit [*.net *.split]
mark_feathers has quit [*.net *.split]
crabbedhaloablut has quit [*.net *.split]
uartist has quit [*.net *.split]
sevan has quit [*.net *.split]
JakeSays has quit [*.net *.split]
nohit has quit [*.net *.split]
Steffanx has quit [*.net *.split]
rkta has quit [*.net *.split]
dinkelhacker has quit [*.net *.split]
Xogium has quit [*.net *.split]
ericonr has quit [*.net *.split]
sbach has quit [*.net *.split]
balrog has quit [*.net *.split]
Wonka has quit [*.net *.split]
rigid has quit [*.net *.split]
jancoow has quit [*.net *.split]
braunr has quit [*.net *.split]
cp- has quit [*.net *.split]
sugarbeet has quit [*.net *.split]
vampirefrog has quit [*.net *.split]
a3f has quit [*.net *.split]
zapb_ has quit [*.net *.split]
geep_ has quit [*.net *.split]
karlp has quit [*.net *.split]
flatmush has quit [*.net *.split]
Getty has quit [*.net *.split]
antto has quit [*.net *.split]
zjason` has quit [*.net *.split]
diddly has quit [*.net *.split]
gruetzkopf has quit [*.net *.split]
bryanb has quit [*.net *.split]
nathanhi has quit [*.net *.split]
zear has quit [*.net *.split]
zmatt has quit [*.net *.split]
haxar has quit [*.net *.split]
wmat has quit [*.net *.split]
Foxyloxy has quit [*.net *.split]
WeaselSoup has quit [*.net *.split]
tlwoerner has quit [*.net *.split]
Yamakaja has quit [*.net *.split]
HumanG33k has quit [*.net *.split]
indy_ has quit [*.net *.split]
phr3ak has quit [*.net *.split]
borneoa___ has quit [*.net *.split]
cyrozap has quit [*.net *.split]
jn has quit [*.net *.split]
xantoz has quit [*.net *.split]
dnm has quit [*.net *.split]
drath42 has quit [*.net *.split]
polprog has quit [*.net *.split]
joconor has quit [*.net *.split]
_olerem has quit [*.net *.split]
stefanct has quit [*.net *.split]
key2 has quit [*.net *.split]
Guest8044 has quit [*.net *.split]
Fleck has quit [*.net *.split]
ChanServ has quit [*.net *.split]
KindOne has quit [Max SendQ exceeded]
joconor has joined #openocd
vampirefrog has joined #openocd
_olerem has joined #openocd
drath42 has joined #openocd
phr3ak has joined #openocd
borneoa___ has joined #openocd
a3f has joined #openocd
zapb_ has joined #openocd
ericonr has joined #openocd
diddly has joined #openocd
sbach has joined #openocd
Foxyloxy has joined #openocd
zjason` has joined #openocd
WeaselSoup has joined #openocd
balrog has joined #openocd
tlwoerner has joined #openocd
mark_feathers has joined #openocd
gruetzkopf has joined #openocd
Wonka has joined #openocd
rigid has joined #openocd
crabbedhaloablut has joined #openocd
bryanb has joined #openocd
geep_ has joined #openocd
jancoow has joined #openocd
tsal has joined #openocd
uartist has joined #openocd
sevan has joined #openocd
Yamakaja has joined #openocd
cyrozap has joined #openocd
karlp has joined #openocd
jn has joined #openocd
nathanhi has joined #openocd
HumanG33k has joined #openocd
braunr has joined #openocd
xantoz has joined #openocd
stefanct has joined #openocd
indy_ has joined #openocd
zear has joined #openocd
cp- has joined #openocd
JakeSays has joined #openocd
nohit has joined #openocd
Steffanx has joined #openocd
key2 has joined #openocd
dnm has joined #openocd
Guest8044 has joined #openocd
flatmush has joined #openocd
polprog has joined #openocd
zmatt has joined #openocd
rkta has joined #openocd
Fleck has joined #openocd
sugarbeet has joined #openocd
Getty has joined #openocd
dinkelhacker has joined #openocd
haxar has joined #openocd
Xogium has joined #openocd
wmat has joined #openocd
antto has joined #openocd
shoragan has joined #openocd
ChanServ has joined #openocd
zkrx has joined #openocd
Pokey has joined #openocd
gamiee has joined #openocd
Bertl has joined #openocd
van has joined #openocd
KindOne has joined #openocd
epoch101 has joined #openocd
<epoch101> Hey everyone! I was trying to flash a bitstream to the SPI flash of a Xilinx XC6SLX25T-2CSG324 Spartan6 FPGA with an Altera USB Blaster. I'm currently able to detect the flash that is connected using the bscan_spi_xc6slx25t.bit, but I'm not able to write to flash. Below is the configuration file I'm trying to use:
<epoch101> ```
<epoch101> source [find interface/altera-usb-blaster.cfg]
<epoch101> source [find cpld/xilinx-xc6s.cfg]
<epoch101> source [find cpld/jtagspi.cfg]
<epoch101> adapter speed 100
<epoch101> init
<epoch101> jtagspi_init 0 bscan_spi_xc6slx25t.bit
<epoch101> jtagspi_program ledglow.bit 0x0
<epoch101> xc6s_program xc6s.tap
<epoch101> flash verify_bank 0 ledglow.bit
<epoch101> shutdown
<epoch101> ```
<epoch101> The output is as follows:
<epoch101> ```bash
<epoch101> openocd -f dragon-l-spi.cfg
<epoch101> Open On-Chip Debugger 0.12.0
<epoch101> Licensed under GNU GPL v2
<epoch101> For bug reports, read
<epoch101> Info : only one transport option; autoselect 'jtag'
<epoch101> Info : usb blaster interface using libftdi
<epoch101> Info : This adapter doesn't support configurable speed
<epoch101> Info : JTAG tap: xc6s.tap tap/device found: 0x24024093 (mfg: 0x049 (Xilinx), part: 0x4024, ver: 0x2)
<epoch101> Info : JTAG tap: xc6s.tap tap/device found: 0x24024093 (mfg: 0x049 (Xilinx), part: 0x4024, ver: 0x2)
<epoch101> Info : Found flash device 'st m25p80' (ID 0x142020)
<epoch101> Info : sector 0 took 637 ms
<epoch101> Info : sector 1 took 588 ms
<epoch101> Info : sector 2 took 536 ms
<epoch101> Info : sector 3 took 576 ms
<epoch101> read 244520 bytes from file ledglow.bit and flash bank 0 at offset 0x00000000 in 2.211101s (107.996 KiB/s)
<epoch101> contents differ
<epoch101> diff 0 address 0x00000001. Was 0x00 instead of 0x09
<epoch101> diff 1 address 0x00000002. Was 0x00 instead of 0x0f
<epoch101> diff 2 address 0x00000003. Was 0x00 instead of 0xf0
<epoch101> diff 3 address 0x00000004. Was 0x00 instead of 0x0f
<epoch101> diff 4 address 0x00000005. Was 0x00 instead of 0xf0
<epoch101> diff 5 address 0x00000006. Was 0x00 instead of 0x0f
<epoch101> diff 6 address 0x00000007. Was 0x00 instead of 0xf0
<epoch101> diff 7 address 0x00000008. Was 0x00 instead of 0x0f
<epoch101> diff 8 address 0x00000009. Was 0x00 instead of 0xf0
<epoch101> diff 9 address 0x0000000c. Was 0x00 instead of 0x01
<epoch101> diff 10 address 0x0000000d. Was 0x00 instead of 0x61
<epoch101> diff 11 address 0x0000000f. Was 0x00 instead of 0x1e
<epoch101> diff 12 address 0x00000010. Was 0x00 instead of 0x4c
<epoch101> diff 13 address 0x00000011. Was 0x00 instead of 0x45
<epoch101> diff 14 address 0x00000012. Was 0x00 instead of 0x44
<epoch101> diff 15 address 0x00000013. Was 0x00 instead of 0x67
<epoch101> diff 16 address 0x00000014. Was 0x00 instead of 0x6c
<epoch101> diff 17 address 0x00000015. Was 0x00 instead of 0x6f
<epoch101> diff 18 address 0x00000016. Was 0x00 instead of 0x77
<epoch101> diff 19 address 0x00000017. Was 0x00 instead of 0x2e
<epoch101> diff 20 address 0x00000018. Was 0x00 instead of 0x6e
<epoch101> diff 21 address 0x00000019. Was 0x00 instead of 0x63
<epoch101> diff 22 address 0x0000001a. Was 0x00 instead of 0x64
<epoch101> diff 23 address 0x0000001b. Was 0x00 instead of 0x3b
<epoch101> diff 24 address 0x0000001c. Was 0x00 instead of 0x55
<epoch101> diff 25 address 0x0000001d. Was 0x00 instead of 0x73
epoch101 has quit [Quit: WeeChat 4.3.3]
epoch101 has joined #openocd
<epoch101> Apologies, I didn't intend to spam. I'm not very familiar with IRC and I didn't know it wasn't possible to sent multiple lines at once.
sevan has quit [Ping timeout: 256 seconds]
<epoch101> Here's a paste of the logs: https://pastebin.com/1s0SxWAP
jn_ has joined #openocd
jn_ has joined #openocd
jn has quit [Ping timeout: 272 seconds]
tsal has quit [Server closed connection]
tsal has joined #openocd
nerozero has joined #openocd
<PaulFertser> epoch101: probably the flash has wrong writeprotect state? Can you check the signal there?
<PaulFertser> epoch101: another idea to try is generating SVF file from the vendor tool.
epoch101 has quit [Ping timeout: 264 seconds]
MGF_Fabio has joined #openocd
Haohmaru has joined #openocd
MGF_Fabio has quit [Ping timeout: 252 seconds]
MGF_Fabio has joined #openocd
tlwoerner has quit [Ping timeout: 246 seconds]
tlwoerner has joined #openocd
slobodan has joined #openocd
slobodan has quit [Client Quit]
MGF_Fabio has quit [Ping timeout: 240 seconds]
MGF_Fabio has joined #openocd
MGF_Fabio has quit [Ping timeout: 252 seconds]
joconor has quit [Quit: ZNC 1.8.2 - https://znc.in]
joconor has joined #openocd
epoch101 has joined #openocd
epoch101 has quit [Quit: WeeChat 4.3.3]
Hawk777 has joined #openocd
Haohmaru has quit [Quit: saionara]
nerozero has quit [Ping timeout: 264 seconds]
noarb has joined #openocd
noarb has quit [Read error: Connection reset by peer]
noarb has joined #openocd
antto has quit [Quit: ZNC 1.8.2+deb3.1 - https://znc.in]
antto has joined #openocd
vampirefrog has quit [Ping timeout: 256 seconds]