#avr | Logs for 2013-04-03

Back
[01:37:09] <langoliers> i have drawn a fet version of dasa3 if anyone interested http://tinypic.com/view.php?pic=rjh66a&s=6
[01:55:31] <Timelord83> hey i am trying to make a simple fan controller with an LCD/LED status bar and push buttons for speed up and down.. any idea what the least expensive chip that can pull that off?
[01:56:32] <langoliers> no idea what is the dubest up
[01:56:36] <langoliers> m
[01:57:03] <langoliers> sounds like you want 2-3 io pins
[01:57:18] <langoliers> oh, status bar...
[01:57:22] <langoliers> then more
[01:57:35] <Timelord83> ya basicly i want a speed up and aspeed down buttons
[01:57:51] <langoliers> i think $1 will do
[01:58:27] <langoliers> and you can run it off an 1MHz internal osc, or something like that
[01:58:30] <Timelord83> with an LCD or led bar from red to green that shows status out of like 10 levels
[01:59:07] <langoliers> i'd use an atmega 48 but that's me
[01:59:20] <langoliers> $2 ?
[02:01:05] <Timelord83> how many of those setups could it run?
[02:01:20] <langoliers> it comes in a TQFP32 package
[02:01:40] <langoliers> or pdip...
[02:01:42] <Timelord83> no imean how many of the LCD/LED with 2 buttons could one of those chips run
[02:02:41] <langoliers> atmel.com has the full datasheet you can read
[02:03:02] <Viper-7> Timelord83: how many do you want? :P
[02:03:17] <Viper-7> like 2 without any support hardware, add a few 10c chips and it could handle hundreds
[02:03:33] <Timelord83> lol I don't know right off 5.. i am making a multi channel fan controller for my reprap printer
[02:03:43] <langoliers> hm
[02:04:02] <langoliers> led displays can use shift registers,,, nothing critical there
[02:04:22] <Timelord83> and over my head hahahaha
[02:04:35] <langoliers> what? you are using a microcomputer
[02:04:36] <Timelord83> i was going to use slide pots and call it a day but i don't like them
[02:04:59] <langoliers> a C function handles the port extension
[02:06:00] <Viper-7> Timelord83: shift registers are a common method for driving large numbers of LEDs (including with variable brightness)
[02:06:17] <Viper-7> another option is you can get ICs specifically designed to drive a bargraph led display from an analog voltage
[02:06:42] <Timelord83> o
[02:07:33] <Viper-7> eg LM3914
[02:07:56] <langoliers> that is not cool with a microcontroller
[02:09:53] <Viper-7> why? if he's already going to be generating PWM at a decent rate for the fan output, and its a high impedance voltage input, its just a simple low pass filter to get a clean analog voltage level from the uC PWM output
[02:10:00] <Timelord83> sigh back to the drawing board LOLOL
[02:10:09] <Viper-7> shift registers would be "more correct", but probably just as if not more expensive, and harder to implement
[02:10:13] <langoliers> ok, then why use a microcontroller?
[02:10:20] <Timelord83> these are not PWM fants
[02:10:23] <Timelord83> fans*
[02:10:25] <langoliers> a comparator can generate pwm then
[02:10:27] <Viper-7> Timelord83: they dont need to be
[02:10:30] <Timelord83> they are just regular 2 wire
[02:11:20] <Viper-7> langoliers: sure, he could do this any number of ways, but for multiple outputs from digital push-button control, a microcontroller is probably easiest for that much :P
[02:11:23] <langoliers> Timelord83<< then your time machine will use inappropriate fan control ? ;/
[02:11:36] <Timelord83> lol
[02:11:57] <langoliers> proper way would be to use a buck regulator then
[02:12:30] <Timelord83> basicly i wanted a 5 channel fan conotroller with a LED status bar so you could tell how far you turned it up. i figured a small avr would be best but if not I'm completely open to ideas
[02:12:36] <langoliers> but you may get away with pwming power... fan may be screamimg
[02:13:30] <Timelord83> the 20mm fans i use for my Reprap are straight 2 wire no PWM control so normally people just put a pot on them or a resistor for perm reduction in voltage
[02:13:59] <_abc_> Does anyone here have a link to a avr-gcc mutex implementation with possible discussion?
[02:14:02] <_abc_> In C
[02:14:09] <langoliers> the pot is not really for limiting that much power
[02:15:42] <_abc_> Also, what are the compiler flags needed to compile that kind of thing (optimization off for out of order execution)
[02:15:44] <Timelord83> basicly thats what the $40 NZXT fan controller i bought for my PC is
[02:15:47] <Timelord83> slide pots
[02:16:27] <langoliers> nice, good game
[02:16:30] <langoliers> :)
[02:17:11] <langoliers> i made a temperature dependent fan controller 10 years ago from about $3
[02:17:20] <Timelord83> ya
[02:17:36] <Timelord83> i knew i could make a cheaper one if i dug around.. this nzxt one matches my nzxt case :)
[02:17:59] <langoliers> it started at about 40C, and full power at 50C, an ntc resistor was my sensor
[02:18:34] <Timelord83> nice
[02:18:50] <langoliers> used an opamp bridge and driven an N-fet
[02:20:18] <Viper-7> Timelord83: i'd just research 555 pwm fan speed controllers - learn how they work, even build one
[02:20:43] <Viper-7> they'd be all you need to do the entire project, but more importantly, they'll give you the background information you'll need to mess with PWM effectively from a microcontroller
[02:26:07] <langoliers> i'm currently constructing an electromagnet current control, having hard time to decide the control ferefence
[02:26:33] <langoliers> 0-10A would be nice @ 12V
[02:27:26] <_abc_> You have got to be kidding me. All my searches with atmel atmega etc in the keywords for spinlock and or lock implementation in C come up with anything but for any atmel compatible code
[02:27:30] <_abc_> What the F*
[02:27:51] <langoliers> arent those used for multicore?
[02:27:57] <_abc_> ?
[02:28:07] <langoliers> spinlocks
[02:28:16] <_abc_> No, they are used in normal isrs and the like to avoid concurrent access on variables
[02:28:36] <_abc_> And they are CRITICAL for code operation beyond the arduino level
[02:28:46] <langoliers> oh, i don't use that
[02:29:08] <_abc_> neither do I, I have my hands full with normal code without deciphering the bugs in someone else's
[02:47:36] <_abc_> This is unbearable, why does everyone use spinlocks and the like and not write about them?!
[02:48:36] <_abc_> relevant paper (finally): https://www.cs.utah.edu/~regehr/papers/plos06b.pdf
[02:48:40] <langoliers> well, there are videos on youtube how to use toilet paper
[02:48:49] <_abc_> second hand?
[02:49:17] <_abc_> I am in a bad mood, it is raining cats and dogs, freezing outside, I need to run all day, and I need to dot some i's before that
[02:49:20] <_abc_> AARGH
[03:19:17] <langoliers> hahahaha "Google chrome has stopped updating and no longer supports your operating system ^^"
[03:28:44] <Richard_Cavell> langoliers: What OS?
[03:28:55] <langoliers> linux
[03:29:09] <Richard_Cavell> Will it still run?
[03:29:13] <Richard_Cavell> The old version will still run?
[03:32:08] <langoliers> yes
[03:32:17] <langoliers> it just noted it has no new updates
[03:32:25] <langoliers> and bugs ofc will not be fixed
[04:47:31] <megal0maniac> I'm sure I'm missing something silly, but how do you set AS6 up to automatically upload code after compile? It seems silly to have to go to device programming each time and manually locate the file...
[04:51:40] <Malinuss> megal0maniac, what? noo
[04:51:56] <Malinuss> megal0maniac, set it to "release"
[04:52:34] <megal0maniac> Is that all?
[04:54:17] <Malinuss> all I do... then I can just click F5 and it gets uploaded (if the programmer have been picked before)
[04:55:12] <Deffie> hello everyone, is there anyway to simulate an lcd and a ds18b20 connected to the avr simulator ?
[04:55:38] <Malinuss> Deffie, short - no. long - noooo ;D
[04:56:37] <Malinuss> at least no if you want the functionality, all the simulator is for, is to see the registers at different times of the code
[05:00:11] <megal0maniac> Malinuss: No luck
[05:00:21] <megal0maniac> Just builds
[05:00:34] <Malinuss> megal0maniac, which programmer are you using?
[05:00:52] <megal0maniac> Rikus' board. So STK500 clone
[05:02:07] <Malinuss> no wonder - should have buyed Tom_itx MKII clone ;P.. but seriously, I have no idea about the STK500, I only know what works for me
[05:02:51] <megal0maniac> I can turn this into a MKII, but the point of STK500 is that it's a bootloader (i.e. it programs itself) and not an actual programmer
[05:04:01] <megal0maniac> Really nice to work with because two buttons switch between bootloader and program. Rikus spoke about making a MKII based bootloader, but I think it would be too big. Takes up 20 something kb in program space as it is
[05:06:40] <megal0maniac> !seen abcminiuser
[05:06:46] <megal0maniac> !time
[05:07:31] <megal0maniac> rue_house: What did you do with tobbor? :(
[05:59:41] <cluelessperson> hey guys
[05:59:46] <cluelessperson> I'm trying to start using atmel studio
[05:59:56] <cluelessperson> but it doesn't seem to detect my usb isp programmer
[06:00:32] <Fleck> :D
[06:00:48] <Fleck> you can compile, then use other programmer app to programm chip
[06:07:02] <cluelessperson> Fleck, What other programmer app?
[06:07:14] <cluelessperson> I have no experience with a programmer, I just bought this
[06:07:17] <cluelessperson> drivers are installed.
[06:07:18] <Fleck> that came with your usb programmer?
[06:07:28] <cluelessperson> nothin
[06:07:37] <Fleck> what did you buy?
[06:07:46] <cluelessperson> Sainsmart USB ISP programmer
[06:08:03] <cluelessperson> or this
[06:08:04] <cluelessperson> http://www.amazon.com/gp/product/B0051SRZWC/ref=oh_details_o00_s00_i00?ie=UTF8&psc=1
[06:08:11] <Fleck> i have similar
[06:08:13] <Fleck> i have app
[06:08:17] <Fleck> sec
[06:08:30] <Fleck> also - avrdude works
[06:09:00] <megal0maniac> Doesn't work with Atmel Studio
[06:09:14] <Horologium> that is a usbasp programmer
[06:09:18] <Horologium> won't work with atmel studio
[06:09:33] <Horologium> won't work on 1 in 10 notebook computers.
[06:09:35] <Fleck> cluelessperson: https://s3-ap-northeast-1.amazonaws.com/sain-amzn/20/20-020-100/USBASP.rar
[06:09:41] <Fleck> there is a tool - progisp
[06:09:41] <megal0maniac> cluelessperson: You need either AVRISP MKII or STK500 clone. USBASP will work with avrdude
[06:10:16] <Horologium> let's buy it because it's cheap and on amazon! then complain when we find out it is crap.....oh well.
[06:10:51] <Fleck> not crap, works great for me
[06:11:26] <megal0maniac> Just.. inconveniently incompatible :)
[06:11:28] <Horologium> it is based on vUSB which, while a fun toy, I wouldn't use for any production quality equipment.
[06:12:06] <cluelessperson> Horologium, Shut the fuck up, dumbass. I've seen people build these quite easily. $10 seems appropriate.
[06:12:23] <Horologium> yes, they are easy to build.
[06:12:25] <Horologium> I've built them.
[06:12:39] <cluelessperson> good for you, I don't have the parts or experience yet.
[06:12:50] <megal0maniac> Rikus' programmer currently does JTAG (old mega chips), STK500 ISP and HVSP/HVPP, AVRISP MKII ISP and TPI and PDI :D
[06:13:30] <cluelessperson> megal0maniac, So that'll work? I don't see USBASP on that list. :P
[06:13:30] <Fleck> cluelessperson: just ignore him, there are many who bought expensive stuff, and realised, they could do it for 5$ and then acting like this in forums/chats :D
[06:14:18] <megal0maniac> cluelessperson: If you get more into this and want to save yourself some headaches, look into http://tom-itx.dyndns.org:81/~webpage/boards/USBTiny_Mkii/USBTiny_Mkii_index.php
[06:14:38] <megal0maniac> Plug and play. Works with Studio and almost all devices
[06:15:34] <Funklord> I can really recommend this programmer: http://shop.tuxgraphics.org/electronic/detail_avrusb500smd2.html
[06:15:36] <megal0maniac> cluelessperson: There are many cheap ways to program an avr. You can even do it with your serial / parallel port. But studio has limited support for programmers, so you need to know what you're looking for if you want it to work in AS
[06:16:11] <Funklord> it's stk500v2, protection, better pinout
[06:16:22] <megal0maniac> Funklord: Quite pricey though
[06:16:40] <Funklord> megal0maniac: sure, it's home made, not mass produced
[06:16:45] <megal0maniac> I'm a fan of http://www.pololu.com/catalog/product/1300
[06:16:54] <Fleck> cluelessperson: but as I said - you can compile in avr studio, then use progisp to upload
[06:16:57] <Fleck> not a problem!
[06:17:34] <cluelessperson> Fleck, does that come in english?
[06:17:40] <Fleck> yeah
[06:18:11] <cluelessperson> lol, where?
[06:18:38] <megal0maniac> cluelessperson: Bottom line, you don't have to buy anything. But a STK500, or better, AVRISP clone will make things easier.
[06:18:56] <Fleck> http://wstaw.org/m/2013/04/03/plasma-desktopId3672.png
[06:18:57] <cluelessperson> megal0maniac, I will in the future, I just need something to work for now.
[06:19:24] <megal0maniac> Use atmel studio to write code and compile, then throw the .hex file at progisp and watch the monkey dance
[06:21:11] <Fleck> there is a auto feature, it "listens" to your .hex and uploads it automatically if changed
[06:21:27] <megal0maniac> Funklord: Just realised, that's almost the same price as a dragon :/ I like the features it has, but I'd rather get something which emulates AVRISP. Better device support and less mucking about with COM ports
[06:22:10] <megal0maniac> (I'm a student. Always penny-pinching :P)
[06:23:14] <Funklord> megal0maniac: what can you do over avrisp that can't be done with stk500v2?
[06:23:37] <megal0maniac> PDI
[06:23:40] <megal0maniac> xmega
[06:23:50] <megal0maniac> TPI
[06:24:06] <megal0maniac> And you don't have to select a com port
[06:24:26] <cluelessperson> THIS BETTER WORK
[06:24:39] <megal0maniac> (xmega was an example of PDI, not another thing)
[06:25:03] <Funklord> megal0maniac: but how do you choose between multiple programmers then?
[06:25:48] <megal0maniac> They're listed by serial number. They all show up. Most people don't need multiple programmers connected at once, though
[06:26:23] <Fleck> cluelessperson: it does! :D
[06:27:33] <Funklord> megal0maniac: you mean it's not possible to do TPI with STK500?
[06:28:51] <megal0maniac> Funklord: Don't think so. But I could be wrong
[06:28:54] <megal0maniac> Tom_itx?
[06:29:57] <megal0maniac> On the other hand, I'm not sure whether avrisp can do HVxP
[06:31:32] <cluelessperson> Fleck, So.. How do I connect this to a chip directly on a board?
[06:34:12] <Fleck> ther are pinouts on your programmer, check chips datasheet... and wire! :)
[06:34:33] <cluelessperson> Fleck, MOSI straight to MOSI?
[06:35:26] <Fleck> yep
[06:38:08] <Funklord> megal0maniac: I think HVP only depends on the hardware implementation
[06:39:28] <Funklord> megal0maniac: interesting about TPI though, that explains why I never managed to program any ATTINY5
[06:40:48] <megal0maniac> Funklord: This board runs the LUFA based AVRISP firmware very nicely. https://sites.google.com/site/megau2s/
[06:41:34] <megal0maniac> It's more of a dev board than a programmer, but it does the job. Also has a jumper for 5v/3v3 so it can program xmegas (they aren't 5v tolerant)
[06:42:09] <megal0maniac> Technically the chip is running beyond spec at 16mhz/3v3, but I haven't had any problems
[06:42:51] <Fleck> cluelessperson: just don't touch flags, or be very, very careful, don't set RSTDISBL :D
[06:43:10] <Fleck> and try not to set chip to use external oscil
[06:43:57] <Fleck> I did that few times :D
[06:44:10] <Fleck> had to use HVP to reset :p
[06:44:36] <megal0maniac> Although Rikus is almost done with an add-on board which does proper logic level translation
[06:49:17] <cluelessperson> Fleck, when I connect it, the avr powers off.
[06:49:50] <Fleck> avr powers off = chip powers off?
[06:49:53] <Fleck> or what?
[06:52:39] <Funklord> megal0maniac: what are the buttons for, on the board?
[06:54:22] <megal0maniac> One is reset and the other is select, for changing modes. There's app mode (with optional included CDC USB), STK500 bootloader, STK500 programmer, JTAG, debug or USB to Serial
[06:55:19] <megal0maniac> bootloader is nice because it plays nicely with AS. JTAG is only for older mega chips and AS4 (for now) and debug mode lets you read and write to SRAM directly
[06:56:16] <megal0maniac> And it's LUFA friendly. Hence the AVRISP firmware
[06:56:56] <Funklord> I'd have thought to use jumpers/dip switches for that kind of choice
[06:58:15] <megal0maniac> It's a strange set-up, but it works well. eeprom value sets default mode
[06:58:50] <Funklord> but how do you know which mode is set?
[06:59:53] <megal0maniac> The LED flashes. And you hold down reset while pressing select to choose modes, so you don't cycle. I've yet to get confused
[07:00:38] <Funklord> gotcha
[07:00:55] <megal0maniac> I.e. If you hold down reset and press select twice, you WILL go into programmer mode, regardless of which mode you're in
[07:01:59] <Funklord> I just made a LED sequencer, and if it didn't have the LEDs to use as a binary display, I probably would've added dip-switches or something
[07:03:12] <megal0maniac> The expansion board will add HVP (with 12V from a ST662) and level translation for 3v3 IO support (which means PDI)
[07:05:31] <megal0maniac> Funklord: Good thinking. I'd like to have a voltage divider circuit with a dip switch, so that you can have multiple options with just one analogue pin.
[07:05:41] * megal0maniac should try that
[07:07:34] <megal0maniac> I really like the U2S. You'd think that I'm getting a cut of the sales :P
[07:09:49] <Funklord> megal0maniac: the binary display https://www.facebook.com/photo.php?v=10151279014540423&set=vb.582715422
[07:11:22] <Funklord> anyhow, in most projects I'm not lucky enough to have LEDs etc. so you need to spend IO-pins on displays :/
[07:13:46] <Funklord> megal0maniac: I'll probably get one once they're finished
[07:19:50] <megal0maniac> Nice. Very shiny :P
[07:21:05] <megal0maniac> Does ANYONE here have a good analogy for C pointers?..
[07:22:30] <Tom_itx> what do you mean?
[07:22:34] <Malinuss> eh?
[07:22:49] <Fleck> there is no analogy :D
[07:23:09] <theBear> maybe something like a index in a dictionary ?
[07:23:12] <Malinuss> megal0maniac, adress to the place where the value is... oh wait that's not a analogy, that's just what a pointer is ;D
[07:23:24] * theBear is stretching here
[07:23:50] <Tom_itx> & address * data
[07:25:45] <Tom_itx> megal0maniac, get the K&R book rev2 and read it
[07:26:41] <megal0maniac> Tom_itx: I've read a number of things, but I'm struggling to grasp the concept
[07:27:50] <Funklord> megal0maniac: all memory is addressed, a pointer is simply a variable that contains an address
[07:27:55] <Tom_itx> it's the C bible
[07:29:17] <Funklord> megal0maniac: however, on most platforms pointers are a fundamental data type, so they aren't exactly the same as a numeric type etc.
[07:30:44] <Funklord> languages that have removed pointers to make things "easier" are severely misguided IMO
[07:31:17] <antto> is there a way to check if i've f*cked up this atmega2561?
[07:32:01] <antto> because i was messing around with it in USBasp, and suddenly it stopped responding
[07:32:37] <Funklord> check your wiring, any fuses etc.
[07:32:53] <Funklord> try another programmer
[07:33:02] <antto> fuses?
[07:33:17] <antto> i don't have another programmer :/
[07:33:28] <Funklord> if you have fuses in your circuit
[07:33:37] <Funklord> thermal or polyfuse etc.
[07:33:42] <antto> i don't know..
[07:34:35] <antto> http://i.imgur.com/NjtLb.jpg <- this is the cpu board, i don't know if any of those components are fuses
[07:35:06] <tzanger> no
[07:35:20] <tzanger> the two barrel shaped ones are decoupling capacitors
[07:35:31] <tzanger> the small rectangular one by the 8 pin socket is another cap
[07:35:40] <tzanger> the one with "16.00M" is a ceramic resonator
[07:35:57] <tzanger> the resistor one looks like a 10 ohm 5% resistor
[07:36:42] <Valen> an axial cap? havent seen one of those before
[07:36:57] <tzanger> antto: did you change the atmega fuse settings? disable debug/jtag/etc?
[07:37:07] <tzanger> Valen: yep they exist and are (were) common
[07:37:22] <tzanger> antto: one thign to try is to hold down the reset line and try the programmer
[07:37:50] <antto> tzanger i *was* trying to change fuse settings with eXtreme Burner (and with avrdude before that) and it was giving errors
[07:37:53] <tzanger> I use one of the JTAG pins in a design of mine and have to manually ground RESET# to be able to use JTAG, it'll be fixed on the next spin
[07:38:38] <Funklord> I never understood why Atmel decided to confusingly call their non-volatile config bits "fuses"
[07:38:40] <antto> and precisely after i was trying to change the fuse settings - it suddenly stopped responding
[07:39:12] <Funklord> antto: did you mess up clock settings
[07:39:22] <antto> is it possible that it accepted *some* fuse settings which can cause it to _not_ respond?
[07:39:51] <tzanger> Funklord: PIC calls them fuses as well
[07:40:02] <tzanger> actually they've transitioned over to "config bits"
[07:40:09] <antto> Funklord i don't know, i'm using USBasp, no idea what i'm doing
[07:40:22] <tzanger> antto: so set the fuse settings back to sane defaults
[07:40:30] <antto> how?
[07:40:46] <tzanger> antto: I can never read fuses with jtag1 (olimex avr-usb-jtag) but they set fine
[07:40:55] <Funklord> antto: a larger part of the fuse settings will make the board stop working if misconfigured
[07:40:58] <tzanger> antto: just set them back to defaults, ignore the errors and see if it responds after
[07:41:36] <tzanger> try holding RESET# low while programming as well, that might be the case
[07:42:13] <antto> i'm repeatedly doing: avrdude -p m2561 -c usbasp -P usb -U lock:w:0xFF:m -U lfuse:w:0xF7:m -U hfuse:w:0x90:m -U efuse:w:0xFC:m -U lock:w:0xCF:m
[07:42:45] <tzanger> antto: I do one fuse "register" at a time
[07:42:58] <tzanger> i.e. lfuse, hfuse, efuse in separate commands
[07:43:59] <antto> reset - low - does that mean to short the reset pin to ground?
[07:44:07] <tzanger> antto: yes
[07:44:13] <antto> i can try that
[07:44:36] <tzanger> antto: like I said, I specifically disable JTAG becaue I need the analog inputs but that means I can't program it (doesn't respond) unless I manually hold RESET# down
[07:56:16] <antto> i think the reset trick doesn't work
[08:03:00] <megal0maniac> Hi RikusW :)
[08:04:16] <RikusW> hi megal0maniac
[08:04:30] * megal0maniac is excited for U2S expansion board
[08:04:45] <megal0maniac> Is the LED on C2?
[08:04:49] <RikusW> yes
[08:04:57] <RikusW> vcc led 270R pc2
[08:05:09] <RikusW> so C2 low for led on
[08:06:41] <megal0maniac> Trying to make it flash. It just stays on :/
[08:06:56] <RikusW> in app fw ?
[08:07:00] * megal0maniac nods
[08:07:21] <RikusW> in debug mode there will be an issue.... U2S fw use it too...
[08:07:40] <RikusW> but it should work in custom fw
[08:08:00] <RikusW> megal0maniac: use the builtin CDC to send commands to the fw ?
[08:08:12] <RikusW> on to turn on and one to turn off
[08:08:14] <megal0maniac> I don't know how to use that
[08:08:26] <antto> tzanger in what order should i try to set the fuses if it's better to do it one at a time?
[08:09:45] <tzanger> I don't think it matters
[08:10:29] <antto> so what now?
[08:11:48] <antto> when it *did* work - i was able to read the fuses, but not write them
[08:12:02] <RikusW> megal0maniac: use U2Sfw U2Sfw.c already contains a sample app
[08:12:31] <antto> i think i was also able to erase the flash, but when flashing a hex it gave verification errors on the very first byte even
[08:12:43] <RikusW> megal0maniac: a simple switch(usb_getc()) will help you
[08:12:59] <RikusW> and use your terminal app
[08:14:29] <megal0maniac> RikusW: http://pastebin.com/raw.php?i=c0p2iayU
[08:14:54] <megal0maniac> It's plaintext, don't worry :P
[08:15:38] <RikusW> megal0maniac: You've been caught by the 32u2 gotcha, you turned off the clock with that code :-D
[08:15:52] * RikusW have been bitten by that too
[08:15:59] <megal0maniac> Clock input on port C?
[08:16:01] <RikusW> only modify C2
[08:16:04] <RikusW> yes
[08:16:08] <megal0maniac> Heh
[08:16:42] <RikusW> leave C0 + C1 + C3 alone
[08:16:48] <RikusW> those are undefined
[08:16:54] <megal0maniac> (2 << 1)?
[08:16:59] <RikusW> I think C0 is the problematic one
[08:17:04] <RikusW> yes
[08:17:15] <RikusW> 0x04 == (2<<1)
[08:17:31] <megal0maniac> Yay :)
[08:17:34] <RikusW> and use |= and &= not = on portc
[08:17:44] <RikusW> working ?
[08:17:46] * U2S blinks
[08:17:56] <RikusW> heh
[08:18:18] <megal0maniac> My friend used xor to toggle
[08:18:33] <megal0maniac> So only needed one delay
[08:19:13] <RikusW> or write to PINC2
[08:19:24] <RikusW> PINC |= 0x04;
[08:19:40] <megal0maniac> PORTC = (2 << 1);
[08:19:52] <RikusW> dangerous....
[08:19:55] <RikusW> use |=
[08:19:56] <megal0maniac> Makes it more obvious that you're writing to C2 (for me, anyway)
[08:20:12] <RikusW> and &= ~(1<<2);
[08:20:20] <megal0maniac> ..why?
[08:20:26] <RikusW> DON"T use PORTC =...
[08:20:34] <RikusW> you do not want to change C0....
[08:20:42] <megal0maniac> Ah, I see.
[08:20:53] <RikusW> its ok on port b & d
[08:21:00] <RikusW> not on c....
[08:21:08] <RikusW> or you'll get bitten again ;)
[08:21:22] <megal0maniac> Well at least I'll know why :P
[08:22:09] <RikusW> Doing  DDRC |= 1 on ATmega32U2 will stop the clock when using a crystal. (Since PC0 is on XTAL2)
[08:22:23] <RikusW> Atmel's reply -> It is not recommended to modify the functionality of PC0/XTAL2 pin when external crystal is being used as a clock source for the device.
[08:22:48] <RikusW> This is not a bug in the device, this is the expected behavior. says Atmel...
[08:23:18] <RikusW> I actually locked the chip that way when dW was enabled
[08:23:33] <RikusW> fortunately was able to use the mode switch to get out of the mess
[08:23:51] <RikusW> (clock on XT1 or HVPP will fix it too)
[09:11:34] <Viper-7> nRF24L01 modules for 80c each: http://www.aliexpress.com/item/4-8-nrf24l01-power-strengthen-edition-2-4g-wireless-module/775163724.html
[09:18:47] <Fleck> Total Price: US $31.34
[09:18:48] <Fleck> :D
[09:19:34] <Fleck> I mean: Shipping Cost: US $30.54
[09:23:41] <Viper-7> wut? to where?
[09:23:55] <Fleck> EU
[09:24:03] <megal0maniac> "Shipping Cost:
[09:24:05] <megal0maniac> Can not delivertoSouth Africa"
[09:24:21] <Fleck> even worse :D
[09:24:30] <Viper-7> http://www.aliexpress.com/item/1PCS-NRF24L01-wireless-data-transmission-module-2-4G-the-NRF24L01-upgrade-version-New-and-Original-2Mbit/764233591.html
[09:24:33] <Viper-7> there then
[09:24:39] <Viper-7> $2 each with free shipping :P
[09:25:02] <megal0maniac> http://www.aliexpress.com/item/10PCS-NRF24L01-Wireless-Transceiver-Module-2-4GHz-For-AVR-ARM-Arduino-MCU/658370933.html
[09:25:07] <Fleck> yeah, this is ok
[09:25:14] <megal0maniac> $1 each with free shipping
[09:25:22] <Fleck> :D
[09:25:41] <Fleck> but 10 pcs
[09:25:43] <Viper-7> yup, as long as you want 10 :D
[09:25:50] <Viper-7> for that price why not tho :P
[09:26:14] <megal0maniac> Re-sell them for $5 a pair
[09:26:31] <megal0maniac> Sounds like profit
[09:27:21] <Viper-7> few cents cheaper again http://www.aliexpress.com/item/Free-shipping-NRF24L01-wireless-data-transmission-module-2-4G-the-NRF24L01-10PCS-LOT-upgrade-version/681895432.html
[09:27:44] <megal0maniac> Yeah but UPGRADE VERSION
[09:27:54] <Viper-7> lol so?
[09:28:06] <megal0maniac> US $56.74 to South Africa
[09:28:08] <megal0maniac> No thanks
[09:28:14] <Viper-7> means its a newer release
[09:28:20] <Fleck> Shipping Cost: US $56.74
[09:28:32] <Viper-7> huh?
[09:28:36] <Viper-7> free shipping for me lol
[09:28:44] <Viper-7> to australia
[09:29:30] <Fleck> Viper-7: have you bought something from aliexpress?
[09:29:36] <megal0maniac> I haven't
[09:29:38] <Viper-7> still cheaper for me to go the 80c option
[09:29:41] <Viper-7> Fleck: many things
[09:29:46] <Viper-7> over a screen full of past orders
[09:29:55] <Fleck> ok, and how is it?
[09:30:06] <Viper-7> its just an escrow site, they hold the money until the seller delivers, so usually very good
[09:30:24] <Fleck> better than ebay/amazon
[09:30:24] <Viper-7> the only issue i've had was a product they couldnt supply, my money was refunded within a week
[09:30:26] <Fleck> ?
[09:30:37] <Viper-7> yup
[09:30:50] <Viper-7> its usually direct from manufacturer, so you can even often customize your order for no extra charge
[09:30:51] <Fleck> good to know! :)
[09:31:03] <Fleck> thx pal! :)
[09:32:38] <Viper-7> i've gotten LED torches made with IR / UV LEDs instead of white, and others have been happy to split up packs to give me specific mixed colours / values
[09:33:04] <Viper-7> http://www.aliexpress.com/item/M10-pcs-mini-150M-USB-WiFi-Wireless-Network-Card-802-11-n-g-b-LAN-Adapter/539422806.html
[09:33:04] <Viper-7> http://www.aliexpress.com/item/Wholesale-2-4GHz-USB-Wireless-RF-Optical-Mouse-Car-Auto-mode-Blue-ray-Mice-for-Computer/702854396.html
[09:33:07] <Viper-7> lots of junk like that :P
[09:46:14] <antto> what is required for "High Voltage" programming?
[09:46:45] <antto> can it rescue my non-responding mcu?
[09:48:49] <RikusW> antto: read the datasheet
[09:49:02] <RikusW> its not that difficult to reprogram the fuses using HVPP
[09:49:08] <seldon> Possibly, if the problem is that you set the RSTDISBL fuse.
[09:49:54] <antto> i don't know what happened, but it suddenly stopped responding
[09:50:18] <Fleck> maybe he set different clock
[09:50:24] <Fleck> so 16MHz is a no go anymore
[09:50:50] <antto> i got USBasp, soldering iron, and some bits and pieces
[09:51:00] <antto> multimeter
[09:51:00] <RikusW> more AVRs ?
[09:51:31] <antto> well, i got atmega162 too
[09:53:16] <antto> the 162 is part of a synthesizer, it works.. and this atmega2561 is on a small pcb adaptor which makes it plug into the same synthesizer in the place of the 162
[09:53:19] <RikusW> you can try connecting clock source to XT1 ?
[09:53:49] <RikusW> which fuse did you change before the 2561 bricked ?
[09:53:59] <antto> i don't know
[09:54:00] <antto> :/
[09:54:52] <RikusW> which fuse settings did you program ?
[09:54:58] <RikusW> do you have the hex values ?
[09:55:28] <antto> i was doing it from a GUI app, so i can no longer look it up :/
[09:56:31] <RikusW> and you can't remember ?
[09:57:11] <antto> i've never done such things..
[09:57:49] <antto> i'm no avr hacker, this thing was supposed to have a bootloader - but it doesn't
[09:58:14] <megal0maniac> If you were programming with ISP then you killed the bootloader yourself
[09:58:19] <antto> and i'm buying more and more things in order to put a bootloader on it.. it's not funny :/
[09:58:37] <antto> megal0maniac it never had one, it only had a firmware
[09:58:57] <antto> but yes, i was programming via USBasp when it stopped responding
[09:59:42] <antto> the guy who built this flashed the wrong hex
[10:00:53] <RikusW> you set the wrong fusebits....
[10:01:29] <antto> it's possible, i was frustrated
[10:01:48] <antto> is it fixable?
[10:02:18] <antto> what would it take to put the damn bootloader on this
[10:03:25] <megal0maniac> OndraSter: http://mdiy.pl/3-zgrabne-plytki-uruchomieniowe-dla-atxmega/?lang=en
[10:03:30] <megal0maniac> Special for you
[10:07:06] <OndraSter> yay
[10:10:59] <inkjetunito> :o a stealth PSU. with a quick look, i'm unable to tell where 230 VAC is converted to 5 VDC on this board
[10:13:15] <RikusW> antto: you could try supplying a clock to XT1
[10:13:29] <RikusW> the clock needs to be 5x higher than ISP clock
[10:13:43] <megal0maniac> 5ghz is good
[10:13:44] <RikusW> if you're lucky you only set the clock fuses incorrectly
[10:13:52] <RikusW> actually not...
[10:13:57] <megal0maniac> :P
[10:14:05] <RikusW> 5MHz maybe :)
[10:14:31] <antto> RikusW you mean i gotta find a 5MHz resonator thing?
[10:14:32] <RikusW> antto: if you had a dragon or STK500 you could easily use HVPP
[10:14:44] <RikusW> you can use the m162 maybe ?
[10:15:00] <RikusW> just do while(1) PORTB++;
[10:15:04] <RikusW> and you have a clock
[10:15:32] <antto> then i have to put it somewhere
[10:15:42] <RikusW> on XT1 of the 2561
[10:15:50] <RikusW> and if you're lucky it will work
[10:15:52] <antto> no, i mean the 162
[10:16:00] <RikusW> PB0
[10:16:07] <antto> on a board, to connect power and many things to it, right?
[10:16:09] <RikusW> yes on the 162
[10:16:16] <RikusW> yes
[10:16:44] <RikusW> if you've disable SPIEN or set RSTDSBL you'll have to use HVPP to recover it
[10:17:07] <RikusW> you could build a simple HVPP programmer using the 162
[10:17:18] <antto> how simple is it?
[10:17:32] <RikusW> and I'd recommend connecting 12V -> 1k5 resistor -> 2561 reset pin
[10:17:34] <antto> i don't even have a 40pin socket at the moment ;P~
[10:17:36] <RikusW> fairly
[10:17:55] <RikusW> you do have to make 21 connections to the 2561 however...
[10:18:06] <antto> ouch
[10:18:25] <antto> the atmega2561 is surfacemount :/
[10:18:48] <RikusW> and the pins don't go to headers ?
[10:18:56] <megal0maniac> http://denki.world3.net/avr_rescue.html
[10:19:04] <antto> it has 40 of it's pins on headers
[10:19:08] <RikusW> (I'll try the clock to XT1 first...)
[10:19:12] <antto> and some others on holes
[10:19:40] <antto> RikusW XT1 <- where's that?
[10:19:45] <antto> on the 2561?
[10:20:18] <RikusW> yes
[10:20:32] <RikusW> the datasheet will tell you which pin is XT1
[10:21:32] <antto> i think that's connected already to a 16MHz resonator thing
[10:21:49] <antto> http://i.imgur.com/NjtLb.jpg
[10:25:13] <antto> brb
[10:27:01] <RikusW> you'll need to connecd PD + PB + PA0 for HVPP
[10:27:33] <RikusW> antto: if you have a frequency meter you could check if there is a clock signal on XT1/2
[11:03:15] <megal0maniac> antto: Get this! http://i.imgur.com/cquHJful.jpg
[11:53:39] <[z_z]> whats Rd ← ZE(Rs[bp5+w5-1:bp5]); mean? destination reg is zero extended... source reg is de-referenced but what about the "bp5+w5-1:bp5" bit?
[12:07:19] <seldon> It's a range (of bits in Rs). Which instruction is this?
[12:13:18] <[z_z]> bfextu. so if Rs is bits abcdefgh bp is 3 and w5 is 2 then i get zzzzzzde?
[12:13:39] <[z_z]> rather 000000de ...
[12:17:12] <seldon> That or 000de000, I think. That is AVR32, right?
[12:17:36] <[z_z]> yes.
[12:18:01] <[z_z]> 000000de vs 000de000 is exactly what i was wondering too.
[12:18:43] <[z_z]> zero "extended" wants to make me think 000000de
[12:20:26] <seldon> "bitfield extract" makes me think the same thing. TIAS, though.
[12:21:27] <antto> megal0maniac_afk what's that?
[12:23:14] <[z_z]> i guess for the other it would be Rd ← ZE(Rs[bp5+w5-1:bp5] << bp5 ); with an extra shift
[12:43:08] <[z_z]> hmm. so i built the dfu example from the asf. erased my chip and flashed it to it... but i don't get a dfu device... if the userpage is erased the checksum should fail and the bootloader should run right?
[12:59:14] <megal0maniac> antto: Rikus' HVP board
[12:59:44] <megal0maniac> OndraSter: What you think?
[13:00:00] <antto> does he sell it? ;]
[13:01:30] <Steffanx> You soldered that megal0maniac ?
[13:02:44] <hackvana> Paging RikusW!
[13:10:19] <megal0maniac> antto: He sells a new revision. Or will, when he gets all the bits. I'm waiting...
[13:10:25] <megal0maniac> Steffanx: Noooo
[13:10:32] <megal0maniac> I wish :)
[13:10:41] <Steffanx> You cant even solder that megal0maniac ?
[13:10:59] <megal0maniac> Eh. Probably. Haven't tried
[13:11:08] <megal0maniac> Point is, it wasn't me
[13:11:56] <antto> megal0maniac as kits or pre-built?
[13:12:21] <megal0maniac> Pre-built
[15:13:30] <TechIsCool> anyone want to help debug a spi issue I can't seem to solve? I have a nrf24L01+ connected to a atmega32u4 and it seems to only send data to the device spa radically
[15:20:28] <TechIsCool> More info. Here is it broken http://techiscool.com/Pictures/Forum_Images/PCB%20Design/spi-issue/Broken.jpg and here it is working every once in a while http://techiscool.com/Pictures/Forum_Images/PCB%20Design/spi-issue/Working.jpg
[15:20:40] <TechIsCool> Yellow is miso and blue is ce
[15:23:15] <Steffanx> TechIsCool, i think code is also useful
[15:23:49] <TechIsCool> Steffanx: https://github.com/maniacbug/RF24/blob/master/examples/pingpair/pingpair.pde
[15:24:22] <Steffanx> oh, you're using some arduino lib
[15:24:31] <TechIsCool> Yes
[15:24:42] <TechIsCool> sorry I should have mentioned that
[15:37:04] <Tom_itx> well that puts a whole new light on it
[16:25:32] <andresjk> where can I find EBI compatible SRAM chips?
[16:26:41] <OndraSter> :)
[16:26:45] <OndraSter> good question
[16:26:51] <OndraSter> I am not sure if you can use 8bit SDRAMs
[16:27:07] <Tom_itx> mac user?
[16:27:53] <andresjk> Im looking in digikey but Im not use if any parallel SRAM chip will work
[16:28:43] <OndraSter> andresjk, my issues as well
[16:28:56] <OndraSter> I am waiting for atmel to release the goddamn 144? 132? pin devices
[16:29:02] <OndraSter> hopefuly with 16bit EBI
[16:31:25] <andresjk> 16bits sounds nice
[16:33:09] <andresjk> OndraSter: EBI can work with EEPROM devices too, right?
[16:33:46] <andresjk> some of them have SPI interface
[17:23:33] <[w_w]> So I've been trying to figure out why the asf dfu bootloader doesn't do anything by default... Anyone use it before? When i build the bootloader and erase, flash and reset my chip, there is no new usb device.... Isn't it supposed to recognize the magic boot key is not correct and start the bootloader?
[17:36:08] <twnqx> OndraSter: EBI... for the ARM versions?
[18:48:58] <cluelessperson> avrdude is staying "cannot set sck period. please check for usbasp firmware update"
[18:55:23] <Tom_itx> you're not the first to get that error
[19:15:01] <cluelessperson> hey guys
[19:15:08] <cluelessperson> what's the best icsp programmer?
[19:15:13] <cluelessperson> that's easiest and just works?
[19:15:51] <Malinuss> best ISP programmer? I think Tom_itx's MKII clone "just werks"
[19:16:07] <cluelessperson> someoen gave me a link yesterday I'm looking for.
[19:16:38] <langoliers> h
[19:16:50] <Horologium> do you want one that works with atmel studio or avrdude or both?
[19:25:20] <Tom_itx> cluelessperson, you were asking for mega328 help yesterday and i gave you a link but you timed out... did you get the link?
[19:25:42] <cluelessperson> Tom_itx, I don't think so. My connection is haywire and I'm trying to troubleshoot it now
[19:25:47] <cluelessperson> Horologium, both
[19:25:55] <Tom_itx> mine does both
[19:26:16] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/how_to/atmega168/mega168_howto_main_index.php
[19:26:23] <Tom_itx> there's a tutorial you can follow
[19:26:55] <Horologium> was gonna suggest yours Tom_itx
[19:28:13] <Tom_itx> so did you get it that time?
[19:44:14] <Malinuss> Tom_itx, haha your homepage makes his internet crash... why are you using port 81 btw.?
[19:45:39] <Tom_itx> because my isp blocks 80
[19:45:56] <TechIsCool> because most isp suck
[19:46:42] <Malinuss> lel
[19:46:50] <Malinuss> why would they block port 80?
[19:47:02] <Horologium> so you don't run a web server.
[19:47:08] <TechIsCool> ^This
[19:47:14] <Malinuss> why wouldn't they wan't you to run a web server?
[19:47:21] <Horologium> sucks bandwidth.
[19:47:25] <TechIsCool> bandwidth
[19:47:31] <Malinuss> b-but that's what you are paying for?
[19:47:42] <Horologium> you pay for download.
[19:47:48] <Horologium> they want to charge extra for upload.
[19:47:59] <TechIsCool> No not really you are paying for download not upload most the time
[19:48:07] <Malinuss> no, you pay for upload too... I have a 1tb/1tb limit
[19:48:13] <Horologium> that's why most home internet is like 10Mb down and 1Mb up.
[19:48:14] <Horologium> or something.
[19:48:29] <Horologium> I have unlimited 3Mb/s up and down here for 80 a month.
[19:48:46] <Malinuss> Horologium, do you live on the north pole?
[19:48:55] <Horologium> Iowa
[19:49:09] <Malinuss> that's the price for 100/40 here
[19:49:23] <TechIsCool> 36mbps/3mpbs unlimited for 75 a month with a static class 29
[19:49:49] <Malinuss> I'm paying 20$ for 30/5mbps
[19:50:00] <TechIsCool> I hate the us some times
[19:50:14] <Malinuss> I pay 50% taxses though ;D
[19:50:29] <TechIsCool> Well then its not free right
[19:50:43] <Horologium> 0.
[19:50:56] <Malinuss> Horologium, eh?
[19:51:00] <Horologium> mine also includes unlimited long distance.
[19:51:04] <Horologium> sorry, dropped keyboard there.
[19:51:19] <TechIsCool> I have to pay for telephone service because it ofsets the internet
[19:51:27] <Malinuss> Horologium, your internet? What distance? what?
[19:51:29] <Horologium> and that 36Mb/s down for you TechIsCool, is that always or shared pipe?
[19:51:38] <Horologium> Malinuss, no...phone included in the 80 a month.
[19:51:44] <TechIsCool> Horologium: Always
[19:51:56] <Horologium> you can get 36Mb/s constant 24/7?
[19:52:02] <Horologium> that's a guaranteed minimum?
[19:52:40] <Malinuss> Horologium, seriously 3/3, you can't even get that here. The smallest is 20/2... I get more on my 3G phone ;D
[19:52:46] <Malinuss> or at least the same
[19:53:11] <Horologium> but my 3/3 Mb/s is constant, guaranteed minimum both ways.
[19:53:17] <TechIsCool> Horologium: Not guaranteed but I used 982.34GBs Last month without issue down and 89GB's up
[19:53:32] <Horologium> it never drops below that.
[19:53:36] <Horologium> and is rock solid stable.
[19:53:46] <Horologium> as I have fiber to the house that provides phone, internet, and cable tv.
[19:54:12] <Horologium> but we don't get the cable here...no need for it.
[19:54:17] <Malinuss> Horologium, wait is that 3m*byte* or meba*bit*... 3megabyte/s is not that bad really
[19:54:19] <TechIsCool> Horologium: No its regular dsl but I have yet to ever see it drop
[19:54:37] <Malinuss> *mega
[19:54:46] <Horologium> megabits...yeah, it's not super fast but it is rock solid stable.
[19:55:08] <Malinuss> Horologium, well yeah that something to be happy about, if it was 2004 ;D
[19:55:25] <Malinuss> jk
[19:55:35] <Horologium> considering I live in the middle of cornfields 10 miles from the nearest town, I consider it pretty damned good.
[19:56:15] <Malinuss> Horologium, did they drag fiber wires to the middle of a cornfield?
[19:56:21] <Horologium> yup.
[19:56:24] <Malinuss> wow
[19:56:31] <Horologium> there is a 200 pair demark 50 feet from my front door.
[19:57:35] <Horologium> now, granted, I do live along the road, but there is still cornfields all around.
[19:58:10] <TechIsCool> I live on an island
[22:02:11] <cluelessperson> Hey guys!
[22:02:32] <Tom_itx> a little late to the party ehh?
[22:02:42] <cluelessperson> what happened?
[22:02:53] <Tom_itx> you left
[22:02:56] <cluelessperson> Horologium, You there? I never got your link
[22:03:03] <cluelessperson> Tom_itx, My network connection is dropping
[22:03:17] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/how_to/atmega168/mega168_howto_main_index.php
[22:03:17] <Tom_itx> <Tom_itx> there's a tutorial you can follow
[22:04:11] <Tom_itx> http://tom-itx.dyndns.org:81/~webpage/boards/USBTiny_Mkii/USBTiny_Mkii_index.php
[22:04:17] <Tom_itx> and there's the programmer
[22:04:40] <cluelessperson> Tom_itx, and that'lll work with both?
[22:04:52] <Tom_itx> both what?
[22:04:56] <Tom_itx> linux and windows
[22:04:58] <Tom_itx> yes
[22:05:00] <cluelessperson> avrdude and atmel?
[22:05:04] <Tom_itx> yes
[22:15:56] <cluelessperson> Tom_itx, where do I buy that?
[22:25:55] <langoliers> cluelessperson<< i'm assuming :) from Tom_itx ...
[22:27:41] <Tom_itx> there's a link on the menu
[22:44:17] <cluelessperson> wow this is horseshit.
[22:44:30] <cluelessperson> I bought an icsp programmer and it came with a version so old it won't work
[22:44:40] <cluelessperson> and to update it I have to have "another" programmer
[22:45:08] <langoliers> simple
[22:45:38] <langoliers> i have just drawn a fet version of dasa3 icsp programmer yesterday http://tinypic.com/view.php?pic=rjh66a&s=6 very simple.
[22:45:59] <langoliers> or you can make a DAPA cable for parallel port http://arduino.org/m/articles/view/Arduino-Bootloader-programmers
[22:46:20] <langoliers> you can program your isp programmer with these
[22:47:11] <cluelessperson> I don't have a parallel port
[22:47:21] <cluelessperson> I think I'll just buy a new one and send this back
[22:47:31] <cluelessperson> it came with no instructions, firmware, drivers, etc
[22:47:33] <langoliers> ;/
[22:47:50] <cluelessperson> anyone have a suggestion for something else?
[22:48:09] <langoliers> well flash it with a working firmware if you can
[22:48:34] <langoliers> is is an usbtiny ?
[22:48:46] <langoliers> or avrisp ?
[22:52:17] <Tom_itx> cluelessperson, mine works pretty good
[22:52:26] <Tom_itx> and is open source updateable
[22:52:52] <Tom_itx> afik it will program any 8bit avr
[22:53:10] <cluelessperson> expensive as fuck though. :/
[22:53:21] <Tom_itx> not really
[22:53:25] <cluelessperson> payment through paypal
[22:53:29] <cluelessperson> $37
[22:54:22] <Tom_itx> 32 shipped
[22:55:03] <Tom_itx> the US had a recent increase in postage which forced me to increase the cost
[22:55:21] <Tom_itx> and the cost of parts is going up
[22:55:22] <metalliqaz> Hey when I program a .hex to an AVR on my custom board using Flip, it constantly resets after using "start application". I figured it was WDT so I disabled it early in main() but that didn't take care of it. Where should I look next?
[22:56:05] <Tom_itx> metalliqaz are you using port c for anything?
[22:56:13] <Tom_itx> assuming it's a USB chip
[22:56:47] <metalliqaz> yes sorry, should have said, Atmega32u4
[22:57:10] <metalliqaz> lets see... yes I'm using C
[22:57:36] <metalliqaz> you thinking external interrupt?
[22:57:41] <Tom_itx> no
[22:57:45] <Tom_itx> just a sec
[22:58:10] <Tom_itx> maybe it's the atmega32u2
[22:58:16] <Tom_itx> PC1 is reset :)
[22:58:32] <Tom_itx> double check on the U4...
[22:58:34] <metalliqaz> i have a switch on reset, i use it all the time
[22:58:48] <metalliqaz> not on port c...
[22:59:18] <metalliqaz> basically every time i use flip i have to unplug it from USB and plug it back in, then it works fine
[22:59:27] <metalliqaz> gettin annoying
[22:59:35] <Tom_itx> are you using HWB for something?
[22:59:43] <Tom_itx> PE2
[23:00:02] <Tom_itx> if you have that pulled to gnd it will act that way
[23:00:23] <metalliqaz> yes it is pulled to gnd
[23:00:31] <Tom_itx> with a pulldown?
[23:00:35] <metalliqaz> yep
[23:00:37] <Tom_itx> can you unhook it?
[23:00:40] <Tom_itx> try that...
[23:00:52] <Tom_itx> i bet that's why
[23:01:03] <metalliqaz> oh wait, on my test board it isn't a pulldown, its a pushbutton
[23:01:30] <metalliqaz> and it isn't closed after I program with flip
[23:01:53] <Tom_itx> WDT?
[23:01:53] <metalliqaz> i'd better make sure it's actually resetting
[23:01:58] <Tom_itx> yeah
[23:02:03] <metalliqaz> i assume so because of the behavior i see
[23:02:04] <Tom_itx> it's one of those i bet
[23:02:18] <metalliqaz> first call in main is wdt_disable()
[23:02:34] <Tom_itx> i wrote a test program to blink leds on all the ports and tried it on the U2 and when it got to portc it would reset :)
[23:03:00] <metalliqaz> i wrote a test program to simply turn on the led, and it blinks very fast after "
[23:03:10] <metalliqaz> "start application" but when I just plug it in, its solid
[23:04:58] <Tom_itx> cluelessperson, mine supports ISP PDI and TPI as well
[23:05:08] <Tom_itx> those bitbanged programmers only support ISP
[23:05:34] <cluelessperson> Tom_itx, What uses PDI and TPI?
[23:05:42] <Tom_itx> PDI is for xmegas
[23:05:50] <Tom_itx> TPI is for the 6 pin attinys
[23:05:56] <Tom_itx> like the 4 5 9 and 10
[23:06:14] <Tom_itx> and works on target boards from 1.75v to 5
[23:06:33] <Tom_itx> has a recovery clock on it for mis set fuses
[23:06:43] <Tom_itx> nobody i know of has that
[23:07:00] <metalliqaz> an AVR that wakes up when power is applied should have MCUSR == PORF, correct?
[23:07:10] <Tom_itx> i'm not sure
[23:07:56] <metalliqaz> it was monumentally foolish to create a custom board with no debugging interface
[23:08:06] <metalliqaz> it's a black box, I have no idea what's going on in there
[23:42:07] <cluelessperson> Tom_itx, So why should I buy yours? :P