code logs -> 2011 -> Tue, 12 Apr 2011< code.20110411.log - code.20110413.log >
--- Log opened Tue Apr 12 00:00:41 2011
00:01 Rhamphoryncus [rhamph@C06FE3.F5723C.BE3FEB.9D4666] has joined #code
00:10 You're now known as TheWatcher[T-2]
00:14 You're now known as TheWatcher[zZzZ]
00:20 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has quit [[NS] Quit: Z?]
00:31 kwsn [kwsn@BAD19E.B5A83A.180240.E5184B] has joined #code
00:38 kwsn is now known as kw-seething-n
00:40 AnnoDomini [annodomini@9D46A2.7F6DC0.659CB5.17465A] has quit [[NS] Quit: leaving]
00:51 Stalker [Z@26ECB6.A4B64C.298B52.D80DA0] has quit [Ping timeout: 121 seconds]
01:02 Attilla [Some.Dude@37647E.0E7447.22C7B1.567421] has quit [Ping timeout: 121 seconds]
01:22 Derakon[AFK] is now known as Derakon
01:37 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
--- Log closed Tue Apr 12 02:05:26 2011
--- Log opened Tue Apr 12 02:56:41 2011
02:56 TheWatcher[zZzZ] [chris@Nightstar-b4529b0c.zen.co.uk] has joined #code
02:56 Irssi: #code: Total of 26 nicks [1 ops, 0 halfops, 0 voices, 25 normal]
02:56
< SchoolPhox>
I'd almost say there's something bigger going on here. I don't know what, though. Everything's pretty modular.
02:57 Irssi: Join to #code was synced in 48 secs
02:57
< SchoolPhox>
And, I mean, what could possibly be happening to cause intermittent errors like this? Nothing I've ever heard of.
03:03
< SchoolPhox>
Alright. I think I have it narrowed down. The dev environment I use has an option to clean the project prior to building.
03:05
< McMartin>
Ah.
03:05
< SchoolPhox>
That resets the memory to a default state, and deletes any unused variables hanging around from previous builds. At least, I think that's what it does.
03:05
< McMartin>
You may have some dependencies fucked up.
03:05
< McMartin>
s/variables/object files/
03:05
< SchoolPhox>
Oh, is that what it does?
03:05
< McMartin>
Clean resets your *build system*
03:05
< McMartin>
Normally when you rebuild it only builds the files that changed and uses old values of everything else.
03:06
< McMartin>
However, if it doesn't know which bits go with which final executables, some will still be using old stuff
03:07
< SchoolPhox>
Okay. That makes a lot of sense, then. This is code that's been floating around on my computer for months, being worked on when I had the time. It's seen a lot of re-writes, and major shuffles.
03:07
< SchoolPhox>
I don't think I've cleaned it even once
03:07
< SchoolPhox>
Anyway, it seems to have fixed most of the problems. No more spontaneous jaunts into data abort land
04:17 cpux is now known as shade_of_cpux
04:21 kw-seething-n is now known as kwsn\blargh
04:43
< SchoolPhox>
Man, am I ever in over my head. Can't even pass an array between functions. Think I need a break, or something
05:02 SchoolPhox [NSwebIRC@FD3571.2233F7.69D3C5.B7D152] has quit [[NS] Quit: going home and sleeping, god damn it]
05:07 kwsn\blargh is now known as kwsn
05:33 kwsn is now known as kwsn\t-something
05:45 kwsn\t-something [kwsn@BAD19E.B5A83A.180240.E5184B] has quit [[NS] Quit: mo]
06:11 Kindamoody[zZz] is now known as Kindamoody
06:13 Derakon is now known as Derakon[AFK]
06:20 ErikMesoy|sleep is now known as ErikMesoy
06:27 celticminstrel [celticminst@Nightstar-f8b608eb.cable.rogers.com] has quit [[NS] Quit: KABOOM! It seems that I have exploded. Please wait while I reinstall the universe.]
06:45
< Phox>
Alright. Breakpoints; What do the do to your code?
06:45
< Phox>
&they
06:45
< Phox>
Basically, I have an interrupt routine. It doesn't work. I can trigger an interrupt on IRQ2, then an interrupt on IRQ3.
06:46
< Phox>
I can't trigger two interrupts in a row on IRQ2, though.
06:46
< Phox>
Now, here's the odd part. If I add breakpoints to the interrupt routine, I can trigger multiple interrupts successively on the same IRQ
06:46
< Phox>
Remove the breakpoints, the program breaks, again
06:47
< Phox>
None of the operations in the routine are time critical. I write to a variable, clear a couple registers, reset the interrupt, then return to where I was before.
06:48
< McMartin>
Breakpoints are different from architecture to architecture.
06:48
< McMartin>
On x86, it's int 3
06:49
< Phox>
I don't have the spec-sheet in front of me, but the breakpoint is implemented through a Jtag interface, and has a dedicated interrupt.
06:50
< Phox>
The jtag actually works through an emulator of some sort, kind of watching from above the code.
06:50
< Phox>
My understanding may be lacking, but I can't really see how I could possibly be effecting the code itself.
06:51
< Phox>
*affecting?
06:56
< Phox>
Well, anyway, I guess I'll crash. Tomorrow'll be a complete reinstall of the dev environment, redownload the libraries, and whatever else I can think of. At this point I'm troubleshooting with code that I've had running in front of me, and know that it should work.
07:09 Phox [Tertius_Vul@EB02D1.0F3E21.BE1EAF.350E2F] has quit [Client closed the connection]
07:28 Kindamoody is now known as Kindamoody|out
08:04 AnnoDomini [annodomini@9D46A2.7F6DC0.659CB5.17465A] has joined #code
09:38 You're now known as TheWatcher
10:02
< Tamber>
Morning, Watcher.
10:02 Vornicus is now known as Vornicus-Latens
10:02
< TheWatcher>
Ullo
10:06 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
10:08 AnnoDomini [annodomini@9D46A2.7F6DC0.659CB5.17465A] has quit [[NS] Quit: Going!]
10:20 Omega [omegaboot@490720.5E22A0.5EC9D4.5966EF] has quit [Client closed the connection]
10:21 Alek [omegaboot@490720.5E22A0.5EC9D4.5966EF] has joined #code
10:36 Attilla [Some.Dude@Nightstar-92c9199f.cable.virginmedia.com] has joined #code
10:38 AnnoDomini [annodomini@F67919.F326B3.98D923.BDA7B6] has joined #code
11:20 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
12:28 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has quit [Operation timed out]
12:29 ToxicFrog [ToxicFrog@ServerAdministrator.Nightstar.Net] has joined #code
12:35 AnnoDomini [annodomini@F67919.F326B3.98D923.BDA7B6] has quit [[NS] Quit: Going home.]
13:07 AnnoDomini [annodomini@9D46A2.7F6DC0.659CB5.17465A] has joined #code
14:02 Phox [Tertius_Vul@EB02D1.0F3E21.BE1EAF.350E2F] has joined #code
--- Log closed Tue Apr 12 14:21:44 2011
--- Log opened Tue Apr 12 14:22:02 2011
14:22 TheWatcher [chris@Nightstar-b4529b0c.zen.co.uk] has joined #code
14:22 Irssi: #code: Total of 27 nicks [1 ops, 0 halfops, 0 voices, 26 normal]
14:22 Irssi: Join to #code was synced in 54 secs
15:01
< gnolam>
"ConfigPathChangerA handy little class which changes current path to the path of given entry and restores it in the destructoir" <- destructoir? wxPython est francais?
15:01
< gnolam>
Suddenly, I don't know if I can entrust my simulated frogs to it. :-/
16:59 ErikMesoy is now known as Harrower
17:00 EvilDarkLord is now known as Maze
17:02 kwsn [kwsn@Nightstar-9d744862.dyn.centurytel.net] has joined #code
17:03 AnnoDomini is now known as Metagaos
17:11 Derakon[AFK] is now known as Derakon
17:20 Reiv [orthianz@3CF3A5.E1CD01.36D449.95F5A5] has quit [Client closed the connection]
17:20 Reiv [orthianz@3CF3A5.E1CD01.36D449.95F5A5] has joined #code
17:41 AbuDhabi [annodomini@D553D1.41311B.82BE20.1E2C73] has joined #code
17:42 Metagaos [annodomini@9D46A2.7F6DC0.659CB5.17465A] has quit [Ping timeout: 121 seconds]
17:46 AbuDhabi is now known as Metagaos
17:55 Reiv [orthianz@3CF3A5.E1CD01.36D449.95F5A5] has quit [Client closed the connection]
17:55 Reiv [orthianz@3CF3A5.E1CD01.36D449.95F5A5] has joined #code
17:59 You're now known as TheWatcher[afk]
18:05 kwsn is now known as kw-school-n
18:32 Reiv [orthianz@3CF3A5.E1CD01.36D449.95F5A5] has quit [Client closed the connection]
18:32 Reiv [orthianz@3CF3A5.E1CD01.36D449.95F5A5] has joined #code
19:03 Kindamoody|out is now known as Kindamoody
20:02
< gnolam>
http://www.youtube.com/watch?v=lyZQPjUT5B4
20:04
< gnolam>
See, that's what happens when you use Hungarian notation...
20:39
< Derakon>
And here I was expecting magma.
20:54 Metagaos is now known as AnnoDomini
20:54 Harrower is now known as ErikMesoy
20:59 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Connection reset by peer]
20:59 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
21:02 Maze is now known as EvilDarkLord
--- Log closed Tue Apr 12 21:42:24 2011
--- Log opened Tue Apr 12 21:42:32 2011
21:42 TheWatcher[afk] [chris@Nightstar-b4529b0c.zen.co.uk] has joined #code
21:42 Irssi: #code: Total of 28 nicks [1 ops, 0 halfops, 0 voices, 27 normal]
21:43 Irssi: Join to #code was synced in 48 secs
21:56 SchoolPhox [NSwebIRC@Nightstar-d9d726da.exta.sait.ca] has joined #code
21:58
< SchoolPhox>
Dunno if any of you were actually interested in the issues I was having with the micro, but I think I've tracked it down. The ICE emulator isn't interrupt-safe. Placing stop-points in an interrupt clears the interrupt prematurely, which causes problematic behaviour.
21:59
< SchoolPhox>
It reads the interrupt registers, which causes the micro to think the vector register has been read, and automatically clears the interrupt, possibly before it occurs.
22:04
< gnolam>
The ICE emulator? Are you building an ATM machine?~
22:04
< SchoolPhox>
Yeah. Working on an atmel ARM7
22:04
< SchoolPhox>
Wait
22:05
< SchoolPhox>
ATM, like.... automated teller?
22:05
< SchoolPhox>
In which case you've got a reduncancy, there
22:05
< SchoolPhox>
Also, that's not what I'm doing
22:06
< gnolam>
As a member of the Department of Redundancy Department, I felt compelled to make fun of your use of "ICE emulator".
22:06
< SchoolPhox>
Ah, crap
22:08
< SchoolPhox>
Hmm. Actually, looking into the documentation on this chip, it may not be the emulator
22:09
< SchoolPhox>
I'm using JTAG to debug. Shouldn't be able to switch to ICE without a reset. The documentation is pretty specific that the interrupt issues are due to the ICE.
22:10
< SchoolPhox>
But, it works anyway. I'll have to dig into that some other time
22:19
< SchoolPhox>
Ah. Incidentally, I need to pass a 2d array between functions, where I write to it in the second function. Should it be declared "char tbl[3][256]", passed as "foo(tbl, r, c)", and received in the second function as "bar(table[][], r, c)", where r and c are the number of rows and columns?
22:20
< SchoolPhox>
Err, second function should be void foo, not bar
22:21 You're now known as TheWatcher
22:23
< gnolam>
No.
22:24
< gnolam>
table[][] won't work.
22:24
< gnolam>
You can at most have one unknown dimension.
22:25
< gnolam>
(And it has to be the innermost)
22:25
< SchoolPhox>
Any workarounds? I'm looking at a method that uses malloc and nested pointers
22:27
< gnolam>
TBH, it's usually just easiest to use 1D arrays.
22:27
< gnolam>
And calculate the offset yourself.
22:28
< McMartin>
If the assignment is "use nested pointers", you want like **table.
22:29
< SchoolPhox>
How predictable are multidimensional arrays created? Like, the second set of elements begins immediately after the first?
22:29
< SchoolPhox>
Or, is that compiler-specific?
22:30
< McMartin>
Compiler specific
22:30
< SchoolPhox>
Hmm. So, calculating the offset would reduce portability, then?
22:30
< McMartin>
Oh, no.
22:30
< McMartin>
There you aren't letting the compiler have a say
22:30
< McMartin>
This would be like, a 4x5 grid
22:30
< McMartin>
And you'd have foo[20]
22:31
< McMartin>
And to read (x, y) you'd read foo[y*5+x]
22:31
< SchoolPhox>
Ah. Okay.
22:33
< gnolam>
McMartin: Are you sure? ISTR that all multidimensional arrays are contiguous blocks of memory, with the expected offset between rows.
22:34
< McMartin>
gnolam: I'm not positive you technically get to rely on row-major vs. column major
22:34
< McMartin>
It would not surprise me if in practice you can
23:23 ErikMesoy is now known as ErikMesoy|sleep
23:25 AnnoDomini [annodomini@D553D1.41311B.82BE20.1E2C73] has quit [[NS] Quit: leaving]
23:46 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has quit [Client closed the connection]
23:46 Stalker [Z@3A600C.A966FF.5BF32D.8E7ABA] has joined #code
23:46 shade_of_cpux is now known as cpux
23:55 You're now known as TheWatcher[T-2]
--- Log closed Wed Apr 13 00:00:01 2011
code logs -> 2011 -> Tue, 12 Apr 2011< code.20110411.log - code.20110413.log >