#avr | Logs for 2013-07-18

Back
[01:31:30] <braincracker> h
[05:00:27] <sussman> We conjure the spirits of the computer with our spells.
[05:41:41] <mr_boo> is it supposed to be hard to transfer code written to the 90S2313 to the ATtiny2313?
[05:42:37] <mr_boo> i'm trying with this code and i want to use avrstudio environment http://www.myplace.nu/avr/minidds/minidds.asm
[05:48:13] <sabesto> damnit, anyone used the jtag3 with avrdude?
[05:49:28] <antto> *crickets*
[05:51:33] <mr_boo> i get the message "byte not allowef in .CSEG"
[05:51:41] <mr_boo> why is that?
[05:56:27] <mr_boo> seems this code is totally incompatible with the assembler avrstudio 4 uses
[05:56:48] <twnqx> might be because flash is 16bit wide in avr
[05:57:53] <mr_boo> the syntax for data tables seems different to
[05:58:19] <mr_boo> the assembler doesn't appear to like that databytes are separated with ,
[05:59:34] <mr_boo> could someone guide me to translate http://www.myplace.nu/avr/minidds/minidds.asm to that it assembles in avrstudio 4?
[06:01:48] <twnqx> no, i don't use winblows software at all
[06:02:15] <twnqx> so in fact i
[06:02:23] <twnqx> would use avr-gcc on linux and not have the problem
[06:04:13] <mr_boo> is the syntax really supposed to be different?
[06:05:05] <Roklobsta> winblows. that's so immature.
[06:06:11] <twnqx> what makes you think i'm mature? :>
[06:07:10] <Roklobsta> it's winsuckandblows
[06:07:23] <mr_boo> isn't it supposed to work to declare ".byte 0xfe,0x12,0x54...." for example?
[06:07:24] <sabesto> heh, should have brought the jtagice 2 with me, i had my hopes up as the ice3 was supposedly supported in avrdude 6
[06:08:31] <Roklobsta> are we up to 6?
[06:08:49] <sabesto> well, not released
[06:09:25] <Roklobsta> svn update
[06:09:28] <Roklobsta> got that today
[06:09:39] <mr_boo> do you guys ever write in avr assembler?
[06:09:41] <Roklobsta> i still need to resubmit some patches
[06:09:52] <Roklobsta> assembler is for fossils
[06:10:12] <Roklobsta> if you don't use c++ on your AVR you're camping.
[06:11:04] <mr_boo> actually i want a project written for AT90S2313 to work on my ATtiny2313
[06:11:37] <Roklobsta> mr_boo: best thing to do is roll up your sleeves and get dirty
[06:12:17] <mr_boo> this is the project http://www.myplace.nu/avr/minidds/
[06:12:19] <Roklobsta> why do you want a dds on a tiny?
[06:12:38] <mr_boo> signal generator
[06:12:59] <mr_boo> is it a bad idea?
[06:13:31] <Roklobsta> no it's a good idea. i have done the same in the past, though with C
[06:13:34] <Roklobsta> on an 8051
[06:13:40] <Roklobsta> dds works well
[06:14:03] <mr_boo> it is written in avr assembler but my assembler wont assemble it
[06:14:10] <Roklobsta> what are your errors
[06:15:38] <mr_boo> error: syntax error, unexpected ','
[06:15:52] <mr_boo> this assembler doesn't seem to like ',' between data bytes
[06:16:19] <mr_boo> can't believe the assemblers are incompatible in syntax
[06:56:55] <steveeJ> when i'm inside an overflow ISR, should the overflow bit of the timer be 1 or 0?
[06:57:20] <steveeJ> i want to check if a function is called by the interrupt or manually
[06:57:47] <steveeJ> and TCC0.INTFLAGS & TC0_OVFIF_bm is never true, i have also checked in the IO-View in atmelstudio
[06:58:48] <steveeJ> may be i should also mention that the interrupt is actually working
[06:59:35] <steveeJ> and i have declared the signal and naked attributes to it, because i'm coding a task scheduler/dispatcher
[07:01:28] <Roklobsta> not you too
[07:01:35] <Roklobsta> i made a preemptive sceduler
[07:01:56] <Roklobsta> works like a bought one
[07:02:19] <steveeJ> mine isn't ready yet, but it's more an excersie
[07:02:36] <steveeJ> do you know about the interrupt flag?
[07:03:34] <Roklobsta> in sreg?
[07:03:52] <steveeJ> no, actually TCC0.INTFLAGS the first bit
[07:05:06] <steveeJ> i read that "TCC0.INTFLAGS & TC0_OVFIF_bm) != 0" would detect an occurred interrupt, but i don't even see the bit set in the atmelstudio simulator
[07:06:06] <steveeJ> but also people run that in a while(1) loop, so they're not using the interrupt vector
[07:06:38] <Roklobsta> TFM says TOV0 is cleared by hardware when executing the corresponding interrupt handling vector
[07:07:40] <steveeJ> please don't tell me TFM means the fucking manual :)
[07:08:13] <Roklobsta> just have a global that is set when the interrupt starts and clears when it end. when you breakpoint on your shared function check the global flag to see if it's true (ISR called it) or false(something else called it)
[07:08:26] <Roklobsta> in the best /. tradition
[07:09:01] <steveeJ> thanks, i thought of that too, but i didn't want to implement something's already there
[07:09:57] <steveeJ> thanks for clarifying this
[07:10:37] <Roklobsta> well it clears it for you.
[07:13:01] <Roklobsta> so you need to make your own WTFJH flag.
[07:31:48] <mr_boo> how does one declare a table of bytes in avr assembler?
[07:35:19] <sabesto> ffs, atmel still not fixed the cdc thing for linux
[07:35:39] <sabesto> crashes mac and freezes linux
[07:35:54] <sabesto> shows up as a network card in osx actually
[07:42:02] <OndraSter_> :o crashes mac?
[07:42:02] <OndraSter_> IT IS POSSIBLE?
[07:42:06] <OndraSter_> FREEZES LINUX?
[07:42:06] <OndraSter_> IT IS POSSIBLE?!?
[07:42:14] <OndraSter_> you learn new stuff every day :)
[07:42:59] <OndraSter_> mr_boo,
[07:42:59] <OndraSter_> somename: .byte 0x01, 0x02, 0x03 ...
[07:42:59] <OndraSter_> or was it .db
[07:43:04] <Roklobsta> what like cdc not allowed in low speed mode?
[07:43:37] <mr_boo> OndraSter_: thanks buddy
[07:45:49] <OndraSter_> Roklobsta, that would be true
[07:45:49] <OndraSter_> for low speed you have to use HID
[07:45:50] <OndraSter_> windows happily ignores that and allows CDC even for low speed
[07:46:03] <Roklobsta> i thought linux allowed it now
[07:47:21] <OndraSter_> maybe it does
[07:47:22] <OndraSter_> no idea
[07:47:56] <OndraSter_> I do not watch kernel.org RSS
[07:47:58] <sabesto> guess i have to dig up the ice mk2
[07:51:04] <mr_boo> how come the assembler doesn't seem to understand the directives "hi8" and "lo8"?
[07:52:45] <sabesto> use HIGH/LOW
[07:52:46] <Roklobsta> it should
[07:52:52] <Roklobsta> gcc spits them out
[07:53:30] <OndraSter_> HIGH
[07:53:30] <OndraSter_> and LOW
[07:53:30] <OndraSter_> gcc uses hi8/lo8
[07:53:30] <OndraSter_> avr-gcc
[07:53:30] <OndraSter_> err
[07:53:30] <OndraSter_> avr-gcc-asm uses hi8/lo8
[07:53:41] <mr_boo> on this line "ldi r31,hi8(sine) ; setup Z pointer hi" i get "unexpected ("
[07:54:32] <mr_boo> never mind
[07:54:45] <mr_boo> they are renamed to "high" and "low" nowadays
[07:54:56] <OndraSter_> are you copmiling it via gcc-asm or avr assembler?
[07:55:10] <mr_boo> avr assembler
[07:55:15] <OndraSter_> what did I just say ><
[07:55:55] <OndraSter_> <sabesto> use HIGH/LOW
[07:55:56] <OndraSter_> <OndraSter_> HIGH
[07:55:56] <OndraSter_> <OndraSter_> and LOW
[07:55:56] <OndraSter_> <OndraSter_> gcc uses hi8/lo8
[07:55:59] <mr_boo> i though gcc was something to do with c language
[07:56:08] <mr_boo> missed your post sorry
[07:56:35] <mr_boo> i googled around a bit
[07:57:04] <OndraSter_> well gcc compiles into assembler. But then it uses its own assembler to translate it to binary version
[07:57:56] <mr_boo> intresting
[07:58:56] <OndraSter_> so, what can I do with two ultrasparc III 1050MHz CPUs and four half gig memories for it... can I get a motherboard for them somewhere..
[07:58:56] <OndraSter_> or is it never-gonna-sell-boards
[07:59:11] <OndraSter_> paid 80 CZK for shipping and 1CZK for all the parts together lol
[07:59:12] <OndraSter_> auction
[07:59:17] <OndraSter_> (20 CZK = 1 USD)
[07:59:54] <OndraSter_> I am off to pick up something, afk
[08:03:14] <mr_boo> thanks for you help OndraSter_
[08:05:19] <specing> OndraSter_: lol
[08:05:40] <specing> OndraSter_: make your own board ;P
[08:18:38] <OndraSter_> specing, zeah it is only sixty four bit bus at +řémhy
[08:18:38] <OndraSter_> one fiftz
[08:18:38] <OndraSter_> vloody czech vs en keyboafd layout
[08:18:53] <OndraSter_> the remote desktop app does not know czech.
[08:19:29] <OndraSter_> but my pc knows english!
[08:19:48] <specing> Since when are you scared of a 64-bit bus?
[08:23:00] <RikusW> specing: wire wrap such a bus then you'll be scared of it too :-P
[08:24:05] <Roklobsta> bleh wire wrap
[08:24:09] <Roklobsta> road to hell
[08:24:18] <Roklobsta> did one for a uni project and 68000 in 1993
[08:30:02] <OndraSter_> lol
[08:30:15] <OndraSter_> i was barely alive in 1993
[08:30:57] <OndraSter_> bigger issue than making the board would be probably getting the sockets for the cpus
[08:30:58] <OndraSter_> 1368 pin LGA
[09:11:01] <OndraSter_> i was tempted to make a oard¨for 386 or 3486 and run it at few hundreds of khz or mhz
[09:11:02] <OndraSter_> a board*
[09:13:08] <twnqx> cpu sockets are easily available from any retailer
[09:15:20] <OndraSter_> 1000 pcs orders sure
[09:15:46] <twnqx> nah
[09:15:55] <twnqx> digikey etc will sell you only one
[09:17:20] <OndraSter_> do they have the 1368pin sun ultrasparc?
[09:17:44] <twnqx> no idea
[09:18:20] <twnqx> i bet getting the cpu will be more difficult, though
[09:19:20] <mr_boo> would you recommend buying a Teensy 3.0 development board?
[09:20:26] <mr_boo> ever tried a 32-bit architechture?
[09:28:20] <specing> mr_boo: yeah, I have a pair of TI stellarises
[09:28:48] <OndraSter_> twnqx, I already have got those 2 processors
[09:28:50] <twnqx> i coded on 386/486
[09:28:57] <twnqx> does that count as 32bit arch?
[09:31:52] <Casper> twnqx: sadly, yes
[09:31:53] <OndraSter_> sme1052b 1050MHz
[09:33:22] <mr_boo> trying to figure out which of the boards available is the best choice
[09:34:14] <mr_boo> i'm planning to do a sound module
[09:34:24] <twnqx> avr + a few 6581.
[09:38:33] <OndraSter_> haha x86
[10:34:52] <braincracker> h
[11:57:48] <braincracker> hack your 19" tft monitor CCFL to LED backlight http://pastebin.com/6QrP8ZbR neat? only one question remains, the CRI of the LEDs
[20:40:30] <Valen> heh see I would just make it flash a LED ;->
[20:40:53] <Tom_itx> well some of his examples do i think
[20:41:48] <seldon> True. Compile one that doesn't and check with objdump :P
[20:42:34] <Valen> looking at an LED flashing is easier than objdump ;->
[20:43:13] <seldon> I disagree.
[20:43:41] <Valen> easier for me?
[20:45:07] <seldon> avr-objdump -d foo.bin | less -- __vectors is right at the top.
[20:45:24] <seldon> Or foo.elf, if you roll that way.
[20:46:19] <Valen> I'll have a look at it in a bit, got issues with an office and no phones just now
[20:57:53] <seldon> If I ever meet Lennart Poettering, I'm going to sock him one for writing sytemd. Bloody piece of bloated fritterware keeps making my life difficult.
[20:58:03] <seldon> But I'll plan my revenge tomorrow. Night all.