00:25
ylamarre has joined #m-labs
00:33
ylamarre has quit [Ping timeout: 258 seconds]
03:30
sb0 has joined #m-labs
03:35
<
sb0 >
whitequark, something similar to python asyncio
03:35
<
sb0 >
what exactly do you have questions about?
03:35
<
whitequark >
no, I mean concrete example of end application
03:35
<
sb0 >
what the runtime currently does
03:36
<
whitequark >
I mean, there's clearly something that's hard to implement in C, which is why we're doing it
03:36
<
whitequark >
what is it?
03:36
<
sb0 >
handling the multiple TCP connections cleanly
03:36
<
whitequark >
I'm halfway done with a decent coroutine library
03:37
<
sb0 >
and if we do complicated multi-experiment scheduling that involve the core device (e.g. preloading kernels) it'll get much worse
03:39
<
sb0 >
good. then that should talk to the lwip zero-copy TCP API (which we are currently using), to the kernel CPU (mailbox), and timers (for e.g. watchdogs)
04:07
fengling has joined #m-labs
04:31
fengling has quit [Ping timeout: 240 seconds]
06:35
sb0 has quit [Quit: Leaving]
06:40
fengling has joined #m-labs
06:47
sb0 has joined #m-labs
08:06
sb0 has quit [Ping timeout: 252 seconds]
08:10
mumptai has joined #m-labs
08:19
sb0 has joined #m-labs
08:35
fengling has quit [Quit: WeeChat 1.4]
13:19
<
sb0 >
sigh xilinx... they invert sfp tx_disable on the kc705 and still call it tx_disable
13:38
<
GitHub48 >
migen/master 5b1df78 Sebastien Bourdeauducq: platforms/kc705: add SFP pins
15:41
kuldeep has quit [Quit: Leaving]
15:41
kuldeep has joined #m-labs
15:41
kuldeep is now known as Guest61719
15:44
Guest61719 has quit [Changing host]
15:44
Guest61719 has joined #m-labs
15:45
Guest61719 is now known as kuldeep
15:47
kuldeep has quit [Quit: Leaving]
15:47
kuldeep_ has joined #m-labs
16:03
Gurty has quit [Ping timeout: 276 seconds]
16:38
FelixVi has joined #m-labs
17:11
rohitksingh has joined #m-labs
18:04
rohitksingh has quit [Read error: Connection reset by peer]
18:04
rohitksingh1 has joined #m-labs
18:30
rohitksingh has joined #m-labs
18:31
rohitksingh1 has quit [Ping timeout: 276 seconds]
20:12
rohitksingh has quit [Quit: Leaving.]
22:19
balrog has quit [Ping timeout: 244 seconds]
22:20
balrog has joined #m-labs
22:27
<
FelixVi >
hi, is anybody here familiar with openocd based programming of spi flash?
22:30
<
FelixVi >
ah, can I ask you a question about programming a xc6slx45?
22:30
<
FelixVi >
I can configure the fpga with bit files
22:31
<
FelixVi >
but writing to the spi flash fails
22:33
<
FelixVi >
it tells me that enable write to flash failed
22:33
<
rjo >
what commands?
22:33
<
FelixVi >
I am using the bscan_spi bit files that robert has on github
22:34
<
FelixVi >
flash write_image erase $bin $addr
22:34
<
FelixVi >
that's the one that fails
22:35
<
FelixVi >
I'm calling init; jtagspi_init 0 bscan_spi_xc6slx45.bit; jtagspi_program mybin.bin 0;
22:36
<
rjo >
don't use flash write_image.
22:36
<
FelixVi >
that's what jtagspi_program calls
22:37
<
rjo >
full command and output please.
22:37
<
FelixVi >
> jtagspi_init 0 bscan_spi_xc6slx45.bit
22:37
<
FelixVi >
loaded file bscan_spi_xc6slx45.bit to pld device 0 in 0s 147102us
22:37
<
FelixVi >
Found flash device 'micron n25q128' (ID 0x0018ba20)
22:37
<
FelixVi >
JTAG tap: xc6s.tap tap/device found: 0x34008093 (mfg: 0x049 (Xilinx), part: 0x4008, ver: 0x3)
22:37
<
FelixVi >
flash 'jtagspi' found at 0x00000000
22:37
<
FelixVi >
> jtagspi_program waxwing_P5_P7_blink_main.bin 0
22:37
<
FelixVi >
auto erase enabled
22:37
<
FelixVi >
Found flash device 'micron n25q128' (ID 0x0018ba20)
22:37
<
FelixVi >
Found flash device 'micron n25q128' (ID 0x0018ba20)
22:37
<
FelixVi >
Found flash device 'micron n25q128' (ID 0x0018ba20)
22:37
<
FelixVi >
sector 0 took 218 ms
22:37
<
FelixVi >
sector 1 took 214 ms
22:37
<
FelixVi >
sector 2 took 239 ms
22:37
<
FelixVi >
sector 3 took 248 ms
22:37
<
FelixVi >
sector 4 took 248 ms
22:37
<
FelixVi >
sector 5 took 249 ms
22:37
<
FelixVi >
sector 6 took 247 ms
22:37
<
FelixVi >
sector 7 took 252 ms
22:37
<
FelixVi >
sector 8 took 253 ms
22:37
<
FelixVi >
sector 9 took 251 ms
22:38
<
FelixVi >
sector 10 took 250 ms
22:38
<
cr1901_modern >
try the bin file?
22:38
<
FelixVi >
sector 11 took 245 ms
22:38
<
FelixVi >
sector 12 took 251 ms
22:38
<
FelixVi >
sector 13 took 245 ms
22:38
<
FelixVi >
sector 14 took 251 ms
22:38
<
FelixVi >
sector 15 took 244 ms
22:38
<
FelixVi >
sector 16 took 248 ms
22:38
<
FelixVi >
sector 17 took 251 ms
22:38
<
FelixVi >
sector 18 took 246 ms
22:38
<
FelixVi >
sector 19 took 247 ms
22:38
<
FelixVi >
sector 20 took 247 ms
22:38
<
rjo >
come on use pastebin
22:38
<
FelixVi >
sector 21 took 247 ms
22:38
<
FelixVi >
sector 22 took 244 ms
22:38
<
FelixVi >
Cannot enable write to flash. Status=0x00000000
22:38
<
FelixVi >
page write error
22:38
<
FelixVi >
error writing to flash at address 0x00000000 at offset 0x00000000
22:38
<
FelixVi >
the bit file is fine, from there I used promgen to generate the bin
22:39
<
altker128 >
Can you paste each bit of the bitfile here in the IRC channel for us to look at?
22:40
<
FelixVi >
yes, give me a second
22:40
<
altker128 >
That's a joke
22:40
<
altker128 >
Please don't do that.
22:40
<
FelixVi >
ascii or binary?
22:40
<
FelixVi >
well, sry - I figured 20 lines is still OK
22:42
<
FelixVi >
hmm, I'm starting to wonder about the micron flash - and if that's causing any trouble
22:42
<
FelixVi >
programming flash on a papilio pro worked fine
22:42
<
rjo >
it means what it says: your flash chip did not like being write enabled. maybe its broken.
22:43
<
rjo >
certainly if that always happpens at sector 23.
22:43
<
rjo >
otherwise could be bad wiring in any kind of way.
22:43
<
FelixVi >
it does -.-
22:43
<
FelixVi >
I can program it just fine with a xilinx programmer
22:44
<
FelixVi >
so that's a bit weird
22:44
<
FelixVi >
is it really in sector 23? I am a little confused about that
22:44
<
FelixVi >
it says address 0x00 and offset 0x00
22:44
<
altker128 >
Could be a cabling issue
22:44
<
FelixVi >
so that's not in sector 0?
22:45
<
rjo >
the entire operation failed.
22:45
<
FelixVi >
hmm, I'll check the cable
22:46
<
FelixVi >
but jtag configuration of the fpga works fine
22:46
<
FelixVi >
and that's going through the same cable
22:46
<
FelixVi >
pin configuration for the spi flash is right in the bscan script
22:46
<
rjo >
try a slower jtag frequency
22:46
<
FelixVi >
ah - that could be it
22:49
<
altker128 >
What board is this BTW?
22:51
<
FelixVi >
that gives me the same error
22:51
<
FelixVi >
it's a waxwing board - like the pipistrello basically
22:53
<
FelixVi >
hmm, seems like there's something about the configuration that is not liked
22:53
<
FelixVi >
any jtag frequency fails
22:56
<
altker128 >
Can you scope it?
22:57
<
FelixVi >
yeah, I might have to do that at work
22:57
<
FelixVi >
on page 13, the spi connections look weird
22:57
<
FelixVi >
why would W_bar not be connected?
22:57
<
FelixVi >
maybe that's the problem here
22:58
<
altker128 >
RZQ is also not right, heh
23:00
<
FelixVi >
well, the papilio pro has the same connections and that's working
23:00
<
altker128 >
FelixVi: At least the ~W is on a resistor so you can solder to it
23:00
<
FelixVi >
so that means back to the flash chip itself
23:00
<
FelixVi >
yeah, that'll help :)
23:01
<
FelixVi >
how does openocd know that the write enable was successful?
23:01
<
altker128 >
No idea. Why aren't you using Xilinx Impact?
23:01
<
altker128 >
That can program SPI flash parts too
23:01
<
FelixVi >
because the boards need to reprogrammed via usb
23:02
<
FelixVi >
so I put a ft2232h on them and use the second channel for programming
23:02
<
altker128 >
Maybe it's a signal integrity issue
23:03
<
altker128 >
Or a operating voltage issue
23:04
<
altker128 >
Anyway, I gotta run
23:04
<
FelixVi >
supply is 3V3 according to the schematic
23:04
<
altker128 >
best of luck
23:04
<
FelixVi >
thanks for the help!
23:04
altker128 has quit [Quit: Konversation terminated!]
23:09
<
FelixVi >
hmm, I'm really puzzled about this
23:12
<
FelixVi >
flash erase_sector doesn't give me any errors
23:24
<
FelixVi >
well, doesn't look like there's an easy fix to this
23:24
<
FelixVi >
thanks for the help!
23:24
FelixVi has quit [Remote host closed the connection]