#avr Logs

Apr 15 2022

#avr Calendar

12:02 AM nonlinear is now known as zero-xray
08:59 AM _ami_: o/
12:12 PM _ami_: fsync() would work on a network socket fd for flushing the content?
12:28 PM Emil_ is now known as Emil
12:43 PM holgersson: WormFood: wrt clock speed: Nice catch, thanks. I don't know where _that_ came from, but it's fixed now!
12:52 PM WormFood: holgersson, unless you have functions that rely on that having the correct value, then it probably won't hurt anything anyways.
12:53 PM * WormFood was hopeful that frequency was correct, and the AVRs are running much faster now ;)
12:54 PM holgersson: I think I've read it somewhere and just copied it with disabled /dev/brain *shrug*
12:56 PM holgersson: ha, got it!
12:58 PM holgersson: hrm, I rebuild the cross-compiler with slightly more things disabled at build time (like PIE which I had to disable at compile time).
12:58 PM holgersson: *disable at cross-compile time when buliding the AVR code
12:59 PM holgersson: josuah, cehteh, nohit, WormFood: ^ Thanks everyone for ideas, looks like a toolchain hiccup, problem is solved!
01:02 PM WormFood: What exactly was the problem?
01:03 PM WormFood: I just compiled avr-gcc 11.2.0 also, but I haven't installed it as my default compiler yet, so if there are potential problems, I'd like to know beforehand.
01:06 PM holgersson: WormFood: I can't specify it, sorry. I set the following USE flags on Gentoo: "cross-avr/gcc -boundschecking -cxx -d -fortran -gcj -go -gtk -jit -libffi -lto -mpx -mudflap -multilib -nls -objc -objc++ -objc-gc -openmp -pie -sanitize -selinux -ssp -vtv nopie nossp"
01:06 PM holgersson: WormFood: IIRC I added -nls and -lto ('-' means explicitly disabling a flag), so I _guess_ some LTO happend.
01:06 PM holgersson: but again, that's total speculation
01:08 PM WormFood: you should have included fortran ;)
01:09 PM holgersson: WormFood: I don't speak it - same goes for assembler unfortunately. Only C here for MCUs (and hopefully rust soon).
01:09 PM holgersson: or should I abuse my AVR as an external numpy accelerator?
01:09 PM * holgersson hides
01:09 PM WormFood: One language I haven't heard much about lately is FORTH....there is a language that needs to make a comeback ;)
01:10 PM WormFood: I can speak assembler. I used to write a lot of 6805/ST7 code for smart cards, years ago, back in my satellite hacking days.
01:10 PM holgersson: WormFood: Is fortran worth to be learned by a newbie in 2023? I.e. are there concepts interesting enough?
01:10 PM holgersson: oh no, a hacker!11!
01:10 PM WormFood: Fortran is a math language, mostly, I believe.
01:10 PM holgersson: I've seen it only in the numpy world honestly.
01:11 PM holgersson: so, yes, sound like that
01:11 PM WormFood: we still have some remnants in C (by convention), that come from fortran (IIRC)
01:11 PM WormFood: In short, no, don't waste your time with ancient languages, like fortran (and forth)
01:12 PM WormFood: https://en.wikipedia.org/wiki/Fortran
01:12 PM holgersson: thanks for that honest answer :]
01:13 PM WormFood: As of August 2021, Fortran was ranked 13th in the TIOBE index, a measure of the popularity of programming languages, climbing 29 positions from its ranking of 42nd in August 2020. <-- seems it is more popular than I thought. I should have expected that, since GCC supports it.
01:14 PM WormFood: so, to update my previous answer, learn it, if you have a need for it. Most likely you won't.
01:19 PM holgersson: yep, I currently I don't have any need for it.
01:19 PM WormFood: https://en.wikipedia.org/wiki/Forth_(programming_language) <-- and if you've never heard of it before, Forth is an interesting language. It has some bizarre aspects.
01:19 PM WormFood: not that I'm suggesting you learn it, but some of it's history makes for interesting reading.
01:20 PM WormFood: Forth was the first resident software on the new Intel 8086 chip in 1978, and MacFORTH was the first resident development system for the Macintosh 128K in 1984.
01:22 PM WormFood: I don't know how it evolved since I first learned about it, back in the 80s, but it didn't store it's source code as files, it was "pages", and each page was a specific size, I want to say 256 bytes.
01:23 PM WormFood: and it uses RPN, which I find interesting, but not bizarre, like the page thing for storing source code.
03:11 PM holgersson: thanks, so far I only knew the name, so that might be some lecture for my next trip by train.
04:01 PM holgersson: WormFood: By the way the clock speed is 16 MHz and is generated from 64 MHz signal divided by four (section "6.2.2 High Frequency PLL Clock" in the ATTiny85 data sheet).
04:01 PM holgersson: WormFood: Most probably that's the source for these 64MHz in my Makefile ;)
04:02 PM WormFood: ah. That makes sense
04:02 PM holgersson: oh, and did I already mention how much I love the fact that it's _the_ data sheet?
04:03 PM holgersson: not one of the 7 ones I found so far that are only partially helpful.
08:33 PM specing_ is now known as specing
11:24 PM mikee is now known as saxicola