--- Log opened Fri Dec 16 00:00:29 2016 | ||
shorne | olofk: cool | 08:33 |
---|---|---|
shorne | fyi, I did my gdb testing with or1k test. I can get all sprs etc and using yao's suggestions I have elliminated a lot of code | 08:48 |
olofk | Awesome! | 08:54 |
olofk | Removing code is the best feeling :) | 08:54 |
stekern | especially if it's someone elses code ;) | 08:59 |
shorne | yeah, hope I didnt break much | 09:19 |
shorne | dejagnu still running | 09:20 |
shorne | ok, something is not good # of unexpected failures 3202 | 09:58 |
shorne | vs 405 before | 09:58 |
shorne | ok, bad test setup | 10:43 |
shorne | # of unexpected failures 406 | 10:48 |
shorne | ok better | 10:49 |
olofk | So just a single extra failing test. That's good | 12:08 |
olofk | I wonder if we should try gdb->openocd->target to see that everything works. | 12:09 |
olofk | Hmmm... have I been disconnecting a lot lately? A bit worried that my faitful old raspberry pi is about to give up. See a lot of eth0 link down in dmesg | 14:45 |
olofk | Off-topic, but might still be the right place to ask. I want to do a simple circuit that can light up a LED when two pins are disconnected. Ten years ago I would have been able to do this, but I completely forgot how to even get started with this | 14:52 |
olofk | I guess I just need a transistor, a battery, a LED and one or two resistors | 14:53 |
kc5tja | Depends onhow you approach the problem. | 15:03 |
kc5tja | You could put the transistor across the LED, so that then base is connected to emitter (via a resistor of course!), the transistor shunts power away from the LED, and thus does not light. | 15:04 |
kc5tja | When that base/emitter junction breaks, the transistor turns off, allowing collector current to flow through the LED and light. | 15:05 |
kc5tja | However, this is a pretty power-hungry way of doing things; you're always going to be drawing collector current, regardless of the base/emitter connection. | 15:05 |
olofk | I hope to run it on a coin cell | 15:09 |
kc5tja | Choose your collector resistor wisely. ;) | 15:40 |
stekern | you can even solve it without a transistor, just connect the wires over the LED and have the resistor connected between the anode and vdd. You're going to drain the battery pretty quickly that way though ;) | 15:50 |
olofk | http://www.falstad.com/circuit/circuitjs.html?cct=$+1+0.000005+10.634267539816555+43+2+50%0Aw+384+240+384+272+1%0Aw+384+208+384+160+1%0A172+384+112+384+16+0+6+1.5+1.5+0+0+0.5+Collector+Voltage%0Ag+384+272+384+352+0%0At+336+224+384+224+0+1+-1.3368536855467952+0.13264473452982517+400%0Aw+304+224+336+224+1%0Ar+384+112+384+160+0+500%0Ar+192+224+304+224+0+500%0As+192+112+192+176+0+1+false%0Aw+192+176+192+224+0%0Aw+192+112+384+112+0%0A162+496+192 | 15:52 |
olofk | Woah. That was the mother of all URLs | 15:52 |
olofk | What's the typical current consumption of a dimly lit LED? Maybe it's less power consuming to run the LED all the time instead | 15:58 |
olofk | There! http://tinyurl.com/hxf4za7 | 16:46 |
shorne | olofk: I did try gdb->openocd->target and it does seem to all work | 16:48 |
shorne | I can access registers | 16:48 |
shorne | also, I think the extra failure was showing up since I rebased gdb | 16:49 |
shorne | I can access sprs | 16:49 |
olofk | That's great | 16:50 |
shorne | the main changes I did were in patch 3/5, Ill let those sit for a while | 16:53 |
shorne | if anyone else wants to test it will be helpful | 16:53 |
shorne | If someone wants me to push this all to openrisc/binutils-gdb I can | 16:53 |
shorne | in a few days Ill squash them all and send more patches to the gdb list | 16:54 |
olofk | shorne: I read through the patches quickly, but haven't given them a proper review | 17:11 |
shorne | actually, last time I ran tests (for first gdb submission after rebase) it was # of unexpected failures 411 | 17:24 |
shorne | so it seems my recent parches improve things | 17:24 |
--- Log closed Sat Dec 17 00:00:31 2016 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!