#avr Logs

Feb 21 2017

#avr Calendar

12:04 AM nonasuomy is now known as NonaSuomy
12:22 AM daey_ is now known as daey
12:40 AM malinus: _ami_: really? why?
12:49 AM _ami_: malinus: at ##stm32, i asked is there any good way to setup stm32 dev environment on linux ubuntu?
12:49 AM _ami_: one was saying.. install win10 and some stupid library and then do development
12:49 AM _ami_: one guy named "dong" says linux is for niggers
12:49 AM _ami_: stupid people
12:50 AM _ami_: i replied to that guy: your little brain won't understand the awesomeness of linux/unix
12:56 AM _ami_: summary is people at ##stm32 are useless.
01:07 AM malinus: _ami_: well you can get some help here. All you need is arm-none-eabi and a text editor. I recommend the "libopencm3" library as well. You can basically just follow their examples to get started.
01:08 AM _ami_: malinus: thanks. i actually got confused by googling abt stm32 as there are so many types of board and libraries. its just that i did not know which is best or most suitable..
01:09 AM _ami_: sabor already helped me in that.
01:10 AM malinus: _ami_: I would buy the stm32f4 discovery board if you don't have any hardware yet. Then just "sudo apt-get binutils-arm-none-eabi gcc-arm-none-eabi". And then follow the libopencm3 examples.
01:10 AM malinus: _ami_: you should be up and running blinking in 5 min :)
01:11 AM _ami_: i hv STM32F103C8T6 ARM STM32 board to get start with it.
01:13 AM malinus: Well that's good enough I guess. But you won't get any on-chip debugging. Nice thing about the discovery board is that you get a cheap SWD debugger
01:18 AM Thrashbarg_ is now known as Thrashbarg
03:08 AM skz81: _ami_, sorry I have no clue !! I'll check your link during the day, maybe i'll remember something. I'm not really a kernel h4x0r...
03:09 AM _ami_: skz81: no problem :)
08:45 AM Lambda_Aurigae: malinus, what do you use for uploading programs to STM32 boards?
08:51 AM Lambda_Aurigae: I have a couple of stm32f103c8 boards...cheap chinese bluepill boards.
08:52 AM Lambda_Aurigae: http://wiki.stm32duino.com/index.php?title=Blue_Pill
08:52 AM Lambda_Aurigae: and an stlink
09:00 AM Jartza: hello
09:11 AM malinus: Lambda_Aurigae: just use stlink then. If I need to debug I run "stlink" and "arm-none-eabi-gdb". If I just need to flash it, I just run "make flash" (part of the libopencm3 makefile system)
09:13 AM malinus: Lambda_Aurigae: so connect your stlink to your board and "make flash" (if using libopencm3). Otherwise something like "openocd [insert 10 correct flags]" :)
09:14 AM malinus: openocd = avrdude
09:15 AM malinus: libopencm3 = avr-libc + higher level stuff
09:16 AM hetii: Hello :)
09:26 AM ENHering: hi
09:33 AM hetii: Q: when I clear DDRx regisiter do I also clear PORTx for default state ?
09:34 AM rue_house: to do what?
09:34 AM LeoNerd: What chip?
09:34 AM hetii: atmega8
09:35 AM LeoNerd: On a lot of chips, DDRx clear with PORTx set means input with pullup resistor
09:35 AM bss36504: ^
09:35 AM LeoNerd: Other chips have dedicated PUEx registers instead
09:35 AM rue_house: if you have a pin as in input, and you have the port high, then the pullup is turned on
09:35 AM bss36504: I believe the mega8 is the former
09:36 AM hetii: ok thx
12:35 PM Tachyon` is now known as Tachaway
04:57 PM arij is now known as arij_work
04:59 PM yids: hmz im looking for cheap and small footprint board with 8bit avr, with at least 8kb of sram
04:59 PM yids: and not sure if they even exist
04:59 PM yids: anyone has any ideas?
05:02 PM specing: dedicated sram chip?
05:02 PM Polprog: you could try to whack some sram onto an arduino nano
05:03 PM Polprog: it has a mega328 with 1k ram, but you may use an external chip
05:04 PM malinus: yids: I would suggest the vendor chip browsing tool
05:04 PM Polprog: when it comes to avrs with 8k ram, atmega1280 has 8k
05:04 PM Polprog: but its huge
05:05 PM malinus: yids: here you go http://www.atmel.com/selector.html#(actives:!(),data:(area:%27%27,category:%2734864%27,pm:!(),view:list),sc:1)
05:05 PM Polprog: you can also try to design such a board ;)
05:06 PM malinus: oh I missed that part. I thought he was just looking for the mcu with those specs
05:06 PM Polprog: or if you find a chip with proper specs, get a board with a pinout compatible chip and replace
05:08 PM malinus: or just get one of those whateverSmallPackage->DIP converers
05:09 PM Polprog: clever! i forgot those existed
05:22 PM Polprog: bye
05:23 PM Lambda_Aurigae: yids, atmega1284p...128K flash, 16K sram.
05:23 PM Lambda_Aurigae: 40pin dip
05:26 PM specing: Hmm
05:27 PM specing: I wonder why HiSilicon isn't shipping their RISC-V 320 MHz mcu in PDIP
05:28 PM Lambda_Aurigae: that might be fun.
05:30 PM yids: yeah i have a board with a atmega 1284p i like it but, its 50 euros and not small :P
05:31 PM Lambda_Aurigae: who needs a board?
05:31 PM yids: its cheaper (and almost smaller) to buy 8 atmega32 boards:P
05:31 PM Lambda_Aurigae: the chip is all you need.
05:31 PM Lambda_Aurigae: hehe
05:31 PM Lambda_Aurigae: physically the two chips are identical.
05:32 PM Lambda_Aurigae: depending on what you are doing and what you need, there are other chips out there with lots of ram.
05:32 PM Lambda_Aurigae: I use pic32mx270f256b chips these days...28pin package with 256K flash and 64K sram running at 50MHz/83dmips...about 4 times the speed of the fastest attiny or atmega
05:34 PM yids: yeah i guess i could just get a chip and make a board or use one of those converter boards, was just hoping that someone new a nice ready made board for a couple of euros :P
05:38 PM yids: its kinda silly that a board with an atmega1284 costs 50 euros, and for 10 euros you get this https://www.aliexpress.com/item/Orange-Pi-One-ubuntu-linux-and-android-mini-PC-Beyond-and-Compatible-with-Raspberry-Pi-2/32603308880.html?spm=2114.01010208.3.272.hSHNlp&ws_ab_test=searchweb0_0,searchweb201602_5_10000073_10000077_10000074_10000167_10000175_10000069_10000068_10000062_10000063_10099_10000156_10000158_10096
05:38 PM yids: _10000056_10000059_10000097_10000094_10000090_10000091_10000147_10000144_10084_10000150_10083_10119_10000011_10080_10000153_10082_10081_10110_10111_10112_10113_10114_10000089_10000086_10000083_10000135_10000080_10078_10079_10073_10070_10000140_10122_10123_10120_10121_10126_10124_10065_10068_10501_10000132_10000033_10503_119_10000030_10000126_10000026_10000129_10000023_10000123_431_10060_10062_10056_10055_10054_1
05:38 PM yids: 0059_10000120_10000020_10000117_10000013_10103_10102_10000114_10000016_10000111_10052_10053_10050_10107_10051_10106_10000101_10000100_10000104_10000045_10000108_10000191_10000197_10000179_10000042_100003_10000039_100001_10000036_10000187-10112_10050_10503_10501_100001_100003,searchweb201603_3,afswitch_1_afChannel,ppcSwitch_5,single_sort_3_default&btsid=0aa117b3-22f9-4bc8-8fcd-c116b4395ac8&algo_expid=6daf102c-465
05:38 PM yids: 5-4a38-baa6-fd4d72585975-31&algo_pvid=6daf102c-4655-4a38-baa6-fd4d72585975
05:38 PM yids: whoops
05:38 PM yids: sorry
05:38 PM yids: quad core arm board with wifi and ethernet for 10 euros
05:40 PM specing: for 50 euros you get that RISC-V 320 Mhz devkit
05:40 PM specing: and yes, AVRs are overpriced AF
05:40 PM specing: magic of no competition
05:42 PM Lambda_Aurigae: again, all depends on what you want to do with it.
05:47 PM specing: ofc
06:41 PM pwillard: Exactly how is this statement supported by reasonable facts? "AVRs are overpriced AF"
06:46 PM Lambda_Aurigae: price vs performance, avr is pricy
06:47 PM specing: AVRs also use a huge process: 350nm
07:05 PM Casper: pwillard: https://www.aliexpress.com/item/D1-mini-Mini-NodeMcu-4M-bytes-Lua-WIFI-Internet-of-Things-development-board-based-ESP8266-by/32661918901.html
07:05 PM Casper: look at that, you'll understand
07:09 PM grog: i like those nodemcu boarsd, cheap handy shields for em too
07:10 PM Casper: still trying to understand it
07:10 PM Casper: like now, I want to pause the main script until the wifi got an ip address
07:10 PM Casper: can't figure out how
07:12 PM Casper: grog: how good are you in lua?
07:13 PM grog: not, sorry :P
08:28 PM arij_work is now known as arijGoinghome
08:33 PM arijGoinghome is now known as arij
08:36 PM ENHering: hi. goodnight
09:47 PM Emil: specing: pwillard aint known for being rational
09:48 PM ENHering: Good night everybody
09:48 PM Emil: But the point of avrs was never to compete with arm boards that run linuz
09:48 PM Emil: linux*
09:49 PM Emil: And the price of dev boards isnt about avrs being overpriced (which they are) but magic of economies at scale
09:49 PM Emil: The magic of avrs is the superior software support and stack
09:50 PM Emil: Very nice and easily available documentation
09:51 PM Emil: And being quite robust
09:52 PM Emil: That said: if arm wasnt so fucked up and ##stm32 wasnt such windows shilling dick sucking cucks, I'd move to arm
09:52 PM Emil: fucked up with their documentation
09:53 PM Emil: Gosh darn I want those 32 bits, moar resources, faster speeds and lower prices
09:54 PM Emil: That said Im quite the CHIP shill :D
10:59 PM chisight: wow, hate stm much?
11:03 PM _ami_: asking me?
11:04 PM _ami_: chisight: ^
11:05 PM chisight: no commenting on Emil's lengthy comments.
11:05 PM chisight: i should have said ##stm32
11:11 PM _ami_: i did not see Emil comments
11:11 PM _ami_: but ##stm32 is a troll channel.
11:11 PM _ami_: instead of talking abt stm, they talk rubbish
11:11 PM _ami_: insult others
11:12 PM _ami_: behave like a 12 yr old
11:13 PM _ami_: chisight: there was one guy named "dong" there told me yesterday that linux/unix is for niggers
11:13 PM chisight: I've seen them.
11:13 PM _ami_: this was the reply from my polite request "how to setup stm32 dev environment on linux?"
11:13 PM chisight: i dropped the channel long ago.
11:14 PM chisight: i use eclipse and cubemx
11:15 PM chisight: my secret was to use an eclipse that was 2 versions out of date.
11:17 PM chisight: it would be nice if there was a well known stm32 channel, but the only ones are not well known.
11:19 PM rue_shop3: when 8 bit avr dies, we can become the stm32 channel
11:21 PM chisight: lol, avr 8bit will never die. you can still run 8080 and z80 code from the 70s.
11:23 PM Rickta59: heh .. funny when i first came to this channel 6 years ago it felt like ##stm32 does now
11:24 PM Rickta59: this channel turned me off of avrs and i ended up playing with msp430s for years
11:24 PM chisight: oh you poor man. :-(
11:25 PM Rickta59: the eclipse from openstm32.org works great with the st chips
11:25 PM Rickta59: just install it .. done .. no dicking around
11:26 PM chisight: but that eclipse is registered.
11:26 PM Rickta59: i still have a tube of atmegas .. i just pulled them out to look at them
11:26 PM Rickta59: took and stm32 and put arduinoisp on it
11:26 PM Rickta59: seems to work well
11:27 PM chisight: don't know that one.
11:27 PM * chisight googles
11:27 PM Rickta59: openstm32.org? they did a free thing called systemworkbench ...
11:27 PM Rickta59: basically eclipse + cubemx goodies
11:28 PM Rickta59: and a compiler / openocd all setup for stlink
11:28 PM Rickta59: wizard to generate a working project
11:28 PM Rickta59: pretty painless if you have any eclipse experience
11:29 PM Rickta59: that is my biggest beef with the avrs .. the debug options are pretty limited
11:29 PM Rickta59: whereas with arm stuff you have so many options both commercial and free
11:30 PM chisight: free as in beer. not free as in open.
11:30 PM Rickta59: eclipse is open .. all the stuff they provide is open ..
11:30 PM Rickta59: i guess the plugin for the wizard might be closed
11:30 PM Rickta59: but who cares
11:31 PM chisight: then why require a registration to download it?
11:31 PM Rickta59: so they can try and track who wants it
11:31 PM Rickta59: and sell the info to someone else
11:31 PM chisight: not free then. beer or open.
11:31 PM Rickta59: use a phoney email if you care
11:31 PM Rickta59: ok .. yeah
11:31 PM Rickta59: if you want something that just works ..
11:32 PM Rickta59: that is it
11:32 PM Rickta59: ti.com is the same way with CCS
11:32 PM Rickta59: and most of the stuff they provide
11:32 PM chisight: i choose to go elsewhere when people do stupidity like that.
11:32 PM Rickta59: well that is dumb
11:32 PM Rickta59: obviously you can download the gnu eclipse arm plugin
11:32 PM Rickta59: but this is better
11:32 PM chisight: iirc ccs is win only.
11:33 PM Rickta59: has been linux/mac for a long time
11:33 PM Rickta59: and now it is completely free
11:33 PM chisight: ahh, ok
11:33 PM chisight: i liked ti back in the ttl days. 74xx chips.
11:34 PM Rickta59: : ) .. those data books were nice for raising your monitor height
11:34 PM Rickta59: ti has another thing ..
11:34 PM chisight: i read those books. good info.
11:35 PM Rickta59: http://dev.ti.com .. no install required online compiler and debugger
11:35 PM Rickta59: but again you have to register
11:35 PM chisight: i still have a ttl data book by ti in easy reach.
11:36 PM Rickta59: the nice thing about the dev.ti.com site is the resource page .. example+docs .. push a button and it puts it into an online project compiles it and installs it on your device
11:36 PM chisight: not going for online development either. they can break my code any time they want, if i have the tools local, i can continue to run old versions for many years if i want to patch my old code.
11:37 PM Rickta59: sure .. but they have the button that says .. download project .. it dumps a CCS project on your disk if you worry about that stuff
11:37 PM Rickta59: basically they create CCS/eclipse projects on the server so there is no difference
11:37 PM chisight: meh, not heading that direction.
11:38 PM Rickta59: i was just point out that it isn't windows only
11:38 PM Rickta59: and doesn't require a lot of effort to get started
11:38 PM Rickta59: and you can do the same with stm32 stuff and mbed if you can't get a local thing going
11:38 PM chisight: if it works local, I'll use local. if it doesn't, I'll use something that does.
11:39 PM Rickta59: so like i said i haven't been tracking avr stuff for a while is there an avr studio for linux yet?
11:40 PM chisight: eclipse nicely installs in a folder and you can keep multiple versions. i like that.
11:40 PM chisight: dunno, i really prefer command line. make is my friend.
11:41 PM chisight: i have eclipse for visual debugging.
11:41 PM Rickta59: heh .. i edit in eclipse and use command line gdb
11:42 PM chisight: we're so opposite ;-)
11:42 PM Rickta59: i'm spoiled by code completion
11:43 PM chisight: oh god i hate that.
11:43 PM chisight: lol
11:43 PM Rickta59: i'm a lazy typer
11:43 PM chisight: it is just amazing how opposite we are.
11:43 PM JanC_ is now known as JanC
11:44 PM Rickta59: probably not as opposite as you think
11:45 PM Rickta59: so is this it? http://avr-eclipse.sourceforge.net/updatesite/
11:45 PM chisight: we are in the same channel after all, we do have things in common.
11:47 PM chisight: not sure, i have check for updates turned off.
11:50 PM rue_house: anyone here done audio rate FFT on an avr?
11:57 PM Rickta59: yeah that seems to work
11:58 PM rue_house: today I remembered that I made a macro for a basic C program, and used it to make one
11:58 PM rue_house: I wan to write my own editor that has a keyword mode
11:58 PM rue_house: or soemthing
11:59 PM rue_house: maybe use the function keys for keywords
11:59 PM rue_house: hmm
11:59 PM rue_house: 1 thru 12