#avr | Logs for 2015-07-12

Back
[05:58:59] <antto> so, fuses can be set in the firmware and are then compiled into the .elf file with avrgcc
[05:59:12] <antto> does avrdude flash .elf files then?
[06:39:43] <Lambda_Aurigae> antto, I think there is a way to do it through a makefile.
[06:43:01] <antto> :/
[06:57:21] <Lambda_Aurigae> http://www.avrfreaks.net/forum/help-avrdude-and-fuse-program-elf-file
[06:58:06] <Lambda_Aurigae> avrdude can do it but you need a script to extract the hfuse, lfuse, and efuse from the .elf file first.
[07:03:14] <antto> hmz
[07:03:25] <Lambda_Aurigae> google search for avrdude fuses .elf
[07:03:37] <Lambda_Aurigae> will provide you with many minutes of reading.
[07:03:47] <antto> i see nao
[07:04:04] <antto> i wonder if the elf file could be converted to hex WITH the fuses
[07:04:57] <Lambda_Aurigae> avr-objdump -d -S -j.fuse file.elf
[07:04:58] <Lambda_Aurigae> file.elf: file format elf32-avr
[07:04:58] <Lambda_Aurigae> Disassembly of section .fuse:
[07:04:58] <Lambda_Aurigae> 00820000 <__fuse>:
[07:04:58] <Lambda_Aurigae> 820000: ff 1f ff
[07:05:28] <Lambda_Aurigae> however, I don't know that avrdude can write that...might..
[07:05:31] <Lambda_Aurigae> would have to try it.
[07:07:34] <Lambda_Aurigae> http://www.avrfreaks.net/forum/fuse-bits-c-source-avr-libc-and-program-avrdude?name=PNphpBB2&file=viewtopic&t=69013
[07:07:42] <Lambda_Aurigae> read last entry at the bottom of the page.
[08:07:28] <antto> yeah so.. it can be done with a makefile
[08:08:43] <Lambda_Aurigae> yeah.
[08:08:53] <Lambda_Aurigae> there are multiple examples of it out there.
[08:08:56] <Lambda_Aurigae> google is your friend.
[08:10:04] <antto> thing is.. i'm thinking of doing it slightly different
[08:10:16] <antto> i'd make a .bat file for flashing the firmware
[08:10:31] <Lambda_Aurigae> makefile is just a batch file with a fucked up format.
[08:10:38] <antto> cuz i don't really understand these darn makefiles
[08:10:42] <Lambda_Aurigae> or versa-visa.
[08:11:02] <antto> iirc i've set up CodeBlocks to compile projects with avrgcc without makefiles
[08:11:03] <Lambda_Aurigae> makefile creation is black magic of the worst sort.
[08:11:20] <Lambda_Aurigae> you have to sell your dog's soul and the foreskin of your first born male child to understand it.
[08:11:39] <Lambda_Aurigae> I've setup .sh files to do compiles and uploads without makefiles too.
[08:11:45] <antto> yeah, and i have neither a dog nor a child
[08:13:16] <antto> so, this obj-copy tool is used to extract fuses from the elf file, then split them into sepparate hex files, and then each hex can be flashz0r3d with avrdood
[08:13:59] <Lambda_Aurigae> never use avrdood
[08:14:14] <Lambda_Aurigae> and flashz0r3d sounds like something from a 12 year old.
[08:14:28] <antto> ;P~
[08:15:44] <Lambda_Aurigae> I have never understood the use of numbers in place of letters.
[08:15:52] <Lambda_Aurigae> I can see it for passwords and such.
[08:15:59] <Lambda_Aurigae> but in normal conversation it is just fucking annoying.
[08:17:27] <antto> substituting 3 for e is annoying?
[08:18:08] <antto> heh, you don't know what happens in my native language in that respect.. now THAT's annoying
[08:18:53] <Lambda_Aurigae> I don't know what your native language is.
[08:18:56] <antto> substitute 6 for "sh" cuz 6 is written as "SHest" and 4 for "ch" cuz it's written as "CHetiri" x_x
[08:19:14] <Lambda_Aurigae> but, yeah, substituting 3 for e is very annoying when I have text-to-speech running.
[08:19:16] <antto> i suspect that also happens in russian
[08:19:19] <bedah> i heard when typing arabic with western keyboards, some use numbers for some letters which are missing in the roman alphabet
[08:20:20] <antto> text-to-speech? okay.. yes.. that would suck
[08:20:21] <Lambda_Aurigae> bedah, yeah. And how do you type right to left? Them Arabs is kinda funky when they write.
[08:21:10] <bedah> i mean, like "salam aleikum", that's transliterated to western, LTR
[08:21:44] <Lambda_Aurigae> I prefer cotto salami myself, but, yanno, I don't speak Farsi...nor read it.
[08:21:58] <bedah> ah.. there it is: https://en.wikipedia.org/wiki/Arabic_chat_alphabet
[08:23:01] <antto> wow, that's messed up ;]
[08:23:06] <bedah> the chinese use numbers in chats, too
[08:23:09] <Lambda_Aurigae> yeah it is.
[08:23:55] <antto> it's one thing to substitute letters cuz they look somehow similar.. it's another thing to do it cuz you don't have enough
[08:23:59] <Lambda_Aurigae> even when reading text, the number/letter substitution thing annoys me because I site read words and for some reason my mind picks the word out as being misspelled and I have to pause to figure out what it is.
[08:24:18] <Lambda_Aurigae> sight read..not site read
[08:24:20] <Lambda_Aurigae> sheesh.
[08:24:24] <Lambda_Aurigae> too early to think here.
[08:24:36] <Lambda_Aurigae> and I'm 3 hours late for breakfast.
[08:24:39] <antto> sight read?
[08:25:00] <Lambda_Aurigae> I don't sound out words in my head like they tried to teach me to do as a kid.
[08:25:04] <Lambda_Aurigae> it doesn't work for me.
[08:25:30] <antto> oh
[08:25:34] <Lambda_Aurigae> like, gr8, means jack shit to me without actually thinking about it.
[08:25:38] <Lambda_Aurigae> which slows down my reading.
[08:25:44] <antto> that's.. interesting
[08:25:53] <Lambda_Aurigae> it's a byproduct of borderline autism.
[08:26:13] <bedah> "gn8" can be used in english and german, if you read out the 8
[08:26:31] <bedah> "AVR" can be spoken "ever"?
[08:26:53] <antto> ah vuh ruh ;P~
[08:27:07] <bedah> or it would be "Ah Fao Air" in german..
[08:27:12] <Lambda_Aurigae> when I see it all capitalized I read out individual letters.
[08:27:30] <Lambda_Aurigae> I see it as A V R
[08:27:35] <Lambda_Aurigae> kindasorta.
[08:27:43] <antto> ;]
[08:27:57] <bedah> Ay Wee Ar? - depends on your language
[08:27:59] <Lambda_Aurigae> rather than ahvuhruh.
[08:28:05] <Lambda_Aurigae> Ay Vee Are
[08:28:11] <Lambda_Aurigae> Aye Vee Are
[08:28:19] <Lambda_Aurigae> that's not right either.
[08:28:26] <Lambda_Aurigae> Aey Vee Are
[08:28:41] <antto> ah vuh ruh is how i pronounce it on my native language
[08:28:56] <Lambda_Aurigae> Aee Vee Are
[08:28:57] <bedah> Ah Voo Roo? :D
[08:29:16] <Lambda_Aurigae> or, I could switch to thinking in french which really fucks it up.
[08:29:23] <antto> muhaha
[08:30:51] <antto> Lambda_Aurigae do you hear your thoughts then?
[08:32:11] <bedah> i can watch me thinking, too, it's distracting when i do it ;)
[08:33:49] <bedah> so.. is here someone to help me with an AVR-problem? i might want better floating point emulation than single floats with avr-gcc
[08:34:26] <bedah> i've looked around, there are some better libraries fro X86 etc, but way too big or complex for AVR
[08:34:26] <Lambda_Aurigae> antto, usually..
[08:34:45] <Lambda_Aurigae> bedah, I use fixed point math myself.
[08:35:42] <Lambda_Aurigae> take a floating point number in text format or whatever and shift the decimal points 2 or 4 positions to the right to turn it into an integer or long integer...do all the math...then shift back.
[08:36:15] <Lambda_Aurigae> there are fixed point math libs out there to do it for you. I usually do it on a case by case basis when needed right in my code.
[08:36:53] <bedah> i know fixed point floats, for simple calculations that is good. but for example, the longitude/latitude from gps signal does not fit in 32bit float
[08:37:58] <bedah> 64bit float would be fine, but these are disabled in avr-gcc
[08:38:41] <bedah> some calculations per second would be enough for me
[08:39:06] <Lambda_Aurigae> fixed point would work fine for that..
[08:39:17] <Lambda_Aurigae> how do you get the gps data? what format?
[08:39:49] <Lambda_Aurigae> hell, early gps hardware didn't use floating point processing at all.
[08:39:53] <Lambda_Aurigae> and the satellites don't.
[08:40:42] <bedah> raw gps data is easy to parse, will give me arcseconds, but further calculations are more difficult
[08:41:32] <bedah> for example, when i want to calc some celestial positions, the easiest way would be, if i could use better floats
[08:41:36] <Lambda_Aurigae> latitude and longitude should always be worked with a fixed number of digits anyhow in my opinion.
[08:43:22] <Lambda_Aurigae> and I'm a firm believer of not doing math with a number of significant digits beyond what your initial measurements provide.
[08:45:19] <Lambda_Aurigae> they limit the normal float/double to 32bits just because of the limitations on the chips themselves for AVR.
[08:45:59] <Lambda_Aurigae> you Could port the x86 64bit floating point libraries to AVR.
[08:46:50] <Lambda_Aurigae> or do everything in signed long long by just shifting the decimal point over 12 digits or something.
[08:47:01] <bedah> oh.. someone did it already, some years ago https://www.mikrocontroller.net/topic/85256
[08:47:40] <Lambda_Aurigae> that won't work on my AVRs though.
[08:47:50] <Lambda_Aurigae> mine don't speak German.
[08:50:02] <Lambda_Aurigae> I have them all trained to only speak English. Most of them are even trained for US Southern variant but some picked up the New England accents for some reason.
[08:50:20] <Lambda_Aurigae> at least none of them speak Canadian, eh?
[12:21:25] <rue_house> who dosn't speak canadian?
[12:24:18] <FL4SHK> I only speak American, sorry
[12:33:12] <ferdna> me!
[14:39:57] <antto> i speek fruent engrish
[15:16:11] <Lambda_Aurigae> I speak fluent gibberish.
[15:33:28] <bedah> i speak german, english and bavarian
[15:35:18] <Lambda_Aurigae> can you make bavarian cream donuts?
[15:35:28] <bedah> krapfen?
[15:36:14] <bedah> "berliner" in northern germany. but no, i haven't heired the cooking skills from my gramma
[15:37:02] <bedah> i can let bavarian beer disapear :D
[15:40:21] <bedah> then.. recently i ordered this atmega8 clone, "LGT8F88A", just to see how it compares to an original one
[15:42:29] <Lambda_Aurigae> didn't know there was such a thing.
[15:43:01] <bedah> http://imall.itead.cc/development-platform/arduino/arduino-compatible-mainboard/iteaduino-lite.html
[15:43:48] <bedah> you can only get it on this arduino clone board, with bootloader, ISP is not the same
[15:44:00] <Lambda_Aurigae> then screw it.
[15:44:03] <Lambda_Aurigae> I don't do ardweeny.
[15:45:02] <Lambda_Aurigae> also, not available in dip package so I'm definitely not interested.
[16:30:27] <antto> pukeduino :P~
[16:30:43] <Hexum064> ?
[16:34:10] <Lambda_Aurigae> ardweeny
[16:34:33] <Hexum064> Thanks for your help yesterday Lambda_Aurigae
[16:34:45] <Lambda_Aurigae> I helped?
[16:34:52] <Lambda_Aurigae> I must have had a fever and been delusional.
[16:35:01] <Hexum064> lol
[16:44:32] <Jartza> greetings from Tartu, Estonia
[16:45:06] <Jartza> there's a mosquito in the hotel room, but I can't put light on as I would wake up wife and kid
[16:45:33] <Jartza> and can't sleep because I hear the mosquito :D
[17:14:41] <Lambda_Aurigae> Eastonia...is that anywhere Elbonia?