DocScrutinizer05 changed the topic of #qi-hardware to: Copyleft hardware - http://qi-hardware.com | hardware hackers join here to discuss Ben NanoNote, atben / atusb 802.15.4 wireless, and other community driven hw projects | public logging at http://en.qi-hardware.com/irclogs and http://irclog.whitequark.org/qi-hardware
lindi- has quit [Quit: No Ping reply in 180 seconds.]
<nicksydney> have a linux kernel question...
lindi- has joined #qi-hardware
lindi- has quit [Changing host]
lindi- has joined #qi-hardware
<nicksydney> i've read about HW breakpoint and still not sure i understand completely about this...is HW breakpoint available for most ARM architecture ?
aboutGod has joined #qi-hardware
aboutGod has left #qi-hardware [#qi-hardware]
kyak has quit [Ping timeout: 252 seconds]
<nicksydney> so the photo paper does work for pcb etching but the way to do it is to spray the pcb with water and iron continously https://www.youtube.com/watch?v=N3DGbwVXyN8
<wpwrak> sounds complicated :)
<nicksydney> that's what experiment all about :) complication :)
<nicksydney> if i do fine traces i will use blue paper and if the traces are bit wider than 0.25mm than will use yellow paper :)
<nicksydney> solder mask http://www.seeedstudio.com/wiki/Solder_Mask_Ink ... need to try this one dauy
<nicksydney> it needs UV light
atommann has joined #qi-hardware
<DocScrutinizer05> ((is HW breakpoint available for most ARM architecture ?)) basically yes
<DocScrutinizer05> it depends on type of ARM core, but afaik cortex have several hw breakpoints
<DocScrutinizer05> it's basically pretty simple: a comparator on address bus of RAM
<nicksydney> DocScrutinizer05: so if the IC support hw breakpoints that means we could single-step code like how normal debugging process works ?
<DocScrutinizer05> yes
<DocScrutinizer05> among other nice things. You also can trap any read/write access to a specific RAM location (think variables access)
<DocScrutinizer05> even ranges of adresses
<nicksydney> so for IC that have Linux support in it to use HW breakpoint we need to enable it correct ?
<nicksydney> i meant enable in the Linux config
<DocScrutinizer05> Linux support?
<DocScrutinizer05> hw breakpoints are independant of tghe software that runs on the CPU
<nicksydney> ohhh ok....so to enable it don't we have to do something first ?
<DocScrutinizer05> usually I used them via JTAG and Lauterbch
<DocScrutinizer05> Lauterbach even
<nicksydney> ahhhh ok
<nicksydney> so you mean that with JTAG (if the pin is exposed on the board) we could use HW breakpoint
<DocScrutinizer05> you also can enable them "on board" or maybe I should call that "endocrine"
<DocScrutinizer05> yes
<DocScrutinizer05> you also can use Embedded Trace Macrocell
<DocScrutinizer05> (but even that also is usable "endocrine", from within the traced OS)
<nicksydney> i have got a board that have pin that says JTAG1 and it has 20pins does that sound correct ?
<DocScrutinizer05> ETM does log the last maybe 2k of program code (actually it only traces branches, since everything else is static. It also can trace data)
<DocScrutinizer05> kinda correct, yes
<DocScrutinizer05> http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ihi0014q/index.html <-ETM
<nicksydney> thanks DocScrutinizer05 will do some more reading on ETM and JTAG
<DocScrutinizer05> yw
<DocScrutinizer05> basically here you already have your "breakpoints" (though for ETM here): http://infocenter.arm.com/help/topic/com.arm.doc.ihi0014q/BABHCEED.html
<DocScrutinizer05> your basic "breakpoint" is a "Instruction execute" single address comparator
<DocScrutinizer05> when you have a good car, you may sell it to buy this critter ;-)
<DocScrutinizer05> http://www.lauterbach.com/frames.html?adflex.html cost ~200EUR iirc
xiangfu has joined #qi-hardware
<DocScrutinizer05> of course you want http://www.lauterbach.com/powertrace2.html and http://www.lauterbach.com/powerdebug2.html and a few more little gadgets connected like http://www.lauterbach.com/icretm.html
<DocScrutinizer05> such a monster costs real money
<DocScrutinizer05> but sure, a http://www.tincantools.com/wiki/Flyswatter will do for a start
<DocScrutinizer05> ;)
<DocScrutinizer05> it all depends on the software in the end of the day
<DocScrutinizer05> the lauterbach has ultrafast RAM buffer and whatnot, but you don't really need such stuff for *simple* debugging
xiangfu has quit [Ping timeout: 252 seconds]
<DocScrutinizer05> e.g. ETM data is absolutely useless without proper software tools to read it. it's just a list of addresses in memory and timestamps and condition flags that tell you about the way a conditional intruction at that addr got executed (e.g. "less than zero" or not)
<DocScrutinizer05> the non-conditional instructions in between don't get traced
<DocScrutinizer05> so you need to merge that ETM buffer info with you a priori knowledge about the code on your target
<DocScrutinizer05> the most simple tracing method is single step (either automatic or manual), in which case the CPU gets a software- or hardware-generated interupt after execution of every single intruction. Then a special monitor program on the _target_ analyzes the stack to check where the program pointer points to, and reads the instaruction at that point and writes it to a trace-logfile (basically)
<DocScrutinizer05> then the debug monitor code does a "return from interupt" which makes CPU execute next intruction of code inder supervision, and then the next interupt happens
<DocScrutinizer05> the software variant replaces the code by a software interupt instruction one at a time, and then on next cycle restores the original instruction at addr N and changes addr N+1 to an nterrupt instruction
<DocScrutinizer05> with an address comparator hw breakpint you don't need that nasty sw breakpoints/interrupts - which is really nice since sometimes the restoration of code fails for some reason and you get stale software breakpoints of which the original code got lost. So you need to start all over again
<DocScrutinizer05> and ETB/ETM is outright awesome, since you can know exactly what were the last maybe 10k of instructions the CPU did *before* it (for example) wrote 0 to that pointer you placed your breakpoint at ("data store only" hw data value comparator)
xiangfu has joined #qi-hardware
michael_lee has joined #qi-hardware
<nicksydney> thanks DocScrutinizer05 will buy something simple first for now and once i 'master' it than will move on to invest in something more expensive :)
<nicksydney> and also need to invest on scope as wpwrak has suggested to me .. still collecting though :)
<DocScrutinizer05> to start with, the cheapest JTAG adaper you can find will do
<DocScrutinizer05> finding good software probably is harder (though I never really checked, I always had first class software and JTAG tools, like Lauterbach, so I don't know much about what's available)
<DocScrutinizer05> basically you could use Lauterbach software with the cheapest JTAG adapter you can find, just you can't run Lauterbach software without licence key and dongle
<DocScrutinizer05> http://www.ebay.com/sch/i.html?_kw=Lauterbach+Trace32 :-). The cheapest ones are not even sooo expensive
<DocScrutinizer05> however beware of "what you see is what you get" that probably come without licence and thus are simply useless
xiangfu has quit [Ping timeout: 255 seconds]
kyak has joined #qi-hardware
<DocScrutinizer05> LOL yeah >>* License is valid until the March of 2011.<<
xiangfu has joined #qi-hardware
<nicksydney> maybe can look at open source alterantive like OpenOCD
<DocScrutinizer05> anyway, this might be well worth a try: http://www.lauterbach.com/download.html
xiangfu has quit [Ping timeout: 258 seconds]
<nicksydney> big GOOGLE is watching you now https://www.theinformation.com/Google-Eyes-Home-Security-Dropcam
nicksydney has quit [Remote host closed the connection]
nicksydney has joined #qi-hardware
nicksydney has quit [Remote host closed the connection]
nicksydney has joined #qi-hardware
<DocScrutinizer05> nicksydney: http://www2.lauterbach.com/download/simarm.zip
nicksydney has quit [Remote host closed the connection]
xiangfu has joined #qi-hardware
nicksydney has joined #qi-hardware
<DocScrutinizer05> nicksydney: when you have a wondoze OS on a fast PC, you'll love this trace32m*.exe program. And iirc it uses trace32-view frontend which also should be able to run (maybe with another one of the free files from Lauterbach) with any arbitrary JTAG adapter, as long as you can configure it
* DocScrutinizer05 idly wonders if Lauterbach made a linux version of trace32view
<DocScrutinizer05> oops, trace32-powerview is the name
<nicksydney> cool
<DocScrutinizer05> http://www.lauterbach.com/icretm.html is the config I used to debug the NovaThor
xiangfu has quit [Ping timeout: 276 seconds]
<DocScrutinizer05> actualy I worked with the Thorium modem
<DocScrutinizer05> don't think I ever seen a NovaThor chip
<DocScrutinizer05> though...
xiangfu has joined #qi-hardware
<DocScrutinizer05> meh, I bet that's the android code
<DocScrutinizer05> >>On November 21, 2012, it was announced that ST-Ericsson had joined the Sailfish Alliance hence NovaThor ModAp platform would support Jolla's smartphones and Sailfish OS.[6]<< HAHAHA
<DocScrutinizer05> AAAH yep, NovaThor L9540 been it, actually the "external Thor M7400 modem"
<DocScrutinizer05> and the NovaThor U8500
xiangfu has quit [Ping timeout: 265 seconds]
xiangfu has joined #qi-hardware
xiangfu has quit [Read error: Connection reset by peer]
jekhor has joined #qi-hardware
<nicksydney> DocScrutinizer05: yup that's the Android cod
nicksydney has quit [Remote host closed the connection]
nicksydney has joined #qi-hardware
michael_lee has quit [Ping timeout: 264 seconds]
michael_lee has joined #qi-hardware
jluis has joined #qi-hardware
jekhor has quit [Ping timeout: 245 seconds]
atommann has quit [Ping timeout: 255 seconds]
rz2k has quit []
atommann has joined #qi-hardware
michael_lee has quit [Quit: Ex-Chat]
pcercuei has joined #qi-hardware
<wpwrak> plan B would be to develop debugging strategies that don't need so fancy tools. a bit of gdb (and JTAG) and thinking go a looong way
<wpwrak> there are situations where you need more complex tools, but you may not run into these for a good while yet
<wpwrak> also, some of those fancy tools are made to solve workflow issues that you can easily avoid. e.g., by not used closed source :)
<wpwrak> #s/used/using/
jluis has quit [Ping timeout: 245 seconds]
jluis has joined #qi-hardware
wolfspraul has joined #qi-hardware
atommann has quit [Quit: Leaving]
jekhor has joined #qi-hardware
jekhor has quit [Quit: Leaving]
<eintopf> atmel >:-|
<wpwrak> here we have a picture of eintopf going into battle against atmel: images.v-media.eu/diablo-3/d3_reaper_of_souls-banner.jpg
<ysionneau> arm926 are not so bad actually
<eintopf> wpwrak: :-)
<wpwrak> ysionneau: his hatred is more directed towards the 802.15.4 chips than the ARMs, as he is getting more acquainted with their dark side :)
<nicksydney> eintopf: why you don't like Atmel ? any particular reason ? :)
<nicksydney> not sharing any technical books but in case if someone has interest on something non-technical http://www.publish.csiro.au/catalogues/Stocktake_Sale_2014.htm
<wpwrak> so that's what they call lockpicks these days ;-)
<nicksydney> these days or those days ? :)
<nicksydney> man some fighting going on in arm-netbook mailing list
<ysionneau> wpwrak: is the dark side the ball side ? :)
<wpwrak> ysionneau: those rf chips have no balls
<ysionneau> that's a shame :(
* ysionneau goes back to his rf chip
Luke-Jr has quit [Read error: Connection reset by peer]
Luke-Jr has joined #qi-hardware
jekhor has joined #qi-hardware
sb0 has joined #qi-hardware
xiangfu has joined #qi-hardware
<nicksydney> wpwrak: in kicad most of the labelling for component (D2, R2, etc) it is on the Cmts.User layer..any way to instruct it to put on Silkscreen ?
<wpwrak> that's something i need to look into. i noticed that it sometimes doesn't seem to go where i want it to go. i had it working in the past, though.
<wpwrak> (seem) perceived indirectly - my home-made pcbs don't don't have silk screen anyway
<wpwrak> maybe check the gerber options
<wpwrak> well, plot (gerber/PS/whatever)
<nicksydney> did that but no luck
xiangfu has quit [Remote host closed the connection]
<nicksydney> inside the .kicad_pcb file changing the 'layer Cmts.User' to 'layer F.SilkS" works
<nicksydney> but why it default to cmts.user
<nicksydney> wpwrak: it shows when i modify the file by hand http://gerblook.org/pcb/f3XDXcHCgUMvnaBc4Xud3N#front
atommann has joined #qi-hardware
atommann has quit [Quit: Leaving]
atommann has joined #qi-hardware
atommann has quit [Ping timeout: 245 seconds]
atommann has joined #qi-hardware
jekhor has quit [Ping timeout: 240 seconds]
pcercuei has quit [Ping timeout: 252 seconds]
atommann has quit [Quit: Leaving]
<whitequark> ysionneau: your rf chip?
<whitequark> something involving processing on fpgas, I guess?
<larsc> whitequark: that looks quite good already
<whitequark> larsc: the lens? it's pretty bad imo
<whitequark> compared to the factory-made glass ones I've seen, of course :) I'm somewhat of a perfectionist
<ysionneau> whitequark: I'm doing a driver for my company's rf chip
<ysionneau> I'm learning the RF world :)
<ysionneau> LTE rf chip
<whitequark> ouch
<whitequark> sounds like pain
<ysionneau> yes there are literally tons of parameter to play with
<ysionneau> to select power amplifier gain, bandwidth, frequency, dc offset calibration etc etc
<ysionneau> 256 32bits registers :p
<whitequark> 1) derive a single parameter, like, "RX quality" 2) use a genetic algorithm
<whitequark> actually, that sounds just insane enough to work
<whitequark> cc DocScrutinizer05
<ysionneau> you got pll/mixer/filter settings
<ysionneau> you need to be able to compute the output power taking all the rf chain into account, because the baseband tells you "I want 20 dBm output"
<ysionneau> you need to figure out which gains to apply
<ysionneau> fortunately I am not writting the Layer1 code, so all the scheduling is already done, I just need to control correctly the rf chip :p
<larsc> is this a sigle chip solution?
<wpwrak> whitequark: now, make it a bit bigger and then we'll wait for you to announce the first pictures of not only an earth-like planet of a distant star, but also of its inhabitants, waving :)
<ysionneau> larsc: 1 baseband and 1 rf chip
<ysionneau> no code running on the rf chip
<larsc> and the specs?
<ysionneau> what do you mean?
<larsc> sampling rate, bw, etc
<ysionneau> bandwidth can be 20 15 10 5 MHz
<ysionneau> working on band A/C/D of LTE
<ysionneau> TDD/FDD
<ysionneau> it's full analog so no sampling
<ysionneau> usually we put ADC/DAC between the baseband and the rf chip
<larsc> ah ok
<ysionneau> it does carrier agregation
<ysionneau> 2RX/2TX
<ysionneau> maybe I shouldn't be giving all those informations :)
<ysionneau> not sure what is public or not
<ysionneau> probably nothing is public since the rf ic is just out from fab
<larsc> yea, probably not talk about it then
<ysionneau> my fault
<ysionneau> larsc: does your company do lte rf chips?
<ysionneau> ah yes
<ysionneau> AD9357
<ysionneau> ah you got integrated dac/adc
<ysionneau> actually our next baseband will have integrated dac/adc I think, funny we don't put them in the same chip :)
<ysionneau> I think we used this rf chip (ad9357) actually :o
<larsc> ysionneau: sometimes it's a question of yield
* ysionneau trying to translate yield
<larsc> and sometimes it's a question of what can be connected better
<larsc> ysionneau: how many of the chips are actually going to work
<larsc> different components on a chip have different failure rates
<ysionneau> yes ok
<larsc> so if you have a lot of components on one chip and only one fails you have to throw away the whole chip
<ysionneau> aah yes I see
<larsc> or as they do with cpus sell the quad core as a dual core
<ysionneau> but funny that we tend to put adc/dac on BB and your company tend to put it in rf chip
<larsc> well we don't have a baseband, so its simple ;)
<larsc> our latest and greatest chip is the ad9361, which can also be used for things like LTE
<larsc> pcercuei uses it to run his own radio station though
<ysionneau> ah nice chip!
<ysionneau> pretty swiss knife kind of rf
<whitequark> wpwrak: nope, wouldn't work
<whitequark> it doesn't make sense to make a telescope that searches for exoplanets using lenses, as it's incredibly hard to make one with proper characteristics; it deforms under its own weight
<wpwrak> maybe if you add some accelerant to the plastic
<whitequark> not to mention making such a huge uniform slab of material is incredibly hard in the first place
<whitequark> hence all big telescopes are reflectors
<wpwrak> naw, make it smart, not big :)
<wpwrak> and don't forget the accelerant. otherwise it'll take years for the light to arrive
<whitequark> meh
<whitequark> I believe I recently read an analysis on how to make a telescope that can resolve meter-sized features on exoplanets
<whitequark> the trick is to completely get rid of lenses or mirrors, and use gravity wells for that
<whitequark> i.e. you assemble a telescope as a set of spacecraft at somewhere around 20 AU, and use the Sun for refracting the light
<whitequark> then numerically reconstruct the picture
<ysionneau> that would be the "longer" telescope ever :)
<whitequark> yup
<wpwrak> so that's what scotty and spock are doing these days
<whitequark> hehe
jekhor has joined #qi-hardware
jekhor has quit [Ping timeout: 240 seconds]
FDCX has quit [Ping timeout: 265 seconds]
FDCX has joined #qi-hardware
sb0 has quit [Quit: Leaving]
<nicksydney> wpwrak: read your email in the mailing list and i can contribute my time for anelok .. that's the only thing i can help you with the project :)
wolfspraul has quit [Ping timeout: 240 seconds]
wolfspraul has joined #qi-hardware
Lumocolor has quit [Ping timeout: 240 seconds]
<DocScrutinizer05> (LTE chip) I wonder how that critter is supposed to *ever* pass certification, when it's missing the radio stack and the calibration