ChanServ changed the topic of #glasgow to: glasgow interface explorer · code https://github.com/GlasgowEmbedded/glasgow · logs https://freenode.irclog.whitequark.org/glasgow · discord https://1bitsquared.com/pages/chat · production https://www.crowdsupply.com/1bitsquared/glasgow · CrowdSupply campaign is LIVE!
FFY00 has joined #glasgow
josi7 has joined #glasgow
egg|laptop|egg_ has joined #glasgow
Stormwind_mobile has quit [Ping timeout: 272 seconds]
Stormwind_mobile has joined #glasgow
egg|laptop|egg_ has quit [Remote host closed the connection]
mndza has quit [Ping timeout: 265 seconds]
electronic_eel has quit [Ping timeout: 265 seconds]
electronic_eel has joined #glasgow
PyroPeter_ has joined #glasgow
PyroPeter has quit [Ping timeout: 240 seconds]
PyroPeter_ is now known as PyroPeter
PyroPeter_ has joined #glasgow
PyroPeter_ is now known as PyroPeter
PyroPeter has quit [Ping timeout: 264 seconds]
DarthCloud has quit [Remote host closed the connection]
DarthCloud has joined #glasgow
meklort has quit [Remote host closed the connection]
mndza has joined #glasgow
egg|laptop|egg_ has joined #glasgow
bvernoux has joined #glasgow
egg|laptop|egg_ has quit [Remote host closed the connection]
egg|laptop|egg_ has joined #glasgow
egg|laptop|egg_ has quit [Read error: Connection reset by peer]
<d1b2> <brainstorm> The ESP32S2+Glasgow-jtag-openocd-bitbang saga continues, now JTAG TDO/TCK signals seem within spec I reckon?: https://github.com/espressif/openocd-esp32/issues/135#issuecomment-766340269 ... now it works "fine", but there are errors in the target remote :3333 init, memory region enumeration is very slow and breakpoints are still quite slow too... I've found a matching error on their esp32.com forums, let's see if we can figure out that last bit and
<d1b2> have functional breakpoints (not having to wait 20-30 seconds per breakpoint). Speeds between 500kHz and 10MHz seem to be fine for Glasgow), higher than that there seems to be another host of errors I'm not willing to explore at this point X"D
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
<whitequark> yes, it is expected that JTAG on Glasgow will break above ~8 MHz
<whitequark> this will be fixed in due time
<d1b2> <brainstorm> Oh! Is it a software or hardware issue to be fixed?
<whitequark> it is a consequence of a deliberately simplistic design
<whitequark> think of it as an MVP JTAG
<whitequark> I -could- make it work faster, but it would be messy, so I'd rather keep it simple until we sort out the mess
<d1b2> <brainstorm> So you mean the jtag-openocd applet, right?
<d1b2> <brainstorm> Btw, hats off for the Glasgow, it managed to tell me politely that I was shorting VIO and IO pins on my dev board: E: g.cli: cannot set I/O port(s) A pull resistors to low={} high={} ... all without magic smoke, so kudos for this dummy-proof board, love it! 🙂
<d1b2> <brainstorm> According to the USB power monitor it was consuming ~300mA at 3-4 second intervals, so it got a little bit warm, but did not toast it, which is remarkable.
<whitequark> glasgow was designed to be safe to misuse insofar as it is practical
<d1b2> <brainstorm> Yup, well done
<whitequark> keep it away from car batteries and it will be highly unlikely that you'll break it accidentally
<d1b2> <brainstorm> lol, will do 🙂
<d1b2> <brainstorm> OTOH, it might as well be the host (OpenOCD) side of things spending too much time in the bitbang code...
<d1b2> <DX-MON> Glasgow is definitely an incredibly well built and designed bit of hardware with great attention to detail :3
<whitequark> quite a lot of effort by many people went into it, yup!
G33KatWork has quit [Ping timeout: 256 seconds]
G33KatWork has joined #glasgow
<_whitenotifier> [glasgow] mndza opened pull request #265: Add bitarray implementation to eliminate external dependency - https://git.io/JtZfr
mndza has quit [Ping timeout: 246 seconds]
mndza has joined #glasgow
egg|laptop|egg_ has joined #glasgow
egg|laptop|egg_ has quit [Remote host closed the connection]
<modwizcode> niceeee
<modwizcode> Someone should just publish that as a library for all the other hapless people suffering from using bitarray :p
<mndza> hehe i could do it once the code is a bit more polished
<mndza> feedback welcome
<modwizcode> I agree the names you mentioned are questionable but I don't have a great suggestion
<modwizcode> except maybe the exteremely long idea of "byte_reversed" and "byte_reverse_inplace"
<mndza> i also added that distinction because i thought it might be useful, but maybe a single method is enough
<modwizcode> Honestly I think maybe that's a good point you can probably drop non-inplace reverse
<modwizcode> You should probably add docstrings to all the public stuff though at least imo
<modwizcode> like what "reversed" does is non-obvious
<mndza> yeah, you are right, i will try to document a bit
<modwizcode> Jeez python gets really messy when you mess with stuff like memoryview doesn't it?
<mndza> yes... i spent some time trying to clean the code, but there are definitely areas of improvement
<mndza> memoryview works nicely though
<modwizcode> I was commenting mostly because I haven't successfully fully learned this part of python because their docs are extremely vague imo about how all this stuff works
<mndza> i only use it internally to avoid some copies, and a user never sees a memoryview object (which might be faster, but also more complex)
<modwizcode> I noticed that. hmm
<whitequark> mndza: without having context: we do expose memoryview objects in API already
<whitequark> when you read from USB FIFOs that's what you get
<whitequark> that said it's definitely more complex (the FIFO code has a bunch of cases to normalize everything so it's always memoryview, for example_
<mndza> in bitarray we could maybe expose a memoryview on slices, but fallback to a new buffer on writes, or something like that
<mndza> but right now it is simpler
<whitequark> it'll probably take me a few days to get to reviewing this but, thank you for doing this work! it's really one of the most thorny issues at the moment
<mndza> thank you for glasgow!
<modwizcode> I've been trying to do a minireview of the code, nothing really stands out to me
<mndza> i know your initial idea was using word-sized elements, but i started with bytes
<mndza> so it definitely has room for improvement
<whitequark> bytes are OK, we can always change that later
<whitequark> makes the implementation a lot simpler I would think
<_whitenotifier> [glasgow] mndza synchronize pull request #265: Add bitarray implementation to eliminate external dependency - https://git.io/JtZfr
jstein has joined #glasgow
DarthCloud has quit [Remote host closed the connection]
DarthCloud has joined #glasgow
Henk76 has joined #glasgow
Henk76 has quit [Quit: Ping timeout (120 seconds)]
egg|laptop|egg_ has joined #glasgow
egg|laptop|egg_ has quit [Remote host closed the connection]
egg|laptop|egg_ has joined #glasgow
egg|laptop|egg_ has quit [Remote host closed the connection]
egg|laptop|egg_ has joined #glasgow
FFY00 has quit [Remote host closed the connection]
FFY00 has joined #glasgow
mndza has quit [Ping timeout: 265 seconds]
<d1b2> <brainstorm> Most of the time is actually spent on the host side of OpenOCD... it takes a while for the xtensa openocd extensions to go through the IC's memory but the biggest bottleneck is related with the jtag bitbang queues and its accompanying blocking socket: https://github.com/espressif/openocd-esp32/issues/135#issuecomment-766452220
<d1b2> <brainstorm> ... I guess that having OpenOCD read more than 1 char at a time might help? At least it's better than 3 years ago when it actually read bit by bit: https://github.com/espressif/openocd-esp32/commit/64f1f7b1c179dcce4e008bef6bf9515c47ae4100#diff-9bae0e28b2e1c3e23b0ff6231b3c34d619768b4071795f4a013645e979c17ca8 🙂
futarisIRCcloud has joined #glasgow
<fridtjof[m]> I hope this is not too off topic, but the way that nordic's online documentation always has the same useless page title has been annoying me so much that I wrote a small extension to fix that: https://github.com/fridtjof/nordic-doc-titles
<whitequark> ha
<whitequark> i'm gonna install that
<fridtjof[m]> great to hear i'm not the only one annoyed by that :D
<whitequark> i don't work with nordic devices much but i distinctly remember that aggravating website
<fridtjof[m]> i recommend you don't take a closer look at how it's built (either by inspecting the website, or my extension). it made building the extension... harder than it should have been
<whitequark> way to attract my attention
* whitequark stares
<whitequark> they... what
<whitequark> why
<whitequark> i'm just going to pretend i've never opened it
<fridtjof[m]> lmao
<gruetzkopf> hm, icestorm not building well on irix puts a damper in my stupid stunt plans :D
<whitequark> what breaks?
<gruetzkopf> integer length stuff
<gruetzkopf> i'll go build a 64bit gcc and try again
<d1b2> <brainstorm> Woah, Irix, parked on my brain since the times of OSF/1 :-!
<gruetzkopf> at least building gcc parallises better than building icebox
egg|laptop|egg__ has joined #glasgow