sb0 changed the topic of #m-labs to: https://m-labs.hk :: Mattermost https://chat.m-labs.hk :: Logs http://irclog.whitequark.org/m-labs
sb0 has joined #m-labs
<sb0> cr1901_modern: do you know other shells for windows that do not do weird stuff that requires cygwin (like bash) and have decent scripting capabilities?
<cr1901_modern> sb0: Powershell if that's your thing. It's not my thing and I have very little experience w/ it.
<cr1901_modern> Ppl like powershell b/c you can pipe more structured stuff than plaintext between processes compared to *nix.
Getorix has quit [Ping timeout: 248 seconds]
_whitelogger has joined #m-labs
sb0 has quit [Quit: Leaving]
<_whitenotifier-3> [nmigen] programmerjake commented on issue #145: pypy3 support tracking issue - https://git.io/fjPEA
<_whitenotifier-3> [nmigen] programmerjake commented on issue #145: pypy3 support tracking issue - https://git.io/fjPuv
X-Scale has quit [Quit: Want to be different? Try HydraIRC -> http://www.hydrairc.com <-]
tweakoz has joined #m-labs
<_whitenotifier-3> [nmigen] programmerjake commented on issue #145: pypy3 support tracking issue - https://git.io/fjPup
<_whitenotifier-3> [nmigen] programmerjake commented on issue #145: pypy3 support tracking issue - https://git.io/fjPzf
tweakoz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tweakoz has joined #m-labs
tweakoz has quit [Client Quit]
tweakoz has joined #m-labs
tweakoz has quit [Client Quit]
tweakoz has joined #m-labs
tweakoz has quit [Client Quit]
tweakoz has joined #m-labs
tweakoz has quit [Client Quit]
tweakoz has joined #m-labs
tweakoz has quit [Client Quit]
tweakoz has joined #m-labs
tweakoz has quit [Client Quit]
tweakoz has joined #m-labs
tweakoz has quit [Client Quit]
tweakoz has joined #m-labs
tweakoz has quit [Client Quit]
tweakoz has joined #m-labs
tweakoz has quit [Client Quit]
tweakoz has joined #m-labs
tweakoz has quit [Client Quit]
tweakoz has joined #m-labs
tweakoz has quit [Client Quit]
tweakoz has joined #m-labs
tweakoz has quit [Client Quit]
tweakoz has joined #m-labs
tweakoz has quit [Client Quit]
tweakoz has joined #m-labs
tweakoz has quit [Client Quit]
tweakoz has joined #m-labs
tweakoz has quit [Client Quit]
tweakoz has joined #m-labs
tweakoz has quit [Client Quit]
tweakoz has joined #m-labs
tweakoz has quit [Client Quit]
<_whitenotifier-3> [nmigen] programmerjake commented on issue #145: pypy3 support tracking issue - https://git.io/fjPzx
<_whitenotifier-3> [nmigen] programmerjake commented on issue #145: pypy3 support tracking issue - https://git.io/fjPg8
cr1901_modern has quit [Read error: Connection reset by peer]
<whitequark> powershell is pretty good
<_whitenotifier-3> [nmigen] whitequark commented on issue #145: pypy3 support tracking issue - https://git.io/fjPag
<mtrbot-ml> [mattermost] <hartytp> @rjo https://github.com/sinara-hw/Thermostat/issues/7#issuecomment-510139382 to check we're on the same page about this
<mtrbot-ml> [mattermost] <hartytp> do you mean that you (or whoever will do the Thermostat fw) are happy to do initial development on existing hw and then port to the new hw without requiring additional funding?
<mtrbot-ml> [mattermost] <hartytp> or is your comment more that with a bit of extra funding we could prototype on existing hw and then port?
<rjo> i'm not doing any thermostat development currently and in the near future. i don't need thermostat right now, just down the road. i only meant to say that if there was a need for characterization of the hardware, then a lot of the software that would be developed as part of that characterization would be reusable. i.e. i don't see the differences between the hardware versions as something that should hold up
<rjo> software development.
<rjo> i think there is a lot of benefit in prototyping on v1.0 and then porting to v2
adamgreig has quit [Ping timeout: 258 seconds]
adamgreig has joined #m-labs
<mtrbot-ml> [mattermost] <sb10q> To validate hardware or to speed up fw development?
cr1901_modern has joined #m-labs
<_whitenotifier-3> [nmigen-boards] whitequark reviewed pull request #19 commit - https://git.io/fjPwO
<_whitenotifier-3> [nmigen-boards] whitequark reviewed pull request #19 commit - https://git.io/fjPw3
<rjo[m]> both
<mtrbot-ml> [mattermost] <sb10q> OK but what is the priority here?
<mtrbot-ml> [mattermost] <sb10q> And things like the network interface can be developed on the stm32 kit as well
<rjo[m]> IMO hardware validation needs to be done before v2 can be signed off and before v2 firmware development can commit to implementation details. Things like the HW/PoE aspects of the network interface should be tested on v1. Yes. A some things should better be done on any stm32 kit.
proteusguy has joined #m-labs
<mtrbot-ml> [mattermost] <hartytp> " IMO hardware validation needs to be done before v2 can be signed off and before v2 firmware development can commit to implementation details"
<mtrbot-ml> [mattermost] <hartytp> what in particular are you worried about?
<mtrbot-ml> [mattermost] <hartytp> The basic concept has been prototyped here, so I'm happy that's low risk
<mtrbot-ml> [mattermost] <hartytp> there is a risk of bad layout etc
Getorix has joined #m-labs
<mtrbot-ml> [mattermost] <hartytp> the PoE etc has been prototyped on Stabilizer
<mtrbot-ml> [mattermost] <hartytp> although again there is a risk of EMI etc in this design
<mtrbot-ml> [mattermost] <hartytp> the digital side can't be prototyped on v1.0 because v2.0 is so different
<mtrbot-ml> [mattermost] <hartytp> so the only things I can see that we would want to prototype on v1.0 hw are analog/noise concerns to do with the ADC + TEC driver
<mtrbot-ml> [mattermost] <hartytp> ideally I would like to prototype that before finalizing the designs. but my assumption is that the cost of writing code for v1.0 and then porting to v2.0 is likely to be >= the cost of a small hw run. so better to just spin up some v2.0 hw to test on, with the aim of moving quickly on to v2.1
<mtrbot-ml> [mattermost] <hartytp> if Greg's student's code worked decently I would use that to test v1.0 but it sounds like it doesn't
<rjo[m]> v1 is an excellent platform for testing the ADC+frontend section, the TEC driver, the TEC driver limit PWMs, the power supplies, EMI, the thermal design, and the interaction between them. That's pretty everything apart from the CPU/PHY and the DAC. For most of those blocks it's the only platform we have currently. Networking can also be tested/developed on a Nucleo.
<mtrbot-ml> [mattermost] <hartytp> @sb10q what's your thought on this? I agree it would be best to prototype on existing hw if we can. If that can be done easily given existing code then let's do it, but it's not something we have additional funding for
<mtrbot-ml> [mattermost] <hartytp> (I guess it does have a side benefit to you in that the board you end up keeping will likely be higher quality if we do more pre-production tests)
<rjo[m]> I don't think reversing the testing burden of proof is the right approach. It seems prudent to default to being worried about everything and positively exclude parts from suspicion by testing/qualifying them or using qualified components. Not the other way around where you assume something works just because nobody has voiced concern.
<mtrbot-ml> [mattermost] <hartytp> @rjo that's not quite how I look at it. Put it this way, if the cost and lead time of producing hw were nothing then it would make no sense to write code for v1.0 hw
<mtrbot-ml> [mattermost] <hartytp> or, if the cost of producing a couple of PCBs is less than the cost of porting the code from v1.0 to v2.0 then it makes more sense to produce v2.0 hw quickly, find the faults there, then move on to v2.1
<rjo[m]> But to give you my subjective worries: ADC analog front end issues, EMI from the various PWMs and switchers, thermal issues, corner case issues on the power supply chain.
<mtrbot-ml> [mattermost] <hartytp> sure. at least one of those things will likely to be an issue
<mtrbot-ml> [mattermost] <hartytp> but that doesn't mean it's necessarily cheaper to find the issues on v1.0 rather than v2.0
<mtrbot-ml> [mattermost] <hartytp> depends on the cost of porting code v producing hw
<rjo[m]> Absolutely. If it takes no time and costs nothing, I would not worry about anything. Is that really how you approximate reality?
<mtrbot-ml> [mattermost] <hartytp> well, the time only really costs us something if there is someone ready to write the code. not sure what your pipeline looks like
<mtrbot-ml> [mattermost] <hartytp> the cost of producing hw has to be compared to the cost of porting code. ime code development is usually expensive compared with producing simple pcbs like this.
<mtrbot-ml> [mattermost] <hartytp> anyway, happy to leave the decision up to whoever is writing the code. if prototyping can be done on v1.0 with existing funding then we should definitely do that
<mtrbot-ml> [mattermost] <hartytp> if it's going to require extra funds then seems more sensible to just produce some hw
<rjo[m]> Just "cost of a PCB" is shortsighted. By iterating designs you also make previous designs harder to use and support. Iterating PCBs just because PCB manufacture is cheap ignores the non-manufacture investment into hardware. Existing hardware has significant value beyond the cost of manufacturing.
<rjo[m]> You'll have to estimate the likelihood of having a design issue that requires another iteration and compare that to the development/support/design/re-testing/invalidating-previous-revisions cost.
<rjo[m]> Looking at it from a distance, we have had two major designs already: the Thorlabs version and v1. If I am not mistaken neither has seen significant testing. If they don't provide a benefit by either being used in the lab or by providing significant amounts of test data informing the next iteration, then per definition schematics/layout/review and manufacturing of those two designs was wasted time and money. It just doesn't
<rjo[m]> seem prudent to operate with the assumption that there will be major redesigns anyway.
rohitksingh has joined #m-labs
proteusguy has quit [Ping timeout: 250 seconds]
rohitksingh has quit [Read error: Connection reset by peer]
<mtrbot-ml> [mattermost] <hartytp> okay, discussed with @sb10q
<mtrbot-ml> [mattermost] <hartytp> plan is to develop minimal fw on v1.0 hw that can read ADC samples and stream over TBD interface
<mtrbot-ml> [mattermost] <sb10q> the simplest thing possible, i.e. read ADC samples at some hardcoded interval and send to UART or semihoting
<mtrbot-ml> [mattermost] <hartytp> and control the PWM for the TEC driver. Fixed values in FW fine for this (can just change via GDB)
<mtrbot-ml> [mattermost] <hartytp> yes, something where I can save the data out for analysis in some decent way
<mtrbot-ml> [mattermost] <sb10q> cat /dev/ttyUSB0 > log
<mtrbot-ml> [mattermost] <hartytp> yes UART is easy
<mtrbot-ml> [mattermost] <sb10q> + python
<rjo> or just the ITM.
<mtrbot-ml> [mattermost] <hartytp> we'll test the ADC noise + stability, check TEC current -> ADC measurement cross-talk, check the TEC noise on a scope for a few different currents, check things work fine with PoE
<rjo> sounds good. that covers a good part of the risk surface.
<mtrbot-ml> [mattermost] <hartytp> I think that's a decent set of tests
<mtrbot-ml> [mattermost] <sb10q> the ITM is very slow
<rjo> nonesense.
<rjo> *nonsense.
<mtrbot-ml> [mattermost] <hartytp> (use a 10k low temp co resistor in place of thermistor for those tests)
<mtrbot-ml> [mattermost] <hartytp> okay, that sounds like a good plan
<mtrbot-ml> [mattermost] <sb10q> what nonsense?
<mtrbot-ml> [mattermost] <sb10q> ah, ITM != semihosting
<mtrbot-ml> [mattermost] <sb10q> but doesn't this require some special JTAG cable?
<whitequark> there's an additional pin for tracing
<rjo> not really.
<whitequark> you have my blackmagic probe, right? it can do ITM
<mtrbot-ml> [mattermost] <sb10q> no, I don't have it
<rjo> its much faster than a typical uart and it works just fine with most jtaggers e.g. the broken off jtag interface on any nucleo.
<whitequark> hm, I'm pretty sure I've specifically left it to you
<rjo> but for the 1kS/s rate anything other than semohosting will work.
<mtrbot-ml> [mattermost] <hartytp> okay, just need Greg to post the actual v1.0 schematics rather than some random rc...
rohitksingh has joined #m-labs
rohitksingh has quit [Read error: Connection reset by peer]
tweakoz has joined #m-labs
adamgreig has quit [Ping timeout: 250 seconds]
adamgreig has joined #m-labs
tweakoz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cr1901_modern> I don't want to call something flawless, but nmigen.build does close to, if not everything, right for me. Generates a standalone project without hassle that can be run anywhere.
<cr1901_modern> The "source a script" feature being the last missing touch I wanted
mumptai has joined #m-labs
mumptai has quit [Quit: Verlassend]
<_whitenotifier-3> [nmigen-boards] cr1901 synchronize pull request #19: Add Mercury platform. - https://git.io/fjilU