azonenberg_work has quit [Ping timeout: 240 seconds]
promach has joined ##openfpga
<cyrozap>
nats`: In my experience, I've had some trouble flashing ESP8266 dev boards with onboard CH340, but no trouble flashing the ones with SiLabs CP2012. So it's probably mostly fine, but unless you're building 1000's of units, I'd think the small per-unit savings isn't worth the trouble of using a possibly-somewhat-buggy part.
<rqou>
right, this reminds me that "program a cortex-m0 to pretend to be an ft232" is still on my todo list
digshadow has quit [Quit: Leaving.]
amclain has quit [Quit: Leaving]
<pie_>
so i finally cleared my smaller desk, not that either of them are particularly big, and got out my electronics stuff
<pie_>
woo i made a led+switch lmao
<pie_>
forgot to order switches from aliexpress though so i cannibalized a keyboard switch from a sample kit
digshadow has joined ##openfpga
<cyrozap>
rqou: While that's an interesting project (and one I've thought of taking on myself), what would be the point? I haven't seen an M0 micro with USB and a UART that was cost-competetive with any dedicated USB-serial ICs.
<rqou>
er, iirc i had looked for one that was competitive with the ftdi asic
<rqou>
but yeah, it's not quite competitive with the other clones if you just need usb-serial
<rqou>
i was also going to cram it other functionality like usb-spi and "random bootstrapping stuff"
<cyrozap>
Ah, I see
<cyrozap>
Have you seen the Cypress USB-Serial bridge ICs?
<cyrozap>
The high-end one has two serial ports that can be configured for SPI and I2C, and one of the ports also supports ~400 kHz JTAG. Cost for that chip is $2.50.
<cyrozap>
For the plain USB-serial mode, it uses CDC-ACM so it can be used out-of-the-box on OS X and Linux. For everything else, there's a really awful library that I made slightly less awful (and also got it to compile on Windows): https://github.com/cyrozap/libcyusbserial
<pie_>
why is jtag so slow btw?
<cyrozap>
pie_: Because the chip is just an 8-bit microcontroller (with Cypress firmware) bit-banging JTAG.
<pie_>
i meanin general
DocScrutinizer05 has quit [Disconnected by services]
DocScrutinizer05 has joined ##openfpga
DocScrutinizer05 has quit [Remote host closed the connection]
DocScrutinizer05 has joined ##openfpga
Hootch has joined ##openfpga
<cyrozap>
pie_: Normal signal integrity reasons. Many chips only support JTAG clocks up to a few tens of megahertz, meaning the theoretical max transfer speed is going to be only a few megabytes per second (ignoring protocol overhead and state machine transitions). Most reasonably-priced adapters can't even go that fast, so you're limited to one megabyte/s or less. Finally, even when both the chip and the
<cyrozap>
adapter support high speeds, you need to make sure the cable your using is as short as you can tolerate, otherwise you'll start having signal integrity problems.
<rqou>
alternatively you can be like Intel and tunnel JTAG over a USB SS PHY
<rqou>
"Also usbser.sys has been completely re-written in WDF, improving its overall reliability as well incorporating new features for power management"
<nats`>
and it asks for a specific class
<nats`>
otherwise it'll wait for a manufacturer driver
<rqou>
but they did also bugfix the cdc driver
<rqou>
in general the linux one has been much more tolerant of breaking the rules
<rqou>
meanwhile on the other extreme macos _insists_ cdc devices are modems
<pie_>
cyrozap, thanks
<nats`>
you have the same with ubuntu
<nats`>
soft guyz here spend 2 days on one product
<rqou>
but you can at least uninstall modemmanager
<nats`>
they though their embedded usb stack was bloated
<nats`>
but nop it was ubuntu sending crap automagically to CDC device
<rqou>
honestly at this point i don't understand why modemmanager even speaks to normal serial ports
<rqou>
i would be ok with one that only spoke qmi
pie_ has quit [Ping timeout: 240 seconds]
qu1j0t3 has joined ##openfpga
scrts has quit [Ping timeout: 240 seconds]
zino_ has quit [Remote host closed the connection]
zino_ has joined ##openfpga
scrts has joined ##openfpga
bibor has quit [Quit: WeeChat 1.0.1]
bibor has joined ##openfpga
kuldeep has joined ##openfpga
kuldeep has quit [Read error: Connection reset by peer]
kuldeep has joined ##openfpga
scrts has quit [Ping timeout: 260 seconds]
scrts has joined ##openfpga
scrts has quit [Ping timeout: 260 seconds]
scrts has joined ##openfpga
talsit has left ##openfpga [##openfpga]
pie_ has joined ##openfpga
kuldeep has quit [Read error: Connection reset by peer]