02:46
sb00 has joined #m-labs
04:09
<
sb0 >
whitequark, what is the difference between tm4c129x-vendor.xml and tm4c129x.xml?
04:11
<
sb0 >
and how did you unfuck rustfmt?
04:11
<
sb0 >
Rustfmt failed at stdin:23: line exceeded maximum length (maximum: 1000, found: 3920) (sorry)
04:49
<
GitHub162 >
dslite2svd/master d527f3f Sebastien Bourdeauducq: Regenerate with newer svd2rust.
05:03
<
whitequark >
sb0: the aligned crate won't work for us i think
05:04
<
GitHub65 >
ionpak/master 98b17fc Sebastien Bourdeauducq: update dependencies
05:04
<
GitHub65 >
ionpak/master 1da96a2 Sebastien Bourdeauducq: convert ADC interrupt count to milliseconds
05:04
<
whitequark >
because we need higher alignment than any of the builtin types
05:04
<
whitequark >
so you don't have anything to provide as the `ALIGNMENT` argument
05:04
<
whitequark >
also there's an open rust bug for #[repr(align=N)] and I'd rather just use that once it gets fixed
05:05
<
whitequark >
re rustfmt: I'm not sure, I think older urstfmt didn't get mad because of that
05:05
<
sb0 >
the solution was to increase max_width in rustfmt.toml
05:05
<
whitequark >
regarding -vendor.xml, *-vendor.xml is exactly what TI provided, converted to svd from dslite
05:05
<
sb0 >
I regenerated the files using the files that do not have -vendor
05:05
<
whitequark >
whereas *.xml is *-vendor.xml with the patch applied
05:06
<
whitequark >
the patch fixes some of the bugs in the dslite definitions
05:06
<
whitequark >
there is a makefile that works a bit like `quilt` if you've seen that
05:06
<
whitequark >
if you need that, remind me to document the way to use it
05:06
<
sb0 >
ah, I had missed the regeneration part of that Makefile
05:07
<
whitequark >
if you're updating dslite2svd, i think it's worth upgrading to the latest cortex-m release, too
05:07
<
sb0 >
yeah everything is updated
05:07
<
sb0 >
in fact I updated dslite2svd because I wanted to update cortex-m
05:07
<
whitequark >
excellent, thanks
05:07
<
sb0 >
crates.io still has the 0.4 crate for the tm4c stuff
05:08
<
whitequark >
oh you can't publish? moment
05:08
<
whitequark >
hang on
05:08
<
whitequark >
which version of svd2rust did you use?
05:09
<
whitequark >
let me see if they merged everything i wanted them to...
05:09
<
sb0 >
AFAICT they did, but perhaps I missed something
05:10
<
sb0 >
FWIW the ionpak firmware still compiles fine
05:10
<
whitequark >
without changes?
05:11
<
sb0 >
i.e. the new interrupt management stuff
05:11
rohitksingh has joined #m-labs
05:15
<
whitequark >
ok, seems fine to me
05:15
<
whitequark >
let me add you to crate owners
05:19
<
whitequark >
sb0: do you have a crates.io login?
05:23
<
sb0 >
I login with github
05:24
<
whitequark >
sb0: added you to both crates
05:24
<
whitequark >
should add to smoltcp too, sec
05:25
<
sb0 >
ah, tm4c123x breaks
05:26
<
sb0 >
do we care? why do we support tm4c123x?
05:26
<
whitequark >
now that's weird, seems like a bug in svd2rust perhaps
05:26
<
whitequark >
i added tm4c123x because i could, it was zero extra work on top of 129x
05:27
<
whitequark >
don't bother fixing it, if anyone cares i'll fix that later
06:00
cr1901 has quit [Ping timeout: 240 seconds]
06:11
cr1901 has joined #m-labs
06:44
sb0 has quit [Quit: Leaving]
07:24
_whitelogger has joined #m-labs
09:58
sb0 has joined #m-labs
10:04
<
sb0 >
whitequark, gdb is crapping out now
10:04
<
sb0 >
support/load.gdb:1: Error in sourced command file:
10:04
<
sb0 >
Dwarf Error: Cannot find DIE at 0xb252 referenced from DIE at 0xfcc3
11:07
<
GitHub33 >
ionpak/master 68eb1cd Sebastien Bourdeauducq: start ADC after initialization, to avoid FIFO overflows
11:26
rohitksingh has quit [Quit: Leaving.]
11:51
_whitelogger has joined #m-labs
11:56
<
GitHub19 >
ionpak/master e676cb5 Sebastien Bourdeauducq: work around ADC sample rate snafu
11:56
<
GitHub19 >
ionpak/master f156c7c Sebastien Bourdeauducq: print panic messages on UART
11:56
<
GitHub19 >
ionpak/master d18712d Sebastien Bourdeauducq: flashed MAC address doesn't work
12:37
http_GK1wmSU has joined #m-labs
12:37
http_GK1wmSU has left #m-labs [#m-labs]
12:50
key2 has joined #m-labs
12:51
sb0 has quit [Quit: Leaving]
14:06
<
whitequark >
sb00: yes, gdb is crap
14:06
<
whitequark >
this happens
14:06
<
whitequark >
did you hit a smoltcp bug in the tcp code? what did you figure out
14:07
sb0 has joined #m-labs
15:00
<
sb0 >
whitequark, that was a driver bug. when smoltcp calls transmit() and the driver returns a slice larger than requested, then it panics deep inside smoltcp
15:01
<
sb0 >
I don't know if it makes sense to add some assertions to spot this error rapidly, or if there would be too many of this kind anyway
15:02
<
sb0 >
the panic is slightly obscure, e.g. it would only happen after a TCP connection, things like ping are not affected
15:04
<
whitequark >
yes, there should be an assertion, sec
15:11
<
GitHub29 >
smoltcp/master ca6fa2d whitequark: Assert that the transmit frame returned by driver has right length....
15:14
<
travis-ci >
m-labs/smoltcp#169 (master - ca6fa2d : whitequark): The build passed.
15:32
<
sb0 >
also, I don't know if it's the same bug as in artiq or not, but the http connections are slow and generally do not work well
15:37
<
whitequark >
can you capture some traces?
16:00
<
sb0 >
capture coming
16:08
<
sb0 >
whitequark, mailed
16:22
<
whitequark >
sweet pic
16:22
<
whitequark >
we'll need something like dhcp, right?
16:23
<
whitequark >
eventually
16:23
<
whitequark >
looked at the bug
16:23
<
whitequark >
80% it's the same as artiq issue
16:23
<
whitequark >
it's exacerbated because of your browser's concurrent requests
16:24
<
whitequark >
how many buffers do you have, one?
16:39
<
whitequark >
I mean, in the phy
16:41
<
sb0 >
2 TX buffers, 3 RX buffers
16:45
<
whitequark >
why 3?
17:11
<
sb0 >
whitequark, not really a good reason
17:12
<
sb0 >
it's DMA, and the number of buffers can be changed
17:12
<
sb0 >
btw my "refactoring" commit broke the driver completely for an unknown reason, I'm still using the old version right now for my tests (with the txbuffer length fixed)
18:05
<
sb0 >
whitequark, so what's the latest about fixing that bug?
18:30
Gurty has quit [Ping timeout: 240 seconds]
18:42
Gurty has joined #m-labs
19:07
mithro has quit [*.net *.split]
19:18
mithro has joined #m-labs
22:48
key2 has quit [*.net *.split]
22:53
key2 has joined #m-labs
23:14
tangrs has joined #m-labs