#avr Logs

Nov 12 2018

#avr Calendar

03:22 AM rue_bed2: --
03:26 AM vmt: --
04:14 AM [1]MrMobius is now known as MrMobius
04:33 AM davor_ is now known as davor
05:55 AM kakimir: guise
05:55 AM kakimir: once I have one wire debug in use
05:55 AM kakimir: how to disable it then
05:55 AM kakimir: programming functions are disabled
06:38 AM LeoNerd: Mmm fun :)
06:39 AM LeoNerd: I think there's a dW command to do it as a one-off, so you can put the chip back into SPI-programming mode
06:39 AM LeoNerd: But failing that you're needing something HVxP
06:53 AM kakimir: I have atmel ice
06:53 AM kakimir: does atmel ICE slow down the execution of the program?
06:53 AM kakimir: I mean dW
07:05 AM LeoNerd: Ah, no idea there. But I'd doubt it slows things down unless debugging is actually being used
09:36 AM con3: Eh asked here previously but had to leave abruptly.Is there any alternative to the atmel ice I can use that fits a student budget?
09:42 AM LeoNerd: Alternative for what purpose?
09:43 AM day: con3: chinese clones
09:44 AM day: ah the ICE is the top of the line unit, right? nvm then
09:52 AM con3: LeoNerd: I just want to be able to code using atmel studio for some custom boards, just "live" so I can step through code, etc
09:53 AM con3: day: Are these chinese clones actually usable? Will still be a below minimum wage student for another year
09:55 AM day: con3: i have a jtag ice mk2? or w/e it is called. this "blue transparent plastic unit" its a bit older havent used it in awhile, but it always worked for me
09:58 AM con3: day: hmm.. listed as obsulete on mouser, going to scratch around a bit. thank you!
09:58 AM day: con3: yeah theres a mk3 now iirc
09:58 AM con3: ah dammit: "This product is no longer available for sale. "
09:58 AM day: i wouldnt buy it today
09:59 AM con3: oof, yeah no these atmel debuggers are pricey af
09:59 AM con3: $200
10:00 AM day: if it doesnt have to be avr, then you could look at arm. there are super cheap arm programmers available
10:01 AM con3: yeah, I'm not sure whether I could use that to actually program an avr? I mean if I can provide the chip with swd/jtag would atmel studio/avr have a problem?
10:01 AM day: they work iirc directly with gdb
10:02 AM day: no clue.
10:02 AM con3: hmm I'll look into it, thanks day, appreciate the help!
10:03 AM day: the cheapest way to get started would be one of the 10EUR eval boards which have a programmer a small discovery board and even a virtual uart all via an usb connection
10:03 AM day: these stm32 nucleo boards
10:04 AM con3: day: I'll look into that, maybe I could use the stlink to program an avr?
10:05 AM day: maybe. im sure the hardware is compatible, but i doubt the firmware would allow for it to work
10:07 AM con3: day: hmm.. maybe I should just save up a while and get an atmel ice, going to take me like a good year though. But it seems to be able to debug everything
10:07 AM day: or rather "i could imagine the hardware to be compatible"
10:07 AM con3: thank you for all the help. I really appreciate it
10:42 AM rue_bed2: you do not need a debugger on an avr
10:43 AM rue_bed2: so a $2 programmer from china is just fine
10:43 AM rue_bed2: you should have a logic analizer or scope tho
10:43 AM rue_bed2: the logic analizers are AWESOME if you dont need to deal with analog voltages
10:44 AM rue_bed2: and their really cheap, so its a win/win
10:50 AM rue_bed2: I suppose the only way to prove it would be to make a video series on proper coding techniques
10:51 AM rue_bed2: prolly not worth the effort, I suppose I should quietly bask in the fact that I know how to do things without needing pointless expensive tools
11:46 AM rue_mohr: I'd bet you would like people to stop writing sluggish bloatware too!
12:06 PM vmt: do you have a something along the lines of a split personality disorder?
12:07 PM vmt: -a
12:08 PM rue_mohr: no, I'm one of the last 5 real people left on the planet, and they dont like to talk much
01:01 PM nabil_ is now known as nabil
01:30 PM con3: rue_bed2: "you do not need a debugger on an avr" -> can you explain this please? Atmel studio seems to need a debugger?
02:31 PM rue_mohr: so, 2 problems, not writing your code right, and using atmel studio
02:32 PM rue_mohr: are you on linux or windows?
02:33 PM rue_mohr: hmm, I suppose its only fair for me to wait an hour for a reply
02:39 PM rue_mohr: If you like, choose a project, and I will show you how to develop it properly
02:39 PM rue_mohr: provided our schedules line up enough
02:40 PM con3: rue_mohr: Sorry! just ping me and I should reply :p I have both linux and windows
02:40 PM rue_mohr: so you use windows and have linux on a partition that you never boot, ok
02:41 PM con3: lol, eh depends on what I'm doing. I use lubuntu to develop on my laptop and windows on my pc at the office
02:41 PM rue_mohr: k, what are you using to do avr stuff
02:42 PM con3: I haven't started the avr, cause I though I needed something along the lines of an atmel ice, I've been programming stm boards. Wanting to start fooling with atmel. Both linux and windows are available for development though. No preference here
02:43 PM rue_mohr: hell no
02:43 PM rue_mohr: do you have an arduio?
02:43 PM con3: I have a few lying around :)
02:43 PM rue_mohr: ok, you can write your own real C and use the bootloader on the arduino to install it
02:43 PM rue_mohr: so, untill you screw up the bootloader, your good without a programmer
02:44 PM rue_mohr: what arduino?
02:44 PM con3: eh leonardo and uno I think
02:44 PM rue_mohr: I heard: uno, ok, lets use that
02:44 PM rue_mohr: :)
02:44 PM con3: But is it possible to step through the code or is it just for flashing?
02:45 PM rue_mohr: all my stuff is for linux, because windows sucks, so lets use that
02:45 PM rue_mohr: we need some programs, and I'm NOT talking atmel studio
02:45 PM con3: ok :) which programs?
02:46 PM rue_mohr: the normal package names for the softwares we needs are: avrdude gcc-avr and avr-libc
02:47 PM rue_mohr: _I_ suggest using nedit for a code editor, but you can use whatever you like for editing code
02:47 PM con3: crap I'll need to jot this down. Don't have my laptop on me. one sec
02:47 PM rue_mohr: see if you can get those installed and ping me!
02:47 PM rue_mohr: for convenience, I have created several rue that you can ping!
02:47 PM con3: rue_mohr: I'll ping you once I have my laptop and arduino here. Give me a bit, will go fetch and come back :)
02:48 PM rue_mohr: I heard: please wait, ok!
02:48 PM rue_mohr: FATAL ERROR: I'm out of tea.
02:53 PM Emil: con3: Consider joining #avrs
02:54 PM rue_mohr: or dont
02:54 PM rue_mohr: I'll help you , they will just leave you in a mess
03:16 PM devinmcelheran: Hi, can someone explain to me why macro definition PINBx is equal to x when (1 << PINBx) does not actually give you the right bit for pin x? At least, that's what I'm seeing here.
03:17 PM devinmcelheran: Using PORTB = (1 << PINB6) doesn't work, (1 << 5) does, but I'm using PINB6.
03:18 PM devinmcelheran: Never mind, faulty documentation, the guide I used says Arduino pin 13 is PINB6 when it's actually PINB5. Sorry about that.
03:46 PM rue_mohr: devinmcelheran,
03:46 PM rue_mohr: right ok
09:41 PM grog_o is now known as Grogdor
11:44 PM day__ is now known as day