#avr | Logs for 2015-12-02

Back
[02:55:01] <Jartza> morning
[03:15:06] <Fleck> morning
[03:15:38] <Fleck> Jartza: well, I guess, if no word about GTCCR in errata then you are probably doing it wrong! :D
[03:38:23] <Jartza> Fleck: I guess so too, I only tried it quickly
[03:40:40] <Jartza> I did set TSM and PSR0 bits to 1 in GTCCR and then set up the timers and finally wrote zero to TSM bit
[03:40:47] <Jartza> but didn't get what I wanted
[03:57:27] <Jartza> maybe I need to revisit that
[03:57:40] <Fleck> I am doing like this: GTCCR = (1<<TSM)|(1<<PSRASY)|(1<<PSRSYNC); ... setting timers ... GTCCR = 0;
[03:59:34] <Jartza> yeah. on attiny85 it's quite different
[04:00:26] <Jartza> GTCCR also contains other bits needed for timers
[04:01:01] <Jartza> PWM1B, COM1B0, COM1B1, FOC1B, FOC1A ... :)
[04:01:18] <Jartza> ohhhhh!
[04:01:20] <Jartza> now that's it
[04:01:31] <Jartza> I only read the first GTCCR definition
[04:01:42] <Jartza> about setting the TSM and PSR0
[04:01:52] <Jartza> but continuing to timer/counter1 they revisit the GTCCR
[04:01:57] <Jartza> and there's also PSR1
[04:01:59] <Jartza> d'oh
[04:02:13] <Jartza> so I'm only keeping the timer0 prescaler in reset, not timer1
[04:02:16] <Jartza> explains
[04:02:47] <Jartza> I need to set TSM, PSR0 and PSR1 -> configure timers -> zero TSM
[04:02:50] <Fleck> :)
[04:03:28] <Fleck> you welcome man! ;p
[04:03:36] <Jartza> heh :)
[04:03:43] <Jartza> yea, thanks
[04:04:03] <Jartza> sometimes I hate attiny85 datasheet, although I have to admit atmel datasheets are generally quite good
[04:04:22] <Jartza> but some registers are defined in multiple places and there's no one place where you can see them all gathered
[04:04:35] <Fleck> yeah, stm32 docs are soo much worse :(
[04:04:45] <Jartza> yea
[04:04:50] <Jartza> and freescale docs are crappety-crap
[04:04:57] <Jartza> https://i.imgur.com/f9qyy76.png
[04:05:07] <Fleck> how to go now, afk, take care!
[04:05:40] <Jartza> ...and then plenty of pages below
[04:06:12] <Jartza> https://i.imgur.com/1yXqXbL.png
[04:07:01] <Jartza> also there's no mention about TSM anymore in the later section
[04:07:40] <Jartza> actually. nowhere does it state that TSM keeps PSR1 asserted too, only PSR0
[04:07:45] <Jartza> so I'm not still sure it works
[05:10:45] <malinus> Fleck: don't even get me started
[05:11:21] <malinus> you guys know the PSOC?
[05:11:31] <malinus> know/heard of
[05:14:04] <Jartza> yes
[05:14:14] <Jartza> unfortunately :D
[05:43:42] <Jartza> well. running in simulator looks like TSM bit does not keep PSR1 asserted
[05:43:53] <Jartza> so, does not work on attiny85
[05:50:14] <Jartza> so that GTCCR trick does NOT work on attiny85 and actually datasheet does not even say it works :)
[06:44:04] <Lambda_Aurigae> what trick is that Jartza ?
[06:53:14] <Haohmaru> has anyone messed around with a wiznet W5500?
[06:53:39] <Tom_itx> some here have but not me
[06:54:23] <Haohmaru> could i have killed it by powering it up without having all pins connected?
[06:55:03] <Tom_itx> i just said.. not me
[06:56:12] <merethan> Hi all
[06:57:09] <merethan> I have this utmost curious case of my resulting binary code growing after I removed a significant block of src code. How can this happen?
[06:57:51] <Tom_itx> lost code effect
[06:58:00] <Lambda_Aurigae> Haohmaru, what's your supply voltage?
[06:58:29] <Haohmaru> 3.24V
[06:58:48] <merethan> Tom, is this really a thing?
[06:59:36] <Lambda_Aurigae> merethan, it all depends on your optimization levels I suspect.
[06:59:47] <merethan> I can't really wrap my head around cutting src but increasing in bin. (WinAvr-gcc by the way.)
[06:59:55] <merethan> -Os
[07:00:34] <Tom_itx> merethan, yeah.. just like Santa Claus
[07:00:37] <Haohmaru> you tried clean/rebuild
[07:00:43] <merethan> I did.
[07:01:41] <Haohmaru> check if you also included some huge chunk of unused code now
[07:02:08] <merethan> I can't see how -removing- does that.
[07:02:14] <Haohmaru> i think it may happen.. like.. having libc and/or math stuff included
[07:02:31] <drymek> I’m a beginner, but as far as i remember there is a flag to remove unused code for linker…
[07:02:32] <Haohmaru> i can, in my setup such things can happen
[07:02:59] <Lambda_Aurigae> merethan, without some very specific info we can't help...like, the code,,,original and after removed..along with with might be linked in.
[07:03:30] <merethan> It's part of ASF, so a little hard to post.
[07:04:01] <merethan> I'm trying to slim down a USB/CDC stack to fit in the 8k bootsector.
[07:04:06] <Haohmaru> having changed some project compile flags, yet some things are not getting recompiled because they exist (but the new compile settings would generate different files) and then at some point, if i remove stuff and the things actually _do_ get recompiled - boom, the new compiler settings would take effect then
[07:04:19] <Lambda_Aurigae> then I suggest asking atmel.
[07:09:03] <merethan> I think I found a possible reason: The function in question here only had return true statements and the optimizer removed anything that came of it ever returning false elsewhere. In my cutting code venture I added one false return.
[07:10:00] <merethan> I suspect this to be the reason of this phantom bin code.
[07:10:53] <Haohmaru> or maybe it was never the full amount of code in the bin, untill now
[07:11:08] * Haohmaru plays the x-files theme
[07:13:02] <merethan> Maybe perhaps.
[07:13:30] <merethan> Possible reason above has been proven false in the mean time :/
[07:20:26] <Lambda_Aurigae> http://ars.userfriendly.org/cartoons/?id=20151202
[07:20:30] <Lambda_Aurigae> old, but, gotta love it.
[07:43:20] <Jartza> Lambda_Aurigae: asserting both timer prescalers to reset-state so you can set the counter value and then start all timers/counters at the same time
[07:43:24] <Jartza> so you can have them in sync
[09:26:32] <tekkkz> Hello
[09:28:04] <tekkkz> what is "bandgap" at adc?
[09:29:34] <LeoNerd> As in "bandgap reference"?
[09:29:48] <LeoNerd> It's just a semiconductor technology, a way of making precise reference voltage generators
[09:43:33] <Snert> LeoNerd: good question - good refresher.
[09:43:37] <Snert> https://en.wikipedia.org/wiki/Bandgap_voltage_reference
[09:44:26] <LeoNerd> Snert: not my questoin ;) I was answering it
[09:44:44] <Snert> lost in the scroll :)
[11:57:43] <ferdna> does anyone owns a smoothieboard?
[12:20:43] <antto> smoothie? that sounds disturbing
[12:21:39] <ferdna> antto, yes. smoothie.
[12:21:40] <ferdna> http://shop.uberclock.com/collections/smoothie/products/smoothieboard
[12:25:14] <antto> well, it looks like something quite serious.. but why that silly name then..
[12:29:49] <ferdna> antto, no idea... hehehe...
[13:39:13] <lald> https://www.youtube.com/channel/UCFksG7xtzD42KCCyk3gUjHQ <-- this guy has some good AVR videos. finding them helpful as a noob.
[15:18:41] <DrLuke> Hi, I'm trying to write a timer ISR, but it says that "ISR(TIMER0_COMPA_vect)" is an unknown vector
[15:18:44] <DrLuke> on an attiny20
[15:19:13] <DrLuke> where can I look up all the available vector names?
[15:20:21] <DrLuke> I've looked here, but attiny20 isn't featured: http://www.nongnu.org/avr-libc/user-manual/group__avr__interrupts.html
[15:22:05] <RikusW> look in the tiny20 header file
[15:22:31] <RikusW> its all in there
[15:28:54] <cehteh> the avr-libc website has also a nice table which lists them
[15:31:19] <lald> Can anyone give me an example for reference of a commercial product made with AVRs?
[15:31:32] <lald> preferable 8-bit but w/e
[15:34:07] <cehteh> prolly the computer where you just type this, your washing machine, the thermostat on your radiator, ....
[15:34:28] <cehteh> basically they are everywhere
[15:35:01] <DrLuke> lald: Flarm
[15:35:59] <lald> thanks
[15:37:12] <lald> DrLuke: is that a brand, or do you mean to say lots of flight alarms use Atmel?
[15:37:14] <lald> *avr
[15:37:27] <DrLuke> lald: The official flarm brand hardware uses AVRs
[15:37:34] <DrLuke> pretty much every glider in europe has one inside
[15:38:01] <lald> Ah okay
[15:39:41] <DrLuke> lald: Pretty much the same system is also used in mines, but I don't know what hardware they use. Wouldn't be surprised if it's AVRs aswell though.
[15:46:28] <lald> evidently these aussies are also fans :) http://www.reliablesoftware.com.au/products/Products.html
[15:46:36] <lald> at the very bottom, "We use ATMEL..."
[16:17:24] <malinus> Jartza: what do you have against the PSOC :)?
[18:15:49] <Jartza> evening
[18:25:48] <Lambda_Aurigae> morning.
[18:27:47] <Jartza> hello, third star of pool of Harmony
[18:28:15] <Jartza> :)
[18:30:15] <Lambda_Aurigae> not feeling very harmonious tonight.
[18:30:25] <Lambda_Aurigae> want to kill and maim a few sales people...in that order.
[18:32:54] <Jartza> isn't that the normal status quo with salesmen?
[18:38:47] <Lambda_Aurigae> today it's gotten rather bad.
[18:39:08] <Lambda_Aurigae> they should all be hanged, shot, drawn and quartered, then burned at the stake,,,,then the site nuked from orbit, just to be certain.
[18:40:20] <Jartza> :)
[18:40:32] <Jartza> I generally agree
[18:47:06] <Lambda_Aurigae> they are forever telling the customer the copiers can do such and such then leaving it to me to have to explain that it can do this or that but not the two together like the salesman said,,,,or that it just can't do that as you need a different model for that function.
[18:48:29] <Lambda_Aurigae> today they sold two different models and told the customer we could make them both do the same thing the same way...they have different software, different controllers, and the interfaces are just different enough that the customer was pissed at me for not making them both the same.
[18:48:57] <Jartza> yea :(
[18:49:02] <Jartza> sounds like a salesmen :(
[18:49:04] <Lambda_Aurigae> one is an office copier,,,smaller with more features.
[18:49:18] <Lambda_Aurigae> the other is an entry level production, high speed big iron kinda machine.
[18:49:23] <Lambda_Aurigae> larger, faster, fewer features.
[18:49:33] <Lambda_Aurigae> so, I'm told to make the big one work just like the little one.
[18:50:01] <Lambda_Aurigae> so I dumbed down the little one to make them work similar.....and was then told to turn back on features afterwards...and to turn them on for the production machine too...
[18:50:19] <Lambda_Aurigae> features the production machine does not have.
[18:51:09] <Lambda_Aurigae> I finally got done what I could do, called my boss and let him know what was going on, got my paperwork signed, and left....leaving the salesman to explain why they sold the customer a load of bullshit..
[18:52:48] <Lambda_Aurigae> he walked in after I had been there for 4 hours...I handed him a list of things the customer claimed they were told that were not doable,,,saluted him,,,and told him it was his problem to work it out...then I walked out.
[18:53:46] <Jartza> well. got what he deserved.
[18:53:55] <Lambda_Aurigae> http://www.atmel.com/Microsite/powered-by-atmel/default.aspx?utm_campaign=2015%20StockingStuffer&utm_medium=email&utm_source=Eloqua&elqTrackId=4D882EF440FF7ACD969256286FF34BE5&elq=2cebbeefec1949caa60ba76000fd617f&elqCampaignId=316&elqaid=1001&elqat=1
[18:53:58] <Jartza> there's always a limit what you Can sell
[18:54:06] <Lambda_Aurigae> this for the person earlier asking about things powered by atmel chips.
[18:54:29] <Lambda_Aurigae> most of that is arm, not avr, but still atmel stuff.
[18:55:21] <Jartza> Tagsu is missing from list ;)
[18:57:57] <Lambda_Aurigae> aawww.
[18:58:07] <Lambda_Aurigae> it came in an email today actually,,that list.
[18:59:52] <Jartza> oh, cool
[19:00:17] <Lambda_Aurigae> I get emails from atmel all the time.
[19:00:30] <Jartza> me too, but haven't checked those today
[19:00:45] <Lambda_Aurigae> invites to seminars and such mostly....things that are too far away for me to go to and scheduled for days when I have to work..
[19:01:17] <Jartza> all of them are
[19:01:26] <Jartza> I get lot of invitations to seminars in US
[19:01:33] <Jartza> takes me about 2k€ just to fly there :D
[19:01:52] <Lambda_Aurigae> 1 major home improvement project to finish up, hopefully this weekend, and I should be able to setup the electronics lab again to start playing.
[19:02:46] <Lambda_Aurigae> well, if you ever make it to Iowa, USA, let me know. I have a comfey couch you could spend a couple nights on to save a hotel room....and if it's in the winter time I have a whole apartment unused.
[19:02:47] <Jartza> yay
[19:02:50] <Jartza> that's always cool
[19:03:03] <Jartza> I'll keep that in mind :)
[19:03:22] <Jartza> never been in Iowa actually
[19:03:26] <Lambda_Aurigae> I'm about an hour north of Des Moines Iowa.
[19:03:42] <Lambda_Aurigae> right close to the center of the country we are.
[19:04:05] <Jartza> somewhere in the middle
[19:04:08] <Jartza> yea
[19:05:00] <Lambda_Aurigae> https://www.google.com/maps/place/1729+Marble+Rd,+Union,+IA+50258/@42.1732963,-93.0957565,817m/data=!3m1!1e3!4m2!3m1!1s0x87efb535b9207049:0xa224e959427fd913
[19:05:02] <Lambda_Aurigae> right there.
[19:06:24] <Jartza> ahh, looks comfy, countryside
[19:06:29] <Lambda_Aurigae> the house on the northwest corner of that intersection is mine...and the building on the southwest corner is my workshop.
[19:06:47] <Jartza> nice
[19:07:09] <Jartza> I also live an hour from "bigger city", but what's big in finnish scale is still quite small :)
[19:07:16] <Jartza> but that big city is being helsinki
[19:07:26] <Jartza> some say it's the only city in finland :)
[19:07:35] <Lambda_Aurigae> 6 miles to the nearest gas station....25 miles to the nearest walmart and grocery store.
[19:07:38] <Jartza> ~600k people there
[19:07:58] <Lambda_Aurigae> 50K people in the city 25 miles from here.
[19:07:59] <Jartza> I have 10km to neareset grocery and gas station and... anything
[19:08:13] <Jartza> which is about 6 miles
[19:08:33] <Jartza> nothing here but deers and bears
[19:08:50] <Jartza> and lynx
[19:09:38] <Jartza> now I guess it's time to get some sleep
[19:09:41] <Jartza> getting close to 3am
[19:10:03] <Lambda_Aurigae> Finland would be a fun place to visit.
[19:10:22] <Jartza> might be, but I don't recommend wintertime :)
[19:10:31] <Lambda_Aurigae> right now, however, I'm not leaving this country...too many people wanting to blow up americans.
[19:10:36] <Lambda_Aurigae> I love winter!
[19:10:46] <Jartza> oh... and winters have warmed up
[19:10:49] <Lambda_Aurigae> bad enough people keep shooting people here.
[19:10:59] <Jartza> I don't really think anybody wants to blow up americans here
[19:11:04] <Lambda_Aurigae> I want to go to iceland and greenland too.
[19:11:06] <Jartza> finland is still peaceful and quiet
[19:11:19] <LeoNerd> Jartza: I wouldn't mind blowing up a few. Well, a few *specific* ones...
[19:11:44] <Jartza> LeoNerd: I guess there are also americans who wouldn't mind blowing up few specific ones ;)
[19:11:59] <Jartza> so can't blame you
[19:12:01] <LeoNerd> :)
[19:14:01] <Lambda_Aurigae> I know quite a few americans I would like to blow up,,,or at least shoot to wound a few times.
[19:14:09] <Lambda_Aurigae> most of them sales dweebs.
[19:15:31] <Jartza> now I want to go shoo... counting some sheep :)
[19:15:34] <Jartza> so, good night!
[19:15:42] <Lambda_Aurigae> hmm..just got my november bonus figures...should get about 550 dollars.
[19:15:47] <Lambda_Aurigae> not a bad bonus.
[20:37:35] <lald> Lambda_Aurigae: thanks
[20:37:43] <Lambda_Aurigae> welcome.
[20:37:49] <lald> awesome
[20:37:53] <lald> this is exactly what I needed
[20:38:12] <Lambda_Aurigae> that's direct atmel marketing stuff too.