#avr | Logs for 2013-01-10

Back
[00:26:46] <r00t|home> diametric: you only have ONE uart interface?
[00:27:15] <diametric> r00t|home: i ordered more :P
[00:27:32] <r00t|home> was going to suggest that... they are like 5 bucks tops...
[00:27:33] <diametric> hmm
[00:27:41] <r00t|home> i never counted, i must have 20 or so
[00:27:55] <diametric> I do have an arduino mega2560, i could buffer it through one of the serials on there hmm
[00:28:37] <r00t|home> can't you (ab)use the arduino's ftdi directly?
[00:29:07] <r00t|home> they should put a pair of jumpers into the rx/tx connections
[00:30:03] <r00t|home> ah, the use a mega16, not ftdi
[00:30:43] <diametric> yeah
[00:30:47] <diametric> mega8/16
[00:31:12] <diametric> wait what the hell am i talking about
[00:31:15] <diametric> i have a buspirate
[00:31:15] <r00t|home> so, use a mega8/16 and build your own uart interface
[00:31:18] <r00t|home> lol
[00:35:16] <Jojoo> Hello gang
[00:35:31] <Jojoo> I'm using arduino uno i got a problem uploading from linux
[00:35:40] <Jojoo> im using command line to upload
[00:35:47] <Jojoo> i'm using avrdude to upload
[00:35:50] <Jojoo> but when i upload
[00:36:01] <Jojoo> i get avrdude stk500 programmer not responding problem
[00:36:17] <rue_bed> 500 or 200?
[00:36:17] <Jojoo> when plugged on linux i can see /dev/ttyACM0
[00:36:32] <Jojoo> Arduino uno Rev3
[00:37:02] <Jojoo> avrdude -V -F -c arduino -b 115200 -p atmega328p -P /dev/ttyACM0 -U flash:w:arscons.hex
[00:37:08] <Jojoo> I upload with that code
[00:44:40] <r00t|home> has it ever worked, does it work with anything else?
[00:54:24] <ferdna> which one is my vrf?
[00:54:25] <ferdna> http://i164.photobucket.com/albums/u29/david_ellwood/3a9a6e73.jpg
[00:58:15] <Jojoo> Anyone?
[01:01:59] <damjan> Jojoo: has it ever worked?
[04:20:29] <OndraSter__> http://dx.com/p/unique-2-3-lcd-gun-target-shooting-alarm-clock-set-4-aa-2-aa-47853
[04:59:27] <discorpia> OndraSter__: i have one of those, or a similar one (black) i bought in bangkok. the clock is almost identical and the gun is a little bit different
[05:38:52] <soul-d> been a wile since ive dont bit manipulation but probably do somthing wrong
[05:38:56] <soul-d> http://i.imgur.com/8Fpok.jpg
[05:38:59] <soul-d> http://paste.org/59948
[05:40:28] <soul-d> the RS line and E line don't seem to behave as i want since it should be high during the transmision above
[05:41:20] <soul-d> or at least when sending the command so actualy 1 transmision on 1 off
[05:43:57] <soul-d> on pictire sample 3584 would be best example
[05:46:36] <creep> The Divide 2011: you wake up, look out the window, and see a huge mushroom cloud rising up to the sky, what now?
[05:47:07] <creep> hahaha God Bless America (2011) < this is a must to seee lol
[05:47:37] <discorpia> creep: haha, i actually saw that two days ago (from netflix recommendations) and was really surprised i had never heard about it
[05:58:38] <creep> no worries, the radiation from the A-bomb fallout will decay to normal levels in about a hundred thousand years, and will be safe to walk on the street again
[06:06:15] <soul-d> creep ive had good experience with some nuka cola i even had some mutation perk so my limbs would regenerate unedr effects of radiation :)
[06:06:55] <soul-d> can't wait to hunt some mutated zombies either scavenging for food :P
[06:08:47] <creep> definitely ;>
[06:09:36] <creep> does the city really glow for hundreds of years if they A-bomb it ?
[06:10:31] <OndraSter__> <creep> no worries, the radiation from the A-bomb fallout will decay to normal levels in about a hundred thousand years, and will be safe to walk on the street again
[06:10:33] <OndraSter__> Metro 2033?
[06:27:28] <theBear> creep, only one way to find out <grin>
[06:30:38] <soul-d> anyone have an idea on code i pasted earlier am i doing port manipulation wrong ?
[06:34:36] <soul-d> if i look at my old hc595 routine i made sure all pin's stayed high but that seems ineffecient way
[07:21:33] <jadew> my last order just arrived, I don't know what I was thinking when I bought those project boxes
[07:21:38] <jadew> they're freakishly small
[07:22:41] <jadew> they should put a coin next to them when they're taking photos, I'm clearly unable to figure out how big 40x30mm is
[07:31:07] <Tom_itx> :)
[07:32:38] <Tom_itx> jadew, make small projects
[07:32:41] <philfine> Hello everyone
[07:33:07] <philfine> I am looking for an affordable site to buy components in europe
[07:33:33] <Tom_itx> element 14
[07:33:55] <philfine> They ship cheap ?
[07:33:59] <jadew> Tom_itx, :) if I was ordering my PCBs I could fit this project in them, but this one requires something bigger (I actually waited for the boxes in order to finish the PCB design)
[07:34:05] <jadew> philfine, hi
[07:34:16] <jadew> philfine, the one I'm using is tme.eu
[07:35:20] <jadew> farnell is pretty expensive
[07:35:27] <Tom_itx> yup
[07:36:00] <Tom_itx> but i'm not in eu
[07:36:18] <jadew> I guess you're using digikey or mouser, right?
[07:36:26] <Tom_itx> mouser mostly
[07:37:16] <philfine> 9.90 for shipping seems pretty expensive for me, considering the low price of the products I buy
[07:37:55] <philfine> Last time I used farnell however they charge 9eur for shipping too
[07:38:20] <philfine> It would be Ok, if I was not doing it as an hobby
[07:38:39] <philfine> But I don't mind waiting longer for the components
[07:39:21] <jadew> philfine, tme charges you 9 eur?
[07:39:26] <jadew> where are you from?
[07:39:31] <philfine> Portugal
[07:40:36] <jadew> you don't have GLS
[07:40:44] <jadew> they charge only half of that
[07:41:15] <philfine> Nop :S
[07:43:05] <philfine> Any other options
[07:43:06] <philfine> ?
[07:44:01] <jadew> if you find any let us know
[07:44:08] <jadew> the other ones I know of are pretty expensive
[07:44:16] <jadew> at least more expensive than tme
[07:44:49] <jadew> http://rs-online.com/ is the other option I know of
[07:45:02] <jadew> but I never bought from them for different reasons
[07:48:04] <jadew> not the cheappest hobby around, but look at the bright side, you could have done a lot worse (in terms of hobbies)
[07:58:00] <philfine> 5euros on that one
[07:58:05] <philfine> Guess I found my choice
[07:58:06] <philfine> Thanks
[07:58:23] <jadew> on rs?
[07:58:26] <philfine> Will come back later. Medical doctor appointment now
[07:58:28] <philfine> yes
[07:58:33] <philfine> At least for portugal
[07:58:38] <jadew> make sure to check the prices ;)
[07:58:44] <jadew> on all sites
[07:58:51] <philfine> It even seems like aPortuguese company (looking at the site)
[07:59:03] <jadew> lol
[07:59:15] <philfine> farewell I know it is at least 9euros from before
[07:59:25] <jadew> I meant for the components
[07:59:47] <philfine> Spain
[08:00:17] <philfine> I know, the difference should not be go above shipping expenses :D
[08:00:23] <philfine> See you later thanks
[08:00:28] <jadew> see ya
[08:00:29] <philfine> and
[08:04:11] <OndraSter__> ARRGH
[08:04:19] <OndraSter__> why does not my USB stack work on PC properly but works on laptop just fine!
[08:05:06] <OndraSter__> let's see with another laptop
[08:05:07] <Steffanx> because.. because.. it's you
[08:20:11] <inflex> damn, another night without wokring on my project
[08:32:17] <tzanger> OndraSter__: we have been through this
[08:33:28] <tzanger> OndraSter__: just for fun, run your device through a hub on the laptop. if it still works, try pc with the hub
[09:19:42] <megal0maniac> Back to civilization :D
[09:19:47] <megal0maniac> Or mine, at least
[09:19:57] * megal0maniac waves
[09:23:57] * Steffanx hides
[09:26:05] <megal0maniac> :/
[09:26:13] <megal0maniac> Waving my hand, not a molotov
[09:29:48] <soul-d> sneaky
[09:30:14] <soul-d> the display duty setting apeartly was off from the old code so it set it to low for somthing to be visable
[09:32:33] <OndraSter__> <tzanger> OndraSter__: just for fun, run your device through a hub on the laptop. if it still works, try pc with the hub
[09:32:38] <OndraSter__> I am running it on PC through a hub
[09:32:40] <OndraSter__> my LCD
[09:32:45] <OndraSter__> on my LCD*
[09:32:53] <OndraSter__> it works on another laptop too
[09:33:53] * theBear waves a molotov then throws his hand at police
[09:33:56] <theBear> woops !
[09:34:09] <theBear> good thing i didn't remember to set my hand on fire before i threw it :)
[09:34:24] <OndraSter__> ;)
[09:34:27] <megal0maniac> You've been drinking ;)
[09:34:37] <OndraSter__> connected the board through some chinese usb hub to laptop - still works
[09:34:53] <theBear> a little, but more importantly, it has all been free, and i made it thru the first day back at work and only one job made me sad
[09:35:12] <OndraSter__> INTERESTING
[09:35:19] <OndraSter__> on the PC with hub it seems to (at least partially) work just fine
[09:36:06] <OndraSter__> so is it the hub's on my LCD problem..
[09:36:13] <theBear> hmmm, is OndraSter__ experiencing usb-non-compliance issues maybe ? over the years i've had various products/hubs/machines that just wouldn't talk to each other, but throwing in some random 2dollarshop chinese hub, or using ANY other machine/usb port, etc etc, would work reliably no matter how hard you tried to break it
[09:36:13] <OndraSter__> then why everything else, including atmel's stack, works there? :(
[09:37:00] <theBear> and on that note, it's usually something very minor like a corner-case timing limits issue, or maybe cutting corners on some aspect of the electrical interface
[09:37:38] <OndraSter__> theBear, I don't receive SINGLE byte unless I reset the chip via PDI
[09:37:43] <OndraSter__> succesfuly
[09:37:47] <OndraSter__> when connected to my LCD
[09:37:49] <OndraSter__> I don't get it
[09:37:51] <theBear> other things are just bad on the electrical side, for example a popular rs485(dmx) ft2323 based commercial-'dongle' NEVER works on cheap usb cables, you gotta have nice thick ones with some real shielding
[09:38:04] <theBear> that last one was a sidecomment, not an offhand insult
[09:38:41] <OndraSter__> it just drives me nuts
[09:38:48] <OndraSter__> oh well, at least through the hub it works and I can now finish the CDC itself
[09:38:55] <theBear> something's gotta drive 'em <grin>
[09:39:09] <megal0maniac> I also suggested USB non compliance
[09:39:14] <OndraSter__> well obviously
[09:39:15] <OndraSter__> but what?
[09:39:19] <OndraSter__> all the registers are identical
[09:40:24] <megal0maniac> It's something simpler than what you're looking for, I'm sure
[09:40:33] <OndraSter__> I know that it is
[09:40:34] <OndraSter__> but what! :D
[09:41:16] <yunta> OndraSter__: ground sharing problem? pdi
[09:41:28] <yunta> pdi.. connector probably also has gnd
[09:41:45] <yunta> do you disconnect it for non-pdi reset testing?
[09:41:54] <theBear> OndraSter__, don't suppose you got a (software/in os) usb sniffer/logger you could compare things with ? probably both devices thru the hub (ie. both working and supposedly 'identical') looking for differences, and maybe a log up to/at where it stalls without the hub for hints
[09:42:11] <OndraSter__> yunta, huh?
[09:42:33] <OndraSter__> it works if I do the same thing but on laptop
[09:42:46] <OndraSter__> theBear, I have got USBlyzer, but it is useless for broken enumerations
[09:43:07] <OndraSter__> or at least I do not know how to use it for broken enumerations, it didn't show anything
[09:43:14] <OndraSter__> (anything useful or anything at all I could start with)
[09:43:20] <OndraSter__> it was like the PC didn't send single packet
[09:43:46] <theBear> OndraSter__, like i said, log them both through the hub/however they WORK, and look for differences in protocol or timing, whatever you can identify, might get lucky
[09:43:50] <OndraSter__> arrgh and AVR Jungo driver is stuck again, AS6 cannot connect to the Dragon again
[09:44:21] <OndraSter__> brb reboot
[09:44:47] <theBear> hmmm, don't know usb that well, do hubs 'translate' things, or just negotiate and pass packets or even switch bare data maybe? to the host/slaves ?
[09:45:03] <OndraSter__> back
[09:45:11] <OndraSter__> pass packets I think
[09:45:12] <theBear> kinda like, is a usb hub like an ethernet hub, or an ethernet switch ?
[09:45:24] <OndraSter__> well
[09:45:29] <OndraSter__> USB is ridiculously awful thing
[09:46:12] <theBear> hmm, so like a switch i guess, meaning timing problems may disappear, but perhaps some quirk of negotiation or packet finishing or something that needs slight timing AND the protocol difference to trigger a fault
[09:46:46] <megal0maniac> Also does away with power problems, but that doesn't apply here
[09:46:50] <theBear> yeah, i know a usb hub is nothing like an ethernet anything, just means as far as if it takes in and retransmits data, or just 'passes' it untouch
[09:46:50] * megal0maniac waves at RikusW
[09:46:53] <yunta> OndraSter__: try on linux machine with usbmon, who knows...
[09:47:12] <megal0maniac> OndraSter__? Linux? Haha :)
[09:47:15] <OndraSter__> :D
[09:47:20] <OndraSter__> dude, I have passed UNIX class with an A
[09:47:30] <OndraSter__> only 33 out of 700 - 800 people had an A
[09:47:32] <OndraSter__> :P
[09:47:34] <megal0maniac> I know
[09:47:36] <theBear> so try usbmon, you'll have no problem <grin>
[09:47:39] <megal0maniac> But did you enjoy it?
[09:47:42] <RikusW> hi megal0maniac
[09:47:43] <theBear> mr unix
[09:47:43] <theBear> hehe
[09:47:45] <OndraSter__> I did not care really megal0maniac lol
[09:47:51] <OndraSter__> we used Solaris 10.5
[09:47:56] <theBear> old schoo'
[09:48:03] <OndraSter__> or was it Sun 10.5... I never remember which is kernel and which is OS
[09:48:13] <yunta> OndraSter__: about gnd what I meant was: if your gnd pin in usb port is broken - you may experience weird things depending on pdi connector being connected or not (providing or not the additional gnd path)
[09:48:29] <OndraSter__> yunta, I tried few cables and both USB ports on my LCD of course
[09:48:43] <theBear> i remember solaris, much like bsd, i thought "yeah, it is solid, i can see why people like this, but damned if the config layout and 'important' commands aren't all slightly renamed and confusing my ass off !"
[09:48:55] <yunta> s/port/plug on pcb/
[09:49:14] <OndraSter__> on PCB? no
[09:49:23] <yunta> ok
[09:49:24] <OndraSter__> let's init the way atmel does - enable interface and THEN set all the options to it :P
[09:49:40] <OndraSter__> instead me - first setting up what it can do and THEN enabling the actual interface
[09:49:44] <yunta> wh...
[09:52:45] <megal0maniac> I smell non compliance
[09:53:16] <theBear> lol, but i'm wearing standard white Y-fronts, 100% compliant
[09:53:23] <theBear> and yet the smell persists
[09:55:20] <OndraSter__> megal0maniac, don't worry, after it gets enabled it stil has to attach the pins :P
[09:55:23] <OndraSter__> which is done after that
[09:55:40] <megal0maniac> I'm not worried. Everything of mine works ;)
[10:05:24] <theBear> heh
[10:14:36] <OndraSter__> woop woop
[10:14:43] <OndraSter__> putty now opens window
[10:14:51] <OndraSter__> all the setcoding/getcoding/setstate etc work!
[10:15:57] <theBear> cool, now fix the new fingerprint reader pam module for this cool new keyboard i got
[10:16:02] <theBear> oh, you fixed the usb thing ?
[10:16:25] <soul-d> sigh should take notes
[10:16:49] <soul-d> now display does like 4 lines then rest of the display is a copy of that
[10:18:05] <tzanger> OndraSter__: hm, does it work on the laptop through the same hub?
[10:18:32] <OndraSter__> I am not connecting my LCD to the laptop right now
[10:19:08] <OndraSter__> now about implementing small FIFO for the USB serial...
[10:19:31] <OndraSter__> although hardware UART does not have one either
[10:19:43] <OndraSter__> on the other hand, hardware UART won't send you 5 bytes in single interrupt
[10:23:51] <OndraSter__> tzanger, thanks for the tip with the hub. http://sphotos-h.ak.fbcdn.net/hphotos-ak-ash4/408696_471645879562145_1533908513_n.jpg (ignore the middle one, she looks weird)
[10:25:44] <megal0maniac> Ignore all of them :/
[10:25:56] <OndraSter__> the left one and the right one are great.
[10:27:06] <megal0maniac> Not great
[10:27:09] <megal0maniac> Still strange
[10:27:45] <OndraSter__> megal0maniac, we know that you like black men...
[10:28:48] <megal0maniac> Weak :P
[10:30:44] <megal0maniac> When I get home, I'll find a picture of what I think is appealing
[10:30:57] <megal0maniac> And then you shall bow
[10:30:59] <megal0maniac> :D
[10:31:04] <OndraSter__> will it be a female?
[10:31:06] <OndraSter__> and a person?
[10:31:11] <megal0maniac> Yes. Human even
[10:31:44] <megal0maniac> I got me some standards :)
[10:31:46] <megal0maniac> Bye bye
[10:34:33] <tzanger> OndraSter__: heh they're not hot, but I still wouldn't mind lost in nounderwearland instead
[10:35:16] <OndraSter__> :D
[10:36:18] <OndraSter__> hah my simple code that: a) checks for 5 seconds to see if USB comes up. If it does not come up => goes to application. If it does => waits for another 5 seconds to see if any character appears on the serial console (will be enhanced in the future). If it does => stays in BL. If not => goes to the application
[10:49:02] <iSaleK> How can I redirect /portfolio/article.php to /projects/article.php links? Does anyone have working .htaccess code?
[10:49:16] <iSaleK> lol, wrong window... :)
[11:18:00] <GuShH> iSaleK: really?
[11:37:29] <Steffanx> GuShH: really?
[11:37:53] <GuShH> really!
[11:38:04] <Steffanx> OK nice
[12:06:15] <OndraSter> hmm do I want to implement STK500 or something newer and more custom-ish?
[12:23:34] <fubbi> when I uncomment the lines 369-433 or 434-502 and try to compile it, I get this error "overflow in implicit constant conversion"
[12:24:14] <fubbi> I'm using Win7 x64, editing with Notepad++ and compiling with avr-gcc
[12:24:51] <fubbi> thats the .c file: http://cornfieldelectronics.com/mfaire/tvbgone/tvbgone_eu.c
[12:28:52] <Steffanx> Remember an int(eger) is only 16-bit for AVR-GCC fubbi
[12:31:50] <fubbi> so you mean the longer numbers are the problem?
[12:34:09] <Steffanx> Yes, i think so
[12:45:30] <fubbi> Steffanx: is it possible to change in to BIGINT or something else?
[12:47:17] <OndraSter> uint32_t maybe?
[12:47:23] <Steffanx> Yeah
[12:47:55] <OndraSter> I don't like using "int" -- it differs across platforms
[12:47:57] <Steffanx> dont forget to include stdint
[12:48:05] <OndraSter> uint8_t, ... are always 8 bits, ..
[12:48:32] <Steffanx> Unless your typedef is wrong :P
[12:48:38] <OndraSter> of course
[12:49:40] <fubbi> programming "real" AVRs is much more difficult than arduino :D
[12:49:48] <OndraSter> obviously
[12:50:08] <Steffanx> Nah, not really fubbi
[12:50:18] <Steffanx> You just have to do more yourself
[12:50:22] <OndraSter> you don't have all the funky startup files etc
[12:50:22] <OndraSter> yep
[12:50:42] <fubbi> and you have to care about integer types xD
[12:50:52] <Steffanx> You have to do that with arduino aswell ..
[12:50:54] <OndraSter> yep
[12:52:44] <fubbi> and the programmer just wrote on his page "if you need other codes uncomment them" which sounds so easy :D
[12:54:16] <fubbi> ah, so I just have to change "int onTime;" to something like "uint8_t onTime;" ?
[12:55:37] <Steffanx> With a size of the int that fits your needs :)
[12:56:01] <fubbi> oh thats a easy solution then :D
[12:58:00] <fubbi> oh
[12:58:16] <fubbi> but it takes more space on my attiny2313
[12:58:37] <fubbi> 169% full o_O
[12:59:55] <OndraSter> lol
[13:01:44] <fubbi> now I know why the arduino code uses somehow to hex code converted numbers so store all the codes
[13:17:27] <diametric> so apparently in avr-libc sprintf/printf can't/won't convert floats?
[13:17:41] <diametric> if this the case? all I get are "?" when I try to do %f
[13:23:44] <diametric> nevermind, figured it out, needed to link in the printf libraries that have floating point stuff
[13:24:00] <diametric> damn its like 2k for just the floating point crap
[13:27:57] <RikusW> fp is big...
[13:29:13] <RikusW> and slow
[13:30:42] <Horologium> we really need a good fixed point library.
[13:33:27] <specing> Hehe, stellaris has a FPU :)
[13:34:24] <specing> Have you tried using short float?
[13:35:35] <specing> Oh, I guess GCC is not smart enaugh for that
[13:44:52] <diametric> oh well, at least I really don't need the floating point stuff outside of debugging
[14:06:03] <specing> diametric: What are you doing?
[14:06:18] <diametric> oh just measuring voltages
[14:06:25] <diametric> and printing them in something easy to read =)
[14:06:28] <specing> And you need float for that?!
[14:06:54] <diametric> well unless I want it in mV, I'd rather see 5.18 volts instead of 5180000 volts
[14:07:00] <diametric> err millivolts
[14:07:30] <specing> diametric: I have a better proposal for you
[14:07:36] <diametric> whats that?
[14:07:46] <specing> the ADC returns values in [0, 1023], true?
[14:07:50] <diametric> yeah
[14:07:52] <specing> so
[14:08:03] <specing> What is the ranfe you are measuring?
[14:08:09] <specing> range*
[14:09:46] <diametric> two different ranges, I'm measuring the true Vcc off the rail from my Vreg, so I can factor that into my equation to measure the true supply Vcc
[14:09:52] <diametric> through a voltage divider of course
[14:10:40] <specing> aha
[14:10:51] <diametric> http://pastebin.com/gSRxvLVT is my code, the relevant parts to this discussion are readVcc(), readBatteryVoltage(), and then their use in main()
[14:10:52] <specing> so make the voltage divider :2
[14:11:03] <specing> and make the voltage reference be 2.56 V
[14:11:29] <specing> then the 0-1023 will correspond to 0-2.56V
[14:12:03] <specing> or, if you split that:
[14:12:11] <specing> (8 high order bits)
[14:12:27] <specing> 0-255 corresponds to 0-2.56V
[14:13:05] <specing> you get a nice, decade correspondence between the ADC value and the actual voltage
[14:13:28] <specing> eg. ADC value 214 is 2.14V
[14:13:32] <specing> :)
[14:14:01] <specing> and the lower two bits give you the fractions .0, .25, .50 and .75
[14:16:21] <diametric> thats a really good idea actually
[14:17:41] <specing> I've done this before
[14:17:58] <specing> the speedup from using floating point should be atleast 10*
[14:18:23] <specing> (it should be atleast 10* fater than floating point)
[14:18:28] <specing> faster* argh
[14:19:08] <specing> with this method your also never work with values larger than the processor optimum
[14:32:28] <specing> diametric: http://sprunge.us/RITP
[14:33:01] <specing> diametric: now optimise that
[15:32:20] <Tom_itx> http://www2.electronicproducts.com/Buck_converter_steps_36_V_down_to_3_3_V-article-icpo01_Linear_LTC3646_mar2013-html.aspx
[15:36:40] <diametric> anyone know off the top of their head the uart RX buffer in the atmega328p?
[15:36:52] <diametric> I want to say 4 bytes
[15:40:47] <Xark> diametric: 1 byte IIRC
[15:42:50] <OndraSter> yes, 1 byte
[15:42:53] <OndraSter> wait
[15:42:56] <OndraSter> 2 bytes maybe
[15:43:01] <OndraSter> 1 in the DATA reg, one being received
[15:43:44] <OndraSter> Tom_itx, too expensive :P
[15:44:56] <Xark> OK, one "on its way in" and one in the buffer (that must be read before new byte completes AFAIK).
[15:45:27] <Xark> [Sounds like effectively a one byte buffer to me]
[15:45:28] <OndraSter> yes, that is how I ment it
[15:47:02] <specing> 2 bytes
[15:55:49] <OndraSter> damnit, I forgot to ask something RikusW
[15:58:57] <OndraSter> how smart idea is to have bootloader which can update itself?
[15:59:12] <megal0maniac> Terrible
[15:59:14] <OndraSter> :D
[15:59:29] <OndraSter> of course some security
[15:59:37] <Steffanx> Go for it OndraSter
[15:59:45] <OndraSter> (backups current BL, if it after reboots does not receive USB enumeration within 10 seconds, it flashes back the old one or something)
[15:59:56] <OndraSter> after reboot*
[16:00:10] <megal0maniac> Just trollin'. Usually there isn't much of a need for the bootloader though. But it is a cool concept
[16:00:19] <OndraSter> I have got 8kB space for the BL :)
[16:00:33] <OndraSter> the USB CDC + boot flags stuff fit into <3kB of space
[16:00:42] <megal0maniac> In your imagination. You haven't built anything :/
[16:00:49] <OndraSter> what??
[16:01:02] <megal0maniac> Well nothing that I can buy
[16:01:05] <OndraSter> :D
[16:01:07] <megal0maniac> So it doesn't count yet :)
[16:01:43] <OndraSter> http://clip2net.com/s/2HeWm
[16:02:15] <OndraSter> (COM6 = FT232 serial adapter through which I am sending some debug info)
[16:02:19] <OndraSter> (COM8 = the actual XBoard)
[16:02:25] <megal0maniac> Yay for putty
[16:02:33] <OndraSter> CDC Packet
[16:02:33] <OndraSter> 00 00 00 00 00 00 07 00
[16:02:33] <OndraSter> Received data: 51
[16:02:33] <OndraSter> Going to bootloader...
[16:02:36] <OndraSter> :)
[16:02:43] <OndraSter> it can determine whether to stay in BL or go to app
[16:03:07] <megal0maniac> Nifty
[16:03:16] <OndraSter> it gives 7 seconds for the device to enumerate on USB. If it does not enumerate => goes to the app
[16:03:27] <OndraSter> if it does => waits another 5 seconds for PC to send anything. If it does not => goes to the app
[16:03:48] <OndraSter> if it does => it will check what was it and if it was special sequence (probably, I might just make it check for special baud rate) it will stay in BL
[16:03:59] <megal0maniac> Will this work on coco?
[16:04:05] <OndraSter> it will work on any XBoard
[16:04:06] <megal0maniac> i.e. can I update coco?
[16:04:13] <OndraSter> through your U2S, yes :D
[16:04:28] <OndraSter> the atmel's USB FLIP cannot flash over itself
[16:04:35] <megal0maniac> Running at 3v3. No level shifting required :P
[16:04:45] <megal0maniac> Overclocked to 16mhz
[16:04:48] <OndraSter> hehe
[16:05:08] <OndraSter> did I tell you how I was running the Xmega's core at 80MHz and I could still blink LEDs just fine? :P
[16:05:23] <megal0maniac> Multiple times :)
[16:05:25] <OndraSter> :D
[16:05:35] <GuShH> OndraSter: you are getting old...
[16:05:53] <OndraSter> I am :(
[16:05:55] <OndraSter> but so are you!
[16:05:58] <GuShH> :(
[16:05:58] <OndraSter> at the same rate
[16:06:00] <GuShH> crap
[16:07:03] <megal0maniac> I need some logic to analyze
[16:07:26] <OndraSter> <OndraSter> it will work on any XBoard
[16:07:29] <OndraSter> just different board define
[16:07:38] <OndraSter> (since coco has got bigger page size)
[16:07:56] <megal0maniac> So you send me a .hex file and BAM
[16:08:11] <OndraSter> and doing COMPLETELY universal bootloader is not probably something I want to do - although there are maybe 3 values to be changed per board (page size, total flash size and... hmm, only two!)
[16:08:23] <OndraSter> I can read what chip it is running from via NVM controller
[16:08:31] <OndraSter> maybe in future version :)
[16:09:15] <megal0maniac> I'll be around
[16:09:18] <megal0maniac> 'Night all
[16:09:44] <OndraSter> gn
[17:35:05] <soul-d> anyone had problem of grapical lcd in text mode showing multiple lines egg only first 4 are written then from 5 line you see same data written to at the same time
[18:06:58] <tzanger> sigh
[18:09:27] <tzanger> I can't seem to force JTAG disabled
[18:09:37] <tzanger> or rather it may be disabled but the pullup seems to stay there
[18:12:33] <tzanger> MCUCR's got JTD set (written consecutively with interrupts disabled), DIDR0's 0xff... I should not have significant current to ground or +v on this pin
[18:21:33] <Tom_itx> soul-d sounds like it's remapping the lines
[18:22:20] <soul-d> doesn't seem like somthing display duty controlls ?
[18:22:25] <Tom_itx> it's quite common for multi line displays to be mapped in such a way
[18:22:48] <Tom_itx> ie 4 x 20: 1 & 3 are basically the same line
[18:22:54] <Tom_itx> as are 2 & 4
[18:23:35] <Tom_itx> so the line end needs to be determined so you know where the start of the next line begins
[18:23:51] <Tom_itx> sounds like the code has them overlapped
[18:24:03] <Tom_itx> sorta a WAG but that's what i see
[18:24:09] <soul-d> here its consecutive problem is that it not first time im messing with these thought i had it fixed well i kno the first 4 are corrent wich is afther writing 0x00 to start / cursor addr
[18:24:24] <tzanger> oh yeah the HD44780 does really screwy mapping for the lines
[18:24:37] <tzanger> it's not soul-d's exact problem but I bet it's similar
[18:24:48] <tzanger> soul-d: try writing the alphabet and see what actually shows up
[18:25:04] <Tom_itx> similar to this: http://tom-itx.dyndns.org:81/~webpage/temp/lcd/lcd_txt.jpg
[18:25:16] <Tom_itx> the onboard chip determines where the lines begin and end
[18:26:50] <Tom_itx> sounds like your display is a similar size
[18:37:15] <soul-d> made some pic had to use flash to nog get them to crapy dark
[18:38:29] <soul-d> http://imgur.com/a/SzJ3D based on first to added few spaces but you can see it copys first 5 lines at the same time
[20:46:44] <creep> h
[20:47:00] <Tom_itx> .c
[20:53:25] <OndraSter> .s
[21:47:08] <inflex> lo Tom_itx
[21:51:06] <Tom_itx> hey inflex
[21:51:13] <inflex> how's things going?
[21:51:24] <Tom_itx> good
[21:51:26] <Tom_itx> you?
[21:53:21] <Tom_itx> not many projects goin right now though
[21:55:24] <inflex> very busy - lots of pcs, phones, ipods etc to fix
[21:55:59] <inflex> not a lot of electronics stuff - right now the oven controller is being a fridge-freezer controller... until I finish building this replacement (already have the PCBs, just need to program / test / encase it )
[21:57:22] <Tom_itx> same here.. busy but not with fun stuff