--- Log opened Tue May 01 00:00:09 2012
2012-05-01T00:05:21 < Laurenceb_> wtf
2012-05-01T00:05:27 <+Steffanx> ftw
2012-05-01T00:05:33 < Laurenceb_> im getting adc dma interrupts but the data isnt changing
2012-05-01T00:05:41 <+Steffanx> errata? :P
2012-05-01T00:08:00 < Laurenceb_> nope
2012-05-01T00:08:08 < Laurenceb_> maybe a stack/heap collision
2012-05-01T00:08:16 < Laurenceb_> but i cant see how id use that much ram
2012-05-01T00:08:43 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-01T00:09:25 < ratatata> nu
2012-05-01T00:09:32 <+Steffanx> nu
2012-05-01T00:10:32 < zyp> Laurenceb_, what's up? are you doing weird stuff again?
2012-05-01T00:16:34 < Laurenceb_> i dont know
2012-05-01T00:16:48 < Laurenceb_> this is a bit hard to debug as im using optimised code
2012-05-01T00:17:19 < Laurenceb_> it breaks when i increase dma buffer size
2012-05-01T00:17:41 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds]
2012-05-01T00:18:13 < Laurenceb_> stack/heap collision?
2012-05-01T00:20:18 < zyp> you're allocating dma buffer from heap?
2012-05-01T00:21:09 < zyp> and optimized code is not that hard to debug, I'm always doing that
2012-05-01T00:24:06 < Laurenceb_> yes
2012-05-01T00:24:36 < Laurenceb_> i can read the ADC buffer out directly, will try that tomorrow
2012-05-01T00:26:35 < Laurenceb_> somethign weird is going on - i can only account for 7KB of used ram
2012-05-01T00:26:37 < zyp> so, just a thought;
2012-05-01T00:26:56 < zyp> are you sure you're just not optimizing out the accesses to your dma buffer?
2012-05-01T00:28:16 < zyp> do you force rereading it when contents have changed, by declaring it volatile or something?
2012-05-01T00:29:03 < Laurenceb_> oh
2012-05-01T00:29:04 < Laurenceb_> no
2012-05-01T00:29:13 < Laurenceb_> and i cant read it as its optimised out
2012-05-01T00:29:14 < Laurenceb_> lol
2012-05-01T00:29:19 < zyp> ha
2012-05-01T00:29:30 < Laurenceb_> that explains why i cant debug
2012-05-01T00:30:46 < Laurenceb_> thanks :P
2012-05-01T00:31:53 < zyp> that's part of the reason I always compile with optimizations, because it immediately exposes bugs like that
2012-05-01T00:32:40 < zyp> memory sharing is a tricky beast
2012-05-01T00:34:19 -!- Guest61285 [~CheBuzz@76.164.192.124] has quit [Ping timeout: 252 seconds]
2012-05-01T00:34:32 < zyp> I wish there were a middle ground between declaring a memory area volatile and not
2012-05-01T00:35:00 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: sleep]
2012-05-01T00:35:49 < zyp> a directive to instruct the compiler to «flag this area as updated, invalidate any cached copies in registers and whatever and do a new read next time it's read»
2012-05-01T00:36:54 < zyp> that way the compiler wouldn't have to reread the values _all_ the time like it has when it's declared volatile
2012-05-01T00:38:12 < karlp> I like that advice zyp,
2012-05-01T00:39:12 < karlp> always leave optimizations on.
2012-05-01T00:40:33 < zyp> hmm, actually, the clobber lists of inline asm directives could be used to invalidate register copies I guess
2012-05-01T00:42:35 < zyp> karlp, on the other hand, optimizations might hide other bugs
2012-05-01T00:43:06 < zyp> so you get a similar problem the other way around
2012-05-01T00:43:16 < zyp> but that should be way less likely
2012-05-01T00:43:30 < zyp> and in the end, it's mainly with optimizations you want it to work
2012-05-01T00:46:16 < karlp> yeah, that's why I like it leaving it on.
2012-05-01T00:46:30 < karlp> test the way it's going to be live
2012-05-01T00:47:40 < zyp> my code is not written to be compiled without optimizations, I'm relying heavily on inlining
2012-05-01T00:48:15 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection]
2012-05-01T00:53:41 < karlp> well hooray, I've actually plugged my stm32 boards back in for the first time since january
2012-05-01T01:08:04 < zyp> ok
2012-05-01T01:09:20 < karlp> where's the bit gone on github for merging in the rest of the network?
2012-05-01T01:10:45 < Laurenceb_> http://www.raspberrypi.org/forum/projects-and-collaboration-general/using-a-rasberry-pi-as-part-of-a-cosplay-prop?value=kernel&type=1&include=1&search=8
2012-05-01T01:11:00 < Laurenceb_> stereotypical use is stereotypical
2012-05-01T01:13:41 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-01T01:19:03  * Laurenceb_ zzz
2012-05-01T01:26:21 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: .]
2012-05-01T01:30:38 -!- Laurenceb_ [~Laurence@host86-177-58-185.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-01T02:55:29 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-01T03:06:18 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-01T03:19:04 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit []
2012-05-01T03:31:52 -!- dekar_ [~dekar@46.115.41.209] has joined ##stm32
2012-05-01T03:31:55 -!- mode/##stm32 [+v dekar_] by ChanServ
2012-05-01T03:34:43 -!- dekar [~dekar@46.115.35.165] has quit [Ping timeout: 246 seconds]
2012-05-01T05:12:28 -!- cjbaird [~cjb@ppp121-45-175-149.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-01T05:18:23 -!- ben1066 [~quassel@host109-152-37-104.range109-152.btcentralplus.com] has joined ##stm32
2012-05-01T05:20:35 -!- ben1066_ [~quassel@host31-53-199-93.range31-53.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-01T05:44:52 -!- izua [~izua@188.27.189.124] has joined ##stm32
2012-05-01T05:44:52 -!- izua [~izua@188.27.189.124] has quit [Changing host]
2012-05-01T05:44:52 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-01T05:44:55 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-01T05:53:48 -!- peabody124 [~peabody12@128.249.96.21] has quit [Quit: peabody124]
2012-05-01T06:16:51 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 272 seconds]
2012-05-01T06:23:51 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-01T06:50:54 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-01T06:59:49 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-01T07:27:27 -!- whitequark [~whitequar@2a00:ab00:1::4464:5550] has joined ##stm32
2012-05-01T07:27:35 -!- whitequark [~whitequar@2a00:ab00:1::4464:5550] has left ##stm32 []
2012-05-01T07:36:48 < Thorn> is there any use for blx instruction in cortex-m?
2012-05-01T07:47:40 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit []
2012-05-01T07:54:42 < ziph> Branching while setting LR?
2012-05-01T07:56:48 < cjbaird> It's very good at frustrating newcomers when their linking scripts aren't wholly correct...
2012-05-01T07:57:45 < Thorn> ziph: it has bl for that
2012-05-01T07:58:09 < ziph> Thorn: Yeah, but one instruction isn't enough.
2012-05-01T07:58:21 < Thorn> blx seems to be good at causing faults when linking something newlib
2012-05-01T07:58:26 < ziph> It's an homage to Intel CISC's.
2012-05-01T07:58:27 < Thorn> *something like
2012-05-01T07:58:59 < Thorn> or even *with something like newlib
2012-05-01T08:04:07 < Thorn> blx is basically "branch with link or crash" on cortex-m
2012-05-01T08:23:35 -!- ben1066_ [~quassel@host86-169-139-158.range86-169.btcentralplus.com] has joined ##stm32
2012-05-01T08:25:23 -!- ben1066 [~quassel@host109-152-37-104.range109-152.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-01T08:31:21 < ziph> Yeah.
2012-05-01T08:31:53 < ziph> The x represents the dead eyes of your M after running it with a low bit 0 address. ;)
2012-05-01T09:57:40 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-01T10:10:40 < jpa-> Thorn: blx <immediate> means you have selected wrong processor, blx <register> is fine
2012-05-01T10:21:12 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-01T11:22:35 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-01T11:48:31 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit []
2012-05-01T12:27:42 -!- metaxa [metaxa@members.bombshellz.net] has quit [Quit: leaving]
2012-05-01T12:28:36 -!- metaxa [metaxa@members.bombshellz.net] has joined ##stm32
2012-05-01T13:01:00 -!- eroomde [~ed@kraken.habhub.org] has quit [Read error: Operation timed out]
2012-05-01T13:02:06 -!- eroomde [~ed@kraken.habhub.org] has joined ##stm32
2012-05-01T14:16:16 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Ping timeout: 252 seconds]
2012-05-01T14:28:44 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-01T14:52:26 -!- avernos_ [~avernos@221.216.132.205] has joined ##stm32
2012-05-01T14:56:16 -!- avernos [~avernos@unaffiliated/avernos] has quit [Ping timeout: 276 seconds]
2012-05-01T15:28:07 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-01T15:48:11 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-01T15:50:26 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-01T16:05:40 < zyp> bl only takes immediates, so you need blx to call function pointers
2012-05-01T16:06:46 < zyp> and it's pretty obvious that a call to an invalid function pointer leads to a crash :p
2012-05-01T16:08:28 < jpa-> yeah.. but if you don't give -mcpu=cortex-m3 to the linker, it generates   blx <immediate>  for the library calls, which causes invalid instruction exception on thumb2
2012-05-01T16:10:47 < zyp> of course it does that, you're trying to call arm functions
2012-05-01T16:11:05 < zyp> blx is the right form to use when calling arm functions from thumb code
2012-05-01T16:16:45 < zyp> it's linking with arm functions on a thumb-only architecture that doesn't make sense, not the fact that the compiler generates correct code to call arm functions when it does
2012-05-01T16:19:31 < zyp> since it's up to the linker to generate bl or blx <imm> according to the function you are trying to link, I bet they are encoded very similarly, probably with the only difference being the bit selecting arm or thumb mode
2012-05-01T16:20:28 < ratatata> nu
2012-05-01T16:21:05 < Laurenceb> jew
2012-05-01T16:21:51 < zyp> dongs, nah, I haven't done shit for the last days
2012-05-01T16:22:00 < Laurenceb> just riding the trollercoaster
2012-05-01T16:25:04 -!- avernos_ is now known as avernos
2012-05-01T16:34:31 < Laurenceb> hmm looks like malloc is failing
2012-05-01T16:34:39 < Laurenceb> thats why my dma code breaks
2012-05-01T16:34:57 < Laurenceb> i dont get this... i can only see about 7K of used ram
2012-05-01T16:36:25 < Laurenceb> is there a heap size limit somewhere in the lanchon linker scripts?
2012-05-01T16:41:41 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Read error: Connection reset by peer]
2012-05-01T16:43:06 < Laurenceb> or is malloc failing?
2012-05-01T16:43:17 < Laurenceb> i dont understand this...
2012-05-01T16:45:34 < zyp> you need to get better at debugging.
2012-05-01T16:48:27 < Laurenceb> malloc fails to allocate  a 4.6KB block
2012-05-01T16:48:43 < zyp> good tools doesn't help much if you don't know how to use them
2012-05-01T16:49:05 < Laurenceb> how do i print the stack pointer?
2012-05-01T16:49:12 < zyp> p/x $sp
2012-05-01T16:49:23 < Laurenceb> k
2012-05-01T16:49:25 < zyp> or just info registers
2012-05-01T16:51:26 < Laurenceb> ok stack is on 1K or so from top of ram
2012-05-01T16:51:28 < Laurenceb> wtf
2012-05-01T16:52:16 < Laurenceb>  p/x __cs3_heap_start
2012-05-01T16:52:16 < Laurenceb> $3 = 0x89e6b1a2
2012-05-01T16:52:19 < Laurenceb> erm.....
2012-05-01T16:52:47 < zyp> see, now you're being dumb again
2012-05-01T16:52:58 < zyp> try &__cs3_heap_start
2012-05-01T16:53:04 < Laurenceb> ah
2012-05-01T16:53:26 < Laurenceb> = 0x20000ef8
2012-05-01T16:53:57 < Laurenceb> ok that looks sane too
2012-05-01T16:54:31 < Laurenceb> ok that makes no sense
2012-05-01T16:56:39 < Laurenceb> last think malloc was at 0x20002710
2012-05-01T16:57:39 < Laurenceb> which doesnt make a lot of sense
2012-05-01T16:59:01 < Laurenceb> looks like malloc is taking an argument in 4byte units
2012-05-01T17:01:39 < Laurenceb> wait no...
2012-05-01T17:01:50  * Laurenceb fails
2012-05-01T17:06:51 < zyp> sounds like you're leaking
2012-05-01T17:06:52 < zyp> :p
2012-05-01T17:17:45 < Laurenceb> are there two banks of 10KB or something?
2012-05-01T17:18:03 < Laurenceb> malloc fails if i try to allocate a block that crosses the 10KB boundary
2012-05-01T17:18:19 < Laurenceb> small blocks it jumps to the boundary
2012-05-01T17:18:29 < Laurenceb> large ones that will cross it fails
2012-05-01T17:20:00 < zyp> fails how?
2012-05-01T17:22:18 < Laurenceb> returns null
2012-05-01T17:24:37 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-01T17:24:40 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-01T17:24:41 < Laurenceb> well... the heap is up to 9450 bytes or so
2012-05-01T17:24:59 < Laurenceb> then if i try to allocate 512 it works
2012-05-01T17:25:16 < Laurenceb> but if i try to allocate 4600 it fails
2012-05-01T17:26:20 < Laurenceb> i dont think anything weird happens at 10KB actually - looks like there is 8bytes between heap allocations
2012-05-01T17:29:07 < Laurenceb> DMA buffers
2012-05-01T17:29:15 < jpa-> that's normal
2012-05-01T17:29:21 < jpa-> malloc needs some space for itself
2012-05-01T17:29:32 < Laurenceb> ok
2012-05-01T17:29:49 < Laurenceb> weird that it fails tho
2012-05-01T17:29:58 < Laurenceb> theres about 10K freee
2012-05-01T17:30:25 < zyp> malloc stores the size of the allocation and stuff like that so it knows how much to free
2012-05-01T17:30:43 < jpa-> i've never used newlib's own sbrk, so i'm not sure what it does
2012-05-01T17:41:01 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 246 seconds]
2012-05-01T18:03:00 -!- avernos [~avernos@221.216.132.205] has quit [Remote host closed the connection]
2012-05-01T18:10:03 -!- tavish [~tavish@59.177.13.50] has joined ##stm32
2012-05-01T18:10:03 -!- tavish [~tavish@59.177.13.50] has quit [Changing host]
2012-05-01T18:10:03 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-01T18:11:45 -!- izua_ [izua@2a02:2f01:1017:f006::bc1a:a7da] has joined ##stm32
2012-05-01T18:11:45 -!- izua_ [izua@2a02:2f01:1017:f006::bc1a:a7da] has quit [Changing host]
2012-05-01T18:11:45 -!- izua_ [izua@unaffiliated/izua] has joined ##stm32
2012-05-01T18:11:48 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-01T18:17:05 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-01T18:20:17 -!- tavish_ [~tavish@120.59.2.96] has joined ##stm32
2012-05-01T18:20:21 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 248 seconds]
2012-05-01T18:27:02 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-01T18:27:38 -!- tavish_ [~tavish@120.59.2.96] has quit [Ping timeout: 260 seconds]
2012-05-01T18:50:36 < Laurenceb> awesome it works
2012-05-01T18:51:00 < Laurenceb> i accidentally initialised some uneeded buffers and ate all the ram
2012-05-01T18:51:23 < Laurenceb> not i just need fast integer square root for it to run fast enough
2012-05-01T19:01:46 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-01T19:08:13 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-01T19:08:17 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-01T19:08:21 <+Steffanx> nu
2012-05-01T19:08:52 < Tom_itx> nano nano
2012-05-01T19:09:05 <+Steffanx> ye ye
2012-05-01T19:16:31 -!- mrcan is now known as mrcan-afk
2012-05-01T19:31:14 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-01T19:32:31 -!- izua_ [izua@unaffiliated/izua] has quit [Ping timeout: 264 seconds]
2012-05-01T19:36:06 -!- izua [~izua@188.26.92.21] has joined ##stm32
2012-05-01T19:36:06 -!- izua [~izua@188.26.92.21] has quit [Changing host]
2012-05-01T19:36:06 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-01T19:36:09 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-01T19:37:58 -!- izua_ [~izua@188.27.189.214] has joined ##stm32
2012-05-01T19:38:10 -!- izua_ [~izua@188.27.189.214] has quit [Changing host]
2012-05-01T19:38:10 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32
2012-05-01T19:38:11 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-01T19:40:19 < Laurenceb> hmmm
2012-05-01T19:40:30 < Laurenceb> i have two 32bit integers - I and Q
2012-05-01T19:40:37 < Laurenceb> i want to find magnitude
2012-05-01T19:40:50 < Laurenceb> is there a fast way to do this?
2012-05-01T19:40:53 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 248 seconds]
2012-05-01T19:41:10 < Laurenceb> if i square them i then have a 64bit int to square root :S
2012-05-01T19:42:55 -!- izua_ [~izua@unaffiliated/izua] has quit [Ping timeout: 276 seconds]
2012-05-01T19:57:11 -!- dekar_ [~dekar@46.115.41.209] has quit [Remote host closed the connection]
2012-05-01T19:58:22 -!- avernos [~avernos@unaffiliated/avernos] has joined ##stm32
2012-05-01T20:03:04 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 276 seconds]
2012-05-01T20:04:58 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-01T20:10:09 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-01T20:23:48 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Read error: Connection reset by peer]
2012-05-01T20:27:38 -!- tavish [~tavish@120.56.236.169] has joined ##stm32
2012-05-01T20:27:38 -!- tavish [~tavish@120.56.236.169] has quit [Changing host]
2012-05-01T20:27:38 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-01T20:38:49 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-01T20:42:52 -!- tavish [~tavish@120.56.129.41] has joined ##stm32
2012-05-01T20:42:52 -!- tavish [~tavish@120.56.129.41] has quit [Changing host]
2012-05-01T20:42:52 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-01T20:43:56 < cjbaird> Something in here? http://graphics.stanford.edu/~seander/bithacks.html  ("Find integer log base 10 of an integer "-- i.e, the magnitude as a number..)
2012-05-01T20:45:09 -!- tavish_ [~tavish@59.177.4.19] has joined ##stm32
2012-05-01T20:47:08 < zyp> that's not the right meaning of the word magnitude
2012-05-01T20:47:32 < zyp> the magnitude of a vector is not the same as the magnitude of a number
2012-05-01T20:47:57 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds]
2012-05-01T20:49:48 < cjbaird> Ahh, /that/ kind of I & Q...
2012-05-01T20:54:53 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-01T20:55:43 -!- tavish_ [~tavish@59.177.4.19] has quit [Ping timeout: 256 seconds]
2012-05-01T20:58:53 -!- cjbaird [~cjb@ppp121-45-175-149.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-01T21:03:53 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds]
2012-05-01T21:06:00 -!- tavish [~tavish@120.56.238.134] has joined ##stm32
2012-05-01T21:06:01 -!- tavish [~tavish@120.56.238.134] has quit [Changing host]
2012-05-01T21:06:01 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-01T21:31:43 < emeb> Laurenceb: how accurately do you need the vector magnitude?
2012-05-01T21:32:15 < emeb> there are some very simple approximations you can use that don't need square-roots, etc.
2012-05-01T21:39:39 < zyp> taylor expansions only work if you know approximately what the value will be
2012-05-01T21:41:52 < emeb> Nothing that complicate. A common approximation is to compute the first iteration of the CORDIC process.
2012-05-01T21:42:32 < emeb> which boils down to mag ~= max(abs(i), abs(q)) + min(abs(i), abs(q))/2
2012-05-01T21:46:11 -!- izua [~izua@188.26.164.50] has joined ##stm32
2012-05-01T21:46:11 -!- izua [~izua@188.26.164.50] has quit [Changing host]
2012-05-01T21:46:11 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-01T21:46:14 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-01T21:51:13 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 260 seconds]
2012-05-01T21:51:54 < zyp> hmm
2012-05-01T21:52:01 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-01T21:52:10 < zyp> looks accurate to within 12% or so
2012-05-01T21:53:26 <+Steffanx> 12% is acceptable :)
2012-05-01T21:54:11 < zyp> depends on the application
2012-05-01T21:55:07 <+Steffanx> Yeye :P
2012-05-01T21:56:08 <+Steffanx> I need a special "Steffanx is not so serious this time"-character
2012-05-01T21:56:54 -!- izua [izua@2a02:2f01:1017:f004::bc1a:a4ef] has joined ##stm32
2012-05-01T21:56:54 -!- izua [izua@2a02:2f01:1017:f004::bc1a:a4ef] has quit [Changing host]
2012-05-01T21:56:54 -!- izua [izua@unaffiliated/izua] has joined ##stm32
2012-05-01T21:56:55 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-01T21:57:14 <+Steffanx> it's hard isn't it izua ?
2012-05-01T21:58:12 <+izua> yeah, someone keeps shooting the tcp avian carriers
2012-05-01T21:58:43 < zyp> I thought tcp was supposed to be reliable :p
2012-05-01T21:59:10 <+Steffanx> It's very reliable
2012-05-01T21:59:28 <+izua> irc does timeouts though
2012-05-01T21:59:29 <+Steffanx> We can be pretty sure he gets disconnected
2012-05-01T21:59:33 < emeb> On the mag approx you can tweak the coefficients on max & min to get better error performance for a particular data set.
2012-05-01T21:59:37 <+izua> tcp is so reliable that it won't even tell anyone i dropped
2012-05-01T22:01:26 < emeb> and if that's not good enough then you can do more CORDIC iterations - I've found that 4 or 5 iterations will get to about 10-bit accuracy.
2012-05-01T22:24:16 < jpa-> Laurenceb: http://code.google.com/p/libfixmath/source/browse/trunk/libfixmath/fix16_sqrt.c   you can do a trick like this to avoid the 64-bit calculations
2012-05-01T22:58:04 -!- Laurenceb_ [~Laurence@host86-177-58-185.range86-177.btcentralplus.com] has joined ##stm32
2012-05-01T23:00:42 < Laurenceb_> sup
2012-05-01T23:01:10 < zyp> Steffanx, which os x version are you running?
2012-05-01T23:01:13 < Laurenceb_> so... i have two 32bit ints, I and Q, forming a phasor
2012-05-01T23:01:19 < Laurenceb_> i want to find the magnitude
2012-05-01T23:01:28 < Laurenceb_> is there a fast way to do this?
2012-05-01T23:01:33 < zyp> zlog
2012-05-01T23:01:33 < zlog> zyp: Log stored at http://tom-itx.dyndns.org:81/~tom-itx/irc/logs/%23%23stm32/2012-05-01.html
2012-05-01T23:01:36 < zyp> read that.
2012-05-01T23:02:00 < Laurenceb_> lol i had to go :P
2012-05-01T23:02:02 < Laurenceb_> thanx
2012-05-01T23:03:02 < Laurenceb_> yeah i wonder how many effective bits i actually have :P
2012-05-01T23:03:12 < emeb> That's a good thing to figure out.
2012-05-01T23:03:24 < Laurenceb_> if my hardware is working correctly i should have ~18bits on I and Q, which annoyingly is >16
2012-05-01T23:03:55 < emeb> but also, how many do you _need_ for the app to work well.
2012-05-01T23:04:13 < emeb> ie - 16 bits is probably plenty for most stuff.
2012-05-01T23:04:20 < emeb> just drop the rest...
2012-05-01T23:04:38 < Laurenceb_> yeah
2012-05-01T23:04:53 < Laurenceb_> 32bit integer sqrt seems simple enough in thumb2 asm
2012-05-01T23:05:22 < jpa-> Laurenceb: check out that libfixmath stuff, i worked quite hard on making the mul & sqrt reasonably fast..
2012-05-01T23:05:30 < Laurenceb_> cool ok
2012-05-01T23:05:48 < jpa-> though of course for your limited case, you can probably find a faster version :P
2012-05-01T23:06:52 < Laurenceb_> i tried typecasting to doubles :P
2012-05-01T23:07:00 < Laurenceb_> seems to be too slow
2012-05-01T23:07:19 < jpa-> why not floats? assuming F4 :)
2012-05-01T23:07:30 < Laurenceb_> this is F1
2012-05-01T23:07:47 < jpa-> ah, then it is useless :)
2012-05-01T23:07:48 < Laurenceb_> and needs to run at a few KHz  (but theres loads of other stuff going on too)
2012-05-01T23:07:54 < jpa-> gcc's softfloat for thumb2 sucks ass
2012-05-01T23:08:21 < Laurenceb_> the openpilot code isnt too bad at all
2012-05-01T23:08:32 < Laurenceb_> but thats all 32bit multiply and add
2012-05-01T23:08:59 < jpa-> yeah.. i guess the basic operations are quite fast
2012-05-01T23:09:07 < jpa-> float square root is slower than it has to be
2012-05-01T23:09:14 < jpa-> and they all are much larger than they have to be IMO
2012-05-01T23:09:37 < Laurenceb_> my problem is that i have a limited window for the code to run before it skips data
2012-05-01T23:09:51 < Laurenceb_> not so much that it takes too much clk cycles on average
2012-05-01T23:10:03 < jpa-> http://code.google.com/p/libfixmath/wiki/Benchmarks#ARM_Cortex_M3   i have pasted this before and the numbers are maybe not entirely reliable (benchmarking is hard), but they give some guidelines
2012-05-01T23:10:44 < Laurenceb_> i have a few thousand clks to play with
2012-05-01T23:10:52 < zyp> «I want to do DSP and I want to use a slow MCU for that.»
2012-05-01T23:11:24 < emeb> Emulate a TMS320 on an AVR.
2012-05-01T23:11:50 -!- specing [~specing@unaffiliated/specing] has joined ##stm32
2012-05-01T23:13:28 < Laurenceb_> try emulating a pxa255 on avr
2012-05-01T23:13:34 < Laurenceb_> oh already done :P
2012-05-01T23:13:38 < specing> Yep
2012-05-01T23:14:53 < Laurenceb_> zyp: F1 isnt _that_ slow
2012-05-01T23:15:29 < zyp> it's not that fast either
2012-05-01T23:16:50 < jpa-> fast enough probably
2012-05-01T23:17:36 < jpa-> a few thousand clocks to calculate norm of two numbers is hardly a challenge
2012-05-01T23:18:20 < jpa-> it is probably too slow for emulated double-precision floats, but about anything else could get it done :)
2012-05-01T23:18:42 < zyp> it's all a matter of how fast you need it
2012-05-01T23:18:59 < Laurenceb_> emulated single precision floats :P
2012-05-01T23:19:16 < zyp> the M4F FPU does sqrt in 14 cycles
2012-05-01T23:19:54 < jpa-> zyp: how fast does it convert int => float?
2012-05-01T23:20:37 < jpa-> floating point sqrt is misleadingly fast, because half of the work is in the conversion
2012-05-01T23:20:42 < Laurenceb_> 32bit float has enough mantissa
2012-05-01T23:21:13 < jpa-> Laurenceb: yep - does it run fast enough? :)
2012-05-01T23:22:00 < Laurenceb_> probably, 64bit was fine until i added a bit of numerical integration
2012-05-01T23:22:14 < zyp> jpa-, I'd argue that float conversion likely would be irrelevant,
2012-05-01T23:22:50 < zyp> when you're using the FPU at all, you might as well use it all the way
2012-05-01T23:23:27 < jpa-> true
2012-05-01T23:24:35 < Laurenceb_> im oversampling the ADC to increase the ENOB to ~18
2012-05-01T23:26:51 < Laurenceb_> CORDIC magnitude looks good, but i cant be bothered to understand it properly atm
2012-05-01T23:26:57 < emeb> heh
2012-05-01T23:27:05 < emeb> it's pretty easy.
2012-05-01T23:27:56 < jpa-> i looked at cordic a few months back.. i don't think it is very efficient on cortex-m3
2012-05-01T23:28:04 < jpa-> could be for some functions
2012-05-01T23:28:23 < zyp> I looked into the approximation posted here
2012-05-01T23:28:39 < zyp> it basicly assumes that a circle is an octagon
2012-05-01T23:28:52 < Laurenceb_> ok i kind of get the idea
2012-05-01T23:29:02 < Laurenceb_> so you more to higher order polygons?
2012-05-01T23:29:06 < Laurenceb_> *move
2012-05-01T23:29:16 < emeb> That approximation is not likely to be useful if you really need 18-bit accuracy.
2012-05-01T23:29:26 < Laurenceb_> yeah
2012-05-01T23:29:45 < Laurenceb_> im trying to detect minuscule absorption changes
2012-05-01T23:30:56 < emeb> works great if you can integrate the errors out though. Used often in high-speed communications ASICs.
2012-05-01T23:32:19 < Laurenceb_> in fact the reason im using magnitude is to take out phase errors from the analogue front end
2012-05-01T23:33:40 < jpa-> is the phase error small? < 10°? then you could probably use some nice approximation for small angle
2012-05-01T23:33:59 < Laurenceb_> hmm thats a good idea
2012-05-01T23:34:40 < Laurenceb_> thanks for that, ill have to do some experiments, as users moving the sensor cable might change phase shift a bit/lot
2012-05-01T23:35:19 < jpa-> yeah.. might be just easier to go with plain old sqrt and think more when you run out of clock cycles again :)
2012-05-01T23:37:44 < Laurenceb_> does excel break with massive integers?
2012-05-01T23:37:47 < Laurenceb_> dont laugh
2012-05-01T23:38:03 < Laurenceb_> im getting the smt32 to output an xls onto uSD card
2012-05-01T23:38:32 < Laurenceb_> guess ill have to find out
2012-05-01T23:41:39 < zyp> doesn't excel operate with floats?
2012-05-01T23:42:02 <+Steffanx> zyp 1.7
2012-05-01T23:42:04 <+Steffanx> 10.7
2012-05-01T23:42:12 <+Steffanx> .3
2012-05-01T23:42:29 < TitanMKD> zyp with float64 at least or even maybe bignumbers
2012-05-01T23:43:34 < Laurenceb_> this has to be n00b friendly :P
2012-05-01T23:43:38 -!- tavish_ [~tavish@59.177.0.218] has joined ##stm32
2012-05-01T23:43:44 < zyp> TitanMKD, it's using 64-bit floats
2012-05-01T23:43:47 < zyp> source: http://support.microsoft.com/kb/78113/en-us
2012-05-01T23:44:26 < zyp> Steffanx, ok
2012-05-01T23:44:39 < TitanMKD> zyp even the latest version ?
2012-05-01T23:44:39 <+Steffanx> Wieso zyp ?
2012-05-01T23:44:42 < zyp> seems 10.6 doesn't have proper support for USB IAD
2012-05-01T23:45:02 < zyp> TitanMKD, I have no idea, find out for yourself if you need to know
2012-05-01T23:45:03 < Laurenceb_> resulting in hilarity when people try to use it for calculating pay etc
2012-05-01T23:45:47 <+Steffanx> We'll see how it goes with 10.7 zyp
2012-05-01T23:45:55 <+Steffanx> probably within ~2 weeks
2012-05-01T23:46:02 < zyp> :p
2012-05-01T23:46:13 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 248 seconds]
2012-05-01T23:46:19 < zyp> well, it enumerated correctly on my macbook with 10.7
2012-05-01T23:46:28 <+Steffanx> oh, ok :)
2012-05-01T23:46:47 < zyp> so I guess it's soon time to upgrade this computer as well
2012-05-01T23:47:46 < zyp> I'm missing some other nice features from 10.7 too
2012-05-01T23:48:00 < zyp> like pdf preview in spotlight
2012-05-01T23:48:06 <+Steffanx> Or libopencm3 needs a fix
2012-05-01T23:48:20 <+Steffanx> or whatever needs a fix
2012-05-01T23:48:33 < zyp> I'm always using two or three tries when I'm opening ST datasheets :p
2012-05-01T23:48:45 <+Steffanx> never use spotlight
2012-05-01T23:49:05 < zyp> you don't?
2012-05-01T23:49:13 <+Steffanx> I use alfred
2012-05-01T23:51:20 < zyp> does it have pdf preview? :p
2012-05-01T23:51:28 <+Steffanx> don't know
2012-05-01T23:51:44 <+Steffanx> I don't need it… i use proper file names :P
2012-05-01T23:52:26 < zyp> I have 986 (I counted) .pdfs in ~/Downloads, I can't be assed to rename them all :p
2012-05-01T23:52:49 < Laurenceb_> http://regmedia.co.uk/2012/05/01/sega_1.jpg
2012-05-01T23:53:23 <+Steffanx> Download, return, new name .. done
2012-05-01T23:54:01 < zyp> when will you be able to go through my .pdf collection and give them all descriptive names?
2012-05-01T23:54:08 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-01T23:54:36 <+Steffanx> nu
2012-05-01T23:54:41 <+Steffanx> never
2012-05-01T23:54:56 < jpa-> there should be an online database translating md5sum to proper filename :)
2012-05-01T23:55:02 <+Steffanx> :D
2012-05-01T23:55:13 < jpa-> and by proper, i don't mean C0675482.pdf
2012-05-01T23:55:36 <+Steffanx> No, more like 810418552bae01680e1dc6f19e3af201.pdf
2012-05-01T23:55:59 < zyp> http://bin.jvnv.net/f/euUUq.png
2012-05-01T23:56:06 < jpa-> no, like naked_picture_of_steffanx_on_the_beach.jpg... now where can i find that file
2012-05-01T23:56:42 <+Steffanx> No one wants that
2012-05-01T23:56:55 < jpa-> i have stm32f1_reference.pdf, stm32f3_reference.pdf, stm32l1_reference.pdf, stm32_core.pdf etc :)
2012-05-01T23:57:19 <+Steffanx> jpa- knows how it works
2012-05-01T23:57:50 < zyp> the upper three pdfs in my pic should be F4 TRM, F4 errata and F4 datasheet in some order
2012-05-01T23:58:10 < zyp> the 13xxx ones are F1 stuff and I guess one of the other two is F4discovery datasheet
2012-05-01T23:58:23 <+Steffanx> Who knwos
2012-05-01T23:58:30 <+Steffanx> Anyway, sleepy sleepy time
2012-05-01T23:58:40 < zyp> they are listed in order of most recently used
--- Day changed Wed May 02 2012
2012-05-02T00:04:21 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 248 seconds]
2012-05-02T00:31:32 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection]
2012-05-02T00:32:58 -!- tavish_ [~tavish@59.177.0.218] has quit [Quit: leaving]
2012-05-02T00:44:52 -!- peabody124 [~peabody12@128.249.96.21] has quit [Read error: Connection reset by peer]
2012-05-02T00:45:11 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-02T00:49:33 -!- peabody124 [~peabody12@128.249.96.21] has quit [Client Quit]
2012-05-02T00:51:16 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
2012-05-02T01:01:49 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-02T01:04:17 -!- peabody124 is now known as peabod124
2012-05-02T01:08:47 < zyp> ok
2012-05-02T01:24:35 -!- mrcan-afk [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 246 seconds]
2012-05-02T01:38:39 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32
2012-05-02T01:39:17 -!- peabody124 [~peabody12@128.249.96.123] has quit [Remote host closed the connection]
2012-05-02T01:39:35 -!- Laurenceb_ [~Laurence@host86-177-58-185.range86-177.btcentralplus.com] has quit [Ping timeout: 260 seconds]
2012-05-02T01:39:37 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-02T01:40:31 -!- peabod124 [~peabody12@128.249.96.21] has quit [Read error: Connection reset by peer]
2012-05-02T01:40:55 -!- izua [izua@unaffiliated/izua] has quit [Ping timeout: 264 seconds]
2012-05-02T01:46:18 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 245 seconds]
2012-05-02T01:46:44 -!- TeknoJuce [~TeknoJuce@69.158.165.131] has joined ##stm32
2012-05-02T01:52:41 -!- peabody124 [~peabody12@128.249.96.21] has quit [Read error: Connection reset by peer]
2012-05-02T01:52:58 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-02T01:55:11 -!- M0JSN [~jonsowman@kryten.hexoc.com] has joined ##stm32
2012-05-02T01:56:46 -!- Netsplit *.net <-> *.split quits: phantoxeD, metaxa, zippe, jaeckel, karlp, @ChanServ, grummund, gsmcmullin, hackkitten, jonsowman,  (+2 more, use /NETSPLIT to show all of them)
2012-05-02T02:00:40 -!- avernos [~avernos@unaffiliated/avernos] has joined ##stm32
2012-05-02T02:00:40 -!- eroomde [~ed@kraken.habhub.org] has joined ##stm32
2012-05-02T02:00:40 -!- zippe [~Adium@173.11.99.161] has joined ##stm32
2012-05-02T02:00:40 -!- ChanServ [ChanServ@services.] has joined ##stm32
2012-05-02T02:00:40 -!- jaeckel [~jaeckel@jaeckel.eu] has joined ##stm32
2012-05-02T02:00:40 -!- karlp [~karl@palmtree.beeroclock.net] has joined ##stm32
2012-05-02T02:00:40 -!- ServerMode/##stm32 [+o ChanServ] by gibson.freenode.net
2012-05-02T02:01:26 -!- izua [~izua@188.27.189.252] has joined ##stm32
2012-05-02T02:01:26 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32
2012-05-02T02:01:52 -!- izua is now known as Guest17679
2012-05-02T02:02:02 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32
2012-05-02T02:02:02 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-02T02:02:02 -!- metaxa [metaxa@members.bombshellz.net] has joined ##stm32
2012-05-02T02:02:02 -!- hackkitten [~jigoku_ai@s529c4932.adsl.wanadoo.nl] has joined ##stm32
2012-05-02T02:04:26 -!- peabody124_ [~peabody12@128.249.96.123] has joined ##stm32
2012-05-02T02:06:17 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 245 seconds]
2012-05-02T02:06:18 -!- peabody124_ is now known as peabody124
2012-05-02T02:24:31 -!- izua_ [~izua@188.27.189.252] has joined ##stm32
2012-05-02T02:24:31 -!- izua_ [~izua@188.27.189.252] has quit [Changing host]
2012-05-02T02:24:31 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32
2012-05-02T02:24:34 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-02T02:32:06 -!- peabody124 [~peabody12@128.249.96.123] has quit [Ping timeout: 255 seconds]
2012-05-02T02:32:38 -!- Netsplit *.net <-> *.split quits: Guest17679
2012-05-02T02:32:40 -!- Netsplit *.net <-> *.split quits: grummund
2012-05-02T02:33:02 -!- grummund [~user@aa.dnsdojo.com] has joined ##stm32
2012-05-02T02:33:06 -!- grummund [~user@aa.dnsdojo.com] has quit [Changing host]
2012-05-02T02:33:06 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32
2012-05-02T02:42:32 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-02T02:42:33 -!- izua__ [~izua@188.27.189.252] has joined ##stm32
2012-05-02T02:44:49 -!- zlog_ [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32
2012-05-02T02:46:25 -!- corecode_ [~2@0x2c.org] has joined ##stm32
2012-05-02T02:47:43 -!- BrainDam- [BrainDamag@i.love.tiltshellz.org] has joined ##stm32
2012-05-02T02:50:56 -!- ziph [~ziph@office.bitplantation.com] has quit [Ping timeout: 272 seconds]
2012-05-02T02:50:56 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Ping timeout: 272 seconds]
2012-05-02T02:50:56 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Ping timeout: 272 seconds]
2012-05-02T02:50:56 -!- corecode [~2@0x2c.org] has quit [Ping timeout: 272 seconds]
2012-05-02T02:50:57 -!- izua_ [~izua@unaffiliated/izua] has quit [Ping timeout: 272 seconds]
2012-05-02T02:50:57 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 272 seconds]
2012-05-02T02:56:04 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-02T03:04:42 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-02T03:05:43 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 265 seconds]
2012-05-02T03:05:46 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32
2012-05-02T03:05:54 -!- Tom_L is now known as Tom_itx
2012-05-02T03:08:10 -!- zlog_ [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Ping timeout: 276 seconds]
2012-05-02T03:33:58 -!- izua__ [~izua@188.27.189.252] has quit [Ping timeout: 244 seconds]
2012-05-02T05:03:14 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-02T05:25:56 -!- BrainDam- [BrainDamag@i.love.tiltshellz.org] has quit [Quit: ZNC - http://znc.sourceforge.net]
2012-05-02T05:26:46 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32
2012-05-02T05:41:52 -!- cjbaird [~cjb@ppp121-45-175-149.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-02T06:13:23 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-02T06:17:19 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 276 seconds]
2012-05-02T06:31:16 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Remote host closed the connection]
2012-05-02T06:31:19 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit []
2012-05-02T06:35:18 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-02T06:35:20 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32
2012-05-02T06:42:43 -!- izua [~izua@188.27.189.252] has joined ##stm32
2012-05-02T06:42:44 -!- izua [~izua@188.27.189.252] has quit [Changing host]
2012-05-02T06:42:44 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-02T06:42:47 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-02T07:27:28 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32
2012-05-02T07:27:31 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-02T07:27:53 -!- izua_ [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer]
2012-05-02T07:29:41 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 248 seconds]
2012-05-02T07:37:09 < cjbaird> Probably of limited usefulness, as Skype users tend to talk to people they already know..
2012-05-02T07:40:36 < cjbaird> And for that, email headers have been revealing the true IPs of your friends since epoch.
2012-05-02T07:50:01 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-02T07:53:36 < cjbaird> It's still all there in the Received: headers..
2012-05-02T07:55:59 < cjbaird> The headers from emails sent from GMail I'm looking at right now contradict u
2012-05-02T07:56:57 < cjbaird> so nu
2012-05-02T08:38:58 < cjbaird> How much electricity do you want to waste? Getting it from the voltage drop across a resistor is the Q&D way.
2012-05-02T08:54:39 -!- ziph [~ziph@office.bitplantation.com] has joined ##stm32
2012-05-02T09:45:14 < cjbaird> He hates bathroom sex.
2012-05-02T09:50:28 < cjbaird> Magazines usually get the 'bulk' mail treatment.
2012-05-02T09:51:50 < cjbaird> If they'd been shipped with the parts, it would've added to the weight (~500g?) to the normal shipment, maybe an extra 10 bux to the cost.
2012-05-02T10:16:49 -!- M0JSN is now known as jonsowman
2012-05-02T10:18:06 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-02T10:20:11 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Client Quit]
2012-05-02T10:33:51 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-02T10:37:41 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Client Quit]
2012-05-02T10:48:20 < gsmcmullin> zyp: Did you try out those binaries I posted?
2012-05-02T10:52:02 -!- Laurenceb_ [~Laurence@host86-177-58-185.range86-177.btcentralplus.com] has joined ##stm32
2012-05-02T11:01:42 < Laurenceb_> yo dongs
2012-05-02T11:05:26 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has joined ##stm32
2012-05-02T11:05:27 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has quit [Changing host]
2012-05-02T11:05:27 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32
2012-05-02T11:20:38 -!- Laurenceb_ [~Laurence@host86-177-58-185.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-02T11:30:14 < Thorn> anyone used unique id in stm32f1? I built 2 identical devices with stm32f103vc. one has id 0x43226422363943324047ff39 and the other 0x43226406363943324367ff39
2012-05-02T11:32:18 < jpa-> check the errata, i think there might have been something about that
2012-05-02T11:37:17 < Thorn> "The DBGMCU_IDCODE and DBGMCU_CR debug registers are accessible only in debug mode (not accessible by the user software). When these registers are read in user mode, the returned value is 0x00."
2012-05-02T11:37:36 < Thorn> but this is not DBGMCU_IDCODE, is it (and it's not 0)
2012-05-02T11:38:42 < zyp> gsmcmullin, yes
2012-05-02T11:38:53 < gsmcmullin> success?
2012-05-02T11:39:38 < zyp> same behavior, looks like it's the version of os x I'm running on my main computer that doesn't support IAD
2012-05-02T11:39:48 < zyp> it works properly on my laptop with latest os x
2012-05-02T11:40:16 < gsmcmullin> Hmm.  I can't win.  Windows needs them.
2012-05-02T11:41:23 < zyp> no problem, I'm going to install latest os x anyway
2012-05-02T11:41:30 < zyp> I have just been lazy
2012-05-02T11:41:42 < jpa-> Thorn: oh yeah, that's something different
2012-05-02T11:41:54 < Thorn> and I can read IDCODE too, and it has correct data
2012-05-02T11:42:14 < Thorn> dev id: 00000414, rev id: 00001003
2012-05-02T11:43:32 < Thorn> the IDs are actually different, just in 2 bytes out of 12
2012-05-02T11:45:27 < zyp> gsmcmullin, it should be possible to have a second configuration that the os can pick if it doesn't support the first, but I suspect that it would be a lot of work to add?
2012-05-02T11:45:44 < Thorn> rev. 1003 is consistent with a Y marking on the chips
2012-05-02T11:47:07 < gsmcmullin> zyp: I'll try it.  The question is if osx will switch configuration.
2012-05-02T11:53:46 -!- izua [~izua@188.27.189.252] has joined ##stm32
2012-05-02T11:53:46 -!- izua [~izua@188.27.189.252] has quit [Changing host]
2012-05-02T11:53:46 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-02T11:53:49 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-02T12:01:06 < zyp> true
2012-05-02T12:10:19 -!- corecode_ is now known as corecode
2012-05-02T12:23:35 < Thorn> 0x1FFFF7E8
2012-05-02T12:23:39 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-02T12:24:02 < Thorn> they're not. find 2 differences
2012-05-02T12:24:50 < Thorn> I guess I expected them to be more unique :)
2012-05-02T12:27:04 < Thorn> looks like my chips are from the same wafer then
2012-05-02T12:29:10 < zyp> Thorn, you're supposed to hash that 12-byte value if you need to shorten it
2012-05-02T12:30:34 < zyp> it's guaranteed unique, but it's not guaranteed that more than one bit is unique
2012-05-02T12:31:37 < zyp> so if you need to shorten it, you need to hash it in a way such that all bits does affect the outcome
2012-05-02T12:32:12 < Thorn> which basically means a cryptographic hash
2012-05-02T12:33:22 < zyp> or just crc or some shit
2012-05-02T12:35:22 < zyp> if you are really lazy you could just xor the three 32-bit words together to make one 32-bit word
2012-05-02T12:35:42 < zyp> but then the probability of a collision would be pretty high
2012-05-02T12:38:12 < Thorn> I've been thinking about using this id for a device address in a rs-485/can network (~8 bits only)
2012-05-02T12:39:16 < zyp> so have I
2012-05-02T12:39:37 < zyp> can, at least
2012-05-02T12:41:07 < zyp> but the probability of collisions with 8-bit addrs is way too large even if you assume the hashing produces a perfect distribution
2012-05-02T12:41:48 < Thorn> that's my concern too
2012-05-02T12:42:11 < karlp> that's ok, you stick a label on the device, and say, "don't use more than one with the same number in the same network"
2012-05-02T12:42:22 < karlp> "swap it for another in the box of supplies"
2012-05-02T12:42:36 < karlp> we have hte same problem with some rs485 things here.
2012-05-02T12:42:38 < Thorn> as far as these particular devices go it's unlikely there're going to be more than 3 of them, but in the real world it's hardly acceptable
2012-05-02T12:43:02 < karlp> it probably is.
2012-05-02T12:43:04 < zyp> Thorn, I'll have at least 4, and at that point the probability of a collision would be 4%
2012-05-02T12:43:21 < karlp> look how many rc things get sold with labels like, "RC Freq A" or RC Freq B
2012-05-02T12:43:41 < zyp> if I'm having 8 slaves, the probability of a collision is 14%
2012-05-02T12:43:42 < karlp> as long as there's a sane way of getting around it, like, swap for a different instance from the pile,
2012-05-02T12:43:57 < karlp> we have networks of up to 17 devices, and we've only hit it two or three times,
2012-05-02T12:44:13 < karlp> we just swap out a device before they get shipped out.
2012-05-02T12:44:22 < zyp> I have a solution though
2012-05-02T12:44:25 < karlp> and they all have a sticker saying what ID they are.
2012-05-02T12:44:37 < zyp> my application is can only
2012-05-02T12:46:06 < zyp> I'm going to have the devices being adressable, and in the initial state, they would just listen for a «get id» broadcast, then respond with a package containing a large id, possibly 64-bit since max can package size is 8 bytes
2012-05-02T12:46:22 < Thorn> in one fire/security alarm system that uses rs-485 you need to connect each new device to a master (control panel / PC with an interface & software) via a dedicated bus and program the address
2012-05-02T12:47:04 < zyp> then the master allocates a device number for each and sends it back along with the large id
2012-05-02T12:47:05 < Thorn> with CAN you can probably detect collisions better than with RS-485 (look for usart framing errors?)
2012-05-02T12:47:06 < karlp> Thorn:  that works too, but I think it's more tedious and more work for the installers.  depends how much needs to be programmed anyway on site
2012-05-02T12:47:20 < zyp> Thorn, there is no collisions in can
2012-05-02T12:47:30 < zyp> can is fully arbitrated
2012-05-02T12:47:48 < karlp> zyp: yeah, it's a bit harder on 485.  I looked at doing something like that based on how can and 1wire work for address resolution,
2012-05-02T12:48:01 < karlp> but it seemed like a lot of software that could be avoided with stickers.
2012-05-02T12:48:06 < Thorn> I mean address collisions
2012-05-02T12:48:18 < karlp> less software ==>> less bugs I put out there
2012-05-02T12:50:45 < zyp> there is actually no adressing in can at all, only messages with IDs, you're free to implement your own adressing scheme with message ID filtering
2012-05-02T12:51:29 < Thorn> there're always dip switches, too...
2012-05-02T12:51:56 < zyp> and because of the arbitration, nothing prevents multiple slaves from responding to a single «get id» command
2012-05-02T12:52:46 < zyp> actually, I'm probably not going to do 64-bit IDs, but 32-bit IDs and use the rest to specify device type and capabilites
2012-05-02T12:52:52 < karlp> Thorn: we lookeed at dipswitches, but it was simply more expensive.
2012-05-02T12:53:27 < karlp> zyp: the good thing with can is that multiple devices can respond, but they all get through,
2012-05-02T12:53:35 < zyp> exactly
2012-05-02T12:53:42 < karlp> asking two 485 devices with the same id and you just get bus contention
2012-05-02T12:53:58 < Laurenceb> why not a random holdoff?
2012-05-02T12:54:03 < Laurenceb> after the getid command
2012-05-02T12:54:17 < karlp> though, I should say modbus/RTU rather than rs485, 485 itself doesn't actually talk about services.
2012-05-02T12:54:36 < zyp> Laurenceb, the way arbitration in can works is way more sensible than that
2012-05-02T12:54:57 < karlp> which is why it has dedicated hardware for it :)
2012-05-02T12:56:31 < zyp> Laurenceb, in can, every device on the bus monitors the bus and is not allowed to start sending when the bus is busy
2012-05-02T12:56:40 < Thorn> how would CAN handle the case where 2 devices attempt to send a frame to the same remote id at exactly the same time?
2012-05-02T12:57:02 < zyp> I'm coming to that
2012-05-02T12:57:41 < zyp> in can, 0 bits are dominant and 1 bits are recessive, so if any node is sending a 0, the bus state will be 0
2012-05-02T12:57:56 < karlp> they monitor every bit, all the times. can's magic
2012-05-02T12:58:09 < karlp> but only tiny data frames.
2012-05-02T12:58:44 < zyp> when sending, every node will monitor the sent bits, and if they discover that the bus state is something else than what they are sending, they discover that someone else is also sending, and back off
2012-05-02T12:59:31 < zyp> if one node is sending 1 and another is sending 0, the first node will detect that someone else is using the bus, and back off
2012-05-02T13:01:26 < zyp> this also implies a priority system; a lower ID will start with more 0s than a higher ID, so the node sending the higher ID will have to back off
2012-05-02T13:02:49 < Thorn> so how about this address resolution procedure: "master" send command "ID foo, send unique ID". two "slaves" with ID foo respond, one detects a collision and sends another frame to nofity master about it
2012-05-02T13:03:53 < zyp> that is possible
2012-05-02T13:04:16 < zyp> but I like my enumeration scheme better
2012-05-02T13:05:00 < karlp> which works for can.
2012-05-02T13:05:04 < Thorn> what is it?
2012-05-02T13:05:36 < karlp> thorn what are you running on rs485?
2012-05-02T13:06:00 < Thorn> ah I see you described it earlier
2012-05-02T13:07:04 < Thorn> karlp: right now it's a homebrew text protocol somewhat similar to modbus ascii
2012-05-02T13:10:13 < Thorn> well not sure if it's similar to modbus at all. e.g. a master message would be :01?T0\n and slave 01 reply :T0=26.375\n
2012-05-02T13:11:28 < karlp> looks like something based on modbus.
2012-05-02T13:11:33 < karlp> (why not just use modbus?)
2012-05-02T13:11:56 < Thorn> I'll see about implementing modbus ascii later
2012-05-02T13:12:25 < karlp> don't use ascii, it's a bastardized hack. just use proper RTU.
2012-05-02T13:12:27 < zyp> ascii based protocols are weird
2012-05-02T13:12:37 < Thorn> you can type them in a terminal
2012-05-02T13:12:58 < zyp> more work to generate, more work to parse, less efficient on the bus
2012-05-02T13:13:43 < Thorn> these devices also have CAN support (just a mcp2551 connected to a stm32f103 can peripheral) which I haven't tried yet
2012-05-02T13:15:33 < Thorn> most internet protocols are text-based. there was a rfc about why that's a good thing (not sure if it is on a global scale)
2012-05-02T13:15:55 < karlp> not IP and TCP and ethernet
2012-05-02T13:16:07 < zyp> karlp, that's what I was about to say :)
2012-05-02T13:16:32 < Thorn> these're lower level. CAN frames aren't either
2012-05-02T13:16:49 < karlp> your protocol sits directly on top of rs485,
2012-05-02T13:16:57 < Thorn> and you can use HDLC frames on rs-485 if you really want to
2012-05-02T13:16:58 < karlp> it's more like IP than http
2012-05-02T13:17:43 < karlp> none of this discussion helps with autoaddressing for master/slave rs485 networks of course :)
2012-05-02T13:18:59 < Thorn> it's interesting how a rs-485 bus seems more capable on a hardware level (3 states instead of 2 for CAN) but offers less features
2012-05-02T13:19:10 < zyp> 3 states?
2012-05-02T13:20:02 < Thorn> well, 0, 1 and idle
2012-05-02T13:20:22 < zyp> how is that more capable?
2012-05-02T13:20:30 < zyp> and how does that even compare with can?
2012-05-02T13:20:52 < karlp> they're just different.
2012-05-02T13:22:34 < zyp> can also have an idle state, it's defined as the bus being in the recessive state for a number of consecutive bit times, 7 I think
2012-05-02T13:22:34 < Thorn> thinking about it you could check if a bus is idle before a transmission but not during one
2012-05-02T13:23:11 < zyp> because during a transmission, bit stuffing is used to not allow more than five consecutive bits of the same type
2012-05-02T13:23:50 < zyp> so a node is not allowed to start transmit before it has seen 7 consecutive recessive bits
2012-05-02T13:24:59 < karlp> Thorn: part of the problem on 485 for this is that nodes can transmit for as long as they like.
2012-05-02T13:25:06 < karlp> on can it's always frames of a known size.
2012-05-02T13:25:50 < zyp> can frame sizes are variable, but there is a known maximum
2012-05-02T13:26:00 < karlp> and it's fairly small right?
2012-05-02T13:26:48 < zyp> I think it adds up to around 128 bits or so, worst case
2012-05-02T13:26:50 < Thorn> 8 bytes?
2012-05-02T13:27:58 < zyp> oh, no, it's a bit more than 128
2012-05-02T13:28:41 < zyp> the largest frame you can have is 128 bits, of which 64 bit is 8 bytes of data
2012-05-02T13:28:52 < zyp> but then you have to factor in bit stuffing aswell
2012-05-02T13:29:23 < zyp> at worst you'll have to add one bit for every five, so you're around 140 bit times in total
2012-05-02T13:29:39 < karlp> still tiny :)
2012-05-02T13:30:17 < Thorn> and overhead is at least 50%
2012-05-02T13:30:25 < zyp> no
2012-05-02T13:32:12 < zyp> those 128 bits also includes 29 bits of identifier and some flags
2012-05-02T13:32:20 < zyp> that you can use for any purpose
2012-05-02T13:33:04 < zyp> if you send frames with short identifier (11 bits), you save 20 bits
2012-05-02T13:33:22 < zyp> so the smallest possible can frame is 44 bits
2012-05-02T13:35:23 < zyp> oh, and the largest part of the actual over head is 15 bits of crc
2012-05-02T13:35:26 < zyp> overhead*
2012-05-02T14:12:21 < Laurenceb> so never use an stm32 in your diy weapons
2012-05-02T14:13:10 < Tectu> where do i find the pinconfiguration of the STM32F103VET?
2012-05-02T14:13:18 < Tectu> which is the 'normal' source?
2012-05-02T14:14:07 < Tectu> it's not in the reference manual, right?
2012-05-02T14:17:07 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 272 seconds]
2012-05-02T14:18:42 < karlp> the datasheet, not the ref manual
2012-05-02T14:19:44 < Tectu> aw, got it, thanks
2012-05-02T14:20:08 < Thorn> okay, thanks for the discussion
2012-05-02T14:20:11 < Tectu> i'm just doning hard finding out which PortPins the USART2 Tx/Rx are
2012-05-02T14:20:24 < Thorn> incredibly enough there's nothing about CAN in the errata
2012-05-02T14:20:26 < Tectu> (for setting the GPIO stuff up)
2012-05-02T14:21:13 < Thorn> Tectu: there's a table in the datasheet (make sure you have the correct one)
2012-05-02T14:22:16 < karlp> Tectu: part of what makes it less obvious are that it can be on multiple pins via the port alternate functions
2012-05-02T14:22:21 < Tectu> Thorn, have the STM32F103 datasheet now
2012-05-02T14:22:35 < Tectu> karlp, you mean the pin remapping?
2012-05-02T14:22:53 < Thorn> Tectu: there's more than one stm32f103 datasheet
2012-05-02T14:25:02 < Tectu> Thorn, got the datasheet from the stm32f103vet site from st.com
2012-05-02T14:34:26 < Laurenceb> anyone here used the lanchon linker scripts?
2012-05-02T14:34:50 < Laurenceb> im trying to work out how it passes __end to the startup code
2012-05-02T14:35:09 < zyp> work out?
2012-05-02T14:35:29 < Laurenceb> well...
2012-05-02T14:35:35 < zyp> you can't figure it out just by looking at it?
2012-05-02T14:36:25 < Laurenceb> https://github.com/Laurenceb/STM32-Logger/blob/master/lib/lanchon-stm32-rom.ld#L147
2012-05-02T14:36:39 < Laurenceb> so theres the end there
2012-05-02T14:37:26 < Laurenceb> https://github.com/Laurenceb/STM32-Logger/blob/master/lib/CMSIS_CM3/startup/gcc/startup_stm32f10x_md.s#L47
2012-05-02T14:37:31 < zyp> hang on, that .noinit-part, did you add that yourself?
2012-05-02T14:37:31 < Laurenceb> than the end there
2012-05-02T14:37:34 < Laurenceb> yes
2012-05-02T14:37:37 < zyp> right
2012-05-02T14:37:45 < Laurenceb> ive think broken it :P
2012-05-02T14:37:46 < zyp> your heap will overlap it
2012-05-02T14:37:53 < Laurenceb> i need to change one of the end statements
2012-05-02T14:38:14 < Laurenceb> trying to work out which one, but i cant see how its linked to the startup code
2012-05-02T14:38:18 < zyp> move line 147 and 148 down until after the ALIGN line in the .noinit section
2012-05-02T14:39:16 < zyp> hmm, no, that's not entirely correct
2012-05-02T14:39:35 < Laurenceb> then the noinit will be zeroed out
2012-05-02T14:39:40 < zyp> yes
2012-05-02T14:40:00 < Laurenceb> i cant see where the startup links to _end or __end
2012-05-02T14:40:09 < zyp> make a new statement where the end statements are now, saying _ebss = .;
2012-05-02T14:40:19 < zyp> and replace _end with _ebss on line 160
2012-05-02T14:40:47 < zyp> Laurenceb, it doesn't directly, see line 35
2012-05-02T14:40:54 < zyp> PROVIDE(__cs3_heap_start = _end);
2012-05-02T14:41:25 < Laurenceb> yeah i see that
2012-05-02T14:41:36 < Laurenceb> but i dont see where _ebss is
2012-05-02T14:41:46 < zyp> nowhere, that's why I told you to make it
2012-05-02T14:42:01 < Laurenceb> hmf
2012-05-02T14:42:10 < Laurenceb> so how does the startup code find it?
2012-05-02T14:42:25 < zyp> line 160
2012-05-02T14:42:27 < zyp> __cs3_region_zero_size_ram = _end - _edata;
2012-05-02T14:43:29 < zyp> so, move end symbols into .noinit to signify the real end, add a new ebss symbol to signify bss end and update line 160 to use ebss
2012-05-02T14:43:34 < Laurenceb> oh
2012-05-02T14:43:49 < Laurenceb> those are defined in the order they are used in the startup code?
2012-05-02T14:44:06 < zyp> huh?
2012-05-02T14:44:06 < Laurenceb> or ""provided"  ?
2012-05-02T14:44:24 < karlp> the startup code just defines those names as extern pointers
2012-05-02T14:44:39  * Laurenceb reads code again
2012-05-02T14:44:45 < karlp> like: https://github.com/karlp/kkstm32_base/blob/master/startup/cm3_genstartup.c#L21
2012-05-02T14:45:34 < zyp> Laurenceb, just do what I said, and it will be correct
2012-05-02T14:46:20 < Laurenceb> ok
2012-05-02T14:46:26 < Laurenceb> but my startup just has https://github.com/Laurenceb/STM32-Logger/blob/master/lib/CMSIS_CM3/startup/gcc/startup_stm32f10x_md.s#L38
2012-05-02T14:46:33 < Laurenceb> is it broken?
2012-05-02T14:46:43 < zyp> uh
2012-05-02T14:46:58 < zyp> that doesn't seem to match the linker script
2012-05-02T14:47:26 < Tectu> okay guys, USART1 works here, it's on APB1, right?
2012-05-02T14:47:34 < Tectu> when i want to use USART2, it is on APB2, right?
2012-05-02T14:47:46 < Laurenceb> zyp: yeah thats whats confusing me
2012-05-02T14:47:50 < Tectu> but I/O configuration is still over APB1?   (GPIOA)
2012-05-02T14:48:29 < zyp> Tectu, GPIO registers are not related to USART registers at all
2012-05-02T14:48:43 < zyp> so there is nothing stopping them from being on different buses
2012-05-02T14:48:57 < Tectu> zyp, just have this USART1 code:    http://pastebin.com/PY4ycV5s
2012-05-02T14:49:22 < Tectu> trouble with line 6
2012-05-02T14:49:48 < Laurenceb> ah i see
2012-05-02T14:50:02 < Laurenceb> yes its _partially_ broken
2012-05-02T14:50:07 < zyp> Tectu, if GPIOA is on APB1, that's obviously wrong
2012-05-02T14:50:11 < Laurenceb> some names mismatch, but not all
2012-05-02T14:50:17 < Tectu> zyp, tought so ;-)
2012-05-02T14:50:20 < Tectu> thought*
2012-05-02T14:50:26 < Laurenceb> that explains why it works atm
2012-05-02T14:50:47 < Tectu> zyp, on my stm32 board, there is USART2 on PA2/PA3
2012-05-02T14:51:15 < zyp> 13:48:29 < zyp> Tectu, GPIO registers are not related to USART registers at all
2012-05-02T14:51:52 < Tectu> ah, zyp guess i see my problem, sec
2012-05-02T14:52:22 < Tectu> zyp, i have to split line 6 into two line,, right?   enable APB2 clock for GPIOA
2012-05-02T14:52:29 < zyp> to use USART2 on PA2/PA3, you have to enable both the GPIOA block and the USART2 block, but they are not related to each other and may therefore be on different buses
2012-05-02T14:52:44 < Tectu> and APB1 for USART2 clock
2012-05-02T14:52:53 < Tectu> right?
2012-05-02T14:52:56 < zyp> sounds right
2012-05-02T14:53:11 < Tectu> nice, let's see
2012-05-02T14:53:20 < zyp> I've abstracted this away in my code, so I don't have to care about which buses the blocks are on at all
2012-05-02T14:53:53 < zyp> I just do RCC.enable(RCC.GPIOA); RCC.enable(RCC.USART2); and then the compiler figures out the rest for me
2012-05-02T14:54:26 < karlp> zyp: that looks like some nice code, I hate having to work out which thing is on what buss.
2012-05-02T14:55:06 < zyp> I have an enum for each bus, and then overloaded functions (C++) for each enum, setting the bits in the right register
2012-05-02T14:55:38 < zyp> http://cgit.jvnv.net/suzumebachi/tree/hal/rcc.h?h=stm32f4
2012-05-02T14:55:56 < Tectu> zyp, this way?    http://pastebin.com/QQNjfm9W
2012-05-02T14:56:14 < zyp> Tectu, yes, that looks right
2012-05-02T14:56:35 < Tectu> good, that explains why it's not working :)
2012-05-02T14:56:38 < Tectu> at least it's compiling
2012-05-02T14:57:50 < Thorn> my I2C hangs again, and when I stop the cpu and do p I2C1->SR1 (or SR2) they're all 0
2012-05-02T14:58:39 < zyp> you're probably doing something dumb
2012-05-02T14:58:51 < zyp> :p
2012-05-02T14:59:16 < Tectu> zyp, ofc :D
2012-05-02T14:59:20 < Tectu> let's take the scope ;)
2012-05-02T14:59:33 < Tectu> not sure if my printf_ works with USART2
2012-05-02T14:59:40 < Thorn> it only hangs on one of the 2 devices btw (but I've seen the same on other boards)
2012-05-02T14:59:55 < zyp> my i2c code seems to be pretty reliable
2012-05-02T15:00:24 < karlp> Thorn: stronger pullup?
2012-05-02T15:00:36 < Thorn> 2.2K on both
2012-05-02T15:00:45 < zyp> it's not able to handle and recover from bus errors yet, but it's working fine as long as all the devices on the bus is working perfectly
2012-05-02T15:01:18 < zyp> I've had the board running overnight without any lockup
2012-05-02T15:03:12 < Thorn> previously I've seen it in a dev board with I2c chips in a breadboard connected with wires, it often hung at night (waiting for some event, probably EV6)
2012-05-02T15:03:24 < Laurenceb> ok im confused
2012-05-02T15:03:30 < zyp> that's normal
2012-05-02T15:03:37 < Laurenceb> _sidata is init values for .data
2012-05-02T15:03:37 < karlp> linker scripts suck.
2012-05-02T15:03:44 < Thorn> but this one has no wires, and only one of 2 devices hangs (about once per 1-2 hours too)
2012-05-02T15:03:47 < zyp> linkers scripts rock
2012-05-02T15:03:49 < Laurenceb> my code works ok
2012-05-02T15:03:53 < zyp> you just have to understand them
2012-05-02T15:04:01 < Laurenceb> yet i can only find sidata in my startup code
2012-05-02T15:04:03 < Laurenceb> wtf
2012-05-02T15:04:12 < karlp> I have a much greater understanding of them after I wrote my own in the end,
2012-05-02T15:04:26 < karlp> but there's so many poorly documented section names that various things just expect to exist
2012-05-02T15:04:36 < zyp> Laurenceb, so it's the number of _'s that have you confused?
2012-05-02T15:04:42 < Laurenceb> no
2012-05-02T15:04:46 < zyp> then what?
2012-05-02T15:04:50 < Laurenceb> grep for sidata
2012-05-02T15:04:59 < Laurenceb> and its only in the startup
2012-05-02T15:05:00 < zyp> karlp, I wrote my own from the start
2012-05-02T15:05:12 < Laurenceb> so how can it possibly work atm
2012-05-02T15:05:12 < karlp> zyp I didn't understand them enough to do so in the beginning.
2012-05-02T15:05:34 < zyp> I've written linker scripts for other architectures before :p
2012-05-02T15:05:37 < karlp> and I still don't fully understand some of the various directives in the scripts themselves,
2012-05-02T15:05:38 < Laurenceb> "/* start address for the initialization values of the .data section.
2012-05-02T15:05:38 < Laurenceb> defined in linker script */
2012-05-02T15:05:38 < Laurenceb> .word	_sidata"
2012-05-02T15:05:44 < Laurenceb> ^only it isnt
2012-05-02T15:05:58 < Laurenceb> yet my code runs... wtf
2012-05-02T15:06:13 < karlp> but I'm a lot happier with what I've got now than I was with the ST provided assembly startup and static linker scripts
2012-05-02T15:08:21  * Laurenceb reads dissasembly of his code
2012-05-02T15:21:45 < Laurenceb> https://github.com/Laurenceb/STM32-Logger/blame/master/lib/lanchon-stm32-rom.ld
2012-05-02T15:21:51 < Laurenceb> ok i maybe made it more sane
2012-05-02T15:38:27 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-02T15:38:48 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: .]
2012-05-02T16:01:35 < Laurenceb> it runs ok now.. very strange
2012-05-02T16:17:28 -!- lukky513 [~lukky@student.agh.edu.pl] has joined ##stm32
2012-05-02T16:17:34 < lukky513> hi
2012-05-02T16:18:26 < lukky513> is there anything I should know aobut when I connect ST-Link(v1) to STM32F103?
2012-05-02T16:18:40 < lukky513> (for the first time, and it's a custom board)
2012-05-02T16:19:05 < lukky513> as I can't get it to work, neither on JTAG nor SWD
2012-05-02T16:23:25 < Tectu> is it just me or is the RCC stuff from the stm lib a litte bit... weird?
2012-05-02T16:25:51 < zyp> Tectu, the entire stm lib is weird
2012-05-02T16:26:07 < Tectu> zyp, aw, cute :)
2012-05-02T16:26:37 < Tectu> do i have to do something else than   RCC_DeInit()   RCC_HSEConfig(RCC_HSE_ON);   ?
2012-05-02T16:26:39 < zyp> lukky513, standaline st-link?
2012-05-02T16:27:35 < zyp> Tectu, to do what?
2012-05-02T16:28:40 < Tectu> na, wait, i'll figure out
2012-05-02T16:28:50 < Tectu> i just want to use my external 8MHz crystal with 3x PLL
2012-05-02T16:34:28 < Laurenceb> muha
2012-05-02T16:34:47 < Laurenceb> 32bit floats working for my magnitude problem
2012-05-02T16:35:04 < Laurenceb> getting ~17.5ENOB out of the front end now
2012-05-02T16:37:32 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-02T16:40:25 < lukky513> zyp: yes, precisely a ST-Link clone
2012-05-02T16:40:33 < lukky513> said to be fully compatible
2012-05-02T16:41:07 < lukky513> everything seems to be connected alright: boot0 grounded, power supplied to uC externally
2012-05-02T16:41:46 < lukky513> ST-Link had done it's job well on some other development board I used before
2012-05-02T16:59:22 < Laurenceb> anyone here got a stm32l discovery?
2012-05-02T16:59:53 < cjbaird> Yes, but not that I've done anything with it so far..
2012-05-02T17:01:09 < Laurenceb> i was interested in how well the capacitive pads worked
2012-05-02T17:03:16 < cjbaird> The factory demo uses it-- sliding your finger across the four pads give a seemlingly smooth vale between 0 and 100%.
2012-05-02T17:03:38 < Laurenceb> interesting
2012-05-02T17:04:01 < cjbaird> There's youtube vids showing it off.
2012-05-02T17:04:12 < Laurenceb> yeah
2012-05-02T17:04:30 < karlp> it works really well
2012-05-02T17:04:37 < karlp> I was impressed at how well it worked.
2012-05-02T17:04:43 < Laurenceb> i want to use it to interface photodiodes
2012-05-02T17:04:52 < karlp> there's demo code for using them as buttons or as a slider
2012-05-02T17:05:10 < Laurenceb> they are "ab"using the analogue mux as a charge pump
2012-05-02T17:06:03 < karlp> I honestly haven't looked at how or why they are doing things, I just know it works.
2012-05-02T17:12:59 < Thorn> got a hang, waiting for EV6 (I2C_EVENT_MASTER_TRANSMITTER_MODE_SELECTED), SR1=0x0000, SR2=0x0000
2012-05-02T17:13:19 < Laurenceb> hehe
2012-05-02T17:13:29 < Laurenceb> welcome to the world of interrupt driven i2c
2012-05-02T17:13:43 < zyp> mine is still working reliably
2012-05-02T17:13:52 < Laurenceb> mine too :P
2012-05-02T17:13:56 < Thorn> I wonder wtf is that
2012-05-02T17:14:32 < Laurenceb> Thorn: i have code on my github
2012-05-02T17:15:13 < Thorn> increased i2c request rate to 100/second, got it minutes after starting
2012-05-02T17:15:27 < Thorn> again
2012-05-02T17:15:38 < Thorn> I remember your code Laurenceb
2012-05-02T17:15:59 < Thorn> none
2012-05-02T17:16:28 < Thorn> and I commented out all uart debug prints
2012-05-02T17:16:48 < Thorn> i2c is polled,  uses no interrupts
2012-05-02T17:17:03 < Thorn> again, just after 1 minute
2012-05-02T17:17:27 < Thorn> ?
2012-05-02T17:17:30 < Laurenceb> oh
2012-05-02T17:17:34 < Laurenceb> i have polled code too
2012-05-02T17:18:41 < Laurenceb> its somewhere on github
2012-05-02T17:18:53 < Laurenceb> and im too lazy
2012-05-02T17:18:57 < Laurenceb> to find it
2012-05-02T17:19:25 < Laurenceb> https://github.com/Laurenceb/Dactyl/blob/master/Archived/i2c.c
2012-05-02T17:20:22 < Thorn> http://codepad.org/d8Bkdz6j hangs in loop at line 20
2012-05-02T17:20:45 < Laurenceb> erm
2012-05-02T17:20:52 < Laurenceb> does your slave ack?   :P
2012-05-02T17:21:40 < Thorn> dongs: I press reset
2012-05-02T17:21:46 < Laurenceb> ...
2012-05-02T17:21:54 < Laurenceb> power cycle
2012-05-02T17:22:49 < Thorn> why are both SRs 0? they should be SR1=0000 SR2=0003 while it's waiting for an ACK
2012-05-02T17:23:04 < Thorn> I think
2012-05-02T17:23:16 < zyp> Thorn, why?
2012-05-02T17:23:20 < Thorn> power cycled, same shit, < 1 minute
2012-05-02T17:23:58 < Thorn> other board is running for 6.5 hours with no problem
2012-05-02T17:25:09 < Thorn> zyp: this is what was being printed in that loop with no hang
2012-05-02T17:25:58 < Laurenceb> hardware issue with slaves?
2012-05-02T17:26:12 < Laurenceb> if the other board works and it fails when it should get ack..
2012-05-02T17:27:07 < Thorn> it looks like it's only failing when working with a ds1337+, I'll test that
2012-05-02T17:27:29 < Thorn> actually I'm running at a very low voltage, so it may be possible (but both boards are at the same voltage)
2012-05-02T17:28:02 < Thorn> well not "very" low
2012-05-02T17:28:15 < zyp> how did the scoping go?
2012-05-02T17:28:18 < Thorn> okay, 5 minutes without power
2012-05-02T17:28:23 < zyp> you don't have a proper logic analyzer?
2012-05-02T17:30:00 < Thorn> I have a saleae ripoff
2012-05-02T17:30:14 < zyp> and what does it say?
2012-05-02T17:30:33 < Thorn> nothing yet
2012-05-02T17:30:39 < Laurenceb> "Hi guys,Thought itÂ’d be good to do something as a research group and so IÂ’m planning on having people over for the champions league final"
2012-05-02T17:30:42 < Laurenceb> WTF
2012-05-02T17:30:44 < Thorn> again, after a long powerdown
2012-05-02T17:30:47 < Laurenceb> die die die
2012-05-02T17:31:22 < Thorn> time for the LA and better power I guess
2012-05-02T17:31:34 < zyp> Thorn, use it to capture a failing transaction, and provide a picture of what that looks like so we can see what point it fails at
2012-05-02T17:33:06 < Thorn> Bit 1 BUSY: Set by hardware on detection of SDA or SCL low. cleared by hardware on detection of a Stop condition.
2012-05-02T17:33:13 < Thorn> so why is it zero?!
2012-05-02T17:33:24 < Thorn> when it hangs
2012-05-02T17:33:34 < zyp> because it's no longer busy
2012-05-02T17:33:38 < Thorn> that's in SR2
2012-05-02T17:33:46 < Thorn> it sees a STOP?
2012-05-02T17:33:55 < zyp> or it sees an error and bails out.
2012-05-02T17:34:09 < zyp> get the LA wired up and get a trace of the problem.
2012-05-02T17:34:09 < Thorn> error = flag set
2012-05-02T17:34:22 < Thorn> but no flags are set
2012-05-02T17:34:24 < Thorn> I will
2012-05-02T17:52:20 < Thorn> fails the same way when powered with solid 5V
2012-05-02T17:52:23 < Thorn> got it captured
2012-05-02T17:56:58 < Thorn> there's simply start followed by a stop
2012-05-02T17:57:14 < Thorn> no attempt to send a slave address
2012-05-02T17:57:24 < Thorn> or rather start, one clock pulse and stop
2012-05-02T17:59:35 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 260 seconds]
2012-05-02T18:00:31 < Thorn> http://i.imgur.com/6J3BG.png
2012-05-02T18:02:17 < Thorn> an LM75 (0x48) transfer is okay, there should be another one with a ds1337+
2012-05-02T18:04:42 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-02T18:04:45 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-02T18:07:05 < zyp> good
2012-05-02T18:08:08 < zyp> this is clearly a problem in your code
2012-05-02T18:09:00 < Thorn> another capture, same thing
2012-05-02T18:09:04 < zyp> Thorn, by the way, try inserting a delay of a few ms between the transfers
2012-05-02T18:09:09 < zyp> see if that makes any difference
2012-05-02T18:10:04 < Thorn> I can remove the first transfer completely (btw is there a name for a write transfer followed by a read?)
2012-05-02T18:10:53 < zyp> the errata mentions a race between stop and start, if they come too close, I don't really think that's what you're hitting but worth checking
2012-05-02T18:11:02 < zyp> just add the delay and test
2012-05-02T18:11:55 < zyp> I have been running my code without any delay without hitting that
2012-05-02T18:12:09 < zyp> and you clearly get both a stop and a start on the bus
2012-05-02T18:13:46 < zyp> http://bin.jvnv.net/f/tTNjL.png <- this is what my code does, and that doesn't make any problems
2012-05-02T18:14:10 -!- cjbaird [~cjb@ppp121-45-175-149.lns20.syd6.internode.on.net] has left ##stm32 ["Konversation terminated!"]
2012-05-02T18:14:31 < zyp> (the trace shows a hang after the slave is failing to ACK, don't mind that)
2012-05-02T18:21:14 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-02T18:22:27 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-02T18:24:09 < Thorn> heh, I actually had 3 transfers (one to lm75 and two to ds1337) in a loop. removed second one, added delay between them. still running
2012-05-02T18:25:27 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Client Quit]
2012-05-02T18:30:14 < Thorn> ... still running ...  this certainly made a difference
2012-05-02T18:32:42 < Laurenceb> yeah after start you need to wait for the bit to clear
2012-05-02T18:32:46 < Laurenceb> before sending stop
2012-05-02T18:32:52 < Laurenceb> otherwise bad stuff happens
2012-05-02T18:34:05 < Thorn> I'm not sending stop right after start anywhere in my code
2012-05-02T18:34:16 < Laurenceb> ok
2012-05-02T18:34:25 < Laurenceb> but are you sending start right after stop?
2012-05-02T18:34:44 -!- avernos [~avernos@unaffiliated/avernos] has quit [Ping timeout: 245 seconds]
2012-05-02T18:35:08 < Thorn> yes I do (well not anymore, I inserted delays everywhere which is not too efficient)
2012-05-02T18:35:15 < Laurenceb> ok
2012-05-02T18:35:18 < Thorn> what bit do I wait for?
2012-05-02T18:35:27 < Laurenceb> stop to clear
2012-05-02T18:35:35 -!- avernos [~avernos@221.216.132.205] has joined ##stm32
2012-05-02T18:35:35 -!- avernos [~avernos@221.216.132.205] has quit [Changing host]
2012-05-02T18:35:35 -!- avernos [~avernos@unaffiliated/avernos] has joined ##stm32
2012-05-02T18:35:46 < Laurenceb> but for repeated transactions, use a repeated start
2012-05-02T18:38:13 < Thorn> I send a restart in order todo a read after a write, but if the transfer is for a different slave you need a stop otherwise the first slave may go nuts (from experience)
2012-05-02T18:43:50 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-02T18:43:54 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-02T18:44:11 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-02T18:45:32 <+Steffanx> nu
2012-05-02T18:54:11 < Laurenceb> is there a way to decrease xtal drive level?
2012-05-02T18:54:56 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-02T18:55:32 < zyp> I read < Laurenceb> hey, I want to do something weird again
2012-05-02T18:56:20 < Laurenceb> well, atm with my xtal, drive level is nearly too high
2012-05-02T18:56:48 < Laurenceb> 74uW, max is 100
2012-05-02T19:08:17 < Thorn> it's still running
2012-05-02T19:18:35 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-02T19:19:19 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Ping timeout: 256 seconds]
2012-05-02T19:19:52 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32
2012-05-02T19:20:30 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 272 seconds]
2012-05-02T19:23:16 -!- peabody124_ [~peabody12@128.249.96.123] has joined ##stm32
2012-05-02T19:23:29 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 245 seconds]
2012-05-02T19:25:07 -!- metaxa [metaxa@members.bombshellz.net] has quit [Ping timeout: 276 seconds]
2012-05-02T19:25:38 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 260 seconds]
2012-05-02T19:25:38 -!- peabody124_ is now known as peabody124
2012-05-02T19:28:05 -!- Tom_L is now known as Tom_itx
2012-05-02T19:32:45 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-02T19:33:42 < zyp> did he take a dump on another pcb?
2012-05-02T19:34:24 < Thorn> parallel microcontrolling ftw
2012-05-02T19:34:47 < Thorn> someone tell him about cortex-m
2012-05-02T19:34:50 < emeb> That's some ugly soldering right there.
2012-05-02T19:34:52 < Tom_itx> did you hand solder those?
2012-05-02T19:35:03 < Tom_itx> most of it is flux
2012-05-02T19:35:05 < Tom_itx> ninny
2012-05-02T19:35:08 -!- izua [~izua@86.121.79.118] has joined ##stm32
2012-05-02T19:35:08 -!- izua [~izua@86.121.79.118] has quit [Changing host]
2012-05-02T19:35:08 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-02T19:35:09 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-02T19:35:17 < zyp> Tom_itx, this tom guy did
2012-05-02T19:35:21 < zyp> he can't solder for shit
2012-05-02T19:35:35 < Tom_itx> well i was just trying to be nice
2012-05-02T19:35:42 < zyp> this must be one of the best looking boards I've seen from him
2012-05-02T19:35:51 < Tom_itx> it _does_ look like shit
2012-05-02T19:35:51 < Thorn> I added a wait for I2C_FLAG_BUSY to go false at the start of a transfer and it doesn't hang even with no delays
2012-05-02T19:36:31 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds]
2012-05-02T19:36:47 < Tom_itx> if you're gonna show off your wares at least have the courtesy to wipe first
2012-05-02T19:37:07 < Tom_itx> that's a 5 min job
2012-05-02T19:37:24 < Tom_itx> with an iron
2012-05-02T19:37:28 < Thorn> what pitch are these chips? it's not 0.5mm is it
2012-05-02T19:37:40 < zyp> looks like 0.5
2012-05-02T19:37:56 < ziph> Yeah, I'm betting 0.65.
2012-05-02T19:38:09 < ziph> And I didn't think it was possible to use too much flux.
2012-05-02T19:38:13 < ziph> Until now.
2012-05-02T19:38:39 < Thorn> 4 pins per 0.1"" between header pins
2012-05-02T19:38:56 < ziph> dongs: The soldering on the GPIO-1 header is a bit crappy.
2012-05-02T19:39:00 < zyp> hmm, actually looks like 0.8
2012-05-02T19:39:07 < Thorn> 0.8 it is
2012-05-02T19:39:12 < Thorn> lol
2012-05-02T19:39:15 < zyp> 0.85 maybe
2012-05-02T19:39:17 < karlp> dongs, what's so magic that you can't say what chips they are?
2012-05-02T19:39:27 < zyp> karlp, it's some PICs
2012-05-02T19:39:41 < zyp> ah
2012-05-02T19:39:42 -!- tavish [~tavish@120.59.13.160] has joined ##stm32
2012-05-02T19:39:42 -!- tavish [~tavish@120.59.13.160] has quit [Changing host]
2012-05-02T19:39:42 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-02T19:39:51 < zyp> didn't see that
2012-05-02T19:40:00 < karlp> gone from the soic8 too :)
2012-05-02T19:40:11 < Tom_itx> it takes some practice to get all the info in a pic
2012-05-02T19:40:47 < emeb> mmm... mystery chips.
2012-05-02T19:40:59 < Tom_itx> http://tom-itx.dyndns.org:81/~webpage/temp/tiny/tinyTPI1.jpg
2012-05-02T19:41:09 < Tom_itx> i like that one
2012-05-02T19:41:19 < Tom_itx> attiny10
2012-05-02T19:41:32 < emeb> been a while since I've seen one of those rectangular packages.
2012-05-02T19:42:18 < Thorn> I want a sot-23 microcontroller
2012-05-02T19:42:32 -!- avernos [~avernos@unaffiliated/avernos] has quit [Ping timeout: 245 seconds]
2012-05-02T19:42:37 < zyp> dongs, guess it's an FX2 in your pic?
2012-05-02T19:42:58 < Tom_itx> Thorn, 16 bit timer, 4 io, adc, pwm ...
2012-05-02T19:43:02 < zyp> used for FIFO to an FPGA above it?
2012-05-02T19:43:26 -!- avernos [~avernos@221.216.132.205] has joined ##stm32
2012-05-02T19:43:26 -!- avernos [~avernos@221.216.132.205] has quit [Changing host]
2012-05-02T19:43:26 -!- avernos [~avernos@unaffiliated/avernos] has joined ##stm32
2012-05-02T19:43:45 < karlp> what's an FX2?
2012-05-02T19:43:50 < zyp> cypress mcu
2012-05-02T19:44:06 < zyp> that ez usb stuff
2012-05-02T19:44:38 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-02T19:45:28 < zyp> «Would having it shrink-wrapped be a useful feature?»
2012-05-02T19:45:50 < zyp> I'd answer «Shrink-wrap it so people won't have to look at your crappy soldering.»
2012-05-02T19:47:05 < Thorn> tell him about isopropanol
2012-05-02T19:48:40 < Thorn> okay, seems to be running well with a BUSY wait. thanks for the help
2012-05-02T19:49:40 < karlp> thorn, can you sum up what your final solution was?
2012-05-02T19:49:42 < emeb> spent all his $$ on flux
2012-05-02T19:50:37 < Thorn> karlp: i2c_transfer() { while(I2C_GetFlagStatus(i2c, I2C_FLAG_BUSY)==SET) ;; ...
2012-05-02T19:51:04 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-02T19:51:25 < karlp> what, you added that before you start anything new?
2012-05-02T19:51:28 < karlp> or you had to take that out?
2012-05-02T19:51:44 < zyp> karlp, added, see the I2C errata
2012-05-02T19:52:04 < zyp> or, it might not even be the errata
2012-05-02T19:53:06 < Thorn> btw I already had that line there but it was commented out for some reason
2012-05-02T19:53:13 < zyp> consider this: you're setting STOP, hardware is clearing STOP, you're setting START at the same time, so you read the register with STOP set, set the START flag and write it back still with STOP set
2012-05-02T19:53:52 < Thorn> I wonder why the problem never happened on one of the boards
2012-05-02T19:56:02 < zyp> timing differences
2012-05-02T19:56:07 < zyp> it's a race condition
2012-05-02T20:00:26 < Thorn> it probably only works because there aren't many interrupts that can fire while the transfer is underway. if I have a lot of them other fun errata items can come into play
2012-05-02T20:03:29 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-02T20:19:15 -!- peabody124 [~peabody12@128.249.96.123] has quit [Read error: Connection reset by peer]
2012-05-02T20:20:00 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32
2012-05-02T20:30:03 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 250 seconds]
2012-05-02T20:32:21 -!- tavish [~tavish@120.59.0.226] has joined ##stm32
2012-05-02T20:32:21 -!- tavish [~tavish@120.59.0.226] has quit [Changing host]
2012-05-02T20:32:21 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-02T20:38:11 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 246 seconds]
2012-05-02T20:40:59 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit []
2012-05-02T20:42:49 < Thorn> lol, lm75a doesn't ACK at all @ 400KHz
2012-05-02T20:47:20 < Thorn> min SCL period = 2.5us per datasheet
2012-05-02T20:49:34 -!- peabody124_ [~peabody12@128.249.96.21] has joined ##stm32
2012-05-02T20:52:28 -!- peabody124 [~peabody12@128.249.96.123] has quit [Ping timeout: 244 seconds]
2012-05-02T20:52:28 -!- peabody124_ is now known as peabody124
2012-05-02T20:56:06 <+Steffanx> I guess 400kHz is too close to that minimum Thorn :)
2012-05-02T20:59:37 < jpa-> Thorn: check the waveforms with a scope
2012-05-02T20:59:48 < jpa-> and note the hold & setup times also
2012-05-02T21:02:37 < Thorn> setup is 100ns min. too lazy+tired to get a scope
2012-05-02T21:07:19 <+Steffanx> Then it's a pebkec Thorn
2012-05-02T21:07:40 < Thorn> why second e btw?
2012-05-02T21:07:58 < emeb> latin - et
2012-05-02T21:08:35 <+Steffanx> It was actually a typo the first time i said that :)
2012-05-02T21:08:52 < emeb> now it's tradition?
2012-05-02T21:09:06 <+Steffanx> Yes, just like 'nu'
2012-05-02T21:09:12 < emeb> how meta
2012-05-02T21:10:26 <+Steffanx>  Isn't it nice?
2012-05-02T21:21:56 < Thorn> http://i.imgur.com/0HY9C.png
2012-05-02T21:22:35 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-02T21:23:57 <+Steffanx> dual screen to the max
2012-05-02T21:28:32 < Thorn> I do need a scope, there're some weird glitches in the waveform
2012-05-02T21:30:30 <+Steffanx> And you think you'll capture that with a scope?
2012-05-02T21:31:00 < Thorn> they seem to repeat every time
2012-05-02T21:31:10 < Thorn> in the same places too
2012-05-02T21:31:13 <+Steffanx> ah ok
2012-05-02T21:31:19 < Thorn> maybe it's a crosstalk from scl?
2012-05-02T21:33:58 < Thorn> or is the i2c peripheral even more weird than the errata says
2012-05-02T21:43:35 -!- TeknoJuce [~TeknoJuce@69.158.165.131] has quit [Ping timeout: 260 seconds]
2012-05-02T21:47:05 -!- TeknoJuce [~TeknoJuce@69.158.165.131] has joined ##stm32
2012-05-02T21:47:05 -!- TeknoJuce [~TeknoJuce@69.158.165.131] has quit [Changing host]
2012-05-02T21:47:05 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-02T21:48:33 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Ping timeout: 260 seconds]
2012-05-02T21:51:30 < zyp> Thorn, what kind of glitches?
2012-05-02T21:52:08 < Thorn> see my last link. there're SDA pulses while SCK is low
2012-05-02T21:52:16 < zyp> like the ones around 70 us?
2012-05-02T21:52:18 < Thorn> *SCL
2012-05-02T21:52:38 < Thorn> yes, 2 of them nearby
2012-05-02T21:52:47 < zyp> that's perfectly normal
2012-05-02T21:53:05 < Thorn> why does it happen?
2012-05-02T21:53:13 < zyp> direction change
2012-05-02T21:53:37 < zyp> master drives the 0 before and after, while slave drives the 0 in between to signal an ACK
2012-05-02T21:53:38 < Thorn> ah crap I'm stupid
2012-05-02T21:53:48 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 260 seconds]
2012-05-02T21:53:53 < Thorn> they're before and after an ACK
2012-05-02T21:53:58 < Thorn> right
2012-05-02T21:54:04 < Thorn> thanks
2012-05-02T21:54:31 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-02T21:54:43 < zyp> I get the exact same here
2012-05-02T21:55:19 < Thorn> looking at other transfers they only happen around the ACK pulse
2012-05-02T21:57:15 -!- Laurenceb_ [~Laurence@host86-177-58-185.range86-177.btcentralplus.com] has joined ##stm32
2012-05-02T22:00:01 < Laurenceb_> http://www.youtube.com/watch?feature=player_embedded&v=znOMiWkpWeo
2012-05-02T22:00:13 < Laurenceb_> that looks like troll bait for a certain troll on here
2012-05-02T22:08:42 <+Steffanx> Dongs weee neeeeed yooouu
2012-05-02T22:09:03 <+Steffanx> Now I remember why i never watch that Laurenceb_
2012-05-02T22:09:09 <+Steffanx> PURE CHAOS
2012-05-02T22:09:13 < Laurenceb_> lol
2012-05-02T22:09:19 < Laurenceb_> it gets trolled?
2012-05-02T22:09:26 < Laurenceb_> or just permanoobed?
2012-05-02T22:09:46 <+Steffanx> No, this time the truth is being told
2012-05-02T22:11:25 <+Steffanx> It's really annoying when people talk fast and slower and slow and fast and slow and fast and sssslloow and fst and slllllooow and fst
2012-05-02T22:20:05 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 256 seconds]
--- Day changed Thu May 03 2012
2012-05-03T00:04:03 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-03T00:04:03 -!- mode/##stm32 [+v Steffann] by ChanServ
2012-05-03T00:06:47 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 246 seconds]
2012-05-03T00:13:45 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32
2012-05-03T00:25:17 -!- ben1066 [~quassel@host109-152-57-231.range109-152.btcentralplus.com] has joined ##stm32
2012-05-03T00:26:44 -!- ben1066_ [~quassel@host86-169-139-158.range86-169.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-03T00:35:55  * Laurenceb_ rage
2012-05-03T00:36:14 < Laurenceb_> police chopper hovering over my house probing stuff with IR cam
2012-05-03T00:36:15 < Laurenceb_> wtf
2012-05-03T00:36:29 <+Steffann> yay
2012-05-03T00:36:31 < Laurenceb_> need a heated F U sign
2012-05-03T00:36:42 < Laurenceb_> on the roof
2012-05-03T00:37:47 < karlp> hehe
2012-05-03T00:37:55 < karlp> that'd be pretty cool actually.
2012-05-03T00:38:15 < karlp> I wonder how much power you'd need to burn to be clearly visible?
2012-05-03T00:38:39 < Tom_itx> probably not that much
2012-05-03T00:38:55 < karlp> would normal IR leds be in the right bandwidth? or are they too close to visible compared to hot body radiation?
2012-05-03T00:39:05 < Tom_itx> unless you wanted to blind them too
2012-05-03T00:39:22 < karlp> Tom_itx: couple of watts, or couple of hundred watts?
2012-05-03T00:40:01 < Tom_itx> you don't wanna melt the tar off the roof
2012-05-03T00:46:13 -!- peabody124 [~peabody12@128.249.96.21] has quit [Quit: peabody124]
2012-05-03T00:48:31 < Laurenceb_> ah gone now
2012-05-03T00:48:42 < Laurenceb_> felt like minority report for a moment there
2012-05-03T00:58:34 < karlp> huh, I have just come back to test where I was up to with my 802.15.4 code, and it seems it all works.
2012-05-03T00:58:40 < karlp> I thought it wasn't working when I left
2012-05-03T00:59:12 < karlp> or perhaps I just never set up the test environment properly.
2012-05-03T01:05:19 < Laurenceb_> ir leds wont work
2012-05-03T01:05:30 < Laurenceb_> thermal cameras are centered on 10 to 15um
2012-05-03T01:05:45 < Laurenceb_> leds are 700nm to 1um
2012-05-03T01:05:56 -!- Elledan [~jigoku_ai@s529c4932.adsl.wanadoo.nl] has joined ##stm32
2012-05-03T01:06:50 < emeb> Just spell it out with copper wire & run a few amps through it.
2012-05-03T01:10:16 -!- hackkitten [~jigoku_ai@s529c4932.adsl.wanadoo.nl] has quit [Ping timeout: 276 seconds]
2012-05-03T01:11:03 < Laurenceb_> my mum gave a police chopper the finger a while back and they lit her up with the spotlight :P
2012-05-03T01:11:15 <+Steffann> Yay
2012-05-03T01:11:31 <+Steffann> Only in America
2012-05-03T01:11:35 <+Steffann>  /america/england
2012-05-03T01:11:46 < Tom_itx> just before they looked her over with the ir?
2012-05-03T01:24:55 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit []
2012-05-03T01:26:23 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-03T01:27:51 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Ping timeout: 244 seconds]
2012-05-03T01:32:00 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32
2012-05-03T01:34:41 -!- metaxa [metaxa@members.bombshellz.net] has joined ##stm32
2012-05-03T01:36:23 -!- Laurenceb_ [~Laurence@host86-177-58-185.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-03T01:39:50 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds]
2012-05-03T01:40:27 -!- Evie [~null@205.233.35.25] has quit [Ping timeout: 245 seconds]
2012-05-03T01:41:22 -!- Evie [~null@205.233.35.26] has joined ##stm32
2012-05-03T01:48:29 < karlp> hey wow, everything works even easier than I remembered it.
2012-05-03T01:48:42 < karlp> gdbserver for netbeans is much happier now too
2012-05-03T02:00:58 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Read error: Connection reset by peer]
2012-05-03T02:07:24 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32
2012-05-03T03:35:52 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 245 seconds]
2012-05-03T03:35:56 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-03T03:35:59 -!- mode/##stm32 [+v Steffann] by ChanServ
2012-05-03T03:40:34 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 245 seconds]
2012-05-03T03:55:26 -!- izua [~izua@86.121.79.118] has joined ##stm32
2012-05-03T03:55:26 -!- izua [~izua@86.121.79.118] has quit [Changing host]
2012-05-03T03:55:26 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-03T03:55:28 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-03T04:52:02 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-03T05:05:25 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32
2012-05-03T05:05:28 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-03T05:08:38 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 252 seconds]
2012-05-03T05:36:15 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-03T05:36:16 -!- mode/##stm32 [+v Steffann] by ChanServ
2012-05-03T05:40:34 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 245 seconds]
2012-05-03T05:53:13 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-03T06:21:49 -!- cjbaird [~cjb@ppp121-45-175-149.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-03T07:36:33 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-03T07:36:36 -!- mode/##stm32 [+v Steffann] by ChanServ
2012-05-03T07:40:53 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds]
2012-05-03T08:03:48 < cjbaird> An update on the 6502 simulator I'm doing: it's actually now /correct/, thanks to fig-forth finding all the bugs... And its effectively simulating a 18MHz 6502. :D  (the fastest real 65Cxx chips do 14MHz..)
2012-05-03T08:04:09 < cjbaird> whee~
2012-05-03T08:17:38 -!- izua_ [~izua@unaffiliated/izua] has quit [Ping timeout: 240 seconds]
2012-05-03T08:29:27 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-03T08:29:30 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-03T08:54:15 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 244 seconds]
2012-05-03T08:57:33 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-03T09:06:09 -!- cjbaird [~cjb@ppp121-45-175-149.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-03T09:11:04 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32
2012-05-03T09:11:07 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-03T09:15:10 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 276 seconds]
2012-05-03T09:35:25 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer]
2012-05-03T09:49:33 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-03T09:55:49 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 248 seconds]
2012-05-03T09:56:36 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925075879.dsl.bell.ca] has joined ##stm32
2012-05-03T09:56:36 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925075879.dsl.bell.ca] has quit [Changing host]
2012-05-03T09:56:36 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-03T10:29:21 -!- Elledan is now known as hackkitten
2012-05-03T10:40:57 -!- izua_ [~izua@unaffiliated/izua] has quit [Ping timeout: 252 seconds]
2012-05-03T10:41:33 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer]
2012-05-03T10:41:58 -!- izua [izua@2a02:2f01:1017:f006::bc1a:a450] has joined ##stm32
2012-05-03T10:41:58 -!- izua [izua@2a02:2f01:1017:f006::bc1a:a450] has quit [Changing host]
2012-05-03T10:41:58 -!- izua [izua@unaffiliated/izua] has joined ##stm32
2012-05-03T10:42:01 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-03T11:17:06 -!- csamuelson [~Rious@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32
2012-05-03T11:18:46 -!- BrainDam- [BrainDamag@i.love.tiltshellz.org] has joined ##stm32
2012-05-03T11:21:34 -!- Netsplit *.net <-> *.split quits: BrainDamage, Rious
2012-05-03T11:21:38 -!- csamuelson is now known as Rious
2012-05-03T11:37:16 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-03T11:37:19 -!- mode/##stm32 [+v Steffann] by ChanServ
2012-05-03T11:41:27 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 252 seconds]
2012-05-03T11:45:04 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Remote host closed the connection]
2012-05-03T11:54:07 -!- izua [izua@unaffiliated/izua] has quit [Ping timeout: 264 seconds]
2012-05-03T12:03:03 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-03T12:03:14 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-03T12:07:53 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has joined ##stm32
2012-05-03T12:07:53 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has quit [Changing host]
2012-05-03T12:07:53 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32
2012-05-03T12:24:10 -!- Laurenceb_ [~Laurence@host86-177-58-185.range86-177.btcentralplus.com] has joined ##stm32
2012-05-03T12:38:53 < Tectu> awesome, make one ADC conv. -> hard or nmi fault :(
2012-05-03T12:39:31 <+Steffanx> Yay
2012-05-03T12:40:07 < Tectu> and not even DMA or interrupt ADC
2012-05-03T12:45:36 < zyp> you're doing something wrong
2012-05-03T12:46:04 < Tectu> thank you
2012-05-03T12:46:17 < zyp> glad I could be of help
2012-05-03T12:46:36 -!- izua [~izua@188.27.188.78] has joined ##stm32
2012-05-03T12:46:37 -!- izua [~izua@188.27.188.78] has quit [Changing host]
2012-05-03T12:46:37 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-03T12:46:38 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-03T12:46:44 <+Steffanx> zyp, go annoy your mother
2012-05-03T12:47:09 < Tectu> the guy who made my stm32 board gave some examples which do work with KEIL
2012-05-03T12:47:22 < Tectu> and when i do it under linux with arm-none-eabi, i bring most of them to work
2012-05-03T12:47:29 < Tectu> but this one is tricky
2012-05-03T12:48:17 < Tectu> http://pastebin.com/Ktrmazq8
2012-05-03T12:48:26 < Tectu> i also configured the GPIO for analog input
2012-05-03T12:48:49 < Tectu> then in main i just loop    if(ADC_GetFlagStatus(ADC1, ADC_FLAG_EOC)==SET)
2012-05-03T12:49:03 < Tectu> output the value over USART, and blink the LEDs then
2012-05-03T12:49:12 < Tectu> atm, LEDs blink once, and then never again
2012-05-03T12:50:05 < Thorn> does it make sense to have 2 activity LEDs for CAN (on TX and RX lines)? or is RX always active when TX is (unlike rs-485)?
2012-05-03T12:50:27 < Thorn> it should be, otherwise arbitration wouldn't work
2012-05-03T12:52:28 < Tectu> zyp, and here you go with my entire main:  http://pastebin.com/S1tR7j8y
2012-05-03T12:52:51 < zyp> can rx is always active
2012-05-03T12:53:11 < zyp> but different leds would make sense
2012-05-03T12:53:25 < Thorn> why?
2012-05-03T12:53:31 < Thorn> also I got CAN more or less working on stm32f103 (one board receives what another sends)
2012-05-03T12:53:41 < zyp> both leds will flash when you are sending and only the rx led will flash when you are receiving
2012-05-03T12:53:47 < Laurenceb_> you need to calibrate adc
2012-05-03T12:54:11 < zyp> Laurenceb_, not calibrating adc should not lead to a crash
2012-05-03T12:54:16 <+Steffanx> You can calibrate it, you don't have to :)
2012-05-03T12:54:29 < Thorn> right
2012-05-03T12:54:37 <+Steffanx> left
2012-05-03T12:54:40 < Laurenceb_> yeah
2012-05-03T12:54:47 < Laurenceb_> its something else
2012-05-03T12:55:06 < zyp> Tectu, got jtag/swd equipment?
2012-05-03T12:55:15 < Tectu> zyp, not really
2012-05-03T12:55:45 < zyp> you should really get something, then you'd get the error reason
2012-05-03T12:55:47 <+Steffanx> Not really is, yes and no :)
2012-05-03T12:56:25 < Tectu> zyp, guess i'll buy an stlink v2, they're only 20€
2012-05-03T12:57:00 < Laurenceb_> or a discovery board
2012-05-03T12:57:03 < Laurenceb_> cheaper
2012-05-03T12:57:15 < zyp> or a blackmagic probe, those are pretty nice
2012-05-03T12:57:23 <+Steffanx> price++
2012-05-03T12:57:28 <+Steffanx> costs
2012-05-03T12:57:34 -!- cjbaird [~cjb@ppp121-45-175-149.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-03T12:57:40 < Laurenceb_> bbl
2012-05-03T12:57:47 <+Steffanx> See ya
2012-05-03T12:57:52 < zyp> Steffanx, I'd rather have one blackmagic than five st-links
2012-05-03T12:58:11 <+Steffanx> Just because you don't need a gdb server?
2012-05-03T12:58:11 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 246 seconds]
2012-05-03T12:58:33 < zyp> no, because one good tool is worth more than five shitty
2012-05-03T12:58:46 <+Steffanx> The stlink isn't "shitty"
2012-05-03T12:58:58 < zyp> how is it not shitty?
2012-05-03T12:59:29 <+Steffanx> It does what it's made for
2012-05-03T12:59:53 -!- izua [~izua@188.26.166.156] has joined ##stm32
2012-05-03T12:59:53 -!- izua [~izua@188.26.166.156] has quit [Changing host]
2012-05-03T12:59:53 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-03T12:59:54 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-03T12:59:57 < karlp> +
2012-05-03T13:00:18 <+Steffanx> Until you are forced to use the less stable texane stuff :P
2012-05-03T13:00:31 < zyp> I can't speak about the closed source stuff, I haven't tried that
2012-05-03T13:00:41 < zyp> I'm talking about the reverse engineered support for the st-link
2012-05-03T13:01:28 <+Steffanx> Yes, but that's no official software, that doesn't count :)
2012-05-03T13:01:49 < karlp> blame texane for choosing a bad name.
2012-05-03T13:02:01 < zyp> I don't care about official software or not, I care about what I'm ending up using in practice
2012-05-03T13:02:02 -!- Laurenceb_ [~Laurence@host86-177-58-185.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-03T13:02:03 <+Steffanx> The stlink itself is a good tool
2012-05-03T13:02:09 < karlp> actually, it wasn't even him, it was the capn's missing link or something that came up with that awful name.
2012-05-03T13:02:48 < karlp> meh, texane/stlink works just fine for me now, I haven't had problems with it for a while.  I was happily using it as the gdb server for debugging in netbeans last night.
2012-05-03T13:02:59 < karlp> so much more comfortable than using gdb from the command line like I had been doing.
2012-05-03T13:03:14 < zyp> it worked «just fine» for me too
2012-05-03T13:03:27 <+Steffanx> I tried it a few times in eclipse, but it was awful slow when i opened the assembly listing ..
2012-05-03T13:04:49 < karlp> it's fine, I know it used to be shit and a lot of people burnt their fingers on it :)
2012-05-03T13:05:16 <+Steffanx> I'll see how it goes with the black magic probe
2012-05-03T13:05:33 <+Steffanx> It won't work in netbeans though. Netbeans is buggy
2012-05-03T13:05:42 < karlp> everything's buggy
2012-05-03T13:06:13 <+Steffanx> Yes, but most of the time it's "it willl work"-buggy
2012-05-03T13:06:19 < cjbaird> Not using gdb-mode in Emacs? Lamers.
2012-05-03T13:06:25 <+Steffanx> but this time it's "it won't work"-buggy
2012-05-03T13:06:26 < karlp> using emacs? lamers
2012-05-03T13:06:30 < zyp> my blackmagic has been pretty damn solid since I got it
2012-05-03T13:06:34 < karlp> cjbaird: you're one of those people who use forth aren'ðt you?
2012-05-03T13:06:40 <+Steffanx> Not true zyp
2012-05-03T13:06:47 <+Steffanx> Crappy os x 10.6 :P
2012-05-03T13:06:49 < zyp> Steffanx, sure it's true
2012-05-03T13:08:11 <+Steffanx> Oh, it seems the netbeans bugs are solved
2012-05-03T13:08:41 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 246 seconds]
2012-05-03T13:08:49 < zyp> isn't netbeans some java stuff?
2012-05-03T13:08:55 <+Steffanx> Yes it is
2012-05-03T13:09:00 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-03T13:09:03 <+Steffanx> I can't care about that
2012-05-03T13:09:36 < Thorn> I fucked up my can tx led. I connected the emitter of a transistor which drives it to 5V, but TX is driven by stm32 so it's 3.3v and the led is always on x_x
2012-05-03T13:09:38 < gsmcmullin> I think the only problem with netbeans is that the 'pause' doesn't work.
2012-05-03T13:09:46 <+Steffanx> Yeah, i see that one isn't solved yet
2012-05-03T13:09:46 < karlp> it's also a c/c++ ide,
2012-05-03T13:09:53 <+Steffanx> You should update your wiki though gsmcmullin :P
2012-05-03T13:09:57 < karlp> much like eclipse is "a java stuff"
2012-05-03T13:10:15 < gsmcmullin> I can't imagine that it works with texane/stlink either though.
2012-05-03T13:10:32 < karlp> gsmcmullin: hmm, I haven't tried pause, I normally set the breakpoints I want and let it hit them, I will try and remember to give it a go tonight
2012-05-03T13:11:05 < gsmcmullin> It does work, but you need to 'killall -INT arm-none-eabi-gdb' to interrupt.
2012-05-03T13:11:19 <+Steffanx> :)
2012-05-03T13:11:33 < karlp> yeah, that doesn't count as working :)
2012-05-03T13:12:12 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-03T13:12:54 -!- izua [~izua@188.26.167.218] has joined ##stm32
2012-05-03T13:12:54 -!- izua [~izua@188.26.167.218] has quit [Changing host]
2012-05-03T13:12:54 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-03T13:12:58 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-03T13:15:02 < cjbaird> karlp: I'M GLAD YOU ASKED! https://plus.google.com/106353937620710166166/posts/eZ6AgpxHVug
2012-05-03T13:18:22 -!- cjbaird [~cjb@ppp121-45-175-149.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-03T13:20:13 <+Steffanx> Glad you left :(
2012-05-03T13:20:56 < Tectu> what's the difference between SWD and JTag anyways?  SWD is 4 pin and JTAG 20, right?
2012-05-03T13:21:46 < zyp> haha, no
2012-05-03T13:21:48 < gsmcmullin> SWD is 2 signals, JTAG is 4.  There are many differences.
2012-05-03T13:22:28 < gsmcmullin> Sorry, JTAG is at least 4.
2012-05-03T13:22:56 < zyp> JTAG is a protocol made for something else, with the possibility to use it as a transport for debug information
2012-05-03T13:23:12 < zyp> SWD was written for cpu debugging from ground up
2012-05-03T13:23:19 < zyp> s/written/made/
2012-05-03T13:23:35 < Tectu> what is JTAG's main target / was JTAG's main target
2012-05-03T13:23:53 <+Steffanx> Testing/debugging hw ..
2012-05-03T13:23:54 < zyp> production testing
2012-05-03T13:24:18 < Tectu> so i got a discovery f1 board, it has that SWD thing, but my board do have 20pin JTAG connector, are the SWD lines also on that 20PIN Jtag?
2012-05-03T13:24:25 < zyp> yes
2012-05-03T13:24:39 < zyp> swd use a subset of the same pins as jtag
2012-05-03T13:24:59 < Tectu> ok
2012-05-03T13:25:08 < zyp> the 20 pin jtag connector is 9 grounds, 2 vccs and some unconnected pins aswell
2012-05-03T13:25:08 -!- cjbaird [~cjb@ppp121-45-175-149.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-03T13:25:08 < Tectu> so is it work to buy a 20€ st-link v2?
2012-05-03T13:25:32 < Tectu> ah, so when i do a PCB myself, i can only go with 4 pins, instead of 20?
2012-05-03T13:25:55 < zyp> something like that
2012-05-03T13:26:23 < Tectu> is JTAG 'better' than SWD for developping?
2012-05-03T13:26:41 < zyp> I prefer the 10-pin 1.27mm pitch «cortex debug connector»
2012-05-03T13:27:11 < zyp> it's small, standard and got everything you need
2012-05-03T13:27:35 < Tectu> but :(
2012-05-03T13:27:36 < zyp> and can be wired for swd only or swd+jtag depending on your needs
2012-05-03T13:27:52 < Tectu> so full jtag over 10 instead of 20 pins?
2012-05-03T13:28:10 < zyp> sure, you just throw away all the extra grounds
2012-05-03T13:28:39 < Tectu> do you have an stlinkv2=
2012-05-03T13:28:40 < Tectu> ?*
2012-05-03T13:28:56 < zyp> http://support.code-red-tech.com/CodeRedWiki/HardwareDebugConnections?action=AttachFile&do=get&target=20pin.png <- you see, here is the 20 pin connector
2012-05-03T13:29:17 < zyp> http://support.code-red-tech.com/CodeRedWiki/HardwareDebugConnections?action=AttachFile&do=get&target=10pin.png <- and here is the 10 pin
2012-05-03T13:29:34 < zyp> yellow signals are swd mode
2012-05-03T13:29:56 < Tectu> you can never have enought grounds
2012-05-03T13:30:00 < Tectu> (yes, i know why there are so many)
2012-05-03T13:30:20 < Tectu> what can you do with JTAG that you cannot do with SWD?
2012-05-03T13:30:28 < karlp> mutliple devices on a single chain
2012-05-03T13:31:14 < Tectu> that's handy.
2012-05-03T13:31:18 < karlp> so for instance, make one jtag connection, program and verify the cpu, the fpga, the cplds, the other fpga, and the other cpu
2012-05-03T13:31:27 < karlp> sure, if your board's big enough
2012-05-03T13:31:30 < zyp> not really, nobody does that in practice
2012-05-03T13:31:42 < karlp> sure they do.
2012-05-03T13:31:47 < Tectu> zyp, why not? it sounds very handy
2012-05-03T13:31:58 < zyp> because it's slow
2012-05-03T13:32:25 < karlp> (I just use swd, and have no plans to use jtag anytime int he future)
2012-05-03T13:32:37 < zyp> I'm working with embedded stuff, and every debug hardware here got a seperate jtag/trace connector for each SoC
2012-05-03T13:33:01 < Tectu> zyp, why?
2012-05-03T13:33:04 < Tectu> expensive
2012-05-03T13:33:05 < Tectu> ?
2012-05-03T13:33:13 < karlp> jtag is the same speed regardless of whether you've got one device or many
2012-05-03T13:33:28 < karlp> unless you're talking about actually talking to multiple devices at the samet ime
2012-05-03T13:33:52 < zyp> karlp, it's never faster than the slowest device in the chain
2012-05-03T13:34:19 < zyp> and then you have dedicated signals like resets
2012-05-03T13:34:26 < zyp> that are not shared between SoCs
2012-05-03T13:34:32 < Tectu> what's SoC?
2012-05-03T13:34:56 < zyp> system on chip, basicly cpu and peripherals in a single chip
2012-05-03T13:35:04 < Tectu> ah, yeah, have heard that before
2012-05-03T13:35:10 < zyp> I'd say cpu, but some chips got several cpus :p
2012-05-03T13:35:20 < Tectu> ;)
2012-05-03T13:35:26 < Tectu> i only know the propeller chips from parallax
2012-05-03T13:35:32 < Tectu> but well, that is some kind of special stuff
2012-05-03T13:36:19 < zyp> I'm working with smartphone stuff, so shit here is littered with cpus
2012-05-03T13:38:17 < zyp> I tried counting arm cores in a typical «dual core cpu» smart phone reference design here
2012-05-03T13:38:17 < Tectu> well
2012-05-03T13:38:20 < zyp> I got to 7
2012-05-03T13:38:23 < Tectu> afaik Samsung S3 got 4 CPUs?
2012-05-03T13:38:31 < Tectu> wait, what?
2012-05-03T13:38:35 < Tectu> 7 cores in one CPU?
2012-05-03T13:38:43 < zyp> no, in one phone
2012-05-03T13:38:47 < Tectu> wtf?
2012-05-03T13:38:54 < Tectu> what do you do with 7 CPUs
2012-05-03T13:38:58 < Tectu> in a PHONE
2012-05-03T13:38:58 < zyp> :)
2012-05-03T13:39:37 < Tectu> what company, when i might ask?
2012-05-03T13:39:47 < zyp> I work for ST-Ericsson
2012-05-03T13:40:06 < Tectu> is that Sony-Ericsson?
2012-05-03T13:41:10 < zyp> no
2012-05-03T13:42:03 < karlp> you're keeping your job zyp?
2012-05-03T13:42:29 < Tectu> karlp, what's that for a question?
2012-05-03T13:42:37 < karlp> a friend is at mentor in grenoble, he's getting more work as some of the jobs from st-e go back to st
2012-05-03T13:42:46 < zyp> karlp, yep, norwegian division weren't affected
2012-05-03T13:42:48 < karlp> Tectu: st-e just announced a lot of layoffs
2012-05-03T13:42:54 < karlp> ahh, didn't know where you were.
2012-05-03T13:46:13 < Tectu> zyp, well, but is Sony-Ericsson a brand or something of ST-E or don't they have anything in common?
2012-05-03T13:46:30 < zyp> Sony-Ericsson is a subsidiary of Sony and Ericsson
2012-05-03T13:46:39 < zyp> ST-Ericcson is a subsidiary of ST and Ericsson
2012-05-03T13:46:44 < karlp> hehe
2012-05-03T13:46:55 < karlp> tectu: what channel are you in?
2012-05-03T13:47:35 < zyp> so yes, I'm kind of working for ST :p
2012-05-03T13:48:00 < Tectu> karlp, what do you mean? o0
2012-05-03T13:48:16 < Tectu> zyp, nice :)
2012-05-03T13:50:36 < Tectu> karlp, ah, i understand, sorry.
2012-05-03T13:52:07 < karlp> no sweat :)
2012-05-03T13:53:18 < zyp> Tectu, anyway, consider this: any hardware that requires firmware (except HDL stuff) is executing that code, so that means it has a cpu
2012-05-03T13:53:31 < zyp> at least one cpu, to be specific
2012-05-03T13:53:42 < Tectu> ah, i see
2012-05-03T13:53:45 < Tectu> what's HDL? >.<
2012-05-03T13:53:55 < Tectu> sorry guys, but i guess you see that i am very new to embedded stuff
2012-05-03T13:54:02 < Tectu> just did a few things with AVRs before :/
2012-05-03T13:54:06 < zyp> think FPGA stuff
2012-05-03T13:54:13 < zyp> if you don't know what that means, just ignore it
2012-05-03T13:54:24 < Tectu> i know VHDL
2012-05-03T13:55:20 < zyp> exactly
2012-05-03T13:55:31 < zyp> VHDL is a HDL
2012-05-03T13:55:44 < zyp> which also results in some kind of firmware that you load on a FPGA
2012-05-03T13:55:57 < zyp> but that's not relevant for normal hardware
2012-05-03T13:56:32 < zyp> so, consider this: http://www.ti.com/general/docs/wtbu/wtbuproductcontent.tsp?templateId=6123&navigationId=12843&contentId=53243
2012-05-03T13:56:35 < zyp> OMAP4
2012-05-03T13:56:45 < zyp> it's a standard SoC used in modern smartphones
2012-05-03T13:56:54 < zyp> it's used in the galaxy nexus among other stuff
2012-05-03T13:57:04 < Tectu> know OMAP4 from beagle board
2012-05-03T13:57:14 < Tectu> and probably Nokia N900
2012-05-03T13:57:16 < zyp> it's regarded a dual core SoC, since it contains two cortex-A9-cores
2012-05-03T13:57:33 < zyp> beagleboard is OMAP3
2012-05-03T13:57:37 < zyp> pandaboard is OMAP4
2012-05-03T13:57:50 < zyp> so, yeah
2012-05-03T13:58:16 < Tectu> sorry.
2012-05-03T13:58:17 < zyp> the thing is that in addition to the two A9-cores, OMAP4 also contains two cortex-M3 cores
2012-05-03T13:59:33 < Tectu> okay
2012-05-03T13:59:42 < zyp> and then smartphones also have a modem running the GSM stack, a gps module running the gps stack, and so on
2012-05-03T14:00:13 < Tectu> so you got a shit load of CPUs
2012-05-03T14:00:19 < zyp> exactly
2012-05-03T14:00:31 < karlp> all of them sucking power!
2012-05-03T14:00:40 < karlp> burn baby burn, disco inferno
2012-05-03T14:02:14 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-03T14:02:20 < Tectu> might someone tell me if there's something wrong?  http://pastebin.com/VJgV5HKT
2012-05-03T14:02:51 < zyp> does it work? if not, something is wrong.
2012-05-03T14:03:18 < Tectu> thanks, sir.
2012-05-03T14:03:21 < Tectu> USAR1 works
2012-05-03T14:03:25 < Tectu> USART2 does not do any output
2012-05-03T14:03:35 < karlp> RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA | RCC_APB1Periph_USART2
2012-05-03T14:03:44 < karlp> there's a single character there that says why it doesn't.
2012-05-03T14:03:53 < Tectu> and the datasheet to my board cleary tells me that   USART2_RX is PA3    and USART2_TX is PA2
2012-05-03T14:03:57 < karlp> and it's an error I made many times too.
2012-05-03T14:04:00 < karlp> so don't feel bad.
2012-05-03T14:04:05 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-03T14:04:07 < karlp> when in doubt, turn on moah clocks!
2012-05-03T14:04:14 < karlp> also, the right clocks.
2012-05-03T14:04:22 < Tectu> karlp, so, tell me
2012-05-03T14:04:29 < zyp> APB1 vs APB2
2012-05-03T14:04:38 < zyp> weren't you talking about this the other day?
2012-05-03T14:04:54 < Tectu> zyp, i was ;-)
2012-05-03T14:04:59 < Tectu> but then i had to solder some stuff
2012-05-03T14:05:02 < karlp> yet you FAILED TO LEARN!
2012-05-03T14:05:04 < karlp> SHAME!
2012-05-03T14:06:38 < Tectu> karlp, okay, i am on FIgure1 on the reference manual, page 39
2012-05-03T14:06:52 < Tectu> USART2 is on APB1, USART1 on APB2, right?
2012-05-03T14:07:11 < karlp> just look at those provided definitions.
2012-05-03T14:07:24 < karlp> asking apb1 to turn on an apb2 periph, or vice versa is never going to work.
2012-05-03T14:07:45 < karlp> if you _ever_ have RCC_APB2XXX(APB1) you're doing it wrong.
2012-05-03T14:08:07 < karlp> you'll turn on _something_, but it won't be what you expected.
2012-05-03T14:08:12 < zyp> and I still just smile and think about my nice abstraction :)
2012-05-03T14:08:20 < Tectu> karlp, wtf
2012-05-03T14:09:11 < Tectu> karlp, AAAH!!!!!
2012-05-03T14:09:14 < Tectu> :D:D:D
2012-05-03T14:09:16 < Tectu> so stupid -.-
2012-05-03T14:09:44 < Tectu> RCC_APB1PeriphClockCmd(RCC_APB1Periph_USART2, ENABLE);
2012-05-03T14:09:48 < karlp> now don't do it again :)
2012-05-03T14:09:54 < Tectu> never sir, i promise :)
2012-05-03T14:10:22 < karlp> (you may still have other problems in your code)
2012-05-03T14:11:18 < zyp> don't we all do? :p
2012-05-03T14:11:32 < Tectu> karlp, well, at least i get USART2 to output something now ;)
2012-05-03T14:11:44 < Tectu> but are you tring to point me to something?
2012-05-03T14:12:14 < karlp> no, I was just saying I didn't look at the rest of it
2012-05-03T14:12:26 < karlp> so not to complain if it still didn't work :)
2012-05-03T14:12:39 < Tectu> it works
2012-05-03T14:12:40 < karlp> zyp: many many many problems :)
2012-05-03T14:12:41 < Tectu> thank you very much
2012-05-03T14:12:49 < Tectu> good to see that i am not the only stupid person on the planet
2012-05-03T14:13:02 < karlp> being stupid is not a crim, so you're free to go :)
2012-05-03T14:15:42 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 252 seconds]
2012-05-03T14:17:20 < Tectu> well, wasn't that hard
2012-05-03T14:17:37 < Tectu> karlp, they should make a macro that gives compile error when you asign APB1 to APB2 command
2012-05-03T14:18:22 < karlp> possibly.
2012-05-03T14:18:42 < karlp> you could look at zyps solution posted here a few days ago, or you could look at libopencm3,
2012-05-03T14:18:53 < zyp> my solution only applies for C++
2012-05-03T14:19:06 < karlp> which aims to replace all the st stdperiph lib (and for other vendors) with some "cleaner" code
2012-05-03T14:19:29 < zyp> libopencm3 looks decent
2012-05-03T14:19:46 < karlp> it's getting better, and I'm more of a fan now that it's lgpl
2012-05-03T14:20:30 -!- izua [~izua@79.115.171.167] has joined ##stm32
2012-05-03T14:20:30 -!- izua [~izua@79.115.171.167] has quit [Changing host]
2012-05-03T14:20:30 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-03T14:20:33 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-03T14:25:41 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 246 seconds]
2012-05-03T14:28:06 < Laurenceb> im guessing libopencm3 has sane linker scripts and startup code :P
2012-05-03T14:28:27 < zyp> saner than yours
2012-05-03T14:28:31 < Laurenceb> exactly
2012-05-03T14:28:58 -!- jon1012 is now known as jon1012-eating
2012-05-03T14:29:55 < Laurenceb> http://www.libopencm3.org/wiki/Status
2012-05-03T14:29:57 < Laurenceb> hmmm
2012-05-03T14:31:36 < karlp> more green than it used to be :)
2012-05-03T14:32:05 < Laurenceb> turns out they found a body in the road down my street last night
2012-05-03T14:32:15 < Laurenceb> hence the chopper
2012-05-03T14:32:16 < zyp> who did you kill now?
2012-05-03T14:32:20 < Laurenceb> lol
2012-05-03T14:32:57 < Laurenceb> looks like maybe suicide
2012-05-03T14:33:21 < Laurenceb> BUT THATS WHAT I WANT THEM TO THINK!!!
2012-05-03T15:10:43 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 276 seconds]
2012-05-03T15:12:34 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-03T15:15:12 < zyp> oh hi
2012-05-03T15:15:19 < Laurenceb> oh i found you a video
2012-05-03T15:15:52 < Laurenceb> http://www.youtube.com/watch?feature=player_embedded&v=znOMiWkpWeo
2012-05-03T15:16:21 < Laurenceb> lolz
2012-05-03T15:16:46 < Laurenceb> lol i thought youd say something like that
2012-05-03T15:21:14 < cjbaird> Adafruit just need to hide Suicide Girls and be done with it.
2012-05-03T15:21:19 < cjbaird> *hire
2012-05-03T15:28:52 < karlp> this week on, "ask a suicide girl" we're focussing on questions related to how best to ensure that my piercings don't cause interference with my ADC readings
2012-05-03T15:29:13 < Laurenceb> lmao
2012-05-03T15:29:37 < cjbaird> What dongs' webshop needs is a female blogger.
2012-05-03T15:30:14 < Laurenceb> she could just wear fewer clothes if sales go down
2012-05-03T15:31:25 < karlp> that's no good for business.
2012-05-03T15:31:29 < karlp> less clothes as sales go up!
2012-05-03T15:32:16 < cjbaird> highschool uniform would work too.
2012-05-03T15:32:55 < karlp> You've been a bad bad boy! You tried to initialize an APB2 periph with the APB1 macros, I think you're going to have to come to detention this afternoon with me.
2012-05-03T15:33:07 < cjbaird> super-desperate for sales? swimsuit.
2012-05-03T15:33:25 < karlp> godongsy ?
2012-05-03T15:37:50 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Remote host closed the connection]
2012-05-03T15:42:15 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-03T15:44:08 < Tectu> then i have 4x uint8_t    do they need the place of 4x 4bytes, or are they put together in 1x 4 bytes?
2012-05-03T15:44:22 < Tectu> i know that from x86...   __attribute((PACKED));
2012-05-03T15:44:26 < karlp> a) you shouldn't really care.
2012-05-03T15:44:38 < karlp> b) look at the disassembly and check
2012-05-03T15:45:27 < karlp> c) packed is an option, but it's memory vs cycles tradeoffs, and you should _measure_ that before you make any serious decisions
2012-05-03T15:46:11 <+Steffanx> It doesn't have special instructions for 8bit stuff only?
2012-05-03T15:46:40 < karlp> why should it? who the hell would want 8 bits when they can have 32 :)
2012-05-03T15:47:06 <+Steffanx> Who want 32 when only 8 is necessary?
2012-05-03T15:48:06 < zyp> IIRC ARM is fast at stuff like that, so aligning 8-bit values to 32-bit boundaries is pointless
2012-05-03T15:50:18 < Tectu> zyp, thanks for the answer :)
2012-05-03T15:50:30 < Tectu> does it make sense to make only uint8_t then i only need 0-99 ?
2012-05-03T15:50:36 < Tectu> or should i always just go with uint32_t
2012-05-03T15:50:41 < Tectu> it will be slower?
2012-05-03T15:50:46 < karlp> "int" unless you need something explicitly ranged
2012-05-03T15:50:57 < karlp> or int_least_8
2012-05-03T15:51:00 < zyp> I'd go with uint8_t
2012-05-03T15:51:19 < Tectu> thanks zyp
2012-05-03T15:51:37 < Tectu> zyp, is the access faster?
2012-05-03T15:52:08 < Laurenceb> it saves ram
2012-05-03T15:52:19 < zyp> likely it doesn't affect access time
2012-05-03T15:58:22 < Tectu> ok
2012-05-03T15:58:23 < Tectu> thanks
2012-05-03T16:02:33 -!- KongfuPanda [~KongfuPan@unaffiliated/kongfupanda] has joined ##stm32
2012-05-03T16:08:34 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 265 seconds]
2012-05-03T16:16:57 < hackkitten> hi KongfuPanda o/
2012-05-03T16:17:48 < KongfuPanda> hola hackgatto !
2012-05-03T16:19:57 < hackkitten> :3
2012-05-03T16:20:42 -!- jon1012-eating is now known as jon1012
2012-05-03T16:21:35 < cjbaird> ..without inviting dongs
2012-05-03T16:21:50 < hackkitten> poor dongs, missing out on the yiffing :<
2012-05-03T16:22:18  * hackkitten only sees the 'yiff me' sign on dong's back
2012-05-03T16:23:35 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-03T16:24:28 < cjbaird> He must remain true to his waifu..
2012-05-03T16:24:34 <+Steffanx> dongs, Trollville is the other way
2012-05-03T16:28:36 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 256 seconds]
2012-05-03T16:29:37 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-03T16:34:40 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds]
2012-05-03T16:57:57 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-03T17:09:02 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-03T17:21:43 -!- KongfuPanda [~KongfuPan@unaffiliated/kongfupanda] has quit [Read error: Connection reset by peer]
2012-05-03T17:22:20 -!- KongfuPanda [~KongfuPan@unaffiliated/kongfupanda] has joined ##stm32
2012-05-03T17:36:23 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-03T17:41:41 -!- KongfuPanda [~KongfuPan@unaffiliated/kongfupanda] has quit [Ping timeout: 246 seconds]
2012-05-03T18:00:05 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-03T18:56:01 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-03T19:03:46 < ratatata> nu
2012-05-03T19:04:49 < jon1012> buck
2012-05-03T19:05:05 < zyp> boost
2012-05-03T19:06:08 < Laurenceb> sepic
2012-05-03T19:06:17 < hackkitten> mew?
2012-05-03T19:11:07 < jon1012> lol
2012-05-03T19:12:46 <+Steffanx> :3
2012-05-03T19:13:02  * karlp purrs
2012-05-03T19:13:25 <+Steffanx> :P
2012-05-03T19:17:26 < ratatata> Steffanx: nu
2012-05-03T19:17:32 <+Steffanx> :)
2012-05-03T19:20:32 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-03T19:25:49 < Thorn> ^%#$*#*^*
2012-05-03T19:26:11 < jon1012> I can haz cheezburger ?
2012-05-03T19:26:50 < Tectu> no!
2012-05-03T19:26:52 < Thorn> CAN_Receive() removes a message from hardware FIFO. xQueueSendFromISR() returns an error if queue is full. problem: how do I avoid removing a message from the FIFO if queue is full?
2012-05-03T19:26:55 < Tectu> you can haz LPC
2012-05-03T19:27:28 < Thorn> uxQueueMessagesWaiting() hangs the interrupt handler
2012-05-03T19:29:06 < Thorn> (solution: copy the message manually, then CAN_FIFORelease())
2012-05-03T19:29:48 < Thorn> (CAN_FIFORelease() if xQueueSendFromISR() returns "ok")
2012-05-03T19:32:28 < karlp> what, did you script sending that link to all channels?
2012-05-03T19:40:25 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection]
2012-05-03T19:47:16 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-03T19:55:45 <+Steffanx> Hmpf. laser
2012-05-03T19:55:48 <+Steffanx> pretty useless
2012-05-03T20:03:14 < cjbaird> The price of ethernet-over-power needs to crash..
2012-05-03T20:03:36 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Quit: Quitte]
2012-05-03T20:03:41 -!- avernos [~avernos@unaffiliated/avernos] has quit [Read error: No route to host]
2012-05-03T20:03:43 < Thorn> is there power-over-ethernet-over-power?
2012-05-03T20:04:15 < cjbaird> It's called diving by zero. don't do it.
2012-05-03T20:05:20 <+Steffanx> They should ban it
2012-05-03T20:05:28 <+Steffanx> ethernet-over-power ..
2012-05-03T20:05:53 < Thorn> is it normal for a rs-485 driver to not have a receiver enable input?
2012-05-03T20:08:21 < karlp> maybe.
2012-05-03T20:08:29 < karlp> some of them have a single pin that toggles them,
2012-05-03T20:08:42 < karlp> sometimes they have separate pins, and you normally wire them together, so if one's on, the other's off
2012-05-03T20:08:59 < karlp> some people use separate A/B lines for tx and rx too,
2012-05-03T20:11:59 < Thorn> I'm looking at a FT4232 datasheet, a ts-485 example, it shows a driver which as no such pin at all, and they talk about ORing rx with tx enable
2012-05-03T20:12:13 < Thorn> *rs-485
2012-05-03T20:12:19 < Thorn> *has
2012-05-03T20:13:32 < TitanMKD> Hi
2012-05-03T20:13:35 < TitanMKD> anyone tested the STM32F415RG
2012-05-03T20:13:43 < TitanMKD> it's LQFP64 with Crypto Hash
2012-05-03T20:13:56 < TitanMKD> I will like to test it on a new Board i'm building
2012-05-03T20:14:21 <+Steffanx> pass
2012-05-03T20:14:30 < karlp> there's some odd tricks people pull with trying to automatically turn one way off based on seeing output on the other way
2012-05-03T20:14:32 < TitanMKD> If anyone know how to have some samples for test purpose
2012-05-03T20:14:39 < karlp> you can also jsust get a different transceiver chip
2012-05-03T20:14:53 <+Steffanx> Dont all F4's have that crypto peripheral TitanMKD ?
2012-05-03T20:15:04 < karlp> Steffanx: nope
2012-05-03T20:15:10 < TitanMKD> Steffanx no in fact only Fx15
2012-05-03T20:15:16 < TitanMKD> i just discovered it ;)
2012-05-03T20:15:28 < TitanMKD> it's not available on STM32F4 Discovery
2012-05-03T20:15:36 <+Steffanx> I see
2012-05-03T20:15:46 < Thorn> I've only used adm485 and adm3485, they both have separate rx and tx enables, one of them inverted
2012-05-03T20:17:02 < karlp> yeah, you can go and look at TI's catalog, they have about a dozen different 485 transceivers, differing mostly in the configuration of those pins :)
2012-05-03T20:17:14 < karlp> and also drive load, and slew time
2012-05-03T20:17:32 <+Steffanx> TitanMKD the peripheral lib has examples
2012-05-03T20:17:52 < TitanMKD> Steffanx yes I have already used lot of peripherals on it
2012-05-03T20:18:06 < TitanMKD> Steffanx it's the same stuff as my STM32F4 Discovery
2012-05-03T20:18:37 <+Steffanx> The CRYP examples are for the 2xx though
2012-05-03T20:19:23 < TitanMKD> anyway i read the datasheet and crypto core is really easi to use
2012-05-03T20:19:45 < TitanMKD> like the True Random Generator
2012-05-03T20:19:57 <+Steffanx> The 417 has it too btw TitanMKD :P
2012-05-03T20:20:09 < TitanMKD> yes
2012-05-03T20:20:15 < TitanMKD> all 41x in fact
2012-05-03T20:20:20 < TitanMKD> but not 40x
2012-05-03T20:20:33 < TitanMKD> we have 407 on STMF4 Discovery
2012-05-03T20:20:38 < karlp> the crypto stuff on the 4 are the same as for the f2,
2012-05-03T20:20:46 < TitanMKD> karlp just faster
2012-05-03T20:20:58 < karlp> yeah, but the examples will be basically the same
2012-05-03T20:21:04 < TitanMKD> yes i think too
2012-05-03T20:21:59 < TitanMKD> the only problem of STM32F4 is the price why it's 12US$ !!!
2012-05-03T20:22:02 -!- cjbaird [~cjb@ppp121-45-175-149.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-03T20:22:10 < TitanMKD> for 2US$ more you have the Discovery board !!
2012-05-03T20:22:41 < Thorn> that's not much at all. I'm pretty sure many places have them for a lot more
2012-05-03T20:22:42 < TitanMKD> even if i buy 100 it's 8.9US$ !!
2012-05-03T20:23:12 < TitanMKD> NXP 43xx are 7US$ !!
2012-05-03T20:23:22 < TitanMKD> and it's dual core with more features
2012-05-03T20:23:26 <+Steffanx> 43xx isn't available :P
2012-05-03T20:23:32 < TitanMKD> except there's no Flash
2012-05-03T20:23:37 < TitanMKD> it's available at DigiKey
2012-05-03T20:23:55 <+Steffanx> Yes, only the 'useless'  version
2012-05-03T20:24:57 < TitanMKD> with QSPI it's good ;)
2012-05-03T20:25:14 < TitanMKD> but yes i will prefer version with 1MB integrated flash
2012-05-03T20:25:21 <+Steffanx> And what kind of extra features is has?
2012-05-03T20:26:08 < TitanMKD> tons ;)
2012-05-03T20:26:21 < TitanMKD> like the amazing SCT and SQGPIO
2012-05-03T20:26:23 < TitanMKD> SGPIO
2012-05-03T20:26:56 < TitanMKD> and the Dual Core ARM M4+ARM M0 @ 204MHz
2012-05-03T20:27:03 < TitanMKD> and also SDRAM controller ;)
2012-05-03T20:27:26 <+Steffanx> ' tons'  :P
2012-05-03T20:27:39 < TitanMKD> the only bad stuff on it it's the ADC which is 400 or 500Ksps compared to STM32F4 ADC up to 7.4Mhz ;)
2012-05-03T20:27:56 < TitanMKD> and the best for NXP
2012-05-03T20:28:06 < TitanMKD> the HighSpeed USB2.0 without ULPI !!!
2012-05-03T20:28:29 < TitanMKD> it's why it's a must have
2012-05-03T20:28:37 <+Steffanx> And like always with NXP, you have to wait at least 3 years to get your hands on one :P
2012-05-03T20:28:57 < TitanMKD> yes it's a bit less available than STM32F4 ;)
2012-05-03T20:29:11 <+Steffanx> without ULPI ?!
2012-05-03T20:29:23 <+Steffanx> "..., on-chip full-speed PHY and ULPI interface to external high-speed PHY"
2012-05-03T20:29:32 < TitanMKD> Yes without ULPI you just connect USBD+ & D- and power ;)
2012-05-03T20:29:55 <+Steffanx> oh, a missing square
2012-05-03T20:29:57 < TitanMKD> LPC43xx have USB 2.0 HighSpeed integrated
2012-05-03T20:30:41 < TitanMKD> One High-speed USB 2.0 Host/Device/OTG interface with DMA support and
2012-05-03T20:30:41 < TitanMKD> on-chip high-speed PHY.
2012-05-03T20:31:06 <+Steffanx> Yeah, their "Features list" misses a orange square :P
2012-05-03T20:31:10 < TitanMKD> on the 2nd USB port it's FullSpeed Integrated or HighSpeed with ULPI
2012-05-03T20:31:22 <+Steffanx> Yes yes :)
2012-05-03T20:31:50 < TitanMKD> if ST will give me such feature i will keep STM32F4 ;)
2012-05-03T20:31:59 < TitanMKD> because i really like it
2012-05-03T20:32:36 < TitanMKD> anyway i still plan to use the STM32F4 LQFP64 for my NFC board to have an autonomous board
2012-05-03T20:32:57 < TitanMKD> IF anyone is interested I will buy a first batch of 10 PCB for test purpose
2012-05-03T20:34:25 <+Steffanx> The only thing I don't like about nxp is their datasheets
2012-05-03T20:35:18 <+Steffanx> *are
2012-05-03T20:36:21 < Thorn> btw it appears that you can't use can and usb simultaneously in stm32f103
2012-05-03T20:36:33 < Thorn> which is crappy
2012-05-03T20:38:02 <+Steffanx> http://www.naffets.nl/share/yay-20120503-193749.png YAY
2012-05-03T20:38:08 <+Steffanx> Thanks for the info xp
2012-05-03T20:38:10 <+Steffanx> nxp
2012-05-03T20:38:31 < TitanMKD> hehe
2012-05-03T20:42:30 <+Steffanx> Oh, nice the lpc43x0 has a built-in usb api ...
2012-05-03T20:42:42 <+Steffanx> or
2012-05-03T20:42:50 <+Steffanx> probably not built-in
2012-05-03T20:43:30 <+Steffanx> boot ROM so probably built-in :)
2012-05-03T20:43:48 <+Steffanx> (don't read what i just said.. i talk to myself)
2012-05-03T20:45:56 < karlp> Steffanx: nxp licensed lufa from abcminiuser
2012-05-03T20:46:08 < karlp> and yeah,it's a rom block,
2012-05-03T20:46:21 <+Steffanx> Lufa in the rom block.. how nice :D
2012-05-03T20:46:44 <+Steffanx> I know they licensed lufa, but not that that's the stuff in the boot rom
2012-05-03T20:46:46 < karlp> it's meant to be fairly neat, though abcminiuser said it deviated a fair bit from lufa in the end, so he's not entirely sure how portable avr-usb apps would be.
2012-05-03T20:47:22 < karlp> homethyme!
2012-05-03T20:48:10 <+Steffanx> For sure
2012-05-03T20:50:12 < TitanMKD> Steffanx LPC USB Stack is just very cool
2012-05-03T20:50:25 <+Steffanx> LUFA is, yes :P
2012-05-03T20:50:26 < TitanMKD> Steffanx ST is very far behind about USB Stack
2012-05-03T20:50:39 < TitanMKD> Yes it's based on LUFA and I like it very much
2012-05-03T20:51:12 <+Steffanx> No one did a port of lufa to STM32 yet i guess :P
2012-05-03T20:51:54 < TitanMKD> nop
2012-05-03T20:52:10 < TitanMKD> In fact i use Usart with FT2232H ;)
2012-05-03T20:52:33 < TitanMKD> But soon Chibios will have support of USB for STM32F4
2012-05-03T21:05:15 -!- peabody124_ [~peabody12@128.249.96.21] has joined ##stm32
2012-05-03T21:08:08 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit []
2012-05-03T21:09:31 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 276 seconds]
2012-05-03T21:09:31 -!- peabody124_ is now known as peabody124
2012-05-03T21:12:02 <+Steffanx> Yes, this SGPIO is pretty neat TitanMKD :)
2012-05-03T21:13:44 < TitanMKD> yes it's just a must have ;)
2012-05-03T21:14:50 < zyp> usb on stm32f4 is not that hard
2012-05-03T21:14:56 < zyp> I have it working on my board
2012-05-03T21:15:19 <+Steffanx> working or more or less functional?
2012-05-03T21:15:25 < zyp> working
2012-05-03T21:15:26 < zyp> :p
2012-05-03T21:16:08 < Thorn> it has very few endpoints iirc?
2012-05-03T21:16:17 <+Steffanx> Ready for doing some CDC zyp ?
2012-05-03T21:16:36 < zyp> 4 in each direction on the FS periph and 6 on the HS periph
2012-05-03T21:16:37 < zyp> IIRC
2012-05-03T21:17:07 < Thorn> including default control endpoint?
2012-05-03T21:17:13 < TitanMKD> zyp me too I have a USB sample working but I hate the code behind to port it on chibios ;)
2012-05-03T21:17:15 < zyp> Steffanx, no, I'm not really interested in cdc
2012-05-03T21:17:21 <+Steffanx> hid?
2012-05-03T21:17:32 < zyp> no
2012-05-03T21:17:41 <+Steffanx> mass storage stuff?
2012-05-03T21:17:54 < zyp> I don't have any standard class drivers
2012-05-03T21:17:59 <+Steffanx> Hmof
2012-05-03T21:18:07 <+Steffanx> Then it doesn't work :P
2012-05-03T21:18:14 < zyp> I want a simple frame transport, so I'm perfectly happy with plain bulk
2012-05-03T21:19:45 < zyp> class drivers are a higher layer in the stack anyway, I'm currently more concerned about having the lower layer work properly
2012-05-03T21:42:14 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-03T21:49:13 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-03T21:58:36 -!- Laurenceb_ [~Laurence@host86-177-58-185.range86-177.btcentralplus.com] has joined ##stm32
2012-05-03T22:15:25 < Laurenceb_> http://www.electrooptical.net/www/frontends/frontends.pdf
2012-05-03T22:16:06 < karlp> man, I don't care hey.
2012-05-03T22:16:10 < karlp> what are you using these for?
2012-05-03T22:17:47 <+Steffanx> I think he doesn't care you don't care
2012-05-03T22:17:56 < Laurenceb_> lol
2012-05-03T22:17:57 <+Steffanx> And I don't care that he doesn't care that you don't care
2012-05-03T22:18:05 < Laurenceb_> yo dawg
2012-05-03T22:18:06 <+Steffanx> I don't care at all :)
2012-05-03T22:20:06 < emeb> meta-recursive dontcaringness
2012-05-03T22:21:19 < karlp> right, yeah, so pause in netbeans doesn't work for me either.
2012-05-03T22:22:40 <+Steffanx> killall -INT etc. :P
2012-05-03T22:23:01 < karlp> yeah, I was just trying it out to see if it worked
2012-05-03T22:23:16 < karlp> seems to actually kill the netbeans debugger session too.
2012-05-03T22:23:28 <+Steffanx> hrmf
2012-05-03T22:24:20 < karlp> I wonder if that's a bug in the gdbserver plugin for netbeans?
2012-05-03T22:24:29 < Laurenceb_> probably
2012-05-03T22:24:33 < karlp> stlink's debug doesn't show it even receiving a command
2012-05-03T22:24:40 < karlp> and gsmcmullin said it happens with the blackmagic too
2012-05-03T22:24:51 < Laurenceb_> i cant make nemiver work with stlink :/
2012-05-03T22:25:06 < karlp> do you want a screencast on using netbeans with stlink?
2012-05-03T22:25:21 < karlp> or is it better to have a set of screenshots?
2012-05-03T22:26:05 < karlp> hmm, let's just do some screenshots
2012-05-03T22:26:41 < karlp> god texane/stlink needs a better name
2012-05-03T22:26:54 <+Steffanx> Just call it texane :)
2012-05-03T22:26:58 <+Steffanx> And yours is karlp
2012-05-03T22:27:01 < karlp> still, it's number 3 result on google.
2012-05-03T22:27:05 < karlp> mine is texane's right now.
2012-05-03T22:27:14 < karlp> he's stopped adding new stuff that's broken,
2012-05-03T22:27:18 <+Steffanx> So karlp = texane atm :)
2012-05-03T22:27:28 < karlp> and I don't currently have anything new that hasn't gone upstream
2012-05-03T22:27:38 < emeb> anyone else have problems w/ stlink not shutting down DMA while flashing?
2012-05-03T22:27:50 < karlp> yeah, I saw your bug, it's groovy :)
2012-05-03T22:28:11 < Laurenceb_> emeb: maybe
2012-05-03T22:28:14 < emeb> heh. fun tracking that down.
2012-05-03T22:28:21 < Laurenceb_> probably lost in the other bug issues i have
2012-05-03T22:28:58 < emeb> I tried various tweaks to reset, etc prior - nothing seemed to help.
2012-05-03T22:29:11 < karlp> emeb: I'm nto going to work on it until I have DMA problems of my own, it won't be anytime soon.
2012-05-03T22:29:27 < emeb> karlp: understood - whack-a-mole.
2012-05-03T22:29:39 <+Steffanx> :)
2012-05-03T22:29:59 < emeb> I'll keep fiddling w/ it for now. It's got to be solvable - the Win stlink util works fine.
2012-05-03T22:30:15 < karlp> yeah, it'll be a simple change when it gets worked out,
2012-05-03T22:30:27 < karlp> some setting to call or something.
2012-05-03T22:30:35 < emeb> At least you'll be aware of the potential for the problem if you run into it.
2012-05-03T22:30:51 < karlp> yeah, the issues list has most known current issues,
2012-05-03T22:30:59 < karlp> I just wish texane would close the ones that are known to be fixed
2012-05-03T22:43:26 < TitanMKD> Anyone tested STM32F4 SDIO 8bits ?
2012-05-03T22:43:34 < TitanMKD> or just SDIO 1 or 4bits ;)
2012-05-03T23:10:54 <+Steffanx> me likes this fancy gerber viewer http://mayhewlabs.com/webGerber/
2012-05-03T23:12:16 <+Steffanx> or http://mayhewlabs.com/webGerber/?demo=Electric_Sheep for a demo
2012-05-03T23:18:57 < Laurenceb_> thats epic
2012-05-03T23:18:59 < Laurenceb_> bit slow here
2012-05-03T23:28:13 -!- izua [~izua@79.115.62.40] has joined ##stm32
2012-05-03T23:28:16 -!- izua [~izua@79.115.62.40] has quit [Changing host]
2012-05-03T23:28:16 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-03T23:28:19 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-03T23:37:59 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer]
--- Day changed Fri May 04 2012
2012-05-04T00:00:00 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving]
2012-05-04T00:01:47 < emeb> anyone ever tried using the CRC peripheral as a random number generator?
2012-05-04T00:03:32 < zyp> probably not
2012-05-04T00:05:33 < emeb> I've done it on the dsPIC - works great. Just feed it any old data and out comes white noise.
2012-05-04T00:06:06 < karlp> hmm, what's the magic format to make a link to an irc channel?
2012-05-04T00:06:18 < zyp> irc://server/channel
2012-05-04T00:06:35 < karlp> ahh, I was curious about the channel bit.
2012-05-04T00:09:42 < karlp> hmm, so how about to link to a ## channel like this?
2012-05-04T00:10:45 < karlp> oh, nevermind.
2012-05-04T00:11:01 < karlp> there we go: http://false.ekta.is/2012/05/using-netbeans-for-stm32-development-with-stlink-texane/
2012-05-04T00:26:17 < Thorn> looks like I got CAN message filtering working
2012-05-04T00:27:25 < zyp> it's pretty easy
2012-05-04T00:27:45 < Thorn> not with ST documentation
2012-05-04T00:27:50 < zyp> you just set which bits you want to match and what you want them to match to
2012-05-04T00:28:09 < Thorn> and not with the std peripheral library
2012-05-04T00:28:35 < zyp> the only tricky part is that you have a whole array of filter registers with configurable size
2012-05-04T00:28:36 < Thorn> e.g. for some reason they decided to put IdLow and idMaskLow into FR1 in 16-bit mode
2012-05-04T00:29:17 < zyp> that's because you can have two 16-bit masks or one 32-bit mask in the same location
2012-05-04T00:30:27 < Thorn> I mean, *Low go into FR1 (lower FMI number) and *High go into FR2, I expected that to be the other way round
2012-05-04T00:30:36 < Thorn> in 16 bit mode
2012-05-04T00:31:02 < Thorn> so I got FMI=1 when I expected 0 (messages did match)
2012-05-04T00:32:06 < Thorn> the CAN peripheral itself seems surprisingly well designed (not that I have anything to compare, except MCP2515 but I don't know it well enough yet)
2012-05-04T00:32:29 < Thorn> and CAN itself is more fun than rs-485
2012-05-04T00:32:55 < zyp> yeah
2012-05-04T00:33:39 < zyp> http://cgit.jvnv.net/suzumebachi/tree/hal/can.h?h=temp <- I started on my own abstraction once, but that got put on hold for a bit since I don't have any need for can yet
2012-05-04T00:33:47 < Thorn> if you can live with 8-byte frames that is
2012-05-04T00:35:14 < Thorn> how do you assign message IDs? some bits for device, others for function (similar to how cpu instructions are encoded) or something like that?
2012-05-04T00:35:37 < zyp> that's entirely up to you
2012-05-04T00:36:19 < Thorn> I'm interested in best practice
2012-05-04T00:36:20 < zyp> keep in mind that lower message id = higher priority, so the scheme should be designed so the highest priority messages get the lowest ids
2012-05-04T00:37:58 < zyp> so whatever is most important to select priorities for goes in the first bit
2012-05-04T00:38:27 < zyp> you can even allocate a few of the first bits to use as explicit priority, and just don't match on them in any device
2012-05-04T00:38:28 < karlp> 485's a good choice when you've got lots of noise in the environment, but yeah, it's not sexy in the least :)
2012-05-04T00:38:58 < Thorn> which one is more noise resistant?
2012-05-04T00:39:30 < zyp> I'd put my bet on CAN, but it largely depends on what you mean by noise resistant
2012-05-04T00:39:51 < Thorn> btw it appears that modern airliners make heavy use of CAN (ARINC-825 etc)
2012-05-04T00:41:05 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
2012-05-04T00:41:07 < zyp> can have checksum and ack on any frame, so you don't have to do that part yourself
2012-05-04T00:41:28 < zyp> a frame with invalid checksum won't get acked, and the sender knows that it has to retransmit it immediately
2012-05-04T00:41:56 < karlp> we're running data cables over arbitrary lengths inside electrical panels. rs485 is rocksolid for that sort of junk.
2012-05-04T00:41:58 < Thorn> does it ACK everything by default with no user intervention?
2012-05-04T00:42:17 < zyp> the can peripheral does that, yes
2012-05-04T00:42:24 < Thorn> nice
2012-05-04T00:42:48 < zyp> though, if you have multiple receivers you only know that at least one heard it then
2012-05-04T01:03:33 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-04T01:06:11 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 246 seconds]
2012-05-04T01:33:30 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has quit [Quit: Leaving]
2012-05-04T01:33:44 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-04T01:37:58 -!- Laurenceb_ [~Laurence@host86-177-58-185.range86-177.btcentralplus.com] has quit [Ping timeout: 276 seconds]
2012-05-04T01:38:08 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds]
2012-05-04T02:16:54 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Read error: Connection reset by peer]
2012-05-04T02:22:15 < karlp> man, I'd forgotten just how ugly some of the stlink code is.
2012-05-04T02:27:19 -!- peabody124 [~peabody12@128.249.96.21] has quit [Quit: peabody124]
2012-05-04T02:46:35 < karlp> oh, gsmcmullin, I think I know why stlink doesn't respond to pause.  I'm working on a test/fix now.
2012-05-04T02:57:13 < karlp> hmm, perhaps not as simple as I'd thought....
2012-05-04T03:26:09 < karlp> nope. totally wrong.
2012-05-04T03:26:16 < karlp> never mind :)
2012-05-04T03:26:30 < karlp> you were right, it's in the gdbserver plugin, not in the stlink code.
2012-05-04T03:35:01 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-04T03:42:08 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-04T04:01:07 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-04T04:04:47 < karlp> http://netbeans.org/bugzilla/show_bug.cgi?id=170488
2012-05-04T04:05:04 < karlp> oh yeah, you're even on that gsmcmullin :)
2012-05-04T04:09:31 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 244 seconds]
2012-05-04T04:10:37 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925075879.dsl.bell.ca] has joined ##stm32
2012-05-04T04:10:37 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925075879.dsl.bell.ca] has quit [Changing host]
2012-05-04T04:10:37 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-04T05:35:46 -!- zippe [~Adium@173.11.99.161] has quit [Quit: Leaving.]
2012-05-04T05:41:54 -!- avernos [~avernos@unaffiliated/avernos] has joined ##stm32
2012-05-04T06:18:11 -!- Thorn [~Thorn@unaffiliated/thorn] has quit []
2012-05-04T06:55:54 -!- cjbaird [~cjb@ppp121-45-175-149.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-04T08:25:18 < ziph> Anyone know of an ARM Mn board with PoE+Ethernet?
2012-05-04T08:40:53 -!- cjbaird [~cjb@ppp121-45-175-149.lns20.syd6.internode.on.net] has quit [Remote host closed the connection]
2012-05-04T08:51:06 -!- cjbaird [~cjb@ppp121-45-175-149.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-04T09:21:47 < Tectu> morning
2012-05-04T09:21:57 < Tectu> okay, brought my discovery with me today
2012-05-04T09:45:22 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32
2012-05-04T10:50:03 -!- Laurenceb_ [~Laurence@host86-177-58-185.range86-177.btcentralplus.com] has joined ##stm32
2012-05-04T11:24:16 -!- Laurenceb_ [~Laurence@host86-177-58-185.range86-177.btcentralplus.com] has quit [Ping timeout: 276 seconds]
2012-05-04T11:35:37 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-04T11:35:41 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-04T11:37:42 < Tectu> SWD has   SWCLK and SWDIO... doing hard in finding out where to connect these to the JTAG connector
2012-05-04T11:40:07 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 255 seconds]
2012-05-04T11:40:27 < gsmcmullin> Tectu: SWCLK->TCK SWDIO->TMS
2012-05-04T11:40:39 < Tectu> thansk
2012-05-04T11:44:58 < Tectu> do i need to connect VDD?
2012-05-04T11:45:01 < Tectu> or is GND enought?
2012-05-04T11:45:37 < zyp> depends on the adapter you're using
2012-05-04T11:45:50 < Tectu> discovery
2012-05-04T11:46:08 < zyp> some rely on having vcc supplied from the target for driving voltage level translators
2012-05-04T11:46:13 < zyp> discovery doesn't
2012-05-04T11:46:49 < Tectu> ok
2012-05-04T11:47:38 < Tectu> but can i connect?
2012-05-04T11:48:03 < zyp> I've only had gnd, swclk, swdio and nrst connected when I used the discovery board
2012-05-04T11:48:54 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32
2012-05-04T11:48:59 < Tectu> wtf is nrst
2012-05-04T11:49:07 < zyp> reset
2012-05-04T11:49:09 < Tectu> btw, i have the discovery stm32f100b vl thing
2012-05-04T11:49:17 < Tectu> the SWD there dosen't have reset line o0
2012-05-04T11:49:27 < zyp> is that the discovery board with only four connections?
2012-05-04T11:49:31 < karlp> yeah
2012-05-04T11:49:35 < zyp> right
2012-05-04T11:49:51 < zyp> the F4 discovery board have six, the additional two is nrst and swo
2012-05-04T11:49:54 < karlp> just ignore it, and you may sometimes press the reset button on your target.
2012-05-04T11:50:01 < Tectu> ok
2012-05-04T11:50:33 < karlp> the VL discovery board is the only place that stlink v1 still exists.
2012-05-04T11:52:25 < Tectu> what's the difference between v1 and v2? i only know that v1 uses SCSI backend, while v2 uses real USB stuff
2012-05-04T11:52:58 < gsmcmullin> Tectu: I think it's just firmware.
2012-05-04T11:58:25 < karlp> firmware in theory, but as you've seen the headers for using the v1 based boards to target other boards don't have the swv/swo and the nrst pins
2012-05-04T11:59:32 < karlp> the main difference in the firmware from a user point of view is that the v1 doesn't support SWO/SWV
2012-05-04T12:02:10 < Tectu> unknown chip id! 0xe0042000
2012-05-04T12:02:13 < Tectu> awesome
2012-05-04T12:09:37 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-04T12:09:38 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-04T12:37:02 -!- izua_ [~izua@188.26.166.164] has joined ##stm32
2012-05-04T12:37:03 -!- izua_ [~izua@188.26.166.164] has quit [Changing host]
2012-05-04T12:37:03 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32
2012-05-04T12:37:06 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-04T12:40:19 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 276 seconds]
2012-05-04T12:40:25 -!- izua__ [~izua@188.26.165.141] has joined ##stm32
2012-05-04T12:41:18 -!- izua_ [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer]
2012-05-04T12:47:47 -!- izua__ [~izua@188.26.165.141] has quit [Quit: Obai]
2012-05-04T12:47:59 -!- izua__ [~izua@188.26.165.141] has joined ##stm32
2012-05-04T12:48:06 -!- izua__ [~izua@188.26.165.141] has quit [Read error: Connection reset by peer]
2012-05-04T12:48:18 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-04T12:48:21 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-04T12:54:25 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-04T12:54:27 < Laurenceb> is it possible to read the level of a pin set to output?
2012-05-04T13:05:16 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-04T13:05:19 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-04T13:06:16 <+Steffanx> nu
2012-05-04T13:14:15 < zyp> Laurenceb, of course it is
2012-05-04T13:14:52 < zyp> ODR will contain the value it's supposed to have and IDR will contain the value it's actually having
2012-05-04T13:15:04 < Laurenceb> ah nice
2012-05-04T13:15:12 < zyp> and in open drain mode it's perfectly valid for them to be different too
2012-05-04T13:15:23 < Laurenceb> yeah - used in i2c
2012-05-04T13:16:16 < karlp> Laurenceb: when you're having problems in nemivar, is it certain commands? or just not working at all?
2012-05-04T13:16:42 -!- izua_ [~izua@188.26.165.141] has joined ##stm32
2012-05-04T13:16:42 -!- izua_ [~izua@188.26.165.141] has quit [Changing host]
2012-05-04T13:16:42 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32
2012-05-04T13:16:42 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-04T13:16:45 < karlp> can you send a trace from gdbserver/st-util?  if it has seom recv: commands that aren't supported, I can try and add them.
2012-05-04T13:17:00 < Laurenceb> ok ill have another attemp in a sec
2012-05-04T13:17:13 < Laurenceb> it seems to connect ok
2012-05-04T13:17:19 < karlp> I learnt a bit about the gdbserver last night.
2012-05-04T13:17:22 < Laurenceb> but i cant stop start on break
2012-05-04T13:17:26 < Laurenceb> *or
2012-05-04T13:17:38 < Laurenceb> and the stm is just locked up
2012-05-04T13:17:39 < karlp> whitequark is a clever guy, but man that code was a little cowboy.
2012-05-04T13:17:42 < Laurenceb> seems to be halted
2012-05-04T13:17:47 < Laurenceb> i have to reset it
2012-05-04T13:18:06 < karlp> does nemivar use gdb behind it? or is it talking to the gdbserver directly?
2012-05-04T13:18:10 < Laurenceb> i had to swap gdb to arm-gdb
2012-05-04T13:18:15 < karlp> well, duh
2012-05-04T13:18:17 < Laurenceb> heh
2012-05-04T13:18:28 < Laurenceb> aiui it is a gui for gdb
2012-05-04T13:18:51 < karlp> you could try the "kill -INT $(pidof arm-none-eabi-gdb)" trick?
2012-05-04T13:19:02 < Laurenceb> i need to mark some exam papers, just a sec
2012-05-04T13:19:10 < karlp> no rush
2012-05-04T13:19:15 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 244 seconds]
2012-05-04T13:19:19 < karlp> I'm not going to work on it now, it's day job work time :)
2012-05-04T13:19:38 <+Steffanx> or more
2012-05-04T13:19:54 <+Steffanx> oops
2012-05-04T13:19:57 <+Steffanx> wrong channel )
2012-05-04T13:27:12 < Laurenceb> hmm this coursework is in comic sans...
2012-05-04T13:27:30 <+Steffanx> ha
2012-05-04T13:27:42 <+Steffanx> Quality work?
2012-05-04T13:28:41 <+izua_> comic sans is the best font
2012-05-04T13:28:43 < karlp> do the letters down the left hand edge spell out never gonna give you up?
2012-05-04T13:28:52 <+izua_> because it's fun and expresses the author's personality
2012-05-04T13:28:57 <+izua_> unlike all the others plain looking fonts
2012-05-04T13:29:14 < Laurenceb> im no fontfag
2012-05-04T13:29:15 <+izua_> http://www.detourdesignables.com/images/comic_sans_dog.gif
2012-05-04T13:29:19 < Laurenceb> but its still funny
2012-05-04T13:30:31 < Laurenceb> diode leakage current at -2v : 100.6A
2012-05-04T13:30:36 < Laurenceb> erm.. yeah
2012-05-04T13:32:44 <+izua_> neat
2012-05-04T13:32:50 <+izua_> .sldprt pls
2012-05-04T13:36:01 <+Steffanx> nice nice dongs
2012-05-04T13:36:19 <+Steffanx> Never imagined they make them like that in trollville
2012-05-04T13:37:24 <+Steffanx> Why those 'feets'  point to the center dongs ? That's looks unnatural imho
2012-05-04T13:38:12 <+Steffanx> if you say so
2012-05-04T13:39:09 <+izua_> those are just for added stability methinks
2012-05-04T13:40:04 <+izua_> dongs: care to elaborate on how the mech will turn out?
2012-05-04T13:41:53 < cjbaird> Whose ideas are you copying for it? :p
2012-05-04T13:48:20 < Laurenceb> that thing looks a bit dangerous
2012-05-04T13:56:53 < cjbaird> Laurenceb: how's this? https://imgur.com/Tw9Fl
2012-05-04T13:57:22 < cjbaird> dongs: yep, that's what first came to mind when I saw yours.
2012-05-04T13:58:33 < Laurenceb> http://i.imgur.com/bkgQw.gif
2012-05-04T13:59:43 <+Steffanx> lol Laurenceb
2012-05-04T14:00:39 <+izua_> oh
2012-05-04T14:00:40 <+izua_> it's a copter
2012-05-04T14:00:46 <+izua_> for once i thought people still made hexapods :(
2012-05-04T14:05:10 < karlp> only artists.
2012-05-04T14:06:09 < Laurenceb> haha wutr
2012-05-04T14:06:16 <+Steffanx> Laurenceb is a poor student
2012-05-04T14:06:20 < Laurenceb> a bit expensive
2012-05-04T14:07:36 <+izua_> lol
2012-05-04T14:07:41 <+izua_> 4 gas tanks @ 8 gallons ea
2012-05-04T14:08:43 <+izua_> it can't _not_ run on avgas
2012-05-04T14:09:10 <+izua_> everything else would just be used up during the time between first and second gear
2012-05-04T14:09:37 <+izua_> i don't think so
2012-05-04T14:09:45 <+izua_> but i can probably quad negative it
2012-05-04T14:18:54 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-04T14:32:13 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-04T14:34:19 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-04T14:37:34 -!- izua__ [~izua@188.26.165.141] has joined ##stm32
2012-05-04T14:40:30 -!- izua_ [~izua@unaffiliated/izua] has quit [Ping timeout: 250 seconds]
2012-05-04T14:43:43 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-04T14:44:24 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32
2012-05-04T14:44:25 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-04T14:48:07 -!- izua__ [~izua@188.26.165.141] has quit [Ping timeout: 244 seconds]
2012-05-04T14:59:12 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-04T14:59:15 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-04T15:02:40 -!- izua_ [~izua@unaffiliated/izua] has quit [Ping timeout: 276 seconds]
2012-05-04T15:19:04 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 250 seconds]
2012-05-04T15:27:44 -!- tavish [~tavish@120.59.15.10] has joined ##stm32
2012-05-04T15:27:44 -!- tavish [~tavish@120.59.15.10] has quit [Changing host]
2012-05-04T15:27:44 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-04T15:44:55 -!- izua_ [~izua@188.26.165.217] has joined ##stm32
2012-05-04T15:44:56 -!- izua_ [~izua@188.26.165.217] has quit [Changing host]
2012-05-04T15:44:56 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32
2012-05-04T15:44:57 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-04T15:46:30 -!- cjbaird [~cjb@ppp121-45-175-149.lns20.syd6.internode.on.net] has quit [Ping timeout: 260 seconds]
2012-05-04T15:48:49 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 276 seconds]
2012-05-04T15:50:45 -!- izua [~izua@188.26.167.113] has joined ##stm32
2012-05-04T15:50:46 -!- izua [~izua@188.26.167.113] has quit [Changing host]
2012-05-04T15:50:46 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-04T15:50:48 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-04T15:52:12 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-04T15:53:37 -!- izua_ [~izua@unaffiliated/izua] has quit [Ping timeout: 252 seconds]
2012-05-04T16:00:25 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32
2012-05-04T16:00:26 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-04T16:01:41 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 252 seconds]
2012-05-04T16:05:10 -!- izua [~izua@188.26.164.35] has joined ##stm32
2012-05-04T16:05:10 -!- izua [~izua@188.26.164.35] has quit [Changing host]
2012-05-04T16:05:10 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-04T16:05:13 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-04T16:08:02 -!- izua_ [~izua@unaffiliated/izua] has quit [Ping timeout: 250 seconds]
2012-05-04T16:16:03 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-04T16:16:06 -!- mode/##stm32 [+v Steffann] by ChanServ
2012-05-04T16:16:16 <+Steffann> Dongs, he said he isn't from london ..
2012-05-04T16:16:34 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Read error: No route to host]
2012-05-04T16:19:08 <+Steffann> pizza
2012-05-04T16:20:19 -!- avernos [~avernos@unaffiliated/avernos] has quit [Read error: Connection reset by peer]
2012-05-04T16:24:22 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32
2012-05-04T16:24:25 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-04T16:27:55 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 260 seconds]
2012-05-04T16:31:03 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-04T16:37:21 -!- avernos [~avernos@unaffiliated/avernos] has joined ##stm32
2012-05-04T16:48:46 -!- izua_ [~izua@unaffiliated/izua] has quit [Ping timeout: 250 seconds]
2012-05-04T16:58:13 < cjbaird> Weird.. A cheap old eprom programmer I put together from a kit gets ~40,000 views: https://www.youtube.com/watch?v=GvYsnONgRNI
2012-05-04T16:59:09 -!- tavish_ [~tavish@120.56.141.135] has joined ##stm32
2012-05-04T17:00:16 <+Steffann> http://www.naffets.nl/share/a-20120504-155940.png <= ages … says enough cjbaird :P
2012-05-04T17:00:38 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 255 seconds]
2012-05-04T17:07:15 < cjbaird> Jawsome. Nothing unexpected about that. :)
2012-05-04T17:11:13 < cjbaird> Still, I haven't cracked the "Female+piercings+tats 18-24" market.
2012-05-04T17:12:02 < karlp> or the female 12-16
2012-05-04T17:12:07 < karlp> just stick bieber logos on all the parts
2012-05-04T17:12:42 < karlp> which reminds me: http://team.bigcartel.com/product/bieber-slayer
2012-05-04T17:17:48 <+Steffann> More offtopic: http://www.youtube.com/watch?v=VzNzylF33HM
2012-05-04T17:18:05 < karlp> that's not offtopic at all
2012-05-04T17:18:10 < karlp> I haven't seent hat clip in ages
2012-05-04T17:18:16 < karlp> thanks!
2012-05-04T17:18:21 <+Steffann> :P
2012-05-04T17:19:19 <+Steffann> The other videos of the same girl are weird, especially because i have no idea what she says
2012-05-04T17:19:52 < karlp> yeah, I tried looking at the others when Ifirst saw that one,
2012-05-04T17:19:55 < karlp> made no sense.
2012-05-04T17:20:19 < karlp> the girlfriend speaks russian, but she just said, "it's all just crap, and I'm not interested in translating any more of this shit for you"
2012-05-04T17:20:52 <+Steffann> "the girlfriend" = your gf?
2012-05-04T17:21:16 < karlp> yep
2012-05-04T17:21:46 < zyp> now you're making Steffann jealous
2012-05-04T17:22:19 <+Steffann> No, but I now know karlp is really, in dutch, multiculti :)
2012-05-04T17:22:45 <+Steffann> (Multiculturalism., blalbla)
2012-05-04T17:24:39 -!- tavish_ [~tavish@120.56.141.135] has quit [Quit: leaving]
2012-05-04T17:24:42 < karlp> what, you mean, like everyone else in the world?
2012-05-04T17:25:01 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-04T17:25:22 < cjbaird> They're all foreigners, though.
2012-05-04T17:34:02 <+Steffann> No, I'm not "multiculti"
2012-05-04T17:34:29 < zyp> Steffann is racist
2012-05-04T17:35:54 <+Steffann> Yeah sure
2012-05-04T17:36:00 <+Steffann> And you are Santa
2012-05-04T17:40:39 <+Steffann> The only people I don't like are from Norway zyp :)
2012-05-04T17:41:36 <+Steffann> I've only "talked" to one from Norway, so that means that single one has to be very bad
2012-05-04T17:44:59 < karlp> what does your multiculti word mean Steffann?
2012-05-04T17:45:18 < karlp> also, santa comes from finland.  in boxes. not norway
2012-05-04T17:45:24 < karlp> haven't you seen the (right) movies?
2012-05-04T17:47:14 <+Steffann> Just that you are into multiple cultures karlp
2012-05-04T17:47:32 < karlp> having two passports from different sides of the worlds kinda guarantees that
2012-05-04T17:47:46 <+Steffann> Like an Australian guys, who lives in Iceland with a gf who talks Russian :)
2012-05-04T17:47:48 <+Steffann> -s
2012-05-04T17:47:56 < karlp> something like that :)
2012-05-04T17:49:47 <+Steffann> I mean I'm not multiculti.. I'm dutch, speak dutch (and crappy english) and live in dutchland :)
2012-05-04T17:50:13 < karlp> it's the ninterwebnet, you're all mutikultikontra
2012-05-04T17:50:16 <+Steffann> They tried to make dutchland multiculti, but they failed
2012-05-04T17:52:53 < zyp> Steffann, so what do I count as?
2012-05-04T17:53:41 <+Steffann>  Uh, you should count as something?
2012-05-04T17:59:50 < zyp> shouldn't I? :(
2012-05-04T18:02:03 <+Steffann> You count as Norwegian Santa… good enough?
2012-05-04T18:03:32 < zyp> ha
2012-05-04T18:03:33 < zyp> :p
2012-05-04T18:03:48 < zyp> I thought santa were finnish
2012-05-04T18:04:21 <+Steffann> That's why you are the norwegian version
2012-05-04T18:16:52 < Laurenceb> karlp: ping
2012-05-04T18:17:01 < Laurenceb> ready to try nemiver
2012-05-04T18:20:13 < karlp> it'ðs still work o'clock.
2012-05-04T18:20:27 < karlp> just try it, and record the whole window of the st-util otuput,
2012-05-04T18:20:28 < Laurenceb> it stops in systeminit
2012-05-04T18:20:40 < karlp> ok, and what, pressing play doesn't make it continue?
2012-05-04T18:20:44 < Laurenceb> then i think the micro gets watchdogged
2012-05-04T18:20:53 < Laurenceb> and that kills the connection
2012-05-04T18:21:09 < karlp> does it work with regular gdb?
2012-05-04T18:21:15 < Laurenceb> yes
2012-05-04T18:21:33 < Laurenceb> seems to set a breakpoint at the first line of code
2012-05-04T18:21:42 < karlp> ok, if you get a trace of st-util from both a regular gdb and from connecting with nemivar it might help.
2012-05-04T18:21:44 < Laurenceb> and my application doesnt like that
2012-05-04T18:22:07 < karlp> so you don't have any user breakpoints set in your code,
2012-05-04T18:22:14 < zyp> you application doesn't seem to like being executed at all
2012-05-04T18:22:17 < karlp> nemivar just stops in systeminit?
2012-05-04T18:22:17 < zyp> +r
2012-05-04T18:22:22 < karlp> zyp :)
2012-05-04T18:23:09 < Laurenceb> http://pastebin.com/TEbGzfEm
2012-05-04T18:24:01 < Laurenceb> with nemiver
2012-05-04T18:25:35 < karlp> I thought you said it locked up?
2012-05-04T18:26:44 < Laurenceb> the stm does
2012-05-04T18:27:03 < Laurenceb> http://pastebin.com/bW1ub33n
2012-05-04T18:27:07 < Laurenceb> ^gdb
2012-05-04T18:27:40 < Laurenceb> recv: c  <-starts running there
2012-05-04T18:30:42 < Laurenceb> seems nemiver loads a bunch of stuff from 0x08013900
2012-05-04T18:30:47 < Laurenceb> and dissasembles
2012-05-04T18:31:41 < Laurenceb> i think nemiver automatically sets a breakpoint at at first line
2012-05-04T18:32:11 < Laurenceb> looks like i could fix it with a custom gdbinit
2012-05-04T18:32:19 < Laurenceb> but i dont know where id put that
2012-05-04T18:36:16 < Laurenceb> any ideas?
2012-05-04T18:36:24 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-04T18:39:08 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 260 seconds]
2012-05-04T18:44:37 < Laurenceb> "Sorry, it is impossible to restart a remote inferior"
2012-05-04T18:48:35 < Laurenceb> recv: p15
2012-05-04T18:48:35 < Laurenceb> send: deaddead
2012-05-04T18:48:40 < Laurenceb> ^what does that mean?
2012-05-04T18:57:50 < Laurenceb> ok maybe i dont know how to use nemiver
2012-05-04T18:58:18 < Laurenceb> how do i load a file to debug into nemiver?
2012-05-04T18:59:42 -!- Guest61285 [~CheBuzz@76.164.192.124] has joined ##stm32
2012-05-04T18:59:46 < karlp> I'll have a look later tonight sorry, (hopefully) I'm a bit busy at work trying to finish stuff before the weekend
2012-05-04T18:59:55 -!- Guest61285 is now known as CheBuzz
2012-05-04T19:06:59 < Laurenceb> http://www.jann.cc/2012/04/14/using_nemiver_for_remote_debugging_on_arm_microcontrollers.html
2012-05-04T19:07:20 < Laurenceb> why the temp breakpoint?
2012-05-04T19:12:04 < karlp> no idea.
2012-05-04T19:12:07 < karlp> maybe to help it sync?
2012-05-04T19:14:35 < Laurenceb> yeah looks like it
2012-05-04T19:14:49 < Laurenceb> and that seems to be my issue - why its dissasembling
2012-05-04T19:15:01 < Laurenceb> this kind of screwy
2012-05-04T19:15:15 < Laurenceb> ill try that
2012-05-04T19:18:04 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-04T19:23:01 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-04T19:23:12 < Laurenceb> does gdb always run gdbinit?
2012-05-04T19:24:48 < Laurenceb> made some progress
2012-05-04T19:24:57 < Laurenceb> but texane die with the gdb batch
2012-05-04T19:25:22 < Laurenceb> i can wake up the stm32 and get it at a breakpoint ready for nemiver to connect
2012-05-04T19:25:46 < Laurenceb> but as soon as the gdb batch command completed texane is closed with gdb
2012-05-04T19:26:47 < karlp> "texane is closed with gdb" ? what does that mean?
2012-05-04T19:28:59 < Laurenceb> as soon as gdb disconnects, texane closes
2012-05-04T19:29:12 < zyp> yep
2012-05-04T19:29:19 < Laurenceb> using "disconnect" in gdb doesnt help
2012-05-04T19:29:27 < Laurenceb> i need to keep the session open
2012-05-04T19:30:11 < Laurenceb> oh well more fun next week
2012-05-04T19:30:19 < Laurenceb> hopefully someone will make this work in the meantime
2012-05-04T19:30:38 < Laurenceb> bbl
2012-05-04T19:34:43 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-04T19:38:03 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-04T20:17:06 -!- CheBuzz [~CheBuzz@76.164.192.124] has quit [Quit: Terminated with extreme prejudice - dircproxy 1.2.0]
2012-05-04T20:17:17 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Quit: Quitte]
2012-05-04T20:52:27 -!- izua [~izua@79.115.170.149] has joined ##stm32
2012-05-04T20:52:27 -!- izua [~izua@79.115.170.149] has quit [Changing host]
2012-05-04T20:52:27 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-04T20:52:30 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-04T20:54:27 -!- izua|router [~root@79.115.170.149] has joined ##stm32
2012-05-04T20:54:38 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit []
2012-05-04T21:17:39 -!- Laurenceb_ [~Laurence@host86-177-58-185.range86-177.btcentralplus.com] has joined ##stm32
2012-05-04T21:18:58 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Ping timeout: 260 seconds]
2012-05-04T21:19:24 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-04T21:19:37 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 245 seconds]
2012-05-04T21:36:27 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-04T21:37:39 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-04T21:38:00 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-04T21:45:41 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 248 seconds]
2012-05-04T21:49:44 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-04T21:56:47 -!- tavish_ [~tavish@59.177.6.128] has joined ##stm32
2012-05-04T21:57:38 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 240 seconds]
2012-05-04T21:58:06 -!- tavish [~tavish@59.177.11.203] has joined ##stm32
2012-05-04T21:58:13 -!- tavish [~tavish@59.177.11.203] has quit [Changing host]
2012-05-04T21:58:13 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-04T21:58:51 -!- izua [~izua@79.115.170.149] has joined ##stm32
2012-05-04T21:58:51 -!- izua [~izua@79.115.170.149] has quit [Changing host]
2012-05-04T21:58:51 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-04T21:58:55 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-04T22:01:21 -!- tavish_ [~tavish@59.177.6.128] has quit [Ping timeout: 255 seconds]
2012-05-04T22:07:28 -!- tavish_ [~tavish@120.56.128.244] has joined ##stm32
2012-05-04T22:08:59 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 265 seconds]
2012-05-04T22:22:00 -!- tavish_ [~tavish@120.56.128.244] has quit [Ping timeout: 260 seconds]
2012-05-04T22:23:01 -!- tavish [~tavish@59.177.9.143] has joined ##stm32
2012-05-04T22:23:16 -!- tavish [~tavish@59.177.9.143] has quit [Changing host]
2012-05-04T22:23:16 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-04T22:32:11 < Laurenceb_> hi
2012-05-04T22:32:19 < Laurenceb_> anyone had any luck with nemiver?
2012-05-04T22:35:09 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-04T22:35:55 < Laurenceb_> anyone home?
2012-05-04T22:38:24 < Laurenceb_> i guess everyone is out like.. getting laid and stuff
2012-05-04T22:40:24 <+Steffann> No, I'm boring
2012-05-04T22:59:51 < Laurenceb_> just doing some more adc haxor experiments
2012-05-04T23:00:01 < Laurenceb_> input leakage current is crazy small
2012-05-04T23:00:11 < Laurenceb_> a few nA when not converting
2012-05-04T23:00:41 < Laurenceb_> but each conversion is equivalent to charging a 2pF cap to VDDA/2
2012-05-04T23:01:06 < Laurenceb_> i can use a wire stuck to the ADC pin to store a sample for tens of ms   !
2012-05-04T23:24:19 < karlp> Laurenceb_: does that page about arm and nemivar help you?
2012-05-04T23:24:24 < karlp> or are you still having problems?
2012-05-04T23:24:32 < karlp> the deaddead bit you refer to isn't inyour traces.
2012-05-04T23:24:53 < karlp> (also, pastebin lets you label a paste, that's a _handy_ feature for other people to look at it later)
2012-05-04T23:25:08 < Laurenceb_> yeah sorry i lost the pastebins
2012-05-04T23:25:11 < karlp> feel free to annotate where things work to and when you pressed the button that made it stop or break or anything.
2012-05-04T23:25:27 < Laurenceb_> hardware is at work :P
2012-05-04T23:25:38 < Laurenceb_> but yeah i made some progress
2012-05-04T23:25:41 < karlp> currently I can only see that what you did in gdb is clearly different than what nemivar did, but not whether that was meant to happen or not :)
2012-05-04T23:26:09 < Laurenceb_> if i can stop texane from quitting when gdb disconnects i think it may work
2012-05-04T23:26:39 < karlp> how about don't disconnect gdb?
2012-05-04T23:26:51 < Laurenceb_> i can run the batch script in gdb and have it leave the stm at a breakpoint
2012-05-04T23:27:09 < Laurenceb_> but then i have to close it and reconnect with nemiver
2012-05-04T23:27:10 < karlp> hang on, you want to start cmd line gdb, get to a breakpoint,
2012-05-04T23:27:15 < Laurenceb_> yes
2012-05-04T23:27:22 < karlp> how about just using nemivar from the beginning?
2012-05-04T23:27:24 < Laurenceb_> then close it and start nemive taking off
2012-05-04T23:27:31 < karlp> what's stopping that from working?
2012-05-04T23:27:42 < Laurenceb_> because i cant work out how to run the init script in gdb
2012-05-04T23:27:55 < karlp> put it in .gdbinit in the present directory?
2012-05-04T23:28:00 < Laurenceb_> and also as thats how that guy ran it
2012-05-04T23:28:02 < Laurenceb_> hmm maybe
2012-05-04T23:28:03 < karlp> read the man page?
2012-05-04T23:28:24 < Laurenceb_> it doesnt help
2012-05-04T23:28:39 < Laurenceb_> basically i dont understand what nemiver is doing
2012-05-04T23:28:58 < Laurenceb_> it doesnt want to debug the code, it loads code off the chip and disassembles it
2012-05-04T23:29:05 < Laurenceb_> then tried to debug the disassembly
2012-05-04T23:29:46 < Laurenceb_> i assumed that weird batch task trick was to solve this issue
2012-05-04T23:29:56 < Laurenceb_> but i cant replicate that trick as texane closes
2012-05-04T23:30:03 < Laurenceb_> it obviously works with openocd
2012-05-04T23:30:36 < karlp> that's a stupid thing to do.
2012-05-04T23:30:46 < karlp> can't you just tell nemivar what elf to look at it and then attach?
2012-05-04T23:31:09 < karlp> it's probably "right" that st-util should stay running until it is physically exited,
2012-05-04T23:31:23 < karlp> but I think some commands in gdb are designed to be, "stop debugging, let the process run"
2012-05-04T23:31:29 < karlp> which would imply killing st-util.
2012-05-04T23:32:04 < Laurenceb_> ive tried to load the elf
2012-05-04T23:32:10 < Laurenceb_> it load the elf fine
2012-05-04T23:32:21 < Laurenceb_> then just disassembles and ignores it
2012-05-04T23:32:32 < karlp> well, stop using nemivar cos it's junk?
2012-05-04T23:32:34 < Laurenceb_> same if i try nemiver main.elf
2012-05-04T23:32:38 < Laurenceb_> lol
2012-05-04T23:32:38 < karlp> or at least file a bug with it.
2012-05-04T23:32:51 < Laurenceb_> yeah dd works ok but its a little annoying
2012-05-04T23:32:59 < karlp> man, I put together a blog post with screenshots and eveyrthing about source level debugging with netbeans
2012-05-04T23:33:02 < karlp> you could use that
2012-05-04T23:33:07 < karlp> I'm led to believe eclipse works too.
2012-05-04T23:33:11 < Laurenceb_> nemiver is more polished.. but i think that doesnt extend to the back end
2012-05-04T23:33:18 < Laurenceb_> ok ill try one of those
2012-05-04T23:33:20 < karlp> what are you editing in right now?
2012-05-04T23:33:27 < Laurenceb_> gedit
2012-05-04T23:33:30 < Laurenceb_> and command line gdb
2012-05-04T23:33:32 < karlp> yech.
2012-05-04T23:33:35 < Laurenceb_> and ddd annoys me
2012-05-04T23:33:49 < karlp> I can understand that.
2012-05-04T23:33:59 < karlp> you could do as dongs says, and just pay for crossworks :)
2012-05-04T23:34:03 < Laurenceb_> heh
2012-05-04T23:34:09 < Laurenceb_> i like the cobalt theme in gedit
2012-05-04T23:34:17 < karlp> hahah
2012-05-04T23:34:31 < karlp> I think that's the.... strangest reason I've heard to use gedit
2012-05-04T23:35:00 < Laurenceb_> makes me look like a 1337 haxor
2012-05-04T23:35:22 < karlp> cos that's important
2012-05-04T23:35:31 < Laurenceb_> it is at work
2012-05-04T23:36:27 < Laurenceb_> i have netbeans installed, guess ill try it
2012-05-04T23:37:06 < karlp> I can see a maybe sortof bug where st-util would return deaddead,
2012-05-04T23:37:23 < karlp> but only if your gdb client (nemivar) requested an out of range register
2012-05-04T23:37:27 < Laurenceb_> oh
2012-05-04T23:37:36 < Laurenceb_> yeah i was about to say, i got that far myself
2012-05-04T23:37:45 < Laurenceb_> i dont think its anything to do with the other issues
2012-05-04T23:37:54 < Laurenceb_> just out of range
2012-05-04T23:38:04 < karlp> yeah, but if you're hitting that, it means something is asking for ludicrous values.
2012-05-04T23:38:28 < Laurenceb_> the nemiver registers tab :P
2012-05-04T23:40:44 < karlp> yeah, nemivar's dumb
2012-05-04T23:41:27 < Laurenceb_> ill try and enjoy using ddd
2012-05-04T23:41:32 < Laurenceb_> its kind of ancient tho
2012-05-04T23:41:35 < karlp> that's definitely a bug in st-util though, it should return E00 when it's requested a bad register
2012-05-04T23:41:53 < karlp> and it's returning deaddead instead
--- Day changed Sat May 05 2012
2012-05-05T00:00:11 -!- izua|router [~root@79.115.170.149] has quit [Quit: bai]
2012-05-05T00:04:50 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 252 seconds]
2012-05-05T00:26:49 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-05T00:55:39 < Laurenceb_> grrr #electronics is too busy
2012-05-05T00:55:52 < Laurenceb_> anyone know about lipo discharge curves?
2012-05-05T00:56:54 < Laurenceb_> does the discharge curve shape look different?
2012-05-05T01:07:19 < Laurenceb_> haha wtf
2012-05-05T01:07:25 <+Steffann> different ..
2012-05-05T01:07:31 < Laurenceb_> maker faire in my home town
2012-05-05T01:07:40 < Laurenceb_> crazy
2012-05-05T01:08:16 <+Steffann> Fanct
2012-05-05T01:08:16 <+Steffann> y
2012-05-05T01:08:28 < Laurenceb_> i bet noone turns up
2012-05-05T01:08:42 <+Steffann> Make it a fancy fair :P
2012-05-05T01:08:43 <+Steffann> e
2012-05-05T01:09:12 < Laurenceb_> http://www.ibt-power.com/Battery_packs/Li_Polymer/Lithium_polymer_tech.html
2012-05-05T01:09:22 < Laurenceb_> explains everything i need to know :P
2012-05-05T01:09:34 < Laurenceb_> i can maybe ditch the smps and get more capacity
2012-05-05T01:09:45 < Laurenceb_> - running 3.3v rail off single cell
2012-05-05T01:10:56 < Laurenceb_> http://makerfairederby.wordpress.com/
2012-05-05T01:11:17 < Laurenceb_> "Derby Silk Mill – the site of the World’s First Factory!"  <- lul watever
2012-05-05T01:11:24 <+Steffann> You'll go there
2012-05-05T01:11:56 <+Steffann> Anyway, gn
2012-05-05T01:16:24 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 245 seconds]
2012-05-05T01:55:59 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection]
2012-05-05T02:22:20 -!- Laurenceb_ [~Laurence@host86-177-58-185.range86-177.btcentralplus.com] has quit [Ping timeout: 260 seconds]
2012-05-05T05:12:58 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-05T05:13:02 -!- mode/##stm32 [+v Steffann] by ChanServ
2012-05-05T05:21:03 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-05T05:21:03 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 272 seconds]
2012-05-05T05:21:22 -!- jpa- [jpa@hilla.kapsi.fi] has quit [Ping timeout: 260 seconds]
--- Log closed Sat May 05 05:21:22 2012
--- Log opened Sat May 05 05:21:27 2012
2012-05-05T05:21:27 -!- jpa- [jpa@hilla.kapsi.fi] has joined ##stm32
2012-05-05T05:21:27 -!- Irssi: ##stm32: Total of 38 nicks [1 ops, 0 halfops, 0 voices, 37 normal]
2012-05-05T05:21:59 -!- Irssi: Join to ##stm32 was synced in 36 secs
2012-05-05T05:27:49 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Ping timeout: 276 seconds]
2012-05-05T05:52:02 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32
2012-05-05T06:26:14 -!- peabody124 [~peabody12@128.249.96.21] has quit [Quit: peabody124]
2012-05-05T06:55:10 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32
2012-05-05T07:03:47 -!- izua [~izua@79.115.170.149] has joined ##stm32
2012-05-05T07:03:47 -!- izua [~izua@79.115.170.149] has quit [Changing host]
2012-05-05T07:03:47 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-05T07:03:48 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-05T07:13:16 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-05T07:13:20 -!- mode/##stm32 [+v Steffann] by ChanServ
2012-05-05T07:15:03 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 255 seconds]
2012-05-05T07:17:57 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 248 seconds]
2012-05-05T07:21:34 -!- avernos [~avernos@unaffiliated/avernos] has quit [Ping timeout: 276 seconds]
2012-05-05T07:38:07 -!- avernos [~avernos@114.245.250.190] has joined ##stm32
2012-05-05T07:38:17 -!- avernos [~avernos@114.245.250.190] has quit [Changing host]
2012-05-05T07:38:17 -!- avernos [~avernos@unaffiliated/avernos] has joined ##stm32
2012-05-05T07:58:37 -!- avernos [~avernos@unaffiliated/avernos] has quit [Ping timeout: 276 seconds]
2012-05-05T08:15:21 -!- avernos [~avernos@unaffiliated/avernos] has joined ##stm32
2012-05-05T09:13:33 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-05T09:13:36 -!- mode/##stm32 [+v Steffann] by ChanServ
2012-05-05T09:17:53 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 252 seconds]
2012-05-05T10:16:19 < cjbaird> Do your own 2nd-year Uni assignments, dongs.
2012-05-05T10:18:51 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Quit: leaving]
2012-05-05T10:19:31 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32
2012-05-05T10:33:46 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has quit [Remote host closed the connection]
2012-05-05T11:13:54 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-05T11:13:57 -!- mode/##stm32 [+v Steffann] by ChanServ
2012-05-05T11:14:28 < cjbaird> It's the 21st Century.. and still doing 1980s shit like that..
2012-05-05T11:16:40 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Read error: Operation timed out]
2012-05-05T11:20:10 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-05T11:20:13 < gsmcmullin> It's commercial licensed shit.  Some choose to live with it.
2012-05-05T11:39:49 < cjbaird> When you have a close look at a lot of the licencing fine-print of stuff like that, you find heaps of indicators that the company is run by idiots... "We reserve the right to retroactively change contract details..", incorrect use of "Consideration", and such, which shows no idea of law in the country ("we cut&pasted this, we didn't actually hire a lawyer to check it over", etc. (*cough cough* DNEWS)
2012-05-05T12:35:27 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Remote host closed the connection]
2012-05-05T12:54:27  * hackkitten still has a FDD in her PC
2012-05-05T12:54:36 < hackkitten> carried over from my 486 system :D
2012-05-05T12:55:17 < Tectu> FDDs are awesome
2012-05-05T12:55:26 < specing> The sound they make...
2012-05-05T12:55:38 < Tectu> specing, ... lovley
2012-05-05T12:55:39 < specing> Its almost hipnotic
2012-05-05T12:55:42 < specing> DUBSTEP!?
2012-05-05T12:55:56 < Tectu> wtf.
2012-05-05T12:55:56 < Tectu> no
2012-05-05T12:55:59 < specing> :)
2012-05-05T12:58:46 < hackkitten> ugh, dubstep
2012-05-05T12:58:49  * hackkitten makes the holy sign
2012-05-05T12:58:57  * hackkitten listens to her FDD whirring away~
2012-05-05T12:59:09 < hackkitten> actually I doubt I'll even have an optical drive in my next system
2012-05-05T12:59:34 < hackkitten> maybe just an external one for the one time a year I may use a CD/DVD/BD...
2012-05-05T13:00:10 < cjbaird> The most awesome-sounding disk drive I've had was a ~1986 20MB SCSI stepper-arm drive from a Mac Plus (and later in my home unix box) ... It sounded a lot like ED209 from Robocop. :)
2012-05-05T13:07:17 < hackkitten> :>
2012-05-05T13:07:28  * hackkitten was barely born when that drive was new
2012-05-05T13:14:19 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-05T13:14:22 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-05T13:20:17 -!- Laurenceb_ [~Laurence@host86-177-58-185.range86-177.btcentralplus.com] has joined ##stm32
2012-05-05T13:39:19 <+Steffanx> nu
2012-05-05T13:40:08 < jpa-> hey, it's Steffan the X!
2012-05-05T13:40:45 <+Steffanx> And jpa the - is here too!!
2012-05-05T13:46:23 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32
2012-05-05T14:00:10 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-05T14:05:52 <+Steffanx> nu
2012-05-05T14:42:43 < ratatata> nu
2012-05-05T15:28:11 -!- izua [~izua@188.27.188.216] has joined ##stm32
2012-05-05T15:28:16 -!- izua [~izua@188.27.188.216] has quit [Changing host]
2012-05-05T15:28:16 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-05T15:28:17 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-05T15:31:48 -!- hackkitten [~jigoku_ai@s529c4932.adsl.wanadoo.nl] has quit [Read error: Connection reset by peer]
2012-05-05T15:32:08 -!- hackkitten [~jigoku_ai@s529c4932.adsl.wanadoo.nl] has joined ##stm32
2012-05-05T15:40:08 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 240 seconds]
2012-05-05T15:41:23 -!- avernos [~avernos@unaffiliated/avernos] has quit [Read error: Connection reset by peer]
2012-05-05T15:42:00 -!- avernos [~avernos@unaffiliated/avernos] has joined ##stm32
2012-05-05T16:02:49 < cjbaird> You still need to find a blogger for your shop, so don't be rude..
2012-05-05T16:03:48 < Laurenceb_> lol
2012-05-05T16:18:33 < hackkitten> yay~
2012-05-05T16:18:42 < hackkitten> no yiffing from dongs
2012-05-05T16:18:45  * hackkitten is safe~ (o/
2012-05-05T16:21:22  * Laurenceb_ points hackkitten to the ignore option
2012-05-05T16:21:44 < zyp> no, that's the dumb way
2012-05-05T16:28:06 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124]
2012-05-05T16:36:06 < jpa-> yeah, better way is to convince Steffanx to finally kick that troll away
2012-05-05T16:37:35 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32
2012-05-05T16:45:25 < specing> Steffanx has kicking powers here?
2012-05-05T16:45:44 < specing> lol
2012-05-05T16:53:24 <+Steffanx> I have specing
2012-05-05T16:54:46 -!- mode/##stm32 [+o Steffanx] by ChanServ
2012-05-05T16:54:48 <@Steffanx> powa :)
2012-05-05T16:54:57 -!- mode/##stm32 [-o Steffanx] by ChanServ
2012-05-05T16:57:09 <+Steffanx> So what brings specing here?
2012-05-05T16:58:19 <+Steffanx> jpa-, the problem is .. I don't care about trolls
2012-05-05T16:59:05 <+Steffanx> I don't take guys like dongs and flyback too serious
2012-05-05T17:00:47 <+Steffanx> Professional troll or professional .. as in skilled engineer etc?
2012-05-05T17:01:07 < zyp> «Before submitting the M10382 module to the reflow soldering process, it is mandatory to bake the module at 125 °C for 3 hours.»
2012-05-05T17:01:19 <+Steffanx> Hehe
2012-05-05T17:01:52 <+Steffanx> "that shit"
2012-05-05T17:03:11 < hackkitten> formal engineering term
2012-05-05T17:03:13  * hackkitten nods sagely
2012-05-05T17:03:21 < jpa-> Steffanx: but you care about me and i hate trolls :)
2012-05-05T17:03:31 <+Steffanx> Arh
2012-05-05T17:08:21 < specing> Dat dilemma
2012-05-05T17:12:41 -!- dekar [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has joined ##stm32
2012-05-05T17:12:44 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-05T17:13:28 < cjbaird> I'm thinking... if dongs gets the blogger, a Furry would be more amenable to doing the nekomimi headband thing to draw traffic to the site than anyone else..
2012-05-05T17:17:58 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Remote host closed the connection]
2012-05-05T17:18:22 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32
2012-05-05T17:34:30 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124]
2012-05-05T17:38:43 < Laurenceb_> http://www.youtube.com/user/kicesie
2012-05-05T17:38:52 < Laurenceb_> found your blogger right there
2012-05-05T17:39:45 <+Steffanx> Laurenceb_ … i really don't want to know what kind of thing you do on the web
2012-05-05T17:41:14 < Laurenceb_> dongs want a presenter/blogger for his webstore
2012-05-05T17:43:07 <+Steffanx> ufcjk!!
2012-05-05T17:46:50 < Laurenceb_> http://answers.yahoo.com/question/index?qid=20101004180104AAGeMmx
2012-05-05T17:47:03 < zyp> sometimes you all should just shut up when you don't have anything useful or interesting to discuss
2012-05-05T17:47:52 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-05T17:50:50 < Tom_itx> just roll her over
2012-05-05T17:52:26 < Laurenceb_> just inflate her
2012-05-05T17:53:44 -!- Tom_L [~Tom@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32
2012-05-05T17:54:10 -!- Tom_L is now known as Guest63168
2012-05-05T17:54:55 -!- Guest63168 [~Tom@ip68-102-202-1.ks.ok.cox.net] has quit [Client Quit]
2012-05-05T18:01:38 -!- Tom_afk [~Tom@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32
2012-05-05T18:01:53 -!- Tom_afk [~Tom@ip68-102-202-1.ks.ok.cox.net] has left ##stm32 []
2012-05-05T18:24:41 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-05T18:32:58 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-05T19:32:43 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 265 seconds]
2012-05-05T19:33:16 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-05T19:40:32 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 255 seconds]
2012-05-05T19:44:05 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-05T19:58:25 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-05T20:06:05 < Thorn> do any arm7tdmi support swd, or is it a cortex only thing?
2012-05-05T20:12:41 < zyp> I was actually thinking about that myself earlier today
2012-05-05T20:12:53 < zyp> I think I checked it once and found that it's a cortex thing
2012-05-05T20:13:48 < Thorn> http://www.arm.com/products/system-ip/debug-trace/coresight-soc-components/index.php
2012-05-05T20:53:50 <+Steffanx> No, you should ignore him aswel
2012-05-05T20:54:04 <+Steffanx> *as well
2012-05-05T20:54:38 <+Steffanx> Ah, that part
2012-05-05T20:56:04 <+Steffanx> We go from baking, to sex and to soldering .. what's next?
2012-05-05T20:57:42 < Thorn> solderong, n. soldering with your dong.
2012-05-05T21:00:06 <+Steffanx> At least he as multiple dongs
2012-05-05T21:01:26 < Thorn> does he have a mini-wave dong?
2012-05-05T21:01:53 <+Steffanx> flyback ..
2012-05-05T21:02:17 <+Steffanx> Take your pills and get some rest
2012-05-05T21:03:12 <+Steffanx> Ok
2012-05-05T21:56:00 -!- TitanMKD is now known as TitanMKD_WA
2012-05-05T21:56:04 -!- TitanMKD_WA is now known as TitanMKD_AW
2012-05-05T22:06:48 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-05T22:34:18 < Laurenceb_> flyback is a witch?
2012-05-05T22:34:26 < Laurenceb_> BURN THE WITCH
2012-05-05T22:36:28 < Laurenceb_> ...
2012-05-05T22:49:17 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-05T22:55:26 < hackkitten> did all channels on freenode suddenly turn weird or what? O.o
2012-05-05T22:55:40  * hackkitten checks the alignment of the planets
2012-05-05T22:55:45 <+Steffanx> Wieso?
2012-05-05T22:59:22 < hackkitten> oh wait, it was just flyback
2012-05-05T22:59:23 < hackkitten> nvm
2012-05-05T22:59:24 < hackkitten> :P
2012-05-05T22:59:44 <+Steffanx> hackkitten is back in Trollville?
2012-05-05T23:00:13 <+Steffanx> It's getting busy over there
2012-05-05T23:00:50 < hackkitten> O.o
2012-05-05T23:22:23 <+Steffanx> Which part you dont understand?
2012-05-05T23:23:24 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-05T23:23:27 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-05T23:30:09 <+Steffanx> WTF flyback ?
2012-05-05T23:30:54 <+Steffanx> When? Where?
2012-05-05T23:32:41 -!- dekar_ [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has joined ##stm32
2012-05-05T23:32:44 -!- mode/##stm32 [+v dekar_] by ChanServ
2012-05-05T23:32:44 <+Steffanx> Hmm, you're on drugs again?
2012-05-05T23:33:03 <+izua> you're flyback is a troll knowyourmeme.com/memes/you-dont-say
2012-05-05T23:33:06 <+Steffanx> I can't make "Flyback you are a troll" from that sentence
2012-05-05T23:34:20  * hackkitten is prepared to leave this channel if her presence isn't appreciated
2012-05-05T23:34:21  * hackkitten shrugs
2012-05-05T23:34:36 <+Steffanx> It's all up to you
2012-05-05T23:34:48 < hackkitten> if you think I'm a troll I'll leave
2012-05-05T23:35:26 <+Steffanx> I still need that "I'm not very serious at all" emoticon
2012-05-05T23:35:41 < specing> trollkitten
2012-05-05T23:35:46 -!- dekar [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has quit [Ping timeout: 252 seconds]
2012-05-05T23:36:12 < hackkitten> whatever... doubt I'd get much use out of this channel for my ARM dev anyway...
2012-05-05T23:36:44 < hackkitten> so yeah, have fun talking about anything but STM32 dev :)
2012-05-05T23:36:45 -!- hackkitten [~jigoku_ai@s529c4932.adsl.wanadoo.nl] has left ##stm32 []
2012-05-05T23:38:19 < specing> ragekitten.
2012-05-05T23:38:50 <+Steffanx> but she's right..
2012-05-05T23:38:59 <+Steffanx> Way too much offtopic talk here
2012-05-05T23:39:25 <+Steffanx> (And I'm participating in that :( )
2012-05-05T23:39:59 <+dekar_> I like the OT
2012-05-05T23:40:50 <+Steffanx> OT as in On-topic or OT as in Off-topic?
2012-05-05T23:40:52 <+dekar_> but you still didn't compile my toolchain, did you?
2012-05-05T23:41:04 <+dekar_> off topic off :)
2012-05-05T23:41:08 <+dekar_> *ofc :)
2012-05-05T23:41:51 <+Steffanx> Haha, nice way to preheat
2012-05-05T23:42:51 <+Steffanx> Uhm, no i didn't dekar_
2012-05-05T23:43:41 <+Steffanx> I should try it dekar_ .. any link to you gh?
2012-05-05T23:44:45 <+dekar_> https://github.com/EliasOenal/TNT
2012-05-05T23:44:54 <+dekar_> it's in the channels topic
2012-05-05T23:45:11 <+Steffanx> Who reads that topic?
2012-05-05T23:45:38 <+dekar_> I do sometimes
2012-05-05T23:45:51 <+Steffanx> I remember that was something with that script.. but i don't rememerb
2012-05-05T23:45:55 <+Steffanx> I had to try something
2012-05-05T23:46:15 <+dekar_> you complained that it didn't wget stuff, so you wanted to add that
2012-05-05T23:46:25 <+Steffanx> Ah, yes
2012-05-05T23:46:36 <+dekar_> or curl, or w/e
2012-05-05T23:46:55 <+dekar_> it's pretty ugly, I don't even know how to properly comment in bash-script
2012-05-05T23:47:25 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds]
2012-05-05T23:47:47 <+dekar_> besides that it worked for me and the toolchain it builds works fine
2012-05-05T23:48:44 <+Steffanx> lol @ gdb part
2012-05-05T23:49:23 < karlp> dekar_: so, will tha tbuild me one that has working stdio from newlib?  doesn't the --without-newlib-syscalls means I'm writing all my own stuff again?
2012-05-05T23:50:01 <+dekar_> karlp, you have to implement the syscalls, it doesn't do that for you
2012-05-05T23:50:38 <+Steffanx> Something for on the wiki, but i have to talk to izua or dekar_ for that
2012-05-05T23:52:11 < karlp> so, what's the difference between esden/summon-arm-toolchain and TNT?
2012-05-05T23:52:29 <+dekar_> karlp, how would working printf look anyway? should it be an usb-serial port printing stuff there? or uart1 maybe?
2012-05-05T23:53:00 <+dekar_> karlp, mine is properly setup for malloc
2012-05-05T23:53:13 <+dekar_> it also makes smaller binaries
2012-05-05T23:55:03 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-05T23:56:09 < karlp> no, as in, I want printf, and I have to provide the getchar/putchar, like in avr-libc :)
2012-05-05T23:56:18 <+dekar_> all the other toolchains I tried have newlib use 4096byte memory pages
2012-05-05T23:56:49 < karlp> so, is this not something that people using summon-arm-toolchain would also want?
2012-05-05T23:57:02 < karlp> or is that meant to support targetting arm7tdmi and a9 and stuff too?
2012-05-05T23:57:09 < Laurenceb_> i use printf from procyon avrlib
2012-05-05T23:57:19 <+dekar_> karlp, just implement _write() to fix printf
--- Day changed Sun May 06 2012
2012-05-06T00:00:09 <+dekar_> so sure we can add a syscall.c to the repo implementing them, if someone cares to write it
2012-05-06T00:02:14 < karlp> dekar_: why _write not write? I'm just reading this: http://sourceware.org/newlib/libc.html#Syscalls
2012-05-06T00:02:32 < karlp> and this is a part of the libc/compiler stuff I'm very weak in understanding.
2012-05-06T00:04:28 < Thorn> write() is a public library function (part of API) and _write() is a syscall that the library uses internally?
2012-05-06T00:04:34 <+dekar_> karlp, I never looked into those, but I had to implement _sbrk() to get malloc working
2012-05-06T00:06:02 -!- TitanMKD_AW [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
2012-05-06T00:07:33 < karlp> so this bit: --disable-newlib-supplied-syscalls
2012-05-06T00:07:41 < karlp> what does that mean I have to supply?
2012-05-06T00:07:57 < karlp> have you got an example repo that uses the tools built by TNT?
2012-05-06T00:08:13 <+dekar_> karlp, that's to prevent newlib from calling the linux kernel or stuff like that (we don't have an OS)
2012-05-06T00:09:33 <+dekar_> karlp, nope, but it should work just like the codesourcery one
2012-05-06T00:10:09 <+dekar_> I guess I can make some demo project later this week
2012-05-06T00:11:25 < karlp> so don't I have to provide a syscalls.c in my project then, that implements all the things from http://sourceware.org/newlib/libc.html#Syscalls copying and pasting those minimal implementations
2012-05-06T00:12:16 <+dekar_> karlp, you have to do that, that's what I did
2012-05-06T00:13:01 <+dekar_> well I only implemented sbrk anyway
2012-05-06T00:13:26 <+dekar_> but I also had to do that for the other toolchains I used, like codesourcery or SAT
2012-05-06T00:13:38 <+dekar_> I guess that's how newlib is supposed to be used
2012-05-06T00:15:39 < karlp> yeah, I don't have it working with SAT either, that's a "real soon now" project to work out how to use all that.
2012-05-06T00:18:40 <+dekar_> well I guess I'll make an example project then, with makefile, linkerscript and startup code. Blinking an LED using the ST lib or something. And if you implement some syscalls, then I can add those as well.
2012-05-06T00:19:51 <+dekar_> well in case anyone actually cares about this toolchain, I am still not too sure about that
2012-05-06T00:20:04 <+dekar_> someone asked me to release it, but I don't remember who it was...
2012-05-06T00:24:55 < karlp> my problem is not being sure how to do the syscalls, so I'm not the one to implement it.
2012-05-06T00:25:08 < karlp> it's the syscalls part I want an example of, not blinking a LED with stdperiph
2012-05-06T00:25:45 < karlp> say I've got some code that can write to the uart, but I want to be able to use write() and printf and puts and so on from stdio,
2012-05-06T00:26:33 <+dekar_> karlp, so make _write() take the chars and output them to uart
2012-05-06T00:26:42 <+dekar_> I don't really get the problem actually
2012-05-06T00:27:59 <+dekar_> once you use printf() your _write() implementation will be called, which then outputs the chars via uart
2012-05-06T00:29:13 <+dekar_> I'd implement it in a singleton-like style, have it initialize UART the first time _write() is called
2012-05-06T00:37:16 <+dekar_> karlp, http://pastebin.com/CwrmnAAG
2012-05-06T01:04:57 < gsmcmullin> karlp: https://github.com/gsmcmullin/libopencm3/blob/master/examples/stm32/f1/stm32-h103/usart_printf/usart_printf.c
2012-05-06T01:05:15 < gsmcmullin> There are other examples in libopencm3 too.
2012-05-06T01:08:21 < Thorn> my generic printf() is like this: int printf((void write)(char c, int param), int param, char *format, ...);
2012-05-06T01:08:57 < Thorn> so you can define things like uart_printf(), lcd_printf(), etc and use them like uart_printf(3, "%d\n", i); // print to uart 3
2012-05-06T01:23:26 < Thorn> wow I just said 'n' to gdb and now my 7-seg digits scan at a rate of about 3Hz instead of 100 (via a timer interrupt)
2012-05-06T01:23:42 <+Steffanx> Fancy
2012-05-06T01:39:00 < Thorn> my CAN transmission hangs if there's nobody to receive it because I wait while((tx_status = CAN_TransmitStatus(CAN1, mailbox)) == CAN_TxStatus_Pending) ;;
2012-05-06T01:39:20 < Thorn> looks like it's pending indefinitely and the bus led is on constantly
2012-05-06T01:39:37 < Thorn> so it's flooding the bus with retries until it succeeds?
2012-05-06T01:40:46 < Thorn> when both boards are on they exchange key press/release messages just fine
2012-05-06T01:47:15 < Thorn> but when I hold one in reset and press a key on the other it hangs the key task and turns the can led on until the second board comes online
2012-05-06T01:48:06 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds]
2012-05-06T02:00:24 < Laurenceb_> http://www.raspberrypi.org/wp-content/uploads/2012/05/MagPi-cover.png
2012-05-06T02:00:27 < Laurenceb_> its soo bad
2012-05-06T02:08:35 -!- Laurenceb_ [~Laurence@host86-177-58-185.range86-177.btcentralplus.com] has quit [Ping timeout: 260 seconds]
2012-05-06T02:30:06 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 250 seconds]
2012-05-06T02:44:52 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Read error: Operation timed out]
2012-05-06T03:22:37 < karlp> Laurenceb: why so much hate?
2012-05-06T03:22:52 < karlp> dekar_: gsmcmullin thanks muchly for the newlib syscalls examples and help,
2012-05-06T03:23:20 < karlp> I got a bit busy brewing tonight, but I've got all the notes saved for next time when I get back to trying out this stuff.
2012-05-06T03:37:45 -!- dekar__ [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has joined ##stm32
2012-05-06T03:37:48 -!- mode/##stm32 [+v dekar__] by ChanServ
2012-05-06T03:41:10 -!- dekar_ [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has quit [Ping timeout: 256 seconds]
2012-05-06T03:43:43 < Thorn> impossible. freertos.org was redesigned and is no longer using frames.
2012-05-06T03:44:01 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-06T03:44:05 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-06T03:46:27 -!- phantoneD is now known as phantoxeD
2012-05-06T03:49:01 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 272 seconds]
2012-05-06T03:51:44 -!- tunilame [~tunilame@41.226.212.24] has joined ##stm32
2012-05-06T03:51:52 < tunilame> hellp
2012-05-06T03:51:55 < tunilame> hello
2012-05-06T04:22:58 -!- tunilame [~tunilame@41.226.212.24] has quit [Remote host closed the connection]
2012-05-06T06:03:52 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-06T06:26:05 -!- avernos_ [~avernos@222.128.145.75] has joined ##stm32
2012-05-06T06:29:58 -!- avernos [~avernos@unaffiliated/avernos] has quit [Ping timeout: 276 seconds]
2012-05-06T07:46:49 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit []
2012-05-06T07:59:12 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-06T09:10:35 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-06T09:17:20 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds]
2012-05-06T09:36:05 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: wut]
2012-05-06T09:36:19 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-06T09:40:29 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-06T09:49:04 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-06T10:15:13 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds]
2012-05-06T11:08:47 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-06T11:28:08 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 255 seconds]
2012-05-06T11:44:28 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-06T11:51:38 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 240 seconds]
2012-05-06T11:54:50 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-06T12:08:05 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 272 seconds]
2012-05-06T12:37:31 -!- izua [~izua@188.27.188.216] has joined ##stm32
2012-05-06T12:37:32 -!- izua [~izua@188.27.188.216] has quit [Changing host]
2012-05-06T12:37:32 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-06T12:37:35 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-06T12:41:38 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 240 seconds]
2012-05-06T12:53:21 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-06T12:55:52 < ratatata> nu
2012-05-06T13:09:34 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32
2012-05-06T14:02:33 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-06T14:02:36 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-06T14:21:18 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 265 seconds]
2012-05-06T15:04:49 < zyp> yes
2012-05-06T15:05:39 < zyp> also, I found why error handling in my i2c code weren't working, I just weren't clearing the error flags properly
2012-05-06T15:05:46 < zyp> they have to be explicitly cleared
2012-05-06T15:06:55 < zyp> I think 1 byte transfers are always a special case, but 2 byte transfers depends on the mode
2012-05-06T15:07:35 < zyp> http://bin.jvnv.net/f/pUrXj.png <- my code is able to recover from stuff like NAK and continue on with the next transfer now, without locking up
2012-05-06T15:25:15 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection]
2012-05-06T16:18:38 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Read error: Connection reset by peer]
2012-05-06T16:19:36 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-06T16:26:03 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Read error: Connection reset by peer]
2012-05-06T16:43:10 -!- neuro-sys [~neuro@88.241.81.83] has joined ##stm32
2012-05-06T16:43:18 -!- neuro-sys [~neuro@88.241.81.83] has quit [Changing host]
2012-05-06T16:43:18 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-06T17:06:21 -!- ziph [~ziph@office.bitplantation.com] has quit [Quit: ziph]
2012-05-06T17:15:18 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-06T17:39:01 < Laurenceb_> sup
2012-05-06T17:39:21 < jpa-> temperature
2012-05-06T17:39:32 < Laurenceb_> 18C
2012-05-06T17:40:08 < jpa-> 24°C
2012-05-06T17:41:39 < Tectu> wtf?
2012-05-06T17:45:05 -!- Tom_L [~Tom@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32
2012-05-06T17:45:31 -!- Tom_L is now known as Guest47764
2012-05-06T17:45:54 < Laurenceb_> what?
2012-05-06T17:46:14 -!- Guest47764 [~Tom@ip68-102-202-1.ks.ok.cox.net] has left ##stm32 []
2012-05-06T17:50:44 < Laurenceb_> and better performance
2012-05-06T17:50:52 < Laurenceb_> what is qr ladybird?
2012-05-06T17:51:04 < Laurenceb_> ah cool
2012-05-06T17:52:04 < Laurenceb_> looks cool
2012-05-06T17:52:12 < Laurenceb_> what processor?
2012-05-06T17:53:33 < Laurenceb_> ah
2012-05-06T18:34:45 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-06T19:26:35 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-06T19:26:51 < ratatata> nu
2012-05-06T19:54:57 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Quit: Leaving.]
2012-05-06T20:00:03 -!- TitanMKD_AW [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-06T20:00:25 -!- TitanMKD_AW is now known as TitanMKD
2012-05-06T20:11:37 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-06T21:03:34 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-06T21:07:48 < Thorn> my ft2232h + mcp2515 usb/can adapter kinda works
2012-05-06T21:08:12 <+Steffanx> :)
2012-05-06T21:08:27 < Thorn> well, it's more of a sniffer right now
2012-05-06T21:09:06 < Thorn> but it works in a crappy way, namely by polling. I wonder if ftdi supports interrupts in any way
2012-05-06T21:10:21 < Thorn> right now it's a mpsse command to read the status of mcp2515 every ms, which is pretty horrible
2012-05-06T21:11:17 < Thorn> but at least I can see board button presses on the PC via CAN
2012-05-06T21:28:34 -!- tavish_ [~tavish@59.177.9.244] has joined ##stm32
2012-05-06T21:30:12 -!- tavish__ [~tavish@120.56.136.227] has joined ##stm32
2012-05-06T21:33:09 -!- tavish_ [~tavish@59.177.9.244] has quit [Ping timeout: 255 seconds]
2012-05-06T21:34:32 -!- tavish_ [~tavish@59.177.4.51] has joined ##stm32
2012-05-06T21:34:44 -!- tavish__ [~tavish@120.56.136.227] has quit [Ping timeout: 245 seconds]
2012-05-06T21:34:48 -!- tavish_ [~tavish@59.177.4.51] has quit [Changing host]
2012-05-06T21:34:48 -!- tavish_ [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-06T21:34:59 -!- tavish_ is now known as tavish1
2012-05-06T21:40:53 -!- tavish1 [~tavish@unaffiliated/tavish] has quit [Ping timeout: 248 seconds]
2012-05-06T21:42:24 -!- tavish1 [~tavish@120.56.137.149] has joined ##stm32
2012-05-06T21:43:58 -!- tavish1 [~tavish@120.56.137.149] has quit [Changing host]
2012-05-06T21:43:58 -!- tavish1 [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-06T21:53:19 -!- tavish1_ [~tavish@59.177.9.225] has joined ##stm32
2012-05-06T21:54:55 -!- tavish1 [~tavish@unaffiliated/tavish] has quit [Ping timeout: 276 seconds]
2012-05-06T21:56:22 -!- tavish1_ [~tavish@59.177.9.225] has quit [Changing host]
2012-05-06T21:56:22 -!- tavish1_ [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-06T21:56:30 -!- tavish1_ is now known as tavish1
2012-05-06T22:02:10 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-06T22:20:58 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-06T22:28:02 -!- ben1066 [~quassel@host109-152-57-231.range109-152.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-06T22:29:15 -!- ben1066 [~quassel@host109-152-57-231.range109-152.btcentralplus.com] has joined ##stm32
2012-05-06T22:58:45 -!- tavish1 [~tavish@unaffiliated/tavish] has quit [Ping timeout: 248 seconds]
2012-05-06T23:06:48 -!- tavish1 [~tavish@59.177.8.246] has joined ##stm32
2012-05-06T23:10:34 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-06T23:10:37 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-06T23:12:27 -!- tavish1 [~tavish@59.177.8.246] has quit [Ping timeout: 272 seconds]
2012-05-06T23:21:20 <+dekar__> Thorn, usb doesn't support interrupts to begin with, it's constantly polling anyway
2012-05-06T23:21:45 < Thorn> interrupt transfers?
2012-05-06T23:21:56 <+dekar__> that's just a name, it's still polling
2012-05-06T23:22:24 < Thorn> yes but it's much easier on the bus and the pc too
2012-05-06T23:22:36 <+dekar__> yet the usb controller is polling
2012-05-06T23:22:57 <+dekar__> it's a constant load on the bus and thus limits the total throughput
2012-05-06T23:23:16 <+dekar__> also I don't think the FTDI supports any kind of interrupt
2012-05-06T23:23:21 < Thorn> it looks like there's some kind of interrupt support in a host bus mode rather than mpsse
2012-05-06T23:23:50 < Thorn> mpsse has "wait for high/low" commands, but they don't appear to be very useful
2012-05-06T23:23:56 <+dekar__> isn't anything the FTDI does build on top of MPSSE?
2012-05-06T23:26:38 < Thorn> no it's the same thing as those mpsse commands
2012-05-06T23:26:43 < Thorn> probably
2012-05-06T23:27:31 < Thorn> they apparently recommend the following: send this wait command, then read commands. mpsse will execute those when the level on the wait pin is correct
2012-05-06T23:28:03 < Thorn> then it should be possible to read that data asynchronously in an application
2012-05-06T23:28:35 < Thorn> but if the transition never happens mpsse is stuck until reset
2012-05-06T23:29:49 < Thorn> this project seems to be a much better idea https://github.com/gsmcmullin/usbcan
2012-05-06T23:30:40 < Thorn> unfortunately you need a f105 or f107 because in 103 CAN can't be used together with usb
2012-05-06T23:33:01 < Thorn> anyway this CAN support was a last minute addition to my ft2232h board, I guess it's a good thing that it works at all
2012-05-06T23:36:58 < Thorn> for a more serious use I think a stm32-based HID adapter would be better
2012-05-06T23:42:07 -!- tunilame [~tunilame@197.0.151.134] has joined ##stm32
2012-05-06T23:42:17 < tunilame> hello
2012-05-06T23:42:36 < zyp> hi
2012-05-06T23:42:46 <+dekar__> yeah, I am also in favor of abusing HID for non HID purposes :)
2012-05-06T23:42:48 < tunilame> I am tring to load the lcd.elf example into a STM32L-Discovery, but I could not
2012-05-06T23:43:00 < tunilame> it succeed loading, but nothing happen
2012-05-06T23:44:20 < Thorn> if I remeber the HID spec it defines possible applications very broadly, so I guess this hardly qualifies as abuse :)
2012-05-06T23:44:45 < tunilame> (I'm using arm-none-eabi-gdb to load)
2012-05-06T23:45:00 <+dekar__> people tend to accuse me of abusing it, especially in channels like #libusb
2012-05-06T23:45:41 <+dekar__> tunilame, elf sounds wrong
2012-05-06T23:45:52 < Thorn> didn't know about this channel
2012-05-06T23:46:27 < Thorn> .elf should work with gdb (and also directly with openocd)
2012-05-06T23:46:44 < tunilame> @dekar_ but, I did it 3 months ago, and now I forgot the command I typed before sending...
2012-05-06T23:47:57 < Thorn> tunilame: what jtag adapter are you using? (st-link, j-link etc)
2012-05-06T23:48:12 < tunilame> st-link
2012-05-06T23:48:28 < tunilame> (texane/stlink if that is your quesiton)
2012-05-06T23:50:55 -!- ben1066_ [~quassel@host109-152-58-224.range109-152.btcentralplus.com] has joined ##stm32
2012-05-06T23:50:57 <+dekar__> my openOCD script for flashing looks like this: http://pastebin.com/ZSCjsABy
2012-05-06T23:50:58 < Thorn> does stlink print any error messages?
2012-05-06T23:52:03 < tunilame> no, it does not
2012-05-06T23:53:03 < tunilame> and as I said, I had the same problem before, and someone in this channel resolve it (with a command I think), but I forgot :(
2012-05-06T23:53:16 < Thorn> then maybe the chip is programmed correctly but doesn't run? e.g. it's in reset or boot pins are set incorrectly, etc
2012-05-06T23:53:52 -!- ben1066 [~quassel@host109-152-57-231.range109-152.btcentralplus.com] has quit [Ping timeout: 276 seconds]
2012-05-06T23:55:29 < tunilame> how to change that then? (I am new with stm32 ... )
--- Day changed Mon May 07 2012
2012-05-07T00:01:34 < Thorn> boot pins are set with jumpers on discovery boards iirc, but if you didn't touch those they should be set correctly
2012-05-07T00:08:05 < tunilame> here is the msg on gdb: http://pastebin.com/uXaLcEbq
2012-05-07T00:08:24 < tunilame> it loads quickly with success
2012-05-07T00:16:22 < Thorn> what happens if you type 'run'?
2012-05-07T00:17:09 < zyp> 21 kB/s? somebody finally fixed slow flashing?
2012-05-07T00:26:18 < tunilame> green/red led on the top begins to blink
2012-05-07T00:26:36 < tunilame> (like when I load things on it)
2012-05-07T00:26:52 < tunilame> @zyp: that's not true, that is my problem :(
2012-05-07T00:26:54 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-07T00:27:15 < zyp> tunilame, what do you mean?
2012-05-07T00:29:09 < zyp> oh, wait, you loaded to ram, not flash
2012-05-07T00:29:37 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Remote host closed the connection]
2012-05-07T00:29:57 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 248 seconds]
2012-05-07T00:30:41 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-07T00:32:14 < tunilame> @zyp: when I send the 32l_dac, it is less that that, and it works. And yes, I loaded to ram
2012-05-07T00:32:35  * CARL_SAGAN BILLIONS AND BILLONS OF SHIFT REGISTERS
2012-05-07T00:32:55 < zyp> tunilame, so, what is your problem?
2012-05-07T00:33:43 < tunilame> the 32l_lcd d'ont want to work on stm32l-discovery, I send it, it sended successfully but there is nothing on the LCD
2012-05-07T00:34:16 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 250 seconds]
2012-05-07T00:34:17 -!- sdfklsgfjksgdfjk [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-07T00:34:20 < tunilame> I did 6 moths ago (with karlp I think) and now, I forgot how I did it!
2012-05-07T00:34:27 -!- sdfklsgfjksgdfjk is now known as phantoxeD
2012-05-07T00:36:03 < zyp> so, when you hit run, something executes
2012-05-07T00:36:07 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 276 seconds]
2012-05-07T00:36:23 < zyp> did you try interrupting it to see what it were doing?
2012-05-07T00:36:39 < tunilame> @zyp: yeah, but nothing happened on LCD. How to interrupt it?
2012-05-07T00:37:38 < zyp> ctrl-c
2012-05-07T00:38:15 < tunilame> and then what?
2012-05-07T00:38:27 < zyp> what gets printed?
2012-05-07T00:39:05 < tunilame> ^C0x080012c0 in ?? ()
2012-05-07T00:39:22 < zyp> right, that's a flash address
2012-05-07T00:39:58 < zyp> you loaded your application in ram, then executed whatever were present in flash
2012-05-07T00:40:16 < tunilame> so what do I need to do then?
2012-05-07T00:40:36 < tunilame> (but it needs to make more time to load, logically, no?)
2012-05-07T00:41:03 < zyp> you probably have to change the boot0 pin to execute from ram, or recompile the binary to be placed in flash
2012-05-07T00:41:43 < zyp> I've never tried loading to ram, but I can imagine that it's faster than loading to flash
2012-05-07T00:42:08 < zyp> so I don't think 21 kB/s to ram is unrealistic
2012-05-07T00:42:31 < tunilame> but for the 32l_lcd example, compiling make only an elf file, and I need a bin one to load to flash, no?
2012-05-07T00:42:40 < zyp> no
2012-05-07T00:43:03 < zyp> you need an elf linked for 0x8000000 rather than 0x20000000
2012-05-07T00:44:50 < tunilame> and how to do that?
2012-05-07T00:48:04 < zyp> no idea, check the build options for the example
2012-05-07T00:49:57 < tunilame> is there any other example that do it, so I can compare?
2012-05-07T00:51:06 < zyp> I don't know which examples you are talking about
2012-05-07T00:51:13 < zyp> the ones bundled with texane/stlink?
2012-05-07T00:51:58 < zyp> ah, yes
2012-05-07T00:52:46 < tunilame> yes: texane/stlink/examples (32l_dac/32l_lcd/blink_flash)
2012-05-07T00:54:40 < zyp> try the one from 32l_dac
2012-05-07T00:55:26 < tunilame> this one works, I already tried it
2012-05-07T00:55:26 < zyp> i.e. replace linker_stm32.lds in 32l_lcd with the contents from stm32_flash.ld from 32l_dac
2012-05-07T00:55:38 < tunilame> ah, ok
2012-05-07T00:55:52 < zyp> hmm, not sure it's compatible though
2012-05-07T00:56:06 < zyp> linker_stm32.lds is ram only
2012-05-07T00:56:21 < zyp> but adding flash to it shouldn't be very hard
2012-05-07T00:56:24 < tunilame> I'll try it and inform you
2012-05-07T00:57:08 < zyp> what's the amount of flash in the 32l?
2012-05-07T00:57:46 < zyp> 128k
2012-05-07T00:59:22 < zyp> http://paste.jvnv.net/view/A1Nis <- this should work
2012-05-07T01:00:24 < zyp> provided that the startup code does proper copying of the .data segment
2012-05-07T01:00:57 < zyp> http://paste.jvnv.net/view/x1pr1 <- if not, try this
2012-05-07T01:03:30 < tunilame> first one dont compile. I try the second link
2012-05-07T01:05:53 < tunilame> second one don't work too (overlapse problem)
2012-05-07T01:05:59 < zyp> huh?
2012-05-07T01:06:05 < zyp> which error do you get?
2012-05-07T01:06:24 < zyp> ah, right
2012-05-07T01:07:20 < zyp> line 12, forgot to change that, it's supposed to say ORIGIN(flash)
2012-05-07T01:09:18 < tunilame> corrected, compiled and loaded, but nothing happened on  lcd (using run on gdb)
2012-05-07T01:09:28 < tunilame> (as usual)
2012-05-07T01:09:37 < zyp> so, what does it say when interrupted?
2012-05-07T01:10:35 < tunilame> ^C0x08001a7c in ?? ()
2012-05-07T01:11:52 < zyp> ok, then I have no idea
2012-05-07T01:12:30 < zyp> what was the output from the load command?
2012-05-07T01:13:24 < zyp> did you reload the file properly before you flashed it?
2012-05-07T01:13:48 < zyp> hmm, it's compiled with debug info, so it should not say «in ??»
2012-05-07T01:13:59 < zyp> so I suspect you didn't reload the file
2012-05-07T01:14:08 < tunilame> I "load" it
2012-05-07T01:14:28 < zyp> yes, but that just loads the old file
2012-05-07T01:14:39 < zyp> use «file blah.elf» first to reload the file to gdb
2012-05-07T01:14:40 < zyp> then load
2012-05-07T01:14:41 < tunilame> no, I "make" it before
2012-05-07T01:14:46 < tunilame> ok
2012-05-07T01:15:36 < zyp> I have an alias in gdb that performs both file and load as a single operation
2012-05-07T01:16:43 < zyp> load should give you a start address of 0x800xxxx and not 0x2000xxxx
2012-05-07T01:16:55 < tunilame> same result with "file" then "load"...
2012-05-07T01:17:19 < zyp> so what is the output from load?
2012-05-07T01:18:15 < tunilame> something changed now, when I made Ctrl+C, I had a different result: Program received signal SIGTRAP, Trace/breakpoint trap.
2012-05-07T01:18:15 < tunilame> 0x080012c2 in RCC_APB2PeriphResetCmd ()
2012-05-07T01:18:39 < zyp> yes, that looks more sensible
2012-05-07T01:22:41 < tunilame> but it is stilling the same message on Ctrl+C ...
2012-05-07T01:22:41 < tunilame> :(
2012-05-07T01:24:28 < Thorn> bt ?
2012-05-07T01:25:51 < tunilame> what?
2012-05-07T01:26:42 < Thorn> what does gdb say when you issue a bt command?
2012-05-07T01:30:18 < tunilame> when I type "bt" on gdb, here is the output: http://pastebin.com/5ZC42z0Y
2012-05-07T01:30:28 < tunilame> (btw, what does bt means?)
2012-05-07T01:34:41 < zyp> backtrace
2012-05-07T01:35:28 < zyp> i.e. it gives you the call stack, that tells you how you ended up at the point in code where you are now
2012-05-07T01:39:23 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 272 seconds]
2012-05-07T01:43:39 < Thorn> these examples use the std periph  library, don't they
2012-05-07T01:44:58 < zyp> yep
2012-05-07T01:45:29 < Thorn> so you'd need to make Reset_Handler entry point
2012-05-07T01:45:36 < zyp> but this thing don't have any proper startup code
2012-05-07T01:51:29 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection]
2012-05-07T01:51:43 < tunilame> Have to go, I'll search more tommorow, thanks for your help :)
2012-05-07T01:52:28 < zyp> no problems
2012-05-07T02:21:01 -!- tunilame_ [~tunilame@197.0.151.134] has joined ##stm32
2012-05-07T02:22:43 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 276 seconds]
2012-05-07T02:30:15 -!- tunilame_ [~tunilame@197.0.151.134] has quit [Quit: Quitte]
2012-05-07T02:31:39 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-07T02:31:43 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-07T02:35:55 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 256 seconds]
2012-05-07T02:43:37 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Remote host closed the connection]
2012-05-07T02:44:21 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-07T03:01:04 -!- dekar_ [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has joined ##stm32
2012-05-07T03:01:07 -!- mode/##stm32 [+v dekar_] by ChanServ
2012-05-07T03:01:31 -!- dekar__ [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has quit [Read error: Connection reset by peer]
2012-05-07T03:35:54 -!- zippe [~Adium@173.11.99.161] has joined ##stm32
2012-05-07T04:13:38 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 240 seconds]
2012-05-07T04:13:52 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Ping timeout: 276 seconds]
2012-05-07T04:16:22 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32
2012-05-07T04:29:38 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Remote host closed the connection]
2012-05-07T04:32:57 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-07T04:33:48 -!- ziph [~ziph@office.bitplantation.com] has joined ##stm32
2012-05-07T04:44:25 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 276 seconds]
2012-05-07T04:48:40 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-07T05:09:39 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit []
2012-05-07T05:35:11 < Tom_itx> is that a FedUp delivery?
2012-05-07T06:43:48 -!- tunilame [~tunilame@197.0.151.134] has quit [Remote host closed the connection]
2012-05-07T06:54:39 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-07T07:01:43 -!- Evie [~null@205.233.35.26] has quit [Ping timeout: 255 seconds]
2012-05-07T07:29:28 -!- Evie [~null@205.233.35.25] has joined ##stm32
2012-05-07T07:33:33 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-07T07:33:36 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-07T07:38:54 -!- Evie [~null@205.233.35.25] has quit [Ping timeout: 245 seconds]
2012-05-07T08:06:33 -!- Evie [~null@205.233.35.25] has joined ##stm32
2012-05-07T08:30:05 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer]
2012-05-07T09:36:33 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-07T09:38:35 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-07T09:53:35 < zippe> Has anyone had issues with the ST32F100 UART1 output seeming to be very weak?
2012-05-07T09:54:14 < zippe> I'm only seeing ~1vp-p driving a standard receiver; unloaded it swings 3.3v as expected
2012-05-07T09:55:17 < zyp> sounds strange, I guess you've checked that the receiver aren't pulling it low?
2012-05-07T10:05:23 < ziph> Yeah, that is weird, I've never seen a UART in an MCU that wasn't just the regular pin drivers.
2012-05-07T10:06:18 < zyp> I'd put a resistor between, measure the voltage drop and infer the current
2012-05-07T10:07:06 < ziph> Or check the IBIS file to make sure there isn't some special definition for those pins and then go back to assuming you've messed up somehow. ;)
2012-05-07T10:07:25 < zyp> because I find it more likely that something is driving it low in the other end than it having weak drivers
2012-05-07T10:10:07 < Tectu> okay, i am missing stubs, right?   http://pastebin.com/Ge3TKh6R
2012-05-07T10:11:08 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Ping timeout: 272 seconds]
2012-05-07T10:11:23 < Tectu> where do i have to put the stubs into? the startup code?
2012-05-07T10:14:02 < zyp> anywhere, they are located by symbol name
2012-05-07T10:14:18 < Tectu> zyp, okay, were do i find the stubs? this only for USART  http://sites.google.com/site/stm32discovery/open-source-development-with-the-stm32-discovery/getting-newlib-to-work-with-stm32-and-code-sourcery-lite-eabi
2012-05-07T10:14:21 < Tectu> and i need sdcard
2012-05-07T10:14:44 < Tectu> i thought that stubs are the same, not depending on what 'client'
2012-05-07T10:15:32 < zyp> try linking with libnosys, that's supposed to provide dummy stubs
2012-05-07T10:18:40 < Tectu> can you explain that?
2012-05-07T10:19:06 < Tectu> where do i get libnosys from?
2012-05-07T10:19:10 < Tectu> is it 3th party package?
2012-05-07T10:19:14 < zyp> the reason that stuff is stubbed out is that it's platform/hardware specific, so you are supposed to implement those stubs as required by your application
2012-05-07T10:19:27 < Tectu> right, i got that
2012-05-07T10:19:39 < zyp> you should get libnosys along with newlib
2012-05-07T10:19:47 < Tectu> i have newlib
2012-05-07T10:19:57 < Tectu> so it's just a linker flag?
2012-05-07T10:20:03 < zyp> then just link with -lnosys
2012-05-07T10:20:30 < Tectu> in LDFLAGS, i guess?
2012-05-07T10:20:44 < zyp> wherever you're linking with libs in your makefile.
2012-05-07T10:21:28 < zyp> ew
2012-05-07T10:21:35 < Tectu> zyp, same error about missing stubs
2012-05-07T10:22:40 < zyp> really?
2012-05-07T10:22:56 < Tectu> yes?
2012-05-07T10:23:02 < Tectu> i just did  -lnosys in linker
2012-05-07T10:23:06 < Tectu> gave it a make
2012-05-07T10:23:09 < Tectu> same error as pasted
2012-05-07T10:23:29 < Tectu> undefined reference to '_read'   etc
2012-05-07T10:23:30 < zyp> paste the full output again
2012-05-07T10:23:50 < Tectu> sure
2012-05-07T10:25:44 < Tectu> zyp, first, makefile: http://pastebin.com/S1SQP9DX
2012-05-07T10:26:07 < Tectu> here make output:    http://pastebin.com/UHmZiHTg
2012-05-07T10:26:48 < zyp> move -lnosys to the end of the linking command
2012-05-07T10:27:00 < Tectu> might you tell me why?
2012-05-07T10:27:11 < zyp> ld tends to be picky about the order it's expected to find the symbols in
2012-05-07T10:27:19 < Tectu> still the same error
2012-05-07T10:27:36 < Tectu> i use summon arm toolchain, it uses newlib
2012-05-07T10:27:42 < Tectu> can i check if libnosys is there?
2012-05-07T10:27:47 < Tectu> or would it give an error
2012-05-07T10:28:03 < zyp> should give an error if not present
2012-05-07T10:28:30 < Tectu> then it's there
2012-05-07T10:28:32 < Tectu> still same error
2012-05-07T10:28:47 < zyp> anyway, if you need file system stuff you'll end up having to write your own stubs anyway
2012-05-07T10:28:53 < zyp> so you can just get started on that
2012-05-07T10:29:09 < Tectu> :S
2012-05-07T10:29:17 < Tectu> seriously?
2012-05-07T10:29:22 < Tectu> i got an SD example to my board
2012-05-07T10:29:25 < Tectu> which runs with KEIL
2012-05-07T10:29:29 < Tectu> and i just try to do it without an IDE
2012-05-07T10:29:36 < Tectu> classig with vim and Make D:
2012-05-07T10:30:31 < Tectu> shouldn't we be able to make it working?
2012-05-07T10:31:20 < zyp> I meant, if you need the posix file system stuff, you need to make libc aware of the underlying file system lib
2012-05-07T10:31:38 < zyp> and that's part of the purpose of the stubs
2012-05-07T10:31:41 < Tectu> ah, so i should be able to fix this with your help?
2012-05-07T10:31:50 < Tectu> it's just FATFS
2012-05-07T10:31:56 < Tectu> am i missunderstanding you?
2012-05-07T10:32:20 < zyp> are you calling fatfs_*() functions directly?
2012-05-07T10:32:45 < zyp> if so, you don't need to make libc aware of fatfs
2012-05-07T10:33:01 < zyp> http://sites.google.com/site/stm32discovery/open-source-development-with-the-stm32-discovery/getting-newlib-to-work-with-stm32-and-code-sourcery-lite-eabi <- try going with this
2012-05-07T10:33:15 < Tectu> i honestly don't know. i just try to bring the whole example to run
2012-05-07T10:33:25 < zyp> make a new .c-file with the contents from there, then compile that along with the rest
2012-05-07T10:33:27 < Tectu> example does contain fatfs and spi_sd_card code
2012-05-07T10:33:38 < Tectu> lemme try
2012-05-07T10:34:03 < Tectu> zyp, does it matter that that stuff is about USART?
2012-05-07T10:34:11 < zyp> no
2012-05-07T10:34:33 < Tectu> compiles without error
2012-05-07T10:34:41 < zyp> good
2012-05-07T10:34:50 < Tectu> do i still need -lnosys?
2012-05-07T10:34:55 < zyp> no
2012-05-07T10:35:09 < zyp> that .c file you now made does the same purpose
2012-05-07T10:35:25 < Tectu> ok, i thought so
2012-05-07T10:35:32 < Tectu> is there a non USART related version of it?
2012-05-07T10:36:21 < zyp> just strip out the USART stuff if you don't need it
2012-05-07T10:36:55 < Tectu> k
2012-05-07T10:36:56 < zyp> the point of that is to be able to call printf() and having it output directly to an USART
2012-05-07T10:36:57 < Tectu> thank you :)
2012-05-07T10:37:10 < Tectu> i have another solution of printf
2012-05-07T10:37:17 < Tectu> 1kb without float support, 3kb with
2012-05-07T10:37:30 < Tectu> i heard that newlib printf() is about 30kB?
2012-05-07T10:37:40 < zyp> no idea
2012-05-07T10:37:44 < zyp> haven't checked
2012-05-07T10:38:33 < Tectu> but to that file....   int _read();    it does only contain USART related stuff
2012-05-07T10:38:41 < Tectu> are you sure that it workis with other 'devices' as well?
2012-05-07T10:38:51 < Tectu> it looks like _read is only working for USART to me
2012-05-07T10:39:23 < zyp> of course
2012-05-07T10:39:32 < zyp> what do you want it to work with?
2012-05-07T10:39:46 < Tectu> sd card
2012-05-07T10:39:59 < zyp> you said you were using fatfs for that
2012-05-07T10:40:04 < Tectu> yes
2012-05-07T10:40:15 < zyp> so you would call fatfs_read(), bypassing libc read() entirely
2012-05-07T10:41:13 < zyp> cute
2012-05-07T10:41:27 < Tectu> zyp, not sure if we understand us the right way
2012-05-07T10:41:58 < Tectu> dongs, i got this one from waveshare:   http://www.ebay.com/itm/STM32-Development-Board-STM32F103VCT6-3-2-TFT-LCD?item=260775580114&cmd=ViewItem&_trksid=p5197.m7&_trkparms=algo%3DLVI%26itu%3DUCI%26otn%3D2%26po%3DLVI%26ps%3D63%26clkid%3D8242696251641623215
2012-05-07T10:42:32 < zyp> Tectu, that's because you're confused about what you want to do
2012-05-07T10:42:38 < Tectu> zyp: i got an stm32f103 board (that one above). it's shipped with a CD and some examples. one of them is an SD example, inside the example folder, there is   fatfs and spi_sd_card
2012-05-07T10:42:45 < Tectu> now i just want to run that example
2012-05-07T10:42:54 < Tectu> but when i try to compile with my makefile
2012-05-07T10:43:27 < Tectu> i try to compile the fatfs and sd_card folder with my makefile (inside a working project) i get the error about missing stubs, which i pasted
2012-05-07T10:43:31 < Tectu> do you understand?
2012-05-07T10:43:45 < zyp> yes
2012-05-07T10:43:51 < zyp> you said it compiled when you added the extra .c file, that's good, try running the result
2012-05-07T10:43:56 < zyp> it would probably work
2012-05-07T10:44:19 < Tectu> ok, give me a few moments
2012-05-07T10:45:34 < Tectu> dongs, isn't that a pure adapter without anything?
2012-05-07T10:45:53 < Tectu> ah, that one
2012-05-07T10:45:57 < Tectu> i was not sure, that one or the one i linked
2012-05-07T10:46:03 < Tectu> decided for the one i linked :D
2012-05-07T10:46:48 < Tectu> dongs, wtf
2012-05-07T10:49:36 < Tectu> dongs, i am never sure if that are 'real/orginal' devices or copied stuff
2012-05-07T10:50:01 < zyp> if it works, it works
2012-05-07T10:50:51 < Tectu> i pay 15$ here for one thing -.-
2012-05-07T10:50:53 < Tectu> that sucks
2012-05-07T10:51:42 < Tectu> switzerland is so expensive
2012-05-07T10:52:39 < zyp> ha, try norway
2012-05-07T10:54:07 < Tectu> zyp, tell me moe
2012-05-07T10:54:09 < Tectu> more
2012-05-07T10:54:56 < zyp> no, it's more like «pay me more»
2012-05-07T10:56:15 < zyp> I apparently dicked up the accels on both the boards I assembled the other day
2012-05-07T10:56:20 < Tectu> zyp, looks like i have problem with usart now
2012-05-07T10:56:39 < zyp> no idea, neither accel die nor mag die does respond
2012-05-07T10:56:53 < zyp> I'm suspecting bad solder connections
2012-05-07T10:56:56 < zyp> yes
2012-05-07T10:57:16 < Thorn> what should I use for usb on stm32f1, the st library or libopencm3? I'm going to do HID
2012-05-07T10:57:28 < zyp> whatever you want to use
2012-05-07T10:57:44 < Tectu> Thorn, HID?
2012-05-07T10:57:50 < zyp> so does libopencm3
2012-05-07T10:58:11 < zyp> go with the one that fits with the rest of the shit you are doing
2012-05-07T10:58:25 < Thorn> wtf, st.com doesn't load yet again
2012-05-07T10:58:34 < zyp> I'd probably go with libopencm3 if I had to choose
2012-05-07T10:58:46 < Tectu> zyp, could it be that there is USART problem now?
2012-05-07T10:58:51 < zyp> st.com works for me
2012-05-07T10:59:13 < zyp> Tectu, no idea, you've probably messed up something
2012-05-07T10:59:21 < zyp> Tectu, try understanding what you are doing
2012-05-07T10:59:24 < Thorn> dns resolution error
2012-05-07T10:59:43 < Tectu> zyp, sure, working on it
2012-05-07T11:14:30 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-07T11:27:09 < Tectu> zyp, i see a problem
2012-05-07T11:27:14 < Tectu> guess it will work soon
2012-05-07T11:30:53 < zyp> good
2012-05-07T11:34:53 < Tectu> zyp, looks like it works
2012-05-07T11:34:59 < Tectu> not sure if SD read/write works too
2012-05-07T11:35:05 < Tectu> but USART works and no compile errors
2012-05-07T11:46:27 < Tectu> zyp, hardfault at writing to sd card
2012-05-07T11:51:49 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 272 seconds]
2012-05-07T12:07:56 < Tectu> zyp, nope, no SD card interraction
2012-05-07T12:08:00 < Tectu> tried under keil, works there
2012-05-07T12:08:12 < Tectu> (with just copying the example)
2012-05-07T12:08:16 < Tectu> guess stubs don't work
2012-05-07T12:13:39 < Tectu> zyp, where could be the problem? 'wrong' stubs?
2012-05-07T12:18:29 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-07T12:19:15 < zyp> yep
2012-05-07T12:19:40 < zyp> I'd start by checking that malloc works properly
2012-05-07T12:20:00 < zyp> malloc failing to allocate memory would be the most likely reason for a hardfault
2012-05-07T12:20:12 < zyp> and malloc depends on a working sbrk implementation
2012-05-07T12:20:49 < Tectu> zyp, not sure if it is hardfault or nmi or whatever, just the timer which blinks the led stops -> no blinking
2012-05-07T12:21:30 < zyp> why do you say hardfault when you're not sure? :p
2012-05-07T12:21:36 < Tectu> sorry, sir :)
2012-05-07T12:22:15 < Tectu> zyp, so, what would you suggest? sure that it's malloc?
2012-05-07T12:22:18 < Tectu> or it could be?
2012-05-07T12:22:23 < Tectu> it's not hardfault, probably :D
2012-05-07T12:23:00 < zyp> dongs, that's very possible :p
2012-05-07T12:27:06 < karlp> if tunilame comes by again, tell him not to use the examples in the texane/stlink directory.
2012-05-07T12:27:23 < karlp> tell him to use the libopencm3 examples, or mine, or anyone elses.
2012-05-07T12:27:49 < karlp> too many of the ones in the texane tree don't work, or don't work as well as they should, and it's just confusing.
2012-05-07T12:30:46 < zyp> karlp, I considered doing just that
2012-05-07T12:31:05 < zyp> because the one he was struggling with was clearly bad
2012-05-07T12:33:28 < karlp> yeah, this version is much improved: https://github.com/karlp/kkstm32_base/tree/master/example/32l_lcd
2012-05-07T12:33:50 < karlp> and people do like having something use the lcd on the 32L discovery board,
2012-05-07T12:34:05 < Tectu> zyp, when i call malloc, the next printf() does not get executed -> some errors
2012-05-07T12:34:20 < karlp> but I'm trying to get the examples out of the texane/stlink tree, it makes too much churn to try and merge
2012-05-07T12:35:08 < zyp> Tectu, I'd say learn what sbrk is supposed to do, fire up the debugger, set a breakpoint on sbrk and check that it does what it's supposed to
2012-05-07T12:35:59 < Tectu> ok, thanks zyp
2012-05-07T12:52:01 < Tectu> zyp, would it be still a way to try libnosys?
2012-05-07T12:53:15 < zyp> ask somebody who have actually used it, I've never. :p
2012-05-07T12:53:44 < Tectu> did someone here ever use libnosys? D
2012-05-07T12:53:45 < Tectu> :D
2012-05-07T13:00:32 -!- dekar_ [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep]
2012-05-07T13:10:05 -!- dekar [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has joined ##stm32
2012-05-07T13:10:06 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-07T13:56:41 -!- dekar [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep]
2012-05-07T14:24:48 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-07T14:26:25 -!- Tom_L [~Tom@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32
2012-05-07T14:26:32 -!- Tom_L [~Tom@ip68-102-202-1.ks.ok.cox.net] has quit [Read error: Connection reset by peer]
2012-05-07T15:01:42 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 245 seconds]
2012-05-07T15:33:51 < Thorn> why is there no "generic" usb class that would allow direct access application access to device endpoints via standard os drivers?
2012-05-07T15:35:00 < jpa-> sure there is, just that windows regards that as 'you don't have kernel-mode drivers, you can't access it!'
2012-05-07T15:35:04 < zyp> sure is
2012-05-07T15:35:22 < zyp> it's called «vendor specific»
2012-05-07T15:35:40 < Thorn> and requires vendor-specific drivers right?
2012-05-07T15:35:56 < zyp> only on windows
2012-05-07T15:36:05 < jpa-> of course, but on linux and i think also on mac the 'driver' can be built into the application
2012-05-07T15:36:11 < jpa-> i.e. just use libusb or so
2012-05-07T15:36:19 < zyp> yep, that's what I'm doing
2012-05-07T15:37:20 < jpa-> if you invent a custom protocol, you always need a custom driver.. just that windows thinks that all drivers should be kernel-mode, for maximum crashing potential
2012-05-07T15:37:34 < jpa-> not that it really forces that
2012-05-07T15:37:42 < jpa-> there are a plenty of workarounds
2012-05-07T15:38:27 < zyp> there is also no problem using libusb on windows with some standard drivers, you just have to supply an .inf file that assigns that driver to your vid/pid set
2012-05-07T15:38:45 < jpa-> yep
2012-05-07T15:39:26 < zyp> I did that for some work stuff last year where I wrote a lib to use a vendor specific device directly through libusb
2012-05-07T15:40:36 < zyp> the zadig tool makes it pretty easy
2012-05-07T15:40:50 < zyp> check http://www.libusb.org/wiki/windows_backend#DriverInstallation
2012-05-07T15:47:15 < Thorn> don't libusb drivers use winusb? that thing is pretty limited iirc
2012-05-07T15:52:46 < Thorn> dongs: http://www.isup.me/www.cdiweb.com
2012-05-07T16:02:10 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has quit [Ping timeout: 265 seconds]
2012-05-07T16:08:59 -!- avernos__ [~avernos@111.192.244.175] has joined ##stm32
2012-05-07T16:11:55 -!- TitanMKD [~Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-07T16:12:00 -!- dekar [~dekar@dslb-088-068-017-055.pools.arcor-ip.net] has joined ##stm32
2012-05-07T16:12:00 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-07T16:12:07 -!- avernos_ [~avernos@222.128.145.75] has quit [Ping timeout: 276 seconds]
2012-05-07T16:16:27 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has joined ##stm32
2012-05-07T16:20:04 < zyp> Thorn, winusb is one possible backend for libusb
2012-05-07T16:21:40 < zyp> because windows only is not very abstract
2012-05-07T16:27:59 -!- avernos__ is now known as avernos
2012-05-07T16:28:31 < zyp> you're not convincing enough
2012-05-07T16:39:36 < karlp> I don't think conversation is the right word for it
2012-05-07T17:08:03 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-07T17:19:51 -!- TitanMKD [~Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
2012-05-07T17:20:13 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-07T17:23:17 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has quit [Ping timeout: 248 seconds]
2012-05-07T17:25:54 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has joined ##stm32
2012-05-07T17:30:23 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has quit [Ping timeout: 260 seconds]
2012-05-07T17:35:58 -!- peabody124 [~peabody12@c-98-194-201-181.hsd1.tx.comcast.net] has joined ##stm32
2012-05-07T17:39:44 -!- peabody124 [~peabody12@c-98-194-201-181.hsd1.tx.comcast.net] has quit [Client Quit]
2012-05-07T18:05:55 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-07T18:39:08 -!- dekar [~dekar@dslb-088-068-017-055.pools.arcor-ip.net] has quit [Ping timeout: 240 seconds]
2012-05-07T18:45:08 -!- metaxa [metaxa@members.bombshellz.net] has quit [Quit: leaving]
2012-05-07T18:46:17 -!- metaxa [metaxa@members.bombshellz.net] has joined ##stm32
2012-05-07T19:00:08 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 240 seconds]
2012-05-07T19:08:47 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-07T19:11:39 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-07T19:34:39 < karlp> I thought windows was teh awesome and infallible
2012-05-07T19:34:52 < jpa-> no, you are
2012-05-07T19:49:56 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Remote host closed the connection]
2012-05-07T19:50:39 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-07T19:55:54 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds]
2012-05-07T19:56:43 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-07T20:01:27 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-07T20:01:28 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-07T20:02:26 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 250 seconds]
2012-05-07T20:03:09 < ziph> dongs: What are the two packages?
2012-05-07T20:03:19 <+Steffanx> zlog
2012-05-07T20:03:19 < zlog> Steffanx: Log stored at http://tom-itx.dyndns.org:81/~tom-itx/irc/logs/%23%23stm32/2012-05-07.html
2012-05-07T20:04:32 <+Steffanx> Hmm, why I even read that
2012-05-07T20:04:56 <+Steffanx> All I read was "shit this" "shit that"
2012-05-07T20:05:22 < Laurenceb_> http://failblog.files.wordpress.com/2012/05/fashion-fail-poorly-dressed-the-mathletes-arent-just-after-school-anymore.jpg
2012-05-07T20:06:00 <+Steffanx> Nothing interesting Laurenceb_
2012-05-07T20:31:44 -!- dekar [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has joined ##stm32
2012-05-07T20:31:47 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-07T20:32:52 -!- metaxa [metaxa@members.bombshellz.net] has quit [Quit: leaving]
2012-05-07T20:33:27 -!- metaxa [metaxa@members.bombshellz.net] has joined ##stm32
2012-05-07T20:35:58 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-07T20:45:42 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit []
2012-05-07T20:48:40 < cjbaird> Neat. I've got the 6502.org/forum people salivating over getting F4Disco boards, successfully derailing a RaspberryPi thread :D .. https://github.com/cjbaird/stm6502
2012-05-07T20:53:50 <+Steffanx> :)
2012-05-07T21:03:17 < Thorn> >WinUSB cannot be used to send an actual reset command to an USB device.
2012-05-07T21:03:35 < Thorn> so I'd have to unplug/plug it back every time?
2012-05-07T21:06:46 < Laurenceb_> https://github.com/OLIMEX/OLINUXINO
2012-05-07T21:08:45 < Thorn> >ARM926J
2012-05-07T21:08:48 -!- peabody124_ [~peabody12@128.249.96.123] has joined ##stm32
2012-05-07T21:10:00 < Thorn> is there a real phy near the magjack?
2012-05-07T21:11:11 -!- peabody124_ [~peabody12@128.249.96.123] has quit [Remote host closed the connection]
2012-05-07T21:11:20 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 244 seconds]
2012-05-07T21:11:22 < Thorn> and no jtag
2012-05-07T21:11:55 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-07T21:13:05 -!- tavish [~tavish@59.177.10.250] has joined ##stm32
2012-05-07T21:13:20 -!- tavish [~tavish@59.177.10.250] has quit [Changing host]
2012-05-07T21:13:20 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-07T21:17:22 < karlp> Thorn: you don't need jtag so much, they've already gotten linux on it,
2012-05-07T21:17:37 < karlp> you just write regular linux userspace apps
2012-05-07T21:18:11 < Thorn> what if I decide to write my own os? ;) or even a linux driver (not at all unlikely is it)
2012-05-07T21:19:23 < karlp> respectfully, if you wanted to write your own os, why be looking at prebuilt boards running linux?
2012-05-07T21:20:02 < karlp> people do lots of driver dev without jtag for the host processor.
2012-05-07T21:21:30 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds]
2012-05-07T21:23:20 -!- tavish [~tavish@120.56.141.80] has joined ##stm32
2012-05-07T21:23:20 -!- tavish [~tavish@120.56.141.80] has quit [Changing host]
2012-05-07T21:23:20 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-07T21:28:29 -!- tavish_ [~tavish@120.56.131.245] has joined ##stm32
2012-05-07T21:28:29 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-07T21:28:36 < jpa-> yay, tinyprintf author agreed to change it to BSD instead of LGPL
2012-05-07T21:33:13 -!- tavish_ [~tavish@120.56.131.245] has quit [Ping timeout: 252 seconds]
2012-05-07T21:33:49 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Remote host closed the connection]
2012-05-07T21:34:30 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-07T21:36:53 <+Steffanx> Party jpa- :)
2012-05-07T21:40:07 < cjbaird> The guy in Australia who is the Olimex 'exclusive' dealer is a total spamming scab... "Oh, you're going to be selling the OlimexArduino Killa? ... <puts in 20 orders for a RaspberryPi>"
2012-05-07T21:41:52 < jpa-> Steffanx: soon i can put   https://github.com/PetteriAimonen/Baselibc   under BSD or something :)
2012-05-07T21:42:51 < cjbaird> Seriously, that tinyprintf code is almost trival... It's a few simple functions on top of the va_list example in the K&R book...
2012-05-07T21:43:33 -!- ben1066_ [~quassel@host109-152-58-224.range109-152.btcentralplus.com] has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
2012-05-07T21:43:44 < cjbaird> (...my 'do your own homework' comment yesterday :P :)
2012-05-07T21:44:25 -!- ben1066 [~quassel@host109-152-58-224.range109-152.btcentralplus.com] has joined ##stm32
2012-05-07T21:44:25 < jpa-> sure it is
2012-05-07T21:44:38 < jpa-> but writing 2 lines of email is even more trivial than reimplementing it
2012-05-07T21:44:44 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-07T21:45:16 < jpa-> (and besides, internet is already full of *crappy* trivial printf implementations, tinyprintf is in my opinion a particularly good trivial implementation)
2012-05-07T21:48:06 < cjbaird> Whitesmiths style C indentation, heh. I haven't seen that in over a decade. :)
2012-05-07T21:48:48 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 260 seconds]
2012-05-07T21:49:14 < jpa-> it's nearly a decade old anyway :)
2012-05-07T21:49:23 < jpa-> i guess next step is to ask also cjlano's permission, though his indenting etc. changes are hardly copyrightable :P
2012-05-07T21:51:22 < Laurenceb_> i use the procyon avrlib stuff
2012-05-07T21:51:41 -!- ben1066_ [~quassel@host109-152-85-91.range109-152.btcentralplus.com] has joined ##stm32
2012-05-07T21:51:56 -!- ben1066_ [~quassel@host109-152-85-91.range109-152.btcentralplus.com] has quit [Client Quit]
2012-05-07T21:52:31 -!- ben1066_ [~quassel@host109-152-85-91.range109-152.btcentralplus.com] has joined ##stm32
2012-05-07T21:52:40 < Laurenceb_> no float support in tinyprintf
2012-05-07T21:53:03 < zyp> I wrote my own minimal printf once
2012-05-07T21:53:23 <+Steffanx> once..
2012-05-07T21:53:39 < zyp> years ago
2012-05-07T21:53:50 < zyp> and then I reused it when I started out with stm32
2012-05-07T21:53:55 < jpa-> this is hardly very good code either  https://gitorious.org/avrlib/avrlib/blobs/master/rprintf.c
2012-05-07T21:54:10 -!- ben1066 [~quassel@host109-152-58-224.range109-152.btcentralplus.com] has quit [Ping timeout: 260 seconds]
2012-05-07T21:54:12 < Laurenceb_> i think its worse than that
2012-05-07T21:54:30 < Laurenceb_> when i tried to make it work its was horribly broken
2012-05-07T21:54:34 < jpa-> i really wish there was an equivalent, but with unit / regression tests
2012-05-07T21:54:39 < zyp> http://cgit.jvnv.net/suzumebachi/tree/foo.h?id=1a8771 <- here is mine
2012-05-07T21:55:15 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds]
2012-05-07T21:55:24 < jpa-> zyp: not bad
2012-05-07T21:55:28 -!- ben1066_ [~quassel@host109-152-85-91.range109-152.btcentralplus.com] has quit [Client Quit]
2012-05-07T21:55:35 < zyp> not good either, but it's short at least :)
2012-05-07T21:55:56 < Laurenceb_> http://ukhas.org.uk/code:rprintf
2012-05-07T21:56:00 -!- ben1066 [~quassel@host109-152-85-91.range109-152.btcentralplus.com] has joined ##stm32
2012-05-07T21:56:10 < Laurenceb_> theres probably a better wya than that
2012-05-07T21:57:32 < zyp> my code places the sign before the field padding, but that should be a rather easy fix
2012-05-07T21:57:42 < zyp> other than that I think it's working properly
2012-05-07T21:57:49 < cjbaird> One of my 2nd year functional programming assignments back at Uni was a printf-alike in Scheme. I wonder where the code for that is..
2012-05-07T21:58:20 < jpa-> zyp: actually, i quite like that code.. if i just had the time to perfect it :P
2012-05-07T21:59:01 < jpa-> (things like minimum field length for strings etc.)
2012-05-07T21:59:25 < jpa-> it's always a decision about how much to support
2012-05-07T22:01:20 < jpa-> but i like the shortness and clarity
2012-05-07T22:01:59 < zyp> :)
2012-05-07T22:02:29 < cjbaird> Nuts. I found the archive(.lzh!) of the Uni Scheme code, but not that assignment. :/
2012-05-07T22:03:37 < cjbaird> But I found a scheme maze generator program that I have absolutely no memories of ever writing. :)
2012-05-07T22:04:46 < jpa-> mandelbrot for some jit compiler we had to make at university: http://paste.dy.fi/?XZq&plainpaste
2012-05-07T22:04:56 < zyp> :)
2012-05-07T22:05:24 < zyp> I realized a couple of weeks ago that I'd never done anything with fractals
2012-05-07T22:05:40 <+Steffanx> Keep it that way
2012-05-07T22:05:55 < zyp> so I used parts of an afternoon to write a mandelbrot implementation in GLSL
2012-05-07T22:05:57 < zyp> http://bin.jvnv.net/f/4ztUH.png
2012-05-07T22:06:55 < jpa-> mandelbrot is a nice fractal because the definition is so simple
2012-05-07T22:07:13 < zyp> it was surprisingly simple
2012-05-07T22:07:54 < jpa-> i first read about it when i was 10 years old or something.. too bad i didn't even know about complex numbers so the explanation about 'complex frog jumping around and ending outside the circle' went kind of whooosh
2012-05-07T22:07:55 < zyp> but then, last time I looked at fractals, I didn't understand complex numbers, so the concept were a bit harder to grasp :)
2012-05-07T22:08:03 < jpa-> indeed :D
2012-05-07T22:08:17 < Thorn> make some sparse convolution noise instead, it's more useful
2012-05-07T22:08:50 < zyp> math is fun like that, once you actually understand something, it seems so simple
2012-05-07T22:08:50 <+Steffanx> Define: useful
2012-05-07T22:08:53 < Thorn> (at least when it's fast)
2012-05-07T22:09:10 < Thorn> for procedural textures
2012-05-07T22:09:31 < zyp> I had that with quaternions aswell
2012-05-07T22:09:47 < zyp> it's pretty damn easy, but noone explained in a way that I easily understood
2012-05-07T22:10:07 <+Steffanx> So you explained it to yourself?
2012-05-07T22:10:10 <+Steffanx> or ..
2012-05-07T22:10:31  * cjbaird was there with his Commodore64 when Mandelbrots where publicized in Scientific American... Letting the C64 run overnight or all-day when I was at school to generate just a screen's worth. Yeah, I got /real/ keen to hack on the Uni's unix guest account when I could. :)
2012-05-07T22:10:58 < cjbaird> No surprise that mandelbrots were the first coding I did on the stm32..
2012-05-07T22:11:08 < zyp> Steffanx, at some point I managed to piece together an understanding of it
2012-05-07T22:11:16 < zyp> and suddenly it became intuitive
2012-05-07T23:03:29 -!- izua [~izua@188.27.188.216] has joined ##stm32
2012-05-07T23:03:29 -!- izua [~izua@188.27.188.216] has quit [Changing host]
2012-05-07T23:03:29 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-07T23:03:32 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-07T23:23:34 -!- izua_ [~izua@188.27.188.128] has joined ##stm32
2012-05-07T23:23:34 -!- izua_ [~izua@188.27.188.128] has quit [Changing host]
2012-05-07T23:23:34 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32
2012-05-07T23:23:36 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-07T23:26:31 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 252 seconds]
2012-05-07T23:53:22 < Laurenceb_> ive got 99 airwires....
2012-05-07T23:55:09 -!- metaxa [metaxa@members.bombshellz.net] has quit [Quit: leaving]
2012-05-07T23:57:23 < karlp> and a mandelbrot aint one?
2012-05-07T23:57:46 -!- metaxa [metaxa@members.bombshellz.net] has joined ##stm32
--- Day changed Tue May 08 2012
2012-05-08T00:03:26 < Laurenceb_> lol
2012-05-08T00:05:11 < Laurenceb_> http://i.imgur.com/3MHNc.png
2012-05-08T00:06:44 < Laurenceb_> this is going to be a tight squeeze
2012-05-08T00:08:17 < karlp> what's that odd foorprint in the lower right?
2012-05-08T00:08:35 < karlp> also, what's the connector on the upper left?
2012-05-08T00:11:21 < Laurenceb_> lower right = bluetooth RN-42
2012-05-08T00:11:30 -!- peabody124_ [~peabody12@128.249.96.21] has joined ##stm32
2012-05-08T00:11:42 -!- izua_ [~izua@unaffiliated/izua] has quit [Ping timeout: 260 seconds]
2012-05-08T00:11:49 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 245 seconds]
2012-05-08T00:11:49 -!- peabody124_ is now known as peabody124
2012-05-08T00:13:20 < Laurenceb_> upper left = Hirose connector
2012-05-08T00:14:55 < Laurenceb_> its a shrunk version of http://i.imgur.com/xhuas.jpg
2012-05-08T00:15:52 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Ping timeout: 256 seconds]
2012-05-08T00:17:23 -!- Evie [~null@205.233.35.25] has quit [Read error: Operation timed out]
2012-05-08T00:17:50 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-08T00:34:55 <+Steffanx> Laurenceb_ isn't a good idea to read something more about how to reduce noise .. you had some trouble with that iirc?
2012-05-08T00:38:00 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-08T00:40:33 < Laurenceb_> yeah ive redisigned the front end
2012-05-08T00:40:55 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Read error: Operation timed out]
2012-05-08T00:41:23 <+Steffanx> Yeah, but i also meant when it comes to pcb design
2012-05-08T00:41:45 <+Steffanx> The 'do's and don'ts'
2012-05-08T00:44:35 <+Steffanx> uh?
2012-05-08T00:46:08 <+Steffanx> That happens here in dutchland too
2012-05-08T00:46:25 <+Steffanx> You can't compare the prices here to the yankie-price
2012-05-08T00:46:59 <+Steffanx> You can compare them, but it's like $=>€ + x%
2012-05-08T00:47:50 <+Steffanx> okok
2012-05-08T00:47:56 <+Steffanx> Anyway, gn
2012-05-08T00:52:34 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 252 seconds]
2012-05-08T00:58:21 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-08T00:58:40 < Thorn> Okay I've got bidirectional communication with my PC via CAN. but it's still polled x_x
2012-05-08T01:00:16 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 252 seconds]
2012-05-08T01:00:44 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-08T01:01:11 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Disconnected by services]
2012-05-08T01:01:13 -!- phantoneD is now known as phantoxeD
2012-05-08T01:04:01 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-08T01:05:13 -!- os-app92 [~ftw@244.122.193.77.rev.sfr.net] has joined ##stm32
2012-05-08T01:05:27 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Disconnected by services]
2012-05-08T01:05:29 -!- phantoneD is now known as phantoxeD
2012-05-08T01:06:26 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-08T01:17:23 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-08T01:20:05 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 248 seconds]
2012-05-08T01:28:14 -!- izua_ [~izua@188.26.167.86] has joined ##stm32
2012-05-08T01:28:18 -!- izua_ [~izua@188.26.167.86] has quit [Changing host]
2012-05-08T01:28:18 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32
2012-05-08T01:28:19 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-08T01:40:04 -!- izua__ [~izua@188.27.189.173] has joined ##stm32
2012-05-08T01:43:25 -!- izua_ [~izua@unaffiliated/izua] has quit [Ping timeout: 260 seconds]
2012-05-08T01:46:55 -!- izua__ [~izua@188.27.189.173] has quit [Ping timeout: 260 seconds]
2012-05-08T01:48:43 -!- os-app92 [~ftw@244.122.193.77.rev.sfr.net] has quit [Quit: My Mac has gone to sleep.]
2012-05-08T01:52:21 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |]
2012-05-08T01:53:53 -!- Thorn__ [~Thorn@2.93.101.6] has joined ##stm32
2012-05-08T01:53:54 -!- Thorn__ [~Thorn@2.93.101.6] has quit [Changing host]
2012-05-08T01:53:54 -!- Thorn__ [~Thorn@unaffiliated/thorn] has joined ##stm32
2012-05-08T01:57:06 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 252 seconds]
2012-05-08T01:58:51 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-08T01:59:33 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 248 seconds]
2012-05-08T01:59:43 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 276 seconds]
2012-05-08T02:55:58 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-08T03:41:24 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 245 seconds]
2012-05-08T03:51:59 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-08T03:55:03 < ziph> dongs: Cadence?
2012-05-08T04:22:04 -!- dekar [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep]
2012-05-08T05:00:38 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 240 seconds]
2012-05-08T05:18:20 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32
2012-05-08T05:35:16 -!- Evie [~null@205.233.35.26] has joined ##stm32
2012-05-08T08:11:54 -!- jaeckel_ [~jaeckel@jaeckel.eu] has joined ##stm32
2012-05-08T08:12:46 -!- Evie_ [~null@205.233.35.25] has joined ##stm32
2012-05-08T08:21:46 -!- Netsplit *.net <-> *.split quits: TeknoJuce, avernos, jaeckel, Tom_itx, @ChanServ, BrainDam-, metaxa, eroomde, Evie, Rickta59,  (+2 more, use /NETSPLIT to show all of them)
2012-05-08T08:21:56 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925075879.dsl.bell.ca] has joined ##stm32
2012-05-08T08:22:15 -!- Netsplit over, joins: BrainDam-, metaxa, avernos, Tom_itx, Rickta59, Rious, eroomde, karlp, @ChanServ
2012-05-08T08:22:16 -!- karlp [~karl@palmtree.beeroclock.net] has quit [Ping timeout: 240 seconds]
2012-05-08T08:22:37 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925075879.dsl.bell.ca] has quit [Changing host]
2012-05-08T08:22:37 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-08T08:23:32 -!- karlp [~karl@palmtree.beeroclock.net] has joined ##stm32
2012-05-08T08:53:12 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-08T09:34:23 -!- jaeckel_ is now known as jaeckel
2012-05-08T09:38:20 -!- jaeckel [~jaeckel@jaeckel.eu] has quit [Changing host]
2012-05-08T09:38:20 -!- jaeckel [~jaeckel@unaffiliated/jaeckel] has joined ##stm32
2012-05-08T09:40:58 -!- dekar [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has joined ##stm32
2012-05-08T09:40:59 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-08T10:05:51 -!- Thorn__ is now known as Thorn
2012-05-08T11:04:43 -!- karlp [~karl@palmtree.beeroclock.net] has quit [Ping timeout: 244 seconds]
2012-05-08T11:04:49 -!- karlp [~karl@palmtree.beeroclock.net] has joined ##stm32
2012-05-08T12:02:19 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-08T12:09:57 -!- Netsplit *.net <-> *.split quits: metaxa
2012-05-08T12:17:30 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 260 seconds]
2012-05-08T12:24:42 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-08T12:58:22 -!- Netsplit over, joins: metaxa
2012-05-08T14:10:30 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has joined ##stm32
2012-05-08T14:10:40 < Laurenceb> wtf @ electronics
2012-05-08T14:10:43 -!- izua [~izua@188.27.189.50] has joined ##stm32
2012-05-08T14:10:43 -!- izua [~izua@188.27.189.50] has quit [Changing host]
2012-05-08T14:10:43 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-08T14:10:46 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-08T14:11:48 < Laurenceb> ##electronics is full of freaks
2012-05-08T14:12:39 < Thorn> I wish this channel stayed free of them
2012-05-08T14:13:02 < Thorn> unsigned wtf = (unsigned)'\x82'; // 0xffffff82
2012-05-08T14:15:16 < Laurenceb> <spacekitteh> you say inbred like it's an insult
2012-05-08T14:15:17 < Laurenceb> lol
2012-05-08T14:16:55 -!- izua_ [~izua@86.126.9.115] has joined ##stm32
2012-05-08T14:16:55 -!- izua_ [~izua@86.126.9.115] has quit [Changing host]
2012-05-08T14:16:55 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32
2012-05-08T14:16:58 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-08T14:18:50 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 260 seconds]
2012-05-08T14:20:07 -!- izua__ [~izua@86.126.9.115] has joined ##stm32
2012-05-08T14:22:54 -!- izua_ [~izua@unaffiliated/izua] has quit [Ping timeout: 252 seconds]
2012-05-08T14:31:01 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 248 seconds]
2012-05-08T14:34:50 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32
2012-05-08T14:40:41 -!- izua__ [~izua@86.126.9.115] has quit [Read error: Connection reset by peer]
2012-05-08T14:40:51 -!- izua__ [~izua@188.26.166.198] has joined ##stm32
2012-05-08T15:19:40 -!- izua__ [~izua@188.26.166.198] has quit [Quit: Pull me under]
2012-05-08T15:19:48 -!- izua [~izua@188.26.166.198] has joined ##stm32
2012-05-08T15:19:48 -!- izua [~izua@188.26.166.198] has quit [Changing host]
2012-05-08T15:19:48 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-08T15:19:51 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-08T16:32:42 < Thorn> wth is going on with dev id & rev id. sometimes they read correctly, sometimes as zeros
2012-05-08T16:33:05 < Thorn> errata says they should always read as zeros fomr user code
2012-05-08T16:33:09 < Thorn> *from
2012-05-08T16:34:50 < jpa-> maybe the bug is fixed in some revision
2012-05-08T16:35:18 < Thorn> in that case my chips changed revision overnight
2012-05-08T16:35:29 < jpa-> maybe :)
2012-05-08T16:40:07 < Thorn> I thought that only works with debugger attached but it doesn't seem to be the case
2012-05-08T16:45:31 < Thorn> wtf, '8' is dimmer than other digits on my 7-seg displays. I should've used 8 more transistors after the 595?
2012-05-08T16:49:40 < jpa-> what is your schematic like?
2012-05-08T16:50:04 < jpa-> maybe the common anode (or cathode) driver is not powerful enough
2012-05-08T16:51:07 < Thorn> I think I uploaded it to imgur.com half a year ago lol
2012-05-08T16:52:34 < Thorn> digits are controlled by gpio pins via pnp transistors, segments are connected to 595 outputs  low side)
2012-05-08T16:53:09 < jpa-> ok so   http://i.imgur.com/bS9mZ.jpg  ?
2012-05-08T16:53:29 < jpa-> what transistors are those?
2012-05-08T16:53:43 < jpa-> and isn't 10K a bit large series resistor for leds?
2012-05-08T16:53:52 < Thorn> holy crap you still have the link
2012-05-08T16:54:30 < Thorn> series resistors are 100R, and transistors are PDTA114E
2012-05-08T16:54:38 < jpa-> ah, this is newer  http://i.imgur.com/bQdpe.jpg
2012-05-08T16:54:57 < Thorn> right
2012-05-08T16:55:56 < jpa-> so the transistors have max. current of 100mA and with all segments on, it is pulling 140mA :)
2012-05-08T16:57:41 -!- dekar [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep]
2012-05-08T16:57:42 < Thorn> actually these transistors seem to have a small minimum beta iirc
2012-05-08T16:57:51 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-08T16:58:30 < Thorn> both the transistors and the 595 are cool to the touch
2012-05-08T16:58:53 < Thorn> I should try and measure some voltage drops
2012-05-08T17:00:14 < Thorn> and also total current consumption with the display on and off
2012-05-08T17:06:15 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has quit [Ping timeout: 260 seconds]
2012-05-08T17:13:24 -!- dekar [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has joined ##stm32
2012-05-08T17:13:26 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-08T17:18:29 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has joined ##stm32
2012-05-08T17:29:41 < Thorn> I wonder if dongs' customers realize they're buying from dongs
2012-05-08T17:39:19 < zyp> dongs, you were talking about high-res monitors once, got any recommendations?
2012-05-08T17:46:24 < cjbaird> Told you he was a 4channer... (Any more WTSnackisms you're gonna copy? :P)
2012-05-08T17:48:30 < Laurenceb> ##electronics was full of furries earlier
2012-05-08T17:49:23 < cjbaird> But it's not Friday?
2012-05-08T17:49:53 < Laurenceb> they were discussing pubic hair beads
2012-05-08T17:51:32 < cjbaird> 4chan fun fact: Caturday/Cat Macros/lolcats were invented to derail 'Furry Friday' threads..
2012-05-08T17:51:44 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124]
2012-05-08T17:52:35 < Laurenceb> http://pic.epicfail.com/wp-content/uploads/2012/05/facebook-fail-unusual-vaginal-smell.jpg
2012-05-08T17:57:59 -!- Evie_ is now known as Evie
2012-05-08T18:00:21 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds]
2012-05-08T18:02:02 -!- tavish [~tavish@59.177.2.99] has joined ##stm32
2012-05-08T18:02:02 -!- tavish [~tavish@59.177.2.99] has quit [Changing host]
2012-05-08T18:02:02 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-08T18:16:11 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32
2012-05-08T18:28:03 -!- peabody124 [~peabody12@128.249.96.123] has quit [Remote host closed the connection]
2012-05-08T18:28:19 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-08T18:43:31 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-08T18:57:19 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 256 seconds]
2012-05-08T18:59:01 -!- tavish [~tavish@120.59.130.227] has joined ##stm32
2012-05-08T18:59:01 -!- tavish [~tavish@120.59.130.227] has quit [Changing host]
2012-05-08T18:59:01 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-08T19:07:25 < jpa-> "Number of receiving bytes must be more than 1 because of stm32 hardware restrictions."    i'm beginning to see what people mean by 'crappy i2c module'
2012-05-08T19:16:45 < zyp> «numbers of receiving bytes must be more than 1 because I'm too dumb to handle special cases»
2012-05-08T19:18:52 < Laurenceb> it doesnt have to be 1
2012-05-08T19:19:19 < Laurenceb> i have working code on gituhb
2012-05-08T19:19:48 < karlp> really? you :)
2012-05-08T19:19:51 < zyp> 1 byte receives are a special case with pretty much any i2c controller
2012-05-08T19:19:59 < karlp> I thought all your stuff was edgy Laurenceb  :)
2012-05-08T19:20:22 < Laurenceb> lol
2012-05-08T19:21:19 < jpa-> why is 1 byte receive a special case?
2012-05-08T19:21:32 < zyp> when receiving you normally start by telling the controller to ack received bytes, but when there's only one left, you don't
2012-05-08T19:21:42 < zyp> so with one byte reads you never start acking
2012-05-08T19:30:29 < zyp> http://paste.jvnv.net/view/AP0BI <- here is relevant states from some i2c code I wrote for AVR once, notice how S_READ_DATA is completely skipped in case of one byte transfers
2012-05-08T19:30:56 < zyp> (as in twi_len = 1)
2012-05-08T19:31:01 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-08T19:38:58 < Thorn> scripting language for microcontrollers http://www.compuphase.com/pawn/pawn.htm
2012-05-08T19:39:37 < zyp> any usefulness?
2012-05-08T19:40:05 < Thorn> no idea, just saw an article about it
2012-05-08T19:43:09 < Thorn> my boards can now receive real time from pc via can
2012-05-08T19:43:25 < zyp> :)
2012-05-08T19:43:53 < karlp> didn't someone here just have a pawn thing in theit github?
2012-05-08T19:45:05 < Thorn> I don't see any github links on that page
2012-05-08T19:45:20 < karlp> no, someone here's personal github pages,
2012-05-08T19:45:24 < karlp> had a pawn thing,
2012-05-08T19:45:32 < karlp> someone I was stalking a day or two ago...
2012-05-08T19:45:52 < karlp> when you all linked to your printf impls, someone's profile had a pawn repo of some sort
2012-05-08T19:46:28 < zyp> not me
2012-05-08T19:46:45 < zyp> I don't even use github
2012-05-08T19:47:00 < Thorn> my github is still empty :(
2012-05-08T19:47:23 < zyp> I think I've got an account, but if so it's empty as well
2012-05-08T19:51:43 < jpa-> Thorn, zyp: yeah, pawn is nice; i've been using it: http://essentialscrap.com/dsoquad/pawn.html
2012-05-08T19:52:08 < Thorn> interesting
2012-05-08T19:52:42 < Thorn> btw I've been trying to find that thread about the FSMC+DMA crash but could not
2012-05-08T19:52:43 < jpa-> but on a totally different matter: can someone please verify that i'm sending the I2C slave address correctly here? it's not acking: http://kapsi.fi/~jpa/stuff/pix/i2cdebug.png
2012-05-08T19:53:04 < jpa-> Thorn: thread?
2012-05-08T19:54:04 < Thorn> I think so. you ran into that problem when hacking dso quad iirc
2012-05-08T19:55:04 < jpa-> i did; most of the stuff is just in the logs of this channel.. but there is something here  http://www.seeedstudio.com/forum/viewtopic.php?f=22&t=2861&p=11446#p11446
2012-05-08T19:58:33 < Thorn> I believe the address is being sent correctly, iirc data is valid on rising edge of the clock in i2c
2012-05-08T19:58:49 < zyp> yep
2012-05-08T19:58:56 < zyp> looks right
2012-05-08T19:59:00 < Thorn> there's a 10th pulse with data=0 though that looks pretty strange
2012-05-08T19:59:23 < zyp> that's a stop, it's correct
2012-05-08T19:59:30 < Thorn> ah well it's a stop
2012-05-08T19:59:31 < Thorn> right
2012-05-08T20:00:52 < jpa-> ok; that means my soldering is wrong :F
2012-05-08T20:00:56 < zyp> http://bin.jvnv.net/f/pUrXj.png <- and this looks awfully similar :p
2012-05-08T20:01:09 < zyp> is it LSM303?
2012-05-08T20:01:09 < jpa-> lol it does :)
2012-05-08T20:01:11 < jpa-> yes
2012-05-08T20:01:15 < zyp> so is mine
2012-05-08T20:01:24 < jpa-> and yours is NAK too? :)
2012-05-08T20:01:30 < zyp> assembled two boards the other day, neither works
2012-05-08T20:01:41 < jpa-> wtf
2012-05-08T20:01:49 < Thorn> why does it have to pulse scl to do a stop?
2012-05-08T20:02:02 < jpa-> Thorn: SCL idle state is high
2012-05-08T20:02:11 < jpa-> as is the SCL active state :P
2012-05-08T20:02:12 < zyp> but the first one I assembled weeks ago did work until I killed the regulator on the board
2012-05-08T20:02:46 < Thorn> stop is sda going low->high witl scl high, correct?
2012-05-08T20:02:46 < jpa-> i guess LGA14 is difficult to solder properly
2012-05-08T20:02:51 < jpa-> though i have done it before
2012-05-08T20:02:55 < jpa-> but then i had solder mask
2012-05-08T20:03:01 < jpa-> Thorn: yeah
2012-05-08T20:03:01 < zyp> which one is it? LSM303DLM?
2012-05-08T20:03:13 < zyp> LSM303DLM is LGA-28
2012-05-08T20:03:13 < jpa-> LSM303DLHC
2012-05-08T20:03:26 < zyp> I have the DLM variant
2012-05-08T20:03:58 < Thorn> ah I see now. so that sda going low doesn't look like another start
2012-05-08T20:04:40 < zyp> I blame a bad footprint and improperly cleaned stencil resulting in a bit to little paste on the pads
2012-05-08T20:05:09 < Thorn> (and btw i2c on my boards is working reliably since I added that busy flag wait)
2012-05-08T20:05:50 < zyp> I found the problem with error recovery in my code, so now I have reliable i2c with working error recovery
2012-05-08T20:06:53 < zyp> I haven't tested anything else than NAK errors yet though, so I can't say how reliable that part is, and currently it results in a garbage read rather than an error
2012-05-08T20:16:34 < Thorn> my code sends a STOP and bails out in case of a nonexistent slave address
2012-05-08T20:19:58 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-08T20:19:58 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-08T20:20:44 < karlp> which of you has the i2c code that works now?
2012-05-08T20:20:52 < karlp> it sounds like everyone's working on i2c bugs
2012-05-08T20:21:37 <+Steffanx> Except me
2012-05-08T20:25:33 < karlp> well, nor me.
2012-05-08T20:25:44 < karlp> but jpa, zyp and thorn and laurenceb
2012-05-08T20:26:38 < Thorn> karlp: this works (polled, timeouts not implemented yet) http://pastebin.com/ZQgHN45G
2012-05-08T20:27:11 < jpa-> i'm just using chibios' code
2012-05-08T20:27:23 < jpa-> works except that apparently i have no slave on the bus
2012-05-08T20:30:57 < zyp> karlp, I'm not, my code is (apparently) working properly, and I don't have any workarounds for hardware bugs either
2012-05-08T20:33:01 <+Steffanx> hw bugs?
2012-05-08T20:33:02 < Thorn> lines 45...54 are partucularly crazy (well, except everything that follows them...)
2012-05-08T20:34:13 <+Steffanx> That's high res indeed :p
2012-05-08T20:34:41 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Remote host closed the connection]
2012-05-08T20:35:19 <+Steffanx> And probably is too old to get (a new) one
2012-05-08T20:36:20 < zyp> what inputs does that take, can it be hooked to normal modern graphics cards?
2012-05-08T20:36:37 <+Steffanx> I read something about 4xDVI zyp
2012-05-08T20:37:37 <+Steffanx> You own one dongs ?
2012-05-08T20:37:50 < zyp> that's why I asked him
2012-05-08T20:37:58 <+Steffanx> I'm not only 24/7 sir
2012-05-08T20:39:02 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-08T20:40:09 <+Steffanx> Fibre glass + led ?
2012-05-08T20:40:48 <+Steffanx> light generator :)
2012-05-08T20:48:17 < Thorn> >These monitors are mainly used in defence (Satellite recon) and medical imaging sectors
2012-05-08T20:48:19 < Thorn> dongs?
2012-05-08T20:49:32 <+Steffanx> dongs is a japanese spy .. he needs that
2012-05-08T20:52:24 < Thorn> >normally the resale value is circa 7000 - 8000 dollars.
2012-05-08T20:53:49 <+Steffanx> Amazon shows prices around 900$ ..
2012-05-08T21:07:38 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-08T21:10:01 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit []
2012-05-08T21:31:33 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-08T21:35:45 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds]
2012-05-08T21:37:40 -!- tavish [~tavish@59.177.8.110] has joined ##stm32
2012-05-08T21:37:40 -!- tavish [~tavish@59.177.8.110] has quit [Changing host]
2012-05-08T21:37:40 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-08T21:38:02 < Thorn> "Reputedly there's a beer glass in Japan that wirelessly signals the wait staff when it starts to get low. Anything to avert a beer emergency."
2012-05-08T21:38:11 < Thorn> designed by dongs?
2012-05-08T21:38:30 <+Steffanx> Does it say "Made in Trollville (Japan) ?"
2012-05-08T22:39:17 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 272 seconds]
2012-05-08T22:40:06 -!- gkwhc [~me@unaffiliated/gkwhc] has joined ##stm32
2012-05-08T22:40:43 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-08T22:41:15 < gkwhc> Hi everyone, I am using ARM from another vendor, but is it a known problem that systick stops running when servicing other IRQs?
2012-05-08T22:46:33 < Laurenceb_> if you screw up the nvic config, yes
2012-05-08T22:48:41 < gkwhc> Laurenceb_: how can i diagnose this? i didnt any config at all, just enabled the GPIO nvic
2012-05-08T22:49:04 < Laurenceb_> take a look with jtag?
2012-05-08T22:50:32 < gkwhc> swd only, but i havent gotten around to checking out swo
2012-05-08T22:51:09 <+Steffanx> swd will work too
2012-05-08T22:51:53 < gkwhc> Steffanx: without SWO?
2012-05-08T22:52:15 <+Steffanx> Yes
2012-05-08T22:55:01 <+Steffanx> SWD just needs SWCLK and SWIO
2012-05-08T22:55:08 <+Steffanx> *SWDIO
2012-05-08T22:57:05 < gkwhc> i can see that after I pressed a button interrupt, the system is still in handler mode (it jumps to another function from the ISR)
2012-05-08T22:58:21 < gkwhc> is that a problem?
2012-05-08T23:06:12 < gkwhc> i am quite clueless right now
2012-05-08T23:06:20 -!- os-app92 [~ftw@129.170.195.77.rev.sfr.net] has joined ##stm32
2012-05-08T23:07:41 < Laurenceb_> did you forget to resaet the interrupt?
2012-05-08T23:10:39 < gkwhc> nope, I cleared the interrupt
2012-05-08T23:11:28 < gkwhc> i can turn an led on and off with subsequent button interrupts. however I can get it to blink through systick delay
2012-05-08T23:12:04 < zyp> sounds to me like you didn't clear the interrupt properly, double check that
2012-05-08T23:13:22 < gkwhc> *cant
2012-05-08T23:13:50 < gkwhc> if the interrupt wasnt cleared properly, i wouldnt be able to go into the ISR again
2012-05-08T23:14:40 < zyp> why?
2012-05-08T23:14:55 < zyp> it would still serve higher priority ISRs
2012-05-08T23:15:14 < zyp> oh, or the same
2012-05-08T23:15:22 < zyp> pastebin the code?
2012-05-08T23:16:08 < gkwhc> sure
2012-05-08T23:16:09 < zyp> which mcu is this? lpc?
2012-05-08T23:16:23 < gkwhc> its EFM32 from energy micro
2012-05-08T23:16:29 < gkwhc> cortex m3
2012-05-08T23:16:42 < zyp> ah
2012-05-08T23:16:56 < Laurenceb_> never heard of it :P
2012-05-08T23:17:04 < gkwhc> i see that the ISR field in xPSR register is "disabled"
2012-05-08T23:17:27 < zyp> Laurenceb_, me neither :p
2012-05-08T23:17:35 < gkwhc> but systick works outside of the ISR
2012-05-08T23:18:00 < zyp> where is the code you're pastebinning? :p
2012-05-08T23:21:51 < gkwhc> http://pastebin.com/pjyP8eDm :)
2012-05-08T23:22:36 < zyp> ah, that obviously doesn't work
2012-05-08T23:22:58 < gkwhc> whats wrong?
2012-05-08T23:23:17 < zyp> Delay() can't be used in an ISR
2012-05-08T23:23:27 < Laurenceb_> it can
2012-05-08T23:23:33 < Laurenceb_> but its not good
2012-05-08T23:23:34 < gkwhc> why not? isnt it outside of the ISR?
2012-05-08T23:23:50 < zyp> you're calling stop_timeout() in the ISR
2012-05-08T23:23:58 < zyp> i.e. the ISR have not returned yet
2012-05-08T23:24:02 < Laurenceb_> lol wait a sec
2012-05-08T23:24:07 < Laurenceb_> does delay use systick?
2012-05-08T23:24:11 < gkwhc> yes
2012-05-08T23:24:15 < zyp> I'm betting that it's implemented fairly similar to my own delay routine
2012-05-08T23:24:21 < zyp> and that can't becalled inside an ISR
2012-05-08T23:24:24 < Laurenceb_> lawl
2012-05-08T23:24:36 < Laurenceb_> you cant call while you call while you call
2012-05-08T23:24:38 < Laurenceb_> dawg
2012-05-08T23:24:46 < gkwhc> haha gotchya
2012-05-08T23:25:35 < gkwhc> so can I break from the ISR and enter the stop_timeout function?
2012-05-08T23:25:37 < zyp> Delay() won't return until the systick ISR is serviced, and that can't be serviced before the other ISR is done
2012-05-08T23:26:36 < Laurenceb_> do you need a cap on Vbat?
2012-05-08T23:27:04 < zyp> Laurenceb_, stm32? are you using vbat?
2012-05-08T23:27:16 < gkwhc> then how can I fork to a function from the ISR, and end that service?
2012-05-08T23:27:27 < Laurenceb_> zyp:no
2012-05-08T23:27:37 < Laurenceb_> but i am using the backup domain
2012-05-08T23:28:01 < zyp> backup domain is only powered from vbat when vcc is not provided
2012-05-08T23:28:08 < Laurenceb_> ah
2012-05-08T23:28:15 < Laurenceb_> so no cap needed?
2012-05-08T23:28:23 < Laurenceb_> just leave floating?
2012-05-08T23:28:31 < zyp> if you are powering it through vbat you should decouple it, if not just leave the pin open
2012-05-08T23:29:01 < Laurenceb_> cool thanks
2012-05-08T23:29:07 < zyp> I'm pretty sure the chip doesn't provide power on that pin, so nothing would charge the cap anyway :p
2012-05-08T23:29:31 < Laurenceb_> yeah i was just wondering if it was needed to decouple the backup domain
2012-05-08T23:29:42 < zyp> gkwhc, you don't seem to have a clear understanding of how interrupts work
2012-05-08T23:30:41 < zyp> gkwhc, I'm assuming you're trying to debounce the input?
2012-05-08T23:32:02 < zyp> or, reading the code I'm not sure what you're really trying
2012-05-08T23:32:33 < gkwhc> zyp: well, i am trying to have a timeout then shut the LED off. for example, the first button press lights up the LED. the second press shuts off the LED, but with a delay
2012-05-08T23:33:08 < gkwhc> that delay period should accept another button interrupt, if any
2012-05-08T23:33:34 <+izua> first law of embedded programming: interupts should be short.
2012-05-08T23:33:42 < zyp> I was about to say that
2012-05-08T23:34:13 -!- os-app92 [~ftw@129.170.195.77.rev.sfr.net] has quit [Quit: My Mac has gone to sleep.]
2012-05-08T23:34:13 < zyp> it's an interruption in whatever you're doing to perform a small task there and then before the normal program continues
2012-05-08T23:34:14 <+izua> which leads us to something dereived from that law - ISRs shouldn't, under any aspect, have busy-loop delays.
2012-05-08T23:34:34 <+izua> derived, s/aspect/circumstance, etc.
2012-05-08T23:35:05 < zyp> so what you want to do is to trigger a mechanism that fires a new interrupt after a delay
2012-05-08T23:35:12 < zyp> and turn off the led in that interrupt
2012-05-08T23:35:23 < zyp> I mean, that's one way to solve what you want to do
2012-05-08T23:36:11 < zyp> ideally you would have a scheduler coupled to the systick that takes care of stuff like that
2012-05-08T23:36:28 < gkwhc> sounds alot more complicated than I had imagined
2012-05-08T23:37:15 <+izua> use the interrupt to toggle a flag or something.
2012-05-08T23:37:15 < gkwhc> how about just something like "3 seconds after the second button press, turn off LED"?
2012-05-08T23:37:30 <+izua> use the main code to figure out what to do with that flag
2012-05-08T23:37:41 < gkwhc> oh i see
2012-05-08T23:38:11 < zyp> gkwhc, it's complicated
2012-05-08T23:38:23 < zyp> that's why people use RTOSes to deal with stuff like that :p
2012-05-08T23:38:27 <+izua> if (flag && lastRtc == 0) { lastRtc = now(); } else if ( flag && now - lastRtc >= 3 ) { flag = 0; epicStuff(); }
2012-05-08T23:38:31 <+izua> as basic as it can get
2012-05-08T23:38:40 < gkwhc> is that how things generally look like when specific functions need to be performed based on interrupt inputs?
2012-05-08T23:39:19 < gkwhc> zyp: it doesnt really require multitasking, does it?
2012-05-08T23:39:46 < zyp> multitasking is another thing provided by RTOSes
2012-05-08T23:40:06 < karlp> multitasking is a way of saying, "move the state machine to someone else's problem, and let me just deal with small pieces"
2012-05-08T23:40:30 < zyp> yep
2012-05-08T23:40:40 <+izua> smart.
2012-05-08T23:41:28 <+izua> also, you shouldn't, under any circumstance, hook up buttons to interrupt pins
2012-05-08T23:41:40 < karlp> says who?
2012-05-08T23:41:45 < zyp> I disagree
2012-05-08T23:41:45 < karlp> if it just sets flags :)
2012-05-08T23:41:47 <+izua> mr bounce
2012-05-08T23:42:03 < karlp> you make the isr increment a count and a lastseen/firstseen
2012-05-08T23:42:04 <+izua> well, you could do timeouts to prevent it
2012-05-08T23:42:26 <+izua> but i still find that horrible, you're feeding a ton of noise directly into the cpu's irq handler
2012-05-08T23:42:33 < gkwhc> ah
2012-05-08T23:42:37 < karlp> but a REAL USER pressed a button
2012-05-08T23:42:42 < karlp> they're more important than anything else in the system
2012-05-08T23:42:46 < zyp> it's really not that bad
2012-05-08T23:42:47 < karlp> depending on your system of course
2012-05-08T23:43:00 <+izua> yeah, so we're going to read it 0.5ms later, when the button scan routine gets its cpu share :P
2012-05-08T23:43:05 < zyp> hooking buttons to interrupt pins means you don't have to poll the pin state
2012-05-08T23:43:16 <+izua> indeed
2012-05-08T23:43:32 < zyp> and you could easily mask the interrupt on the first ISR and keep it masked during bounce time
2012-05-08T23:43:51 < zyp> and it's also pretty much required if you want to wake up by a button press
2012-05-08T23:44:07 <+izua> i still think it's dirty
2012-05-08T23:44:13 <+izua> not that i haven't done it, but still :P
2012-05-08T23:44:32 < Laurenceb_> pin47 on the 48 pin devices takes the 4u7 cap right?
2012-05-08T23:44:35 < zyp> I haven't, but I think it's ok
2012-05-08T23:44:56 < zyp> Laurenceb_, are you having troubles interpreting the datasheet?
2012-05-08T23:44:59 < Laurenceb_> i set a variable in a pin change isr then check the state in systick
2012-05-08T23:44:59 < zyp> it's all explained there
2012-05-08T23:45:03 < Laurenceb_> lol ok
2012-05-08T23:45:06 < Laurenceb_> <- lazy
2012-05-08T23:45:18 < Thorn> I've been thinking about doing a sequencer with a fifo of struct {uint32_t ticks, (void *function)(); int args[]; }
2012-05-08T23:45:53 < Thorn> so you can simply add delayed actions to it
2012-05-08T23:46:05 < zyp> when I get around to making a proper scheduler, I'll do something like that aswell
2012-05-08T23:46:05 < Thorn> to that fifo
2012-05-08T23:48:22 < Thorn> apparently this is how nasa controls their spacecraft (see seqgen/seqtran if ddocumentation is still available), they generate and upload sequences of commands
2012-05-08T23:48:33 < zyp> :p
2012-05-08T23:48:39 < Thorn> although it's much more complicated of course
2012-05-08T23:49:10 < zyp> I've been thinking about tracking sleeping threads like that
2012-05-08T23:49:40 < zyp> i.e. threads that are waiting for a time delay and no other kind of event
2012-05-08T23:49:48 < Thorn> although this presents a problem of keeping state as usual
2012-05-08T23:50:45 < zyp> when a thread wants to sleep I'd just compute the wake up time and insert it into a linked list sorted by time
2012-05-08T23:51:15 < zyp> then just check the time stamp of the first thread in the list on every context switch
2012-05-08T23:52:08 < zyp> should make a pretty efficient scheduler
2012-05-08T23:52:32 < Thorn> what if it decides to sleep until some interrupt?
2012-05-08T23:53:14 < Thorn> (i/o, not timer)
2012-05-08T23:53:23 < zyp> then it will not go into that list
2012-05-08T23:54:05 < zyp> it would go into another list of threads stopped for an undefined amount of time
2012-05-08T23:54:38 < zyp> and then the interrupt routine would call a function to put it into a list of ready to run threads when it's ready
2012-05-08T23:55:36 < zyp> same applies for lock waits and stuff like that
2012-05-08T23:59:34 < Thorn> that's basically what everybody like freertos does
--- Day changed Wed May 09 2012
2012-05-09T00:03:19 < zyp> and that would mean that it's the sensible way to do it, right? ;)
2012-05-09T00:03:55 < zyp> I should probably read the tanenbaum os book once, I think stuff like this is discussed in it
2012-05-09T00:05:23 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving]
2012-05-09T00:05:40 < Thorn> oh crap, that code...
2012-05-09T00:05:55 < Thorn> I actually shuddered upon seeing a delay() in an ISR
2012-05-09T00:07:48 < zyp> then you would love the code I wrote to test bitbanged jtag, called directly from the usb isr
2012-05-09T00:09:48 < jpa-> or my code where it takes a screenshot and saves it to filesystem from timer ISR
2012-05-09T00:09:55 < zyp> it hardfaulted when I tried using my Time::sleep() routine, because that invokes Thread::yield(), which invokes svc
2012-05-09T00:10:14 < zyp> so I did some dumb delay loops instead
2012-05-09T00:10:32 < zyp> http://cgit.jvnv.net/suzumebachi/commit/?h=usb&id=521e8df <- I actually even committed it
2012-05-09T00:12:38 < Thorn> delaying for 1000 cycles isn't that bad
2012-05-09T00:13:25 < zyp> don't forget the increment, compare and branch
2012-05-09T00:15:30 < zyp> I guess it makes out to some tenths of kHz, it would probably work with way shorter delays than that
2012-05-09T00:16:43 -!- gkwhc [~me@unaffiliated/gkwhc] has quit [Ping timeout: 245 seconds]
2012-05-09T00:17:24 <+Steffanx> jtag to program the cpld zyp ?
2012-05-09T00:17:37 < zyp> yes
2012-05-09T00:18:06 <+Steffanx> At least JTAG is after SPI the easiest protocol on earth
2012-05-09T00:18:27 <+Steffanx> (and still many manufacturers screw things up with their jtag implementations)
2012-05-09T00:18:35 < zyp> if we're talking easy as in easy to bitbang
2012-05-09T00:18:54 <+Steffanx> As in easy to bitbang and everyrthing
2012-05-09T00:19:18 <+Steffanx> Just a simple statemachine and there you go
2012-05-09T00:22:36 < karlp> zyp: your task scheduler stuff is how some of the packet schedulers work too.
2012-05-09T00:23:25 < zyp> :)
2012-05-09T00:23:42 < karlp> we used something like that at cisco for doing scheduling in extremely limited cycles
2012-05-09T00:23:50 < zyp> well, I haven't written it yet, I've just been thinking about it
2012-05-09T00:23:53 < karlp> we called it the timing wheel.
2012-05-09T00:24:21 < karlp> things got stuck on the wheel sometime when it would be there turn to send again. and just went round and around the wheel
2012-05-09T00:24:46 < zyp> how so?
2012-05-09T00:24:47 <+Steffanx> And then you had a perpetuum mobile?
2012-05-09T00:25:25 < karlp> instead of processes we had packets on queues of a given rate.
2012-05-09T00:25:34 < karlp> but same thing otherwise,
2012-05-09T00:35:08 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving]
2012-05-09T00:35:24 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-09T00:35:27 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-09T00:36:40 < Thorn> yet another embedded interpreter http://code.google.com/p/surveyor-srv1-firmware/source/browse/trunk/blackfin/srv/picoc/README
2012-05-09T00:40:18 <+Steffanx> I'd like to see Tiny C Compiler on an STM32 :)
2012-05-09T00:43:20 <+Steffanx> Maybe in Dreamland
2012-05-09T00:43:23 <+Steffanx> Gn
2012-05-09T00:48:38 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 240 seconds]
2012-05-09T00:51:24 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32
2012-05-09T00:54:23 < jpa-> yay, usb serial works
2012-05-09T00:54:35 < jpa-> lessons learned: full-speed usb won't work if port is configured as 2MHz
2012-05-09T00:55:56 < zyp> you mean in gpio registers?
2012-05-09T00:56:12 < zyp> F1 or F4?
2012-05-09T00:56:12 < jpa-> yeah
2012-05-09T00:56:15 < jpa-> L1
2012-05-09T00:56:19 < zyp> ah, right
2012-05-09T00:56:30 < zyp> that uses the same peripheral as F1 I guess?
2012-05-09T00:56:35 < jpa-> yeah
2012-05-09T00:56:59 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-09T00:57:01 < jpa-> also broke one of my LSM303's :/
2012-05-09T00:57:32 < jpa-> confirmed that it had not soldered properly, a few pads were completely dry on the chip.. but i broke off the VDD pad of the chip when desoldering
2012-05-09T00:57:39 < zyp> I don't touch the speed settings on my F4, usb still works just fine
2012-05-09T00:57:55 < zyp> ouch
2012-05-09T00:58:15 < jpa-> next time i'll first wet all the pads before soldering the chip in place
2012-05-09T00:58:25 < jpa-> that should verify that they make connection
2012-05-09T00:58:38 < jpa-> i mean, wet them on both sides, chip and board
2012-05-09T00:59:15 < zyp> next time I'll make a footprint with pads protuding from the chip on all sides so I can get to them after the chip is soldered in place
2012-05-09T00:59:32 < jpa-> ah, i was smart enough to do that :P
2012-05-09T01:00:13 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Quit: Ex-Chat]
2012-05-09T01:00:44 < zyp> my L3GD20 footprint is good, just not the LSM303DLM one
2012-05-09T01:13:10 < Thorn> night
2012-05-09T01:13:17 -!- Thorn [~Thorn@unaffiliated/thorn] has quit []
2012-05-09T01:24:45 < Laurenceb_> i had the same issue as zyp
2012-05-09T01:25:07 < Laurenceb_> i used a solder stencil but i didnt put "thermals" on the pads
2012-05-09T01:25:12 < Laurenceb_> so some wicked more
2012-05-09T01:25:29 < zyp> I have that, so that's not the problem here
2012-05-09T01:25:41 < Laurenceb_> managed to get a little more solder under the dry ones with a iron and sharp bit
2012-05-09T01:26:37 < zyp> I tried that as well, but there is one side I can't come to
2012-05-09T01:27:09 < Laurenceb_> ladyboys?
2012-05-09T01:27:36 < zyp> wat?
2012-05-09T01:27:47 < Laurenceb_> "there is one side I can't come to"
2012-05-09T01:28:23 < zyp> I mean there is components close to the accel on one side, so I can't get the iron in the right place
2012-05-09T01:28:46 < Laurenceb_> ah
2012-05-09T01:28:55 < zyp> the caps are supposed to be placed close to the package, and I did just that :p
2012-05-09T01:28:58 < Laurenceb_> i find some solder flux helps
2012-05-09T01:29:02 < Laurenceb_> i mean paste
2012-05-09T01:29:30 < Laurenceb_> then reflux with the iron
2012-05-09T01:29:36 < Laurenceb_> *flow
2012-05-09T01:29:46 < zyp> http://bin.jvnv.net/f/QW7ZG.png <- it's the side that C12 is on
2012-05-09T01:30:00 < zyp> C13 actually, but yeah
2012-05-09T01:30:44 < Laurenceb_> unlucky capacitor
2012-05-09T01:36:57 < Laurenceb_> zzz time
2012-05-09T01:37:43 < Laurenceb_> more trolling awaits tomorrow
2012-05-09T01:42:30 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 260 seconds]
2012-05-09T01:50:52 < TitanMKD> If anyone like NFC challenge i just updated my blog
2012-05-09T01:51:22 < TitanMKD> the challenge is to decrypt my Mifare One card data where i publish the sniffed data
2012-05-09T01:51:42 < TitanMKD> of course it's trivial ;)
2012-05-09T01:56:00 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-09T01:58:50 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 260 seconds]
2012-05-09T02:01:07 < TitanMKD> bye
2012-05-09T02:01:10 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
2012-05-09T02:28:04 -!- gkwhc [~me@unaffiliated/gkwhc] has joined ##stm32
2012-05-09T02:59:01 -!- mrcan__ [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-09T03:02:16 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 260 seconds]
2012-05-09T03:03:11 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-09T03:06:30 -!- mrcan__ [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 260 seconds]
2012-05-09T03:42:22 -!- BrainDam- [BrainDamag@i.love.tiltshellz.org] has quit [Read error: Operation timed out]
2012-05-09T03:51:52 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32
2012-05-09T04:24:54 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer]
2012-05-09T05:01:24 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 245 seconds]
2012-05-09T05:03:02 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 250 seconds]
2012-05-09T05:05:37 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Ping timeout: 272 seconds]
2012-05-09T05:07:37 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32
2012-05-09T05:25:10 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Remote host closed the connection]
2012-05-09T05:27:38 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-09T05:27:40 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32
2012-05-09T05:42:08 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-09T05:48:11 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has left ##stm32 []
2012-05-09T08:06:58 < gkwhc> hi, how can I diagnose DMA not being started?
2012-05-09T08:21:29 < gkwhc> hm i can see ADC data in the register, and i can also see the DMA channel being requested. however I cant see the ADC data that is copied to RAM
2012-05-09T08:24:41 < gkwhc> theres also one catch, the callback function is never called
2012-05-09T08:33:32 < gkwhc> any ideas?
2012-05-09T08:46:13 < gkwhc> i am actually using another device, efm32, from another vendor
2012-05-09T08:46:45 < gkwhc> yeah. i also followed their examples/appnotes
2012-05-09T08:55:42 < gkwhc> dongs: is it possible to see how many DMA transfers has occurred?
2012-05-09T09:06:59 < gkwhc> yeah i have a breakpoint at the callback function, though its never called
2012-05-09T09:09:18 < gkwhc> also the interrupt enable bit is set, however the "done" bit is not set
2012-05-09T09:10:35 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-09T09:19:57 < gkwhc> its really odd
2012-05-09T09:33:27 < zyp> haha
2012-05-09T09:34:32 < zyp> https://www.adafruit.com/products/565 <- this one would be fitting
2012-05-09T09:35:16 < zyp> «Sometimes you need celebrate mistakes.» Laurenceb would have a lot to celebrate
2012-05-09T09:44:16 < Tectu> okay guys...  someone here working without IDE? so bare vim and make?
2012-05-09T09:45:14 < Tectu> zyp, arround?
2012-05-09T09:45:20 < Tectu> dongs, what do people here use under linux?
2012-05-09T09:45:55 < Tectu> dongs, IAR?
2012-05-09T09:46:59 < Tectu> hmkay
2012-05-09T09:47:31 < Tectu> my stm32f103 development board got shipped with a shitload of keil examples
2012-05-09T09:50:15 < Tectu> could be, yes
2012-05-09T09:50:20 < Tectu> i just want to don't use IDE
2012-05-09T09:50:24 < Tectu> but i have problems with stubs
2012-05-09T09:50:35 < Tectu> basic things like GPIO/USART are working
2012-05-09T09:51:02 < Tectu> but the example works under KEIL/WINDOWS with SDcard, but when i do it iunder linux with vim and make, it hangs after mounting the SD card
2012-05-09T09:51:08 < Tectu> and i think it's because of the stubs
2012-05-09T10:18:19 -!- dekar [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep]
2012-05-09T10:32:57 < gsmcmullin> Tectu: I use vim and make.
2012-05-09T10:33:10 < Tectu> gsmcmullin, yay \o/
2012-05-09T10:33:16 < Tectu> gsmcmullin, are you happy with it?
2012-05-09T10:33:26 < gsmcmullin> If I wasn't, I wouldn't.
2012-05-09T10:33:29 < Tectu> hrhr
2012-05-09T10:33:32 < Tectu> gsmcmullin, do you use stmlib?
2012-05-09T10:33:43 < gsmcmullin> no, libopencm3
2012-05-09T10:34:05 < Tectu> do you recommend it?
2012-05-09T10:34:18 < gsmcmullin> yes
2012-05-09T10:34:29 < Tectu> can you show me your makefile?
2012-05-09T10:34:32 < gsmcmullin> I guess it depends on your goals though.
2012-05-09T10:34:42 < gsmcmullin> There are many examples in libopencm3.
2012-05-09T10:34:45 < Tectu> gsmcmullin, ever did SD card stuff?
2012-05-09T10:34:53 < Tectu> gsmcmullin, can i get your makefile?
2012-05-09T10:34:59 < gsmcmullin> Only with SPI sd card, not with SDIO.
2012-05-09T10:35:48 < Tectu> gsmcmullin, i'd be really happy to get a working makefile
2012-05-09T10:36:12 < gsmcmullin> https://github.com/tmolteno/openfat/blob/master/stm32/Makefile
2012-05-09T10:36:28 < Tectu> nice
2012-05-09T10:36:46 < Tectu> thanks
2012-05-09T10:36:47 < gsmcmullin> It may be out of date.
2012-05-09T10:37:04 < gsmcmullin> I'll try to rebuild now.
2012-05-09T10:37:09 < Tectu> does libopencm3 contain sd card example?
2012-05-09T10:37:15 < gsmcmullin> No
2012-05-09T10:37:21 < Tectu> fuck.
2012-05-09T10:37:40 < Tectu> can you show me your sd card project?
2012-05-09T10:37:49 < gsmcmullin> Look at the link I posted above.
2012-05-09T10:38:12 < Tectu> good
2012-05-09T10:38:13 < Tectu> thanks
2012-05-09T10:38:37 < Tectu> it does only contain wirte?
2012-05-09T10:38:40 < Tectu> write* no read?
2012-05-09T10:38:50 < gsmcmullin> It does read and write
2012-05-09T10:40:04 < gsmcmullin> No mkfs though
2012-05-09T10:41:26 < gsmcmullin> It still builds.  I don't have the hardware to test it right now.
2012-05-09T10:47:34 < Tectu> no mkfs? you mean i just have to format the card on the computer?
2012-05-09T10:50:16 < gsmcmullin> yes
2012-05-09T10:51:12 < Tectu> FAT 32, i guess?
2012-05-09T10:51:14 < gsmcmullin> Error checking is nearly non-existant.  I don't know what would happen if you tried to mount an unformatted volume.
2012-05-09T10:51:46 < gsmcmullin> fat12/fat16/fat32 are all supported.
2012-05-09T10:53:25 < Tectu> hmm
2012-05-09T10:53:28 < Tectu> i just need to read .txt file
2012-05-09T10:53:30 < Tectu> line by line
2012-05-09T10:54:46 < gsmcmullin> My implementation only provides a read(2) like interface.  You can use newlib to give you an fgets/fscanf if needed.
2012-05-09T10:56:10 < jpa-> fatfs is the standard solution :)
2012-05-09T10:57:59 -!- Thorn__ [~Thorn@unaffiliated/thorn] has joined ##stm32
2012-05-09T10:58:29 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-09T10:59:15 -!- Thorn__ is now known as Thorn
2012-05-09T11:09:21 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-09T11:16:05 < Tectu> gsmcmullin, what exactly returns your read?
2012-05-09T11:16:52 < zyp> usually the number of read bytes
2012-05-09T11:17:01 < zyp> so I would guess that
2012-05-09T11:23:30 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 260 seconds]
2012-05-09T11:30:16 < Tectu> but
2012-05-09T11:30:22 < Tectu> a pointer or something too?
2012-05-09T11:34:36 < gsmcmullin> Tectu: http://www.blacksphere.co.nz/doc/openfat/openfat_8h.html#a21d1e46690df5109639b53750731f32b
2012-05-09T11:35:03 < gsmcmullin> returns number of bytes read.
2012-05-09T11:35:16 < Tectu> ah
2012-05-09T11:35:19 < Tectu> thanks
2012-05-09T11:44:29 -!- dekar [~dekar@dslb-188-097-015-075.pools.arcor-ip.net] has joined ##stm32
2012-05-09T11:44:32 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-09T11:56:00 < Thorn> lpc1788 sdram fail http://electronics.stackexchange.com/questions/31469/sdram-prototype-vs-production-woes
2012-05-09T12:04:25 -!- dekar [~dekar@dslb-188-097-015-075.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep]
2012-05-09T12:31:35 < gkwhc> hm it seems like slow spi causes DMA to be clogged up/hang. can anyone confirm this?
2012-05-09T12:37:27 < zyp> dma in stm32 doesn't have anything in common with dma in your thing
2012-05-09T12:38:18 < gkwhc> but in a general sense?
2012-05-09T12:38:24 < zyp> but on a general basis it should not matter at all
2012-05-09T12:39:45 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Ping timeout: 260 seconds]
2012-05-09T12:39:54 < gkwhc> i am not sure what DMA controller stm32 uses, but mine uses PL230 uDMA licensed from ARM
2012-05-09T12:40:22 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32
2012-05-09T12:40:52 < gkwhc> i think the way i am using might be faulty, like how I was using interrupts
2012-05-09T12:41:49 < ziph> gkwhc: Slow SPI going over a DMA channel clogs up other DMA transfers?
2012-05-09T12:42:37 < gkwhc> when DMA transfers ADC data from ADC register to RAM, it performs a call back that refreshes DMA, and also writes the ADC data in RAM to an SD card through SPI
2012-05-09T12:44:48 < gkwhc> yeah, i just tested the call back function with a call to the SDcard write routine commented out
2012-05-09T12:45:21 < gkwhc> there were 432 transfers, where as there are only 9 transfers with the write routine
2012-05-09T12:50:10 < Laurenceb> lol i like the badges
2012-05-09T12:51:04 < Laurenceb> https://www.adafruit.com/products/570 is good
2012-05-09T12:51:07 < gkwhc> are there any solutions to this?
2012-05-09T12:57:06 < ziph> gkwhc: What's your CPU doing while these DMA's are going on?
2012-05-09T12:57:37 < Laurenceb> while(1)
2012-05-09T12:58:01 < ziph> That doesn't always work, it can tie up the bus and starve the DMA.
2012-05-09T12:59:48 < gkwhc> yeah, while(1). however, the CPU is tied up in the DMA's callback function, where it is writing data to the SD card
2012-05-09T13:00:20 < ziph> Polling some peripheral register?
2012-05-09T13:04:19 < Thorn> iirc in stm32 dma gets 50% of the bus time, no? (so the cpu can't take up the whole bus)
2012-05-09T13:05:14 < ziph> Possibly, I've never looked at stm32 DMA.
2012-05-09T13:05:51 < gkwhc> ziph: this is the simplified version of the code
2012-05-09T13:05:55 < gkwhc> http://pastebin.com/QZc7CQn3
2012-05-09T13:07:12 < gkwhc> after 512 DMA transfers are performed, it calls the callback function, adcPingPongTransferComplete, which writes the data to SD card
2012-05-09T13:07:33 < Thorn> callback or interrupt?
2012-05-09T13:08:08 < gkwhc> callback (term also used in appnotes & datasheet)
2012-05-09T13:09:21 < Thorn> I wonder how it's implemented
2012-05-09T13:09:36 < Thorn> in a OS-less envrionment
2012-05-09T13:10:42 < ziph> I really doubt the MCU is implementing the ARM EBI. :)
2012-05-09T13:11:47 < gkwhc> i dont think it has EBI
2012-05-09T13:12:53 < ziph> ABI I mean
2012-05-09T13:13:11 -!- dekar [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has joined ##stm32
2012-05-09T13:13:23 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-09T13:14:33 < gkwhc> dont think so either =/
2012-05-09T13:15:21 < gkwhc> the DMA is on the AHB bus though
2012-05-09T13:20:35 < gkwhc> ziph: is there a way to break away and let the CPU write to the SD card while DMA copies ADC data to RAM? is RTOS the only solution?
2012-05-09T13:21:03 < ziph> gkwhc: The ADC DMA should go on in the background anyhow.
2012-05-09T13:23:37 < gkwhc> ziph: right, the DMA is indeed in background, but i dont think the callback function is
2012-05-09T13:24:08 < ziph> Oh, you want the callback to do something long running.
2012-05-09T13:24:25 < ziph> Have it trigger something that isn't running in an interrupt.
2012-05-09T13:24:46 < ziph> e.g. change the while (1) to wait for a signal from the callback.
2012-05-09T13:25:00 < ziph> How are you setting up the DMA by the way?
2012-05-09T13:25:22 < Thorn> in stm32 at least, dma completion "callbacks" are interuupts
2012-05-09T13:25:47 < ziph> You put an address in some register?
2012-05-09T13:25:52 < Thorn> hard to imagine it any other way (well you can always do a busy wait)
2012-05-09T13:26:07 < gkwhc> ziph: oh i see, so same thing with interrupts, use flags in main()?
2012-05-09T13:26:11 < ziph> The usual way is just to have an interrupt triggered. :)
2012-05-09T13:26:17 < ziph> gkwhc: Yeap.
2012-05-09T13:26:30 < gkwhc> ziph: gotchya
2012-05-09T13:26:36 < ziph> gkwhc: You can have main() call the WFI opcode by the way.
2012-05-09T13:26:49 < gkwhc> cool
2012-05-09T13:26:58 < ziph> gkwhc: You just need to make sure your DMA transfers aren't using a bus/peripheral that gets turned off.
2012-05-09T13:27:48 < gkwhc> i see. from what things are looking like, its probably worth giving rtos a try eh?
2012-05-09T13:27:57 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 245 seconds]
2012-05-09T13:28:21 < ziph> Yeah, an RTOS will give you events to signal things like that.
2012-05-09T13:28:27 < ziph> (Or mailboxes)
2012-05-09T13:30:40 < gkwhc> easy management
2012-05-09T13:31:18 < ziph> They may not automatically call WFI though, since it can cause odd problems if you're using a bus that gets shut down.
2012-05-09T13:31:49 < ziph> But in that case you just create a low priority task with while (true) { WFI }
2012-05-09T13:32:53 < gkwhc> i see
2012-05-09T13:34:12 < ziph> Then when an interrupt happens the interrupt will run, and at the end of the interrupt the OS will check things like events.
2012-05-09T13:34:24 < ziph> And schedule any task that was waiting on those events.
2012-05-09T13:34:43 < ziph> And once that all settles down it'll go back to the low priority WFI task.
2012-05-09T13:37:35 < gkwhc> cool, thanks so much ziph!
2012-05-09T13:45:44 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-09T13:48:51 < gkwhc> hm odd, when I put the routine inside of main, the function executed only twice...with over 400 DMA transfers
2012-05-09T14:27:29 < ziph> No, they're usually just variables.
2012-05-09T14:28:24 < ziph> No, when you wait on an event your thread is marked as waiting on that event and won't get scheduled again until the event is fired.
2012-05-09T14:28:58 < ziph> If the thread waiting on that event is higher priority than the one running it will also pre-empt it.
2012-05-09T14:29:23 < ziph> e.g. setting an event can cause a context switch to the higher priority event, which is usually desirable.
2012-05-09T14:30:09 < ziph> You can do it all without an RTOS, particularly if you don't want/need pre-emption.
2012-05-09T14:30:30 < ziph> For example you can have a linked list of callbacks to run in main.
2012-05-09T14:30:51 < ziph> Then main() is just a while (true) { WFI; call all callbacks currently in the list }
2012-05-09T14:31:42 < ziph> Somewhat like the NT Kernel's DPC's that get called once the current priority level is low enough and are usually used to deal with data from peripherals without doing it all at high priority levels.
2012-05-09T14:33:43 < ziph> (Interrupts do as little as possible but then queue up DPC's that run at a priority between interrupts and user processes)
2012-05-09T14:38:03 -!- cjbaird_ [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-09T14:38:19 -!- zyp_ [zyp@zyp.im] has joined ##stm32
2012-05-09T14:40:01 -!- tunebird [~andrew@web130.webfaction.com] has joined ##stm32
2012-05-09T14:42:07 < zyp> 13:30:09 < ziph> You can do it all without an RTOS, particularly if you don't want/need pre-emption.
2012-05-09T14:42:08 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Remote host closed the connection]
2012-05-09T14:42:10 -!- zyp [zyp@zyp.im] has quit [Ping timeout: 252 seconds]
2012-05-09T14:42:11 -!- mansfeld [~andrew@robopoly/watson] has quit [Ping timeout: 252 seconds]
2012-05-09T14:44:49 -!- zyp_ is now known as zyp
2012-05-09T14:46:45 < Laurenceb> or just abuse the nvic
2012-05-09T14:47:00 < zyp> zlog
2012-05-09T14:47:00 < zlog> zyp: Log stored at http://tom-itx.dyndns.org:81/~tom-itx/irc/logs/%23%23stm32/2012-05-09.html
2012-05-09T14:47:04 < Laurenceb> with software triggered low preemption priority interrupts
2012-05-09T14:47:11  * Laurenceb runs away from zyp
2012-05-09T14:49:00 < ziph> Yeah, NVIC abuse works too, but it does feel dirty having an interrupt running that long. ;)
2012-05-09T14:49:48 < zyp> you need to be as nutty as Laurenceb to actually do stuff like that :p
2012-05-09T14:50:53 < Laurenceb> if its low priority and you let the hardware interrupts nest inside it its fine
2012-05-09T14:52:13 < zyp> but what is the advantage?
2012-05-09T14:57:20 < ziph> It gives you more non-deterministic stack usage. ;)
2012-05-09T14:57:56 < zyp> how is it, F4 got MPU, right?
2012-05-09T14:58:23 < karlp> man, can we not have ziph, zyp and zippe please?
2012-05-09T14:58:31 < zyp> no
2012-05-09T14:58:36 < karlp> fine.
2012-05-09T14:58:44 < ziph> I've been ziph since about '95, I win.
2012-05-09T14:59:00 -!- karlp is now known as z1ph
2012-05-09T14:59:10 -!- ziph is now known as karlp
2012-05-09T14:59:27 < karlp> :)
2012-05-09T14:59:40 -!- karlp is now known as ziph
2012-05-09T14:59:48 < zyp> dongs, sounds pretty expected
2012-05-09T15:01:21 -!- Laurenceb is now known as zLaurenceb
2012-05-09T15:01:32 < z1ph> man, saying "no" to "do you want to save this config" and then seeing it get saved anyway is tedious
2012-05-09T15:09:35 -!- zLaurenceb is now known as Laurenceb
2012-05-09T15:09:44 < Laurenceb>  /msg nickserve
2012-05-09T15:28:36 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-09T15:28:46 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Remote host closed the connection]
2012-05-09T15:34:30 -!- phantone is now known as phantoxe
2012-05-09T15:40:59 -!- izua [~izua@188.26.166.198] has joined ##stm32
2012-05-09T15:41:00 -!- izua [~izua@188.26.166.198] has quit [Changing host]
2012-05-09T15:41:00 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-09T15:41:03 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-09T15:44:13 -!- dekar [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep]
2012-05-09T15:51:17 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-09T15:55:01 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Read error: Connection reset by peer]
2012-05-09T16:03:39 < Thorn> my 7-segs use 25-30mA in total
2012-05-09T16:06:44 < Laurenceb> http://omegav.no/wiki/index.php/AVR/Tutorial/Charlieplexing
2012-05-09T16:07:00 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 260 seconds]
2012-05-09T16:11:42 < Thorn> I think I'm going to assemble yet another board
2012-05-09T16:19:15 < cjbaird_> L: ..this wasn't a generic idea since the 1970s? I was certainly doing it back in high-school..
2012-05-09T16:19:44 < Laurenceb> yeah
2012-05-09T16:20:02 < Laurenceb> i just like the stupid number of segments off 8 pins
2012-05-09T16:23:09 < Thorn> what duty cycle would those segments have?
2012-05-09T16:24:51 < Laurenceb> probably very low
2012-05-09T16:25:15 < Laurenceb> but with most leds you can use very high currents in breif pulses
2012-05-09T16:25:25 < Laurenceb> unfortunately avr gpio is current limited
2012-05-09T16:25:39 < Laurenceb> some IR LEDs can take 10A pulsed
2012-05-09T16:26:34 < Thorn> good thing jtag is rarely used with avr lol
2012-05-09T16:27:12 < Thorn> because when I stop my stm32 a single digit remains on
2012-05-09T16:27:30 < Laurenceb> yeah with 10A itd explode
2012-05-09T16:28:05 < Thorn> (and it's significantly brighter than when dynamic scan is running)
2012-05-09T16:28:16 < Laurenceb> most visible leds can take at least 200ma - at least 0603 ones can
2012-05-09T16:28:28 < Laurenceb> -pulsed for a few us
2012-05-09T16:28:58 < Thorn> I guess that's what they do in fiber optics for example
2012-05-09T16:29:13 < Laurenceb> nah they use VCSELs
2012-05-09T16:30:03 < Thorn> not all fiber optics uses lasers afaik
2012-05-09T16:30:32 < Laurenceb> yeah cheap ass stuff doesnt
2012-05-09T16:40:13 < Laurenceb> trollsaway
2012-05-09T16:41:56 < Laurenceb> so mr troll
2012-05-09T16:41:58 < Laurenceb> http://www.joystiq.com/2011/12/31/ccp-launching-eve-character-names-and-pictures-into-space-via-gi/
2012-05-09T16:42:03 < Laurenceb> ^is that sad?
2012-05-09T16:42:56 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-09T16:53:53 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-09T17:22:25 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-09T17:22:42 < ratatata> nu
2012-05-09T17:23:48 < Laurenceb> i the internet
2012-05-09T17:24:00 < Laurenceb> accidentally the whole internet
2012-05-09T17:26:11 < jpa-> not the internet?
2012-05-09T17:26:59 < Laurenceb> accidentally an internets
2012-05-09T17:28:03 < jpa-> don't worry, i have a backup
2012-05-09T17:28:32 < jpa-> gonna take a while to upload it though
2012-05-09T17:30:19 -!- ben1066_ [~quassel@host86-147-240-100.range86-147.btcentralplus.com] has joined ##stm32
2012-05-09T17:32:45 -!- ben1066 [~quassel@host109-152-85-91.range109-152.btcentralplus.com] has quit [Ping timeout: 260 seconds]
2012-05-09T17:36:36 -!- dekar [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has joined ##stm32
2012-05-09T17:36:39 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-09T17:39:25 -!- ben1066_ [~quassel@host86-147-240-100.range86-147.btcentralplus.com] has quit [Read error: Operation timed out]
2012-05-09T17:41:01 -!- ben1066 [~quassel@host86-151-190-177.range86-151.btcentralplus.com] has joined ##stm32
2012-05-09T17:41:06 < Thorn> wtf
2012-05-09T17:41:32 < Thorn> I accidentally filtered one of the can messages that the pc sends to boards, but they still ACK it
2012-05-09T18:07:12 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-09T18:10:56 -!- cjbaird_ is now known as cjbaird
2012-05-09T18:25:23 -!- tavish [~tavish@59.177.12.61] has joined ##stm32
2012-05-09T18:25:23 -!- tavish [~tavish@59.177.12.61] has quit [Changing host]
2012-05-09T18:25:23 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-09T18:26:47 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-09T18:32:33 -!- tavish_ [~tavish@59.177.15.152] has joined ##stm32
2012-05-09T18:33:07 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 272 seconds]
2012-05-09T18:37:20 -!- tavish [~tavish@120.59.14.208] has joined ##stm32
2012-05-09T18:37:20 -!- tavish [~tavish@120.59.14.208] has quit [Changing host]
2012-05-09T18:37:20 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-09T18:37:30 -!- tavish_ [~tavish@59.177.15.152] has quit [Ping timeout: 260 seconds]
2012-05-09T18:41:58 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 250 seconds]
2012-05-09T18:42:03 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-09T18:42:04 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-09T18:49:41 < Laurenceb> hehe
2012-05-09T18:49:59 < Laurenceb> got scope monitoring my logger power supply and logging to the logger via usb
2012-05-09T18:54:08 < zyp> I put a logger in your logger so you can log while you log
2012-05-09T18:55:03 <+izua> i put a flash section to remap the flash remapper so you can remap the flash remapper's sector while it remaps your bad sectors
2012-05-09T18:56:19 < Thorn> do CAN controllers ACK everything they see or only messages that pass through filters?
2012-05-09T19:20:28 <+Steffanx> I just say Hello
2012-05-09T19:25:42 < zyp> Thorn, unsure, I would imagine the latter
2012-05-09T19:25:51 < zyp> the former kind of defeats the purpose
2012-05-09T19:31:51 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-09T19:42:51 -!- izua_ [~izua@188.26.92.253] has joined ##stm32
2012-05-09T19:42:51 -!- izua_ [~izua@188.26.92.253] has quit [Changing host]
2012-05-09T19:42:51 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32
2012-05-09T19:42:54 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-09T19:43:26 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 272 seconds]
2012-05-09T19:51:27 -!- specing [~specing@unaffiliated/specing] has quit [Ping timeout: 265 seconds]
2012-05-09T19:57:35 < Tectu> gsmcmullin, you could make that?  https://github.com/tmolteno/openfat
2012-05-09T20:10:46 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 252 seconds]
2012-05-09T20:12:26 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-09T20:12:27 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-09T20:15:05 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-09T20:15:11 < TitanMKD> hi
2012-05-09T20:15:32 <+Steffanx> lo
2012-05-09T20:23:29 < zyp> z
2012-05-09T20:23:57 < z1ph> zz
2012-05-09T20:24:29 <+Steffanx> Karl is the new ziph?
2012-05-09T20:24:36 <+Steffanx> karlp
2012-05-09T21:08:42 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit []
2012-05-09T21:14:03 < gsmcmullin> Tectu: Yes. 'make HOST=stm32'
2012-05-09T21:31:55 -!- ben1066 [~quassel@host86-151-190-177.range86-151.btcentralplus.com] has quit [Ping timeout: 260 seconds]
2012-05-09T21:35:50 -!- gkwhc [~me@unaffiliated/gkwhc] has quit [Ping timeout: 252 seconds]
2012-05-09T21:41:18 -!- ben1066 [~quassel@host86-160-30-34.range86-160.btcentralplus.com] has joined ##stm32
2012-05-09T22:07:02 < Tectu> ah, that could be the problem, thanks gsmcmullin
2012-05-09T22:21:13 < jpa-> lol
2012-05-09T22:21:35 < jpa-> i programmed   asm("wfi"); at the start of my main(), to see the sleep mode power consumption
2012-05-09T22:21:49 < jpa-> now i cannot flash it because it immediately goes to sleep and out of reach of debugger
2012-05-09T22:22:41 < Tectu> jpa-, change boot mode to booloader mode?
2012-05-09T22:23:10 < Tectu> but as you know, i am not the expert here
2012-05-09T22:24:26 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-09T22:24:35 < jpa-> yeah that should work, but apparently stlink can also do it
2012-05-09T22:24:40 < jpa-> i'll try a newer version
2012-05-09T22:27:30 -!- gkwhc [~me@unaffiliated/gkwhc] has joined ##stm32
2012-05-09T22:30:00 < jpa-> fixed it by precisely timing reset button :D
2012-05-09T22:30:39 < emeb> I put an asm("wfi"); at the end of my foreground loop. Cut power by about 20% and didn't cause any (additional) programming issues.
2012-05-09T22:31:20 < Tectu> jpa-, wtf? :D
2012-05-09T22:31:36 < emeb> asm("wtf");
2012-05-09T22:31:45 < Tectu> jpa-, how the hell did you precisley timing the reset button?
2012-05-09T22:31:50 < Tectu> that are milliseconds, arent they
2012-05-09T22:33:37 < jpa-> Tectu: well i guess the delay between stlink "opening debugger" and "starting programming" is longer
2012-05-09T22:33:46 < jpa-> it might have some timeout
2012-05-09T22:34:32 < jpa-> emeb: hmph.. i'm trying with chibios, enabling WFI cuts power only like 1mA (out of 18mA), even though the processor is mostly idle
2012-05-09T22:35:34 < jpa-> slowing down the tick rate didn't help either
2012-05-09T22:35:42 < Tectu> jpa-, okay guys, here's the thing.  i need to do a device:  that reads from SD card, uses display (normal textdisplays), reads keymatrix, uses USART.... i don't want to take an IDE... what do you suggest?   stdlib? chibios? libopencm3?
2012-05-09T22:35:46 < emeb> jpa-: ah - so chibios is probably doing all sorts of other stuff you can't control. My app all my own code - nothing else happening.
2012-05-09T22:37:30 < jpa-> emeb: probably
2012-05-09T22:38:18 < jpa-> Tectu: well i would suggest chibios, because i love it :P
2012-05-09T22:38:45 < jpa-> basically what you are describing sounds like it'll be easier with an RTOS; you can have the user interface in a separate thread
2012-05-09T22:38:46 < Tectu> jpa-, do sd cards work with it?
2012-05-09T22:38:51 < jpa-> Tectu: of course?
2012-05-09T22:38:54 < Tectu> jpa-, thank
2012-05-09T22:39:01 < jpa-> (and yes, it has even built-in driver)
2012-05-09T22:39:05 < Tectu> jpa-, well, of course? sorry that i ask, but i try to learn ;-)
2012-05-09T22:39:11 < Tectu> jpa-, and i saw that libopencm3 dosen't
2012-05-09T22:40:31 < jpa-> Tectu: well even if it didn't have built-in driver, you could just use any driver
2012-05-09T22:40:47 < jpa-> you can combine code from many sources :P
2012-05-09T22:41:35 < Tectu> jpa-, sure
2012-05-09T22:41:53 < TitanMKD> Tectu use chibios ;)
2012-05-09T22:42:16 < TitanMKD> Tectu the SPI, USART driver work fine and with DMA
2012-05-09T22:42:55 < TitanMKD> Tectu USB driver for STM32F4 is a work in progress and they are not working
2012-05-09T22:43:52 < Tectu> i'd use STM32F103RB
2012-05-09T22:45:35 < TitanMKD> In that case USB is supported with chibios but i never tested it
2012-05-09T22:47:12 < jpa-> works fine on STM32L151 atleast :P
2012-05-09T22:50:13 < zyp> I were using chibios for a brief period before i threw it out
2012-05-09T22:50:25 < zyp> but that's just because I like doing stuff my way
2012-05-09T22:50:37 < jpa-> i've already fell in love with the automatic asserts on clock config
2012-05-09T22:50:47 < jpa-> i mean, compile-time #errors
2012-05-09T22:51:17 < zyp> but that only works for macros, I'm going to have static_asserts in my code
2012-05-09T22:51:49 < jpa-> yeah, as long as there is a mechanism :)
2012-05-09T22:52:24 < zyp> I am planning to do something similar for pin assignments
2012-05-09T22:53:21 < zyp> but I haven't implemented it yet, last time I tried I found I could not do it the way I had planned
2012-05-09T22:56:11 < zyp> my RCC code is an example of how I want things to work
2012-05-09T22:56:23 < zyp> that is actually working :p
2012-05-09T22:58:07 < Tectu> someone has the html doxygen of chibios?
2012-05-09T22:58:11 < Tectu> where do i find functions
2012-05-09T22:58:13 < Tectu> not types
2012-05-09T22:58:21 < Tectu> like   palClearPad()
2012-05-09T22:58:25 < Tectu> and palSetPad()
2012-05-09T23:02:08 < jpa-> uh? the documentation link on the web page?
2012-05-09T23:04:15 < jpa-> hmm.. power usage jumps 4mA -> 11mA as soon as i enable PWM.. but it doesn't fall back after i disable PWM
2012-05-09T23:05:49 < Tectu> jpa-, sorry, but can you give me the link? i am not able to find the function documentation
2012-05-09T23:06:38 < jpa-> http://www.chibios.org/dokuwiki/doku.php?id=chibios:documents   the "full documentation" link?
2012-05-09T23:07:01 < jpa-> http://chibios.sourceforge.net/html/group___h_a_l.html   etc.
2012-05-09T23:07:11 < Tectu> jpa-, sure, but where is the documentation for example for palSetPad()
2012-05-09T23:08:00 < jpa-> http://chibios.sourceforge.net/html/group___p_a_l.html   here, at the point where it says 'palSetPad()'
2012-05-09T23:08:16 < Tectu> aw
2012-05-09T23:08:23 < Tectu> what does PAL stand for anyways?
2012-05-09T23:08:50 < jpa-> "Ports Abstraction Layer"
2012-05-09T23:08:58 < jpa-> (as it says in the beginning of the page)
2012-05-09T23:09:55 < Tectu> >.<
2012-05-09T23:11:15 < jpa-> :P
2012-05-09T23:11:36 < Tectu> i guess using serial bootloader is much slower than jtag?
2012-05-09T23:12:07 < jpa-> not much
2012-05-09T23:14:22 < zyp> it's probably even faster than texane/stlink
2012-05-09T23:15:48 < Tectu> aw
2012-05-09T23:16:06 < Tectu> is it possible that chibios changed allot in the last few months?
2012-05-09T23:16:13 < zyp> serial bootloader is running at 115200 baud, at 11 bits per byte that's about 10kB/s of available bandwidth
2012-05-09T23:16:16 < jpa-> hmm, enabling TIM4->CCER increases power consumption by 7mA, even though the output is not switching (PWM is at 0)
2012-05-09T23:16:28 < jpa-> Tectu: not much, why?
2012-05-09T23:16:34 < Tectu> jpa-, dunno
2012-05-09T23:16:49 < Tectu> jpa-, hard to bring a simple led blinking work on a non-standard board
2012-05-09T23:16:52 < Tectu> but i'll figure out
2012-05-09T23:17:52 < jpa-> Tectu: not so hard, but yeah, you basically have to rewrite the board.h to define your pins
2012-05-09T23:18:12 < Tectu> jpa-, yes, that's what i figured out
2012-05-09T23:18:29 < Tectu> but i am doing hard in seeing through their file organisation
2012-05-09T23:18:42 < jpa-> it takes about an hour for me to start a chibios project on a new board.. but on the other hand, then i already have all the pins defined etc.
2012-05-09T23:18:57 < jpa-> Tectu: true, the directory hierarchy is a bit annoying
2012-05-09T23:19:18 < jpa-> i just copy the board.c & board.h into my main folder and have just original files in the chibios folder
2012-05-09T23:19:18 < Tectu> jpa-, you basicly created a new board.h?
2012-05-09T23:19:53 < Tectu> jpa-, makefiles in ch/demos do have  board.mk... what the hell is mk
2012-05-09T23:20:01 < jpa-> basically yeah, using the original from chibios/boards/ST_STM32L_DISCOVERY/  as a template (because i'm using STM32L151)
2012-05-09T23:20:10 < jpa-> makefile
2012-05-09T23:20:17 < jpa-> i don't use board.mk
2012-05-09T23:20:22 < Tectu> i never ever saw .mk
2012-05-09T23:20:54 < Tectu> jpa-, can you show me your project file?
2012-05-09T23:20:56 < Tectu> makefile*
2012-05-09T23:21:38 < jpa-> wait a moment, i'll commit
2012-05-09T23:22:01 < Tectu> jpa-, thanks
2012-05-09T23:22:18 < Tectu> really hard to see through their makefile stuff for me
2012-05-09T23:22:27 < Tectu> since i am not the 20 years of makefiles experience guy
2012-05-09T23:23:51 < jpa-> https://svn.kapsi.fi/jpa/sphere/Makefile
2012-05-09T23:24:12 < jpa-> and Makefile.chibios is copied from the demos, just edited a bit
2012-05-09T23:24:26 < TitanMKD> hehe
2012-05-09T23:24:32 < Tectu> TitanMKD, hmm?
2012-05-09T23:25:20 < Tectu> jpa-, glue.c?  lol?
2012-05-09T23:25:25 < jpa-> yay \o/   figured out the power consumption, i had the PWM polarity wrong and the FET pull-ups caused the current draw
2012-05-09T23:25:25 < TitanMKD> oups ;)
2012-05-09T23:25:43 < jpa-> Tectu: yeah, standard term for that kind of code
2012-05-09T23:27:57 < Tectu> ah
2012-05-09T23:28:35 < Tectu> jpa-, i guess you wouldn't mind if i'd take a few copies from your makefile?
2012-05-09T23:29:51 < jpa-> go ahead
2012-05-09T23:30:41 < Tectu> thank you, sir
2012-05-09T23:31:37 < Tectu> zyp, so serial is 10kB/s... and JTAG?
2012-05-09T23:32:01 < zyp> depends on the adapter
2012-05-09T23:32:21 < Tectu> zyp, stlink v2
2012-05-09T23:32:24 < zyp> it's faster, but texane/stlink is still slow on flashing, so you only get 1-2 kB/s in practice
2012-05-09T23:32:26 < Tectu> the real thing, not a discovery
2012-05-09T23:32:31 < Tectu> oh
2012-05-09T23:32:35 < jpa-> also copy chibios/demos/ARMCM3-STM32F103/Makefile  as   Makefile.chibios  and then modify it a bit.. these are the changes i made  http://paste.dy.fi/yvB/plain
2012-05-09T23:33:10 < jpa-> (mainly removing stuff that i define separately in Makefile)
2012-05-09T23:36:59 < Tectu> hmm
2012-05-09T23:37:30 < Tectu> also seems like you stripped down your chibios folder
2012-05-09T23:37:45 < jpa-> nope (but i didn't commit it to svn yet)
2012-05-09T23:37:56 < jpa-> i didn't edit the contents of the chibios folder at all
2012-05-09T23:38:36 < jpa-> (btw, you could just use the chibios' Makefile directly, but I think it has too much stuff that i don't need to edit and that's why i want to have the stuff i do edit in a separate file)
2012-05-09T23:40:35 < Tectu> its strange
2012-05-09T23:40:40 < Tectu> seriusly
2012-05-09T23:40:53 < Tectu> i never saw such a strange project hirarchy (directory hirarchy)
2012-05-09T23:41:53 -!- eroomde_ [~ed@kraken.habhub.org] has joined ##stm32
2012-05-09T23:43:21 < Tectu> jpa-,  arm-none-eabi-gcc: baselibc/libc.a: No such file or directory
2012-05-09T23:43:25 < Tectu> is it a custom path of you?
2012-05-09T23:45:32 < zyp> I used scons when I used chibios
2012-05-09T23:46:07 < zyp> http://cgit.jvnv.net/suzumebachi/tree/SConstruct?id=f502161 <- just extracted the parts I needed like this
2012-05-09T23:47:02 -!- eroomde [~ed@kraken.habhub.org] has quit [Write error: Broken pipe]
2012-05-09T23:47:05 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Excess Flood]
2012-05-09T23:47:27 -!- Thorn [~Thorn@2.93.101.6] has joined ##stm32
2012-05-09T23:47:27 -!- Thorn [~Thorn@2.93.101.6] has quit [Changing host]
2012-05-09T23:47:27 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32
2012-05-09T23:47:41 < Tectu> zyp, looks much clearer to me
2012-05-09T23:47:50 < zyp> of course, it's scons :p
2012-05-09T23:48:12 < Tectu> zyp, is it only that one?
2012-05-09T23:48:17 < zyp> yep
2012-05-09T23:48:19 < Tectu> all the other projects do have multiple make files
2012-05-09T23:48:23 < Tectu> how is that possible
2012-05-09T23:48:52 < zyp> because scons is a proper modern tool and not outdated shit that doesn't handle multiple directories properly
2012-05-09T23:51:41 < Tectu> zyp, should i use scons from now on for everything?
2012-05-09T23:51:53 < Tectu> zyp, why do people still use make then?
2012-05-09T23:52:16 < zyp> ask them, I don't
2012-05-09T23:52:45 < Tectu> zyp, can i use that file for my projects?
2012-05-09T23:53:00 < zyp> sure, if you get it to work for you
2012-05-09T23:53:35 < zyp> I haven't used chibios for a year, so it likely requires some changes to adapt
2012-05-09T23:54:21 < Tectu> do you have some scons crashcurse?
2012-05-09T23:54:56 < Tectu> ah, scons website does :D
2012-05-09T23:55:00 < zyp> :p
2012-05-09T23:57:18 < Tectu> zyp, is it just me or dosen't they tell how the scons files need to be named
2012-05-09T23:57:39 < Tectu> http://www.scons.org/doc/HTML/scons-user.html#chap-simple
2012-05-09T23:59:31 < Tectu> oh
2012-05-09T23:59:33 < Tectu> damn am i tired
2012-05-09T23:59:34 < Tectu> me out
2012-05-09T23:59:36 < Tectu> see you and thanks :D
--- Day changed Thu May 10 2012
2012-05-10T00:00:12 -!- izua_ [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer]
2012-05-10T00:00:13 -!- izua_ [~izua@188.26.92.253] has joined ##stm32
2012-05-10T00:00:13 -!- izua_ [~izua@188.26.92.253] has quit [Changing host]
2012-05-10T00:00:13 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32
2012-05-10T00:00:13 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-10T00:08:13 < jpa-> Tectu: yeah, baselibc is a separate library (alternative to newlib)
2012-05-10T00:09:12 -!- gkwhc [~me@unaffiliated/gkwhc] has quit [Ping timeout: 245 seconds]
2012-05-10T00:10:43 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection]
2012-05-10T00:11:26 -!- ben1066 [~quassel@host86-160-30-34.range86-160.btcentralplus.com] has quit [Read error: Connection reset by peer]
2012-05-10T00:11:27 -!- ben1066 [~quassel@86.160.30.34] has joined ##stm32
2012-05-10T00:25:26 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 260 seconds]
2012-05-10T00:25:37 -!- Laurenceb_ [~Laurence@86.177.210.248] has joined ##stm32
2012-05-10T00:37:23 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds]
2012-05-10T00:46:30  * Laurenceb_ rage at pcb layout
2012-05-10T00:46:33 < Laurenceb_> http://i.imgur.com/uue3D.png
2012-05-10T00:46:38 < Laurenceb_> guess i made some progress
2012-05-10T00:47:48 < zyp> what's the deal with the upper right corner and ground plane?
2012-05-10T00:48:52 < Laurenceb_> havent decided wher eit goes yet
2012-05-10T00:49:05 < zyp> everywhere? :p
2012-05-10T00:49:18 < zyp> or do you need to keep out of somewhere?
2012-05-10T00:49:57 < zyp> what's the connector on the left side?
2012-05-10T00:50:07 < Laurenceb_> theres going to be an analogue groundplane
2012-05-10T00:50:11 < Laurenceb_> hirose
2012-05-10T00:50:33 < Laurenceb_> same as on lots of phones
2012-05-10T00:52:06 < Laurenceb_> you can use the solder jumpers to route usb to the hirose for iso60601 compliance
2012-05-10T00:52:29 < Laurenceb_> - so n00bs dont plug it into their pcs or anything
2012-05-10T00:58:56 < Laurenceb_> im swapping the max1811 charger for a Ti  BQ24090
2012-05-10T00:59:10 < Laurenceb_> max1811 is annoying - always wants to oscillate
2012-05-10T01:14:34 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 260 seconds]
2012-05-10T01:15:29 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
2012-05-10T01:15:34 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925075879.dsl.bell.ca] has joined ##stm32
2012-05-10T01:15:34 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925075879.dsl.bell.ca] has quit [Changing host]
2012-05-10T01:15:34 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-10T01:32:50 -!- Laurenceb_ [~Laurence@86.177.210.248] has quit [Ping timeout: 260 seconds]
2012-05-10T01:47:07 -!- dekar [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has quit [Read error: Connection reset by peer]
2012-05-10T01:47:42 -!- dekar [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has joined ##stm32
2012-05-10T01:47:45 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-10T02:23:29 -!- Rious [~Rious@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Ping timeout: 245 seconds]
2012-05-10T02:25:42 -!- Rious [~Rious@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32
2012-05-10T02:26:08 -!- Rious [~Rious@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood]
2012-05-10T02:27:12 -!- Rious [~Rious@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32
2012-05-10T03:30:05 -!- izua_ [~izua@unaffiliated/izua] has quit [Ping timeout: 260 seconds]
2012-05-10T03:59:03 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-10T04:38:08 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 240 seconds]
2012-05-10T04:46:15 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-10T05:13:33 -!- gkwhc [~me@unaffiliated/gkwhc] has joined ##stm32
2012-05-10T06:24:30 -!- gkwhc [~me@unaffiliated/gkwhc] has quit [Ping timeout: 260 seconds]
2012-05-10T06:51:08 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-10T07:15:25 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-10T07:15:28 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32
2012-05-10T08:34:20 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-10T08:34:23 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-10T08:39:04 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds]
2012-05-10T09:01:40 < Tectu> morning guys
2012-05-10T09:02:08 < zyp> morning
2012-05-10T09:08:13 < Tectu> zyp, scons is hard to bring it to work :D
2012-05-10T09:12:48 < Tectu> jpa-, you arround somewhere?
2012-05-10T09:14:46 < Thorn> zyp: it appears that the stm32 can controller will ack everything whether it passed filters or not
2012-05-10T09:20:42 -!- ben1066_ [~quassel@host109-152-58-115.range109-152.btcentralplus.com] has joined ##stm32
2012-05-10T09:22:25 -!- ben1066 [~quassel@86.160.30.34] has quit [Ping timeout: 260 seconds]
2012-05-10T09:29:36 < zyp> Tectu, how?
2012-05-10T09:29:43 < zyp> Thorn, ok, nice to now
2012-05-10T09:32:07 < Thorn> so an ack simply means the bus is functioning
2012-05-10T09:32:31 < zyp> sounds a bit strange
2012-05-10T09:35:18 < Thorn> http://www.embeddedrelated.com/usenet/embedded/show/42676-1.php
2012-05-10T09:35:37 < Tectu> zyp, question:   board.h in chibios does have definitions like
2012-05-10T09:35:39 < Tectu> #define VAL_GPIODCRL            0x88888844      /*  PD7...PD0 */
2012-05-10T09:35:41 < Tectu> #define VAL_GPIODCRH            0x88888888      /* PD15...PD8 */
2012-05-10T09:35:43 < Tectu> #define VAL_GPIODODR            0xFFFFFFFF
2012-05-10T09:35:51 < Tectu> that addresses are all the same for every stm32f103, right?
2012-05-10T09:36:19 < zyp> that's not addresses, that's pin modes
2012-05-10T09:36:29 < Tectu> ah
2012-05-10T09:36:32 < Tectu> ah
2012-05-10T09:36:35 < Tectu> i was wondered
2012-05-10T09:36:36 < Thorn> 0xFFFFFFFF would be an interesting address
2012-05-10T09:36:44 < Tectu> Thorn, hrhr, indeed
2012-05-10T09:37:09 < Thorn> it's the Lockup Address which is guaranteed to produce a fault on access
2012-05-10T09:37:13 < zyp> CRL and CRH chooses input/output/AF and so on
2012-05-10T09:37:26 < zyp> and ODR is the output registers, so that sets all outputs high
2012-05-10T09:38:22 < Tectu> zyp, cool, lets try
2012-05-10T09:40:00 < Tectu> no led flashing >:<
2012-05-10T09:40:51 < zyp> «nice… but it's shit»
2012-05-10T10:32:21 < Tectu> okay, does someone have a few minutes for helping me with chibios?
2012-05-10T10:33:55 < Tectu> i have a board with a stm32f103vet. it has an LED on GPIOD pin 8. i try to change the board.h from the Olimex_STM32_P103 board example in chibios. I gave GPIOD PD8  'push pull output 50mhz' and changed the toggle pin in the blinker thread in the main to PD8
2012-05-10T10:33:58 < Tectu> but nothing happens, when i flash
2012-05-10T10:34:42 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-10T10:34:45 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-10T10:35:06 < Tectu> this is my modified main:   http://pastebin.com/HFi1VE67
2012-05-10T10:35:53 < Tectu> and here the modified board.h   http://pastebin.com/V8ZpR9SX
2012-05-10T10:36:10 < Tectu> i only modified line 58 and 127
2012-05-10T10:37:50 < Tectu> someone an idea?
2012-05-10T10:38:47 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds]
2012-05-10T10:44:09 < zyp> looks correct if it's in fact connected to PD8
2012-05-10T10:45:45 < zyp> check that GPIOD is enabled in RCC
2012-05-10T10:45:57 < zyp> got gdb available?
2012-05-10T10:46:11 < zyp> I'd try printing the contents of GPIOD registers
2012-05-10T10:53:00 < Tectu>  zyp still no GDB
2012-05-10T10:53:08 < Tectu> zyp, where is the RCC stuff in the demos
2012-05-10T10:58:00 < zyp> in the file reading board.h or something
2012-05-10T10:58:14 < zyp> I don't remember the name, it's a year since I played with it
2012-05-10T10:59:49 < zyp> hmm, I was thinking about board.c, but it's not there
2012-05-10T11:00:00 < zyp> I guess it's all implicit then
2012-05-10T11:06:19 < Tectu> zyp, so it it should do it itself?
2012-05-10T11:06:30 < zyp> guess so
2012-05-10T11:07:03 < Tectu> grml
2012-05-10T11:07:08 < Tectu> anything else wrong
2012-05-10T11:07:09 < Tectu> ?
2012-05-10T11:23:03 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-10T11:23:40 < Tectu> zyp ?
2012-05-10T11:24:30 < zyp> sorry, I'm at work so I'm not watching irc constantly
2012-05-10T11:24:57 < zyp> but no, I can't see anything obviously wrong
2012-05-10T11:30:16 < Tectu> ok, thanks
2012-05-10T11:30:21 < Tectu> jpa-, are you arround
2012-05-10T11:30:57 < zyp> so, why do you still lack a debugger? :p
2012-05-10T11:31:14 < Tectu> zyp, :D
2012-05-10T11:34:53 -!- dekar [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep]
2012-05-10T11:38:37 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-10T11:47:48 < Tectu> zyp, will get one soon
2012-05-10T11:49:41 < zyp> good
2012-05-10T11:58:18 < Tectu> zyp, not sure if i'll be able to handle it
2012-05-10T11:58:21 < Tectu> never did gdb stuff
2012-05-10T11:58:27 < Tectu> are there good tutorials out there?
2012-05-10T12:05:19 < zyp> well, when getting new tools you obviously have to learn how to use it
2012-05-10T12:05:28 < zyp> none of us were born programmers
2012-05-10T12:15:45 -!- dekar [~dekar@studpool-wlan-75-20.fs.fbi.h-da.de] has joined ##stm32
2012-05-10T12:15:48 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-10T12:17:14 -!- dekar_ [~dekar@studpool-wlan-74-23.fs.fbi.h-da.de] has joined ##stm32
2012-05-10T12:17:17 -!- mode/##stm32 [+v dekar_] by ChanServ
2012-05-10T12:18:57 < Tectu> none of us expect you?
2012-05-10T12:20:02 -!- dekar [~dekar@studpool-wlan-75-20.fs.fbi.h-da.de] has quit [Ping timeout: 245 seconds]
2012-05-10T12:29:25 -!- dekar_ [~dekar@studpool-wlan-74-23.fs.fbi.h-da.de] has quit [Quit: This computer has gone to sleep]
2012-05-10T12:48:08 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-10T13:05:15 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 260 seconds]
2012-05-10T13:57:55 -!- izua [~izua@188.26.92.253] has joined ##stm32
2012-05-10T13:57:55 -!- izua [~izua@188.26.92.253] has quit [Changing host]
2012-05-10T13:57:55 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-10T13:57:58 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-10T14:05:17 < jpa-> Tectu: busy
2012-05-10T14:06:32 < Tectu> np jpa-
2012-05-10T14:18:26 < Laurenceb> sup dongs
2012-05-10T14:18:29 < Laurenceb> nice receiver
2012-05-10T14:18:41 < Laurenceb> but cant ublox already do glonass?
2012-05-10T14:19:04 < Laurenceb> oh yeah - it does galileo
2012-05-10T14:19:47 < Laurenceb> i bet that thing is 1hz updates
2012-05-10T14:19:49 < Laurenceb> lame
2012-05-10T14:20:35 < Laurenceb> galileo is actually dead simple
2012-05-10T14:20:55 < Laurenceb> i think the final design was actually all on a single vertex4
2012-05-10T14:22:38 < Laurenceb> then just a rubidium frequency standard unit and an old soviet RF power amp stage (yeah really)
2012-05-10T14:23:52 < Laurenceb> dongs: you have a tectronix MSO series scope right?
2012-05-10T14:24:07 < Laurenceb> im trying to understnad the fft function
2012-05-10T14:24:10 < Laurenceb> ah
2012-05-10T14:24:26 < Laurenceb> atm i have 10Msps and 1M points
2012-05-10T14:24:33 < zyp> dongs, see, that's what I said, «nice receiver … lame»
2012-05-10T14:24:36 < Laurenceb> does that mean 10hz/fft bin?
2012-05-10T14:24:56 < Laurenceb> lol
2012-05-10T14:26:20 < Laurenceb> lol
2012-05-10T14:26:28 < Laurenceb> mine is laggy too :(
2012-05-10T14:27:30 < Laurenceb> "Quick Tips: Use short record lengths for faster instrument response"
2012-05-10T14:29:42 < Laurenceb> manual doesnt explain the timebase :(
2012-05-10T14:30:54 < Laurenceb> ah wave inspector lets me view with datapoints
2012-05-10T14:31:00 < Laurenceb> but wtf - 5Hz/bin
2012-05-10T14:31:04 < Laurenceb> that makes no sense
2012-05-10T14:32:40 < Laurenceb> now running with 25s lag, nice
2012-05-10T14:47:40 < Laurenceb> i suspect maybe its using two interleaved fourier transforms
2012-05-10T14:47:58 < Laurenceb> each 10hz/bin, offset by 5hz
2012-05-10T14:48:04 < zyp> furious transform
2012-05-10T14:53:37 < Laurenceb> interesting - blackman-harris window makes a really clear difference to the signal
2012-05-10T14:54:18 < Laurenceb> spikes from interference leak over the spectrum with other windows
2012-05-10T14:57:20 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-10T15:03:40 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 260 seconds]
2012-05-10T15:22:43 < zyp> what's that?
2012-05-10T15:23:11 -!- dekar [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has joined ##stm32
2012-05-10T15:23:21 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-10T16:02:10 < Tectu> w00t
2012-05-10T16:02:12 < Tectu> that looks interesting
2012-05-10T16:02:44 < Laurenceb> wtf
2012-05-10T16:02:58 < Laurenceb> when i connect a cable to me frontend the response changes
2012-05-10T16:03:01 < Laurenceb> *my
2012-05-10T16:03:19 < Laurenceb> ive got transimpedance amp followed by bandpass
2012-05-10T16:03:53 < Laurenceb> http://imgur.com/z3ok3,vLopG
2012-05-10T16:04:25 < zyp> «when I change stuff, stuff changes»
2012-05-10T16:06:12 < Laurenceb> actually at 11.8khz the response is almost the same
2012-05-10T16:06:22 < Laurenceb> maybe mains interference on the front?
2012-05-10T16:06:42 < Laurenceb> the CFL tubes in here check out a load of noise around 5khz
2012-05-10T16:07:34 < Laurenceb> i cant see how the front end could effect the bandpass that follows it :/
2012-05-10T16:08:33 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-10T16:08:47 < ratatata> nu
2012-05-10T16:17:43 < ratatata>  anybody got a working code for stm32 discovery with sd card connected in spi and fat or other filesystem used ?
2012-05-10T16:21:36 < Laurenceb> yes
2012-05-10T16:21:41 < Laurenceb> on my github
2012-05-10T16:22:25 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-10T16:24:54 < ratatata> Thanks Laurenceb
2012-05-10T16:29:42 < Laurenceb> oh thats not discovery
2012-05-10T16:29:45 < Laurenceb> but shrug
2012-05-10T16:30:09 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-10T16:30:58 -!- tavish [~tavish@120.59.5.8] has joined ##stm32
2012-05-10T16:30:59 -!- tavish [~tavish@120.59.5.8] has quit [Changing host]
2012-05-10T16:30:59 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-10T16:34:43 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124]
2012-05-10T16:37:07 < ratatata> im tired of trying to port existing codes i found on the web to discovery board
2012-05-10T16:37:25 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 272 seconds]
2012-05-10T16:37:39 < ratatata> but ill try again
2012-05-10T16:37:49 -!- tavish [~tavish@120.56.128.140] has joined ##stm32
2012-05-10T16:37:49 -!- tavish [~tavish@120.56.128.140] has quit [Changing host]
2012-05-10T16:37:49 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-10T16:46:26 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-10T16:47:02 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Read error: Operation timed out]
2012-05-10T16:50:23 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-10T16:53:01 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-10T17:05:46 -!- tavish_ [~tavish@59.177.11.153] has joined ##stm32
2012-05-10T17:06:10 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds]
2012-05-10T17:07:32 < Tectu> wtf, did the CodeSourcery website move?
2012-05-10T17:07:59 < Tectu> i don't find the link anymore
2012-05-10T17:08:40 < Tectu> aah, there it is
2012-05-10T17:12:20 -!- tavish_ [~tavish@59.177.11.153] has quit [Ping timeout: 256 seconds]
2012-05-10T17:13:57 -!- tavish [~tavish@120.59.15.190] has joined ##stm32
2012-05-10T17:13:57 -!- tavish [~tavish@120.59.15.190] has quit [Changing host]
2012-05-10T17:13:57 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-10T17:14:40 -!- peabody124 [~peabody12@128.249.96.21] has quit [Remote host closed the connection]
2012-05-10T17:17:21 -!- tavish_ [~tavish@59.177.15.3] has joined ##stm32
2012-05-10T17:19:09 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 255 seconds]
2012-05-10T17:27:37 -!- tavish_ [~tavish@59.177.15.3] has quit [Ping timeout: 252 seconds]
2012-05-10T17:28:36 -!- tavish [~tavish@120.59.11.143] has joined ##stm32
2012-05-10T17:28:36 -!- tavish [~tavish@120.59.11.143] has quit [Changing host]
2012-05-10T17:28:36 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-10T17:34:45 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds]
2012-05-10T17:35:42 -!- tavish [~tavish@120.59.14.143] has joined ##stm32
2012-05-10T17:35:42 -!- tavish [~tavish@120.59.14.143] has quit [Changing host]
2012-05-10T17:35:42 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-10T17:40:58 < Thorn> has anybody interfaced an rgb display to a cortex-m? it seems that you'd need external ram for a framebuffer, even a 480x272x16 bit is 255 Kbytes
2012-05-10T17:41:11 < jpa-> you don't keep the graphics in ram
2012-05-10T17:41:51 < jpa-> http://essentialscrap.com/dsoquad/logic.html   see for example the principle i use there, under the "Display drawing" section
2012-05-10T17:42:17 < jpa-> uses just about 2kB of ram to draw 400x240 pixel display
2012-05-10T17:42:20 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds]
2012-05-10T17:43:26 < Thorn> rendering on the fly?
2012-05-10T17:43:46 < jpa-> yeah
2012-05-10T17:43:48 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-10T17:43:59 < jpa-> and DMA is tranferring the previous row while i'm rendering the next one
2012-05-10T17:44:18 < Thorn> so you basically keep a list of vector primitives and re-rasterize them every frame?
2012-05-10T17:45:02 < jpa-> yes
2012-05-10T17:45:24 < Thorn> well I guess it would work if all you need is text and lines
2012-05-10T17:45:35 < Thorn> which should be what I need also
2012-05-10T17:45:49 < jpa-> well i don't see why you couldn't render quite much anything
2012-05-10T17:46:01 < jpa-> bitmaps of course take more memory
2012-05-10T17:46:17 < jpa-> but you could load even them line-by-line from SD card
2012-05-10T17:46:47 < Thorn> you'd need to sort those primitives by the bounding box for speed I guess
2012-05-10T17:47:41 < jpa-> if you have hundreds of them
2012-05-10T17:48:06 < jpa-> i just go through them all every scanline.. takes just a few clock cycles to skip the ones that are out of their bounding box
2012-05-10T17:48:24 < jpa-> (note that you can also render e.g. 10 scanlines at a time if you want to reduce the overhead)
2012-05-10T17:48:54 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-10T17:55:09 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 255 seconds]
2012-05-10T18:01:47 -!- tavish_ [~tavish@120.56.238.235] has joined ##stm32
2012-05-10T18:07:21 -!- tavish_ [~tavish@120.56.238.235] has quit [Ping timeout: 272 seconds]
2012-05-10T18:10:22 < Thorn> I remember reading that e.g. space shuttle MFDs didn't receive any video from the main computers, but rather actual parameters to display, and generated the image internally
2012-05-10T18:10:34 < Thorn> which would make sense in terms of bus bandwidth
2012-05-10T18:10:44 < z1ph> you can also get displays with frame buffer ram built into the display right?
2012-05-10T18:11:29 < Thorn> I have a couple of 320x240 displays with builtin controllers from China
2012-05-10T18:12:14 < Thorn> but they update quite slowly in every software example I've seen
2012-05-10T18:13:09 < Thorn> something like SSD1289 or something
2012-05-10T18:14:28 < Thorn> they also always have a huge initialization routine that sends a few tens of undocumented commands, and they may not be the same for different displays, too. and those displays have not part number, it's China
2012-05-10T18:14:37 < Thorn> and they simply look crappy, too
2012-05-10T18:15:57 < Thorn> sparkfun sells a controller-less Sharp display which was used in playstation portable, you can also get some from newhaven, innolux etc. those are properly documented and most likely of much better quality
2012-05-10T18:32:23 < Thorn> they use a 8-bit interface iirc, so it's most likely bitbanging
2012-05-10T18:32:34 < Thorn> may even be slower than proper spi
2012-05-10T18:33:55 < Thorn> I'm looking at a schematics for one board that came with a display, they most likely aren't using fsmc looking at what pins are used
2012-05-10T18:35:55 < jpa-> 8-bit FSMC is quite fast
2012-05-10T18:36:01 < jpa-> or 16-bit even
2012-05-10T18:38:25 < Thorn> just found a 8.4" 640x480 display for a boat radar for nearly $4000
2012-05-10T18:38:45 < Thorn> not bad for what looks like a pretty simple product
2012-05-10T18:44:16 < Laurenceb> $4k ?!
2012-05-10T18:45:04 < Thorn> actually $4,233 or so
2012-05-10T18:45:56 < Thorn> a display with some buttons and what looks like some intelligence. but even if it's running linux it can't cost so much to manufacture
2012-05-10T18:47:01 < Laurenceb> in b4 lunix
2012-05-10T18:50:35 < z1ph> all on the weathersealing.
2012-05-10T18:50:35 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-10T18:55:19 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Remote host closed the connection]
2012-05-10T18:55:28 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 256 seconds]
2012-05-10T18:56:29 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-10T18:58:23 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-10T18:59:28 < Thorn> what does a rgb display do if the signal disappears? does it immediately go blank?
2012-05-10T19:00:07 < Thorn> a controllerless display
2012-05-10T19:01:42 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 256 seconds]
2012-05-10T19:03:54 < Thorn> Charging Batteries Using USB Power?
2012-05-10T19:04:05 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-10T19:04:08 < Thorn> http://pdfserv.maxim-ic.com/en/an/AN3241.pdf
2012-05-10T19:04:18 < Thorn> lol
2012-05-10T19:05:25 < Thorn> yes thanks
2012-05-10T19:05:38 < Thorn> if only st.com would resolve here
2012-05-10T19:06:49 < z1ph> www.st.com does,
2012-05-10T19:06:54 < z1ph> don't know why st.com doesn't
2012-05-10T19:07:21 < Thorn> neither does for me
2012-05-10T19:07:29 < Thorn> trying from another ISP
2012-05-10T19:09:05 < Thorn> looks like it's my isp
2012-05-10T19:11:09 < Thorn> need to send them a rage email with dig output
2012-05-10T19:12:33 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds]
2012-05-10T19:13:25 < Laurenceb> http://www.google.com/search?client=ubuntu&channel=fs&q=hypeberry+pi&ie=utf-8&oe=utf-8&gl=uk
2012-05-10T19:13:27 < Laurenceb> lol
2012-05-10T19:16:05 < z1ph> what, that you're number 1?
2012-05-10T19:17:29 -!- tavish [~tavish@59.177.1.77] has joined ##stm32
2012-05-10T19:17:30 -!- tavish [~tavish@59.177.1.77] has quit [Changing host]
2012-05-10T19:17:30 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-10T19:17:35 < Laurenceb> im one successful troll
2012-05-10T19:17:35 < cjbaird> I used to be the most famous Chris Baird on Internets (FAQ maintainer, net.legend, etc.) until that bloody soccer player came along ;_;
2012-05-10T19:18:08 < cjbaird> Someone's already snatched the domain, though..
2012-05-10T19:19:25 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-10T19:20:25 < cjbaird> butthurtstm32owners.com is still avail! :D
2012-05-10T19:22:45 -!- izua [~izua@188.26.92.253] has joined ##stm32
2012-05-10T19:22:45 -!- izua [~izua@188.26.92.253] has quit [Changing host]
2012-05-10T19:22:45 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-10T19:22:48 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-10T19:23:47 < Thorn> 26+16? I've been looking at the lpc1788 manual, it will use 22 or 24 pins with a 16-bit tft
2012-05-10T19:27:53 < Thorn> (using its lcd controller peripheral)
2012-05-10T19:29:04 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 265 seconds]
2012-05-10T19:29:26 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-10T19:30:48 < Thorn> btw, I remember seeing something about a lcd controller in stm32f4 but there's nothing about it in rm0090
2012-05-10T19:31:54 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-10T19:35:43 < cjbaird> That's the mention of the FSMC being able to drive HD44780-type displays directly?
2012-05-10T19:36:37 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 248 seconds]
2012-05-10T19:36:42 < z1ph> 32L152 has an LCD controller at least...
2012-05-10T19:37:03 < z1ph> it's the difference between the 151 and 152,
2012-05-10T19:37:07 < z1ph> haven't used it though
2012-05-10T19:37:32 -!- tavish [~tavish@59.177.3.104] has joined ##stm32
2012-05-10T19:37:32 -!- tavish [~tavish@59.177.3.104] has quit [Changing host]
2012-05-10T19:37:32 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-10T19:37:36 < z1ph> yeah, but I havent' done any more with it than that.
2012-05-10T19:37:51 < z1ph> I mean, I can make my name scroll on the lcd, but I haven't connected it to anything else.
2012-05-10T19:46:57 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-10T19:48:42 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-10T19:51:39 -!- tavish_ [~tavish@59.177.2.85] has joined ##stm32
2012-05-10T19:53:19 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 250 seconds]
2012-05-10T19:56:38 -!- tavish_ [~tavish@59.177.2.85] has quit [Ping timeout: 240 seconds]
2012-05-10T19:58:44 < z1ph> man, I'd forgotten how tedious pcb layout and schematic capture is.
2012-05-10T19:59:38 < zyp> schematic is the tedious part, I find routing kind of fun
2012-05-10T20:00:13 < z1ph> oh, it's the damn alternate functions things.
2012-05-10T20:00:30 < z1ph> so many options.  need to connec them up in schematic, see how they go in pcb, rinse and repeat
2012-05-10T20:00:53 < z1ph> being forced to actually consider real world things like, "what capacitors am I going to use" is also not much fun.
2012-05-10T20:01:15 < z1ph> and realising that yet again I'm going to have make new footprints for things.
2012-05-10T20:01:26 < zyp> I did the BOM after finishing the design and ordering the boards
2012-05-10T20:01:31 < zyp> last time I did a board
2012-05-10T20:01:43 < zyp> I just specced 0603 for all caps
2012-05-10T20:01:44 < z1ph> well, you had at least picked footprint wise what caps to use
2012-05-10T20:02:23 < zyp> that was not a hard decision
2012-05-10T20:03:47 -!- tavish_ [~tavish@120.56.129.201] has joined ##stm32
2012-05-10T20:03:55 < zyp> 0402 are prone to dickery during reflow, requiring tedious reflow afterwards, never had that happen to 0603
2012-05-10T20:04:09 < zyp> tedious rework*
2012-05-10T20:04:15 < zyp> like tombstoning and so
2012-05-10T20:04:16 < z1ph> what are you using dongs? altium?
2012-05-10T20:04:55 < z1ph> what are you using?
2012-05-10T20:05:52 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit []
2012-05-10T20:11:57 -!- ben1066 [~quassel@host109-152-59-25.range109-152.btcentralplus.com] has joined ##stm32
2012-05-10T20:12:26 < zyp> are you selling that many of them?
2012-05-10T20:13:20 < Thorn> what are these things anyway?
2012-05-10T20:14:35 -!- ben1066_ [~quassel@host109-152-58-115.range109-152.btcentralplus.com] has quit [Ping timeout: 260 seconds]
2012-05-10T20:14:48 < Thorn> the ones that didn't work even once?
2012-05-10T20:17:16 < cjbaird> No point in wasting a good Climate Of Fear while there's a Democrat in the White House...
2012-05-10T20:20:01 < jpa-> z1ph: i usually print out the relevant pages of datasheet (pin list and pinout diagram for package) and select the pins on paper first :P
2012-05-10T20:21:55 -!- tavish_ [~tavish@120.56.129.201] has quit [Ping timeout: 255 seconds]
2012-05-10T20:22:12 < Thorn> I had to file down supercap pins to fit them into my current boards x_x
2012-05-10T20:26:43 < Thorn> it's pretty important to have parts in your hands before you place your pcb order. at least you can print your layout and try fitting parts for which you had to make or alter patterns
2012-05-10T20:30:17 -!- tavish_ [~tavish@59.177.11.140] has joined ##stm32
2012-05-10T20:32:40 < cjbaird> jpa-: re: http://essentialscrap.com/gps_bike_mount/ .. I'm in actually the same situtation.. (another OSMer with a HCx, too..)
2012-05-10T20:34:27 < jpa-> :)
2012-05-10T20:34:43 < jpa-> i should fix the holder, i broke it when tightening it to my new bike :/
2012-05-10T20:36:08 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-10T20:36:09 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-10T20:38:52 < cjbaird> I actually did most of this: http://osm.org/go/uYumaXQ-- ... Unfortunately, while I cycled almost every street to get the naming, bus stops, accuracy, etc., a lot of the ways were traced from Yahoo by a CT denier.. leaving only this :/ .. http://cleanmap.poole.ch/?zoom=12&lat=-32.9531&lon=151.67972&layers=B00
2012-05-10T20:40:38 < z1ph> fucking license change bullshit.
2012-05-10T20:40:55 < z1ph> I've stopped doing much editing
2012-05-10T20:40:58 < jpa-> i doubt the license change ever goes through
2012-05-10T20:42:06 < z1ph> stuff that I originally did by hand is marked as badmap
2012-05-10T20:42:13 <+Steffanx> zlog
2012-05-10T20:42:13 < zlog> Steffanx: Log stored at http://tom-itx.dyndns.org:81/~tom-itx/irc/logs/%23%23stm32/2012-05-10.html
2012-05-10T20:42:13 < z1ph> because someone else came and nudged evyerthing
2012-05-10T20:42:21 < z1ph> and _they_ haven't agreed
2012-05-10T20:44:47 < cjbaird> z1ph: /big/ problem in Australia with that-- there was a psycho named 'John Smith', banned from the mailing lists, etc., who went around 'maxspeed'ing everything he thought was a residential road, and other twitching mass-edits. Was done deliberately to fuck up the licence change attempt, and acted on to make it all irresversable as possible.
2012-05-10T20:44:59 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-10T20:45:51 < cjbaird> At least I've still got all the traces from the bike rides, so they can be re-entered when needed.
2012-05-10T20:46:00 < cjbaird> (traces and geolocated photos..)
2012-05-10T20:46:49 -!- tavish_ [~tavish@59.177.11.140] has quit [Ping timeout: 245 seconds]
2012-05-10T20:47:24 < z1ph> yeah, I've got lots of traces still, but I'm not feelign very inclined to care much about reentering it all.
2012-05-10T20:47:39 < z1ph> fortunately, _most_ of around here works out ok on cleanmap
2012-05-10T20:47:48 < cjbaird> But if anything, it made a lot more people in Oz pro-licence change after JohnSmith's acts. Only about 5-6 people in the whole country haven't agreed.
2012-05-10T20:48:19 < z1ph> how does the license change have anythign to do with a moron doing bad eidts?
2012-05-10T20:48:20 <+Steffanx> At least i've no idea where all the hassle is about
2012-05-10T20:48:45 -!- ben1066_ [~quassel@host86-128-56-59.range86-128.btcentralplus.com] has joined ##stm32
2012-05-10T20:48:54 < z1ph> someone decided it needed a new license, and now everything's in limbo for the last year and go knows how far forward.
2012-05-10T20:48:59 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-10T20:49:32 <+Steffanx> And how one can make the decision?
2012-05-10T20:50:09 < cjbaird> "Who wants to take the same side as a Mentally Ill freak?" :P :)
2012-05-10T20:50:45 -!- ben1066 [~quassel@host109-152-59-25.range109-152.btcentralplus.com] has quit [Ping timeout: 260 seconds]
2012-05-10T20:51:47 -!- izua_ [~izua@188.26.166.85] has joined ##stm32
2012-05-10T20:51:48 -!- izua_ [~izua@188.26.166.85] has quit [Changing host]
2012-05-10T20:51:48 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32
2012-05-10T20:51:50 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-10T20:54:54 -!- ben1066_ [~quassel@host86-128-56-59.range86-128.btcentralplus.com] has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
2012-05-10T20:55:25 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 260 seconds]
2012-05-10T20:55:57 -!- ben1066 [~quassel@host86-128-56-59.range86-128.btcentralplus.com] has joined ##stm32
2012-05-10T20:59:34 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 256 seconds]
2012-05-10T21:01:24 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-10T21:02:26 -!- ben1066_ [~quassel@host86-151-190-218.range86-151.btcentralplus.com] has joined ##stm32
2012-05-10T21:02:53 -!- ben1066_ [~quassel@host86-151-190-218.range86-151.btcentralplus.com] has quit [Client Quit]
2012-05-10T21:05:20 -!- ben1066 [~quassel@host86-128-56-59.range86-128.btcentralplus.com] has quit [Ping timeout: 260 seconds]
2012-05-10T21:06:20 -!- ben1066 [~quassel@host86-151-190-218.range86-151.btcentralplus.com] has joined ##stm32
2012-05-10T21:06:20 -!- ben1066 [~quassel@host86-151-190-218.range86-151.btcentralplus.com] has quit [Changing host]
2012-05-10T21:06:20 -!- ben1066 [~quassel@unaffiliated/ben1066] has joined ##stm32
2012-05-10T21:09:45 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 272 seconds]
2012-05-10T21:11:08 -!- ben1066 is now known as ben1066_
2012-05-10T21:11:24 -!- tavish [~tavish@59.177.11.165] has joined ##stm32
2012-05-10T21:11:25 -!- tavish [~tavish@59.177.11.165] has quit [Changing host]
2012-05-10T21:11:25 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-10T21:11:30 -!- ben1066_ is now known as ben1066
2012-05-10T21:14:55 <+Steffanx> Incl. a Intel 80C88 emulator
2012-05-10T21:15:33 < cjbaird> I almost bought one of those..
2012-05-10T21:15:42 <+Steffanx> You're old :P
2012-05-10T21:15:45 <+Steffanx> You too
2012-05-10T21:15:50 < cjbaird> A 8088 sim could also run Minix..
2012-05-10T21:16:20 <+Steffanx> I always feel young when you talk about things like that :P
2012-05-10T21:16:32 < cjbaird> I'm kickingmyself for not buying an Amstrad Z88 when they were on sale.
2012-05-10T21:16:42 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-10T21:17:40 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-10T21:17:53 < cjbaird> I did however buy an Hitachi HL300/OlivettiM15 luggable. That was an excellent XT clone.
2012-05-10T21:19:21 < cjbaird> Such a sim would entail using the FSMC external RAM setup with a (few) 4Mbit srams.. That's something I'm keeping an eye out for.
2012-05-10T21:21:56 < cjbaird> dongs: It's illegal to sell second-hand electronics in JP, correct?
2012-05-10T21:23:03 <+Steffanx> The japanese are dead thanks to the radiation level anyway
2012-05-10T21:35:38 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-10T21:37:14 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-10T21:39:06 -!- tavish [~tavish@59.177.12.237] has joined ##stm32
2012-05-10T21:39:06 -!- tavish [~tavish@59.177.12.237] has quit [Changing host]
2012-05-10T21:39:06 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-10T21:48:18 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 260 seconds]
2012-05-10T21:51:30 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-10T21:53:30 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-10T21:59:27 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
2012-05-10T22:00:47 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds]
2012-05-10T22:09:07 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-10T22:31:27 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-10T22:36:32 < z1ph> I'm reading AN2586 (hardware guidelines for f10x) and it says 1x100nF for each power pin pair, plus a 10uF (min 4.7uF)
2012-05-10T22:36:54 < z1ph> but the schematic for the 32VL discovery board doesn't have the 10uF cap on either the VL part, or the stlink side of the board.
2012-05-10T22:36:55 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 260 seconds]
2012-05-10T22:37:54 <+Steffanx> I should read that as 10uF for all power pin pairs together?
2012-05-10T22:38:43 < z1ph> yeah, 1x(number of power pin pairs) + 1 10uF for all of them
2012-05-10T22:39:15 < z1ph> they follow their own recs for the vdda, with a 1uF and 100nF there,
2012-05-10T22:39:28 < z1ph> when in doubt, add MORE decoupling I guess.
2012-05-10T22:39:54 <+Steffanx> :)
2012-05-10T22:40:05 < z1ph> caps will be half the board at this rate.
2012-05-10T22:40:17 <+Steffanx> Go 0402
2012-05-10T22:40:33 < Laurenceb_> huh
2012-05-10T22:40:38 < Laurenceb_> i thought it was 4u7
2012-05-10T22:40:40 < Laurenceb_> on vdd3
2012-05-10T22:40:47 <+Steffanx> min. ...
2012-05-10T22:40:48 < Laurenceb_> and 100n on the rest
2012-05-10T22:40:50 < Laurenceb_> oh
2012-05-10T23:27:40 < Laurenceb_> flyback- is a BOFH
2012-05-10T23:29:02 < Thorn> what was your username?
2012-05-10T23:33:08 < cjbaird> clickely click
2012-05-10T23:34:44 < Thorn> here, I fixed it. lots of disk space now available
2012-05-10T23:40:24 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-10T23:40:45 < Laurenceb_> huh?
2012-05-10T23:42:17 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-10T23:44:35 < z1ph> did I just miss half a conversation?
2012-05-10T23:45:23 < cjbaird> "..." that was all BOFH references...
2012-05-10T23:47:29 < Thorn> what was your username again?
2012-05-10T23:47:53 < Thorn> I don't see it in the system
2012-05-10T23:48:08 <+Steffanx>  /kick Thorn
2012-05-10T23:50:34 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-10T23:50:44 < cjbaird> No appreciation for the Classics.
2012-05-10T23:51:11 <+Steffanx> No, it makes be feel young :p
2012-05-10T23:51:26 < z1ph> so, VDD_target on a swd connector, is that meant to be something that the debugger can supply to the target, or that the target supplies to the debugger?
2012-05-10T23:51:40 < z1ph> I guess normally target->debugger, so the debugger can work with whatever voltage it's given?
2012-05-10T23:52:24 < z1ph> how many of you use a custom x pin connector for swd, and how many use the "modern" 10pin cortex connector?
2012-05-10T23:52:25 < Thorn> jtag can power a target
2012-05-10T23:52:46 <+Steffanx> I use the layout from the stm32f4 discovery z1ph
2012-05-10T23:52:53 <+Steffanx> the swd pinout from that board
2012-05-10T23:52:55 < z1ph> that's what I was looking at using,
2012-05-10T23:53:11 < z1ph> I was just wondering if that was reasonably standard or completely propriority
2012-05-10T23:53:18 < z1ph> with better spelling
2012-05-10T23:53:28 <+Steffanx> And i'm not sure where the vdd is used for, i guess for some sort of possible level converter
2012-05-10T23:54:05 < Thorn> a 10-pin connector is used by altera
2012-05-10T23:54:31 <+Steffanx> I like the 1mm 10pins connectors too
2012-05-10T23:54:44 <+Steffanx> but isn't that sort of 'jtag' only?
2012-05-10T23:56:06 < z1ph> do you mean 1mm, or 1.27mm? http://www.keil.com/coresight/connectors.asp
2012-05-10T23:56:48 <+Steffanx> 1.27 :P
2012-05-10T23:57:37 < z1ph> well, I guess I'm only going to be using stlinks to debug, so I might as well just use the stlink 6pin single row
2012-05-10T23:58:13 -!- tavish [~tavish@120.56.129.135] has joined ##stm32
2012-05-10T23:58:21 -!- tavish [~tavish@120.56.129.135] has quit [Changing host]
2012-05-10T23:58:22 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
--- Day changed Fri May 11 2012
2012-05-11T00:06:01 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 256 seconds]
2012-05-11T00:13:57 < Tectu> zyp, Steffanx jpa-: here some of my more successful work:  http://www.youtube.com/watch?v=AHE66yYV1lU&feature=g-upl
2012-05-11T00:15:19 <+Steffanx> :)
2012-05-11T00:24:02 < z1ph> are you all using a cap on nrst? or is that just "optimal" ?
2012-05-11T00:33:00 < z1ph> and for my own sanity, if I'm only going to be programming via swd, I don't need to make boot0 switchable right? that's only if I want to use the onboard bootloaders?
2012-05-11T00:34:10 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-11T01:08:50 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Disconnected by services]
2012-05-11T01:08:51 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-11T01:09:05 -!- mode/##stm32 [+v Steffann] by ChanServ
2012-05-11T01:22:45 < zyp> z1ph, yep
2012-05-11T01:22:54 < zyp> I tied boot0 low on my last board
2012-05-11T01:28:31 < Laurenceb_> lol i just got emailed by a n00b about IMU position determination
2012-05-11T01:29:28 < Laurenceb_> "i left the accelerometer double integrating for 3 hours but the position has drifted by 10^9 meters"
2012-05-11T01:37:01 < zyp> now you know how I feel when you present some of your ideas
2012-05-11T01:38:46 < Laurenceb_> oi
2012-05-11T01:39:03 < Laurenceb_> apparently they forgot about gravity
2012-05-11T01:39:09 < Laurenceb_> and sensor calibration
2012-05-11T01:39:25 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-11T01:39:46 < zyp> and the fact that double integration absorbs error like crazy
2012-05-11T01:40:03 < zyp> accumulates*
2012-05-11T01:42:33 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 250 seconds]
2012-05-11T01:57:56 -!- phantoneD is now known as phantoxeD
2012-05-11T02:00:30 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 260 seconds]
2012-05-11T02:02:15 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds]
2012-05-11T02:06:20 -!- ziph [~ziph@office.bitplantation.com] has quit [Ping timeout: 260 seconds]
2012-05-11T02:08:46 -!- izua [~izua@188.27.189.215] has joined ##stm32
2012-05-11T02:08:46 -!- izua [~izua@188.27.189.215] has quit [Changing host]
2012-05-11T02:08:46 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-11T02:08:49 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-11T02:11:17 < Thorn> my rtc clocks seem to drift about 10 seconds per day. interestingly enough, they're within a second of each other
2012-05-11T02:12:29 -!- izua_ [~izua@unaffiliated/izua] has quit [Ping timeout: 272 seconds]
2012-05-11T02:14:40 -!- ziph [~ziph@office.bitplantation.com] has joined ##stm32
2012-05-11T02:15:07 < Thorn> there're 2 crystals
2012-05-11T02:22:34 < Tom_itx> wrong caps on them?
2012-05-11T02:22:46 < Thorn> maybe
2012-05-11T02:22:47 < Tom_itx> or too much stray capacitance
2012-05-11T02:22:56 < Tom_itx> ground plane under them
2012-05-11T02:22:57 < Thorn> 22pF iirc
2012-05-11T02:23:28 < zyp> measured?
2012-05-11T02:23:47 < Thorn> guaranteed by China
2012-05-11T02:23:55 < zyp> stray capacitance easily add up
2012-05-11T02:24:04 < zyp> if you're not careful
2012-05-11T02:24:06 < Tom_itx> i would put those on the space shuttle
2012-05-11T02:24:13 < Tom_itx> guaranteed!
2012-05-11T02:24:59 < Thorn> I don't have 20 or 27pF so I use these everywhere
2012-05-11T02:25:20 < Tom_itx> i've got some crystals that want 8pf
2012-05-11T02:25:27 < Tom_itx> best to know
2012-05-11T02:26:02 < Thorn> and I hardly have a datasheet for my crystals either
2012-05-11T02:49:44 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-11T02:52:45 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 250 seconds]
2012-05-11T02:53:29 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 245 seconds]
2012-05-11T02:55:14 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32
2012-05-11T03:07:22 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer]
2012-05-11T03:22:01 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124]
2012-05-11T03:24:58 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-11T03:33:54 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-11T03:34:19 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 245 seconds]
2012-05-11T03:41:34 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-11T03:58:03 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-11T03:58:22 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-11T04:02:27 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds]
2012-05-11T04:52:31 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-11T04:55:20 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-11T05:00:09 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit []
2012-05-11T05:52:20 -!- gkwhc [~me@unaffiliated/gkwhc] has joined ##stm32
2012-05-11T05:53:43 < gkwhc> might anyone have experience writing audio data (at least 44.1KHz) to FAT32 formatted SD card through SPI? i was wondering if this is doable (considering SPI speed, DMA, FAT32 overhead, etc).
2012-05-11T06:21:42 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Ping timeout: 245 seconds]
2012-05-11T06:22:38 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 240 seconds]
2012-05-11T06:22:45 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-11T06:24:57 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32
2012-05-11T07:00:20 -!- gkwhc [~me@unaffiliated/gkwhc] has quit [Ping timeout: 260 seconds]
2012-05-11T07:15:55 -!- gkwhc [~me@unaffiliated/gkwhc] has joined ##stm32
2012-05-11T09:47:03 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-11T09:59:07 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-11T09:59:10 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-11T10:04:05 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds]
2012-05-11T10:17:14 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer]
2012-05-11T10:19:40 -!- dekar [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep]
2012-05-11T11:59:43 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-11T11:59:46 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-11T12:03:59 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds]
2012-05-11T12:31:44 -!- eroomde_ is now known as eroomde
2012-05-11T13:33:16 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-11T13:41:48 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-11T14:00:20 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 260 seconds]
2012-05-11T14:23:38 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-11T14:37:05 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-11T16:23:25 < zyp> cute
2012-05-11T16:25:50 < Laurenceb> is that a bomb timer?
2012-05-11T16:26:06 < zyp> missile guidance
2012-05-11T16:26:25 < zyp> that's why it's so slim
2012-05-11T16:26:56 < Laurenceb> for firing at the gaza strip
2012-05-11T16:29:22 < Laurenceb> lol just had rage at my supervisor
2012-05-11T16:29:33 < Laurenceb> as someone else is infringing on my work :P
2012-05-11T16:30:10 < Laurenceb> threatening to quit seemed to do the trick
2012-05-11T17:01:37 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-11T17:06:01 < Laurenceb> http://www.theregister.co.uk/2012/05/11/smut_addiction_study/  <- this you dongs?
2012-05-11T17:07:24 < cjbaird> Hey, I'm the Sydney-sider here.
2012-05-11T17:26:21 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-11T17:32:47 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 250 seconds]
2012-05-11T17:33:56 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-11T17:37:04 -!- tavish [~tavish@unaffiliated/tavish] has quit [Read error: Connection reset by peer]
2012-05-11T17:38:51 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-11T17:41:05 -!- tavish [~tavish@120.56.134.62] has joined ##stm32
2012-05-11T17:41:05 -!- tavish [~tavish@120.56.134.62] has quit [Changing host]
2012-05-11T17:41:05 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-11T17:43:58 -!- tavish_ [~tavish@120.59.12.22] has joined ##stm32
2012-05-11T17:46:01 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 272 seconds]
2012-05-11T17:56:49 < cjbaird> can't unsee!
2012-05-11T17:58:00 -!- grummund [~user@unaffiliated/grummund] has quit [Read error: Operation timed out]
2012-05-11T17:59:18 -!- tavish_ [~tavish@120.59.12.22] has quit [Ping timeout: 252 seconds]
2012-05-11T18:00:09 < Laurenceb> interesting
2012-05-11T18:00:10 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-11T18:00:25 < Laurenceb> linear tech uk samples seems to be the same building as mouser uk
2012-05-11T18:01:14 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-11T18:07:30 < z1ph> what's wrong with linear?
2012-05-11T18:08:29 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-11T18:08:59 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has left ##stm32 []
2012-05-11T18:10:26 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-11T18:10:27 < cjbaird> I had a shock the other day: I bought a cheap DC-DC_USB converter, and it _didn't_ have an LM317/LM7805 in it-- actually a proper high-F mc30463. Stunned.
2012-05-11T18:14:49 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 250 seconds]
2012-05-11T18:15:50 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32
2012-05-11T18:15:52 -!- tavish [~tavish@120.59.11.248] has joined ##stm32
2012-05-11T18:15:52 -!- tavish [~tavish@120.59.11.248] has quit [Changing host]
2012-05-11T18:15:53 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-11T18:20:27 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-11T18:23:01 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 248 seconds]
2012-05-11T18:25:18 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32
2012-05-11T18:32:10 -!- avernos [~avernos@111.192.244.175] has quit [Ping timeout: 276 seconds]
2012-05-11T18:50:38 -!- tavish_ [~tavish@120.56.139.140] has joined ##stm32
2012-05-11T19:06:54 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-11T19:26:46 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 260 seconds]
2012-05-11T19:54:04 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-11T19:54:07 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-11T20:05:50 -!- pelrun_ [~pelrun@60-241-99-33.static.tpgi.com.au] has joined ##stm32
2012-05-11T20:20:15 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit []
2012-05-11T20:29:07 -!- avernos [~avernos@unaffiliated/avernos] has joined ##stm32
2012-05-11T20:36:49 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 245 seconds]
2012-05-11T20:38:45 -!- avernos [~avernos@unaffiliated/avernos] has quit [Ping timeout: 260 seconds]
2012-05-11T21:11:46 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-11T21:12:01 < gkwhc> might anyone have experience writing audio data (at least 44.1KHz) to FAT32 formatted SD card through SPI? i was wondering if this is doable (considering SPI speed, DMA, FAT32 overhead, etc).
2012-05-11T21:19:24 -!- TitanMKD is now known as TitanMKD_AW
2012-05-11T21:29:21 -!- peabody124_ [~peabody12@128.249.96.123] has joined ##stm32
2012-05-11T21:32:49 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 252 seconds]
2012-05-11T21:32:49 -!- peabody124_ is now known as peabody124
2012-05-11T21:36:59 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124]
2012-05-11T21:37:15 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32
2012-05-11T21:37:34 -!- peabody124 [~peabody12@128.249.96.123] has quit [Remote host closed the connection]
2012-05-11T21:37:50 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-11T21:42:27 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-11T21:53:51 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-11T22:14:49 < z1ph> is there any real difference between the f101 and the f100 other than maximum speed?
2012-05-11T22:15:46 < z1ph> f100 adds dac, more timers and CEC,
2012-05-11T22:15:53 < z1ph> or is just that the f101 is an older part?
2012-05-11T23:03:08 -!- TitanMKD_AW [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
2012-05-11T23:03:46 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 260 seconds]
2012-05-11T23:11:53 < gkwhc> anyone use keil uvision here? is it possible to watch a function's return value without dumping it to a variable?
2012-05-11T23:17:23 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-11T23:18:33 -!- dekar [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has joined ##stm32
2012-05-11T23:18:37 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-11T23:23:54 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 245 seconds]
2012-05-11T23:37:36 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-11T23:39:41 -!- tavish_ [~tavish@120.56.139.140] has quit [Ping timeout: 252 seconds]
2012-05-11T23:41:40 -!- tavish [~tavish@59.177.10.159] has joined ##stm32
2012-05-11T23:41:41 -!- tavish [~tavish@59.177.10.159] has quit [Changing host]
2012-05-11T23:41:41 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-11T23:45:05 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 265 seconds]
2012-05-11T23:53:08 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-11T23:55:25 -!- tavish [~tavish@59.177.7.41] has joined ##stm32
2012-05-11T23:55:25 -!- tavish [~tavish@59.177.7.41] has quit [Changing host]
2012-05-11T23:55:25 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-11T23:58:36 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
--- Day changed Sat May 12 2012
2012-05-12T00:00:13 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-12T00:01:15 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-12T00:09:47 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 255 seconds]
2012-05-12T00:11:27 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-12T00:16:05 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 255 seconds]
2012-05-12T00:17:07 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-12T00:18:41 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 272 seconds]
2012-05-12T00:21:57 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 248 seconds]
2012-05-12T00:24:20 -!- tavish [~tavish@59.177.2.174] has joined ##stm32
2012-05-12T00:24:20 -!- tavish [~tavish@59.177.2.174] has quit [Changing host]
2012-05-12T00:24:21 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-12T00:29:37 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-12T00:31:32 -!- tavish [~tavish@59.177.3.225] has joined ##stm32
2012-05-12T00:31:32 -!- tavish [~tavish@59.177.3.225] has quit [Changing host]
2012-05-12T00:31:33 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-12T00:33:21 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-12T00:35:49 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 248 seconds]
2012-05-12T00:39:01 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 248 seconds]
2012-05-12T00:52:58 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-12T01:17:01 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-12T01:20:44 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 240 seconds]
2012-05-12T01:34:18 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-12T01:48:01 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Read error: Operation timed out]
2012-05-12T01:52:47 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-12T02:00:48 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-12T02:05:57 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 248 seconds]
2012-05-12T02:13:16 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-12T02:16:16 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 260 seconds]
2012-05-12T02:18:15 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 260 seconds]
2012-05-12T02:19:45 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-12T02:24:46 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Read error: Operation timed out]
2012-05-12T02:40:07 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-12T03:05:08 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 240 seconds]
2012-05-12T03:15:54 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 244 seconds]
2012-05-12T03:20:29 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-12T03:33:13 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 265 seconds]
2012-05-12T03:39:20 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-12T03:46:56 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-12T03:50:52 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has left ##stm32 []
2012-05-12T04:09:39 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Read error: Operation timed out]
2012-05-12T04:11:38 -!- peabody124 [~peabody12@128.249.96.21] has quit [Quit: peabody124]
2012-05-12T04:26:47 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-12T04:33:42 < Tom_itx> now a month wait for hk post
2012-05-12T04:35:16 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-12T04:40:12 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 256 seconds]
2012-05-12T04:40:32 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-12T04:53:14 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 256 seconds]
2012-05-12T04:53:56 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32
2012-05-12T04:59:44 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 265 seconds]
2012-05-12T05:00:27 -!- grummund_ [~user@unaffiliated/grummund] has joined ##stm32
2012-05-12T05:01:13 -!- grummund [~user@unaffiliated/grummund] has quit [Read error: Connection reset by peer]
2012-05-12T05:14:59 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-12T05:52:14 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 245 seconds]
2012-05-12T06:05:39 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-12T06:15:26 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 260 seconds]
2012-05-12T06:30:35 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-12T07:06:45 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-12T07:35:27 -!- pelrun_ [~pelrun@60-241-99-33.static.tpgi.com.au] has quit [Ping timeout: 245 seconds]
2012-05-12T07:37:41 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 248 seconds]
2012-05-12T07:51:53 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-12T08:33:38 -!- zippe [~Adium@173.11.99.161] has quit [Quit: Leaving.]
2012-05-12T09:11:48 -!- TitanMKD_AW [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-12T09:12:10 -!- TitanMKD_AW is now known as TitanMKD
2012-05-12T09:14:27 -!- dekar [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has quit [Ping timeout: 265 seconds]
2012-05-12T10:04:35 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-12T10:04:38 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-12T10:09:14 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds]
2012-05-12T10:13:06 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer]
2012-05-12T10:13:24 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-12T10:48:29 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 245 seconds]
2012-05-12T11:03:11 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-12T11:19:31 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-12T11:19:34 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-12T11:23:46 <+Steffanx> nu
2012-05-12T11:24:25 <+Steffanx> dongs uses facebook crap?!
2012-05-12T11:25:05 <+Steffanx> fbcdn.net
2012-05-12T11:26:09 <+Steffanx> Still a miracle
2012-05-12T11:26:17 <+Steffanx> but .. what's special about this board?
2012-05-12T11:27:42 <+Steffanx> Oh, "unknown"
2012-05-12T11:51:47 -!- izua [~izua@188.27.189.215] has joined ##stm32
2012-05-12T11:51:47 -!- izua [~izua@188.27.189.215] has quit [Changing host]
2012-05-12T11:51:47 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-12T11:51:48 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-12T12:40:52 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Read error: Operation timed out]
2012-05-12T12:57:46 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-12T13:18:35 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-12T14:38:49 -!- avernos [~avernos@111.192.244.175] has joined ##stm32
2012-05-12T14:38:49 -!- avernos [~avernos@111.192.244.175] has quit [Changing host]
2012-05-12T14:38:49 -!- avernos [~avernos@unaffiliated/avernos] has joined ##stm32
2012-05-12T15:03:20 -!- pelrun_ [~pelrun@60-241-99-33.static.tpgi.com.au] has joined ##stm32
2012-05-12T15:05:41 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 248 seconds]
2012-05-12T15:06:15 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-12T15:20:33 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 252 seconds]
2012-05-12T15:29:52 < z1ph> man, who put spi clock on the same pin as traceswo.
2012-05-12T15:30:03 < z1ph> spi's kinda unusable without sck
2012-05-12T15:30:19 < z1ph> why not on the same pin as usart ck, or rts/cts.
2012-05-12T15:30:29 < z1ph> you can still use a usart in lots of situations without that pin
2012-05-12T15:30:32 < z1ph> but spi's just over
2012-05-12T15:31:19 < z1ph> f100
2012-05-12T15:31:34 < z1ph> it's an alternate fuction set of pins, admittedly
2012-05-12T15:31:48 < z1ph> I'm just having issues trying to get the layout to fit nicely.
2012-05-12T15:31:59 < z1ph> I need more minions
2012-05-12T15:32:31 < z1ph> also, whichever monkey made the mrf24j40 module, and put the spi pins on different sides of the module
2012-05-12T15:33:09 < z1ph> and those bastards who think it's a fun idea to have company A parts go miso,mosi,sck and company B parts go miso,sck,mosi and so on.
2012-05-12T15:33:24 < z1ph> a) who said anything about opensource?
2012-05-12T15:33:36 <+Steffanx> Ha dongs
2012-05-12T15:33:38 < z1ph> I'm not going to make any hardware that precludes user tools
2012-05-12T15:33:49 < z1ph> dongs just wanted to share some hate :)
2012-05-12T15:34:10 <+Steffanx> Can i share some hate too?
2012-05-12T15:34:20 < z1ph> also, seeing as _I_ want to add swo support to stlink, I'd better make sure that the board can at least _send_ some swo :)
2012-05-12T15:35:30 < z1ph> stinky linky, not the stlink2 hardware
2012-05-12T15:35:58 < z1ph> stlink2 hardware supports swo, yes
2012-05-12T15:36:11 < z1ph> I have 2 stlink2s already.
2012-05-12T15:43:31 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 244 seconds]
2012-05-12T15:46:21 -!- z1ph is now known as zyp_
2012-05-12T15:47:08 -!- pelrun_ [~pelrun@60-241-99-33.static.tpgi.com.au] has quit [Ping timeout: 244 seconds]
2012-05-12T15:51:51 -!- zyp_ is now known as zipn
2012-05-12T15:52:59 -!- zipn is now known as zed
2012-05-12T15:53:18 -!- zed is now known as ianb
2012-05-12T15:53:39 -!- ianb is now known as karlp
2012-05-12T16:07:01 <+Steffanx> Now they don't like you anymore karlp :P
2012-05-12T16:07:39 < Laurenceb_> wut
2012-05-12T16:07:42 < Laurenceb_> who is who
2012-05-12T16:08:02 <+Steffanx> You is you
2012-05-12T16:10:13 < karlp> Steffanx: this is the problem with server wide nicks, something that was only meant for one channel spills over.
2012-05-12T16:10:46 < karlp> and it's _far_ too much effort to have a separate irssi session just for one channel
2012-05-12T16:11:07 < cjbaird> who made who
2012-05-12T16:11:41 < cjbaird> ain't anybody told you?
2012-05-12T16:22:19 < cjbaird> (no-one picked up on an AC-DC reference; cultureless nerbs)
2012-05-12T16:27:39 < karlp> no, I got it, I just couldn't think of anything appropriate to respond with.
2012-05-12T16:29:36 <+Steffanx> Culture .. culture ..
2012-05-12T16:30:36 <+Steffanx> I just don't like hard rock cjbaird :P
2012-05-12T16:31:54 <+Steffanx> or whatever ACDC you call the music they make
2012-05-12T16:33:23 < Laurenceb_> rectifier
2012-05-12T16:33:45 <+Steffanx> -ACDC :P
2012-05-12T16:36:11 -!- pelrun_ [~pelrun@60-241-99-33.static.tpgi.com.au] has joined ##stm32
2012-05-12T16:39:15 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 255 seconds]
2012-05-12T17:32:19 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32
2012-05-12T17:44:38 < Laurenceb_> is 100% pwm duty cycle just high?
2012-05-12T17:44:43 < Laurenceb_> or is there one low clk period?
2012-05-12T17:46:04 < Laurenceb_> oh wait
2012-05-12T17:46:18 < Laurenceb_> i could just set the pwm value to grater than the timer overflow
2012-05-12T17:46:42 <+Steffanx> oops
2012-05-12T18:10:22 < Laurenceb_> ok
2012-05-12T18:11:09 < Laurenceb_> led driver - need to use p channel fets
2012-05-12T18:11:15 < Laurenceb_> so inverted pwm
2012-05-12T18:11:51 < Laurenceb_> going to try whacking so IR LEDs with 10A for 1us
2012-05-12T18:13:16 < Laurenceb_> yes, directly
2012-05-12T18:13:30 < Laurenceb_> i need to use common anode for the LEDs
2012-05-12T18:13:35 < Laurenceb_> *cathode
2012-05-12T18:14:20 < Laurenceb_> it should be fats enough
2012-05-12T18:14:30 < Laurenceb_> i might make it less mental, but theres no harm trying
2012-05-12T18:15:51 < Laurenceb_> atm im using 100ma for 40us
2012-05-12T18:16:19 < Laurenceb_> with some 960nm 0603 leds
2012-05-12T18:18:28 < Laurenceb_> im going to try and connect to one of these -  http://www.oceanoptics.com/products/usb2000.asp
2012-05-12T18:18:31 < Laurenceb_> using usb otg
2012-05-12T18:18:46 <+Steffanx> Uhm, your code looks more or less similar to his code dongs :P
2012-05-12T18:19:01 <+Steffanx> At least one comment/line of code :P
2012-05-12T18:19:14 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-12T18:19:20 <+Steffanx> tat
2012-05-12T18:29:38 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
2012-05-12T18:37:31 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 272 seconds]
2012-05-12T18:56:52 -!- Evie [~null@205.233.35.25] has quit [Ping timeout: 265 seconds]
2012-05-12T18:57:59 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 250 seconds]
2012-05-12T19:35:55 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-12T20:12:31 -!- izua [~izua@188.27.189.215] has joined ##stm32
2012-05-12T20:12:31 -!- izua [~izua@188.27.189.215] has quit [Changing host]
2012-05-12T20:12:31 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-12T20:12:32 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-12T20:21:06 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-12T20:38:01 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-12T21:00:26 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has left ##stm32 []
2012-05-12T21:26:59 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32
2012-05-12T21:43:05 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-12T21:49:11 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-12T22:10:57 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-12T22:17:38 -!- izua_ [~izua@188.27.189.215] has joined ##stm32
2012-05-12T22:17:38 -!- izua_ [~izua@188.27.189.215] has quit [Changing host]
2012-05-12T22:17:38 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32
2012-05-12T22:17:40 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-12T22:20:23 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 252 seconds]
2012-05-12T22:24:27 < Thorn> looks like the driver that came with the ssd1289 display from ebay is seriously unoptimized, that's probably why it's slow. it seems possible to halve (at least) the amount of i/o required for pixel drawing
2012-05-12T22:38:19 < Thorn> ink? it's laser engraved
2012-05-12T22:38:34 < Thorn> ink is too expensive
2012-05-12T22:51:06 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-12T23:21:36 < Laurenceb_> blerg
2012-05-12T23:21:38 < Laurenceb_> http://i.imgur.com/pcJQE.png
2012-05-12T23:22:48 < Thorn> what is this going to be?
2012-05-12T23:25:42 < Laurenceb_> its a work project
2012-05-12T23:25:52 < Laurenceb_> kind of - research stuff
2012-05-12T23:26:30 < Laurenceb_> datalogger with outputs for pneumatics and several led based "spectrometer"
2012-05-12T23:26:41 < Laurenceb_> routing is not fun atm
2012-05-12T23:27:01 < Thorn> ah, that one
2012-05-12T23:38:41 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-12T23:41:16 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-12T23:44:44 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Client Quit]
--- Day changed Sun May 13 2012
2012-05-13T00:25:43 < zyp> 15 megawatts
2012-05-13T00:29:53 < jpa-> so i walked into a terminal and said 0x1E
2012-05-13T00:29:58 < jpa-> and LSM303 said ack \o/
2012-05-13T00:34:27 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-13T00:47:47 < zyp> nice
2012-05-13T00:47:49 < zyp> wish mine did
2012-05-13T00:51:24 <+Steffanx> Just walk into a terminal and give it a try zyp ..
2012-05-13T00:52:32 < Laurenceb_> zyp: magno or accel not acking?
2012-05-13T00:55:11 < Laurenceb_> i suspect the magno can have issues if it doesnt like the external "set/reset" cap(s)
2012-05-13T00:56:22 < zyp> Laurenceb_, neither
2012-05-13T00:56:37 < zyp> on both the boards I assembled recently
2012-05-13T00:57:44 < jpa-> yeah, and i also had that and when i desoldered, some pads were entirely dry
2012-05-13T00:58:03 < Laurenceb_>  :-/
2012-05-13T00:58:12 < jpa-> it's a bit annoying package to solder manually
2012-05-13T00:58:26 < Laurenceb_> yeah - i had to touch up a little
2012-05-13T01:01:22 < Laurenceb_> lol @ sparkfun breakout for lsm303
2012-05-13T01:01:28 < Laurenceb_> its fine with 3.3v i2c
2012-05-13T01:02:14 < jpa-> lsm303dlhc is nicer anyway :)
2012-05-13T01:02:23 < Laurenceb_> they need to rtfm
2012-05-13T01:02:36 < Laurenceb_> better accel
2012-05-13T01:04:40 < jpa-> "16 bit output" was a bit confusing when there are actually only 12 significant bits and it's left-aligned
2012-05-13T01:25:50 < Laurenceb_> the low tempco accels seem to have disappeared
2012-05-13T01:39:14 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds]
2012-05-13T01:53:15 -!- izua_ [~izua@unaffiliated/izua] has quit [Ping timeout: 272 seconds]
2012-05-13T01:54:24 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-13T02:04:02 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-13T02:28:06 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 272 seconds]
2012-05-13T02:34:44 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 245 seconds]
2012-05-13T04:58:18 -!- izua [~izua@188.27.189.215] has joined ##stm32
2012-05-13T04:58:20 -!- izua [~izua@188.27.189.215] has quit [Changing host]
2012-05-13T04:58:21 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-13T04:58:24 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-13T05:35:24 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 260 seconds]
2012-05-13T06:02:09 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 272 seconds]
2012-05-13T06:03:21 < emeb> Looks like it's a company selling embedded development tools: http://www.wvshare.com/
2012-05-13T06:23:58 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-13T06:27:39 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 245 seconds]
2012-05-13T07:30:55 -!- phantoneD is now known as phantoxeD
2012-05-13T08:01:39 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-13T08:37:40 -!- gkwhc [~me@unaffiliated/gkwhc] has quit [Ping timeout: 260 seconds]
2012-05-13T08:44:05 -!- pelrun_ [~pelrun@60-241-99-33.static.tpgi.com.au] has quit [Ping timeout: 252 seconds]
2012-05-13T08:52:50 -!- gkwhc [~me@unaffiliated/gkwhc] has joined ##stm32
2012-05-13T09:18:16 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925075879.dsl.bell.ca] has joined ##stm32
2012-05-13T09:18:20 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925075879.dsl.bell.ca] has quit [Changing host]
2012-05-13T09:18:21 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-13T09:41:44 -!- Netsplit *.net <-> *.split quits: neuro-sys, metaxa, Laurenceb
2012-05-13T10:15:52 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-13T10:18:17 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32
2012-05-13T10:54:13 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32
2012-05-13T11:02:35 -!- avernos_ [~avernos@114.245.254.26] has joined ##stm32
2012-05-13T11:06:10 -!- avernos [~avernos@unaffiliated/avernos] has quit [Ping timeout: 272 seconds]
2012-05-13T11:11:13 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-13T11:11:35 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has joined ##stm32
2012-05-13T11:11:35 -!- metaxa [metaxa@members.bombshellz.net] has joined ##stm32
2012-05-13T11:16:09 < Thorn> yet another different pinout for the display?
2012-05-13T11:17:06 < Thorn> I have 3 3.2" displays like that one, they all have different pinouts
2012-05-13T11:17:28 < Thorn> this one is different from all of them
2012-05-13T11:21:32 < Thorn> I've got this board before me right noe http://www.hotmcu.com/hyministm32v-dev-board-32-tft-lcd-module-p-5.html
2012-05-13T11:22:09 < Thorn> the lcd module looks the same but it has 3v3 on a different pin
2012-05-13T11:24:39 < Thorn> another module has 40 pins in total, I guess that's because it has a mmc slot on it
2012-05-13T11:26:37 < Thorn> I recently ordered 3 1.8" displays for $6.something and got nokia 3310 ones instead. at least they're pcb mounted
2012-05-13T11:29:17 < Thorn> anyway, how do you do flicker-free animation on a display like that (I suppose it has ssd1289)? it's single buffered
2012-05-13T11:45:35 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-13T11:45:59 < TitanMKD> hi
2012-05-13T12:16:46 < Thorn> one framebuffer only
2012-05-13T12:17:07 < Thorn> normally for animation you have two, you write to an inactive one and switch them
2012-05-13T12:17:20 < Thorn> that's how opengl and everything else works
2012-05-13T12:17:36 < Thorn> you can't do that with these displays
2012-05-13T12:18:27 < Thorn> and even if internal sram was enough you'd still take significant time transferring it into the framebuffer
2012-05-13T13:26:47 -!- izua [~izua@188.27.189.215] has joined ##stm32
2012-05-13T13:26:47 -!- izua [~izua@188.27.189.215] has quit [Changing host]
2012-05-13T13:26:47 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-13T13:26:49 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-13T13:51:38 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
2012-05-13T14:21:43 -!- pelrun__ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32
2012-05-13T14:21:43 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Read error: Connection reset by peer]
2012-05-13T14:23:29 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-13T15:25:17 < Thorn> http://www.electronicsweekly.com/Articles/11/05/2012/53624/mips-focuses-arm-cortex-challenge-with-aptiv.htm
2012-05-13T15:37:44 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Read error: Connection reset by peer]
2012-05-13T15:48:25 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-13T15:48:28 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-13T16:06:12 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-13T16:06:58 < lukky513> hey
2012-05-13T16:07:08 < lukky513> can I use stm32 usart in full duplex?
2012-05-13T16:08:32 < lukky513> I need to transmit something out of TX and receive it at RX of the same USART, don't ask why...
2012-05-13T16:08:56 < Thorn> I don't see why not, with interrupts and/or dma
2012-05-13T16:09:57 -!- pelrun__ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 252 seconds]
2012-05-13T16:15:35 < zyp> lukky513, of course you can
2012-05-13T16:15:45 < zyp> dma or not
2012-05-13T16:20:45 < lukky513> uhm, there is one data register for sending and receiving?
2012-05-13T16:21:04 < lukky513> I can use dma, yes
2012-05-13T16:24:10 < zyp> lukky513, there are seperate registers for sending and receiving, but they are located on the same address
2012-05-13T16:24:53 < zyp> if you write to it you will access the tx reg and if you read from it you will access the rx reg
2012-05-13T16:26:27 < lukky513> can you give me an example? I see people just writing to data register
2012-05-13T16:27:48 < lukky513> so you say it would work if I'd connect TX/RX pins with a jumper?
2012-05-13T16:27:57 < zyp> yes
2012-05-13T16:29:20 < zyp> how would transmitting to itself be any different from transmitting to another chip while receiving from it at the same time?
2012-05-13T16:30:50 < lukky513> I know it's logical, but I'm working in a team with my friend
2012-05-13T16:31:01 < lukky513> I can't make him believe it would work
2012-05-13T16:31:11 < lukky513> he did make me believe not instead :)
2012-05-13T16:32:14 < zyp> have more confidence in yourself :p
2012-05-13T16:32:45 -!- zandubalm21 [~yogesh@host-76-11-182-132.newwavecomm.net] has joined ##stm32
2012-05-13T16:34:27 < lukky513> thanks... we'll try
2012-05-13T16:35:46 < zandubalm21> I am sure this is an old repeat Q:I have stm32f4 discovery board laying around... Its begging for my attention... I want to use it using the Eclipse + GDB  debugger under Ubuntu...  Any help in this regard...
2012-05-13T16:38:04 < Thorn> zandubalm21: https://github.com/texane/stlink/
2012-05-13T16:39:25 < zandubalm21> and how can i link it inside Eclipse IDE
2012-05-13T16:48:24 < Thorn> zandubalm21: eclipse cdt should support remote debugging with gdb, and I think there're other eclipse plugins too
2012-05-13T16:50:30 < zandubalm21> Thorn: thats great... so shd be easy to integrate the stlink inside Eclipse...? I was just hopping i was not the first one to do it on the net... so was trying to find a url which explains this  steps for the integration
2012-05-13T16:53:34 < Thorn> there're tutorials on the web that use openocd instead of stlink
2012-05-13T16:54:23 < Thorn> such as http://sites.google.com/site/stm32discovery/open-source-development-with-the-stm32-discovery
2012-05-13T16:59:38 -!- pelrun__ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32
2012-05-13T17:03:22 -!- avernos_ [~avernos@114.245.254.26] has quit [Remote host closed the connection]
2012-05-13T17:05:50 -!- avernos [~avernos@unaffiliated/avernos] has joined ##stm32
2012-05-13T17:19:15 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |]
2012-05-13T17:22:12 <+Steffanx> izua .. where's that wiki? :P
2012-05-13T17:22:21 < zandubalm21> Thorn: thanks for that url...
2012-05-13T17:23:02 <+Steffanx> The number one when it  comes to most posted urls probably :P
2012-05-13T17:35:46 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-13T18:28:06 < lukky513> how much resistance do stm32 pull-ups have?
2012-05-13T18:30:05 < lukky513> zyp: usart seems to work, thanks
2012-05-13T18:36:07 < zyp> of course it does, what use is an usart that doesn't work? :p
2012-05-13T18:43:36 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-13T19:31:27 <+Steffanx> dongs your nick is Timecop over there?
2012-05-13T19:31:38 < Laurenceb_> obviously
2012-05-13T19:34:42 <+Steffanx> If so he probably posts that on the website of mikrocopter etc too
2012-05-13T19:50:51 < cjbaird> "The ex-president of the GNAA, timecop, is known on the internet for being part of Dattebayo, a group of fans who translated the Japanese cartoons Naruto and Bleach." .. HAHA Naruto and Bleach!
2012-05-13T19:51:06 < cjbaird> NARUTO
2012-05-13T19:51:07 < cjbaird> AND
2012-05-13T19:51:09 < cjbaird> BLEACH
2012-05-13T19:51:25 < cjbaird> faggot
2012-05-13T19:52:47 <+Steffanx> oh. it's really dongs
2012-05-13T19:55:04 < jpa-> lukky513: somewhere around 100kohm IIRC
2012-05-13T20:14:11 < lukky513> high enough, thanks
2012-05-13T20:16:58 < zyp> I'd double check with the datasheet
2012-05-13T20:17:16 < zyp> (and I believe it's lower)
2012-05-13T20:19:23 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-13T20:19:24 < zyp> F1 datasheet specifies 30-50k, typically 40k
2012-05-13T20:55:16 < jpa-> my memory is specified at +-50% :)
2012-05-13T21:01:33 <+Steffanx> Today it's 50% tomorrow its 50% of 50% ?
2012-05-13T21:05:15 < jpa-> nah, tomorrow is pebkec day aka exam week
2012-05-13T21:05:55 <+Steffanx> So previous week was the week of 'procrastination' >?
2012-05-13T21:06:45 < jpa-> nah it was quite much hurry also
2012-05-13T21:07:01 < jpa-> my procrastination days were eaten up in a flu
2012-05-13T21:07:15 <+Steffanx> You need moar vodka
2012-05-13T21:07:25 < jpa-> was ill for a few days and after that i haven't had much time to procrastinate :P
2012-05-13T21:16:50 -!- pelrun__ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 244 seconds]
2012-05-13T21:52:50 -!- pelrun__ [~pelrun@60-241-99-33.static.tpgi.com.au] has joined ##stm32
2012-05-13T21:54:08 < pelrun__> yay, got a workable eclipse project template with the stdperiph lib set up
2012-05-13T21:54:44 < pelrun__> ...after a whole bunch of banging my head against eclipse and screaming
2012-05-13T21:58:40 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving]
2012-05-13T21:58:41 < jpa-> then get rid of stdperiph and get some proper code :)
2012-05-13T21:59:10 < Thorn> eclipse should be ditched too
2012-05-13T21:59:29 < pelrun__> yeah, not happening
2012-05-13T22:00:04 < pelrun__> I've got no problem with bashing the bare metal, but there's no point making more work for myself
2012-05-13T22:00:04 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-13T22:00:51 < Thorn> this is exactly what it was like when I started with eclipse
2012-05-13T22:00:57 < pelrun__> I've got a crapton of toolchains and languages integrated into eclipse; I'd like to see someone suggest an alternative.
2012-05-13T22:01:10 < Thorn> all you need is a makefile and a good editor
2012-05-13T22:01:23 < pelrun__> in general it's fine, it's just when setting up a new project/toolchain that it can be finicky
2012-05-13T22:01:27 <+Steffanx> Eclipse is good enough
2012-05-13T22:02:42 < Thorn> are these displays actually made by innolux? http://www.ebay.com/itm/New-7-TFT-LCD-Screen-AT070TN83-Innolux-Display-800X480-/390285120498
2012-05-13T22:03:02 <+Steffanx> I don't see a good reason why not use Eclipse very often, most of the time it's just "crap" , "JAVA blabla", etc.
2012-05-13T22:03:13 < pelrun__> and when it's working well it's a damn sight better than a dumb text editor
2012-05-13T22:03:15 < Thorn> I can't find them on their website, and the logo is wrong
2012-05-13T22:03:25 < pelrun__> and I don't bother with Java :D
2012-05-13T22:05:10 <+Steffanx> At least the datasheet they used is "confidential" Thorn :)
2012-05-13T22:07:33 < Thorn> this display doesn't require several supply voltages and only needs one control signal
2012-05-13T22:08:13 <+Steffanx>  What's the plan with the display?
2012-05-13T22:09:03 < Thorn> the plan is to use the display to display images on the display
2012-05-13T22:10:26 <+Steffanx> Yeah, but .. controlled by what?
2012-05-13T22:10:43 < Thorn> it seems to need a flat cable though
2012-05-13T22:11:30 < Thorn> I found a project where they drive a large LVDS @560MHz with a EPM240 over twisted pair, with SDRAM framebuffer connected by wires
2012-05-13T22:11:39 < Thorn> *LVDS display
2012-05-13T22:12:03 < Thorn> and it actually works
2012-05-13T22:12:38 < Thorn> a proper controller with 2 framebuffers would require fpga + sdram I imagine
2012-05-13T22:15:35 < Thorn> (note that epm240 doesn't support lvds, nor does it work at this kind of frequency, but it still works)
2012-05-13T22:16:34 < Thorn> OTOH there was a guy un stackexchange with 100 failed 6 layer boards where sdram didn't work
2012-05-13T22:17:01 <+Steffanx> lol.
2012-05-13T22:17:12 < Thorn> s/un/on/
2012-05-13T22:22:40 <+Steffanx> What's wrong with the logo. It's back instead of blue?
2012-05-13T22:25:16 < Thorn> looking at their website, the word "innolux" is capitalized and the font is slanted. and they aren't called "Innolux Display" either
2012-05-13T22:27:27 <+Steffanx> InnoLux Display Corp ..
2012-05-13T22:28:57 < Thorn> >Innolux Display Corp. officially announced the completion of its merger with Chi Mei Optoelectronics and TPO Displays Corp.
2012-05-13T22:29:03 <+Steffanx> Yeah :P
2012-05-13T22:29:04 < Thorn> that would explain things
2012-05-13T22:29:25 <+Steffanx> I even used the wayback machine to look if their logo changed
2012-05-13T22:29:28 <+Steffanx> It didn't
2012-05-13T22:30:20 <+Steffanx> Except for the capitals
2012-05-13T22:30:50 <+Steffanx> http://www.naffets.nl/share/a-20120513-213039.png
2012-05-13T22:31:01 < Thorn> this is important, you could easily pay millions to some design firm to have your name capitalized
2012-05-13T22:31:10 < Thorn> if you're a large company
2012-05-13T22:31:30 <+Steffanx> Yeah :P
2012-05-13T22:33:17 < Thorn> http://electronics.stackexchange.com/questions/26640/sdram-issue-lpc1788  http://electronics.stackexchange.com/questions/31469/sdram-prototype-vs-production-woes
2012-05-13T22:33:46 < Thorn> looks like this guy didn't learn
2012-05-13T22:37:12 <+Steffanx> 6 layers, i think i'm unable to manage 6 layers :P
2012-05-13T22:37:31 <+Steffanx> I mean :(
2012-05-13T22:48:00 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: .]
2012-05-13T22:50:50 < zyp> go with PoP memory :p
2012-05-13T22:51:41 < Thorn> yo dawg we herd you liek bga so we put bga on your bga so you can reflow while you reflow
2012-05-13T22:52:05 < zyp> :D
2012-05-13T22:52:59 <+Steffanx> Can you design me some memory i can place over an TQFP or QFN-ish package zyp ?
2012-05-13T22:53:14 <+Steffanx> -n
2012-05-13T22:53:41 <+Steffanx> Before the end of the year please
2012-05-13T23:08:50 < Laurenceb_> http://i.imgur.com/PHH8P.png
2012-05-13T23:10:31 < Laurenceb_> i bet the pcb fr4 properties changed
2012-05-13T23:10:43 < Laurenceb_> there seems to be quite a lot of variance
2012-05-13T23:11:07 < Thorn> so that huge thing is the jtag conector? I'd use something much smaller on a board like this
2012-05-13T23:11:50 < Laurenceb_> heh yeah
2012-05-13T23:11:58 < Laurenceb_> maybe i should rip it out
2012-05-13T23:12:08 < Laurenceb_> oh well i think i can manage to route the rest now
2012-05-13T23:27:14 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-13T23:37:33 -!- zandubalm21 [~yogesh@host-76-11-182-132.newwavecomm.net] has left ##stm32 []
2012-05-13T23:48:35 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: .]
--- Day changed Mon May 14 2012
2012-05-14T00:10:55 <+Steffanx> Laurenceb_ time to use the 10 pins, 1.27mm header?
2012-05-14T00:11:17 < Laurenceb_> dunno - congesting isnt really round that area
2012-05-14T00:11:30 <+Steffanx> http://www.keil.com/coresight/connectors.asp :)
2012-05-14T00:12:15 <+Steffanx> The traces are 12 or 10 mil?
2012-05-14T00:16:07 < zyp> 21:52:59 <+Steffanx> Can you design me some memory i can place over an TQFP or QFN-ish package zyp ?
2012-05-14T00:16:16 < zyp> just deadbug a chip and solder some wires down :D
2012-05-14T00:16:48 <+Steffanx> HELP
2012-05-14T00:19:07 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-14T00:19:14 < zyp> Laurenceb_, 2-layer?
2012-05-14T00:20:36 < Laurenceb_> yes
2012-05-14T00:22:08 <+Steffanx> I guess zyp tries to say you should go for 4 layers :P
2012-05-14T00:23:57 < zyp> I'm just amused by the fact that he's too cheap to have a dedicated ground layer, but still even have a seperate analog ground plane :p
2012-05-14T00:31:09 -!- dekar [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has joined ##stm32
2012-05-14T00:31:11 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-14T00:50:37 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds]
2012-05-14T00:50:40  * flyback_ decides to build a quick pwm circuit for his shaver
2012-05-14T02:21:21 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
2012-05-14T02:25:45 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 272 seconds]
2012-05-14T02:31:36 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-14T02:33:40 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 250 seconds]
2012-05-14T02:34:50 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-14T02:35:53 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Ping timeout: 272 seconds]
2012-05-14T02:37:37 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32
2012-05-14T03:01:00 -!- dekar_ [~dekar@dslb-084-059-049-153.pools.arcor-ip.net] has joined ##stm32
2012-05-14T03:01:00 -!- mode/##stm32 [+v dekar_] by ChanServ
2012-05-14T03:04:16 -!- dekar__ [~dekar@dslb-088-068-117-163.pools.arcor-ip.net] has joined ##stm32
2012-05-14T03:04:19 -!- mode/##stm32 [+v dekar__] by ChanServ
2012-05-14T03:04:32 -!- dekar [~dekar@dslb-084-059-230-169.pools.arcor-ip.net] has quit [Ping timeout: 260 seconds]
2012-05-14T03:07:46 -!- dekar_ [~dekar@dslb-084-059-049-153.pools.arcor-ip.net] has quit [Ping timeout: 255 seconds]
2012-05-14T03:23:34 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-14T05:22:52 < Thorn> higher priority interrupts?
2012-05-14T05:25:16 < Thorn> although that wouldn't cause a short pulse, would it
2012-05-14T05:44:08 < Thorn> start enabling things one by one
2012-05-14T05:45:36 < Thorn> well, it'd be interesting to find out what's really going on
2012-05-14T05:45:54 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-14T05:48:40 < cjbaird> pelrun: ha, remember meeeee?  (You were playing with RC Blimps last time..)
2012-05-14T05:49:22 < cjbaird> dongs: wut
2012-05-14T05:51:11 < cjbaird> systick and TIMers raped me too. Still haven't fingured out ehy.
2012-05-14T05:52:50 < cjbaird> But I was looking at the riscy pyg sources last night, and it mentions swapping to the F4Disco's external xtal because the internal was crap..
2012-05-14T06:00:21 < cjbaird> Doesn't look like a higher-pri interrupt getting in the way. Same artifact when using a different GPIO?
2012-05-14T06:03:37 < cjbaird> push-pull? No chance of the line being shorted to another?
2012-05-14T06:04:46 < Thorn> that wouldn't make such a nice waveform
2012-05-14T06:05:01 < Thorn> probably
2012-05-14T06:15:25 < cjbaird> The shorted line?
2012-05-14T06:22:23 < Thorn> lol
2012-05-14T06:24:35 < Thorn> but that still wouldn't explain the waveform?
2012-05-14T06:34:10 -!- AlexJ [~StinkyFin@pool-108-41-148-167.nycmny.fios.verizon.net] has joined ##stm32
2012-05-14T06:35:06 -!- AlexJ [~StinkyFin@pool-108-41-148-167.nycmny.fios.verizon.net] has quit [Client Quit]
2012-05-14T06:42:18 -!- Guest42782 [~StinkyFin@pool-108-41-148-167.nycmny.fios.verizon.net] has joined ##stm32
2012-05-14T06:48:41 -!- Guest42782 [~StinkyFin@pool-108-41-148-167.nycmny.fios.verizon.net] has quit [Quit: Leaving]
2012-05-14T06:59:48 < flyback_> http://www.ebay.com/itm/Bi-Directional-Level-Shifter-8-Channel-Logic-Level-Converter-8-Channel-/261013302221?pt=LH_DefaultDomain_0&hash=item3cc59aebcd\
2012-05-14T06:59:49 < flyback_> WHOA
2012-05-14T07:01:46 < cjbaird> dongs: looks like line impedance-- good old analog electricity fucking up your digital signals. add a schmitt trigger?
2012-05-14T07:16:33 -!- gkwhc [~me@unaffiliated/gkwhc] has quit [Read error: Connection reset by peer]
2012-05-14T08:29:12  * flyback_ //www.youtube.com/watch?v=MnuLVu7Ur8w <--- owns your "canuck"
2012-05-14T08:29:37  * flyback_ headbangs
2012-05-14T08:34:35 -!- pelrun__ [~pelrun@60-241-99-33.static.tpgi.com.au] has quit [Ping timeout: 255 seconds]
2012-05-14T09:36:04 < zyp> dongs, you're two transitions out from the trigger point so that's two times the jitter
2012-05-14T09:36:39 < zyp> so 1.15 us jitter, and that's not bad considering you're operating with us resolution
2012-05-14T09:42:07 < zyp> oh, it could be bad, depending on how precise timing you need, but it's expected considering how you generate the signal
2012-05-14T09:45:43 < Tectu> okay guys... I downloaded chibios, and tried to run the discovery STM32VL demo... nothing happend after compiling (no leds flashing). people in chibiosforum says it's my toolchain.... i use summon-arm-toolchain. is that possible? when took my first look at stm32, a few months ago, i could run the chibios on the discoveryboard, also using summon-arm-toolchain... someone anything to say?
2012-05-14T09:46:27 < zyp> dongs, I'm assuming you're running at 72 MHz, that means that you have 72 cycles per microsecond, the amount consumed by one iteration of your loop body is probably a fair chunk of that
2012-05-14T09:47:29 < zyp> Tectu, everything is possible
2012-05-14T09:47:31 < jpa-> Tectu: well try another toolchain, diff the binaries etc.
2012-05-14T09:47:51 < jpa-> codesourcery has been working well for me so it is worth a try
2012-05-14T09:48:57 < zyp> binary diff doesn't make sense, could be a lot of difference between two valid and logically identical outputs
2012-05-14T09:49:46 < cjbaird> Tectu: it's usually at that point when grovelling inside the machine with gdb happens. "Ctrl-C ... backtrace ..."
2012-05-14T09:51:00 < zyp> ctrl-c … «oh, hardfault» … p/x SCB
2012-05-14T09:52:06 < cjbaird> I was ending up in reset_handler a lot of the time before I caught-on about wrong library linkage..
2012-05-14T09:52:20 < zyp> if there is something wrong with your toolchain it's likely that it's giving you files containing arm instructions
2012-05-14T09:52:38 < zyp> so you can just inspect those with objdump and look for that
2012-05-14T09:53:37 < cjbaird> "break main.c:1 ... run .. step .. step .. step .. 'oops, it tried to do a blx <label> on my M4...'"
2012-05-14T09:54:51 < cjbaird> arm-none-eabi-objdump -d foo.elf|grep blx .. being the magic that should show only "blx <register>" (on an F4, at least. stm32vl?)
2012-05-14T09:56:04 < jpa-> Tectu: did you check with a debugger?
2012-05-14T09:56:22 < Tectu> jpa-, no, but i am buying a debugger now :D
2012-05-14T09:56:34 < jpa-> Tectu: you have the discovery board? it has a debugger built-in?
2012-05-14T09:56:59 < zyp> I think we've went over this a few times already :p
2012-05-14T09:57:12 < jpa-> aha, ok :)
2012-05-14T09:57:25 < jpa-> care to summarize?
2012-05-14T09:57:26 < Tectu> jpa-, yes, but never brought it to work
2012-05-14T09:57:34 < Tectu> and because chibios stuff doesn't work on it now
2012-05-14T09:57:42 < Tectu> i am not sure if it might be broken
2012-05-14T10:00:02 < Tectu> is there a difference between flashing .bin or .hex over serial bootloader?
2012-05-14T10:00:43 < jpa-> the PC program should handle the difference
2012-05-14T10:00:55 < jpa-> though stm32flash only takes .bin IIRC
2012-05-14T10:04:09 < Tectu> not sure if i will survive this:   http://forum.chibios.org/phpbb/viewtopic.php?f=3&t=407&p=3655#p3655
2012-05-14T10:06:55 < jpa-> it's unlikely anyone else will be able to debug it for you.
2012-05-14T10:07:04 < jpa-> have you managed to get anything running on that board?
2012-05-14T10:07:22 < Tectu> jpa-, sure, but not with chibios
2012-05-14T10:07:34 < Tectu> as i wrote in the thread, stmlib led blink works great
2012-05-14T10:07:37 < Tectu> even interrupt stuff etc
2012-05-14T10:09:39 < zyp> hmm
2012-05-14T10:10:13 < zyp> can you give me the .elf file you built? I'll have a look and see if I can spot anything wrong
2012-05-14T10:10:30 < Tectu> zyp, i'd be very thankful
2012-05-14T10:10:35 < Tectu> zyp, e-mail?
2012-05-14T10:10:45 < zyp> nah, just put it on dump.jvnv.net or something
2012-05-14T10:10:57 < Tectu> good
2012-05-14T10:11:27 < Tectu> is this a privat random upload server or something?
2012-05-14T10:11:35 < zyp> yes, it's mine
2012-05-14T10:11:57 < Tectu> ok
2012-05-14T10:13:40 < Tectu> zyp, sorry for noob question, but how to upload? access via FTP client?
2012-05-14T10:14:05 < zyp> uh, put the file in the input box on the page, hit upload?
2012-05-14T10:14:18 < Tectu> there is no such thing here.
2012-05-14T10:14:20 < zyp> it's like imgur except not restricted to images
2012-05-14T10:14:24 < zyp> oh sorry
2012-05-14T10:14:28 < zyp> bin.jvnv.net
2012-05-14T10:14:50 < Tectu> ah, here we go :D
2012-05-14T10:15:25 < Tectu> zyp, http://bin.jvnv.net/f/7TUO2/ch.elf
2012-05-14T10:17:52 < zyp> can't spot any non-thumb code, so that's not a problem
2012-05-14T10:18:20 < Tectu> :/
2012-05-14T10:18:55 < zyp> addrs also look right
2012-05-14T10:21:15 < Tectu> :/
2012-05-14T10:23:55 < jpa-> Tectu: so how are you flashing it?
2012-05-14T10:23:55 < zyp> i.e. doesn't seem to be anything wrong with toolchain or linker script
2012-05-14T10:24:21 < Tectu> sudo stm32flash -w build/ch.bin -v /dev/ttyUSB0 -g 0x0
2012-05-14T10:24:35 < Tectu> oh my god.
2012-05-14T10:24:37 < zyp> what's -g 0x0?
2012-05-14T10:24:37 < Tectu> wait
2012-05-14T10:24:50 < Tectu> zyp, sudo stm32flash -w build/ch.bin -v /dev/ttyUSB0 -g 0x0
2012-05-14T10:24:51 < Tectu> ah
2012-05-14T10:24:55 < Tectu> zyp,  -g address	Start execution at specified address (0 = flash start)
2012-05-14T10:25:32 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has joined ##stm32
2012-05-14T10:25:32 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has quit [Changing host]
2012-05-14T10:25:32 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32
2012-05-14T10:25:43 < Tectu> yes, that's the thing i got from here:   http://gostm32.blogspot.com/2010/09/blinky-ii.html
2012-05-14T10:25:45 < Tectu> worked in the past.
2012-05-14T10:26:22 < zyp> hmm, try 0x8000000
2012-05-14T10:26:55 < zyp> it should not make a difference, but it could
2012-05-14T10:27:58 < zyp> that's awesome, then you can blink while you blink while you blink
2012-05-14T10:28:01 < Tectu> zyp, nothing.
2012-05-14T10:29:20 < zyp> how does it look?
2012-05-14T10:30:46 < Tectu> zyp, nothing.
2012-05-14T10:30:57 < Tectu> ah, you asked him - sorry
2012-05-14T10:31:11 < zyp> dongs, the code
2012-05-14T10:33:55 < zyp> not bad, factoring in time for context switches and whatnot
2012-05-14T10:34:50 < zyp> you don't have to make an explicit thread object, just call CoCreateTask with function and stack pointers?
2012-05-14T10:35:56 < zyp> figured as much
2012-05-14T10:38:56 < zyp> I guess the scheduler allocates space for stuff itself
2012-05-14T10:39:01 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 248 seconds]
2012-05-14T10:40:56 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-14T11:33:25 -!- Thorn [~Thorn@2.93.101.6] has joined ##stm32
2012-05-14T11:33:25 -!- Thorn [~Thorn@2.93.101.6] has quit [Changing host]
2012-05-14T11:33:25 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32
2012-05-14T11:34:51 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-14T11:41:57 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-14T11:54:38 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-14T11:56:13 < Tectu> jpa-, zyp okay, got a connection with stlink utility (windows) from discovery to my stm32f103 board ;-)
2012-05-14T11:56:34 < zyp> try flashing the elf with it
2012-05-14T11:57:13 < Tectu> can you provide the link i gave you - please
2012-05-14T11:57:27 < Tectu> where i uploaded the elf to you - different system - no scrollback
2012-05-14T11:57:38 < zyp> sure
2012-05-14T11:57:45 < zyp> 09:15:25 < Tectu> zyp, http://bin.jvnv.net/f/7TUO2/ch.elf
2012-05-14T12:01:57 < Tectu> wtf, st link utility can not handle .elf
2012-05-14T12:02:01 < Tectu> reboot back to linux :D
2012-05-14T12:02:11 < Tectu> i guess taxene/stlink should work
2012-05-14T12:11:02 < Tectu> zyp, i need a while, could take an hour, sorry.
2012-05-14T12:12:29 < zyp> I'm not waiting, so I don't mind :p
2012-05-14T12:13:26 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-14T12:14:34 < zyp> oh, and if you need bin or hex from that elf I can convert it for you
2012-05-14T12:15:33 -!- pelrun__ [~pelrun@60-241-99-33.static.tpgi.com.au] has joined ##stm32
2012-05-14T12:16:46 < Tectu> zyp, i guess you would do something like    arm-none-eabi-objcopy -Obinary ch.elf > ch.bin  ?
2012-05-14T12:25:16 < zyp> yep
2012-05-14T12:30:52 < zyp> http://bin.jvnv.net/f/YMHtz/ch.bin
2012-05-14T12:53:51 < Tectu> zyp, I use texane/stlink, i go with  load ch.elf    ->    Loading section startup, size 0xf8 lma 0x8000000
2012-05-14T12:53:52 < Tectu> Load failed
2012-05-14T12:56:28 < Tectu> oh wait, that might me my fault
2012-05-14T12:57:26 < Tectu> zyp, will call you in an hour, sorry for trouble
2012-05-14T12:57:45 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-14T13:18:43 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 272 seconds]
2012-05-14T13:23:04 -!- grummund_ [~user@unaffiliated/grummund] has quit [Ping timeout: 265 seconds]
2012-05-14T13:23:38 -!- avernos [~avernos@unaffiliated/avernos] has quit [Ping timeout: 240 seconds]
2012-05-14T13:23:56 -!- avernos [~avernos@114.245.254.26] has joined ##stm32
2012-05-14T13:23:56 -!- avernos [~avernos@114.245.254.26] has quit [Changing host]
2012-05-14T13:23:56 -!- avernos [~avernos@unaffiliated/avernos] has joined ##stm32
2012-05-14T13:24:25 -!- pelrun__ [~pelrun@60-241-99-33.static.tpgi.com.au] has quit [Ping timeout: 272 seconds]
2012-05-14T13:33:51 < Tectu> okay zyp, now:   When i try to load the ch.elf which i gave you before (the discovery demo from chibios), i don't get any errors. when i type  continue   i get:
2012-05-14T13:34:05 < Tectu> Continuing. Cannot access memory at address 0x77faee37
2012-05-14T13:34:17 < Tectu> Programm received singal SIGTRAP, Trace/breakpoing trap.
2012-05-14T13:34:24 < Tectu> 0x1ffff034 in ?? ()
2012-05-14T13:43:35 < zyp> don't type continue, type run
2012-05-14T13:43:46 < zyp> always run after load
2012-05-14T13:44:09 < karlp> why's that? continue has always worked for me?
2012-05-14T13:45:16 < zyp> because after flashing, you want to start over, not continue with the values present in the registers
2012-05-14T13:48:04 < Tectu> zyp, with run:  ->     Starting program:      nothing happens.
2012-05-14T13:50:21 < zyp> what does it say when you hit ctrl-c?
2012-05-14T13:50:56 < Tectu> [Switching to Thread <main>]
2012-05-14T13:51:05 < Tectu> 0x1ffff034 in ?? ()
2012-05-14T13:51:06 < Tectu> Quit
2012-05-14T13:51:09 < Tectu> (gdb)
2012-05-14T13:52:14 < Tectu> zyp, also nice:  when i try to load and run the program which was delivered with taxene/stlink, LEDs dosen't blinkt too
2012-05-14T13:52:16 < Tectu> strange...
2012-05-14T13:52:20 < Tectu> maybe my board is broken?
2012-05-14T13:52:52 < Tectu> you say .elf looks good, so no toolchain issues
2012-05-14T13:53:34 < zyp> you said some stuff worked
2012-05-14T13:53:47 < Tectu> yes, weeks ago
2012-05-14T13:53:54 < Tectu> also, with stdlib
2012-05-14T13:54:42 < Tectu> zyp, wheni connect to the gdb server, using arm-none-eabi-gdb   and i go with   (gdb) target extended localhost:4242    it says   Remote debugging using localhost:4242   0x1ffff034 in ?? ()   <-- what the hack is that adsress all the time?
2012-05-14T13:54:45 < Tectu> address*
2012-05-14T13:55:20 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32
2012-05-14T14:08:59 < zyp> that's what I don't understand
2012-05-14T14:10:19 < zyp> try setting a breakpoint on ResetHandler
2012-05-14T14:10:36 < zyp> then restart and see if it's trapped
2012-05-14T14:11:03 < Tectu> do you have any good gdb tutorial for a beginner like me?
2012-05-14T14:12:03 < zyp> sorry, no
2012-05-14T14:12:15 < zyp> just type «break ResetHandler», then «run»
2012-05-14T14:12:27 < Tectu> will try later, jep
2012-05-14T14:12:55 < Tectu> back on windows, seems like my stm32f103 board is working (vendor gave disc with examples on it, stlinkutil under windows works with discoveryboard as stlink
2012-05-14T14:14:01 < zyp> dongs, woah? is it possible?
2012-05-14T14:19:30 < gsmcmullin> Tectu: That address above is system memory.  Check your boot pins.
2012-05-14T14:20:30 < gsmcmullin> Tectu: GDB Manual: http://sourceware.org/gdb/current/onlinedocs/gdb/
2012-05-14T14:20:45 < zyp> dongs, i2c works properly for me
2012-05-14T14:21:14 < zyp> I even fixed error handling so it can recover from bus errors now
2012-05-14T14:27:37 < zyp> hang on, let me check what I do before I say yes :p
2012-05-14T14:29:56 < zyp> 2 byte reads is only a special case if your i2c code is slow
2012-05-14T14:30:55 < zyp> what stuff? my stuff?
2012-05-14T14:31:59 < zyp> sure, if you get it to work
2012-05-14T14:34:40 < zyp> no, I mean it's your responsibility to change what needs to be changed to get it to work with coocox
2012-05-14T14:35:57 < zyp> shouldn't be that hard, most of the magic is in the ISR anyway
2012-05-14T14:44:03 < Tectu> gsmcmullin, what do you mean with check your boot pin?  i have them configured that it is in bootloader mode. does that matter? :D
2012-05-14T14:46:11 < zyp> yes
2012-05-14T14:46:17 < Tectu> woops
2012-05-14T14:46:31 < zyp> it should be in flash mode (both low)
2012-05-14T14:54:23 < Tectu> something's blinking...
2012-05-14T14:55:49 < Tectu> zyp, works...
2012-05-14T14:55:55 < Tectu> chibios blinking example on discovery
2012-05-14T14:56:05 < zyp> congrats
2012-05-14T14:56:26 < Tectu> awesome fail is awesome
2012-05-14T14:56:34 < Tectu> well, congrats... i am very very thankful for your help, sirs!
2012-05-14T14:56:47 < Tectu> thanks @ jpa- zyp and gsmcmullin
2012-05-14T15:01:34 < Tectu> AND FINALY: my own F103 board LED is blinking, using chibios
2012-05-14T15:01:37 < Tectu> oh god, guys...
2012-05-14T15:01:48 < Tectu> how awesome is this feeling.
2012-05-14T15:01:57 < Laurenceb> lol
2012-05-14T15:02:12 < Tectu> awesome debugger is awesome...
2012-05-14T15:02:12 < Laurenceb> you need to lose your virginity
2012-05-14T15:02:17 < Tectu> Laurenceb, i already did
2012-05-14T15:02:30 < Tectu> right now, Laurenceb ;-)
2012-05-14T15:04:40 < Tectu> zyp, gsmcmullin, jpa-, how might i thank you?
2012-05-14T15:19:31 < zyp> didn't you already do that?
2012-05-14T15:22:21 < jpa-> send 1 hundred billion dollars as unmarked bills
2012-05-14T15:26:06 < Tectu> zyp, sorry that i try to show you how thankful i am :D
2012-05-14T15:26:20 < Tectu> jpa-, is it okay, when i act like i didn't read that?
2012-05-14T15:26:54 < jpa-> nope
2012-05-14T15:27:04 < jpa-> your led will stop blinking if the money doesn't arrive
2012-05-14T15:30:13 < Tectu> ;-)
2012-05-14T15:30:39 < Tectu> btw... gdb related question:    target extended localhost:4242   <---  is it possible to debug over TCP/IP
2012-05-14T15:30:44 < zyp> yes
2012-05-14T15:30:54 < zyp> that is a tcp connection to localhost
2012-05-14T15:31:09 < Tectu> lol
2012-05-14T15:31:11 < Tectu> sounds funny
2012-05-14T15:31:39 < Laurenceb> its how zyp plans to destroy your stm32 if he doesnt get the money
2012-05-14T15:32:56 < Tectu> zyp, are there JTAGs with ethernet ?
2012-05-14T15:33:18 < Laurenceb> didnt someone write ssh for stm32?
2012-05-14T15:36:12 < zyp> Tectu, sure, get a jlink pro
2012-05-14T15:37:20 < jpa-> the dropbox ssh would probably fit on the 1MB devices just fine
2012-05-14T15:37:36 < Tectu> question to gdb:  when i start the gdb server using taxene/stlink, i can connect to it with arm-none-eabi-gdb..   when i want to just 'end' the arm-none-eabi-gdb stuff, i go with (gdb) Quit when i do that, the gdbserver gets killed to. how can i just kill the client?
2012-05-14T15:38:08 < jpa-> gdb is not on this channel
2012-05-14T15:38:33 < jpa-> the gdbserver shuts down after connection
2012-05-14T15:38:48 < karlp> you file a bug with texane/stlink if you want it to stay around when gdb exits.
2012-05-14T15:39:02 < jpa-> or just run it in a while
2012-05-14T15:39:10 < karlp> someone else asked for it earlier, it will probably get put in.
2012-05-14T15:39:30 < zyp> or just don't stop gdb
2012-05-14T15:39:51 < Tectu> ah, so it's more a taxene/stlink related problem?
2012-05-14T15:40:24 < zyp> it's not a problem, it's an «implementation detail» ;)
2012-05-14T15:40:28 < karlp> well, depends whether you call it a problem or nto :)
2012-05-14T15:40:34 < karlp> hehe, yeah
2012-05-14T15:44:00 < Laurenceb> oh telnet
2012-05-14T15:44:02 < Laurenceb> AN3102
2012-05-14T15:44:23 < karlp> if you're implementing telnet, you're already making mistakes
2012-05-14T15:45:31 < Laurenceb> heh
2012-05-14T15:47:01 -!- avernos [~avernos@unaffiliated/avernos] has quit [Remote host closed the connection]
2012-05-14T15:51:21 < Tectu> not sure what test.h  is for in chibios
2012-05-14T15:53:28 < Laurenceb> its the gay test
2012-05-14T15:54:31 < Tectu> c'mon
2012-05-14T15:55:23 < Laurenceb> i dunno.. but perhaps its a functionality test?
2012-05-14T15:58:06 < jpa-> Tectu: it's the header file for running the built-in tests
2012-05-14T15:58:24 < jpa-> (so that's why it is used in the demo, and that's also why you probably don't want to use it in your app)
2012-05-14T16:06:45 < zyp> failnet
2012-05-14T16:07:54 < Tectu> jpa-, ah
2012-05-14T16:10:43 < Tectu> and again: not sure what's the difference between  'serial driver'  and 'uart driver'   in chibios?
2012-05-14T16:11:36 < zyp> level of abstraction?
2012-05-14T16:13:11 < Tectu> Modules/HAL
2012-05-14T16:13:27 < Tectu> since HAL is  HardwareAbstractionLayer, i cannot give you an answer
2012-05-14T16:15:31 < jpa-> Tectu: serial driver is more abstract and easy to use
2012-05-14T16:15:45 < jpa-> uart driver is low-level and allows high-speed transfers using DMA directly
2012-05-14T16:16:01 < zyp> exactly
2012-05-14T16:16:10 < zyp> so the difference is the level of abstraction
2012-05-14T16:16:42 < Tectu> hmm
2012-05-14T16:16:48 < Tectu> i see
2012-05-14T16:17:26 < jpa-> (i.e. for serial driver you call WriteSomething() and it copies bytes to internal queue, for uart driver you call StartWritingSomething() and the buffer must remain valid until it completes)
2012-05-14T16:17:40 < Tectu> ah
2012-05-14T16:17:46 < Tectu> so use serial :D
2012-05-14T16:17:51 < jpa-> yep
2012-05-14T16:18:01 < Laurenceb> serial uses interrupts?
2012-05-14T16:18:34 < Tectu> and  test.h also contains  printf  functions... i guess since they are hardcoded in test.c, they aren't somehere else in chibios that i can use printf() ?
2012-05-14T16:22:31 < jpa-> Laurenceb: yeah
2012-05-14T16:22:38 < jpa-> Laurenceb: and queues
2012-05-14T16:23:11 < jpa-> Tectu: there is chprintf()
2012-05-14T16:23:16 < zyp> I hear british people love queues
2012-05-14T16:23:21 < zyp> so I bet Laurenceb would love that code
2012-05-14T16:23:52 < jpa-> it's not bad, even has some basic float support
2012-05-14T16:25:09 < Tectu> is there no searchfield in full documentation?
2012-05-14T16:25:24 < Laurenceb> lol
2012-05-14T16:26:15 < jpa-> you can always use google
2012-05-14T16:28:42 < Tectu> Laurenceb, what's there to lol about?
2012-05-14T16:31:26 < zyp> he always does that, don't mind him
2012-05-14T16:31:30 < Tectu> ok
2012-05-14T16:31:35 < jpa-> british humour
2012-05-14T16:31:40 < Tectu> aw, i see
2012-05-14T16:31:54 < Tectu> well, i enjoyed DoctorWho
2012-05-14T16:34:17 < Tectu> here we go with working chprintf() :)
2012-05-14T16:34:25 < Tectu> thanks for the tip, jpa-
2012-05-14T16:35:32 < Tectu> not sure if chibios is that awesome how i might think
2012-05-14T16:35:39 < Tectu> or is it that awesome?
2012-05-14T16:38:42 < jpa-> it's good, it's not excellent
2012-05-14T16:40:20 < Tectu> when they talk about default settings in sdStart(), and i want to not use default Settings, i have to pass a SerialConfig struct   http://chibios.sourceforge.net/html/serial__lld_8h_source.html#l00064
2012-05-14T16:40:30 < Tectu> seems like there are not the options about baudrate, parity etc?
2012-05-14T16:41:02 < jpa-> you need to look at the STM32 version of the manual
2012-05-14T16:41:12 < Tectu> lol.
2012-05-14T16:41:34 < Tectu> i just went with full documentation from here
2012-05-14T16:41:35 < jpa-> because different processors have different settings, the common manual doesn't have any
2012-05-14T16:41:36 < Tectu> http://chibios.org/dokuwiki/doku.php?id=chibios:documents
2012-05-14T16:41:51 < Tectu> but good to know...
2012-05-14T16:42:24 < Tectu> aah, this looks much better :D
2012-05-14T16:51:11 < Laurenceb> http://en.wikipedia.org/wiki/Plan_9_from_Bell_Labs
2012-05-14T16:51:21 < Laurenceb> lol i didnt know about that
2012-05-14T16:55:30 < zyp> know what?
2012-05-14T16:56:52 < Tectu> http://chibios.sourceforge.net/docs/hal_stm32f1xx_rm/serial__lld_8h_source.html#l00196     <--- are the register values or'ed?   like  USART1->cr1 |= myconfig->sc_cr1;    ?
2012-05-14T17:02:22 < Laurenceb> dongs:ping
2012-05-14T17:02:46 < Laurenceb> the tektronix mso scopes, how do i change the cursors to another trace?
2012-05-14T17:03:21 < jpa-> dongs is the manual for those scopes?
2012-05-14T17:03:29 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-14T17:03:39 < Laurenceb> he has one
2012-05-14T17:03:57 < Laurenceb> yes
2012-05-14T17:04:16 < Laurenceb> oh
2012-05-14T17:04:19 < Laurenceb> durrr
2012-05-14T17:04:42 < Laurenceb> i see now, thanks
2012-05-14T17:12:16 < Laurenceb> http://i.imgur.com/rkv10.png
2012-05-14T17:12:30 < Laurenceb> my analogue frontend works XD
2012-05-14T17:13:22 < Tectu> yes, it can never be noisy enough :)
2012-05-14T17:13:28 < Tectu> (kidding)
2012-05-14T17:23:33 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit []
2012-05-14T17:27:39 < Laurenceb> thats photodiode noise going through the bandpass at 11KHz
2012-05-14T17:32:03 -!- pelrun [~pelrun@60-241-99-33.static.tpgi.com.au] has joined ##stm32
2012-05-14T17:32:15 < Rickta59> #rrae .. does anyone know if that is connected with the stm32 at all?
2012-05-14T17:32:51 < Rickta59> seems to be an empty room .. i came across it while looking up rerap porting to stm32
2012-05-14T17:32:51 < jpa-> what is it?
2012-05-14T17:33:06 < jpa-> right
2012-05-14T17:33:09 < jpa-> no idea
2012-05-14T17:33:37 < Tectu> is there a basic, WORKING sdcard example for chibios out there?
2012-05-14T17:34:18 < Tectu> because somebody here told me that sdcards do work without any problems with it
2012-05-14T17:34:44 < Tectu> sure
2012-05-14T17:35:18 < jpa-> chibios/demos/ARMCM3-STM32F103-FATFS
2012-05-14T17:35:20 < Tectu> heard that there could be a few problems?
2012-05-14T17:35:32 < Tectu> jpa-, yes, please tell me where ff.h is located.
2012-05-14T17:36:38 < Tectu> [tectu@mercur chibios]$ pwd
2012-05-14T17:36:38 < Tectu> /home/tectu/projects/resources/chibios
2012-05-14T17:36:38 < Tectu> [tectu@mercur chibios]$ find -name 'ff.h'
2012-05-14T17:37:40 < Tectu> aw, so they ship example without all the needed code?
2012-05-14T17:38:59 < jpa-> it's just fatfs
2012-05-14T17:39:31 < jpa-> it's under chibios/ext
2012-05-14T17:39:37 < Laurenceb> theres stm32 code in there
2012-05-14T17:39:40 < Laurenceb> works for me
2012-05-14T17:39:48 < Laurenceb> - in with the elm chan download
2012-05-14T17:47:42 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-14T18:03:41 < Laurenceb> haha
2012-05-14T18:14:37 -!- avernos [~avernos@unaffiliated/avernos] has joined ##stm32
2012-05-14T18:36:36 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-14T18:36:40 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-14T18:36:45 <+Steffanx> nu
2012-05-14T18:56:40 < jpa-> st
2012-05-14T18:57:46 -!- tavish [~tavish@120.56.238.6] has joined ##stm32
2012-05-14T18:57:46 -!- tavish [~tavish@120.56.238.6] has quit [Changing host]
2012-05-14T18:57:46 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-14T19:21:17 < karlp> hrmm, do I want a f0 discovery board?
2012-05-14T19:21:30 < karlp> they're almost cheap enough to just use as is,
2012-05-14T19:21:37 < karlp> even includes protboard
2012-05-14T19:39:50 <+Steffanx> karlp go for it
2012-05-14T19:46:26 < karlp> Collect them all!
2012-05-14T19:46:36 < karlp> has anyone actually used one yet?
2012-05-14T19:47:08 < karlp> I'm not sure I see how f0 fits with L1 and f100
2012-05-14T19:53:16 < emeb> Wow - that's cheap.
2012-05-14T19:53:26 < emeb> $7.99 @ mouser.
2012-05-14T19:53:42 < emeb> and it's got stlink v2.
2012-05-14T19:55:18 < karlp> yeah, protoboard for building oneoffs, onboard debugging, ready to just box up and call it done.
2012-05-14T19:57:00 < emeb> Can't really think why you'd choose the f0 vs f100 though. Price is about the same, f100 has more peripherals.
2012-05-14T19:58:09 < emeb> looks like f0 SPI supports I2S though - interesting...
2012-05-14T19:59:10 < emeb> hmmm - capsense.
2012-05-14T20:06:04 < karlp> f100 in some cases seems to have the older periphs though
2012-05-14T20:07:26 <+Steffanx> Why they made hard disk unrepairable for normal people?
2012-05-14T20:08:58 <+Steffanx> *disks
2012-05-14T20:13:08 < karlp> unrepairable for almost everyone
2012-05-14T20:19:18 < emeb> I've heard of some folks who have opened up HDs, closed them and they still worked.
2012-05-14T20:19:37 < emeb> but in general the tolerances are so tight that clean room conditions are required.
2012-05-14T20:20:47 <+Steffanx> It doesn't work anyway, so most of the time you can't break more
2012-05-14T20:21:25 <+Steffanx> And ofcourse I want to see what's wrong
2012-05-14T20:26:06 < karlp> the only reason to open up a harddrive is to filch the magnets.
2012-05-14T20:26:13 < karlp> and for making art installations
2012-05-14T20:28:01 <+Steffanx> Teah
2012-05-14T20:28:03 <+Steffanx> *Y
2012-05-14T20:28:08 <+Steffanx> And to see what's wrong
2012-05-14T20:42:23 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Quit: Quitte]
2012-05-14T21:02:32 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-14T21:21:36 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-14T21:23:11 < jpa-> http://kapsi.fi/~jpa/stuff/other/sphere.webm
2012-05-14T21:24:20 < zyp> cute
2012-05-14T21:25:49 < jpa-> need to implement some algorithm to use the LSM303 to avoid spinning & keep direction
2012-05-14T21:28:23 <+Steffanx> Uni project jpa- ?
2012-05-14T21:28:49 < jpa-> Steffanx: nah, hobby
2012-05-14T21:28:58 <+Steffanx> Hobby bobby :)
2012-05-14T21:30:15 <+Steffanx> You move the battery to steer?
2012-05-14T21:30:33 <+Steffanx> Or at least the thing that looks like a battery
2012-05-14T21:30:43 < jpa-> yeah
2012-05-14T21:30:51 < jpa-> i'll add more counterweight later
2012-05-14T21:32:44 <+Steffanx> You should improve your camera work though
2012-05-14T21:34:53 < jpa-> it was a quick video :P
2012-05-14T21:35:44 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-14T21:39:27 -!- pelrun [~pelrun@60-241-99-33.static.tpgi.com.au] has quit [Ping timeout: 265 seconds]
2012-05-14T21:39:54 < TitanMKD> IF anyone is interested by a Tiny (5cm*5cm) STM32F4 I plan to produce a little batch soon
2012-05-14T21:40:21 -!- SuicideFunky [~randy@vps-212-153-70-8.twenty-five.nl] has joined ##stm32
2012-05-14T21:40:22 < TitanMKD> Features are not stopped but i plan hybrid power through LiPO or USB
2012-05-14T21:40:51 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-14T21:40:56 < SuicideFunky> hi
2012-05-14T21:41:55 <+Steffanx> :p
2012-05-14T21:43:36 <+izua> just a breakout board?
2012-05-14T21:47:03 < TitanMKD> izua not really in fact it will be a bit more
2012-05-14T21:47:21 < TitanMKD> izua with real ADC filtering to reach 7.2MSPS ;)
2012-05-14T21:47:44 < TitanMKD> and it will include MicroSD slot with SDIO 4bits
2012-05-14T21:48:57 <+izua> 50*50mm.. sounds interesting
2012-05-14T21:49:12 <+Steffanx> That ball .. is that something you made yourself jpa- ?
2012-05-14T21:49:18 <+izua> but it sounds like there's a serious lack of leds
2012-05-14T21:49:21 <+Steffanx> or do you perhaps have a more detailed photo?
2012-05-14T21:49:22 <+izua> anything that doesn't blink is not interesting
2012-05-14T21:50:19 <+Steffanx> It'll have a ssr so you can blink your display izua
2012-05-14T21:50:37 <+izua> epic
2012-05-14T21:50:55 < jpa-> Steffanx: it's a hamster ball from ebay
2012-05-14T21:51:18 < jpa-> Steffanx: no detail photos yet.. and not all parts are attached anyway :P
2012-05-14T21:51:23 < jpa-> steering servo is still missing
2012-05-14T21:51:45 <+izua> try getting it stuck
2012-05-14T21:52:05 <+Steffanx> I'm more interested in how you move jpa- .. can't really see that in the video
2012-05-14T21:52:07 <+Steffanx> make it move
2012-05-14T21:52:31 <+izua> i think it's a small gear rolling on the inside of the ball, can't really tell though
2012-05-14T21:52:37 <+izua> plus the insides spin freely sometime
2012-05-14T21:52:43 < jpa-> motor on the axis
2012-05-14T21:53:00 < jpa-> (and RF control)
2012-05-14T21:54:11 < jpa-> batteries act as a weight so that the insides stay in same orientation.. so it spins the ball around the weight
2012-05-14T21:55:17 <+Steffanx> After this version you'll make one for in your tub? :p
2012-05-14T21:56:46 <+Steffanx> So no super advanced control mechanism jpa- :(
2012-05-14T21:56:51 < jpa-> not yet
2012-05-14T21:57:23 < jpa-> the steering is a bit fun to think about
2012-05-14T21:57:44 < jpa-> it will shift the weight to the side, so that the rotation axis is tilted
2012-05-14T21:58:03 <+izua> i don't think there's anything more complex than a free weight for a steering mechanism
2012-05-14T21:58:20 < Laurenceb_> you should make something more fun like a parafoil
2012-05-14T21:58:28 < TitanMKD> izua I also plan usage of ULPI to have an usb slot @480mbps
2012-05-14T21:58:38 <+izua> ion thrusters? :D
2012-05-14T21:58:41 < Laurenceb_> then weight shift gets more interesting
2012-05-14T21:59:04 < Laurenceb_> http://ukhas.org.uk/_media/projects:ukhas_glider_project:pict7865.jpg?w=600
2012-05-14T21:59:11 < Laurenceb_> ^something i made a while back
2012-05-14T21:59:22 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving]
2012-05-14T21:59:45 <+Steffanx> Uh, what's it exactly Laurenceb_ ?
2012-05-14T21:59:55 < Laurenceb_> a rogallo
2012-05-14T22:00:08 < Laurenceb_> it flies :D
2012-05-14T22:00:20 <+Steffanx> That think flies?
2012-05-14T22:00:29 < Laurenceb_> yes
2012-05-14T22:00:35 < Laurenceb_> unfortunately its avr powered
2012-05-14T22:00:42 <+Steffanx> Unfortunalty/
2012-05-14T22:00:45 <+Steffanx> unfortunately
2012-05-14T22:00:48 <+Steffanx> ?
2012-05-14T22:00:57 <+Steffanx> 'nothing' wrong with AVRs
2012-05-14T22:01:02 < Laurenceb_> heh
2012-05-14T22:01:10  * Laurenceb_ looks at channel topic
2012-05-14T22:01:45 <+Steffanx> You want to see something about AVRs in it ? :P
2012-05-14T22:01:47 < Laurenceb_> but yeah its a "UAV"
2012-05-14T22:02:03 <+Steffanx> It's legal to fly things like that in GB?
2012-05-14T22:02:13 <+Steffanx> I wouldn't be surprised if it isn't legal here
2012-05-14T22:02:21 < Laurenceb_> lol who cares
2012-05-14T22:02:26 <+Steffanx> I do
2012-05-14T22:02:50 < Laurenceb_> it does about 30mph and weighs ~1Kg
2012-05-14T22:02:50 <+Steffanx> Go to london and fly it over the olympic stadium :P
2012-05-14T22:02:53 < Laurenceb_> heh
2012-05-14T22:02:59 <+Steffanx> "who cares"
2012-05-14T22:03:46 < Laurenceb_> rc planes are ok so so is that
2012-05-14T22:05:06 < Laurenceb_> actually its a bit lame as it only has single axis wing control
2012-05-14T22:05:25 < Laurenceb_> some thing with two axis pivot would allow cruise with a larger range of throttle settingsa
2012-05-14T22:07:23 < Laurenceb_> http://ukhas.org.uk/_media/projects:ukhas_glider_project:pict7924.jpg?w=750
2012-05-14T22:12:43 < Laurenceb_> which is basically the same thing + boards of canada
2012-05-14T22:27:02 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-14T22:46:16 <+Steffanx> What's inside that big box Laurenceb_ ?
2012-05-14T22:48:50 < Laurenceb_> the warhead
2012-05-14T22:49:11 <+Steffanx> Excellent
2012-05-14T22:50:17 < Laurenceb_> *said in evil genius voice*
2012-05-14T22:50:50 <+Steffanx> You're far away from london?
2012-05-14T22:51:25 < Laurenceb_> far enough away to avoid the fallout, yes
2012-05-14T23:04:05 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 248 seconds]
2012-05-14T23:12:58 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32
2012-05-14T23:57:47 < Tectu> is there any reason why i should put 20pin connector on my project, and not only 4pin SWD?
2012-05-14T23:58:38 < karlp> compatibility with older debuggers
2012-05-14T23:58:59 < karlp> http://www.keil.com/coresight/connectors.asp
2012-05-14T23:59:45 < Tectu> w00t the hack is ETM
2012-05-14T23:59:48 < karlp> (I'm putting a 6pin connector on, that matches the pinout on the discovery boards)
--- Day changed Tue May 15 2012
2012-05-15T00:00:33 < Tectu> karlp, but i mean is there any technical reason?
2012-05-15T00:00:37 < Tectu> just for a small hobby project
2012-05-15T00:00:51 < Tectu> karlp, i have stlink v2 dedicated soon :D
2012-05-15T00:01:57 < Thorn> http://imgur.com/gallery/9Msoo
2012-05-15T00:02:56 < Laurenceb_> how stm32 formed?
2012-05-15T00:03:02 -!- os-app92 [~ftw@133.170.195.77.rev.sfr.net] has joined ##stm32
2012-05-15T00:03:14 < karlp> ETM is execution trace module
2012-05-15T00:03:21 < Laurenceb_> thats got to be fake
2012-05-15T00:03:58 -!- os-app92 [~ftw@133.170.195.77.rev.sfr.net] has quit [Client Quit]
2012-05-15T00:09:23 < karlp> well, I think this board's ready to go, we'll try and mill it out tomorrow, first stm32 board hopefully: http://i.imgur.com/fT6Ga.png
2012-05-15T00:10:04 < Laurenceb_> _slightly_ simpler than my latest pcb
2012-05-15T00:10:06 < karlp> and only three vias to fill manually.
2012-05-15T00:10:08 < karlp> yeah :9
2012-05-15T00:10:12 < karlp> still took me long enough
2012-05-15T00:10:51  * Laurenceb_ is still faffing about with front end design
2012-05-15T00:11:03 < Laurenceb_> MCP6292 opamp is suprisingly good
2012-05-15T00:11:15 < Tectu> btw, few people say it's impossible to use stm32 with homebrew two layer board. is that true?
2012-05-15T00:11:23 < karlp> few like who?
2012-05-15T00:11:25 < Laurenceb_> ive yet to find a better opamp for interfacing with my photodiode, even tho mcp6292 is cheap
2012-05-15T00:11:34 < karlp> microchip aren't dumb,
2012-05-15T00:11:40 < karlp> pics might be weird, but they make some nice parts
2012-05-15T00:11:53 < Laurenceb_> crazy low current noise and good voltage noise too
2012-05-15T00:11:53 < karlp> that board of mine has a microchip smps on it,
2012-05-15T00:12:01 < Tectu> karlp, just some people - not from this chanl
2012-05-15T00:12:51 < Laurenceb_> max4477 looks better actually, but weird input output at 3.3v rail
2012-05-15T00:12:58 < Laurenceb_> its not fully rail to rail
2012-05-15T00:13:26 < karlp> lots of amps arne't rail to rail, but have nice characteristics for everything else.
2012-05-15T00:13:43 < Laurenceb_> i think max4467 will work ok for me
2012-05-15T00:13:46 < karlp> your phot diode is for making a super cheap spectrometer wasn't it?
2012-05-15T00:13:53  * Laurenceb_ orders from farnell
2012-05-15T00:13:54 < Laurenceb_> yes
2012-05-15T00:14:05 < Laurenceb_> im trying to get ~18 ENOB/channel
2012-05-15T00:14:10 < karlp> ENOB?
2012-05-15T00:14:13 < Laurenceb_> which turns out to be _very_ hard
2012-05-15T00:14:18 < Laurenceb_> effective number of bits
2012-05-15T00:14:21 < Laurenceb_> at 100sps
2012-05-15T00:14:31 < karlp> that's a lot of bits.
2012-05-15T00:14:37 < Laurenceb_> yes
2012-05-15T00:14:42 < karlp> what on earht are you measuring that has that much dynamic range?
2012-05-15T00:14:57 < Laurenceb_> tissue absorption
2012-05-15T00:15:40 < Laurenceb_> was getting 17 this afternoon with mcp6292, max4477 should get me 18
2012-05-15T00:52:21  * zyp resets flyback_ 
2012-05-15T00:52:34 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
2012-05-15T01:22:45 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 248 seconds]
2012-05-15T01:32:02 < cjbaird> J.F.C... Gimp2.8's UI changes are worst than Ubuntu's Unity.. "Why do you need to know if you're stretching a horizontal line for?? We're giving it sooper-sexy anti-aliased effect on everything!"
2012-05-15T01:38:10 < Laurenceb_> lol
2012-05-15T01:38:18 < Laurenceb_> havent tried it yet
2012-05-15T01:40:29 < Laurenceb_> still running ubuntu 10.04 here
2012-05-15T01:41:23 < Laurenceb_> i actually like the design is 10.04   - high contrast is nice on the eye
2012-05-15T01:41:24 < cjbaird> Is there some Illuminatii plot to fuck-up every major FOSS project, or what...?
2012-05-15T01:41:35 < Laurenceb_> windows xp gives me a headache
2012-05-15T01:41:37 < Laurenceb_> lol
2012-05-15T01:44:25 < cjbaird> Still, I did test out the Windows 8 tester. HAHAHAHAHA.
2012-05-15T01:44:47 < Laurenceb_> i need xp to run NI-VISA
2012-05-15T01:44:58 < Laurenceb_> horrible piece of crap
2012-05-15T01:45:19 < Laurenceb_> probably just a mossad plot to fuck up iranian enrichment plants
2012-05-15T01:46:04 < Laurenceb_> apparently its possible to install on ubuntu/debian... but doesnt look like fun
2012-05-15T01:46:17 < cjbaird> I'm going to have to figure out something when I need to do some more eprom programming, as the PIII freedos machine carked it..
2012-05-15T01:47:17  * Laurenceb_ just spent 2 days trying to persuade all the national-instruments drivers to run on xp
2012-05-15T01:47:27 < Laurenceb_> and thats _meant_ to work
2012-05-15T01:47:28 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-15T01:51:08 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 272 seconds]
2012-05-15T01:52:23  * Laurenceb_ zzz
2012-05-15T01:58:05 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 272 seconds]
2012-05-15T02:07:28 < karlp> virtualbox is pretty awesome for that sort of cruft.
2012-05-15T02:14:01 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 260 seconds]
2012-05-15T02:17:47 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-15T02:23:33 < cjbaird> It's an old MSDOS-based "yes, I can give you an exact 50 millisecond pulse, why do you ask" up to 32 pin programmer. Mostly been used for 1970s-era computer resto work. Certainly not worth buying a new USB programmer for.
2012-05-15T02:25:04 < cjbaird> https://secure.flickr.com/photos/chris_j_b/4168622439/
2012-05-15T02:25:22 < zyp> for once I actually agree with flyback_
2012-05-15T02:25:26 < zyp> :p
2012-05-15T02:30:04 < cjbaird> Why do all that fucking around when I already have a working eprom programmer?
2012-05-15T02:30:21 < cjbaird> (and until recently, the working DOS machine for it)
2012-05-15T02:30:28 -!- pelrun [~pelrun@60-241-99-33.static.tpgi.com.au] has joined ##stm32
2012-05-15T02:32:36 < cjbaird> Yep. I said old. It also needs 'hard real time', so virtual machines are out.
2012-05-15T02:33:57 < cjbaird> I've got a great idea-- how about I get one of those, and pass it off as a computer made in 1975 to a collector!
2012-05-15T02:34:07 < cjbaird> hhhhhuuuuuuuuuurrrrrrrrrrrrrrr
2012-05-15T02:34:09 -!- pelrun_ [~pelrun@60-241-99-33.static.tpgi.com.au] has joined ##stm32
2012-05-15T02:35:18 < cjbaird> Or how about I create a simulator for those on a new board. oh wait, I already am! https://github.com/cjbaird/stm6502
2012-05-15T02:36:08 < cjbaird> cry moar, fayget
2012-05-15T02:36:43 -!- pelrun [~pelrun@60-241-99-33.static.tpgi.com.au] has quit [Ping timeout: 272 seconds]
2012-05-15T02:36:52 < zyp> I find that hard to believe
2012-05-15T02:40:21 < zyp> I think it's time to just shut up
2012-05-15T02:43:43 < cjbaird> What I've got: http://hondamarketplace.com/showthread.php?t=2810922 (although I only got the DOS softare) ... It does eproms, eeproms, nvrams, etc.
2012-05-15T02:45:20 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has left ##stm32 ["Konversation terminated!"]
2012-05-15T03:12:11 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 272 seconds]
2012-05-15T03:15:52 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 245 seconds]
2012-05-15T03:20:25 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-15T03:45:47 -!- ben1066_ [~quassel@host86-145-172-151.range86-145.btcentralplus.com] has joined ##stm32
2012-05-15T03:45:48 -!- ben1066_ [~quassel@host86-145-172-151.range86-145.btcentralplus.com] has quit [Changing host]
2012-05-15T03:45:48 -!- ben1066_ [~quassel@unaffiliated/ben1066] has joined ##stm32
2012-05-15T03:46:30 -!- ben1066 [~quassel@unaffiliated/ben1066] has quit [Ping timeout: 260 seconds]
2012-05-15T03:47:16 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 265 seconds]
2012-05-15T04:45:15 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-15T05:40:05 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer]
2012-05-15T05:40:37 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-15T06:04:04 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-15T06:32:55 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-15T06:48:27 < cjbaird> I've also got a whole stack of FORTH-related hardware from a guy who worked for a company in Australia that made the same kind of thing.
2012-05-15T08:22:12 < cjbaird> Awesome, I just found a 160x128 LCD among his pile of forth stuff. And its datasheet. http://i.imgur.com/nzIqN.jpg
2012-05-15T08:23:28 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer]
2012-05-15T08:23:49 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-15T08:53:43 -!- NonaSuomy [~TeknoJuce@bas1-london15-2925075879.dsl.bell.ca] has joined ##stm32
2012-05-15T08:53:43 -!- NonaSuomy [~TeknoJuce@bas1-london15-2925075879.dsl.bell.ca] has quit [Changing host]
2012-05-15T08:53:43 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-15T08:57:05 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 260 seconds]
2012-05-15T10:20:04 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has joined ##stm32
2012-05-15T10:20:05 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has quit [Changing host]
2012-05-15T10:20:05 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32
2012-05-15T10:32:47 -!- dekar__ [~dekar@dslb-088-068-117-163.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep]
2012-05-15T11:16:29 -!- dekar [~dekar@dslb-188-107-192-111.pools.arcor-ip.net] has joined ##stm32
2012-05-15T11:16:32 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-15T11:22:53 < SuicideFunky> hello
2012-05-15T11:24:00 < zyp> «hey we're putting dumb in your embedded systems»
2012-05-15T11:24:37 < zyp> ha, I don't have anything to do with ST stuff :p
2012-05-15T11:26:24 < zyp> «we made this too fast, so now we're adding some bloat»
2012-05-15T11:26:42 < zyp> wat
2012-05-15T11:26:50 < zyp> 1 hour of runtime?
2012-05-15T11:27:29 < zyp> doesn't matter, you can't write any decent code in java anyway
2012-05-15T11:28:22 < zyp> I'll pass :p
2012-05-15T11:35:41 -!- pelrun_ [~pelrun@60-241-99-33.static.tpgi.com.au] has quit [Ping timeout: 272 seconds]
2012-05-15T11:42:28 < SuicideFunky> i'm confused, how does your programmer (texane stlink for example) know where to put the segments from an elf file?
2012-05-15T11:42:52 < SuicideFunky> im trying to make a Makefile/linkerscript to generate elfs executed from sram or flash
2012-05-15T11:44:47 < SuicideFunky> texane is using a separate tool for flashing yet the recent readme mentions you can do this with the gdb server and setting the correct addresses
2012-05-15T11:46:28 < jpa-> SuicideFunky: quite the opposite
2012-05-15T11:46:50 < jpa-> the flash tool of texane/stlink does not understand .elf, it wants .bin and a manually defined address
2012-05-15T11:47:01 < jpa-> whereas if you type 'load' from gdb, it automatically takes the address from .elf
2012-05-15T11:48:28 < SuicideFunky> jpa-: thanks! that makes sense. Now you mention it the flash tool takes .bin indeed
2012-05-15T11:48:48 < SuicideFunky> so if i get my elf's right i could do the programming just with gdb as well?
2012-05-15T11:49:37 < zyp> yes, that's what I've always done
2012-05-15T11:49:48 < jpa-> if you get your elfs wrong, it won't work anyway
2012-05-15T11:50:19 < zyp> elf metadata contains all the addresses of where sections are to be loaded and where sections are expecting to be when executed
2012-05-15T11:50:20 < jpa-> because (unless you use position-independent code) some addresses are hardcoded in the binary by the linker, and if the address is wrong it will crash
2012-05-15T11:50:55 < zyp> you can view this with objdump -h
2012-05-15T11:51:44 < SuicideFunky> indeed
2012-05-15T11:52:11 < SuicideFunky> thats great zyp, so you have it working already i presume :)
2012-05-15T11:52:22 < SuicideFunky> good one for objdump
2012-05-15T11:52:34 < SuicideFunky> im kinda new with this stuff
2012-05-15T11:52:48 < SuicideFunky> just started using readelf
2012-05-15T11:52:48 < zyp> of course I have it working, can't get stuff done otherwise
2012-05-15T11:52:56 < zyp> not that I'm good at getting stuff done
2012-05-15T11:52:57 < zyp> :
2012-05-15T11:52:58 < zyp> :p
2012-05-15T11:53:04 < SuicideFunky> hah =D
2012-05-15T11:55:15 < SuicideFunky> well thanks for your helps zyp and jpa-, makes more sense to me now
2012-05-15T11:55:19 < zyp> dongs, me too, that's why I write C++
2012-05-15T11:55:52 < SuicideFunky> dongs: there is a great header file for this, created from the header files from st
2012-05-15T11:56:12 < zyp> «great»
2012-05-15T11:56:15 < SuicideFunky> just the defines for all the registers
2012-05-15T11:56:21 < SuicideFunky> bare metal :)
2012-05-15T11:56:32 < zyp> pretty horrible IMO
2012-05-15T11:57:15 < SuicideFunky> dongs: http://www.keil.com/dd/docs/arm/st/stm32f10x/stm32f10x.h
2012-05-15T11:58:48 < SuicideFunky> note that you need these includes from the original library core_cm3.h system_stm32f10x.h
2012-05-15T11:59:04 < SuicideFunky> they are in the texane/stlink repo
2012-05-15T11:59:34 < jpa-> yeah, that kind of header files are spinning all around the web
2012-05-15T11:59:45 < jpa-> it's better than stdperiph, but not by much
2012-05-15T12:00:08 < zyp> they are all pretty awful :p
2012-05-15T12:00:10 < jpa-> it is even missing a few registers, like FSMC BTRR
2012-05-15T12:00:25 < jpa-> err, BTR
2012-05-15T12:01:03 -!- pelrun [~pelrun@14-202-70-213.static.tpgi.com.au] has joined ##stm32
2012-05-15T12:01:28 < SuicideFunky> hmm, good to know that, i havent used it extensively yet
2012-05-15T12:02:18 < SuicideFunky> maybe still better than defining all the registers by hand
2012-05-15T12:02:39 < jpa-> yeah, less typos atleast
2012-05-15T12:02:48 < SuicideFunky> :)
2012-05-15T12:03:01 < jpa-> IIRC zyp is doing all his register definitions manually also.. but he is writing a library anyway
2012-05-15T12:03:13 < zyp> yep
2012-05-15T12:03:23 < zyp> without C-isms
2012-05-15T12:03:25 < jpa-> libopencm3 redid the register definitions also, apparently because of license issues
2012-05-15T12:04:08 < zyp> I started making a huge file like that first, but then I realized having seperate register blocks in seperate file is way easier to navigate
2012-05-15T12:04:37 < SuicideFunky> indeed zyp
2012-05-15T12:04:43 < SuicideFunky> i like the way avr did it
2012-05-15T12:05:38 < SuicideFunky> separate dirs and files for every avr
2012-05-15T12:05:43 < SuicideFunky> and common includes
2012-05-15T12:06:29 < jpa-> i wish it was possible to use bitfields for the task
2012-05-15T12:07:00 < zyp> ever seen bitfields used in practice?
2012-05-15T12:07:30 < zyp> example code for synopsys usb (the usb periphs in F4) uses that
2012-05-15T12:07:34 < zyp> it looks so ugly
2012-05-15T12:07:57 < jpa-> true.. they have their troubles, such as not possible to set multiple fields at once
2012-05-15T12:08:23 < zyp> no, I mean
2012-05-15T12:09:02 < zyp> they create a temp union, read out the register as a word to the union, manipulate it as a struct with bit fields, then write it back as a word
2012-05-15T12:09:31 < jpa-> ah, yeah.. not like that
2012-05-15T12:09:42 < jpa-> but if gcc transparently did that
2012-05-15T12:10:06 < zyp> that would be dumb
2012-05-15T12:10:36 < zyp> registers are word accessed and may trigger stuff on both reads and writes
2012-05-15T12:10:44 < jpa-> yep
2012-05-15T12:10:47 < zyp> so you want explicit control over when they are read and written
2012-05-15T12:11:22 < zyp> how would you manage that without creating temps anyway?
2012-05-15T12:12:09 < jpa-> haven't thought about it so deeply
2012-05-15T12:12:20 < SuicideFunky> jpa-: it is possible to set them at once using bitwise operations. Or are you referring to something else?
2012-05-15T12:12:27 < zyp> SuicideFunky, not bitfields
2012-05-15T12:12:55 < SuicideFunky> then im unfamiliar with bitfields :)
2012-05-15T12:13:16 < zyp> http://en.wikipedia.org/wiki/Bit_field#Drawbacks_of_the_structure-based_approach
2012-05-15T12:13:20 < jpa-> but setting multi-bit values inside the words is annoying.. basically the easiest way is just FOO = 0x12345678, which is not very clear to the reader
2012-05-15T12:13:35 < zyp> nah
2012-05-15T12:13:55 < zyp> foo = (x << 7) | (y << 5); works nicely
2012-05-15T12:14:09 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-15T12:14:33 < jpa-> true
2012-05-15T12:14:53 < SuicideFunky> thats what i meant zyp :)
2012-05-15T12:14:55 < jpa-> but still, it gets nasty when you want to edit the value without changing other bits
2012-05-15T12:15:58 < SuicideFunky> just use |=
2012-05-15T12:16:17 < zyp> foo = (x << 7) | (~(3 << 7) & foo);
2012-05-15T12:16:58 < jpa-> yep, need to do the ~ trick
2012-05-15T12:17:01 < SuicideFunky> never thought of doing it that way
2012-05-15T12:17:10 < jpa-> i must say that foo.bar = x; would be clearer
2012-05-15T12:17:37 < jpa-> but i agree that it is not usable in practise
2012-05-15T12:17:53 < zyp> well
2012-05-15T12:18:23 < zyp> I kind of prefer an explicit bit shift, because then I can easily look up the bits in the reference manual, rather than go hunting for the struct
2012-05-15T12:18:25 < jpa-> SuicideFunky: you need to clear out the old bits before |
2012-05-15T12:19:11 < SuicideFunky> thats true
2012-05-15T12:19:24 < SuicideFunky> i use |= just for editing afterwards
2012-05-15T12:19:24 < karlp> ctrl-click on the structure!
2012-05-15T12:19:33 < karlp> get a better editor rather than jumping to the datasheet :)
2012-05-15T12:19:59 < zyp> I think it's better to have a clean abstracted api and a pretty thin implementation behind that, rather than putting a lot of work into naming every bit in every part of code behind the abstraction
2012-05-15T12:20:35 < SuicideFunky> karlp: not possible when using vim :)
2012-05-15T12:20:57 < zyp> http://cgit.jvnv.net/suzumebachi/tree/hal/pin.h?h=stm32f4 <- that's why my gpio/pin abstraction looks like this
2012-05-15T12:21:12 < karlp> SuicideFunky: 09:19 < karlp> get a better editor rather than jumping to the datasheet :)
2012-05-15T12:21:57 < SuicideFunky> i dont want to install a ****load of .net software first
2012-05-15T12:22:09 < SuicideFunky> anyway, your editor is just personal preference :)
2012-05-15T12:22:27 < zyp> karlp, it's not about good and bad editors, it's about how many hoops you want to jump through
2012-05-15T12:22:35 < SuicideFunky> indeed
2012-05-15T12:23:07 < karlp> I vastly prefer ctrl-clicking on a structure field than finding the right page in the datasheet, and counting bits.
2012-05-15T12:23:13 < karlp> you're right, there's more than one way of doing it
2012-05-15T12:23:27 < SuicideFunky> thats just fine karlp
2012-05-15T12:23:38 < SuicideFunky> but it would not be my choice
2012-05-15T12:23:59 < SuicideFunky> although i can understand ppl using complete ide packages
2012-05-15T12:24:01 < karlp> and I totally agree that trying to do it all with bitfields in structures can do odd things for read/write.
2012-05-15T12:24:06 < zyp> karlp, how much does reading the structure help though? you'll end up looking in the reference manual in the end anyway, so why not just do that from the start?
2012-05-15T12:24:28 < karlp> depends how much I'm looking for,
2012-05-15T12:24:42 < karlp> if I just need a reminder on the name that the field applies to, the strcture can be enough
2012-05-15T12:24:59 < karlp> I don't always need to go all the way to each bit in the raw reg name.
2012-05-15T12:25:30 < zyp> the usb example code for F4 were fun, it were inconsistent with the datasheet
2012-05-15T12:25:43 -!- pelrun [~pelrun@14-202-70-213.static.tpgi.com.au] has quit [Ping timeout: 272 seconds]
2012-05-15T12:25:46 < karlp> but which one was right?
2012-05-15T12:25:49 < SuicideFunky> its less worse than it sounds, good naming conventions for regnames and bits helps a lot
2012-05-15T12:26:42 < zyp> karlp, the code was right in that it worked
2012-05-15T12:27:20 < karlp> did it stop working when it was consistent with the datasheet? or did that work too?
2012-05-15T12:28:50 < zyp> some of the bits were named differently from the datasheet
2012-05-15T12:29:56 < zyp> the code were setting PHYSEL, so I tried to set PHYSEL according to datasheet
2012-05-15T12:30:01 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-15T12:31:40 < karlp> yech.
2012-05-15T12:32:41 < SuicideFunky> zyp / jpa- could you explain where the stm32 uC starts execution? i dont really get it how this works when running your elf from sram or flash
2012-05-15T12:32:52 < SuicideFunky> the datasheet did mention something about boot pins
2012-05-15T12:33:00 < zyp> boot0 and boot1
2012-05-15T12:33:21 < SuicideFunky> but i cant set those pins on my stm32vldiscovery
2012-05-15T12:33:24 < zyp> chooses if you start from 0x8000000 (flash) or 0x20000000 (ram)
2012-05-15T12:33:45 < zyp> well they are set to something.
2012-05-15T12:33:47 < karlp> SuicideFunky: you won't be able to use the same elf for both ram and flash
2012-05-15T12:34:14 < karlp> and if you're reading notes about ram and flash in the texane/stlink examples,
2012-05-15T12:34:17 < karlp> just stop looking at them
2012-05-15T12:34:24 < SuicideFunky> karlp: indeed, i knew that already, thanks anyway
2012-05-15T12:34:30 < karlp> good good :)
2012-05-15T12:34:33 < SuicideFunky> :)
2012-05-15T12:34:45 < zyp> if both boot0 and boot1 are low, it starts from flash, and other combinations enable built in bootloader or ram
2012-05-15T12:35:01 < karlp> SuicideFunky: VL board has boot0 and boot1, but they're labelled PB2 and something else,
2012-05-15T12:35:02 < SuicideFunky> indeed that was what i found also
2012-05-15T12:35:21 < SuicideFunky> exactly that karlp
2012-05-15T12:35:23 < zyp> the area you are booting from get aliased to 0, where it then expects to find the vector table
2012-05-15T12:35:41 < zyp> then it pulls the first word from that and put into sp and the second word an put into pc
2012-05-15T12:35:45 < karlp> if you're flashing via gdb though, and the elf is linked to run from sram, then you don't need to fiddle with the boot pins, because gdb will just set things up for you (if everything works properly)
2012-05-15T12:36:03 < jpa-> hmm.. so on STM32, it is fine to dereference a null pointer? :)
2012-05-15T12:36:27 < karlp> it's always fine to do it in C, it's just a matter of what you do with it after that :)
2012-05-15T12:36:52 < zyp> karlp, aren't it disallowed by spec?
2012-05-15T12:37:13 < SuicideFunky> karlp, that information was exactly what i was looking for :)
2012-05-15T12:37:25 < karlp> oh, maybe.
2012-05-15T12:37:27 < SuicideFunky> i reasoned it had something to do with gdb
2012-05-15T12:37:33 < zyp> I seem to remember having read that dereferencing a null pointer is illegal and should never happen, so the compiler is free to optimize that entire code away
2012-05-15T12:37:49 < karlp> zyp: is that perhaps some carryover from machines not using the 0 address space?
2012-05-15T12:38:07 < karlp> SuicideFunky: but you _will_ need to relink the elf if you want to run from sram instead of flash
2012-05-15T12:38:33 < karlp> arm-eabi-none- doesn't have an OS to read and relocate the sections,
2012-05-15T12:38:41 < karlp> it just copies sections form the elf to addresses in memory
2012-05-15T12:38:44 < zyp> karlp, since it get's aliased to 0 you can link the elf for 0 and execute the same from both ram and flash
2012-05-15T12:38:52 < zyp> -'
2012-05-15T12:39:01 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Ping timeout: 272 seconds]
2012-05-15T12:39:02 < karlp> zyp: that doesn't seem to work as far as I've found.
2012-05-15T12:39:19 < karlp> but, there's probably something else in the elf that needs to be set then :)
2012-05-15T12:39:19 < zyp> I've never tried, but I almost got tempted to, just to prove you wrong :)
2012-05-15T12:39:25 < SuicideFunky> that would be great zyp
2012-05-15T12:39:40 < karlp> that would probably only work if you then rebooted with the bootpins
2012-05-15T12:39:46 < karlp> to make the aliasing happen.
2012-05-15T12:39:51 < zyp> yes
2012-05-15T12:40:03  * SuicideFunky feels the need to solder his discovery
2012-05-15T12:40:29 < karlp> I'd believe it then, no problem, but relinking and reflashing is easier than adding buttons and jumpers to the boot pins :)
2012-05-15T12:40:49 < karlp> you can only run from sram when the project is still really small anyway
2012-05-15T12:41:01 < SuicideFunky> hah, true :)
2012-05-15T12:41:47 < zyp> or get one of the ram-only lpc4300s
2012-05-15T12:41:48 < zyp> :p
2012-05-15T12:44:15 < SuicideFunky> probably a reason for st not to add boot jumpers to their board
2012-05-15T12:44:44 < SuicideFunky> maybe for pcb size
2012-05-15T12:45:01 < jpa-> not much use for boot jumpers when you have stlink
2012-05-15T12:46:50 < SuicideFunky> ah ofcourse
2012-05-15T12:50:25 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 272 seconds]
2012-05-15T12:54:54 -!- pelrun [~pelrun@14-202-70-213.static.tpgi.com.au] has joined ##stm32
2012-05-15T12:58:15 < SuicideFunky> dongs: start by changing your attitude and explain how it doesnt help you :)
2012-05-15T13:00:14 < SuicideFunky> then i misunderstood your question, im deeply ashamed
2012-05-15T13:00:33 < SuicideFunky> defining a gpoi port sounds like a register define to me, according to the datasheet
2012-05-15T13:00:44 < SuicideFunky> then you can do your bit manipulation yourself
2012-05-15T13:01:27 < SuicideFunky> great, ill try that one too
2012-05-15T13:03:01 -!- pelrun [~pelrun@14-202-70-213.static.tpgi.com.au] has quit [Ping timeout: 248 seconds]
2012-05-15T13:31:58 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-15T13:44:39 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Remote host closed the connection]
2012-05-15T13:49:17 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-15T13:55:11 < zyp> that's not that huge of a coincidence, it's not that many to choose from
2012-05-15T13:57:42 < zyp> when you factor in that you have a bunch of other peripherals too and you don't want them to collide, the choices are further limited
2012-05-15T14:38:48 < karlp> anyone have any opinions on this: https://answers.launchpad.net/gcc-arm-embedded vs summon-arm-toolchain vs codesourcery?
2012-05-15T14:39:02 < karlp> where does summon-arm-toolchain pull it's sources from?
2012-05-15T14:50:20 < Laurenceb> gnu-rageio
2012-05-15T14:51:52 < karlp> is it just that it's waiting for each page to completely finish before starting the next one?
2012-05-15T14:52:00 < karlp> is 16secs more than it used to be?
2012-05-15T14:52:13 < karlp> is it _doing_ global erase?
2012-05-15T14:56:24 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-15T14:56:27 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-15T15:25:26 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925075879.dsl.bell.ca] has joined ##stm32
2012-05-15T15:25:26 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925075879.dsl.bell.ca] has quit [Changing host]
2012-05-15T15:25:26 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-15T15:27:37 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 265 seconds]
2012-05-15T15:43:20 < Laurenceb> arg
2012-05-15T15:43:30 < Laurenceb> why is it so hard to buy cable in this country
2012-05-15T15:43:56 < Laurenceb> http://www.mogamicable.com/category/bulk/ultra_flex_mini/
2012-05-15T15:44:03 < Laurenceb> trying to order some of that
2012-05-15T15:44:35 < zyp> your country is not good enough
2012-05-15T15:44:59 < Tom_itx> do you owe back taxes?
2012-05-15T15:46:07 < Laurenceb> lol
2012-05-15T15:46:25 < Laurenceb> they only sell in us
2012-05-15T15:46:39 < Laurenceb> european resellers are a pita to deal with
2012-05-15T15:46:43 < zyp> time to move
2012-05-15T15:47:10 < Laurenceb> heh
2012-05-15T15:47:26 < Laurenceb> my dad just became a mexican citizen
2012-05-15T15:47:40 < zyp> is he dealing drugs?
2012-05-15T15:47:55 < Laurenceb> well...
2012-05-15T15:48:13 < Laurenceb> he did spend some time in jail in Guatamala in the 80s
2012-05-15T15:48:41 < Laurenceb> but hes worked for the department of agriculture for the past 20 years or so
2012-05-15T15:49:13 < zyp> ah, so he's responsible for growing the drugs
2012-05-15T15:49:20 < Laurenceb> hehe
2012-05-15T15:49:40 < Laurenceb> he was in jail for working in a cocaine refinery :P
2012-05-15T15:50:17 < Laurenceb> until all the guards got shot....
2012-05-15T15:52:14 < Laurenceb> its funny, over christmas we had a family party and he got drunk and started talking about how the guards got shot in their heads
2012-05-15T15:52:29 < Laurenceb> my cousins boyfriend was freaking out big time
2012-05-15T15:53:18 < Laurenceb> but yeah my family is a bit weird :P
2012-05-15T15:53:48 < zyp> :p
2012-05-15T15:57:04 < Laurenceb> http://www.youtube.com/watch?feature=player_embedded&v=4U6ki1ryqQY
2012-05-15T15:57:13 < Laurenceb> now dongs can like raspberry pi
2012-05-15T15:57:38 < karlp> heh
2012-05-15T16:00:07 < jpa-> not too slow
2012-05-15T16:01:33 < Laurenceb> aiui they still dont have x acceleration
2012-05-15T16:05:52 < Laurenceb> http://www.hhb.co.uk/product_detail.php?id=1939
2012-05-15T16:06:00 < Laurenceb> lol @ oxygen free copper
2012-05-15T16:07:44 < Laurenceb> audiofool cable
2012-05-15T16:16:20 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 260 seconds]
2012-05-15T16:20:35 < Laurenceb> aha hhb stock all the mogami stuff
2012-05-15T16:20:45 < Laurenceb>  ~ £1.16/m
2012-05-15T16:38:30 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has joined ##stm32
2012-05-15T16:43:33 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-15T16:51:48 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-15T17:07:59 -!- dekar [~dekar@dslb-188-107-192-111.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep]
2012-05-15T17:16:16 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer]
2012-05-15T17:18:25 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Remote host closed the connection]
2012-05-15T17:18:48 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-15T17:28:27 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-15T17:31:50 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-15T17:39:49 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-15T18:08:26 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32
2012-05-15T18:13:58 < Laurenceb> on f103, can portc sink more than 3ma?
2012-05-15T18:18:29 -!- ntfreak_ [~ntfreak@unaffiliated/ntfreak] has joined ##stm32
2012-05-15T18:20:10 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has quit [Ping timeout: 252 seconds]
2012-05-15T18:22:36 < Laurenceb> portc runs off 3ma limited switch
2012-05-15T18:22:45 < Laurenceb> guess ill just add a resistor in there
2012-05-15T18:22:53 < Laurenceb> trying to run ~50cm of coax off it
2012-05-15T18:24:30 < karlp> you could always write your own code dongs ;)
2012-05-15T18:27:23 -!- peabody124 [~peabody12@128.249.96.123] has quit [Remote host closed the connection]
2012-05-15T18:27:37 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-15T18:29:29 -!- peabody124 is now known as peabody126
2012-05-15T18:29:32 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-15T18:29:35 -!- peabody126 is now known as peabody124
2012-05-15T18:30:07 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-15T18:32:32 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Read error: Operation timed out]
2012-05-15T18:32:41 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Read error: Operation timed out]
2012-05-15T18:38:34 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-15T18:38:37 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-15T18:41:24 -!- jonsowman [~jonsowman@kryten.hexoc.com] has quit [Read error: Operation timed out]
2012-05-15T18:41:40 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |]
2012-05-15T18:42:03 -!- jonsowman [~jonsowman@kryten.hexoc.com] has joined ##stm32
2012-05-15T19:02:14 -!- phantone is now known as phantoxe
2012-05-15T19:03:31 -!- ntfreak_ is now known as ntfreak
2012-05-15T19:07:33 -!- Netsplit *.net <-> *.split quits: tunebird, ziph
2012-05-15T19:12:56 -!- ziph [~ziph@office.bitplantation.com] has joined ##stm32
2012-05-15T19:12:56 -!- tunebird [~andrew@web130.webfaction.com] has joined ##stm32
2012-05-15T19:26:42 < Tectu> hey guys
2012-05-15T19:26:46 < Tectu> zyp, should receive stlink tomorrow :)
2012-05-15T19:27:33 <+Steffanx> I want my black magic probe from gsmcmullin, but New Zealand Post seems to be a little slow
2012-05-15T19:27:36 <+Steffanx> Even China post is faster
2012-05-15T19:29:30 < jpa-> is everyone in new zealand called mcsomething?
2012-05-15T19:31:24 <+Steffanx> Like all finish guys being called Jari … ?
2012-05-15T19:31:51 <+Steffanx> +b
2012-05-15T19:31:54 <+Steffanx> *n
2012-05-15T19:32:10 < zyp> *yawn*
2012-05-15T19:32:21 < zyp> I think I need to start sleeping more
2012-05-15T19:32:24 <+Steffanx> Good evening sir
2012-05-15T19:32:33 <+Steffanx> No, not really
2012-05-15T19:32:58 < zyp> I've been tired since I woke up today
2012-05-15T19:38:50 <+Steffanx> So… ?
2012-05-15T19:39:20 < Tectu> how do i compile a .s file (assembler startup file from the stdlib) correctly to get the object file for linking?
2012-05-15T19:40:35 < jpa-> just like a .c file, pass it to gcc and let it do its job
2012-05-15T19:40:55 < karlp> .S is normally for generated assembly, not input assembly isn't it?
2012-05-15T19:41:21 < Tectu> jpa-, thanks
2012-05-15T19:41:23 < jpa-> may need -Wa,-mthumb
2012-05-15T19:41:38 < Tectu> jpa-, 'may' ?
2012-05-15T19:41:55 < jpa-> the 'thumb' mode can be specified inside the .s file or via command line
2012-05-15T19:44:17 -!- peabody124 is now known as peabody128
2012-05-15T19:44:28 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-15T19:45:53 -!- peabody128 is now known as peabody124
2012-05-15T19:51:15 < Tectu> jpa-, what the hell is -Wa?
2012-05-15T19:51:23 < Tectu> dose throw error
2012-05-15T19:53:24 < karlp> -Wa is pass options to the assembler
2012-05-15T19:53:37 < karlp> if you're using gcc as the front end for everything
2012-05-15T19:54:07 < karlp> also, one of the selling points of cortex m was that you could write _all_ the startup code in C, not assembler.
2012-05-15T19:54:19 < karlp> the startup stuff is the weakest part of std periph lib imo
2012-05-15T19:55:14 < Tectu> wait
2012-05-15T19:55:16 < Tectu> okay
2012-05-15T19:55:28 < Tectu> i am trying to make the Makefile compiling with the startup file
2012-05-15T19:56:00 < Tectu> current makefile:  http://pastebin.com/jPy3QUfJ
2012-05-15T19:56:08 < Tectu> this should already work, right?
2012-05-15T19:56:17 < Tectu> because of line 8
2012-05-15T19:57:28 < Tectu> but when i try to compile with that Makefile, i get an error for each line from the startup code
2012-05-15T19:57:41 < Tectu> i guess that's about the -Wa stuff?
2012-05-15T20:02:07 < Tectu> karlp?
2012-05-15T20:03:02 < karlp> I don't know, I don't bother with assembler mixed up in the rest.
2012-05-15T20:04:30 < Tectu> karlp, just try to use the stdlib startupfile with the rest of the stdlib
2012-05-15T20:15:50 < Tectu> error message:   startup_stm32f10x_hd.s:69: Error: bad instruction `dcd 0'
2012-05-15T20:17:27 -!- avernos [~avernos@unaffiliated/avernos] has quit [Quit: Ex-Chat]
2012-05-15T20:19:29 -!- ben1066_ is now known as ben1066
2012-05-15T20:49:30 < jpa-> Tectu: is it gcc-style assembler code anyway?
2012-05-15T21:03:14 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: .]
2012-05-15T21:12:14 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 265 seconds]
2012-05-15T21:16:20 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-15T21:25:45 -!- izua [~izua@188.27.189.215] has joined ##stm32
2012-05-15T21:25:46 -!- izua [~izua@188.27.189.215] has quit [Changing host]
2012-05-15T21:25:46 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-15T21:25:46 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-15T21:39:23 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-15T21:40:36 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-15T21:46:18 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32
2012-05-15T22:00:09 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-15T22:00:25  * Laurenceb_ facepalms
2012-05-15T22:00:35 < Laurenceb_> just looking at some of the kit these guys make http://www.4energy.co.uk/
2012-05-15T22:00:51 < Laurenceb_> they use i2c on ~100m long cables
2012-05-15T22:01:15 < Laurenceb_> with high current fets to pull it down
2012-05-15T22:01:36 < jpa-> heh :)
2012-05-15T22:02:13 < jpa-> though 100m is not that long anyway
2012-05-15T22:02:27 < jpa-> (depending on bitrate)
2012-05-15T22:02:27 <+Steffanx> Sure ...
2012-05-15T22:10:05 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit []
2012-05-15T22:23:31 < Laurenceb_> http://reprap.org/wiki/File:Wallace.jpg
2012-05-15T22:23:42 < Laurenceb_> someone needs to tell those guys about triangulation
2012-05-15T22:24:07 <+Steffanx> Give it a try
2012-05-15T22:24:22 < jpa-> you mean about it not looking straight? could be the camera also
2012-05-15T22:24:33 < Laurenceb_> no
2012-05-15T22:24:43 < Laurenceb_> about the fact its going to wobble all over the place
2012-05-15T22:28:30 < karlp> someone needs to stop making urls with : in them.
2012-05-15T22:28:38 < Laurenceb_> its a wiki thing
2012-05-15T22:28:42 < karlp> my url recognition doesn't like them at all.
2012-05-15T22:29:29 < Laurenceb_> the whole "maker" crowd makes me facepalm a lot
2012-05-15T22:29:54 <+Steffanx> Get a proper client karlp
2012-05-15T22:30:08 < karlp> Laurenceb_: what's wrong with that image?
2012-05-15T22:30:34 < karlp> how does that move forwards and backwards?
2012-05-15T22:30:49 < Laurenceb_> stage below the table
2012-05-15T22:31:06 < Laurenceb_> but as the head moves left to right its going to oscillate the frame all over the place
2012-05-15T22:31:58 < karlp> yeah, I tried to help put a reprap darwin together once,
2012-05-15T22:32:08 < karlp> that was painful
2012-05-15T22:38:42 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: z]
2012-05-15T22:51:19 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-15T23:26:11 -!- dekar [~dekar@dslb-088-068-117-163.pools.arcor-ip.net] has joined ##stm32
2012-05-15T23:26:12 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-15T23:30:05 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 272 seconds]
2012-05-15T23:48:31  * Laurenceb_ fails epically
2012-05-15T23:48:58 < Laurenceb_> just realised the hirose to 6xSMA cable i just spent ages making is meant to be SMB
2012-05-15T23:49:29  * Laurenceb_ needs to learn how to read
--- Day changed Wed May 16 2012
2012-05-16T00:00:52 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 245 seconds]
2012-05-16T00:03:23 -!- os-app92 [~ftw@133.170.195.77.rev.sfr.net] has joined ##stm32
2012-05-16T00:43:33 -!- os-app92 [~ftw@133.170.195.77.rev.sfr.net] has quit [Ping timeout: 272 seconds]
2012-05-16T01:07:06 < cjbaird> Yay, new Engineeringguy video! :D .. https://www.youtube.com/watch?v=wsdmt0De8Hw
2012-05-16T01:16:47 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-16T01:24:06 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 272 seconds]
2012-05-16T01:40:12 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
2012-05-16T02:01:02 -!- peabody124 [~peabody12@128.249.96.21] has quit [Quit: peabody124]
2012-05-16T02:06:11 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32
2012-05-16T02:10:43 -!- peabody124 [~peabody12@128.249.96.123] has quit [Ping timeout: 244 seconds]
2012-05-16T02:57:14 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32
2012-05-16T03:18:49 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124]
2012-05-16T03:22:18 < cjbaird> splooge isn't a good flux
2012-05-16T04:01:58 -!- izua_ [~izua@188.27.189.215] has joined ##stm32
2012-05-16T04:01:59 -!- izua_ [~izua@188.27.189.215] has quit [Changing host]
2012-05-16T04:01:59 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32
2012-05-16T04:02:02 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-16T04:04:21 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 248 seconds]
2012-05-16T04:06:28 -!- izua_ [~izua@unaffiliated/izua] has quit [Ping timeout: 256 seconds]
2012-05-16T04:08:20 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-16T04:15:17 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-16T04:46:27 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-16T05:05:44 -!- zlog_ [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32
2012-05-16T05:05:54 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-16T05:06:45 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Ping timeout: 248 seconds]
2012-05-16T05:06:47 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Disconnected by services]
2012-05-16T05:06:53 -!- Tom_L is now known as Tom_itx
2012-05-16T05:08:47 -!- zlog_ [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Remote host closed the connection]
2012-05-16T05:09:01 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32
2012-05-16T05:13:55 -!- peabody124 [~peabody12@128.249.96.21] has quit [Quit: peabody124]
2012-05-16T05:16:03 -!- phantoneD is now known as phantoxeD
2012-05-16T06:05:50 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 265 seconds]
2012-05-16T06:36:17 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Ping timeout: 244 seconds]
2012-05-16T06:53:02 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-16T07:02:46 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-16T07:53:44 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32
2012-05-16T09:09:59 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32
2012-05-16T09:13:18 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 250 seconds]
2012-05-16T09:35:14 < Tectu> jpa-, to your question about 'is it gcc friendly assembler?'   this is the file from the stdlib:  ;******************** (C) COPYRIGHT 2011 STMicroelectronics ********************
2012-05-16T09:35:17 < Tectu> ;* File Name          : startup_stm32f10x_hd.s
2012-05-16T09:35:19 < Tectu> ;* Author             : MCD Application Team
2012-05-16T09:35:21 < Tectu> ;* Version            : V3.5.0
2012-05-16T09:35:23 < Tectu> ;* Date               : 11-March-2011
2012-05-16T09:35:24 < Tectu> ;* Description        : STM32F10x High Density Devices vector table for MDK-ARM
2012-05-16T09:35:26 < Tectu> ;*                      toolchain.
2012-05-16T09:35:28 < Tectu> ;*                      This module performs:
2012-05-16T09:35:32 < Tectu> ;*                      - Set the initial SP
2012-05-16T09:35:34 < Tectu> ;*                      - Set the initial PC == Reset_Handler
2012-05-16T09:35:36 < Tectu> ;*                      - Set the vector table entries with the exceptions ISR address
2012-05-16T09:35:38 < Tectu> ;*                      - Configure the clock system and also configure the external
2012-05-16T09:35:40 < Tectu> ;*                        SRAM mounted on STM3210E-EVAL board to be used as data
2012-05-16T09:35:42 < Tectu> ;*                        memory (optional, to be enabled by user)
2012-05-16T09:35:44 < Tectu> ;*                      - Branches to __main in the C library (which eventually
2012-05-16T09:35:46 < Tectu> ;*                        calls main()).
2012-05-16T09:35:48 < Tectu> ;*                      After Reset the CortexM3 processor is in Thread mode,
2012-05-16T09:35:50 < Tectu> ;*                      priority is Privileged, and the Stack is set to Main.
2012-05-16T09:35:52 < Tectu> ;* <<< Use Configuration Wizard in Context Menu >>>
2012-05-16T09:35:54 < Tectu> ;*******************************************************************************
2012-05-16T09:35:56 < Tectu> ; THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
2012-05-16T09:35:58 < Tectu> ; WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
2012-05-16T09:36:02 < Tectu> ; AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
2012-05-16T09:36:04 < Tectu> ; INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
2012-05-16T09:36:06 < Tectu> ; CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
2012-05-16T09:36:08 < Tectu> ; INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
2012-05-16T09:36:10 < Tectu> ;*******************************************************************************
2012-05-16T09:36:12 < Tectu> ; Amount of memory (in bytes) allocated for Stack
2012-05-16T09:36:14 < Tectu> ; Tailor this value to your application needs
2012-05-16T09:36:16 < Tectu> ; <h> Stack Configuration
2012-05-16T09:36:18 < Tectu> ;   <o> Stack Size (in Bytes) <0x0-0xFFFFFF
2012-05-16T09:36:20 < Tectu> fail.
2012-05-16T09:36:22 < Tectu> jpa-, here:   http://pastebin.com/GRWwC1ya
2012-05-16T09:36:24 < Tectu> thanks dongs, always try to give my best
2012-05-16T09:51:13 < zyp> what do you mean?
2012-05-16T09:51:22 < zyp> the trace looks right to me
2012-05-16T09:51:45 < zyp> reads always nak the last byte
2012-05-16T09:52:13 < zyp> yes
2012-05-16T09:53:14 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-16T09:53:43 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has left ##stm32 ["Konversation terminated!"]
2012-05-16T09:53:52 < zyp> well, the transfer seems to be correct
2012-05-16T09:54:11 < zyp> what device is this?
2012-05-16T09:55:12 < zyp> the nak comes from the master anyway, so that should not have anything to do with the data from the slave
2012-05-16T09:56:14 < zyp> double check the bytes you write
2012-05-16T09:56:47 < zyp> what kind of device is this?
2012-05-16T10:18:35 < Tectu> any reasons why SD2 is undefined, when I choosed the propper device (STM32F1xx) in the Makefile in chibios? documentation dosen't say that i have to do something else, to use any other port beside SD1
2012-05-16T10:21:46 < Tectu> dongs, SerialDriver stuff... SD2  -> USART2
2012-05-16T10:22:06 < Tectu> dongs, http://chibios.sourceforge.net/docs/hal_stm32f1xx_rm/group___s_e_r_i_a_l.html#ga2e7d0fd029b9af207f6fe705ce7ae28e
2012-05-16T10:25:58 < zyp> sounds good
2012-05-16T10:26:41 < zyp> Tectu, check mcuconf.h
2012-05-16T10:27:07 < zyp> there are a lot of defines in those *conf.h-files to enable and disable stuff
2012-05-16T10:40:03 < Tectu> zyp, aah... tought there is only USE SERIAL
2012-05-16T10:40:06 < Tectu> thanks zyp
2012-05-16T11:38:34 < Tectu> OLIMEX_STM32_P103 board conig uses the #defines:    GPIOC_MMCWP  and GPIOC_MMCCP   <--- what are these?
2012-05-16T11:38:46 < Tectu> that are NOT the SPI pins, right?
2012-05-16T11:39:43 < Tectu> grml, guess i'd take a look to the olimex board schemativ
2012-05-16T11:39:47 < Tectu> schematic*
2012-05-16T11:41:24 < Tectu> dongs, ah, it's WRITE PROTECTION and the thing that looks if card is present/plugged-in
2012-05-16T11:56:15 < Tectu> dongs, ever used thath shell thing in chibios?
2012-05-16T11:56:32 < Tectu> over the serial driver
2012-05-16T11:59:20 < karlp> Tectu: you need to read what people say a bit better :)
2012-05-16T12:01:50 < Tectu> karlp, to what are you refering now?
2012-05-16T12:07:17 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-16T12:24:51 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-16T12:37:04 < Laurenceb_> http://regmedia.co.uk/2012/05/16/raspberry_piphone.png
2012-05-16T12:37:17 < Laurenceb_> ^lmao
2012-05-16T12:37:40 < Laurenceb_> no
2012-05-16T12:51:13 < Laurenceb_> even more fail than arduino
2012-05-16T12:56:05 < Laurenceb_> bbl
2012-05-16T13:00:45 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 272 seconds]
2012-05-16T13:01:54  * pelrun_ rolls eyes
2012-05-16T13:13:32 < karlp> well, I'm buying an rpi, but I don't have an arduino...
2012-05-16T13:13:48 < karlp> sif.
2012-05-16T13:26:22 < pelrun_> I've moved personally and professionally away from atmel - arm-cortex all the way from now on
2012-05-16T13:26:39 < pelrun_> even if the supplied libraries are shit
2012-05-16T13:27:09 < zyp> atmel also make cortex-devices
2012-05-16T13:33:58 < zyp> I hear they have some advantages
2012-05-16T13:34:06 < zyp> like built-in high speed phy
2012-05-16T13:34:37 < zyp> everything is shit if you only look at the disadvantages
2012-05-16T13:34:57 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 272 seconds]
2012-05-16T13:35:31 < zyp> true
2012-05-16T13:36:04 < zyp> but fullspeed is pretty slow
2012-05-16T13:36:29 < zyp> really?
2012-05-16T13:37:32 < zyp> I don't see why not, the internal memory buses are way faster than that
2012-05-16T13:38:26 < karlp> you're just unimpressed dongs :)
2012-05-16T13:39:42 < zyp> OTG_HS has it's own DMA master
2012-05-16T13:40:25 < zyp> yes, through ULPI
2012-05-16T13:42:45  * pelrun_ makes mental note to go to stellaris if he needs ethernet
2012-05-16T13:43:12 < pelrun_> pain in the arse having to wire up a second 100-pin device just to get a 10/100 phy
2012-05-16T13:43:53 < pelrun_> and I've already got a devboard for it (evalbot)
2012-05-16T13:45:12 < pelrun_> ti tends to piss me off on the toolchain side though
2012-05-16T13:46:29 < pelrun_> eeeeeeeh
2012-05-16T13:47:39 < pelrun_> I'll stick with gcc - codesourcery or whatever
2012-05-16T13:48:07 < pelrun_> hahaha yeah
2012-05-16T13:55:15 < karlp> evalboot looked like fun
2012-05-16T13:55:21 < karlp> were you the guy who got one for $25?
2012-05-16T13:56:15 < pelrun_> yeah, I lucked out :)
2012-05-16T13:56:36 < pelrun_> :P
2012-05-16T13:56:43 < zyp> I prefer to sit on chairs
2012-05-16T13:57:31 < zyp> yeah
2012-05-16T13:57:49 < pelrun_> well, I just bought one
2012-05-16T13:57:53 < zyp> I had to pay fucking expensive shipping for the two I bought
2012-05-16T13:58:13 < pelrun_> gonna be interesting getting it to stream data from a line camera through to SD at a high rate
2012-05-16T13:58:54 < pelrun_> thankfully RS is still doing free shipping to me - element14 just put a $45 minimum order restriction on theirs :P
2012-05-16T14:07:04 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 252 seconds]
2012-05-16T14:10:10 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: .]
2012-05-16T14:33:38 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-16T14:37:28 < Laurenceb> that scope screen looks familiar :P
2012-05-16T14:37:59 < Laurenceb> now i finally have a decent scope :D
2012-05-16T14:42:07 < cjbaird> I've been fighting the urge to buy an analogue multimeter all day..
2012-05-16T15:00:58 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-16T15:03:23 < karlp> stay strong
2012-05-16T15:14:33 -!- izua [~izua@188.27.189.215] has joined ##stm32
2012-05-16T15:14:33 -!- izua [~izua@188.27.189.215] has quit [Changing host]
2012-05-16T15:14:33 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-16T15:14:37 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-16T15:37:01 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-16T15:39:39 < Laurenceb> nice, got my photodiode noise down to shot limit
2012-05-16T15:40:01 < Laurenceb> i guess that technically means ive got single photon detection
2012-05-16T15:42:36 < Laurenceb> using on of these - http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en544164
2012-05-16T15:50:06 < Tectu> Laurenceb, what are you working on?
2012-05-16T15:50:53 < Laurenceb> phd stuff - its a really simple "spectrometer"
2012-05-16T15:51:03 < Laurenceb> using about 5 or 6 different wavelengths
2012-05-16T15:51:22 < Laurenceb> stm32 pwm -> leds then photodiode -> adc through a low noise front end
2012-05-16T15:51:43 <+izua> what are you getting your phd in?
2012-05-16T15:51:53 < zyp> failing
2012-05-16T15:52:02 <+izua> rofl
2012-05-16T15:52:06 <+izua> Laurenceb: also, this http://www.kickstarter.com/projects/iorodeo-colorimeter/educational-colorimeter-kit?ref=card
2012-05-16T15:53:24 < Laurenceb> yeah im getting some of those taos sensors
2012-05-16T15:53:32 < Laurenceb> want to see what the jitter looks like
2012-05-16T16:05:09 < Laurenceb> my target is to get out 18bit intensity per channel at 100sps using 10ma or so at 3.3v
2012-05-16T16:05:13 < Laurenceb> this is _hard_
2012-05-16T16:08:34 < Laurenceb> im going to end up with about 17bits, so zyp is correct
2012-05-16T16:41:57 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Remote host closed the connection]
2012-05-16T16:51:32 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-16T17:05:14 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 272 seconds]
2012-05-16T17:10:14 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-16T17:10:17 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-16T17:13:54 -!- izua_ [~izua@188.27.189.215] has joined ##stm32
2012-05-16T17:13:55 -!- izua_ [~izua@188.27.189.215] has quit [Changing host]
2012-05-16T17:13:55 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32
2012-05-16T17:13:55 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-16T17:16:49 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 245 seconds]
2012-05-16T17:23:06 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-16T17:30:02 -!- tavish_ [~tavish@120.56.136.200] has joined ##stm32
2012-05-16T17:30:03 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: Reconnecting]
2012-05-16T17:30:15 < Laurenceb> http://www.thorlabs.com/NewGroupPage9.cfm?ObjectGroup_ID=312
2012-05-16T17:30:27 < Laurenceb> FT030-BLUE Support Documentation 	FT030-BLUE - Blue Reinforced Ø3 mm Furcation Tubing - Customer Inspired
2012-05-16T17:30:27 -!- tavish_ [~tavish@120.56.136.200] has quit [Client Quit]
2012-05-16T17:30:40 < Laurenceb> i didnt know ardutards like optic fibre
2012-05-16T17:30:43 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-16T17:31:12 -!- izua_ [~izua@unaffiliated/izua] has quit [Ping timeout: 272 seconds]
2012-05-16T17:32:02 < Laurenceb> customer inspired == some tard paid them to make special blue fibre
2012-05-16T17:32:21 < Laurenceb> optic fibre is the only reasonable price stuff
2012-05-16T17:32:33 < Laurenceb> oh and you get free sweets when you order
2012-05-16T17:32:37 -!- eroomde [~ed@kraken.habhub.org] has left ##stm32 []
2012-05-16T17:34:19 < Laurenceb> http://www.thorlabs.com/thorProduct.cfm?partNumber=OCS1300SS
2012-05-16T17:34:25 < Laurenceb> see, nice cheap stuff
2012-05-16T17:34:36 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Remote host closed the connection]
2012-05-16T17:35:15 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-16T17:42:46 < Laurenceb> http://www.st.com/internet/com/press_release/p3296.jsp
2012-05-16T17:42:56 < Laurenceb> activity on the I2C port can wake the microcontroller from STOP mode on address match.
2012-05-16T17:43:00 < Laurenceb> kind of cool
2012-05-16T17:43:20 < Laurenceb> actually... couldnt it just wake on interrupt
2012-05-16T18:01:15 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-16T18:04:22 -!- izua [~izua@79.115.62.178] has joined ##stm32
2012-05-16T18:04:22 -!- izua [~izua@79.115.62.178] has quit [Changing host]
2012-05-16T18:04:22 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-16T18:04:25 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-16T18:06:05 < zyp> Laurenceb, would be wasteful on a busy bus with a lot of slaves
2012-05-16T18:07:29 < Laurenceb> isnt there an address match interrupt?
2012-05-16T18:07:46 < Laurenceb> i havent read ref manual for slave mode
2012-05-16T18:11:02 < karlp> yech, someone turned texane/stlink into an autotools package
2012-05-16T18:13:09 < karlp> and added gpl3 code into it,
2012-05-16T18:13:16 < karlp> god texane doesn't even _read_ what he merges
2012-05-16T18:13:50 < Laurenceb> gpl3?
2012-05-16T18:13:52 < Laurenceb> www.youtube.com/watch?v=jhOn9vpr2TU
2012-05-16T18:16:41 < karlp> added some "hlper" code so that it compiles on mingw for windows, but all the helper code is gpl3
2012-05-16T18:17:07 < karlp> the original repo waa explicitly NOT a gpl project, and now it's autotools gpl cruft
2012-05-16T18:17:25 < karlp> all so it can build windows binaries and mac binaries
2012-05-16T18:20:41 < jpa-> not that the license of stlink utility matters much
2012-05-16T18:20:49 < jpa-> but yeah, autotools is not much fun
2012-05-16T18:21:09 < jpa-> and besides, autotools is a pain on windows.. better just have 3 makefiles
2012-05-16T18:21:11 < karlp> jpa-: well, it does to me.
2012-05-16T18:43:46 < Laurenceb> ah nice
2012-05-16T18:43:57 < Laurenceb> my noise floor goes up and down with light level
2012-05-16T18:44:21 < Laurenceb> its pretty much detecting single photons
2012-05-16T18:44:40 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-16T18:44:45  * Laurenceb just fitted max4477 opamps
2012-05-16T18:55:32 < Laurenceb> http://imgur.com/0KI9a,iLsQa
2012-05-16T18:55:54 < Laurenceb> photodiode in a draw without/with duck tape over the cracks
2012-05-16T18:57:26 < karlp> what am I looking at? an FFT? or is that samples over time, and you're going to signal condiition that to notice that it rose slightly?
2012-05-16T19:00:03 < Laurenceb> fft
2012-05-16T19:00:19 < Laurenceb> the bump is the bandpass finter on the front end
2012-05-16T19:00:25 < Laurenceb> *filter
2012-05-16T19:00:33 -!- izua [~izua@unaffiliated/izua] has quit [Quit: Pull me under]
2012-05-16T19:00:52 < Laurenceb> noise rises with ambient light - that shows its shot noise
2012-05-16T19:01:27 < Laurenceb> or that the sun is chucking out tons of broadband noise :P
2012-05-16T19:06:24 < Laurenceb> to put it simply the arriving photons hitting the photodiode at random intervals are creating the noise :D
2012-05-16T19:07:24 < Laurenceb> so if i handle the rest of the processing ok, ill only be limited by photon quantization
2012-05-16T19:11:41 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer]
2012-05-16T19:12:06 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-16T19:28:56 < karlp> yeah, that's a 3v3 pin.
2012-05-16T19:29:00 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-16T19:29:03 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-16T19:29:45 <+Steffanx> zlog
2012-05-16T19:29:45 < zlog> Steffanx: Log stored at http://tom-itx.dyndns.org:81/~tom-itx/irc/logs/%23%23stm32/2012-05-16.html
2012-05-16T19:30:12 <+Steffanx> Good job dongs
2012-05-16T19:31:24 <+Steffanx> Which f4 board btw?
2012-05-16T19:31:32 <+Steffanx> discovery?
2012-05-16T19:31:35 < zyp> fun
2012-05-16T19:32:06 <+Steffanx> Never trust the internet dongs ..
2012-05-16T19:32:16 <+Steffanx> People in/from Trollville should know
2012-05-16T19:33:37 < zyp> jpa-, doesn't even need three makefiles, the default one always built correct on os x here
2012-05-16T19:40:49 < zyp> wat? i2s and i2c are pretty different
2012-05-16T19:42:00 < zyp> oh, right
2012-05-16T19:42:49 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-16T20:16:30 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-16T20:16:49 < TitanMKD> hi
2012-05-16T20:22:38 <+Steffanx> Lo
2012-05-16T20:26:14 < zyp> I'm getting tired of this joke
2012-05-16T20:26:33 <+Steffanx> Actually is more than a joke
2012-05-16T20:26:52 <+Steffanx> It's my way to see helLo :)
2012-05-16T20:27:59 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-16T20:33:18 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-16T21:23:31 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-16T21:39:04 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Quit: Quitte]
2012-05-16T21:41:49 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-16T21:53:13 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Remote host closed the connection]
2012-05-16T21:57:18 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-16T22:00:34 < Laurenceb_> wazuuuupppp
2012-05-16T22:02:37 <+Steffanx> Tha zky bro
2012-05-16T23:01:05 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has left ##stm32 []
2012-05-16T23:03:31 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: z]
2012-05-16T23:26:25 -!- peabody128 [~peabody12@128.249.96.123] has joined ##stm32
2012-05-16T23:27:37 -!- peabody128 [~peabody12@128.249.96.123] has quit [Remote host closed the connection]
2012-05-16T23:27:45 -!- peabody124 [~peabody12@128.249.96.21] has quit [Read error: Operation timed out]
2012-05-16T23:27:53 <+Steffanx> me didn't
2012-05-16T23:29:49 -!- peabody128 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-16T23:37:42 -!- os-app92 [~ftw@133.170.195.77.rev.sfr.net] has joined ##stm32
2012-05-16T23:53:56 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32
--- Day changed Thu May 17 2012
2012-05-17T00:04:56 -!- izua [~izua@79.115.62.178] has joined ##stm32
2012-05-17T00:04:57 -!- izua [~izua@79.115.62.178] has quit [Changing host]
2012-05-17T00:04:57 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-17T00:05:00 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-17T00:29:08 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 240 seconds]
2012-05-17T00:34:06 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
2012-05-17T00:51:57 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-17T01:00:58 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: .]
2012-05-17T01:19:51 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 272 seconds]
2012-05-17T01:50:15 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 272 seconds]
2012-05-17T01:54:20 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-17T02:03:53 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-17T02:06:53 -!- os-app92 [~ftw@133.170.195.77.rev.sfr.net] has quit [Quit: My Mac has gone to sleep.]
2012-05-17T02:19:24 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Quit: Leaving]
2012-05-17T02:19:41 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-17T02:40:55 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 272 seconds]
2012-05-17T02:51:40 -!- peabody128 is now known as peabody124
2012-05-17T02:56:09 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-17T02:59:45 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 244 seconds]
2012-05-17T03:02:44 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-17T03:06:09 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 250 seconds]
2012-05-17T03:40:14 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Remote host closed the connection]
2012-05-17T03:57:06 -!- peabody124 [~peabody12@128.249.96.21] has quit [Quit: peabody124]
2012-05-17T04:12:57 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-17T04:16:33 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 272 seconds]
2012-05-17T04:34:56 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-17T04:36:11 -!- pelrun_ [~pelrun@60-241-99-33.static.tpgi.com.au] has joined ##stm32
2012-05-17T04:40:25 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-17T05:28:46 -!- ben1066 [~quassel@unaffiliated/ben1066] has quit [Ping timeout: 272 seconds]
2012-05-17T05:29:30 -!- ben1066 [~quassel@host86-160-28-148.range86-160.btcentralplus.com] has joined ##stm32
2012-05-17T05:29:31 -!- ben1066 [~quassel@host86-160-28-148.range86-160.btcentralplus.com] has quit [Changing host]
2012-05-17T05:29:31 -!- ben1066 [~quassel@unaffiliated/ben1066] has joined ##stm32
2012-05-17T06:02:12 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-17T07:50:54 < zyp> stop fucking up
2012-05-17T08:39:23 -!- pelrun_ [~pelrun@60-241-99-33.static.tpgi.com.au] has quit [Ping timeout: 272 seconds]
2012-05-17T08:47:22 < cjbaird> I have an analogue multimeter now. HIPSTER AS FUCK.
2012-05-17T08:54:46 -!- Thorn [~Thorn@unaffiliated/thorn] has quit []
2012-05-17T09:05:50 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32
2012-05-17T09:09:42 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Read error: Connection reset by peer]
2012-05-17T09:10:22 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32
2012-05-17T09:13:16 < zyp> man, you're so cool
2012-05-17T09:14:20 < cjbaird> I'm gonna get an AVO tat
2012-05-17T09:16:12 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Ping timeout: 252 seconds]
2012-05-17T09:19:24 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 255 seconds]
2012-05-17T09:21:54 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32
2012-05-17T09:22:29 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Read error: Connection reset by peer]
2012-05-17T09:22:43 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32
2012-05-17T09:23:36 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Read error: Connection reset by peer]
2012-05-17T09:23:49 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32
2012-05-17T09:29:45 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Read error: Connection reset by peer]
2012-05-17T09:29:55 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32
2012-05-17T09:30:53 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Read error: Connection reset by peer]
2012-05-17T09:30:54 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32
2012-05-17T09:35:16 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 252 seconds]
2012-05-17T10:43:30 < cjbaird> aids
2012-05-17T11:05:39 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-17T11:15:11 -!- Laurenceb_ is now known as Internet_troll
2012-05-17T11:24:03 -!- Internet_troll [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 272 seconds]
2012-05-17T11:28:31 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-17T11:38:15 < SuicideFunky> hello
2012-05-17T12:43:14 < jpa-> hmm.. my LSM303 accelerometer side is writing totally random data to the I2C bus.. it is not even aligned to the clocks, but instead changes randomly
2012-05-17T14:24:00  * Laurenceb stumbles in
2012-05-17T14:24:43 < Laurenceb> just got sat on my a thai ladyboy
2012-05-17T14:24:48 < Laurenceb> *by
2012-05-17T14:25:13 < Laurenceb> this is why i usually dress like a tramp
2012-05-17T14:25:48 < Laurenceb> so i was on the train, thai ladyboy comes along and tries to sit next to my, then deliberately trips and sits on my lap
2012-05-17T14:26:21 < Laurenceb> i could see the bulge in the wrong place
2012-05-17T14:26:46 < Laurenceb> whenever i dress smartly bad stuff happens
2012-05-17T14:27:03 < Laurenceb> usually its just weird emo girls coming onto me
2012-05-17T14:27:40  * Laurenceb went to 3M
2012-05-17T14:28:20 < Laurenceb> they are interested in my stm32 hardware, but they want it patenting+CE testing :S
2012-05-17T14:28:39 < Laurenceb> im so screwed
2012-05-17T14:28:50 < Laurenceb> 10 bazillion pages of documentation
2012-05-17T14:29:57 < Laurenceb> EN60601.... hell yeah
2012-05-17T14:30:57 < jpa-> Laurenceb: you are so hot that the girls are all over you
2012-05-17T14:38:00 < Laurenceb> i know, just not the normal girls :S
2012-05-17T14:39:21  * Laurenceb makes note not to dress like vin diesel in future
2012-05-17T14:40:19 < Laurenceb> nice, mouser are shipping from germany now
2012-05-17T14:40:23 < Laurenceb> got next day delivery
2012-05-17T14:40:47 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-17T14:40:51 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-17T14:43:26 < Laurenceb> the stm32l discovery slider is epic
2012-05-17T14:53:15 < Laurenceb> silicon slabs are selling bare die cortex m3 micros
2012-05-17T14:58:44 <+dekar> Laurenceb, how do you solder those?
2012-05-17T15:00:21 < jpa-> with a bonding station
2012-05-17T15:02:07 <+dekar> so you attach bonding wires and burry it below epoxy? Sounds cumbersome to me :/
2012-05-17T15:02:44 < jpa-> cumbersome for a hobbyist :)
2012-05-17T15:04:16 <+dekar> it also sounds like you have to produce a bazillion to make it cheaper than using smd ones
2012-05-17T15:40:23 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32
2012-05-17T15:41:07 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Remote host closed the connection]
2012-05-17T15:46:20 < Laurenceb> just got my raspberry pi
2012-05-17T15:46:22 < Laurenceb> dont laugh
2012-05-17T15:47:14 <+Steffanx> Is it laughable?
2012-05-17T15:47:35 < Laurenceb> yes
2012-05-17T15:47:39 <+Steffanx> Why?
2012-05-17T15:47:45 <+Steffanx> I just ordered mine
2012-05-17T15:47:48 <+Steffanx> From RS
2012-05-17T15:48:13 < zyp> Laurenceb, thought you said you didn't want one
2012-05-17T15:48:27 <+Steffanx> That's d o n g s
2012-05-17T15:54:22 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-17T16:06:12 < jpa-> hmh.. as soon as i enable the magnetic side of LSM303, i start to get glitches on the I2C bus when talking to the accelerometer..
2012-05-17T16:06:29 < jpa-> http://kapsi.fi/~jpa/stuff/pix/i2cglitch.png   the short pulse on the right side
2012-05-17T16:06:55 < jpa-> it somehow confuses the I2C peripheral in stm32L151, triggering a bus error
2012-05-17T16:07:19 <+Steffanx> i2c .. the source of too much trouble?
2012-05-17T16:07:33 < Thorn> this one shouldn't, it's not on a rising edge of sck
2012-05-17T16:07:41 <+Steffanx> Just like JTAg there always seems to be something wrong with I2C
2012-05-17T16:08:16 < jpa-> it's on the master-aknowledge pulse.. so not so surprising there is a glitch, and you are right that it shouldn't cause any trouble
2012-05-17T16:08:39 < jpa-> however, when that glitch occurs i get a bus fault, whereas when it does not occur everything works fine
2012-05-17T16:10:27 < zyp> the «glitch» is perfectly normal, I see those on most of my traces without any problems
2012-05-17T16:10:35 <+Steffanx> Which logic analyzer is that jpa- ?
2012-05-17T16:11:00 < jpa-> Steffanx: it's a vcd file loaded up in gtkwave
2012-05-17T16:11:10 <+Steffanx> Recorded with what/
2012-05-17T16:11:12 <+Steffanx> ?
2012-05-17T16:11:18 <+Steffanx> "normal" or "shouldn't cause any trouble" zyp ?
2012-05-17T16:11:25 < zyp> both
2012-05-17T16:11:42 < zyp> oh, boarding my flight
2012-05-17T16:11:52 < Thorn> Steffanx: if it's before an ack pulse then it's a bus direction change. master releases bus, slave acquires it
2012-05-17T16:12:25 < jpa-> Steffanx: recorded with dso quad
2012-05-17T16:13:09 < jpa-> hmm.. maybe i'll try just ignoring bus errors
2012-05-17T16:14:24 < Thorn> a scope would be much more useful here imo
2012-05-17T16:14:57 < jpa-> yeah.. but i'd have to do some trick to trigger on such a rare occurrence
2012-05-17T16:15:25 < jpa-> the waveforms normally are perfectly square
2012-05-17T16:16:05 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-17T16:23:57 < jpa-> hmm yeah, if i ignore bus errors it works just fine
2012-05-17T16:24:50 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-17T16:26:41 < jpa-> except for some corrupted data :)
2012-05-17T16:44:58 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-17T16:50:55 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 255 seconds]
2012-05-17T16:56:59 < Thorn> oh god
2012-05-17T16:57:23 < Thorn> a guy asks "what mcu should I use" on stackexchange
2012-05-17T16:58:01 < Thorn> Olin Lanthrop, a local guru, jokes that 8 bits are too much, 7 bit one is enough
2012-05-17T16:58:05 < Thorn> http://electronics.stackexchange.com/questions/32110/what-are-the-prperties-of-a-7-bit-microcontroller
2012-05-17T16:58:44 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-17T17:01:50 < Laurenceb> http://i.imgur.com/rwqnt.png
2012-05-17T17:01:57 < Laurenceb> and toas sensors are shit
2012-05-17T17:04:05 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 248 seconds]
2012-05-17T17:05:20 < Laurenceb> only 8 bits of resolution per pulse
2012-05-17T17:05:52 -!- tavish [~tavish@120.56.128.28] has joined ##stm32
2012-05-17T17:05:52 -!- tavish [~tavish@120.56.128.28] has quit [Changing host]
2012-05-17T17:05:53 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-17T17:09:47 -!- tavish_ [~tavish@120.56.137.23] has joined ##stm32
2012-05-17T17:10:45 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 265 seconds]
2012-05-17T17:16:49 -!- tavish_ [~tavish@120.56.137.23] has quit [Ping timeout: 245 seconds]
2012-05-17T17:51:36 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-17T18:00:33 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-17T18:12:57 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Ping timeout: 245 seconds]
2012-05-17T18:31:49 -!- tavish [~tavish@120.56.141.174] has joined ##stm32
2012-05-17T18:31:50 -!- tavish [~tavish@120.56.141.174] has quit [Changing host]
2012-05-17T18:31:50 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-17T18:32:19 < jpa-> heh, found out the cause for my i2c trouble
2012-05-17T18:32:33 < jpa-> apparently on STM32L151, you have to manually specify that I2C pins are open-drain
2012-05-17T18:32:53 <+Steffanx> Ha
2012-05-17T18:33:15 < jpa-> otherwise there will be competing drivers on the SDA line, which causes quite funny effects
2012-05-17T18:34:00 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-17T18:34:13 < jpa-> i still don't understand why it matters whether i have the mag portion of lsm303 active..
2012-05-17T18:34:30 < jpa-> apparently it somehow changes the timings or voltage levels enough to make it fail
2012-05-17T18:35:13 <+Steffanx> You made it fail dongs ?
2012-05-17T18:36:16 <+Steffanx> And why is it censored?
2012-05-17T18:36:46 < jpa-> http://koti.kapsi.fi/jpa/stuff/pix/i2c_levels.png   representative picture, SDA (yellow) configured as default, e.g. push-pull, SCL (blue) configured as opendrain
2012-05-17T18:36:51 <+Steffanx> You are dongs
2012-05-17T18:48:35 < Laurenceb> dongs what is that?
2012-05-17T18:49:49 < Laurenceb> yeah
2012-05-17T18:49:54 < Laurenceb> what does it do?
2012-05-17T18:50:28 < Laurenceb> ah
2012-05-17T18:50:33 < Laurenceb> why is it huge?
2012-05-17T18:51:00 < Laurenceb> im guessing dvbt decoding is hardware accelerated?
2012-05-17T18:51:03 < Laurenceb> lawl
2012-05-17T18:51:20 < Laurenceb> impressive
2012-05-17T18:53:02 < Laurenceb> have a free task?
2012-05-17T18:53:07 < Laurenceb> that counts
2012-05-17T18:53:12 <+Steffanx> Available cpu time - used cpu time = free cpu time :P
2012-05-17T18:53:23 < Laurenceb> in a loop
2012-05-17T18:53:28 < Laurenceb> an asm loop
2012-05-17T18:53:41 < Laurenceb> so you know how many clks it got
2012-05-17T18:56:51 < Laurenceb> the task
2012-05-17T18:58:50 < Laurenceb> if you can make the task run as lowest priority, it will get all the free time
2012-05-17T18:59:07 < Laurenceb> thus its clks/clk speed = % free
2012-05-17T19:00:25 < Laurenceb> yes
2012-05-17T19:04:47 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds]
2012-05-17T19:12:15 -!- tavish_ [~tavish@120.59.139.8] has joined ##stm32
2012-05-17T19:13:39 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32
2012-05-17T19:18:36 < zyp> sounds dumb
2012-05-17T19:19:38 < zyp> task scheduler should be able to count used cpu time in a more sensible way
2012-05-17T19:21:38 -!- tavish_ [~tavish@120.59.139.8] has quit [Ping timeout: 240 seconds]
2012-05-17T19:27:21 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer]
2012-05-17T19:27:29 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-17T19:28:39 -!- os-app92 [~ftw@153.170.195.77.rev.sfr.net] has joined ##stm32
2012-05-17T19:39:00 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-17T19:39:19 < ratatata> nu
2012-05-17T20:12:17 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Read error: Connection reset by peer]
2012-05-17T20:12:25 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-17T20:13:01 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 252 seconds]
2012-05-17T20:13:04 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 245 seconds]
2012-05-17T20:20:14 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-17T20:49:37 -!- os-app92 [~ftw@153.170.195.77.rev.sfr.net] has quit [Ping timeout: 272 seconds]
2012-05-17T21:02:02 <+Steffanx> nu
2012-05-17T21:02:40 < zyp> yeah, so I've heard
2012-05-17T21:03:10 <+Steffanx> Nu means something special in norwegian?
2012-05-17T21:03:51 < jpa-> new
2012-05-17T21:04:02 < jpa-> or now?
2012-05-17T21:04:52 <+Steffanx> It's 'now' in dutch
2012-05-17T21:10:12 -!- Netsplit *.net <-> *.split quits: tunebird, ziph
2012-05-17T21:10:46 -!- Netsplit over, joins: ziph, tunebird
2012-05-17T21:20:04 < zyp> «now» is spelled «nå» in norwegian, but I pronounce it as «nu»
2012-05-17T21:21:10 < zyp> due to my northern dialect
2012-05-17T21:23:14 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-17T21:24:09 < zyp> anyway, boarding another flight
2012-05-17T21:24:53 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit []
2012-05-17T21:26:01 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-17T21:26:30 -!- TitanMKD is now known as TitanMKD_AW
2012-05-17T21:30:38 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 240 seconds]
2012-05-17T21:33:08 -!- tavish [~tavish@120.56.134.69] has joined ##stm32
2012-05-17T21:33:09 -!- tavish [~tavish@120.56.134.69] has quit [Changing host]
2012-05-17T21:33:09 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-17T21:39:29 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 265 seconds]
2012-05-17T21:44:41 -!- tavish [~tavish@120.56.132.241] has joined ##stm32
2012-05-17T21:44:41 -!- tavish [~tavish@120.56.132.241] has quit [Changing host]
2012-05-17T21:44:42 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-17T21:51:04 -!- Netsplit *.net <-> *.split quits: ziph, tunebird
2012-05-17T21:51:48 -!- Netsplit over, joins: ziph, tunebird
2012-05-17T21:56:08 -!- Internet_troll [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-17T22:02:24 < Internet_troll> what the fuuuuu
2012-05-17T22:02:41 -!- Internet_troll is now known as Laurenceb_
2012-05-17T22:03:03 < Laurenceb_> why has my i2c broken again
2012-05-17T22:03:12 <+Steffanx> Magic
2012-05-17T22:04:33 < Laurenceb_> i tried to run it with tmp102 temp sensor
2012-05-17T22:04:37 < Laurenceb_> and it hardfaults
2012-05-17T22:05:10 < Laurenceb_> https://github.com/Laurenceb/STM32-Logger/blob/master/i2c_int.c#L142
2012-05-17T22:05:11 < Laurenceb_> ^there
2012-05-17T22:06:12 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-17T22:06:49 < Laurenceb_> https://github.com/Laurenceb/STM32-Logger/blob/master/lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_i2c.c#L558
2012-05-17T22:06:54 < Laurenceb_> there is fact it seems
2012-05-17T22:08:17 < Laurenceb_> if i do start, tmp102 write address, sub address, rep start, tmp102 read, read 2 bytes, rep start, tmp102 write address, tmp102 sub address, write two bytes, stop
2012-05-17T22:08:41 < Laurenceb_> it hardfaults when i try to access the i2c hardware
2012-05-17T22:09:04 < Laurenceb_> seems to be caused by two transactions to the same device with a rep start in the middle
2012-05-17T22:09:27 < Laurenceb_> same thing works fine with two different devices
2012-05-17T22:21:53 -!- TitanMKD_AW [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
2012-05-17T22:31:12 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32
2012-05-17T22:39:17 < Laurenceb_> anyone got any ideas?
2012-05-17T22:40:51 <+Steffanx> Why the memory barriers?
2012-05-17T22:45:49 -!- os-app92 [~ftw@153.170.195.77.rev.sfr.net] has joined ##stm32
2012-05-17T22:52:23 < Laurenceb_> to make sure its done in the correct order
2012-05-17T22:52:40 < Laurenceb_> im pretty sure the code is ok, just wondering if anyone had tried anything like this
2012-05-17T22:52:51 < Laurenceb_> accessing same device twice with rep start
2012-05-17T22:53:27 <+Steffanx> 0x00000001<<job LOL
2012-05-17T23:22:17 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
--- Day changed Fri May 18 2012
2012-05-18T00:00:41 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32
2012-05-18T00:11:25 -!- peabody124 [~peabody12@128.249.96.123] has quit [Remote host closed the connection]
2012-05-18T00:11:41 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-18T00:11:42 -!- izua [~izua@188.26.164.175] has joined ##stm32
2012-05-18T00:11:43 -!- izua [~izua@188.26.164.175] has quit [Changing host]
2012-05-18T00:11:43 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-18T00:11:46 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-18T00:17:38 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-18T00:32:01 < Laurenceb_> lol @ auto tv subtitles
2012-05-18T00:32:26 < Laurenceb_> "a local woman has offered £100 of heroin money to thugs who shoot ducks"
2012-05-18T00:48:29 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 245 seconds]
2012-05-18T00:49:25 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32
2012-05-18T01:09:46 -!- jonsowman [~jonsowman@kryten.hexoc.com] has left ##stm32 []
2012-05-18T01:23:57 -!- izua_ [~izua@5-13-146-70.residential.rdsnet.ro] has joined ##stm32
2012-05-18T01:23:57 -!- izua_ [~izua@5-13-146-70.residential.rdsnet.ro] has quit [Changing host]
2012-05-18T01:23:57 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32
2012-05-18T01:23:59 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-18T01:28:17 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 272 seconds]
2012-05-18T01:35:19 -!- os-app92 [~ftw@153.170.195.77.rev.sfr.net] has quit [Quit: My Mac has gone to sleep.]
2012-05-18T02:00:35 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 272 seconds]
2012-05-18T02:08:41 -!- dekar [~dekar@dslb-088-068-117-163.pools.arcor-ip.net] has quit [Ping timeout: 252 seconds]
2012-05-18T02:15:13 -!- dekar [~dekar@dslb-088-068-117-163.pools.arcor-ip.net] has joined ##stm32
2012-05-18T02:15:17 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-18T02:17:01 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds]
2012-05-18T04:11:29 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Read error: Connection reset by peer]
2012-05-18T04:34:56 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has left ##stm32 []
2012-05-18T04:52:57 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Ping timeout: 245 seconds]
2012-05-18T05:44:39 -!- peabody124 [~peabody12@128.249.96.21] has quit [Quit: peabody124]
2012-05-18T06:03:38 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-18T06:12:07 -!- dekar [~dekar@dslb-088-068-117-163.pools.arcor-ip.net] has quit [Ping timeout: 245 seconds]
2012-05-18T06:37:03 -!- izua_ [~izua@unaffiliated/izua] has quit [Ping timeout: 256 seconds]
2012-05-18T09:21:24 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32
2012-05-18T09:53:20 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-18T10:10:26 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-18T10:15:36 < cjbaird> A /snake/ has been in the kitchen-- I just found a ~3cm piece of shed belly scales in the knife drawer.
2012-05-18T10:15:37 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-18T10:26:13 -!- huosen [~huosen@114.249.152.65] has joined ##stm32
2012-05-18T10:27:05 < cjbaird> The idea of there still being /wildlife/ in this overcrowded shitzone of Sydney is incredible... I'd have thought all the snakes (and everything else) was eaten-up by the Second-Fleeters over 200 years ago..
2012-05-18T10:32:50 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-18T10:33:43 < Laurenceb_> hi
2012-05-18T10:33:57 < Laurenceb_> blog eh? my i2c is failing
2012-05-18T10:34:02 < Laurenceb_> again :(
2012-05-18T10:34:23 < Laurenceb_> read then write of the same device with repeated start in the middle fails
2012-05-18T10:34:46 < Laurenceb_> its odd and the stm32 hardfaults as soon as i try register access
2012-05-18T10:35:51 < Laurenceb_> *as
2012-05-18T10:36:26 < Laurenceb_> and write then read of the same device runs ok
2012-05-18T10:36:36 < Laurenceb_> i wonder if the hardware gets into some weird state
2012-05-18T10:37:00 < Laurenceb_> will try it with a stop forced in the middle laters
2012-05-18T10:38:33 < Laurenceb_> ever tried read then write of same device?
2012-05-18T10:42:02 < Laurenceb_> cool
2012-05-18T10:42:28 < Laurenceb_> heh
2012-05-18T10:42:54 < Laurenceb_> lol you have all the footprints
2012-05-18T10:47:35 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-18T10:48:46 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-18T10:48:48 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-18T10:49:07 <+Steffanx> nu
2012-05-18T10:50:22 < cjbaird> I wonder what kind of G range the scooter would see. Thinking I might get that Freescale MMA eval board and find out..
2012-05-18T10:52:46 < Laurenceb_> http://failblog.files.wordpress.com/2010/02/epic-fail-processor-name-fail.jpg
2012-05-18T10:52:58 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds]
2012-05-18T10:55:20 < Laurenceb_> bbl
2012-05-18T10:55:56 < cjbaird> What on earth happened to the top-left of the chip..
2012-05-18T11:00:11 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 272 seconds]
2012-05-18T11:26:18 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has joined ##stm32
2012-05-18T11:26:19 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has quit [Changing host]
2012-05-18T11:26:19 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32
2012-05-18T11:32:16 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection]
2012-05-18T12:17:23 < Laurenceb> back
2012-05-18T12:44:21 < Tectu> zyp, jpa-, stlink arrived a few minutes ago ;-)
2012-05-18T12:58:33 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-18T13:04:07  * Laurenceb rage
2012-05-18T13:04:21 < Laurenceb> wtf where is the memory map in ref manual
2012-05-18T13:04:58 < Laurenceb> where does i2c start on f103?
2012-05-18T13:06:17 < Laurenceb> any idea on which page?
2012-05-18T13:08:05 < jpa-> ah, the memory maps :)
2012-05-18T13:08:46 < jpa-> section 3.3 Memory map has most of it
2012-05-18T13:11:25 < Laurenceb> ah got it thanks
2012-05-18T13:12:14 < Laurenceb> for some reason the i2c is staying in rx mode if it transmits a write address to the same device after a rep start
2012-05-18T13:17:07 < karlp> i2c really sounds like a nightmare.
2012-05-18T13:18:14 < Laurenceb> im suspecting another silicon issue here
2012-05-18T13:18:34 < Laurenceb> as the hardware selects rx or tx mode based on the transmitted address
2012-05-18T13:19:09 < Laurenceb> and read then write to the same device is a little odd
2012-05-18T13:26:26 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-18T13:36:57 < Laurenceb> lol wtf
2012-05-18T13:37:14 < Laurenceb> RXNE is 1
2012-05-18T13:38:05 < Laurenceb> so it sends start, write address, subaddr, rep start, read addr, reads 2 bytes, rep start, write address
2012-05-18T13:38:27 < Laurenceb> then when i try to write some data the hardware has actually gone into read mode
2012-05-18T13:38:54 < Laurenceb> only happens if this transaction is all to the same device address
2012-05-18T13:40:01 < Laurenceb> really
2012-05-18T13:40:08 < Laurenceb> with just a repeated start?
2012-05-18T13:40:26 < Laurenceb> hmm
2012-05-18T13:40:44 < Laurenceb> are you sure - in what i described its all to the same device
2012-05-18T13:41:51 < Laurenceb> the last write address being to the same address as the last read is what screws it
2012-05-18T13:42:10 < Laurenceb> im haxoring a sensor
2012-05-18T13:42:14 < Laurenceb> sure
2012-05-18T13:42:21  * Laurenceb gets out scope
2012-05-18T13:42:32 < Laurenceb> see what it actually looks like
2012-05-18T13:43:22 < Laurenceb> arg no probable pins
2012-05-18T14:01:34 < Laurenceb> hmm maybe im running the bus too fast
2012-05-18T14:01:42 < Laurenceb> but it shouldnt break like this
2012-05-18T14:01:56 < jpa-> do you have the pins as open-drain outputs :)
2012-05-18T14:03:30 < Laurenceb> of course
2012-05-18T14:09:56 < Laurenceb> hmm ok maybe its my code
2012-05-18T14:10:09 < jpa-> it may be also between your chair and the keyboard
2012-05-18T14:10:11 < Laurenceb> it reads two bytes of data
2012-05-18T14:10:19 < Laurenceb> last byte is 0xff
2012-05-18T14:10:27 < Laurenceb> i see that over jtag
2012-05-18T14:10:42 < Laurenceb> then bus just goes low
2012-05-18T14:11:13 < Laurenceb> i hate i2c
2012-05-18T14:17:58 < Laurenceb> wtf
2012-05-18T14:18:16 < Laurenceb> so it sends stop, then btf is still high
2012-05-18T14:25:37 < Laurenceb> oh i think i know whats up
2012-05-18T14:25:58 < Laurenceb> im using low priority interrupts, so its getting delayed too long
2012-05-18T14:26:22 < Laurenceb> method2 doesnt actual;ly work if you leave it ages to service the interrupt
2012-05-18T14:32:26 -!- huosen [~huosen@114.249.152.65] has quit [Quit: Leaving]
2012-05-18T14:49:44 < Laurenceb> fyuuuuuu
2012-05-18T14:49:47 < Laurenceb> 	uint8_t SReg_1=I2C1->SR1;	//read the status register here
2012-05-18T14:49:57 < Laurenceb>  p/x SReg_1
2012-05-18T14:49:57 < Laurenceb> $6 = 0x40
2012-05-18T14:50:08 < Laurenceb> p/x I2C1->SR1
2012-05-18T14:50:08 < Laurenceb> $12 = 0x44
2012-05-18T14:50:54 < Laurenceb> oh wait - i2c isnt halted in jtag
2012-05-18T14:54:06 -!- tavish [~tavish@120.56.239.15] has joined ##stm32
2012-05-18T14:54:07 -!- tavish [~tavish@120.56.239.15] has quit [Changing host]
2012-05-18T14:54:07 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-18T14:56:59 < Laurenceb> if you set a debugmcu bit it is
2012-05-18T14:57:12 < Tectu> guys?
2012-05-18T14:57:12 < Tectu>  
2012-05-18T14:57:13 < Tectu> (gdb) step
2012-05-18T14:57:14 < Tectu> dmaStreamAllocate (dmastp=<optimized out>, priority=<optimized out>,
2012-05-18T14:57:15 < Laurenceb> looks like im getting BTF after the repeated start
2012-05-18T14:57:16 < Tectu>     func=<optimized out>, param=<optimized out>)
2012-05-18T14:57:18 < Tectu>     at /home/tectu/projects/resources/chibios/os/hal/platforms/STM32F1xx/stm32_dma.c:455
2012-05-18T14:57:20 < Tectu> 455	  return FALSE;
2012-05-18T14:57:22 < Tectu>  
2012-05-18T14:57:24 < Laurenceb> turn off optimisation
2012-05-18T14:57:26 < Tectu> when i have problems mounting a SD card, could this be a problem?
2012-05-18T14:57:52 < Laurenceb> its still there
2012-05-18T14:58:03 < Laurenceb> just gdb doesnt like the optimisation
2012-05-18T14:58:12 < karlp> don't turn off optimisation, develope with how it will be used
2012-05-18T14:58:48 < Tectu> karlp, it's not my code, thats the point. its the FATFS demo from chibios for the olimex P103 board - which works - which i try to run on my own board (same controller, but different boad). which does not mount the SD card
2012-05-18T15:00:06 < jpa-> and why do you suspect that line is the problem?
2012-05-18T15:00:39 < Tectu> jpa-, i don't i just try to step through the program and see what happens (because i have no idea where the problem is, and no experience in debugging)
2012-05-18T15:00:47 < Tectu> i just set a breakpoint where it keeps hanging
2012-05-18T15:00:54 < Tectu> and now go stepwise through it
2012-05-18T15:01:26 < jpa-> ok.. then it's not worth asking us on every line :)
2012-05-18T15:01:48 < Tectu> jpa-, wtf... i didn't do that? i just asked if that might be a  problem...
2012-05-18T15:01:52 < Tectu> :(
2012-05-18T15:02:22 < Tectu> or did i paste more than one line?
2012-05-18T15:05:41 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 248 seconds]
2012-05-18T15:06:29  * Laurenceb is totally confused
2012-05-18T15:06:40 < Laurenceb> can anyone help me with i2c?
2012-05-18T15:06:40 < Tectu> Laurenceb, about what'
2012-05-18T15:06:54 < Tectu> Laurenceb, with general i2c maybe, not with STM32 specific :D
2012-05-18T15:07:36 < Laurenceb> https://github.com/Laurenceb/STM32-Logger/blob/master/i2c_int.c#L107
2012-05-18T15:07:40 < Laurenceb> i get there
2012-05-18T15:07:46 < Laurenceb> i dont see how its possible
2012-05-18T15:08:07 < Laurenceb> everything seems to run ok
2012-05-18T15:08:18 < Laurenceb> then it goes wrong after a repeated start
2012-05-18T15:08:24 < Laurenceb> so i have:
2012-05-18T15:08:37 < Laurenceb> start, device address, subaddress, repeated start
2012-05-18T15:08:49 < Laurenceb> then i get to line 107
2012-05-18T15:09:39 -!- izua [~izua@5-13-146-70.residential.rdsnet.ro] has joined ##stm32
2012-05-18T15:09:40 -!- izua [~izua@5-13-146-70.residential.rdsnet.ro] has quit [Changing host]
2012-05-18T15:09:40 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-18T15:09:43 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-18T15:09:59 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer]
2012-05-18T15:10:04 < Laurenceb> well actually its not that simple
2012-05-18T15:10:10 < Laurenceb> https://github.com/Laurenceb/STM32-Logger/blob/master/i2c_int.c#L29 gets called
2012-05-18T15:10:18 < Laurenceb> it gets the start sent interrupt
2012-05-18T15:10:29 < Laurenceb> and tries to send the address
2012-05-18T15:10:41 < Laurenceb> i see the address on the bus, but the next interrupt is RXNE
2012-05-18T15:34:49 < Laurenceb> lolz
2012-05-18T15:34:55 < Laurenceb> it works at 50Khz
2012-05-18T15:34:59 < Laurenceb> crazy
2012-05-18T15:51:54  * Laurenceb is checking out some cable porn
2012-05-18T15:52:22 < Laurenceb> mmmm mogami 3 core shielded 33AWG...
2012-05-18T15:55:57 < Laurenceb> this shit is crazy - 1.6mm outside diameter
2012-05-18T16:09:10 < Laurenceb> thats angle above/below horizon isnt it?
2012-05-18T16:09:22 < Laurenceb> yes lol
2012-05-18T16:09:33 < Laurenceb> oh
2012-05-18T16:09:41 < Laurenceb> hmm
2012-05-18T16:09:46 < Laurenceb> it might be possible
2012-05-18T16:09:56 < Laurenceb> but you shouldnt see it unless you are at the poles
2012-05-18T16:11:08 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 240 seconds]
2012-05-18T16:11:34 <+Steffanx> Sometimes i wonder if dongs really is ~13 years old
2012-05-18T16:11:58 <+Steffanx> Can't help it
2012-05-18T16:12:37 <+Steffanx> Ahr
2012-05-18T16:12:49 <+Steffanx> Explains a lot
2012-05-18T16:17:47 < karlp> ahh, the days when I lived somewhere where magnetic deviation was a known value, and only precessed by a minute or two a year
2012-05-18T16:18:32 < jpa-> and the times when the world wasn't full of disturbing magnetic fields
2012-05-18T16:19:58 < karlp> still, I don't do much actual compass based triangulation these days.
2012-05-18T16:20:07 < karlp> it's kinda like assembly programming.
2012-05-18T16:23:12 <+Steffanx> Have fun dongs
2012-05-18T16:23:20 -!- tavish [~tavish@120.59.14.91] has joined ##stm32
2012-05-18T16:23:26 -!- tavish [~tavish@120.59.14.91] has quit [Changing host]
2012-05-18T16:23:26 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-18T16:23:29 <+Steffanx> I mean.. bloggery
2012-05-18T16:26:06 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-18T16:26:51 <+Steffanx> Be happy you don't have to use Conrad .. that search engine is REALLY useless
2012-05-18T16:27:17 <+Steffanx> No, Conrad.. for sure
2012-05-18T16:28:40 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds]
2012-05-18T16:29:04 < karlp> shoulda bought a part with phy onboard :)
2012-05-18T16:29:42 < karlp> if you want those connectors just call samtec or someone directly, they ship to normal people, and it's way cheaper unless you only want one or two
2012-05-18T16:30:07 < karlp> then you pay thge proto proce and be happy with it :)
2012-05-18T16:33:03 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has left ##stm32 ["Leaving"]
2012-05-18T16:33:11 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-18T16:33:29 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-18T16:45:36 < karlp> that's.... awesome
2012-05-18T16:46:02 < BrainDamage> looks annoying to align
2012-05-18T16:46:22 < karlp> we don't need no stinkin trays, we're all just chilling in the pink lounge
2012-05-18T16:46:52 -!- Netsplit *.net <-> *.split quits: tunebird, ziph
2012-05-18T16:47:49 -!- Netsplit over, joins: ziph, tunebird
2012-05-18T16:48:42 <+Steffanx> but .. what is it dongs ?
2012-05-18T16:49:30 < Laurenceb> omfg
2012-05-18T16:49:33  * Laurenceb drool
2012-05-18T16:49:33 <+Steffanx> Something with i2c ..
2012-05-18T16:49:39 < Laurenceb> hehe
2012-05-18T16:49:54 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-18T16:50:20 < zyp> I believe it has SPI aswell
2012-05-18T16:50:25 <+Steffanx> I've no idea which chip Laurenceb's favourite chip is
2012-05-18T16:58:41 < zyp> people that think that higher cost = better
2012-05-18T17:16:07 < Tectu> when i know that my code keeps blocking in a specific part of my soucefile, how can i set gdb settings that it puts the line where it dosen't continue?
2012-05-18T17:16:12 < Tectu> maybe bad formulation...
2012-05-18T17:16:22 < Tectu> like  -> set breakpoint, then always type step
2012-05-18T17:16:25 < Tectu> but that automaticly
2012-05-18T17:16:30 < Tectu> like continue, but with line output
2012-05-18T17:23:18 < Laurenceb> nice
2012-05-18T17:23:28 < Laurenceb> it works, but theres a race condition somewhere
2012-05-18T17:24:14 < Laurenceb> just i cant find it :(
2012-05-18T17:25:08 < Laurenceb> about 1% of the time when https://github.com/Laurenceb/STM32-Logger/blob/master/i2c_int.c#L196
2012-05-18T17:25:10 < Laurenceb> is called
2012-05-18T17:25:31 < Laurenceb> it results in a start being sent but Jobs==0
2012-05-18T17:29:00 < Laurenceb> how do you use watchpoints in gdb?
2012-05-18T17:33:58 < karlp> Laurenceb: "display var"
2012-05-18T17:34:08 < karlp> shows the value every time you get back to the prompt
2012-05-18T17:34:31 < karlp> or, use netbeans/eclipse/something with the debugger integrated, and just choose "add watch point"
2012-05-18T17:37:19 < Laurenceb> hmm
2012-05-18T17:37:29 < Laurenceb> im going to have to do something if im ever to debug this
2012-05-18T17:37:36 < Laurenceb> utter unmitigated failure atm
2012-05-18T17:38:03 < zyp> a debugger is no replacement for using your head
2012-05-18T17:38:43 < Laurenceb> oh nicew
2012-05-18T17:38:52 < Laurenceb> they dont let you stop ic2 in halt mode
2012-05-18T17:38:57 < Laurenceb> im screwed in that case
2012-05-18T17:39:53 < Laurenceb> i hate these sort of issues - no obvious way to debug it
2012-05-18T17:40:30 < zyp> what's wrong now? I've been busy today so I haven't been following the conversation
2012-05-18T17:40:43 < Laurenceb> i dont know
2012-05-18T17:40:56 < Laurenceb> if i knoew what was wrong id fix it
2012-05-18T17:40:57 < zyp> well, «what doesn't work?»
2012-05-18T17:41:04 < Laurenceb> i2c hardware is going into weird states
2012-05-18T17:41:13 < Laurenceb> stop bit remains high and never clears
2012-05-18T17:41:28 < zyp> are you still using your weird i2c implementation?
2012-05-18T17:41:33 < Laurenceb> it occurs after the start condition is sent without and transaction number
2012-05-18T17:41:34 < Laurenceb> yes
2012-05-18T17:41:52 < Laurenceb> *any
2012-05-18T17:42:17 < Laurenceb> so, something causes a misplaced start
2012-05-18T17:42:27 < Laurenceb> and it all goes wrong after that, as might be expected
2012-05-18T17:43:13 < Laurenceb> thing is theres only a few places where a start can be sent, and i cant see where they would go wrong
2012-05-18T17:44:25 < Laurenceb> si4432
2012-05-18T17:45:22 < Laurenceb> its awesome
2012-05-18T17:45:39 < Laurenceb> if there a way to use watchpoints to check for a variable over a certain limit?
2012-05-18T17:48:41 < jpa-> conditional watchpoint?
2012-05-18T17:49:06 < jpa-> so debugger automatically continues if the condition is not true
2012-05-18T17:52:01 < Laurenceb> oh doh
2012-05-18T17:52:10 < Laurenceb> yeah of course - just stick it in the code
2012-05-18T17:53:17 -!- tavish [~tavish@120.56.140.150] has joined ##stm32
2012-05-18T17:53:26 -!- tavish [~tavish@120.56.140.150] has quit [Changing host]
2012-05-18T17:53:27 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-18T17:54:25 < Laurenceb> hmm ETM would help here
2012-05-18T17:54:52 < Laurenceb> timestamped debug printf
2012-05-18T17:58:29 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 248 seconds]
2012-05-18T17:58:51 < zyp> Laurenceb, so how is it my i2c implementation is working reliably, while your is not?
2012-05-18T17:59:20 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-18T17:59:22 < Laurenceb> i dont know :P
2012-05-18T18:00:34 < zyp> and why do you insist on writing your own when you can't get it to work?
2012-05-18T18:00:36 < zyp> :p
2012-05-18T18:16:02 -!- Netsplit *.net <-> *.split quits: Laurenceb, metaxa, TeknoJuce
2012-05-18T18:16:30 -!- Netsplit over, joins: metaxa, Laurenceb, TeknoJuce
2012-05-18T18:17:55 < zyp> dongs, I hear my i2c code is working for you?
2012-05-18T18:18:43 < zyp> sounds good
2012-05-18T18:19:16 < zyp> tell me if you have any issues, I would like to fix them for my shit as well
2012-05-18T18:19:32 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-18T18:19:34 < zyp> ah, I've fixed that
2012-05-18T18:19:39 < zyp> but it's not committed
2012-05-18T18:21:09 < zyp> you need to set SR1 = 0 in the error handler, because the error flags need to be cleared manually, they are not cleared automatically like the other flags
2012-05-18T18:21:50 < zyp> http://paste.jvnv.net/view/UMOq2 <- like this
2012-05-18T18:22:14 < zyp> yep, it contains the flags, including the error flags
2012-05-18T18:22:30 < zyp> but the error flags are of the type «r_w0», i.e. write to 0 to clear
2012-05-18T18:22:48 < zyp> while the other flags are cleared automatically after read
2012-05-18T18:23:01 -!- tavish_ [~tavish@59.177.7.11] has joined ##stm32
2012-05-18T18:23:01 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 248 seconds]
2012-05-18T18:23:26 < zyp> you mean in the normal handler?
2012-05-18T18:23:32 < zyp> because I only want to read it once
2012-05-18T18:23:54 <+Steffanx> What's the point of line 2 and 3, things like that don't get optimized out?
2012-05-18T18:24:19 < zyp> exactly
2012-05-18T18:24:46 <+Steffanx> Yeah, i know THAT, it forgot about the volatile thing :)
2012-05-18T18:25:03 <+Steffanx> *I
2012-05-18T18:25:15 < zyp> they are read, to clear the «read to clear»-bits
2012-05-18T18:25:25 < zyp> and then SR1 is written to 0 to clear the error bits
2012-05-18T18:25:56 < zyp> http://bin.jvnv.net/f/pUrXj.png <- here is a trace of the code now correctly recovering from a NAK
2012-05-18T18:26:18 < zyp> I haven't tested other kinds of bus errors, but I expect they are doing the same
2012-05-18T18:26:34 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: thanks.]
2012-05-18T18:28:02 < zyp> and I'm still missing the code to report an error to the function that tried to perform an i2c transaction, so currently they are treated as success and return garbage data
2012-05-18T18:28:22 -!- tavish_ [~tavish@59.177.7.11] has quit [Ping timeout: 245 seconds]
2012-05-18T18:29:11 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-18T18:29:26 < zyp> but that should be easy enough to add
2012-05-18T18:30:41 <+Steffanx> The guy who said it should run at 5V is still alive?
2012-05-18T18:30:59 <+Steffanx> Good to hear
2012-05-18T18:39:24 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds]
2012-05-18T18:40:42 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-18T18:44:18 < Laurenceb> ok im just as confused as ever
2012-05-18T18:44:32 < Laurenceb> print/x I2C1->CR2 $4 = 0x24
2012-05-18T18:44:51 < Laurenceb> ok, so the control register has event but not error interrupts enabled
2012-05-18T18:45:15 < Laurenceb> yet nowhere in my code do i disable or enable them separately
2012-05-18T18:46:27 < Laurenceb> if(!((I2C1->CR2)&(I2C_IT_EVT))) {//if we are restarting the driver
2012-05-18T18:46:31 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-18T18:46:35 < Laurenceb> ^theres nothing wrong there right?
2012-05-18T18:48:14 < Laurenceb> sod this, time for counterhacking
2012-05-18T18:55:25 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds]
2012-05-18T18:58:06 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-18T18:58:22 -!- Steffanx is now known as Zteffanx
2012-05-18T19:02:23 <+Zteffanx> That naze32 is something you designed i guess dongs ?
2012-05-18T19:03:44 <+Zteffanx> It's a result from someone in another channel mistyping someone else nick
2012-05-18T19:04:05 <+Zteffanx> mistyping as in .. highlight me instead of the right person
2012-05-18T19:04:31 -!- Zteffanx is now known as Steffanx
2012-05-18T19:05:09 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-18T19:11:39 < zyp> 17:44:51 < Laurenceb> ok, so the control register has event but not error interrupts enabled
2012-05-18T19:11:58 < zyp> you mean error flags are getting set even though error interrupts are disabled?
2012-05-18T19:12:05 < Laurenceb> no
2012-05-18T19:12:11 < zyp> then what?
2012-05-18T19:12:13 < Laurenceb> i mean the control register
2012-05-18T19:12:19 < zyp> which control register?
2012-05-18T19:12:19 < Laurenceb> the interrupt enable bits
2012-05-18T19:12:27 < Laurenceb> I2C1->CR2
2012-05-18T19:12:30 < zyp> they are set?
2012-05-18T19:12:38 < Laurenceb> they are set in a way my code never sets them
2012-05-18T19:12:51 < Laurenceb> event enabled, error disabled
2012-05-18T19:13:00 < Laurenceb> theres nowhere in my code that does that
2012-05-18T19:14:25 < Laurenceb> hmm i seem to have made it work
2012-05-18T19:14:32 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 244 seconds]
2012-05-18T19:14:36 < Laurenceb> fiddled around the interrupt priorities
2012-05-18T19:14:48 < Laurenceb> so i2c wasnt waiting for multiple byte periods
2012-05-18T19:20:58 < Laurenceb> thanks dongs
2012-05-18T19:21:08 < Laurenceb> no matter how hard i fail ill never be that bad
2012-05-18T19:21:15 < zyp> :D
2012-05-18T19:21:56 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-18T19:23:29 <+Steffanx> I wonder how long it takes to create something messy like that
2012-05-18T19:25:48 <+Steffanx> :D
2012-05-18T19:25:54 < zyp> :p
2012-05-18T19:31:35 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 244 seconds]
2012-05-18T19:31:38 -!- dekar [~dekar@dslb-088-068-117-163.pools.arcor-ip.net] has joined ##stm32
2012-05-18T19:31:41 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-18T19:32:44 < Laurenceb> hell yeah i own
2012-05-18T19:33:15 < Laurenceb> http://i.imgur.com/yayVX.png
2012-05-18T19:33:26 < Laurenceb> my oversampled corrupted temp sensor hack works
2012-05-18T19:33:47 < Laurenceb> and so does i2c to talk too it :P
2012-05-18T19:34:23 < Laurenceb> erm yeah lables are messed up now lol
2012-05-18T19:39:18 < Laurenceb> temperature is on right hand side in C, time on bottom
2012-05-18T19:41:47  * Laurenceb -> home
2012-05-18T19:41:53 < Laurenceb> thanx for help/trolling
2012-05-18T19:42:10 < Laurenceb> lol
2012-05-18T19:43:19 <+dekar> also cheap
2012-05-18T19:44:23 <+dekar> well imagine you just need a tablet to present something, or use it as a touchscreen to control something - it could do that
2012-05-18T19:44:48 <+dekar> our company managed to pay like 400€ for displays that size and resolution alone
2012-05-18T19:45:28 < zyp> IMAPX200, that's some pre-cortex shit
2012-05-18T19:45:39 <+dekar> since I couldn't find a USB feedthrough for my window, I made my own :) http://dl.dropbox.com/u/28467113/sdr_balcony1.jpg
2012-05-18T19:47:02 <+dekar> I am not sure how long it will last, but so far it works nicely
2012-05-18T19:57:03 <+Steffanx> lol dekar
2012-05-18T19:59:17 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32
2012-05-18T20:00:42 <+dekar> Steffanx, http://dl.dropbox.com/u/28467113/sdr_balcony3.jpg
2012-05-18T20:01:11 <+Steffanx> So now you finally use that laundry thing :P
2012-05-18T20:01:28 <+dekar> yeah :)
2012-05-18T20:01:45 <+Steffanx> whatever it's called in English
2012-05-18T20:02:11 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-18T20:03:32 <+Steffanx> I think it's just something to 'mount'  it on
2012-05-18T20:05:02 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-18T20:11:38 < zyp> yeah
2012-05-18T20:11:48 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Read error: Operation timed out]
2012-05-18T20:18:16 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit []
2012-05-18T20:28:27 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-18T20:40:36 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32
2012-05-18T20:56:15 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-18T21:11:21 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-18T21:11:21 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Disconnected by services]
2012-05-18T21:11:24 -!- mode/##stm32 [+v Steffann] by ChanServ
2012-05-18T21:19:25 <+dekar> http://dl.dropbox.com/u/28467113/bos.png
2012-05-18T21:20:27 <+Steffann> ..
2012-05-18T21:20:59 <+dekar> according to frequency tables I found on the internet this would be police, firefighters etc
2012-05-18T21:22:05 <+Steffann> And you hear something?
2012-05-18T21:22:49 < zyp> probably digital and encrypted
2012-05-18T21:25:45 <+dekar> well wikipedia says it is unencrypted and FM modulated
2012-05-18T21:25:58 <+dekar> it also states listening to it would be highly illegal
2012-05-18T21:26:51 <+Steffann> Who cares
2012-05-18T21:27:18 <+Steffann> I mean, they can't see you doing it
2012-05-18T21:27:53 <+dekar> it's so fail, they should just encrypt it if they don't want people to listen
2012-05-18T21:28:11 < zyp> here in norway, listening in to unencrypted police comms is legal
2012-05-18T21:28:48 < zyp> but I believe there is a law stating that you are only allowed to do that from home, not from a vehicle, or something like that
2012-05-18T21:29:33 <+Steffann> Here they use C2000 .. highly encrypted crap
2012-05-18T21:29:46 <+Steffann> Yes, Crap .. it seems to fail under high(er) load
2012-05-18T21:32:13 <+Steffann> And P2000, which is not encrypted
2012-05-18T21:32:24 <+Steffann> but that's more a SMS a-like service
2012-05-18T21:45:41 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-18T21:45:45 < Laurenceb_> hi
2012-05-18T22:08:54 -!- ben1066 [~quassel@unaffiliated/ben1066] has quit [Remote host closed the connection]
2012-05-18T22:16:42 -!- feurig_ [~don@198.202.31.180] has joined ##stm32
2012-05-18T22:28:18 < feurig_> anyone doing usb-midi?
2012-05-18T22:35:14  * feurig_ waves at ziph zyp dongs Tom_itx .... small world
2012-05-18T22:49:59 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds]
2012-05-18T23:01:50 <+Steffann> At least you made it a little bigger feurig_
2012-05-18T23:02:10 <+Steffann> larger
2012-05-18T23:10:57 -!- TitanMKD_AW [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-18T23:11:07 -!- TitanMKD_AW is now known as TitanMKD
2012-05-18T23:11:19 < TitanMKD> hi
--- Day changed Sat May 19 2012
2012-05-19T00:09:58 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-19T00:12:15 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-19T00:12:47 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Read error: Connection reset by peer]
2012-05-19T00:15:02 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 245 seconds]
2012-05-19T00:17:39 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-19T00:18:08 -!- ben1066 [~quassel@host86-164-177-67.range86-164.btcentralplus.com] has joined ##stm32
2012-05-19T00:18:09 -!- ben1066 [~quassel@host86-164-177-67.range86-164.btcentralplus.com] has quit [Changing host]
2012-05-19T00:18:09 -!- ben1066 [~quassel@unaffiliated/ben1066] has joined ##stm32
2012-05-19T00:20:10 -!- ben1066 [~quassel@unaffiliated/ben1066] has quit [Read error: Connection reset by peer]
2012-05-19T00:21:57 -!- ben1066 [~quassel@host86-164-177-67.range86-164.btcentralplus.com] has joined ##stm32
2012-05-19T00:21:58 -!- ben1066 [~quassel@host86-164-177-67.range86-164.btcentralplus.com] has quit [Changing host]
2012-05-19T00:21:58 -!- ben1066 [~quassel@unaffiliated/ben1066] has joined ##stm32
2012-05-19T00:22:42 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 265 seconds]
2012-05-19T00:23:11 -!- ben1066 [~quassel@unaffiliated/ben1066] has quit [Read error: Connection reset by peer]
2012-05-19T00:23:19 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-19T00:24:36 -!- ben1066 [~quassel@host86-164-177-67.range86-164.btcentralplus.com] has joined ##stm32
2012-05-19T00:24:37 -!- ben1066 [~quassel@host86-164-177-67.range86-164.btcentralplus.com] has quit [Changing host]
2012-05-19T00:24:37 -!- ben1066 [~quassel@unaffiliated/ben1066] has joined ##stm32
2012-05-19T00:28:07 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 252 seconds]
2012-05-19T00:29:16 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-19T00:35:19 < SuicideFunky> Steffann: thanks for C2000, only knew of P2000
2012-05-19T00:35:55 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
2012-05-19T00:47:49 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-19T00:48:55 <+Steffann> You as dutchy didn't know about C2000 SuicideFunky ?
2012-05-19T00:50:16 < feurig_> I am diversifying of late :)
2012-05-19T01:14:50 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-19T01:23:06 < SuicideFunky> thats right Steffann. i should be ashamed, i know :)
2012-05-19T01:24:21 <+Steffann> :P
2012-05-19T01:33:59 <+Steffann> Actually it's T2000, but everyone calls it C2000 SuicideFunky :)
2012-05-19T01:42:35 < SuicideFunky> thanks, good to know :)
2012-05-19T01:46:32 < SuicideFunky> sometimes i like to check it, here in arnhem is mostly something going on
2012-05-19T01:46:40 < SuicideFunky> my favorite restaurant was on fire once
2012-05-19T01:47:08 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 240 seconds]
2012-05-19T01:53:43  * SuicideFunky is saving his execution state to ~/.sleep
2012-05-19T02:04:43 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Read error: Connection reset by peer]
2012-05-19T02:12:21 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 248 seconds]
2012-05-19T02:24:09 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-19T02:33:41 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-19T03:06:49 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 260 seconds]
2012-05-19T03:14:09 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-19T03:15:17 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 248 seconds]
2012-05-19T03:52:30 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-19T03:52:47 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: .]
2012-05-19T06:16:16 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-19T06:18:54 -!- Tom_L is now known as Tom_itx
2012-05-19T08:30:46 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-19T08:31:52 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Read error: Operation timed out]
2012-05-19T08:42:08 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32
2012-05-19T09:56:49 -!- ben1066_ [~quassel@host86-169-142-126.range86-169.btcentralplus.com] has joined ##stm32
2012-05-19T09:56:49 -!- ben1066_ [~quassel@host86-169-142-126.range86-169.btcentralplus.com] has quit [Changing host]
2012-05-19T09:56:49 -!- ben1066_ [~quassel@unaffiliated/ben1066] has joined ##stm32
2012-05-19T09:58:06 -!- ben1066 [~quassel@unaffiliated/ben1066] has quit [Ping timeout: 246 seconds]
2012-05-19T10:20:22 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer]
2012-05-19T10:20:38 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-19T10:33:38 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-19T10:40:14 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-19T11:59:47 -!- tavish [~tavish@59.177.1.65] has joined ##stm32
2012-05-19T11:59:47 -!- tavish [~tavish@59.177.1.65] has quit [Changing host]
2012-05-19T11:59:47 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-19T12:19:05 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-19T12:20:02 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-19T12:24:37 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 248 seconds]
2012-05-19T12:25:49 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-19T12:39:31 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-19T12:39:34 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-19T12:40:14 <+Steffanx> Yay, received my black magic probe .. to bad it was my first experience with the custom taxes :(
2012-05-19T12:40:16 <+Steffanx> *too
2012-05-19T12:57:41 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 248 seconds]
2012-05-19T13:20:10 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Ping timeout: 244 seconds]
2012-05-19T13:27:36 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32
2012-05-19T13:28:39 < gsmcmullin> Steffanx: Wow, that took a long time.
2012-05-19T13:28:56 <+Steffanx> Yeah, 4 weeks exactly
2012-05-19T13:29:12 <+Steffanx> I guess the customs took a long to determine how much they should charge me :P
2012-05-19T13:29:18 <+Steffanx> *long time
2012-05-19T13:32:38 <+Steffanx> Taxes + crap was almost 50% of price.. shit happens :(
2012-05-19T13:33:29 < gsmcmullin> Ouch.
2012-05-19T13:33:45 < gsmcmullin> Here anything under a few hundred dollars goes under the radar.
2012-05-19T13:34:14 <+Steffanx> Yeah, that's why I'm surprised I had to pay something
2012-05-19T13:39:11 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |]
2012-05-19T14:06:55 -!- elektrinis [circuit@82-135-241-134.static.zebra.lt] has joined ##stm32
2012-05-19T14:28:47 <+Steffanx> wifi ...
2012-05-19T14:34:08 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-19T14:37:59 -!- ben1066_ is now known as ben1066
2012-05-19T15:13:20 < Laurenceb> sup
2012-05-19T15:13:43 < jpa-> your dongs
2012-05-19T15:14:17 < Laurenceb> lol
2012-05-19T15:14:24  * Laurenceb is working on caturday
2012-05-19T15:14:33 < Laurenceb> im totally not a loser
2012-05-19T15:17:37 <+dekar> Steffanx, http://dl.dropbox.com/u/28467113/pagers.png
2012-05-19T15:18:19 <+Steffanx> Working on what Laurenceb ?
2012-05-19T15:18:36 < Laurenceb> student crap
2012-05-19T15:18:46 <+Steffanx> Student crap as in homework?
2012-05-19T15:18:59 <+Steffanx> Not sure what i'm looking at dekar ..
2012-05-19T15:22:31 <+dekar> that's the transmission for those pager things
2012-05-19T15:22:47 <+dekar> you know, the ones people used to use like 15 years ago
2012-05-19T15:23:02 <+Steffanx> Decoded it yet?
2012-05-19T15:23:08 <+dekar> they're still used in hospitals etc
2012-05-19T15:23:18 <+Steffanx> Wich receiver do you have btw? My brother asked me to get one
2012-05-19T15:23:32 <+dekar> Steffanx, well the open source software I found which is able to decode it still links OSS
2012-05-19T15:23:36 <+dekar> and my mac has no OSS
2012-05-19T15:23:40 <+Steffanx> I mean, the hw piece
2012-05-19T15:23:47 <+dekar> OSS like in open sound system
2012-05-19T15:23:52 <+dekar> hama nano
2012-05-19T15:24:01 <+dekar> the best one from what I heard
2012-05-19T15:25:09 <+dekar> Steffanx, http://pastebin.com/VZQeZHpQ
2012-05-19T15:25:46 <+dekar> it goes up to nearly 2.2Ghz
2012-05-19T15:26:22 < cjbaird> On a rtl2832..?
2012-05-19T15:26:58 <+dekar> yeah
2012-05-19T15:27:32 <+dekar> check the paste for detailed information about my hw
2012-05-19T15:27:45 < cjbaird> Probably, then.. The e4000 is the best tuner on the 2832 as yet discvoered.
2012-05-19T15:28:13 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-19T15:28:28 < cjbaird> I've got a rtl_sdr setup here, unfortunately with an fc0012 tuner. :(
2012-05-19T15:28:50 <+dekar> get another one then :)
2012-05-19T15:29:38 < cjbaird> PLayed around with it and gnu radio enough to get the local audio transmissions (Sydney airport..), but I was really more interest in digital modes, which I didn't have any luck with.
2012-05-19T15:29:56 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Client Quit]
2012-05-19T15:37:41 < Laurenceb> i need to have a play with my e4000 dongle
2012-05-19T15:37:52 < Laurenceb> i want to try a passive SAR
2012-05-19T15:42:36 < Laurenceb> see i knew you were a fag
2012-05-19T15:44:15 <+Steffanx> Who ever that is
2012-05-19T15:44:56 <+Steffanx> Oh, he :)
2012-05-19T15:46:28 < Laurenceb> fail
2012-05-19T15:46:36 < Laurenceb> john carmack is armadillo
2012-05-19T15:46:42 < Laurenceb> emol mush is spacex
2012-05-19T16:10:13 < Laurenceb> http://www.facebook.com/pages/Prostate-milking/173919332624537
2012-05-19T16:10:22 < Laurenceb> so thats why its worth so much
2012-05-19T16:11:41 <+Steffanx> Uhm Laurenceb ..
2012-05-19T16:12:07 <+Steffanx> Time to share the info about your hobbies elsewhere?
2012-05-19T16:12:41 < Laurenceb> lol i didnt find that
2012-05-19T16:12:50 < Laurenceb> its just funny whats on farcebook
2012-05-19T17:01:10 -!- Flea86 [~Flea86@c114-76-82-206.thoms3.vic.optusnet.com.au] has joined ##stm32
2012-05-19T17:01:18 < Flea86> o/
2012-05-19T17:03:08 < Flea86> lol, it's a wave :P
2012-05-19T17:04:06 < Flea86> anyway, I've managed to get my hands on some f4 kits and was wondering if anyone has used DMA on these capable beasts..
2012-05-19T17:04:07 < Flea86> ?
2012-05-19T17:04:07 <+Steffanx> Time to remove the board for the other pcb dongs ?
2012-05-19T17:07:55 < Flea86> dongs: I snared several examples of the 'F4 discovery kits, and was wondering how difficult it was for anyone coming from an 8-bit processor environment
2012-05-19T17:09:17 <+Steffanx> The the stdperipheral lib :P
2012-05-19T17:09:20 <+Steffanx> *skip the
2012-05-19T17:09:58 <+Steffanx> That STMxxxxxxx on that board is a STM32F103RE dongs ?
2012-05-19T17:12:53 <+Steffanx> And you removed the cover?
2012-05-19T17:14:00 < jpa-> hi Flea86 :)
2012-05-19T17:14:23 < Flea86> Thanks guys, my reason for asking: I am curious to do a more capable version of this..
2012-05-19T17:14:24 < Flea86> http://members.optuszoo.com.au/pioneer10/Flea86_21usb.JPG
2012-05-19T17:14:27 < jpa-> Flea86: with your experience, it'll be a piece of cake
2012-05-19T17:14:44 < jpa-> Flea86: most difficult part is just finding the relevant info in the 2000+ pages of docs
2012-05-19T17:15:10 < Flea86> jpa: I suppose I don't need to read *all* 2000 pages.. :)
2012-05-19T17:15:16 < jpa-> yeah, you don't :)
2012-05-19T17:15:35 < jpa-> just throw a dice to figure out which ones you need :)
2012-05-19T17:16:55 < Flea86> One of the things that I find daunting about ARM is that it appears to have an extra layer or two added to the software project.. but I won't knock it until I actually try it :)
2012-05-19T17:17:14 < jpa-> you don't have to use those extra layers
2012-05-19T17:17:44 < jpa-> but.. well, the processor has the power to run them, so an RTOS and HAL become very tempting
2012-05-19T17:19:04 < Flea86> jpa: As you know, I like to work specifically with the 'bare metal' of the chip, that's my playground.. ^^
2012-05-19T17:19:18 < jpa-> yeah, you are not alone :)
2012-05-19T17:28:57 < Flea86> dongs: I have no experience with it, but I've read that asm is kinda discouraged in relation to modern ARM variants...
2012-05-19T17:33:20 <+Steffanx> The compiler knows nothing
2012-05-19T17:33:25 <+Steffanx> It does what it's told to do
2012-05-19T17:37:04 < cjbaird> "vz300@yahoo" .. ha
2012-05-19T17:37:34 <+Steffanx> uh?
2012-05-19T17:37:50 <+Steffanx> That ..
2012-05-19T17:37:54 < Flea86> cjbaird: ?
2012-05-19T17:39:38 < cjbaird> It's the contact email address on http://members.optuszoo.com.au/pioneer10/index.xhtml .. VZ300 also being a cheap and nasty Z80 machine I had for a while.
2012-05-19T17:40:52 <+Steffanx> Oh, that's all
2012-05-19T17:41:07 < Flea86> cjbaird: I see, did you ever own the vz200 as well? it was even worse (rubber keyboard, less RAM etc)
2012-05-19T17:41:56 < Flea86> It was still kinda cool to play space invaders on tho.. :)
2012-05-19T17:43:00 < cjbaird> I got my '300 from Dick Smith, just before they EOL'd them... I decided to return it when the diskette drive had to RMA'd.
2012-05-19T17:43:01 < Flea86> Anyhow, I look forward to tinkering with the stm32 tommorrow, thanks guys
2012-05-19T17:43:39 < cjbaird> Flea86: btw, a 6502 simulator is a current project? Did that myself recently for the stm32F4 Disco
2012-05-19T17:44:24 < Flea86> cjbaird: really? cool! :D
2012-05-19T17:44:56 < Flea86> what kind of performance did you get out of it? (equivalent 6052 CPU MHz)?
2012-05-19T17:45:45 < Flea86> Mine came in running @ approximately equal to a ~1.9MHz 6502 :)
2012-05-19T17:46:00 < Flea86> http://members.optuszoo.com.au/pioneer10/Apple2.JPG
2012-05-19T17:46:09 < cjbaird> ~7.5MHz, I think. It doesn't do anything fancy like video; mostly it's just to help port 6502 code to different machines (GPascal for the SYM-1...)
2012-05-19T17:46:28 < cjbaird> https://github.com/cjbaird/stm6502
2012-05-19T17:47:06 < cjbaird> (7.5MHz on a 168MHz F4, that is..)
2012-05-19T17:47:30 < Flea86> That's pretty damn fast! }:A
2012-05-19T17:47:34 <+Steffanx> Can it run Prince of Persia yet cjbaird ? :)
2012-05-19T17:47:45 < Flea86> Mine can :P
2012-05-19T17:47:47 < Flea86> lol
2012-05-19T17:48:28 < Flea86> cjbaird: Well, all you need is a video out and PS/2 keyboard routines and you're set :)
2012-05-19T17:49:32 < Flea86> (well maybe even a usb keyboard might be a better way instead of ps/2?)
2012-05-19T17:50:05 < cjbaird> https://plus.google.com/106353937620710166166/posts ..has much of its development history.
2012-05-19T17:52:39 < cjbaird> lol, translating Bleach and Naruto...
2012-05-19T17:53:44 <+Steffanx> Is dongs really that guy cjbaird ?
2012-05-19T17:54:23 < cjbaird> There's also a ?Polish guy working on a STM32 C64 simulator, I've heard (now where did I put that link..), with the whole video, multimedia chips, etc. ..but it'll be closed-source. :/
2012-05-19T17:55:47 < Flea86> cjbaird: Cheers! what compiler do you use? gcc?
2012-05-19T17:55:55 <+Steffanx> LOL, you are famous on the interwebz dongs
2012-05-19T17:56:22 <+Steffanx> I don't like to talk to famous people
2012-05-19T17:57:17 < cjbaird> Flea86: yup, the regular esden summon-arm-toolchain.
2012-05-19T17:57:59 <+Steffanx> You are
2012-05-19T17:58:40 < cjbaird> I was going to mention in the channel's gcc ranting a bit ago about how good a job gcc had done on my code-- doing things like /smart/ choices for 'register'ing certain variables, etc.
2012-05-19T17:59:41 < cjbaird> A lot of banging is done on the 'mem[65536]' related pointer, which gcc manages to assign 'permanently' to R3 throughout the whole program.
2012-05-19T18:00:48 < cjbaird> Still, a number of 6502 instructions (like ADC) are turned into shitpiles of Thumb2 instructions.. However it optimizes well on others.
2012-05-19T18:03:55 < Flea86> cjbaird: very interesting - will have to continue this discussion another time (bed time for me), nite all
2012-05-19T18:04:10 -!- Flea86 [~Flea86@c114-76-82-206.thoms3.vic.optusnet.com.au] has quit [Quit: Station breakdown]
2012-05-19T18:04:26 < cjbaird> night, then
2012-05-19T18:07:21 <+Steffanx> Time to get an STM32 and some CDC stuff
2012-05-19T18:08:02 < cjbaird> It's not a case of level inversion? (TTL-style serial versus max232-esque serial..)
2012-05-19T18:15:08 < cjbaird> Hard to tell-- start & stop bit durations correct?
2012-05-19T18:19:47 < cjbaird> "lol dongs"
2012-05-19T18:23:42 <+Steffanx> Ha
2012-05-19T18:29:15 < cjbaird> The bit-patterns look a bit odd, though. for 24 & 53 , I'd be expecting to see "0000110001 0001101011", and I can't quite fit it to the signal (at least by looking)
2012-05-19T18:33:26 < zyp> what? 24 would be 0001001001 and 53 would be 0110010101
2012-05-19T18:34:44 < zyp> which seems to match the signal exactly
2012-05-19T18:36:44 < cjbaird> Ah, right, lsb first in serial... -_-
2012-05-19T18:37:06 < zyp> well, what you are saying doesn't make sense either way
2012-05-19T18:37:48 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-19T18:38:00 < zyp> it would be 0x81 0xca LSB first or 0x81 0x35 MSB first
2012-05-19T18:38:35 < zyp> sorry, 0xac, not 0xca :p
2012-05-19T18:40:28 < cjbaird> And dongs mentioned it being $STPxxx as well. D'oh.
2012-05-19T18:44:04 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-19T18:57:03 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds]
2012-05-19T18:57:59 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has left ##stm32 []
2012-05-19T18:58:30 -!- tavish [~tavish@59.177.12.178] has joined ##stm32
2012-05-19T18:58:30 -!- tavish [~tavish@59.177.12.178] has quit [Changing host]
2012-05-19T18:58:30 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-19T19:03:01 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 248 seconds]
2012-05-19T19:17:26 -!- tavish_ [~tavish@59.177.1.26] has joined ##stm32
2012-05-19T19:20:33 -!- tavish_ [~tavish@59.177.1.26] has quit [Client Quit]
2012-05-19T19:41:17 < Laurenceb> lol
2012-05-19T19:41:23 < Laurenceb> wrong meaning of frisky
2012-05-19T19:41:24 -!- tavish_ [~tavish@59.177.11.40] has joined ##stm32
2012-05-19T19:54:44 -!- tavish_ [~tavish@59.177.11.40] has quit [Ping timeout: 252 seconds]
2012-05-19T19:56:40 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-19T19:56:59 -!- elektrinis [circuit@82-135-241-134.static.zebra.lt] has quit [Quit: pokðt]
2012-05-19T20:02:58 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-19T20:04:49 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-19T20:10:17 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds]
2012-05-19T20:15:59 <+Steffanx> :) The F103s I ordered from ebay are OR real OR very good clones :D
2012-05-19T20:18:12 < jpa-> so if they are real, they aren't?
2012-05-19T20:18:15 < BrainDamage> how much did you pay?
2012-05-19T20:18:27 < BrainDamage> I got 5 f103 for ~15$
2012-05-19T20:18:46 < BrainDamage> and they don't seem to lie in the imaginary plane
2012-05-19T20:21:58 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 276 seconds]
2012-05-19T20:22:52 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-19T20:22:54 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-19T20:40:28 <+Steffanx> zyp uses his bmp with swd?
2012-05-19T20:41:52 < zyp> I've tested both
2012-05-19T20:42:08 < zyp> swd is slightly faster, so that's what I use
2012-05-19T20:42:42 <+Steffanx> Ok, I'll continue pebkecing
2012-05-19T20:42:51 < zyp> what's the problem?
2012-05-19T20:43:27 <+Steffanx> I'm trying to make it functional in eclipse, but i fail terribly
2012-05-19T20:44:56 < zyp> does it work with plain gdb?
2012-05-19T20:49:01 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-19T20:53:25 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 248 seconds]
2012-05-19T20:54:48 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-19T20:54:51 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-19T20:56:04 <+Steffanx> It works zyp, but it just fail at making it run
2012-05-19T20:58:25 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
2012-05-19T20:59:55 < zyp> how so?
2012-05-19T21:01:45 <+Steffanx> Probably lack of knowledge of GDB
2012-05-19T21:03:02 <+Steffanx> http://pastebin.com/ut4Fuumw .. :)
2012-05-19T21:03:54 < zyp> ‚
2012-05-19T21:03:57 < zyp> …
2012-05-19T21:04:03 < zyp> that's useless
2012-05-19T21:04:12 <+Steffanx> Yes :P
2012-05-19T21:04:22 < zyp> I can't tell you what you are doing wrong without knowing what you did before you typed run.
2012-05-19T21:07:46 <+Steffanx> Nothing special afaik http://pastebin.com/ifnMFirg ..
2012-05-19T21:09:27 < zyp> looks like your elf is broken
2012-05-19T21:09:54 < zyp> you're loading .init_array to start of flash
2012-05-19T21:10:24 < zyp> where's the vectors?
2012-05-19T21:12:41 <+Steffanx> Gone ..
2012-05-19T21:13:06 < zyp> try loading a non-broken elf :p
2012-05-19T21:13:27 <+Steffanx> Oops, sorry like i said "I'm pebkacing" :)
2012-05-19T21:15:42 < zyp> http://cgit.jvnv.net/suzumebachi/tree/.gdbinit?h=stm32f4 <- you might also want to have a look at the aliases I'm using, they save a few keypresses ;)
2012-05-19T21:17:24 <+Steffanx> You made me feel stupid again :(
2012-05-19T21:17:26 <+Steffanx> but thanks :)
2012-05-19T21:18:01 < zyp> no problems
2012-05-19T21:19:06 <+Steffanx> I'm sure i had this vector table, but it somehow disappeared
2012-05-19T21:21:28 < zyp> bad linker script
2012-05-19T21:22:20 <+Steffanx> No, missing array :P
2012-05-19T21:22:38 <+Steffanx> And if it's a bad linker script, then you have to blame yourself :P
2012-05-19T21:22:41 <+Steffanx> I use yours
2012-05-19T21:22:44 < zyp> ah
2012-05-19T21:28:42 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-19T21:36:10 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds]
2012-05-19T21:36:53 <+Steffanx> I also shouldn't use tty*, but cu*
2012-05-19T21:36:58 <+Steffanx> but here tty seems to work ok
2012-05-19T21:37:12 <+Steffanx> "Note: On Mac OS X use the /dev/cu.usbmodem<somenumber>. Don't use the tty version of this device as this one will freeze gdb when it tries to open it." :D
2012-05-19T21:38:22 -!- izua [~izua@5-13-152-174.residential.rdsnet.ro] has joined ##stm32
2012-05-19T21:38:27 -!- izua [~izua@5-13-152-174.residential.rdsnet.ro] has quit [Changing host]
2012-05-19T21:38:27 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-19T21:38:28 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-19T21:47:10 -!- tavish [~tavish@120.56.238.68] has joined ##stm32
2012-05-19T21:47:10 -!- tavish [~tavish@120.56.238.68] has quit [Changing host]
2012-05-19T21:47:10 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-19T21:52:38 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds]
2012-05-19T22:01:08 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 240 seconds]
2012-05-19T22:10:34 -!- Laurenceb_ [~Laurence@109.144.207.254] has joined ##stm32
2012-05-19T22:15:29 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-19T22:15:38 -!- Laurenceb_ [~Laurence@109.144.207.254] has quit [Ping timeout: 240 seconds]
2012-05-19T22:33:06 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-19T22:57:30 <+dekar> Steffanx, can't manage to demodulate the pager stuff :/
2012-05-19T22:58:19 <+dekar> it is supposedly POCSAG modulated
2012-05-19T22:58:47 <+dekar> and I hacked multimon to remove the OSS dependency and make it compile on OSX
2012-05-19T22:58:55 <+dekar> still it doesn't seem to pick anything up
2012-05-19T22:59:15 <+dekar> I don't really know what I am doing though, I do have to FM demodulate it first, don't I?
2012-05-19T23:03:55 < Laurenceb_> sup
2012-05-19T23:41:33 < gsmcmullin> Steffanx: The /dev/tty* should work with mac now.  It was a problem with the DCD signal.
2012-05-19T23:41:48 < gsmcmullin> I think I fixed it, but nobody has confirmed that it works now.
2012-05-19T23:53:06 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-19T23:53:51 < Laurenceb_> http://i.imgur.com/3Gdcf.png
2012-05-19T23:53:59 < Laurenceb_> my pwnage board is nearly finished :P
2012-05-19T23:54:09 < ratatata> nu
2012-05-19T23:54:22 < Thorn> http://i.imgur.com/mOxZq.jpg
2012-05-19T23:54:23 < jpa-> Laurenceb_: how many mistakes does it have?
2012-05-19T23:54:36 < Laurenceb_> jpa-: lol
2012-05-19T23:54:46 < Laurenceb_> i already have a larger version built and tested
2012-05-19T23:55:32 < jpa-> and where is your ground plane :)
2012-05-19T23:55:35 < Laurenceb_> this is super small
2012-05-19T23:55:46 < Laurenceb_> that section isnt finished yet
2012-05-19T23:55:54 < Laurenceb_> im still playing about on breadboard
2012-05-19T23:58:33 < Laurenceb_> developing a smaller version of my ultra awesome photodiode detector
--- Day changed Sun May 20 2012
2012-05-20T00:12:58 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: .]
2012-05-20T00:13:02 -!- ben1066_ [~quassel@host109-152-55-188.range109-152.btcentralplus.com] has joined ##stm32
2012-05-20T00:13:02 -!- ben1066_ [~quassel@host109-152-55-188.range109-152.btcentralplus.com] has quit [Changing host]
2012-05-20T00:13:02 -!- ben1066_ [~quassel@unaffiliated/ben1066] has joined ##stm32
2012-05-20T00:14:11 -!- ben1066 [~quassel@unaffiliated/ben1066] has quit [Ping timeout: 246 seconds]
2012-05-20T00:29:13 -!- ben1066 [~quassel@host86-145-174-88.range86-145.btcentralplus.com] has joined ##stm32
2012-05-20T00:29:14 -!- ben1066 [~quassel@host86-145-174-88.range86-145.btcentralplus.com] has quit [Changing host]
2012-05-20T00:29:14 -!- ben1066 [~quassel@unaffiliated/ben1066] has joined ##stm32
2012-05-20T00:30:38 -!- ben1066_ [~quassel@unaffiliated/ben1066] has quit [Ping timeout: 246 seconds]
2012-05-20T00:32:56 -!- ben1066_ [~quassel@host109-152-33-100.range109-152.btcentralplus.com] has joined ##stm32
2012-05-20T00:32:57 -!- ben1066_ [~quassel@host109-152-33-100.range109-152.btcentralplus.com] has quit [Changing host]
2012-05-20T00:32:57 -!- ben1066_ [~quassel@unaffiliated/ben1066] has joined ##stm32
2012-05-20T00:34:29 -!- ben1066 [~quassel@unaffiliated/ben1066] has quit [Ping timeout: 246 seconds]
2012-05-20T00:36:38 -!- ben1066 [~quassel@host109-152-40-33.range109-152.btcentralplus.com] has joined ##stm32
2012-05-20T00:36:39 -!- ben1066 [~quassel@host109-152-40-33.range109-152.btcentralplus.com] has quit [Changing host]
2012-05-20T00:36:39 -!- ben1066 [~quassel@unaffiliated/ben1066] has joined ##stm32
2012-05-20T00:38:20 -!- ben1066_ [~quassel@unaffiliated/ben1066] has quit [Ping timeout: 246 seconds]
2012-05-20T01:11:30 <+Steffanx> It doesn't hang, so i guess you fixed it gsmcmullin :)
2012-05-20T01:12:43 < gsmcmullin> Thanks, good to know.
2012-05-20T01:13:00 < gsmcmullin> Did you sort out your bad elf?
2012-05-20T01:17:39 <+Steffanx> No, not yet.. but I didn't look into it very well yet
2012-05-20T01:18:25 < Laurenceb_> elf medicine?
2012-05-20T01:19:09 <+Steffanx> Yes Laurenceb_
2012-05-20T01:19:27 < Laurenceb_> poor elf
2012-05-20T01:22:02 <+Steffanx> Not really
2012-05-20T01:29:11 < Laurenceb_> maybe santa can help
2012-05-20T01:29:49 <+Steffanx> It's .. may
2012-05-20T01:30:07 <+Steffanx> So Christmas isn't here yet
2012-05-20T01:54:13 < Laurenceb_> http://mclube.com  <-lol
2012-05-20T01:58:06 <+Steffanx> Laurenceb_ really visits 4chan 24/7 .. isn't it?
2012-05-20T01:58:31 < Laurenceb_> heh
2012-05-20T02:06:29 -!- dekar_ [~dekar@dslb-088-068-117-163.pools.arcor-ip.net] has joined ##stm32
2012-05-20T02:06:32 -!- mode/##stm32 [+v dekar_] by ChanServ
2012-05-20T02:07:18 -!- dekar [~dekar@dslb-088-068-117-163.pools.arcor-ip.net] has quit [Ping timeout: 244 seconds]
2012-05-20T02:13:59 -!- dekar_ [~dekar@dslb-088-068-117-163.pools.arcor-ip.net] has quit [Ping timeout: 252 seconds]
2012-05-20T02:29:00 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds]
2012-05-20T02:29:18 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-20T02:49:43 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-20T03:15:59 -!- danielson [danielson@D-128-208-62-165.dhcp4.washington.edu] has joined ##stm32
2012-05-20T03:16:06 < danielson> Hi there
2012-05-20T03:16:21 < danielson> Haaving a problem trying to build & debug a demonstration app
2012-05-20T03:16:23 < danielson> -a
2012-05-20T03:16:37 < danielson> Trying to do the audio playback and record example, the internal flash one.
2012-05-20T03:16:46 < danielson> It builds fine, when I try to debug it
2012-05-20T03:17:06 < danielson> Set FLASH_SET_PARALLELISM supported only for F2 series boards
2012-05-20T03:17:17 < danielson> That's what it says, and nothing happens, and it doesn't appear to be debugging
2012-05-20T03:18:09 < danielson> If I then hit the reset button on the discovery board, it appears to be debugging
2012-05-20T03:19:18 < danielson> But it just fails instead
2012-05-20T03:19:27 < danielson> Any idea what the FLASH_SET_PARALLELISM is all about?
2012-05-20T03:19:42 < danielson> I'm using atollic truestudio lite 2.2
2012-05-20T03:20:53 < karlp> sorry, not somethign I'm familiar with.
2012-05-20T03:25:46 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-20T03:33:52 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection]
2012-05-20T03:57:18 < danielson> Okay, so I turned off the flash_set_parallelism line (debugger setup)
2012-05-20T03:57:20 < danielson> http://pastebin.com/wtXYKsAb
2012-05-20T03:57:39 < danielson> Loading the .elf file gets stuck at 82%. Look at the output, anyone seen anything like this before?
2012-05-20T03:59:31 < danielson> It seems the address/line of code changes for no apparent reason when debugging
2012-05-20T03:59:33 < danielson> http://pastebin.com/K2e6R51V
2012-05-20T03:59:41 < danielson> I tried debugging again, slightly different output
2012-05-20T03:59:47 < danielson> Again just 'stops' at 82%
2012-05-20T04:05:05 < danielson> Shit it worked. That took fucking forever
2012-05-20T04:20:54 -!- danielson [danielson@D-128-208-62-165.dhcp4.washington.edu] has quit [Ping timeout: 256 seconds]
2012-05-20T04:28:51 -!- ben1066_ [~quassel@host109-152-33-232.range109-152.btcentralplus.com] has joined ##stm32
2012-05-20T04:28:51 -!- ben1066_ [~quassel@host109-152-33-232.range109-152.btcentralplus.com] has quit [Changing host]
2012-05-20T04:28:51 -!- ben1066_ [~quassel@unaffiliated/ben1066] has joined ##stm32
2012-05-20T04:29:20 -!- ben1066 [~quassel@unaffiliated/ben1066] has quit [Ping timeout: 246 seconds]
2012-05-20T04:30:31 -!- dekar [~dekar@dslb-088-068-117-163.pools.arcor-ip.net] has joined ##stm32
2012-05-20T04:30:35 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-20T04:37:30 -!- izua [~izua@5-13-152-174.residential.rdsnet.ro] has joined ##stm32
2012-05-20T04:37:31 -!- izua [~izua@5-13-152-174.residential.rdsnet.ro] has quit [Changing host]
2012-05-20T04:37:31 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-20T04:37:31 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-20T05:00:06 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 250 seconds]
2012-05-20T05:44:38 -!- dekar_ [~dekar@dslb-084-059-138-181.pools.arcor-ip.net] has joined ##stm32
2012-05-20T05:44:41 -!- mode/##stm32 [+v dekar_] by ChanServ
2012-05-20T05:46:59 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-20T05:48:22 -!- dekar [~dekar@dslb-088-068-117-163.pools.arcor-ip.net] has quit [Ping timeout: 252 seconds]
2012-05-20T06:26:16 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-20T07:09:38 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 246 seconds]
2012-05-20T07:50:57 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-20T07:51:02 < cjbaird> Hadn't known they were exporting.. Do they sell the 'chick eggs' overseas during easter? :)
2012-05-20T09:40:41 -!- gsmcmull1n [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32
2012-05-20T09:43:55 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Ping timeout: 250 seconds]
2012-05-20T09:59:12 -!- gsmcmull1n is now known as gsmcmullin
2012-05-20T10:31:32 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-20T11:29:33 < cjbaird> I always wonder if some day if Google will go "Fuck it, all those 600 million 1080p video uploads with like 4 views can go fuck themselves.."
2012-05-20T11:33:34 < cjbaird> dongs: practice the barrel rolls
2012-05-20T13:55:01 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-20T13:55:05 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-20T13:57:15 <+Steffanx> nu
2012-05-20T14:46:05 < Tectu> hello Steffanx
2012-05-20T14:46:39 < SuicideFunky> i get the feeling i'm reinventing the wheel here writing my own linkerscript for a stm32vldiscovery flash-ELF image using directions from http://fun-tech.se/stm32/OlimexBlinky/
2012-05-20T14:46:53 < SuicideFunky> although i learned much from it
2012-05-20T14:47:34 < SuicideFunky> i better create a project based Makefile for my projects and finish my school assignment
2012-05-20T14:49:43 < SuicideFunky> does anyone know which special mechanism the cortex m3 on the discovery employs for booting from SRAM?
2012-05-20T14:49:57 < SuicideFunky> without setting boot pins
2012-05-20T14:50:11 < SuicideFunky> the datasheet refers to this but i cant find it anywhere
2012-05-20T14:50:30 < SuicideFunky> thought of doing that dongs
2012-05-20T14:50:48 < SuicideFunky> but im curious what that special mechanism is
2012-05-20T14:53:29 < jpa-> probably it uses the stlink interface to say "goto this address"
2012-05-20T14:53:46 < jpa-> like gdb does
2012-05-20T14:55:05 < SuicideFunky> that sounds logical since the datasheet mentions to move the program code to 0x20000000 (start of sram)
2012-05-20T14:55:33 < SuicideFunky> so for using the board in a system its more praktical to set the boot pins i suppose
2012-05-20T14:57:46 < jpa-> well for using in a system, why would you boot from sram?
2012-05-20T15:06:57 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-20T15:15:32 < SuicideFunky> hah, good point :)
2012-05-20T15:47:16 -!- ben1066_ is now known as ben1066
2012-05-20T15:49:48 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-20T15:50:45 < ratatata> nu
2012-05-20T15:52:25 < ratatata> Cannot join #uml (Channel is invite only).
2012-05-20T15:52:54 < ratatata> where can i get invite
2012-05-20T15:58:49 < ratatata> maybe
2012-05-20T15:59:17 < ratatata> but i have to write my course work at school
2012-05-20T15:59:23 < ratatata> and uml is required
2012-05-20T15:59:34 < ratatata> and even one of the most important parts
2012-05-20T16:23:59 -!- ntfreak_ [~ntfreak@unaffiliated/ntfreak] has joined ##stm32
2012-05-20T16:24:52 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has quit [Ping timeout: 272 seconds]
2012-05-20T16:33:54 < cjbaird> 5 seconds:  perl -e 'foreach $n (1..10) { print "$n "; }'
2012-05-20T16:35:01 < cjbaird> Or even..  perl -e 'foreach $n (0..255) { print "/* $n */\n"; }'
2012-05-20T17:02:11 -!- izua [~izua@5-13-152-174.residential.rdsnet.ro] has joined ##stm32
2012-05-20T17:02:12 -!- izua [~izua@5-13-152-174.residential.rdsnet.ro] has quit [Changing host]
2012-05-20T17:02:12 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-20T17:02:15 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-20T17:44:30 -!- tavish [~tavish@120.59.10.252] has joined ##stm32
2012-05-20T17:44:30 -!- tavish [~tavish@120.59.10.252] has quit [Changing host]
2012-05-20T17:44:30 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-20T18:04:47 -!- CheBuzz [~CheBuzz@76.164.192.124] has joined ##stm32
2012-05-20T18:14:16 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |]
2012-05-20T19:30:08 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 240 seconds]
2012-05-20T19:39:17 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection]
2012-05-20T19:39:34 -!- zippe [~Adium@173.11.99.161] has joined ##stm32
2012-05-20T20:02:37 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds]
2012-05-20T20:04:54 -!- avernos [~avernos@222.128.144.116] has joined ##stm32
2012-05-20T20:04:54 -!- avernos [~avernos@222.128.144.116] has quit [Changing host]
2012-05-20T20:04:54 -!- avernos [~avernos@unaffiliated/avernos] has joined ##stm32
2012-05-20T20:05:43 -!- avernos [~avernos@unaffiliated/avernos] has quit [Read error: Connection reset by peer]
2012-05-20T20:07:37 -!- tavish [~tavish@120.56.139.220] has joined ##stm32
2012-05-20T20:07:37 -!- tavish [~tavish@120.56.139.220] has quit [Changing host]
2012-05-20T20:07:37 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-20T20:12:52 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-20T20:12:57 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-20T20:27:10 -!- _abc_ [~user@unaffiliated/ccbbaa] has joined ##stm32
2012-05-20T20:27:16 < _abc_> hello
2012-05-20T20:27:24 < _abc_> ah I see some known avatars here
2012-05-20T20:27:47 < _abc_> Can anyone point out in 10 words which ones of the tools below for stm32 are completely free and preferrably run on linux? http://www.st.com/internet/com/software/ides_mcu.jsp
2012-05-20T20:27:50 < _abc_> (if any)
2012-05-20T20:31:04 <+Steffanx> CooCox is afaik, but windows only
2012-05-20T20:31:09 <+Steffanx> And you need a compatible programmer
2012-05-20T20:31:16 <+Steffanx> Arh, more than 10 words
2012-05-20T20:32:37 < zyp> I hear dongs like coocox, so it's probably good
2012-05-20T20:32:44 <+Steffanx> What?!
2012-05-20T20:35:47 <+Steffanx> I mean, part of the IDE has an opensauce flavour ..
2012-05-20T20:36:06 <+Steffanx> btw zyp, GDB works like a charm
2012-05-20T20:36:12 <+Steffanx> Eclipse currently still fails
2012-05-20T20:38:03 < zyp> ah, dunno about the IDE, but he talked about coocox itself being decent
2012-05-20T20:38:20 <+Steffanx> The IDE is eclipse based iirc
2012-05-20T20:39:13 < zippe> _abc_: what are you used to?
2012-05-20T20:41:17 < zyp> Steffanx, well, I've never used eclipse, so I can't help you with that
2012-05-20T20:41:33 <+Steffanx> No, but it was just to let you know :)
2012-05-20T20:42:43 < zyp> IMO debugger integration with source editor is not of much value, since optimized assembly usually is pretty different from the source
2012-05-20T20:43:17 -!- dekar_ [~dekar@dslb-084-059-138-181.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep]
2012-05-20T20:44:39 < zyp> and trying to mitigate that by compiling without optimizations sounds like a bad workaround to me
2012-05-20T20:45:16 <+Steffanx> So you only debug the assembly?
2012-05-20T20:46:45 < zyp> if I need to follow the path of execution I refer to the assembly rather than the source, yes
2012-05-20T20:47:19 <+Steffanx> I don't know much about thumb2, so that's not an option
2012-05-20T20:47:25 <+Steffanx> for me
2012-05-20T20:47:43 < zippe> Steffanx: the unified syntax looks a lot like the old ARM syntax, it's easy to follow
2012-05-20T20:47:59 < zyp> usually I set breakpoints on function boundaries of non-inlined functions and inspect values from there
2012-05-20T20:48:00 <+Steffanx> I don't know the old ARM syntax either
2012-05-20T20:48:02 < zippe> And most of the T1 encodings are just subsets
2012-05-20T20:48:08 < zippe> Ok, still not hard to follow
2012-05-20T20:48:15 < zippe> Dig out the ARM reference manual if you must
2012-05-20T20:48:20 < zyp> because those are kind of barriers
2012-05-20T20:48:56 < zippe> The worst part about debugging with gdb is that it thinks it can infer things by decoding the instruction stream
2012-05-20T20:48:57 < zyp> but inside functions instructions corresponding to different lines become mixed together and interleaved
2012-05-20T20:49:03 < zippe> and it gets *very* upset by hand-written assembly
2012-05-20T20:49:14 <+Steffanx> Yeah, but I prefer to do everything inside for example Eclipse instead of using the GDB commands myself :)
2012-05-20T20:50:19 < zyp> also, the thing about assembly is that it's dead easy to learn, but tedious to write
2012-05-20T20:50:37 < zyp> reading it is not as hard as you think it is
2012-05-20T20:52:51 < zyp> refer to the source while reading, look at the branch/jump instructions first to see where calls and loops are, then look at where memory accesses are performed to locate those
2012-05-20T20:53:02 < zyp> and then you have the general structure
2012-05-20T20:54:10 <+Steffanx> I can still do that using eclipse, instead of typing the gdb commands myself :P
2012-05-20T20:54:16 <+Steffanx> So time to get it functional in an IDE
2012-05-20T20:54:50 < zyp> when I code I code, when I debug I debug
2012-05-20T20:55:06 < zyp> I prefer a good code editor and a decent debugger rather than a mediocre mix of both :p
2012-05-20T20:55:50 <+Steffanx> it gives my both without the mediocre stuff imho
2012-05-20T20:56:01 < zyp> good for you
2012-05-20T20:56:02 < zyp> :)
2012-05-20T20:56:09 <+Steffanx> but that's another discussion
2012-05-20T20:57:04 <+Steffanx> The Eclipse is crap, VIM is the best discussion
2012-05-20T20:58:48 < zyp> I just like the KISS principle
2012-05-20T20:59:13 < _abc_> Okay so http://www.arm.com/products/tools/software-tools/mdk-arm/index.php is free (Lite) but requires registration
2012-05-20T20:59:19 < _abc_> 32k limit windows only
2012-05-20T20:59:29 < zyp> _abc_, what are you after?
2012-05-20T21:00:16 <+Steffanx> So do I zyp, but .. nah i'll pass this time
2012-05-20T21:00:54 < zyp> _abc_, are you looking for a full fledged IDE?
2012-05-20T21:01:17 < zyp> if not, a gcc toolchain and some other small utilities will do
2012-05-20T21:01:25 < _abc_> I am exploring for now
2012-05-20T21:01:31 < _abc_> I am used to vi and gcc
2012-05-20T21:01:51 < _abc_> A gui is okay on any platform if it is reasonably standard
2012-05-20T21:02:05 < zyp> this is your choice
2012-05-20T21:02:20 < _abc_> Any programmers for stm32vldiscovery on linux?
2012-05-20T21:02:26 < _abc_> I have such a board connected now
2012-05-20T21:02:29 < zyp> yes, texane/stlink
2012-05-20T21:02:33 < zyp> (google it)
2012-05-20T21:02:35 < _abc_> k
2012-05-20T21:03:15 < zyp> and if you want to compile code for it, you just need arm-none-eabi-gcc
2012-05-20T21:03:36 <+Steffanx> So you just run gdb next to vim or some special feature/plugin/script/whatever? zyp ?
2012-05-20T21:04:14 < zyp> Steffanx, I write the code in my editor, type scons in the command line to compile it, then load it with gdb
2012-05-20T21:04:34 < _abc_> the programmer integrated onto stm32vl is a stlink?
2012-05-20T21:04:38 < zyp> yes
2012-05-20T21:04:48 <+Steffanx> stlink/v1 to be more specific
2012-05-20T21:05:09 <+Steffanx> The newer boards have a v2
2012-05-20T21:06:20 <+Steffanx> Which doesn't use the crappy usb mass storage implementation
2012-05-20T21:07:10 < zyp> I were reading DFU specs the other day
2012-05-20T21:07:29 < zyp> I'm considering writing my own bootloader
2012-05-20T21:08:13 < zyp> was a bit surprised by how generic it is
2012-05-20T21:16:05 < _abc_> configure.ac:8: require Automake 1.10, but have 1.9.6
2012-05-20T21:16:12 < _abc_> GRRR someone is living on the bleeding edge
2012-05-20T21:16:42 < _abc_> By the way, is there really a 32MB storage space on that thing? Does not look like it
2012-05-20T21:17:02 < BrainDamage> no
2012-05-20T21:17:15 < BrainDamage> the usb mass storage is totally bullshit
2012-05-20T21:17:22 < BrainDamage> it uses hardcoded replies
2012-05-20T21:17:30 < BrainDamage> and fail even at that
2012-05-20T21:17:42 < _abc_> Clever
2012-05-20T21:17:56 < _abc_> I was preparing to copy in some tools I need elsewhere with this board ;(
2012-05-20T21:18:19 < _abc_> Okay so whose value line is this (not mine heh)
2012-05-20T21:19:27 < _abc_> okay I think I'm done with this thing 10 more minutes then it goes back
2012-05-20T21:19:30 < _abc_> whence it came
2012-05-20T21:22:48 <+Steffanx> "this thing" = stm32vldiscovery?
2012-05-20T21:25:19 -!- _abc_ [~user@unaffiliated/ccbbaa] has quit [Ping timeout: 252 seconds]
2012-05-20T21:25:39 < jpa-> karlp: heh, first victim of the texane/stlink autotoolization :)
2012-05-20T21:29:32 < zippe> Ugh, you didn't, really?
2012-05-20T21:29:40 < zippe> autotools -> instant massive failure
2012-05-20T21:29:56 < jpa-> he didn't
2012-05-20T21:30:04 < zippe> zyp: what purpose for bootloader?
2012-05-20T21:30:06 < jpa-> texane did.. or he just accepted patch by someone
2012-05-20T21:30:11 < zippe> *barf*
2012-05-20T21:30:17 < zippe> That's lame
2012-05-20T21:30:32 < jpa-> and yes, it is a failure
2012-05-20T21:32:08 -!- _abc_ [~user@unaffiliated/ccbbaa] has joined ##stm32
2012-05-20T21:32:25 < zippe> _abc_: if you are used to the editor + gcc model, then the ARM bare-metal toolchain is your best bet
2012-05-20T21:32:53 < zippe> https://launchpad.net/gcc-arm-embedded
2012-05-20T21:33:41 < zippe> It's totally unfancy, but it Just Worksâ„¢
2012-05-20T21:33:54 -!- dekar [~dekar@dslb-084-059-138-181.pools.arcor-ip.net] has joined ##stm32
2012-05-20T21:33:57 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-20T21:37:47 < _abc_> yes that is what I need
2012-05-20T21:37:53 < _abc_> But I have networking problems now
2012-05-20T21:42:14 < _abc_> the software upgrade for stlink is for the board? I mean it upgrades the stm32vl onboard programmer? http://www.st.com/internet/evalboard/product/219866.jsp#SOFTWARE_AND_DEVELOPMENT_TOOLS
2012-05-20T21:44:32 < zippe> _abc_: The stlink stuff is just the host-side tool
2012-05-20T21:44:46 < zippe> If you want to replace the firmware on the onboard programmer, the blackmagic firmware can be used for that
2012-05-20T21:45:18 < _abc_> oh I want to *avoid* doing that
2012-05-20T21:45:24 < _abc_> I want to take this thing back unchanged
2012-05-20T21:45:27 < _abc_> no time for it
2012-05-20T21:46:41 < _abc_> I wonder what happened to my network connection. Am on gprs now :/
2012-05-20T21:49:40 <+Steffanx> gprs :D
2012-05-20T21:49:56 < _abc_> Am I right to say STM8 can also be programmed with texane?
2012-05-20T21:50:25 < _abc_> Steffanx: I just calculated I need 80 minutes to dl a 24MB file like that. Pass.
2012-05-20T21:58:13 -!- dekar [~dekar@dslb-084-059-138-181.pools.arcor-ip.net] has quit [Ping timeout: 244 seconds]
2012-05-20T22:00:24 < _abc_> Do I need the stlink USB drivers for Windows too? Or are they a separate issue?
2012-05-20T22:01:25 < BrainDamage> drivers? there's no drivers for st-link, the linux tool accesses the device trough libusb directly
2012-05-20T22:01:48 < BrainDamage> in fact on linux, in order to get it working properly, you want that the mass storage drivers stop trying to access it
2012-05-20T22:02:05 < BrainDamage> on windows such workaround isn't necessary, because it was designed around windows' quirks
2012-05-20T22:02:46 < BrainDamage> stlinkv2 has no usb mass storage bullshit, so works out the box on all os
2012-05-20T22:10:15 < _abc_> http://www.st.com/internet/evalboard/product/219866.jsp#SOFTWARE_AND_DEVELOPMENT_TOOLS plase look here. What is that windows driver (bottom item)
2012-05-20T22:10:57 < _abc_> Also what is that thing about software update?
2012-05-20T22:10:59 < zyp> windows drivers are for windows
2012-05-20T22:11:44 < zyp> sounds like you're overthinking something, it's not so hard
2012-05-20T22:12:52 < _abc_> Yes, we are talking stlink. Stlink is windows. Do I need the drivers yes or no?
2012-05-20T22:12:52 < _abc_> Assuming I get stlink
2012-05-20T22:12:52 < _abc_> Which I am now, by gprs (groan)
2012-05-20T22:13:17 < zyp> first of all, which os are you using?
2012-05-20T22:14:23 < _abc_> Something went titsup about the network provider, the local link is okay, the fiber modem is okay, I can't reach any nameservers or the main gw from inside the high speed net. I can reach it from outside...
2012-05-20T22:14:23  * _abc_ assumes a backhoe proble,
2012-05-20T22:14:23 < _abc_> *m
2012-05-20T22:14:23 < _abc_> Although it is Sunday evening
2012-05-20T22:15:14 < zyp> party in the server room, somebody tripped in a cable
2012-05-20T22:15:26 <+Steffanx> Sorry!
2012-05-20T22:15:33 < zyp> blame Steffanx
2012-05-20T22:35:01 -!- ntfreak_ is now known as ntfreak
2012-05-20T22:36:06 < _abc_> zyp: I use linux normally, wine when it cannot be helped, and xp when I have no choice
2012-05-20T22:36:06 < _abc_> Or Vista
2012-05-20T22:37:39 < zyp> then forget everything about windows driver and shit
2012-05-20T22:38:07 < zyp> everything you need to get started is the gcc toolchain and texane utility
2012-05-20T22:38:31 < zyp> and perhaps a stm32 peripheral library if you don't want to write everything from scratch
2012-05-20T22:42:37 < _abc_> yes I got a number of things today, maybe I will have time for this next week
2012-05-20T22:44:32 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-20T22:53:10 < Tectu> why should this strcpy fail?  http://pastebin.com/dsGNf8iP
2012-05-20T22:53:28 < Tectu> when i comment out f_write (f_open is successful), it crashes at strcpy()
2012-05-20T22:57:57 < zyp> you got a debugger now, right?
2012-05-20T22:59:09 < Tectu> zyp, right
2012-05-20T22:59:18 < zyp> ok, how does it crash?
2012-05-20T22:59:24 < Tectu> zyp, and i'd be very very happy to see how to use it in this situation now :)
2012-05-20T22:59:28 < zippe> tectu: what's the crash, and how much stack are you allocating?
2012-05-20T22:59:30 < Tectu> zyp, dunno, tell me how to find out ;-)
2012-05-20T22:59:44 < zippe> when you say "it crashes", what does that mean?
2012-05-20T22:59:46 < Tectu> the crash is -> LED thread stops blinking the LED, and shell becomes unaccessible :D
2012-05-20T22:59:56 < Tectu> btw, i use chibios
2012-05-20T23:00:08 < Tectu> tell me guys, what to do to use the debugger ability now?
2012-05-20T23:00:11 < zyp> so how do you know it crashed at strcpy?
2012-05-20T23:00:43 -!- zippe [~Adium@173.11.99.161] has quit [Quit: Leaving.]
2012-05-20T23:00:53 < Tectu> zyp, when i uncommend strcpy() and f_write() it dosen't crash. when i only uncomment f_write, it does crash
2012-05-20T23:00:59 < Tectu> so i am sure that it is not the problem from f_write
2012-05-20T23:01:08 < zyp> anyway, connect/setup/start gdb and everything you need to use gdb
2012-05-20T23:01:16 < Tectu> done.
2012-05-20T23:01:30 < zyp> so you've interrupted the cpu?
2012-05-20T23:01:39 < Tectu> what do you mean?
2012-05-20T23:01:48 < zyp> have you started gdb?
2012-05-20T23:01:57 < Tectu> jep
2012-05-20T23:02:00 < Tectu> i have loaded the program
2012-05-20T23:02:02 < Tectu> the *.elf
2012-05-20T23:02:08 < zyp> good
2012-05-20T23:02:10 < Tectu> ready to   (gdb) run
2012-05-20T23:02:14 < zyp> yes, do that
2012-05-20T23:02:25 < Tectu> done
2012-05-20T23:02:35 < zyp> and now it's supposedly crashed?
2012-05-20T23:02:49 < zyp> interrupt it (ctrl-c) and see where it's hanging around
2012-05-20T23:02:52 < Tectu> it crashes after i call the function i pasted   cmd_write()
2012-05-20T23:03:12 < Tectu> and cmd_write() is triggered over shell (usart)
2012-05-20T23:03:16 < Tectu> ok
2012-05-20T23:03:35 < Tectu> 0x08000410 in ?? ()
2012-05-20T23:03:43 < Tectu> i guess this is the actual address?
2012-05-20T23:03:51 < zyp> sounds right
2012-05-20T23:03:59 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-20T23:04:13 < zyp> why doesn't it resolve the address to a symbol?
2012-05-20T23:04:25 < Tectu> i don't know?
2012-05-20T23:04:27 < zyp> use «file foo.elf» to load the elf
2012-05-20T23:04:29 < Tectu> i guess i have to do that myself?
2012-05-20T23:04:32 < zyp> substitute foo for whatever
2012-05-20T23:04:42 < zyp> no, gdb is supposed to do that for you
2012-05-20T23:05:00 < Tectu> ah, i always did:    $ arm-none-eabi-gdb;   (gdb) load foo.elf ;   (gdb) run
2012-05-20T23:05:20 < zyp> I always do file foo.elf, then load without any arguments
2012-05-20T23:05:46 < Tectu> ah
2012-05-20T23:05:47 < Tectu> sec
2012-05-20T23:06:20 < zyp> I'm expecting it to be in one of the fault handlers, if it has crashed
2012-05-20T23:06:44 < Tectu> here we go:
2012-05-20T23:06:45 < Tectu> _unhandled_exception ()
2012-05-20T23:06:46 < Tectu>     at /home/tectu/projects/resources/chibios/os/ports/GCC/ARMCMx/STM32F1xx/vectors.c:194
2012-05-20T23:06:48 < Tectu> 194	void _unhandled_exception(void) {
2012-05-20T23:06:56 < zyp> right
2012-05-20T23:07:12 < zyp> probably hardfault and no hardfault handler
2012-05-20T23:07:25 < zyp> do «info registers»
2012-05-20T23:07:31 < zyp> what's the value in cpsr?
2012-05-20T23:08:07 < Tectu> don't have cpsr
2012-05-20T23:08:14 < Tectu> have xpsr
2012-05-20T23:08:23 < zyp> ah, it's the same
2012-05-20T23:08:25 < Tectu> xpsr           0x1000003	16777219
2012-05-20T23:08:31 < zyp> it has different names here and there
2012-05-20T23:08:40 < zyp> yes
2012-05-20T23:08:58 < zyp> that number 3 indicates that it's in ISR 3, which is the hardfault handler
2012-05-20T23:09:19 < zyp> what do you get if you type «p/x SCB»?
2012-05-20T23:09:26 < zyp> I'm suspecting that you don't have it defined
2012-05-20T23:09:50 < Tectu> No symbol "SCB" in current context.
2012-05-20T23:09:56 < zyp> ok
2012-05-20T23:09:58 < zyp> hang on
2012-05-20T23:10:02 < Tectu> sure
2012-05-20T23:10:37 < zyp> let's just find the addresses of the interesting registers then
2012-05-20T23:11:26 < zyp> SCB.CFSR is 0xe000ed28, print that
2012-05-20T23:11:44 < zyp> p/x *(uint32_t*)0xe000ed28
2012-05-20T23:12:20 < Tectu> (gdb) SCB.CFSR is 0xe000ed28
2012-05-20T23:12:20 < Tectu> Undefined command: "SCB".  Try "help".
2012-05-20T23:12:20 < Tectu> (gdb) p/x *(uint32_t*)0xe000ed28
2012-05-20T23:12:20 < Tectu> $1 = 0x400
2012-05-20T23:12:22 < Tectu> (gdb)
2012-05-20T23:12:24 -!- zippe [~Adium@173.11.99.161] has joined ##stm32
2012-05-20T23:12:26 < zyp> http://infocenter.arm.com/help/topic/com.arm.doc.dui0552a/Cihcfefj.html <- reference for CFSR is here
2012-05-20T23:13:12 < Tectu> lol, i failed at (gdb) SCB.CFSR is 0xe000ed28
2012-05-20T23:13:26 < zyp> you're getting IMPRECISERR
2012-05-20T23:14:21 < Tectu> so
2012-05-20T23:14:39 < Tectu> how does that help one with standard calls like strcpy?
2012-05-20T23:14:53 < Tectu> 1 = a data bus error has occurred, but the return address in the stack frame is not related to the instruction that caused the error.
2012-05-20T23:15:30 < zyp> yep
2012-05-20T23:15:58 < zyp> I've seen that myself, I'm trying to remember what the problem was
2012-05-20T23:16:55 < zyp> it means «something bad happened, but I could not record exactly what caused it»
2012-05-20T23:17:22 < Tectu> you got that with strcpy() too?
2012-05-20T23:17:45 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
2012-05-20T23:18:19 < zyp> no
2012-05-20T23:18:46 < zyp> oh, wait
2012-05-20T23:18:51 < zyp> which chip is this?
2012-05-20T23:19:32 < zyp> when you did info registers, what was the value of sp?
2012-05-20T23:19:33 < Tectu> STM32F103VET6
2012-05-20T23:19:58 < _abc_> opinions on http://www.arm.com/products/tools/software-tools/mdk-arm/middleware-libraries/rtx-real-time-operating-system.php ?
2012-05-20T23:20:02 < _abc_> Is it considered good?
2012-05-20T23:20:19 < zyp> never heard about it
2012-05-20T23:20:22 < _abc_> 300 cycles context switch?!
2012-05-20T23:20:26 < _abc_> Looks like windows man
2012-05-20T23:21:21 < Tectu> zyp, how does chip matter here?
2012-05-20T23:21:49 < zyp> amount of memory
2012-05-20T23:21:55 < zyp> anyway, what's the value of sp?
2012-05-20T23:22:10 < zyp> I'm suspecting that you're using too much stack
2012-05-20T23:22:24 < Tectu> zyp, could that be of buffer[4096]  ?
2012-05-20T23:22:37 <+Steffanx> Yes
2012-05-20T23:22:42 < zyp> yes, you're allocating a 4k buffer from the stack
2012-05-20T23:23:05 < zyp> if this causes the stack to grow out of ram, strcpy will try to copy into another part of memory
2012-05-20T23:23:09 < Tectu> zyp, what's the easiest way to get value of sp?
2012-05-20T23:23:14 < zyp> info registers
2012-05-20T23:23:32 < zyp> this should also work: p/x $sp
2012-05-20T23:23:33 < Tectu> sp             0x20000400	0x20000400     owned?
2012-05-20T23:23:40 < Tectu> whats  p/x  all the time?
2012-05-20T23:23:45 < zyp> print hex
2012-05-20T23:24:04 < zyp> if you do p without /x it will print in decimal
2012-05-20T23:24:25 < Tectu> ah
2012-05-20T23:24:34 < Tectu> so the two rows with  info registers   what do they mean?
2012-05-20T23:24:58 < zyp> huh?
2012-05-20T23:25:21 < Tectu> ah, never mind
2012-05-20T23:25:32 < Tectu> (gdb) p/x $sp
2012-05-20T23:25:32 < Tectu> $2 = 0x20000400
2012-05-20T23:25:48 < zyp> that sounds pretty low
2012-05-20T23:26:03 < Tectu> is that good or bad?
2012-05-20T23:26:09 < Tectu> stackpointer should be low?
2012-05-20T23:26:11 < zyp> so you're likely using way too much stack
2012-05-20T23:26:19 < Tectu> ah, now, stack is from top to bottom, right?
2012-05-20T23:26:26 < zyp> yes
2012-05-20T23:26:55 < zyp> oh, and you said you're using chibios?
2012-05-20T23:26:56 < Tectu> so i got no RAM left, to say it simply?
2012-05-20T23:26:59 < Tectu> yes
2012-05-20T23:27:00 < zyp> are you using several threads?
2012-05-20T23:27:01 < Tectu> that's right
2012-05-20T23:27:07 < Tectu> just one, for blinking led
2012-05-20T23:27:12 < Tectu> with 128 workspace
2012-05-20T23:27:22 < zyp> ok
2012-05-20T23:27:41 < zyp> yes, you can probably say that you're out of RAM
2012-05-20T23:27:46 < Tectu> so in this case it's the problem that the 4k are too much?
2012-05-20T23:27:48 < Tectu> damn.
2012-05-20T23:27:51 < Tectu> how can that happen :D
2012-05-20T23:28:02 < Tectu> afaik my mcu does have 64k ram?
2012-05-20T23:28:17 <+Steffanx> Which one is that?
2012-05-20T23:28:25 < zyp> try reducing the buffer size to 64 bytes or something and try again
2012-05-20T23:28:27 < Tectu> Steffanx, STM32F103VET
2012-05-20T23:28:39 < zyp> just to verify that we've identified the problem
2012-05-20T23:29:19 < Tectu> works.
2012-05-20T23:29:27 < zyp> yep, then that was it
2012-05-20T23:29:41 < Tectu> thank you very much :)
2012-05-20T23:29:49 < Tectu> also gave ma a good jump-in to using gdb
2012-05-20T23:29:58 < Tectu> but when i go with  (gdb) info registers
2012-05-20T23:30:06 < Tectu> what do the different rows mean?
2012-05-20T23:30:11 < Tectu> is that documented somewhere properly?
2012-05-20T23:30:36 < zyp> at first I was thinking maybe you were linking with arm stuff instead of thumb stuff, and that's why it were crashing when it called strcpy
2012-05-20T23:30:51 < zyp> but if that was the case, CFSR would contain something else
2012-05-20T23:31:13 < Tectu> never got that  "arm / thumb" stuff, btw... what is that -mthumb i have to use?
2012-05-20T23:31:23 < Tectu> and i don't want the link to the gcc documentation
2012-05-20T23:31:24 < Tectu> i read it
2012-05-20T23:31:26 < Tectu> and i don't get it :D
2012-05-20T23:31:26 < zyp> INVSTATE, i.e. 0x20000
2012-05-20T23:31:32 < zyp> well
2012-05-20T23:31:56 < zyp> you know how ARM is a whole family of CPUs?
2012-05-20T23:32:33 < zyp> there exists two branches of ARM instruction sets
2012-05-20T23:32:50 < zyp> one is the original «arm» instruction set with 32-bit instructions
2012-05-20T23:33:15 < zyp> to save space they later invented a 16-bit instruction set to save space, and called that «thumb»
2012-05-20T23:33:42 < Tectu> ah
2012-05-20T23:33:51 < Tectu> and cm3 or stm32 uses the thumb one?
2012-05-20T23:33:55 < zyp> some ARM CPUs support both these sets, and can switch seamlessly between them, so each function can be written in whatever instruction set is the most efficient
2012-05-20T23:34:43 < zyp> but cortex-m CPUs only support the thumb set, so any attempt to switch to arm-mode triggers an usage fault for invalid state
2012-05-20T23:34:52 < zyp> that is the INVSTATE bit in CFSR
2012-05-20T23:35:40 < Tectu> i see
2012-05-20T23:36:07 < zyp> if you get a hardfault, CFSR is the first place to look, because that contains the reason for triggering a hardfault
2012-05-20T23:36:26 < Tectu> but what about the different coloumns when i do  (gdb) info registers   now?
2012-05-20T23:36:34 < Tectu> good, i'll note that down
2012-05-20T23:36:37 < Tectu> thank you very much zyp
2012-05-20T23:36:57 < zyp> one column is the register name, one is the contents, are there more?
2012-05-20T23:37:06 < Tectu> zyp, CFSR is just like the common status register which holds flags about divide by zero etc. on small AVRs, PICs etc?
2012-05-20T23:37:31 < Tectu> ah, there are not more, just creapy formatted
2012-05-20T23:38:23 < Tectu> zyp, but there are three rows
2012-05-20T23:38:26 < zyp> you're probably thinking about the register containing overflow and carry bits and so on?
2012-05-20T23:38:39 < Tectu> zyp, right
2012-05-20T23:38:49 < Tectu> CFSR isn't similar?
2012-05-20T23:38:52 < zyp> no, that one is listed in info registers, I forget what it's called
2012-05-20T23:39:02 < zyp> CFSR means configurable fault status register
2012-05-20T23:39:16 < Tectu> zyp, three rows:   http://pastebin.com/fM8RZSMj
2012-05-20T23:39:20 < Tectu> and 4 with symbol at pc ;-)
2012-05-20T23:39:24 < Tectu> pc is program counter, right?
2012-05-20T23:39:40 < zyp> it's composed of three different sections, usage fault status register, bus fault status register and memmanage fault status register
2012-05-20T23:40:04 < zyp> it's columns, not rows :p
2012-05-20T23:40:24 < Tectu> aw, right columns >.<
2012-05-20T23:40:36 < Tectu> so first one is name of course
2012-05-20T23:40:44 < zyp> first column is name, second column is contents in hex, third column is contents in natural base
2012-05-20T23:41:07 < Tectu> how does one define natural?
2012-05-20T23:41:11 < zyp> sp and pc are normally pointers, so they are always in hex, the rest are in dec
2012-05-20T23:41:12 < Tectu> i see decimal and hex
2012-05-20T23:41:18 < Tectu> that makes sense
2012-05-20T23:41:45 < Tectu> zyp, let's say i see the value of the pc
2012-05-20T23:41:49 < zyp> don't think too much about it, the contents are the same anyway so just read the one that fits the contents best
2012-05-20T23:41:54 < Tectu> and i want to jump to that line in code
2012-05-20T23:41:55 < Tectu> how to do?
2012-05-20T23:42:23 < Tectu> how does one jump to   pc 0x8000618    easiest way?
2012-05-20T23:42:29 < zyp> jump how?
2012-05-20T23:42:34 -!- ben1066_ [~quassel@host86-160-28-236.range86-160.btcentralplus.com] has joined ##stm32
2012-05-20T23:42:34 -!- ben1066_ [~quassel@host86-160-28-236.range86-160.btcentralplus.com] has quit [Changing host]
2012-05-20T23:42:34 -!- ben1066_ [~quassel@unaffiliated/ben1066] has joined ##stm32
2012-05-20T23:42:40 < Tectu> well, just show the current line in sourcecode
2012-05-20T23:42:41 < Tectu> or elf file
2012-05-20T23:42:45 < Tectu> dunno, that's why i ask
2012-05-20T23:42:59 < Tectu> i guess with the debugger, I should be able to read out where the CPU is at the moment and jump to that line in code?
2012-05-20T23:43:04 < zyp> objdump -d will give you an assembly listing, just find the line starting with that addr
2012-05-20T23:43:12 < zyp> ah
2012-05-20T23:43:16 < zyp> info disassembly
2012-05-20T23:43:17 -!- ben1066 [~quassel@unaffiliated/ben1066] has quit [Ping timeout: 246 seconds]
2012-05-20T23:43:20 < zyp> I believe
2012-05-20T23:43:51 < Tectu> ah, never got difference between objdump -d and -D from man page... can you give small understandable summary of the difference?
2012-05-20T23:44:13 < zyp> -d only disassembles the .text section, -D disassembles all sections
2012-05-20T23:44:22 < Tectu> ah
2012-05-20T23:44:30 < Tectu> why can't they write it there that way
2012-05-20T23:44:34 < zyp> usually only .text contains executable code, so the other sections don't make sense to disassemble
2012-05-20T23:44:55 < zyp> oh, it says that
2012-05-20T23:44:56 < zyp>   -d, --disassemble        Display assembler contents of executable sections
2012-05-20T23:44:56 < zyp>   -D, --disassemble-all    Display assembler contents of all sections
2012-05-20T23:45:29 < zyp> anyway, I'm away for a moment
2012-05-20T23:45:40 < Tectu> sure
2012-05-20T23:45:45 < Tectu> thank you very very much zyp!
2012-05-20T23:53:54 < Tectu> zyp, why does the   (gdb) run    command take so long, btw?
2012-05-20T23:54:00 < Tectu> isn't it just a kind of a hard reset?
2012-05-20T23:55:56 -!- TeknoJuce [TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
--- Day changed Mon May 21 2012
2012-05-21T00:03:13 < zippe> It does a bunch of slow stuff
2012-05-21T00:03:31 < zippe> If you're using stlink, watch all the chitchat as it sets up
2012-05-21T00:04:42 < zyp> ok, back
2012-05-21T00:11:00 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 244 seconds]
2012-05-21T00:11:37 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Ping timeout: 272 seconds]
2012-05-21T00:12:07 < Tectu> zippe, when i type   run   whith my stlink, i don't see anything chipchat or something else output
2012-05-21T00:12:11 < Tectu> zyp, see question above
2012-05-21T00:12:33 < zyp> zippe answered it
2012-05-21T00:12:42 < zyp> the chitchat is in the stlink-window
2012-05-21T00:12:49 < Tectu> ah, that one
2012-05-21T00:13:12 < Tectu> what's KARL, btw ?
2012-05-21T00:13:23 < zyp> KARL?
2012-05-21T00:13:37 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32
2012-05-21T00:13:50 < Tectu> 2012-05-20T23:43:28 INFO src/stlink-common.c: Flash written and verified! jolly good!
2012-05-21T00:13:50 < Tectu> send: OK
2012-05-21T00:13:50 < Tectu> recv: vKill;a410
2012-05-21T00:13:50 < Tectu> send: OK
2012-05-21T00:13:52 < Tectu> recv: ?
2012-05-21T00:13:54 < Tectu> send: OK
2012-05-21T00:13:56 < Tectu> recv: R0
2012-05-21T00:13:58 < Tectu> KARL - should read back as 0x03, not 60 02 00 00
2012-05-21T00:14:02 < Tectu> init watchpoints
2012-05-21T00:14:04 < Tectu> send: OK
2012-05-21T00:14:05 -!- TeknoJuce [TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 246 seconds]
2012-05-21T00:14:06 < Tectu> recv: qC
2012-05-21T00:14:37 < zyp> sounds like a debug message added by someone named karl
2012-05-21T00:14:46 < zyp> I suspect that might be karlp
2012-05-21T00:16:15 < Tectu> hehe
2012-05-21T00:16:48 < Tectu> btw, when you have an SD card in windows, and you rightclick on it -> "format"   you can set the allocation size
2012-05-21T00:17:00 < Tectu> there is   "use devices default allocation size"
2012-05-21T00:17:08 < Tectu> and others do have  4096 bytes as default value
2012-05-21T00:17:16 < Tectu> i guess 4096 is the default of all sd cards?
2012-05-21T00:19:20 -!- blkcat [~colin@cider.blkcat.net] has joined ##stm32
2012-05-21T00:19:56 < blkcat> hey guys! i just (finally) got my arm toolchain spun up and stlink working on debian in vmware - i seem to be able to connect to my f4 discovery board just fine but attempting to load any of the example code fails
2012-05-21T00:19:59 < zyp> Tectu, no idea
2012-05-21T00:20:11 < blkcat> http://pastebin.com/T9A4nLRc any ideas?
2012-05-21T00:20:24 < zyp> blkcat, I'll take a look
2012-05-21T00:20:43 < blkcat> zyp: thank you kindly. :)
2012-05-21T00:20:46 < zyp> ah, those examples
2012-05-21T00:21:00 < blkcat> i've been banging my head against nxp's cortex chips for ages now but it looks like stm32 is the way to go.
2012-05-21T00:21:24 < zyp> have you tried several of those examples? I hear some of those are bad
2012-05-21T00:25:20 < blkcat> hmmm...
2012-05-21T00:27:20 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-21T00:30:14 < Tectu> zyp, when i go with
2012-05-21T00:30:15 < Tectu> (gdb) p/x $pc
2012-05-21T00:30:15 < Tectu> $3 = 0x8000410
2012-05-21T00:30:16 < blkcat> sweet jesus it works
2012-05-21T00:30:18 < Tectu> what does the $3 means?
2012-05-21T00:30:23 < blkcat> well, the load did anyhow. with a different example.
2012-05-21T00:30:39 < zyp> Tectu, it's the reference gdb assigns the value
2012-05-21T00:30:52 < zyp> so it's the third value you've printed
2012-05-21T00:30:58 < Tectu> ah, like   print $3  would be the same?
2012-05-21T00:31:00 < Tectu> ah
2012-05-21T00:31:03 < Tectu> i understand
2012-05-21T00:31:04 < Tectu> thanks
2012-05-21T00:31:05 < zyp> I believe you can refer to it by $3 later, yes
2012-05-21T00:31:35 < Tectu> a elm-chan FATFS related question, probably you guys now:  is the filename casesensitive?
2012-05-21T00:31:51 < zyp> blkcat, yeah, the first one were compiled to run from ram instead of flash
2012-05-21T00:32:00 < zyp> some other guy were having problems with the same last week
2012-05-21T00:32:04 < blkcat> i will say that nxp's web site is far superior to st's haha. ;)
2012-05-21T00:32:12 <+Steffanx> FAT isn't case sensitive is it?
2012-05-21T00:32:19 < zyp> everybody is bashing st's site :)
2012-05-21T00:32:27 < zyp> Steffanx, no, it's not
2012-05-21T00:32:28 < blkcat> it's pretty awful. D:
2012-05-21T00:32:38 < Tectu> zyp, i am happy whenever there even is a ST site ;-)
2012-05-21T00:32:44 < blkcat> but i'm willing to put up with it if it means a working arm dev environment.
2012-05-21T00:32:49 < Tectu> i don't know about you, but sometimes it takes ages to load that site(s)
2012-05-21T00:33:17 < zyp> I've found it loads really fast when I'm at work
2012-05-21T00:33:22 < zyp> faster than most other sites
2012-05-21T00:33:29 <+Steffanx> You are at an ST nw :p
2012-05-21T00:33:33 < Tectu> zyp, heard something about you get intranet version of ST?
2012-05-21T00:33:36 < blkcat> (and stm32 even has a proper community! hush hush my trilling heart)
2012-05-21T00:33:37 < zyp> :p
2012-05-21T00:33:57 < Tectu> zyp, how to find out which is the bottom address of the stack on my device?
2012-05-21T00:34:02 < Tectu> on any device*
2012-05-21T00:34:06 < zyp> huh?
2012-05-21T00:34:25 < zyp> you mean max stack size?
2012-05-21T00:34:28 < Tectu> jep
2012-05-21T00:34:30 < zyp> it's not fixed
2012-05-21T00:35:03 < Tectu> for example when i had that problem before, we had sp at 0x20000400  <-- i guess that is not the maximum stack size at any other STM32 too
2012-05-21T00:35:13 < zyp> usually you have the stack growing downwards and the heap growing upwards in the leftover block of memory, when they collide you're out of memory
2012-05-21T00:35:30 < Tectu> so that's why i ask, how can i find out, whenever i print sp over gdb, if it is at bottom or not?
2012-05-21T00:35:30 < zyp> so it really depends on your application
2012-05-21T00:35:35 < Tectu> aaah
2012-05-21T00:35:36 < Tectu> sure
2012-05-21T00:35:36 < Tectu> right
2012-05-21T00:35:39 < Tectu> i remember...
2012-05-21T00:36:18 < Tectu>  but my F103 here does have 64kB of SDRAM.... how hungry is chibios, when i blink an LED, drive shell thingy and cannot get 4k of stack?
2012-05-21T00:37:38 < Tectu> i know that i cannot use 64k for stack
2012-05-21T00:37:53 < Tectu> but 4k isn't that much, or is it? (in case you just flash an LED)
2012-05-21T00:38:04 < blkcat> hm... the program loaded but it doesn't seem to actually be running.
2012-05-21T00:38:08 < zippe> tectu: the issue is not that you can't give it more stack, but that possibly you just haven't
2012-05-21T00:38:08 < blkcat> how odd.
2012-05-21T00:38:47 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Ping timeout: 245 seconds]
2012-05-21T00:38:55 < Tectu> zippe, not sure, if i understand what you are trying to say me
2012-05-21T00:39:56 < zippe> tectu: you have to set up the stack; the initial stack pointer is in the vector table, and it's up to you to ensure that it points to a part of RAM that's not used for anything else, and large enough
2012-05-21T00:41:18 < Tectu> ah, i see
2012-05-21T00:43:36 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32
2012-05-21T00:49:04 < Tectu> btw
2012-05-21T00:49:05 < Tectu> Loading section .text, size 0x7aa4 lma 0x8000130
2012-05-21T00:49:08 < Tectu> what does lma mean?
2012-05-21T00:49:14 < zippe> logical memory address
2012-05-21T00:49:29 < zippe> There's probably a vectors section below that
2012-05-21T00:50:35 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Ping timeout: 256 seconds]
2012-05-21T00:52:03 < Tectu> ah
2012-05-21T00:52:56 < zyp> Tectu, you're using chibios, it might do some magic with stack allocations
2012-05-21T00:53:08 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32
2012-05-21T00:53:26 < zyp> each thread have it's own stack, and then you can have a seperate stack for ISRs as well
2012-05-21T00:53:47 < Tectu> hmm
2012-05-21T00:53:54 < Tectu> okay
2012-05-21T00:54:05 < Tectu> magic is always good in lowlevel stuff...
2012-05-21T00:54:27 < zyp> it's only magic until you understand it
2012-05-21T00:55:32 < Tectu> that's true
2012-05-21T00:55:34 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Quit: Leaving]
2012-05-21T00:55:45 < Tectu> awesome how gdb has short form for every command, even if it is so tiny...
2012-05-21T00:55:57 < Tectu> i mean     target extended localhost:4242   -->  tar ext :4242
2012-05-21T00:55:57 < Tectu> okay
2012-05-21T00:56:06 < Tectu> but    (gdb) run  ->  (gdb) ru   wtf?
2012-05-21T00:56:21 < Tectu> you save exactly 0.004248 seconds of your life
2012-05-21T00:56:39 < zyp> I bet the gcc command parser just supports every unambiguos form
2012-05-21T00:57:02 <+Steffanx> isn't 'r' enough Tectu ?
2012-05-21T00:57:05 < zyp> so if you only have one command starting with ru, ru is a valid short form
2012-05-21T00:57:17 < Tectu> Steffanx, wasn't brave enough to try ;-)
2012-05-21T00:57:31 < Tectu> ah, tought that someone might have written the parser table by hand..
2012-05-21T00:57:33 < zyp> irssi does the same
2012-05-21T00:57:41 < Tectu> ok
2012-05-21T00:57:47 < Tectu> never mind then, sorry
2012-05-21T00:57:55 < Tectu> Steffanx, r is enough
2012-05-21T00:58:02 < zyp> I've been using /wi m u and /wi bal for /window move up and /window balance
2012-05-21T00:58:25 < zyp> and /wi sho for /windows show
2012-05-21T00:59:52 < Tectu> tbh: i use xchat
2012-05-21T00:59:54 < Tectu> too many channels
2012-05-21T01:00:08 < Tectu> #bash #gimp #kvm #qemu #archlinux #linuxcnc #lua #vim #sqlite ##windows #librecad #propeller ##linux-ops ##hardware ##workingset #go-nuts #reprap #drupal ##c #tectu ##electronics ##stm32 #lugo ##linux +##xbox
2012-05-21T01:00:14 < Tectu> and this is only on freenode
2012-05-21T01:00:46 <+Steffanx> ##c ?!?!
2012-05-21T01:00:54 < Tectu> Steffanx, ?
2012-05-21T01:01:12 <+Steffanx> You're able to survive that channel?
2012-05-21T01:01:20 < Tectu> Steffanx, well, yes
2012-05-21T01:01:24 < zyp> «hey, I'm on a channel for everything I'm using»
2012-05-21T01:01:24 < Tectu> but it's hard :D
2012-05-21T01:01:45 < Tectu> Steffanx, so i am not the only one that thinks that ##c is the worst place on earth?
2012-05-21T01:02:12 <+Steffanx> At least the worst place on freenode
2012-05-21T01:02:20 < BrainDamage> zyp: what about #life
2012-05-21T01:02:23 < Tectu> zyp, no, more like "hey, I'm on every channel which i use at least in a weekly base"
2012-05-21T01:02:24 < BrainDamage> or #food
2012-05-21T01:02:26 < BrainDamage> #water
2012-05-21T01:02:43 <+Steffanx> At least you're not in #brain :P
2012-05-21T01:02:49 <+Steffanx> s
2012-05-21T01:02:53 < Tectu> -.-
2012-05-21T01:03:01 < Tectu> owned, sir :)
2012-05-21T01:03:07 < zyp> :D
2012-05-21T01:03:28 < Tectu> Steffanx, is the #penis  joke following or not?
2012-05-21T01:03:39 < zyp> you're not using that either?
2012-05-21T01:03:54 < Tectu> not true
2012-05-21T01:05:13 <+Steffanx> I'm in #sleep .. good night
2012-05-21T01:05:19 < Tectu> see you Steffanx
2012-05-21T01:05:44 < zyp> I'm not in a huge lot of channels, I'm just following Steffanx around so I can tease him
2012-05-21T01:07:04 < Tectu> hrhr
2012-05-21T01:07:33 < Tectu> zyp, i guess you used sd cards in generall with stm32 before?
2012-05-21T01:07:42 < zyp> no, never
2012-05-21T01:07:54 < Tectu> ok
2012-05-21T01:08:00 < zyp> in fact, I've never interfaced with sd-cards from any MCU
2012-05-21T01:08:30 < Tectu> did it on propeller and stm32... do you know the propeller chips?  8 cores - pretty useless things?
2012-05-21T01:09:45 < zyp> never touched one, but the hat gives the impression of it being a toy :p
2012-05-21T01:10:00 < Tectu> it actually is :D
2012-05-21T01:10:02 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 245 seconds]
2012-05-21T01:10:08 < Tectu> i don't think that someone ever used it in a useful thing
2012-05-21T01:10:19 < Tectu> i mean a real useful thing that gets really used
2012-05-21T01:10:50 < Tectu> btw, you with your experience... what do you think, when are there MCUs like the stm32 with more than one core?
2012-05-21T01:11:09 < zyp> like LPC4300?
2012-05-21T01:11:14 < zyp> last year. :p
2012-05-21T01:11:21 < Tectu> oh :(
2012-05-21T01:11:21 < Tectu> :D
2012-05-21T01:11:25 < Tectu> is it useful?
2012-05-21T01:12:02 < Tectu> oh wait, i heard of that... but isnt it one m3 and one m0 just as coprocessor?
2012-05-21T01:12:18 < Tectu> i talk about real multicores, not coprocessors
2012-05-21T01:12:19 < zyp> yep
2012-05-21T01:12:24 < Tectu> like 2x m3
2012-05-21T01:12:35 < zyp> time will show
2012-05-21T01:12:48 < zyp> what do you need it for?
2012-05-21T01:13:35 < zyp> also, I'm tempted to mention omap4, since it contains two m3 cores, but that doesn't really count since that's not the main point of the chip :p
2012-05-21T01:14:37 < zyp> they are almost not even worth mentioning compared to the two a9 cores it also contain :p
2012-05-21T01:15:08 < Tectu> hmm
2012-05-21T01:15:19 < Tectu> what about the omap4 and dosen't count?
2012-05-21T01:15:24 < Tectu> two m3 core is dual core?
2012-05-21T01:15:36 < zyp> sure
2012-05-21T01:16:07 < zyp> but omap4 is a dual-a9 SoC, the two m3 cores are just coprocessors :p
2012-05-21T01:16:19 < Tectu> lol.
2012-05-21T01:16:45 < Tectu> i always wonder if a single person can handle such a thing as a hobby/in privat not within a company?
2012-05-21T01:18:22 < zyp> handling how? the soldering?
2012-05-21T01:18:50 < Tectu> everything
2012-05-21T01:18:52 < Tectu> developing the software
2012-05-21T01:18:56 < Tectu> etc. etc.
2012-05-21T01:19:01 < Tectu> everything from scratch
2012-05-21T01:19:06 < Tectu> as a single person
2012-05-21T01:19:11 < Tectu> like make a primitive smartphone
2012-05-21T01:19:17 < Tectu> not soldering in this case
2012-05-21T01:19:19 < Tectu> just the software
2012-05-21T01:19:32 < Tectu> btw, zyp:   http://chibios.sourceforge.net/html/group__memcore.html#ga1404de855a685500cb66e6c8560d4b25     "core memory"  is stack in this case?
2012-05-21T01:19:35 < zyp> just the software?
2012-05-21T01:19:38 < Tectu> zyp, yes
2012-05-21T01:20:57 < zyp> I believe I'd be able to do it, given hardware with all the documentation needed
2012-05-21T01:21:11 < Tectu> ok
2012-05-21T01:21:32 < zyp> depending on what features you'd require
2012-05-21T01:22:20 -!- _abc_ [~user@unaffiliated/ccbbaa] has quit [Ping timeout: 265 seconds]
2012-05-21T01:23:53 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-21T01:28:57 < Tectu> well, going to bed soon
2012-05-21T01:29:01 < Tectu> thanks for your help, zyp
2012-05-21T01:32:09 < zyp> no problems
2012-05-21T01:33:19 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-21T01:38:52 < blkcat> man, i am so ridiculously stoked right now haha.
2012-05-21T01:39:13 < blkcat> i have an arm that i can actually develop for! with a 100% free toolchain!
2012-05-21T01:39:17 < blkcat> if that isn't awesome i don't know what is.
2012-05-21T01:39:38 < Tectu> blkcat, is it that special? (no offense, i am really new to ARM)
2012-05-21T01:39:42 < Tectu> and i just now STM
2012-05-21T01:39:56 < Tectu> i know that is a pain to get a free toolchain working
2012-05-21T01:39:59 < Tectu> at least under arch
2012-05-21T01:40:02 < Tectu> arch linux*
2012-05-21T01:40:11 < blkcat> Tectu: probably not, but my only previous arm experience was with nxp's cortex lineup
2012-05-21T01:40:27 < blkcat> which has a great proprietary toolchain/ide but not a whole lot of community support.
2012-05-21T01:40:45 < Tectu> well GNU GCC should work on any ARM?
2012-05-21T01:41:03 < zyp> Tectu, yep
2012-05-21T01:41:04 < blkcat> it's programming/debugging that's the missing link with the nxp chips.
2012-05-21T01:41:17 < zyp> cortex-m3 is cortex-m3 either way
2012-05-21T01:41:52 < Tectu>  blkcat debugging is independend like programming to?
2012-05-21T01:41:59 < Tectu> well, from the software part
2012-05-21T01:42:16 < zyp> and the jtag/swd port comes with the cortex-m3, so that's the same as well
2012-05-21T01:42:17 < Tectu> GDB should work on any ARM too, if the manufacturer does provide a link
2012-05-21T01:42:24 < Tectu> je
2012-05-21T01:42:25 < Tectu> jep
2012-05-21T01:42:41 < Tectu> so i guess i should be able to handle LPC with my current toolchain too, right?
2012-05-21T01:42:46 < zyp> yes
2012-05-21T01:42:56 < blkcat> nxp doesn't include jtag on their cortex mcus, only swd.
2012-05-21T01:42:57 < zyp> except flashing
2012-05-21T01:43:06 < blkcat> and correct me if i'm wrong but the current free options for swd (stlink aside) are really awful
2012-05-21T01:43:07 < zyp> flash interface is different
2012-05-21T01:43:20 < zyp> blkcat, I'm using the blackmagic, it's great
2012-05-21T01:43:24 < Tectu> zyp, afaik they cannot not include that, right zyp? JTAG is INSIDE the IP core?
2012-05-21T01:43:48 < blkcat> zyp: blackmagic?
2012-05-21T01:43:55 < zyp> they can probably disable it, and they can surely not route the required signals for it
2012-05-21T01:44:08 < Tectu> true
2012-05-21T01:44:19 < zyp> blkcat, http://www.blacksphere.co.nz/main/blackmagic
2012-05-21T01:44:29 < Tectu> what the hell is  .co.nz ?
2012-05-21T01:44:45 < blkcat> Tectu: new zealand
2012-05-21T01:44:49 < blkcat> zyp: looks like that's only for stm32?
2012-05-21T01:45:17 < Tectu> zyp,   Examine and modify CPU registers and memory.   <--- can that my stlink too?
2012-05-21T01:45:31 < Tectu> i mean on runtime
2012-05-21T01:46:04 < zyp> blkcat, there is nothing stm32-specific there
2012-05-21T01:46:30 < blkcat> yeesh, i've got a lot of learning to do.
2012-05-21T01:46:38 < blkcat> sorry for all the dumb questions hah.
2012-05-21T01:46:48 < zyp> I'm not sure about the status on other mcus though
2012-05-21T01:46:58 < Tectu> zyp,   "Set up to 6 hardware assisted breakpoints."   <--- what's a hardware breakpoint?   when i set a breakpoint in (gdb), i guess it just stops whenever pc hits the matching address?
2012-05-21T01:47:00 < zyp> gsmcmullin would know, he's the guy behind it
2012-05-21T01:47:16 < zyp> Tectu, yes, that's a hardware breakpoint
2012-05-21T01:47:23 < zyp> hardware assisted
2012-05-21T01:47:24 < Tectu> blkcat, you're not the only dumb person in here ;-)
2012-05-21T01:47:47 < Tectu> why can you only make 6?
2012-05-21T01:47:53 < zyp> Tectu, it means that you don't have to do other trickery to make it stop there
2012-05-21T01:48:00 < zyp> because hardware only supports 6
2012-05-21T01:48:17 < Tectu> memory problem?
2012-05-21T01:48:30 < zyp> no, it's a limitation of the cpu
2012-05-21T01:48:50 < Tectu> ok
2012-05-21T01:48:50 < zyp> maybe it makes sense if I explain what the alternative is
2012-05-21T01:49:01 < Tectu> i'd like to hear that :)
2012-05-21T01:49:17 < zyp> the alternative is replacing the instruction at the breakpoint with another instruction triggering a soft breakpoint
2012-05-21T01:49:27 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32
2012-05-21T01:49:55 < zyp> i.e. altering the executable to make it stop there
2012-05-21T01:50:31 < Tectu> and this blows up the whole stuff like pc etc?
2012-05-21T01:50:37 < zyp> hardware breakpoints is using a cpu feature to stop at a given address without altering the executable
2012-05-21T01:51:08 < Tectu> i see
2012-05-21T01:51:11 < zyp> which means that the cpu keeps comparing current pc to a list of different values
2012-05-21T01:51:24 < Tectu> btw, what's  *.lst used for again?
2012-05-21T01:51:31 < Tectu> thought it was for debugging?
2012-05-21T01:51:32 < zyp> and this list have space for 6 values, i.e. 6 hardware breakpoints
2012-05-21T01:51:40 < zyp> it's not used for anything
2012-05-21T01:51:41 < blkcat> curious... what's the advantage of something like a black magic over e.g. the stlink?
2012-05-21T01:52:17 < zyp> for one, it's not vendor-specific
2012-05-21T01:52:52 < zyp> and it runs the entire gdb interface on the unit itself, so you don't need to run additional middleware between the hardware and gdb
2012-05-21T01:53:06 < blkcat> aha.
2012-05-21T01:53:07 < zyp> which also makes it os-independent
2012-05-21T01:53:59 < zyp> and so far it seems more reliable than stlink has been for me
2012-05-21T01:54:37 < zyp> the texane/stlink middleware have been written from reverse engineering, the blackmagic have been written from ground up
2012-05-21T01:55:59 < Tectu> zyp, people do not like texane/stlink that much, right?
2012-05-21T01:56:13 < zyp> oh, I liked it better than openocd
2012-05-21T01:56:32 < zyp> so it's not entirely horrible :p
2012-05-21T01:57:04 < Tectu> what do people not like about texane/stlink?
2012-05-21T01:57:19 < Tectu> it's the only one i know and it kinda works for me
2012-05-21T01:59:18 < Tectu> zyp, afaik there aren't any big alternatives too?
2012-05-21T01:59:47 < zyp> as I just said, the blackmagic is decent
2012-05-21T02:00:30 < Tectu> zyp, but what do people not like on texane/stlink?
2012-05-21T02:00:49 < BrainDamage> for once, it's slow
2012-05-21T02:00:59 < zyp> for me it was the unwieldy hardware
2012-05-21T02:01:27 < zyp> when you're working with other boards, having to drag around the discovery board is a hassle
2012-05-21T02:01:27 < Tectu> BrainDamage, and for the other?
2012-05-21T02:01:39 < zyp> and yes, it's slow
2012-05-21T02:01:43 < Tectu> zyp, i know, that why i got a real stlinkv2
2012-05-21T02:01:47 < BrainDamage> you could have bough the standalone st device
2012-05-21T02:01:52 < BrainDamage> stlink*
2012-05-21T02:01:59 < BrainDamage> I wish st would publis the source of the firmware
2012-05-21T02:02:09 < zyp> for me it did 1-2 kB/s
2012-05-21T02:02:12 < BrainDamage> so you know exactly what it can do, what it can't
2012-05-21T02:02:15 < zyp> blackmagic does 11
2012-05-21T02:02:17 < BrainDamage> and how to interface
2012-05-21T02:02:29 < Tectu> zyp, wtf?   i always get 10kB/s  with stand alone stlink and with discovery
2012-05-21T02:02:36 < BrainDamage> and perhaps even improve
2012-05-21T02:02:45 < Tectu> zyp, never got <10kB/s
2012-05-21T02:03:04 < zyp> Tectu, and then other people reports getting only 0.1 kB/s or so
2012-05-21T02:03:13 < zyp> so it's kind of variable
2012-05-21T02:03:14 < Tectu> lol?
2012-05-21T02:03:30 < Tectu> i have 3 computers doing stm32 development, and i have 10kB/s on each
2012-05-21T02:04:11 < Tectu> but i see, 100B/s isn't that funny, when you have 512kB :D
2012-05-21T02:04:32 < zyp> I were trying to trick a friend into helping me with stm32 stuff once, so I had him play with one of my discovery boards, he only got 100-200 kB/s across all his computers
2012-05-21T02:04:47 < BrainDamage> k?
2012-05-21T02:04:53 < zyp> I got 1-2 kB/s with the same hardware, same build of texane/stlink
2012-05-21T02:04:57 < BrainDamage> that's actually acceptable
2012-05-21T02:05:08 < zyp> sorry
2012-05-21T02:05:12 < zyp> 100-200 B/s
2012-05-21T02:05:14 < zyp> not kB :p
2012-05-21T02:05:15 < Tectu> zyp, 100-200kB/s ?
2012-05-21T02:05:16 < Tectu> ah :D
2012-05-21T02:05:29 < blkcat> ouch
2012-05-21T02:05:31 < Tectu> zyp, is it operation system dependend? i have indeed the same OS on all the computers
2012-05-21T02:05:59 < zyp> might be, I were running OS X, he were running linux on all his computers
2012-05-21T02:06:46 < Tectu> I run archlinux on all my computers and i get 10kB/s on all my computers
2012-05-21T02:07:01 < zyp> and I guess the speed might have been improved lately, when did you start playing with this? :)
2012-05-21T02:07:14 < Tectu> zyp, 2 weeks
2012-05-21T02:07:14 < zyp> my friend is also an archlinux guy
2012-05-21T02:07:19 < zyp> yeah
2012-05-21T02:07:32 < zyp> I haven't touched stlink for more time than that
2012-05-21T02:07:44 < Tectu> you might take a look again ;-)
2012-05-21T02:07:48 < Tectu> latest push is 4 days ago
2012-05-21T02:08:22 < zyp> I've got b0a477d on this computer here
2012-05-21T02:08:45 < zyp> you can see if that's as fast for you ;)
2012-05-21T02:09:23 < Tectu> well, would you do a git pull, rebuild and speed check?
2012-05-21T02:09:33 < Tectu> would be interesting if you still get so slow results
2012-05-21T02:10:46 < zyp> I'm visiting my parents this weekend, and didn't bring any hardware
2012-05-21T02:10:46 < Tectu> but i'm really going to bed now
2012-05-21T02:10:48 < Tectu> see you
2012-05-21T02:10:52 < zippe> Tectu: things I dislike about stlink
2012-05-21T02:11:03 < Tectu> zyp, no proble
2012-05-21T02:11:06 < Tectu> zippe, yeah?
2012-05-21T02:11:06 < zippe>  - when gdb disconnects, the server quits because the server loop is stupid
2012-05-21T02:11:07 < zyp> I'm flying home tomorrow evening, can check when I get home
2012-05-21T02:11:14 < Tectu> zippe, right, same issue here
2012-05-21T02:11:25 < Tectu> zyp, sure, would be interested
2012-05-21T02:11:34 < zippe>  - it doesn't have the right register xml, so you don't get the extra interesting registers
2012-05-21T02:11:46 < zippe>  - it doesn't understand lockup mode or how to get the device out of it
2012-05-21T02:12:07 < zippe>  - it doesn't understand how to reset the chip
2012-05-21T02:12:14 < zippe>  - sometimes the chip detect fails
2012-05-21T02:12:18 < zippe>  - sometimes flash programming fails
2012-05-21T02:12:26 < zippe>  - there is no reliable way to erase all the flash
2012-05-21T02:12:36 < zippe>  - the flash programming path has no verify feature
2012-05-21T02:12:56 < zippe> Some of the problems are GDB
2012-05-21T02:12:58 < Tectu> zippe, beside the server quitting and the reset/erase thing i don't know any issues. but i guess that's because i never used something differently :D
2012-05-21T02:13:17 < zippe> Understanding lockup mode is important
2012-05-21T02:13:29 < Tectu> but i guess things like the erasing should be implemented easily in the existing texane/stlink?
2012-05-21T02:13:37 < Tectu> whats the lockup mode?
2012-05-21T02:14:29 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-21T02:14:35 < zippe> If you put the MSP at the bottom of RAM because you think you're being smart and you want stack overflows to give you a hardfault
2012-05-21T02:15:02 < Tectu> i understand what you mean, but what's MSP?
2012-05-21T02:15:08 < zippe> Then when that hardfault happens the MSP will still be outside of the RAM range and you take a second hardfault immediately
2012-05-21T02:15:16 < zippe> MSP is the main stack pointer
2012-05-21T02:15:21 < Tectu> ah
2012-05-21T02:15:23 < Tectu> i see
2012-05-21T02:15:38 < zippe> Many people using the M3 just run everything with one stack pointer
2012-05-21T02:15:48 < zippe> You are better off using the PSP and reserving an exception stack
2012-05-21T02:15:56 < zippe> But that does take more RAM...
2012-05-21T02:16:17 < zyp> I'm going to do that once I revise my memory model
2012-05-21T02:16:21 < zippe> Anyway, when you take a fault while trying to handle a fault you will end up in lockup mode
2012-05-21T02:16:26 < zippe> Read the ARM documentation
2012-05-21T02:16:32 < zyp> I still haven't touched that since moving from F1 to F4
2012-05-21T02:16:36 < zippe> The lockup details are stored in the PC
2012-05-21T02:16:45 < zyp> I'm planning to move all stacks to CCM
2012-05-21T02:17:13 < zyp> seems like the most useful use of CCM
2012-05-21T02:17:17 < Tectu> zippe, so lockup mode is hardfault while hardfault, which is not that funny, i guess
2012-05-21T02:17:26 < Tectu> ah, now i understand why it's important to get the device out of it :D
2012-05-21T02:17:35 < Tectu> how can you get the device out of it anyways?
2012-05-21T02:19:44 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 245 seconds]
2012-05-21T02:20:58 < Tectu> Mr zippe ?
2012-05-21T02:22:17 < Tectu> anÅ·ways, real bed time now, i'll come back to that later
2012-05-21T02:22:18 < Tectu> cu
2012-05-21T02:23:49 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-21T02:23:57 < blkcat> jesus
2012-05-21T02:24:04 < blkcat> i need to find a good book on all this stuff, hah. :D
2012-05-21T02:31:48 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124]
2012-05-21T02:34:21 < zippe> blkcat: There's a pretty good book ARM recommend on the M3
2012-05-21T02:34:34 < zippe> Tectu: read the ARM documentation on lockup mode
2012-05-21T02:34:45 < zippe> And then read the TRM for the specific CPU
2012-05-21T02:34:54 < zippe> Then read the vendor datasheet (if any) on their specific implementation
2012-05-21T02:35:09 < zippe> Really, it's a bad idea to be working with these CPUs without having at least skimmed the CPU architecture docs
2012-05-21T02:35:12 < zippe> They're free and quite good
2012-05-21T02:35:29 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-21T02:37:40 < zippe> zyp: stacks in CCM isn't a bad idea, just be careful if you want to do e.g. I2C DMA to stack buffers
2012-05-21T02:44:13 < zyp> of course, all DMA to stack buffers would be disallowed
2012-05-21T02:45:22 < zyp> I'd likely allocate buffers from heap or dedicated pools and keep smart pointers to those on stack
2012-05-21T02:54:22 < blkcat> hmmmm.
2012-05-21T02:55:05 < emeb> Due to budget cuts today's eclipse has been cancelled.
2012-05-21T03:07:20 < blkcat> it looks like i could use segger's j-link gdb server to do swd?
2012-05-21T03:10:26 < zyp> yes
2012-05-21T03:15:45 < blkcat> maybe i'll just buy one of those, heh
2012-05-21T03:16:13 < blkcat> the edu version's only sixty bucks and i'm pretty sure i've spent at least that much trying to get this damned bus blaster to work
2012-05-21T03:35:59 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-21T03:36:23 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 252 seconds]
2012-05-21T03:43:26 -!- phantoneD is now known as phantoxeD
2012-05-21T03:51:12 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-21T04:00:37 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-21T04:03:13 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 276 seconds]
2012-05-21T04:03:36 -!- phantoneD is now known as phantoxeD
2012-05-21T04:21:58 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Disconnected by services]
2012-05-21T04:22:04 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-21T04:32:02 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-21T04:32:46 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 265 seconds]
2012-05-21T04:38:44 -!- phantoneD is now known as phantoxeD
2012-05-21T04:40:11 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Read error: Connection reset by peer]
2012-05-21T04:42:38 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 240 seconds]
2012-05-21T04:46:26 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has joined ##stm32
2012-05-21T04:57:50 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-21T05:00:47 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-21T05:12:08 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Quit: ZNC - http://znc.sourceforge.net]
2012-05-21T05:13:34 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-21T05:16:39 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32
2012-05-21T05:32:44 -!- izua [~izua@unaffiliated/izua] has quit [Quit: Pull me under]
2012-05-21T05:47:40 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has quit [Quit: Quit]
2012-05-21T07:26:43 < blkcat> ugh, i really wish i knew what was going on with my lpc1114.
2012-05-21T08:29:42 -!- _abc_ [~user@unaffiliated/ccbbaa] has joined ##stm32
2012-05-21T08:50:57 < Tectu> morning folks
2012-05-21T08:57:40 < blkcat> howdy.
2012-05-21T08:59:25 < Tectu> how's it going with your f4, blkcat ?
2012-05-21T09:06:02 < blkcat> not bad! i decided to spend a little more time dicking around with my lpc1114 too
2012-05-21T09:06:05 < blkcat> still no luck
2012-05-21T09:06:22 < Tectu> why do you use stm32 and lpc at the same time?
2012-05-21T09:07:14 < blkcat> well, the stm32 was an accident more or less
2012-05-21T09:07:19 < blkcat> i got the f4 discovery board for free :)
2012-05-21T09:07:26 < blkcat> originally i had my mind set on going with nxp
2012-05-21T09:10:11 < blkcat> aye
2012-05-21T09:10:19 < blkcat> but i'm having some weird clock issues with mine...
2012-05-21T09:10:29 < blkcat> strangely they only occur when i build with my own toolchain and flash with swddude.
2012-05-21T09:14:33 < Tectu> blkcat, toolchain != toolchain
2012-05-21T09:14:45 < Tectu> i had code sourcery, summon-arm-toolchain, and two others
2012-05-21T09:14:53 < Tectu> even with summon-arm-toolchain I had some problems
2012-05-21T09:15:33 < blkcat> yeah.
2012-05-21T09:15:43 < Tectu> zyp, you arround, sir?
2012-05-21T09:16:36 < blkcat> it's something to do with the cmsis SystemCoreClockUpdate function
2012-05-21T09:16:49 < blkcat> lpcxpresso's startup code calls it but the redistributable cmsis files nxp offers does not
2012-05-21T09:17:03 < blkcat> and when i try to do so in my code i get a fault
2012-05-21T09:17:17 < blkcat> ...what's strange is that when i compile my code (with the redistributable cmsis) on lpcxpresso it works fine.
2012-05-21T09:17:35 < Tectu> blkcat, i know the same problem with the stdlib from stm32
2012-05-21T09:17:49 < blkcat> so i'm just kind of mystified and frustrated haha.
2012-05-21T09:18:05 < blkcat> i've wasted so much time on this problem and i feel it's because i'm simply not knowledgable enough to puzzle it out
2012-05-21T09:18:11 < Tectu> well, under windows you don't have any of that issues
2012-05-21T09:18:19 < Tectu> i mean with proprietary software
2012-05-21T09:18:28 < Tectu> blkcat, ask in a forum?
2012-05-21T09:19:01 < blkcat> the other issue of course is that i have no way to debug my nxp chip from linux, i have to do it from inside lpcxpresso (and its toolchain)
2012-05-21T09:19:08 < blkcat> so maybe i'll make more headway if/when i get a j-link
2012-05-21T09:19:23 < Tectu> so you are heading go stm32 now?
2012-05-21T09:19:34 < blkcat> perhaps. :)
2012-05-21T09:19:34 < Tectu> you can use your existing discovery board as a full debugger for another stm32 ;)
2012-05-21T09:19:47 < blkcat> stm32 has certainly been more painless thus far.
2012-05-21T09:19:48 < Tectu> as far as i know stm32 hast just the best ARM community
2012-05-21T09:19:56 < Tectu> so you don't like pain?
2012-05-21T09:20:24 < blkcat> well, i'm no expert when it comes to embedded development.
2012-05-21T09:21:38 < Tectu> me eighter, but i try to become it, even if it takes 50 years :D
2012-05-21T09:21:48 < Tectu> it's such an interesting topic
2012-05-21T09:22:33 < blkcat> it certainly is.
2012-05-21T09:48:12 < Tectu> blkcat, ever used chibios?
2012-05-21T09:48:58 < blkcat> can't say that i have.
2012-05-21T10:02:35 -!- _abc_ [~user@unaffiliated/ccbbaa] has quit [Ping timeout: 244 seconds]
2012-05-21T10:10:37 -!- TeknoJuce [TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-21T10:29:47 < Tectu> yay it works :D
2012-05-21T10:31:04 < Tectu> blkcat, people say that pissing and cumming are the most awesome feelings on earh... i think the most awesome feeling is when something embedded stuff works after a big fail without someone helping you :D
2012-05-21T10:36:00 < Tectu> people said, "don't use ... as arguments in c functions, it's dangerous" they said. now i know why
2012-05-21T10:42:50 < SuicideFunky> i totally agree with your statement tectu :)
2012-05-21T10:43:01 < Tectu> SuicideFunky, thanks ;-)
2012-05-21T10:43:47 < SuicideFunky> :)
2012-05-21T10:43:52 < SuicideFunky> i once jumped into the world of linux and embedded, i never regret it
2012-05-21T10:44:16 < Tectu> true
2012-05-21T10:44:21 < Tectu> me too
2012-05-21T10:44:27 < Tectu> most people hate it, i love it
2012-05-21T10:44:33 < Tectu> even if nothing works for 3 days
2012-05-21T10:44:38 < Tectu> the feeling when it works, is it worth
2012-05-21T10:44:49 < SuicideFunky> exactly
2012-05-21T10:45:16 < SuicideFunky> not to mention there is enough work for embedded engineers
2012-05-21T10:45:22 < SuicideFunky> at lest here in the netherlands
2012-05-21T10:45:27 < SuicideFunky> *least
2012-05-21T10:45:31 < Tectu> aw, your from the netherlands?
2012-05-21T10:45:37 < Tectu> i'm going there on july
2012-05-21T10:45:42 < SuicideFunky> yes
2012-05-21T10:45:45 < Tectu> my girlfriend is from there
2012-05-21T10:45:52 < SuicideFunky> ah, great!
2012-05-21T10:45:53 < Tectu> well, her parents, she born and grew up here
2012-05-21T10:46:02 < SuicideFunky> where are you from then?
2012-05-21T10:46:17 < Tectu> switzerland
2012-05-21T10:46:52 < Tectu> the netherland language is funny... when i see something written in dutch, it looks like someone just dropped the head on the keyboard :D
2012-05-21T10:46:55 < Tectu> lkajflshdlahkfsjdflksadf   :D
2012-05-21T10:47:02 < SuicideFunky> hahahah :D
2012-05-21T10:47:03 < Tectu> ah, and of course always double vocals
2012-05-21T10:47:14 < Tectu> you can't write a single word in dutch without at least two A's
2012-05-21T10:47:40 < SuicideFunky> now that you mention it hah
2012-05-21T10:48:24 < SuicideFunky> its a difficult language for foreign ppl
2012-05-21T10:48:43 < SuicideFunky> im studying a bit czech for my vacation there this summer
2012-05-21T10:48:49 < Tectu> well, if you have knowledge of french, german and english, like me, you can understand at least about what topic they are talking
2012-05-21T10:48:50 < SuicideFunky> thats twice as difficult
2012-05-21T10:49:35 < Tectu> when my gf talks with her parents, they always do talk in dutch (all of them can speak german, but they want to keep the language fluency, which i understand), i could understand about 75% after two weeks
2012-05-21T10:49:36 < SuicideFunky> indeed, dutch has many words borrowed from those languages
2012-05-21T10:50:00 < Tectu> it's just weird because the swiss german here sounds the same (just sounds, not is)
2012-05-21T10:50:14 < Tectu> so when they start talking, i have to think for the first 10 words, if they talk german or dutch now
2012-05-21T10:50:28 < Tectu> and the worst thing is, that some dutch sentenses are completly in english o0
2012-05-21T10:50:33 < Tectu> like "as usual"
2012-05-21T10:50:38 -!- TeknoJuce [TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 240 seconds]
2012-05-21T10:52:14 < SuicideFunky> hah
2012-05-21T10:52:30 < SuicideFunky> then its easy for you to learn a bit dutch
2012-05-21T10:52:44 < SuicideFunky> if you know french/german/english
2012-05-21T10:52:49 < SuicideFunky> especially german
2012-05-21T10:53:08 < Tectu> yeah
2012-05-21T10:53:12 < Tectu> but it's hard just by listening
2012-05-21T10:53:22 < SuicideFunky> thats true
2012-05-21T10:53:43 < Tectu> we are together now since decembre (and will be until wie die ;-) )  but after the first few weeks, i didn't learn something more
2012-05-21T10:53:53 < Tectu> understanding is nothing when you don't know the gramar
2012-05-21T10:54:00 < Tectu> or even know how to pronounce letters
2012-05-21T10:54:14 < SuicideFunky> yes
2012-05-21T10:54:30 < SuicideFunky> how did you meet over such a distance?
2012-05-21T10:55:05 < Tectu> as i said, she's born and rised here. here parents moved to switzerland before they "made" her
2012-05-21T10:55:22 < Tectu> she lives a few km from my place
2012-05-21T10:55:29 < Tectu> and we met at school
2012-05-21T10:55:47 < SuicideFunky> good :)
2012-05-21T10:55:58 < Tectu> yeah, cannot complain at all :D
2012-05-21T10:56:12 < Tectu> and best thing: she can use linux \o/
2012-05-21T10:56:21 < Tectu> well, at least clickibunti versions like linux mint
2012-05-21T10:56:37 < Tectu> but she's interested in learning programming C and lowlevel stuff, she told me a few days ago :3
2012-05-21T10:56:49 < SuicideFunky> wow you're a lucky b'tard =D
2012-05-21T10:56:51 < Tectu> and somehow she's the hottest girl all over the place :D
2012-05-21T10:57:05 < SuicideFunky> then you're even more lucky
2012-05-21T10:57:08 < Tectu> don't have "normal" picture that i can provide, sorry :D
2012-05-21T10:57:09 < Tectu> jep
2012-05-21T10:57:10 < SuicideFunky> they are hard to find
2012-05-21T10:57:13 < Tectu> luckiest guy ever
2012-05-21T10:57:18 < SuicideFunky> hehe :)
2012-05-21T10:57:25 < SuicideFunky> im glad for you
2012-05-21T10:57:32 < Tectu> hot, beatyful, sex girlfriend which can programm bootloaders from scratch up \ø/
2012-05-21T10:57:51 < SuicideFunky> and understands what you are saying when you are talking C or asm
2012-05-21T10:57:56 < Tectu> yeah
2012-05-21T10:58:04 < Tectu> well, she has no knowledge about that yet
2012-05-21T10:58:12 < cjbaird> ..and will nag you for touching the postfix/main.cf file.. :P :)
2012-05-21T10:58:19 < Tectu> but she understand when i talk about SSL / TLS, HTTP TCP/IP etc. with a friend of mine ;)
2012-05-21T10:58:37 < SuicideFunky> =D
2012-05-21T10:58:42 < Tectu> she also knows what i mean when i talk about the OSI model xD
2012-05-21T10:58:56 < SuicideFunky> thats just awesome
2012-05-21T10:58:59 < Tectu> yeah
2012-05-21T10:59:24 < Tectu> cannot complain at all :D
2012-05-21T11:01:33 < SuicideFunky> at least she knows why you type a semicolon after every sentence :p
2012-05-21T11:01:52 < SuicideFunky> it happends to me sometimes
2012-05-21T11:01:59 < SuicideFunky> without even noticing
2012-05-21T11:02:55 < Tectu> haha
2012-05-21T11:03:14 < SuicideFunky> have to leave for school, fixing stupid ass uml crap
2012-05-21T11:03:21 < SuicideFunky> thankfully this only lasts a few weeks
2012-05-21T11:03:24 < Tectu> that was a pain too... you might heard of go? golang.org  i learned that a few weeks ago... only wrote go code for weeks, then back to C.... damn alle these missing semicolons
2012-05-21T11:03:35 < Tectu> but i have to say, that the C syntax is the best syntax which i know
2012-05-21T11:03:40 < Tectu> don't know why people don't like it
2012-05-21T11:03:59 < Tectu> it's clear, easy readable (as far as you don't fuck it up on purpose) and very very "safe"
2012-05-21T11:04:16 < SuicideFunky> indeed, it gives you much freedom on the syntax
2012-05-21T11:04:22 < SuicideFunky> that can be good or bad at the same time
2012-05-21T11:05:06 < SuicideFunky> but in practice i've seen much clear coding
2012-05-21T11:05:15 < Tectu> well, in go for example, when you have if clauses, you have to write     } else if {   on the same line. you cannot go with   }  '\r\n'  else if {
2012-05-21T11:05:23 < Tectu> that was freaking me out half an hour :D
2012-05-21T11:05:52 < SuicideFunky> hah :)
2012-05-21T11:06:06 < SuicideFunky> i personally dont do that
2012-05-21T11:06:09 < SuicideFunky> at least not anymore
2012-05-21T11:06:13 < SuicideFunky> just all on newlines
2012-05-21T11:06:21 < Tectu> me eighter
2012-05-21T11:06:39 < Tectu> well, most c people also disslike leaving the { } brackets when you have only one-line if clauses... don't know why
2012-05-21T11:07:01 < Tectu> they say it's unsafe when putting more code in it... well, you need a little bit brain to code, you cannot say syntax suck because of such a tiny thing, in my opinion
2012-05-21T11:07:38 < Tectu> when i take a look to my go projects, where you cannot leave the { } brackets, i see arround two dozen times the thing     if err != nil { fmt.printf(err) }
2012-05-21T11:07:52 < cjbaird> My once-fiancee (her fundie parents went apeshit..) still has an account on this machine.. https://imgur.com/M763O
2012-05-21T11:08:04 < Tectu> and that is at least one line (When you put the first bracket to the if itself) which is "unused"
2012-05-21T11:08:14 < SuicideFunky> yes i understand what you mean Tectu
2012-05-21T11:08:20 < SuicideFunky> they told me its unsafe too
2012-05-21T11:08:39 < Tectu> SuicideFunky, but ever had problems? - no, i guess
2012-05-21T11:09:06 < Tectu> cjbaird, what the hell happened there?
2012-05-21T11:09:21 < SuicideFunky> no, because i notice it immediately :)
2012-05-21T11:09:33 < SuicideFunky> and but the curly brackets in place when i have to type more lines
2012-05-21T11:09:37 < SuicideFunky> *put
2012-05-21T11:09:52 < Tectu> jep, me too
2012-05-21T11:10:17 < cjbaird> Me: avowed Atheists. Her: non-obervant. Them: Fundie Catholics. When her family found out we were serious, they did the full-on Emotional Blackmail shit on her.. Eventually she had a break-down. :/
2012-05-21T11:10:20 < Tectu> when you have time, read this, SuicideFunky http://golang.org/doc/articles/gos_declaration_syntax.html
2012-05-21T11:10:29 < SuicideFunky> thanks Tectu
2012-05-21T11:10:41 < Tectu> cjbaird, that's sad to hear
2012-05-21T11:10:49 < Tectu> but i talked about the picture/screenshot :D
2012-05-21T11:11:18 < Tectu> SuicideFunky, they complain with     f func(func(int,int) int, int) func(int, int) int
2012-05-21T11:11:31 < Tectu> this is valid and compileable, but noone would ever ever write that
2012-05-21T11:11:34 < Tectu> never ever*
2012-05-21T11:12:35 < SuicideFunky> holy crap
2012-05-21T11:12:36 < SuicideFunky> indeed
2012-05-21T11:12:36 < cjbaird> Tectu: we lived together for about 3.5 years.. (obviously in secret .. When her sisters visited, I moved into the 'Decoy Bedroom'. :)
2012-05-21T11:13:04 < SuicideFunky> sounds unpleasant cjbaird
2012-05-21T11:14:06 < Tectu> cjbaird, why was that necessary?
2012-05-21T11:14:14 < Tectu> i mean 3.5 years? damn that sounds really sad
2012-05-21T11:14:25 < Tectu> i mean we are geeks/nerds, but we deserve better
2012-05-21T11:15:34 < cjbaird> Catholics: "No Sex Before Marriage" B.S ... "Yeah, good luck with that. :P" :) ..but I also overheard comments like "..having a Husband who is without God..." -_-
2012-05-21T11:15:56 < Tectu> ah
2012-05-21T11:15:57 < Tectu> yea
2012-05-21T11:16:00 < Tectu> know that a little
2012-05-21T11:16:03 < Tectu> not from current family
2012-05-21T11:16:07 < Tectu> they are atheists
2012-05-21T11:16:33 < Tectu> and here mother is like asking here a few weeks after we got together how i am in bed >.<
2012-05-21T11:16:50 < SuicideFunky> cool mother :)
2012-05-21T11:17:13 < Tectu> yeah
2012-05-21T11:17:36 < Tectu> SuicideFunky, they are netherlands, you remember
2012-05-21T11:17:51 < Tectu> so like the third or forth dinner they were like "Hey, do you smoke weed?"
2012-05-21T11:18:04 < SuicideFunky> =D
2012-05-21T11:19:01 < SuicideFunky> now you have to get a weed-card for getting weed
2012-05-21T11:19:09 < SuicideFunky> not really smart thing
2012-05-21T11:19:47 < SuicideFunky> difficult for 'outsiders' to get weed now
2012-05-21T11:20:26 < SuicideFunky> anyway doesnt matter i have a stock of my own plants thankfully
2012-05-21T11:21:10 < Tectu> SuicideFunky, my girlfriend is born and rised in switzerland, but has dutch passport, so no problem ;-)
2012-05-21T11:21:25 < SuicideFunky> nice!
2012-05-21T11:21:28 < Tectu> yeah
2012-05-21T11:21:35 < Tectu> but don't imagine me as a hippie
2012-05-21T11:21:37 < Tectu> still a nerd :D
2012-05-21T11:21:45  * cjbaird is a Homebrewman, although I've just settled into making ~15 litres lazy-ass Mead every month or so.
2012-05-21T11:21:50 < SuicideFunky> im not a hippie either lol
2012-05-21T11:21:51 < Tectu> and i don't smoke that often too, but that makes it better when i do ;)
2012-05-21T11:22:11 < Tectu> cjbaird, mead?
2012-05-21T11:22:21 < Tectu> SuicideFunky, where in netherland do you live?
2012-05-21T11:22:21 < cjbaird> Unfortunately, distilling is Naughty in AU.. :/
2012-05-21T11:22:23 < SuicideFunky> exactly that Tectu ;)
2012-05-21T11:22:38 < SuicideFunky> Tectu: Arnhem
2012-05-21T11:22:51 < Tectu> DAMN THERE IS THE FUCKING QLIMAX???????????
2012-05-21T11:22:57 < Tectu> isn't it?
2012-05-21T11:24:02 < cjbaird> mead = 3 kilos of honey, raisins, yeast, 2 gallon carboy + 6 weeks fermenting. Probably more an alcoholing Finnish Sima, really. But it's better than wasting a small fortune on real booze. :)
2012-05-21T11:24:20 < Tectu> cjbaird, sounds "funny" if you know what i mean ;)
2012-05-21T11:25:08 < Tectu> afk for 10
2012-05-21T11:27:41 < cjbaird> Did do more involved homebrew setup (including a still-- I won't say how much moonshine I made :), but Mead is what I can be bothered with now.
2012-05-21T12:00:41 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-21T12:32:50 < Tectu> dongs, what's coocox?
2012-05-21T12:33:42 < zyp> an rtos
2012-05-21T12:41:33 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-21T12:41:44 < Tectu> is it cool?
2012-05-21T12:44:09 < zyp> 10:11:31 < Tectu> this is valid and compileable, but noone would ever ever write that
2012-05-21T12:44:13 < zyp> why not?
2012-05-21T12:44:34 < Tectu> zyp, morning sir :)
2012-05-21T12:44:39 < zyp> morning
2012-05-21T12:44:42 < Tectu> zyp, because :D
2012-05-21T12:44:57 < Tectu> no you cannot do that without doing it on purpose
2012-05-21T12:45:54 < zyp> I disagree
2012-05-21T12:46:08 < Tectu> you mean you would write that?
2012-05-21T12:46:24 < zyp> a situation where you want a function pointer to a function taking a function pointer is not unimagineable
2012-05-21T12:46:53 < zyp> but no, I wouldn't
2012-05-21T12:47:33 < zyp> I would typedef the inner function pointer type and use that to typedef the outer function pointer type
2012-05-21T12:49:44 < Tectu> see ;-)
2012-05-21T12:49:47 < Tectu> but no, i understand what you mean
2012-05-21T12:49:58 < Tectu> btw, zyp, SD card works now, writing AND reading ;-)
2012-05-21T12:50:09 < Tectu> did some serious fail why reading caused stack overflow
2012-05-21T12:50:25 < Tectu> i did   chprintf("Some foo text %s\r\n", buffer)
2012-05-21T12:50:45 < Tectu> well, and i should go with   chprintf(chp, "Some foo text %s\r\n", buffer)
2012-05-21T12:51:01 < Tectu> well, you should always always read the compiler warnings?
2012-05-21T12:51:16 < zyp> of course
2012-05-21T12:51:46 < jpa-> -Werror is nice :)
2012-05-21T12:52:05 < Tectu> hey jpa-
2012-05-21T12:52:11 < zyp> my code usually compiles without any warnings, so they are a sign that something is wrong
2012-05-21T12:52:12 < Tectu> zyp, why does that make stackoverflow?
2012-05-21T12:52:15 < Tectu> i mean how
2012-05-21T12:52:32 < Tectu> zyp, well, when i start developing, i alway go with    warning: unused variable... -.-
2012-05-21T12:52:41 < jpa-> but yeah, i had a real pebkec moment also when it said "Warning: casting const char * to BaseChannel*" "Warning: casting long int to char *"
2012-05-21T12:53:17 < jpa-> Tectu: well not sure about stack overflow, but it'll atleast make a crash because it'll dereference random pointers
2012-05-21T12:53:35 < Tectu> well, i got   0x20000400
2012-05-21T12:53:46 < Tectu> wich yesterday zyp leaded to stackbottom
2012-05-21T12:53:51 < Tectu> which was the same here?
2012-05-21T12:54:17 < jpa-> after doing random things, random stuff happens :)
2012-05-21T12:54:34 < zyp> I don't think this was a stack overflow
2012-05-21T12:55:01 < zyp> and I think the sp value might be irrelevant, if you have a seperate handler stack
2012-05-21T12:55:50 < jpa-> yeah, you may need the psp trick with chibios
2012-05-21T12:56:38 < Tectu> :/
2012-05-21T12:56:45 < Tectu> an noone understands a word :D
2012-05-21T12:57:32 < jpa-> http://koti.kapsi.fi/jpa/stuff/other/stm32-hardfault-backtrace.html
2012-05-21T12:59:27 < Tectu> afk lunch
2012-05-21T12:59:29 < Tectu> take a look later
2012-05-21T12:59:30 < Tectu> see you
2012-05-21T13:00:02 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-21T13:00:02 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-21T13:00:14 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-21T13:01:41 < gsmcmullin> zyp: Thanks for the advertising above :)
2012-05-21T13:02:31 < zyp> I'm just stating that I like mine :)
2012-05-21T13:02:55 < gsmcmullin> That's worth so much more than me saying it.
2012-05-21T13:03:25 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 244 seconds]
2012-05-21T13:03:32 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 244 seconds]
2012-05-21T13:11:00 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-21T13:11:01 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-21T13:14:01 < karlp> zippe: I've written down your stlink issues thanks, it's often hard to actually collect what people are having issues with, or what they want to see next.
2012-05-21T13:14:23 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 244 seconds]
2012-05-21T13:14:23 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 244 seconds]
2012-05-21T13:14:33 < karlp> zyp: speed has improved in stlink, but it's still not as fast as it could? be.  Flashing in particular is also very particular on what chip you're flashing.
2012-05-21T13:14:50 < karlp> and for the record, no, I sure as hell don't endorse the autotools move.
2012-05-21T13:18:25 < zyp> I haven't commented anything about autotools, and the last version I used were older than that
2012-05-21T13:33:13 < Tectu> zyp, are you back at home yet?
2012-05-21T13:34:03 < Tectu> jpa-, what the hell does psp stand for?
2012-05-21T13:34:09 < Tectu> protected stack pointer?
2012-05-21T13:45:41 < Tectu> can't i go with:     static msg_t Thread2(BaseSequentialStream *chp)      and     chThdCreateStatic(waThread2, sizeof(waThread2), NORMALPRIO, Thread2, &SD1);     ???
2012-05-21T13:45:58 < Tectu> oh, i guess i see the problem ;)
2012-05-21T14:12:51 < zyp> Tectu, no, I'm catching a flight in five hours or so
2012-05-21T14:13:18 < zyp> will be home in ten
2012-05-21T14:13:33 < Tectu> ok
2012-05-21T14:13:38 < Tectu> france -> finnland?
2012-05-21T14:13:48 < zyp> no, norway -> norway :p
2012-05-21T14:14:22 < zyp> from north to south with two stops in between
2012-05-21T14:15:17 < Tectu> 5 hours?
2012-05-21T14:15:22 < Tectu> norway isn't that big, is it?
2012-05-21T14:16:11 < zyp> it includes 1.5 hours of waiting on the stops, and the 30 minutes commute home from the airport
2012-05-21T14:16:32 < Tectu> ah
2012-05-21T14:16:34 < Tectu> so 3 hours actual fight
2012-05-21T14:16:44 < zyp> something like that
2012-05-21T14:17:10 < SuicideFunky> zyp: you have northern winds where you live?
2012-05-21T14:17:12 < zyp> I believe it's around 1750km by road if I were to drive
2012-05-21T14:17:20 < SuicideFunky> wow
2012-05-21T14:18:02 < Tectu> oh
2012-05-21T14:18:31 < Tectu> zyp, maybe silly question, but you don't see northlight green flare things where you live, right?
2012-05-21T14:18:57 < SuicideFunky> my question too :P
2012-05-21T14:18:59 < zyp> not where I live in the south, but it's pretty common here in the north where I grew up
2012-05-21T14:19:07 < SuicideFunky> aurora is it called right?
2012-05-21T14:19:19 < Tectu> zyp, did you ever see it?
2012-05-21T14:20:01 < Tectu> (yourself)
2012-05-21T14:20:06 < zyp> Tectu, in the north? lots of times
2012-05-21T14:20:35 < Tectu> how is it? :)
2012-05-21T14:21:19 < SuicideFunky> i would really want to go there but economy standard is quite high compared to the netherlands
2012-05-21T14:21:40 < zyp> http://farm4.staticflickr.com/3166/2384486881_facda83e77_b.jpg <- I took this picture a few years ago
2012-05-21T14:22:08 < Tectu> holy creap
2012-05-21T14:22:12 < Tectu> thats beatyul
2012-05-21T14:22:16 < Tectu> beatyful*
2012-05-21T14:22:20 < Tectu> beautyful?
2012-05-21T14:22:21 < Tectu> bwah -.-
2012-05-21T14:22:30 < SuicideFunky> haha!
2012-05-21T14:22:33 < Tectu> how does one write beautyful right?
2012-05-21T14:22:56 < SuicideFunky> beautiful
2012-05-21T14:23:08 < SuicideFunky> y = i ;)
2012-05-21T14:23:45 < Tectu> ah :D
2012-05-21T14:24:08 < Tectu> SuicideFunky, is amsterdam like you know it from the movies?
2012-05-21T14:25:22 < SuicideFunky> i didnt see many movies from amsterdam and i've only been there twice :p
2012-05-21T14:25:36 < SuicideFunky> but i like the city
2012-05-21T14:25:41 < Tectu> why?
2012-05-21T14:26:09 < SuicideFunky> much to see
2012-05-21T14:26:18 < SuicideFunky> different from where i live
2012-05-21T14:28:01 < zyp> so, where are you guys from?
2012-05-21T14:28:26 < Tectu> zyp, switzerland:   http://www.ueliraz.ch/2008/belalp-2/brig-68.jpg
2012-05-21T14:28:30 < SuicideFunky> im from Arnhem, Netherlands
2012-05-21T14:29:03 < SuicideFunky> wow thats beautiful landscape Tectu
2012-05-21T14:29:09 < Tectu> SuicideFunky, i am sitting right there
2012-05-21T14:29:26 < zyp> :)
2012-05-21T14:29:38 < SuicideFunky> http://www.klusbedrijf-meijer.nl/Haven-Arnhem-Centrum.jpg
2012-05-21T14:29:38 < SuicideFunky> :)
2012-05-21T14:29:43 < Tectu> zyp, http://upload.wikimedia.org/wikipedia/commons/thumb/f/fe/Glishorn-briglina.jpg/280px-Glishorn-briglina.jpg
2012-05-21T14:30:24 < Tectu> zyp, know this one here?    http://www.ueliraz.ch/2004/gornergrat/zermatt-21.jpg
2012-05-21T14:30:30 < zyp> http://bin.jvnv.net/f/yv1Ps.JPG <- I went to a mountain here on christmas eve
2012-05-21T14:30:51 < Tectu> looks like screenshot from rollercoaster tycoon 3
2012-05-21T14:30:52 < Tectu> :D
2012-05-21T14:30:57 < zyp> sorry, new years eve
2012-05-21T14:31:07 < Tectu> is it rendered somehow?
2012-05-21T14:31:25 < zyp> it's a photo coming directly out of the camera
2012-05-21T14:31:42 < Tectu> well
2012-05-21T14:32:02 < zyp> oh
2012-05-21T14:32:09 < SuicideFunky> looks like a vacation spot for me
2012-05-21T14:32:14 < zyp> you were talking about SuicideFunkys pic?
2012-05-21T14:32:27 < zyp> still looks like a photo though :p
2012-05-21T14:32:28 < Tectu> well, everything here looks just like this:   http://img.fotocommunity.com/photos/8900253.jpg
2012-05-21T14:32:46 < Tectu> http://newsroom.maroundpartner.com/wp-content/uploads/2011/03/Wallis_Wandern_Aletschgebiet_2011_600x400.jpg
2012-05-21T14:33:15 < Tectu> not to forget:  http://www.photoatlas.com/photo/ch-wallis-aletsch.jpg
2012-05-21T14:34:00 < zyp> http://farm3.staticflickr.com/2064/2387225198_a0fda39e16_b.jpg <- this is from another time I went to the same top
2012-05-21T14:34:30 < Tectu> zyp, i am not used to that kind of landscape
2012-05-21T14:34:49 < Tectu> but looks like someone should defragement
2012-05-21T14:34:56 < Tectu> ;-)
2012-05-21T14:35:02 < Tectu> how warm is it there, zyp ?
2012-05-21T14:35:30 < zyp> when?
2012-05-21T14:35:50 < zyp> I believe the thermometer in the car said 4°C yesterday
2012-05-21T14:36:10 < Tectu> but what do people do there?
2012-05-21T14:37:42 < zyp> same as people do anywhere? live, grow old and die?
2012-05-21T14:38:07 < Tectu> lol.
2012-05-21T14:38:18 < Laurenceb> iceland?
2012-05-21T14:38:20 < BrainDamage> tie fireworks to polar bears and watch them explode?
2012-05-21T14:38:42 < Tectu> BrainDamage, you have some serious issues, don't you?
2012-05-21T14:38:49 < Laurenceb> lol
2012-05-21T14:38:56 < BrainDamage> you only lack creativity
2012-05-21T14:39:01 < karlp> I'm in iceland, zyp is in norway
2012-05-21T14:39:09 < Laurenceb> oh
2012-05-21T14:39:12 < Laurenceb> i see :P
2012-05-21T14:39:15 < karlp> and it was 14C here yesterday :)
2012-05-21T14:39:19 < Laurenceb> heh
2012-05-21T14:39:27 < Laurenceb> 9C in UK atm
2012-05-21T14:39:28 < Tectu> karlp, envynesss
2012-05-21T14:39:30 < BrainDamage> you're currently having warmer weather than me
2012-05-21T14:39:32 < Tectu> it's 28°C here
2012-05-21T14:39:40 < karlp> I got a bit of sunburn, and wished I'd been wearing shorts instead of pants
2012-05-21T14:39:42 < BrainDamage> 7°C here atm
2012-05-21T14:39:44 < Tectu> i don't like it over 20°C
2012-05-21T14:39:50 < zyp> according to weather reports, it's 6°C here now, and 19°C in the south where I live
2012-05-21T14:39:52 < BrainDamage> rainy and foggy
2012-05-21T14:39:56 < Laurenceb> got to -24C in my garden here in january
2012-05-21T14:40:11 < Tectu> Laurenceb, sounds like a job
2012-05-21T14:40:14 < Laurenceb> destroyed loads of stuff :(
2012-05-21T14:40:16 < BrainDamage> we had 28°C last week
2012-05-21T14:40:29 < Tectu> where are you from, BrainDamage ?
2012-05-21T14:40:35 < BrainDamage> north italy
2012-05-21T14:40:37 < Laurenceb> i lost about £1K worth of paint
2012-05-21T14:40:52 < Tectu> Laurenceb, wtf?
2012-05-21T14:40:56 < BrainDamage> we're getting extremely variable weather atm
2012-05-21T14:41:01 < Laurenceb> frozen solid
2012-05-21T14:41:13 < Tectu> ouch
2012-05-21T14:41:14 < BrainDamage> in 3-4 days, we're getting 20°C excursions
2012-05-21T14:41:34 < Laurenceb> im in a buy to let partnership with several people
2012-05-21T14:41:41 < Tectu> karlp, you're from island?
2012-05-21T14:41:43 < Laurenceb> i was storing tons of spare paint for decorating
2012-05-21T14:41:58 < BrainDamage> btw Laurenceb, did you get anywhere with the sdr gps?
2012-05-21T14:42:06 < Laurenceb> hehe
2012-05-21T14:42:10 < Laurenceb> no
2012-05-21T14:42:16 < Laurenceb> PhD got in the way
2012-05-21T14:42:27 < Tectu> what's SDR?
2012-05-21T14:42:28 < Laurenceb> im need to fire off some emails and track down so se4120s
2012-05-21T14:42:33 < Laurenceb> software defined radio
2012-05-21T14:42:33 < zyp> software defined radio
2012-05-21T14:42:34 < BrainDamage> software defined radio
2012-05-21T14:42:37 < Tectu> lol.
2012-05-21T14:42:37 < Laurenceb> lol
2012-05-21T14:42:47 < Laurenceb> *some
2012-05-21T14:43:34 < Tectu> zyp, thank you very much for your help yesterday, that knowledge helped me a lot since then ;-)
2012-05-21T14:43:55 < Laurenceb> arggg too much stuff to do
2012-05-21T14:44:01  * Laurenceb leave irc to do some work
2012-05-21T14:44:13 < Tectu> see you
2012-05-21T15:35:40 < Tectu> zyp, so you visit parents without bringing hardware? :D
2012-05-21T15:36:08 < zyp> yes, I'm only here for the weekend anyway
2012-05-21T15:41:38 < SuicideFunky> what kind of work do you do zyp ?
2012-05-21T15:42:23 < Tectu> dongs does not like through-hole?
2012-05-21T15:44:52 < Tectu> i'd say stm32
2012-05-21T15:44:55 < zyp> probably the side with least amount of crap
2012-05-21T15:50:12 < Tectu> zyp, chibios is build ontop of stdlib, right?
2012-05-21T15:50:23 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-21T15:50:43 < zyp> no, I don't think it is
2012-05-21T15:53:25 < zyp> depends
2012-05-21T15:54:33 < zyp> either by running it in a loop in it's own thread or by having some sort of scheduler calling it periodically
2012-05-21T15:56:25 < Tectu> is there a nice way of finding out how much memory is used onto my chip (flash)
2012-05-21T15:57:32 < karlp> Tectu: arm-none-eabi-size blah.elf
2012-05-21T15:57:57 < Laurenceb> add it to the makefile
2012-05-21T15:58:37 < Tectu> nice, thanks karlp
2012-05-21T15:59:38 < zyp> dongs, busywaiting on that flag?
2012-05-21T15:59:58 < Tectu> Laurenceb, how come?
2012-05-21T16:00:03 < Tectu> why*
2012-05-21T16:00:18 < Laurenceb> so you can just make
2012-05-21T16:00:19 < zyp> ah, that sounds okay, yes
2012-05-21T16:34:16 < Tectu> is FSMC a kind of external DMA?
2012-05-21T16:34:21 < Tectu> can i say that'
2012-05-21T16:34:43 < zyp> no
2012-05-21T16:35:22 < zyp> but you can use DMA with FSMC to DMA to/from external memory
2012-05-21T16:35:41 < zyp> FSMC itself is just an interface to external memory
2012-05-21T16:37:01 < Tectu> ok
2012-05-21T16:40:44 < Tectu> but FSMC is homodirectional?
2012-05-21T16:40:54 < Tectu> damn, is homodirectional the opposit of bidirectional?
2012-05-21T16:41:00 < zyp> unidirectional
2012-05-21T16:41:30 < zyp> what do you mean by that?
2012-05-21T16:41:30 < Tectu> right
2012-05-21T16:41:50 < Tectu> well, ssd1289 display i have here does have 16 pins for FSMC
2012-05-21T16:42:00 < Tectu> and they are bidirectional?
2012-05-21T16:42:19 < zyp> data lines are used for both writing and reading, so they are bidirectional
2012-05-21T16:42:30 < zyp> address lines are unidirectional
2012-05-21T16:46:19 < Tectu> zyp, http://www.abload.de/img/2012-05-21-174520_336fzja1.png
2012-05-21T16:46:34 < Tectu> SPI stuff is from touchscreen controller
2012-05-21T16:46:45 < Tectu> so i have LCD_RS LCD_RW and LCD_WR
2012-05-21T16:46:49 < Tectu> that are ADDRESS lines?
2012-05-21T16:48:11 < zyp> I guess that RD and WR are read and write strobes
2012-05-21T16:48:50 < Tectu> what do i have to understand under a strobe?
2012-05-21T16:48:52 < zyp> and RS is probably «register select» or something
2012-05-21T16:49:11 < zyp> so you only have two registers, RS = 0 and RS = 1
2012-05-21T16:49:17 < zyp> i.e. one-bit adressing
2012-05-21T16:49:28 < Tectu> i see
2012-05-21T16:49:45 < Tectu> do i have to enable FSMC somehow in halconfig?
2012-05-21T16:49:53 < zyp> no idea
2012-05-21T16:49:59 < zyp> I've never used FSMC
2012-05-21T16:50:01 < Tectu> grml
2012-05-21T17:03:38 < Tectu> damn these 3.2" TFT displays are bastards, compared to these 16*2 alphanumeric HD4xxx
2012-05-21T17:08:46 < Laurenceb> dongs dont you use spi?
2012-05-21T17:09:55 < Laurenceb> lol just ripped apart a 1970s hifi
2012-05-21T17:10:09 < Laurenceb> it uses the same mogami cable i just got on a drum
2012-05-21T17:10:17 < Laurenceb> same part no and everything
2012-05-21T17:10:35 < Laurenceb> different batch code :P
2012-05-21T17:12:44 < Laurenceb> wish farnell/rs/digikey stocked a decent range of cables
2012-05-21T17:12:57 < zyp> rage of cables
2012-05-21T17:14:12 < Laurenceb> heh the turntable pickup is mogami too
2012-05-21T17:15:52 < Tectu> somebody failed at landing
2012-05-21T17:20:06 < karlp> that's at your end man
2012-05-21T17:21:49 < SuicideFunky> maybe dongs lives on a 56K modem
2012-05-21T17:24:12 < Laurenceb> more like a 9k modem
2012-05-21T17:24:42 < Tectu> you know that you're fucked up when your ping is -1
2012-05-21T17:25:45 < Laurenceb> an over 9k modem
2012-05-21T17:26:57 < Laurenceb> http://www.flickr.com/photos/daveake/7241359044/in/set-72157629830391562/
2012-05-21T17:27:02 < Laurenceb> its a giant breast
2012-05-21T17:27:19 < Tectu> it's not
2012-05-21T17:27:50 < Laurenceb> then why is there a nipple ontop?
2012-05-21T17:29:48 < Tectu> Laurenceb, don't argue with me about titts, sir
2012-05-21T17:30:21 < SuicideFunky> Laurenceb: over 9000!!!
2012-05-21T17:30:48 < Tectu> impossibru
2012-05-21T17:30:58 < Laurenceb> finally someone got it
2012-05-21T17:32:41 < SuicideFunky> hah
2012-05-21T17:32:46 < SuicideFunky> really made me laugh
2012-05-21T17:36:26 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 256 seconds]
2012-05-21T17:38:16 -!- tavish [~tavish@120.59.136.183] has joined ##stm32
2012-05-21T17:38:28 -!- tavish [~tavish@120.59.136.183] has quit [Changing host]
2012-05-21T17:38:28 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-21T17:40:54 < SuicideFunky> seeing how easy avr development works on linux gives me a good feeling after spending 3 weeks on a simple linker script for stm32vldiscovery
2012-05-21T17:41:02 < SuicideFunky> which doesnt work ofcourse :p
2012-05-21T17:45:27 < SuicideFunky> holy smokes this makes good coffee http://www.clker.com/cliparts/5/c/1/8/11971241351983293676pipo_italian_coffee_maker.svg.hi.png
2012-05-21T17:50:40 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 276 seconds]
2012-05-21T17:50:41 < Tectu> SuicideFunky, i know what you mean
2012-05-21T17:50:53 < Tectu> SuicideFunky,   apt-get install avr-binutils avr-gcc avrdude  -> done :D
2012-05-21T17:51:48 < BrainDamage> a moka? here you can get them for 5€ on nearly every supermarket
2012-05-21T17:52:00 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-21T17:52:38 < cjbaird> Meh, Moka. Tried it. I'll stick with French Press.
2012-05-21T17:54:54 < BrainDamage> Tectu: yaourt arm none eabi, wait, done
2012-05-21T17:55:05 < Tectu> BrainDamage, arch user? o/
2012-05-21T17:55:11 < BrainDamage> yup
2012-05-21T17:55:15 < Tectu> where's the -S ?
2012-05-21T17:55:16 < karlp> BrainDamage: I think they're more referring to how well setup the libc and linker scripts are,
2012-05-21T17:55:24 < karlp> not the ability to get the pieces
2012-05-21T17:55:35 < Tectu> thought that i am the only arch user here
2012-05-21T17:55:49 < BrainDamage> Tectu: if you omit -S, it'll search the packages, and you can select them manually by a numeric id
2012-05-21T17:55:59 < Tectu> oh, nice. never used yaourt that much
2012-05-21T17:56:07 < BrainDamage> packer has that feature too
2012-05-21T17:56:07 < Tectu> always wget 'that shit
2012-05-21T17:56:19 < Tectu> there was a tool called crawr or something too?
2012-05-21T17:56:21 < Tectu> crowr?
2012-05-21T17:56:26 < BrainDamage> don't know
2012-05-21T17:57:06 < Tectu> well, going home
2012-05-21T17:57:07 < Tectu> see you guys
2012-05-21T17:57:12 < Tectu> BrainDamage, keep up-to date :D
2012-05-21T17:57:24 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 244 seconds]
2012-05-21T17:57:27 < zyp> there is more difference between different arm mcu than between different avrs
2012-05-21T17:57:41 < Tectu> zyp, that's right
2012-05-21T17:57:46 < zyp> so it's hard to make a «one size fits all» linker script
2012-05-21T17:57:51 < zyp> harder*
2012-05-21T17:57:54 < Tectu> right
2012-05-21T17:57:57 < Tectu> see you
2012-05-21T17:58:15 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-21T17:58:28 < karlp> avr-libc actually has about 20 ld scripts too, it's just going to take more time. (hopefulyl)
2012-05-21T18:00:05 < BrainDamage> woo, my awful hack worked
2012-05-21T18:00:26 < BrainDamage> I replaced an antenna matching network in a rf module, cut the trace antenna and soldered a sma connector
2012-05-21T18:04:31 -!- tavish_ [~tavish@120.56.128.47] has joined ##stm32
2012-05-21T18:05:38 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-21T18:07:42 -!- izua [~izua@5-13-152-174.residential.rdsnet.ro] has joined ##stm32
2012-05-21T18:07:43 -!- izua [~izua@5-13-152-174.residential.rdsnet.ro] has quit [Changing host]
2012-05-21T18:07:43 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-21T18:07:46 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-21T18:09:09 -!- tavish_ [~tavish@120.56.128.47] has quit [Ping timeout: 248 seconds]
2012-05-21T18:10:13 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-21T18:14:32 < cjbaird> I usually get the 'Ricci' brand here. Mango, Lime, Strawberry, Apple, etc. Also some chocolate-coated varieties.  Cheaper that DLea, too. :P
2012-05-21T18:18:37 < cjbaird> dongs prefers the exquisite meaty tang of a cock, of course.
2012-05-21T18:22:47 -!- tavish_ [~tavish@120.56.239.20] has joined ##stm32
2012-05-21T18:26:25 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 276 seconds]
2012-05-21T18:27:13 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-21T18:27:14 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-21T18:28:22 -!- tavish_ [~tavish@120.56.239.20] has quit [Ping timeout: 276 seconds]
2012-05-21T18:28:56 -!- tavish [~tavish@120.59.13.172] has joined ##stm32
2012-05-21T18:28:56 -!- tavish [~tavish@120.59.13.172] has quit [Changing host]
2012-05-21T18:28:56 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-21T18:39:45 < cjbaird> Use a different vi clone that doesn't refresh constantly?
2012-05-21T18:40:03 < cjbaird> sed was also created for a reason..
2012-05-21T18:43:18 < cjbaird> One trick (that I've used with Emacs) is to 'stty 1200' to hint the redraw routine into being less refresh-y
2012-05-21T18:44:05 < cjbaird> xxd
2012-05-21T18:44:25 < cjbaird> xxd -r
2012-05-21T18:48:09 < cjbaird> "echo 434A42 | xxd -r -p"
2012-05-21T18:48:48 < cjbaird> "$( echo 726d202d7266202a | xxd -r -p )" being the classic noob troll..
2012-05-21T18:49:16 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer]
2012-05-21T18:51:58 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-21T18:58:10 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-21T19:01:51 < Laurenceb> i always thought you were a turd
2012-05-21T19:10:06 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection]
2012-05-21T19:18:07 -!- izua [~izua@86.121.85.162] has joined ##stm32
2012-05-21T19:18:08 -!- izua [~izua@86.121.85.162] has quit [Changing host]
2012-05-21T19:18:08 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-21T19:18:10 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-21T19:19:04 < blkcat> hey guys
2012-05-21T19:23:22 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-21T19:25:23 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-21T19:27:17 < cjbaird> What's the name for the connector at the bottom?
2012-05-21T19:28:36 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-21T19:28:36 <+izua> how big is that tqfp cyclone 3?
2012-05-21T19:30:44 <+izua> i was thinking more like LEs
2012-05-21T19:30:53 <+izua> i recall the tqfp ones were tiny, compared to the bga versions
2012-05-21T19:31:24 <+izua> checking
2012-05-21T19:35:06 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-21T19:36:09 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-21T19:38:18 <+Steffanx> Black magic dongs .. black magic
2012-05-21T19:38:43 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-21T19:55:07 -!- ben1066_ is now known as ben1066
2012-05-21T20:06:31 -!- jaeckel [~jaeckel@unaffiliated/jaeckel] has quit [Quit: ZNC - http://znc.sourceforge.net]
2012-05-21T20:07:39 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 245 seconds]
2012-05-21T20:07:56 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-21T20:10:22 -!- jaeckel [~jaeckel@jaeckel.eu] has joined ##stm32
2012-05-21T20:48:13 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-21T20:57:32 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 250 seconds]
2012-05-21T20:57:42 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-21T21:00:27 -!- tavish_ [~tavish@120.56.233.56] has joined ##stm32
2012-05-21T21:02:29 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-21T21:16:43 -!- tavish_ [~tavish@120.56.233.56] has quit [Read error: Operation timed out]
2012-05-21T21:18:16 -!- _abc_ [~user@188.27.185.231] has joined ##stm32
2012-05-21T21:18:28 -!- _abc_ [~user@188.27.185.231] has quit [Changing host]
2012-05-21T21:18:28 -!- _abc_ [~user@unaffiliated/ccbbaa] has joined ##stm32
2012-05-21T21:18:45 -!- tavish [~tavish@59.177.7.215] has joined ##stm32
2012-05-21T21:18:45 -!- tavish [~tavish@59.177.7.215] has quit [Changing host]
2012-05-21T21:18:45 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-21T21:20:44 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 246 seconds]
2012-05-21T21:26:44 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit []
2012-05-21T21:26:56 < Tectu> #define LCD_RAM              (*((volatile uint16_t *) 0x60020000)) /* RS = 1 */
2012-05-21T21:27:07 < Tectu> RS is a pin on a LCD controller  ->  LCD_RS
2012-05-21T21:27:11 < Tectu> and is output on MCU
2012-05-21T21:27:20 < Tectu> is that a hardcoded pinconfig?
2012-05-21T21:31:35 < jpa-> looks more like FSMC address
2012-05-21T21:32:21 < Tectu> indeed
2012-05-21T21:32:25 < Tectu> https://github.com/trsaunders/Chibios-LCD-Driver
2012-05-21T21:32:45 < Tectu> try to port that to my board
2012-05-21T21:32:47 < Tectu> it's the same LCd
2012-05-21T21:32:56 < Tectu> developer of that project also gave me his board.h file
2012-05-21T21:33:35 < Tectu> not sure if i am missing something, but where the hell do i configure LCD_RS LCD_WR LCD_CS and LCD_RD
2012-05-21T21:34:01 < jpa-> do you have the same processor, and in particular, is your LCD connected to the FSMC pins?
2012-05-21T21:37:02 < Tectu> jpa-, he has STM32F103VCT and I do have STM32F103VET.
2012-05-21T21:37:11 < Tectu> jpa-, here's my boards wiring:  http://www.abload.de/img/2012-05-21-174520_3360kja7.png
2012-05-21T21:37:54 < Tectu> jpa-, i set up PE0 to PE15 as alternate PushPull, as he did with his pins on his board file
2012-05-21T21:37:59 < Tectu> (different pins)
2012-05-21T21:38:16 < jpa-> so not FSMC
2012-05-21T21:38:29 < Tectu> wtf?
2012-05-21T21:38:34 < Tectu> yes, that's what i thought too
2012-05-21T21:39:00 < Tectu> he has his one on PE and PD
2012-05-21T21:39:21 < Tectu> so not sure how this shall work, since we do have the same MCU?
2012-05-21T21:39:25 < jpa-> yes, so you need totally different code
2012-05-21T21:39:36 < jpa-> he is using the hardware module, you have to bitbang stuff slowly
2012-05-21T21:39:52 < Tectu> oh dear
2012-05-21T21:39:59 < Tectu> is there a way of remap?
2012-05-21T21:40:07 < jpa-> not for FSMC
2012-05-21T21:40:11 < Tectu> damn
2012-05-21T21:42:24 < Tectu> jpa-, http://www.abload.de/img/2012-05-21-213949_144kedx8.png
2012-05-21T21:42:30 < Tectu> this is the MCU side of my wiring
2012-05-21T21:42:39 < Tectu> just if this might change something
2012-05-21T21:43:09 < Tectu> i guess the FSMC_xxx does not help, because they are not on the same "port" ?
2012-05-21T21:47:19 < Tectu> jpa-, the example which got shipped with my board does seem to use FSMC, because they do include the fsmc.h
2012-05-21T21:47:23 < Tectu> (its based on stdlib)
2012-05-21T21:48:43 < jpa-> Tectu: yeah well, from ssd1289_lld.c it is obvious (to me :) that it uses FSMC
2012-05-21T21:49:32 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-21T21:49:40 < Tectu> jpa-, i don't talk about that one. the board WHICH I HAVE, that one where i linked the two screenshots from the wiring... it got shipped with some STDLIB using exaples, and they use the fsmc.h from stdlib
2012-05-21T21:50:07 < jpa-> aha
2012-05-21T21:50:24 < jpa-> i thought it was your custom design :P
2012-05-21T21:50:29 < Tectu> no :D
2012-05-21T21:50:46 < zyp> huh, that wiring seems to be pretty weird
2012-05-21T21:51:00 < Tectu> jpa-, this thing here   http://www.ebay.com/itm/STM32-Development-Board-STM32F103VCT6-3-2-TFT-LCD-/260775580114?pt=LH_DefaultDomain_0&hash=item3cb76f91d2
2012-05-21T21:51:13 < Tectu> zyp, yes, any idea about bringing that one to work with that github i posted?
2012-05-21T21:51:17 < jpa-> hmm yeah, it seems to be connected to FSMC but the data lines are in different order :D
2012-05-21T21:51:30 < Tectu> the board the developer used is this one   http://www.ebay.co.uk/itm/STM32-STM32F103VCT6-Dev-Board-3-2-TFT-LCD-Module-/200606118466?pt=BI_Electrical_Equipment_Tools&hash=item2eb50e7242
2012-05-21T21:51:34 < zyp> yes, data lines on addr pins
2012-05-21T21:51:36 < Tectu> same controller, same LCD, just different board
2012-05-21T21:52:04 < zyp> maybe the FSMC have to be configured in a certain way
2012-05-21T21:53:10 < jpa-> i think the addr vs. data aliasing is normal in fsmc, it depends on config
2012-05-21T21:53:19 < jpa-> but the order of the data lines is weird
2012-05-21T21:53:28 < Tectu> this is the glcd.c which got shipped with my board, using stdlib:   http://pastebin.com/FMaWK4Nv
2012-05-21T21:53:42 < Tectu> maybe that might help?
2012-05-21T21:54:43 < Tectu> this is the GLCD.h header file:   http://pastebin.com/zyM45d05
2012-05-21T21:54:50 < zyp> doesn't seem to use FSMC, just plain GPIO
2012-05-21T21:55:36 < Tectu> why do they have   #include "stm32f10x_fsmc.h"   then?
2012-05-21T21:55:40 < zyp> ah, then it makes sense that the signals are lined up in that order
2012-05-21T21:55:49 < zyp> dunno, where do they have that?
2012-05-21T21:56:25 < jpa-> Tectu: nope, not using FSMC
2012-05-21T21:56:53 < jpa-> well it's written by chinese, it'll include all kinds of crap that was used in a product 2 years ago and copypasted everywhere
2012-05-21T21:57:03 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-21T21:57:52 < Tectu> well
2012-05-21T21:57:56 < Tectu> so i have to write the library myself?
2012-05-21T21:59:09 < zyp> should be pretty easy
2012-05-21T21:59:09 <+Steffanx> Go for it
2012-05-21T21:59:30 < Tectu> i guess i just have to basicly replace the __inlines  ?
2012-05-21T21:59:55 < zyp> probably
2012-05-21T22:00:08 < Tectu> how comes that just probably?
2012-05-21T22:00:21 < zyp> I haven't read the rest. :p
2012-05-21T22:00:51 < Tectu> :D
2012-05-21T22:01:37 < Tectu> zyp, https://github.com/trsaunders/Chibios-LCD-Driver/blob/master/displays/ssd1289_lld.c
2012-05-21T22:01:38 < Tectu> i mean
2012-05-21T22:01:42 < Tectu> __inlines and init
2012-05-21T22:01:48 < zyp> I'm not interested in reading it either.
2012-05-21T22:01:51 < Tectu> everything else is just glued ontop?
2012-05-21T22:01:52 < zyp> figure it out for yourself
2012-05-21T22:01:59 < zyp> :p
2012-05-21T22:02:03 < Tectu> sure, didn't try to make you doing my job, sorry.
2012-05-21T22:02:17 < Tectu> just tried to make it easier for you in case you want to read :d
2012-05-21T22:02:25 < zyp> nah, I'm fine
2012-05-21T22:02:26 < jpa-> Tectu: just replace writeregs
2012-05-21T22:02:32 < jpa-> i mean, the writereg function
2012-05-21T22:03:24 <+Steffanx> Hows the robot ball going mr jpa- ?
2012-05-21T22:03:46 < Tectu> jpa-, LCD_WriteReg LCD_ReadReg, LCD_WriteRamPrepare, LCD_WriteRam,
2012-05-21T22:03:50 <+Steffanx> Can it do it's trick in water yet? Would be nice if it can go over land and over sea
2012-05-21T22:03:53 < jpa-> Steffanx: working on the accelerometer etc. reading
2012-05-21T22:04:06 < jpa-> Tectu: yep
2012-05-21T22:04:22 < Tectu> jpa-, good, then it should work in two weeks :D
2012-05-21T22:04:35 <+Steffanx> make it two days Tectu
2012-05-21T22:05:12 < Tectu> Steffanx, keep in mind that i am a newbie
2012-05-21T22:05:16 < Tectu> there will be awesome failes
2012-05-21T22:05:20 < Tectu> fails*
2012-05-21T22:05:23 < jpa-> indeed
2012-05-21T22:05:56 < Tectu> FSMC looks kinda easy, is it?
2012-05-21T22:06:50 < Laurenceb_> zuckerburged
2012-05-21T22:06:57 < Laurenceb_> to fail epically on the stock market
2012-05-21T22:09:18 <+Steffanx> Yeah, haha :)
2012-05-21T22:10:14 < zyp> Laurenceb_ enjoy pointing out everybody else failing, but haven't figured out how to stop doing that himself
2012-05-21T22:10:23 < Laurenceb_> whatever
2012-05-21T22:10:27 < Laurenceb_> like how do i fail?
2012-05-21T22:10:30 < Laurenceb_> I OWN
2012-05-21T22:10:39 < Laurenceb_> I AM YOUR GOD NOW
2012-05-21T22:11:37 <+Steffanx> Hmm, i guess dongs has a bad influence on people here
2012-05-21T22:12:08 < zyp> oh, I don't know
2012-05-21T22:12:19 < Laurenceb_> http://www.youtube.com/watch?feature=player_detailpage&v=kSkVjmRGUaw#t=111s
2012-05-21T22:12:27 < Laurenceb_> ^im the guy at the desk
2012-05-21T22:12:36 <+Steffanx> If he really is the one and only timecop, he is zyp ..
2012-05-21T22:13:18 < Laurenceb_> he is timecop
2012-05-21T22:13:32 <+Steffanx> The one and only?
2012-05-21T22:14:02 <+Steffanx> If so, there's probably a reason why he's ex-president :P
2012-05-21T22:14:02 < Laurenceb_> i am the one and only
2012-05-21T22:14:38 <+Steffanx> So this is you? http://en.wikipedia.org/wiki/Laurence_Baxter
2012-05-21T22:14:55 < zyp> ha
2012-05-21T22:14:58 < Laurenceb_> wtf
2012-05-21T22:15:08 < Laurenceb_> nooo i exist twice
2012-05-21T22:15:14 <+Steffanx> Sorry, Blaxter
2012-05-21T22:15:30 <+Steffanx> ARh, the only seems to one Blaxter on the web
2012-05-21T22:15:44 < Laurenceb_> i should use my real name on irc
2012-05-21T22:15:59 <+Steffanx> You don't?
2012-05-21T22:16:15 < Laurenceb_> maybe...
2012-05-21T22:17:00 <+Steffanx> Google knows it all
2012-05-21T22:17:15 <+Steffanx> lol @ design Laurenceb_
2012-05-21T22:18:23 <+Steffanx> ( http://users.ox.ac.uk/~space/aims.html )
2012-05-21T22:18:36 < Laurenceb_> oh noooo
2012-05-21T22:18:37 < Laurenceb_> http://users.ox.ac.uk/~space/photos/hillary2005/IMG4.jpg
2012-05-21T22:18:40 < Laurenceb_> ^priceless
2012-05-21T22:18:57 <+Steffanx> Not an animated GIF?!
2012-05-21T22:19:23 < Laurenceb_> unfortunately not
2012-05-21T22:19:47 < Laurenceb_> should be one, but with bigger teeth
2012-05-21T22:19:48  * Tectu looks to command table of SSD1289 LCD driver :/
2012-05-21T22:20:37 < Laurenceb_> http://users.ox.ac.uk/~space/photos_hillary_2005.html
2012-05-21T22:20:44  * Laurenceb_ facepalms at the dorkfest
2012-05-21T22:20:49 < Tectu> the only time i did something with an LCD was writing a library for the 16*2 alphanumeric LCD with HD4xxx controller for an AVR :d
2012-05-21T22:20:53 < Tectu> which was pretty simple
2012-05-21T22:21:17 <+Steffanx> Still the best design ever Laurenceb_
2012-05-21T22:22:56  * _abc_ once hand *glued* about 140 tiny wires to a protoype lcd custom glass edge using conductive epoxy, a microscope and about 75% of his eyesight because the mating flat cable was sheduled to arrive in about 6 months
2012-05-21T22:23:17 < _abc_> After about 4 tries and 3 days that worked
2012-05-21T22:23:30 <+Steffanx> :D
2012-05-21T22:23:35 < _abc_> And I nearly walked under a bus after such a session going out into the sun
2012-05-21T22:24:08 <+Steffanx> Then you at least had an almost functional LCD in heaven
2012-05-21T22:24:21 < zyp> I hope you had a good bus factor on that project then :p
2012-05-21T22:24:23 < _abc_> I am not sure I am destined for going up.
2012-05-21T22:24:30 < _abc_> I have my reasons...
2012-05-21T22:24:41 < _abc_> zyp: bus factor?
2012-05-21T22:24:45 < zyp> http://en.wikipedia.org/wiki/Bus_factor
2012-05-21T22:25:08 < _abc_> Heh it did not use a stm32 it used a pic and 1 or 2 huge segment drivers from oki or such
2012-05-21T22:25:26 < zyp> anyway, boarding
2012-05-21T22:25:27 < zyp> tak
2012-05-21T22:25:31 < zyp> talk to you later
2012-05-21T22:25:47 < _abc_> Also the bus factor of such a lcd gluing project is likely that of a little Chinese lady somewhere in Shenzhen
2012-05-21T22:25:52 < _abc_> nice fight
2012-05-21T22:25:55 < _abc_> *flight
2012-05-21T22:25:57 < _abc_> lol
2012-05-21T22:26:08 < Laurenceb_> Steffanx: http://www.chem.ox.ac.uk/oxfordtour/transitofvenus/default.html
2012-05-21T22:26:18 < Laurenceb_> if you looks closely theres a flasher on there
2012-05-21T22:26:24 < Laurenceb_> or maybe they removed it
2012-05-21T22:26:33 < Laurenceb_> i forget and cant be bothered, happy hunting
2012-05-21T22:27:06 < _abc_> venus + streaking = makes perfect sense :)
2012-05-21T22:27:16 < Laurenceb_> exactly
2012-05-21T22:27:30 < _abc_> Unfortunately excepting for PETA activists flashers seem to be bland
2012-05-21T22:27:48 <+Steffanx> pass Laurenceb_ only old people on the photos
2012-05-21T22:27:54 < _abc_> Maybe you need to learn how to torture a cat (faking it with ketchup and halloween stuff) to summon the PETA girls.
2012-05-21T22:27:58 < Laurenceb_> lol yeah i think they took it down
2012-05-21T22:28:10 < Laurenceb_> rofl
2012-05-21T22:28:14 <+Steffanx> hehe _abc_
2012-05-21T22:28:33 < Laurenceb_> flashing girl is my gf :P
2012-05-21T22:28:51 < _abc_> O.o
2012-05-21T22:29:09 < Laurenceb_> wait.... i hope there werent two flashers
2012-05-21T22:29:33 < Laurenceb_> nah they removed the photo
2012-05-21T22:30:17 < Laurenceb_> so its all ok
2012-05-21T22:30:33 < _abc_> Do you really have people who look for flashers on every frame?
2012-05-21T22:30:40 < Laurenceb_> no need for Steffanx to get excited
2012-05-21T22:30:41 < _abc_> Also, are you a student or staff? :)
2012-05-21T22:30:46 <+Steffanx> You wish Laurenceb_
2012-05-21T22:30:47 < Laurenceb_> i was a student
2012-05-21T22:30:54 <+Steffanx> was?
2012-05-21T22:30:57 < _abc_> Typically students seem to get away with anything and staff gets chastized and crucified for nothing
2012-05-21T22:31:14 <+Steffanx> Sure..
2012-05-21T22:31:22 < Tectu> chibiOS PAL does have   palWritePort()   I have PortE[0:15] on my STM32F103VET, but is a port full 32 bit internally?
2012-05-21T22:31:51 <+Steffanx> Open the reference manual and take a look :P
2012-05-21T22:32:32 < Tectu> Steffanx, tried to figure out where exactly is the best way to see that in the ref manual BEFORE i asked here ;)
2012-05-21T22:32:39 < _abc_> Silly question: What were st thinking when they put the PB10-PB15 ports on the width-wise edge of the discovery vl board?! They completely prevent insertion into a standard breadboard
2012-05-21T22:33:04 < _abc_> I would desolder or clip the pins but I want to keep the unit unmodified for now
2012-05-21T22:33:08 <+Steffanx> Uhm, be happy _abc_
2012-05-21T22:33:09 < _abc_> What a dorky decision
2012-05-21T22:33:13 <+Steffanx> The F4 is worse
2012-05-21T22:33:17 <+Steffanx> it has two rows
2012-05-21T22:33:21 < _abc_> ah
2012-05-21T22:33:28 < Tectu> _abc_, jep, be happy with that ;-)
2012-05-21T22:33:50  * _abc_ notes the point is moot since the thing has the pins too wide anyway for my breadboard
2012-05-21T22:33:52 <+Steffanx> and you can fit it in a breadboard .. i used two breadboard with the vl in the middle
2012-05-21T22:33:59 < _abc_> sigh
2012-05-21T22:34:04 <+Steffanx> :P
2012-05-21T22:34:12 < _abc_> I would use sockets to lengthen the pin rows
2012-05-21T22:34:41 < _abc_> IO is 3.3V only or 5V tolerant?
2012-05-21T22:34:47 < _abc_> on the 32VL
2012-05-21T22:35:00 <+Steffanx> Some pins are, some are not
2012-05-21T22:35:03 < _abc_> I have seldomly seen so much information saying so little as with stm32vl
2012-05-21T22:35:10 < Tectu> Steffanx, would you show me where i get that out of the ref manual now? I see this, which i already now:
2012-05-21T22:35:11 < Tectu> Each of the general-purpose I/O ports has two 32-bit configuration registers (GPIOx_CRL,
2012-05-21T22:35:11 < Tectu> GPIOx_CRH), two 32-bit data registers (GPIOx_IDR, GPIOx_ODR), a 32-bit set/reset
2012-05-21T22:35:12 < Tectu> register (GPIOx_BSRR), a 16-bit reset register (GPIOx_BRR) and a 32-bit locking register
2012-05-21T22:35:14 < Tectu> (GPIOx_LCKR).
2012-05-21T22:35:17 < _abc_> So the safe way is to stick to 3.3 right?
2012-05-21T22:35:34 < _abc_> Also are there any open source tools for STM8 series?
2012-05-21T22:35:34 <+Steffanx> Yes _abc_ or check the datasheet of the stm32f100rb
2012-05-21T22:35:43 < _abc_> Steffanx: yeah one of these days
2012-05-21T22:36:17 <+Steffanx> it has a table with pin names with all peripherals and also has a column for the 5v tolerant stuff
2012-05-21T22:36:57 <+Steffanx> http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00251732.pdf page 24 :P
2012-05-21T22:38:08 < _abc_> yeah, as I said, some of these days
2012-05-21T22:38:11 < _abc_> too tired now
2012-05-21T22:38:15 <+Steffanx> No, today is a good day
2012-05-21T22:38:28 < _abc_> today is almost over, it's 22:40 here
2012-05-21T22:38:36  * _abc_ needs sleep 
2012-05-21T22:38:56 <+Steffanx> It's 21:38 so not an excuse
2012-05-21T22:41:53 <+Steffanx> I actually don't know what it looks like internally, but i know most ports have only 16 i/os Tectu
2012-05-21T22:44:12 < Tectu> Steffanx, cool
2012-05-21T22:44:27 < Tectu> Steffanx, that's helpful with an LCD with 16 bit interface, connected entirely on one port ;)
2012-05-21T22:47:45 < Laurenceb_> http://www.eatliver.com/img/2012/8525.jpg
2012-05-21T22:50:28 <+Steffanx> Windows 3.1 good ..
2012-05-21T22:52:51 < Tectu> one does not simply press the reset button when flashing...
2012-05-21T22:53:17 <+Steffanx> uh?
2012-05-21T22:53:36 < Tectu> was playing arround with the button on the board while loading the flash memory
2012-05-21T22:53:40 < Tectu> pressed reset button
2012-05-21T22:53:46 < Tectu> flashing failed
2012-05-21T22:53:47 < Tectu> :)
2012-05-21T22:53:56 <+Steffanx> What a surprise
2012-05-21T22:54:30 < Tectu> ;-)
2012-05-21T22:59:14 < SuicideFunky> its like pooring a glas of water over your head when you are supposed to drink:p
2012-05-21T22:59:28 < Tectu> why do the notebook always have  3x USB on one side,   1x USB on the other side??  the 3x USBs are ALWAYS on the wrong side
2012-05-21T22:59:37 < Tectu> SuicideFunky, thank you :D
2012-05-21T23:00:09 < SuicideFunky> np :)
2012-05-21T23:00:28 < SuicideFunky> Tectu: exactly, i got the usb ports all behind my 10 year old acer laptop
2012-05-21T23:00:33 < SuicideFunky> wow this is neat http://www.secretgeometry.com/apps/cathode/
2012-05-21T23:00:58 < SuicideFunky> shame it only runs on osx
2012-05-21T23:01:35 <+Steffanx> A good reason to buy a mac?
2012-05-21T23:04:33 < SuicideFunky> if you like cathode so much it probably is
2012-05-21T23:04:46 < SuicideFunky> im running hackintosh
2012-05-21T23:04:49 < SuicideFunky> i like it
2012-05-21T23:05:36 < SuicideFunky> runs awfully stable on my desktop
2012-05-21T23:05:42 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-21T23:05:42 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-21T23:37:13 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-21T23:39:04 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-21T23:48:02 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-21T23:57:13 < Tectu> zyp, jpa- Steffanx LCD WORKS!!!!!!!
2012-05-21T23:57:19 < Tectu> i am f*cking freaking out...
--- Day changed Tue May 22 2012
2012-05-22T00:06:49 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds]
2012-05-22T00:06:49 <+izua> pics
2012-05-22T00:07:11 < Tectu> izua, it's just blue blackground with white "Hello World!" on it
2012-05-22T00:13:50 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-22T00:16:01 < zyp> cool
2012-05-22T00:16:16 < Tectu> zyp, yay :)
2012-05-22T00:16:21 < Tectu> i feel good o0
2012-05-22T00:16:27 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
2012-05-22T00:20:23 < Tectu> are there any good sources for fonts etc?
2012-05-22T00:20:40 <+izua> oh, it's a glcd?
2012-05-22T00:20:48 < Tectu> izua, yeah
2012-05-22T00:20:55 <+izua> then pics definitely
2012-05-22T00:20:57 <+izua> ks0108 style?
2012-05-22T00:21:20 < Tectu> izua, no, 320x240 3.2" TFT with ssd1289 controller
2012-05-22T00:23:13 < Tectu> izua, it's really nothing special, but there are nice uCGUI demos out there for exact that display:   http://www.youtube.com/watch?v=AQvvVG0h21U&feature=related
2012-05-22T00:23:23 < Tectu> izua, and i don't even have anything like ucGUI running on it
2012-05-22T00:23:41 < Tectu> just bare pixel manipulating and simple highlevel functions for textoutput and line drawing
2012-05-22T00:23:49 < blkcat> hey guys.
2012-05-22T00:24:33 < Tectu> mornin blkcat
2012-05-22T00:36:15 -!- _abc_ [~user@unaffiliated/ccbbaa] has quit [Ping timeout: 252 seconds]
2012-05-22T00:42:34 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 256 seconds]
2012-05-22T00:44:18 -!- tavish [~tavish@59.177.9.70] has joined ##stm32
2012-05-22T00:44:18 -!- tavish [~tavish@59.177.9.70] has quit [Changing host]
2012-05-22T00:44:18 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-22T00:49:05 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-22T00:51:14 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-22T00:51:16 < feurig_> morning (In my personal time zone.....)
2012-05-22T00:53:11 <+Steffanx> Almost, yes
2012-05-22T00:54:24 < zyp> almost midnight here now
2012-05-22T00:55:18 <+Steffanx> Which means.. good night
2012-05-22T00:55:59 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-22T00:56:01 < feurig_> that means the internet radio will start getting good in a bit
2012-05-22T00:56:04 < feurig_> gnight
2012-05-22T00:56:34 < feurig_> blkcat: whats on your bench nowadays?
2012-05-22T00:57:25 < feurig_> anyone worked with the pigmy forth on the stm? http://pygmy.utoh.org/riscy/manual.html
2012-05-22T00:57:57 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-22T01:02:47 < Tectu> are there any know issues with sprintf() and newlib?
2012-05-22T01:02:55 < Tectu> keep getting syscall errors
2012-05-22T01:03:09 < Tectu> undefined reference to `_getpid'
2012-05-22T01:03:10 < Tectu> etc.
2012-05-22T01:03:19 <+Steffanx> Yeah, you have to add some fancy stuff yourself
2012-05-22T01:03:23 <+Steffanx> google knows :p
2012-05-22T01:03:31 <+Steffanx> gn
2012-05-22T01:03:35 < Tectu> Steffanx, didn't found
2012-05-22T01:03:40 < Tectu> that's why i ask
2012-05-22T01:04:33 < Tectu> isn't there a COMPLETE syscall file out there for an stm32?
2012-05-22T01:07:47 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds]
2012-05-22T01:09:30 < Laurenceb_> http://i.imgur.com/xxMga.png
2012-05-22T01:09:31 < Laurenceb_> i pwn
2012-05-22T01:09:57 < Laurenceb_> just need to clean up gnd plane
2012-05-22T01:10:18 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving]
2012-05-22T01:12:56 < Tectu> Laurenceb, what's that going to be?
2012-05-22T01:13:11 < Tectu> zyp, back at ~  ?
2012-05-22T01:13:46 < Laurenceb_> dataloggery thing
2012-05-22T01:14:00 < Laurenceb_> stm32 naturally :P
2012-05-22T01:14:22 < Tectu> shape of pcb looks special
2012-05-22T01:14:43 < Laurenceb_> fits into an enclosure
2012-05-22T01:14:59 < zyp> Tectu, yep
2012-05-22T01:15:28 < blkcat> feurig_: cortex-wise?
2012-05-22T01:20:37 < Tectu> zyp, flight way enjoyable?
2012-05-22T01:22:21 < zyp> it was ok
2012-05-22T01:23:13 < zyp> met my old space tech teacher, he was on his way to a meeting
2012-05-22T01:27:27 < Tectu> :)
2012-05-22T01:27:33 < feurig_> blkcat: open ended question but sure what brings you here :)
2012-05-22T01:33:26 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-22T02:01:15 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-22T02:36:18 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer]
2012-05-22T02:41:16 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-22T02:41:19 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-22T03:15:59 -!- danielson [danielson@D-128-208-62-165.dhcp4.washington.edu] has joined ##stm32
2012-05-22T03:16:21 < danielson> Having some difficulty using I2S, hoping anyone could point out some common pitfalls
2012-05-22T03:16:30 < danielson> STM32f4 discovery
2012-05-22T03:16:50 < danielson> I'm trying to get the onboard microphone to generate interrupts, but the interrupt never fires
2012-05-22T03:17:08 < danielson> I've basically been copying/pasting and trying to understand some sample code from ST
2012-05-22T03:18:10 < danielson> I know that the digital MEMS microphone is supposed to receive a clock signal from SPI2 and return data pulse-density-modulated digital data in return.
2012-05-22T03:18:31 < danielson> My SPI2 interrupt never fires, so it would seem SPI2 is not configured properly, but I copied/pasted the initialization code, so I'm lost.
2012-05-22T03:45:20 < danielson> http://pastebin.com/GbtLvCVc
2012-05-22T03:45:41 < danielson> I'm trying to see that AUDIO_REC_SPI_IRQHANDLER fires
2012-05-22T03:46:24 < danielson> But the LEDs don't chase, breakpoint never hits
2012-05-22T03:48:09 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 265 seconds]
2012-05-22T04:05:06 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-22T04:13:22 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 276 seconds]
2012-05-22T04:21:16 < blkcat> feurig_: i've got an nxp cortex-m0 and an st -m4, just learning the ropes at the moment really.
2012-05-22T05:11:30 -!- Huitaryan [~Huitaryan@blk-252-42-151.eastlink.ca] has joined ##stm32
2012-05-22T05:19:59 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has left ##stm32 []
2012-05-22T06:37:42 -!- ntfreak_ [~ntfreak@unaffiliated/ntfreak] has joined ##stm32
2012-05-22T06:38:24 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-22T06:39:20 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has quit [Ping timeout: 246 seconds]
2012-05-22T06:40:58 -!- Huitaryan [~Huitaryan@blk-252-42-151.eastlink.ca] has quit [Ping timeout: 252 seconds]
2012-05-22T06:44:32 -!- Huitaryan [~Huitaryan@blk-252-42-151.eastlink.ca] has joined ##stm32
2012-05-22T07:09:47 -!- Huitaryan [~Huitaryan@blk-252-42-151.eastlink.ca] has quit [Read error: Connection reset by peer]
2012-05-22T07:10:14 -!- Huitaryan [~Huitaryan@blk-252-42-151.eastlink.ca] has joined ##stm32
2012-05-22T07:53:44 -!- izua [~izua@86.121.85.162] has joined ##stm32
2012-05-22T07:53:44 -!- izua [~izua@86.121.85.162] has quit [Changing host]
2012-05-22T07:53:44 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-22T07:53:45 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-22T08:04:35 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Ping timeout: 256 seconds]
2012-05-22T08:04:43 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-22T08:53:01 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-22T09:36:05 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 246 seconds]
2012-05-22T09:37:43 -!- Huitaryan [~Huitaryan@blk-252-42-151.eastlink.ca] has quit [Ping timeout: 276 seconds]
2012-05-22T10:02:03 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has joined ##stm32
2012-05-22T10:03:10 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds]
2012-05-22T10:04:47 -!- ntfreak_ [~ntfreak@unaffiliated/ntfreak] has quit [Ping timeout: 246 seconds]
2012-05-22T10:06:44 < jon1012> is there a way to block the stm32 swd / jtag ?
2012-05-22T10:06:51 < jon1012> I mean to avoid the firmware to be read
2012-05-22T10:11:15 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32
2012-05-22T10:11:28 < cjbaird> Any partcular reason for asking that on an IRC network devoted to free and open source software?
2012-05-22T10:24:02 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-22T10:24:38 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Ping timeout: 252 seconds]
2012-05-22T10:37:07 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-22T10:42:34 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32
2012-05-22T10:53:07 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving]
2012-05-22T11:01:08 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-22T11:06:13 < jon1012> cjbaird, I do open source most of the time :)
2012-05-22T11:06:29 < jon1012> cjbaird, I released years of work as open source
2012-05-22T11:06:45 < jon1012> cjbaird, but sometimes, you need that kind of protection for various reasons
2012-05-22T11:16:25 < cjbaird> I'm not a cranky person, honest. :)
2012-05-22T11:34:27 < zyp> jon1012, seen the first url in the topic?
2012-05-22T11:35:32 < jon1012> zyp, yeah
2012-05-22T12:05:20 < jon1012> ?
2012-05-22T12:07:36 < jon1012> (btw, for anyone wondering, iteadstudio pcb are great and work perfectly for fine pitch ics like the stm32f407)
2012-05-22T12:07:58 < jon1012> (10 usd and I got 11 boards... 5x5 cm)
2012-05-22T12:08:17 < karlp> are there still pcb fab places that can't do 0.5mm pitch parts reliably?
2012-05-22T12:08:28 < karlp> I would hve thought they'd all gone under or upgraded by now.
2012-05-22T12:08:42 < jon1012> hehe, yeah I doubt there are still
2012-05-22T12:08:51 < jon1012> but for that price it wasn't sure :)
2012-05-22T12:09:07 < jon1012> and thequality is good, soldered and it works like a charm on first try
2012-05-22T12:12:28 < jon1012> yup
2012-05-22T12:12:33 < jon1012> it's good
2012-05-22T12:13:12 < jon1012> I've done 7 mil traces and a lot of vias
2012-05-22T12:16:10 < jon1012> wow indeed
2012-05-22T12:16:15 < jon1012> dongs, which manufacturer ?
2012-05-22T12:17:43 < jon1012> ok
2012-05-22T12:18:17 < jon1012> I don't have long lines like yours
2012-05-22T12:18:29 < jon1012> but the vias are good
2012-05-22T12:18:59 < zyp> jon1012, what's your definition of «good quality»? «better than I can do by home etching»?
2012-05-22T12:19:18 < jon1012> zyp, as good or better than pcb pool from what I've seen
2012-05-22T12:20:25 < zyp> more like pcb pool is just as bad
2012-05-22T12:20:30 < jon1012> hehe
2012-05-22T12:20:39 < jon1012> maybe
2012-05-22T12:20:54 < jon1012> well, my pcbs work, quality seems ok, and it's very cheap
2012-05-22T12:20:58 < jon1012> what more could I ask for ?
2012-05-22T12:31:59 < karlp> what's the connector? to the left of the battery terminals on the blue pcb dongs?
2012-05-22T12:32:05 < karlp> with the gold donut?
2012-05-22T12:32:24 < karlp> ah right.
2012-05-22T12:33:07 < karlp> what size is that?
2012-05-22T12:34:31 < zyp> I got some sockets with smt connector and through-hole mounting pins
2012-05-22T12:34:52 < zyp> they seem decent enough, haven't ripped one off yet
2012-05-22T12:35:42 < zyp> they are similar to the micro-connector used on the F4 discovery board
2012-05-22T12:38:03 < zyp> there are four pins going into holes
2012-05-22T12:39:37 < zyp> I've ripped of some myself on the board I did last year
2012-05-22T12:40:45 < karlp> the micro ones I've got in a baggy, but haven't used yet are like yours zyp, smt connectors and through hole lugs for mounting
2012-05-22T12:40:50 < karlp> time will tell how they last.
2012-05-22T12:42:02 -!- _abc_ [~user@unaffiliated/ccbbaa] has joined ##stm32
2012-05-22T12:43:45 < zyp> http://search.digikey.com/us/en/products/10103594-0001LF/609-4050-1-ND/2350357 <- this is the ones I got
2012-05-22T12:49:06 < karlp> zyp: looks like mine.  I'm at work now, don't have my part numbers handy, but I thought I had them a fair bit cheaper than that, maybe 50c/piece
2012-05-22T12:50:12 < karlp> this was only a lot of 5 or so.
2012-05-22T12:53:49 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-22T13:06:26 -!- _abc_ [~user@unaffiliated/ccbbaa] has quit [Read error: Operation timed out]
2012-05-22T13:23:38 -!- dekar [~dekar@dslb-188-107-174-192.pools.arcor-ip.net] has joined ##stm32
2012-05-22T13:23:40 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-22T13:33:44 < Tectu> people talk about functions like sprintf etc. do use massive memory, but how much? how should i decide, when i create a threads stack?
2012-05-22T13:36:20 < Tectu> zyp, something's bad when   pc is 0xfffffffe   right?
2012-05-22T13:37:00 < karlp> yes.
2012-05-22T13:38:57 < Tectu> how can that happen
2012-05-22T13:39:57 < karlp> you write garbage into it?
2012-05-22T13:40:03 < zyp> that's the lockup addr
2012-05-22T13:40:34 < zyp> I believe you get that when there is a problem executing the hardfault handler
2012-05-22T13:41:04 < jon1012> someone tried to run the stm32f4 at 250 mhz ? do I need special cooling ?
2012-05-22T13:41:34 < zyp> probably not
2012-05-22T13:41:41 < Tectu> zyp, just trying to use sprintf() ;-)
2012-05-22T13:51:42 < jon1012> zyp, ok :)
2012-05-22T13:52:14 < jon1012> another question if someone knows, is there a cheaper alternative that is pin to pin compatible with the stm32f407v (100 pin lqfp) ?
2012-05-22T13:52:20 < jon1012> perhaps in the f2 series ?
2012-05-22T13:52:39 < jon1012> that I can put on a pcb designed for the stm32f4 where I need less processing power
2012-05-22T13:53:52 < zyp> F2 an F4 are directly pin compatible
2012-05-22T13:54:15 < jon1012> so the stm32f207 would do the trick ?
2012-05-22T13:54:21 < zyp> yep
2012-05-22T13:54:45 < zyp> F4 is pretty much F2 with M4F core instead of M3
2012-05-22T13:55:10 < jon1012> thanks :)
2012-05-22T13:55:37 < Tectu> zyp, master of knowledge.
2012-05-22T13:55:59 < zyp> jon1012, and it's your responsibility to double check this
2012-05-22T13:56:25 < jon1012> yeah before ordering 1000 pcs :p
2012-05-22T13:59:31 < karlp> read the "upgrading from f2 to f4" docs backwards
2012-05-22T13:59:46 < karlp> and the upgrade notes from f1 to f2 backwards
2012-05-22T13:59:51 < karlp> and f1 to l1 backwards :)
2012-05-22T14:01:24 < BrainDamage> they don't seem very intelleggible "tsel ta rof elbats eb tsum sserdda"
2012-05-22T14:02:26 -!- danielson [danielson@D-128-208-62-165.dhcp4.washington.edu] has quit [Ping timeout: 252 seconds]
2012-05-22T14:03:19 < jon1012> hehe
2012-05-22T14:06:50  * karlp laughs
2012-05-22T14:20:10 < Tectu> when having a glcd, does it make sense, to only "clear" the area of the display which gets new data, instead of the whole LCD? I guess yes?
2012-05-22T14:20:27 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Ping timeout: 245 seconds]
2012-05-22T14:32:51 < Tectu> ah
2012-05-22T14:42:09 < Tectu> how does one find out what   .ARM.extab  nad  .ARM.exidx   sections are for?
2012-05-22T14:43:29 < zyp> you can read the ARM ELF docs
2012-05-22T14:43:37 < Tectu> zyp, sounds painful
2012-05-22T14:44:02 < zyp> well, I believe they contain information for exception unwinding
2012-05-22T14:44:26 < zyp> you don't really have to care about those
2012-05-22T14:45:41 < Tectu> yeah, it's just since i use sprintf(), they are written too, when i load the elf.
2012-05-22T14:45:51 < Tectu> and i am curios, because i know that they have something to do with syscalls
2012-05-22T14:46:08 < Tectu> but i guess it's not such a bad thing, right?
2012-05-22T14:46:48 < Laurenceb> lolzers
2012-05-22T14:47:00  * Laurenceb is using evince for live data display in ubuntu
2012-05-22T14:47:28 < Laurenceb> data over usb -> octave script -> gnuplot -> evince as epsc
2012-05-22T14:47:59 < Laurenceb> it actually runs in real time
2012-05-22T14:48:25 < Tectu> Laurenceb, evince is a pdf viewer, right?
2012-05-22T14:48:31 < Laurenceb> yes
2012-05-22T14:48:35 < Tectu> wtf
2012-05-22T14:49:27 < Laurenceb> thats what i thought
2012-05-22T14:49:57 < zyp> «real time»
2012-05-22T14:50:10 < Laurenceb> few frames a second
2012-05-22T14:51:24 < Laurenceb> its actually part of the buit script for my thesis
2012-05-22T14:51:32 < Laurenceb> not meant to do this :P
2012-05-22T14:57:07 < Laurenceb> heh
2012-05-22T14:57:59 < zyp> that's why I think the arm/disarm gestures are stupid
2012-05-22T15:00:37 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-22T15:01:05 < karlp> what's arm/disarm? a sequence of movements on the rc controller and it just switches off?
2012-05-22T15:01:23 < zyp> yep
2012-05-22T15:02:15 < zyp> zero throttle and full roll or yaw in one direction
2012-05-22T15:02:16 < karlp> why would you ever want that?
2012-05-22T15:02:41 < karlp> your thing just dropped out of the sky?
2012-05-22T15:02:51 < zyp> so you don't accidentially bump the throttle and have it jump in your face
2012-05-22T15:03:02 < zyp> or something like that
2012-05-22T15:03:07 < karlp> is this so you can abort if it's about to crash into someone's window or something?
2012-05-22T15:03:36 < zyp> I have a physical switch for power to the motors on my quad, so I treat it as armed whenever the switch is on
2012-05-22T15:05:02 < Thorn> this channel needs to be renamed to ##quadcopters
2012-05-22T15:05:16 < Thorn> looks like I'm the only one who doesn't do them
2012-05-22T15:07:43 < Tectu> Thorn, me eighter
2012-05-22T15:08:12 < cjbaird> My overcashed bogan brother is into RC Helios, so I
2012-05-22T15:08:21 < cjbaird> My overcashed bogan brother is into RC Helios, so I've avoided getting involved..
2012-05-22T15:27:34 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |]
2012-05-22T15:56:36 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-22T16:37:00 < Tectu> dongs, excel or libreoffice?
2012-05-22T16:37:55 < zyp> dongs don't use any libreoffice
2012-05-22T16:38:00 < zyp> only nazioffice
2012-05-22T16:40:09 < karlp> dongs: maybe not, I know people who "use excel and word" but actually have open office installed and don't notice any difference.
2012-05-22T16:40:26 < Tectu> karlp, right, thats why i am asking, dongs
2012-05-22T16:40:38 < karlp> Tectu: however, you need to know dongs a little better :)
2012-05-22T16:40:54 < Tectu> somebody asks you for help in excel, people write minutes over minutes, half hour later it turns out they are using libreoffice calc
2012-05-22T16:41:13 < Tectu> karlp, i guess so
2012-05-22T16:41:54 < Tectu> what's that horrible about libreoffice? I use any office suite just once every two weeks or so, and when, then just very very basic letter writing
2012-05-22T16:44:52 < Tectu> did someone here use ssd1289 tft controller?
2012-05-22T16:46:04 < BrainDamage> I find libreoffice suit rather heavy to load for the functionality it does
2012-05-22T16:46:23 < BrainDamage> it improved a bit with years eversince the ooo days
2012-05-22T16:46:45 < BrainDamage> also, I developed quite some distaste for the layouting mechanism
2012-05-22T16:47:30 < BrainDamage> ( otoh, what I currenctly use, latex, still gives me hell about extremely unhelpful error messages, even worse than gcc )
2012-05-22T16:48:47 < karlp> latex is like autotools.
2012-05-22T16:48:56 < karlp> awesome for it's time
2012-05-22T16:49:34 < zyp> so, what alternatives to latex do you recommend?
2012-05-22T16:53:34 -!- Huitaryan [~Huitaryan@blk-252-42-151.eastlink.ca] has joined ##stm32
2012-05-22T16:54:58 < karlp> zyp: tbh, I no longer have any need for large scale formal writing,
2012-05-22T16:55:14 < karlp> these days it's wiki text / markdown.
2012-05-22T16:55:24 < karlp> if it gets bigger than that, something odd has happened in my life
2012-05-22T16:56:30 < Laurenceb> thats what she said
2012-05-22T16:58:08 < karlp> DONGS!
2012-05-22T17:04:08 < zyp> I don't think I've touched latex myself since I delivered my final report in uni
2012-05-22T17:05:37 < karlp> dongs would be proud, I did my thesis in word 6.0, genuine MS
2012-05-22T17:06:10 < cjbaird> LyX is the 'usual' way to TeXfag these days amoung the people I know who do it..
2012-05-22T17:06:53 < karlp> lyx was the way back then too, I even tried to use it myself about 2-3 years ago. couldn't make head or tail of it.
2012-05-22T17:07:19 < cjbaird> I did a bit of playing around recently with latex after getting the Kindle3, and trying out a custom style for it.
2012-05-22T17:17:05  * Laurenceb is currently writing multiple reports in latex
2012-05-22T17:22:34 < Laurenceb> or you could have him pay in sensors
2012-05-22T17:46:49 < cjbaird> "Your disk quota for this semester is 2 megabytes"
2012-05-22T17:48:50 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-22T17:52:18 < karlp> fucking 802.15.4 export restrictions
2012-05-22T17:52:23 < karlp> how do they expect anyone to use it?
2012-05-22T17:52:41 < karlp> farnell says they ship it, then holds your order until you fill out export clearance forms
2012-05-22T17:52:46 < karlp> digikey won't ship them outright
2012-05-22T17:52:52 < karlp> mouser just happily sends them.
2012-05-22T17:53:06 < karlp> encryption is not a weapon anymore people!
2012-05-22T17:53:46 < ziph> Farnell will make you fill out export clearance forms on practically anything.
2012-05-22T17:54:10 < ziph> Amusingly if you do so from Singapore they want a photocopy of your national ID card.
2012-05-22T17:54:33 < ziph> Not at all aware that most countries find the idea of national ID cards abhorrent.
2012-05-22T17:55:38 < ziph> I usually just contact the manufacturer who then gets Digikey to fix the database.
2012-05-22T17:57:20 < ziph> Remove the export restriction.
2012-05-22T17:57:33 < karlp> ziph: I've tried with digikey a few times, they flat out refuse, say it's justice department
2012-05-22T17:57:50 < karlp> despite the justice department saying they rescinded that reg years ago
2012-05-22T17:58:05 < ziph> On things where it doesn't make sense?
2012-05-22T17:58:41 < karlp> was trying farnell for the first time, we were getting a shipment from work.
2012-05-22T17:59:04 <+dekar> I receiver noise at 1ghz from my stm32 :D
2012-05-22T17:59:13 <+dekar> using my rtl-sdr
2012-05-22T17:59:16 < karlp> ziph: that's impressive getting the manufacturer to fix it with digikey
2012-05-22T17:59:17 -!- tavish [~tavish@59.177.7.226] has joined ##stm32
2012-05-22T17:59:18 -!- tavish [~tavish@59.177.7.226] has quit [Changing host]
2012-05-22T17:59:18 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-22T17:59:19 < karlp> might hve to give that a go
2012-05-22T17:59:57 < Laurenceb> dekar: wut
2012-05-22T18:00:01 < Laurenceb> dvbt dongle?
2012-05-22T18:00:04 <+dekar> yeah
2012-05-22T18:00:12 < Laurenceb> you cross compiled to stm32?
2012-05-22T18:00:26 <+dekar> no I mean the stm32 emits noise
2012-05-22T18:00:30 < Laurenceb> oh
2012-05-22T18:00:31 <+dekar> which I can pick up
2012-05-22T18:00:42 < Laurenceb> i thought you used usb otg to connect
2012-05-22T18:01:21 < ziph> Does the STM32F4 have bits to enable power to peripherals?
2012-05-22T18:03:39 < emeb> they're used to programming in C++?
2012-05-22T18:06:03 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-22T18:15:29 < karlp> because they're too lazy to share some small utility functrions in fully blown .so's/dlls, even if they want to share the headers.
2012-05-22T18:18:38 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 246 seconds]
2012-05-22T18:19:32 < zyp> ziph, clock, not power
2012-05-22T18:19:53 < ziph> zyp: Ta, found the clock one.
2012-05-22T18:19:53 < zyp> dongs, so it can be inlined
2012-05-22T18:20:30 < zyp> ziph, makes out to the same, unclocked peripherals doesn't draw much power
2012-05-22T18:20:31 -!- tavish [~tavish@120.59.5.255] has joined ##stm32
2012-05-22T18:20:31 -!- tavish [~tavish@120.59.5.255] has quit [Changing host]
2012-05-22T18:20:31 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-22T18:21:21 < ziph> zyp: Yeap.
2012-05-22T18:25:39 -!- tavish_ [~tavish@120.59.6.239] has joined ##stm32
2012-05-22T18:26:48 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds]
2012-05-22T18:30:01 -!- tavish_ [~tavish@120.59.6.239] has quit [Ping timeout: 244 seconds]
2012-05-22T18:31:23 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-22T18:31:47 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-22T18:31:51 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-22T18:35:40 < Tectu> dongs, should work
2012-05-22T18:35:54 < Tectu> but on USART side, won't be that good on RS-232 side...
2012-05-22T18:36:56 < Tectu> i have done that serval times
2012-05-22T18:37:05 < Tectu> not sure how that works with high bit rates, but 115200 if sure no problem
2012-05-22T18:37:27 < Tectu> just make sure you don't take 500mA highpower LEDs ;)
2012-05-22T18:41:13 < Tectu> how does one debugg without logic analyzer
2012-05-22T18:41:23 < Tectu> debug SPI*
2012-05-22T18:43:32 < zyp> prayer
2012-05-22T18:45:38 < Tectu> dongs, is it good or just aonther crap?
2012-05-22T18:45:47 < Tectu> i have one of these openbench logic sniffers from seeed
2012-05-22T18:45:52 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-22T18:45:52 < Tectu> but the software client dosent work (anymore)
2012-05-22T18:46:15 < Tectu> yeah
2012-05-22T18:46:31 < Tectu> payed 50$ for openbench
2012-05-22T18:46:56 < Tectu> dongs, i payed for the hardwarea
2012-05-22T18:47:00 < Tectu> sadly the client sucks
2012-05-22T18:47:03 < Tectu> and dosen't work anymore
2012-05-22T18:47:04 < Tectu> i mean wtf.
2012-05-22T18:47:59 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-22T18:48:51 < Tectu> dongs, you have one of these saleae clones?
2012-05-22T18:51:12 < Tectu> good for you
2012-05-22T18:51:34 -!- tavish_ [~tavish@120.56.129.126] has joined ##stm32
2012-05-22T18:54:13 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds]
2012-05-22T18:54:18 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 244 seconds]
2012-05-22T18:55:36 < Tectu> 9941 units in stock, damn wtf
2012-05-22T18:57:32 -!- tavish_ [~tavish@120.56.129.126] has quit [Ping timeout: 245 seconds]
2012-05-22T18:58:43 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-22T19:02:52 -!- tavish [~tavish@unaffiliated/tavish] has quit [Read error: Connection reset by peer]
2012-05-22T19:05:59 -!- cjbaird [~cjb@ppp121-44-17-55.lns20.syd6.internode.on.net] has quit [Ping timeout: 245 seconds]
2012-05-22T19:06:08 -!- cjbaird [~cjb@ppp121-44-93-193.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-22T19:07:22 -!- tavish [~tavish@59.177.11.180] has joined ##stm32
2012-05-22T19:07:22 -!- tavish [~tavish@59.177.11.180] has quit [Changing host]
2012-05-22T19:07:22 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-22T19:13:49 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 256 seconds]
2012-05-22T19:14:31 < BrainDamage> Tectu: which client are you using?
2012-05-22T19:14:37 < blkcat> hey guys.
2012-05-22T19:14:45 < BrainDamage> also, did you upgrade the logic analyzer's firmware?
2012-05-22T19:16:03 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-22T19:16:11 < Tectu> BrainDamage, used ols
2012-05-22T19:16:20 < Tectu> BrainDamage, but that dosen't work anymore
2012-05-22T19:16:25 < Tectu> BrainDamage, no, i didn't
2012-05-22T19:16:51 < Tectu> BrainDamage, ols gives error when tring to make capture
2012-05-22T19:17:23 < BrainDamage> upgrade the hw's firmware
2012-05-22T19:17:29 -!- cjbaird [~cjb@ppp121-44-93-193.lns20.syd6.internode.on.net] has quit [Remote host closed the connection]
2012-05-22T19:17:35 < BrainDamage> you'll have to upgrade both fpga core and pic's firmware
2012-05-22T19:18:39 < Tectu> BrainDamage, didn't work under archlinux, under windows, i didn't find the matching hex files to flash
2012-05-22T19:18:57 < Tectu> BrainDamage, also, i am very very confused about the different choices the upgrader client gives
2012-05-22T19:19:05 < BrainDamage> wrong
2012-05-22T19:19:10 < BrainDamage> I did upgrade under arch
2012-05-22T19:19:19 < BrainDamage> sec
2012-05-22T19:19:32 < Tectu> BrainDamage, would be very thankful
2012-05-22T19:19:41 < Tectu> didn't buy that little thing without purpose ;)
2012-05-22T19:21:42 < BrainDamage> http://dangerousprototypes.com/docs/Open_Bench_Logic_Sniffer#Software
2012-05-22T19:21:52 < BrainDamage> grab both pic firmware and fpga core
2012-05-22T19:22:39 < BrainDamage> install the package from AUR ols-fwloader-git
2012-05-22T19:23:19 < Tectu> having that package
2012-05-22T19:23:58 < BrainDamage> upload the fpga core using  ols-loader -write -erase -p:/dev/ttyACM0 -wB:$FILENAME
2012-05-22T19:24:33 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds]
2012-05-22T19:24:44 < BrainDamage> to upload pic's firmware instead, you'll have to unpload the device, and replug holding the firmware upgrade button
2012-05-22T19:25:10 < Tectu> ah, that explains alot. had device in upgrade mode when i did fpga upgrade too
2012-05-22T19:25:18 < BrainDamage> when it's in firmware upgrade mode, lsusb should return code 04d8:fc90
2012-05-22T19:25:30 < blkcat> i should really pick one of those up myself
2012-05-22T19:25:43 < BrainDamage> they have one single problem:
2012-05-22T19:25:48 < BrainDamage> the buffer is small
2012-05-22T19:26:02 < BrainDamage> so you have to pick your sampling freq carefully
2012-05-22T19:26:16 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-22T19:26:36 < BrainDamage> to upgrade the pic's firmware, use ls-fw-update -e -w -m flash -vid 0x04D8 -pid 0xFC90 -ix $PIC_FILENAME
2012-05-22T19:27:22 < BrainDamage> sorry, it should be ols-fw-update, not ls-fw-update
2012-05-22T19:28:37 < Tectu> BrainDamage, i really can't find the fpga .hex file o0
2012-05-22T19:28:54 < Tectu> is it inside of one of these varilog archives?
2012-05-22T19:29:39 < Tectu> ah, it's the .bit or .mcs file, not .hex
2012-05-22T19:29:53 -!- izua [~izua@86.121.85.162] has joined ##stm32
2012-05-22T19:29:53 -!- izua [~izua@86.121.85.162] has quit [Changing host]
2012-05-22T19:29:53 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-22T19:29:56 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-22T19:31:16 < BrainDamage> yes, it's the one in the verilog-7 archive
2012-05-22T19:31:52 < Tectu> ok, lemme try :)
2012-05-22T19:32:09 < Tectu> BrainDamage, btw, when reading ols_fwloader help, it gives a few different commandos
2012-05-22T19:32:21 < Tectu> are yours just "templates" or should they work that way?
2012-05-22T19:32:51 < BrainDamage> they should be the correct ones
2012-05-22T19:33:12 < BrainDamage> ofc you'll have to pick the right file if you give bin flag, etc
2012-05-22T19:34:02 < BrainDamage> ofc should change them, according to which file format you pick
2012-05-22T19:34:12 < Tectu> sure
2012-05-22T19:34:16 < Tectu> lemme take a look
2012-05-22T19:34:22 < Tectu> would be awesome if that thing works
2012-05-22T19:34:23 < Tectu> again
2012-05-22T19:34:30 < Tectu> Error reading OLS id
2012-05-22T19:34:31 < Tectu> Unable to read ID
2012-05-22T19:34:31 < Tectu> Unable to open OLS
2012-05-22T19:34:53 < Tectu> probably my pic firmware is broken since my last try failed for no reason
2012-05-22T19:34:59 < Tectu> try that first
2012-05-22T19:35:04 < BrainDamage> did you reboot after upgrading?
2012-05-22T19:35:09 < BrainDamage> the device I mean
2012-05-22T19:36:13 < Tectu> no
2012-05-22T19:36:19 < BrainDamage> do it :p
2012-05-22T19:36:21 < Tectu> lol
2012-05-22T19:36:27 < Tectu> afk, i'll do it later ;-)
2012-05-22T19:36:30 < Tectu> eat / shower
2012-05-22T19:36:38 < Tectu> ok, pic firmware upgrade worked
2012-05-22T19:36:40 < Tectu> afk.
2012-05-22T19:40:08 -!- dekar [~dekar@dslb-188-107-174-192.pools.arcor-ip.net] has quit [Ping timeout: 252 seconds]
2012-05-22T19:46:20 < BrainDamage> btw, make also sure you got permissions to access the device
2012-05-22T19:46:27 < BrainDamage> you might have to write a udev rule to do it
2012-05-22T19:46:35 < BrainDamage> alternatively, temp launch ols as root for testing
2012-05-22T19:49:37 < Tectu> BrainDamage, back
2012-05-22T19:49:44 < Tectu> BrainDamage, i did simple run the software as root
2012-05-22T19:51:34 < Tectu> BrainDamage, pic upgrade worked without problems, did restart the device (unplug, repluggedin)
2012-05-22T19:51:35 < Tectu> sudo ols_fwloader -f APP -P /dev/ttyACM0 -W -w verilog/logic_sniffer.bit -t BIN
2012-05-22T19:51:52 < Tectu> that is what ols_fwloader suggests for flashing FPGA core
2012-05-22T19:52:09 < Tectu> but i keep getting this error:
2012-05-22T19:52:11 < Tectu> Error reading OLS id
2012-05-22T19:52:11 < Tectu> Unable to read ID
2012-05-22T19:52:11 < Tectu> Unable to open OLS
2012-05-22T19:53:20 < BrainDamage> perhaps verify against the file?
2012-05-22T19:53:22 < BrainDamage> use -V
2012-05-22T19:53:28 < Tectu> dosen't work with .mcs as well
2012-05-22T19:53:31 < Tectu> ok, lemme try
2012-05-22T19:54:01 < Tectu> -V didn't change anything, BrainDamage
2012-05-22T19:54:33 < BrainDamage> I mean, did the verify succeed?
2012-05-22T19:54:51 -!- tavish [~tavish@unaffiliated/tavish] has quit [Read error: Connection reset by peer]
2012-05-22T19:55:14 < Tectu> BrainDamage, no verifyng happened?
2012-05-22T19:55:28 < Tectu> BrainDamage,     did this:      sudo ols_fwloader -f APP -P /dev/ttyACM0 -W -w -V verilog/Logic_Sniffer.mcs
2012-05-22T19:55:40 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-22T19:56:17 < BrainDamage> mmm
2012-05-22T19:56:32 < BrainDamage> try skipping -W
2012-05-22T19:56:36 < BrainDamage> so it won't write
2012-05-22T19:57:04 < BrainDamage> also, pass -d
2012-05-22T19:57:07 < BrainDamage> so it's verbose
2012-05-22T19:57:40 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-22T19:59:23 < Tectu> BrainDamage, sudo ols_fwloader -f APP -P /dev/ttyACM0 -d -V -w verilog/Logic_Sniffer.mcs
2012-05-22T19:59:27 < Tectu> this keeps getting the same errors
2012-05-22T19:59:32 < Tectu> nothing else on output too
2012-05-22T19:59:52 < BrainDamage> what error?
2012-05-22T20:00:01 < BrainDamage> the wrong ID?
2012-05-22T20:00:34 < BrainDamage> are you sure you're not in bootloader mode?
2012-05-22T20:01:46 < Tectu> BrainDamage, no, i thougt i shall not be in bootloader mode when doing FPGA core, ony with PIC firmware??
2012-05-22T20:01:58 < BrainDamage> correct
2012-05-22T20:01:59 < Tectu> ah, looks different now
2012-05-22T20:02:01 < Tectu> my, bad, sorry :)
2012-05-22T20:02:06 < Tectu> correct?
2012-05-22T20:02:07 < Tectu> what?
2012-05-22T20:02:10 < Tectu> what now -.-
2012-05-22T20:02:27 < BrainDamage> sec
2012-05-22T20:04:01 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-22T20:04:08 < BrainDamage> afaik it shouldn't be in bootloader mode to replace fpga firmware
2012-05-22T20:04:17 < BrainDamage> but if there works :p
2012-05-22T20:07:51 < Tectu> BrainDamage, verify ok :)
2012-05-22T20:07:59 < karlp> sweet, first stm32 board in my hot little hands.
2012-05-22T20:08:09 < karlp> time for some solder adventures this evening.
2012-05-22T20:08:34 < BrainDamage> what should it do?
2012-05-22T20:08:39 < Tectu> karlp, enjoy
2012-05-22T20:09:07 < karlp> local temp/humi, 802.15.4 interrface, and two plugs for either temp probes or control outputs.
2012-05-22T20:09:16 < karlp> running on batteries
2012-05-22T20:09:25 < BrainDamage> I guess it's a L series?
2012-05-22T20:09:41 -!- tavish_ [~tavish@120.56.136.97] has joined ##stm32
2012-05-22T20:09:42 < karlp> actually, this one isn't, but the L drops on later too.
2012-05-22T20:10:07 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-22T20:10:24 < karlp> I have a few f100's I got cheap, and I reckon I can still do a decent job on that, continuing the learning fun
2012-05-22T20:11:05 <+Steffanx> nu
2012-05-22T20:11:17 < BrainDamage> psi
2012-05-22T20:11:53 <+Steffanx> I received my 'cheap' f103c8's fro ebay a few days ago. They are real or !@#$% good clones :)
2012-05-22T20:11:54 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 250 seconds]
2012-05-22T20:11:58 <+Steffanx> *from
2012-05-22T20:12:09 < Tectu> BrainDamage, well, here's the next thing... i also used the ols package from the aur, but since reinstalling my notebook, the client itself dosen't start properly (only gray windows)
2012-05-22T20:12:23 < Tectu> you know anything about that too, BrainDamage ?
2012-05-22T20:12:26 < Tectu> i have jre7 installed
2012-05-22T20:12:38 < BrainDamage> here works, I'm also using the aur package
2012-05-22T20:12:50 < Tectu> jre7 installed?
2012-05-22T20:13:27 < BrainDamage> java -version
2012-05-22T20:13:27 < BrainDamage> java version "1.6.0_24"
2012-05-22T20:13:27 < BrainDamage> OpenJDK Runtime Environment (IcedTea6 1.11.2) (ArchLinux-6.b24_1.11.2-1-x86_64)
2012-05-22T20:13:27 < BrainDamage> OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode
2012-05-22T20:13:35 < BrainDamage> 6
2012-05-22T20:14:56 < Tectu> odd
2012-05-22T20:14:59 < Tectu> worked for me with 1.6 too
2012-05-22T20:15:05 -!- tavish_ [~tavish@120.56.136.97] has quit [Ping timeout: 252 seconds]
2012-05-22T20:15:06 < Tectu> dosen't with 1.7
2012-05-22T20:15:18 < Tectu> is there a way to downgrad, BrainDamage ?
2012-05-22T20:15:23 < Tectu> pacman -Ss jre does only show jre7
2012-05-22T20:15:39 -!- _abc_ [~user@unaffiliated/ccbbaa] has joined ##stm32
2012-05-22T20:15:41 < BrainDamage> install downgrader program from aur
2012-05-22T20:15:53 < BrainDamage> downgrade and downgrader are 2 programs to downgrade packages
2012-05-22T20:16:34 < Tectu> is it "safe" or just some --force crap?
2012-05-22T20:16:51 < karlp> what's not running with jre7?
2012-05-22T20:17:03 < BrainDamage> a client for a logic sniffer
2012-05-22T20:17:08 < BrainDamage> not very stm32 related >_>
2012-05-22T20:17:26 < Tectu> karlp, OLS open bench logic sniffer client
2012-05-22T20:17:36 < Tectu> sorry for nonrelated talk in this channel ;-)
2012-05-22T20:17:41 < karlp> java and serial ports needs the right magic binaries for the jre version, not so much the version of java itself
2012-05-22T20:17:44 < Tectu> but SPI should be debugged with logic analyzer
2012-05-22T20:17:49 -!- Huitaryan1 [~Huitaryan@blk-252-42-151.eastlink.ca] has joined ##stm32
2012-05-22T20:17:54 < Tectu> karlp, you know fix for this?
2012-05-22T20:17:59 -!- Huitaryan [~Huitaryan@blk-252-42-151.eastlink.ca] has quit [Read error: Connection reset by peer]
2012-05-22T20:20:10 < karlp> no, but I know that java and serial ports is more pain that it should be.
2012-05-22T20:21:41 < Tectu> BrainDamage, downgrader just shows jre7 packages down to version 2.0
2012-05-22T20:22:06 < Tectu> shouldn't i go with any jre6 package instead? or is jre7 2.0 somehow java 1.6?
2012-05-22T20:22:16 < BrainDamage> I doubt that
2012-05-22T20:22:27 < BrainDamage> I guess jre6 is java 1.6
2012-05-22T20:23:13 < Tectu> ok, i guess i'm gonna figure out the rest myself,
2012-05-22T20:23:18 < Tectu> thanks for  your help, BrainDamage  :)
2012-05-22T20:25:54 < BrainDamage> you might be better asking in #archlinux
2012-05-22T20:28:46 < Tectu> BrainDamage, doing that
2012-05-22T20:28:57 < Tectu> BrainDamage, problem is that jre7 in repo is openjdk
2012-05-22T20:29:08 < Tectu> no offical oracle stuff is inside the repo :)
2012-05-22T20:29:28 < BrainDamage> does it have to be oracle?
2012-05-22T20:29:34 < BrainDamage> I'm doing fine with icedtea
2012-05-22T20:29:57 < Tectu> BrainDamage, yeah, with version 1.6 i did fine too ;-)
2012-05-22T20:45:00 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-22T20:45:16 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Disconnected by services]
2012-05-22T20:45:23 -!- Tom_L is now known as Tom_itx
2012-05-22T20:53:45 < Tectu> BrainDamage, how do you run logic_sniffer?
2012-05-22T20:53:49 < Tectu> sudo logic_sniffer?
2012-05-22T21:08:02 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection]
2012-05-22T21:09:01 < BrainDamage> sudo /opt/ols/run.sh
2012-05-22T21:26:41 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-22T21:27:40 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit []
2012-05-22T21:30:58 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has joined ##stm32
2012-05-22T21:31:00 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-22T21:33:48 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Quit: Quitte]
2012-05-22T21:39:41 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32
2012-05-22T21:41:24 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-22T21:44:01 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-22T22:11:31 -!- peabody128 [~peabody12@128.249.96.123] has joined ##stm32
2012-05-22T22:15:34 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 245 seconds]
2012-05-22T22:15:35 -!- peabody128 is now known as peabody124
2012-05-22T22:24:46 -!- dekar_ [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has joined ##stm32
2012-05-22T22:24:47 -!- mode/##stm32 [+v dekar_] by ChanServ
2012-05-22T22:26:21 -!- peabody128 [~peabody12@128.249.96.123] has joined ##stm32
2012-05-22T22:26:21 -!- peabody124 [~peabody12@128.249.96.123] has quit [Read error: Connection reset by peer]
2012-05-22T22:26:21 -!- peabody128 is now known as peabody124
2012-05-22T22:26:29 -!- peabody124 [~peabody12@128.249.96.123] has quit [Remote host closed the connection]
2012-05-22T22:26:56 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-22T22:27:49 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has quit [Ping timeout: 248 seconds]
2012-05-22T23:01:16 -!- _abc_ [~user@unaffiliated/ccbbaa] has quit [Quit: Lost terminal]
2012-05-22T23:09:04 -!- peabody128 [~peabody12@128.249.96.123] has joined ##stm32
2012-05-22T23:10:27 -!- peabody128 [~peabody12@128.249.96.123] has quit [Remote host closed the connection]
2012-05-22T23:10:38 -!- peabody124 [~peabody12@128.249.96.21] has quit [Read error: Connection reset by peer]
2012-05-22T23:10:57 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-22T23:14:35 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds]
2012-05-22T23:16:37 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-22T23:19:03 -!- danielson [danielson@D-128-208-62-165.dhcp4.washington.edu] has joined ##stm32
2012-05-22T23:20:33 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-22T23:35:34 < Laurenceb_> trolls?
2012-05-22T23:35:41 < Laurenceb_> BUT I AM A TROLL
2012-05-22T23:37:29 < Tectu> Laurenceb_, ever used ssd1289 controlled lcd?
2012-05-22T23:37:51 < Laurenceb_> no, never used an lcd
2012-05-22T23:38:02 < Laurenceb_> well - only nokia ripoffs and alphanumeric ones
2012-05-22T23:44:14 < Laurenceb_> any idea what causes "error while processing polygons" in eagle?
2012-05-22T23:49:16 < blkcat> hm, does anyone know a good source for the new-style swd cables?
2012-05-22T23:50:45 < karlp> meaning which, the 10 pin 1.27mm pitch cortex connector?
2012-05-22T23:51:05 < karlp> or the very non-standard stlink/v2 6pinx2.54mm pitch on the discovery boards?
2012-05-22T23:52:08 < blkcat> karlp: the first one. :)
2012-05-22T23:52:57 < karlp> no, sorry.  I've gone with the stlinkv2 6pin on the one I made today, I know it's not standard, but I didn't feel like paying a lot to get the header and then havin gto make a special cable too
2012-05-22T23:54:38 < blkcat> perhaps i'd better just use the old-style jtag connector for now, hah
2012-05-22T23:56:03 < karlp> yeah, I refused to put that on, that's far to monstrous
2012-05-22T23:57:00 < Tectu> karlp, maybe you use ssd1289 LCD controller?
2012-05-22T23:57:18 < karlp> no.
--- Day changed Wed May 23 2012
2012-05-23T00:02:22 < blkcat> http://search.digikey.com/us/en/products/0015916102/WM3699CT-ND/2421921 pricey.
2012-05-23T00:08:13 < Tectu> blkcat, through hole is at least three times cheaper
2012-05-23T00:08:28 < karlp> that's also 2.54mm pitch blkcat...
2012-05-23T00:09:01 < blkcat> oh, doy
2012-05-23T00:09:16 < Tectu> karlp, old-style jtag is 2.54mm pitch?!
2012-05-23T00:09:38 < karlp> yeah man, jumbo 20 pins of 100mil
2012-05-23T00:09:54 < Tectu> right, and he said he's going for that?
2012-05-23T00:10:09 < blkcat> okay, that's much better.
2012-05-23T00:10:15 < karlp> http://www.samtec.com/ProductInformation/TechnicalSpecifications/Overview.aspx?series=TFC  ?
2012-05-23T00:11:32 < karlp> or http://www.samtec.com/ProductInformation/TechnicalSpecifications/Overview.aspx?series=FTR
2012-05-23T00:11:48 < karlp> oh no, sorry, that's 50milx100mil
2012-05-23T00:15:46 < Laurenceb_> http://i.imgur.com/RmiGL.png
2012-05-23T00:15:48 < Laurenceb_> pwned
2012-05-23T00:16:01 < Laurenceb_> that took way too long
2012-05-23T00:18:05 <+Steffanx> And it's ugly, go four layers :P
2012-05-23T00:18:14 < Laurenceb_> lol
2012-05-23T00:18:54 < Laurenceb_> yeah im going to tidy it a bit still
2012-05-23T00:19:48 < Tectu> Laurenceb_, what the hell is that L-shaped header
2012-05-23T00:20:12 < Laurenceb_> thats 2 headers
2012-05-23T00:21:06 <+Steffanx> Why you don't go with four layers Laurenceb_?
2012-05-23T00:21:14 < BrainDamage> is that the imu board?
2012-05-23T00:21:22 <+Steffanx> A better/good ground + vcc plane :)
2012-05-23T00:21:40 <+Steffanx> And moar space for the traces
2012-05-23T00:22:54 < Laurenceb_> BrainDamage: no
2012-05-23T00:23:02 < Laurenceb_> my imu board is on my github
2012-05-23T00:23:15 < Laurenceb_> this is a datalogger
2012-05-23T00:24:46 < Tectu> what the hell is an   "imu"   board?
2012-05-23T00:25:25 < BrainDamage> inertial measurement unit
2012-05-23T00:25:40 < BrainDamage> a fusion of accele, gyro and magnetometer sensors using kalman filters
2012-05-23T00:25:58 < BrainDamage> and typically a gps too to reduce integral drift
2012-05-23T00:26:22 < BrainDamage> ( altough gps gives out abs measurements, not inertial )
2012-05-23T00:26:37 <+izua> imu's are epic
2012-05-23T00:26:39 <+izua> if you get the math
2012-05-23T00:27:02 < karlp> bleh, all my ranting about using micro usb cables and connectors instead of mini, and here I am with a surplus of mini b cables and no spare micro cables
2012-05-23T00:27:13 <+izua> just thinking that icbms used 40 year old technology to achieve 100-200m accuracy, before gps or anything, just based on imus
2012-05-23T00:27:28 < BrainDamage> laser gyros are awesome
2012-05-23T00:28:01 < Tectu> icmbs? :/
2012-05-23T00:28:32 <+Steffanx> karlp .. how on earth that's possible?
2012-05-23T00:28:36 < BrainDamage> intercontinental ballistic missiles
2012-05-23T00:28:48 < Tectu> oh
2012-05-23T00:28:51 < Tectu> :3
2012-05-23T00:28:51 < BrainDamage> they needed a guidance system to hit the target
2012-05-23T00:30:14 < Tectu> right
2012-05-23T00:31:12 <+izua> so they just did a double integral on acceleration to figure out where they are
2012-05-23T00:31:28 <+izua> well, that and some other information, like BrainDamage said
2012-05-23T00:31:48 <+izua> but integrated data was the primary means of figuring out its position.
2012-05-23T00:31:58 <+izua> which is wicked, considering how fast errors add up
2012-05-23T00:32:58 < karlp> Steffanx: oh, actually, I'm getting away with it, I'd forgotten the discovery boards were with mini-b anyway, so that's what I need for that end.
2012-05-23T00:37:05 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 265 seconds]
2012-05-23T00:45:58 < Tectu> zyp, you arround, sir of the sirs?
2012-05-23T00:46:06 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-23T00:47:07 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-23T00:49:06 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-23T00:54:29 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-23T01:00:02 < Tectu> that's the car electronics interface thing, right?
2012-05-23T01:10:32 < Tectu> c'mon ;-)
2012-05-23T01:18:56 < blkcat> grrrr this is so frustrating. :\
2012-05-23T01:19:32 < Laurenceb_> what?
2012-05-23T01:20:03 < blkcat> having some weird issues with getting the system clock working on my lpc1114 (flashed with swddude)
2012-05-23T01:20:18 < Laurenceb_> shouldnt have used lpc
2012-05-23T01:20:28 < blkcat> it seems to work fine when i compile in lpcxpresso but when i build with my own toolchain SystemCoreClockUpdate gets called and immediately drops the system to a fault handler
2012-05-23T01:21:00 < blkcat> and i'm baffled and irritated :D
2012-05-23T01:21:54 < blkcat> it's probably some stupid little thing that i keep overlooking...
2012-05-23T01:32:10 < Laurenceb_> erm...
2012-05-23T01:32:14 < Laurenceb_> yes flyback?
2012-05-23T01:34:05 < karlp> blkcat: do you provide SystemCoreClockUpdate?
2012-05-23T01:34:16 < karlp> or is the startup script trying to call it and you don't have it in your code?
2012-05-23T01:35:29 < blkcat> karlp: i'm using the CMSIS libraries for system initialization and microbuilder.eu's startup.c and handlers.c files
2012-05-23T01:35:37 < blkcat> karlp: SystemCoreClockUpdate is provided by CMSIS
2012-05-23T01:40:03 < blkcat> i just don't understand why it's broken when i use my toolchain but not when i use lpcxpresso :(
2012-05-23T01:43:51 <+dekar_> blkcat, oh well last time I used my GCC toolchain to compile CMSIS for the STM32 it came up with errors due to illegal assembly written by ARM
2012-05-23T01:44:07 < blkcat> if i comment the core to systemcoreclockupdate out the chip comes up fine, though of course it's mostly unusable heh
2012-05-23T01:44:30 < blkcat> dekar_: it all seems to compile fine, no errors or warnings. or is there an additional level of scrutiny that i can enable or something like that?
2012-05-23T01:44:34  * blkcat noob
2012-05-23T01:45:11 <+dekar_> did you try -O0?
2012-05-23T01:46:29 < Laurenceb_> -nO0b
2012-05-23T01:47:15 < blkcat> dekar_: one moment...
2012-05-23T01:48:04 < blkcat> http://pastebin.com/ZifXmdcv
2012-05-23T01:48:15 < blkcat> my makefile on top, lpcxpresso on the bottom
2012-05-23T01:48:24 < blkcat> i'm using a linkscript from microbuilder's library also (to go with their startup files)
2012-05-23T01:49:14 <+dekar_> blkcat, lol remove -Os first
2012-05-23T01:50:10 <+dekar_> also I would just disassemble and compare the compiled SystemCoreClockUpdate
2012-05-23T01:50:18 <+dekar_> or hook up jtag and step through it
2012-05-23T01:50:44 < blkcat> yeah, i guess i should stop banging my head against it and wait for my j-link to arrive
2012-05-23T01:51:07 <+dekar_> blkcat, also remove -ffunction-sections -fdata-sections
2012-05-23T01:51:29 < karlp> why? function sections are awesome
2012-05-23T01:51:42 < karlp> as long as your linker script recognises them as sections that should be kept
2012-05-23T01:52:24 <+dekar_> karlp, cause his code runs into some fault handler and we try to debug?
2012-05-23T01:52:35 <+dekar_> make sure your linker doesn't gc-sections
2012-05-23T01:53:12 <+dekar_> karlp, if his linker script drops the wrong sections this could explain it
2012-05-23T01:53:39 < karlp> well, yeah :)
2012-05-23T01:54:01 < blkcat> LDFLAGS = -nostartfiles -mcpu=$(CPU_TYPE) -mthumb -Wl,--no-gc-sections
2012-05-23T01:54:08 < karlp> ok, I guess it is easier to debug the first step without sections.
2012-05-23T01:54:32 <+dekar_> blkcat, remove the gc-sections part
2012-05-23T01:54:38 < blkcat> it is increasingly obvious that i have no idea what i'm doing.
2012-05-23T01:55:24 <+dekar_> blkcat, LDFLAGS = -nostartfiles -mcpu=$(CPU_TYPE) -mthumb -Wl
2012-05-23T01:55:54 <+dekar_> blkcat, also remove the -Os as well as -ffunction-sections -fdata-sections
2012-05-23T01:56:10 < blkcat> done and done
2012-05-23T01:56:42 < blkcat> hmph. still nothing.
2012-05-23T01:57:28 < blkcat> ...huh, could i debug this with the stlink?
2012-05-23T01:57:39 < karlp> you certainly should be able to.
2012-05-23T01:57:43 < karlp> that's what the stlink is for :)
2012-05-23T01:57:48 < karlp> oh hang on, on the lpc?
2012-05-23T01:57:52 <+dekar_> haha
2012-05-23T01:57:55 < karlp> not sure.
2012-05-23T01:57:58 < blkcat> yeah.
2012-05-23T01:58:05 < blkcat> looks like some people have had success.
2012-05-23T01:58:25 < karlp> it might "just work" but I don't have anything around to try it out with
2012-05-23T01:59:31 < blkcat> ghetto debugging, heh
2012-05-23T02:00:24 < karlp> I would presume that the stlink firmware only debugs st targets without much hackery
2012-05-23T02:00:40 < karlp> how long has the stdperiphlib redeclared bool?
2012-05-23T02:00:46 < karlp> I didn't think I'd noticed that before
2012-05-23T02:10:46 < blkcat> feh, maybe i should just stick with stm32
2012-05-23T02:12:22 < zyp> I suspect that the stlink would not recognise a different mcu id
2012-05-23T02:12:46 < blkcat> from what i'm reading st doesn't appear to do any sort of whitelisting
2012-05-23T02:13:00 < zyp> and the flash interface is probably different, so it wouldn't be able to write the flash
2012-05-23T02:13:14 < zyp> but otherwise, debugging would probably work
2012-05-23T02:14:41 < karlp> oh yeah, definitely don't try flashing,
2012-05-23T02:14:47 < karlp> but debugging should work.
2012-05-23T02:15:07 < karlp> (if it doesn't block non-st chips)
2012-05-23T02:15:17 < karlp> you'll need to edit the source to put in more chipids though...
2012-05-23T02:17:25 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 276 seconds]
2012-05-23T02:19:32 < karlp> hmm, so calling memset hardfaults, how do I find what syscall it needs but doesn't have?
2012-05-23T02:20:04 < karlp> if I've got newlib, can't I use CFLAGS+=-nostdlib and LD_FLAGS+=-lc ?
2012-05-23T02:20:50 < zyp> huh?
2012-05-23T02:20:52 < karlp> zlog where's the log
2012-05-23T02:20:52 < zlog> karlp: Log stored at http://tom-itx.dyndns.org:81/~tom-itx/irc/logs/%23%23stm32/2012-05-22.html
2012-05-23T02:21:23 < zyp> syscall?
2012-05-23T02:21:25 < BrainDamage> zlog: what about the z80 ?
2012-05-23T02:21:25 < zlog> BrainDamage: Log stored at http://tom-itx.dyndns.org:81/~tom-itx/irc/logs/%23%23stm32/2012-05-22.html
2012-05-23T02:22:18 < zyp> memset shouldn't make any syscalls, you aren't just memsetting an invalid location?
2012-05-23T02:23:51 < karlp> struct bstate state; memset(&state, 0, sizeof(state));
2012-05-23T02:24:02 < karlp> shouldn't be?
2012-05-23T02:26:40 < karlp> address of state is 0x20001fbc, so that's sram.
2012-05-23T02:44:21 < karlp> is there a way to see what handler it actually called?
2012-05-23T02:44:34 < karlp> my vectors just alias them all to Dummy_Handler,
2012-05-23T02:45:32 < karlp> I'm having yet another go at getting my head around using newlib properly :)
2012-05-23T02:45:47 < karlp> one day it's just all going to click
2012-05-23T02:46:53 < zyp> karlp, yes, check contents of cpsr
2012-05-23T02:47:03 < zyp> or xpsr or whatever your debugger calls it
2012-05-23T02:47:16 < karlp> 0x1000003 ?
2012-05-23T02:47:23 < karlp> hang on , that will be in the ref manual
2012-05-23T02:47:25 < zyp> lower nine bits or so tells you the current hand
2012-05-23T02:47:29 < zyp> 3 in this case
2012-05-23T02:47:32 < zyp> that's hardfault
2012-05-23T02:47:48 < zyp> current handler
2012-05-23T02:48:43 < karlp> blx is bad right?
2012-05-23T02:48:53 < karlp> that generated some arm code or something?
2012-05-23T02:48:59 < karlp> 8000e8a:f7ff eec0 blx8000c0c <memset>
2012-05-23T02:49:13 < zyp> blx <label> is a switch to arm-mode yes
2012-05-23T02:49:18 < karlp> bleh
2012-05-23T02:49:28 < zyp> so if you check SCB.CFSR you'd find the INVSTATE bit set
2012-05-23T02:49:42 < karlp> -mthumb and -mcpu=cortex-m3 isn't enough?
2012-05-23T02:50:13 < zyp> do you have that both in CFLAGS and LDFLAGS?
2012-05-23T02:50:26 < karlp> hmm, probably not in ldflags,
2012-05-23T02:50:33 < zyp> that's your problem
2012-05-23T02:50:43 < zyp> it's the linker that selects the lib
2012-05-23T02:52:02 < karlp> do that need -Wl, things?
2012-05-23T02:52:08 < karlp> I guess if they're behind gcc
2012-05-23T02:52:13 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 244 seconds]
2012-05-23T02:52:13 < zyp> no
2012-05-23T02:52:30 < zyp> just pass them as you do in CFLAGS
2012-05-23T02:52:56 <+dekar_> a multilib toolchain? ;)
2012-05-23T02:53:12 < karlp> whatever summonarm-toolchain gave me?
2012-05-23T02:53:19 < karlp> I guess I should have used TNT instead? ;)
2012-05-23T02:53:28 <+dekar_> yeah they apply some multilib patches
2012-05-23T02:53:34 <+dekar_> ya go for TNT :P
2012-05-23T02:53:40 < zyp> TNT?
2012-05-23T02:54:10 <+dekar_> my barely-working-toolchain-script :)
2012-05-23T02:54:21 < zyp> :p
2012-05-23T02:54:42 <+dekar_> well it works for me on OSX if you have all the archives downloaded to its folder already
2012-05-23T02:54:46 < karlp> I  just have one line, gcc, with cflags and ldflags? just putting them in twice doesn't seem to do much
2012-05-23T02:55:03 < zyp> huh?
2012-05-23T02:56:42 < karlp> the make line is just one call to arm-none-eabi-gcc: http://pastebin.com/YuF1Zxd6
2012-05-23T02:57:09 < zyp> ah, right
2012-05-23T02:57:36 < karlp> I've got nothing against making it multiple calls, it's just how I got it working first.
2012-05-23T02:58:19 < zyp> should still work this way
2012-05-23T02:58:29 < zyp> so I guess something is wrong with your toolchain
2012-05-23T02:58:35 < karlp> awesome :)
2012-05-23T02:59:19 <+dekar_> karlp, you can disable the multilib patches for SAT
2012-05-23T02:59:35 <+dekar_> or you could really try TNT
2012-05-23T02:59:57 < karlp> how are all the SAT people working?
2012-05-23T03:00:03 <+dekar_> I will be glad to add any updates for it you come up with
2012-05-23T03:00:26 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-23T03:00:55 <+dekar_> idk, I didn't really like how they configured newlib so I didn't use it for long
2012-05-23T03:02:57 < zyp> are there any advantages of multilib for us?
2012-05-23T03:03:50 < zyp> I guess some functions would benefit from the M4F when running on the F4
2012-05-23T03:04:57 < karlp> yeah, I guess I could make a single lib toolchain for m3, and have a whole second chain for f4 or for f0.
2012-05-23T03:05:26 < zyp> F0 were M0, right?
2012-05-23T03:05:44 < zyp> that's v6, so that would also require different libs, yes
2012-05-23T03:06:47 < zyp> having three different toolchains just due to the lib differences sounds just stupid
2012-05-23T03:07:19 < karlp> well, I thought s-a-t was meant to make multilibs so that you didn't have to :)
2012-05-23T03:14:14 < karlp> so, adding --verbose shows that gcc was compiled with --enable-interwork, is that going to be a fatal problem?
2012-05-23T03:19:29 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Remote host closed the connection]
2012-05-23T03:19:58 <+dekar_> multilib builds all libs several times, that isn't that much better than building the toolchain several times
2012-05-23T03:20:29 <+dekar_> it actually generates the cross product of all possible options
2012-05-23T03:21:04 <+dekar_> thus is probably builds the lib far more often
2012-05-23T03:23:14 -!- danielson [danielson@D-128-208-62-165.dhcp4.washington.edu] has quit [Ping timeout: 252 seconds]
2012-05-23T03:24:04 < karlp> so, verbose does say it's using the thumb path in ~sat/lib/[gccversion]/ and readelf says it's thumb-2,
2012-05-23T03:24:14 < karlp> but it also says Tag_ARM_ISA_use: Yes,
2012-05-23T03:24:21 < karlp> I guess that should say no?
2012-05-23T03:27:13 < karlp> heh, http://sourceware.org/ml/binutils/2012-03/msg00215.html has an ARM engineer asking to raise a bug for this behaviour
2012-05-23T03:31:23 < karlp> too late for tonight. try again tomorrow :|
2012-05-23T03:31:41 < karlp> at least I have enough test code to start soldering the board after work :)
2012-05-23T04:11:00 -!- Flea86 [~Flea86@c114-76-82-206.thoms3.vic.optusnet.com.au] has joined ##stm32
2012-05-23T04:11:23 -!- lukky513_ [~lukky@student.agh.edu.pl] has joined ##stm32
2012-05-23T04:11:47 -!- Flea86 [~Flea86@c114-76-82-206.thoms3.vic.optusnet.com.au] has left ##stm32 []
2012-05-23T04:19:22 -!- Netsplit *.net <-> *.split quits: CheBuzz, lukky513
2012-05-23T04:21:35 -!- Netsplit over, joins: CheBuzz
2012-05-23T04:24:20 -!- cjbaird [~cjb@ppp121-44-93-193.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-23T04:25:22 -!- Netsplit *.net <-> *.split quits: CheBuzz
2012-05-23T04:30:35 -!- Netsplit over, joins: CheBuzz
2012-05-23T04:44:42 -!- LawrenceSeattle [~lawrence@66.192.187.106] has joined ##stm32
2012-05-23T04:44:53 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has joined ##stm32
2012-05-23T04:45:18 -!- LawrenceSeattle [~lawrence@66.192.187.106] has quit [Quit: LawrenceSeattle]
2012-05-23T05:04:04 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 252 seconds]
2012-05-23T05:10:19 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-23T05:35:01 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Read error: Connection reset by peer]
2012-05-23T05:49:20 -!- cjbaird [~cjb@ppp121-44-93-193.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-23T05:49:52 -!- Netsplit *.net <-> *.split quits: CheBuzz
2012-05-23T05:54:40 -!- cjbaird [~cjb@ppp121-44-93-193.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-23T05:55:09 -!- CheBuzz [~CheBuzz@76.164.192.124] has joined ##stm32
2012-05-23T07:01:53 -!- dekar_ [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has quit [Ping timeout: 252 seconds]
2012-05-23T07:13:38 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-23T08:13:27 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has quit [Read error: Connection reset by peer]
2012-05-23T08:16:39 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has joined ##stm32
2012-05-23T08:36:55 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-23T08:40:23 -!- ntfreak_ [~ntfreak@unaffiliated/ntfreak] has joined ##stm32
2012-05-23T08:43:50 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has quit [Ping timeout: 246 seconds]
2012-05-23T09:32:01 < zippe> karlp: sorry for the delayed reply; I stopped working on SAT and moved over to the ARM baremetal toolchain
2012-05-23T09:32:30 < zippe> Multilibs definitely help since I'm doing M0/M3/M4F work and the gcc target identifier is the same (arm-none-eabi) for all three
2012-05-23T09:40:18 -!- _abc_ [~user@unaffiliated/ccbbaa] has joined ##stm32
2012-05-23T09:53:26 < zyp> that's so nazi
2012-05-23T09:53:36 < Huitaryan1> electronik macht frei
2012-05-23T09:59:30 -!- danielson [danielson@D-128-208-62-165.dhcp4.washington.edu] has joined ##stm32
2012-05-23T10:25:21 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-23T10:34:12 < gsmcmullin> zyp: Did you try the traceswo firmware I posted for you?
2012-05-23T10:34:44 < Laurenceb_> sup
2012-05-23T10:37:30 < zyp> which/when?
2012-05-23T10:38:10 < gsmcmullin> Probably a few weeks ago.
2012-05-23T10:38:38 < gsmcmullin> http://www.blacksphere.co.nz/tmp/blackmagic_traceswo.bin
2012-05-23T10:39:21 < gsmcmullin> I want to know if it still works on Mac before I merge.
2012-05-23T10:39:24 < zyp> is this still with IAD, or something else?
2012-05-23T10:39:35 < gsmcmullin> Yes, it is.
2012-05-23T10:40:14 < gsmcmullin> But there's an extra interface for the trace info.
2012-05-23T10:40:21 < zyp> ah, as I've told you before OS X 10.6 doesn't appear to support IAD
2012-05-23T10:41:13 < zyp> it did appear to enumerate properly on my other mac with 10.7, but I didn't test that properly
2012-05-23T10:41:23 < gsmcmullin> Ok, no problem.
2012-05-23T10:41:24 < gsmcmullin> Thanks
2012-05-23T11:03:16 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 276 seconds]
2012-05-23T11:04:39 -!- LawrenceSeattle [~lawrence@216.243.49.130] has joined ##stm32
2012-05-23T11:08:54 -!- danielson [danielson@D-128-208-62-165.dhcp4.washington.edu] has quit []
2012-05-23T11:48:13 < karlp> zippe: by "ARM baremetal toolchain", you mean the one from https://launchpad.net/gcc-arm-embedded ? or another one?
2012-05-23T12:08:15 -!- izua [~izua@188.26.92.48] has joined ##stm32
2012-05-23T12:08:32 -!- izua [~izua@188.26.92.48] has quit [Changing host]
2012-05-23T12:08:32 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-23T12:08:35 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-23T12:37:31 < Laurenceb> cool view
2012-05-23T12:37:43 < Laurenceb> you will be able to see the tsunamis coming now
2012-05-23T12:38:08 < Laurenceb> fpv?
2012-05-23T12:38:35 < Laurenceb> what camera?
2012-05-23T12:38:52 < Laurenceb> an
2012-05-23T12:38:58 < Laurenceb> *ooh
2012-05-23T12:39:28 < Laurenceb> lol - someone has sprayed "stupid coon" on my neighbours house
2012-05-23T12:39:41 < Laurenceb> its funny cuz hes white
2012-05-23T12:40:06 < Laurenceb> you failed with the nazi attack database dongs?
2012-05-23T12:40:48 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32
2012-05-23T12:40:50 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-23T12:40:50 < Laurenceb> hahaha epic
2012-05-23T12:40:58 -!- izua [~izua@unaffiliated/izua] has quit [Quit: Pull me under]
2012-05-23T12:44:07 < Tectu> morning, folks
2012-05-23T12:44:35 < Tectu> nope, but you're inlcude into the folk ;-)
2012-05-23T12:44:39 < Laurenceb> lol our new servers at work are called asperger and ritalin
2012-05-23T12:44:39 <+izua_> happy rapture anniversary
2012-05-23T12:44:44 <+izua_> and also good morning
2012-05-23T12:48:24 -!- _abc_ [~user@unaffiliated/ccbbaa] has quit [Ping timeout: 256 seconds]
2012-05-23T12:48:26 < cjbaird> dongs: what's the altitude of the fRJtg image, if you know?
2012-05-23T12:50:10 -!- _abc_ [~user@unaffiliated/ccbbaa] has joined ##stm32
2012-05-23T13:10:02 -!- _abc_ [~user@unaffiliated/ccbbaa] has quit [Ping timeout: 244 seconds]
2012-05-23T13:13:12 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Ping timeout: 252 seconds]
2012-05-23T13:16:20 < Tectu> bINFO src/stlink-common.c: SRAM size: 0x10000 bytes (64 KiB), Flash: 0x80000 bytes (512 KiB) in pages of 2048 bytes
2012-05-23T13:16:28 < Tectu> 2048byte pages?
2012-05-23T13:16:34 < Tectu> never seen that before
2012-05-23T13:16:42 < Tectu> only 512 and 4k
2012-05-23T13:20:23 < SuicideFunky> Laurenceb: lol
2012-05-23T13:31:13 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32
2012-05-23T13:55:31 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-23T14:37:46 -!- izua_ [~izua@unaffiliated/izua] has quit [Ping timeout: 276 seconds]
2012-05-23T14:38:18  * Laurenceb lolling
2012-05-23T14:38:34 < Laurenceb> my friend just missed getting an olyprics ticket
2012-05-23T14:42:53 < Laurenceb> thats like failing at failing
2012-05-23T14:43:00 < Laurenceb> in a non double negative way
2012-05-23T14:49:05 < Laurenceb> dongs:ping
2012-05-23T15:17:09 < Tectu> zyp, you arround, sir?
2012-05-23T15:17:16 < zyp> somewhat
2012-05-23T15:17:29 < zyp> I'm at work, but not currently busy
2012-05-23T15:18:32 < Tectu> when i have simple delay function like this:  for(TimingDelay=0;TimingDelay<10000;TimingDelay++);
2012-05-23T15:18:44 < Tectu> how do i find out if compiler does optimize it out, because of missing nop ?
2012-05-23T15:19:20 < zyp> don't do delay functions like that, use some kind of timer
2012-05-23T15:19:37 < Tectu> but it's so easy :D
2012-05-23T15:19:45 < karlp> except it isn't
2012-05-23T15:19:54 < karlp> or you wouldn't be asking how to find out if it got optimized out
2012-05-23T15:19:55 < Tectu> o0
2012-05-23T15:20:28 < Tectu> it does work, it is just a general question because i had that once when i did my very very first stm32 blinky program whitout library
2012-05-23T15:21:01 < karlp> bleh, rebuilt new SAT, tried compiling with the one from launchpad as well, still keep getting arm code linked in for memset.
2012-05-23T15:22:13 < zyp> Tectu, if you have optimizations enabled, the compiler will always optimize it out, because it can see that the only effect of running that loop is setting TimingDelay = 10000
2012-05-23T15:22:35 < Tectu> ok
2012-05-23T15:22:45 < Tectu> well, generally its compiler dependend, isn't it?
2012-05-23T15:23:13 < zyp> yes, I'm assuming that you're using a non-dumb compiler
2012-05-23T15:23:47 < Tectu> hrhr
2012-05-23T15:23:49 < Tectu> sure
2012-05-23T15:24:45 < zyp> anyway, you didn't specify explicitly that you wanted to perform 10000 iterations at runtime
2012-05-23T15:25:18 < zyp> you told the compiler «do nothing and increment TimingDelay until it's 10000»
2012-05-23T15:25:44 < zyp> and the compiler does that in the best way, which is just setting TimingDelay to 10000
2012-05-23T15:26:06 < Tectu> jep
2012-05-23T15:26:15 < zyp> and then it sees that you're not using TimingDelay for anything either, so it optimizes that part out aswell
2012-05-23T15:27:21 < zyp> if you put «asm volatile ("nop")» in the loop body, the compiler knows that you want to execute that nop 10000 times
2012-05-23T15:27:56 < zyp> it's then free to either make a loop or unroll it and just put 10000 nop instructions
2012-05-23T15:29:23 < zyp> the latter will run several times faster than the former, while consuming 20 kB flash
2012-05-23T15:31:31 < Laurenceb> lol
2012-05-23T15:32:16 < Tectu> zyp, don't get your last poste
2012-05-23T15:32:44 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has joined ##stm32
2012-05-23T15:32:44 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has quit [Changing host]
2012-05-23T15:32:44 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32
2012-05-23T15:43:29 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Read error: Connection reset by peer]
2012-05-23T15:54:30 -!- cjbaird [~cjb@ppp121-44-93-193.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-23T15:57:15 -!- cjbaird [~cjb@ppp121-44-93-193.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-23T16:19:22 < Laurenceb> omfg
2012-05-23T16:19:41 < Laurenceb> at work we've been making silicone encapsulated parts for years
2012-05-23T16:19:56 < Laurenceb> but they are all rather lame and the silicone doesnt cure well
2012-05-23T16:20:19 < Laurenceb> so i read the silicone datasheet today, mix ratio is 10A to 1B
2012-05-23T16:20:30 < Laurenceb> people have always mixed it 1 to 1 here
2012-05-23T16:20:34  * Laurenceb facepalms
2012-05-23T16:21:43 < zyp> yeah, that's why you should read the documentation
2012-05-23T16:22:03 < Laurenceb> i assumed the other guys had
2012-05-23T16:22:33 < Tectu> should this work?
2012-05-23T16:22:34 < Tectu>  
2012-05-23T16:22:36 < Tectu> #define TP_CS(a)    if(a) TP_CMD_PORT->ODR |= (1 << GPIOC_TP_CS); \
2012-05-23T16:22:38 < Tectu>                     else  TP_CMD_PORT->ODR &=~ (1 << GPIOC_TP_CS);
2012-05-23T16:23:03 < zyp> I always assume other guys might be wrong
2012-05-23T16:23:45 < zyp> Tectu, it's dumb, use BSRR rather than ODR
2012-05-23T16:24:01 < Tectu> zyp, why
2012-05-23T16:24:18 < zyp> because that's what BSRR is for
2012-05-23T16:24:23 < Laurenceb> interesting - curing silicone at 150C improved strength a lot
2012-05-23T16:24:34 < Tectu> zyp, can i just replace ODR with BSSR ?
2012-05-23T16:24:37 < Tectu> BSRR*
2012-05-23T16:24:59 < zyp> no
2012-05-23T16:25:03 < zyp> http://cgit.jvnv.net/suzumebachi/tree/hal/pin.h?h=stm32f4#n56 <- see here
2012-05-23T16:25:19 < Tectu> ah
2012-05-23T16:26:06 < Tectu> zyp, so this one might work?
2012-05-23T16:26:07 < Tectu> #define TP_CS(a)    if(a) TP_CMD_PORT->BSRR |= (1 << GPIOC_TP_CS); \
2012-05-23T16:26:07 < Tectu>                     else  TP_CMD_PORT->BSRR &=~ (17 << GPIOC_TP_CS);
2012-05-23T16:26:28 < zyp> no
2012-05-23T16:26:35 < Tectu> why not o0
2012-05-23T16:26:45 < Tectu> aaah!
2012-05-23T16:26:47 < Tectu> no
2012-05-23T16:26:49 < Tectu> hmm
2012-05-23T16:27:36 < zyp> #define TP_CS(a) (TP_CMD_PORT->BSRR = 1 << (GPIOC_TP_CS + (a ? 0 : 16)))
2012-05-23T16:28:11 < Tectu> zyp, but this one should work too?
2012-05-23T16:28:12 < Tectu> #define TP_CS(a)    if(a) TP_CMD_PORT->BSRR = (1 << GPIOC_TP_CS); \
2012-05-23T16:28:12 < Tectu>                     else  TP_CMD_PORT->BSRR = (17 << GPIOC_TP_CS);
2012-05-23T16:28:14 -!- tavish [~tavish@59.177.10.24] has joined ##stm32
2012-05-23T16:28:17 < zyp> no
2012-05-23T16:28:21 < Tectu> tell me why not
2012-05-23T16:28:29 -!- tavish [~tavish@59.177.10.24] has quit [Changing host]
2012-05-23T16:28:29 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-23T16:28:37 < zyp> because 17 << x is not equal to 1 << (x + 16)
2012-05-23T16:28:57 < Tectu> g.BSRR = 1 << 16 << n;
2012-05-23T16:29:03 < Tectu> 1.   shift 1
2012-05-23T16:29:07 < Tectu> 2.   shift 16
2012-05-23T16:29:11 < Tectu> 3.   shift n
2012-05-23T16:29:19 < Tectu> ->     shift 17 ;  shift n  ?
2012-05-23T16:29:43 < zyp> 1 << (x + 16) is equal to 0x10000 << x
2012-05-23T16:30:06 < zyp> 1 << 16 << x is equal to (1 << 16) << x
2012-05-23T16:30:12 < zyp> and 1 << 16 is 0x10000
2012-05-23T16:30:23 < zyp> or 65536
2012-05-23T16:30:35 < zyp> and that's pretty different from 17
2012-05-23T16:31:16 < Tectu> hmm
2012-05-23T16:31:35 < zyp> remember that left side is shifted and right side is amount of bits to shift
2012-05-23T16:31:51 < Tectu> AAAH!!
2012-05-23T16:31:56 < Tectu> now i get it
2012-05-23T16:31:59 < Tectu> thanks for the last line, sir
2012-05-23T16:32:07 < zyp> so it's shifting 1 16 + n times, not shifting n 16 + 1 times
2012-05-23T16:32:27 < Tectu> 1 << 16    would shift the value 16 1 times left?
2012-05-23T16:32:31 < Tectu> jep
2012-05-23T16:32:33 < Tectu> indeed
2012-05-23T16:32:34 < zyp> no
2012-05-23T16:32:38 < Tectu> what do you mean with no?
2012-05-23T16:32:43 < zyp> 1 << 16 shifts the value 1 16 bits left
2012-05-23T16:32:52 < Tectu> yes, that's what i meant, sorry ^^
2012-05-23T16:33:07 < zyp> but it's not what you wrote :p
2012-05-23T16:33:13 < Tectu> right ;-)
2012-05-23T16:33:24 < Tectu> <Tectu> what do you mean with no?    <-- most awesome thing i ever asked you?
2012-05-23T16:33:47 < zyp> I don't keep track of the awesomeness of your questions
2012-05-23T16:34:13 < Tectu> zyp, but the first thing i postet, with ODR SHOULD work?
2012-05-23T16:36:50 < zyp> yes, but it does an unnecessary read, is not atomic and has horrible macro syntax
2012-05-23T16:37:15 < Tectu> ok
2012-05-23T16:37:31 < Tectu> how comes it's not atomic
2012-05-23T16:38:20 < zyp> you do read-modify-write
2012-05-23T16:38:56 < zyp> if something happens to ODR between the read and the write (either in an ISR or in another thread), the change get lost
2012-05-23T16:39:14 < karlp> you can also do #define GPIO_HIGH(a,b) a->BSRRL = b
2012-05-23T16:39:26 < karlp> and GPIO_LOW(a,b) a->BSRRH = b
2012-05-23T16:39:45 < karlp> and always use the same bit field for the pin.
2012-05-23T16:40:27 < zyp> provided that BSRRL and BSRRH are defined
2012-05-23T16:41:22 < zyp> oh, but on F1, you also have BRR
2012-05-23T16:41:31 < zyp> as an alias of upper 16 bits of BSRR
2012-05-23T16:42:48 < zyp> my code is written to compile for both F1 and F4, so I only use BSRR
2012-05-23T16:42:50 < Tectu> zyp,   #define TP_CS(a) (TP_CMD_PORT->BSRR = 1 << (GPIOC_TP_CS + (a ? 0 : 16)))    should still work, right?
2012-05-23T16:42:54 < Tectu> good
2012-05-23T16:43:37 < zyp> yep
2012-05-23T16:44:08 < Tectu> i never liked the  ?  :  syntax
2012-05-23T16:44:13 < Tectu> but somehow it's nice sometimes
2012-05-23T16:45:04 < zyp> those are nice when you need conditional parts of an expression like that
2012-05-23T16:49:24 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-23T16:51:44 < zyp> Laurenceb, you know kalman filters, right?
2012-05-23T16:53:49 < zyp> or rather, what I'm going to ask about is; I think I've understood the linear kind of KF now, would it be a point to skip EKF and look directly into UKF stuff, or would it be more sensible to understand EKF first?
2012-05-23T16:58:33 < zyp> hmm, EKF looks pretty understandable as well actually when I look at it now
2012-05-23T16:58:58 < zyp> I just have to understand how the jacobian matrices are calculated
2012-05-23T17:09:04 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-23T17:12:19 < jpa-> EKF is fine for most purposes
2012-05-23T17:13:24 < jpa-> if your model is relatively linear, UKF is often just more complex way to get same results
2012-05-23T17:13:39 < jpa-> and EKF is very simple to understand once you understand the basic KF
2012-05-23T17:14:18 < jpa-> (you just linearize the model at the estimated position, using the derivative and the value)
2012-05-23T17:15:30 < jpa-> for me, the trickiest part in implementing kalman filters has been about finding a suitable square root update formula.. otherwise the covariance matrix gets easily corrupted by rounding errors
2012-05-23T17:15:46 < jpa-> though i'm doing the math in fixed-point, so it's a bit less of a problem when using floats
2012-05-23T17:19:12 < zyp> jpa-, ok, I'm not interested in more complexity :p
2012-05-23T17:20:35 < zyp> jpa-, and how linear are «relatively linear»? :p
2012-05-23T17:21:30 < jpa-> zyp: well, it really depends on how much the situation changes between each timestep
2012-05-23T17:24:01 < zyp> which can be mitigated by doing small steps?
2012-05-23T17:24:24 < jpa-> yeah, you can iterate the EKF many times to increase the precision
2012-05-23T17:24:38 < jpa-> but usually sensor samplerate is constant, so that may still cause problems
2012-05-23T17:25:37 < jpa-> for example, if you were to model the spinning of a sphere.. if it makes half a round every timestep, approximating by first derivative is quite bad.. the EKF wouldn't be able to understand periodic functions that easily.. not sure if UKF would do that well in that case either
2012-05-23T17:25:52 < zyp> jpa-, do you have any experience with IMU stuff?
2012-05-23T17:26:10 < jpa-> i have studied it at university, but no practical experience
2012-05-23T17:30:19 < jpa-> often in more accurate IMU's, instead of the position,velocity,orientation you make kalman filter to estimate just the IMU errors in those.. the errors change slower than the actual values, so normal linear KF or EKF is fine
2012-05-23T17:30:40 < jpa-> but with hobby-grade IMUs i'm not sure how fast the errors might accumulate
2012-05-23T17:31:47 < Tectu> anyone here ever used SPI in chibios? i am confused... there is  spiSelect() which does a kind of initialize the CS line. but do i have to set and reset the CS line still myself, when i use  spiStartSend()  and   spiStartReceive() ?
2012-05-23T17:31:49 -!- cjbaird [~cjb@ppp121-44-93-193.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-23T17:32:26 < jpa-> Tectu: yeah, it appears you can either use spiSelect() or select manually.. using multiple chip-selects was somewhat confusing
2012-05-23T17:32:34 < zyp> jpa-, how would the rest be treated then, if not by KF?
2012-05-23T17:33:23 < Tectu> jpa-, ok, so using spiSelect() makes the manual selection unnecessary?
2012-05-23T17:33:27 < jpa-> Tectu: i just did   palClearPad(GPIOB, 2);   spiExchange(...);  palSetPad(GPIOB, 2);  without spiSelect :P
2012-05-23T17:33:36 < jpa-> i think so
2012-05-23T17:33:54 < Tectu> jpa-, i really don't see through the SPI part of chibios... is it really that weird?
2012-05-23T17:34:15 < jpa-> Tectu: not really, just the chipselect part is a bit strange
2012-05-23T17:34:43 < Tectu> jpa-, okay, thanks for the tip....   trying to bring my touchpad with ADS7843 to work...
2012-05-23T17:34:46 < jpa-> it seems to be designed for just 1 chip on the SPI bus, but it can be used with more if you select manually
2012-05-23T17:34:54 < Tectu> ok
2012-05-23T17:35:08 < Tectu> i tought that writing such a touchpad library would be easy
2012-05-23T17:35:11 < jpa-> zyp: by normal IMU mechanization.. ie. just integrate the gyro and accelerometer outputs like there were no measurement bias
2012-05-23T17:35:45 < jpa-> zyp: (to avoid numeric overflows, the kalman filter values are occassionally subtracted from the integral values if they grow too large)
2012-05-23T17:36:09 < Tectu> jpa-, did you ever use ADS7843?
2012-05-23T17:36:11 < jpa-> zyp: the input to kalman filter in IMU error-estimation would be  IMU position - GPS position
2012-05-23T17:36:13 < jpa-> Tectu: nope
2012-05-23T17:37:03 < zyp> I'm more concerned about attitude than position
2012-05-23T17:37:21 < jpa-> ok, then it's exactly the same thing i'm working on for my sphere :P
2012-05-23T17:37:36 < jpa-> probably you are also trying to estimate attitude using LSM303?
2012-05-23T17:38:09 < jpa-> or do you have gyros also?
2012-05-23T17:38:30 < zyp> yes
2012-05-23T17:38:35 < zyp> both gyro, accel, mag
2012-05-23T17:38:40 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Quit: ZNC - http://znc.sourceforge.net]
2012-05-23T17:39:03 < jpa-> ok, i'm using just acc, mag
2012-05-23T17:39:35 < jpa-> haven't tried out the kalman filter with that yet, but i'll do it soon
2012-05-23T17:39:41 < zyp> I've played around with complimentary filters before, they are pretty easy to understand
2012-05-23T17:40:49 < jpa-> yeah.. though it is harder to automatically estimate e.g. magnetic inclination with them
2012-05-23T17:41:03 < zyp> i.e. integrate gyro, estimate errors compared to accel/mag, and a PID loop to feed that back into the gyro measurements
2012-05-23T17:41:26 < zyp> or PI in practice
2012-05-23T17:41:40 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32
2012-05-23T17:41:49 < jpa-> hmm, i thought it was more like    integrate gyro, high-pass the result; sum with low-passed accelerometer results
2012-05-23T17:42:14 < zyp> maybe I'm using the terms wrong
2012-05-23T17:42:15 < Tectu> jpa-, just curious:   when i use spiExchange() does it write the content into the rx buffer, which was the "answer" from the slave by sending the tx buffer or does it just take the current value from the hardware register?
2012-05-23T17:42:27 < jpa-> complementary filters being the point where the high-pass is complementary to the low-pass
2012-05-23T17:42:53 < jpa-> Tectu: it writes the answer
2012-05-23T17:43:02 < Tectu> thanks jpa
2012-05-23T17:43:57 < karlp> ok, fixedz0r! https://launchpad.net/gcc-arm-embedded works and lets me link in memset, summon-arm-toolchain fails epicly for me right now.
2012-05-23T17:44:31 < karlp> this should make it a little easier to get the next steps working for newlib.
2012-05-23T17:44:37 < karlp> no wonder I was so confused.
2012-05-23T17:44:44 < zyp> jpa-, http://cgit.jvnv.net/suzumebachi/tree/IMU.cpp?id=1a8771 <- I used this stuff when I started out with my quadrotor
2012-05-23T17:45:00 < zyp> before I actually understood what it did :p
2012-05-23T17:45:09 < zyp> and understood quaternions
2012-05-23T17:46:10 < SuicideFunky> zyp: im trying to understand quaternions too for my 3d engine
2012-05-23T17:46:26 < SuicideFunky> and i stress 'trying' :p
2012-05-23T17:46:52 < zyp> it's actually pretty easy, but nobody explains it in a way that's easy to understand :p
2012-05-23T17:47:04 < karlp> sounds like most of control systems.
2012-05-23T17:47:10 < zyp> :)
2012-05-23T17:47:18 < SuicideFunky> indeed zyp :p
2012-05-23T17:47:20 < karlp> I loved control systems in uni, but found it terribly difficult to understand some of it
2012-05-23T17:47:28 < karlp> then I just did, and I still couldn't explain to anyone,
2012-05-23T17:47:38 < karlp> and now I haven't used it in years, so I no longer even understand it.
2012-05-23T17:47:45 < jpa-> fortunately i don't have to use quaternions, because my hardware has a gimbal lock position so no point to avoid that in software either
2012-05-23T17:48:22 < SuicideFunky> thats nice
2012-05-23T17:48:25 < zyp> the key part about quaternions is realizing that any 3D rotation group can be represented by a single rotation vector
2012-05-23T17:49:05 < zyp> once you're there, seeing how a quaternion is just another way to represent that is not that hard
2012-05-23T17:49:21 < Laurenceb> dongs: what do you think of my plane?
2012-05-23T17:49:52 < Laurenceb> http://ukhas.org.uk/_media/projects:mihab:p4130055.jpg?w=700
2012-05-23T17:49:53 < SuicideFunky> thanks zyp
2012-05-23T17:50:08 < SuicideFunky> i will try to wrap my head around it
2012-05-23T17:50:31 < SuicideFunky> but its often with math, once you see the connection its quite easy
2012-05-23T17:50:48 < zyp> yep
2012-05-23T17:51:08 < karlp> Laurenceb: that flies?
2012-05-23T17:51:09 < BrainDamage> how did you bring up that glider? balloon?
2012-05-23T17:51:19 < Laurenceb> hill
2012-05-23T17:51:34 < karlp> is it just a steerable glider?
2012-05-23T17:51:46 < jpa-> we had a nice course in university.. mathematics for positioning.. it went like: week 1. direction cosine matrices  week 2. quaternions  week 3. bayesian estimation  week 4. kalman filters   week 5. extended kalman filters   week 6. cubature kalman filters (a special case of UKF)
2012-05-23T17:52:46 < Laurenceb> karlp: yes
2012-05-23T17:52:53 < Laurenceb> really noob first version
2012-05-23T17:52:57 < Laurenceb> i made ages ago
2012-05-23T17:53:10 < zyp> jpa-, sounds fun
2012-05-23T17:53:21 < jpa-> i actually learned most of it
2012-05-23T17:53:22 < zyp> if the lecturer is good
2012-05-23T17:53:26 < jpa-> he was
2012-05-23T17:54:25 < zyp> I kind of dropped out of my last math course in uni
2012-05-23T17:54:39 < zyp> the lectures were so boring so I stopped going to them
2012-05-23T17:54:57 < karlp> Laurenceb: sorry, I should haven't said, "just" I haven't built a plane at all :)
2012-05-23T17:55:14 < Laurenceb> i was trolling dongs
2012-05-23T17:55:29 < jpa-> http://math.tut.fi/videolectures/math/mathpos/lecture1/index.html   there are videos of the lectures here, in case someone is interested  (change url to lecture2, etc. to watch the rest)
2012-05-23T17:55:47 < zyp> the first few weeks or so were fourier transforms, that was pretty interesting, but after that everything just became boring
2012-05-23T17:56:07 < BrainDamage> next time add some explosive charge and use it as kamikaze uav on dong's home coordinates
2012-05-23T17:57:09 < zippe> karlp: Yes, the one that ARM are distributing via launchpad
2012-05-23T17:58:04 < karlp> zippe: yeah, that's the one I got to work finally.
2012-05-23T18:02:26 < SuicideFunky> thanks jpa-
2012-05-23T18:02:28 < SuicideFunky> for the link
2012-05-23T18:03:56 < SuicideFunky> what study did you do @ uni?
2012-05-23T18:05:04 < jpa-> SuicideFunky: that's part of my minor subject, 'positioning and navigation'
2012-05-23T18:05:16 < SuicideFunky> cool
2012-05-23T18:05:18 < jpa-> my major is 'programmable platforms and devices'
2012-05-23T18:07:50 < SuicideFunky> sounds interesting
2012-05-23T18:08:52 < jpa-> kind of.. the programmable platforms stuff is a bit dull, but the positioning courses are interesting
2012-05-23T18:11:20 < Laurenceb> especially if they change position quickly
2012-05-23T18:11:26 < Laurenceb> in an oscillatory manner...
2012-05-23T18:12:00 < jpa-> and the frequency just happens to be equal to the orbital period of satellites with altitude 0...
2012-05-23T18:12:19 < jpa-> "but such satellites are not possible for some technical reasons"
2012-05-23T18:33:49 < Laurenceb> http://groups.google.com/group/ukhas/browse_thread/thread/b81c1edca67d8107
2012-05-23T18:33:53  * Laurenceb facepalms
2012-05-23T18:38:02 < Tectu> jpa-, just came arround this... http://essentialscrap.com/dsoquad/logic.html    just plug in the device, turn it on, mount it, copy .hex to device, power off, keep 3th button pressed while power on?
2012-05-23T18:38:13 < jpa-> Tectu: yeah
2012-05-23T18:38:19 < jpa-> except
2012-05-23T18:38:38 < Tectu> when i did that, power up while keeping button pressed, it just beeeps all the way arround
2012-05-23T18:38:41 < jpa-> plug in, turn it on *and* hold button 1 for bootloader, copy .hex, etc.
2012-05-23T18:38:47 < Tectu> aw
2012-05-23T18:38:50 < Tectu> sweet
2012-05-23T18:38:52 < Tectu> let's see
2012-05-23T18:39:05 < jpa-> otherwise you are copying the .hex to the usb memory and it just sits there :P
2012-05-23T18:39:27 < jpa-> it should say 'DFU firmware upgrade' or something on the screen when you are in the bootloader
2012-05-23T18:39:53 < Tectu> right, but   mnt/usb  is empty, is that right?
2012-05-23T18:39:56 < Tectu> /mnt/usb*
2012-05-23T18:39:58 < jpa-> it is
2012-05-23T18:40:00 < Tectu> nice
2012-05-23T18:40:05 < Tectu> so this should work ;)
2012-05-23T18:40:40 < Tectu> works, nice work, jpa :)
2012-05-23T18:40:43 < jpa-> nice :)
2012-05-23T18:40:52 < jpa-> i wish to upgrade it to 72MHz sampling when i have time
2012-05-23T18:41:14 < Tectu> yeah, i just need to be sure that my damn spi works :D
2012-05-23T18:41:54 < Tectu> guess should work for that purpose
2012-05-23T18:42:09 < Tectu> i got the dso quad this x-mas, but never found out how to handle it that i can use it
2012-05-23T18:42:21 < Tectu> still using my old 40MH two channel scope with tube
2012-05-23T18:42:51 < jpa-> Laurenceb: well, obviously the calculations are the hardest part of the project :P
2012-05-23T18:43:14 < Laurenceb> yes but...
2012-05-23T18:43:20 < jpa-> Tectu: yeah, it's fine for SPI/I2C debugging if the clock speed is 100kHz or less
2012-05-23T18:43:29 < Laurenceb> how can you not know what bouyancy is
2012-05-23T18:44:03 < jpa-> ah, there are plenty of people who don't :P
2012-05-23T18:48:19 < Tectu> jpa-, damn man, that is pretty impressive, what you did
2012-05-23T18:50:27 < Tectu> respect, sir :)
2012-05-23T18:55:13 < jpa-> trying my best to make that thing usable :P
2012-05-23T18:56:10 < Tectu> thank you, sir :D
2012-05-23T18:56:46 < Tectu> jpa-, and is there a workaround that i can grap the picture over USb right when i made it?
2012-05-23T18:57:03 < Tectu> like   mount /dev/sdb /mnt/usb  ;   save BMP   ;  ls /mnt/usb
2012-05-23T18:59:28 < jpa-> linux does not understand filesystems that change while they are mounted
2012-05-23T19:00:05 < Tectu> damn :D
2012-05-23T19:00:05 < jpa-> you can make a small script that mounts the drive, copies the file, unmounts the drive
2012-05-23T19:00:15 < Tectu> right, that's what i thought of
2012-05-23T19:00:20 < Tectu> well, thank you very much, sir :)
2012-05-23T19:00:31 < Tectu> i see that SCK is not doing anything when trying to speak over SPI
2012-05-23T19:00:42 < karlp> you can't just leave it mounted I take it?
2012-05-23T19:01:21 < Tectu> karlp, when i keep it mounted, even when i flush buffers, there are no new files
2012-05-23T19:02:56 < jpa-> karlp: if you leave it mounted, linux never re-reads the FAT table => doesn't see new files
2012-05-23T19:06:30 < Tectu> jpa-, how long did it take oyu to write that application for the dso quad?
2012-05-23T19:07:24 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has joined ##stm32
2012-05-23T19:07:28 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-23T19:17:27 -!- neuro-sy1 [~neuro@88.241.37.225] has joined ##stm32
2012-05-23T19:18:23 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Read error: Connection reset by peer]
2012-05-23T19:22:06 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-23T19:22:24 -!- neuro-sy1 [~neuro@88.241.37.225] has quit [Quit: |]
2012-05-23T19:22:37 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-23T19:27:56 < Tectu> yeah, who does steal LEGO boxes
2012-05-23T19:36:59 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit []
2012-05-23T19:41:16 < jpa-> Tectu: logic analyzer? a few weeks
2012-05-23T19:41:29 < jpa-> probably like 40 hours
2012-05-23T19:41:59 < Tectu> oh, that sounds pretty quick
2012-05-23T19:43:29 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-23T19:45:00 < jpa-> hard to say, i haven't kept track of hours :P
2012-05-23T19:45:31 < jpa-> it's only 3300 lines of code anyway
2012-05-23T19:52:31 < Tectu> o0
2012-05-23T19:52:41 < Tectu> is there some kind of dso quad library then?
2012-05-23T19:53:40 < Tectu> zyp, is it possible that the macro you provided does not work? because, it somehow... dosen't?
2012-05-23T19:53:40 < Tectu> #define TP_CS(a)    (TP_CMD_PORT->BSRR = 1 << (GPIOC_TP_CS + (a ? 0 : 16)))
2012-05-23T19:53:53 < Tectu> #define TP_CMD_PORT GPIOC
2012-05-23T19:54:05 < Tectu> #define GPIOC_TP_CS 6
2012-05-23T19:56:40 < Tectu> never mind
2012-05-23T19:58:17 < jpa-> Tectu: not really, though the pawn interpreter i have written has some useful code
2012-05-23T19:58:22 < jpa-> there is also ##dsoquad
2012-05-23T19:59:36 < Tectu> looks like a high-traffic channel ;-)
2012-05-23T20:01:38 < jpa-> sure :)
2012-05-23T20:05:25 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 248 seconds]
2012-05-23T20:10:26 < Tectu> jpa-, some battery level thing on the screen would be nice indeed...
2012-05-23T20:11:24 < jpa-> well, the battery lasts for hours
2012-05-23T20:11:35 < jpa-> who cares about the level :P
2012-05-23T20:11:56 < jpa-> (pawn has battery level etc, just haven't bothered to merge the stuff from there)
2012-05-23T20:13:15 < Tectu> pwan?
2012-05-23T20:14:15 < jpa-> http://essentialscrap.com/dsoquad/pawn.html
2012-05-23T20:15:16 < Tectu> you where bored, wheren't you?
2012-05-23T20:16:05 < jpa-> nope
2012-05-23T20:16:15 -!- _abc_ [~user@unaffiliated/ccbbaa] has joined ##stm32
2012-05-23T20:16:37 < jpa-> it's just as fine a hobby project as any else
2012-05-23T20:17:34 < BrainDamage> did you get anywhere with the autonomous boat?
2012-05-23T20:18:15 < jpa-> BrainDamage: not really.. got sucked up into all kinds of other stuff
2012-05-23T20:18:40 < jpa-> it was a bit too ambitious as the first stm32 project anyway.. but i've learned a lot :P
2012-05-23T20:23:47 < zippe> jpa-: why re-implement the Pawn vm when you could just port the original?
2012-05-23T20:25:06 < zippe> (I like Pawn as a language, but the stock implementation is a real PITA)
2012-05-23T20:26:01 < jpa-> zippe: i didn't reimplement it
2012-05-23T20:26:14 < jpa-> there is already cortex-m3 port of pawn
2012-05-23T20:26:23 < jpa-> i just implemented a bunch of libraries atop of it, etc.
2012-05-23T20:27:11 < jpa-> (true, maybe i should have said 'pawn system' instead of 'pawn interpreter')
2012-05-23T20:33:16 -!- LawrenceSeattle [~lawrence@216.243.49.130] has quit [Quit: LawrenceSeattle]
2012-05-23T20:50:34 -!- Huitaryan1 [~Huitaryan@blk-252-42-151.eastlink.ca] has quit [Ping timeout: 245 seconds]
2012-05-23T21:01:51 < Tectu> aaah jpa, SPI works, i thank you so much for writting that simple to use LA application :D
2012-05-23T21:02:03 < Tectu> hopefully i bring the java client from the openbench thing to work again soon
2012-05-23T21:03:49 < BrainDamage> still javajavabinks issues?
2012-05-23T21:04:29 < Tectu> BrainDamage, right
2012-05-23T21:04:36 < Tectu> BrainDamage, also tried java 1.6
2012-05-23T21:04:41 < Tectu> offical oracle and icetea
2012-05-23T21:04:47 < Tectu> also build ols from source
2012-05-23T21:04:51 < Tectu> always just gray window
2012-05-23T21:04:54 < Tectu> don't see the problem
2012-05-23T21:04:57 < Tectu> worked fine a while ago
2012-05-23T21:05:01 < BrainDamage> no error in the logs?
2012-05-23T21:05:11 < BrainDamage> maybe it's a problem of the ui toolkit version
2012-05-23T21:05:59 < Tectu> BrainDamage, http://pastebin.com/8imYmetY
2012-05-23T21:06:06 < Tectu> after that the grey window spawns
2012-05-23T21:06:13 < Tectu> and then i have to ^C it
2012-05-23T21:06:36 < BrainDamage> sorry, I know very little of java
2012-05-23T21:07:01 < BrainDamage> have you tried contacting the author? see if the thing has an irc channel?
2012-05-23T21:07:41 < Tectu> no, good idea, thanks
2012-05-23T21:07:45 < Tectu> google didn't help
2012-05-23T21:07:58 < Tectu> an in #archlinux of course nobody replied ;-)
2012-05-23T21:12:05 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has quit [Ping timeout: 248 seconds]
2012-05-23T21:17:26 < zippe> jpa-: gotcha, makes sense.  I wasted a bunch of time fixing 64-bit bugs in the compiler and runtime before deciding that I was going to use Lua instead.
2012-05-23T21:17:43 < jpa-> ah, for PC?
2012-05-23T21:17:56 < zippe> jpa-: For Mac OS, actually
2012-05-23T21:18:01 < jpa-> well anyway
2012-05-23T21:18:22 < zippe> The Lua decision was due to users complaining about having to learn a "weird" language
2012-05-23T21:18:41 < zippe> It's much larger than I'd like
2012-05-23T21:18:52 < jpa-> in some senses i understand them.. pawn is somehow 'not a complete language'
2012-05-23T21:19:33 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Quit: Leaving.]
2012-05-23T21:19:40 < jpa-> with the lack of function references, real structs etc.
2012-05-23T21:21:38 < zippe> I liked it for the smushing of Forth and C
2012-05-23T21:21:40 -!- izua [~izua@188.26.92.48] has joined ##stm32
2012-05-23T21:21:40 -!- izua [~izua@188.26.92.48] has quit [Changing host]
2012-05-23T21:21:40 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-23T21:21:40 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-23T21:21:44 < zippe> Particularly the whole 'cell' thing
2012-05-23T21:22:44 < jpa-> i like the dead-simple C interface
2012-05-23T21:22:52 < jpa-> (and, of course, the tiny footprint)
2012-05-23T21:22:58 < zippe> Squirrel is also nice
2012-05-23T21:23:02 < zippe> But again, "weird"
2012-05-23T21:24:02 -!- tavish_ [~tavish@120.56.140.70] has joined ##stm32
2012-05-23T21:26:42 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds]
2012-05-23T21:35:47 -!- Huitaryan [~Huitaryan@blk-252-42-151.eastlink.ca] has joined ##stm32
2012-05-23T21:42:10 -!- Huitaryan [~Huitaryan@blk-252-42-151.eastlink.ca] has quit [Ping timeout: 244 seconds]
2012-05-23T21:44:26 -!- Huitaryan [~Huitaryan@blk-252-42-151.eastlink.ca] has joined ##stm32
2012-05-23T21:47:07 -!- LawrenceSeattle [~lawrence@66.192.187.106] has joined ##stm32
2012-05-23T21:48:49 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-23T21:50:10 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has joined ##stm32
2012-05-23T21:50:13 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-23T22:02:50 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-23T22:04:20 < blkcat> woohoo, my j-link's in the mail
2012-05-23T22:13:19 <+dekar> izua, http://dl.dropbox.com/u/28467113/pocsag_bch.txt
2012-05-23T22:13:28 <+dekar> FEC by bruteforce
2012-05-23T22:13:32 <+dekar> I should patent that
2012-05-23T22:21:15 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-23T22:21:18 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-23T22:35:02 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-23T22:59:01 < jpa-> zyp: btw, maxima can be of great help when calculating the jacobians:  http://kapsi.fi/~jpa/stuff/other/kalman_model.maxima   http://kapsi.fi/~jpa/stuff/other/kalman_model.pdf
2012-05-23T23:01:12 < zyp> interesting
2012-05-23T23:01:12 < _abc_> has anyone here seen a mpl3115 sensor up close?
2012-05-23T23:01:20 < _abc_> They seem to be unobtainabilium
2012-05-23T23:01:34 < _abc_> I interfaced a mpl115 and it works okay but I want the cleverness in the 3115
2012-05-23T23:08:00 -!- tavish_ [~tavish@120.56.140.70] has quit [Quit: leaving]
2012-05-23T23:15:02 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 250 seconds]
2012-05-23T23:15:18 -!- os-app92 [~ftw@153.170.195.77.rev.sfr.net] has joined ##stm32
2012-05-23T23:58:27 -!- _abc_ [~user@unaffiliated/ccbbaa] has quit [Ping timeout: 244 seconds]
--- Day changed Thu May 24 2012
2012-05-24T00:19:27 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32
2012-05-24T00:26:46 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-24T00:30:34 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 276 seconds]
2012-05-24T00:30:38 < Laurenceb_> freescale pressure sensors suck
2012-05-24T00:39:35 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-24T00:41:36 -!- mrcan__ [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-24T00:43:04 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 245 seconds]
2012-05-24T00:45:09 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 245 seconds]
2012-05-24T00:46:42 < feurig_> are there any decent WDT code samples I can look at out there?
2012-05-24T00:46:42 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 245 seconds]
2012-05-24T00:47:19 -!- os-app92 [~ftw@153.170.195.77.rev.sfr.net] has quit [Quit: My Mac has gone to sleep.]
2012-05-24T00:52:29 -!- mrcan__ [~mrcan@unaffiliated/mrcan] has quit [Remote host closed the connection]
2012-05-24T01:03:25 -!- dekar_ [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has joined ##stm32
2012-05-24T01:03:30 -!- mode/##stm32 [+v dekar_] by ChanServ
2012-05-24T01:06:41 < feurig_> darned.
2012-05-24T01:06:49 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has quit [Ping timeout: 250 seconds]
2012-05-24T01:18:29 < Laurenceb_> feurig_: sorry was afk
2012-05-24T01:18:33 < Laurenceb_> yes
2012-05-24T01:18:40 < Laurenceb_> check for my handle on github
2012-05-24T01:22:01 -!- cjbaird [~cjb@ppp121-44-93-193.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-24T01:23:26 < feurig_> link?
2012-05-24T01:24:16 < zyp> hope you don't mind code written without any fucking spaces
2012-05-24T01:24:41 < zyp> because Laurenceb's space key is apparently broken
2012-05-24T01:25:27 < feurig_> its ok that was EXACTLY what i was looking for.
2012-05-24T01:25:36 < feurig_> mr crankypants....
2012-05-24T01:26:10 < zyp> :)
2012-05-24T01:26:40 < zyp> sorry I can't be helpful, I haven't used WDT myself yet
2012-05-24T01:29:59 < zyp> https://github.com/Laurenceb/STM32-Logger/blob/master/watchdog.c <- and if you didn't find it yet, you're probably looking for this
2012-05-24T01:30:17 < feurig_> Laurenceb_: on the stm103cbt6 do we have to set up the lsi or can we just use the prescaler?
2012-05-24T01:31:06 < Laurenceb_> back
2012-05-24T01:31:21 < Laurenceb_> doesnt it boot off hsi?
2012-05-24T01:31:40 < Laurenceb_> i swap to xtal using pll at bootup
2012-05-24T01:31:53 < zyp> he's talking about the WDT
2012-05-24T01:31:58 < Laurenceb_> oh
2012-05-24T01:32:29 < feurig_> the rest of its pretty straight forward if I am seeing it right.
2012-05-24T01:32:36 < zyp> according to the clock tree, IWDG always run from the LSI
2012-05-24T01:32:49 < Laurenceb_> line 14 in my code
2012-05-24T01:35:10 < zyp> Laurenceb_, is there a point in measuring LSI frequency?
2012-05-24T01:35:35 < Laurenceb_> i grabbed that function from microkontroller.net
2012-05-24T01:36:40 < feurig_> but I should be able to configure the wdt without the LSI sections yes?
2012-05-24T01:36:59 < feurig_> (I will play around with it._
2012-05-24T01:37:02 < feurig_> thanks
2012-05-24T01:37:08 < Laurenceb_> hmm no i think the point is it runs off lsi
2012-05-24T01:37:47 < zyp> IWDG always run off LSI, WWDG runs of APB1 clock
2012-05-24T01:38:20  * Laurenceb_ zzz
2012-05-24T01:42:30 < zyp> ah, right, the TIM5 stuff is described in section 6.2.5 in reference manual
2012-05-24T01:42:34 < zyp> under LSI calibration
2012-05-24T01:43:22 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 276 seconds]
2012-05-24T01:43:30 -!- ntfreak_ is now known as ntfreak
2012-05-24T01:44:01 < zyp> as I understand, IWDG will start LSI automatically, so you don't really have to care about that
2012-05-24T01:45:07 < zyp> just enable write access, set prescaler and reload value, then enable it
2012-05-24T01:48:22 < feurig_> zyp: I thought you said you couldnt be helpfull :)
2012-05-24T01:48:36 < feurig_> that was the other part I was interested in.
2012-05-24T01:48:50 < zyp> I said I haven't used the watchdog, I can however read reference manuals ;)
2012-05-24T01:49:14 < zyp> and the IWDG were pretty easy to get an overview over, it's four registers :p
2012-05-24T01:56:05 < zyp> anyway, bedtime
2012-05-24T01:56:24 < zyp> just check the reference manual if something is unclear, the IWDG chapter is pretty easy
2012-05-24T02:06:59 < blkcat> hey guys.
2012-05-24T02:40:52 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Ping timeout: 245 seconds]
2012-05-24T02:42:45 -!- blkcat [~colin@cider.blkcat.net] has quit [Ping timeout: 248 seconds]
2012-05-24T02:44:38 -!- dekar_ [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has quit [Read error: Connection reset by peer]
2012-05-24T02:45:31 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has joined ##stm32
2012-05-24T02:45:34 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-24T02:55:36 -!- cjbaird [~cjb@ppp121-44-93-193.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-24T03:00:53 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has quit [Read error: Connection reset by peer]
2012-05-24T03:01:06 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has joined ##stm32
2012-05-24T03:01:08 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-24T03:07:23 -!- blkcat [~colin@cider.blkcat.net] has joined ##stm32
2012-05-24T03:07:42 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32
2012-05-24T03:24:05 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has joined ##stm32
2012-05-24T03:58:31 -!- LawrenceSeattle [~lawrence@66.192.187.106] has quit [Quit: LawrenceSeattle]
2012-05-24T04:04:31 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 260 seconds]
2012-05-24T04:05:50 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-24T04:13:57 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 248 seconds]
2012-05-24T04:31:47 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has quit [Quit: Ex-Chat]
2012-05-24T04:32:04 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has joined ##stm32
2012-05-24T04:33:25 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has quit [Client Quit]
2012-05-24T04:33:39 -!- upgrdman [~upgrdman@71-83-181-206.dhcp.mtpk.ca.charter.com] has joined ##stm32
2012-05-24T04:33:39 -!- upgrdman [~upgrdman@71-83-181-206.dhcp.mtpk.ca.charter.com] has quit [Changing host]
2012-05-24T04:33:39 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has joined ##stm32
2012-05-24T04:37:23 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-24T04:42:14 -!- jaeckel [~jaeckel@jaeckel.eu] has quit [Ping timeout: 246 seconds]
2012-05-24T04:43:04 -!- jaeckel [~jaeckel@jaeckel.eu] has joined ##stm32
2012-05-24T05:15:34 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has quit [Ping timeout: 245 seconds]
2012-05-24T05:17:21 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-24T05:17:40 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Disconnected by services]
2012-05-24T05:17:45 -!- Tom_L is now known as Tom_itx
2012-05-24T05:19:19 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Ping timeout: 245 seconds]
2012-05-24T05:19:39 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-24T05:19:41 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-24T05:20:56 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32
2012-05-24T05:22:39 -!- zlog_ [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32
2012-05-24T05:24:28 -!- zlog_ [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Remote host closed the connection]
2012-05-24T05:37:00 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-24T05:40:19 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Read error: Operation timed out]
2012-05-24T07:58:48 -!- Flea86 [~Flea86@c114-76-82-206.thoms3.vic.optusnet.com.au] has joined ##stm32
2012-05-24T08:06:11 -!- _abc_ [~user@unaffiliated/ccbbaa] has joined ##stm32
2012-05-24T08:18:38 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has quit [Ping timeout: 240 seconds]
2012-05-24T08:39:40 -!- cjbaird [~cjb@ppp121-44-93-193.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-24T08:56:42 -!- Flea86 [~Flea86@c114-76-82-206.thoms3.vic.optusnet.com.au] has quit [Quit: Station breakdown]
2012-05-24T08:58:01 < Tectu> morning
2012-05-24T08:59:59 < Tectu> BrainDamage, ols dosen't work on my arch computer at work as well (same behaviour
2012-05-24T09:00:01 < Tectu> )
2012-05-24T09:51:01 -!- Huitaryan [~Huitaryan@blk-252-42-151.eastlink.ca] has quit [Ping timeout: 248 seconds]
2012-05-24T10:15:42 -!- Huitaryan [~Huitaryan@blk-252-42-151.eastlink.ca] has joined ##stm32
2012-05-24T10:16:17 -!- _abc_ [~user@unaffiliated/ccbbaa] has left ##stm32 ["later"]
2012-05-24T10:25:58 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Read error: Connection reset by peer]
2012-05-24T10:35:29 < Tectu> morning dongs
2012-05-24T10:36:51 < cjbaird> Hey Boy. You look mighty cute in them jeans.
2012-05-24T10:38:32 -!- izua_ [~izua@188.26.92.246] has joined ##stm32
2012-05-24T10:38:32 -!- izua_ [~izua@188.26.92.246] has quit [Changing host]
2012-05-24T10:38:32 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32
2012-05-24T10:38:35 -!- mode/##stm32 [+v izua_] by ChanServ
2012-05-24T10:39:44 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 245 seconds]
2012-05-24T11:08:33 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-24T11:10:45 < Tectu> dongs, sounds impossible
2012-05-24T11:12:57 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Ping timeout: 245 seconds]
2012-05-24T11:20:40 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32
2012-05-24T12:07:20 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-24T12:51:26 < Tectu> how shall this backtrage help anyone?
2012-05-24T12:51:26 < Tectu> http://pastebin.com/8Siw1qmA
2012-05-24T12:53:35 < zyp> it tells you that you're in an ISR
2012-05-24T12:54:23 < zyp> backtracing further than 0xfffffffc doesn't really make sense as most interrupts happens asynchronously
2012-05-24T12:54:40 < zyp> xpsr tells you that you're in ISR 3, that
2012-05-24T12:54:45 < zyp> that's hardfault
2012-05-24T12:54:46 < Tectu> where do you get that with the ISR from?
2012-05-24T12:54:49 < Tectu> ah
2012-05-24T12:55:04 < zyp> SCB.CFSR tells you the reason for the fault
2012-05-24T12:55:19 < Tectu> i know CFSR, what's SCB?
2012-05-24T12:55:30 < zyp> and if applicable, some of the other registers in SCB contain the addr of the violation
2012-05-24T12:55:36 < zyp> SCB is system control block
2012-05-24T12:55:46 < zyp> it's a block of registers
2012-05-24T12:55:51 < Tectu> zyp, can you provide the link to the ARM page where the registers are (like CFSR) again? i am on a different system and forgot to copy that bookmark
2012-05-24T12:56:12 < Tectu> so i have a reason to find out where the problem is? :)
2012-05-24T12:56:31 < zyp> http://infocenter.arm.com/help/topic/com.arm.doc.dui0552a/CIHFDJCA.html
2012-05-24T12:57:39 < Tectu> btw, the sp does have that 'known value' again, but it does noto mean that there is a stack overflow?
2012-05-24T12:57:58 < zyp> no
2012-05-24T12:58:13 < zyp> it's probably chibios' handler stack
2012-05-24T12:58:20 < Tectu> ok
2012-05-24T12:58:28 < Tectu> btw, xpsr is the cfsr value?
2012-05-24T12:58:35 < zyp> no
2012-05-24T12:59:15 < Tectu> o0'
2012-05-24T12:59:45 < zyp> http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0552a/CHDBIBGJ.html <- xpsr is described here
2012-05-24T12:59:48 < Tectu> where to get the value that i can refer to CFSR?
2012-05-24T13:00:08 < zyp> by reading the CFSR memory location
2012-05-24T13:00:20 < Tectu> ah, it's not printed by   info register  then
2012-05-24T13:00:25 < Tectu> huch, afk first
2012-05-24T13:00:53 < zyp> info registers only prints core registers, not memory mapped registers
2012-05-24T13:01:05 < Tectu> so i go with   print  0xE000ED28   or something?
2012-05-24T13:01:12 < zyp> yes
2012-05-24T13:01:27 < Tectu> nice
2012-05-24T13:01:29 < Tectu> afk 1 hour
2012-05-24T13:01:30 < zyp> I tend to use p/x *(uint32_t*)0xe000ed28
2012-05-24T13:01:37 < Tectu> tanks for the help, zyp
2012-05-24T13:01:39 < Tectu> why the cast?
2012-05-24T13:01:51 < Tectu> p/x  0xE000ED28  does work just fine
2012-05-24T13:01:56 < zyp> because you want the contents of that memory location, not just the value itself
2012-05-24T13:02:10 < Tectu> ahè
2012-05-24T13:02:11 < Tectu> ah!*
2012-05-24T13:02:12 < Tectu> sure
2012-05-24T13:02:14 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 245 seconds]
2012-05-24T13:02:16 < Tectu> later ~
2012-05-24T13:11:23 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-24T13:17:20 < karlp> everyday I'm rollin
2012-05-24T13:25:40 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32
2012-05-24T14:07:07 < Tectu> zyp, back
2012-05-24T14:07:23 < Tectu> i'm gonna try this out now
2012-05-24T14:07:33 < Tectu> BrainDamage, btw, logic analyzer finally works :)
2012-05-24T14:11:49 < Tectu> when i get the address of a line of code from (gdb), how can i resolve it to the symbol?
2012-05-24T14:11:56 < Tectu> so i see in which line the error is?
2012-05-24T14:12:45 < zyp> gdb does that for you if it's readily available
2012-05-24T14:13:18 < zyp> but optimizations can make it pretty confusing
2012-05-24T14:14:35 < zyp> some lines turn into a lot of instructions, some lines get optimized out, and everything gets intertwined
2012-05-24T14:14:49 < zyp> read the disassembly from objdump -d
2012-05-24T14:15:11 < Tectu> zyp, well, i have 0x400 in the CFSR register
2012-05-24T14:15:15 < Tectu> that means Bus Fault Error
2012-05-24T14:15:26 < Tectu> and it says i can read address from failing line
2012-05-24T14:15:27 < BrainDamage> what was it?
2012-05-24T14:15:27 < Tectu> that one i have now
2012-05-24T14:15:38 < Tectu> so i disassemble myself now, zyp ?
2012-05-24T14:15:41 < zyp> from BFAR?
2012-05-24T14:15:43 < Tectu> jep
2012-05-24T14:15:51 < Tectu> BrainDamage, well, some awesome related issue
2012-05-24T14:15:52 < zyp> what did you get?
2012-05-24T14:15:57 < Tectu> BrainDamage, awesome window manager
2012-05-24T14:16:05 < BrainDamage> ah
2012-05-24T14:16:13 < Tectu> 0xe000edf8
2012-05-24T14:16:32 < zyp> ah, no
2012-05-24T14:16:43 < Tectu> how, no?
2012-05-24T14:17:03 < zyp> no as in «doesn't make sense»
2012-05-24T14:17:23 < Tectu> (gdb) p/x *(uint32_t)0xE000ED28
2012-05-24T14:17:23 < Tectu> $5 = 0x400
2012-05-24T14:17:29 < Tectu> that gives BusFault
2012-05-24T14:17:40 < Tectu> 0xE000ED38	BFAR
2012-05-24T14:17:46 < Tectu> refering to documentation
2012-05-24T14:17:54 < Tectu> (gdb) p/x *(uint32_t)0xE000ED38
2012-05-24T14:17:54 < Tectu> $6 = 0xe000edf8
2012-05-24T14:18:34 < zyp> ah, 0x400 is IMPRECISERR
2012-05-24T14:18:49 < zyp> «When the processor sets this bit to 1, it does not write a fault address to the BFAR.»
2012-05-24T14:19:02 < zyp> so the value in BFAR is just garbage
2012-05-24T14:20:01 < Tectu> zyp, when you get something like 0x400 how do YOU find out which bit it is? do you manually but it into binary and count the thing out or do you can convert hex to 32-bit binary in your brain?
2012-05-24T14:20:29 < zyp> sure I can
2012-05-24T14:20:43 < Tectu> have to practise that
2012-05-24T14:20:51 < Tectu> so 0x400 means again some stack error?
2012-05-24T14:21:08 < zyp> you've got two trailing zeros, so that's 8 0-bits, and then 4 is 100
2012-05-24T14:21:20 < zyp> so that's a 1 followed by ten zeros
2012-05-24T14:21:38 < zyp> if you start counting bits from zero that means the 10th bit is set
2012-05-24T14:21:41 < karlp> insane in the hexbrane
2012-05-24T14:22:03 < karlp> it's like the matrix man, you just _feel_ the hex.
2012-05-24T14:22:17 < karlp> same as graphic designers can visualize #rrggbb colour codes
2012-05-24T14:22:22 < Laurenceb> heh
2012-05-24T14:23:30 < Tectu> yeah, just not used to that thing
2012-05-24T14:23:54 < Tectu> never had to handle more than 8-bit values before :D
2012-05-24T14:24:16 < karlp> be thankful it's not 64bit :)
2012-05-24T14:24:39 < Tectu> ;-)
2012-05-24T14:25:24 < Tectu> damn, i should learn how to choose proper samling rates and recoding sizes for my logic analyzer....  open bench sniffer does have such a small buffer
2012-05-24T14:32:22 -!- Flea86 [~Flea86@c114-76-82-206.thoms3.vic.optusnet.com.au] has joined ##stm32
2012-05-24T14:32:32 < karlp> new people!
2012-05-24T14:32:37 < Tectu> oi!
2012-05-24T14:32:39 < Tectu> welcome Flea86
2012-05-24T14:32:53  * Tectu trows a stm32 development board at Flea86 
2012-05-24T14:33:10 < Tectu> s/trows/throws
2012-05-24T14:33:18 < Flea86> Hi karlp/Tectu/All :D
2012-05-24T14:33:37  * Flea86 has two STM32 discovery kits.. :)
2012-05-24T14:34:01 < Flea86> (the 'F4 version)
2012-05-24T14:35:56 < cjbaird> Heyho.
2012-05-24T14:36:02 < BrainDamage> Tectu: I told you the buffer size is tiny, it's my ony gripe with it
2012-05-24T14:36:19 < BrainDamage> I wish they'd have offered a connector to expand the ram :/
2012-05-24T14:36:20 < Flea86> cjbaird: Hey o/
2012-05-24T14:36:41 < karlp> BrainDamage: is this the dangerous prototypes logic sniffer thing?
2012-05-24T14:36:44 < BrainDamage> yes
2012-05-24T14:37:10 < BrainDamage> it's got nifty specs for the cost, except sampling buffer size
2012-05-24T14:37:16 < BrainDamage> it can sample up to 200 MHz
2012-05-24T14:37:17 < Tectu> BrainDamage, i konw that, i did buy it half a year ago ;)
2012-05-24T14:37:45 < Tectu> BrainDamage, well, there is some external buffer wing
2012-05-24T14:37:48 < Tectu> not sure if that is useful
2012-05-24T14:38:04 < BrainDamage> that's to add 16 extra channels at the expense of sampling speed
2012-05-24T14:38:12 < Tectu> BrainDamage, http://www.seeedstudio.com/depot/logic-sniffer-16bit-input-buffer-wing-p-721.html?cPath=174
2012-05-24T14:38:18 < Tectu> ah
2012-05-24T14:38:29 < cjbaird> Flea86: You can certainly put me down for two boards when you do another production run. :)
2012-05-24T14:38:51 < karlp> what's flea making?
2012-05-24T14:39:20 < Tectu> BrainDamage, do you have a strategy to choose sampling rate and recording size? I am never sure about the recording size
2012-05-24T14:39:39 < BrainDamage> start with largest unless it becomes unbearably long
2012-05-24T14:39:40 < cjbaird> He has a 8052-based 8088 DOS-compatible sim project: http://members.optuszoo.com.au/pioneer10/index.xhtml
2012-05-24T14:39:56 < Flea86> cjbaird: oh ok, will do Chris! }:A
2012-05-24T14:40:03 < karlp> oh you retrocomputering geeks :)
2012-05-24T14:40:06 < BrainDamage> you should start adding trigger conditions
2012-05-24T14:40:14 < BrainDamage> so it'll start recording only when necessary
2012-05-24T14:40:19 < karlp> I'm glad people like you exist, but I'm also glad I'm not one of them :)
2012-05-24T14:40:32 < Flea86> karlp: http://members.optuszoo.com.au/pioneer10/Flea86_21usb.JPG
2012-05-24T14:40:32 < karlp> you should all get jobs at archive.org or something
2012-05-24T14:41:08 < Tectu> BrainDamage, yeah, it's hard to find the right triggering, imo. but the triggers selection GUI thing is very nice, imo
2012-05-24T14:41:57 < BrainDamage> for sampling freq, pick 3-5 times the max freq you get on the bus
2012-05-24T14:42:03 < Tectu> BrainDamage, just things like  "Before/After rotatio" do confuse me
2012-05-24T14:42:39 < BrainDamage> it's pretty simple
2012-05-24T14:42:55 < BrainDamage> how much data save BEFORe the trigger set
2012-05-24T14:42:58 < BrainDamage> and how much after
2012-05-24T14:43:08 < Tectu> how does it know the before thing?
2012-05-24T14:43:18 < Tectu> ah
2012-05-24T14:43:18 < BrainDamage> because it records always
2012-05-24T14:43:22 < Tectu> yeah, i see
2012-05-24T14:44:39 < Tectu> i know, question might be stupid, but not sure about TriggerValue and TriggerMask too.  let's say trigger should be when pin 7 get's high
2012-05-24T14:44:42 < Tectu> so 0x80
2012-05-24T14:44:46 < Tectu> value is 0x80, mask too?
2012-05-24T14:49:56 < BrainDamage> iirc one is the start and one the stop condition, I did not use in few months so I forgot, just try :P
2012-05-24T15:21:17 < Tectu> is jtag itself "slow"? I am one of the happy guys who get the 10kB/s with taxene/stlink, but is that the maximung jtag speed? I guess not, I mean when you can do multiple target debugging, and much bigger MCUs, you get megabytes of code, don't you?
2012-05-24T15:23:34 < karlp> it's nothign to do with jtag or swd itself,
2012-05-24T15:23:36 < Tectu> ok
2012-05-24T15:23:47 < Tectu> you get 10/12MHz on stm32?
2012-05-24T15:23:47 < karlp> it's the combination of debugger, target and software driving the debugger
2012-05-24T15:24:27 < Tectu> dongs, nice... 10kb code here, takes (oh how wundering) 10s
2012-05-24T15:24:32 < Tectu> wondering*
2012-05-24T15:24:49 < Tectu> dongs, well, most peopel get much much less than 10kB/s with taxene ;)
2012-05-24T15:24:52 < Tectu> some get 200B/s
2012-05-24T15:25:13 < Tectu> what's "on a real OS"?
2012-05-24T15:25:18 < zyp> dongs, did you do anything more with the clone stuff?
2012-05-24T15:25:25 < Tectu> and what do you mean with propper JTAG?  like dedicated STLinkv2?
2012-05-24T15:25:39 < zyp> dongs, I mean clone jlink
2012-05-24T15:25:42 < Tectu> zyp, you tried taxene again ?
2012-05-24T15:25:59 < zyp> Tectu, no, haven't bothered yet
2012-05-24T15:26:21 < Tectu> does it make any sense to ALWAYS erase the full device before reflashing?
2012-05-24T15:26:33 < Tectu> never saw something like erasing over taxene?
2012-05-24T15:27:28 < zyp> «do» as in «get it working again»
2012-05-24T15:27:41 < karlp> Tectu: there's absolutely no difference between a dedicated stlinkv2 and a recent discovery board as far as debugger capabilities go
2012-05-24T15:28:05 < Laurenceb> trashbat.co.ck
2012-05-24T15:29:49 < Tectu> karlp, okay :)
2012-05-24T15:30:03 < Laurenceb> i liked the url
2012-05-24T15:30:07 < Tectu> so people just buy stlinkv2 dedicated because of the nicer case and STM8 support?
2012-05-24T15:31:02 < BrainDamage> stm8 don't seem to me to be that convenient
2012-05-24T15:31:18 < BrainDamage> their price ranges are not that different from stm32
2012-05-24T15:32:21 < BrainDamage> don't compare to 103? 103 has usb, etc
2012-05-24T15:32:42 < BrainDamage> I'd compare them to f0
2012-05-24T15:33:19 < karlp> dongs yeah, sorry, I forgot about the SWIM connector
2012-05-24T15:37:49 < Tectu> BrainDamage, well, to the openbench logic sniffer.... it's still not bad, that thing for 50$
2012-05-24T15:37:59 < Tectu> that's why i bought it. i knew about the lack of memory before
2012-05-24T15:38:01 < Tectu> but for 50...
2012-05-24T15:38:05 < Tectu> i mean better that thing than nothing
2012-05-24T15:40:15 < Laurenceb> http://rastrack.ryanteck.org.uk/
2012-05-24T15:40:21 < Laurenceb> lol they are getting trolled so bad
2012-05-24T15:53:28 < cjbaird> 5 Internet dollars to whoever locates a swastika
2012-05-24T16:00:08 < cjbaird> Only know one of the Australians on that-- 'msquared', he was involved with the Openmoko project
2012-05-24T16:04:50 < Laurenceb> http://vimeo.com/16732891
2012-05-24T16:04:53 < Laurenceb> nooo
2012-05-24T16:04:59 < Laurenceb> why did they have to use uavtalk
2012-05-24T16:05:27 < Laurenceb> and qgroundcontrol
2012-05-24T16:05:40 < Laurenceb> flyless
2012-05-24T16:05:57 < cjbaird> That fucking Dalai Lama used his Supernatural powers again, the theiving cunt.
2012-05-24T16:06:22 < Laurenceb> at least the gui is more responsive than openpilot
2012-05-24T16:06:37 < Laurenceb> but i probably broke something compiling it
2012-05-24T16:06:55 < Laurenceb> yes
2012-05-24T16:06:59 < Laurenceb> lol
2012-05-24T16:07:07 < Laurenceb> its quite easy
2012-05-24T16:07:30 < Laurenceb> that looks goofy
2012-05-24T16:07:44 < Laurenceb> erm
2012-05-24T16:07:50 < Laurenceb> as i said
2012-05-24T16:08:44 < Laurenceb> wtf
2012-05-24T16:08:54 < Laurenceb> why no i2c.c
2012-05-24T16:09:06 < Laurenceb> why the hell is the i2c in the devices file
2012-05-24T16:09:18 < Laurenceb> oh
2012-05-24T16:09:22 < Laurenceb> adxl sucks
2012-05-24T16:13:52 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has joined ##stm32
2012-05-24T16:13:55 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-24T16:40:15 < Tectu> i am so fucked up
2012-05-24T16:40:34 < Laurenceb> we know
2012-05-24T16:40:41 < Tectu> i wrote a basic library to draw circles, lines, dots, rectangles, strings and characters etc, for my LCD
2012-05-24T16:40:46 < Tectu> but now i want landscape mode...
2012-05-24T16:40:51 < Laurenceb> we knew _before_ you raped the children
2012-05-24T16:41:12 < Tectu> you do have some big issues, don't you, sir?
2012-05-24T16:41:38 < Tectu> :D
2012-05-24T16:45:20 < Tectu> maybe stupid question, but can i write into .data section while runtime?
2012-05-24T16:54:05 < zyp> of course
2012-05-24T16:54:12 < zyp> that's why .data is copied to ram
2012-05-24T16:54:49 < zyp> if .data were read only, you would just let it remain in flash and read from there
2012-05-24T16:58:08 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-24T16:58:47 < Tectu> oh!  right, misunderstanding, sorry zyp
2012-05-24T17:02:17 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |]
2012-05-24T17:03:29 < Tectu> dongs, you have internet issues, don't you
2012-05-24T17:04:53 <+dekar> that's what all the people with internet issues say...
2012-05-24T17:06:27 < Tectu> i never ever had personal problems with freenode
2012-05-24T17:06:36 < Tectu> i don't even get netsplitted all the time like others
2012-05-24T17:07:02 < Tectu> dongs, well, then go and do some reverse engineering
2012-05-24T17:07:10 -!- cjbaird [~cjb@ppp121-44-93-193.lns20.syd6.internode.on.net] has left ##stm32 ["Konversation terminated!"]
2012-05-24T17:09:13 < Tectu> begin with TCP/IP stack ;)
2012-05-24T17:10:13 < Tectu> na, never
2012-05-24T17:19:20 <+izua_> <dongs> these idiots can't evne keep lilo alive, never midn a network of servers
2012-05-24T17:19:21 <+izua_> rofl
2012-05-24T17:19:42 <+izua_> the bike couldn't keep him alive
2012-05-24T17:19:53 <+izua_> it was more like a face-to-the-ground issue than an internet issue
2012-05-24T17:20:19 <+izua_> wasn't he hit by a drunk driver?
2012-05-24T17:20:25 <+izua_> so, face-to-the-windshield i guess
2012-05-24T17:21:59 <+izua_> dongs:
2012-05-24T17:22:05 <+izua_> hi.
2012-05-24T17:22:12 <+izua_> you should check the russian goatse mirror
2012-05-24T17:22:47 <+dekar> Tectu, for the individual it always looks like everyone else is splitting
2012-05-24T17:23:01 <+dekar> you stay connected during net splits - but only to your server
2012-05-24T17:23:17 < Tectu> dekar, dongs i was just kidding, c'mon
2012-05-24T17:24:35 <+izua_> dongs: gnaa's wiki page
2012-05-24T17:24:36 <+izua_> The GNAA uses several methods of trolling. One method involves flooding weblogs with a massive amount of repeated words and phrases, referred to as "crapflooding".[8][9] They have also produced shock sites containing malware.[9] One such site, "Last Measure", contains malware that opens up pop-up windows containing shocking pictures.[10] On Wikipedia, members of the group created an article about themselves, while adhering to Wikipedia policies; a process
2012-05-24T17:24:36 <+izua_> Andrew Lih claims was "essentially using the system against itself."
2012-05-24T17:26:38 <+izua_> gg linking lemonparty
2012-05-24T17:27:02 < BrainDamage> is that a zigbee? :s
2012-05-24T17:27:07 <+izua_> looks like it
2012-05-24T17:27:30 < Tectu> loks more like XBee to mee
2012-05-24T17:27:36 < Tectu> zigbee != xbee ?
2012-05-24T17:28:39 < BrainDamage> I always confuse them
2012-05-24T17:29:29 < Tectu> info r   ->   lr is link register, right?
2012-05-24T17:29:59 < Tectu> the lr does just contain the return value of every called function, right? nothing more?
2012-05-24T17:30:18 < Tectu> so when i do    return 1;    lr should bee 0xfffffffff ?
2012-05-24T17:31:38 < zyp> no
2012-05-24T17:31:39 < Laurenceb> dongs: looks easy
2012-05-24T17:31:49 < zyp> Tectu, you're wrong
2012-05-24T17:32:05 < Tectu> zyp, go on.
2012-05-24T17:32:15 < zyp> lr contains the return addr
2012-05-24T17:32:46 < zyp> so when you type return; in C, what gets emitted is «bx lr»
2012-05-24T17:33:01 < zyp> which pretty much means pc = lr
2012-05-24T17:33:10 < zyp> dongs, yes
2012-05-24T17:33:34 < Tectu> zyp, ah, the addr to the return value, not the return value itself? was curious because you can return a bit bigger things like struct ;-)
2012-05-24T17:33:41 < Tectu> zyp, i am reading the arm documentation atm ;)
2012-05-24T17:34:09 < zyp> Tectu, «bx lr» is arm's equivalent to a return instruction
2012-05-24T17:34:09 < Tectu> "he Link Register (LR) is register R14. It stores the return information for subroutines, ..."
2012-05-24T17:34:22 < zyp> and «bl» is the equicalent to a call
2012-05-24T17:34:31 < zyp> so foo(); turns into «bl foo»
2012-05-24T17:34:57 < zyp> return information means the address to return to
2012-05-24T17:35:17 < Tectu> so when i do      struct foo_t foo;  return foo;   -->  lr contains foo's address?
2012-05-24T17:35:21 < zyp> on architectures like avr and x86 without a link register, the return address is pushed to stack
2012-05-24T17:35:25 < zyp> no
2012-05-24T17:35:52 < zyp> when you do «bl foo», lr contains the address of the instruction after bl
2012-05-24T17:35:53 < Tectu> yeah, that's why i ask, zyp. i know the thing with avr and also have a little bit experience with x86, but never saw lr
2012-05-24T17:36:05 -!- Flea86 [~Flea86@c114-76-82-206.thoms3.vic.optusnet.com.au] has left ##stm32 []
2012-05-24T17:36:06 < Tectu> what the hell is bl
2012-05-24T17:36:13 < zyp> call
2012-05-24T17:36:18 < Tectu> ah!
2012-05-24T17:36:29 < zyp> or branch with link, as it's called in arm
2012-05-24T17:37:03 < zyp> do you have any experiences with assembly on any other architectures?
2012-05-24T17:37:08 < Tectu> so like        foo();  bar();   --->   when calling foo();   lr is the address to bar(); ?
2012-05-24T17:37:24 < Tectu> zyp, only on PIC
2012-05-24T17:37:31 < Tectu> zyp, on PIC18F
2012-05-24T17:37:40 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-24T17:38:06 < zyp> I don't remember the PIC ISA, how does function calls work there?
2012-05-24T17:38:18 < Tectu> not sure anymore
2012-05-24T17:38:46 < Tectu> <Tectu> so like        foo();  bar();   --->   when calling foo();   lr is the address to bar(); ?    but is that a kind of true?
2012-05-24T17:38:56 < zyp> depends
2012-05-24T17:39:30 < zyp> the compiler might actually do that as an optimization, but no
2012-05-24T17:39:46 < Tectu> why not? what happens there?
2012-05-24T17:39:54 < zyp> the general idea is that lr is the addr of the instruction calling bar
2012-05-24T17:39:57 < zyp> not bar itself
2012-05-24T17:40:39 < Tectu> so     bl foo      bl bar       <---   when doing bl foo, lr = adress of bar?
2012-05-24T17:40:45 < Tectu> aw, to bl bar ?
2012-05-24T17:40:52 < zyp> addr of bl bar, yes
2012-05-24T17:41:16 < zyp> you can read it as «call foo; call bar»
2012-05-24T17:41:30 < Tectu> and after call foo lr is call bar?
2012-05-24T17:41:39 < Tectu> not depending what happens inside foo, as long as no other call?
2012-05-24T17:41:53 < zyp> and in traditional architectures, the addr of the next instruction («call bar») would be pushed to the stack
2012-05-24T17:41:55 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Client Quit]
2012-05-24T17:42:03 < Tectu> and what when inside foo there's another call? it pushes to the stack?
2012-05-24T17:42:23 < zyp> and when foo is done, it executes «ret», which will pop the addr from the stack and go on to execute call bar
2012-05-24T17:42:41 < Tectu> yeah
2012-05-24T17:42:49 < zyp> yes, if you need to overwrite lr you need to push it to the stack explicitly
2012-05-24T17:42:57 < Tectu> ok
2012-05-24T17:43:08 < Tectu> i've a question to the memory model, when you allow
2012-05-24T17:43:10 < zyp> http://en.wikipedia.org/wiki/Link_register
2012-05-24T17:43:45 < zyp> sure
2012-05-24T17:43:50 < zyp> I just got home from work
2012-05-24T17:43:57 < Tectu> so we have 4GB of addressable space
2012-05-24T17:44:37 < zyp> as a property of having a 32-bit address bus, yes
2012-05-24T17:44:39 < Tectu> 0x00000000 to 0x1FFFFFFF is Code, 0.5 GB
2012-05-24T17:44:52 < Tectu> that's the .text section?
2012-05-24T17:44:58 < zyp> don't think too hard about those divisions
2012-05-24T17:45:06 < zyp> and no
2012-05-24T17:45:18 < zyp> .text section is part of what goes into the flash
2012-05-24T17:45:24 < zyp> but not all of it
2012-05-24T17:45:33 < Tectu> ah, so that first part is not the program memory?
2012-05-24T17:45:47 < Tectu> i was curios, because that would mean that no ARM could contain more than 512MB of program code?
2012-05-24T17:45:54 < Tectu> (not a negative point, just asking)
2012-05-24T17:45:55 < zyp> that's wrong
2012-05-24T17:46:19 < zyp> those divisions are stm32 specific
2012-05-24T17:47:06 < Tectu> zyp, http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0552a/CHDBIBGJ.html
2012-05-24T17:47:12 < Tectu> tell me, what lands into the first 0.5GB block?
2012-05-24T17:47:55 < zyp> your link is broken
2012-05-24T17:48:12 < zyp> site is using frames, get the link from the content frame
2012-05-24T17:50:24 < Tectu> not sure how to get propper link
2012-05-24T17:50:26 < Tectu> take this:  http://infocenter.arm.com/help/topic/com.arm.doc.dui0552a/graphics/processor_memory_map.svg
2012-05-24T17:51:31 < zyp> ah, right
2012-05-24T17:51:36 < zyp> don't think too much about it
2012-05-24T17:52:05 < zyp> the flash is located somewehere in the first region, the ram is located somewhere in the second region, that's all there's to it
2012-05-24T17:53:17 < Tectu> :(
2012-05-24T17:55:22 < Tectu> zyp, btw, when i am running a program, doing  ^C
2012-05-24T17:55:26 < Tectu> print <random variable>
2012-05-24T17:55:29 < Tectu> i can continue then, right?
2012-05-24T17:55:35 < Tectu> would be pretty useless otherwise?
2012-05-24T17:57:18 < zyp> sure you can
2012-05-24T17:59:08 < Tectu> good, i am off now
2012-05-24T17:59:11 < Tectu> thank you for your help
2012-05-24T17:59:12 < Tectu> see ya
2012-05-24T18:03:36 < zyp> are you building serial converters?
2012-05-24T18:05:25 < zyp> hmm, what for?
2012-05-24T18:06:26 < zyp> oh, and there's the xbee stuff you were talking about
2012-05-24T18:07:47 < zyp> what's the purpose? why do you run RS232 levels?
2012-05-24T18:08:09 < zyp> I don't know what you're going to connect it to :p
2012-05-24T18:09:20  * Laurenceb is bored of writing retarded datalogging code
2012-05-24T18:10:15 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-24T18:10:16 < Laurenceb> "if we can datalog enough random shit it instantly solves all problems"
2012-05-24T18:10:19 < zyp> hmm, wonder if i should get out the hotair and try pulling off one of the failed LSM303s
2012-05-24T18:10:32 < zyp> I need some working sensors to play with the EKF stuff
2012-05-24T18:10:58 < Laurenceb> you need to cal them first :-S
2012-05-24T18:11:18 < zyp> huh?
2012-05-24T18:12:14 < Laurenceb> calibrate
2012-05-24T18:12:29 < jpa-> yeah
2012-05-24T18:12:48 < jpa-> like this http://koti.kapsi.fi/jpa/stuff/pix/magnetometer.png
2012-05-24T18:12:54 < Laurenceb> i think the consensus is 6 point
2012-05-24T18:13:29 < jpa-> what consensus?
2012-05-24T18:13:34 < Laurenceb> i got pretty good calibration fit
2012-05-24T18:13:38 < Laurenceb> with 6 point
2012-05-24T18:13:50 < Laurenceb> jpa-: consensus of #openpilot
2012-05-24T18:14:22 < jpa-> ah well, yeah, if you want to align it to real orientation also
2012-05-24T18:14:42 < jpa-> i just measure the scales and biases of the axes and let kalman filter work out the magnetic inclination
2012-05-24T18:14:43 < Laurenceb> "mood twitter: a device for correlating mood with mems sensors"
2012-05-24T18:14:49 < Laurenceb> seriously WTF
2012-05-24T18:15:07 < Laurenceb> jpa-: really
2012-05-24T18:15:11 < Laurenceb> thats interesting
2012-05-24T18:15:21 < jpa-> gives some interesting formulas also :P
2012-05-24T18:15:22 < Laurenceb> decoupled from the main kalman?
2012-05-24T18:15:35 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |]
2012-05-24T18:15:41 < jpa-> nope
2012-05-24T18:15:59 < Laurenceb> i use worldmagneticmodel from openpilot svn
2012-05-24T18:16:10 < Laurenceb> its part of the kalman?
2012-05-24T18:16:12 < Laurenceb> you crazy
2012-05-24T18:16:13 < jpa-> yeah, but that doesn't really work indoors
2012-05-24T18:16:23 < zyp> Laurenceb, how do I calibrate a sensor that doesn't work? :p
2012-05-24T18:16:29 < Laurenceb> so how big is the state vector?
2012-05-24T18:16:38 < jpa-> http://kapsi.fi/~jpa/stuff/other/kalman_model.pdf   the measurement model for magnetic sensor gets quite many sines, but otherwise it's fine :P
2012-05-24T18:16:58 < Laurenceb> genius
2012-05-24T18:17:01 < jpa-> 4 entries, 3 angles and the inclination (i don't need to care about gimbal lock)
2012-05-24T18:17:16 < Laurenceb> but peta ddossed out proxy again
2012-05-24T18:17:37 < Laurenceb> erm...
2012-05-24T18:17:45 < Laurenceb> oh ok
2012-05-24T18:17:54 < Laurenceb> i didnt something similar ages ago in matlab
2012-05-24T18:18:03 < Laurenceb> as a "toy" ekf
2012-05-24T18:18:04 < Laurenceb> lol
2012-05-24T18:18:16 < Laurenceb> still impressive but...
2012-05-24T18:18:45 < jpa-> just spit it out
2012-05-24T18:19:00 < Laurenceb> openpilot has position, velocity, quaternion and gyro bias
2012-05-24T18:19:22 < jpa-> of course, but i don't even have gyros (this is not a quad copter)
2012-05-24T18:19:42 < Laurenceb> oh i see
2012-05-24T18:19:43 < Laurenceb> clever stuff tho
2012-05-24T18:20:09 < jpa-> i'm using heading, roll and pitch because my hardware has equivalent gimbals :P
2012-05-24T18:20:26 < Laurenceb> in my "indoor mode" i average 10 seconds of data at bootup and set the inclination
2012-05-24T18:21:46 < Laurenceb> zyp: desolder with hot air at ~230C, then tin all the pads on the lsm before retrying
2012-05-24T18:23:03 < zyp> only problem is that I don't have proper hotair equipment
2012-05-24T18:23:23 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-24T18:24:24 < Laurenceb> no wonder it doesnt work
2012-05-24T18:25:11 < Laurenceb> *sigh*
2012-05-24T18:25:20 < Laurenceb> noobs want to use sparkfun 9dof sensor stick
2012-05-24T18:25:35 < Laurenceb> i cant be bothered to read all the datasheets to write config code
2012-05-24T18:26:28 < Laurenceb> *correlation of head motion with psychotic behaviour*
2012-05-24T18:26:30 < Laurenceb> WTF
2012-05-24T18:26:49 < Laurenceb> *head twitch* IM GOING TO KILL YOU
2012-05-24T18:27:08 < Laurenceb> this is some stupid shit
2012-05-24T18:27:13 < Laurenceb> before you add 9dof stick
2012-05-24T18:27:39 < zyp> ok, got it off with my cheap heat gun
2012-05-24T18:27:40 < Laurenceb> presumably they get glued to heads of serial killers
2012-05-24T18:27:41 < zyp> :p
2012-05-24T18:28:05 < jpa-> zyp: remember to scrub with ethanol if you can't see the orientation mark :)
2012-05-24T18:28:21 < Laurenceb> and drink ethanol if it doesnt work still
2012-05-24T18:28:26 < jpa-> yeah
2012-05-24T18:29:06 < zyp> oh, I see it just fine
2012-05-24T18:29:15 < zyp> one of the «reserved, connect to Vdd» pads are dry
2012-05-24T18:29:39 < Laurenceb> flux+small iron
2012-05-24T18:32:29  * Laurenceb has 0.2mm flux cored solder
2012-05-24T18:32:50 < jpa-> http://koti.kapsi.fi/jpa/stuff/pix/filter_output.png  seems to give somewhat sensible results
2012-05-24T18:33:38 < jpa-> would need some kind of a jig to make accurate tests
2012-05-24T18:33:47 < Laurenceb> http://ukhas.org.uk/code:4_state_extended_kalman_filter_in_matlab
2012-05-24T18:33:53 < Laurenceb> i did that ages ago
2012-05-24T18:43:44 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-24T18:49:03 < zyp> ha, fixed it :D
2012-05-24T18:49:22 < zyp> now both accel and mag are responding
2012-05-24T18:49:55 < zyp> might as well do the other board too then
2012-05-24T18:51:54 < jpa-> zyp: when you get to that point, check if DRDY in magnetometer status register works for you
2012-05-24T18:51:58 < jpa-> for me, it's always 1
2012-05-24T18:52:33 < zyp> it worked on the first board I did (that I later killed the voltage regulator on)
2012-05-24T18:53:03 < zyp> or, that was maybe not the mag
2012-05-24T18:53:10 < zyp> disregard that :p
2012-05-24T18:54:36 < Laurenceb> jpa-: I use the magno in single conversion mode
2012-05-24T18:57:15 < zyp> wow, this board was even worse
2012-05-24T18:57:20 < Laurenceb> not ion datasheet
2012-05-24T18:57:34 < zyp> I count six of seven pads on one side of the chip being dry
2012-05-24T18:58:08 < karlp> are these boards you made yourself earlier?
2012-05-24T18:58:11 < karlp> or on modules you bought?
2012-05-24T18:58:21 < zyp> made myself
2012-05-24T18:59:18 < zyp> bad footprint, will keep that in mind for the next board I do
2012-05-24T18:59:37 < Laurenceb> i had similar issues, but not that bad
2012-05-24T18:59:56 < Laurenceb> it tends to wick badly
2012-05-24T19:00:22 < zyp> the gyro footprint is better, haven't had any problems with those on any of the boards
2012-05-24T19:00:48 < Laurenceb> gps working?
2012-05-24T19:01:40 < zyp> no firmware support yet
2012-05-24T19:02:02 < zyp> but I verified that it was spitting out UBX data on the first board I built, so I assume it is
2012-05-24T19:02:22 < Laurenceb> i have ubx code on github
2012-05-24T19:02:32 < Laurenceb> state machine thing
2012-05-24T19:02:56 < Laurenceb> i use dma in circular mode to grab the data
2012-05-24T19:04:43 < zyp> it seems simple enough to write myself when I get around to it, but thanks anyway
2012-05-24T19:05:35 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has quit [Ping timeout: 252 seconds]
2012-05-24T19:06:14 < Laurenceb> i dont like ubx
2012-05-24T19:06:20 < Laurenceb> tsip is much smarter
2012-05-24T19:06:48 < Laurenceb> we used tsip over rs485 for satellite comms :P
2012-05-24T19:11:35 < zyp> for some reason, alinging tinned QFNs on a tinned footprint is much harder than when you've just got solder paste :p
2012-05-24T19:13:13 < karlp> what's UBX/TSIP? is that something like NMEA serial output, only binary or something?
2012-05-24T19:15:40 < zyp> yes
2012-05-24T19:15:58 < zyp> UBX is ublox' binary alternative to NMEA
2012-05-24T19:16:03 < zyp> no idea what TSIP is
2012-05-24T19:16:07 < zyp> hmm
2012-05-24T19:16:19 < zyp> second board still not working
2012-05-24T19:17:25 < Laurenceb> tsip is trimble version
2012-05-24T19:17:30 < Laurenceb> similar but more saner
2012-05-24T19:18:41 -!- tavish [~tavish@59.177.5.119] has joined ##stm32
2012-05-24T19:18:41 -!- tavish [~tavish@59.177.5.119] has quit [Changing host]
2012-05-24T19:18:41 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-24T19:35:36 < zyp> hmm, looks like the second lsm is actually broken
2012-05-24T19:39:29 < zyp> apparently pulled of a pad
2012-05-24T19:39:35 < zyp> but ok
2012-05-24T19:39:50 < zyp> fixed one board at least, and this one is not worse than it were
2012-05-24T19:49:48 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-24T19:49:48 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-24T19:50:20 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has joined ##stm32
2012-05-24T19:50:23 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-24T19:50:34 -!- izua_ [~izua@unaffiliated/izua] has quit [Ping timeout: 245 seconds]
2012-05-24T19:53:02 < zyp> http://bin.jvnv.net/f/DgjJ1.png <- accel seems to give sensible data as well :p
2012-05-24T19:53:53 <+Steffanx> Fixed the issues with your pcb zyp ?
2012-05-24T19:54:08 < zyp> yeah, bad solderings
2012-05-24T19:54:16 < jpa-> same as mine :)
2012-05-24T19:54:30 < jpa-> i should order more LSM303's, i need two of them and i broke the other one
2012-05-24T19:54:31 < zyp> fixed one, ripped one pad of the chip on the other :p
2012-05-24T19:54:39 <+Steffanx> Yay
2012-05-24T19:54:42 < jpa-> i ripped two pads :)
2012-05-24T19:54:47 < zyp> :D
2012-05-24T19:56:33 < zyp> http://bin.jvnv.net/f/heo2N.png <- mag is also working
2012-05-24T19:57:18 < zyp> jpa-, so, did you want me to check anything?
2012-05-24T19:57:41 <+Steffanx> A few hick-ups included ..
2012-05-24T19:57:52 -!- L00NG [~longxk@123.84.245.70] has joined ##stm32
2012-05-24T19:58:33 < jpa-> zyp: well.. not really that important, but if you have mag in 'continuous conversion' mode at e.g. 1.5 Hz or anything, it seems that DRDY is not cleared even if you read the data
2012-05-24T19:59:13 < zyp> I'll check
2012-05-24T20:01:17 < L00NG> hi everyone, newbie here, just found a "void _tmain(void)" function in stlink's blink example, what does it mean?
2012-05-24T20:02:18 < jpa-> care to provide a link?
2012-05-24T20:02:50 < L00NG> https://github.com/texane/stlink/blob/master/example/blink/main.c
2012-05-24T20:03:45 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Quit: Quitte]
2012-05-24T20:03:47 < zyp> jpa-, it's never being set here
2012-05-24T20:04:06 < zyp> SR constantly reads as 0xfe for me
2012-05-24T20:05:17 < jpa-> heh, i get 0x01 :)
2012-05-24T20:07:35 < jpa-> L00NG: looks like entry point of some sort, but hard to say when i don't know what linker script or vector table it is using.. but please take seriously the karlp's comments that the examples there are kind of busted :)
2012-05-24T20:08:34 < zyp> it's running at 15 Hz and I'm sampling the register at 100 Hz, so I get six or so equal samples, but there is no change at all in SR
2012-05-24T20:08:40 < karlp> it's probably just dead code from someone's attempts at linkers cripts and init
2012-05-24T20:08:47 < karlp> look at libopencm3 for examples,
2012-05-24T20:08:56 < zyp> oh, wait, I'm being dumb
2012-05-24T20:09:01 <+Steffanx> Why it has example code there anyway?
2012-05-24T20:09:08 <+Steffanx> Can you repeat that zyp ?
2012-05-24T20:09:13 < karlp> because I haven't submitted a pull to delete the examples
2012-05-24T20:09:28 <+Steffanx> :)
2012-05-24T20:09:28 < karlp> when the project started there was very few sources of examples in the wild,
2012-05-24T20:09:36 < zyp> I'm not reading SR, it wraps back to XH
2012-05-24T20:09:37 < zyp> :p
2012-05-24T20:09:38 < karlp> so it had an example or two to test that the tool worked.
2012-05-24T20:09:44 < karlp> then it grew, now it's a little out of hand
2012-05-24T20:11:32 < zyp> ok, now it works properly
2012-05-24T20:12:23 < zyp> DRDY is never cleared
2012-05-24T20:12:33 < jpa-> strange, i'm actually reading the SR in a separate request and .. ah, so 'properly' is 'not properly' :)
2012-05-24T20:12:40 < karlp> jpa-: L00NG: that blink doesn't even have a linker script, it just manually sets the entry point, which is why it sort of works for testing the stlink tool, but is a terrible example for basing your own code on.
2012-05-24T20:13:09 < zyp> hmm
2012-05-24T20:13:25 < zyp> I was just confused, DRDY doesn't change, but LOCK does
2012-05-24T20:13:35 < jpa-> karlp: but.. but.. vector table... ah, yeah, it's started from gdb, right?
2012-05-24T20:14:12 < zyp> http://paste.jvnv.net/view/1RyVD
2012-05-24T20:14:24 < L00NG> got it, thanks, guys
2012-05-24T20:15:12 < jpa-> zyp: hmm.. LOCK changes like you would expect DRDY to do?
2012-05-24T20:15:18 < zyp> almost
2012-05-24T20:15:23 < zyp> except inverted
2012-05-24T20:20:41 -!- L00NG [~longxk@123.84.245.70] has quit [Quit: 离开]
2012-05-24T20:22:25 < zyp> ah
2012-05-24T20:22:55 < zyp> I think we're misunderstanding the purpose
2012-05-24T20:23:04 < karlp> jpa-: yeah, more reasons why it's a terrible example :)
2012-05-24T20:23:18 < karlp> well, he didn't stay long
2012-05-24T20:23:51 < zyp> jpa-, according to the HMC5883 datasheet, DRDY being 0 means that the device is busy updating the measurements
2012-05-24T20:24:17 < zyp> (lsm303 contains a hmc die)
2012-05-24T20:24:43 < jpa-> aha
2012-05-24T20:24:45 < zyp> when I look at it here, I get occasional samples where it's 0
2012-05-24T20:25:56 < zyp> like one every few seconds
2012-05-24T20:32:42 < jpa-> i wonder what is the right way to read samples
2012-05-24T20:32:52 < jpa-> i mean, to avoid partially-updated ones
2012-05-24T20:37:15 < zyp> I think the lock stuff is meant to take care of that
2012-05-24T20:44:34 < jpa-> i thought so too.. but on the other hand it seems to work differently than i would have assumed
2012-05-24T21:06:10 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit []
2012-05-24T21:07:53 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-24T21:22:55 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Quit: Leaving.]
2012-05-24T21:42:29 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-24T22:04:06 -!- ben1066_ [~quassel@host109-152-45-7.range109-152.btcentralplus.com] has joined ##stm32
2012-05-24T22:04:06 -!- ben1066_ [~quassel@host109-152-45-7.range109-152.btcentralplus.com] has quit [Changing host]
2012-05-24T22:04:06 -!- ben1066_ [~quassel@unaffiliated/ben1066] has joined ##stm32
2012-05-24T22:05:35 -!- ben1066 [~quassel@unaffiliated/ben1066] has quit [Ping timeout: 246 seconds]
2012-05-24T22:13:39 < Laurenceb_> zyp: any progress?
2012-05-24T22:27:34 -!- tavish_ [~tavish@59.177.15.82] has joined ##stm32
2012-05-24T22:27:57 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-24T22:43:49 < zyp> nah, I've just been lazing about
2012-05-24T22:44:44 < zyp> started on a C++ interface for reading sensor data from my board now so I can hook it directly to the openpilot EKF to test
2012-05-24T22:45:08 < Laurenceb_> awesome
2012-05-24T22:45:14 < Laurenceb_> oh
2012-05-24T22:45:22  * Laurenceb_ read that as openpilot GCS
2012-05-24T22:45:43 < zyp> not interested in the GCS, I just want to run the EKF :p
2012-05-24T22:46:23 < zyp> and running it on the computer rather than on the board makes it much more easy to analyze :p
2012-05-24T22:47:51 < Laurenceb_> hmm yeah
2012-05-24T22:47:56 < Laurenceb_> maybe i should do that
2012-05-24T22:48:05 < Laurenceb_> still - as you have the same sensors as me :P
2012-05-24T22:49:05 < Laurenceb_> i managed 100hz ekf operation on my board
2012-05-24T22:50:09 < Laurenceb_> but i was reading everything at 100hz
2012-05-24T22:50:27 < Laurenceb_> apart from gps (5hz) and accel 400hz downsampled to 100
2012-05-24T22:50:42 < Laurenceb_> so the stm really got hammered
2012-05-24T22:51:00 < zyp> but that was F1, right?
2012-05-24T22:51:05 < Laurenceb_> yes
2012-05-24T22:51:12 < Laurenceb_> F4 will laught at openpilot ekf
2012-05-24T22:51:17 < zyp> :)
2012-05-24T22:51:33 < Laurenceb_> id guess about 5KHz or so
2012-05-24T22:51:50 < zyp> anyway, going to run it on host side first
2012-05-24T22:52:04 < Laurenceb_> id run all the sensors as fast as possible
2012-05-24T22:52:18 < Laurenceb_> then upsample and interpolate for the ekf
2012-05-24T22:52:36 < Laurenceb_> well - for the asyncronous sensors
2012-05-24T22:53:05 < Laurenceb_> magno and gyro can be synced to the ekf
2012-05-24T22:53:47 < Laurenceb_> you did connect the data ready pins?
2012-05-24T22:53:50 <+Steffanx> What does the E mean in EKF ? :)
2012-05-24T22:54:25 <+Steffanx> extented, thanks :)
2012-05-24T22:54:27 < Laurenceb_> exten
2012-05-24T22:54:51 < zyp> Laurenceb_, no, I forgot those :p
2012-05-24T22:55:06 < Laurenceb_> you are so screwed
2012-05-24T22:55:20 < Laurenceb_> get some enamled copper wire out
2012-05-24T22:55:21 < zyp> I was thinking «I'll do it later» when I was drawing the schematic, then forgot about them later :p
2012-05-24T22:55:33 < zyp> I even forgot the AD0 pin on the accel :p
2012-05-24T22:57:21 < zyp> but it's ok
2012-05-24T22:57:24 < Laurenceb_> is stm big of little endian i forgot
2012-05-24T22:57:30 < Laurenceb_> *or
2012-05-24T22:57:42 < zyp> it's on the list of shit to fix in next revision
2012-05-24T22:58:24 <+Steffanx> little Laurenceb_
2012-05-24T22:58:30 -!- tavish_ [~tavish@59.177.15.82] has quit [Ping timeout: 260 seconds]
2012-05-24T22:58:30 < zyp> yep
2012-05-24T22:58:40 < Laurenceb_> thanx
2012-05-24T22:58:41 < zyp> pretty much everything nowadays is little endian
2012-05-24T22:58:50 < zyp> except avr32, I hear that's big
2012-05-24T22:59:15 <+Steffanx> Yeah, mr. lufa had some trouble with that iirc
2012-05-24T22:59:59 < zyp> that's what happens when you don't think about that when you write code :p
2012-05-24T23:00:44 < zyp> my usb guru tends to complain about that when he's reading my code
2012-05-24T23:00:51 <+Steffanx> Ha
2012-05-24T23:01:07 < zyp> «that's okay, it's just temporary»
2012-05-24T23:01:15 -!- tavish [~tavish@59.177.15.251] has joined ##stm32
2012-05-24T23:01:15 -!- tavish [~tavish@59.177.15.251] has quit [Changing host]
2012-05-24T23:01:15 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-24T23:01:39 <+Steffanx> You mean, permanent
2012-05-24T23:02:11 < zyp> nah, the code in question were some hackish stuff just thrown together to make shit work
2012-05-24T23:02:36 < zyp> well, like more or less most of my current code :D
2012-05-24T23:03:03 < zyp> I'm thinking about doing a major overhaul soon
2012-05-24T23:03:21 <+Steffanx> that's what happens when you don't think about that when you write code
2012-05-24T23:03:29 < zyp> splitting out all the os/hal/driver stuff into a proper library
2012-05-24T23:03:36 < zyp> oh, I think about it
2012-05-24T23:03:48 <+Steffanx> And ignore it
2012-05-24T23:03:54 < zyp> exactly
2012-05-24T23:04:01 <+Steffanx> That's the spririt
2012-05-24T23:04:03 <+Steffanx> -r
2012-05-24T23:05:23 < zyp> I'll rather hack together some quick code to test out something first, rather than spending lots of time designing an elaborate API and find out later that it doesn't fit
2012-05-24T23:06:18 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-24T23:09:39 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-24T23:13:59 < Tectu> zyp, reading about bitbang alias stuff in documentation
2012-05-24T23:14:05 < Tectu> still not sure what it is useful for
2012-05-24T23:14:27 < zyp> atomic access of individual bits
2012-05-24T23:15:13 < Tectu> but its just like taking one of the bitbanging addressss and map it for example to address of GPIOC 3 ?
2012-05-24T23:15:37 < Tectu> so we can manipulate GPIOC.3 over that address with atomic ?
2012-05-24T23:16:42 < zyp> except that it applies to _any_ addr
2012-05-24T23:16:46 < zyp> (in the mapped space)
2012-05-24T23:17:17 < Tectu> yes
2012-05-24T23:17:22 < Tectu> but
2012-05-24T23:17:24 < Tectu> well
2012-05-24T23:17:34 < Tectu> when it is _any_ address in the 4G space
2012-05-24T23:17:37 < Tectu> it's also the alias itself
2012-05-24T23:17:39 < Tectu> or just another alias
2012-05-24T23:17:52 < Tectu> so we can atomic acces an alias wich atomic access for example GPIO bin?
2012-05-24T23:17:54 < Tectu> pin*
2012-05-24T23:17:59 < Tectu> just an example, not practical usage
2012-05-24T23:19:30 < zyp> no, it's just a 1MB region or so that's mapped
2012-05-24T23:19:39 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds]
2012-05-24T23:20:01 < Tectu> yeah
2012-05-24T23:20:04 < Tectu> okay
2012-05-24T23:20:09 < Tectu> but
2012-05-24T23:20:13 < Tectu> well
2012-05-24T23:20:27 < Tectu> do people use it? :D
2012-05-24T23:20:49 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-24T23:22:07 < zyp> I've never
2012-05-24T23:22:40 < Tectu> okay, can i ask a question about ARM's instruction set?
2012-05-24T23:22:48 < zyp> sure
2012-05-24T23:23:23 < Tectu> ADC, ADCS {Rd,} Rn, Op2 Add with Carry N,Z,C,V
2012-05-24T23:23:32 < Tectu> that's the first instruction in the table
2012-05-24T23:23:37 < Tectu> why is thare   ADC, ADCS?
2012-05-24T23:23:51 < Tectu> in the first row, called Mnemonic
2012-05-24T23:24:24 < zyp> I'm assuming adc is unsigned and adcs is signed
2012-05-24T23:25:10 < Tectu> aha!
2012-05-24T23:28:26 < Tectu> endianess, sir
2012-05-24T23:28:33 < Tectu> why are there so many differnet endian systems?
2012-05-24T23:28:35 < karlp> ah well, soldered it up, 3v3 supply is ok, but stlink doesn't recognise it.
2012-05-24T23:28:35 < Tectu> why not just one?
2012-05-24T23:28:41 < karlp> will have to do some more debugging tomorrow
2012-05-24T23:28:44 < zyp> so many?
2012-05-24T23:28:52 < karlp> would have been so nice if it had worked first go :)
2012-05-24T23:28:58 < zyp> you have little and big
2012-05-24T23:29:00 < Tectu> zyp, well, big/little, and afaik some special?
2012-05-24T23:29:09 < Tectu> zyp, okay, but where is the reason to have two?
2012-05-24T23:29:23 < zyp> because there are two way to order stuff
2012-05-24T23:29:30 < karlp> because different people had different opinions on how it should be done
2012-05-24T23:29:54 < Tectu> how can one thing that big endian is more logical?
2012-05-24T23:30:06 < Tectu> but do they have different performances or something?
2012-05-24T23:30:13 < zyp> say you have the number 0x12345678, when split into bytes you can store it as 12 34 56 78 or 78 56 34 12
2012-05-24T23:30:24 < zyp> what do you prefer?
2012-05-24T23:30:58 < Tectu> cmon
2012-05-24T23:31:02 < Tectu> that's not fair :)
2012-05-24T23:31:11 < Tectu> but ARM does have both?
2012-05-24T23:31:25 < Tectu> Byte-invariant big-endian format  and little-endian format
2012-05-24T23:31:39 < zyp> I believe ARM cores can be synthesized to big endian, yes
2012-05-24T23:31:46 < zyp> but I've never seen anybody do that
2012-05-24T23:32:06 < Tectu> <Tectu> but do they have different performances or something?
2012-05-24T23:32:12 < zyp> anyway, big endian is easier to read when written out
2012-05-24T23:32:20 < Tectu> written out?
2012-05-24T23:32:32 < Tectu> can you provide example, sir?
2012-05-24T23:32:33 < zyp> yeah, 12 34 56 78 is easier to read than 78 56 34 12
2012-05-24T23:32:45 < zyp> when the actual number is 0x12345678
2012-05-24T23:33:00 < Tectu> but the 'casual' is little endian, right?
2012-05-24T23:33:13 < zyp> but little endian have other advantages
2012-05-24T23:33:44 < zyp> say you have a buffer, let's make it a buffer of 8 bytes, and fill it with 0, like so: 00 00 00 00 00 00 00 00
2012-05-24T23:34:20 < zyp> now, we write the 8-bit integer 5 to the start of the buffer
2012-05-24T23:34:28 < zyp> 05 00 00 00 00 00 00 00
2012-05-24T23:34:46 < zyp> let's do the same with the 16-bit integer 5, little endian:
2012-05-24T23:34:49 < zyp> 05 00 00 00 00 00 00 00
2012-05-24T23:34:57 < zyp> let's do the same with the 16-bit integer 5, big endian:
2012-05-24T23:35:03 < zyp> 00 05 00 00 00 00 00 00
2012-05-24T23:35:15 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds]
2012-05-24T23:37:03 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-24T23:37:14 < zyp> the advantage of little endian is that a value is represented the same way regardless of the variable size as long as it can fit in it
2012-05-24T23:37:52 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-24T23:38:14 < zyp> so you can easily store a number through a 32-bit pointer, cast it to a 16-bit pointer and read back the same number, provided that it fits in 16 bits
2012-05-24T23:39:13 < Tectu> i see!
2012-05-24T23:39:26 < Tectu> so why did somebody think that big endian is worth to get invented?
2012-05-24T23:40:27 < zyp> because it's a pain to reverse the byte order in the head when you're reading a memory dump :p
2012-05-24T23:41:45 < zyp> and when there is two different ways to do stuff, with some advantages each, you can bet that not everybody would pick one way :p
2012-05-24T23:43:29 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has quit [Ping timeout: 250 seconds]
2012-05-24T23:45:04 < Tectu> sure
2012-05-24T23:45:08 < Tectu> i don't say it's wrong
2012-05-24T23:45:17 < Tectu> i am just asking and interested in the reason :)
2012-05-24T23:45:26 < Tectu> i know that there must be technical reasons and advantages for each
2012-05-24T23:48:32 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-24T23:50:15 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-24T23:53:44 < Laurenceb_> argggg
2012-05-24T23:53:54 < Laurenceb_> i have lsm330 and itg3200 on the same bus
2012-05-24T23:54:02 < Laurenceb_> addresses clash
2012-05-24T23:55:02 < Laurenceb_> hmm
2012-05-24T23:58:24 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds]
2012-05-24T23:58:53 < Laurenceb_> looks like i could desolder the itg and hack it
2012-05-24T23:59:05 < Laurenceb_> to try writing to 0x00 but its reserved on the lsm330
2012-05-24T23:59:22 < Laurenceb_> do the "reserved" addresses on st mems stuff contain factory cal?
--- Day changed Fri May 25 2012
2012-05-25T00:00:25 -!- tavish [~tavish@59.177.14.248] has joined ##stm32
2012-05-25T00:00:25 -!- tavish [~tavish@59.177.14.248] has quit [Changing host]
2012-05-25T00:00:25 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-25T00:02:41 < Laurenceb_> im so screwed
2012-05-25T00:03:08 < Laurenceb_> writing a new address to 0x00 would solve the problem but its a reserved address
2012-05-25T00:08:56 < Laurenceb_> oh im saved
2012-05-25T00:09:06 < Laurenceb_> cutting one trace on 9dof fixes it
2012-05-25T00:10:24 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds]
2012-05-25T00:11:24 < zyp> ekf is accumulating errors like crazy
2012-05-25T00:11:48 < Laurenceb_> do you have gps?
2012-05-25T00:11:55 < Laurenceb_> did you remeber gravity?
2012-05-25T00:12:00 < Laurenceb_> normalized the magno?
2012-05-25T00:12:13 < zyp> I'm feeding it 0 as gps coordinates
2012-05-25T00:12:35 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-25T00:14:06 < zyp> and what about gravity?
2012-05-25T00:14:38 < Laurenceb_> its accounted for in the ekf
2012-05-25T00:14:45 < Laurenceb_> using real sensors?
2012-05-25T00:15:09 < zyp> I'm feeding in real gyro, accel, mag data, 0 as gps pos/vel
2012-05-25T00:15:18 < Laurenceb_> nice, that was fast
2012-05-25T00:15:28 < Laurenceb_> did you calibrate the sensors?
2012-05-25T00:15:32 < zyp> no
2012-05-25T00:15:43 < Laurenceb_> ah
2012-05-25T00:15:48 < zyp> http://paste.jvnv.net/view/Wk52T <- it's pretty short
2012-05-25T00:15:48 < Laurenceb_> well there is your problem then
2012-05-25T00:16:14 < Laurenceb_> no way in hell itd work
2012-05-25T00:16:25 < Laurenceb_> mine seems to have issues even tho i calibrated
2012-05-25T00:16:37 < Laurenceb_> i suspect i need to overestimate error... somewhere
2012-05-25T00:17:12 < zyp> why shouldn't it work? shouldn't gps pos/vel override that?
2012-05-25T00:17:30 < Laurenceb_> unlikely
2012-05-25T00:17:32 < Laurenceb_> bbl
2012-05-25T00:23:54 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-25T00:25:46 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-25T00:53:48 < karlp> doh, short to ground. now to find the damn thing
2012-05-25T01:04:01 < Laurenceb_> scalpels, full of antifail
2012-05-25T01:04:07 < Laurenceb_> ... unless you are emo
2012-05-25T01:08:17 <+Steffanx> I want to have that pid/vid zyp :P
2012-05-25T01:11:03 < zyp> then I guess you'll have to ask «Brain Actuated Technologies»
2012-05-25T01:12:54 < zyp> oh, that's the guys making that EEG stuff I've looked at before
2012-05-25T01:35:58 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving]
2012-05-25T01:38:29 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 245 seconds]
2012-05-25T01:43:48 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds]
2012-05-25T02:00:33 -!- gnif [~gnif@xbmc/staff/gnif] has joined ##stm32
2012-05-25T02:01:01 < gnif> hi al
2012-05-25T02:01:05 < gnif> *all
2012-05-25T02:02:00 < gnif> I have a strange issue with my stm32 startup, I am fairly novice to all this and have been writing my own code from scratch to learn more about it al
2012-05-25T02:02:04 < gnif> *all
2012-05-25T02:03:37  * Tom_itx gives gnif a bucket of 'all'
2012-05-25T02:03:43 < gnif> lol
2012-05-25T02:03:53 < gnif> I have a startup.s file that copies the flash to ram, etc... when I debug the program, gdb attaches at my _start function defined in startup.s, when I step the code, it runs until it enters the C main function, that works fine... but...
2012-05-25T02:04:32 < gnif> if i install a breakpoint on main.c:main and let it just run, breakpoint is never hit, and the thing wont respond to SIGINT
2012-05-25T02:05:05 < gnif> have I missed some early initialization that needs performing for SRAM or something?
2012-05-25T02:06:09 < gnif> here is my startup.s
2012-05-25T02:06:11 < gnif> http://pastebin.com/raw.php?i=kaDnZMkA
2012-05-25T02:07:10 < karlp> cortex m3 lets you write the entire startup in C if you'd prefer.
2012-05-25T02:07:30 < gnif> karlp, that does indeed work, but I would prefer to keep it in the .s file
2012-05-25T02:07:49 < karlp> your call
2012-05-25T02:07:51 < gnif> oh, and it only works if the startup method is declared naked, otherwise i get the same behaviour
2012-05-25T02:08:01 < gnif> linker script: http://pastebin.com/raw.php?i=Tcmy711M
2012-05-25T02:08:20 < karlp> you make it sound like naked is a bad thing
2012-05-25T02:08:35 < gnif> no, just what I observed
2012-05-25T02:08:43 < gnif> like I said, I am pretty new to all this
2012-05-25T02:08:53 < karlp> so, you have it in c, and it works.
2012-05-25T02:08:59 < karlp> but you want it asm, just because?
2012-05-25T02:09:28 < gnif> i want it in asm firstly to keep the project a little neater, and I want to be able to define the vector table in asm
2012-05-25T02:10:07 < gnif> its more of a learning experiance though, i can go back to C for startup, but I would prefer to learn why this isnt working
2012-05-25T02:10:29 < gnif> it seems to be the 'bl main' call that screws things up
2012-05-25T02:12:23 < gnif> even just removing everything from _start and caling 'bl main' causes the lockup
2012-05-25T02:24:25 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 260 seconds]
2012-05-25T02:34:53 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-25T03:08:51 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32
2012-05-25T03:09:19 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 245 seconds]
--- Log closed Fri May 25 03:33:04 2012
--- Log opened Fri May 25 03:33:09 2012
2012-05-25T03:33:09 -!- jpa-_ [jpa@hilla.kapsi.fi] has joined ##stm32
2012-05-25T03:33:10 -!- Irssi: ##stm32: Total of 40 nicks [1 ops, 0 halfops, 0 voices, 39 normal]
2012-05-25T03:33:57 -!- Irssi: Join to ##stm32 was synced in 51 secs
2012-05-25T03:34:51 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit []
2012-05-25T03:35:58 -!- jpa- [jpa@hilla.kapsi.fi] has quit [Ping timeout: 265 seconds]
2012-05-25T03:35:58 -!- corecode [~2@0x2c.org] has quit [Ping timeout: 265 seconds]
2012-05-25T03:35:59 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 265 seconds]
2012-05-25T03:36:01 -!- Randomskk [~adam@paladin.randomskk.net] has quit [Ping timeout: 265 seconds]
2012-05-25T03:38:31 -!- Netsplit *.net <-> *.split quits: CheBuzz, ziph, tunebird, feurig_, jaeckel
2012-05-25T03:39:25 -!- Netsplit *.net <-> *.split quits: gnif, metaxa, ntfreak, peabody124, Huitaryan, ben1066_, Rickta59, Laurenceb, @ChanServ, upgrdman,  (+1 more, use /NETSPLIT to show all of them)
2012-05-25T03:42:34 -!- Netsplit over, joins: feurig_, ziph, tunebird
2012-05-25T03:42:53 -!- Tekno [~TeknoJuce@bas1-london15-2925075879.dsl.bell.ca] has joined ##stm32
2012-05-25T03:42:59 -!- Netsplit over, joins: jaeckel, CheBuzz
2012-05-25T03:44:10 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-25T03:44:10 -!- ntfreak_ [~ntfreak@unaffiliated/ntfreak] has joined ##stm32
2012-05-25T03:44:10 -!- Randomskk_ [~adam@paladin.randomskk.net] has joined ##stm32
2012-05-25T03:44:10 -!- corecode_ [~2@0x2c.org] has joined ##stm32
2012-05-25T03:44:10 -!- gnif [~gnif@xbmc/staff/gnif] has joined ##stm32
2012-05-25T03:44:10 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-25T03:44:10 -!- ben1066_ [~quassel@unaffiliated/ben1066] has joined ##stm32
2012-05-25T03:44:10 -!- Huitaryan [~Huitaryan@blk-252-42-151.eastlink.ca] has joined ##stm32
2012-05-25T03:44:10 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has joined ##stm32
2012-05-25T03:44:10 -!- metaxa [metaxa@members.bombshellz.net] has joined ##stm32
2012-05-25T03:44:10 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has joined ##stm32
2012-05-25T03:44:10 -!- SuicideFunky [~randy@vps-212-153-70-8.twenty-five.nl] has joined ##stm32
2012-05-25T03:44:10 -!- ChanServ [ChanServ@services.] has joined ##stm32
2012-05-25T03:44:10 -!- ServerMode/##stm32 [+o ChanServ] by gibson.freenode.net
2012-05-25T03:45:00 -!- Netsplit *.net <-> *.split quits: CheBuzz, Tekno, jaeckel
2012-05-25T03:51:00 -!- Netsplit over, joins: jaeckel, CheBuzz
2012-05-25T04:02:42 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-25T04:09:10 -!- DLPeterson [~luke@ims1065d.engr.ucdavis.edu] has joined ##stm32
2012-05-25T04:10:39 < DLPeterson> does anybody know if there is a dedicated channel for ChibiOS discussion, or is this the best place?
2012-05-25T04:19:31 < DLPeterson> I'm setting up my mcuconf.h for a project with an Olimex STM32-H107, and when I enable TIM4 and TIM5 for the general purpose timers, I'm getting a compilation error:
2012-05-25T04:19:42 < DLPeterson> Compiling /home/luke/repos/ChibiOS/os/hal/src/hal.c
2012-05-25T04:19:42 < DLPeterson> In file included from /home/luke/repos/ChibiOS/os/hal/include/gpt.h:73:0,
2012-05-25T04:19:42 < DLPeterson>                  from /home/luke/repos/ChibiOS/os/hal/include/hal.h:50,
2012-05-25T04:19:42 < DLPeterson>                  from /home/luke/repos/ChibiOS/os/hal/src/hal.c:30:
2012-05-25T04:19:42 < DLPeterson> /home/luke/repos/ChibiOS/os/hal/platforms/STM32/gpt_lld.h:164:2: error: #error "TIM5 not present in the selected device"
2012-05-25T04:20:09 < DLPeterson> yes.
2012-05-25T04:20:39 < DLPeterson> all of the STM32F1x have TIM2, TIM3, TIM4, TIM5.  Page 350 of RM0008
2012-05-25T04:22:32 < DLPeterson> Well, I'm using a STM32F107, which definitely has it.
2012-05-25T04:23:35 < DLPeterson> you are right about _MD devices
2012-05-25T04:23:55 < DLPeterson> It is a _CL line device
2012-05-25T04:23:58 < DLPeterson> that I am using
2012-05-25T04:27:23 < gnif> ok, found my problem... the vector table is being generated with the wrong address, its offset by -1
2012-05-25T04:28:53 < gnif> dongs: http://pastebin.com/raw.php?i=iqLB4M0D
2012-05-25T04:29:17 < gnif> if I do that, it fixes it
2012-05-25T04:29:45 < gnif> I assume due to the cpu being little endian
2012-05-25T04:30:26 < gnif> is there a way to tell ld to auto +1 these addresses?
2012-05-25T04:31:02 < DLPeterson> and in os/hal/platforms/STM32F1xx/hal_lld_f105_f107.h, it has:
2012-05-25T04:31:11 < DLPeterson> #define STM32_HAS_TIM4 TRUE
2012-05-25T04:31:15 < DLPeterson> #define STM32_HAS_TIM5 TRUE
2012-05-25T04:31:29 < DLPeterson> so this error shouldn't be getting trigger, but for some reason it is.
2012-05-25T04:35:07 < gnif> wow, someone went a bit nuts
2012-05-25T04:35:49 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 248 seconds]
2012-05-25T04:51:23 < R2COM> by the way in standard peripheral example for TIM_PWM_OUT, in the sourcecode they say its 30KHz output for TIM3, its actually 42KHz.
2012-05-25T04:52:24 < R2COM> was trying to figure out how on earth they get ARR=665, when 28MHz / 30KHz - 1 is NOT 665, but 28MHz / 42KHz - 1 = 665
2012-05-25T04:52:41 < R2COM> im talking about stm32f4
2012-05-25T04:52:47 < R2COM> for discovery board
2012-05-25T05:12:04 -!- Flea86 [~Flea86@c114-76-82-206.thoms3.vic.optusnet.com.au] has joined ##stm32
2012-05-25T05:25:54 < gnif> ok, by setting '.type XXX_Handler, %function' it figures out the offset correctly
2012-05-25T05:30:17 < R2COM> im reading about center-aligned mode of PWM for stm32f4, reference manual says its not recommended to writing to counter while its running in this mode, it says safest way is to use center-aligned mode is to generate update by software just before starting the counter... but thats kind of inconvenient
2012-05-25T05:31:17 < R2COM> if i want to for example do following: i count UP to 255, then i count DOWN from 255 to 0, and now i want to change that, say, count UP to 83 then from 83 down to 0, so... ill have to everytime stop the counter?
2012-05-25T06:10:44 < R2COM> well it says its not recommended
2012-05-25T06:10:50 < R2COM> reference manual says
2012-05-25T06:12:28 -!- phantoneD is now known as phantoxeD
2012-05-25T06:17:35 < gnif> should I be setting any particular attributes on handlers in general?
2012-05-25T06:20:25 < gnif> cool, just wasnt sure
2012-05-25T06:20:59 < gnif> i have a nice framework now that allows me to have a vector table of default handlers that are weak referenced and can be overridden in C
2012-05-25T06:22:47 < R2COM> well if you say nothing wrong its one thing, but when *manufacturer* of a chip in its reference manual its not recommended thats another thing.
2012-05-25T06:24:19 < R2COM> Writing to the counter while running in center-aligned mode is not recommended as it
2012-05-25T06:24:19 < R2COM> can lead to unexpected results. In particular:
2012-05-25T06:24:19 < R2COM> –
2012-05-25T06:24:19 < R2COM> The direction is not updated if you write a value in the counter that is greater than
2012-05-25T06:24:19 < R2COM> the auto-reload value (TIMx_CNT>TIMx_ARR). For example, if the counter was
2012-05-25T06:24:19 < R2COM> counting up, it continues to count up.
2012-05-25T06:24:20 < R2COM> –
2012-05-25T06:24:20 < R2COM> The direction is updated if you write 0 or write the TIMx_ARR value in the counter
2012-05-25T06:24:21 < R2COM> but no Update Event UEV is generated.
2012-05-25T06:24:21 < gnif> dongs, sort of, but it works properly and is clean
2012-05-25T06:24:56 < gnif> CMSIS is a mess IMO and very slow, intending to develop my own libraries
2012-05-25T06:25:10 < R2COM> what made you think its slow?
2012-05-25T06:25:33 < gnif> in comparison with raw register access its terrible, loops to figure out bits, etc...
2012-05-25T06:25:52 < R2COM> but isnt CMSIS only about redefenition? how come it be slow?
2012-05-25T06:26:13 < R2COM> you access register with 0xblabla... or #define BLA 0xblabla whats difference?
2012-05-25T06:26:15 < gnif> I could be wrong, but last I looked it was a horrible mess of abstraction
2012-05-25T06:26:28 < gnif> dongs, yes, similar
2012-05-25T06:26:50 < R2COM> im really new to stm32, so... not sure maybe just going along with CMSIS is ok
2012-05-25T06:27:09 < R2COM> wasnt thinking about rewriting my own, and is it worth it? afterall its all about redefenition
2012-05-25T06:27:39 -!- DLPeterson [~luke@ims1065d.engr.ucdavis.edu] has quit [Ping timeout: 260 seconds]
2012-05-25T06:28:38 < R2COM> and, are there free open source routines to work with SD card as well?
2012-05-25T06:29:13 < R2COM> dongs, agree, unless there *IS* some kind of advantage
2012-05-25T06:30:01 < R2COM> what about code to work with SD cards in FAT32 mode?
2012-05-25T06:30:09 < R2COM> is there such thing available for stm32?
2012-05-25T06:30:19 < Flea86> what dongs said
2012-05-25T06:30:24 < Flea86> :)
2012-05-25T06:34:08 < blkcat> yeah, it's a nice exercise but i'm happy to stick with cmsis myself.
2012-05-25T06:34:14 < blkcat> it isn't like the cortex chips are hurting for performance.
2012-05-25T06:35:15 < gnif> its not about performance so much, its about having nice simple stand alone .c files that provide core functionallity, such as a usart driver that can be plugged into any project
2012-05-25T06:35:55 < R2COM> ok
2012-05-25T06:36:15 < gnif> anyway, I am more of an experimentalist, this is my first bare metal device, so learning it as I go
2012-05-25T06:36:38 < gnif> btw, I am also the author of stm32flash
2012-05-25T06:39:03 < gnif> didnt write the windows code
2012-05-25T06:39:12 < gnif> that was contributed
2012-05-25T06:39:47 < gnif> it was mainly for linux though as the perl alternative sucked... dont use it anymore anyway, jtag is so much nicer
2012-05-25T06:43:28 < R2COM> stm32flash?
2012-05-25T06:43:30 < R2COM> which one
2012-05-25T06:43:37 < R2COM> i think i downloaded stuff from texane
2012-05-25T06:43:38 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has left ##stm32 []
2012-05-25T06:44:03 < gnif> R2COM, http://code.google.com/p/stm32flash/
2012-05-25T06:45:02 < R2COM> im using this:  http://jethomson.wordpress.com/2011/11/17/getting-started-with-the-stm32f4discovery-in-linux/
2012-05-25T06:46:40 < R2COM> so if one does something for windows, he better do it with visual c++ ?
2012-05-25T06:46:49 < gnif> well it was working, I have not updated that in over a year
2012-05-25T06:47:17 < gnif> R2COM, no, but best if you do
2012-05-25T06:47:48 < gnif> one day I will port it properly, I do heaps of dev work for XBMC where I have to port stuff to windows all the time, so shouldnt be too hard to make a project and import it
2012-05-25T06:47:53 < R2COM> if im correct, then its hard to transfer similar application to Linux, right
2012-05-25T06:48:01 < gnif> no
2012-05-25T06:48:11 < gnif> if written properly you can compile on both
2012-05-25T06:48:12 < R2COM> well...gui interface part
2012-05-25T06:48:29 < gnif> no, just use a library like wxWidgets
2012-05-25T06:48:44 < R2COM> or..hows another called
2012-05-25T06:48:59 < R2COM> whatever
2012-05-25T06:49:00 < gnif> ^^ they were not in the same sentance
2012-05-25T06:49:44 < gnif> anyway, it will not get a GUI, its supposed to be command line so batch programming can be performed, and it can be integrated into any IDE easy enough
2012-05-25T06:50:49 < gnif> im using openocd :)
2012-05-25T06:51:07 < gnif> ^^ 100%
2012-05-25T06:51:17 < R2COM> so, which debugger then you recommend to start work with stm32f4 ?
2012-05-25T06:51:22 < R2COM> for linux
2012-05-25T06:51:23 < R2COM> ?
2012-05-25T06:51:29 < gnif> openocd and gdb
2012-05-25T06:51:37 < gnif> using jtag
2012-05-25T06:52:07 < R2COM> st-link2 isnt a debugger right
2012-05-25T06:52:09 < gnif> just make sure its a late version of openocd (0.4 or later), makes it easier
2012-05-25T06:52:15 < R2COM> oh ok
2012-05-25T06:52:55 < gnif> i just use a cheap ass paralell adaptor
2012-05-25T06:53:03 < R2COM> so right now im using gcc for ARM + CMSIS + manual editing of Makefiles and code, no IDE.... all i have to do now is to install openocd 0.4?
2012-05-25T06:53:21 < gnif> R2COM, yes, its pretty simple to use, ill get you a url
2012-05-25T06:54:00 < gnif> The openocd.cfg is a bit old but the rest is correct
2012-05-25T06:54:01 < gnif> http://fun-tech.se/stm32/OpenOCD/gdb.php
2012-05-25T06:54:20 < R2COM> i'v noticed tremendous popularity of those arduino stuff, i wonder why people do that, its high level and i have a feeling shitty written thing... i myself forever used Microchips. but now decided to permanently switch from them
2012-05-25T06:54:23 < gnif> i can give you a config that works on openocd 0.5
2012-05-25T06:54:34 < R2COM> can you?
2012-05-25T06:54:55 < gnif> yeah, config is very easy in the later versions
2012-05-25T06:55:06 < R2COM> may i have it ?
2012-05-25T06:55:21 < gnif> http://pastebin.com/raw.php?i=433X6GfG
2012-05-25T06:55:40 < gnif> obviously adjust the interface config to whatever your jtag thing is
2012-05-25T06:56:24 < gnif> for supported interfaces -> ls -1 /usr/share/openocd/scripts/interface/
2012-05-25T06:56:37 < gnif> jlink is in there
2012-05-25T06:56:49 < R2COM> that link for openocd is for ubuntu, im usin SL6.1 though...but might work
2012-05-25T06:57:10 < gnif> the commands to install wont, but the config and gdb usage will be the same
2012-05-25T06:57:45 < R2COM> ok so, basically i'll be able with openocd to see the values of all registers as well right?
2012-05-25T06:57:58 < R2COM> and step into etc as always with most debuggers?
2012-05-25T06:58:03 < gnif> yes, its a full debugger, you can even breakpoint and step your code
2012-05-25T06:58:29 < gnif> but its pretty ugly if your used to windows... all command line
2012-05-25T06:58:37 < R2COM> thats fine
2012-05-25T06:59:03 < gnif> to see registers in gdb just print them, ie: "print $sp"
2012-05-25T06:59:25 < R2COM> wait...gdb or openocd?
2012-05-25T06:59:36 < R2COM> oh its a same concept
2012-05-25T06:59:51 < gnif> openocd is an interface between jtag and gdb
2012-05-25T06:59:55 < R2COM> ok
2012-05-25T07:00:13 < gnif> gdb is the linux debugger, so heaps of documentation and examples for it
2012-05-25T07:00:50 < R2COM> i see on that website some GUI with registers whats that?
2012-05-25T07:00:57 < R2COM> which IDE?
2012-05-25T07:01:04 < gnif> its the gtk version of gdb i think, I have not tried it yet
2012-05-25T07:01:12 < R2COM> ok maybe not worth it
2012-05-25T07:01:33 < gnif> insight
2012-05-25T07:02:25 < R2COM> i see i need xterm as well
2012-05-25T07:02:37 < gnif> only if you want insight
2012-05-25T07:02:47 < gnif> oh, wait
2012-05-25T07:02:49 < gnif> no, you dont
2012-05-25T07:02:53 < R2COM> so what do You use then? whats your combination of tools?
2012-05-25T07:03:01 < gnif> they are just using it to launch openocd
2012-05-25T07:03:25 < R2COM> well.. shouldnt i do the same as on that manual or?
2012-05-25T07:03:29 < gnif> I am using vim with syntax highlighting, gdbtui, and openocd
2012-05-25T07:03:50 < R2COM> how do you start the openocd?
2012-05-25T07:03:53 < gnif> you could just open another terminal emulator and run the command, or if you dont have a GUI up, just switch to another VT and run it
2012-05-25T07:04:07 < R2COM> ok
2012-05-25T07:04:12 < gnif> they are just backgrounding it with xterm
2012-05-25T07:04:37 < R2COM> so should i get it from here: ? wget http://fun-tech.se/stm32/OpenOCD/openocd.cfg
2012-05-25T07:05:08 < gnif> depends on your version of openocd
2012-05-25T07:05:21 < gnif> if you get version 0.5 you can use the config I linked
2012-05-25T07:05:29 < R2COM> well you recommended 0.5
2012-05-25T07:05:30 < R2COM> ok
2012-05-25T07:05:31 < gnif> just change parport stuff to jlink
2012-05-25T07:06:14 < gnif> you may have to run openocd as root so it can access the device, I wont go into how to set permissions so you can do it without being root, thats a whole new topic
2012-05-25T07:06:59 < R2COM> i just found this manual:  http://www.google.com/url?sa=t&rct=j&q=openocd%20stm32f4discovery&source=web&cd=1&ved=0CFQQFjAA&url=http%3A%2F%2Fopenocd.sourceforge.net%2Fdoc%2Fpdf%2Fopenocd.pdf&ei=GQW_T829DYKe2gXDnbmjCg&usg=AFQjCNEhd2y4ea1uGGOCQoWU6E25i4KmTQ&cad=rja
2012-05-25T07:07:05 < R2COM> so maybe ill just go with it
2012-05-25T07:07:21 < gnif> sure, its recent :)
2012-05-25T07:07:52 < R2COM> i guess it has everything for complete starters
2012-05-25T07:08:05 < R2COM> so ill just have to grab beer, and start researching it
2012-05-25T07:08:21 < gnif> just remember that you dont need to write any complex config, its all done for the stm32 already
2012-05-25T07:08:23 < gnif> just source the file
2012-05-25T07:08:34 < gnif> source [find target/stm32f1x.cfg]
2012-05-25T07:09:35 < R2COM> i think on windows i saw that Keil thing, but it has 32kb code limit
2012-05-25T07:09:48 < R2COM> anyhow im not going to go there
2012-05-25T07:12:21 < R2COM> also found this:  http://www.nabiltewolde.com/2011/10/programming-stm32f4discovery-board-with.html
2012-05-25T07:12:30 < R2COM> but there a guy says: Warning: OpenOCD does not fully support the CortexM4 yet and this method may damage your hardware. I am not an expert OpenOCD user. Use at your own risk.
2012-05-25T07:12:37 < R2COM> though im not using byteblaster
2012-05-25T07:12:41 < R2COM> i have st-link
2012-05-25T07:12:49 < R2COM> and st-link2 i guess on stm32f4discovery board
2012-05-25T07:13:00 < gnif> ah, im using cortex-m3, so id have no idea sorry
2012-05-25T07:13:18 < R2COM> F4 series is cortex-m4 i guess
2012-05-25T07:38:03 < R2COM> one thing i noticed, stlink-texane is really SLOW
2012-05-25T07:38:10 < R2COM> which stuff do you use to program chip?
2012-05-25T07:38:22 < gnif> just a LPT cable
2012-05-25T07:38:31 < R2COM> yeah... but there has to be some interface isnt it?
2012-05-25T07:38:41 < gnif> its basically just a buffer
2012-05-25T07:38:57 < gnif> lookup the dlc5 cable
2012-05-25T07:39:00 < R2COM> ok what would you use if you had stm32f4discovery board?
2012-05-25T07:39:19 < gnif> i dont know, this is the only jtag I have ever used
2012-05-25T07:39:20 < R2COM> i have USB only
2012-05-25T07:39:37 < gnif> id be inclied to get a USB based one at some point, or a USB->LPT adaptor
2012-05-25T07:41:30 < R2COM> what about your stm32flash?
2012-05-25T07:41:44 < gnif> thats serial only
2012-05-25T07:41:45 < gnif> and no debug
2012-05-25T07:42:13 < R2COM> ok
2012-05-25T07:43:34 < blkcat> i just ordered a j-link myself
2012-05-25T07:44:53 < R2COM> uh
2012-05-25T07:44:56 < R2COM> damn confusing shit
2012-05-25T07:44:58 < R2COM> so
2012-05-25T07:45:21 < R2COM> ill probably have to use st-link, the USB one... and i see now that OpenOCD is NOT compatible with ST-LINK
2012-05-25T07:46:26 < blkcat> openocd's swd support is pretty rudimentary at best, isn't it?
2012-05-25T07:46:34 < R2COM> dont know
2012-05-25T07:46:50 < gnif> seems to work great here
2012-05-25T07:46:51 < R2COM> ok, now here is the question: Whsat do people use to develop an debug under Linux for stm32?
2012-05-25T07:47:11 < gnif> i, like many other developers, use vim to develop everything
2012-05-25T07:47:24 < blkcat> gnif: are you using a fork or something? i'm genuinely curious, the last time i looked at openocd was not encouraging.
2012-05-25T07:47:49 < gnif> blkcat: I am running version 0.5 and using it to step & debug very successfully
2012-05-25T07:48:16 < R2COM> but without st-link... just parallel cable
2012-05-25T07:48:17 < blkcat> and you're doing swd with a wiggler?
2012-05-25T07:48:32 < gnif> no, dlc5
2012-05-25T07:48:39 < R2COM> ok
2012-05-25T07:48:50 < R2COM> from your PC LPT port?
2012-05-25T07:49:10 < gnif> yes
2012-05-25T07:49:43 < blkcat> fascinating.
2012-05-25T07:49:54 < R2COM> so in that case one would need something like this, if doesnt have LPT port: http://www.amazon.com/BestDealUSA-Laptop-Desktop-Analyzer-Tester/dp/B0081YHI1Q
2012-05-25T07:50:23 < blkcat> that... is not a jtag debugger of any kind, i don't think?
2012-05-25T07:50:33 < R2COM> its USB to LPT cable
2012-05-25T07:50:46 < gnif> yeah, but most of those adaptors dont have all the signaling
2012-05-25T07:50:50 < gnif> only enough for a printer
2012-05-25T07:50:56 < blkcat> yeah, you would probably want to look at something like an expansion card
2012-05-25T07:51:01 < R2COM> ehhh
2012-05-25T07:51:16 < R2COM> or maybe figure out if its possible to get job done with ST-LINK and openocd
2012-05-25T07:51:17 < blkcat> gnif: i don't want to be a pain but could i perhaps talk you into sharing your openocd config?
2012-05-25T07:51:27 < gnif> blkcat, I did ^^ there
2012-05-25T07:51:30 < R2COM> but i see already in many places that openocd does NOT support ST_LINK
2012-05-25T07:51:34 < gnif> http://pastebin.com/raw.php?i=433X6GfG
2012-05-25T07:51:35 < blkcat> i struggled for ages to get openocd to talk swd with no success so it'd be awesome if i could get that to work
2012-05-25T07:51:49 < blkcat> huh.
2012-05-25T07:51:54 < R2COM> swd you mean what?
2012-05-25T07:51:57 < R2COM> st-link?
2012-05-25T07:52:10 < gnif> unless I am clueless as to what swd is, I just wire up the jtag pins :)
2012-05-25T07:52:32 < blkcat> yeah, i suspect that you're using jtag rather than swd - the lpc parts i've been experimenting with are swd-only.
2012-05-25T07:53:39 < R2COM> ok
2012-05-25T07:53:56 < gnif> R2COM, these aparrently have all the signals I have been told -> http://www.jaycar.com.au/productView.asp?ID=XC4847
2012-05-25T07:54:02 < R2COM> so it turns out that openocd does not work with SWD and ST-LINK, right?
2012-05-25T07:54:26 < gnif> yeah, i agree
2012-05-25T07:54:28 < blkcat> R2COM: as far as i'm aware no, it does not. you'd want to use texane for that.
2012-05-25T07:54:45 < gnif> i just use an old crappy laptop for now and use openocd over the lan
2012-05-25T07:54:52 < gnif> my desktop doent have LPT
2012-05-25T07:55:19 < R2COM> texane is slow...
2012-05-25T07:55:40 < blkcat> personally i just did what dongs said and bought myself a j-link.
2012-05-25T07:56:07 < blkcat> but if you're working with stm32 just build/buy whatever jtag debugger you want and use openocd.
2012-05-25T07:56:08 < R2COM> blkcat: you work under Linux?
2012-05-25T07:56:10 < gnif> usb should be faster anyway, LPT is limited
2012-05-25T07:56:18 < R2COM> ok
2012-05-25T07:56:27 < blkcat> R2COM: yes.
2012-05-25T07:56:49 < blkcat> my desktop is windows with debian running in a virtual machine.
2012-05-25T07:57:09 < R2COM> http://www.digikey.com/product-search/en/programmers-development-systems/in-circuit-programmers-emulators-and-debuggers/2621880?k=jlink
2012-05-25T07:57:12 < R2COM> 300$ almost
2012-05-25T07:57:37 < blkcat> ^
2012-05-25T07:57:51 < gnif> what about this?? http://www.futurlec.com.au/ET-AVR_JTAG_USB.jsp
2012-05-25T07:58:17 < R2COM> no stm32
2012-05-25T07:58:28 < gnif> jtag is jtag
2012-05-25T07:58:35 < gnif> its just branded avr
2012-05-25T07:58:52  * gnif uses jtag
2012-05-25T07:58:58 < blkcat> dongs: you use the jlink with segger's gdb server i presume?
2012-05-25T07:59:11 < blkcat> awesome.
2012-05-25T07:59:16 < R2COM> dongs you work under Linux?
2012-05-25T07:59:34 < blkcat> aah crossworks. i really need to invest in that.
2012-05-25T07:59:39 < R2COM> ok
2012-05-25T07:59:55 < R2COM> 150 or 63?
2012-05-25T08:00:01 < R2COM> link?
2012-05-25T08:01:04 < R2COM> personal license allow you to sell stuff which you design using their tools?
2012-05-25T08:01:24 < R2COM> oh....
2012-05-25T08:03:10 < R2COM> ok then another flow is:  j-link + gcc + openocd  all under Linux, hows that?
2012-05-25T08:03:50 < blkcat> R2COM: that is probably what i will end up with so yes, it will work
2012-05-25T08:04:47 < R2COM> hmm
2012-05-25T08:04:52 < R2COM> im looking here
2012-05-25T08:04:58 < R2COM> http://www.segger.com/jlink.html
2012-05-25T08:05:04 < R2COM> at the bottom there is table with bundles
2012-05-25T08:05:17 < R2COM> so it seems middle option has it all
2012-05-25T08:05:26 < R2COM> or... does one need that
2012-05-25T08:05:50 < blkcat> just buy the edu version.
2012-05-25T08:05:52 < blkcat> ^^^
2012-05-25T08:06:06 < R2COM> yeah this one http://www.digikey.com/scripts/dksearch/dksus.dll?vendor=0&keywords=j-link+edu
2012-05-25T08:06:27 < blkcat> yes
2012-05-25T08:06:30 < blkcat> mine is coming in the mail.
2012-05-25T08:06:37 < blkcat> tomorrow. and i am excited.
2012-05-25T08:06:39 < R2COM> you bought it from digikey?
2012-05-25T08:06:47 < R2COM> same link?
2012-05-25T08:06:58 < blkcat> i did yes.
2012-05-25T08:07:31 < R2COM> ok after getting that, i need to download Linux PACK from here:  http://www.segger.com/jlink-software.html  and thats it? i can program and debug now for free with no limitation or?
2012-05-25T08:07:56 < blkcat> R2COM: yes.
2012-05-25T08:08:09 < R2COM> who cares, if i once manage to get it done then i dont give a shit
2012-05-25T08:08:09 < blkcat> you can use the segger gdb server or openocd if you are so inclined.
2012-05-25T08:08:15 < R2COM> i agree to loose time once for big setup
2012-05-25T08:08:43 < R2COM> oh, so with that piece of hardware for 60$ i have two free options: segger gdb or openocd?
2012-05-25T08:08:55 < blkcat> just buy it :)
2012-05-25T08:09:19 < R2COM> its not a clone no?
2012-05-25T08:09:28 < R2COM> just edu version, which is limited...in what?
2012-05-25T08:10:57 < R2COM> i tried download Linux pack now it wants serial from emulator, i guess once i buy it from digikey it should work
2012-05-25T08:12:09 < gnif> dongs, stop beeting on linux, you obviouly have had very little exposure to the system on a professional level, I am an ex avid windows developer and will never go back
2012-05-25T08:12:53 < R2COM> windows developer? so its your fault that its shitty?
2012-05-25T08:12:57 < R2COM> just kiddin
2012-05-25T08:13:01 < gnif> lol
2012-05-25T08:13:48 < R2COM> libjlinkarm.so comes with flash breakpoint capabilities (extra license required)
2012-05-25T08:13:54 < R2COM> wtf extra license required
2012-05-25T08:14:03 < R2COM> so no breakpoint for free then
2012-05-25T08:14:20 < R2COM> these assholes should at least clearly write what it can and what cannot for free
2012-05-25T08:16:15 < R2COM> hm ok
2012-05-25T08:16:32 < gnif> heh, actually it can break on both hardware and software breakpoints, and as many as I want
2012-05-25T08:16:43 < gnif> well, limited to 6 hardware odc
2012-05-25T08:16:45 < gnif> *ofc
2012-05-25T08:21:04 < R2COM> stm32f4 is ARM7?
2012-05-25T08:21:18 < R2COM> because that j-link on digikey for 60$ supports ARM7,ARM9 only
2012-05-25T08:21:26 < R2COM> and cortex
2012-05-25T08:22:27 < R2COM> the difference between that 300$ one is that it also supports ARM11, whereas EDU does only ARm7,9 and cortex
2012-05-25T08:24:06 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32
2012-05-25T08:24:14 < R2COM> so...well..
2012-05-25T08:25:05 < pelrun> figures - ordered 2 stm32vldiscovery boards (that I need) from RS and an stm32f4discovery (that I just want) a week later - the f4 showed up but the vl's haven't :P
2012-05-25T08:26:17 < pelrun> twiddling my thumbs at work until the smaller boards show
2012-05-25T08:26:39 < pelrun> may as well play with the f4, but geez they made it a pain to breadboard
2012-05-25T08:27:36 < blkcat> pelrun: yeah, they really did. supposedly you can get some old-style ide cables that help a bit.
2012-05-25T08:27:47 < blkcat> pelrun: why the 2 stm32vl boards? flashing versaloon onto one or something?
2012-05-25T08:28:17 < pelrun> nah, for prototyping a design that's going to use an f10x
2012-05-25T08:28:26 < blkcat> i gotta say, speed issues aside the availablity of texane makes stm32 way more attractive to hobbyists.
2012-05-25T08:28:43 < blkcat> nxp has lpcxpresso but the embedded debugger is 100% proprietary.
2012-05-25T08:28:52 < R2COM> texane you mean a piece of software for downloading code to chip?
2012-05-25T08:28:58 < pelrun> haven't gotten into the details of flashing the boards yet
2012-05-25T08:29:02 < R2COM> well im using texane now but with no debug
2012-05-25T08:29:16 < pelrun> gdb will be a godsend
2012-05-25T08:29:28 < pelrun> hahahahahaha what
2012-05-25T08:29:52 < blkcat> dongs: i could be wrong but i doubt most people are interested in being wedded to code red.
2012-05-25T08:30:04 < blkcat> but yes, we get it, you don't like linux. :)
2012-05-25T08:30:09 < pelrun> dongs: you obviously don't hang out with the same hobbyists we do
2012-05-25T08:30:19 < pelrun> it's amazingly widespread
2012-05-25T08:30:28 < blkcat> (for the record i don't really adore it either, but it does what i need it to do)
2012-05-25T08:30:36 < pelrun> and you hardly ever recompile a kernel anymore
2012-05-25T08:30:45 < pelrun> not that that is particularly difficult
2012-05-25T08:30:58 < R2COM> i can understand him,  sometimes you want shit to work and get mad when you cant get something done until you spend 90% of your time rambling with linux
2012-05-25T08:30:59 < pelrun> I expect most users never will now
2012-05-25T08:31:03 < R2COM> but i sue Linux now
2012-05-25T08:31:07 < R2COM> mainly for FPGA stuff
2012-05-25T08:31:21 < R2COM> use*
2012-05-25T08:31:25 < pelrun> I use windows on the desktop these days, and I actually have more problems with some things than if I used linux
2012-05-25T08:32:08 < pelrun> so I'm just as annoyed at windows for having shit that doesn't work
2012-05-25T08:32:49 < blkcat> everything sucks
2012-05-25T08:33:02 < pelrun> yup
2012-05-25T08:33:13 < pelrun> so no point going on a crusade over one little thing
2012-05-25T08:45:40 < R2COM> on seggers website i cant even ask question if i havent bought their product
2012-05-25T08:45:45 < R2COM> isnt it completely idiotic?
2012-05-25T08:46:28 < blkcat> eh?
2012-05-25T08:46:35 < blkcat> there's an email address, a phone number, and a fax number
2012-05-25T08:46:36 < R2COM> on segger2.com
2012-05-25T08:46:37 < blkcat> what more do you want?
2012-05-25T08:47:00 < R2COM> well i thought forum is fastest and most convenient thing to communicate first
2012-05-25T08:47:22 < blkcat> and what other questions could you possibly have? :)
2012-05-25T08:47:40 < R2COM> well...i just wanted some confirmation that this shit will really work
2012-05-25T08:47:52 < R2COM> i dont want to buy another crap and then figure out that its not what i needed
2012-05-25T08:47:59 < blkcat> what do you need exactly?
2012-05-25T08:48:38 < R2COM> confirm that: J-LINK EDU for 60$,  + GCC + openOCD all under Linux, will allow me develop/download/debug things for free
2012-05-25T08:49:04 < R2COM> or j-link + their GDB server + gcc
2012-05-25T08:49:55 < blkcat> yes.
2012-05-25T08:49:57 < blkcat> it will work.
2012-05-25T08:50:04 < R2COM> ok
2012-05-25T08:50:33 < R2COM> one more thing
2012-05-25T08:50:49 < R2COM> is it legal to sell stuff developed with their EDU version of J-LINK?
2012-05-25T08:51:12 < blkcat> no.
2012-05-25T08:51:18 < R2COM> lol
2012-05-25T08:51:21 < R2COM> ok
2012-05-25T08:51:33 < blkcat> as it states very clearly on their web site :)
2012-05-25T08:51:46 < R2COM> thats not a problem, but with that J-LINK for 300$ it probably OK to sell stuff developed with it?
2012-05-25T08:51:54 < blkcat> yes.
2012-05-25T08:52:02 < R2COM> thats fine then
2012-05-25T08:52:20 < R2COM> so, technically, i only have to spend 300$, and after that nothing more,
2012-05-25T08:53:05 < blkcat> if you see yourself using it for commercial purposes then yes
2012-05-25T08:55:33 -!- izua [~izua@188.26.92.246] has joined ##stm32
2012-05-25T08:55:34 -!- izua [~izua@188.26.92.246] has quit [Changing host]
2012-05-25T08:55:34 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-25T08:55:35 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-25T08:58:35 < R2COM> well
2012-05-25T08:58:37 < R2COM> then...
2012-05-25T08:58:40 < R2COM> maybe its worth it
2012-05-25T08:58:47 < R2COM> just order that 300$ J-LINK
2012-05-25T08:59:27  * blkcat shrugs
2012-05-25T08:59:58 < R2COM> was it you who ordered 60$ version?
2012-05-25T09:01:52 < Tectu> morning
2012-05-25T09:02:30 < blkcat> R2COM: dongs and i both ordered the edu version
2012-05-25T09:06:59 -!- L00NG [~longxk@123.84.245.70] has joined ##stm32
2012-05-25T09:08:33 < R2COM> oh another way is not use that debugger at all :) lol
2012-05-25T09:08:49 < R2COM> use LEds :P
2012-05-25T09:12:43 < R2COM> link for that cheapo?
2012-05-25T09:13:51 < R2COM> oh no
2012-05-25T09:13:54 < R2COM> doesnt work
2012-05-25T09:14:09 < R2COM> because the official software of segger supports THEIR hardware only
2012-05-25T09:14:15 < R2COM> so no
2012-05-25T09:18:11 < blkcat> dongs: actually i'm curious, where are you finding the knockoffs?
2012-05-25T09:18:20 < blkcat> dongs: i recall seeing some on ebay but they appear to have been removed.
2012-05-25T09:20:43 < R2COM> one more question
2012-05-25T09:21:03 < R2COM> if i have gdbserver, it means i can use that one instead of openocd right?
2012-05-25T09:21:13 < R2COM> well
2012-05-25T09:21:21 < R2COM> then it turns that texane can do this
2012-05-25T09:21:32 < R2COM> (its slow in downloading FLASH but...whatever)
2012-05-25T09:22:46 < R2COM> look here
2012-05-25T09:22:46 < R2COM> http://false.ekta.is/2012/05/using-netbeans-for-stm32-development-with-stlink-texane/
2012-05-25T09:22:54 < blkcat> aah yeah, looks like segger's really gone after the knockoffs.
2012-05-25T09:23:01 < blkcat> or so the hilariously mangled google translated chinese tells me.
2012-05-25T09:23:29 < blkcat> R2COM: yes, we've mentioned texane
2012-05-25T09:23:38 < R2COM> oh they should just call it Kong-dong-bong, and noone would figure out
2012-05-25T09:23:39 < blkcat> it works fine but is quite slow
2012-05-25T09:24:34 < blkcat> knockoff saleae logic for $13, that's tempting
2012-05-25T09:25:16 < blkcat> though i think i'd rather buy the real thing. they deserve the support.
2012-05-25T09:26:22 < R2COM> yes
2012-05-25T09:26:24 < zyp> I did that, I've been tempted to buy the 16-input-variant as well
2012-05-25T09:26:33 < pelrun> I'm a happy user of the openbench logic sniffer instead
2012-05-25T09:27:21 < pelrun> sure it's not realtime (yet), but it's got up to 32 inputs and 200MHz sample rate
2012-05-25T09:27:30 < pelrun> also $50
2012-05-25T09:27:56 < pelrun> (and then buy the saleae probe clips to use with it :D )
2012-05-25T09:28:06 -!- You're now known as jpa-
2012-05-25T09:29:47 < Tectu> is it possible that a chThdSleepMilliseconds(2000); can cause crash?
2012-05-25T09:32:04 < zyp> called from where?
2012-05-25T09:33:14 < Tectu> zyp, http://pastebin.com/s6177uQJ
2012-05-25T09:33:19 < R2COM> where is usually path to JDK in linux?
2012-05-25T09:33:24 < R2COM> im installing that netbeans thing
2012-05-25T09:33:28 < R2COM> it wants path to JDK
2012-05-25T09:33:47 < Tectu> this for does work one time, without any problem, then it goes about 5 to 10 seconds and then i get a crash
2012-05-25T09:33:48 < R2COM> says path to JDK installation...not sure what it means tho
2012-05-25T09:34:08 < Tectu> R2COM,     $ which java
2012-05-25T09:34:40 < blkcat> dongs: ?
2012-05-25T09:34:58 < R2COM> Tectu: didnt give any path
2012-05-25T09:35:10 < blkcat> yeah.
2012-05-25T09:35:16 < blkcat> in angry chinese characters. :D
2012-05-25T09:35:27 < Tectu> R2COM, which distribution are you using?
2012-05-25T09:35:46 < R2COM> Scientific Linux 6.1
2012-05-25T09:35:50 < R2COM> (like RHEL6)
2012-05-25T09:35:52 < blkcat> that's really too bad though, i would've happily snagged a couple.
2012-05-25T09:36:07 < Tectu> R2COM, try   which which
2012-05-25T09:36:17 < Tectu> (to find out if which is there/working)
2012-05-25T09:36:37 < R2COM> alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
2012-05-25T09:36:37 < R2COM> 	/usr/bin/which
2012-05-25T09:36:51 < Tectu> awesome
2012-05-25T09:36:58 < Tectu> is there any output with    java -version    ?
2012-05-25T09:37:42 < R2COM> java version "1.6.0_22"
2012-05-25T09:37:42 < R2COM> OpenJDK Runtime Environment (IcedTea6 1.10.6) (rhel-1.43.1.10.6.el6_2-x86_64)
2012-05-25T09:37:42 < R2COM> OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
2012-05-25T09:38:10 < Tectu> R2COM, #linux
2012-05-25T09:41:35 < Tectu> zyp, anything?
2012-05-25T09:44:24 < zyp> nah
2012-05-25T09:56:01 < Tectu> zyp, when   lr 0xfffffffd    <--- does that mean something?
2012-05-25T09:56:13 < Tectu> when i get unhandled exeption, and do info r
2012-05-25T09:56:56 < R2COM> ok
2012-05-25T09:57:15 < R2COM> now, any idea how can i connect to my chip using st-link for debug?
2012-05-25T09:57:20 < R2COM> normally i start st-util
2012-05-25T09:57:33 < R2COM> then, how would i do it from console?
2012-05-25T09:58:11 < Tectu> st-util works?
2012-05-25T09:58:32 < Tectu> then open another terminal, goto project folder (not neccessary)
2012-05-25T09:58:45 < Tectu> and go with    arm-none-eabi-gdb your.elf
2012-05-25T09:58:55 < Tectu> then you should end up in a  (gdb)  prompt
2012-05-25T09:59:23 < Tectu> connecto to the stlink server (st-util)   with    target extended localhost:4242  (Short version is:   tar ext :4242)
2012-05-25T09:59:37 < Tectu> if it worked, you should be able to load the program to the MCU, using     load
2012-05-25T09:59:58 < Tectu> after successful loading, type  run   and answer with yes
2012-05-25T10:00:27 < Tectu> R2COM
2012-05-25T10:00:50 < R2COM> Chip ID is 00000413, Core ID is  2ba01477.
2012-05-25T10:00:50 < R2COM> KARL - should read back as 0x03, not 60 02 00 00
2012-05-25T10:00:51 < R2COM> init watchpoints
2012-05-25T10:00:51 < R2COM> Listening at *:4242...
2012-05-25T10:00:56 < R2COM> now trying the rest
2012-05-25T10:01:15 < Tectu> that part looks good
2012-05-25T10:01:41 < zyp> Tectu, it's a special address that means «return from interrupt»
2012-05-25T10:01:49 < zyp> it's expected and normal
2012-05-25T10:01:54 < Tectu> aha
2012-05-25T10:01:58 < R2COM> ok
2012-05-25T10:01:59 < R2COM> now
2012-05-25T10:02:03 < R2COM> im doing this
2012-05-25T10:02:25 < R2COM> i connected with arm-none-eabi-gdb pwm2.elf
2012-05-25T10:02:29 < R2COM> im in console
2012-05-25T10:02:35 < R2COM> <https://support.codesourcery.com/GNUToolchain/>...
2012-05-25T10:02:35 < R2COM> Reading symbols from /home/blackops/projects/arm/stm32f4discovery/STM32F4-Discovery_FW_V1.1.0/Project/Peripheral_Examples/pwm2/pwm2.elf...done.
2012-05-25T10:02:35 < R2COM> (gdb)
2012-05-25T10:02:50 < Tectu> zyp, when i have hardfault/unhandled exception, how do i backtrace to find the error / fault?     this is not realy helpful at all?   http://pastebin.com/8VYmbBwP
2012-05-25T10:03:06 < Tectu> R2COM, just try it and tell if it works or not
2012-05-25T10:07:09 < R2COM> (gdb) target extended localhost:4242
2012-05-25T10:07:09 < R2COM> Remote debugging using localhost:4242
2012-05-25T10:07:09 < R2COM> 0x08001e24 in Reset_Handler ()
2012-05-25T10:07:09 < R2COM> (gdb) load
2012-05-25T10:07:09 < R2COM> Loading section .isr_vector, size 0x188 lma 0x8000000
2012-05-25T10:07:09 < R2COM> Loading section .text, size 0x1cec lma 0x8000188
2012-05-25T10:07:09 < R2COM> Loading section .data, size 0x2c lma 0x8001e74
2012-05-25T10:07:10 < R2COM> Start address 0x8001e24, load size 7840
2012-05-25T10:07:10 < R2COM> Transfer rate: 232 bytes/sec, 2613 bytes/write.
2012-05-25T10:07:11 < R2COM> (gdb) run
2012-05-25T10:07:11 < R2COM> The program being debugged has been started already.
2012-05-25T10:07:12 < R2COM> Start it from the beginning? (y or n) y
2012-05-25T10:07:14 < R2COM> so...i guess it worked?
2012-05-25T10:07:31 < R2COM> now i see: Starting program: /folders etc......./pwm2.elf
2012-05-25T10:07:34 < R2COM> and stays like that
2012-05-25T10:07:51 < Tectu> Please, don't copy so much lines into a public channel. Use pasting boards like pastebin.com if neccessary
2012-05-25T10:07:58 < R2COM> ok
2012-05-25T10:07:59 < Tectu> and yes, if it gives no errrors, it runs the program
2012-05-25T10:08:06 < Tectu> usually
2012-05-25T10:08:36 < R2COM> well, ill then now have to go ahead study the gdb commands
2012-05-25T10:08:40 < R2COM> and dig into this
2012-05-25T10:08:52 < R2COM> can you give a hint on some obvious command
2012-05-25T10:08:59 < Tectu> info register
2012-05-25T10:09:02 < R2COM> like, to see if some register holdws value
2012-05-25T10:09:06 < Tectu> gives you the coreregister contents
2012-05-25T10:09:21 < R2COM> hmmm
2012-05-25T10:09:26 < R2COM> i think i cant make it happen
2012-05-25T10:09:33 < Tectu> when you do   Ctrl+c   in a running program, it stops the program right at that place. you can    continue   the program afterwards from exact that spot
2012-05-25T10:10:02 < Tectu> also   print   is a nice thing. when you stop a program, you can    print variable   to print any variable in your sourcecode
2012-05-25T10:10:19 < Tectu> step is also nice. when stopped a program, you can use   step    to exectue one line/instruction
2012-05-25T10:10:27 < Tectu> but hey, i am a very very big newbie at this
2012-05-25T10:10:38 < Tectu> i am learning too
2012-05-25T10:10:46 < Tectu> also try to learn how to use breakpoints
2012-05-25T10:11:19 < R2COM> i pressed now ctrl+c it stopped
2012-05-25T10:11:29 < R2COM> then info register, it showed registers, but i cant start from same place
2012-05-25T10:11:33 < R2COM> it tells me it can restart
2012-05-25T10:11:42 < Tectu> use   continue
2012-05-25T10:12:26 < R2COM> ok
2012-05-25T10:12:42 < R2COM> well...other than being slow.... this texane solution seems to work under linux
2012-05-25T10:13:23 < R2COM> how do you stare at special purpose or Timer registers
2012-05-25T10:13:23 < R2COM> ?
2012-05-25T10:14:05 < Tectu> R2COM,    p/x *(uint32_t)<register_address>
2012-05-25T10:14:15 < Tectu> does print register content of any readable register
2012-05-25T10:14:37 < Tectu> you have slow texane too?  i get 10kB/s here
2012-05-25T10:14:46 < zyp> memory mapped registers are read as any other memory block
2012-05-25T10:15:23 < Tectu> zyp, is that the professional version of saying "the command above works"?
2012-05-25T10:16:08 < zyp> you forgot a *
2012-05-25T10:16:11 < zyp> but yes
2012-05-25T10:16:23 < Tectu> where did i forgot the  *   ?
2012-05-25T10:16:35 < zyp> (uint32_t*)
2012-05-25T10:16:38 < R2COM> (gdb) p/x*(uint32_t)0x01000000
2012-05-25T10:16:39 < R2COM> Cannot access memory at address 0x1000000
2012-05-25T10:16:58 < Tectu> R2COM, p/x  *(uint32_t*)0x01000000
2012-05-25T10:17:05 < Tectu> zyp, that way?
2012-05-25T10:17:09 < zyp> R2COM, that's obvious, there is no memory located at 0x01000000
2012-05-25T10:17:33 < R2COM> oh
2012-05-25T10:17:34 < R2COM> ups
2012-05-25T10:17:35 < Tectu> zyp it's actually    *(uint32_t*)<reg>  ?
2012-05-25T10:17:44 < zyp> yes
2012-05-25T10:18:35 < Tectu> aah, that seems obvious, since  reg is (uint32_t*)  :D
2012-05-25T10:18:48 < R2COM> like, i wanna stare for example at TIM3_CR1
2012-05-25T10:19:12 < zyp> do you have TIM3_CR1 defined as a symbol?
2012-05-25T10:19:23 < zyp> if so, you can just do p/x TIM3_CR1
2012-05-25T10:19:23 < R2COM> what you mean?
2012-05-25T10:19:48 < zyp> you can access any variable from gdb like you would access it from C
2012-05-25T10:20:09 < R2COM> so no
2012-05-25T10:20:17 < R2COM> TIM3_CR1 is just #defineD
2012-05-25T10:20:20 < R2COM> defined
2012-05-25T10:20:24 < R2COM> in CMSIS
2012-05-25T10:20:27 < zyp> so it doesn't work?
2012-05-25T10:20:31 < zyp> did you try?
2012-05-25T10:20:33 < R2COM> nope
2012-05-25T10:20:39 < R2COM> (gdb) p/x TIM3_CR1
2012-05-25T10:20:39 < R2COM> No symbol "TIM3_CR1" in current context.
2012-05-25T10:20:43 < zyp> ah, right
2012-05-25T10:21:12 < zyp> I define all my register blocks as struct references
2012-05-25T10:21:16 < R2COM> but in main.c i use functions to set its bits etc
2012-05-25T10:21:23 < R2COM> i think thats what i have?
2012-05-25T10:21:36 < R2COM> im using standard example from ST, the TIM_PWM_Output
2012-05-25T10:21:42 < zyp> so I can do «p/x TIM3» and it will print the entire TIM3 register block
2012-05-25T10:21:43 < R2COM> with 4 channels PWM output
2012-05-25T10:21:56 < Tectu> zyp, that's somehow awesome
2012-05-25T10:22:15 < R2COM> zyp how you do it exactly?
2012-05-25T10:22:22 < Tectu> zyp, btw, can you say something about my question from before about the backtrace?
2012-05-25T10:23:06 < zyp> http://cgit.jvnv.net/suzumebachi/tree/hal/gpio.h?h=stm32f4 <- I do it exactly like this
2012-05-25T10:23:22 < zyp> Tectu, what did you ask?
2012-05-25T10:23:43 < Tectu> <Tectu> zyp, when i have hardfault/unhandled exception, how do i backtrace to find the error / fault?     this is not realy helpful at all?   http://pastebin.com/8VYmbBwP
2012-05-25T10:23:57 < zyp> you don't
2012-05-25T10:24:22 < zyp> you check CFSR to see what caused the fault
2012-05-25T10:25:17 < R2COM> zyp...its kind of confusing, dont you re-define what is already defined in CMSIS this way?
2012-05-25T10:25:28 < zyp> you can trick gdb into giving you a backtrace, but that won't necessarily show you where something failed, only where the fault was handled
2012-05-25T10:25:39 < zyp> R2COM, yes, I don't use the CMSIS
2012-05-25T10:25:47 < zyp> so I define everything myself
2012-05-25T10:26:05 < R2COM> zyp, why you decided not to use CMSIS? just curious, im almost first day new to stm32
2012-05-25T10:26:41 < Tectu> R2COM, people like zyp are gods, they don't use other peoples shit ;-)
2012-05-25T10:26:51 < zyp> something like that
2012-05-25T10:27:06 < R2COM> well he is using gcc ;)
2012-05-25T10:27:12 < R2COM> made by other people :P
2012-05-25T10:27:18 < zyp> and because I do this for fun, not to get shit done, so I don't mind reinventing the wheel
2012-05-25T10:27:27 < R2COM> oh ok
2012-05-25T10:27:45 < R2COM> well, i was wondering is there any real physical benefit you are getting from that or no
2012-05-25T10:28:16 < Tectu> zyp, is there a way to configure gdb like doing macros?  a macro to read for example CFSR?
2012-05-25T10:28:37 < R2COM> so, if there is no direct benefit then maybe its ok to just use CMSIS
2012-05-25T10:28:45 < zyp> Tectu, yes, and no I don't know how
2012-05-25T10:28:48 < R2COM> i mean performance benefit
2012-05-25T10:28:58 < zyp> Tectu, I've considered just that myself
2012-05-25T10:29:24 < Tectu> zyp, but c'mon, i mean i have IMPRECISERR again, but how to debug something like that? it just says something bad happens...
2012-05-25T10:29:46 < Tectu> there has to be a way go get to the fault without guessing-code-chaning?
2012-05-25T10:29:55 < zyp> R2COM, I haven't done any direct comparisons, but my code is written to inline a lot to avoid runtime overhead
2012-05-25T10:32:23 < R2COM> zyp: so you yourself are using: gcc + texane_stlink tools + ST-LINK programmer with USB under Linux?
2012-05-25T10:32:25 < R2COM> or?
2012-05-25T10:33:55 < zyp> I'm running OS X rather than linux, but that's in practice no difference
2012-05-25T10:34:11 < R2COM> ok, and which set of tools and hardware?
2012-05-25T10:34:34 < zyp> I recently got a blackmagic probe
2012-05-25T10:34:49 < zyp> before that I used st-link with texane middleware
2012-05-25T10:34:56 -!- Randomskk_ is now known as Randomskk
2012-05-25T10:35:01 < R2COM> whats blackmagic probe?
2012-05-25T10:35:05 < zyp> both are used via gdb, so usage-wise there is not a huge difference
2012-05-25T10:35:33 < zyp> http://www.blacksphere.co.nz/main/blackmagic
2012-05-25T10:35:50 < R2COM> which solution you find faster?
2012-05-25T10:35:57 < zyp> blackmagic
2012-05-25T10:36:25 < R2COM> like...much more faster?
2012-05-25T10:36:32 < zyp> I got 13 kB/s when I used it yesterday
2012-05-25T10:36:40 < R2COM> how much with texane?
2012-05-25T10:36:56 < zyp> but my flash image is still only 7 kB, so much of the time spent might be overhead
2012-05-25T10:37:01 < Tectu> R2COM, how much do you get with your texane/st-link?
2012-05-25T10:37:05 < R2COM> i read it supports currently Cortex-M3... nothing said about M4
2012-05-25T10:37:20 < zyp> I'm using it with M4
2012-05-25T10:37:56 < R2COM> Tectu: im not sure, where do you see that speed by the way?
2012-05-25T10:38:11 < zyp> gdb tells you that after you type load
2012-05-25T10:38:31 < zyp> I used to get 1-2 kB/s with texane
2012-05-25T10:38:35 < Tectu> R2COM, Transfer rate: 10 KB/sec, 9240 bytes/write.
2012-05-25T10:38:40 < zyp> but I hear it recently improved
2012-05-25T10:38:42 < Tectu> zyp, cool people get 10 :D
2012-05-25T10:38:42 < R2COM> Transfer rate: 232 bytes/sec, 2613 bytes/write.
2012-05-25T10:38:51 < Tectu> zyp, dosen't look like ;-)
2012-05-25T10:38:57 < zyp> R2COM, ah, right
2012-05-25T10:39:03 < Tectu> zyp, is it possible that it only issues with f4 discovery?
2012-05-25T10:39:12 < zyp> R2COM, are you running an old version?
2012-05-25T10:39:14 < Tectu> i also had 10kB/s on f100 discovery
2012-05-25T10:39:30 < R2COM> zyp... what you mean? version of what?
2012-05-25T10:39:34 < zyp> texane
2012-05-25T10:40:16 < R2COM> i cant find where it writes its version...not in readme
2012-05-25T10:40:17 < zyp> I was working with a friend once, he also had problems with slow flashing, just 200 B/s or so
2012-05-25T10:40:27 < zyp> where did you get it from?
2012-05-25T10:40:48 < R2COM>  git clone git://github.com/texane/stlink.git stlink_texane
2012-05-25T10:40:51 < Tectu> aha
2012-05-25T10:40:54 < Tectu> thats strange
2012-05-25T10:41:02 < Tectu> zyp, dosen't look like much improvement ;)
2012-05-25T10:41:04 < zyp> and you got the newest?
2012-05-25T10:41:07 < zyp> check git log
2012-05-25T10:41:28 < R2COM> well i got it few months ago
2012-05-25T10:41:35 < R2COM> not sure how to check git log
2012-05-25T10:41:39 < Tectu> R2COM, please clone it again
2012-05-25T10:41:42 < zyp> you type «git log»
2012-05-25T10:41:50 < Tectu> inside the texane folder which got cloned
2012-05-25T10:41:59 < zyp> anyway, something recently changed, so those problems should be fixed now
2012-05-25T10:42:10 < Tectu> R2COM, can you please reinstall texane/stlink
2012-05-25T10:42:15 < Tectu> and tell us the speed again?
2012-05-25T10:42:20 < R2COM> hm
2012-05-25T10:42:21 < zyp> yes, please do that
2012-05-25T10:42:23 < R2COM> let me see
2012-05-25T10:42:37 < R2COM> can i just do it by running that command again?
2012-05-25T10:43:00 < Tectu> R2COM, go to the folder  stlink_texane which you cloned
2012-05-25T10:43:03 < Tectu> go INSIDE that folder
2012-05-25T10:43:04 < zyp> you can just enter the directory and run «git pull»
2012-05-25T10:43:07 < Tectu> and do git pull
2012-05-25T10:43:12 < Tectu> afk
2012-05-25T10:43:25 < R2COM> ok one second
2012-05-25T10:44:08 < R2COM> i did git pull
2012-05-25T10:44:11 < R2COM> it showed list of files
2012-05-25T10:44:18 < R2COM> create mode delete mode...etc....etc
2012-05-25T10:44:21 < R2COM> 17 files changed
2012-05-25T10:44:26 < R2COM> 604 insertions
2012-05-25T10:44:29 < R2COM> 107 deletions
2012-05-25T10:44:38 < R2COM> its updated i guess now i have to run "make"
2012-05-25T10:45:24 < R2COM> wait
2012-05-25T10:45:33 < R2COM> for some reason it says: make: *** No targets specified and no makefile found.  Stop.
2012-05-25T10:45:36 < R2COM> how come
2012-05-25T10:45:59 < zyp> I believe they converted to autotools, so you now have to run ./configure first
2012-05-25T10:46:07 < R2COM> 1sec
2012-05-25T10:46:28 < R2COM> bash: ./configure: No such file or directory
2012-05-25T10:46:54 < R2COM> but i see file there: autogen.sh
2012-05-25T10:46:59 < R2COM> maybe thats what i need to run now
2012-05-25T10:47:46 < Tectu> afaik you don't have to do anything
2012-05-25T10:47:59 < Tectu> just use the gdbserver/st-util
2012-05-25T10:48:04 < zyp> what
2012-05-25T10:48:09 < zyp> you surely have to compile it
2012-05-25T10:48:15 < Tectu> zyp, i don't
2012-05-25T10:48:23 < Tectu> and i never had
2012-05-25T10:48:43 < R2COM> uhhh
2012-05-25T10:48:45 < R2COM> damn
2012-05-25T10:48:54 < Tectu> ah right
2012-05-25T10:48:55 < R2COM> not even readme tells how to compile it
2012-05-25T10:48:56 < Tectu> zyp, you are right
2012-05-25T10:49:02 < R2COM> shit
2012-05-25T10:49:30 < R2COM> long time ago once i downloaded from git that texane_stlink i just runned make and thats it
2012-05-25T10:49:34 < R2COM> now im not sure
2012-05-25T10:49:36 < Tectu> r2 me too
2012-05-25T10:49:53 < zyp> R2COM, you probably have to run autogen.sh to make the configure script, then run configure to make the makefiles
2012-05-25T10:50:24 < R2COM> i did
2012-05-25T10:50:46 < R2COM> now runned ./configure
2012-05-25T10:50:54 < R2COM> now make or make install ?
2012-05-25T10:50:57 < zyp> make
2012-05-25T10:51:00 < Tectu> make should do the trick
2012-05-25T10:51:10 < R2COM> ok seems its done
2012-05-25T10:51:15 < R2COM> let me now connect and debug..
2012-05-25T10:51:21 < R2COM> no errors at least
2012-05-25T10:53:12 < R2COM> ok loading
2012-05-25T10:53:21 < R2COM> still waiting... i doubt that speed improved....
2012-05-25T10:53:35 < R2COM> Transfer rate: 233 bytes/sec, 2613 bytes/write.
2012-05-25T10:53:41 < R2COM> so...conclusion, update didnt help
2012-05-25T10:54:08 < R2COM> R2COM: Transfer rate: 232 bytes/sec, 2613 bytes/write.
2012-05-25T10:54:13 < R2COM> so... 1 byte faster
2012-05-25T10:55:14 < zyp> hmm
2012-05-25T10:55:35 < Tectu> zyp, how do I debug IMPRECISERR?
2012-05-25T10:55:40 < Tectu> it just says something bad happened
2012-05-25T10:55:58 < zyp> R2COM, I suspect you might still be running the old version
2012-05-25T10:56:20 < Tectu> R2COM, what says   'which st-util'   ?
2012-05-25T10:56:22 < zyp> R2COM, I suggest removing the entire directory and cloning from github again
2012-05-25T10:56:33 < R2COM> well..i navigated to that texane_stlink folder, did git-pull, configured, make, then start st-util again, reconnect... how come?
2012-05-25T10:56:43 < Tectu> ziph, wouldn't help if he copied st-util to /bin for example
2012-05-25T10:56:46 < Tectu> /usr/bin*
2012-05-25T10:56:55 < zyp> true
2012-05-25T10:57:03 < R2COM> no!
2012-05-25T10:57:05 < Tectu> R2COM, type   'which st-util'
2012-05-25T10:57:34 < zyp> doesn't sound like that should be a point
2012-05-25T10:58:12 < R2COM> it says no st-util in...and long list of all my shit
2012-05-25T10:58:16 < R2COM> so it cant find it
2012-05-25T10:58:36 < R2COM> and, the way how i start st-util is, i go manually to gdbserver folder within texane_stlink folder
2012-05-25T10:58:47 < Tectu> ah
2012-05-25T10:58:48 < R2COM> and start it from there with ./st-util
2012-05-25T10:58:51 < Tectu> okay
2012-05-25T10:59:01 < R2COM> so, im kind of sure that it *DID* update itself now
2012-05-25T10:59:05 < Tectu> so probably it is not speed improved
2012-05-25T10:59:13 < Tectu> or something else is wrong
2012-05-25T10:59:20 < R2COM> doesnt look like that
2012-05-25T10:59:28 < Tectu> when you have enought time remove the entire stlink_texane folder and clone it again
2012-05-25T10:59:37 < R2COM> it seemed they changed lots of stuff, right after i did git pull
2012-05-25T10:59:41 < R2COM> like...no more make...
2012-05-25T10:59:58 < R2COM> and i had to do: ./autogen.sh, then ./configure, and only then make
2012-05-25T11:00:05 < Tectu> yeah, would be just in case it coudln't overwrite the current st-util binary or something
2012-05-25T11:00:50 < zyp> I'm trying to build it here, to check
2012-05-25T11:01:03 < R2COM> you mean remove stlink_texane and do this again: git clone git://github.com/texane/stlink.git stlink_texane   ?
2012-05-25T11:01:09 < Tectu> R2COM, yes
2012-05-25T11:01:10 < R2COM> i can do it now
2012-05-25T11:01:13 < R2COM> 1 sec
2012-05-25T11:01:13 < Tectu> but i wait for zyp now
2012-05-25T11:01:17 < R2COM> oh ok
2012-05-25T11:01:33 < Tectu> nothing against you, seriously, but i just now that zyp will do it the right way :)
2012-05-25T11:01:41 < R2COM> its ok
2012-05-25T11:01:49 < zyp> ah, right
2012-05-25T11:01:51 < Tectu> zyp is just one of the awesomest guys i meat in IRC
2012-05-25T11:02:03 < Tectu> met*
2012-05-25T11:02:05 < Tectu> most awesome*
2012-05-25T11:02:57 < zyp> R2COM, are you running the st-util found in the gdbserver-directory?
2012-05-25T11:03:05 < R2COM> yes
2012-05-25T11:03:13 < zyp> yes, that's what I also used to do
2012-05-25T11:03:25 < zyp> but the new build stuff builds st-util in the top directory
2012-05-25T11:03:35 < Tectu> lol
2012-05-25T11:03:37 < zyp> so the one in the gdbserver-directory is still the old one
2012-05-25T11:03:48 < R2COM> oh shit
2012-05-25T11:04:33 < Tectu> wrong binary - i knew it
2012-05-25T11:04:49 < Tectu> WOAH!!!
2012-05-25T11:04:52 < Tectu> i get 110kb/s here!!!
2012-05-25T11:05:26 < Tectu> zyp, how about you? still 200B/s ?
2012-05-25T11:05:47 < zyp> no idea, I don't have any hardware available here :p
2012-05-25T11:06:09 < R2COM> Tectu: did you try it right now by running from the top directory of stlink_texane?
2012-05-25T11:06:15 < R2COM> and it made difference?
2012-05-25T11:06:24 < Tectu> R2COM, yes
2012-05-25T11:06:31 < R2COM> then how come i still get same shit
2012-05-25T11:06:35 < R2COM> 233bytes
2012-05-25T11:06:37 < Tectu> the new binary in toplevel gives me 110kB/s instead of the old 10kB/s
2012-05-25T11:06:52 < Tectu> R2COM, many people have much much much lower rates than me
2012-05-25T11:06:55 < Tectu> i don't know why
2012-05-25T11:07:00 < Tectu> just looks like i do my linux the right way :)
2012-05-25T11:07:11 < Tectu> (gdb) load
2012-05-25T11:07:11 < Tectu> Loading section startup, size 0x130 lma 0x8000000
2012-05-25T11:07:11 < Tectu> Loading section .text, size 0xd664 lma 0x8000130
2012-05-25T11:07:11 < Tectu> Loading section .data, size 0xfc lma 0x800d798
2012-05-25T11:07:12 < R2COM> no seriously how come i still be at 233bytes
2012-05-25T11:07:13 < Tectu> Start address 0x8000130, load size 55440
2012-05-25T11:07:15 < Tectu> Transfer rate: 121 KB/sec, 6160 bytes/write.
2012-05-25T11:07:37 < Tectu> zyp, how about you?
2012-05-25T11:07:42 < zyp> 10:05:47 < zyp> no idea, I don't have any hardware available here :p
2012-05-25T11:07:46 < R2COM> he doesnt have hardware
2012-05-25T11:08:10 < R2COM> Tectu: when did YOU install the latest version, or update?
2012-05-25T11:08:52 < Tectu> R2COM, right now
2012-05-25T11:08:54 < Tectu> together with you and zyp
2012-05-25T11:09:05 < Tectu> just got 130kB/s :)
2012-05-25T11:09:14 < R2COM> Tectu: did you do git pull, or deleted top folder and downloaded from scratch?
2012-05-25T11:09:40 < Tectu> R2COM, just do git pull,    ./autogen.sh   ./configure   ./make      $TOPLEVEL/st-util
2012-05-25T11:09:56 < R2COM> well...i did it
2012-05-25T11:10:56 < R2COM> Already up-to-date.
2012-05-25T11:11:00 < R2COM> so...im new now
2012-05-25T11:11:17 < R2COM> and make not ./make
2012-05-25T11:11:43 < Tectu> R2COM, well, since you had  230B/s before, and i did have  10kB/s before, there might be system depending issues (which is very clear, since all the people do get 300B OR 10kB)
2012-05-25T11:11:46 < Tectu> now i get 130
2012-05-25T11:11:57 < Tectu> i gess all the people who got 10 are now getting 130 :D
2012-05-25T11:13:37 < R2COM> maybe play with different USB ports...
2012-05-25T11:14:00 < R2COM> Loading section .isr_vector, size 0x188 lma 0x8000000
2012-05-25T11:14:00 < R2COM> Loading section .text, size 0x1cec lma 0x8000188
2012-05-25T11:14:00 < R2COM> Loading section .data, size 0x2c lma 0x8001e74
2012-05-25T11:14:00 < R2COM> Start address 0x8001e24, load size 7840
2012-05-25T11:14:00 < R2COM> Transfer rate: 233 bytes/sec, 2613 bytes/write.
2012-05-25T11:14:03 < R2COM> same shit
2012-05-25T11:19:56 < R2COM> zyp, so... you recommend buying that blackmagic probe thingy or..?
2012-05-25T11:20:21 < R2COM> ...New Zealand...
2012-05-25T11:20:27 < zyp> I like mine at least
2012-05-25T11:21:05 < R2COM> yes sure
2012-05-25T11:21:28 < zyp> dongs, F1 or what?
2012-05-25T11:21:37 < R2COM> by serious you mean J-LINK?
2012-05-25T11:22:33 < R2COM> or serious tools is Billy Gates software?
2012-05-25T11:22:35 < R2COM> lol
2012-05-25T11:22:43 < R2COM> i have windows by the way
2012-05-25T11:22:48 < R2COM> on dual boot
2012-05-25T11:22:59 < R2COM> but i just play games there
2012-05-25T11:23:10 < Tectu> R2COM, well, i am happy with my stlinkv2, but remember, i am very new to this and don't even know how to use all it's abilities
2012-05-25T11:23:39 < R2COM> i have ST-LINK v1, and the stm32f4discovery board
2012-05-25T11:23:59 < R2COM> stm32f4discovery board i guess has internal st-link v2
2012-05-25T11:24:04 < Tectu> f4 should have v2?
2012-05-25T11:24:10 < R2COM> i guess
2012-05-25T11:24:11 < Tectu> ah
2012-05-25T11:24:17 < Tectu> ah you have dedicated v1?
2012-05-25T11:24:23 < R2COM> yes
2012-05-25T11:24:30 < R2COM> right now not using it
2012-05-25T11:24:39 < R2COM> right now i tried it all with stm32f4discovery
2012-05-25T11:24:45 < zyp> dongs, ok, checked the docs, what is not working?
2012-05-25T11:25:30 < zyp> according to the docs you can use DMA2 stream 0 or 2 for SPI1_RX
2012-05-25T11:25:46 < zyp> like you said
2012-05-25T11:25:51 < zyp> so what is not working?
2012-05-25T11:26:27 < zyp> because you might want to use either stream 0 or stream 2 for something else
2012-05-25T11:27:04 < zyp> each stream can only be active on one channel at a time
2012-05-25T11:31:16 < R2COM> ok will take some sleep
2012-05-25T11:31:17 < zyp> just make sure you're not confusing streams and channels :p
2012-05-25T11:31:20 < R2COM> thanks everyone
2012-05-25T11:31:28 < R2COM> zyp & Tectu
2012-05-25T11:31:33 < zyp> no problems
2012-05-25T11:31:39 < R2COM> see you later
2012-05-25T11:32:16 < Tectu> no problem, R2COM, you're welcome
2012-05-25T11:32:43 < zyp> yep
2012-05-25T11:33:29 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.]
2012-05-25T11:57:12 < karlp> wow, busy morning
2012-05-25T12:01:39 < Tectu> i have a logic analyer related question: my LA (open bench logic sniffer) does have the option "sampling rate" and "recoding size" i understand the first one, but not sure what the second one does
2012-05-25T12:02:27 < karlp> gnif:you know your "nice framework" of vector tables that are weak and can be overridden in C? You could already do that in C, you didn't need to go and do it all in asm again for that. https://github.com/karlp/kkstm32_base/tree/master/startup
2012-05-25T12:03:13 < gnif> karlp, yes, I know, but I was using it as a way to keep it out of the c keeping the c project cleaner imo
2012-05-25T12:03:24 < zyp> or C++
2012-05-25T12:03:26 < zyp> http://cgit.jvnv.net/suzumebachi/tree/hal/interrupt.cpp
2012-05-25T12:03:29 < karlp> gnif: what you were calling CMSIS with loops for bits and things isn't CMSIS, it's ST's STD Periph Lib, which is based on CMSIS
2012-05-25T12:03:43 < gnif> yeah, i thought I was mixed up there :)
2012-05-25T12:03:59 < gnif> the st library is crap
2012-05-25T12:08:22 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 245 seconds]
2012-05-25T12:08:25 < gnif> this is libraray, not framework we are talking about here
2012-05-25T12:08:37 < gnif> RCC_GetFlagStatus is a perfect example if madness
2012-05-25T12:09:23 < gnif> just re-wrote it into macros in the form of: #define IS_RCC_FLAG_HSIRDY ((RCC->CR & 0x1) != 0)
2012-05-25T12:10:26 < Tectu> what's   Fpclk for a frequency?
2012-05-25T12:10:59 < Tectu> the core  frequency?
2012-05-25T12:20:29 < zyp> do you have it set up to send dma requests?
2012-05-25T12:26:06 < zyp> ah, that would be RXDMAEN in SPI1.CR2?
2012-05-25T12:27:36 < zyp> tried looking at the contents of SR?
2012-05-25T12:28:45 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-25T12:29:42 < Tectu> zyp, question: I want to print the content of SPI1_DR.     it says in the register map table that offset if  0x0C  that means i go to the first table in the ref manual, get the base adress from SPI1 and add 0x0C  ?
2012-05-25T12:29:57 < zyp> yes
2012-05-25T12:30:10 < zyp> or what dongs said
2012-05-25T12:30:19 < zyp> if available
2012-05-25T12:31:00 < Tectu> no, there's no such symbol
2012-05-25T12:37:49 < Tectu> how big is the change that elm chan's fatfs is buggy?
2012-05-25T12:39:42 < Tectu> zyp, from (gdb) help:    rc -- Continue program being debugged but run it in reverse     wtf???
2012-05-25T12:40:00 < Tectu> i mean, reverse?
2012-05-25T12:40:08 < Tectu> why should one do that
2012-05-25T12:43:01 < gsmcmullin> Tectu: You run your program, something goes wrong, you want to rewind to see what happened.
2012-05-25T12:43:23 < Tectu> hmm
2012-05-25T12:43:28 < Tectu> okay
2012-05-25T12:44:05 < gsmcmullin> If only the question was why but not how.
2012-05-25T12:45:31 < Tectu> what do you try to tell me?
2012-05-25T12:47:25 < gsmcmullin> Processors don't run in reverse.  What happened in the past is normally gone forever.
2012-05-25T12:49:20 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-25T12:50:07 < zyp> I'm always using flux capacitors for decoupling on my boards
2012-05-25T12:51:22 < Tectu> gsmcmullin, i konw, that's the next question. how the hell does that work?
2012-05-25T12:52:12 < zyp> you infer the state of the previous state by looking at the current state and the last instruction, and how the last instruction could result in the current state
2012-05-25T12:52:48 < Tectu> lol
2012-05-25T12:52:59 < Tectu> this is real badass reverse enigneering?
2012-05-25T12:53:51 < zyp> it's kind of obvious that when the instruction is «add register 5 to register 3», register 3 now contains 12 and register 5 contains 3, the previous state must be register 3 containing 9
2012-05-25T13:14:30 < jpa-> with something like ITM trace log it should be easier
2012-05-25T13:18:12 -!- feurig_ [~don@198.202.31.180] has quit [Ping timeout: 255 seconds]
2012-05-25T13:18:21 -!- feurig_ [~don@198.202.31.180] has joined ##stm32
2012-05-25T13:22:07 -!- lukky513_ is now known as lukky513
2012-05-25T13:38:58 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has joined ##stm32
2012-05-25T13:39:01 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-25T13:44:15 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-25T14:26:04 -!- cjbaird [~cjb@ppp121-44-104-119.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-25T14:39:25  * Laurenceb is lolling
2012-05-25T14:39:57 < Laurenceb> guy i know at work claims hes been chucked out of his rented house along with girlfriend with no notice
2012-05-25T14:40:18 < Laurenceb> and "laws in uk only protect landlord.. moan moan"
2012-05-25T14:40:27 < Laurenceb> no way thats what happened
2012-05-25T14:40:28 < zyp> cool
2012-05-25T14:40:39 < Laurenceb> more like he didnt way rent
2012-05-25T14:40:42 < Laurenceb> *pay
2012-05-25T14:40:51 < Laurenceb> and doesnt want his girlfriend to know
2012-05-25T14:41:10 < Laurenceb> shes now setting next to him and they are planning to sleep in my office
2012-05-25T14:41:51 < Laurenceb> wondering if i should tell his girlfriend hes lying
2012-05-25T14:42:05 < Laurenceb> and spent all the rent on nvidia graphics cards
2012-05-25T14:42:14 < Laurenceb> and weed
2012-05-25T14:42:22 < zyp> could have been worse
2012-05-25T14:42:27 < zyp> coold have been ati
2012-05-25T14:42:57 < cjbaird> "He Died with a Felafel in His Hand" by John Birmingham is the classic expose' on doudgy australian housemates..
2012-05-25T14:43:08 < cjbaird> (the book, not the shit movie)
2012-05-25T14:43:31 < Laurenceb> and his girlfriend is pregnant
2012-05-25T14:43:40 < Laurenceb> this just gets worse
2012-05-25T14:43:57 < Laurenceb> no
2012-05-25T14:44:00 < cjbaird> L: there's a story /just/ like that in the Felafel book...
2012-05-25T14:44:01 < Laurenceb> you are ok
2012-05-25T14:44:10 < Laurenceb> he didnt give you a bad image
2012-05-25T14:44:29 < Laurenceb> unlike killing people in the gaza strip
2012-05-25T14:44:31  * Laurenceb runs
2012-05-25T14:44:33 < cjbaird> All it needs is more gay guys with fluffy towel obsessions..
2012-05-25T14:49:02 < zyp> CPOL=1, CPHA=0
2012-05-25T14:49:15 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32
2012-05-25T14:49:47 < zyp> CPHA=0 means sampled at first edge (so bit transition happens at second edge)
2012-05-25T14:50:02 < zyp> and CPOL=1 means clock high when idle
2012-05-25T14:50:16 < Laurenceb> like my friend
2012-05-25T14:50:23 < Laurenceb> high and idle
2012-05-25T14:50:27 < zyp> :D
2012-05-25T14:59:53 < Laurenceb> <SpeedEvil> I have idly wondered about making a really larg freezer with a hay-container at one end, and walking one of the nearby cows into itl
2012-05-25T14:59:56 < Laurenceb> ^lmao
2012-05-25T15:05:00 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-25T15:05:03 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-25T15:12:02 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Ping timeout: 250 seconds]
2012-05-25T15:24:59 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32
2012-05-25T15:39:53 < Tectu> after run
2012-05-25T15:39:54 < Tectu> Starting program: /home/tectu/projects/vitfit/chibios/build/vitfit.elf
2012-05-25T15:39:54 < Tectu> warning: while parsing target memory map (at line 1): Can't convert length="0x8x" to an integer
2012-05-25T15:40:05 < Tectu> what the hell is that
2012-05-25T15:41:05 < zyp> sounds like a bug in texane-stuff
2012-05-25T15:41:20 < karlp> sounds like someone edited the source and didn't notice
2012-05-25T15:41:34 < karlp> but yeah, in the gdbserver.c file there's a set of xml blobs
2012-05-25T15:41:45 < Tectu> how to fix? program dosen't run properly anymore
2012-05-25T15:41:54 < karlp> git diff for starters :)
2012-05-25T15:42:30 <+Steffanx> Add some sauce and dongs will fix it
2012-05-25T15:42:52 < karlp> what target is it?
2012-05-25T15:42:58 < karlp> is this a target you weren't using before?
2012-05-25T15:43:07 < karlp> or are you using option bytes?
2012-05-25T15:43:18 < karlp> https://github.com/texane/stlink/blob/master/gdbserver/gdb-server.c#L231 looks wrong
2012-05-25T15:43:42 < Tectu> karlp, same hardware, same software
2012-05-25T15:43:50 < karlp> right, but a new elf,
2012-05-25T15:43:55 < Tectu> yes
2012-05-25T15:43:59 < karlp> like,one that might be trying to use the option bytes?
2012-05-25T15:44:10 < Tectu> and i don't take any options when using st-util
2012-05-25T15:44:17 < Tectu> i don't know
2012-05-25T15:44:20 < karlp> look up how long the option bytes are on your target, and fix that line in gdbseerver
2012-05-25T15:44:26 < Tectu> it seems like it dosen'thappen when not using hardware breakpoint
2012-05-25T15:45:10 < karlp> line 231 looks wrong, and matches your error message,
2012-05-25T15:45:24 < karlp> it's easily fixed by you, and tested by you :)
2012-05-25T15:45:31 < Tectu> yes, only dosen't work when setting breakpoint
2012-05-25T15:45:45 < Tectu> yeah, but should know what the hell option bytes are etc.
2012-05-25T15:45:50 < Tectu> i am a newbie, remember?
2012-05-25T15:46:00 < karlp> you only need to know how many bytes they are,
2012-05-25T15:46:03 < karlp> it's a typo,
2012-05-25T15:46:41 < Tectu> what bytes? sorry, but i don't know what do you mean
2012-05-25T15:46:45 < Tectu> you mean like bytes written?
2012-05-25T15:48:20 < karlp> the memory map says "length=0x8x"
2012-05-25T15:48:33 < karlp> in gdbserver/gdb-server.c, line 231
2012-05-25T15:48:42 < karlp> 0x8x is not an integer, just like the message says.
2012-05-25T15:49:07 < karlp> I'm hoping you can look up in your target (f1, f2, f4, l1) docs how many bytes that field _should_ be, and put the right number in,
2012-05-25T15:49:12 < karlp> then make, and try again
2012-05-25T15:49:45 < zyp> karlp, looks like it might be a % that's missing
2012-05-25T15:50:15 < karlp> zyp: yeah, but I don't rememebr seeing a patch adding option byte size decoding
2012-05-25T15:50:18 < karlp> and f4 just has 0x10,
2012-05-25T15:50:27 < karlp> so I think it's just an extra x.
2012-05-25T15:50:29 < Tectu> karlp, F103 ref says 16
2012-05-25T15:50:52 < Tectu> Flash module organization     Option Bytes 0x1FFF F800 - 0x1FFF F80F 16
2012-05-25T15:50:59 < Tectu> 16 is Size in bytes
2012-05-25T15:51:04 < zyp> hmm, right
2012-05-25T15:51:05 < karlp> ok, so put 16 instead of 0x8x
2012-05-25T15:51:13 < karlp> and see if that works.
2012-05-25T15:51:24 < karlp> does f103 really hve more option bytes than f100 or something?
2012-05-25T15:51:29 < karlp> 8 might have always been wrong.
2012-05-25T15:51:54 < zyp> https://github.com/texane/stlink/commit/7ed5be296326a770bb8c66eff7f549b8b35327e2 <- here is the culprit
2012-05-25T15:52:18 < karlp> merge of doom :|
2012-05-25T15:52:48 < Tectu> so it is 0x8
2012-05-25T15:52:52 < Tectu> instead of 0x8x
2012-05-25T15:52:56 < karlp> is 0x8 == 16?
2012-05-25T15:53:00 < Tectu> yes
2012-05-25T15:53:00 < karlp> like you found in the data sheet?
2012-05-25T15:53:02 < Tectu> no
2012-05-25T15:53:05 < Tectu> 0x10 is 16
2012-05-25T15:53:11 < zyp> he changed lots of stuff from 0x%x to 0x%zx, then 0x8 to 0x8x
2012-05-25T15:53:29 < karlp> I have some weird memory of trying to use %z for size_t myself earlier,
2012-05-25T15:53:31 < karlp> but had some problems,
2012-05-25T15:53:40 < karlp> I can't remember why it wasn't done earlier.
2012-05-25T15:54:16 < Tectu> karlp, well, Table 2 in stm32f101xx f102xx f103xx f105xx and f107xx, it says 16 option bytes
2012-05-25T15:54:58 < zyp> then it should say 0x10
2012-05-25T15:55:14 < karlp> I was hoping Tectu would get to that himself zyp :)
2012-05-25T15:55:24 < zyp> oh, sorry
2012-05-25T15:55:34 < Tectu> you want to hear the awesomeness?
2012-05-25T15:55:40 < Tectu> now i get again only 10kB/s than 130
2012-05-25T15:55:48 < karlp> zyp: no worries :) you're just being more helpful.
2012-05-25T15:55:52 < karlp> yeah, well 130 was probably wrong
2012-05-25T15:56:11 < karlp> teh wintermute merge didn't have any speed fixes in it.
2012-05-25T15:56:14 < Tectu> it felt like 130
2012-05-25T15:56:23 < Tectu> and it said 130
2012-05-25T15:56:24 < karlp> probably because it wasn't doing everything :)
2012-05-25T15:56:30 < Tectu> i see, yes
2012-05-25T15:56:34 < karlp> so it counted something as complete without having to actually do it.
2012-05-25T15:56:48 < Tectu> yeah, breakpoints didn't work
2012-05-25T15:56:50 < zyp> I don't trust speed measurements when flashing takes less then a second
2012-05-25T15:56:51 < Tectu> what are these option bytes
2012-05-25T15:57:27 < karlp> so, Tectu, if you're feeling _realllly_ keen, you can submit your fix as a pull request now :)
2012-05-25T15:57:35 < karlp> get yourself famous :)
2012-05-25T15:57:44 < Tectu> karlp, it is your fix, not mine :) I don't take others honor
2012-05-25T15:57:56 < karlp> no, you researched the datasheets
2012-05-25T15:58:00 < karlp> you checked the values
2012-05-25T15:58:02 < zyp> you discovered it, you implemented it
2012-05-25T15:58:06 < karlp> you made the change, found the problem
2012-05-25T15:58:08 < karlp> you tested it
2012-05-25T15:58:11 < Tectu> after you said what's wrong and what to do and also brought up the diff ;)
2012-05-25T15:58:38 < karlp> also, it wsa reported a day or two ago :) https://github.com/texane/stlink/issues/82
2012-05-25T15:58:42 < zyp> and forget about honor, just get the shit fixed and take it as an exercise in git usage :p
2012-05-25T15:59:17 < Laurenceb> niceee
2012-05-25T15:59:24 < Laurenceb> 32 mems sensors on 1 bus
2012-05-25T15:59:25 < Tectu> okay, let's find out how to make pull request
2012-05-25T15:59:31 < Laurenceb> and i have to write the code to drive it
2012-05-25T15:59:46 <+Steffanx> 32 Laurenceb ?!
2012-05-25T16:00:01 < Laurenceb> yes
2012-05-25T16:00:18 <+Steffanx> what kind  of sensors?
2012-05-25T16:00:20 < Laurenceb> several 9dof boards and some lsm330dlc boards
2012-05-25T16:00:26 < karlp> oh look, more people with autotools hell
2012-05-25T16:00:29 < Laurenceb> with hacked address pins
2012-05-25T16:00:42 < Tectu> why isn't there a pull request button o0
2012-05-25T16:00:59 < Laurenceb> cuz itd be abused by dentists
2012-05-25T16:01:23 < zyp> Laurenceb, does that actually work?
2012-05-25T16:01:40 < Laurenceb> i dont know yet
2012-05-25T16:01:45 < karlp> Tectu: you have to fork it on github first,
2012-05-25T16:01:46 < zyp> I would imagine that ad0 might only be sampled at startup and stored
2012-05-25T16:01:50 < karlp> then clone your own repository
2012-05-25T16:01:52 < Laurenceb> oh
2012-05-25T16:01:53 < karlp> make the fix locally,
2012-05-25T16:01:55 < Tectu> ah, that one
2012-05-25T16:01:59 < karlp> push your fix to your repo on github
2012-05-25T16:02:02 < Laurenceb> well ill find out soon enough
2012-05-25T16:02:07 < karlp> then on github you'll have the pull request button on your fork
2012-05-25T16:02:20 < zyp> Laurenceb, given your luck, it probably won't work :D
2012-05-25T16:02:22 < Laurenceb> this entire project is stupid
2012-05-25T16:02:29 < Laurenceb> i want it to fail
2012-05-25T16:02:36 < Tectu> thank's for the help, karlp and zyp
2012-05-25T16:02:42 < karlp> you're very welcome :)
2012-05-25T16:02:57 < Tectu> yay \o/  you to, whenever i can do something for you
2012-05-25T16:02:58 < Tectu> ;-)
2012-05-25T16:03:04 < Tectu> wait, that smiley makes it sounding strange...
2012-05-25T16:03:22 < Laurenceb> 			Add_To_Buffer(Flipedbytes(*(uint16_t*)(Rawdata[4+3*m][2*n+2])),	&(sfe_sensor_buffers[m].gyro[n]));
2012-05-25T16:03:25 < karlp> I want to know more details of the target chip and &stlink revision used wehn people are seeeing only 200bytes/sec
2012-05-25T16:03:33 < Laurenceb> ^ and thats why im getting utterly confused
2012-05-25T16:03:40 < karlp> I don't see it, and I suspect it's only old code, but it's hard to track :)
2012-05-25T16:04:18 < zyp> karlp, I visited a friend in january or february, he used a stm32f4discovery-board
2012-05-25T16:04:32 < zyp> we testet both newest revision at the time and a few older ones
2012-05-25T16:04:39 < Laurenceb> discovery board sounds like a sex eduction tool
2012-05-25T16:04:42 < zyp> and tested on several computers as well
2012-05-25T16:05:01 < karlp> is it only F4 users that are seeing the slow speeds?
2012-05-25T16:05:28 < zyp> he got in the range of 200 B/s on all his computers, I got 1-2 kB/s with the same board and same revisions
2012-05-25T16:05:45 < zyp> and same image to flash
2012-05-25T16:06:03 < karlp> hmm, early feb, uwe's patch had speed improvements for F100 and L1,
2012-05-25T16:06:31 < karlp> those were the last speed changes that I remember.
2012-05-25T16:07:32 < Laurenceb> i get between 6 and 8 K/s
2012-05-25T16:07:39 < Laurenceb> on f1
2012-05-25T16:08:11 < Tectu> i get 10kB/s
2012-05-25T16:08:16 < Tectu> over stlinkv2
2012-05-25T16:08:27 < Tectu> before fixing the issue 130kB/s xD
2012-05-25T16:08:51 < Tectu> karlp, but when he had  0x8 written before, wasn't that wrong too?
2012-05-25T16:09:09 < Tectu> in 0.0s, did you use the flux capacitor again, dongs ?
2012-05-25T16:09:14 < karlp> I believe that waas wrong too
2012-05-25T16:09:20 < karlp> but that entire line was added by wintermute
2012-05-25T16:09:34 < karlp> good for you dongs :) we know the jlink's faster :)
2012-05-25T16:10:06 < Tectu> karlp, did you hack some stuff on the texane/st-link too?
2012-05-25T16:11:18 < Tectu> karlp, you know something about this line in server windows?  ->         KARL - should read back as 0x03, not 60 02 00 00
2012-05-25T16:11:46 < karlp> yeah, that was me :)
2012-05-25T16:11:58 < Tectu> karlp, what the hell is that KARL line about?
2012-05-25T16:12:03 < karlp> when I work on stlink next I'll try and remove it :)
2012-05-25T16:12:06 < Tectu> and why do you add your name, when you don't want homor xD
2012-05-25T16:12:11 < zyp> KARL ADDED THIS LINE
2012-05-25T16:12:16 < karlp> I'm incredibly surprised it hasn't been removed by anyone else already
2012-05-25T16:12:22 < karlp> it wasn't even ever actually meant to be committed :)
2012-05-25T16:12:31 < karlp> it was when we were still working on stlink2 support,
2012-05-25T16:12:40 < Tectu> but what does the line say? i mean the thing behind the  KARL -
2012-05-25T16:12:47 < karlp> and I was trying to compare values that were coming back with what my (presumably wrong) intepretation of the datasheet
2012-05-25T16:13:03 < karlp> given that it works, even though the line says it returned teh "wrong" value :)
2012-05-25T16:13:05 < Tectu> so it's nosense?
2012-05-25T16:13:09 < Tectu> at least now
2012-05-25T16:13:15 < karlp> you should ignore the line :)
2012-05-25T16:13:22 < Tectu> how about removing it from output?
2012-05-25T16:13:29 < zyp> I always write some bullshit that nobody sane would write on temporary debug lines, so I can easily find them and remove them later
2012-05-25T16:13:41 < karlp> you can if you want, but submit it as a separate pull request :)
2012-05-25T16:13:46 < Tectu> zyp, for example?
2012-05-25T16:13:57 < karlp> I have some changes I'm working on for stlink though, so I'll also remove it myself sometime soon
2012-05-25T16:13:58 < zyp> «fisk» (fish)
2012-05-25T16:14:04 < Tectu> karlp, sure. But why don't you do it? I'd feel a little bit wrong/rude/offense to you then
2012-05-25T16:14:07 < Tectu> i mean it i your name
2012-05-25T16:14:10 < Tectu> zyp, lol
2012-05-25T16:14:29 < Tectu> karlp, then i let it there :)
2012-05-25T16:14:37 < karlp> tectu, if anything, it's embarassing that it's still there :)
2012-05-25T16:14:57 < Tectu> karlp, seems like not embarassing enought that you do remove it? should be a 2 minit job
2012-05-25T16:15:03 < Tectu> or not?
2012-05-25T16:15:28 < karlp> yeah, but I've been busy _using_ stlink for a change, instead of working it :)
2012-05-25T16:15:37 < karlp> I don't have enough time in the day as it is
2012-05-25T16:15:48 < karlp> also, it doesn't hurt.
2012-05-25T16:15:50 < Tectu> yeah, know what you mean
2012-05-25T16:15:53 < Tectu> sure it dosen't
2012-05-25T16:16:03 < karlp> and it doesn't bother me as much as the off by one counter in the flash pages written.
2012-05-25T16:16:08 < Tectu> thank you anways to make it happen that i can use stlink in linux, sir ;)
2012-05-25T16:16:09 < pelrun> woo got my toolchain working
2012-05-25T16:16:19 < Tectu> pelrun, congratz
2012-05-25T16:16:29 < karlp> pelrun: which one did you choose in the end?
2012-05-25T16:16:41 < zyp> dongs, got the GPIOs configured correctly?
2012-05-25T16:16:42 < Tectu> i have a GBD related question. when setting breakpoint such as   (gdb)  break main.c:42   do i have to   load   again or not?
2012-05-25T16:16:47 < pelrun> oh, I'm using codesourcery
2012-05-25T16:16:52 < Tectu> pelrun, aw
2012-05-25T16:16:56 < pelrun> and eclipse
2012-05-25T16:16:58 < zyp> Tectu, not
2012-05-25T16:17:05 < Tectu> zyp, so just do break, and then run?
2012-05-25T16:17:05 < pelrun> and texane/stlink
2012-05-25T16:17:09 < pelrun> on windows XD
2012-05-25T16:17:19 < Tectu> pelrun, texane/stlink just got fixed ;-)
2012-05-25T16:17:30 < pelrun> what bug?
2012-05-25T16:17:37 -!- cjbaird [~cjb@ppp121-44-104-119.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-25T16:17:42 < zyp> dongs, I just rechecked it, I can't see any gpio stuff
2012-05-25T16:17:42 < pelrun> I only cloned it a hour or two ago
2012-05-25T16:17:46 < Tectu> pelrun, didn't write all the neccessary stuff to the flash -> breakpoints didn't work
2012-05-25T16:17:52 < pelrun> ah
2012-05-25T16:17:58 < Tectu> pelrun, well, it's not in offfical repo yet, but i can give you the fixed one which works here
2012-05-25T16:18:04 -!- gnif [~gnif@xbmc/staff/gnif] has quit [Ping timeout: 245 seconds]
2012-05-25T16:18:09 < pelrun> hm
2012-05-25T16:18:16 < pelrun> okay
2012-05-25T16:18:30 < Tectu> pelrun, you can clone this one   https://github.com/Tectu/stlink
2012-05-25T16:18:38 < Tectu> it's the newest texane version with the fix just a few minutes ago
2012-05-25T16:18:42 < Tectu> and it works here
2012-05-25T16:18:45 < Tectu> correctly ;-)
2012-05-25T16:19:08 < pelrun> I'll just add it as another remote XD
2012-05-25T16:19:09 < pelrun> yay git
2012-05-25T16:19:18 < karlp> moah forks!
2012-05-25T16:19:22 < zyp> yay people that knows how to use git!
2012-05-25T16:19:55 < Tectu> well, since now i know why there are so many forks of each project
2012-05-25T16:20:03 < Tectu> didn't know you have to fork for pull request
2012-05-25T16:20:22 < karlp> well, in other git environments, you could get them to pull directly from your local copy
2012-05-25T16:20:29 < karlp> just that github ends up being yet another copy.
2012-05-25T16:20:29 < zyp> more like a set of personal branches
2012-05-25T16:20:30 < pelrun> yeah, otherwise there's no way to push your changes to github
2012-05-25T16:20:40 < Tectu> karlp, i know that from the linux kernel
2012-05-25T16:20:43 < pelrun> and yeah, git forks are very lightweight
2012-05-25T16:21:56 < karlp> texane normally merges in the early evening central europe time, should only be a few hours.
2012-05-25T16:22:13 < karlp> he tends to just slam stuff in, so it shouldn't take long
2012-05-25T16:22:14 < Tectu> okay
2012-05-25T16:22:20 < Tectu> texane is france, afaik
2012-05-25T16:22:28 < karlp> ya
2012-05-25T16:22:38 < Tectu> why is there xml in there?
2012-05-25T16:22:45 < karlp> because gdb wants it
2012-05-25T16:22:49 < pelrun> right, stlink fixed
2012-05-25T16:22:52 < pelrun> cheers tectu
2012-05-25T16:22:58 < karlp> it's how gdb knows where to load what bits of the elf
2012-05-25T16:23:05 < Tectu> aah
2012-05-25T16:23:13 < Tectu> but well, can you explain to me what the option bytes are now?
2012-05-25T16:23:23 < pelrun> I just wish stlink wouldn't exit when I disconnect gdb...
2012-05-25T16:23:31 < Tectu> pelrun, everyone does that
2012-05-25T16:23:39 < karlp> magic special storage for magic things
2012-05-25T16:23:42 < Tectu> pelrun, feel free to fix and pull request ;)
2012-05-25T16:23:43 < karlp> Tectu: it's in the reference manual
2012-05-25T16:23:51 < Tectu> karlp, then let me look again ;)
2012-05-25T16:24:01 < pelrun> I'd probably just make an infinite loop in bash XD
2012-05-25T16:24:03 < karlp> pelrun: stop disconnecting gdb :)
2012-05-25T16:24:09 < karlp> just call load again
2012-05-25T16:24:24 < pelrun> does load only work for ram, or will it flash?
2012-05-25T16:24:28 < karlp> I guess this is why it hasn't bothered me as much as it bothers anyone else
2012-05-25T16:24:33 < pelrun> I ask instead of just trying
2012-05-25T16:24:38 < karlp> it loads to whatever the elf says to do
2012-05-25T16:24:47 < karlp> so yeah, it reflashes for normal cases
2012-05-25T16:24:51 < pelrun> very nice
2012-05-25T16:25:00 < pelrun> now to get eclipse to actually do that
2012-05-25T16:25:10 < karlp> oh yeah, not sure about that part of it.
2012-05-25T16:25:27 < karlp> oh, I guess if you'ðre using it in eclipse/netbeans, the disconnect would be very annoying
2012-05-25T16:26:02 < Tectu> haha!
2012-05-25T16:26:10 < Tectu> yeah, use gdb in a different terminal
2012-05-25T16:26:26 < Tectu> dongs, which scope is that
2012-05-25T16:26:51  * pelrun doesn't even bother with the logic analyser on the tek scope he has access to
2012-05-25T16:27:13 < Tectu> karlp, wow, got merged :)
2012-05-25T16:27:15 < pelrun> my cheap logic sniffer does it so much better
2012-05-25T16:27:31 < Tectu> pelrun, orginal texane repo is ready again
2012-05-25T16:27:34 < pelrun> without having to pay $$$$ for each protocol XD
2012-05-25T16:27:43 < Tectu> which one do you have, pelrun ?
2012-05-25T16:27:51 < pelrun> openbench logic sniffer
2012-05-25T16:28:08 < Tectu> yeah, have that one too
2012-05-25T16:28:19 < Tectu> but it's not compareable to dong's thing
2012-05-25T16:28:25 < pelrun> dongs: WELL DONE
2012-05-25T16:28:48 < pelrun> any tips for doing it myself? (not that I really care :D )
2012-05-25T16:28:58 < Tectu> wtf?
2012-05-25T16:30:04 < pelrun> yeah, I doubt they bother really locking that down
2012-05-25T16:32:21 <+Steffanx> No thanks
2012-05-25T16:32:55 < Tectu> dongs, had that problem too...  sd card worked on SPI2, didn't on SPI1
2012-05-25T16:33:10 < pelrun> turned all the clocks on? XD
2012-05-25T16:37:42 < zyp> not on F4 I believe
2012-05-25T16:37:58 <+Steffanx> Oops
2012-05-25T16:38:16 < Laurenceb> JEDI
2012-05-25T16:41:31 < karlp> Tectu: merged already? I don't see that on github?
2012-05-25T16:41:45 < Tectu> karlp, yeah, that was my bad, sorry. i was in tectu/st-link  ;)
2012-05-25T16:43:20 < Tectu>     at /home/tectu/projects/resources/chibios/os/ports/GCC/ARMCMx/STM32F1xx/vectors.c:207
2012-05-25T16:43:20 < Tectu> #1  0xfffffffc in ?? ()
2012-05-25T16:43:20 < Tectu> #2  0xfffffffc in ?? ()
2012-05-25T16:43:28 < Tectu> Backtrace stopped: previous frame identical to this frame (corrupt stack?)
2012-05-25T16:43:41 < Tectu> how do i procced?
2012-05-25T16:45:53 < pelrun> 250 bytes/sec, blargharghargh
2012-05-25T16:46:45 < Tectu> lol :D
2012-05-25T16:46:53 < Tectu> i am soooo happy with my 10kB/s
2012-05-25T16:47:29 < pelrun> :P
2012-05-25T16:47:46 < karlp> pelrun: ok, so what target?
2012-05-25T16:47:51 < karlp> f4 discovery? was that right?
2012-05-25T16:47:54 < pelrun> yup
2012-05-25T16:48:16 < pelrun> I'm running on windows though, so that might be getting in the way...
2012-05-25T16:48:21 < Tectu> no, it's not
2012-05-25T16:48:28 < Tectu> karlp, all f4 guys do get 300B/
2012-05-25T16:48:28 < Tectu> s
2012-05-25T16:48:34 < Tectu> i'm wondering if i'd get the same
2012-05-25T16:50:31 < karlp> can you put your code anywhere pelrun?
2012-05-25T16:50:40 < karlp> I don't normally use the f4, but I have one here I can try it with
2012-05-25T16:51:10 < pelrun> I'm only running st example code
2012-05-25T16:51:16 < pelrun> just a sec
2012-05-25T16:51:33 < Tectu> just give the elf
2012-05-25T16:51:38 < Tectu> for first try
2012-05-25T16:52:23 < pelrun> http://dl.dropbox.com/u/23940316/stm32f4test.zip
2012-05-25T16:52:42 < pelrun> it's a rev Z f4
2012-05-25T16:52:57 < pelrun> apparently stuff changed that broke the official st upload app
2012-05-25T16:53:05 < pelrun> good job st
2012-05-25T16:53:25 < Tectu> karlp, i found an issue
2012-05-25T16:53:40 < Tectu> karlp, well, not a new one
2012-05-25T16:53:45 < Flea86>  > "it's a rev Z" cuttin' it fine aye ST? :P
2012-05-25T16:53:56 < pelrun> the previous one was rev A
2012-05-25T16:53:59 < Tectu> but F4 ref manual does say also 16 (0x10) option bytes
2012-05-25T16:54:03 < pelrun> dunno what they're thinking
2012-05-25T16:54:08 < Tectu> pelrun, are you tring my stlink repo?
2012-05-25T16:54:19 < pelrun> I pulled your update, yes
2012-05-25T16:54:22 < Tectu> so next one we be revision B
2012-05-25T16:54:26 < Tectu> and over next one Y
2012-05-25T16:54:30 < Tectu> don't you see the matrix, guys?
2012-05-25T16:54:30 < pelrun> aaaugh
2012-05-25T16:54:34 < Tectu> pelrun, ah, never mind then
2012-05-25T16:54:43 < pelrun> breakpoints do work
2012-05-25T16:55:03 < Tectu> good for you ;)
2012-05-25T16:55:29 -!- Flea86 [~Flea86@c114-76-82-206.thoms3.vic.optusnet.com.au] has quit [Quit: Station breakdown]
2012-05-25T16:56:29 < karlp> Tectu: f4 memory map is a few liines up, it has the correct option byte size right?
2012-05-25T16:56:38 < Tectu> karlp, yes
2012-05-25T16:56:42 < Tectu> there is 0x10
2012-05-25T16:56:46 < Tectu> sorry, that was my bad
2012-05-25T16:56:49 < karlp> ok :)
2012-05-25T16:56:59 < Tectu> i took a look to the f4 ref manual, they do have 16 bytes
2012-05-25T16:58:59 < Tectu> anyways, i am off now
2012-05-25T16:59:03 < Tectu> good luck at fixing
2012-05-25T17:05:05 <+Steffanx> No thanks
2012-05-25T17:06:34 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: .]
2012-05-25T17:09:15 < Laurenceb> dongs:  http://olimex.wordpress.com/tag/stm32f407-arduino-maple/
2012-05-25T17:09:19 < Laurenceb> trollololol
2012-05-25T17:22:21 < pelrun> take that arduino!
2012-05-25T17:42:05 -!- L00NG [~longxk@123.84.245.70] has quit [Quit: 离开]
2012-05-25T17:45:55 < Laurenceb> zyp: kalman working?
2012-05-25T17:46:28 <+Steffanx> In heaven maybe Laurenceb
2012-05-25T17:52:03 < Laurenceb> lol
2012-05-25T17:53:39 < zyp> pft :p
2012-05-25T17:53:40 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-25T17:53:43 < zyp> well, no
2012-05-25T17:53:48 < Laurenceb> http://www.google.com/search?client=ubuntu&channel=fs&q=hypeberry+pi&ie=utf-8&oe=utf-8&gl=uk
2012-05-25T17:54:02 < zyp> and now I'm going to visit some friends for the weekend, so I probably won't get anything done either
2012-05-25T17:54:10 < Laurenceb> see im number 1 in kalman and trolling still
2012-05-25T17:54:19 < zyp> ya, ur pro
2012-05-25T17:54:52 < Laurenceb> i suspect something silly
2012-05-25T17:54:56 < Laurenceb> pastebin code?
2012-05-25T17:55:03 <+Steffanx> You ordered a rpi yet Laurenceb ?
2012-05-25T17:55:07 < zyp> mine? did that yesterday
2012-05-25T17:55:08 < Laurenceb> yes
2012-05-25T17:55:12 <+Steffanx> Good boy
2012-05-25T17:55:17 < Laurenceb> lol
2012-05-25T17:55:35 < zyp> http://paste.jvnv.net/view/Wk52T <- this is my code
2012-05-25T17:55:46 <+Steffanx> deja vu
2012-05-25T17:56:25 < Laurenceb> GpsMagCorrection
2012-05-25T17:56:26 < zyp> http://git.openpilot.org/browse/~br=master/OpenPilot/flight/AHRS/insgps13state.c?hb=true <- and it's linked with this
2012-05-25T17:56:40 < Laurenceb> hmm i think i did something different
2012-05-25T17:56:57 < Laurenceb> but probably only as i used baro
2012-05-25T17:57:02 < zyp> anyway, let's talk about this later, I'm out for some hours of driving
2012-05-25T17:57:10 <+Steffanx> have fun
2012-05-25T17:57:17 < zyp> will try
2012-05-25T17:57:19 < Laurenceb> cya
2012-05-25T17:57:24 <+Steffanx> try ..
2012-05-25T17:57:35 < Laurenceb> i cant see anything obviously wrong
2012-05-25T18:07:48 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-25T18:09:51 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-25T18:18:15 <+dekar> is rip shipping again?
2012-05-25T18:18:32 <+dekar> auto correction ftl
2012-05-25T18:18:38 <+dekar> *rpi
2012-05-25T18:20:20  * Laurenceb drops http://www.dpie.com/miniboards/kontron_ktt20-pitx-arm-nvidia-tegra-2-miniboard.html
2012-05-25T18:20:23 < Laurenceb> on rpi
2012-05-25T18:21:54 <+dekar> *cough* tegra? seriously? not buying that crap :P
2012-05-25T18:23:12 <+dekar> http://blog.the-leviathan.ch/?p=402
2012-05-25T18:25:21 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-25T18:31:17 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 245 seconds]
2012-05-25T18:35:12  * Laurenceb fails at c
2012-05-25T18:35:20 < Laurenceb> i have a variable in a filter
2012-05-25T18:35:23 < Laurenceb> *file
2012-05-25T18:35:26 < Laurenceb> foo.c
2012-05-25T18:35:37 < Laurenceb> in foo.h i have the same variable as extern
2012-05-25T18:35:46 < Laurenceb> is this even possible?
2012-05-25T18:37:14 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-25T18:39:01 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 248 seconds]
2012-05-25T18:39:41 < jpa-> Laurenceb: of course?
2012-05-25T18:39:49 < Laurenceb> hmm
2012-05-25T18:39:50 < jpa-> isn't that just the normal way
2012-05-25T18:39:59 < Laurenceb> foo.h is included in foo.c
2012-05-25T18:40:05 < jpa-> yes, that's fine
2012-05-25T18:40:08 < Laurenceb> it says variable is redifined
2012-05-25T18:40:13 < Laurenceb> *defined
2012-05-25T18:40:25 < jpa-> .h has extern and .c does not have extern, right?
2012-05-25T18:40:31 < Laurenceb> i initialise the variable
2012-05-25T18:40:32 < Laurenceb> yes
2012-05-25T18:40:37 < jpa-> don't initialize in header file
2012-05-25T18:40:39 < jpa-> just in .c
2012-05-25T18:40:40 < Laurenceb> that seems to be waht it doesnt like
2012-05-25T18:40:42 < Laurenceb> i know
2012-05-25T18:40:47 < Laurenceb> still wont compile
2012-05-25T18:40:54 < jpa-> where's the code?
2012-05-25T18:41:04 < Laurenceb> uint8_t a=5;
2012-05-25T18:41:08 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-25T18:41:09 < Laurenceb> in foo.c
2012-05-25T18:41:16 < Laurenceb> extern uint8_t a;
2012-05-25T18:41:19 < Laurenceb> in foo.h
2012-05-25T18:41:28 < Laurenceb> wont compile for me
2012-05-25T18:43:31 < jpa-> you include foo.h before  uint8_t a=5;   right?
2012-05-25T18:43:38 < Laurenceb> yes
2012-05-25T18:43:44 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Ping timeout: 252 seconds]
2012-05-25T18:44:28 < jpa-> works for me  http://paste.dy.fi/Nha/plain
2012-05-25T18:44:56 < Laurenceb> hmm
2012-05-25T18:44:57 < jpa-> (is it a linker error or compiler error btw?)
2012-05-25T18:44:58 < Laurenceb> odd
2012-05-25T18:45:05 < Laurenceb> i must have screwed somethign else up
2012-05-25T18:45:15 < Laurenceb> ill make clean
2012-05-25T18:46:01 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32
2012-05-25T18:46:29 < Laurenceb> argggg
2012-05-25T18:46:33 < blkcat> hey guys.
2012-05-25T18:46:36 < Laurenceb> circular include loop
2012-05-25T18:47:02 < jpa-> hello blockcat
2012-05-25T18:50:44 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has joined ##stm32
2012-05-25T18:50:44 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has quit [Changing host]
2012-05-25T18:50:44 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32
2012-05-25T18:51:50 < Laurenceb> i seem to have issues with spaghetti includes
2012-05-25T18:52:56 < jpa-> #include <meatballs> with that
2012-05-25T18:54:39 < blkcat> damn, now i'm hungry.
2012-05-25T18:57:09 < Laurenceb> eat some pussy?
2012-05-25T18:57:51 < jpa-> ou yeah, Laurenceb talking dirty
2012-05-25T19:01:11 < Laurenceb> ok, my issue is i have arrays
2012-05-25T19:01:25 < Laurenceb> uint8_t a[]={1,2,3};
2012-05-25T19:01:34 < Laurenceb> extern uint8_t* a;
2012-05-25T19:01:42 < Laurenceb> doesnt work, thats what wrong
2012-05-25T19:03:32 < jpa-> extern uint8_t a[];   does
2012-05-25T19:03:57 < jpa-> the difference is that a[] is basically a const pointer known at compile time
2012-05-25T19:04:09 < jpa-> whereas uint8_t* a can change in runtime
2012-05-25T19:07:01 < Laurenceb> oh i see
2012-05-25T19:07:03 < Laurenceb> thanx
2012-05-25T19:21:08 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-25T19:30:17 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-25T19:48:25 -!- neuro-sys [~neuro@88.241.37.225] has joined ##stm32
2012-05-25T19:48:29 -!- neuro-sys [~neuro@88.241.37.225] has quit [Changing host]
2012-05-25T19:48:29 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-25T19:54:35 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-25T20:04:33 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-25T20:04:35 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-25T20:10:39 -!- ntfreak_ is now known as ntfreak
2012-05-25T20:14:59 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has left ##stm32 []
2012-05-25T20:17:00 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-25T20:29:22 -!- metaxa_ [metaxa@members.bombshellz.net] has joined ##stm32
2012-05-25T20:30:38 -!- metaxa [metaxa@members.bombshellz.net] has quit [Ping timeout: 240 seconds]
2012-05-25T20:38:04 -!- metaxa_ [metaxa@members.bombshellz.net] has quit [Ping timeout: 245 seconds]
2012-05-25T20:46:01 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Quit: Quitte]
2012-05-25T20:55:22 -!- metaxa [metaxa@members.bombshellz.net] has joined ##stm32
2012-05-25T20:55:29 < jpa-> http://kapsi.fi/~jpa/stuff/other/kalman_model.h  beautiful, right?
2012-05-25T20:56:39 <+Steffanx> help
2012-05-25T20:57:04 <+Steffanx> Generated code :)
2012-05-25T20:58:04 <+Steffanx> So, beautiful jpa-
2012-05-25T21:07:11 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer]
2012-05-25T21:07:30 -!- izua [~izua@188.26.92.246] has joined ##stm32
2012-05-25T21:07:31 -!- izua [~izua@188.26.92.246] has quit [Changing host]
2012-05-25T21:07:31 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-25T21:07:31 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-25T21:19:58 -!- peabody124 [~peabody12@128.249.96.21] has quit [Read error: Connection reset by peer]
2012-05-25T21:21:26 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-25T21:25:43 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 265 seconds]
2012-05-25T21:45:53 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: .]
2012-05-25T21:50:16 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-25T22:06:03 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |]
2012-05-25T22:28:47 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Ping timeout: 245 seconds]
2012-05-25T22:30:41 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32
2012-05-25T22:32:34 -!- LawrenceSeattle [~lawrence@66.192.187.106] has joined ##stm32
2012-05-25T22:39:20 < Tectu> morning
2012-05-25T22:46:26 <+Steffanx> Hmm, it still wonder what the best way is to find out if your clock settings are right.. right as in what you meant them to be
2012-05-25T22:47:34 <+Steffanx> Toggling a led has some… limitations
2012-05-25T22:48:22 < Tectu> Steffanx, led debugging FTW
2012-05-25T22:51:14 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-25T22:51:50 < jpa-> hmm.. harddrive magnets can disturb compasses
2012-05-25T22:55:41 <+Steffanx> Oh, are you sure jpa- ?
2012-05-25T22:56:00 < jpa-> not yet
2012-05-25T22:56:04 <+Steffanx> ok ok
2012-05-25T22:56:21 < jpa-> wondered why i was getting strange results with the device next to my laptop :)
2012-05-25T23:09:31 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |]
2012-05-25T23:11:09 -!- gsmcmull1n [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32
2012-05-25T23:14:28 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Ping timeout: 260 seconds]
2012-05-25T23:14:43 < Tectu> okay chibios knowers: why aren't there handled vectors? every vector ends up in _undhandled
2012-05-25T23:14:58 < Tectu> why not doing it at least useful for debugging?
2012-05-25T23:32:15 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-25T23:33:05 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Client Quit]
2012-05-25T23:34:39 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-25T23:34:44 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Client Quit]
2012-05-25T23:35:47 < jpa-> Tectu: what would such a default handler do?
2012-05-25T23:36:13 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-25T23:36:13 < Tectu> well, just gives some information somehow that it IS inside handler x ?
2012-05-25T23:36:20 < jpa-> chibios does not know if you are using USART, or USB, or log file, or nothing.. how would it tell you?
2012-05-25T23:37:23 < Tectu> hmm
2012-05-25T23:37:47 < Tectu> well just knowing that it is in  _hardfault   or  _NMIfault   or   _BusFault   would be enought
2012-05-25T23:38:03 < jpa-> well how would it tell you that?
2012-05-25T23:38:30 < jpa-> just write your own function and be done with it
2012-05-25T23:38:40 < Tectu> when you ctrl+c after crash, you see   _busfault  instead of  _unhandled_exception
2012-05-25T23:38:54 < Tectu> ah, i see
2012-05-25T23:38:58 < jpa-> yeah, could have that, doesn't.
2012-05-25T23:39:10 < jpa-> i guess they were too bored to copy-paste the same code 100x times :P
2012-05-25T23:39:19 < jpa-> (same code = empty function)
2012-05-25T23:39:48 < jpa-> (and you can already see all the fault types in SCB->CFSR)
2012-05-25T23:41:08 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 240 seconds]
2012-05-25T23:41:52 < Tectu> that's right
2012-05-25T23:43:41 < Tectu> i currently try to find out why they use  __attribute__((weak)) for all these handlers
2012-05-25T23:43:46 < Tectu> from gcc doc:  "weak
2012-05-25T23:43:46 < Tectu>     The weak attribute causes the declaration to be emitted as a weak symbol rather than a global. This is primarily useful in defining library functions which can be overridden in user code, though it can also be used with non-function declarations. Weak symbols are supported for ELF targets, and also for a.out targets when using the GNU assembler and linker. "
2012-05-25T23:44:23 < Tectu> so i can do like     void BusFaultHandler(void) { }  in my main.c without changing something inside the vectors.c?
--- Day changed Sat May 26 2012
2012-05-26T00:09:00 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-26T00:09:37 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Client Quit]
2012-05-26T00:29:55 < zyp> if that's the right name
2012-05-26T00:30:15 < zyp> and you still have to do some RCC magic to enable the BusFault interrupt
2012-05-26T00:30:24 < zyp> otherwise it will just be escalated to HardFault
2012-05-26T00:32:30 < Tectu> so it can just gets overwritten, but when, then completly?
2012-05-26T00:34:28 < zyp> it's defined as a weak symbol somewhere, and then you redefine the symbol
2012-05-26T00:34:44 < zyp> and instead of creating a conflict, the new symbol will replace the weak one
2012-05-26T00:35:10 < Tectu> i see
2012-05-26T00:47:26 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds]
2012-05-26T01:10:00 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-26T01:11:07 < blkcat> got my j-link, fuck yeah
2012-05-26T01:20:25 < Tectu> nice blkcat  :)
2012-05-26T01:34:24 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Read error: Connection reset by peer]
2012-05-26T01:51:52 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925075879.dsl.bell.ca] has joined ##stm32
2012-05-26T01:51:52 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925075879.dsl.bell.ca] has quit [Changing host]
2012-05-26T01:51:52 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-26T02:34:19 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-26T02:36:44 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 246 seconds]
2012-05-26T02:47:56 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-26T02:48:19 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Quit: Rebooting...]
2012-05-26T03:50:49 < karlp> yay! it's alive!
2012-05-26T03:51:07 < karlp> turned out I'd fried the power supply, and my 0.5mm soldering was ok after all
2012-05-26T03:51:16 < karlp> I have a blinking led on my very first stm32 board.
2012-05-26T03:51:21 < karlp> I feel so proud of so little.
2012-05-26T04:08:18  * karlp laughs
2012-05-26T04:09:08 < karlp> man, I love the mill at work, but non-plated holes are a pain in the arse.
2012-05-26T04:09:38 < karlp> lack of solder mask makes bridges in unexpected places a bit of a pain sometimes too.
2012-05-26T04:16:51 < karlp> well, it's work time, not my time...
2012-05-26T04:17:00 < karlp> I just start it and walk away
2012-05-26T04:17:21 < karlp> I'll probably fix up the things I've already realised I should have done differently and get a couple made,
2012-05-26T04:17:30 < karlp> but if you only ever want one or two, the mills ok.
2012-05-26T04:17:56 < karlp> you start to learn to do things differently if it's going to be milled rather than professionally made though
2012-05-26T04:18:50 -!- LawrenceSeattle [~lawrence@66.192.187.106] has quit [Quit: LawrenceSeattle]
2012-05-26T04:24:54 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has left ##stm32 []
2012-05-26T04:26:44 < blkcat> hm, having some issues with my jlink.
2012-05-26T04:27:00 < blkcat> running the segger gdb server and trying to connect from gdb i get a 'connection reset by peer' error.
2012-05-26T04:31:24 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 245 seconds]
2012-05-26T04:37:26 < karlp> yeah.
2012-05-26T04:37:30 < karlp> you're master right?
2012-05-26T04:37:43 < karlp> is that.... your final answer?
2012-05-26T04:41:01 < karlp> becoz dongs?
2012-05-26T04:41:11 < karlp> it wouldn't be the first wrong datasheet in the world
2012-05-26T04:41:13  * karlp shrugs
2012-05-26T04:51:37 < blkcat> ah, got it.
2012-05-26T04:55:26 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32
2012-05-26T04:56:20 < karlp> dongs: no, I'm with you, I don't get it either.
2012-05-26T04:56:26 < upgrdman> anyone know of some good videos that teach the basics of programming an ARM Cortex M4? (STM32F4)
2012-05-26T04:57:41 < upgrdman> well i know the arduino but i've never does stuff in assembly and i dont know the ST libs
2012-05-26T04:57:46 < karlp> no clue man, I'm with you, miso should not have the data coming in if you're really the slave
2012-05-26T04:58:13 < karlp> I've only used spi in master mode
2012-05-26T04:58:29 < karlp> and my miso pin really is the master input.
2012-05-26T04:58:37 < karlp> and _I_ am the MASTER!
2012-05-26T04:59:39 < upgrdman> dongs, that's the problem. i don't know where to start. i'
2012-05-26T04:59:46 < upgrdman> i've tried reading the example code
2012-05-26T04:59:54 < upgrdman> and its not always clear to me
2012-05-26T05:00:36 < upgrdman> well at the moment something simple like multiplex eight PPM inputs into one ppm stream output
2012-05-26T05:01:21 < upgrdman> where
2012-05-26T05:04:12 < upgrdman> thanks. i didnt see rm0090 on the stm32f4discovery page
2012-05-26T05:09:10 < blkcat> and now gdb issues. >:(
2012-05-26T05:14:02 < upgrdman> i see
2012-05-26T05:29:10 -!- LawrenceSeattle [~lawrence@216.243.49.130] has joined ##stm32
2012-05-26T05:29:39 < karlp> so, I have systick at 1ms, are there any sensible tricks for doing usec resolution?
2012-05-26T05:29:53 < karlp> I guess just set a timer for the right rate and watch it busy?
2012-05-26T05:30:04 < karlp> hmm, yeah, cortex has a cycle counter too.
2012-05-26T05:30:12 < karlp> glad I asked.
2012-05-26T05:31:18 < karlp> in this case I'll be busy waiting, but I presume that only counts if you're actually executing something.
2012-05-26T05:59:59 < upgrdman> dongs, yes. it is for "rc shit"
2012-05-26T06:01:17 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-26T06:01:20 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-26T06:04:09 < upgrdman> thanks
2012-05-26T06:04:43 < upgrdman> that reference manual cleared a lot of things up. i wonder why STM does not link to STM32F4 docs from their STM32F4DISCOVERY docs page.
2012-05-26T06:05:10 < upgrdman> ya
2012-05-26T06:05:42 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 244 seconds]
2012-05-26T06:05:53 < upgrdman> well my only other experience with MCUs is with toy-level stuff like the arduinos and BS2... so this is sort of a trial-by-fire for me. lots to learn before i can do much of anything useful
2012-05-26T06:12:59 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-26T07:10:28 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer]
2012-05-26T07:17:41 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-26T07:18:00 -!- Tekno [~TeknoJuce@bas1-london15-2925075879.dsl.bell.ca] has joined ##stm32
2012-05-26T07:18:01 -!- Tekno [~TeknoJuce@bas1-london15-2925075879.dsl.bell.ca] has quit [Changing host]
2012-05-26T07:18:01 -!- Tekno [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-26T07:29:07 -!- cjbaird [~cjb@ppp121-44-104-119.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-26T07:33:36 -!- Tekno [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Quit: Rebooting...]
2012-05-26T07:40:22 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Quit: Rebooting...]
2012-05-26T07:40:27 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-26T07:40:30 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-26T07:44:25 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-26T08:29:02 < blkcat> http://pastebin.com/c5ridSyu
2012-05-26T08:29:06 < blkcat> dongs: don't suppose you've run into this?
2012-05-26T08:33:02 < blkcat> what the heck, i'm not seeing armv7m in set architecture
2012-05-26T08:37:49 < blkcat> sigh
2012-05-26T08:47:09 < blkcat> christ this is annoying.
2012-05-26T09:31:17 < gsmcmull1n> blkcat: Ask for your money back.
2012-05-26T09:31:31 < blkcat> gsmcmull1n: brilliant!
2012-05-26T09:43:24 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-26T09:52:45 < jpa-> blkcat: your pastebin link is not working for me
2012-05-26T09:56:18 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-26T11:14:31 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
2012-05-26T11:21:15 < ratatata> nu
2012-05-26T11:24:00 < upgrdman> stm32f4 reference manual says a gpio pin can be "Output push-pull with pull-up or pull-down capability" but if a pin is an output, why would it need or benefit from a pull-up or pull-down? you set it high or low... i don't get it.
2012-05-26T12:00:51 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32
2012-05-26T12:00:53 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-26T12:00:56 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-26T12:39:00 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 244 seconds]
2012-05-26T12:44:08 -!- izua [~izua@188.26.92.246] has joined ##stm32
2012-05-26T12:44:09 -!- izua [~izua@188.26.92.246] has quit [Changing host]
2012-05-26T12:44:09 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-26T12:44:10 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-26T12:49:44 <+Steffanx> Great,  gsmcmull1n .. your programmer/debugger works like a charm. Thanks! :)
2012-05-26T12:52:08 <+Steffanx> No more messing around with texane stlink stuff, but just something that works out of the box :)
2012-05-26T13:01:57 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 248 seconds]
2012-05-26T13:12:26 < zyp> dongs, I've only messed with disabling ULPI
2012-05-26T13:32:05 -!- L00NG [~longxk@123.84.250.88] has joined ##stm32
2012-05-26T13:33:19 < L00NG> tried to build libopencm3, but it says ld can't find -lnosys, how to deal with it?
2012-05-26T13:34:29 <+dekar> L00NG, you might wanna check their channel
2012-05-26T13:36:21 < L00NG> is the examples in libopencm3 a good start point to learn stm32 development ?
2012-05-26T13:36:57 < cjbaird> That Feel when all available PSRAM devices are BGA-style chips. :/
2012-05-26T13:37:33 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.]
2012-05-26T13:39:35 < zyp> dram that pretends to be sram
2012-05-26T13:41:15 < cjbaird> self-refreshing DRAMs, to use the old language.
2012-05-26T13:42:15 < cjbaird> The trademark is 'Celluar RAM', which was a total wtf, and made me skip that part in the docs initially..
2012-05-26T13:43:01 < cjbaird> But they're really used PlainOld Address+Data+CE rams, except now up to 128Mb
2012-05-26T13:43:21 < cjbaird> DRAM-level densities
2012-05-26T13:44:15 < cjbaird> Also in the Old Language, psram costs >>>>>>>>>> sram costs, for the same amount of memory..
2012-05-26T13:45:46 < cjbaird> Also, no real need for the usual memory controller stuff that you needed to do the DRAM refresh & etc.
2012-05-26T13:47:09 < cjbaird> But Can A Mere Mortal Lazy Hobbyist use them? No.. Fuuuuuuuuck you, BGA.
2012-05-26T13:48:01 < cjbaird> d: that too.
2012-05-26T13:50:19 < cjbaird> Found some on Mouser after I wrote the above, too. A /biiit/ better.
2012-05-26T14:04:29 <+Steffanx> Those tssop packages only come in a few mbyte, isn't it?
2012-05-26T14:07:09 < cjbaird> The googles mentioned being used in tech like the Wii, so I expect TSSOP was the fashion for when that was around. Micron's site lists only VFBGA in production now.
2012-05-26T14:09:40 < cjbaird> http://media.digikey.com/photos/Micron%20Photos/mfg557-90-VFBGA.jpg "Balls are touching."
2012-05-26T14:14:16 < jpa-> but they are both female so it's ok
2012-05-26T14:14:54 <+Steffanx> :S
2012-05-26T14:16:57 -!- L00NG [~longxk@123.84.250.88] has quit [Remote host closed the connection]
2012-05-26T14:20:44 -!- L00NG [~longxk@123.84.250.88] has joined ##stm32
2012-05-26T14:46:23 <+Steffanx> with dongs?
2012-05-26T14:48:38 <+Steffanx> What a surprise .. the generated code is awful
2012-05-26T14:49:44 <+Steffanx> No, but that doesn't mean i can't have an opinion about it
2012-05-26T14:49:46 <+Steffanx> i_reduced_and38593 <= ((((((1)) & (((i_cloned37___0___) >> ((24)))))) + ((((1)) & (((i_cloned37___0___) >> ((23))))))))+((((((1)) & (((i_cloned37___0___) >> ((4)))))) + ((((1)) & (((i_cloned37___0___) >> ((3)))))))); ..
2012-05-26T14:49:50 < cjbaird> A simular kind of thing was mentioned to be earlier for ARM GCC: http://gcc.godbolt.org/ ... "Haven't you ever heard of gcc -S?"
2012-05-26T14:55:16 <+Steffanx> The examples are nice cjbaird, especially with the arm-none-eabi-g++ compiler :D
2012-05-26T14:55:27 <+Steffanx> Best optimization ever
2012-05-26T14:55:39 <+Steffanx> or worst ..
2012-05-26T15:02:15 < jpa-> hmm.. matrix multiplication takes almost as long as matrix inversion (well, backslash division)
2012-05-26T15:03:51 < jpa-> never realized that it was so heavy operation
2012-05-26T15:07:37 <+Steffanx> Or isn't your implementation the perfect one?
2012-05-26T15:09:00 < jpa-> it is
2012-05-26T15:21:09 <+Steffanx> ofcourse
2012-05-26T15:21:27 < Tectu> morning hackers
2012-05-26T15:21:29 <+Steffanx> Sorry, for my doubt
2012-05-26T15:21:37 <+Steffanx> Good afternoon Tectu
2012-05-26T15:21:50 <+Steffanx> Haxors ..
2012-05-26T15:22:36 < Tectu> how's it going
2012-05-26T15:22:47 <+Steffanx> Fine, there?
2012-05-26T15:23:02 <+Steffanx> Nice weather?
2012-05-26T15:23:03 < Tectu> cannot complain
2012-05-26T15:32:01 < jpa-> Steffanx: now my perfect implementation is 50% more perfect
2012-05-26T15:37:28 < Tectu> karlp, you arround?
2012-05-26T15:37:51 < karlp> for a moment
2012-05-26T15:38:04 < karlp> finishing some coffee then out to the garden for a bit
2012-05-26T15:39:12 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-26T15:40:25 < Tectu> https://github.com/texane/stlink/issues/82#issuecomment-5946629
2012-05-26T15:40:36 < Tectu> karlp,
2012-05-26T15:41:48 < karlp> Tectu: yeah, he's trying to load the hex file.
2012-05-26T15:41:50 < Tectu> dongs, because that's the default one
2012-05-26T15:41:53 < karlp> hilarity is likely to ensue
2012-05-26T15:41:57 < Tectu> oh, let me fix that karlp
2012-05-26T15:42:26 < Tectu> karlp, changed comment
2012-05-26T15:42:58 < karlp> you were right though, unrelated problems now :)
2012-05-26T15:43:10 < Tectu> yeah
2012-05-26T15:48:40 < Laurenceb_> dongs: thats the github logo you utter n00b
2012-05-26T15:48:56 < Laurenceb_> the legs are the git branches i think
2012-05-26T15:49:11 < Tectu> Laurenceb, lol
2012-05-26T15:51:29 <+Steffanx> Show us your avatar dongs
2012-05-26T15:52:36 <+Steffanx> No github page for dongs ?
2012-05-26T15:52:41 <+Steffanx> *account
2012-05-26T15:53:27 <+Steffanx> codeplex it is for you?
2012-05-26T15:53:28 < Laurenceb_> lulwut
2012-05-26T15:54:25 <+Steffanx> You are into TFS or maybe SourceSafe, isn't it dongs ?!
2012-05-26T15:54:45 <+Steffanx> LOL
2012-05-26T15:54:45  * karlp laughs
2012-05-26T15:54:51 < karlp> the cat is "octocat"
2012-05-26T15:55:01 < Laurenceb_> see you are even more sad than i am
2012-05-26T15:55:11 < cjbaird> Needs more Tentacle Hentai Cat.
2012-05-26T15:55:18 < Laurenceb_> eww
2012-05-26T15:55:20 < karlp> when in doubt, add more tentacles
2012-05-26T15:55:21 <+Steffanx> Or do you use in-source versioning? //Dongs - [date] : Changed this and this
2012-05-26T15:55:27 < karlp> and when that's not helping, add more functional orifaces
2012-05-26T15:57:03 < Tectu> karlp, why did you mention ##stm32? :D
2012-05-26T15:57:27 < Tectu> that more people join here to ask about thing which are  ##texane/stlink  related?
2012-05-26T15:57:31 <+Steffanx> We need moar lurkers here Tectu
2012-05-26T15:58:01 < karlp> well, why not?
2012-05-26T15:58:09 < Tectu> what is a lurker?  (yeah, blame on me)
2012-05-26T15:58:24 < Tectu> looks good dongs
2012-05-26T15:58:26 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Ping timeout: 244 seconds]
2012-05-26T15:58:39 < karlp> sexy standoffs
2012-05-26T15:58:40 <+Steffanx> http://en.wikipedia.org/wiki/Lurker
2012-05-26T15:59:21 < Tectu> so lurker == idler?
2012-05-26T15:59:38 < Laurenceb_> what is it?
2012-05-26T16:00:03 < Tectu> but why do wee need more users anyways? we have 42 users and one person which can answer at least every question :D
2012-05-26T16:00:28 <+Steffanx> -2
2012-05-26T16:00:38 <+Steffanx> zlog and ChanServ are bots
2012-05-26T16:00:38 < zlog> Steffanx: Log stored at http://tom-itx.dyndns.org:81/~tom-itx/irc/logs/%23%23stm32/2012-05-26.html
2012-05-26T16:00:43 < Tectu> damn!
2012-05-26T16:00:57 < karlp> I doubt his elf actually works in another place.
2012-05-26T16:01:26 < Tectu> karlp, where did you get that
2012-05-26T16:02:04 < Laurenceb_> what is that board?
2012-05-26T16:02:12 < Tectu> dongs, yes, i was going to ask about them
2012-05-26T16:02:20 < Tectu> that are testpoints for scope probes, right?
2012-05-26T16:02:22 < Laurenceb_> cool
2012-05-26T16:04:06 < Laurenceb_> usb phy with an f4  ?
2012-05-26T16:04:31 < Laurenceb_> yeah
2012-05-26T16:17:33 <+Steffanx> Even xmega has a faster ADC :S
2012-05-26T16:32:32 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has quit [Ping timeout: 245 seconds]
2012-05-26T17:07:00 < Tectu> 0xbd8defff  was somehow bootloader, right?
2012-05-26T17:16:16 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has joined ##stm32
2012-05-26T17:16:18 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-26T17:58:04 < jpa-> karlp: http://paste.dy.fi/n5P/plain  any ideas?
2012-05-26T17:58:12 < jpa-> this happened after i interrupted flashing with ctrl-c
2012-05-26T17:59:24 < jpa-> aaah
2012-05-26T17:59:28 < jpa-> again in the sleep mode
2012-05-26T17:59:39 < jpa-> karlp: np, holding down reset button while flashing fixed it
2012-05-26T18:01:55 -!- Huitaryan [~Huitaryan@blk-252-42-151.eastlink.ca] has quit [Ping timeout: 244 seconds]
2012-05-26T18:03:53 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-26T18:04:41 < karlp> yeah, I'm sure there's still plnety of bugs related to sleeping targets
2012-05-26T18:05:09 < karlp> it's something I'll be working on myself "real soon now" so we'll see what irritates me :)
2012-05-26T18:06:55 < Tectu> karlp, how hard is it to make texane/st-link able to reset the device?
2012-05-26T18:07:22 < Tectu> when you get <10kB/s it's not that cool when you have 256k of code and do reflash instead of reset
2012-05-26T18:09:04 < jpa-> real people use reset buttons :)
2012-05-26T18:09:12 -!- cjbaird [~cjb@ppp121-44-104-119.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-26T18:09:42 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32
2012-05-26T18:11:26 < jpa-> hmm.. i should make my makefile create a local git tag every time i flash.. that way it would be easy to check what have i broken since last test
2012-05-26T18:11:35 < jpa-> though doing that for uncommitted files..
2012-05-26T18:12:04 <+Steffanx> It's time to use scons jpa-
2012-05-26T18:12:24 -!- tavish [~tavish@59.177.10.84] has joined ##stm32
2012-05-26T18:12:25 -!- tavish [~tavish@59.177.10.84] has quit [Changing host]
2012-05-26T18:12:25 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-26T18:12:37 < jpa-> how does it solve the problem?
2012-05-26T18:13:02 <+Steffanx> Not sure, but it read something about makefiles :P
2012-05-26T18:14:43 < jpa-> i think it is time for you to get a girlfriend
2012-05-26T18:15:26 <+Steffanx> Hmm, how that's related to this?
2012-05-26T18:15:46 <+Steffanx> You compiled yours?
2012-05-26T18:15:53 < jpa-> no, but i read something about Steffanx 
2012-05-26T18:16:18 <+Steffanx> Oh, it came pre-compiled .. apt-get :D
2012-05-26T18:16:47 < Tectu> :D
2012-05-26T18:17:04 -!- Huitaryan [~Huitaryan@blk-252-42-151.eastlink.ca] has joined ##stm32
2012-05-26T18:17:05 < Tectu> girlfriends do only solve problem if you are a lucky bastard like me
2012-05-26T18:17:10 <+Steffanx> I guess you didn't sleep very well this night jpa-
2012-05-26T18:17:15 < Tectu> otherwise they fuck everything up that not even git helps
2012-05-26T18:17:21 <+Steffanx> And i'm sure a gf for me won't fix that
2012-05-26T18:17:24 < Tom_itx> everything but you
2012-05-26T18:17:38 < jpa-> Steffanx: i worried about you being lonely all night
2012-05-26T18:17:39 < Tom_itx> then it's time for a new one
2012-05-26T18:17:48 <+Steffanx> Never do that again, please
2012-05-26T18:21:24 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has quit [Ping timeout: 245 seconds]
2012-05-26T18:21:29 < BrainDamage> scons is truly terrible
2012-05-26T18:21:31 < BrainDamage> avoid it
2012-05-26T18:21:49 <+Steffanx> It's easier than makefiles
2012-05-26T18:22:19 < BrainDamage> there's many things it does wrong tough
2012-05-26T18:22:29 < BrainDamage> it's incredibly slow since it hashes source files for changes
2012-05-26T18:23:15 < BrainDamage> it has a confusing system user side to configure ( many users needed manual help to toggle options )
2012-05-26T18:27:01 <+Steffanx> I'll stay with them
2012-05-26T18:27:04 <+Steffanx> *it
2012-05-26T18:35:28 -!- tavish_ [~tavish@59.177.3.147] has joined ##stm32
2012-05-26T18:37:57 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 248 seconds]
2012-05-26T18:40:26 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-26T18:42:38 -!- tavish_ [~tavish@59.177.3.147] has quit [Ping timeout: 240 seconds]
2012-05-26T19:17:08 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 250 seconds]
2012-05-26T19:30:56 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-26T19:35:09 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-26T19:37:34 -!- L00NG [~longxk@123.84.250.88] has quit [Quit: 离开]
2012-05-26T19:38:23 -!- tavish [~tavish@120.56.130.249] has joined ##stm32
2012-05-26T19:38:27 -!- tavish [~tavish@120.56.130.249] has quit [Changing host]
2012-05-26T19:38:27 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-26T19:43:21 -!- tavish_ [~tavish@120.56.140.75] has joined ##stm32
2012-05-26T19:43:35 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 265 seconds]
2012-05-26T19:52:52 -!- tavish_ [~tavish@120.56.140.75] has quit [Ping timeout: 260 seconds]
2012-05-26T19:56:54 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-26T20:01:08 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 240 seconds]
2012-05-26T20:02:27 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-26T20:07:24 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 250 seconds]
2012-05-26T20:14:14 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-26T20:38:31 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 256 seconds]
2012-05-26T20:39:59 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-26T20:46:17 < karlp> hmm, I've been spoilt by stm32
2012-05-26T20:46:33 < karlp> trying to port some avr code, and have gotten rather used to be able to just step through the code
2012-05-26T20:46:43 < karlp> damn led and printf debugging
2012-05-26T20:47:04 < karlp> failday
2012-05-26T20:48:36 < BrainDamage> there are some avr debuggers
2012-05-26T20:48:42 < BrainDamage> prepare to throw 100€ tough
2012-05-26T20:49:20 < karlp> nah, I'm moving away from avr.
2012-05-26T20:49:50 < karlp> I've got it nicely working in the arduino ide, but it's traped there. trying to move it first to regular C, then to dual stm32/avr.
2012-05-26T20:50:02 < karlp> thought it was going to be an afternoon, taking far too long already.
2012-05-26T20:50:16 < karlp> I'm clearly missing part of my brane today
2012-05-26T20:51:21 -!- LawrenceSeattle [~lawrence@216.243.49.130] has quit [Ping timeout: 252 seconds]
2012-05-26T20:51:23 < BrainDamage> string theorist? :p https://en.wikipedia.org/wiki/Membrane_%28M-theory%29
2012-05-26T20:52:08 < karlp> more this: http://www.youtube.com/watch?v=zAlNrtcPCLw
2012-05-26T20:53:27 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-26T20:56:46 <+Steffanx> karlp, you can always write yourself a app that implements the debugWire protocol :P
2012-05-26T20:57:45 -!- LawrenceSeattle [~lawrence@c-71-227-186-232.hsd1.wa.comcast.net] has joined ##stm32
2012-05-26T20:58:15 <+Steffanx> It's reversed partially, just like the jtag debugging stuff
2012-05-26T21:02:30 < karlp> .... no.
2012-05-26T21:05:30 < blkcat> hey guys. :)
2012-05-26T21:06:25 <+Steffanx> Good choice karlp
2012-05-26T21:12:49 < karlp> fuck it, bbq and stupidvision time.
2012-05-26T21:16:11 -!- LawrenceSeattle_ [~lawrence@216.243.49.130] has joined ##stm32
2012-05-26T21:16:58 < blkcat> today's project: figure out how the fuck to use this j-link :D
2012-05-26T21:18:24 < Tectu> karlp, well, something is really broken with texane/stlink
2012-05-26T21:18:33 < Tectu> took out my own stm32vl discovery, nothing works
2012-05-26T21:18:39 < Tectu> not even with the "old" version of it
2012-05-26T21:19:38 -!- LawrenceSeattle [~lawrence@c-71-227-186-232.hsd1.wa.comcast.net] has quit [Ping timeout: 240 seconds]
2012-05-26T21:19:38 -!- LawrenceSeattle_ is now known as LawrenceSeattle
2012-05-26T21:19:47 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-26T21:24:12 < jpa-> Tectu: i checked out the newest version today, seems to work fine with stm32vl
2012-05-26T21:24:34 < jpa-> if old version doesn't work either, i suggest there may be a mistake in your circuit :)
2012-05-26T21:25:06 < Tectu> jpa-, can you share your info here?   https://github.com/texane/stlink/issues/82   i didn't had too much time for propper debugging too
2012-05-26T21:25:26 < Tectu> i just took the 3 minutes to try to help that guy there
2012-05-26T21:27:30 < jpa-> i don't care that much
2012-05-26T21:28:51 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 250 seconds]
2012-05-26T21:30:35 -!- tavish [~tavish@59.177.8.146] has joined ##stm32
2012-05-26T21:30:35 -!- tavish [~tavish@59.177.8.146] has quit [Changing host]
2012-05-26T21:30:35 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-26T21:31:46 -!- peabody128 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-26T21:31:46 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer]
2012-05-26T21:31:46 -!- peabody128 is now known as peabody124
2012-05-26T21:44:53 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 250 seconds]
2012-05-26T21:45:50 -!- tavish [~tavish@59.177.6.182] has joined ##stm32
2012-05-26T21:45:51 -!- tavish [~tavish@59.177.6.182] has quit [Changing host]
2012-05-26T21:45:51 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-26T22:21:22 -!- izua [~izua@188.26.92.246] has joined ##stm32
2012-05-26T22:21:23 -!- izua [~izua@188.26.92.246] has quit [Changing host]
2012-05-26T22:21:23 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-26T22:21:26 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-26T22:51:35 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 246 seconds]
2012-05-26T23:03:22 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-26T23:05:14 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-26T23:10:19 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-26T23:12:22 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-26T23:52:30 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-26T23:55:18 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 250 seconds]
2012-05-26T23:56:06 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 260 seconds]
2012-05-26T23:58:24 -!- mrcan [~mrcan@95.8.164.75] has joined ##stm32
2012-05-26T23:58:27 -!- mrcan [~mrcan@95.8.164.75] has quit [Changing host]
2012-05-26T23:58:27 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32
--- Day changed Sun May 27 2012
2012-05-27T00:05:52 < LawrenceSeattle> Tectu: I got stlink working fine with my F4, F1 discovery a while back
2012-05-27T00:06:29 < LawrenceSeattle> I'm on ubuntu 11.10 though
2012-05-27T00:07:22 < Tectu> okay
2012-05-27T00:07:29 < Tectu> what means "a while back", LawrenceSeattle ?
2012-05-27T00:07:45 < LawrenceSeattle> 2 months
2012-05-27T00:08:04 < Tectu> ah.
2012-05-27T00:08:10 < Tectu> well, do you have time and the hardware arround?
2012-05-27T00:09:18 < LawrenceSeattle> whats the error? don't have it setup
2012-05-27T00:09:52 < Tectu> never mind then
2012-05-27T00:10:02 < Tectu> it works here, just few other people do have issues
2012-05-27T00:10:06 < Tectu> what speed did you get?
2012-05-27T00:10:29 < LawrenceSeattle> didn't check.  what do you get?
2012-05-27T00:10:57 < LawrenceSeattle> svd was never the fastest protocol
2012-05-27T00:11:26 < Tectu> i am one of the happy 10kB/s guys
2012-05-27T00:11:40 < Tectu> most people do have, specially on the F4 discovery, only 200Bytes/s
2012-05-27T00:12:33 < LawrenceSeattle> ouch.  I think I get at least 10
2012-05-27T00:13:21 < LawrenceSeattle> got some F0's... wonder if my setup works ok
2012-05-27T00:13:50 < LawrenceSeattle> wonder if there's support yet with gcc
2012-05-27T00:16:24 < Tectu> support yet with gcc?
2012-05-27T00:36:36 <+dekar> LawrenceSeattle, what kind of support are you talking about? the float stuff?
2012-05-27T00:40:40 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-27T00:50:35 <+Steffanx> f0 and float stuff?
2012-05-27T00:50:49 <+Steffanx> cortex-m0 is supported, if that was your question
2012-05-27T01:10:46 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-27T01:15:02 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 250 seconds]
2012-05-27T01:19:14 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-27T01:23:54 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 245 seconds]
2012-05-27T01:31:02 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-27T01:32:12 < blkcat> hey hey
2012-05-27T01:45:57 < Tectu> hey there
2012-05-27T01:50:46 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-27T01:57:13 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-27T02:02:52 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Read error: Connection reset by peer]
2012-05-27T02:02:56 -!- neuro-sy1 [~neuro@88.241.37.225] has joined ##stm32
2012-05-27T02:03:22 -!- jaeckel [~jaeckel@jaeckel.eu] has quit [Read error: Operation timed out]
2012-05-27T02:04:04 -!- jaeckel [~jaeckel@jaeckel.eu] has joined ##stm32
2012-05-27T02:10:55 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-27T02:25:52 < Tectu> i have a   uint16_t temp;    in a sourcefile. when i do   print temp   in gdb, it says no symbol "temp" in current context
2012-05-27T02:25:58 < Tectu> does the print stuff only work in main?
2012-05-27T02:32:07 < Tectu> ah, out of scope issue
2012-05-27T02:40:08 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-27T02:58:13 -!- LawrenceSeattle [~lawrence@216.243.49.130] has quit [Ping timeout: 248 seconds]
2012-05-27T03:04:49 -!- LawrenceSeattle [~lawrence@c-71-227-186-232.hsd1.wa.comcast.net] has joined ##stm32
2012-05-27T03:05:33 < blkcat> ugh, i wish i knew what i was missing here.
2012-05-27T03:05:43 < Tectu> blkcat, what do you mean?
2012-05-27T03:06:04 < blkcat> having a hard time getting my j-link and lpcxpresso to cooperate.
2012-05-27T03:06:23 -!- LawrenceSeattle_ [~lawrence@216.243.49.130] has joined ##stm32
2012-05-27T03:06:44 < Tectu> ah
2012-05-27T03:06:48 < Tectu> sounds like lot of fun
2012-05-27T03:07:04 < blkcat> yeah, something like that.
2012-05-27T03:09:23 -!- LawrenceSeattle [~lawrence@c-71-227-186-232.hsd1.wa.comcast.net] has quit [Ping timeout: 252 seconds]
2012-05-27T03:09:23 -!- LawrenceSeattle_ is now known as LawrenceSeattle
2012-05-27T03:52:37 < blkcat> mon regs shows an r13, but when i try to change r13's contents i get an 'unsupported register' error.
2012-05-27T03:52:40 < blkcat> siiigh
2012-05-27T03:55:24 -!- cjbaird [~cjb@ppp121-44-104-119.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-27T04:03:35 < gsmcmull1n> blkcat: Your gdbserver should supply an XML description of the targets registers.
2012-05-27T04:03:49 < gsmcmull1n> http://sourceware.org/gdb/download/onlinedocs/gdb/Target-Descriptions.html
2012-05-27T04:05:54 < blkcat> gsmcmull1n: yeah, there's definitely something amiss there.
2012-05-27T04:06:05 < blkcat> gsmcmull1n: mon regs (as executed on the jlink) returns very different values than info registers
2012-05-27T04:07:31 < gsmcmull1n> What version of GDB are you using?
2012-05-27T04:08:08 < blkcat> GNU gdb (Sourcery CodeBench Lite 2011.09-69) 7.2.50.20100908-cvs
2012-05-27T04:08:12 < blkcat> arm-none-eabi
2012-05-27T04:08:36 < blkcat> i can connect to the target just fine using jlinkexe - reset, halt, etc. etc.
2012-05-27T04:08:50 < blkcat> but trying to flash or debug with gdb has been pretty much fruitless.
2012-05-27T04:13:29 < blkcat> so yeah. i have no idea what i'm doing wrong. :D
2012-05-27T04:14:24 < gsmcmull1n> I can't really help you with codesourcery or jlink.
2012-05-27T04:15:11 < blkcat> alas. :(
2012-05-27T04:15:19 < gsmcmull1n> Try with 'set debug remote 1' and paste somewhere, and I'll have a look.
2012-05-27T04:19:23 < blkcat> gsmcmull1n: http://pastebin.com/6zrSi8Ku
2012-05-27T04:24:43 < gsmcmull1n> Hmm.  Your GDB server says explicitly that it doesn't support target memory map or register map!
2012-05-27T04:25:52 < gsmcmull1n> It reads the registers (all as zero) before you send the 'mon interface swd' command.
2012-05-27T04:26:12 < gsmcmull1n> (and never again)
2012-05-27T04:27:44 < gsmcmull1n> I can't help you much but to say your gdbserver looks questionable.
2012-05-27T04:29:45 < blkcat> yeah, i think the idea is that you use the commands in the monitor to view registers rather than the built-in gdb facilities.
2012-05-27T04:29:51 < blkcat> which is fine i suppose.
2012-05-27T04:30:44 < blkcat> honestly i'd be happy just to get an led blinking at this point. at least then i'd know i've got the basics functional.
2012-05-27T05:08:52 < gsmcmull1n> blkcat: If gdb can't read the registers, it won't be able to do anything else either.
2012-05-27T05:20:02 < gsmcmull1n> dongs: Help they guy.  You're always advertising for j-link.
2012-05-27T05:32:26 < upgrdman> i'm reading someone elses C code. some small functions are "static inline void ..." while some are #define's... why one over the other?
2012-05-27T05:34:38 < gsmcmull1n> 'static inline' allows the compiler to do type checking on parameters.
2012-05-27T05:35:07 < gsmcmull1n> offers better error reporting when something's wrong, provides better debugging info.
2012-05-27T05:36:25 < gsmcmull1n> avoids some crazy mistakes resulting from precedence rules.
2012-05-27T05:36:39 < zippe> dongs: Nothing needed in RAM to flash stm32
2012-05-27T05:36:57 < zippe> Use 'load' as long as the server has identified the part correctly
2012-05-27T05:37:47 < zippe> upgrdman: Normally you only use functionlike macros (i.e. #define foo(bar) …) when you are metaprogramming, i.e. you don't know the type of what gets passed as bar
2012-05-27T05:38:33 < zippe> Lots of folks get lazy though, and use functionlike macros as wrappers for things.  It can be easier to use macro varargs to wrap printf for example than to do the whole va_list thing
2012-05-27T05:40:09 < upgrdman> ok thanks
2012-05-27T05:40:26 < upgrdman> http://pastebin.com/xAFxHaMJ
2012-05-27T05:40:39 < upgrdman> any idea why the author mixed both?
2012-05-27T05:41:27 < zippe> Cut and paste or laziness
2012-05-27T05:41:46 < upgrdman> ok. just making sure there isn't some obvious thing im missing.
2012-05-27T05:41:49 < zippe> Unless delay() is called before you have a stack setup, making it a macro is just bad.
2012-05-27T05:42:07 < zippe> Also, for most modern compilers the 'register' qualifier means nothing
2012-05-27T05:42:15 < upgrdman> ok
2012-05-27T05:42:20 < zippe> If you want to bind a variable to a register, you would say
2012-05-27T05:42:34 < zippe> unsigned int i asm("r2");
2012-05-27T05:42:51 < upgrdman> humm   ok
2012-05-27T05:43:05 < zippe> Which after _Static_assert() is perhaps the most stupid thing I've seen in C so far this year
2012-05-27T05:43:17 < upgrdman> :)
2012-05-27T05:43:35 < zippe> (don't get me wrong, I love static assertions, but they wanted to make it "like" the c++11 version so the rest of it is lowercase
2012-05-27T05:43:48 < upgrdman> any idea what this does: __asm__ __volatile__ ("nop\n\t":::"memory");
2012-05-27T05:43:54 < zippe>  but it should have been _STATIC_ASSERT() to avoid looking re-tar-ded)
2012-05-27T05:44:18 < zippe> That's a bad attempt at telling the compiler that memory changes unexpectedly at that point.
2012-05-27T05:44:31 < upgrdman> ok
2012-05-27T05:44:35 < zippe> Again with any modern compiler it's going to have debatable success
2012-05-27T05:45:27 < upgrdman> well its in the delay function. if i want to cause a delay would something simple like for(int i; i < 1000; i++); work? (empty statement ;)
2012-05-27T05:45:33 < zippe> Typically you'd decorate whatever you might be looking at that could change with volatile.
2012-05-27T05:45:47 < zippe> Oh, I see.
2012-05-27T05:45:59 < zippe> That's an attempt to say "please don't optimise this loop away"
2012-05-27T05:46:08 < upgrdman> o
2012-05-27T05:46:13 < zippe> Delay loops are usually an admission of failure.
2012-05-27T05:46:16 < zippe> What CPU is this for?
2012-05-27T05:46:22 < upgrdman> stm32f4
2012-05-27T05:46:39 < upgrdman> its some trivial example that blinks the four LEDs at maybe 40Hz
2012-05-27T05:46:52 < zippe> Gah.  The F4 has so many sources of time that delay loops are unexcusable.
2012-05-27T05:47:10 < zippe> Set up the bloody systick or turn on the cycle counter for crying out loud.
2012-05-27T05:47:19 < upgrdman> im a beginner. i come from the warm-fuzzy world of the arduino. what should i look up to learn more about that?
2012-05-27T05:47:35 < zippe> Ah, ok.  Short list.
2012-05-27T05:47:47 < upgrdman> sorry if im wasting your time
2012-05-27T05:47:54 < zippe> One sec, let me get my reading list up… just ripping today's purchases
2012-05-27T05:47:55 < zippe> Not at all
2012-05-27T05:47:58 < upgrdman> k
2012-05-27T05:48:22 < zippe> (btw, Army of Mushrooms … serious change of direction, but really, really good so far)
2012-05-27T05:48:32 < upgrdman> ?
2012-05-27T05:48:44 < zippe> (google it while I'm typing 8)
2012-05-27T05:48:56 < upgrdman> k
2012-05-27T05:49:04 < zippe> Ok, in no particular order:
2012-05-27T05:49:47 < zippe> ARM document DDI0403D from the ARM website.  This is the ARMv7-M architecture reference manual.  Not a good thing to read from cover to cover, but it is The Truth about the CPU.
2012-05-27T05:50:15 < upgrdman> is that better than STM RM0090?
2012-05-27T05:50:27 < zippe> ARM document DDI0439C, also from ARM.  This is the Cortex-M4 technical reference manual.  Read in conjunction with DDI0403D.
2012-05-27T05:50:30 < zippe> It's different.
2012-05-27T05:50:33 < upgrdman> k
2012-05-27T05:50:49 < zippe> The ARM documents describe the processor architecture, and the specific implementation of the architecture.
2012-05-27T05:50:59 < zippe> The ST documents describe the rest of the chip.
2012-05-27T05:51:39 < zippe> You already have ST's RM0090, you should also have the STM32F405/7 datasheet (022152)
2012-05-27T05:52:17 < zippe> Get PM0081 while you're at it.  It won't be interesting right now, but you may want it later.
2012-05-27T05:53:05 < zippe> Then go back to ARM and get DUI0553A, which is the "generic user guide" for the Cortex-M4
2012-05-27T05:54:11 < zippe> That's not a bad one to just start reading at the top.  Skip anything that looks confusing.
2012-05-27T05:54:48 < upgrdman> k
2012-05-27T05:55:23 < zippe> If you like books, this is more or less the definitive guide (it even says so right there in the title) to the M3, which is very similar to the M4.
2012-05-27T05:55:24 < zippe> http://www.amazon.com/Definitive-Guide-Cortex-M3-Second-Edition/dp/185617963X/ref=dp_ob_title_bk
2012-05-27T05:55:37 < upgrdman> i love books
2012-05-27T05:55:45 < upgrdman> great
2012-05-27T05:56:11 < zippe> Personally I think about three quarters of it is useless padding, but YMMV.
2012-05-27T05:56:31 < zippe> Other folks love it, so don't trust me there.
2012-05-27T05:57:21 < upgrdman> k
2012-05-27T05:57:31 < upgrdman> any idea how much current each pin can handle?
2012-05-27T05:57:34 < zippe> Hitex have an ebook on the STM32 : http://www.hitex.com/fileadmin/pdf/insiders-guides/stm32/isg-stm32-v18d-scr.pdf
2012-05-27T05:57:45 < zippe> That's in the datasheet
2012-05-27T05:58:48 < zippe> Æ’5.2, table 8
2012-05-27T05:59:22 < zippe> You will, like many of us, be delighted by the TBD designation on a number of important items.
2012-05-27T06:00:24 < upgrdman> :(
2012-05-27T06:02:02 < zippe> If you are switching serious currents with the GPIOs, you might want to pick lower speeds when you configure them, as otherwise the dI/dt can put some pretty harsh transients onto the rails
2012-05-27T06:03:21 < zippe> Æ’5.3.16 has more to say about pin drive capability ,btw
2012-05-27T06:03:37 < zippe> Under "Output Driving Current"
2012-05-27T06:07:29 < zippe> I dunno.  I use sdcc and the microchip stuff when I have to deal with pic stuff
2012-05-27T06:08:36 < upgrdman> 25mA ... not bad
2012-05-27T06:08:53 < upgrdman> plenty to drive a basic led without a transistor
2012-05-27T06:09:15 < zippe> Do read the second part I noted
2012-05-27T06:09:35 < upgrdman> ya i know. fucking transients
2012-05-27T06:09:38 < upgrdman> :)
2012-05-27T06:09:43 < zippe> Also, super-bright LEDs are so cheap that you can get daylight visibility with 2mA easily
2012-05-27T06:09:56 < upgrdman> i know
2012-05-27T06:10:15 < upgrdman> i have a couple hundred blue LEDs that are blinking if you push more than 10mA through them
2012-05-27T06:10:30 < upgrdman> and i have some 5W LEDs that will cause pain if you look into them ;)
2012-05-27T06:10:43 < upgrdman> s/blinking/blinding
2012-05-27T06:12:27 < upgrdman> |= sets a bit, what clears a bit?
2012-05-27T06:13:15 < zippe> &= ~
2012-05-27T06:14:09 < zippe> reg |= 1  sets the LSB, reg &= ~1 clears it
2012-05-27T06:14:22 < upgrdman> ya
2012-05-27T06:14:24 < upgrdman> thanks
2012-05-27T06:14:35 < zippe> The STM32 GPIOs are actually bit-banded
2012-05-27T06:14:44 < zippe> I don't understand why nobody uses the bit-banded regions
2012-05-27T06:14:50 < upgrdman> oh ya, i think i read about that in the ref man
2012-05-27T06:15:05 < zippe> Oh, wait, because you can't change more than one bit at a time.  Jeez, ARM, you're morons
2012-05-27T06:15:21 < upgrdman> ?
2012-05-27T06:15:37 < upgrdman> isnt the point of a bit band to set one bit at a time?
2012-05-27T06:15:55 < zippe> No, the point is to avoid read-modify-write races
2012-05-27T06:16:01 < upgrdman> o
2012-05-27T06:18:33 < zippe> It might have worked better if vendors weren't just cutting and pasting peripherals from older SoCs into their v7m devices.
2012-05-27T06:18:46 < zippe> i.e. if peripherals were all designed to work well with bit-banded access
2012-05-27T06:23:38 < upgrdman> im using the STM32F4DISCOVERY board
2012-05-27T06:24:03 < upgrdman> any idea of setting a GPIO pin as an output, and making it low or high could damage one of the chips onboard?
2012-05-27T06:24:16 < upgrdman> i know about the table that lists free io pins
2012-05-27T06:24:17 < upgrdman> but
2012-05-27T06:24:26 < upgrdman> mistakes might happen ;)
2012-05-27T06:30:02 < zippe> Very unlikely
2012-05-27T06:40:05 < upgrdman> ok
2012-05-27T07:03:31 < blkcat> okay, back for round two haha
2012-05-27T07:05:58 < cjbaird> I just told my housemate I'd gone over to DYIComputers and got an /STD/ -_-
2012-05-27T07:09:24 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-27T07:17:04 < blkcat> huh yeah, j-link's gdb support seems pretty halfassed at best.
2012-05-27T07:17:10 < blkcat> it doesn't try to integrate with gdb itself at all.
2012-05-27T07:31:06 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-27T07:31:26 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [Client Quit]
2012-05-27T07:40:53 < blkcat> oh dear god
2012-05-27T07:40:55 < blkcat> it's working
2012-05-27T07:40:59 < blkcat> debugging still sucks but it's working
2012-05-27T07:54:18 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32
2012-05-27T08:42:22 -!- izua [~izua@86.121.85.94] has joined ##stm32
2012-05-27T08:42:22 -!- izua [~izua@86.121.85.94] has quit [Changing host]
2012-05-27T08:42:22 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-27T08:42:25 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-27T09:33:12 < upgrdman> i think my math is right but it's not working. PD15's GPIO_ORD register would be 0x40020C14 bit: 15, correct? so if you use bit banding it would be 0x424182BC right? it's not working.
2012-05-27T09:33:22 < upgrdman> GPIO_ODR*
2012-05-27T09:36:55 < upgrdman> zippe, are you still around?
2012-05-27T10:10:04 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-27T10:26:16 < jpa-> upgrdman: i have been using these: http://paste.dy.fi/LR5/plain
2012-05-27T10:26:40 < ratatata> nu
2012-05-27T10:27:15 < upgrdman> my math turned out to be correct
2012-05-27T10:27:30 < upgrdman> but for some reason the function had no affect until i made it static
2012-05-27T10:27:33 < upgrdman> i wonder why
2012-05-27T10:32:23 < upgrdman> i wrote a simply fuction that sets a GPIO pin high or low
2012-05-27T10:32:30 < upgrdman> using bit banding
2012-05-27T10:33:06 < upgrdman> well no
2012-05-27T10:33:18 < upgrdman> ? what lib is that from?
2012-05-27T10:33:38 < upgrdman> im using C
2012-05-27T10:33:54 < upgrdman> who defines p?
2012-05-27T10:34:13 < upgrdman> yes, what define!!
2012-05-27T10:34:16 < upgrdman> ok
2012-05-27T10:34:54 < upgrdman> so that would be the STM lib...
2012-05-27T10:35:29 < upgrdman> im using linux
2012-05-27T10:35:32 < upgrdman> and
2012-05-27T10:35:47 < upgrdman> i have that collection but atm im learning the basic
2012-05-27T10:36:05 < upgrdman> dicking directly with the memory :)
2012-05-27T10:37:21 < upgrdman> wow, no kidding... 500KB for a header
2012-05-27T10:37:23 < upgrdman> :)
2012-05-27T10:42:38 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.]
2012-05-27T10:53:57 -!- gsmcmull1n is now known as gsmcmullin
2012-05-27T11:03:19 < upgrdman> :)
2012-05-27T11:03:28 < upgrdman> i live near the beach in cali
2012-05-27T11:03:33 < upgrdman> but not THAT close
2012-05-27T11:04:11 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-27T11:28:22 < cjbaird> "MAH PROPERTY VALUES!!" .. A story from Byron Bay, AU, was of a moneyfag whining about how the council wouldn't let him build a $10 Million house right on a cliff, "YUSE FUCKIN GREENIES! GETTIN IN MAH WAY OF MAKING OOF MOORONS!"
2012-05-27T11:29:57 < cjbaird> Smartcard RAID. Awesum.
2012-05-27T11:31:15 < cjbaird> I'm guessing it something like a cable-tv access card cloning setup.
2012-05-27T12:21:44 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection]
2012-05-27T12:25:19 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has joined ##stm32
2012-05-27T12:42:44 -!- LawrenceSeattle [~lawrence@216.243.49.130] has quit [Ping timeout: 252 seconds]
2012-05-27T12:48:59 -!- LawrenceSeattle [~lawrence@66.192.187.106] has joined ##stm32
2012-05-27T12:50:02 -!- LawrenceSeattle_ [~lawrence@216.243.49.130] has joined ##stm32
2012-05-27T12:53:46 -!- LawrenceSeattle [~lawrence@66.192.187.106] has quit [Ping timeout: 256 seconds]
2012-05-27T12:53:46 -!- LawrenceSeattle_ is now known as LawrenceSeattle
2012-05-27T13:02:11 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer]
2012-05-27T13:14:19 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 245 seconds]
2012-05-27T13:17:50 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has quit [Ping timeout: 246 seconds]
2012-05-27T13:32:04 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-27T13:32:48 -!- pelrun [~pelrun@60-241-99-33.static.tpgi.com.au] has joined ##stm32
2012-05-27T13:35:11 -!- neuro-sy1 [~neuro@88.241.37.225] has quit [Quit: .]
2012-05-27T13:38:49 -!- izua [~izua@86.121.85.94] has joined ##stm32
2012-05-27T13:38:49 -!- izua [~izua@86.121.85.94] has quit [Changing host]
2012-05-27T13:38:49 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-27T13:38:50 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-27T14:03:05 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-27T14:03:07 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-27T14:03:49 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 248 seconds]
2012-05-27T14:53:15 -!- Netsplit *.net <-> *.split quits: corecode_, +dekar, Laurenceb
2012-05-27T15:07:27 < Tectu> dongs, try gpio first?
2012-05-27T15:13:14 -!- Flea86 [~Flea86@c114-76-82-206.thoms3.vic.optusnet.com.au] has joined ##stm32
2012-05-27T15:16:11 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has joined ##stm32
2012-05-27T15:16:11 -!- corecode_ [~2@0x2c.org] has joined ##stm32
2012-05-27T15:16:11 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has joined ##stm32
2012-05-27T15:16:11 -!- ServerMode/##stm32 [+v dekar] by gibson.freenode.net
2012-05-27T15:43:33 < Tectu> dongs, i'd have some code which uses FSMC 16bit interface do access ssd1289 lcd controller
2012-05-27T16:11:40 < dongs> hmm ale/cle is properly toggling when im accessing address/data ranges..
2012-05-27T16:11:43 < dongs> but data is always FFFF..
2012-05-27T16:11:47 < dongs> hURf.
2012-05-27T16:20:43 < dongs> BONER
2012-05-27T16:21:42 < cjbaird> The flash isn't programmed?
2012-05-27T16:21:49 < dongs> im reading chip id?
2012-05-27T16:27:08 < dongs> ah
2012-05-27T16:27:12 < dongs> just had to solder it up some more
2012-05-27T16:27:28 < dongs> ADDA1095
2012-05-27T16:27:47 < dongs> cool
2012-05-27T16:27:52 < cjbaird> Can we get a pic
2012-05-27T16:27:53 < dongs> matches the manufacturer shit
2012-05-27T16:29:37 < dongs> http://i.imgur.com/GZXxm.jpg
2012-05-27T16:31:32 < dongs> i might pickup some blank pcbs of that nand breakout, seems to be handy way to grab firmware off devices
2012-05-27T16:53:47 -!- Flea86 [~Flea86@c114-76-82-206.thoms3.vic.optusnet.com.au] has quit [Quit: Station breakdown]
2012-05-27T17:09:10 -!- cjbaird [~cjb@ppp121-44-104-119.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-27T17:09:49 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-27T17:34:24 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-27T18:00:48 < dongs> hmm
2012-05-27T18:02:46 < Tectu> dongs, working?
2012-05-27T18:03:07 < dongs> ID reading is working, but cant read anything else.
2012-05-27T18:03:25 < Tectu> sounds impressive
2012-05-27T18:04:24 < Tectu> dongs, but this means that FSMC is working
2012-05-27T18:04:26 < Tectu> right?
2012-05-27T18:04:30 < dongs> yeah
2012-05-27T18:07:08 < dongs> i probably need to calculate timings
2012-05-27T18:13:58 < dongs> it seems the only people using nand f lash with stm32 are random chinese who also can't get it to work...?
2012-05-27T18:15:56 < dongs> F10x examples  has nand but non f2 or f4..
2012-05-27T18:15:56 < dongs> hmm
2012-05-27T18:17:51 < Tectu> dongs, my board does have nand too
2012-05-27T18:18:10 < Tectu> but not connected to FSMC, would have to doo GPIO
2012-05-27T18:18:14 < jpa-> lol
2012-05-27T18:18:18 < dongs> wtf
2012-05-27T18:18:32 < jpa-> why would anyone use parallel NAND and bitbang it :)
2012-05-27T18:18:32 < Tectu> yeah
2012-05-27T18:18:38 < Tectu> jpa-, i asked the same
2012-05-27T18:19:10 < Tectu> they have the LCD and the NAND on the same pins, but not on FSMC... idea would be in my understand, that the CS line would be used and therefore you can use both devices on the FSMC bus
2012-05-27T18:19:35 < jpa-> yep
2012-05-27T18:19:42 < Tectu> yeah, waveshare board
2012-05-27T18:20:05 < jpa-> though with all the spurious read bugs in the stm32f1 FSMC, it might still be asking for trouble
2012-05-27T18:20:09 < Tectu> no one else has that board:
2012-05-27T18:20:09 < Tectu> http://www.ebay.com/itm/STM32-Development-Board-STM32F103VCT6-3-2-TFT-LCD-/260775580114?pt=LH_DefaultDomain_0&hash=item3cb76f91d2
2012-05-27T18:20:40 < Tectu> funny is that on the other boards from waveshere, they connected the things to FSMC
2012-05-27T18:21:47 < Tectu> anyways, have to go, see you
2012-05-27T18:27:10 < dongs> k whatever, giving up for now.
2012-05-27T18:27:18 < dongs> doesnt seem like anyone uses fsmc for nand
2012-05-27T18:27:22 < dongs> its probably fucking broken.
2012-05-27T18:27:24 < dongs> bbl
2012-05-27T18:41:36 < zippe> Why would you want to talk to raw NAND anyway?
2012-05-27T18:41:57 < zippe> Unless you feel like paying someone for an FTL
2012-05-27T18:43:00 < zippe> There is no BCH hardware in the device, so you're going to blow a ton of code space on the FTL and error correction
2012-05-27T18:43:23 < zippe> You'd be much better off using an eMMC part
2012-05-27T18:46:13 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-27T19:05:03 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |]
2012-05-27T19:06:49 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit []
2012-05-27T19:15:53 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-27T19:34:38 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-27T19:36:54 -!- pelrun_ [~pelrun@60-241-99-33.static.tpgi.com.au] has joined ##stm32
2012-05-27T19:37:20 -!- pelrun [~pelrun@60-241-99-33.static.tpgi.com.au] has quit [Ping timeout: 244 seconds]
2012-05-27T19:50:44 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-27T19:54:33 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit []
2012-05-27T20:14:31 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-27T20:17:29 -!- pelrun_ [~pelrun@60-241-99-33.static.tpgi.com.au] has quit [Ping timeout: 256 seconds]
2012-05-27T20:18:10 -!- pelrun [~pelrun@60-241-99-33.static.tpgi.com.au] has joined ##stm32
2012-05-27T20:45:31 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-27T20:57:58 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit []
2012-05-27T21:19:45 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-27T21:22:18 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 252 seconds]
2012-05-27T21:41:35 -!- pelrun [~pelrun@60-241-99-33.static.tpgi.com.au] has quit [Ping timeout: 260 seconds]
2012-05-27T21:49:26 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |]
2012-05-27T23:16:57 -!- tavish [~tavish@120.56.129.172] has joined ##stm32
2012-05-27T23:16:57 -!- tavish [~tavish@120.56.129.172] has quit [Changing host]
2012-05-27T23:16:57 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-27T23:28:05 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 248 seconds]
2012-05-27T23:37:46 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-27T23:39:09 -!- pelrun [~pelrun@60-241-99-33.static.tpgi.com.au] has joined ##stm32
2012-05-27T23:46:59 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving]
2012-05-27T23:59:57 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
--- Day changed Mon May 28 2012
2012-05-28T00:09:01 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has joined ##stm32
2012-05-28T00:22:07 < Laurenceb_> http://ajpheart.physiology.org/content/256/1/H247.short
2012-05-28T00:35:58 <+Steffanx> Thanks for sharing Laurenceb_ ...
2012-05-28T00:36:36 < Laurenceb_> oops wrong window
2012-05-28T00:42:09 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Read error: Connection reset by peer]
2012-05-28T00:42:54 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-28T00:45:12 -!- LawrenceSeattle [~lawrence@216.243.49.130] has quit [Read error: Operation timed out]
2012-05-28T00:45:28 -!- LawrenceSeattle [~lawrence@c-71-227-186-232.hsd1.wa.comcast.net] has joined ##stm32
2012-05-28T00:48:25 -!- pelrun [~pelrun@60-241-99-33.static.tpgi.com.au] has quit [Ping timeout: 265 seconds]
2012-05-28T00:52:21 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 248 seconds]
2012-05-28T01:17:52 < Tectu> dongs, something yet?
2012-05-28T01:20:17 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
2012-05-28T01:29:51 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |]
2012-05-28T01:39:25 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has joined ##stm32
2012-05-28T01:39:33 -!- LawrenceSeattle_ [~lawrence@216.243.49.130] has joined ##stm32
2012-05-28T01:41:38 -!- LawrenceSeattle [~lawrence@c-71-227-186-232.hsd1.wa.comcast.net] has quit [Ping timeout: 240 seconds]
2012-05-28T01:41:38 -!- LawrenceSeattle_ is now known as LawrenceSeattle
2012-05-28T02:03:38 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-28T02:03:56 < blkcat> hey butts
2012-05-28T02:05:14 < Tectu> hello there
--- Log closed Mon May 28 02:47:51 2012
--- Log opened Mon May 28 02:47:57 2012
2012-05-28T02:47:57 -!- jpa- [jpa@hilla.kapsi.fi] has joined ##stm32
2012-05-28T02:47:57 -!- Irssi: ##stm32: Total of 40 nicks [1 ops, 0 halfops, 1 voices, 38 normal]
2012-05-28T02:48:36 -!- Irssi: Join to ##stm32 was synced in 43 secs
2012-05-28T02:57:58 < dongs> blogs
2012-05-28T02:58:04 < dongs> Tectu: well i do have to sleep sometime
2012-05-28T02:58:31 < Tectu> dongs, me too
2012-05-28T02:58:35 < Tectu> i guess i do it now
2012-05-28T02:58:36 < Tectu> or soon
2012-05-28T02:59:29 < Tectu> see you
2012-05-28T03:00:31 < dongs> ^_^
2012-05-28T03:46:03 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-28T03:54:57 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 246 seconds]
2012-05-28T04:21:29 < dongs> dont paste your cp links in here
2012-05-28T04:22:10 < dongs> the first link. dont play dumnb
2012-05-28T04:38:08 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 240 seconds]
2012-05-28T05:20:29 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32
2012-05-28T05:34:04 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has quit [Quit: Quit]
2012-05-28T05:41:21 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-28T06:17:47 -!- cjbaird [~cjb@ppp121-44-104-119.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-28T06:26:26 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 252 seconds]
2012-05-28T06:30:22 -!- Sander [~Sander@cpe-98-150-166-95.hawaii.res.rr.com] has joined ##stm32
2012-05-28T06:45:13 -!- cjbaird [~cjb@ppp121-44-104-119.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-28T06:49:33 -!- cjbaird [~cjb@ppp121-44-104-119.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-28T06:53:57 < Sander> I bought an HY-Smart STM32 from china and i have no idea of how to interface it. It has an RS232 that i can connect to through usb. I cant realy afford to buy Keil or any other software now, so any ideas?
2012-05-28T06:57:44 <+dekar> Sander, what's your OS?
2012-05-28T06:58:02 <+dekar> for windows and linux you can use the free codesourcery/mentor toolchain
2012-05-28T06:58:26 <+dekar> it's basically just precompiled GCC
2012-05-28T06:59:35 <+dekar> to program it use the stm32loader.py
2012-05-28T06:59:47 < Sander> nice thanks
2012-05-28T07:00:00 <+dekar> or the "flash loader demonstrator" from the ST page (windows)
2012-05-28T07:00:07 < Sander> windows by the way
2012-05-28T07:04:43 <+dekar> http://www.st.com/internet/com/SOFTWARE_RESOURCES/SW_COMPONENT/SW_DEMO/stm32-stm8_flash_loader_demo.zip
2012-05-28T07:05:28 <+dekar> in the st forums you'll find linker scripts for the codesourcery/mentor toolchain
2012-05-28T07:09:09 < Sander> thanks alot! now i know where to start
2012-05-28T07:26:50 -!- Sander [~Sander@cpe-98-150-166-95.hawaii.res.rr.com] has left ##stm32 ["Leaving"]
2012-05-28T07:28:17 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925075879.dsl.bell.ca] has joined ##stm32
2012-05-28T07:28:31 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925075879.dsl.bell.ca] has quit [Changing host]
2012-05-28T07:28:31 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-28T07:55:03 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-28T08:04:08 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has quit [Ping timeout: 240 seconds]
2012-05-28T08:09:15 < dongs> ugh
2012-05-28T08:09:20 < dongs> what retarded advice
2012-05-28T08:09:56 -!- izua [~izua@86.121.85.94] has joined ##stm32
2012-05-28T08:09:56 -!- izua [~izua@86.121.85.94] has quit [Changing host]
2012-05-28T08:09:56 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-28T08:09:59 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-28T08:27:42 -!- pelrun [~pelrun@14-202-70-213.static.tpgi.com.au] has joined ##stm32
2012-05-28T08:28:57 < pelrun> dammit st, if you release an application note that references an accompanying code example, actually make the code available for download!
2012-05-28T08:28:59 < pelrun> grrr
2012-05-28T08:30:20 < pelrun> aha, found the damn thing
2012-05-28T09:40:37 -!- cjbaird [~cjb@ppp121-44-104-119.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-28T09:56:21 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has quit [Quit: Ex-Chat]
2012-05-28T09:59:45 -!- upgrdman [~upgrdman@71-83-181-206.dhcp.mtpk.ca.charter.com] has joined ##stm32
2012-05-28T09:59:45 -!- upgrdman [~upgrdman@71-83-181-206.dhcp.mtpk.ca.charter.com] has quit [Changing host]
2012-05-28T09:59:45 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has joined ##stm32
2012-05-28T10:04:54 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-28T10:06:49 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-28T11:50:58 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-28T11:51:00 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-28T11:54:13 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.]
2012-05-28T12:26:03 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-28T13:22:26 -!- pelrun [~pelrun@14-202-70-213.static.tpgi.com.au] has quit [Ping timeout: 265 seconds]
2012-05-28T13:50:28 -!- cjbaird [~cjb@ppp121-44-104-119.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-28T13:57:14 < dongs> http://wvshare.com/datasheet/Test_Socket_PDF/TSOP/OTS-48-0.5-014.pdf
2012-05-28T13:57:16 < dongs> i must be fucking stupid
2012-05-28T13:57:20 < dongs> what is the pitch of holes
2012-05-28T13:57:23 < dongs> in pcb pattern??
2012-05-28T13:57:31 < dongs> 2.54mm between columsn but row pitch is??
2012-05-28T13:57:59 <+Steffanx> I agree
2012-05-28T13:58:43 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-28T13:58:54 < dongs> Laurenceb_ knows
2012-05-28T13:59:02 <+Steffanx> Find his blog
2012-05-28T14:01:56 <+Steffanx> That's probably the worst drawing ever dongs
2012-05-28T14:06:16 < dongs> made in japan
2012-05-28T14:06:20 < dongs> so no surprise
2012-05-28T14:06:49 < Laurenceb_> wut
2012-05-28T14:07:14 <+Steffanx> thut
2012-05-28T14:07:24 < zyp> butt
2012-05-28T14:07:27 <+Steffanx>  ask zlog Laurenceb_
2012-05-28T14:07:37 < Laurenceb_> zlog
2012-05-28T14:07:37 < zlog> Laurenceb_: Log stored at http://tom-itx.dyndns.org:81/~tom-itx/irc/logs/%23%23stm32/2012-05-28.html
2012-05-28T14:08:49 <+Steffanx> The easy way is to buy one and measure it dongs :)
2012-05-28T14:09:08 < dongs> already got one on the way
2012-05-28T14:09:20 <+Steffanx> Or mail Mr. R. Toyama
2012-05-28T14:09:22 < dongs> was gonna make a pcb
2012-05-28T14:09:24 < dongs> haha
2012-05-28T14:18:59 < dongs> http://i.imgur.com/kvjwB.png
2012-05-28T14:19:00 < dongs> i think i got it
2012-05-28T14:19:04 < dongs> now just gotta  renumber pads...
2012-05-28T14:21:46 -!- nopcode [~nop@sushi.unix-ag.uni-kl.de] has joined ##stm32
2012-05-28T14:21:51 < nopcode> hey
2012-05-28T14:21:57 <+Steffanx> HO
2012-05-28T14:22:01 < nopcode> i set up eclipse for stm32 according to a step-by-step guide
2012-05-28T14:22:12 <+Steffanx> but
2012-05-28T14:22:13 < nopcode> now i'm trying to compile an example app and its missing uint32_t etc
2012-05-28T14:22:20 < nopcode> bascically the stdint.h stuff
2012-05-28T14:22:23 < dongs> #include <stdint.h>
2012-05-28T14:22:38 < nopcode> dongs: yeah but why doesnt the official example code do that?
2012-05-28T14:22:42 < dongs> shrug
2012-05-28T14:22:45 < nopcode> i'd like to compile it verbatim
2012-05-28T14:22:45 < zyp> because it's dumb
2012-05-28T14:23:45 < zyp> you don't get uint32_t without either including stdint.h or including something that includes stdint.h
2012-05-28T14:34:50 < nopcode> ok got led blinking to work now
2012-05-28T14:34:52 < nopcode> only took an hour
2012-05-28T14:34:54 < nopcode> ;)
2012-05-28T14:35:21 < nopcode> so can you tell me roughly whats the minimum amount of intialization code that you need for a stm32 chip?
2012-05-28T14:36:05 < nopcode> it seems irq tables, clock, stack...
2012-05-28T14:45:34 < dongs> i just write shit in main() and it works.
2012-05-28T14:49:05 <+Steffanx> You use that stm32 peripheral lib ..
2012-05-28T14:49:11 <+Steffanx> + crap around that
2012-05-28T14:49:58 < Laurenceb_> #include "shit.h"
2012-05-28T14:50:20 <+Steffanx> Ha
2012-05-28T15:03:17 < zyp> nopcode, depends on what you want to do
2012-05-28T15:04:32 < zyp> the bare minimum to blink a led is a vector table with the two first vectors, enable gpio clock, then start blinking the led
2012-05-28T15:05:08 < zyp> but that's not very useful
2012-05-28T15:09:34 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has joined ##stm32
2012-05-28T15:09:37 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-28T15:09:51 < Laurenceb_> you could just use a 555
2012-05-28T15:16:52 <+Steffanx> No, you need more that a 555 to get something out of an stm32 Laurenceb_ ..
2012-05-28T15:31:42 < TitanMKD> nopcode I will advise you to use chibios for STM32
2012-05-28T15:36:05 < nopcode> TitanMKD: i'll have a look
2012-05-28T15:41:40 < TitanMKD> nopcode all work by just building it with tons of samples for STM32 ...
2012-05-28T15:42:05 < TitanMKD> nopcode and there's advanced driver with DMA ...
2012-05-28T16:10:33 < dongs> where the fuck are the chats
2012-05-28T16:11:08 -!- cjbaird [~cjb@ppp121-44-104-119.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-28T16:11:30 <+Steffanx> In wonderland
2012-05-28T16:12:06 <+Steffanx> Ask Alice to find them, will you?
2012-05-28T16:13:43 < Laurenceb_> so i was thinking of a way to excite fandrones
2012-05-28T16:13:55 < Laurenceb_> stick a raspberry pi on a high altitude balloon
2012-05-28T16:14:22 <+Steffanx> What's (a) fandrone ?
2012-05-28T16:15:03 < Laurenceb_> an annoying fanboi
2012-05-28T16:15:31 <+Steffanx> ok...
2012-05-28T16:18:29 < dongs> and do what
2012-05-28T16:18:52 < Laurenceb_> take photos with the camera
2012-05-28T16:19:04 < Laurenceb_> i have gps module and radio modem on my desk
2012-05-28T16:19:19 < Laurenceb_> just needs a simple script and some wires to rig it together
2012-05-28T16:19:32 < Laurenceb_> i could be a god for fanboys
2012-05-28T16:23:12 < Laurenceb_> it could be called pispace
2012-05-28T16:32:22 <+Steffanx> PiSpace_
2012-05-28T16:33:21 < dongs> better yet:
2012-05-28T16:33:23 < dongs> sPIc.
2012-05-28T16:34:29 <+Steffanx> Hehe
2012-05-28T16:46:20 -!- cjbaird [~cjb@ppp121-44-104-119.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-28T16:52:34 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-28T16:52:46 < ratatata> nu
2012-05-28T16:53:17 <+Steffanx> nu
2012-05-28T16:55:16 < BrainDamage> phi
2012-05-28T16:56:27 <+Steffanx> Time to visit a neurophysicist BrainDamage ?
2012-05-28T16:57:01 < BrainDamage> why?
2012-05-28T16:57:54 <+Steffanx> because you can
2012-05-28T17:00:03 < ratatata> who damaged your brain
2012-05-28T17:00:24 < BrainDamage> no-one, why?
2012-05-28T17:00:25 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-28T17:01:00 < BrainDamage> I would instead question why the bulk of users on irc allucinade a trailing "d" to my nick tough
2012-05-28T17:01:33 <+Steffanx> No, but it's possible you have BrainDamage
2012-05-28T17:57:41 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer]
2012-05-28T17:57:57 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-28T18:09:38 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 245 seconds]
2012-05-28T18:12:28 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-28T18:18:08 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 240 seconds]
2012-05-28T18:28:05 <+Steffanx> zyp  in your threading/context switch code, you only safe r4-r11 and the lr register. .. why only these registers and not all of them?
2012-05-28T18:28:49 < zyp> because the rest are stored by hardware
2012-05-28T18:28:58 < zyp> see the comments in the header file
2012-05-28T18:29:57 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 248 seconds]
2012-05-28T18:31:03 <+Steffanx> Things like this are in the armv7/thumb2 documentation?
2012-05-28T18:31:23 < zyp> in EABI r0-3 and r12-15 are caller-save, and the interrupt part of cortex-m complies with EABI
2012-05-28T18:31:38 < zyp> this is why normal functions can be used as ISRs
2012-05-28T18:33:57 <+dekar> Steffanx, http://infocenter.arm.com/help/topic/com.arm.doc.ihi0042d/IHI0042D_aapcs.pdf
2012-05-28T18:34:01 <+dekar> page 15 for example
2012-05-28T18:35:32 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-28T18:35:44 -!- LawrenceSeattle [~lawrence@216.243.49.130] has quit [Ping timeout: 252 seconds]
2012-05-28T18:36:18 < Laurenceb_> http://diydrones.com/profiles/blogs/working-on-an-imu
2012-05-28T18:36:24 < Laurenceb_> nice imu for you dongs
2012-05-28T18:36:27 < Laurenceb_>   /troll
2012-05-28T18:38:46 <+Steffanx> I still don't really get it, but i'll try to figure out some way .. thanks anyway zyp
2012-05-28T18:39:20 < zyp> Steffanx, it's easy
2012-05-28T18:39:45 < zyp> r0-3 and r12-15 are already pushed by the cpu before the ISR is called
2012-05-28T18:39:46 <+Steffanx> I only read something about it in the document dekar linked
2012-05-28T18:39:56 < zyp> so you don't need to push them a second time
2012-05-28T18:40:11 < Laurenceb_> so how do you save them tho?
2012-05-28T18:40:19 < zyp> Laurenceb_, huh?
2012-05-28T18:40:19 < Laurenceb_> i mena they are pushed to stack right?
2012-05-28T18:40:25 < zyp> yes
2012-05-28T18:40:36 < Laurenceb_> so dont you have to save them somewhere?
2012-05-28T18:40:43 < zyp> right there.
2012-05-28T18:40:46 < Laurenceb_> hmm
2012-05-28T18:40:50 <+Steffanx> Ah, yeah /.. now it's more clear :)
2012-05-28T18:40:55 < zyp> that's why each thread has each own stack
2012-05-28T18:40:59 < Laurenceb_> ohhhhh
2012-05-28T18:41:04 < Laurenceb_> it makes sense now i see
2012-05-28T18:41:12 <+Steffanx> This is described in the armv7 docs zyp ? :)
2012-05-28T18:41:14 < zyp> inactive threads have the register contents stored at the bottom of the stack
2012-05-28T18:41:40 < zyp> Steffanx, yes, but I don't remember exactly where
2012-05-28T18:42:54 < zyp> context switching in practice means that you push everything to the active stack, switch to another stack, then pop everything from there
2012-05-28T18:43:46 <+Steffanx> Yes, that's obvious, i just didn't know about the hw saved registers
2012-05-28T18:44:48 < zyp> without hw saved registers, ISRs would overwrite otherwise used registers :p
2012-05-28T18:47:43 < Laurenceb_> lol theres a wasp on my light
2012-05-28T18:47:52 < Laurenceb_> which is kind of wasp nest shaped
2012-05-28T18:47:53 <+Steffanx> Thanks for the info
2012-05-28T18:48:02 <+Steffanx> :P
2012-05-28T18:48:16 < Laurenceb_> its got the wrong nest
2012-05-28T18:49:19 < dongs> haha xmos
2012-05-28T18:49:24 <+Steffanx> Why would it overwrite used registers? Can't you just saved them yourself, it if didn't do it in hw zyp ?
2012-05-28T18:49:27 < dongs> 1msps ADC???
2012-05-28T18:49:30 < dongs> what shitheap
2012-05-28T18:49:41 < dongs> and bullshit fucking pcb standoffs that arent even parallel
2012-05-28T18:49:42 -!- LawrenceSeattle [~lawrence@dsl081-162-155.sea1.dsl.speakeasy.net] has joined ##stm32
2012-05-28T18:51:51 < zyp> Steffanx, sure, but that would be a different ABI from EABI
2012-05-28T18:53:56 < zyp> on other architectures that is usually the case
2012-05-28T18:54:45 < zyp> that is why ISRs require either assembly preambles or attributes to tell the compiler to generate the correct preambles
2012-05-28T18:55:15 < zyp> (or why we don't need this on cortex-m)
2012-05-28T18:56:53 -!- cjbaird [~cjb@ppp121-44-104-119.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-28T19:04:50 < jpa-> yeah, on cortex-m3 interrupts can almost be normal functions.. i think some stack alignment issues may need special code though
2012-05-28T19:08:21 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds]
2012-05-28T19:10:06 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-28T19:13:18 < Laurenceb_> http://i.imgur.com/kTkOh.png
2012-05-28T19:13:25 < Laurenceb_> right ready to send off
2012-05-28T19:16:22 < jpa-> what are those unaligned pads on the blue layer in the bottom right corner?
2012-05-28T19:17:21 < Laurenceb_> uSD card socket
2012-05-28T19:17:27 < jpa-> strange
2012-05-28T19:23:40 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-28T19:25:12 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [Client Quit]
2012-05-28T19:35:11 < Tectu> wooohoooo, GLCD works with changing portrait/landscape mode now :)
2012-05-28T19:42:38 <+Steffanx> One 'word' Laurenceb_ :
2012-05-28T19:42:41 <+Steffanx> 4-layers :P
2012-05-28T19:42:49 < Tectu> Steffanx, again? :D
2012-05-28T19:43:03 <+Steffanx> Yeah, but the shows his board again
2012-05-28T19:43:29 < jpa-> Steffanx: what do you have to show tonight? :)
2012-05-28T19:44:33 < Tectu> Laurenceb_, what's the width of the lanes?
2012-05-28T19:44:47 < Laurenceb_> 8mil
2012-05-28T19:45:00 < Tectu> american?
2012-05-28T19:45:04 < Laurenceb_> 8mil traces, 8 mil separation
2012-05-28T19:45:12 < Laurenceb_> yes - everyone used mil for pcb
2012-05-28T19:45:14 < dongs> pretty impressiev for eagle.
2012-05-28T19:45:34 < Tectu> Laurenceb_, sure, me too, but damn, start to use metric units like the rest of the world :d
2012-05-28T19:45:46 < Tectu> dongs, nand working?
2012-05-28T19:45:55 < dongs> had other shit to deal wiht today.
2012-05-28T19:45:57 < dongs> status: unchanged
2012-05-28T19:46:02 < Tectu> okay
2012-05-28T19:46:02 < dongs> i got some random-ish looking data out of it
2012-05-28T19:46:10 < dongs> i think timings are still fucked.
2012-05-28T19:46:25 < Tectu> Laurenceb_, i guess you don't etch that yourself?
2012-05-28T19:46:31 < dongs> haha.
2012-05-28T19:46:33 < Laurenceb_> lol
2012-05-28T19:46:34 < dongs> k bedtime
2012-05-28T19:46:35 < Tectu> dongs, is that hard to calculate yourself?
2012-05-28T19:46:38 < Laurenceb_> pcbtrain
2012-05-28T19:46:40 < dongs> calculate wat
2012-05-28T19:46:43 < dongs> timings?
2012-05-28T19:46:43 < dongs> well
2012-05-28T19:46:45 < Tectu> yeah
2012-05-28T19:46:46 < dongs> if tehre was a fucking appnote
2012-05-28T19:46:49 < dongs> for F2xx
2012-05-28T19:46:52 < Tectu> ah
2012-05-28T19:46:53 < Tectu> i see
2012-05-28T19:46:57 < dongs> there is on for F10x and it made no sense to me
2012-05-28T19:46:57 < Tectu> should that be the same for F1?
2012-05-28T19:47:22 < jpa-> F2xx is quite different from F1xx IIRC
2012-05-28T19:47:27 < Tectu> F2 is F1 with 32 bit timers, lcd interface, cam interface and encryption unit, afaik?
2012-05-28T19:47:29 < dongs> http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/APPLICATION_NOTE/CD00200423.pdf
2012-05-28T19:47:45 < Tectu> oh, just thought it's more features F1
2012-05-28T19:47:56 < dongs> page 24
2012-05-28T19:48:14 < dongs> >
2012-05-28T19:48:15 < dongs> 01:46 < dongs> there is on for F10x and it made no sense to me
2012-05-28T19:48:16 < dongs> err
2012-05-28T19:48:22 < Tectu> lol woot?
2012-05-28T19:48:23 < dongs> > Hence, we have the following equations following the NAND512W3A NAND datasheet
2012-05-28T19:48:28 < dongs> ????????????????//////
2012-05-28T19:48:36 < dongs> that shit is wtf + 1
2012-05-28T19:48:59 < Tectu> do you want the project i got with my board?
2012-05-28T19:49:06 < dongs> so anyway, i will have to re-read that but it didnt make much sense first 3 times i read it
2012-05-28T19:49:14 < dongs> Tectu: i got all the waveshare warez on dvd
2012-05-28T19:49:17 < dongs> including a nand project
2012-05-28T19:49:21 < Tectu> ah, good
2012-05-28T19:49:33 < dongs> there's nothing unique tehre
2012-05-28T19:49:35 < Tectu> is it just me or are their codes fucked up unreadable nosense stuff?
2012-05-28T19:49:38 < dongs> they stole/renamed some ST sampel code
2012-05-28T19:49:48 < dongs> its st sample code, for the most part ;0
2012-05-28T19:50:00 < Tectu> ah :D
2012-05-28T19:51:42 < jpa-> ah, ST sample code, known for clarity and good programming habits
2012-05-28T19:52:03 < Tectu> :D
2012-05-28T19:52:05 < dongs> shrug
2012-05-28T19:52:07 < dongs> anyway passing out bbl
2012-05-28T19:52:13 <+Steffanx> Time for you to go to ST jpa-
2012-05-28T19:53:57 < Tectu> shouldn't zyp do the job as well?
2012-05-28T19:55:02 <+Steffanx> He already works for something partially owned by ST
2012-05-28T19:56:29 <+Steffanx> */something/a company
2012-05-28T19:56:54 < jpa-> STeffanx
2012-05-28T19:57:39 -!- LawrenceSeattle [~lawrence@dsl081-162-155.sea1.dsl.speakeasy.net] has quit [Ping timeout: 245 seconds]
2012-05-28T19:57:43 <+Steffanx> Yesterday, I heard there was a cartoon about me in Russia
2012-05-28T19:57:49 <+Steffanx> Uncle Steffan :)
2012-05-28T20:10:55 < BrainDamage> I have a friend that works in ST
2012-05-28T20:11:12 < BrainDamage> altought not in the software development, he does layout for digital circuits
2012-05-28T20:11:35 < BrainDamage> he asked me if I wanted to interview for something code related
2012-05-28T20:11:40 < BrainDamage> on stm32
2012-05-28T20:12:33 -!- LawrenceSeattle [~lawrence@216.243.49.130] has joined ##stm32
2012-05-28T20:13:56 < zyp> Laurenceb_, looks like most of your signals does not run over ground planes, that makes for pretty shitty return paths
2012-05-28T20:14:36 < Laurenceb_> most of the signals are digital
2012-05-28T20:15:04 < Laurenceb_> but yeah it needs a bit of tweaking
2012-05-28T20:15:56 < zyp> shitty routing of digital signals means lots of noise emitted that will affect your analog signals
2012-05-28T20:22:26 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-28T20:23:42 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-28T20:27:57 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: .]
2012-05-28T20:30:39 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-28T20:40:27 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 250 seconds]
2012-05-28T20:56:30 -!- tavish [~tavish@59.177.3.131] has joined ##stm32
2012-05-28T20:56:30 -!- tavish [~tavish@59.177.3.131] has quit [Changing host]
2012-05-28T20:56:30 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-28T20:58:02 -!- tavish [~tavish@unaffiliated/tavish] has quit [Client Quit]
2012-05-28T21:06:47 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit []
2012-05-28T21:19:11 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-28T21:47:59 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-28T21:48:27 -!- neuro-sys [~neuro@88.241.37.225] has joined ##stm32
2012-05-28T21:48:31 -!- neuro-sys [~neuro@88.241.37.225] has quit [Changing host]
2012-05-28T21:48:32 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-28T21:50:02 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-28T21:55:02 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: .]
2012-05-28T22:03:23 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds]
2012-05-28T22:04:19 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-28T22:22:17 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-28T22:33:26 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 265 seconds]
2012-05-28T22:52:56 -!- izua [~izua@86.121.85.94] has joined ##stm32
2012-05-28T22:52:56 -!- izua [~izua@86.121.85.94] has quit [Changing host]
2012-05-28T22:52:56 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-28T22:52:59 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-28T22:57:28 <+Steffanx> flyback- is on drugs again
2012-05-28T22:57:47 <+Steffanx> He, dutchlandish
2012-05-28T23:14:27 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer]
2012-05-28T23:17:25 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-28T23:44:26 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
--- Day changed Tue May 29 2012
2012-05-29T00:25:04 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds]
2012-05-29T00:27:10 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-29T00:30:39 -!- peabody128 [~peabody12@128.249.96.123] has joined ##stm32
2012-05-29T00:34:29 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 244 seconds]
2012-05-29T00:34:29 -!- peabody128 is now known as peabody124
2012-05-29T00:41:49 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds]
2012-05-29T00:43:59 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-29T00:45:03 -!- peabody124 [~peabody12@128.249.96.123] has quit [Remote host closed the connection]
2012-05-29T00:45:20 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-29T00:54:18 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds]
2012-05-29T00:56:18 -!- tavish [~tavish@59.177.1.32] has joined ##stm32
2012-05-29T00:56:18 -!- tavish [~tavish@59.177.1.32] has quit [Changing host]
2012-05-29T00:56:18 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-29T01:02:27 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 256 seconds]
2012-05-29T01:03:13 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-29T01:04:33 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |]
2012-05-29T01:05:21 < Tectu> someone arround?
2012-05-29T01:06:20 < blkcat> ?
2012-05-29T01:06:30 < Tectu> why do we use __inline exactly?
2012-05-29T01:06:47 < karlp> because we thinkwe're smarter than the compiler
2012-05-29T01:06:50 < karlp> sometimes we are.
2012-05-29T01:07:01 < Tectu> karlp, what are all the adventages?
2012-05-29T01:07:06 < karlp> it's a hint that the function should be,....... inlined, rather than a function call
2012-05-29T01:07:13 < Tectu> i know what it does
2012-05-29T01:07:23 < karlp> so, what do you need to kno wthen?
2012-05-29T01:07:26 < Tectu> but what is the adventage beside that we don't need to move all the stuff to stack etc. etc.
2012-05-29T01:07:33 < Tectu> karlp, the adventages and reasons
2012-05-29T01:07:39 < karlp> you've just listed them.
2012-05-29T01:07:58 < Tectu> only that?
2012-05-29T01:08:07 < karlp> it's a space vs speed tradeoff
2012-05-29T01:08:18 < karlp> no function call overhead, but the function body has to be repeated for every call.
2012-05-29T01:08:33 < Tectu> yeah, but that are mostly small functions, i guess
2012-05-29T01:08:42 < karlp> compilers can sometimes make this decision themselves, based on -O3 vs -Os,
2012-05-29T01:09:21 < Tectu> never really got into that stuff
2012-05-29T01:09:25 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 248 seconds]
2012-05-29T01:09:28 < karlp> so, don't worry then
2012-05-29T01:09:32 < Tectu> i mean read deep into that topic
2012-05-29T01:09:37 < Tectu> i know that it's optimizing etc.
2012-05-29T01:09:39 < karlp> again, so don't worry then.
2012-05-29T01:09:42 < Tectu> but i use -0s like anybody else
2012-05-29T01:09:50 < karlp> until you run out of space or performance, you don't need to worry
2012-05-29T01:09:59 < karlp> and there's more things that you can worry about instead
2012-05-29T01:10:20 < Tectu> for example?
2012-05-29T01:10:29 < karlp> making things work?
2012-05-29T01:10:59 < Tectu> lol
2012-05-29T01:11:07 < Tectu> karlp, working on my GLCD library :)
2012-05-29T01:11:16 < Tectu> just brought landscape/portrait mode switching to work
2012-05-29T01:11:23 < Tectu> going straight forward :)
2012-05-29T01:11:32 < karlp> you're doing better than me then :)
2012-05-29T01:12:00 < Tectu> why?
2012-05-29T01:12:34 < Tectu> it's a small thing which people like you could do in a few hours i guess
2012-05-29T01:12:40 < karlp> hah
2012-05-29T01:13:10 < Tectu> just because your actual project dosen't work at the moment, dosen't mean that i do better than you. I don't thing that i will do better than you, jpa or zyp ever in my life :/
2012-05-29T01:13:17 < Tectu> you guys are just awesome :)
2012-05-29T01:17:20 < Tectu> what are you hacking at at the moment, karlp ?
2012-05-29T01:18:52 < karlp> I'm failing abyssmally at converting some arduino code to plain avr code. so I haven't even gotten to the stage of making it work on my f100 board.
2012-05-29T01:19:13 < karlp> so, I'm currently not doing anything at all.
2012-05-29T01:19:32 < Tectu> wait, what?
2012-05-29T01:19:39 < Tectu> you try to port arduino to STM32?
2012-05-29T01:19:56 < karlp> no, some sensor driver code that was written for arduino
2012-05-29T01:24:06 < Tectu> well, arduinocode is easy to read, isn't it?
2012-05-29T01:24:11 < Tectu> don't see why you fail at it
2012-05-29T01:33:28 < zyp> no, arduinocode is usually horribly messy :p
2012-05-29T01:34:20 < blkcat> oh arduino
2012-05-29T01:34:23 < blkcat> a pox on your house
2012-05-29T01:36:18 < zyp> on the topic of function inlining; a lot of functions are really trivial, to the point where the function body itself is pretty much as small as a function call, so there is really no advantage of not inlining them
2012-05-29T01:36:47 < blkcat> the same effect can be accomplished by defining a preprocessor macro instead, correct?
2012-05-29T01:36:58 < blkcat> i've always wondered about that.
2012-05-29T01:37:21 < zyp> yes
2012-05-29T01:37:28 < zyp> and I hate those
2012-05-29T01:38:12 < zyp> I'm of the opinion that function inlining is a way better solution to that problem
2012-05-29T01:39:47 < blkcat> why's that?
2012-05-29T01:39:52 < blkcat> easier to debug, or?
2012-05-29T01:41:35 < zyp> several reasons
2012-05-29T01:42:47 < zyp> first of all, I don't see any need of adding preprocessor mess when it's not needed
2012-05-29T01:48:43 < zyp> secondly, I like my function arguments to have types
2012-05-29T01:52:13 < zyp> type checking of arguments are nice
2012-05-29T01:52:54 < zyp> and in C++ it allows for function overloading based on function types
2012-05-29T01:53:34 < blkcat> aha. :)
2012-05-29T01:54:00 < zyp> see for instance my RCC::enable() function here: http://cgit.jvnv.net/suzumebachi/tree/hal/rcc.h?h=stm32f4
2012-05-29T01:56:03 < zyp> it's just a single read-modify-write, so it's trivial enough that there's no reason to not inline it, and the argument type selects which one will be inlined
2012-05-29T02:08:24 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 244 seconds]
2012-05-29T02:13:41 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-29T02:16:39 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32
2012-05-29T02:25:02 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 244 seconds]
2012-05-29T02:51:49 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 245 seconds]
2012-05-29T02:54:56 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-29T03:33:56 < dongs> trollery
2012-05-29T03:35:13 < BrainDamage> karlp: you could try the superlazy way and link it to libmaple?
2012-05-29T03:37:43 -!- danielson [danielson@D-128-208-62-165.dhcp4.washington.edu] has joined ##stm32
2012-05-29T03:41:20 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-29T04:31:40 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-29T04:32:00 -!- pelrun [~pelrun@14-202-70-213.static.tpgi.com.au] has joined ##stm32
2012-05-29T04:33:06 -!- LawrenceSeattle_ [~lawrence@216.243.49.130] has joined ##stm32
2012-05-29T04:36:48 -!- LawrenceSeattle [~lawrence@216.243.49.130] has quit [Ping timeout: 244 seconds]
2012-05-29T04:36:48 -!- LawrenceSeattle_ is now known as LawrenceSeattle
2012-05-29T04:42:08 -!- peabody124 [~peabody12@128.249.96.21] has quit [Quit: peabody124]
2012-05-29T05:24:29 -!- cjbaird [~cjb@ppp121-44-104-119.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-29T05:25:46 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 244 seconds]
2012-05-29T05:26:38 -!- LawrenceSeattle [~lawrence@216.243.49.130] has quit [Quit: LawrenceSeattle]
2012-05-29T05:49:05 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-29T05:50:10 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-29T05:56:32 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32
2012-05-29T05:56:47 < R2COM> im trying to udnerstand the register mapping of stm32f4
2012-05-29T05:57:00 < R2COM> im looking at page 50, with register boundaries
2012-05-29T05:57:22 < R2COM> it says: 0x4000 0400 - 0x4000 07FF TIM3
2012-05-29T05:57:49 < R2COM> the difference between those two addresses is 3ff = 1023, so there are 1024 bits reserved for TIM3 register
2012-05-29T05:58:59 < R2COM> those are supposed to be the bits for TIM3_CR1, TIM3_CR2...and so on so on
2012-05-29T05:59:01 < R2COM> now
2012-05-29T05:59:31 < R2COM> i go to page 412, where i see TIMx register map
2012-05-29T05:59:52 < R2COM> and i see 24 rows of Different TIMx registers, for each one there are 32 bit reserved (from 0 to 31)
2012-05-29T06:00:19 < R2COM> now, 24 * 32 = 768, but not 1024
2012-05-29T06:00:48 < R2COM> so... how come they say in register boundaries that 0x4000 0400 - 0x4000 07FF TIM3 , because that difference is 1024 bits...not 768?
2012-05-29T06:01:09 < pelrun> they probably aren't packed tight
2012-05-29T06:01:10 < R2COM> or is it that they reserved 1024 bits, but used only 768, or what?
2012-05-29T06:01:15 < pelrun> that
2012-05-29T06:01:28 < pelrun> they aren't real memory locations
2012-05-29T06:01:31 < R2COM> shit why dont they state such things
2012-05-29T06:01:46 < pelrun> so they assign the addresses based on what makes the decoding easy
2012-05-29T06:01:49 < R2COM> you mean 768 bits are real, but the rest up to 1023 are not?
2012-05-29T06:02:06 < pelrun> using them would be undefined.
2012-05-29T06:02:47 < R2COM> they should at least state that
2012-05-29T06:02:52 < pelrun> why?
2012-05-29T06:03:04 < R2COM> for example in TIMx memory map register they state the RESERVED bits, now i know they dont have use
2012-05-29T06:03:10 < R2COM> why? for goddamn consistency
2012-05-29T06:03:21 < pelrun> they mention the bits that do have use
2012-05-29T06:04:07 < R2COM> then they should do it same way in other places of datasheet
2012-05-29T06:04:10 < pelrun> if you try to use an address that doesn't have an explicit description, then you're asking for undefined behaviour by definition
2012-05-29T06:04:17 < R2COM> ....
2012-05-29T06:04:18 < pelrun> ah
2012-05-29T06:04:19 < R2COM> i know that
2012-05-29T06:04:37 < pelrun> there's a difference between reserved bits in a particular word where others are defined
2012-05-29T06:04:40 < R2COM> im just saying this shit messes up, they should be consistent
2012-05-29T06:04:51 < pelrun> and a memory region where every bit is unused/reserved/undefined
2012-05-29T06:04:58 < R2COM> yes
2012-05-29T06:05:39 < pelrun> you shouldn't be trying to infer the location of TIM4 by the location of TIM3 and the number of bits it uses
2012-05-29T06:05:48 < pelrun> which is about the only thing that would affect
2012-05-29T06:05:50 < R2COM> or do for example: 0 - 3fa: bla bla bla, 3fa - 3ff: reserved
2012-05-29T06:06:08 < R2COM> ..what you mean?
2012-05-29T06:06:36 < pelrun> all the unused bits are at the end of that memory region
2012-05-29T06:06:53 < R2COM> for example:
2012-05-29T06:06:54 < R2COM> 0x4000 0800 - 0x4000 0BFF TIM4 0x4000 0400 - 0x4000 07FF TIM3 0x4000 0000 - 0x4000 03FF TIM2
2012-05-29T06:06:56 < pelrun> the ony reason you know it's there is because you looked at the next register along
2012-05-29T06:07:10 < R2COM> now, if i want to work, lets say with TIM3
2012-05-29T06:07:40 < R2COM> i go to page 412, and look at TIMx register map, but i "assume" that i work with TIM3
2012-05-29T06:07:40 < pelrun> then you know that TIM3_BASE_ADDR+whatever = address you want to work with
2012-05-29T06:07:55 < pelrun> and then there's no problem
2012-05-29T06:07:59 < R2COM> except that i keep in mind that all those stuff occurs between 0x4000 0400 - 0x4000 07FF
2012-05-29T06:08:08 < pelrun> well there's your problem
2012-05-29T06:08:30 < pelrun> you're using the TIM4 base address to derive the end of that region
2012-05-29T06:09:02 < pelrun> which is erroneous
2012-05-29T06:09:16 < pelrun> TIM3 base address + length of TIM3 registers = end of TIM3 region
2012-05-29T06:09:41 < R2COM> then why would they show boundaries for registers on page 50?
2012-05-29T06:10:02 < pelrun> hang on, I'll actually have to look at the pdf
2012-05-29T06:10:28 < R2COM> revision of my pdf is: Doc ID 018909 Rev 1
2012-05-29T06:10:31 < pelrun> because it's easy
2012-05-29T06:10:33 < R2COM> 1300 page manual
2012-05-29T06:10:54 < pelrun> it's just for reference purposes, not for actual usage
2012-05-29T06:11:19 < pelrun> and if they add TIM3 registers to the end on a new chip, they've got room to do it without having to move or split regions
2012-05-29T06:13:09 < R2COM> so, the amount of bits reserved for TIM3 is 1024?
2012-05-29T06:13:35 < pelrun> reserved, but not necessarily used
2012-05-29T06:13:42 < R2COM> yes
2012-05-29T06:14:32 < R2COM> so it seems TIM2 starts first
2012-05-29T06:14:45 < R2COM> or...peripheral base starts with TIM2
2012-05-29T06:14:53 < R2COM> i see that from stm32f4xx.h file
2012-05-29T06:15:11 < R2COM> by the way, do you use CMSIS or your rewrote the whole stuff by yourself?
2012-05-29T06:15:19 < pelrun> cmsis right now
2012-05-29T06:15:36 < pelrun> because expedient
2012-05-29T06:15:41 < R2COM> you think its worth it to spend time and rewrote all that shit?
2012-05-29T06:16:00 < pelrun> personal preference, really
2012-05-29T06:16:10 < R2COM> yeah, been asking several people
2012-05-29T06:16:25 < R2COM> it seems to me so far by skimming through all that code, that its all about redefenition
2012-05-29T06:16:38 < pelrun> oh, cmsis is purely register definitions
2012-05-29T06:16:41 < R2COM> i dont see real performance issue potential in rewriting CMSIS
2012-05-29T06:16:49 < pelrun> there isn't any code there
2012-05-29T06:16:54 < R2COM> yeah
2012-05-29T06:17:11 < pelrun> just a potential licensing issue
2012-05-29T06:17:20 < R2COM> you develop in windows or linux?
2012-05-29T06:17:21 < pelrun> stdperiph is another kettle of fish entireley
2012-05-29T06:17:33 < pelrun> windows is my main desktop
2012-05-29T06:17:38 < R2COM> i think im using CMSIS not stdperiph
2012-05-29T06:17:54 < R2COM> pelrun: which tools you use for stm32? which software and hardware?
2012-05-29T06:17:57 < pelrun> if you're meddling with registers directly, then yes
2012-05-29T06:18:15 < pelrun> I've got codesourcery g++ lite and eclipse
2012-05-29T06:18:22 < R2COM> and for debug?
2012-05-29T06:18:41 < pelrun> texane/stlink and the codesourcery gdb + eclipse
2012-05-29T06:18:56 < R2COM> i thought texane stlink works only under Linux?
2012-05-29T06:19:03 < pelrun> keep in mind I'm only just starting to get this stuff working myself
2012-05-29T06:19:04 < R2COM> im using it in Linux
2012-05-29T06:19:11 < pelrun> nope, it'll compile under mingw too
2012-05-29T06:19:16 < R2COM> oh...
2012-05-29T06:19:31 < R2COM> but will texane tools allow you to debug under windows?
2012-05-29T06:19:36 < pelrun> sure
2012-05-29T06:19:41 < pelrun> windows doesn
2012-05-29T06:19:44 < pelrun> n't care
2012-05-29T06:19:54 < R2COM> what speed do you get when loading with texane under windows?
2012-05-29T06:19:57 < pelrun> it's using libusb under the hood, which has a proper windows port
2012-05-29T06:20:04 < pelrun> guh, 250 bytes/sec
2012-05-29T06:20:15 < pelrun> but that seems to be an issue with the F4, not windows
2012-05-29T06:20:16 < R2COM> yeah me approximately same 233bytes/sec under Linux
2012-05-29T06:20:26 < pelrun> at least according to karlp
2012-05-29T06:20:43 < pelrun> I sent him an f4 binary to test
2012-05-29T06:20:52 < R2COM> who is karlp?
2012-05-29T06:20:59 < pelrun> texane
2012-05-29T06:21:10 < R2COM> ok
2012-05-29T06:21:13 < pelrun> i.e. the guy who wrote stlink
2012-05-29T06:25:47 < R2COM> so right now im debugging
2012-05-29T06:25:48 < R2COM> and
2012-05-29T06:25:56 < R2COM> lets say i want to see the contents of the TIM3 register
2012-05-29T06:26:08 < R2COM> particularly
2012-05-29T06:26:23 < R2COM> TIM3_CR1
2012-05-29T06:26:48 < R2COM> i did this: p/x *(uint32_t *) 0x40000400
2012-05-29T06:27:02 < R2COM> it returned 0x81 = 010000001
2012-05-29T06:27:55 < R2COM> which kind of seems reasonable with software settings in code...
2012-05-29T06:27:56 < R2COM> well..
2012-05-29T06:29:16 < pelrun> and?
2012-05-29T06:30:16 < pelrun> also I came across libDEBUG somewhere in the stdperiph examples, which gives C definitions for a lot of those registers (so you can use the symbols directly in gdb)
2012-05-29T06:33:13 < R2COM> and nothing i made sure it all maps correctly now
2012-05-29T06:33:30 < R2COM> you mean not #define like definitions or?
2012-05-29T06:33:45 < R2COM> stdperiph is ...where one gets it from ST as well ?
2012-05-29T06:39:00 < pelrun> yeah, C symbols that gdb can access
2012-05-29T06:39:15 < pelrun> stdperiph should be in the software section for the F4
2012-05-29T06:42:10 < R2COM> so, its like there are two options stdperiph OR CMSIS ?
2012-05-29T06:42:42 < pelrun> no
2012-05-29T06:42:52 < pelrun> stdperiph is a code library on top of cmsis
2012-05-29T06:43:19 < pelrun> so you don't have to use the registers
2012-05-29T06:43:38 < pelrun> although it's not really production ready hardened code
2012-05-29T06:44:34 < pelrun> it just happens to have an example that gives C symbols for the registers
2012-05-29T06:45:09 < R2COM> well now i have some feeling its better then not to mess with stdperiph
2012-05-29T06:45:17 < R2COM> and start off and move on with just CMSIS
2012-05-29T06:45:24 < pelrun> I dunno
2012-05-29T06:45:27 < pelrun> I'm using it
2012-05-29T06:45:44 < pelrun> I just make sure to read the bits I'm using and understand them
2012-05-29T07:03:42 < R2COM> how do you run in gdb one line of code at a time?
2012-05-29T07:06:12 < pelrun> I haven't been using commandline gdb, so I can't tell you :)
2012-05-29T07:06:36 < R2COM> wait, what do you use?
2012-05-29T07:06:45 < pelrun> the eclipse debug gui
2012-05-29T07:06:54 < pelrun> which talks to gdb behind the scenes
2012-05-29T07:06:56 < R2COM> does it have nice convenient debug gui?
2012-05-29T07:07:04 < pelrun> it's reasonable
2012-05-29T07:07:23 < pelrun> haven't done too much with it yet, so don't know exactly where the limitations are
2012-05-29T07:07:36 < R2COM> was it easy or pain in the ass to get stlink compile for windows to be able to program and debug?
2012-05-29T07:08:00 < pelrun> not really
2012-05-29T07:08:19 < pelrun> it pretty much just worked
2012-05-29T07:12:06 < dongs> heh 250byte/sec
2012-05-29T07:13:01 < R2COM> yea
2012-05-29T07:13:06 < R2COM> with stlink texane
2012-05-29T07:13:12 < pelrun> it's just a bug, it'll get fixed
2012-05-29T07:13:14 < R2COM> but, its something what works
2012-05-29T07:13:17 < R2COM> at least..
2012-05-29T07:30:08 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection]
2012-05-29T08:03:46 -!- danielson [danielson@D-128-208-62-165.dhcp4.washington.edu] has quit [Ping timeout: 265 seconds]
2012-05-29T09:10:02 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-29T09:26:33 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-29T09:29:18 -!- izua [~izua@86.121.85.94] has joined ##stm32
2012-05-29T09:29:18 -!- izua [~izua@86.121.85.94] has quit [Changing host]
2012-05-29T09:29:18 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-29T09:29:21 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-29T09:29:33 -!- LawrenceSeattle [~lawrence@216.243.49.130] has joined ##stm32
2012-05-29T09:30:14 -!- LawrenceSeattle [~lawrence@216.243.49.130] has quit [Client Quit]
2012-05-29T09:37:30 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has quit [Ping timeout: 246 seconds]
2012-05-29T10:07:11 -!- peabody128 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-29T10:10:17 -!- Randomskk_ [~adam@paladin.randomskk.net] has joined ##stm32
2012-05-29T10:11:04 -!- feurig_ [~don@198.202.31.180] has quit [Ping timeout: 245 seconds]
2012-05-29T10:11:04 -!- Randomskk [~adam@paladin.randomskk.net] has quit [Ping timeout: 245 seconds]
2012-05-29T10:11:04 -!- feurig [~don@198.202.31.180] has joined ##stm32
2012-05-29T10:11:05 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Ping timeout: 245 seconds]
2012-05-29T10:11:05 -!- ben1066_ [~quassel@unaffiliated/ben1066] has quit [Ping timeout: 245 seconds]
2012-05-29T10:11:08 -!- peabody128 is now known as peabody124
2012-05-29T10:11:22 -!- ben1066 [~quassel@unaffiliated/ben1066] has joined ##stm32
2012-05-29T10:16:18 -!- LawrenceSeattle [~lawrence@216.243.49.130] has joined ##stm32
2012-05-29T10:18:15 -!- feurig_ [~don@198.202.31.180] has joined ##stm32
2012-05-29T10:18:52 -!- feurig [~don@198.202.31.180] has quit [Ping timeout: 245 seconds]
2012-05-29T10:22:16 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-29T10:27:10 < nopcode> hey
2012-05-29T10:27:40 < nopcode> for the stm32f4discovery board, can the two usb ports be used freely or is the large (mini?) reserved for power supply & programming?
2012-05-29T10:28:07 < nopcode> and where is this "st-link" functionality implemented? separate IC? rom of the stm32?
2012-05-29T10:29:35 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep]
2012-05-29T10:33:44 < zyp> there is two stm32s on the board
2012-05-29T10:34:08 < zyp> the mini-port is connected to the little F1 which runs the st-link firmware
2012-05-29T10:34:28 < zyp> and the micro port is connected to the large F4 that you program
2012-05-29T10:35:09 < nopcode> wow thats cool. are they selling these things at a loss?
2012-05-29T10:35:18 < nopcode> because i would've expected atleast three or four times the price
2012-05-29T10:36:15 < nopcode> TitanMKD: thanks i'm gonna take a look at chibios
2012-05-29T10:36:50 < zyp> either loss or low-profit
2012-05-29T10:38:42 < nopcode> does chibios have filesystem drivers?
2012-05-29T10:39:05 < cjbaird> nopcode: other companies would've given them out as free samples. :P
2012-05-29T10:39:08 < cjbaird> :)
2012-05-29T10:39:13 < nopcode> "Integration with other open source projects like File Systems, Networking Stacks etc." ah ok
2012-05-29T10:39:29 < nopcode> cjbaird: well i feel a bit bad about sampling stuff
2012-05-29T10:39:35 < nopcode> since this is not what i do for a living ;)
2012-05-29T10:39:41 < cjbaird> nop: same
2012-05-29T10:40:18 < R2COM> first of all, if chip costs N dollars done by some company, it doesnt mean that when same company sells board with 2 of those chips it costs 2*N + PCB ... it costs actually less for them
2012-05-29T10:40:30 < nopcode> though i have to grab a virtex board from digilent at academic pricing before i lose all contact to university ;)
2012-05-29T10:40:30 < R2COM> they might even make money on that stm32f4discovery
2012-05-29T10:40:57 < R2COM> nopcode: im sure they might agree to sell them to *former* students too
2012-05-29T10:41:57 < nopcode> so this board runs at which frequency? 168 mhz? and it can sample / output at half that rate from GPIOs?
2012-05-29T10:42:19 < R2COM> i just started playing with it, well i think it says 84MHz for IO
2012-05-29T10:42:25 < R2COM> but for this board...not sure
2012-05-29T10:42:26 < nopcode> can you sample individual GPIOs or banks of eight directly into ram using DMA?
2012-05-29T10:43:00 < R2COM> also, at this frequency what are you going to sample from outside of board?
2012-05-29T10:43:02 < nopcode> or would you need to abuse the sram interface for that?
2012-05-29T10:43:05 < R2COM> there might be SI problems
2012-05-29T10:43:15 < nopcode> R2COM: just thinking logic analyzers
2012-05-29T10:43:28 < nopcode> just fill up the ram with samples then transfer to PC
2012-05-29T10:43:43 < R2COM> isnt an FPGA a better solution for such stuff rather than mess around with Micro?
2012-05-29T10:43:47 < nopcode> i mean i have a FPGA board but its a PITA to program
2012-05-29T10:43:57 < nopcode> not the core logic but all the communication, setup etc
2012-05-29T10:44:09 < R2COM> well...engineering is PITA by itself
2012-05-29T10:44:11 < R2COM> so..
2012-05-29T10:44:23 < nopcode> yeah but atleast i know my way around C programming ;)
2012-05-29T10:44:49 < R2COM> yeah but its not only about C, im not sure how much delays you have while you do all that through this stm32, and how its going to handle many channels etc
2012-05-29T10:45:00 < R2COM> on the long run, it might be more hassle rather than doing FPGA
2012-05-29T10:45:41 < R2COM> well if your not much into digital architecture, then forget FPGA, yea maybe it makes then more sense for you to deal with stm32
2012-05-29T10:46:53 < nopcode> i alaways wanted to have a small fpga+arm board
2012-05-29T10:47:06 < nopcode> the stm32 could be talking to the fpga using the SRAM interface forex
2012-05-29T10:47:14 < R2COM> or
2012-05-29T10:47:15 < R2COM> SPI
2012-05-29T10:47:18 < nopcode> i assume DMA allows for high-bandwidth copying then
2012-05-29T10:47:20 < zyp> 09:39:04 < cjbaird> nopcode: other companies would've given them out as free samples. :P
2012-05-29T10:47:25 < zyp> ST did that too
2012-05-29T10:47:30 < nopcode> oh
2012-05-29T10:47:33 < zyp> to some regions of the world
2012-05-29T10:47:39 < R2COM> by the way is ST French or Italian company?
2012-05-29T10:48:32 < zyp> both, according to wikipedia
2012-05-29T10:48:37 < zyp> «STMicroelectronics is a French-Italian electronics and semiconductor manufacturer headquartered in Geneva, Switzerland.»
2012-05-29T10:48:45 < dongs> doing logic analyzer with a MCU directly is dumb
2012-05-29T10:48:48 < dongs> thats waht FPGA is for
2012-05-29T10:49:11 < R2COM> nopcode: there is already logic analyzer, why not buy it?
2012-05-29T10:50:07 < dongs> logic analulzer
2012-05-29T10:50:29 < nopcode> R2COM: i wouldnt need it that often that i wanna pay for it
2012-05-29T10:50:38 < nopcode> i saw a good usb one for $400 but thats too much
2012-05-29T10:50:47 < dongs> a good one is a grand at leat
2012-05-29T10:50:50 < R2COM> nopcode: buy cheaper one from ebay, used one
2012-05-29T10:50:54 < dongs> anything less than that is probably shit.
2012-05-29T10:51:03 < nopcode> also dont wanna waste appartment real estate ;)
2012-05-29T10:51:14 < R2COM> whatever.
2012-05-29T10:51:18 < R2COM> good luck then.
2012-05-29T10:52:56 < nopcode> so the memory interface can be abused for parallel sampling?
2012-05-29T10:57:23 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.]
2012-05-29T11:00:46 < dongs> why not?
2012-05-29T11:01:04 < pelrun> dma from a gpio port is trivial
2012-05-29T11:01:55 < pelrun> anyway the openbench logic sniffer I use is only $50
2012-05-29T11:01:59 < pelrun> and works brilliantly
2012-05-29T11:02:11 < dongs> and whats the max sampling rate it can do?
2012-05-29T11:02:25 < nopcode> pelrun: dma from GPIOs work? single pin or also banks of 8?
2012-05-29T11:02:31 < pelrun> 200MHz I think
2012-05-29T11:02:41 < pelrun> nopcode, yeah the whole bank
2012-05-29T11:02:52 < dongs> It's designed to support the SUMP logic analyzer software at the lowest possible cost.
2012-05-29T11:02:56 < dongs> ok no thanks
2012-05-29T11:02:56 < pelrun> since they're bitmapped into a single register word
2012-05-29T11:03:01 < dongs> i have this taiwanese shit that comes with proper windows software
2012-05-29T11:03:05 < dongs> that has protocol decoders for *
2012-05-29T11:03:11 < pelrun> dongs: you don't use the sump app
2012-05-29T11:04:07 < pelrun> http://www.lxtreme.nl/ols/
2012-05-29T11:04:33 < dongs> .targz?
2012-05-29T11:04:45 < pelrun> and you already have an unlocked tek scope and that taiwanese shit
2012-05-29T11:04:57 < dongs> ya, i definitely dont need another logic analyzer
2012-05-29T11:05:03 < dongs> especially not a half-working opensores one
2012-05-29T11:05:16 < pelrun> oh, shut your face
2012-05-29T11:05:21 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 246 seconds]
2012-05-29T11:05:27 < pelrun> that's a completely useless opinion
2012-05-29T11:05:33 < dongs> no
2012-05-29T11:06:21 < dongs> where is a list of all the protocol decoders in that java shite
2012-05-29T11:07:00 < nopcode> wow so DMA works with any peripheral register for input/output? wow.
2012-05-29T11:07:04 < nopcode> thats sweet
2012-05-29T11:09:33 < pelrun> i2c, spi, uart, couple of others
2012-05-29T11:09:39 < dongs> "couple"?
2012-05-29T11:09:52 < pelrun> I didn't bother looking it up
2012-05-29T11:10:06 < pelrun> what protocol do you actually need?
2012-05-29T11:10:35 < pelrun> hmm, jtag too
2012-05-29T11:13:30 < dongs> lets see, the taiwanese shit can do 1wire/7seg/can/flexray/hdaudio/hdmi-cec/hdq/i2c/i2ceeprom-specific/i2s/i80/ide/indicator?/jtag/lcd1602/lin/line encoding/decoding (manchester etc)/lissajaous?/lpc/mdio/microwire/mmc/nec IR/pmbus/ps2/pwm/rc5/rc6/spdif/sdio/serial flash (spi, etc)/smartcard/smbus/spi/ssi/st7668/svid/uart/uni/o/usb1.1
2012-05-29T11:13:40 < pelrun> good for it
2012-05-29T11:13:48 < pelrun> I don't need 90% of that crap
2012-05-29T11:14:05 < pelrun> and anything I do need I could probably implement fairly quickly as an addon module
2012-05-29T11:15:05 < dongs> see, i dont need to "implement" anything when I need to analyze shit, I just run it and it works.
2012-05-29T11:15:14 < dongs> like I needed to dump spi flash the other day from a running system
2012-05-29T11:15:32 < dongs> connected the shit up, grabbed data while it was booting, ran it through serial flash analyzer, and it gave me hex dump of the shit.
2012-05-29T11:15:53 < dongs> or i could have spent a week learning java to code some opensores module.
2012-05-29T11:16:02 < dongs> my time may be worthless but not THAT worthless.
2012-05-29T11:18:08 < pelrun> congratulations
2012-05-29T11:18:48 < dongs> why the hostility?
2012-05-29T11:19:03 < dongs> am i treading on your personal opensource space or something
2012-05-29T11:19:19 -!- dekar [~dekar@dslb-188-107-168-119.pools.arcor-ip.net] has joined ##stm32
2012-05-29T11:19:22 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-29T11:19:36 < pelrun> no, just that you seem to base your criticism on the fact that it's opensource first and foremost
2012-05-29T11:20:09 < pelrun> I've dealt with enough shitty closed source stuff that the option to actually fix something is useful
2012-05-29T11:20:48 < pelrun> closed/open is completely orthogonal to good/bad
2012-05-29T11:20:53 < cjbaird> We're free to base our criticisms of dongs on the fact that he's into NARUTO AND BLEACH :D
2012-05-29T11:21:01 < dongs> ???????????????????
2012-05-29T11:24:50 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-29T11:31:28 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has joined ##stm32
2012-05-29T11:49:38 -!- dekar [~dekar@dslb-188-107-168-119.pools.arcor-ip.net] has quit [Ping timeout: 240 seconds]
2012-05-29T12:07:55 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-29T12:13:51 -!- cjbaird_ [~cjb@ppp121-44-125-219.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-29T12:14:28 -!- cjbaird [~cjb@ppp121-44-104-119.lns20.syd6.internode.on.net] has quit [Ping timeout: 260 seconds]
2012-05-29T12:17:06 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-29T12:18:40 < karlp> pelrun: karlp is not texane :)
2012-05-29T12:18:51 < karlp> karlp is karlp, texane is a guy called laurent.
2012-05-29T12:19:33 -!- pelrun [~pelrun@14-202-70-213.static.tpgi.com.au] has quit [Ping timeout: 246 seconds]
2012-05-29T12:22:01 -!- pelrun [~pelrun@14-202-70-213.static.tpgi.com.au] has joined ##stm32
2012-05-29T12:23:23 < karlp> hmm, I wonder if pelrun even saw what I said...
2012-05-29T12:23:56 < karlp> zyp: I really like that rcc::enable() stuff you've got, those are th sorts of c++ that I really like the look of.
2012-05-29T12:26:31 -!- pelrun [~pelrun@14-202-70-213.static.tpgi.com.au] has quit [Ping timeout: 252 seconds]
2012-05-29T12:30:38 -!- dekar [~dekar@dslb-188-107-168-119.pools.arcor-ip.net] has joined ##stm32
2012-05-29T12:30:42 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-29T12:33:20 < zyp> thanks :)
2012-05-29T12:33:29 < zyp> I try to only use C++ for good, not bad :p
2012-05-29T12:39:45 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer]
2012-05-29T12:41:17 < karlp> I've been tossing up whether it's worth the learning curve to use _some_ c++, like that stuff of yours, to get namespaces and so on, or whether I'll just shoot myself in the foot even more spectacularly :)
2012-05-29T12:41:40 < karlp> currently I'm leaning towards already hving enough complexity in my life,
2012-05-29T12:41:45 < karlp> but it's tempting
2012-05-29T12:42:14 -!- izua [~izua@86.121.85.94] has joined ##stm32
2012-05-29T12:42:14 -!- izua [~izua@86.121.85.94] has quit [Changing host]
2012-05-29T12:42:14 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-29T12:42:15 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-29T12:50:53 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-29T13:21:09 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 246 seconds]
2012-05-29T13:34:41 < Thorn> http://www.theregister.co.uk/2012/05/29/silicon_backdoor/
2012-05-29T13:44:40 < nopcode> "pipeline emission analysis"?
2012-05-29T13:47:25 < Laurenceb> utter bs
2012-05-29T13:52:18 < Thorn> looks like st is not the only one to include extra-useful jtag in their chips
2012-05-29T13:53:48 < Laurenceb> http://www.reghardware.com/2012/05/29/samsung_blunder_causes_galaxy_s_3_pebble_blue_delay/
2012-05-29T13:53:51 < Laurenceb> lmao
2012-05-29T14:15:03 < Laurenceb> wtf
2012-05-29T14:15:09 < Laurenceb> my i2c is dead
2012-05-29T14:15:30 < Laurenceb> it needs clk and interrupts configuring right?
2012-05-29T14:15:42 < Laurenceb> looks like i unclocked something
2012-05-29T14:17:35 < Thorn> gpio clock, afio clock, i2c clock, i2c interrupt enable, nvic config
2012-05-29T14:17:55 < Thorn> my i2c has been working wor more than 2 weeks with no glitches btw
2012-05-29T14:18:05 < Thorn> *for
2012-05-29T14:18:33 < Laurenceb> hmm
2012-05-29T14:18:46 < Laurenceb> the pins are floating
2012-05-29T14:18:50 < Laurenceb> maybe thats bad
2012-05-29T14:19:33 < zyp> missin pullups? :p
2012-05-29T14:20:24 < Laurenceb> it sets start bit, then theres never a start sent interrupt
2012-05-29T14:21:39 < zyp> well, if the clock is not pulled up, I imagine the stm32 might interpret that as a slave stretching the clock
2012-05-29T14:21:44 < Laurenceb> yesa
2012-05-29T14:21:48 < Laurenceb> ah
2012-05-29T14:22:05 < Laurenceb> im trying to test with a bare pcb atm
2012-05-29T14:26:08 -!- corecode_ [~2@0x2c.org] has quit [Ping timeout: 240 seconds]
2012-05-29T14:26:17 -!- corecode [~2@0x2c.org] has joined ##stm32
2012-05-29T14:29:01 < ntfreak> just wondering is anyone using stlink support in OpenOCD ?
2012-05-29T14:31:56 < zyp> not that I've heard of
2012-05-29T14:32:08 < zyp> personally I dislike openocd
2012-05-29T14:33:29 < ntfreak> zyp: can i ask why
2012-05-29T14:33:56 < karlp> because they use tcl
2012-05-29T14:34:00 < zyp> probably mostly a matter of taste
2012-05-29T14:34:24 < zyp> and part of it is probably that I dislike tcl :p
2012-05-29T14:34:57 < karlp> also, because they took chunks of stlink code, put it on openocd, and never even thought to possibly email anyone to see if there was any advice or things that were being worked on, or future plans, or cooperation.
2012-05-29T14:35:18 < karlp> so, they have some quite old stlink code,
2012-05-29T14:35:43 < karlp> and when I asked about it, I was required to pull things out of gerrit somewhere, just to be able to try and test what they thought might work.
2012-05-29T14:35:58 < Thorn> tcl is waaaaaay better than say php
2012-05-29T14:36:16 < karlp> they're not really the same thing.
2012-05-29T14:36:20 < zyp> Thorn, so, what's best of cancer and aids?
2012-05-29T14:36:32 -!- SuicideFunky [~randy@vps-212-153-70-8.twenty-five.nl] has quit [Ping timeout: 244 seconds]
2012-05-29T14:37:50 < Thorn> tcl is neither, it does its job well enough
2012-05-29T14:38:28 -!- SuicideFunky [~randy@vps-212-153-70-8.twenty-five.nl] has joined ##stm32
2012-05-29T14:39:16 < Thorn> I don't particularly love lua but most game engines use it and I can see why
2012-05-29T14:40:55 < ntfreak> the stlink work started with http://capitanio.org/mlink/ - the info that was given to him was given by me (ST released the api's to OpenOCD).
2012-05-29T14:40:56 < ntfreak> The stlink support in OpenOCD is using the new v2 api - again the updated api's were released to OpenOCD from ST.
2012-05-29T14:45:15 < zyp> oh, I didn't realize you were an openocd developer
2012-05-29T14:46:50 < BrainDamage> why not including v1 as well? there's plenty of vl discovery boards around
2012-05-29T14:48:05 < ntfreak> zyp: i am, but just interested in why people choose texane/stlink.
2012-05-29T14:48:05 < ntfreak> zyp: it has been a while since i have used it. what sort of programming speed does it acheive ?
2012-05-29T14:48:14 < nopcode> does stlink on the stm32f4discovery allow for using this ETM tracing feature?
2012-05-29T14:48:51 < ntfreak> BrainDamage: we support both v1 and v2 hardware. ST also has a v1 and v2 api - that is what i am referring to.
2012-05-29T14:49:16 < BrainDamage> ah
2012-05-29T14:49:45 < BrainDamage> is it in a stable release, or should I compile from sources?
2012-05-29T14:49:52 < zyp> ntfreak, it's a while since I used it as well, I got 1-2 kB/s but I've heard reports of ~10kB/s
2012-05-29T14:52:14 < dongs> sup dongs
2012-05-29T14:52:16 < zyp> ntfreak, I started out with openocd+ft2232, then changed to texane/stlink when I needed swd support
2012-05-29T14:53:11 < ntfreak> zyp: Just tested a stm32f4 - 35.846 KiB/s
2012-05-29T14:53:59 < Laurenceb> i hate i2c
2012-05-29T14:54:06 < Laurenceb> still breaking
2012-05-29T14:54:11 < dongs> zyp's i2c workos
2012-05-29T14:54:13 < dongs> works
2012-05-29T14:54:14 < Laurenceb> refuses to send stop
2012-05-29T14:57:30 < ntfreak> nopcode: no - the stlinkv2 hardware does support SWV though - we are working on the software side.
2012-05-29T15:01:01 < karlp> ntfreak: " new v2 api - again the updated api's were released to OpenOCD from ST.
2012-05-29T15:01:07 < karlp> how was that sent to you?
2012-05-29T15:01:08 < dongs> open those sores
2012-05-29T15:01:21 < karlp> texane/stlink implemented the v2 api from some usb trace dumps
2012-05-29T15:01:22 < nopcode> ntfreak: software side? you mean implementing it in openocd?
2012-05-29T15:01:26 < karlp> and that's the same code that's in openocd
2012-05-29T15:01:38 < karlp> so what extra stuff did you get from st, and where is it?
2012-05-29T15:01:57 < karlp> or at least, the texane stuff is the same code that was in the test branches of swd support of openocd
2012-05-29T15:02:04 < karlp> admittedly, I stopped looking at openocd
2012-05-29T15:03:24 < nopcode> so does the stlink hardware on the f4 board support debugging?
2012-05-29T15:03:34 < nopcode> hardware/firmware
2012-05-29T15:03:46 < nopcode> via the main USB port? using like gdb in eclipse?
2012-05-29T15:04:49 < BrainDamage> yes, trough the main usb port, you'll have a software on your pc that will create a gdb server
2012-05-29T15:04:57 < BrainDamage> then you'll attach gdb to that server
2012-05-29T15:06:02 < Laurenceb> oh
2012-05-29T15:06:12 < Laurenceb> i think i reversed sda and scl or something stupid
2012-05-29T15:06:51 < nopcode> BrainDamage: and how does it connect to the hardware? does gdb on the pc support the stlink protocol?
2012-05-29T15:07:15 < BrainDamage> no, you'll need a program which will bridge
2012-05-29T15:07:42 < BrainDamage> which is either st-link, or openocd, in this case it was being discussed about openocd
2012-05-29T15:07:56 < nopcode> oh i see, so the stlink utility supports that? ok
2012-05-29T15:08:14 < BrainDamage> yes, it'll let you flash the device too if you want
2012-05-29T15:08:17 < BrainDamage> https://github.com/karlp/stlink
2012-05-29T15:08:49 < karlp> mine still works, texane master has autotools and afew other fixes for building on other platforms
2012-05-29T15:09:04 < nopcode> wait i thought you were talking about the official windows flashing utility
2012-05-29T15:09:04 < karlp> (texane is "master", I just try and keep mine a little more stable)
2012-05-29T15:09:05 < nopcode> from ST
2012-05-29T15:09:21 < karlp> the software from st called stutil or something can flash, but not debug
2012-05-29T15:09:51 < nopcode> karlp: that's what i thought... so whats the "official" proposed way to debug using stlink?
2012-05-29T15:10:11 < karlp> the way I do it, is using texane/stlink's gdbserver (stutil)
2012-05-29T15:10:19 < karlp> and then attach to that with the gdbserver plugin in netbeans
2012-05-29T15:10:24 < karlp> or gdb from the command line
2012-05-29T15:10:34 < karlp> that works on f1, f2, f4, l1 targets
2012-05-29T15:10:35 < nopcode> yeah but how do people normally do it
2012-05-29T15:10:40 < karlp> including all discovery boards.
2012-05-29T15:10:41 < nopcode> like, commercial people
2012-05-29T15:10:53 < karlp> they buy a jlink or a ulink or an rlink from their tools vnedor
2012-05-29T15:11:04 < karlp> or buy tools that support the stlink directly
2012-05-29T15:11:08 < nopcode> oh ic.
2012-05-29T15:11:51 < nopcode> otoh i think i'll try to stick with printf debugging
2012-05-29T15:11:59 < karlp> bleh: "USB device 'STMicroelectronics STM32 STLink' with UUID {31ab652d-4b8d-4587-b594-e74703ab2856} is busy with a previous request. Please try again later."
2012-05-29T15:12:04 < nopcode> how difficult is it to emulate a serial port via USB on chibios?
2012-05-29T15:12:15 < nopcode> to capture stdout?
2012-05-29T15:13:01 < karlp> I don't know, I don't use chibios, and I kinda have gotten used to having full gdb,
2012-05-29T15:13:19 < karlp> tectu is using chibios, not sure who else here is.
2012-05-29T15:13:20 < nopcode> oh its already part of the OS
2012-05-29T15:13:34 < nopcode> karlp: yeah but i'm not a debugger guy anyways, i prefer stdout
2012-05-29T15:13:43 < zyp> nopcode, it's very easy
2012-05-29T15:13:45 < karlp> I used to be too :)
2012-05-29T15:13:49 < nopcode> i just found the idea of the ETM pretty cool
2012-05-29T15:13:54 < nopcode> but seems i cant use that anyways
2012-05-29T15:13:57 < karlp> then I found out how much more I could to do with gdb
2012-05-29T15:14:11 < Laurenceb> http://www.theregister.co.uk/2012/05/29/science_and_maths_knowledge_makes_you_sceptical/
2012-05-29T15:14:34 < karlp> ETM/SWO/SWV is a work in progress, ntfreak indicates they're working on it in openocd, but I don't know the status.
2012-05-29T15:14:55 < karlp> the USB endpoint is there, it just hasn't been hooked up in any of the free tools I know of yet.
2012-05-29T15:17:26 < zyp> adding support for it should be pretty easy
2012-05-29T15:17:38 < zyp> didn't somebody here work on adding it to texane?
2012-05-29T15:19:49 < karlp> steffan started on it
2012-05-29T15:19:59 < karlp> I plan on having a go, I don't really think it should be too hard,
2012-05-29T15:20:10 < karlp> but I want to get my first and only stm32 board up and running first
2012-05-29T15:20:20 < karlp> I spent too long working on stlink, not enough on my own project :)
2012-05-29T15:20:38 < karlp> I expect it shouldn't be too much more than grabbing the endpoint and dumping lots of data out of it
2012-05-29T15:20:44 < gsmcmullin> I started adding support to blackmagic.
2012-05-29T15:20:47 < karlp> decoding that data will take a little bit more time of course
2012-05-29T15:21:00 < karlp> how far are you gsmcmullin?
2012-05-29T15:21:08 < gsmcmullin> If you can capture the raw data from the bulk endpoint this may be useful: https://github.com/gsmcmullin/magictpa
2012-05-29T15:22:23 < gsmcmullin> It can capture the manchester output on SWO and pass up on a bulk endpoint.
2012-05-29T15:22:43 < gsmcmullin> The link above is a python extension to gdb to capture and decode.
2012-05-29T15:22:59 < gsmcmullin> Can only watch variables at this stage.
2012-05-29T15:23:41 < karlp> that's still awesome :)
2012-05-29T15:24:10 < zyp> interesting
2012-05-29T15:25:34 < Thorn> swv != etm
2012-05-29T15:26:27 < Laurenceb> yeah
2012-05-29T15:26:43 < karlp> python libusb wrappers are good enough for sucking data out of the trace endpoint fast enough?
2012-05-29T15:30:38 < zyp> why wouldn't they be?
2012-05-29T15:31:26 < Thorn> I'd expect the bus itself to be the bottleneck
2012-05-29T15:31:48 < gsmcmullin> The manchester decoder in my firmware falls over first :(
2012-05-29T15:32:22 < gsmcmullin> I stall the endpoint if the host doesn't read fast enough, but I've never seen it happen.
2012-05-29T15:34:16 < karlp> just curious, I thought they should be,
2012-05-29T15:34:31 < karlp> for that matter, I'm not sure if any of stlink needs to be in C at all
2012-05-29T15:35:07 < karlp> not that I'm planning on rewriting it.
2012-05-29T15:35:13 < zyp> :p
2012-05-29T15:35:52 < zyp> I've written most of the host side software for my stuff in python
2012-05-29T15:39:33 < Laurenceb> yeah i2c works again
2012-05-29T15:39:40 < Laurenceb> i just fail at soldering
2012-05-29T15:46:04 < dongs> allright time to watch ironsky
2012-05-29T15:47:07 < karlp> dongs: it's awesome :)
2012-05-29T15:47:10 < karlp> you're gonna love it
2012-05-29T15:47:15 < Laurenceb> lol
2012-05-29T15:47:20 < dongs> im sure
2012-05-29T15:47:25 < dongs> watching 1080p
2012-05-29T15:47:26 < Laurenceb> its funny cuz dongs is a jew
2012-05-29T15:47:59 < Laurenceb> he trolls himself
2012-05-29T15:48:14 < dongs> haha @ swastika base
2012-05-29T15:50:05 < karlp> anyone know what the STM32F3xx is?
2012-05-29T15:50:22 < Laurenceb> huh
2012-05-29T15:50:24 < dongs> haha a nigger
2012-05-29T15:50:25 < Laurenceb> stm32f3?
2012-05-29T15:50:27 < karlp> stlink "CLI" from st, the windows tool, has a Boot1=<zvalue> option
2012-05-29T15:50:41 < karlp> and it says only available on F05x and F3xx
2012-05-29T15:50:43 < Thorn> anybody seen this? http://www.youtube.com/watch?v=_d6KuiuteIA
2012-05-29T15:50:47 < Laurenceb> dongs: im pretty sure its an ic
2012-05-29T15:52:14 < Laurenceb> maybe some cancelled project
2012-05-29T15:52:19 < Tectu> yes, i use chibios, but i don't have time, doing presentation
2012-05-29T15:52:31 < Laurenceb> its not like st dont cancel half their stuff
2012-05-29T15:52:32 < karlp> same with SD12 (selects analog moniutoring, comparison with Bgap 1.2V) on VDD_SD12 power source
2012-05-29T15:52:40 < karlp> sd12 is only available on f3xx
2012-05-29T15:54:20 < dongs> Laurenceb: i got D4R-II
2012-05-29T15:54:32 < karlp> hmm, 2011 investor day pdf refers to it in "general purpose" f2, f3
2012-05-29T15:54:45 < Laurenceb> wazzat?
2012-05-29T15:54:49 < karlp> but a later page talks about f3/f4, L4,
2012-05-29T15:54:56 < karlp> as being cortex M4 parts
2012-05-29T15:55:41 < karlp> also L0,
2012-05-29T15:55:45 < karlp> neat.
2012-05-29T15:57:01 < Laurenceb> "Just to remind you that your annual report is due to submit on 1st June"
2012-05-29T15:57:09 < Laurenceb> piss off and die bitch
2012-05-29T15:57:16  * Laurenceb hits send
2012-05-29T15:57:40 < ntfreak> karlp: had training on the F3 - it is targeting analogue designs
2012-05-29T15:57:59 < Laurenceb> better adc?
2012-05-29T15:58:14 < ntfreak> karlp: 16bit ad etc
2012-05-29T15:58:20 < dongs> stm32f3? what is that
2012-05-29T15:58:21 < Laurenceb> niceee
2012-05-29T15:58:28 < Laurenceb> do want
2012-05-29T15:58:51 < ntfreak> also have a part coming out with onboard tft controller
2012-05-29T15:58:58 < karlp> ntfreak: you mentiioned that the stlink v2 api was provided to you by ST, do you have that anywhere? you might have missed my question earlier?
2012-05-29T16:00:41 < Thorn> but still no sdram emc I imagine
2012-05-29T16:01:25 < Laurenceb> 16bit adc would be awesome
2012-05-29T16:01:34 < ntfreak> Thorn: it sure does
2012-05-29T16:01:55 < Thorn> f3 will support sdram?
2012-05-29T16:02:45 < Thorn> that would be the first in the entire family
2012-05-29T16:02:55 < ntfreak> Thorn: no a F4 variant will
2012-05-29T16:04:22 < zyp> ntfreak, where do you get this information from?
2012-05-29T16:04:40 < ntfreak> karlp: i do but am not allowed to forward it - i can send you sample code v2 api however.
2012-05-29T16:04:40 < ntfreak> karlp: also have a look in OpenOCD as it is already using this new api - http://openocd.git.sourceforge.net/git/gitweb.cgi?p=openocd/openocd;a=blob;f=src/jtag/drivers/stlink_usb.c
2012-05-29T16:04:51 < ntfreak> zyp: my job
2012-05-29T16:05:55 < Thorn> that's nice
2012-05-29T16:06:32 < ntfreak> TFT part is due in Q4, but is sampling now (beta customers).
2012-05-29T16:07:20 < ntfreak> F3 parts are Q3 - again with beta customers already
2012-05-29T16:08:13 < karlp> ntfreak: that's substantially different from the initial stlink support I saw,
2012-05-29T16:08:27 < karlp> which was basically the usb file straight from texane
2012-05-29T16:08:38 < karlp> I love how everyone just rewrites everything all the time.
2012-05-29T16:09:39 < Laurenceb> ntfreak: so f3 has 16bit adc, anything else nice?
2012-05-29T16:09:49 < Laurenceb> comparator?
2012-05-29T16:10:10 -!- Netsplit *.net <-> *.split quits: zyp, BrainDamage, ben1066, gsmcmullin, zippe, corecode, TeknoJuce, upgrdman, Randomskk_, tunebird,  (+26 more, use /NETSPLIT to show all of them)
2012-05-29T16:16:18 -!- Netsplit over, joins: Tectu, corecode, LawrenceSeattle, upgrdman, Huitaryan, Thorn, BrainDamage, nopcode, Kevin`, gsmcmullin (+26 more)
2012-05-29T16:16:18 < Laurenceb> http://rastrack.ryanteck.org.uk/
2012-05-29T16:16:26 < nopcode> so this usb OTG support means that the stm32 can act as a usb host? and also supply power?
2012-05-29T16:16:30 < Laurenceb> lol @ nigerian raspberry pi message
2012-05-29T16:17:07 < ntfreak> karlp: and then just run openocd -f board/stm32f4discovery.cfg for example
2012-05-29T16:23:41 < Laurenceb> nopcode: not from the ic
2012-05-29T16:27:05 < nopcode> Laurenceb: how would it work then if i want to connect a usb keyboard to the eval board? or say my samsung galaxy s2 phone?
2012-05-29T16:27:22 < Laurenceb> i think the board runs power to the port?
2012-05-29T16:28:02 < Thorn> nopcode: you connect the Vbus pin to +5V on your board
2012-05-29T16:28:27 < Thorn> (and your eval board most likely does that already)
2012-05-29T16:31:25 < Thorn> there're power switch/protection ICs for host ports like http://www.ti.com/product/lm3526
2012-05-29T16:34:50 < zyp> stm32f4discovery board does provide 5V to vbus when an micro-A-plug is inserted
2012-05-29T16:35:49 < zyp> the ID signal is used to distinguish between A and B-plugs
2012-05-29T16:36:50 < zyp> remember that usb has a strict host-device relationship
2012-05-29T16:37:09 < Thorn> so power is switched in hardware on that board?
2012-05-29T16:37:49 < zyp> I believe it's controlled by a gpio, so it's done in software by the usb stack
2012-05-29T16:37:55 < Thorn> I'm looking at stm32-p107, it connects id, vbus_on, vbus_fault to the mcu
2012-05-29T16:38:01 < zyp> yep
2012-05-29T16:38:37 < zyp> vbus_on is the signal to turn on 5V out, and vbus_fault is the signal back that says that the connected device consumes too much power or something like that
2012-05-29T16:41:20 < Thorn> this board has 2 ports (otg & host) and a dual channel power IC (lm3526), and the vbus_on signal from the mcu is connected to both channels, one inverted by a pnp transistor
2012-05-29T16:41:48 < zyp> huh
2012-05-29T16:41:52 < zyp> well, sure
2012-05-29T16:41:55 < Thorn> so you can't turn the power on for both ports at once (or turn it off for that matter lol)
2012-05-29T16:42:02 < zyp> anyway, it's software controlled
2012-05-29T16:42:56 < zyp> usb peripheral provides an interrupt when it detects that something is connected, and then you can check the ID line to see if it's a A-plug or a B-plug and take appropriate action
2012-05-29T16:43:44 -!- izua [~izua@86.121.85.94] has joined ##stm32
2012-05-29T16:43:44 -!- izua [~izua@86.121.85.94] has quit [Changing host]
2012-05-29T16:43:44 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-29T16:43:47 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-29T16:44:36 < Thorn> in this case if it's a B plug you turn the other port on lol
2012-05-29T16:45:22 < zyp> sounds weird
2012-05-29T16:46:37 < Thorn> they (olimex) saved a gpio pin this way, so they probably think it's clever
2012-05-29T16:47:15 < zyp> I dropped the ID line entirely on my F4 board
2012-05-29T16:47:24 < dongs> usb ID?
2012-05-29T16:47:30 < zyp> yep
2012-05-29T16:47:36 < dongs> isnt that some OTG shit
2012-05-29T16:47:45 < dongs> seems useless
2012-05-29T16:48:09 < Thorn> if you like fried usb ports then sure
2012-05-29T16:52:49 < karlp> power allll the directions!
2012-05-29T16:54:21 < zyp> dongs, exactly
2012-05-29T16:54:33 < zyp> I have a B-socket on my board, so an A-plug won't fit anyway
2012-05-29T16:55:01 < zyp> and there is no 5V on my board to provide to connected devices anyway
2012-05-29T16:56:05 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-29T16:57:35 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 250 seconds]
2012-05-29T17:04:26 -!- Randomskk_ is now known as Randomskk
2012-05-29T17:14:44 < Laurenceb> wtf reddit
2012-05-29T17:14:50 < Laurenceb> that place is full of freaks
2012-05-29T17:15:23 < BrainDamage> the same can be said for irc
2012-05-29T17:16:01 < Thorn> freenode (except #electronics) is remarkably free of them
2012-05-29T17:16:02 < Laurenceb> true
2012-05-29T17:16:05 < Laurenceb> heh#
2012-05-29T17:16:44 < Laurenceb> someone linked this  http://vivitri.wordpress.com/2009/12/27/death-by-teddy-bear/#comments
2012-05-29T17:17:36 < Laurenceb> "IÂ’m weird, and have all these dark and creepy thoughtsÂ… violent ones, too. IÂ’m sure everyone does, though. ThatÂ’s why I like video games, and hentai"
2012-05-29T17:19:02 -!- dekar [~dekar@dslb-188-107-168-119.pools.arcor-ip.net] has quit [Ping timeout: 248 seconds]
2012-05-29T17:25:43 < dongs> oh gawd ironsky was hilarious
2012-05-29T17:25:47 < dongs> A+ will watch again
2012-05-29T17:28:33 < dongs> http://i.imgur.com/xeGIi.jpg wat
2012-05-29T17:28:53 < jpa-> i loved it also :)
2012-05-29T17:29:15 < zyp> I haven't watched it yet, but it sounds fun
2012-05-29T17:29:31 < cjbaird_> "I never thought much of Pat Buchanan until I heard one of his speeches in the original German." ... Yep, saw Iron Sky last Sautrday.
2012-05-29T17:30:13 < cjbaird_> Nazis in New York. Awesome.
2012-05-29T17:31:13 < jpa-> i would like to know how many percent of the inside jokes i understood :P
2012-05-29T17:36:04 < dongs> heh
2012-05-29T17:36:23 < dongs> they even snuck a 9/11 joke in there
2012-05-29T17:36:43 < jpa-> and a bunch of references to various youtube videos
2012-05-29T17:38:30 < cjbaird_> The 'Downfall' one sucked in its execution, though.
2012-05-29T17:40:56 < jpa-> a bit, yeah
2012-05-29T17:41:21 < jpa-> it's such a long clip that it got a bit boring when you already know the plot ,)
2012-05-29T17:43:07 < karlp> ntfreak: any ideas on this: http://pastebin.com/DezvwFgH
2012-05-29T17:43:12 < karlp> texane/stlink works just fine
2012-05-29T17:43:18 < karlp> lsusb shows the device ok.
2012-05-29T17:43:45 < cjbaird_> I need to show that Rape Stove to my housemate... She does retarded shit like /roast/ a single hamburger patty in the oven for an hour /because she thinks that's how patties are cooked/, of course, she dutifully pre-heated the oven for 45 minutes beforehand as well. (This person earns AU$1800 per week... -_-_
2012-05-29T17:46:20 < BrainDamage> and wastes 800$ in oven supply?
2012-05-29T17:46:35 < ntfreak> karlp: need to build openocd with --enable-stlink
2012-05-29T17:46:53 < karlp> that's not in README
2012-05-29T17:47:32 < karlp> also, surely it shouldn't traceback when trying to list what targets _are_available?
2012-05-29T17:49:38 < ntfreak> karlp: mmm, we have many things on the todo list - guess thats one of them.
2012-05-29T17:50:18 < BrainDamage> why aren't most targets enabled by default when building openocd out of curiosity?
2012-05-29T17:51:23 < BrainDamage> the compile timed saved is kinda small compared to having to check ./configure --help and enable the wanted one, plus eventually rebuilding if wanting to get extra device support
2012-05-29T17:51:59 < karlp> ntfreak: verbose documentation gives me the idea that it's complete documentation.  if the doc is really, "see the output of ./configure --help", then it's better to just say that
2012-05-29T17:52:12 < zyp> BrainDamage, because they require various libraries
2012-05-29T17:52:21 < karlp> also, what BrainDamage said.
2012-05-29T17:52:34 < karlp> zyp: surely when configure runs, it can enable whatever can be built with what libs were found
2012-05-29T17:52:55 < ntfreak> BrainDamage: this is also on the todo list
2012-05-29T17:53:06 < karlp> or, seeing as this has wonderfully awesome autotools, can't it display a status after configure finishes to say what is being built and what is being left out?
2012-05-29T17:53:29 < ntfreak> karlp: patches welcome :)
2012-05-29T17:55:53 < karlp> yeah, right.
2012-05-29T17:59:58 < karlp> zlog, help me find pelrun's elf
2012-05-29T17:59:58 < zlog> karlp: Log stored at http://tom-itx.dyndns.org:81/~tom-itx/irc/logs/%23%23stm32/2012-05-29.html
2012-05-29T18:06:58 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has joined ##stm32
2012-05-29T18:07:00 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-29T18:09:45 < ntfreak> karlp: fyi - just sent a patch to gerrit that adds stlink to the README.
2012-05-29T18:09:46 < ntfreak> karlp: The README also states  The following list of options was extracted from the output of './configure --help'.
2012-05-29T18:09:46 < ntfreak> karlp: Other options may be available there:
2012-05-29T18:10:26 < karlp> excellent
2012-05-29T18:10:29 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-29T18:15:52 < karlp> ntfreak: so, once it's connected, can't I just use gdb like I would with texane/stlink?
2012-05-29T18:15:55 < karlp> http://pastebin.com/62Ma6sxK
2012-05-29T18:16:57 < Thorn> try monitor reset init
2012-05-29T18:17:15 < karlp> "not supported by this target"
2012-05-29T18:17:51 < Thorn> wth
2012-05-29T18:21:12 < ntfreak> karlp: try a newer gdb - yours seems to have the register packet size issue.
2012-05-29T18:22:08 < ntfreak> karlp: i use codesourcery (mentor) gdb
2012-05-29T18:22:18 < karlp> I'm using this: https://launchpad.net/gcc-arm-embedded
2012-05-29T18:22:25 < karlp> this is why I don't use openocd
2012-05-29T18:22:57 <+dekar> got an stm32f4 discovery :)
2012-05-29T18:22:58 < karlp> I may be inclined to try again in another 6 months
2012-05-29T18:25:06 < ntfreak> the issue is more related to the gdb you are using, texane has probably tweaked it to work.
2012-05-29T18:25:06 < ntfreak> we have to deal with lots of arch's, and to fix the problem you are seeing is not so trivial - other than use codesourcery gdb.
2012-05-29T18:25:58 < Laurenceb> can someone help me understnad this?
2012-05-29T18:26:08 < Laurenceb> volatile uint8_t Rawdata[8][8];
2012-05-29T18:26:22 < Laurenceb>  p Rawdata
2012-05-29T18:26:22 < Laurenceb> $17 = {"\020\000\020\001\020\374\000", "\000
2012-05-29T18:26:33 < Laurenceb> etc - 8 blocks of that
2012-05-29T18:26:46 < Laurenceb> but only 7 variables, and 374?!
2012-05-29T18:27:17 < karlp> actually, no, texane didn't tweak anything to work. the gdbserver code has barely been touched in over a year
2012-05-29T18:27:20 < zyp> I'm currently testing flashing speed with the stuff I've got here, since people ask a lot about that
2012-05-29T18:27:55 < karlp> I confirm that it seems to be just F4 speed that's crap with texane right now,
2012-05-29T18:27:58 < zyp> as I suspected, my normal 7k flash image is too small to get a reliable measurement of flashing speed
2012-05-29T18:28:37 < zyp> using blackmagic, I get 13 kB/s with the 7k image, 24 kB/s after adding 100k :p
2012-05-29T18:28:45 < BrainDamage> can't you create a huge string of constant data to inflate the source?
2012-05-29T18:28:54 < zyp> that's what I did
2012-05-29T18:29:01 < dongs> fill it up wiht some blogosphere
2012-05-29T18:30:25 < zyp> and 31 kB/s for almost a full 1M flash
2012-05-29T18:30:37 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-29T18:30:58 < zyp> I'll test jtag mode as well
2012-05-29T18:31:36 < zyp> huh
2012-05-29T18:32:04 < zyp> got 41 on jtag
2012-05-29T18:32:16 < zyp> oh, and now I get 45 on swd
2012-05-29T18:32:33 < dongs> cant you just use STLinkUSBDriver.dll to talk with stlink
2012-05-29T18:32:41 < dongs> that interface is public right.
2012-05-29T18:32:47 < zyp> not using stlink
2012-05-29T18:32:59 < dongs> o rite.
2012-05-29T18:33:02 < dongs> shrugging furiously
2012-05-29T18:33:13 < dongs> youre using another lame ftdi shit
2012-05-29T18:33:37 < zyp> no, this is some open sores stm32-stuff
2012-05-29T18:33:39 <+dekar> my versaloon was only 15kB/s last time I tried, on the other hand that's about the size of my firmware
2012-05-29T18:36:07 < zyp> ok, I get 45 kB/s over swd, 41 kB/s over jtag
2012-05-29T18:38:07 < zyp> I suspect it skips some stuff if old and new contents is the same, gsmcmullin should be able to answer that
2012-05-29T18:42:06 < zyp> hmm, the old version of texane/stlink doesn't seem to work with gdb-7.4
2012-05-29T18:42:55 <+dekar> my HID bootloader flashes at over 50kB/s I think
2012-05-29T18:43:37 < zyp> hrm, this autoconf-shit fails
2012-05-29T18:48:09 < zyp> newest version still fails with gdb-7.4
2012-05-29T18:48:59 < karlp> autotoools is teh suck
2012-05-29T18:49:29 < zyp> yeah, it complained about syntax error in the libusb test
2012-05-29T18:49:58 < zyp> so I commented it out and added it to CFLAGS and LDFLAGS manually, because I can't be assed to dick around with that shit
2012-05-29T18:53:30 < zyp> ok, I'm just being dumb
2012-05-29T18:53:52 < zyp> the jumpers on the discovery board were off, so swd weren't connected
2012-05-29T18:53:58 < zyp> gdb-7.4 works properly
2012-05-29T18:56:29 < zyp> same 1M flash image, I get 7 kB/s
2012-05-29T18:56:49 < zyp> newest texane/stlink, stm32f4discovery
2012-05-29T18:58:01 < zyp> st-link utility is doing some heavy busywaiting or something, it averages 40% of a cpu core here
2012-05-29T18:58:42 < zyp> still 7 kB/s on second attempt
2012-05-29T19:02:41 < zyp> the old version also gives 7 kB/s
2012-05-29T19:03:08 < zyp> maybe I'll try openocd as well
2012-05-29T19:11:10 < zyp> autoconf is apparently having a bad day today, it's complaining for openocd as well
2012-05-29T19:17:41 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer]
2012-05-29T19:19:04 -!- Tom_L is now known as Tom_itx
2012-05-29T19:19:55 -!- izua [~izua@86.121.85.94] has joined ##stm32
2012-05-29T19:19:55 -!- izua [~izua@86.121.85.94] has quit [Changing host]
2012-05-29T19:19:55 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-29T19:19:56 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-29T19:42:02 < Tectu> karlp, you arround?
2012-05-29T19:43:58 < zyp> same problem as karlp got with gdb
2012-05-29T19:44:08 < zyp> but flashing from openocd itself works
2012-05-29T19:44:25 < zyp> 42 kB/s over swd
2012-05-29T19:44:29 < karlp> zyp: when you were speed testing, were you using gdb load? or the st-flash?
2012-05-29T19:44:36 < zyp> gdb load
2012-05-29T19:44:42 < karlp> do you ahve function/data sections?
2012-05-29T19:45:06 < karlp> is flashing from openocd itself different command args or something?
2012-05-29T19:45:41 < zyp> I'm doing it from the openocd console
2012-05-29T19:46:36 < karlp> you're using 7.4 right? ntfreak: it's not just my 7.3 gdb that doesn't work...
2012-05-29T19:47:47 < zyp> yep
2012-05-29T19:48:13 < zyp> I upgraded to 7.4 because I had similar problems with blackmagic with the one I used before
2012-05-29T19:49:57 < zyp> I can test st-flash as well
2012-05-29T19:50:28 < karlp> no, don't worry
2012-05-29T19:50:39 < karlp> it would only matter if you had lots of small function/&data sections I believe
2012-05-29T19:50:41 < zyp> hmm, it doesn't read elf?
2012-05-29T19:50:45 < zyp> then I don't bother :p
2012-05-29T19:51:00 < zyp> nah, I just added a huge blob in .text
2012-05-29T19:51:17 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 252 seconds]
2012-05-29T19:51:29 < karlp> gdb makes separate write requests for each section in the elf, so it might have been somewhat faster to use st-flash and write the binary as a single stream,
2012-05-29T19:51:43 < karlp> but I thinkyou've found the culprit in some busy waits :)
2012-05-29T19:51:58 < zyp> yeah
2012-05-29T19:52:12 < zyp> maybe I should fire up a profiler and see exactly where it spends that time
2012-05-29T19:52:22 < karlp> I won't stop you :)
2012-05-29T19:52:40 < zyp> since I'm already toying with everything :p
2012-05-29T19:53:15 < karlp> you've done an admirable job of collecting perf numbers with multiple tools from the same system :)
2012-05-29T19:55:26 < zyp> oh, and I also reminded myself why I dislike openocd
2012-05-29T19:56:29 < zyp> it's a lot of work to set up and get working :p
2012-05-29T19:58:31 < zyp> karlp, http://paste.jvnv.net/view/I6OIm <- you might be interested in this?
2012-05-29T19:59:20 < karlp> what's that the output of?
2012-05-29T19:59:34 < karlp> gdb load?
2012-05-29T19:59:56 < zyp> yes, after the flash image is transfered to the st-link utility
2012-05-29T20:00:43 < zyp> I mean, that's the output from the st-link utility when executing the load command from gdb
2012-05-29T20:01:05 < karlp> yeah, I don't know why it keeps trying to do a single page erase and a single write and then a single verify
2012-05-29T20:01:09 < karlp> this is with f4 right?
2012-05-29T20:02:10 < karlp> because the F4 has it's own flash writing path in texane/stlink
2012-05-29T20:02:31 < zyp> yes
2012-05-29T20:05:08 < zyp> ha
2012-05-29T20:05:10 < zyp> static void wait_flash_busy(stlink_t *sl) {
2012-05-29T20:05:10 < zyp>     /* todo: add some delays here */
2012-05-29T20:05:10 < zyp>     while (is_flash_busy(sl))
2012-05-29T20:05:10 < zyp>         ;
2012-05-29T20:05:13 < zyp> }
2012-05-29T20:05:17 < zyp> that's the culprit :p
2012-05-29T20:06:02 < karlp> that does look pretty shit :)
2012-05-29T20:07:52 < cjbaird_> Cross-platform delays is harder than it looks, though. Even if nanosleep() and friends are POSIX, there's too many systems out there where they Just Don't Work, even amoung Linux systems.
2012-05-29T20:08:19 < karlp> current best practice is to call select with a timeout and no fd's right?
2012-05-29T20:08:37 < zyp> really?
2012-05-29T20:08:49 < karlp> if you have a system that is that broken, I'm personally not that interested in caring
2012-05-29T20:08:56 < karlp> caring is the way that leads you to autotools
2012-05-29T20:09:08 < karlp> and checking for archaic mainframe solaris compilers
2012-05-29T20:09:11 < karlp> "just in case"
2012-05-29T20:09:16 < cjbaird_> lol
2012-05-29T20:09:30 < karlp> zyp: not sure, just seen some comments to that effect somewhere
2012-05-29T20:10:59 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-29T20:12:46 -!- cjbaird_ [~cjb@ppp121-44-125-219.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-29T20:13:23 < TitanMKD> hi
2012-05-29T20:13:28 -!- LawrenceSeattle [~lawrence@216.243.49.130] has quit [Quit: LawrenceSeattle]
2012-05-29T20:17:13 < zyp> I guess I can conclude that openocd/stlink is about six times faster than texane, and blackmagic is slightly faster
2012-05-29T20:17:29 < zyp> slightly faster than openocd*
2012-05-29T20:18:53 < zyp> so I guess openocd is the way to go when texane gets too slow
2012-05-29T20:20:53 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection]
2012-05-29T20:23:38 < karlp> zyp: what are you doing to make a text section, rather than something in ram?
2012-05-29T20:23:50 < karlp> I was trying to dd to xxd -i, but it makes a data variable of course
2012-05-29T20:23:55 < karlp> just __attribute__ tricks?
2012-05-29T20:24:28 < zyp> yep
2012-05-29T20:24:52 < zyp> just __attribute__((section(".text"))) on an array
2012-05-29T20:26:34 < karlp> hmm, my link scripts tried to put ".text.hackyhack" into ram.
2012-05-29T20:26:38 < karlp> I'll have to fix that :)
2012-05-29T20:26:53 < zyp> ld warns that I put a writable variable into a read-only section, but that's ok :p
2012-05-29T20:27:20 < zyp> no, actually, that warning came from as
2012-05-29T20:30:27 < karlp> well, adding in some delays there made no different at all here.
2012-05-29T20:30:39 < karlp> and if the delay was too big, it just made it slower
2012-05-29T20:32:00 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 246 seconds]
2012-05-29T20:32:06 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Read error: Connection reset by peer]
2012-05-29T20:32:22 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-29T20:32:36 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-29T20:34:12 < zyp> yeah, I'd expect as much
2012-05-29T20:34:27 < zyp> but it would still stop wasting cpu cycles
2012-05-29T20:43:07 < karlp> true.
2012-05-29T20:43:37 < karlp> I was hoping that stlink inquring too fast in the flashing progress might have given some free speedups though :)
2012-05-29T20:54:20 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-29T20:54:23 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-29T21:04:53 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit []
2012-05-29T21:21:51 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has quit [Ping timeout: 252 seconds]
2012-05-29T21:52:24 -!- carp3 [~chatzilla@31.59.8.11] has joined ##stm32
2012-05-29T21:53:57 < carp3> Hi, am i the only person that cannot choose a compiler/IDE for stm32 on windows ?
2012-05-29T21:54:55 <+Steffanx> dongs is our windows guy, ask him
2012-05-29T21:55:06 <+Steffanx> Why you cannot choose one carp3 ?
2012-05-29T21:57:00 < carp3> because none of them works .
2012-05-29T21:57:23 < carp3> i mean free compilers.
2012-05-29T21:57:48 <+Steffanx> that coocoxide is free sin't it?
2012-05-29T21:59:29 < karlp> so, F4/f2 writing in texane/stlink still uses usb accesses per word written, which is why it's slow.
2012-05-29T21:59:47 < karlp> f1 and L1 both use sram loaders, but they use some old ones that still need high tough
2012-05-29T22:00:07 < karlp> openocd has some newer fancier ones that use a fifo to reduce the number of usb calls into stlink to keep it operational.
2012-05-29T22:01:57 < karlp> high _touch_ sorry
2012-05-29T22:02:13 <+Steffanx> ok .. ?
2012-05-29T22:02:58 < karlp> so if you want faster, use openocd, if you have a gdb that works with it.
2012-05-29T22:03:54 <+Steffanx> Time to reverse engineer the bootloader of the stlink vx :)
2012-05-29T22:04:49 <+Steffanx> or at least the used protocol
2012-05-29T22:06:01 < carp3> Steffanx:  yeah it's free. but it's actually a striped-down version of eclipse.  without GCC afaik. nothing more.     i'm looking for something polished. like AVR Studio (for AVR).  maybe i have high expectations don't know.
2012-05-29T22:07:21 < carp3> it's a *
2012-05-29T22:10:08 < Thorn> carp3: http://www.keil.com/arm/mdk.asp , only $5250 afaik
2012-05-29T22:10:53 <+Steffanx> Thorn's definition of free
2012-05-29T22:11:56 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-29T22:12:02 < Thorn> at least it's really well integrated (but the compiler is weird and lacks gnu extensions)
2012-05-29T22:12:06 < Laurenceb_> suppp
2012-05-29T22:12:22 < Laurenceb_> and adxl345 accel gurus here?
2012-05-29T22:12:25 <+Steffanx> afaik it included gcc or at least it can work with gcc carp3
2012-05-29T22:12:29 <+Steffanx> that coocox ide
2012-05-29T22:12:47 < Laurenceb_> coocox clan?
2012-05-29T22:13:23 <+Steffanx> Laurenceb_ go away with your /b/ stuff
2012-05-29T22:13:31 < Laurenceb_> lol
2012-05-29T22:13:53 < Laurenceb_> so back on topic
2012-05-29T22:13:55 < Laurenceb_> kind of
2012-05-29T22:14:06 < Laurenceb_> i have an adxl accel in +-16G, 10bit mode
2012-05-29T22:14:12 < Laurenceb_> but 1g is ~64lsb
2012-05-29T22:14:21 < Laurenceb_> surely thats 11bit?
2012-05-29T22:14:36 < carp3> Thorn:  and 90s-ish code editor.
2012-05-29T22:15:08 < Thorn> carp3: it's a tradition. look at modelsim, quartus II, ...
2012-05-29T22:15:21 <+Steffanx> it's awful
2012-05-29T22:15:36 < Thorn> looks like all these people are just starting to discover GUIs
2012-05-29T22:15:38 < zyp> Laurenceb_, or ±8g range
2012-05-29T22:16:05 < Laurenceb_> maybe they mean +-10bit
2012-05-29T22:16:06 < blkcat> carp3: if you want an inexpensive professional ide you might consider lpcxpresso for nxp's cortex parts
2012-05-29T22:16:14 < Laurenceb_> datasheet is a bit vague
2012-05-29T22:16:31 < Laurenceb_> anyways the full res mode is better so ill switch it
2012-05-29T22:16:37 < zyp> Laurenceb_, you're probably just doing something wrong again
2012-05-29T22:16:55 <+Steffanx> 'again' :D
2012-05-29T22:17:02 < Laurenceb_> heh
2012-05-29T22:17:11 < Laurenceb_> its a lame project anyway
2012-05-29T22:17:22 < Laurenceb_> load of 9DOF boards in a car
2012-05-29T22:17:35 < Laurenceb_> cable has too much capacitance :S
2012-05-29T22:17:42 <+Steffanx> uh?
2012-05-29T22:17:58 < Laurenceb_> i can only get the i2c to behave at 100khz
2012-05-29T22:18:13 <+Steffanx> Didn't they invent CAN for that?
2012-05-29T22:18:15 < Laurenceb_> theres like 300pF on each conductor
2012-05-29T22:18:28 < Laurenceb_> <Laurenceb_> its a lame project anyway
2012-05-29T22:18:29 < zyp> Steffanx, you missed me testing the speed of various debugger solutions a bit before you joined, in case you were interested in that
2012-05-29T22:18:42 < Laurenceb_> not my design
2012-05-29T22:18:50 <+Steffanx> Where zyp ?
2012-05-29T22:18:57 <+Steffanx> can i find it
2012-05-29T22:18:58 < Laurenceb_> zyp: whats your max flash speed with discovery then?
2012-05-29T22:19:04 < Laurenceb_> i get 7KB/s
2012-05-29T22:19:06 < zyp> Steffanx, try zlog :p
2012-05-29T22:19:09 <+Steffanx> Ah
2012-05-29T22:19:10 <+Steffanx> zlog
2012-05-29T22:19:11 < zlog> Steffanx: Log stored at http://tom-itx.dyndns.org:81/~tom-itx/irc/logs/%23%23stm32/2012-05-29.html
2012-05-29T22:19:29 < zyp> Laurenceb_, 41
2012-05-29T22:19:34 < zyp> with openocd
2012-05-29T22:19:37 < zyp> and 7 with texane
2012-05-29T22:19:56 < Laurenceb_> heh
2012-05-29T22:20:08 < Laurenceb_> openocd supports discovery now?
2012-05-29T22:20:12 < zyp> yes
2012-05-29T22:20:29 < Laurenceb_> ah cool ill have to try it
2012-05-29T22:21:28 < TitanMKD> Laurenceb i tested also https://github.com/texane/stlink.git
2012-05-29T22:21:42 <+Steffanx> Now i understand why i like colored nicks .. that log is terrible :(
2012-05-29T22:21:45 < Laurenceb_> interesting
2012-05-29T22:21:48 < TitanMKD> it work fine on Windows with STLINK V2 embedded on my STM32F4 discovery
2012-05-29T22:22:06 < Laurenceb_> how fast is it?
2012-05-29T22:22:09 < TitanMKD> built with cygwin
2012-05-29T22:22:31 < TitanMKD> it's quick for me
2012-05-29T22:22:54 < TitanMKD> but i do not remember how many kb/s
2012-05-29T22:22:58 < Laurenceb_> speed in KB/s  ?
2012-05-29T22:22:59 < Laurenceb_> ok
2012-05-29T22:23:22 < Laurenceb_> 7 is a little annoying when loading 100K or more
2012-05-29T22:24:03 < TitanMKD> I use True Studio STM
2012-05-29T22:24:11 < TitanMKD> STM32 Lite and it's slow !!!
2012-05-29T22:24:43 < TitanMKD> I have just extracted ST-LINK_gdbserver from it and I use it with Eclipse
2012-05-29T22:26:12 < Laurenceb_> grrr i want some stm32f3 samples
2012-05-29T22:26:24 < Laurenceb_> wonder how you become a beta partner
2012-05-29T22:26:29 < TitanMKD> what new feature in F3 ?
2012-05-29T22:26:37 < Laurenceb_> 16bit adc
2012-05-29T22:26:44 < TitanMKD> what's the speed ?
2012-05-29T22:27:01 < Laurenceb_> dont know
2012-05-29T22:27:19 < TitanMKD> Laurenceb don't cry I live at 100KM of the Factory of ST and they do not want to send me any sample or register me too !!
2012-05-29T22:27:33 < Laurenceb_>  :(
2012-05-29T22:27:44 < TitanMKD> yes their politic is a shame !! like NXP one !
2012-05-29T22:28:01 < Laurenceb_> you live in Malta?
2012-05-29T22:28:07 < TitanMKD> no i live in France
2012-05-29T22:28:13 < Laurenceb_> ah
2012-05-29T22:28:25 < TitanMKD> and in Grenoble they have a Chip Factory and they produce the STM32F4 IIRC
2012-05-29T22:28:46 < TitanMKD> they also produce accelerometer stuff ...
2012-05-29T22:29:35 <+Steffanx> Which kind of problems did oyu have with 7.3 zyp ?
2012-05-29T22:31:17 < zyp> hmm?
2012-05-29T22:32:02 < zyp> I believe I were using gdb-7.1 or 7.2 before I got the blackmagic
2012-05-29T22:33:05 < zyp> no, looks like the one included with yagarto were 7.3.1
2012-05-29T22:34:24 < TitanMKD> zyp I load 333KB elf without problem
2012-05-29T22:34:50 < TitanMKD> but my .bin is 34KB
2012-05-29T22:35:25 < zyp> the elf contains a lot of extra information in addition to the flash image
2012-05-29T22:35:42 < zyp> debug symbols and so on
2012-05-29T22:38:43 -!- carp3 [~chatzilla@31.59.8.11] has quit [Remote host closed the connection]
2012-05-29T22:39:32 < jpa-> arm-none-eabi-size -t gives the real sizes
2012-05-29T22:40:22 <+Steffanx> I won't ask you to define 'real' :)
2012-05-29T22:41:47 < zyp> the exact sizes of each segment
2012-05-29T22:58:00 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-29T23:04:22 < Tectu> would it be stupid to make my lcdSetPixel() function __inline?      https://github.com/Tectu/ChibiOS-LCD-Driver/blob/master/glcd.c#L188
2012-05-29T23:06:31 < jpa-> well just "static inline void" but you'll have to move it to the header if you use it from other modules
2012-05-29T23:06:47 < Thorn> I've been able to improve performance a lot in my driver by avoiding that SetCursor() before every pixel
2012-05-29T23:06:59 < jpa-> but probably the STM32 is a lot faster than your LCD anyway
2012-05-29T23:07:10 < jpa-> or rather, than the LCD write
2012-05-29T23:08:30 < Thorn> and also it's not necessary to set register to 0x22 every time if you're drawing a stream of pixels
2012-05-29T23:08:34 < Tectu> Thorn, how did you solve?
2012-05-29T23:09:02 < Tectu> Thorn, what do you mean?  just select 0x22 and stream every pixel until finish?
2012-05-29T23:09:11 < Thorn> yes
2012-05-29T23:09:29 < Thorn> these controllers have configurable windows, drawing directions etc. but you'll have to redo every drawing functions to be smart about that
2012-05-29T23:10:26 < Thorn> s/functions/function/
2012-05-29T23:11:31 < Tectu> Thorn, did you make that window drawing thing?
2012-05-29T23:11:35 < Tectu> i couldn't bring it to work :(
2012-05-29T23:11:48 < Tectu> my lcdFillArea() is currently just a call for  lcdDrawRect()
2012-05-29T23:12:01 < Thorn> yes, but only on ssd1289 (the only display Im using atm)
2012-05-29T23:12:13 < Tectu> https://github.com/Tectu/ChibiOS-LCD-Driver/blob/master/glcd.c#L143
2012-05-29T23:12:16 < Tectu> Thorn, exact the same
2012-05-29T23:12:18 < Tectu> here
2012-05-29T23:12:21 < Tectu> Thorn, can you provide sourcecode?
2012-05-29T23:14:20 < Thorn> my code looks the same as yours actually
2012-05-29T23:14:31 < Tectu> and that works?
2012-05-29T23:14:43 < Thorn> it does
2012-05-29T23:15:29 < Thorn> that's what I remember anyway, let me recheck
2012-05-29T23:15:45 < Tectu> i'd be happy
2012-05-29T23:16:24 -!- os-app92 [~ftw@37.170.195.77.rev.sfr.net] has joined ##stm32
2012-05-29T23:16:41 < Tectu> Thorn, so the link i posted and this should work?    https://github.com/Tectu/ChibiOS-LCD-Driver/blob/master/glcd.c#L314
2012-05-29T23:17:47 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has joined ##stm32
2012-05-29T23:19:46 < Laurenceb_> http://phx.corporate-ir.net/External.File?t=1&item=VHlwZT0yfFBhcmVudElEPTM3OTIwNzF8Q2hpbGRJRD00MjgwMzY=
2012-05-29T23:19:56 < Laurenceb_> wtf @ page 2
2012-05-29T23:20:07 < Laurenceb_> atmel ahead of micrchip
2012-05-29T23:20:10 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 265 seconds]
2012-05-29T23:23:26 < Thorn> Tectu: actually not, wait a minute, looking through my old code
2012-05-29T23:24:04 < Tectu> would be happy if this would work Thorn. Thanks for your time
2012-05-29T23:24:07 < Thorn> ssd1289 registers end at 0x49, there's no register 0x50 and above at all
2012-05-29T23:25:09 < Thorn> s/0x49/0x4f/ that is
2012-05-29T23:27:01 < Tectu> wait
2012-05-29T23:27:09 < Tectu> do you have a repo of your code?
2012-05-29T23:29:55 < Tectu> or can you paste that part of you code?
2012-05-29T23:31:02 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32
2012-05-29T23:32:07 < Thorn> LCD_WriteReg(0x44, (250 << 16) | 100 ); // horizontal: (end << 16) | start
2012-05-29T23:32:07 < Thorn> LCD_WriteReg(0x45, 150); // vertical: start
2012-05-29T23:32:07 < Thorn> LCD_WriteReg(0x46, 250); // vertical: end
2012-05-29T23:32:14 < Thorn> ^^ try this
2012-05-29T23:32:59 < Thorn> if I had this code under version control I would have fewer problems finding the version that works :)
2012-05-29T23:33:05 < Tectu> LCD_WriteReg(0x44, (250 << 16) | 100 );   wtf dude?
2012-05-29T23:33:31 < Tectu> do you have hardware to try?
2012-05-29T23:34:02 < Thorn> right, it should be 8
2012-05-29T23:36:47 < Tectu> could you paste the entire window setting function please?
2012-05-29T23:36:59 < Thorn> and also 250 is too much for the end value, 239 is max
2012-05-29T23:41:11 < Tectu> Thorn, can you paste or not?
2012-05-29T23:41:19 < nopcode> so, time to install chibios \o/
2012-05-29T23:41:39 < Thorn> http://pastebin.com/i8kL5eCp
2012-05-29T23:41:58 < Tectu> nopcode, ah, you were the one who asked today?
2012-05-29T23:42:01 < Tectu> nopcode, yes, i use chibios
2012-05-29T23:42:04 < Tectu> thanks Thorn
2012-05-29T23:42:09 < Tectu> Thorn, btw, can you display bitmap?
2012-05-29T23:42:30 < Thorn> haven't tried but should be pretty trivial
2012-05-29T23:44:12 < Tectu> Thorn, i have no clue how to do that
2012-05-29T23:44:20 < Tectu> never did something before and couldn't finde propper democode
2012-05-29T23:44:24 <+dekar> do you guys know the Black Magic Debug Probe? http://3.bp.blogspot.com/-RLUywf7rY0Q/TXoRVWLNZQI/AAAAAAAAATk/UZrSYEOIS-0/s1600/black_sphere.jpg
2012-05-29T23:44:33 <+dekar> http://www.blacksphere.co.nz/main/blackmagic
2012-05-29T23:45:29 < Tectu> dekar, yes, we do.
2012-05-29T23:45:42 < Thorn> dekar: gsmcmullin is the author
2012-05-29T23:47:37 <+dekar> oh well, was new to me and I feel like getting one :)
2012-05-29T23:48:04 <+dekar> I installed some firmware update on my versaloon earlier today and it changed the PID breaking openOCD for me :/
2012-05-29T23:48:24 <+dekar> too much hassle
2012-05-29T23:57:15 -!- LawrenceSeattle [~lawrence@66.192.187.106] has joined ##stm32
--- Day changed Wed May 30 2012
2012-05-30T00:04:29 < nopcode> Tectu: it seems well-maintained
2012-05-30T00:04:32 < nopcode> tests and everything
2012-05-30T00:04:39 < nopcode> very convincing
2012-05-30T00:04:59 < Tectu> yeah
2012-05-30T00:05:03 < Tectu> nopcode, cannot complain at all
2012-05-30T00:05:05 < Tectu> just ask if you have question
2012-05-30T00:05:11 < Tectu> but i am a very newbie noob too
2012-05-30T00:05:22 < nopcode> its 11 pm now... i hope i can get printf via serial-usb to work before bedtime
2012-05-30T00:05:28 < nopcode> yeah so do you know how to that? ;)
2012-05-30T00:05:40 < nopcode> to do
2012-05-30T00:05:59 < nopcode> that'd be an awesome first step because i'm a printf debugger ;)
2012-05-30T00:06:09 < Tectu> nopcode,    #include "chprintf.h"     ....          sdStart(&SD1, NULL);   chprintf(&SD1, "Hello World! %d", 42);   ->  115200 baud with 8N1
2012-05-30T00:06:27 < Tectu> i know that printf debugging.... i don't do that anymore
2012-05-30T00:07:10 < nopcode> what does sdStart do?
2012-05-30T00:07:27 < nopcode> wow it has sane defaults for stuff?
2012-05-30T00:07:29 < nopcode> thats awsome
2012-05-30T00:14:05 < nopcode> well i will first try to get the LED blinking demo to work
2012-05-30T00:15:09 < Tectu> nopcode, sdStart initialises the serial driver
2012-05-30T00:15:17 < Tectu> nopcode, which board do you have?
2012-05-30T00:15:25 < nopcode> the stm32f4 discovery
2012-05-30T00:15:31 < Tectu> ah
2012-05-30T00:15:38 < nopcode> yeah but i want serial-via-usb
2012-05-30T00:15:43 < nopcode> this box doesnt have a rs232 anymore ;)
2012-05-30T00:15:50 < Tectu> nopcode, http://chibios.org/dokuwiki/doku.php?id=chibios:articles:stm32f4_discovery:code
2012-05-30T00:16:08 < nopcode> yeah thats the demo. currently trying to get eclipse to build that.
2012-05-30T00:17:21 < Thorn> looks like freertos has one advantage over chibios, and that's more liberal licensing
2012-05-30T00:17:49 < nopcode> yay works :)
2012-05-30T00:18:01 < nopcode> Tectu: hm?
2012-05-30T00:18:10 < Tectu> nopcode, what?
2012-05-30T00:27:50 < nopcode> hm
2012-05-30T00:27:53 < nopcode> i made a copy of a demo dir
2012-05-30T00:28:04 < nopcode> and imported it as a makefile project
2012-05-30T00:28:06 < nopcode> now i get .dep/chcore.o.d:1: *** multiple target patterns.  Stop.
2012-05-30T00:28:08 < nopcode> when building
2012-05-30T00:28:16 < nopcode> even though the original demo folder, when imported, worked
2012-05-30T00:29:37 < Tectu> sorry, i don't use any IDE
2012-05-30T00:29:38 < nopcode> ah got it had to clean some stuff up
2012-05-30T00:29:45 < Tectu> just vi and bare Makefile
2012-05-30T00:31:28 < nopcode> yeah i used to do that
2012-05-30T00:31:29 < nopcode> emcas tho
2012-05-30T00:31:33 < nopcode> emacs :)
2012-05-30T00:31:46 < nopcode> but ever since i did some C# in VS i'm trying to work in IDEs
2012-05-30T00:32:11 < Tectu> why?
2012-05-30T00:32:32 < Tectu> i don't see any point beside you have to install 10000 TB of material and everything is slow and overfilled etc.
2012-05-30T00:32:40 < nopcode> well. coding is faster.
2012-05-30T00:33:57 < Thorn> nopcode: apparently some people got qt creator working with remote targets (using gcc+gdb) well enough. I've been meaning to try that
2012-05-30T00:34:17 < Tectu> nopcode, cannot say that
2012-05-30T00:34:31 < Tectu> and if you really want autocomplete, emacs and vi can do that as well
2012-05-30T00:35:03 <+dekar> Tectu, I never seriously worked with VI and I know like 5 commands (:q! :x :line-number dd) okay only 4 :P But does VI have things like autocomplete?
2012-05-30T00:35:28 <+dekar> oh I know i for insert as well :D
2012-05-30T00:35:34 < Tectu> sure
2012-05-30T00:35:45 < Tectu> vi is plugin ability
2012-05-30T00:35:55 < Tectu> there are very good autocompletes
2012-05-30T00:36:11 < zyp> are you talking about vi or vim? :p
2012-05-30T00:36:24 <+dekar> vim I guess :P
2012-05-30T00:36:59 <+dekar> Tectu, well sounds like an IDE then, but why not. The feature I use most is definitively auto-complete
2012-05-30T00:37:08 < Thorn> dekar: :%s/foo/bar/g is also useful
2012-05-30T00:37:23 <+dekar> you can do sed syntax in vi? O.o
2012-05-30T00:37:27 <+dekar> never knew
2012-05-30T00:37:29 < Tectu> zyp, vim actually
2012-05-30T00:37:42 < Tectu> dekar, no, an IDE is something complelty different than a text editor
2012-05-30T00:37:50 < nopcode> 23:34 < Tectu> and if you really want autocomplete, emacs and vi can do that as well
2012-05-30T00:37:56 < nopcode> but then you really really have to want it
2012-05-30T00:37:58 < nopcode> and spend a day
2012-05-30T00:37:59 < nopcode> toget it
2012-05-30T00:38:01 < Tectu> dekar, you can do anything in vi ;)
2012-05-30T00:38:13 < Tectu> nopcode, bullshit?
2012-05-30T00:38:28 < Tectu> that works in 10minutes including googling for the matching pluggin
2012-05-30T00:38:29 <+dekar> Tectu, how is an IDE different? you you have autocomplete and it calls make when you want it
2012-05-30T00:38:37 < BrainDamage> being limited to a monospace font irritates the hell of me
2012-05-30T00:38:48 < Tectu> dekar, IDE stands for IntegreatedDevelopmentEnvironement.... it includes more than just autocomplete -.-
2012-05-30T00:38:59 < BrainDamage> yes, but not completely different
2012-05-30T00:39:05 < Tectu> sure it is?
2012-05-30T00:39:08 < BrainDamage> text editor is a subset of an ide
2012-05-30T00:39:09 <+dekar> well refactoring -> sed :)
2012-05-30T00:39:26 < Tectu> IDE includes tools for programming and debugging as well as things like object tree printing etc. etc.
2012-05-30T00:39:30 < BrainDamage> I can add enough plugins to a text editor and call it a ide
2012-05-30T00:39:37 < Tectu> BrainDamage, sure ;-)
2012-05-30T00:39:41 < Tectu> BrainDamage, ass :P
2012-05-30T00:39:53 -!- ntfreak_ [~ntfreak@unaffiliated/ntfreak] has joined ##stm32
2012-05-30T00:40:03 <+dekar> Tectu, well if you do C you can still use an IDE without object tree printing :)
2012-05-30T00:40:05 < Tectu> BrainDamage, just kidding, don't take that 'ass' personally
2012-05-30T00:40:20 < BrainDamage> or, it can disable enough functionality in an ide and call it a text editor, so I wouldn't call the 2 objects completely separate
2012-05-30T00:40:31 < zyp> woo, code editor wars
2012-05-30T00:40:43 < Tectu> BrainDamage, yeah, please take some toolchain like KEIL and make it a texteditor. I'll lick your balls
2012-05-30T00:40:43 <+dekar> I use Qt Creator :P
2012-05-30T00:40:45 < BrainDamage> nope, this was a termonology war!!111
2012-05-30T00:40:54 < BrainDamage> terminology*
2012-05-30T00:41:08 < Tectu> what do you guys need beside your autocomplete which is really pointless from my point of view?
2012-05-30T00:41:11 < BrainDamage> I don't care about what text editor / ide you use
2012-05-30T00:41:16 < Tectu> (i don't say you shall not use it)
2012-05-30T00:41:39 < Tectu> BrainDamage, thank you, me eighter. i just try to make clear that IDE is not texteditor + autocomplete ;)
2012-05-30T00:42:26 < zyp> there is not a very clear distinction
2012-05-30T00:42:36 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has quit [Ping timeout: 246 seconds]
2012-05-30T00:42:51 < Tectu> Definition: An Integrated Development Environment (IDE) brings all of the programmers tools into one convenient place. There was a time when programmers had to edit files, save the files out, run the compiler, then the linker, build the application then run it through a debugger.
2012-05-30T00:43:08 <+dekar> well my IDE calls make
2012-05-30T00:43:11 <+dekar> that's it
2012-05-30T00:43:21 <+dekar> still it's an IDE
2012-05-30T00:43:22 < Tectu> oh dear, i am getting old o0
2012-05-30T00:43:34 < Tectu> i stard flaming about other peoples opinions....
2012-05-30T00:43:43 < nopcode> ok i stripped the demo down to simple led blinking
2012-05-30T00:43:47 < nopcode> now to get serial-usb to work
2012-05-30T00:44:01 < Tectu> nopcode, does blinky work?
2012-05-30T00:44:06 < nopcode> yeah :)
2012-05-30T00:44:15 < nopcode> damn i cant resolve google.com
2012-05-30T00:44:20 < nopcode> that puts an end to coding ;P
2012-05-30T00:45:37 < Tectu> zyp, what do you use, btw?
2012-05-30T00:46:01 < Tectu> BrainDamage, did i tell how beautiful it is to have a working logic analyzer? ;-)
2012-05-30T00:46:36 <+dekar> Tectu, concerning autocomplete, I think it's really useful when working with libraries I don't fully know - like when I want to know what I can do to some QString object I got
2012-05-30T00:46:39 < zyp> Tectu, something that works and keep working without some magic that'll get in my way when it breaks
2012-05-30T00:46:54 < BrainDamage> would be even more awesome with 1 MB buffer
2012-05-30T00:47:04 < BrainDamage> or even better, slot for commercial ram module
2012-05-30T00:47:13 < Tectu> dekar, that's true. I've developed with qt libraries for a while too ;-)
2012-05-30T00:47:37 < Tectu> BrainDamage, hellyeah
2012-05-30T00:47:37 <+dekar> also the Qt documentation is tightly integrated so that I can press f1 to get the full documentation for the method I am pointing at
2012-05-30T00:47:48 < Tectu> dekar, i know.
2012-05-30T00:47:59 < Tectu> but also i used to write qt programs in vim with make/qmake
2012-05-30T00:48:00 < BrainDamage> what I liked about qt creator was automatic compile of the lines
2012-05-30T00:48:10 < BrainDamage> so I'd get live error checking
2012-05-30T00:48:27 < BrainDamage> I got a plugin for gedit which does the same
2012-05-30T00:48:45 -!- izua [~izua@86.121.85.94] has joined ##stm32
2012-05-30T00:48:45 -!- izua [~izua@86.121.85.94] has quit [Changing host]
2012-05-30T00:48:45 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-30T00:48:48 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-30T00:49:14 <+dekar> Qt Creator doesn't actually compile it, I am pretty sure it has some internal C++ parser for that
2012-05-30T00:50:05 < BrainDamage> the plugin I use exploits an interface from llvm which was made for similar pourposes
2012-05-30T00:50:18 <+dekar> I did report some bugs related to the Creators understanding of C++ (it mixed files up that had methods with the same name) and they posted they're planning to replace the whole parsing with Clang
2012-05-30T00:50:26 < BrainDamage> which imo is even better, since compiler should always catch more errors
2012-05-30T00:50:40 <+dekar> yeah
2012-05-30T00:50:46 <+dekar> that's what they want to do as well :)
2012-05-30T00:51:51 < Tectu> i've read about people using qtcreator for external targets over gdb. not sure what's their reason? Is hacked qtcreator still better than eclipse?
2012-05-30T00:52:15 < zyp> probably :p
2012-05-30T00:52:56 < BrainDamage> eclipse is too huge for my taste
2012-05-30T00:52:57 < zyp> I believe qtcreator is using the same editor component as the kate editor in KDE
2012-05-30T00:53:11 < BrainDamage> it's flexibility is also the problem, it has too much stuff I don't want
2012-05-30T00:53:18 < zyp> it's pretty decent, I used to use kate when I was still a linux guy
2012-05-30T00:53:40 < BrainDamage> and some of the plugins are interwined, so I cannot turn some functionality down without shutting down wanted stuff
2012-05-30T00:54:27 <+dekar> I do actually like eclipse, but it is indeed pretty fat
2012-05-30T00:55:04 < Tectu> zyp, why aren't you a linux guy anymore, btw?
2012-05-30T00:55:13 <+dekar> and the Creator understands C, it has intelligent refactoring for function names etc
2012-05-30T00:55:43 <+dekar> Tectu, I was a linux guy as well - now I'm on mac :P
2012-05-30T00:55:53 < zyp> dekar, same here
2012-05-30T00:55:55 < BrainDamage> the only thing I am missing on gedit atm is gdb integration, being able to evaluate and step code visually is quite nice when I am using unoptimized stuff
2012-05-30T00:55:59 < Tectu> dekar, how comes?
2012-05-30T00:56:24 < zyp> Tectu, os x is pretty much the same underlying cli stuff, but with a decent gui on top
2012-05-30T00:56:25 < Tectu> BrainDamage, i fully agree. I miss that so hard
2012-05-30T00:57:35 <+dekar> Tectu, well I got this Lenovo x220 as my laptop for work
2012-05-30T00:57:39 <+dekar> and it sucked really hard
2012-05-30T00:57:52 <+dekar> screen had burn in and shit like that
2012-05-30T00:57:53 < Tectu> zyp, who needs GUIs?   http://www.abload.de/img/2012-05-30-005636_144nubzf.png
2012-05-30T00:57:58 <+dekar> horrible fan whine
2012-05-30T00:58:13 < Tectu> dekar, what did you run on it?
2012-05-30T00:58:28 <+dekar> so I picked up some macbook I found lying around at the office (everyone hates apple at our company)
2012-05-30T00:58:48 < Tectu> dekar, screenshot just taken now:  http://www.abload.de/img/2012-05-30-005636_144nubzf.png
2012-05-30T00:58:58 <+dekar> Tectu, I used to use debian stable for my old laptops, but I had fedora on the lenovo
2012-05-30T00:59:15 <+dekar> awesomeWM?
2012-05-30T00:59:23 < Tectu> dekar, hell yeah :)
2012-05-30T00:59:27 <+dekar> :D
2012-05-30T00:59:54 <+izua> Tectu: that's wonderful
2012-05-30T01:00:01 <+izua> :smilie for amazement:
2012-05-30T01:00:12 <+dekar> it has neat keyboard navigation
2012-05-30T01:00:17 < Tectu> izua, ironicly?
2012-05-30T01:00:20 <+izua> that's xterm or some odd fluxbox setup
2012-05-30T01:00:22 < Tectu> dekar, jep
2012-05-30T01:00:30 < Tectu> izua, no?
2012-05-30T01:00:36 <+izua> no, i love minimalism
2012-05-30T01:00:39 < Tectu> izua, that's archlinux with awesome and terminator
2012-05-30T01:00:49 <+dekar> izua, lol I just said awesome
2012-05-30T01:01:03 < nopcode> re
2012-05-30T01:01:04 <+izua> you said awesomeWM
2012-05-30T01:01:05 < zyp> I've tried awesome, didn't like it
2012-05-30T01:01:10 <+izua> oh
2012-05-30T01:01:16 < nopcode> hm cant find an example for usb-serial on chibios
2012-05-30T01:01:19 < Tectu> zyp, i can imagine why, as a mac guy :)
2012-05-30T01:01:21 <+izua> that wasn't the compliment :D
2012-05-30T01:01:26 < Tectu> i love tiling window management... never go back
2012-05-30T01:01:36 < BrainDamage> I have a combo of both
2012-05-30T01:01:48 < BrainDamage> I use a stacking window manager with xtile to arrange stuff
2012-05-30T01:01:48 < Tectu> BrainDamage, awesome with floating layout?
2012-05-30T01:01:52 < zyp> I've never liked minimalism
2012-05-30T01:01:53 < Tectu> ah
2012-05-30T01:02:00 < Tectu> zyp, okay
2012-05-30T01:02:10 < Tectu> zyp, i've never liked non-minimalism ;)
2012-05-30T01:02:14 <+izua> Tectu: and for the multi-desktop thing- (media - im - irc), that's awesome's management?
2012-05-30T01:02:14 < BrainDamage> plus several virtual desktops
2012-05-30T01:02:29 < Tectu> izua, you can define them how you want
2012-05-30T01:02:32 < Tectu> izua, default is 0 to 9
2012-05-30T01:02:48 < Tectu> izua, they are called "tags" and you can have up to 2048, afaik
2012-05-30T01:02:51 < Tectu> which are imo enough ;)
2012-05-30T01:03:28 <+izua> that's wonderful
2012-05-30T01:03:53 < Tectu> izua, it is :)
2012-05-30T01:03:53 < zyp> I like stuff that just works without interfering, which is neither minimalism nor bloat
2012-05-30T01:04:01 < Tectu> izua, the project name says everything ;)
2012-05-30T01:04:24 < Tectu> izua, i can make a screenshot on 2x 22" on thursday if you want :)
2012-05-30T01:04:31 < Tectu> pretty impressive with all these vim open at the same time
2012-05-30T01:04:32 <+izua> minimalism seems to do the trick most of the time for me
2012-05-30T01:04:38 < Tectu> same here
2012-05-30T01:04:45 <+izua> i wonder if vim can do more magic with awesome
2012-05-30T01:04:53 < Tectu> izua, what do you mean?
2012-05-30T01:04:56 <+izua> like, move tabs around between the floating windows inside a virtual desktop
2012-05-30T01:04:56 < zyp> I've always found that minimalism implies «lack vital features»
2012-05-30T01:05:05 <+dekar> Tectu, so I just sticked to OSX since I had to wait half a year till they gave up repairing the crap and gave me the money back
2012-05-30T01:05:06 < Tectu> izua, awesome just aranges the windows, it dosen't give superpower ;)
2012-05-30T01:05:19 <+izua> it can have a binding to do that though :)
2012-05-30T01:05:29 < zyp> and I don't want to dick around with adding the features I need
2012-05-30T01:05:34 <+dekar> Tectu, I was like "it's a chance to check out OSX, might come handy one day"
2012-05-30T01:05:44 <+izua> zyp: yeah
2012-05-30T01:05:48 <+izua> that's the other end i guess
2012-05-30T01:05:53 <+izua> for example, i find vim minimal
2012-05-30T01:05:56 < Tectu> izua, i thing it's pretty useless to use tabs inside vim when you have a tiling window manager. as you can see, my terminator is just nothing. it dosen't have any scrollbars, tabs or something else
2012-05-30T01:06:03 < zyp> no, vim is not minimal
2012-05-30T01:06:12 < Tectu> dekar, sure, i would do the same, and i did. but don't like it :)
2012-05-30T01:06:14 <+izua> it has a big window where you enter text
2012-05-30T01:06:19 < zyp> vim has a pretty decent featureset
2012-05-30T01:06:20 <+izua> and that's pretty much it :D
2012-05-30T01:06:25 < BrainDamage> nano is minimal
2012-05-30T01:06:29 <+izua> hah
2012-05-30T01:06:36 < zyp> nano still has syntax highlighting
2012-05-30T01:06:37 < Tectu> izua, minimalistic != clean UI !!!!
2012-05-30T01:06:42 <+izua> well.
2012-05-30T01:06:43 < zyp> ms notepad is pretty minimal :p
2012-05-30T01:06:47 < Tectu> haha :D
2012-05-30T01:06:53 < BrainDamage> ok, dd is minimal
2012-05-30T01:07:05 <+izua> well, i tend to think of minimal as having all the features one might find useful, nothing more
2012-05-30T01:07:14 <+izua> that's probably above minimal, but still under bloat
2012-05-30T01:07:14 < Tectu> zyp, i know one guy, he's the master of vim... dude, that guy has implementet features in his vim, his notebook can fly
2012-05-30T01:07:15 <+dekar> Tectu, I am not a big fan of OSX as well, but what kept me from installing linux on it were some nasty battery life regressions from kernel 2.6.38 to 3.2 (I think)
2012-05-30T01:07:40 < Tectu> dekar, that issue is aways since ages
2012-05-30T01:07:47 < zyp> Tectu, I've got a friend like that myself
2012-05-30T01:07:50 < Tectu> dekar, a few weeks after 38 release they fixed it
2012-05-30T01:07:51 < BrainDamage> one of my friends complains huge battery life loss in linux compared to windows
2012-05-30T01:07:55 < zyp> he's also using archlinux and awesome
2012-05-30T01:08:11 < Tectu> dekar, that's the problem of debian: when there is shitty software, most debian users run that software for 2 years ;-)  specially on stable releases
2012-05-30T01:08:17 <+dekar> Tectu, on the lenovo my power consumption went from 6 watts (idle) to like 25 watts
2012-05-30T01:08:37 < Tectu> BrainDamage, dekar well, as i said, don't use distributions like debian on a notebook. i have 5 hours of batterylife on my T410
2012-05-30T01:08:45 <+dekar> I was running fedora at that time, and came to the conclusion that it is too bleeding edge for me
2012-05-30T01:08:48 <+izua> dekar: when switching to linux?
2012-05-30T01:08:53 <+izua> or when upgrading?
2012-05-30T01:08:58 < BrainDamage> he tried, ubuntu, debian, fedora and arch
2012-05-30T01:09:08 < Tectu> zyp, and you don't like him?
2012-05-30T01:09:17 <+dekar> izua, probably when I get one of the new MacBooks in july
2012-05-30T01:09:22 < BrainDamage> each has significantly different batt life, but even the best, after extensive tweaking gives him 1/3 of windows
2012-05-30T01:09:24 < nopcode> wow this usb stuff seems complicated
2012-05-30T01:09:29 < nopcode> think i'll just sleep instead
2012-05-30T01:09:29 < nopcode> gnight
2012-05-30T01:09:44 <+izua> dekar: did i mention i hate markus and his policy of "let's get dekar whatever he wants" policy today?
2012-05-30T01:09:46 < Tectu> BrainDamage, well, arch needs a bit of painful configuration until running properly ;-)  When i'd have to reinstall my notebook, i wouldn't be able to use it for 3 months...
2012-05-30T01:09:55 <+izua> xD
2012-05-30T01:09:56 < zyp> Tectu, of course I do, he's the most skilled of my programmer friends
2012-05-30T01:10:09 < BrainDamage> Tectu: took me less than a day here
2012-05-30T01:10:12 < Tectu> zyp, haha :D
2012-05-30T01:10:17 < BrainDamage> and most of the time it was compiling crap
2012-05-30T01:10:22 < Tectu> BrainDamage, well, for everything ;-)
2012-05-30T01:10:23 <+izua> BrainDamage: gentoo fan here
2012-05-30T01:10:28 < BrainDamage> I simply backupped etc, and other config folder
2012-05-30T01:10:32 < Tectu> izua, try arch :x
2012-05-30T01:10:43 <+izua> haha
2012-05-30T01:10:48 < BrainDamage> I tried gentoo for a while, having to compile *everything* was too annoying
2012-05-30T01:10:50 < Tectu> BrainDamage, it will NEVER be the same :3
2012-05-30T01:10:57 <+izua> i still have a vm so i won't forget how to use it
2012-05-30T01:10:59 <+izua> but that's about it
2012-05-30T01:11:09 < zyp> I've got arch on one of my work laptops
2012-05-30T01:11:12 < Tectu> real people use LFS
2012-05-30T01:11:17 <+izua> BrainDamage: you don't have to compile everything
2012-05-30T01:11:20 < Tectu> zyp, didn't like it?
2012-05-30T01:11:31 <+izua> if you pray really hard to the gentoo god, the new software you're emerging might be a perl/python script
2012-05-30T01:11:39 <+dekar> BrainDamage, macports feels so like gentoo -.-"
2012-05-30T01:11:39 < BrainDamage> >_>
2012-05-30T01:11:43 < zyp> Tectu, it's okay
2012-05-30T01:11:44 < Tectu> izua, lol!
2012-05-30T01:11:58 < Tectu> zyp, what didn't you like about it?
2012-05-30T01:12:04 < zyp> rolling release
2012-05-30T01:12:08 < BrainDamage> dekar: arch's AUR is the same, but there's also a large binary package base
2012-05-30T01:12:08 < Tectu> hrhr
2012-05-30T01:12:14 < Tectu> zyp, yeah, that can be painful sometimes
2012-05-30T01:12:21 < Tectu> if you dont
2012-05-30T01:12:24 < Tectu> don't be carefully
2012-05-30T01:12:42 <+izua> tectu: boo! at } else {
2012-05-30T01:12:55 < Laurenceb_> http://i.imgur.com/hYDXy.png
2012-05-30T01:13:05 < Laurenceb_> ready to be sent off to fab  :D
2012-05-30T01:13:11 < zyp> I don't have time to maintain it all the time, and suddenly I want to install a package that has newer deps than what I've currently got installed
2012-05-30T01:13:25 < Tectu> i remember the times before awesome was in the binary repo of arch.... you had to clone it from git of course.... then since arch is rolling release -> do daily updates.... then restart -> you cannot loggin anymore because upstream got fucked up :D
2012-05-30T01:13:27 < zyp> and then I get forced to run -Syu
2012-05-30T01:13:50 < Tectu> Laurenceb_, 4 layers
2012-05-30T01:13:57 < Tectu> zyp, yeah, i understand that
2012-05-30T01:13:58 < BrainDamage> I simply have a cron job for updates
2012-05-30T01:14:05 < BrainDamage> I know I am not supposed to do it
2012-05-30T01:14:06 < Tectu> zyp, but arch meets all my needs :)
2012-05-30T01:14:15 < BrainDamage> but the times shit breaks is really rate
2012-05-30T01:14:19 < zyp> and then I started working as a contractor at another company and got a preinstalled machine with ubuntu, and I find it surprisingly decent
2012-05-30T01:14:19 < Tectu> BrainDamage, didn't run into trouble yet?
2012-05-30T01:14:35 < BrainDamage> 3-4 times so far in 1 year
2012-05-30T01:14:40 < Tectu> zyp, i don't like all the ubuntu stuff
2012-05-30T01:14:41 < BrainDamage> worth the time saved
2012-05-30T01:14:56 < Tectu> BrainDamage,  compared to debian 4 times a year is like a headshot ;-)
2012-05-30T01:15:00 < zyp> Tectu, I care more about stuff that works than being cool
2012-05-30T01:15:05 < Tectu> BrainDamage, so you just do -Syu --answer-yes into crone?
2012-05-30T01:15:14 < BrainDamage> yes
2012-05-30T01:15:18 < Tectu> zyp, are you tryint to tell me that i just try to be cool? :(
2012-05-30T01:15:32 <+izua> Tectu: dude
2012-05-30T01:15:36 <+izua> i think i just fell in love with awesome
2012-05-30T01:15:40 < zyp> no, it's a stereotype
2012-05-30T01:15:42 < Tectu> BrainDamage, heard about that case where someone put his arch machine into hibernate, and it overwrote it's whole root partition? :D:D
2012-05-30T01:15:43 <+izua> http://awesome.naquadah.org/http://awesome.naquadah.org/images/6mon.medium.png
2012-05-30T01:15:47 <+izua> http://awesome.naquadah.org/images/6mon.medium.png
2012-05-30T01:15:58 < Tectu> izua, i know that setup very, very well ;-)
2012-05-30T01:16:01 <+izua> does it have one of those keyboard-only vim-like interfaces too?
2012-05-30T01:16:02 < BrainDamage> Tectu: that was me :p
2012-05-30T01:16:06 < zyp> _I_ used to feel like using ubuntu wouldn't be cool
2012-05-30T01:16:07 < Tectu> izua, GO, INSTALL IT !!!!
2012-05-30T01:16:11 < Tectu> BrainDamage, LOOOL? seriously?
2012-05-30T01:16:16 <+izua> uname -a
2012-05-30T01:16:18 < BrainDamage> yes
2012-05-30T01:16:19 < Tectu> BrainDamage, crone -Syu fail?
2012-05-30T01:16:21 < Laurenceb_> haha wtf
2012-05-30T01:16:21 < BrainDamage> no
2012-05-30T01:16:23 < zyp> but I'm too old to care about that
2012-05-30T01:16:29 < BrainDamage> tuxonice fail
2012-05-30T01:16:31 <+izua> manually typed line containing xchat and windows 7
2012-05-30T01:16:33 < Laurenceb_> lol i have the same monitors
2012-05-30T01:16:35 < Tectu> zyp, sorry, i didn't try to be offensive at all.
2012-05-30T01:16:37 < Laurenceb_> but only 3
2012-05-30T01:16:43 < zyp> Tectu, no offence taken
2012-05-30T01:16:50 < BrainDamage> Tectu: it was the reason why I had to reinstall arch :p
2012-05-30T01:16:55 < Tectu> zyp, good :)
2012-05-30T01:17:08 < Tectu> BrainDamage, can you explain me what happened?
2012-05-30T01:17:11 < Tectu> well, and why?
2012-05-30T01:17:12 < zyp> Tectu, oh, and the server my irc client is running on still runs arch :p
2012-05-30T01:17:16 < Tectu> and were you the only one?
2012-05-30T01:17:28 < Tectu> zyp, ui, arch server? that sounds like a pain too
2012-05-30T01:17:31 < Tectu> rolling release on a server?
2012-05-30T01:17:37 < Tectu> ah, or did you use the ArchServer stuff ?
2012-05-30T01:17:43 < Tectu> which isn't supported for ages anymore
2012-05-30T01:17:47 < zyp> no
2012-05-30T01:17:56 < zyp> and it's okay
2012-05-30T01:18:11 < Tectu> do you do updates? o0
2012-05-30T01:18:30 < zyp> I share it with the arch friend I mentioned, so I let him do the maintenance I don't care about myself :p
2012-05-30T01:18:50 < BrainDamage> tbh I'm not so sure either, but I think an hd fail ( it was having hw issues and errored every boot already ) scrambled the write pointer for the hibernation image
2012-05-30T01:18:56 < Tectu> ah :D  that's a nice way to keep your arch machine running too, zyp ;)
2012-05-30T01:18:57 <+dekar> BrainDamage, Tectu that took me a while to find -.-" http://dl.dropbox.com/u/28467113/x220_susi_wattage.png
2012-05-30T01:19:09 <+dekar> my x220 idle at 7watt
2012-05-30T01:19:09 < BrainDamage> which then proceeded to write all over my /
2012-05-30T01:19:18 <+dekar> that's the same as my macbook idle
2012-05-30T01:19:26 < Tectu> dekar, holy crap
2012-05-30T01:19:39 < Tectu> BrainDamage, got any damage? (important data loss?)
2012-05-30T01:20:05 < BrainDamage> gladfully no, I knew the hd was failing, so I started doing backups
2012-05-30T01:20:13 < Tectu> BrainDamage, i just read about that case with you and i just felt the pain you must have had
2012-05-30T01:20:14 < Tectu> :D
2012-05-30T01:20:16 < BrainDamage> I didn't imagine for it to fail that spectacularry tough
2012-05-30T01:20:24 <+dekar> the battery life was great, I would get 5 hours of normal usage on linux - but the hardware was broken -.-"
2012-05-30T01:20:28 < Tectu> so it's not really an arch fail then, BrainDamage ?
2012-05-30T01:20:35 < Tectu> dekar, lol?
2012-05-30T01:20:41 < Tectu> dekar, what exactly was broken?
2012-05-30T01:20:56 < BrainDamage> Tectu: I am unsure, I cannot say if it was arch or the hd to blame
2012-05-30T01:21:11 <+dekar> Tectu, Lenovo made me pay premium for the IPS panel - WITH BURN IN: http://dl.dropbox.com/u/28467113/x220_burn_in.jpg
2012-05-30T01:21:26 <+dekar> I know it's not exactly burn in btw
2012-05-30T01:21:30 < Tectu> dekar, impossibru?
2012-05-30T01:21:34 < Tectu> ah
2012-05-30T01:21:38 < Tectu> what was the fail then?
2012-05-30T01:21:38 <+dekar> came after like 5 minutes, took 10 minutes to go away
2012-05-30T01:21:53 < Tectu> BrainDamage, did the bugreport got handled somehow now?
2012-05-30T01:21:54 <+dekar> lenovo says those are state of the art displays
2012-05-30T01:21:56 <+izua> that's some controller fail
2012-05-30T01:22:03 <+dekar> I say it is fail
2012-05-30T01:22:13 <+izua> it happens a lot on those big LCD panels for ads
2012-05-30T01:22:26 < Laurenceb_> iiyama monitors are quite nice
2012-05-30T01:22:27 <+izua> my guess is because they experience worse thermal stress
2012-05-30T01:22:28 < Tectu> izua, x220 should have pretty small screen i guess
2012-05-30T01:22:39 < Tectu> dekar, are you sure it is IPS and not called ISP?
2012-05-30T01:22:40 <+dekar> izua, it was a small 12" panel - and only the premium IPS option is affected by that problem
2012-05-30T01:22:41 <+izua> i'm thinking of those 10-12m diagonals :D
2012-05-30T01:22:51 <+dekar> Tectu, was IPS for sure
2012-05-30T01:22:59 < Tectu> dekar, ok
2012-05-30T01:23:04 < Tectu> izua, lol :D
2012-05-30T01:23:06 <+izua> that's still bullcrap
2012-05-30T01:23:08 < zyp> I'm having burn-ins on some old IPS panels here
2012-05-30T01:23:16 <+izua> did you get it RMAed?
2012-05-30T01:23:18 <+dekar> Tectu, one of my co-workers has the same laptop without all the problems I had - he has the TN option
2012-05-30T01:23:29 <+dekar> he also didn't have the frickin fan whine
2012-05-30T01:23:48 < Tectu> BrainDamage, i guess i would like that cronejob for -Syu... what if it is downloading 200MB at low connection speed and you need pacman and it is locked? -.-
2012-05-30T01:23:53 <+dekar> they installed some bios update which throttled the fan -> dmesg was spammed by "cpu throttled, overheating!"
2012-05-30T01:24:00 < zyp> I'm not buying TN panels, they look so horrible when you're used to IPS panels :p
2012-05-30T01:24:18 < Tectu> zyp, cinema display i guess?
2012-05-30T01:24:24 <+dekar> izua, had it RMA'd like 3 times
2012-05-30T01:24:28 < zyp> Tectu, no
2012-05-30T01:24:44 < Tectu> dekar, hmm why didn't you get a real new one?
2012-05-30T01:24:45 < zyp> Tectu, or rather, I own an imac, it's pretty similar
2012-05-30T01:24:50 <+dekar> my laptop ran constantly at 95°C after the bios "update"
2012-05-30T01:25:18 < Tectu> dekar, so you don't have to care that it could get freezed, what do you want more? ;)
2012-05-30T01:25:21 <+dekar> Tectu, they did give me a replacement - the new one started having the fan noise, the first one didn't have that
2012-05-30T01:25:27 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Ping timeout: 260 seconds]
2012-05-30T01:25:32 <+dekar> according to the lenovo forums all new ones have the fan noise
2012-05-30T01:25:35 <+dekar> all x220 and x1
2012-05-30T01:25:59 < zyp> my secondary screen is also an IPS panel, and I'm planning to buy a Dell U2711 for my new computer
2012-05-30T01:26:00 <+dekar> my boss ordered an X1 (1600€) a few month after I returned my X220 and he also had the fan noise
2012-05-30T01:26:03 <+dekar> he also returned it
2012-05-30T01:26:45 <+dekar> Tectu, izua http://www.youtube.com/watch?v=DiixRw1aeI8&feature=player_detailpage#t=18s
2012-05-30T01:26:45 < Tectu> dekar, never had x myself. Bought my girlfriend x61 recently, myself having t410 which i fucking love
2012-05-30T01:26:53 <+dekar> that's the fan noise mine had
2012-05-30T01:27:02 <+dekar> the replacement one, not the original one
2012-05-30T01:27:05 < Tectu> dekar, oh dear
2012-05-30T01:27:16 <+dekar> the high pitch noise
2012-05-30T01:27:28 < zyp> I bought a new computer a few weeks ago, currently have it hooked to a borrowed 22" TN panel
2012-05-30T01:27:39 <+dekar> and as I said, they installed a bios update making the laptop overheat constantly
2012-05-30T01:27:50 < zyp> it looks so horrible that I don't bother start using that machine for anything seriously yet :p
2012-05-30T01:27:51 <+dekar> that's _not_ a fix in my book
2012-05-30T01:28:28 <+dekar> Tectu, I never had a lenovo before, that was my first - will stay away from them now
2012-05-30T01:28:30 < zyp> and I'm waiting until after summer vacation to buy the dell monitor :p
2012-05-30T01:28:36 < Tectu> zyp, computer as in mac?
2012-05-30T01:28:45 <+dekar> all my co-workers told me to get lenovo and theirs seem all to be fine :/
2012-05-30T01:29:03 < Tectu> dekar, don't do that. i never ever had issues with them, seriously
2012-05-30T01:29:05 < zyp> Tectu, yes and no, I still run os x on it, but it's assembled from standard parts
2012-05-30T01:29:08 < Tectu> and never heard of someone really had
2012-05-30T01:29:14 < Tectu> that's why i am so wtf when you're telling that
2012-05-30T01:29:20 < Tectu> dekar, where do you live?
2012-05-30T01:29:24 <+dekar> Germany
2012-05-30T01:29:25 < Tectu> zyp, ah
2012-05-30T01:29:33 < Tectu> dekar, ah, then no quality issue i guess
2012-05-30T01:29:37 <+dekar> the lenovo forums (worldwide) are spammed with complaints about x220 and x1
2012-05-30T01:29:52 < Tectu> don't know, could be that some countries do get different qualities :D
2012-05-30T01:29:59 < Tectu> dekar, so don't buy them then :D
2012-05-30T01:30:04 < zyp> http://bin.jvnv.net/f/EkJxa.png <- it's a bit confused about what exactly it is
2012-05-30T01:30:05 < Tectu> dekar, happy with T series, as i said
2012-05-30T01:30:06 <+dekar> ya won't :)
2012-05-30T01:30:24 < Tectu> zyp, what do you mean?
2012-05-30T01:30:29 < Tectu> ah
2012-05-30T01:30:30 < Tectu> macbook pro
2012-05-30T01:30:31 < Tectu> lol
2012-05-30T01:30:54 <+dekar> the x220 had awesome specs, core i5, 8gb ram, 80gb intel SSD and 320gb HDD… epic battery life (up to 23h they say with extended battery) and all in 12"
2012-05-30T01:32:11 < Tectu> izua, yet on awesome?
2012-05-30T01:32:13 -!- BrainDam- [BrainDamag@i.love.tiltshellz.org] has joined ##stm32
2012-05-30T01:32:24 < Tectu> dekar, jep
2012-05-30T01:32:33 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-245-172.clienti.tiscali.it] has joined ##stm32
2012-05-30T01:33:05 < Tectu> dekar, my T410 has  i5, 4gb, 60gb and 4 hours with not extended battery (that one which fits completly into the slot)
2012-05-30T01:33:14 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-245-172.clienti.tiscali.it] has quit [Client Quit]
2012-05-30T01:34:16 < Tectu> well, i am going to sleep now
2012-05-30T01:34:18 < Tectu> see you guys
2012-05-30T01:34:18 < zyp> my MBP has i5, 4GB RAM, 128 GB SSD, 500 GB HDD, and a lot of hours of battery usage
2012-05-30T01:35:11 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-245-172.clienti.tiscali.it] has joined ##stm32
2012-05-30T01:35:23 < Tectu> zyp, and coasts as twice as much?
2012-05-30T01:35:25 < zyp> pretty much idle with low display brightness, I think it passes 10 hours
2012-05-30T01:35:28 < Laurenceb_> yeah but its apple
2012-05-30T01:35:43 < zyp> I don't know
2012-05-30T01:35:55 < zyp> I paid less for it than my previous dell laptop
2012-05-30T01:37:43 <+dekar> well I got 1400€ back when they took the lenovo back and used the spare macbook pro we had lying around at work - so I guess I actually made money by going for apple :P
2012-05-30T01:37:45 < zyp> a friend bought a dell laptop with comparable specs around the same time as I bought the MBP, it was also more expensive
2012-05-30T01:37:46 <+dekar> j/k
2012-05-30T01:38:17 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-245-172.clienti.tiscali.it] has quit [Remote host closed the connection]
2012-05-30T01:38:39 -!- BrainDam- [BrainDamag@i.love.tiltshellz.org] has left ##stm32 ["PART ##electronics :PART ##physics :PART ##rtlsdr :PART #codez :PART #highaltitude :QUIT :Leaving."]
2012-05-30T01:38:57 <+dekar> but that's it, if you compare MacBooks to HP elite books, Lenovo X-series, Sony Vayo etc, then they aren't more expensive
2012-05-30T01:39:06 -!- BrainDam- [BrainDamag@i.love.tiltshellz.org] has joined ##stm32
2012-05-30T01:39:14 < zyp> exactly
2012-05-30T01:39:34 <+dekar> if you compare them to acer… well you shouldn't
2012-05-30T01:39:44 < zyp> I'm not interested in cheap laptops that falls apart when you use them :p
2012-05-30T01:41:15 < zyp> hmm, reminds me that I've got a vaio as well
2012-05-30T01:41:30 < zyp> that might be the dumbest laptop purchase I've done :p
2012-05-30T01:43:32 <+dekar> I once paid 1400€ for a gericom laptop with a pentium4...
2012-05-30T01:43:46 < zyp> it's a vaio p that I bought two years ago
2012-05-30T01:44:18 < zyp> it's pretty much a decent netbook, that costs as much as three cheap netbooks
2012-05-30T01:44:34 <+dekar> well it has more power I assume
2012-05-30T01:44:39 <+dekar> like the macbook air
2012-05-30T01:44:43 < zyp> no
2012-05-30T01:44:51 < zyp> http://en.wikipedia.org/wiki/Sony_VAIO_P_series
2012-05-30T01:45:07 <+dekar> ah those :D
2012-05-30T01:45:35 <+dekar> yeah well, I'd probably get a smartphone instead these days
2012-05-30T01:45:42 <+dekar> one of those new 5" ones
2012-05-30T01:45:43 < zyp> it has a decent screen resolution, but 1.6 GHz atom is nothing for serious work
2012-05-30T01:46:52 < zyp> it was way more portable than my old 15" dell laptop, but my 13" MBP closed that gap and is much more useful
2012-05-30T01:47:43 <+dekar> yeah 13" is pretty much perfect imo
2012-05-30T01:48:00 <+dekar> I had a 12" samsung before
2012-05-30T01:48:18 <+dekar> and well, the 12" x220 had a nice size as well… -.-"
2012-05-30T01:48:23 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-30T01:48:30 < zyp> I used the vaio for a few lectures at uni when I still had those, and nowadays I mostly get it out when I need a windows machine
2012-05-30T01:49:10 < zyp> using it to make windows builds of stuff I write is fun, I'm amazed at how long compiling trivial shit can take :p
2012-05-30T01:49:21 <+dekar> I can imagine -.-"
2012-05-30T01:50:05 <+dekar> I actually also have an atom PC, it is even dualcore
2012-05-30T01:50:09 <+dekar> still horrible slow
2012-05-30T01:50:15 -!- os-app92 [~ftw@37.170.195.77.rev.sfr.net] has quit [Ping timeout: 252 seconds]
2012-05-30T01:50:17 < zyp> true dualcore, not just HT?
2012-05-30T01:50:30 <+dekar> true dual core, also has HT
2012-05-30T01:50:36 <+dekar> 4 virtual cores
2012-05-30T01:50:39 < zyp> ah, right
2012-05-30T01:50:45 <+dekar> I use it for my projector
2012-05-30T01:51:06 <+dekar> it's one of those nvidia ION ones, using mplayer to play stuff, decoding it via the GPU
2012-05-30T01:51:32 < zyp> makes it kind of okay
2012-05-30T01:51:33 <+dekar> also hooked up to my external dolby decoder so it basically has 2% load while playing video
2012-05-30T01:51:50 <+dekar> though if I try to open 720p flash video it lags really bad
2012-05-30T01:52:16 <+dekar> I think I even over clocked it to 2.1ghz XD
2012-05-30T01:52:48 < zyp> I should probably try selling the vaio while it's still worth something
2012-05-30T01:53:08 <+dekar> yeah I'd do that
2012-05-30T01:53:49 < zyp> old shit have a tendency to accumulate here, because I don't bother selling stuff when I don't believe I can get much for it
2012-05-30T01:54:59 < zyp> well
2012-05-30T01:56:14 < zyp> either way, I'll bring it with me when I go to japan on vacation this summer, it got an internal wimax card, so it can have internet access pretty much anywhere near the big cities
2012-05-30T01:57:28 <+dekar> that's cool, I've never used wimax (it isn't used around here)
2012-05-30T01:57:34 <+dekar> how much do they charge for it?
2012-05-30T01:57:37 < zyp> I bought it in japan and got a few weeks of free wimax usage last time I were there, that was pretty neat
2012-05-30T01:58:16 < zyp> I'm not sure what they charge, but I don't think it's overly expensive
2012-05-30T01:58:54 <+dekar> probably cheaper than 3g though, or at least higher traffic limits
2012-05-30T01:59:04 < zyp> was no limit
2012-05-30T01:59:22 <+dekar> they started limiting 3g to 5gb/month in germany
2012-05-30T01:59:35 <+dekar> a few years ago I had unmetered 3g and used it exclusively
2012-05-30T01:59:46 <+dekar> but they don't offer that anymore
2012-05-30T01:59:52 < zyp> and it was pretty fast as well, I remember I measured 13 Mb/s while I was sitting on a train in tokyo, which in 2010 was faster than my home line :p
2012-05-30T02:00:00 <+dekar> neat :)
2012-05-30T02:00:27 <+dekar> well japan, from what I heard DSL is only for rural areas there
2012-05-30T02:00:54 < zyp> I don't know anything about that, I just go there on vacation now and then :p
2012-05-30T02:02:29 < zyp> in 2008 we rented an apartment in tokyo for a month, which came with VDSL, but I don't remember what speed we got from that :p
2012-05-30T02:07:09 <+dekar> I live in a city and I still can't seem to get VDSL here -.-
2012-05-30T02:07:24 <+dekar> they actually sold me VSDL, but I never got a link
2012-05-30T02:07:55 < zyp> the only decent alternative in the neighboorhood I live is cable
2012-05-30T02:08:24 < zyp> there is no fiber here and we're too far from the DSLAM to get any decent speeds over DSL
2012-05-30T02:08:49 < zyp> but it's okay, I'm perfectly happy with 70/10 over cable :p
2012-05-30T02:09:29 <+dekar> our house has no cable, we have some sat system :/
2012-05-30T02:09:45 <+dekar> only getting 12/1 ADSL
2012-05-30T02:10:11 <+dekar> but well, it's actually not to bad
2012-05-30T02:10:23 <+dekar> I remember when I had 768kbit/s adsl
2012-05-30T02:10:29 < zyp> I think it's better than what I could get over DSL here :p
2012-05-30T02:35:34 -!- ntfreak_ [~ntfreak@unaffiliated/ntfreak] has quit [Ping timeout: 245 seconds]
2012-05-30T02:52:07 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32
2012-05-30T02:52:22 < R2COM> i have a feeling that stm32f4discovery board has fucked up schematics
2012-05-30T02:52:45 < zyp> how?
2012-05-30T02:52:50 < R2COM> it says that when both jumpers on CN3 are OFF, then you can program it externally
2012-05-30T02:52:58 < dongs> dings
2012-05-30T02:53:00 < R2COM> when they are ON, then onboard stm32f103 programs it
2012-05-30T02:53:07 < R2COM> right?
2012-05-30T02:53:11 < zyp> R2COM, wrong
2012-05-30T02:53:33 < zyp> when the jumpers are off, the onboard st-link can be used through the swd port to program external devices
2012-05-30T02:53:55 < R2COM> wait
2012-05-30T02:53:56 < R2COM> but
2012-05-30T02:54:22 < R2COM> in my case they are ON now, both of them... on CN3. However, i am still programming it without any external programmer
2012-05-30T02:54:31 < zyp> exactly
2012-05-30T02:54:42 < R2COM> ops
2012-05-30T02:54:54 < zyp> when they are on, the onboard st-link are connected to the onboard target
2012-05-30T02:54:56 < R2COM> the on board ST-LINK can be used to program External devices....
2012-05-30T02:55:16 < zyp> you take them off to disconnect the onboard target, so it won't interfere with external targets
2012-05-30T02:56:09 < R2COM> oh and then i can use ST-link V2 of this board to program my other custom boards?
2012-05-30T02:56:19 < zyp> exactly
2012-05-30T02:56:24 < R2COM> hmm
2012-05-30T02:57:18 < zyp> http://bin.jvnv.net/f/MNigG.JPG <- me doing that
2012-05-30T02:57:37 < dongs> nice ipv6 bro
2012-05-30T02:57:53 < zyp> you've probably seen it before, it's half a year old :p
2012-05-30T02:58:08 < dongs> oo, billesc
2012-05-30T02:58:11 < dongs> nice breakout
2012-05-30T02:58:13 < dongs> where'd you get that
2012-05-30T02:58:20 < R2COM> yeah i just got their sentence in the text wrong
2012-05-30T02:58:26 < dongs> stole from work?
2012-05-30T02:58:32 < zyp> ha, no
2012-05-30T02:58:41 < R2COM> it sounded to me like, when they are off, i can use external programmer to program stm32f4 on discovery board
2012-05-30T02:58:42 < R2COM> ok
2012-05-30T02:58:50 < R2COM> and then from schematics saw no way
2012-05-30T02:59:33 < zyp> R2COM, you can probably do that as well
2012-05-30T02:59:49 < R2COM> how is SWD interpreted?
2012-05-30T02:59:56 < R2COM> serial ...W  ... ebug?
2012-05-30T02:59:58 < R2COM> debug
2012-05-30T03:00:01 < R2COM> serial wire debug?
2012-05-30T03:00:04 < zyp> yes
2012-05-30T03:00:16 < R2COM> so, no jtag is supported it seems?
2012-05-30T03:00:24 < zyp> swd pins are PA13 and PA14, they are broken out along with all the other gpios
2012-05-30T03:00:34 < R2COM> this st-link/v2 can only program its own on board device, or external device only using SWD
2012-05-30T03:00:50 < zyp> so you could disconnect the internal debugger and connect an external to those pins
2012-05-30T03:00:55 < zyp> yes
2012-05-30T03:01:02 < zyp> swd use a subset of jtag pins
2012-05-30T03:01:21 < zyp> it's an alternate transport for the same information
2012-05-30T03:02:15 < zyp> all stm32 devices support swd, and the pins used are a subset of jtag pins, so if jtag is available on the device you want to debug/program, swd can also be used
2012-05-30T03:02:36 < R2COM> thanks for this info
2012-05-30T03:02:47 < dongs> you can also reuse useless jtag pins as IO
2012-05-30T03:02:58 < zyp> yes
2012-05-30T03:03:21 < zyp> you can even reuse all pins for IO if you don't need swd :p
2012-05-30T03:03:26 < dongs> well yeha
2012-05-30T03:04:02 -!- peabody128 [~peabody12@128.249.96.123] has joined ##stm32
2012-05-30T03:04:17 < zyp> hmm, doesn't jtag have a boundary scan TAP as well?
2012-05-30T03:04:38 -!- peabody128 [~peabody12@128.249.96.123] has quit [Remote host closed the connection]
2012-05-30T03:04:48 -!- peabody124 [~peabody12@128.249.96.21] has quit [Read error: Connection reset by peer]
2012-05-30T03:05:13 < zyp> I think that's not available over swd, so requiring that would probably be the sole reason to use jtag over swd
2012-05-30T03:05:52 < zyp> or doing actual chains of several jtag devices
2012-05-30T03:06:06 < dongs> yeah you cant chain swd.
2012-05-30T03:06:08 < dongs> but shrug
2012-05-30T03:06:46 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-30T03:08:01 < zyp> that's probably more interesting for automated testing of mass produced boards than development
2012-05-30T03:08:51 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Remote host closed the connection]
2012-05-30T03:09:22 < R2COM> so on my custom board with STM32f405RGT6, ill just make sure i break out: PA14(JTAG_CK),  PA15(JTAG_DI), PA13(JTAG_SWDIO), PB6(JTAG_RST)
2012-05-30T03:09:29 < dongs> what, by paneling them up and only attaching debug connector to like one part of a X by Y panel?
2012-05-30T03:09:36 < R2COM> and then i guess ill be able to program that using my stm32f4discovery
2012-05-30T03:09:58 < dongs> why not just use standard connectors for this shit.
2012-05-30T03:10:00 < dongs> instead of being a turd
2012-05-30T03:10:10 < dongs> http://www.keil.com/coresight/connectors.asp
2012-05-30T03:10:15 < zyp> agreed
2012-05-30T03:10:42 < zyp> go with the small 10-pin connectors
2012-05-30T03:10:42 < R2COM> because i dont have space on my board for that stadard shit
2012-05-30T03:10:48 < dongs> bullshit
2012-05-30T03:10:50 < R2COM> its really super tight design
2012-05-30T03:11:04 < dongs> you dont have space for 10-pin (0.05") - Cortex Debug Connector ?
2012-05-30T03:11:21 < dongs> you dont need TDI btw at all
2012-05-30T03:11:31 < R2COM> NO!
2012-05-30T03:11:32 < dongs> if youre breaking out anything, breakout SWIO, SWCLK, SWO.
2012-05-30T03:11:46 < zyp> and nreset
2012-05-30T03:12:13 < dongs> i think swd can reset without that but yeah that too
2012-05-30T03:12:13 < R2COM> nreset of jtag, not the main NRST right?
2012-05-30T03:12:19 < dongs> main nreset.
2012-05-30T03:12:20 < zyp> main NRST
2012-05-30T03:12:25 < R2COM> hmm
2012-05-30T03:12:26 < zyp> jtag reset is not used
2012-05-30T03:12:38 < R2COM> oh
2012-05-30T03:13:04 < R2COM> right now i made my NRST (main one) with just pushbutton
2012-05-30T03:13:12 < dongs> and youre bitching about space?
2012-05-30T03:13:19 < dongs> I have *never* put a reset button on any stm32 board I made
2012-05-30T03:13:25 < dongs> wtf would be the use?
2012-05-30T03:13:29 < R2COM> its tiny button much smaller than that connector with 10 pins
2012-05-30T03:13:42 < R2COM> yes im trying to figure out, so... im going to remove it and break it out then
2012-05-30T03:14:14 < zyp> did you get that part about the connector being 0.05" pitch?
2012-05-30T03:14:20 < dongs> heh
2012-05-30T03:15:16 < R2COM> right now i have broken out: JTAG_SWDIO, JTAG_DI, JTAG_CK, JTAG_DO, JTAG_RST
2012-05-30T03:15:24 < R2COM> zyp yes i see it
2012-05-30T03:15:36 < R2COM> so from those things, i remove then JTAG_RST...
2012-05-30T03:27:08 < zyp> dongs, so, I heard that you'll stop using the internet on 6th of june
2012-05-30T03:28:38 < dongs> haha
2012-05-30T03:28:49 < dongs> is it another of those retarded ip6 days
2012-05-30T03:29:04 < dongs> R2COM: remove jtag_rst, jtag_di, add SWO
2012-05-30T03:29:11 < dongs> well, unless you dont actually plan to debug
2012-05-30T03:29:18 < dongs> add nrst
2012-05-30T03:29:22 < R2COM> yeah sure i plan to debug
2012-05-30T03:29:38 < zyp> dongs, yeah, they say «turn it on and leave it on»
2012-05-30T03:30:04 < dongs> never seen anyone except hackers use ipv6
2012-05-30T03:30:44 < R2COM> wait a second... JTAG_DO *is* SWO, or am i wrong?
2012-05-30T03:30:58 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 252 seconds]
2012-05-30T03:31:00 < dongs> is it? i dunno, i dont use JTAG* names on stm32 since they're not needed
2012-05-30T03:31:01 < zyp> as I said, swd pins are a subset of jtag pins
2012-05-30T03:31:14 < R2COM> pin 55, PB3, it goes to SWO and to JTAG_DO , right?
2012-05-30T03:31:21 < R2COM> ok
2012-05-30T03:31:23 < dongs> k
2012-05-30T03:38:49 < R2COM> also seems like in that case i dont need pullup resistor for NRST
2012-05-30T03:39:00 < R2COM> if NRST is going to come from the st-link
2012-05-30T03:39:50 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has quit [Ping timeout: 248 seconds]
2012-05-30T03:42:12 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32
2012-05-30T04:02:03 < dongs> no you do
2012-05-30T04:02:13 < R2COM> ok, finalized, so from a custom board im breaking out 6 pins: 1- VDD, 2- SWCLK,PA14, 3-GND, 4-SWDIO,PA13, 5-NRST, 6-SWO,PB3.
2012-05-30T04:02:15 < R2COM> i do?
2012-05-30T04:02:18 < dongs> yes.
2012-05-30T04:02:18 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer]
2012-05-30T04:02:26 < R2COM> i mean resistor for NRST?
2012-05-30T04:02:29 < dongs> yes.
2012-05-30T04:02:40 < R2COM> wait...how come stm32f4discovery not have it?
2012-05-30T04:03:04 < dongs> pullup on a pin that ruins your mcu's day by resetting it is not a bad idea.
2012-05-30T04:04:09 < R2COM> im just looking at stm32f4 board schematics
2012-05-30T04:04:11 < R2COM> they dont have it
2012-05-30T04:04:52 < dongs> and?
2012-05-30T04:05:02 < dongs> put 4.7k pullup on it and be done wiht it.
2012-05-30T04:05:21 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
2012-05-30T04:05:42 < R2COM> yeah, i will it was just weird
2012-05-30T04:05:57 -!- zyp [zyp@zyp.im] has quit [Ping timeout: 248 seconds]
2012-05-30T04:12:25 < R2COM> if im planning to use my stm32f405 to give some clock to another chip on PCB, what would be a best way to do it?
2012-05-30T04:12:39 < R2COM> theoretically, from the datasheet, i can see that it can go up to 84MHz
2012-05-30T04:12:40 < R2COM> IO speed
2012-05-30T04:12:47 < R2COM> so i can feed anyone with 84MHz clock
2012-05-30T04:13:25 < R2COM> i can do it, by flipping the GPIO bit, or just use PWM... just was wondering what would be best for stm32
2012-05-30T04:13:29 < dongs> use PWM
2012-05-30T04:13:33 < dongs> gpio would be retarded
2012-05-30T04:13:36 < dongs> PWM you just set once and done
2012-05-30T04:14:16 < dongs> Shipping Method:      Standard (Shipping Charge US $ 35.64) Priority (Shipping Charge US $ 27.42)
2012-05-30T04:14:19 < dongs> makes total sense.
2012-05-30T04:14:31 < R2COM> yeah
2012-05-30T04:14:42 < R2COM> also
2012-05-30T04:14:54 < R2COM> i am thinking of transfering some data serially, but its not quite SPI...
2012-05-30T04:15:05 < R2COM> so for that case i guess i *will* have to use bit flipping of GPIO
2012-05-30T04:17:10 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-30T04:20:35 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 252 seconds]
2012-05-30T04:22:35 < dongs> depends.
2012-05-30T04:22:42 < dongs> how is it 'not quite spi"
2012-05-30T04:22:44 < dongs> you have clock +data?
2012-05-30T04:23:17 < R2COM> yes
2012-05-30T04:23:32 < dongs> so where's the problem
2012-05-30T04:23:51 < R2COM> let me show
2012-05-30T04:25:01 < R2COM> timing will have to be something like this:
2012-05-30T04:25:02 < R2COM> http://picpaste.com/pics/spi_comm-UL2vohEr.1338341088.png
2012-05-30T04:25:20 < R2COM> CCLK and Master DIN come from stm32
2012-05-30T04:25:28 < R2COM> INITB and Program B also come from stm32
2012-05-30T04:25:40 < R2COM> ignore master DOUT and DONE
2012-05-30T04:25:42 < dongs> looks fine
2012-05-30T04:25:45 < dongs> is this some LED light shit
2012-05-30T04:25:50 < R2COM> no
2012-05-30T04:25:56 < R2COM> its FPGA configuration for spartan6
2012-05-30T04:26:07 < dongs> anyway yeah you can totally clock that out wiht spi.
2012-05-30T04:26:34 < R2COM> or, you mean, transfer that data using SPI module of stm32?
2012-05-30T04:26:41 < dongs> yes.
2012-05-30T04:26:57 < R2COM> ok, in that case i guess no need to use PWM for clock, ill just use its spi
2012-05-30T04:27:12 < dongs> this is why you have stm32evalboards.
2012-05-30T04:27:17 < dongs> you test all this shit before making a pcb.
2012-05-30T04:27:18 < dongs> its not hard.
2012-05-30T04:27:22 < R2COM> well.
2012-05-30T04:27:23 < R2COM> but
2012-05-30T04:27:26 < dongs> no wells.
2012-05-30T04:27:38 < R2COM> i actually dont have two devices on my stm32f4discovery
2012-05-30T04:27:49 < dongs> then you make it happen
2012-05-30T04:28:03 < R2COM> with wires? yes...but there will be signal integrity issues on high speed
2012-05-30T04:28:20 < karlp> hey look, only 16$ http://www.hobbyking.com/hobbyking/store/uh_viewItem.asp?idProduct=19239
2012-05-30T04:28:21 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 248 seconds]
2012-05-30T04:28:45 < R2COM> plus, how am i going to connect FPGA with wires? :) no way, in this case it makes sense just get it right and do PCB
2012-05-30T04:28:48 < dongs> R2COM: and? dont run it at high speed. change spi clock divider.
2012-05-30T04:28:55 < dongs> you have a breakout board for fpga right.
2012-05-30T04:28:58 < dongs> or evalboard/whateer
2012-05-30T04:28:59 < R2COM> no
2012-05-30T04:29:00 < R2COM> i dont
2012-05-30T04:29:02 < dongs> then you should.
2012-05-30T04:29:14 < R2COM> well i dont
2012-05-30T04:29:31 < R2COM> most if not all boards come with already wired stuff for those things, and you cant reuse them
2012-05-30T04:31:59 < R2COM> i just didnt work with SPI in stm32, dongs take a look at that diagram again, do you see that edge of the CCLK hits center of dataeye of Master DIN? you sure one can achieve that on stm32?
2012-05-30T04:32:44 < dongs> yeah this is cpol/cpha shit in SPI configuration
2012-05-30T04:33:42 < R2COM> ok
2012-05-30T04:33:49 < dongs> why are you loading it using serial bitstream anyway
2012-05-30T04:34:01 < dongs> cant yo u just stick a configuration rom thre
2012-05-30T04:34:03 < dongs> or am i missing somehting
2012-05-30T04:37:23 < R2COM> well
2012-05-30T04:37:56 < R2COM> design is tiny... and functionalities are big, stm32 is needed to do some job as well as FPGA, so if they are both on board, then i dont want to introduce another chip
2012-05-30T04:38:04 -!- cjbaird [~cjb@ppp121-44-125-219.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-30T04:38:17 < R2COM> yes agree, putting their ROm and done..
2012-05-30T04:38:23 < R2COM> but not the case now with this design
2012-05-30T04:44:26 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-30T04:52:58 < dongs> 331 on a smd resistor is 330ohm right
2012-05-30T04:56:33 < BrainDam-> yes
2012-05-30T04:56:42 < BrainDam-> 33*10^1
2012-05-30T05:02:57 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-30T05:14:17 -!- peabody124 [~peabody12@128.249.96.21] has quit [Quit: peabody124]
2012-05-30T05:15:05 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer]
2012-05-30T05:15:28 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32
2012-05-30T05:39:02 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-30T05:39:21 < R2COM> do you usually use pull-ups on debug pins of: SWO, SWCLK, SWDIO ?
2012-05-30T05:42:15 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 244 seconds]
2012-05-30T05:48:04 < dongs> no
2012-05-30T05:48:13 < dongs> those arent needed.
2012-05-30T05:52:14 < R2COM> just NRST
2012-05-30T05:52:15 < R2COM> ok
2012-05-30T05:52:22 < R2COM> but wait
2012-05-30T05:52:26 < R2COM> you sure?
2012-05-30T05:52:42 < R2COM> most of communication of such type require them
2012-05-30T05:52:53 < R2COM> it might be ok though...
2012-05-30T05:53:48 < R2COM> on the stm32 they just put22Ohm resistors in series for those pins...
2012-05-30T06:00:26 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-30T06:02:21 < R2COM> also, what about JTAG_DI ? that one is mostly not used as well?
2012-05-30T06:24:51 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-30T06:35:25 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-30T06:35:28 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-30T06:44:33 < dongs> what
2012-05-30T06:44:47 < dongs> you dont need  DI if youre doing SWD>
2012-05-30T06:44:56 < dongs> you dont ne ed resistors inline or pullup on any swd lines
2012-05-30T06:45:01 < dongs> they have some internal ones to STM32.
2012-05-30T06:45:07 < dongs> some shit requires it but not this shit.
2012-05-30T06:46:07 < R2COM> got it
2012-05-30T07:42:36 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 246 seconds]
2012-05-30T08:58:33 < R2COM> the code of st-link/v2 running in stm32f103 on the stm32f4discovery board is not open source right?
2012-05-30T09:23:23 < dongs> mp/
2012-05-30T09:23:24 < dongs> no
2012-05-30T09:25:52 -!- zyp [zyp@zyp.im] has joined ##stm32
2012-05-30T09:25:57 -!- zyp [zyp@zyp.im] has left ##stm32 []
2012-05-30T09:25:59 < dongs> zyp's ipv6 died overnight
2012-05-30T09:26:00 < dongs> wat.
2012-05-30T09:26:04 -!- zyp [zyp@zyp.im] has joined ##stm32
2012-05-30T09:26:10 < dongs> zyp's ipv6 died overnight
2012-05-30T09:26:32 < zyp> server provider did a migration
2012-05-30T09:31:54 < zyp> did I miss anything interesting?
2012-05-30T09:31:56 < zyp> zlog
2012-05-30T09:31:57 < zlog> zyp: Log stored at http://tom-itx.dyndns.org:81/~tom-itx/irc/logs/%23%23stm32/2012-05-30.html
2012-05-30T09:32:20 < zyp> no.
2012-05-30T09:50:54 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has joined ##stm32
2012-05-30T09:55:12 < dongs> nope
2012-05-30T09:55:15 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has quit [Ping timeout: 246 seconds]
2012-05-30T09:55:15 < dongs> just more trolling
2012-05-30T09:55:34 < dongs> im finally gonna assemble me one autoquad board
2012-05-30T09:56:43 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-30T10:03:16 < R2COM> whats that autoquad board for?
2012-05-30T10:04:06 < ratatata> nu
2012-05-30T10:16:52 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32
2012-05-30T10:17:08 < pelrun> finally got my f1 discovery boards
2012-05-30T10:17:22 < pelrun> stupid stlink v1
2012-05-30T10:17:27 < dongs> eh
2012-05-30T10:17:31 < dongs> you can reflash to v2
2012-05-30T10:17:40 < pelrun> really? is there a hex anywhere?
2012-05-30T10:17:42 < dongs> wiht their upgrade util and some hax0ring
2012-05-30T10:17:44 < dongs> no
2012-05-30T10:17:48 < dongs> there's a stlinkupdater.exe
2012-05-30T10:17:52 < pelrun> ...hence the haxoring
2012-05-30T10:17:55 < pelrun> right, got it
2012-05-30T10:18:03 < dongs> all firmware there is aes encrypted bla bla
2012-05-30T10:18:11 < dongs> but if you step through it in debugger and change board type
2012-05-30T10:18:19 < dongs> you can force it to flash real stlinkv2 firmware w/swim/swd
2012-05-30T10:18:22 < dongs> to any revision board
2012-05-30T10:18:24 < dongs> since hardware is same..
2012-05-30T10:18:35 < dongs> i flashed all my V1 discovereis to v2
2012-05-30T10:18:36 < dongs> works fine
2012-05-30T10:18:42 < pelrun> yeah, I figured it should be possible if ST wasn't so stingy with the firmware file
2012-05-30T10:18:50 < pelrun> in any case
2012-05-30T10:19:15 < pelrun> I used zadig to override the usb mass storage driver for that vid/pid so that texane/stlink would work
2012-05-30T10:19:41 < pelrun> also nicely prevents that wretched folder window with the links showing up every time I plug in
2012-05-30T10:19:55 < dongs> what shitty OS are you on that autorun is still enabled?
2012-05-30T10:20:02 < pelrun> it's not autorun
2012-05-30T10:20:09 < pelrun> but still windows
2012-05-30T10:22:21 < pelrun> just it's default behaviour for read-only volumes
2012-05-30T10:22:32 < dongs> no its not
2012-05-30T10:22:32 < pelrun> I do agree it's shitty
2012-05-30T10:23:06 < nopcode> ohai
2012-05-30T10:26:51 < nopcode> i found that chibios seems to have a usb cdc test
2012-05-30T10:26:55 < nopcode> not a demo though
2012-05-30T10:27:00 < nopcode> but i guess i can just use that code
2012-05-30T10:27:05 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has joined ##stm32
2012-05-30T10:27:05 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has quit [Changing host]
2012-05-30T10:27:05 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32
2012-05-30T10:27:32 < nopcode> oh and, i saw the demos which blink LEDs never set those pads to be outputs
2012-05-30T10:27:47 < nopcode> how is that possible? does the default board initialization set those up?
2012-05-30T10:28:05 < nopcode> isnt that dangerous if you want to use them as inputs in an application?
2012-05-30T10:28:53 < zyp> they are set as outputs in board.h
2012-05-30T10:29:06 < zyp> which is application specific
2012-05-30T10:29:23 < nopcode> is that part of the demo/application?
2012-05-30T10:29:25 < nopcode> that
2012-05-30T10:29:42 < dongs> bored.h
2012-05-30T10:29:44 < nopcode> that's what i was wondering about... this mcuconf.h or something like that is also application specific setup, right?
2012-05-30T10:29:50 < zyp> yes
2012-05-30T10:32:04 < nopcode> ah well ok board.h is very readable... i guess those defaults are ok
2012-05-30T10:33:03 < nopcode> chconf.h, mcuconf.h, halconf.h..
2012-05-30T10:33:37 < nopcode> ah so the chibios code includes these from your specific application include directory? i get it
2012-05-30T10:34:56 < nopcode> if i place board.h in my app directory, will that (using the default makefile) override the regular board.h?
2012-05-30T10:35:40 < zyp> is there a regular board.h?
2012-05-30T10:36:07 < nopcode> well i mean the one for my board
2012-05-30T10:37:10 < zyp> ah, right
2012-05-30T10:37:22 < zyp> there weren't a premade one for my board, so I wrote my own
2012-05-30T11:09:57 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.]
2012-05-30T11:12:11 < nopcode> i'm a bit confused by all those clocks
2012-05-30T11:12:55 < zyp> why?
2012-05-30T11:13:52 < zyp> or rather, what part are you confused by?
2012-05-30T11:13:57 < nopcode> so... there is a 8.. khz? mhz? onboard oscillator by which the mcu boots?
2012-05-30T11:14:02 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Read error: Connection reset by peer]
2012-05-30T11:14:17 < nopcode> then you switch to external oscillator plus pll which multiplies the frequency by 8?
2012-05-30T11:14:18 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32
2012-05-30T11:14:31 < nopcode> and there is another multiplier which geenrates the 48 mhz usb clocks?
2012-05-30T11:14:32 < nopcode> clock
2012-05-30T11:15:08 < zyp> that's mostly right
2012-05-30T11:15:57 < zyp> the mcu boots off the HSI (high speed internal) oscillator
2012-05-30T11:16:46 < zyp> and in practice you usually enable the HSE to get a more precise clock source
2012-05-30T11:17:12 < zyp> both HSI and HSE can be used as a source for the PLL, and the PLL multiplication factor is configurable
2012-05-30T11:17:40 < nopcode> i see
2012-05-30T11:17:57 < zyp> so the cpu starts out clocked directly from the HSI, and you can then change to either the HSE directly or the PLL
2012-05-30T11:19:09 < zyp> not all peripherals can keep up with the cpu clock, so the peripheral buses also have clock divisors to run them at a fraction of the cpu clock
2012-05-30T11:19:54 < zyp> IIRC in F1 one of the APBs can run at the full 72 MHz, while the other have a max speed of half that
2012-05-30T11:20:40 < zyp> in F4 the max core clock is 168 MHz, while one bus can only handle 84 MHz and another can only handle 42 MHz
2012-05-30T11:20:47 < nopcode> alright :)
2012-05-30T11:20:56 < nopcode> and where do you setup the divisors in chibios?
2012-05-30T11:21:04 < nopcode> i assume the default is to run each at max speed
2012-05-30T11:21:11 < zyp> there are some nice diagrams explaining the clocks in the reference manuals
2012-05-30T11:21:31 < zyp> hmm, I don't remember, and yes, I believe max speed is the default
2012-05-30T11:21:45 < nopcode> ok then
2012-05-30T11:21:59 < nopcode> i really wanna understand how chibios is configured and works, i'm glad it
2012-05-30T11:22:03 < nopcode> it's so small
2012-05-30T11:22:15 < pelrun> dammit dongs, you've got me poking around the st update utility using ida pro now :)
2012-05-30T11:22:22 < zyp> I stopped using chibios a year ago or so
2012-05-30T11:22:32 < zyp> so I don't remember everything :p
2012-05-30T11:22:48  * pelrun has used freertos in the past, might investigate that on stm32
2012-05-30T11:23:53 < nopcode> pelrun: does it check the board version?
2012-05-30T11:24:05 < nopcode> zyp: why did you stop?
2012-05-30T11:24:16 < pelrun> it does, to determine which fw to flash
2012-05-30T11:24:39 < pelrun> just finding a nice place to override the board type from 1 to 2
2012-05-30T11:26:36 < nopcode> oh so its not like you select a firmware and it refuses if the version doesnt match?
2012-05-30T11:26:45 < nopcode> how does it detect the board type?
2012-05-30T11:28:48 < zyp> nopcode, because I decided it would be more fun writing everything from scratch :p
2012-05-30T11:29:13 < pelrun> there's a version-agnostic comms dll it uses
2012-05-30T11:29:27 < pelrun> just sends the 'gimme your version' command using that, I guess
2012-05-30T11:32:58 < nopcode> maybe there is a sprintf(s, "fw%d.bin", x); somewhere ;)
2012-05-30T11:37:08 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 240 seconds]
2012-05-30T11:37:25 < nopcode>   sduObjectInit(&SDU1);
2012-05-30T11:37:25 < nopcode>   sduStart(&SDU1, &serusbcfg);
2012-05-30T11:37:25 < nopcode>   usbDisconnectBus(serusbcfg.usbp);
2012-05-30T11:37:25 < nopcode>   chThdSleepMilliseconds(100);
2012-05-30T11:37:26 < nopcode>   usbConnectBus(serusbcfg.usbp);
2012-05-30T11:37:29 < nopcode> --
2012-05-30T11:37:42 < nopcode> hm, why is that necessary? how are you supposed to know this?
2012-05-30T11:37:50  * nopcode dislikes random delays in code
2012-05-30T11:38:00 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32
2012-05-30T11:45:13 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32
2012-05-30T11:45:13 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Read error: Connection reset by peer]
2012-05-30T12:04:17 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-30T12:06:21 < nopcode> hmm have the usb designers violated the KISS principle?
2012-05-30T12:06:31 < nopcode> it seems unecessarily complex... unicode? really?
2012-05-30T12:08:30 < zyp> usb were designed to be flexible, not simple
2012-05-30T12:09:02 < nopcode> HID devices having a normal and a "boot" protocol because the normal is too complex to implement within a bios... srsly wtf
2012-05-30T12:09:09 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 265 seconds]
2012-05-30T12:09:49 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32
2012-05-30T12:10:08 < cjbaird> eschew obfuscation
2012-05-30T12:18:25 < dongs> nopcode: i want my device descriptors in japanese, stfu
2012-05-30T12:19:27 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-30T12:21:42 < nopcode> ;)
2012-05-30T12:21:43 < nopcode> hokay
2012-05-30T12:27:09 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Ping timeout: 246 seconds]
2012-05-30T12:39:19 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32
2012-05-30T12:43:12 < pelrun_> dongs: had to repair my laptop psu last night, desoldered the output wires without writing down which way they went - was saved by the japanese text next to the pads saying 'black' and 'white'
2012-05-30T12:43:42 < pelrun_> sometimes my karaoke skills work to my benefit
2012-05-30T12:45:43 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Read error: Connection reset by peer]
2012-05-30T12:46:21 < dongs> lewl
2012-05-30T12:47:00 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32
2012-05-30T12:54:39 -!- izua [~izua@86.121.85.94] has joined ##stm32
2012-05-30T12:54:39 -!- izua [~izua@86.121.85.94] has quit [Changing host]
2012-05-30T12:54:39 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-30T12:54:42 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-30T13:02:43 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Ping timeout: 252 seconds]
2012-05-30T13:03:22 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has joined ##stm32
2012-05-30T13:03:34 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has quit [Changing host]
2012-05-30T13:03:34 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32
2012-05-30T13:05:01 < dongs> http://www.rcgroups.com/forums/showthread.php?t=1644723
2012-05-30T13:05:02 < dongs> last post
2012-05-30T13:07:07 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer]
2012-05-30T13:07:15 < nopcode> dongs: lol
2012-05-30T13:16:03 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-30T13:16:38 < pelrun_> hmm, that's interesting
2012-05-30T13:17:01 < pelrun_> I can get the firmware upgrade util to flash the V2 firmware, supposedly, but it still acts like a v1
2012-05-30T13:17:08 < pelrun_> even though it detects the firmware as v2
2012-05-30T13:17:46 < pelrun_> vid:pid stays the same
2012-05-30T13:17:52 < BrainDam-> have you tried rebooting the board?
2012-05-30T13:18:07 < pelrun_> yup
2012-05-30T13:18:34 < pelrun_> guess I need to do a bit more work :)
2012-05-30T13:18:56 < pelrun_> still, at least the util lets me flash back to v1 and get a working board again
2012-05-30T13:23:07 < pelrun_> interesting, this app can be configured as a console app too
2012-05-30T13:41:33 < nopcode> so if you write modern style code with threads passing stuff via locked queues etc
2012-05-30T13:41:39 < nopcode> does that make keeping realtime constraints harder_
2012-05-30T13:41:43 < nopcode> ?
2012-05-30T13:41:53 < nopcode> i mean like lots of threads
2012-05-30T13:43:35 < Thorn> it should be easier, not harder
2012-05-30T13:44:04 < Thorn> tasks in a rtos have priorities (and interrupts in cortex-m do too)
2012-05-30T13:44:10 < nopcode> on the other hand if you have an important control thread which operates in an infinite loop with 50ms sleeps inbetween you pretty much guarantee that the code runs every 50ms if you give the thread a high priority right_
2012-05-30T13:44:36 < dongs> well
2012-05-30T13:44:40 < dongs> or you can use a timer
2012-05-30T13:44:52 < nopcode> if a low-priority thread is running and the sleep-time of a high-priority thread runs out, it will be preempted_
2012-05-30T13:44:54 < dongs> and set a flag in timer hit function and wait for that flag in anothe thread
2012-05-30T13:44:55 < Thorn> when an interrupt fires and e.g. places a new item into a queue, the handler task will wake up immediately if all higher priority tasks are sleeping
2012-05-30T13:45:36 < nopcode> i suppose ISRs should be kept as short as possible?
2012-05-30T13:45:55 < Thorn> they should always be as short as possible
2012-05-30T13:45:55 < nopcode> linux has this concept of upper and lower half
2012-05-30T13:46:11 < nopcode> where i think the lower half can be preempted
2012-05-30T13:46:57 < nopcode> dongs: what is a timer? registering an ISR or using an OS timer?
2012-05-30T13:47:09 < Thorn> interrupts can preempt imterrupts (as long as you have the nvic), tasks can preempt tasks, but tasks can't preempt interrupts
2012-05-30T13:47:13 < nopcode> do callbacks from OS timers happen independently from thread scheudling?
2012-05-30T13:47:13 < zyp> IIRC cortex-m can stack up to four ISRs of different priorities
2012-05-30T13:48:01 < nopcode> so the general idea of an ISR is to move data to/from peripheral ASAP and signal some thread and return?
2012-05-30T13:48:25 < Thorn> zyp: I've never heard about such a limitation
2012-05-30T13:48:58 < zyp> Thorn, let me double check that
2012-05-30T13:49:02 < Thorn> nopcode: you have software and hardware timers (freertos terminology)
2012-05-30T13:49:39 < nopcode> ok
2012-05-30T13:50:06 < Thorn> software timers use the same systick interrupt as the scheduler
2012-05-30T13:50:11 < dongs> nopcode: os timer
2012-05-30T13:50:40 < dongs> nopcode: if youre 'moving data' in ISR, you should probably be using DMA :)
2012-05-30T13:51:01 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 244 seconds]
2012-05-30T13:51:51 < Thorn> you'd still need a dma transfer complete interrupt to wake up your task (unless you can do the processing in the interrupt)
2012-05-30T13:52:00 < nopcode> Thorn: which happoens many times per time-slice?
2012-05-30T13:52:13 < dongs> right, eaxctly but all you do is just set a flag in the dma transfer complete
2012-05-30T13:52:20 < dongs> and your task waiting  for hte flag wakes up and dicks with the data
2012-05-30T13:52:56 < nopcode> Thorn, dongs: ah ic. and you would make that task relatively high priority to make sure the othe half-buffer, say, is filled on time before the next dma interrupt?
2012-05-30T13:52:57 < Thorn> yeah, you use semaphores / mailboxes / whatever your os has for that
2012-05-30T13:53:05 < nopcode> that's cool
2012-05-30T13:53:19 < nopcode> a mailbox is a message queue?
2012-05-30T13:54:00 < Thorn> names differ between OSes
2012-05-30T13:54:02 < dongs> whatever your OS calls it
2012-05-30T13:54:27 < nopcode> well it transports structs from one thread to another in a thread-safe manner?
2012-05-30T13:54:32 < dongs> yeah.
2012-05-30T13:54:56 < nopcode> cool
2012-05-30T13:56:36 < Thorn> I wish there was a more or less comprehensive guuide on how to architect a rtos application, there're obviously a lot of pitfalls like priority inversion, starvation etc.
2012-05-30T13:57:17 < nopcode> i wish i had a better unterstanding of those issues too
2012-05-30T13:57:25 < nopcode> i'm still scared of multithreading
2012-05-30T13:57:36 < nopcode> only time i use it is for embarassingly parallel stuff
2012-05-30T13:57:36 < Laurenceb> heh
2012-05-30T13:57:42 < Thorn> there're books on multithreaded programming but those don't deal with interrupts
2012-05-30T13:57:44 < nopcode> so spawn,work,join
2012-05-30T13:57:47 < Laurenceb> yeah i dont really understnad how to do it well
2012-05-30T13:58:14 < Laurenceb> whats the best way to have a thread that runs every x seconds with strict timing?
2012-05-30T13:58:31 < Thorn> parallel computations can be automated, look at openmp, that intel library, even STL in c++11 now has async() and futures
2012-05-30T13:58:36 < zyp> Laurenceb, a scheduler that runs that thread every x seconds
2012-05-30T13:58:52 < Laurenceb> zyp: what calls the scheduler?
2012-05-30T13:58:58 < nopcode> Thorn: thats what i'm using
2012-05-30T13:59:07 < Thorn> that's relatively easy
2012-05-30T13:59:14 < zyp> Laurenceb, systick
2012-05-30T13:59:26 < Laurenceb> ok
2012-05-30T13:59:34 < Laurenceb> so is that attached to the kernel code
2012-05-30T13:59:48 < Laurenceb> or is there just a rtos function call in the systick isr?
2012-05-30T14:00:00 < nopcode> so chibios has "virtual timers" and it says the specified callback will be called from within an ISR
2012-05-30T14:00:24 < nopcode> so i supose that's pretty much independet of task scheduling
2012-05-30T14:00:41 < zyp> Laurenceb, what's the difference?
2012-05-30T14:00:58 < Laurenceb> well could i stick schedulaers in different interrupts?
2012-05-30T14:01:09 < Laurenceb> say run a kalman thread when mems data is ready
2012-05-30T14:01:13 < nopcode> systick is 1khz IIRC so you would get pretty accurate timing?
2012-05-30T14:01:24 < zyp> systick is configurable
2012-05-30T14:02:15 < Laurenceb> i cant spell
2012-05-30T14:02:15 < Thorn> enqueue and other system calls that can wake tasks up also call the scheduler (or you have to do it yourself if they signal that you need to, like in freertos, which is imo pretty silly)
2012-05-30T14:02:27 < Laurenceb> i see
2012-05-30T14:02:52 < Laurenceb> so they trigger a context switch
2012-05-30T14:04:11 < nopcode> so ... how does it work if you have an inifinite loop with 50ms sleeps inbetween iterations
2012-05-30T14:04:40 < nopcode> is the task is high priority, how accurate can you expect the sleep period to be?
2012-05-30T14:04:56 < nopcode> accurate to systick or to the length of a round-robin slice?
2012-05-30T14:05:12 < nopcode> assuming that a lower priority thread runs due to the high-priority thread sleeping
2012-05-30T14:07:04 < zyp> Laurenceb, when I say scheduler I'm talking about the magical thing that chooses which thread to run and triggers context switches
2012-05-30T14:07:17 < Laurenceb> ah
2012-05-30T14:07:33 < Laurenceb> i thought you mean thing that fiddles with thread priorities etc
2012-05-30T14:08:13 < zyp> isn't that part of it? thread priorities influences the choice of thread to run
2012-05-30T14:09:25 < nopcode> ok i just checked
2012-05-30T14:09:28 < Thorn> nopcode: take a look at vTaskDelayUntil() in freertos
2012-05-30T14:09:33 < nopcode> the sleep-functions actually use a virtual timer internally
2012-05-30T14:09:42 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has quit [Ping timeout: 248 seconds]
2012-05-30T14:09:45 < nopcode> so i suppose they work with systick-granularity
2012-05-30T14:10:24 < nopcode> and then it calls wakeup
2012-05-30T14:10:36 < nopcode> and wakeup does: Wakes up a thread.
2012-05-30T14:10:37 < nopcode> The thread is inserted into the ready list or immediately made running depending on its relative priority compared to the current thread.
2012-05-30T14:11:40 < Thorn> yes, tasks in a rtos can have 3 states: running, ready to run, sleeping
2012-05-30T14:12:12 < Thorn> the scheduler selects the higest priority task among those ready to run.
2012-05-30T14:12:53 < Thorn> so you better treat your high priority tasks more or less the same way as interrupts
2012-05-30T14:13:08 < Thorn> make sure their run time is bounded
2012-05-30T14:16:58 < Thorn> e.g. my current project being hacked has a task that scrolls a message on the lcd, it doesn't have a vTaskDelay() in its loop, so it has to be lowest priority or some other taks won't run
2012-05-30T14:18:30 < zyp> you can still have other ways of allocating time than plain priorities
2012-05-30T14:21:35 < Thorn> other than timer interrupts?
2012-05-30T14:26:57  * Laurenceb used software triggered interrupts with nesting
2012-05-30T14:27:00  * Laurenceb runs
2012-05-30T14:27:19 < nopcode> so... if you have a music player that fills half of a dma buffer once that half has been played - which synchronization pritimives would you use to wake up the player thread from the "dma done" ISR?
2012-05-30T14:31:13 < nopcode> the easiest concept for me to grasp are mailboxes
2012-05-30T14:31:25 < nopcode> i would probably just put the address and size of the half-buffer to be filled into a mailbox
2012-05-30T14:32:03 < nopcode> and the player would wait for that on the mailbox
2012-05-30T14:32:10 < zyp> I'd go with «set thread ready to run» in the ISR, provided that my scheduler could do that
2012-05-30T14:32:22 -!- BrainDam- is now known as BrainDamage
2012-05-30T14:32:32 < nopcode> zyp: well high-level synchronization primitives are basically abstractions of that
2012-05-30T14:32:35 < nopcode> question is which one to use
2012-05-30T14:32:49 < nopcode> i always find condition variables fscking confusing
2012-05-30T14:33:03 < zyp> neither, I'd go with the explicit «set thread ready to run»
2012-05-30T14:33:11 < pelrun_> have the play thread block on a binary semaphore, signal it from isr
2012-05-30T14:33:32 < nopcode> pelrun_: would you have a separate binary semaphore per half-buffer?
2012-05-30T14:33:46 < pelrun_> there's only one semaphore, for 'data available'
2012-05-30T14:33:50 < nopcode> and have ISR and play thread alternate between signalling / waiting each?
2012-05-30T14:33:51 < nopcode> hm
2012-05-30T14:33:51 < nopcode> ok
2012-05-30T14:34:26 < nopcode> you mean "buffer free", right?
2012-05-30T14:34:38 < zyp> depending on which way you're DMA-ing
2012-05-30T14:34:48 < pelrun_> oh, right
2012-05-30T14:35:12 < pelrun_> yeah, the play thread would write out one half-buffer per signal
2012-05-30T14:36:12 -!- izua [~izua@86.121.85.94] has joined ##stm32
2012-05-30T14:36:12 -!- izua [~izua@86.121.85.94] has quit [Changing host]
2012-05-30T14:36:12 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-30T14:36:15 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-30T14:36:18 < pelrun_> start the dma, then block on the semaphore
2012-05-30T14:36:32 < pelrun_> the dma complete isr would signal the semaphore, then disable itself
2012-05-30T14:36:41 < Laurenceb> zyp: if you set inside the isr, does that mean the thread nests inside the isr?
2012-05-30T14:36:53 < pelrun_> wait, that's audio, you probably want the dma running continuously
2012-05-30T14:37:26 < pelrun_> so the play thread shouldn't be changing the dma run state itself
2012-05-30T14:37:37 < Laurenceb> i mean how does the isr complete?
2012-05-30T14:38:10 < pelrun_> no, you signal the semaphore in the ISR, then when the ISR completes the scheduler runs and starts up the play thread
2012-05-30T14:38:20 < Laurenceb> ah
2012-05-30T14:38:27 < Laurenceb> that makes more sense
2012-05-30T14:38:36 < pelrun_> signalling the semaphore will change the thread state from "blocked" to "ready to run"
2012-05-30T14:38:47 < pelrun_> then it just depends on the thread priorities when it gets scheduled
2012-05-30T14:38:50 < Laurenceb> how do you force the scheduler to run at isr completion?
2012-05-30T14:39:41 < pelrun_> iirc in freertos you passed a flag out that said "hey, I just signalled something"
2012-05-30T14:40:06 < pelrun_> but usually you can wait until the next context switch
2012-05-30T14:40:33 < pelrun_> since the scheduler runs at fixed intervals anyway
2012-05-30T14:40:41 < Laurenceb> is the isr return code modified to include the scheduler?
2012-05-30T14:41:17 < pelrun_> ?
2012-05-30T14:41:33 < Laurenceb> oh ok
2012-05-30T14:41:43 < pelrun_> the scheduler has it's own timer interrupt
2012-05-30T14:41:43 < Laurenceb> so the schedular just runs in systick?
2012-05-30T14:41:46 < Laurenceb> i see
2012-05-30T14:41:51 < Laurenceb> hmm that gives lag
2012-05-30T14:41:56 < zyp> Laurenceb, in my code I can in theory trigger a context switch from any interrupt
2012-05-30T14:42:04 < pelrun_> don't know the specific details of the stm32 implementation
2012-05-30T14:42:06 < Laurenceb> cool
2012-05-30T14:42:26 < Laurenceb> zyp: so isr return code includes the scheduler?
2012-05-30T14:42:37 < Laurenceb> oh wait
2012-05-30T14:42:40 < Laurenceb> i get it
2012-05-30T14:42:50 < pelrun_> lag is inevitable, but it's a bounded value
2012-05-30T14:42:52 < Laurenceb> you return _to_ the new thread from the isr
2012-05-30T14:43:01 < zyp> Laurenceb, yes, exactly
2012-05-30T14:43:10 < Laurenceb> i understand now
2012-05-30T14:44:33 < dongs> blogtext switch
2012-05-30T14:47:53 < dongs> dilemma: fap or assemble some pcbs this evening
2012-05-30T14:48:15 < BrainDamage> the 2 are not mutually exclusive
2012-05-30T14:48:19 < BrainDamage> you got 2 hands
2012-05-30T14:48:21 < dongs> you know you are right
2012-05-30T14:48:39 < dongs> since we're on the topic of multitasking I think I will do exactly that.
2012-05-30T14:48:47 <+izua> please take pictures when you'll fap your soldering iron and shove your junk in hot solder
2012-05-30T14:49:12 <+izua> "oh shit, i forgot to switch contexts"
2012-05-30T14:49:53 < dongs> laff.
2012-05-30T14:53:02 < dongs> do need to finalize digikey order though. probably gonna forget to get something as usual.
2012-05-30T14:57:57 < Laurenceb> heh raspberry pi map is funny
2012-05-30T14:58:11 < Laurenceb> im in a big hole with none for 25miles
2012-05-30T14:58:47 < nopcode> re
2012-05-30T14:59:07 < BrainDamage> I guess you badmouting the rpi to friends etc had part in that :p ( not that I love the pi either )
2012-05-30T14:59:09 < dongs> rapeberry.
2012-05-30T15:00:22 < nopcode> can you get raspberry pis now?
2012-05-30T15:01:05 < BrainDamage> I doubt the supply will be "normal" in for the first 2-3 batches
2012-05-30T15:01:17 < BrainDamage> too many "I want it now"
2012-05-30T15:01:35 < BrainDamage> maybe near october-december
2012-05-30T15:03:32 < nopcode> ok i see, i can wait... the stm32 is more than enough complexity for now
2012-05-30T15:03:42 < nopcode> its a nice playing field :)
2012-05-30T15:06:06 < zyp> Laurenceb didn't even want one, and he's still the first in the channel (that I know of) to get one :p
2012-05-30T15:06:38 < Thorn> btw, how does freertos use pendsv?
2012-05-30T15:07:14 < Thorn> can it be related to running a scheduler right after an interrupt where a context switch was requested?
2012-05-30T15:07:59 < zyp> probably
2012-05-30T15:09:35 < Thorn> I never bothered to learn wth pendsv is. need to consult the book
2012-05-30T15:11:56 < Thorn> also, that multitasking dongs snippet should be put on the front page of the channel wiki, if it ever comes into existence
2012-05-30T15:12:29 < zyp> which snippet?
2012-05-30T15:13:31 < Thorn> this channel's log snippet from 25 minutes ago
2012-05-30T15:13:54 < zyp> right
2012-05-30T15:19:33 < nopcode> so this freertos sounds like its a proper pita eh?
2012-05-30T15:19:57 < zyp> I can't say, never used it
2012-05-30T15:20:09 < nopcode> hmm anyone connected a stm32 to a CRT and did sprite gfx?
2012-05-30T15:20:09 < karlp> it has extremeely wide support, because it's quite old
2012-05-30T15:20:18 < nopcode> whats the pixel clock on a tv like
2012-05-30T15:20:19 < karlp> but it might not be as sexy as chibios and easy to use
2012-05-30T15:20:20 < nopcode> 25 mhz?
2012-05-30T15:21:07 < nopcode> sprite gfx needs like one dependent lookup
2012-05-30T15:21:41 < dongs> i refuse to use chibios because it sounds like it was written by osme kawaii animu fgt
2012-05-30T15:21:59 < nopcode> dongs: i was wondering about the name
2012-05-30T15:22:05 < nopcode> but it seems he has all his marbles together
2012-05-30T15:22:12 < nopcode> considering the code style and tests and stuff
2012-05-30T15:22:33 < Thorn> thankfully the logo isn't anime related
2012-05-30T15:23:12 < BrainDamage> oh god, I google kawaii, it's the kind of crap I feel the urge to set on fire when I see
2012-05-30T15:23:23 < dongs> i didnt even get that far into checking it.
2012-05-30T15:23:33 < nopcode> well hello kitty is cute
2012-05-30T15:28:36 < Thorn> also, freertos is ridiculously easy to use, you only need 3 api calls (3 more for queues)
2012-05-30T15:28:59 < Laurenceb> https://github.com/snowcap-electronics/OpenOCD-SWD
2012-05-30T15:29:04 < Thorn> but freertosconfig.h is pretty involved
2012-05-30T15:29:07 < Laurenceb> do i need that to use discovery?
2012-05-30T15:29:35 < zyp> no
2012-05-30T15:30:05 < zyp> I built the latest revision of the master openocd git branch when I tested yesterday
2012-05-30T15:30:12 < Laurenceb> ah
2012-05-30T15:30:27 < BrainDamage> make sure you enable stlink support when ./configure ing
2012-05-30T15:30:46 < BrainDamage> then pass -f board/stm32somethingdiscovery.cfg
2012-05-30T15:31:49 < Laurenceb> ewww
2012-05-30T15:31:55 < Laurenceb> think ill try later
2012-05-30T15:32:25 < Laurenceb> is there a tutorial somewhere/
2012-05-30T15:34:07 < nopcode> if i want to switch some load from my stm32 usb-powered eval board
2012-05-30T15:34:20 < nopcode> but the load uses a separate 12V source, say
2012-05-30T15:34:24 < nopcode> can i just connect the grounds?
2012-05-30T15:35:20 < zyp> depends on the sources
2012-05-30T15:35:56 < zyp> as long as both sources are fully independent or has gnd at the same potential, it's fine
2012-05-30T15:36:01 < nopcode> so one would be the usb port on a computer the other would be a wall adapter
2012-05-30T15:36:12 < nopcode> well i dont know :(
2012-05-30T15:36:19 < zyp> otherwise use an optocoupler
2012-05-30T15:36:27 < nopcode> yeah...i thought so
2012-05-30T15:36:32 < nopcode> whats a nice general purpose type?
2012-05-30T15:36:40 < zyp> no idea, never had to use one
2012-05-30T15:37:01 < zyp> wall adapters are usually isolated by transformers and thus fully independent
2012-05-30T15:37:07 < nopcode> oh
2012-05-30T15:37:12 < nopcode> ok
2012-05-30T15:37:17 < nopcode> thanks then :)
2012-05-30T15:37:34 < zyp> I've never had a problem just connecting grounds
2012-05-30T15:38:01 < nopcode> switching power supplies also have transformers?
2012-05-30T15:38:09 < BrainDamage> they are usually insulated
2012-05-30T15:38:15 < BrainDamage> at least, it's required by law
2012-05-30T15:38:26 < BrainDamage> for obvious reasons
2012-05-30T15:39:02 < BrainDamage> you won't see a huge transformer thanks to the high frequency
2012-05-30T15:39:09 < zyp> yep
2012-05-30T15:39:16 < nopcode> so it seems the stm32 can sink/source 25mA per pin?
2012-05-30T15:39:23 < Thorn> every USB LA pod or a JTAG adapter I've seen has dire warnings about not connecting to mains powered devices in the documentation
2012-05-30T15:39:28 < nopcode> just wondering how to best toggle mosfets
2012-05-30T15:39:39 < nopcode> Thorn: oh
2012-05-30T15:40:02 < zyp> Thorn, never stopped me
2012-05-30T15:40:11 < Thorn> Segger sells a stupidly expensive optoisolator board for J-Link
2012-05-30T15:40:18 < nopcode> Thorn: then how are you gonna debug mains powered devices? ;)
2012-05-30T15:40:36 < Thorn> see above
2012-05-30T15:40:40 < zyp> nopcode, isolation transformer on mains
2012-05-30T15:42:13 < nopcode> if i measure 0V between the gnds
2012-05-30T15:42:16 < nopcode> using a multimeter
2012-05-30T15:42:19 < nopcode> does that mean its safe?
2012-05-30T15:42:22 < Thorn> also, http://google.com?q=mosfet+driver
2012-05-30T15:42:51 < nopcode> Thorn: i never found a nice DIL part
2012-05-30T15:42:59 < nopcode> like a 8 pin 2 channel generic mosfet driver
2012-05-30T15:43:05 < nopcode> or something
2012-05-30T15:43:08 < BrainDamage> nopcode: assuming that 0V doesn't change with time, yes
2012-05-30T15:43:53 < Thorn> ground is (supposed to be) very low impedance so small potentil difference = large current
2012-05-30T15:44:39 < Thorn> if impedance is not small, you'll also have grounds at different potentials
2012-05-30T15:45:00 < Thorn> both situations can lead to interesting debugging experience
2012-05-30T15:45:25 < BrainDamage> you can always wire them first with a small fuse
2012-05-30T15:48:18 < nopcode> or
2012-05-30T15:48:23 < nopcode> maybe i just need a small-ish mosfet
2012-05-30T15:48:39 < nopcode> any suggestions? for switching a few amps directly from a MCU
2012-05-30T15:48:46 < Thorn> HEXFET
2012-05-30T15:48:49 < nopcode> for, like, high power leds
2012-05-30T15:49:07 < Thorn> you might even get away with a SOT-23 part
2012-05-30T15:49:58 < Thorn> like IRLML2502 etc.
2012-05-30T15:50:34 < nopcode> i prefer DIL for breadboarding etc
2012-05-30T15:51:07 < Thorn> use a sot-23-to-dip adapter pcb etc.
2012-05-30T15:51:34 < nopcode> there are 4pin dil packages
2012-05-30T15:51:37 < dongs> heil adler
2012-05-30T15:53:29 < dongs> dong-in-line
2012-05-30T15:54:06 < nopcode> irld024
2012-05-30T15:54:09 < nopcode> that looks good
2012-05-30T15:54:29 < nopcode> 100 ohm RDS_on
2012-05-30T15:54:31 < nopcode> is that a problem?
2012-05-30T15:54:44 < nopcode> oh, mOhm
2012-05-30T15:54:46 < nopcode> nevermind ;)
2012-05-30T15:54:47 < BrainDamage> Ohm? that's huge
2012-05-30T15:54:51 < Thorn> 100 Ohm? I'd say a huge problem
2012-05-30T15:54:53 < dongs> what are you hax0ring
2012-05-30T15:55:21 < Thorn> irlml2505 has Rdson=0.045R
2012-05-30T15:55:28 < Thorn> *2502
2012-05-30T15:55:35 < BrainDamage> remember P=R*I^2 when the mosfet is fully on
2012-05-30T15:55:43 < BrainDamage> during switching it's actually higher
2012-05-30T15:55:58 < BrainDamage> which is why you want to keep switching times short
2012-05-30T15:56:25 < Thorn> that sot-23 thingie can switch up to 4.3A @ 4.5V and 25 deg C
2012-05-30T15:56:40 < Thorn> I'd say that's impressive
2012-05-30T15:57:11 < dongs> i duno shit about leds but
2012-05-30T15:57:17 < dongs> all the led lighting shit i worrked with
2012-05-30T15:57:20 < dongs> tehy dont s witch 4.5V
2012-05-30T15:57:27 < dongs> led bars are usually 24-48V
2012-05-30T15:59:01 < nopcode> irld024
2012-05-30T15:59:05 < nopcode> sound even better
2012-05-30T15:59:31 < nopcode> dongs: i'm talking about luxeon leds with ~3v
2012-05-30T16:14:13 -!- cjbaird [~cjb@ppp121-44-125-219.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-30T16:17:06 < Laurenceb> can you remap a peripheral whilst its clocked?
2012-05-30T16:18:08 < dongs> you;ll be the first one to try
2012-05-30T16:18:30 < Laurenceb> it works when i remap in my main loop
2012-05-30T16:18:45 < Laurenceb> if i try to remap in the i2c isr it breaks the peripheral
2012-05-30T16:18:53 < Laurenceb> it wont send start on the remapped bus
2012-05-30T16:19:08 < Laurenceb> i dont see whats different between the two
2012-05-30T16:19:16 < Laurenceb> i wait for stop to send on the first bus
2012-05-30T16:21:19 < dongs> riders of the short bus
2012-05-30T16:24:08 < Laurenceb> hmm yeah works from main
2012-05-30T16:24:25 < pelrun_> why do you want to remap *inside* an isr?
2012-05-30T16:24:57 < nopcode> what does remapping mean?
2012-05-30T16:25:32 < pelrun_> changing what function is on a particular pin/pins
2012-05-30T16:26:28 < Laurenceb> it makes code easier
2012-05-30T16:26:36 < Laurenceb> this isnt my project
2012-05-30T16:26:43 < Laurenceb> it was designed by retards
2012-05-30T16:26:57 < Laurenceb> they want a ton of 9dof sensor board connecting to an stm32
2012-05-30T16:27:09 < Laurenceb> so i have to use remapped i2c to get enough busses
2012-05-30T16:27:29 < pelrun_> because they're all on the same address? ouch
2012-05-30T16:27:32 < Laurenceb> yes
2012-05-30T16:28:01 < BrainDamage> ton of 9dof boards? what for?
2012-05-30T16:28:09 < Laurenceb> vehicle monitoring
2012-05-30T16:28:18 < Laurenceb> on parts of the card and passengers
2012-05-30T16:28:22 < Laurenceb> *car
2012-05-30T16:28:41 < pelrun_> great way to invalidate half the benefit of using i2c; deliberately engineering address collisions
2012-05-30T16:28:44 < BrainDamage> mm, gyro and accele not sufficient?
2012-05-30T16:28:49 < dongs> waut
2012-05-30T16:28:58 < BrainDamage> I mean, why magnetometer too?
2012-05-30T16:29:03 < Laurenceb> as i said
2012-05-30T16:29:06 < dongs> so he can magnet while he magnets
2012-05-30T16:29:06 < Laurenceb> not my idea
2012-05-30T16:29:11 < dongs> I think they're using sparkfun 9dof breakouts
2012-05-30T16:29:12 < dongs> $99 special
2012-05-30T16:29:14 < dongs> for $9 worht of chips
2012-05-30T16:29:16 < Laurenceb> yes
2012-05-30T16:29:38 < Laurenceb> hmm i dont get this
2012-05-30T16:29:50 < Laurenceb> i2c doesnt like being remapped from the i2c isr
2012-05-30T16:29:52 < dongs> Laurenceb: I'll sell them this http://i.imgur.com/svvtd.jpg
2012-05-30T16:30:10 < Laurenceb> still has address issue
2012-05-30T16:30:19 < Laurenceb> i dont see whats different
2012-05-30T16:30:48 < Laurenceb> other than interrupts disabled...
2012-05-30T16:31:01 < Laurenceb> it never sends start on the new bus after remapping
2012-05-30T16:31:26 < Laurenceb> but both lines are high so it should
2012-05-30T16:32:36 < dongs> i dont understand why cant you just have them all on  SAME bus?
2012-05-30T16:32:39 < dongs> isnt that the point of shitty i2c
2012-05-30T16:32:52 < Laurenceb> address conflict
2012-05-30T16:33:09 < Laurenceb> they want 8 boards
2012-05-30T16:33:13 < dongs> o rite lol
2012-05-30T16:33:19 < dongs> fucking fail.
2012-05-30T16:33:27 < dongs> solution: stm32 at each board
2012-05-30T16:33:45 < dongs> problem solved
2012-05-30T16:33:45 < dongs> logging to usd
2012-05-30T16:34:54 < nopcode> does the stm32f4discovery have standard 2.54mm pitch?
2012-05-30T16:34:59 < nopcode> on the headers
2012-05-30T16:35:49 < nopcode> wait can you remap pins arbitrarily?
2012-05-30T16:35:53 < nopcode> on any stm32?
2012-05-30T16:35:55 < zyp> no
2012-05-30T16:35:59 <+izua> yes and no
2012-05-30T16:36:08 < nopcode> i thought the alternate functions where bound to specific pins
2012-05-30T16:36:08 < dongs> does the stm32f4discovery have standard 2.54mm pitch?
2012-05-30T16:36:12 < zyp> there are fixed remaps
2012-05-30T16:36:18 < dongs> yes
2012-05-30T16:36:22 < nopcode> dongs: ok :)
2012-05-30T16:36:24 < zyp> F2/F4 is more flexible than F1
2012-05-30T16:36:33 <+izua> zyp: in remapping pins?
2012-05-30T16:36:39 < zyp> yes
2012-05-30T16:36:43 <+izua> or just in general?
2012-05-30T16:36:47 < pelrun_> Laurenceb, bitbang i2c? :P
2012-05-30T16:36:50 < zyp> in remapping pins
2012-05-30T16:36:52 <+izua> lol
2012-05-30T16:37:08 <+izua> that might work
2012-05-30T16:37:16 <+izua> and have wrapper functions to do all kinds of neat stuff
2012-05-30T16:37:32 <+izua> software_i2c_recover_from_nack()
2012-05-30T16:39:58 < Laurenceb> hmm
2012-05-30T16:40:06 < Laurenceb> ok delays dont help
2012-05-30T16:40:08 < Laurenceb> very odd
2012-05-30T16:41:51 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 260 seconds]
2012-05-30T16:47:22 < Laurenceb> rage
2012-05-30T16:51:29 < zyp> today in the series «Laurenceb does weird stuff that doesn't work»: using AF remapping to multiplex between several i2c buses
2012-05-30T16:52:22 < Laurenceb> i think i know what the issue is
2012-05-30T16:52:32 < Laurenceb> its the gpio state when the remap occurs
2012-05-30T16:53:11 -!- _Shurik_ [~akronberg@64.31.191.194] has joined ##stm32
2012-05-30T17:02:58 -!- dongs [1000@l212168.ppp.asahi-net.or.jp] has quit [Ping timeout: 245 seconds]
2012-05-30T17:03:44 -!- dongs [1000@l212168.ppp.asahi-net.or.jp] has joined ##stm32
2012-05-30T17:10:35 < jpa-> :D
2012-05-30T17:10:37 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32
2012-05-30T17:10:47 < jpa-> i have to say that Laurenceb is innovative in using the hardware
2012-05-30T17:11:16 < pelrun_> stupid user requirements drive innovation
2012-05-30T17:11:28 < pelrun_> "you want me to do WHAT?"
2012-05-30T17:15:12 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection]
2012-05-30T17:15:19 < Laurenceb> what the hell
2012-05-30T17:15:22 < Laurenceb> its working
2012-05-30T17:15:44 < Laurenceb> i remapped whilst the hardware was in the process of sending stop
2012-05-30T17:15:47 < Laurenceb> and that makes it work
2012-05-30T17:17:01 < Laurenceb> god know why
2012-05-30T17:17:09 < pelrun_> ALIENS
2012-05-30T17:21:15 < Laurenceb> so i guess a less mental fix would be to force a stop on the bus each time i remap
2012-05-30T17:22:16 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-30T17:29:55 < Laurenceb> http://www.reghardware.com/2012/05/30/iphone_5_rumours_confirmed_through_leaked_product_shots/
2012-05-30T17:30:04 < Laurenceb> *fanboys go mad*
2012-05-30T17:30:15 < jpa-> it's caled the "new iphone"
2012-05-30T17:30:18 < jpa-> *called
2012-05-30T17:30:49 < BrainDamage> isn't that rendudant? if you're a fanboy it implies you got some degree of madness
2012-05-30T17:32:24  * nopcode has ipad & android phone
2012-05-30T17:32:26 < nopcode> good combination imho
2012-05-30T17:33:16  * jpa- has Stenffanx and a bunny
2012-05-30T17:33:20 < jpa-> a good combination imo
2012-05-30T17:35:18 < Laurenceb> it still looks lame
2012-05-30T17:35:54 < Laurenceb> slightly less lame than 4s, but dated compared to fandroid
2012-05-30T17:41:59 < pelrun_> right
2012-05-30T17:42:26 < pelrun_> now to figure out how to redirect a console through the debug interface
2012-05-30T17:43:12 < Laurenceb> hmm the lsm330d reports its 30 degrees in my office
2012-05-30T17:43:16 < Laurenceb> no wonder im sweating
2012-05-30T17:43:49 < Laurenceb> lol lsm330 gyro is clearly crap compared to itg3250
2012-05-30T17:46:41 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 246 seconds]
2012-05-30T17:47:31 < dongs> no doubt
2012-05-30T17:47:35 < dongs> hasnt that been determined long time ago
2012-05-30T17:49:29 < Laurenceb> indeed, im just eyeballing the data
2012-05-30T17:56:06 < dongs> holy shit i hate fucking SMD usb sockets so fucking much
2012-05-30T17:56:16 < Laurenceb> i hate i2c bus
2012-05-30T17:56:22 < Laurenceb> but smd usb too
2012-05-30T17:56:41 < Laurenceb> plug in looks like 5v for 10us... 10millisecond 0v
2012-05-30T17:56:50 < Laurenceb> 1microsecond 5v
2012-05-30T17:56:52 < Laurenceb> ... etc
2012-05-30T17:57:25 < Laurenceb> for about 100milliseconds even if you plug it in cleanly
2012-05-30T18:13:12 -!- izua [~izua@unaffiliated/izua] has quit [Quit: Lost terminal]
2012-05-30T18:15:14 -!- izua [~izua@86.121.85.94] has joined ##stm32
2012-05-30T18:15:14 -!- izua [~izua@86.121.85.94] has quit [Changing host]
2012-05-30T18:15:14 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-30T18:15:17 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-30T18:18:21 < Laurenceb> https://extranet.fisher.co.uk/insight2_uk/mainSearch.do?keywords=TWT-770-050X
2012-05-30T18:18:28 < Laurenceb> oops wrong window
2012-05-30T18:26:22 < Laurenceb> where can i grab openocd from?
2012-05-30T18:29:01 < pelrun_> oh, wonderful
2012-05-30T18:29:14 < pelrun_> stlink v1 doesn't support trace output
2012-05-30T18:29:15 < karlp> Laurenceb: git only for stlink support,
2012-05-30T18:29:24 < Laurenceb> ok
2012-05-30T18:29:27 < karlp> and it doesn't work with the gdb from launchpad
2012-05-30T18:29:34 < pelrun_> more like stink v1
2012-05-30T18:29:35 < karlp> pelrun_: yeah, that's one of the things you get on teh stlink2
2012-05-30T18:29:36 < Laurenceb> i have codesourcery
2012-05-30T18:30:00 < pelrun_> now if only I can convince dongs to give me some hints on how he got his v1's flashed to v2
2012-05-30T18:30:07 < pelrun_> because my attempts so far have fallen flat
2012-05-30T18:30:26 < karlp> is this trying to use the stlink update utility in windows to reflash a 32VL discovery board?
2012-05-30T18:30:31 < pelrun_> yup
2012-05-30T18:30:48 < karlp> does it even have the swo line wired up?
2012-05-30T18:30:58 < pelrun_> hell, I'll patch that if it needs it
2012-05-30T18:31:02 < karlp> I mean, putting the v2 firmware on it would at least fix the usb mass storage bullshit
2012-05-30T18:31:08 < pelrun_> I know
2012-05-30T18:31:30 < pelrun_> I had to use zadig to disable the mass storage driver for it so your stlink would talk to it
2012-05-30T18:31:37 < pelrun_> brrr
2012-05-30T18:31:49 < karlp> you can also jsut use an F4/L1/F0 discovery board to talk to the VL board if swo is essential
2012-05-30T18:31:49 < Laurenceb> k got it
2012-05-30T18:31:56 < karlp> what's zadig?
2012-05-30T18:31:58 < pelrun_> yeah but that's painful
2012-05-30T18:31:59 < Laurenceb> what do i need to configure before ocmpiling?
2012-05-30T18:32:11 < pelrun_> the libusb device driver manipulation tool for windows
2012-05-30T18:32:23 < Laurenceb> im on linux
2012-05-30T18:32:25 < karlp> Laurenceb: just complain lots to the openocd folks to update their docs / truncate their docs
2012-05-30T18:32:41 < BrainDamage> Laurenceb: --enable-stlink
2012-05-30T18:32:49 < pelrun_> lets you set arbitrary vid:pid's to come up as a libusb device instead of whatever system driver it normally would use
2012-05-30T18:32:54 < karlp> something like ./bootstrap, then ./configure --enable-stlink --enable-maintainer-mode or something
2012-05-30T18:33:00 < BrainDamage> yup
2012-05-30T18:33:03  * Laurenceb tries
2012-05-30T18:33:21 < karlp> and for some reason you have to explicitly list what the target chip is, it doesn't probe it like stlink
2012-05-30T18:33:37 < dongs> pelrun_: when you "flash" v2 after your haxing, and re-run stlinkupdater, does it now detect the board as V22 or still as V1?
2012-05-30T18:33:44 < dongs> if latter, you've failed I guess somehow.
2012-05-30T18:33:56  * pelrun_ poked around the F4 board with a multimeter and can't identify where/how traceswo is hooked up
2012-05-30T18:34:10 < dongs> there are schematics for stlink portion of F4
2012-05-30T18:34:15 < dongs> in the f4discovery pdf
2012-05-30T18:34:23 < dongs> you dont need to poke anywhere...
2012-05-30T18:34:30 < pelrun_> dongs: it shows the firmware version as v2.xx.xx, but it still uses the old vid:pid
2012-05-30T18:34:41 < pelrun_> and doesn't actually work as a v2
2012-05-30T18:34:58 < pelrun_> so yeah, I'm failing, but I'm not sure why
2012-05-30T18:35:08 < Laurenceb> ok now what?
2012-05-30T18:35:15 < Laurenceb> i run a makefile.. somewhere?
2012-05-30T18:35:22 < pelrun_> my hack is definitely forcing the update util to point at the v2 firmware blob
2012-05-30T18:35:47 < BrainDamage> just type make
2012-05-30T18:36:02 < BrainDamage> the makefile should have been generated from configure
2012-05-30T18:36:10 < Laurenceb> ah
2012-05-30T18:36:18 < dongs> in my patch I've made it detect hte board as v2 instead of swap pointer to v1/v2 blob
2012-05-30T18:36:21 < dongs> not sure if that makes a difference.
2012-05-30T18:36:25 < dongs> i didn't step through it that much
2012-05-30T18:36:31 < pelrun_> well, that's what I did
2012-05-30T18:36:37 < BrainDamage> bootstrap generates configure, and configure generates the makefile
2012-05-30T18:36:38 < pelrun_> just where it does the compare with the PID
2012-05-30T18:36:47 < BrainDamage> the makefile generates the binary
2012-05-30T18:36:49 < Laurenceb> lol theres a processor called davinci
2012-05-30T18:36:55 < dongs> Laurenceb: old
2012-05-30T18:37:12 < dongs> THEY'RE TRASHING OUR RIGHTS!!! ROW ROW ROW TEH BOAT
2012-05-30T18:37:30 < pelrun_> HACK THE PLANET
2012-05-30T18:37:38 < BrainDamage> there's one called vinculo, how can possibly a company think that naming something "I will rape your ass" will have commercial success?
2012-05-30T18:37:50 < pelrun_> dongs: any chance I could get a copy of your patch, if you still have it?
2012-05-30T18:37:56 < Laurenceb> HACK GRAVITY
2012-05-30T18:37:58 < dongs> BrainDamage: vinculum. and that's FTDI
2012-05-30T18:38:02 < Laurenceb> INVERT IT
2012-05-30T18:38:07 < dongs> pelrun_: i just modified code in IDA while running it.
2012-05-30T18:38:11 < dongs> i don't think i ever made a proper patch.
2012-05-30T18:38:13 < BrainDamage> dongs: the board that mounts vinculum is called vinculo
2012-05-30T18:38:15 < pelrun_> right
2012-05-30T18:38:17 < dongs> i flashed 2 of my VL-Discovery shits iwth it.
2012-05-30T18:38:34 < dongs> and also stm8-discovery
2012-05-30T18:38:49 < dongs> the reason  I did all taht shit was because a cheapass friend of mine had stm8discovey and wanted stm32 support on it
2012-05-30T18:38:55 < dongs> and didnt mind soldering shit to traces
2012-05-30T18:38:56 < pelrun_> heh
2012-05-30T18:39:03 < Laurenceb> stm 8====Discovery
2012-05-30T18:39:13 < dongs> Laurenceb's mind is always on one topic
2012-05-30T18:39:18 < dongs> and that's dicks/dongs
2012-05-30T18:39:25 < pelrun_> I've done more than my fair share of soldering fine wires to qfp pins :P
2012-05-30T18:40:20 < pelrun_> it's nearly 2am here, best time to go back into ida pro hacking mode XD
2012-05-30T18:40:58 < Laurenceb> ok so how do i run openocd now?
2012-05-30T18:41:22 < BrainDamage> did you make install it?
2012-05-30T18:41:29 < Laurenceb> oh doh
2012-05-30T18:41:34 < pelrun_> karlp: I got the stlink gdbserver staying up when I disconnect from it - I wrapped the whole main() in a while(1) loop XD
2012-05-30T18:41:38 < BrainDamage> you'll need sudo ofc
2012-05-30T18:41:41 < Laurenceb> install-sh  ?
2012-05-30T18:41:45 < BrainDamage> sudo make install
2012-05-30T18:41:59 < BrainDamage> it'll install in /usr/local
2012-05-30T18:42:14 < pelrun_> TARGET=ME sudo make sandwich
2012-05-30T18:42:22 < Laurenceb> cool it runs
2012-05-30T18:42:23 < BrainDamage> if that's in your $PATH, you should be able to just type openocd in a console
2012-05-30T18:42:31 < Laurenceb> now i just need a config :S
2012-05-30T18:42:32 < BrainDamage> openocd -f board/stm32f4discovery.cfg
2012-05-30T18:42:36 < Laurenceb> ok
2012-05-30T18:42:48 < jpa-> pelrun_: might as well just type   while true; gdbserver; done  in shell
2012-05-30T18:42:55 < Laurenceb> will that run with something connected on SWD ?
2012-05-30T18:42:56 < pelrun_> that too XD
2012-05-30T18:43:22 < Laurenceb> or does it expect an F4  ?
2012-05-30T18:43:41 < BrainDamage> I didn't dig in the config internals yet, so no idea
2012-05-30T18:43:53 < BrainDamage> from previous talk I suspect no
2012-05-30T18:44:02 < BrainDamage> as in, it'll require config change
2012-05-30T18:44:23 < Laurenceb> where the hell is /stm32f4discovery.cfg  ?
2012-05-30T18:44:51 < Laurenceb> oh nvm
2012-05-30T18:45:09 < BrainDamage> you're not very familiar with linux, aren't you?
2012-05-30T18:45:10 < Laurenceb> lol bazillion board
2012-05-30T18:45:25 < Laurenceb> i didnt know it was in tcl
2012-05-30T18:45:26 < BrainDamage> should be in a subfolder of  /usr/local/share/openocd/
2012-05-30T18:45:59 < BrainDamage> nonbinary stuff belongs to share
2012-05-30T18:46:15 < BrainDamage> source libs to source, binary libs to lib, and binary programs to bin
2012-05-30T18:48:16 < Laurenceb> rage
2012-05-30T18:48:23 < Laurenceb> it needs F4 running to work
2012-05-30T18:48:24 < karlp> pelrun_: you're welcome to submit as much as you like to texane, but given how much the openocd guys have caught up and gotten ahead, I'm unlikely to do much more work on stlink myself :)
2012-05-30T18:48:35 < pelrun_> fair enough
2012-05-30T18:48:48 < karlp> I hate working on tools more than I hate tcl
2012-05-30T18:49:00 < karlp> texane will pull just about anything though
2012-05-30T18:49:10 < karlp> and texane/stlink is much simpler to use than openocd of course
2012-05-30T18:49:35 < Laurenceb> hmm
2012-05-30T18:49:44 < pelrun_> I'll probably have to go with openocd when I start using the F4 properly, considering the speed issue
2012-05-30T18:49:49 < Laurenceb> yeah it needs the target processor to be correct
2012-05-30T18:49:58 < Laurenceb> or it breaks
2012-05-30T18:50:11 < Laurenceb> very annoying
2012-05-30T18:50:41 < Laurenceb> unless... i use the target processors eval board file with the F4 doscovery
2012-05-30T18:51:39 < karlp> if you look in teh "board" file it just says, "include transport stlink" and "include target f4"
2012-05-30T18:51:53 < karlp> you can make your own that does transport stlink, and target whatever the hell you like
2012-05-30T18:52:24 < karlp> but yeah, it's not like texane/stlink that just opens whatever's attached to the other end of the stlink dongle
2012-05-30T18:56:39 < Laurenceb> whats the default telnet port?
2012-05-30T18:57:06 < BrainDamage> I always confuse 21, 22 and 23
2012-05-30T18:57:18 < BrainDamage> one of them is ftp
2012-05-30T18:57:25 < BrainDamage> the other telnet
2012-05-30T18:58:16 < karlp> 23
2012-05-30T18:59:06 < Laurenceb> Error: stlink_interface_init_target: target not found: idcode: 1ba01477
2012-05-30T18:59:06 < Laurenceb> in procedure 'transport'
2012-05-30T18:59:07 < Laurenceb> in procedure 'init'
2012-05-30T18:59:46 < Laurenceb> oh nvm
2012-05-30T18:59:49 < Laurenceb> it works
2012-05-30T19:01:32 < karlp> so, faster?
2012-05-30T19:01:52 < Laurenceb> hmm gdb not connecting
2012-05-30T19:01:59 < Laurenceb> openocd is running ok
2012-05-30T19:02:47 -!- TitanMKD [~Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-30T19:03:22 < karlp> what gdb problem are you getting?
2012-05-30T19:03:26 < karlp> lots of 0s?
2012-05-30T19:03:59 < TitanMKD> hi
2012-05-30T19:04:13 < Laurenceb> timeout on telnet connect
2012-05-30T19:04:25 < Laurenceb> localhost:23: Connection timed out.
2012-05-30T19:08:20 < Laurenceb> (gdb) tar extended-remote localhost:4444
2012-05-30T19:08:21 < Laurenceb> Remote debugging using localhost:4444
2012-05-30T19:08:21 < Laurenceb> warning: Invalid remote reply: ?
2012-05-30T19:08:30 < Laurenceb> if i use openocd.cfg to set the port number
2012-05-30T19:09:23 < Laurenceb> if i try gdb_port 3333
2012-05-30T19:09:45 < Laurenceb> Info : accepting 'gdb' connection from 3333
2012-05-30T19:09:45 < Laurenceb> Error: Cannot identify target as a stm32x
2012-05-30T19:09:46 < Laurenceb> Error: auto_probe failed
2012-05-30T19:09:46 < Laurenceb> Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'.
2012-05-30T19:09:46 < Laurenceb> Error: attempted 'gdb' connection rejected
2012-05-30T19:10:25 < Laurenceb> and discovery led goes to error state
2012-05-30T19:14:33 < Laurenceb> seems to be something to do with the way ti connects
2012-05-30T19:14:38 < Laurenceb> it kills the processor
2012-05-30T19:17:25 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-30T19:19:44 < karlp> take it up with openocd people :)
2012-05-30T19:19:53 < karlp> zyp got it working with the telnet interface, but had some gdb issues to
2012-05-30T19:19:59 < Laurenceb> it seems to be watchdog
2012-05-30T19:20:11 < karlp> ntfreak, who was here yesterday said," get a better gdb, like the code sourcery/mentor one"
2012-05-30T19:20:12 < Laurenceb> my watchdog times out during connect
2012-05-30T19:20:19 < Laurenceb> ok
2012-05-30T19:20:31 < karlp> does texane/stlink connect before the watchdog times out?
2012-05-30T19:20:33 < Laurenceb> but i suspect i need to fiddle some config files somehow
2012-05-30T19:20:46 < Laurenceb> no
2012-05-30T19:20:46 < karlp> or itðs bugs in openocd :)
2012-05-30T19:20:50 < Laurenceb> but somehow it works
2012-05-30T19:21:22 < Laurenceb> my processor is just going to sleep each time gdb connects now
2012-05-30T19:22:01 < Laurenceb> hmm ill try my watchdog init hack
2012-05-30T19:24:43 < Laurenceb> ooh it connects
2012-05-30T19:25:20 < Laurenceb> Info : accepting 'gdb' connection from 3333
2012-05-30T19:25:20 < Laurenceb> Info : device id = 0x20036410 Info : flash size = 128kbytes Warn : acknowledgment received, but no packet pending undefined debug reason 6 - target needs reset
2012-05-30T19:25:26 < Laurenceb> then it breaks
2012-05-30T19:26:27 < Laurenceb> looks to me like openocd is doing something silly with the reset line?
2012-05-30T19:27:37 < karlp> the last line in the boards/stm32f4discovery.cfg has something about reset pin mapping,
2012-05-30T19:27:41 < karlp> but I didn't understand it.
2012-05-30T19:29:14 < Laurenceb> me neither
2012-05-30T19:29:38 < Laurenceb> with texane i had an issue with watchdog timing out during connect
2012-05-30T19:29:46 < Laurenceb> so i fixed it in .gdbinit
2012-05-30T19:29:54 < Laurenceb> this no longer seems to work
2012-05-30T19:32:22 < Laurenceb> i belive that connects with reset held low
2012-05-30T19:32:26 < Laurenceb> same as texane
2012-05-30T19:33:03 < Laurenceb> with texane i put set var {int}0x40021024=0x01000000 in gdbinit
2012-05-30T19:33:06 -!- TitanMKD [~Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 252 seconds]
2012-05-30T19:33:08 < Laurenceb> to fix watchdog resets
2012-05-30T19:34:51 < Laurenceb> oh wait i see
2012-05-30T19:34:58 < Laurenceb> reset isnt working
2012-05-30T19:35:18 < Laurenceb> it connects ok but the processor is still running
2012-05-30T19:36:26 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-30T19:37:04 < Laurenceb> ok runs now, but gdb gets all zeros lol
2012-05-30T19:37:10 < Laurenceb> guess i need different gdb
2012-05-30T19:43:21 -!- tavish [~tavish@120.59.1.70] has joined ##stm32
2012-05-30T19:43:34 -!- tavish [~tavish@120.59.1.70] has quit [Changing host]
2012-05-30T19:43:34 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-30T19:45:40 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has joined ##stm32
2012-05-30T19:45:42 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-30T19:56:29 < pelrun_> blaaargghh
2012-05-30T19:56:36 < pelrun_> this just refuses to work
2012-05-30T19:56:57 < pelrun_> wonder if this is a newer update util and they've changed something
2012-05-30T20:01:31 < dongs> The software is on-going - development will continue after you purchased the PARIS Sirius - and new functions not yet know will be available - but may require a working knowlege of Arduio code commenting to use effectively or upgrade - its pretty easy - but we don't offer training in the hardware price above.
2012-05-30T20:01:37 < dongs> shit guys
2012-05-30T20:01:39 < dongs> i can get a job there
2012-05-30T20:01:42 < dongs> i have a worwking knowledge of arduio code commenting
2012-05-30T20:01:47 < dongs> !!!
2012-05-30T20:02:11 < karlp> what is PARIS sirius?
2012-05-30T20:02:50 < Thorn> are quadcopters a large market?
2012-05-30T20:02:56 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32
2012-05-30T20:03:34 < BrainDamage> like any hobbyst stuff, I doubt it's large
2012-05-30T20:03:55 < Thorn> looks like there's a whole lot of offers
2012-05-30T20:03:59 < BrainDamage> but I bet that compared to oother hobby models, it's relatively having an economic boom
2012-05-30T20:04:06 < dongs> karlp: no fucking idea. 4 sensor chips on a red pcb.
2012-05-30T20:04:16 < dongs> he even has a "tm" after it, I wonder if its actually a registered trademark.
2012-05-30T20:04:25 < dongs> I can't be arsed to check, there are like over 9000 "sirius" trademarks.
2012-05-30T20:10:19 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit []
2012-05-30T20:13:50 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-30T20:21:19 < karlp> meh, this openocd is nowhere near as ready as they claimed
2012-05-30T20:21:46 < karlp> I've got the toolchain that doesn't cause "too long replies" and manages to load,
2012-05-30T20:21:49 < karlp> but it won't break
2012-05-30T20:35:20 < zyp> it's fast when it works, at least :p
2012-05-30T20:35:56 < karlp> yeah, well, right now it's fast at doing nothing.
2012-05-30T20:36:10 < karlp> looks like I might be sticking with stlink a little longer
2012-05-30T20:38:53 < karlp> where did yoiu get the 7.4 gdb from? did you compile it youself?
2012-05-30T20:39:01 < zyp> yep
2012-05-30T20:39:22 < karlp> I was just going over all the versions I've got installed now, to see what had what.
2012-05-30T20:39:50 < karlp> between codesourcery lite, s-a-t and the launchpad tools from arm
2012-05-30T20:43:26 -!- zippe [~Adium@173.11.99.161] has quit [Quit: Leaving.]
2012-05-30T20:55:08 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Quit: Quitte]
2012-05-30T21:09:11 < dongs> fuck, digikey is amazing
2012-05-30T21:09:18 < dongs> 1:03am: submitted order
2012-05-30T21:09:21 < dongs> 3:08am: shipped
2012-05-30T21:10:02 < BrainDamage> your time or their?
2012-05-30T21:10:13 < dongs> mine
2012-05-30T21:10:17 < dongs> its like daytime in usa i guess.
2012-05-30T21:14:38 < TitanMKD> dongs it's just all automatic and yes amazing but customs are too expensive for Europe :(
2012-05-30T21:16:52 < zyp> pff
2012-05-30T21:17:29 < zyp> import tax in norway is equal to normal sales tax
2012-05-30T21:17:31 < TitanMKD> Why there's no Company like DigiKey but in China
2012-05-30T21:17:42 < zyp> so it would be the same anyway
2012-05-30T21:17:50 < TitanMKD> zyp here customs from Digikey are about 30% !!!
2012-05-30T21:18:04 < TitanMKD> in France
2012-05-30T21:18:16 < TitanMKD> and from china 0%
2012-05-30T21:18:41 < zyp> really?
2012-05-30T21:18:44 < TitanMKD> yes
2012-05-30T21:18:54 < zyp> why 0% from china?
2012-05-30T21:19:04 < TitanMKD> because they are more clever ;)
2012-05-30T21:19:16 < TitanMKD> I never paid any customs from China
2012-05-30T21:19:36 < BrainDamage> because they usually declare packages as gifts or declare lower values than the content
2012-05-30T21:19:39 < BrainDamage> ie they cheat
2012-05-30T21:19:44 < TitanMKD> But I have not found a shop like DigiKey with all components in China :(
2012-05-30T21:19:54 < TitanMKD> BrainDamage yes
2012-05-30T21:19:56 < zyp> BrainDamage, right
2012-05-30T21:20:20 < TitanMKD> BrainDamage even for very big package it is funny to see they declare it's wire for 5US$ ;)
2012-05-30T21:20:37 < BrainDamage> also, many times customs will do only statistical sampling on normal mail packages
2012-05-30T21:21:01 < BrainDamage> while on the other hand, express courier will typically willingfully send packages trough a custom by themselves
2012-05-30T21:21:01 < TitanMKD> BrainDamage from DigiKey I have ALWAYS customs :(
2012-05-30T21:21:03 < zyp> I was called up by the norwegian customs when I got my chinese reflow oven, they didn't believe the stated value :p
2012-05-30T21:21:10 < BrainDamage> yes, because of the express courier
2012-05-30T21:21:13 < TitanMKD> zyp haha
2012-05-30T21:21:31 < BrainDamage> try to get something shipped from china from express courier, and you'll pay customs too
2012-05-30T21:21:35 < BrainDamage> I know because I tried
2012-05-30T21:21:37 < TitanMKD> BrainDamage yes and they always declare the exact value
2012-05-30T21:21:50 < BrainDamage> ofc they are serious businessman
2012-05-30T21:21:57 < TitanMKD> BrainDamage I received my scope by Fedex ;)
2012-05-30T21:22:01 < TitanMKD> BrainDamage no customs
2012-05-30T21:22:31 < BrainDamage> I received once a customs letter when they didn't believe the value declared on one of the packages
2012-05-30T21:22:36 < TitanMKD> BrainDamage price is just crazy 399US$ for Rigol DS1102E including Fedex and everything
2012-05-30T21:22:41 < BrainDamage> a small lcd screen worth 100$
2012-05-30T21:22:50 < BrainDamage> they declared 10$ >_>
2012-05-30T21:23:14 < TitanMKD> for LCD 10US$ is possible
2012-05-30T21:23:42 < TitanMKD> BrainDamage but now Mouser include customs for Europe
2012-05-30T21:23:45 < BrainDamage> not a 12 inch high resolution commercial lcd with tuner, decoder, and hdmi input
2012-05-30T21:24:01 < BrainDamage> otoh my rigol scope passed fine with a declared value of 30$, the box was huge
2012-05-30T21:24:42 < TitanMKD> BrainDamage me it was declared 9US$ IIRC ;)
2012-05-30T21:25:19 < TitanMKD> and i'm very happy with it, it's just fantastic hardware for the price even better than the one at work which cost 10 time more
2012-05-30T21:25:36 < Thorn> myrigol had a declared value of $169.38
2012-05-30T21:26:24 < TitanMKD> hehe if it exceed 100US$ you should pay customs
2012-05-30T21:26:34 < TitanMKD> even if it exceed 50US$ in fact
2012-05-30T21:26:44 < Thorn> not here. the limit is $1k/month
2012-05-30T21:26:46 < BrainDamage> italy's min customs value is 20€
2012-05-30T21:26:53 < TitanMKD> Thorn you are lucky
2012-05-30T21:27:02 < BrainDamage> and the worst part is that it includes shipping costs
2012-05-30T21:27:14 < TitanMKD> BrainDamage haha including shipping cost
2012-05-30T21:27:40 < zyp> I still don't get why you are complaining
2012-05-30T21:27:43 < BrainDamage> well, most ebay / dx / other chinese crap writes "free shipping" and bundles the shipping cost in the item's price
2012-05-30T21:27:44 < TitanMKD> BrainDamage it is like in France we have Tax of Tax ;)
2012-05-30T21:27:57 < BrainDamage> so yes, it includes shipping
2012-05-30T21:28:26 < BrainDamage> not by law's fault, but by ebay system abuse
2012-05-30T21:28:39 < TitanMKD> BrainDamage and why all company with huge list of components/hw are all located in Texas ?
2012-05-30T21:28:53 < TitanMKD> there's some factory there ? IIRC all is built i China Now
2012-05-30T21:29:13 < BrainDamage> texas instruments holds a lot of semiconductor companies in the usa
2012-05-30T21:29:22 < TitanMKD> IIRC there's Texas Instrument but i do not think there's so much Fab in USA because of cost ...
2012-05-30T21:29:39 < BrainDamage> still, I bet many of them redistribuite
2012-05-30T21:30:05 < TitanMKD> yes I hate this "monopole" in Europe it's very hard we have nothing !!!
2012-05-30T21:30:09 < BrainDamage> I am super pissed that my univ is 5 km away from ST and I cannot get free samples :/
2012-05-30T21:30:31 < TitanMKD> BrainDamage hehe me too in France near Grenoble :(
2012-05-30T21:30:38 < BrainDamage> and many people from it end up in ST, and I even got some friends working in it
2012-05-30T21:30:46 < TitanMKD> BrainDamage I already asked 3 times for samples but only 1 or 2 sample !!
2012-05-30T21:31:05 < BrainDamage> at least you got some
2012-05-30T21:31:12 < TitanMKD> no i got nothing ;)
2012-05-30T21:31:34 < TitanMKD> it is always the same response, because of cost reduction they do not send sample anymore ...
2012-05-30T21:32:06 < zyp> what about getting a job and buying the stuff you want? :p
2012-05-30T21:32:30 < BrainDamage> some stuff can only be sampled
2012-05-30T21:32:42 < BrainDamage> and I need to start writing my master thesis first
2012-05-30T21:33:05 < Thorn> getting a job = no free time to play with stuff you can buy
2012-05-30T21:33:28 < TitanMKD> zyp it is what i do I buy everything ;) but it is better to try before to buy and why you want 10 components you should pay 20 or 30 euros for shipping :(
2012-05-30T21:33:40 < TitanMKD> why->when
2012-05-30T21:51:09 < karlp> I'm ok with paying VAT/GST on my import,
2012-05-30T21:51:42 < karlp> I'm less ok with paying for shipping on the order, then paying the local agent again for the privilege, then paying customs VAT, then paying customs their ahndling charge,
2012-05-30T21:51:55 < karlp> and having to wait 3-4 weeks if I'm lucky _after_ it's arrived in the country
2012-05-30T21:52:26 < karlp> because they post me a snail mail letter for every single parcel requesting the invoice.
2012-05-30T21:53:42 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 248 seconds]
2012-05-30T22:07:41 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 250 seconds]
2012-05-30T22:25:07 -!- tavish_ [~tavish@59.177.12.152] has joined ##stm32
2012-05-30T22:26:46 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds]
2012-05-30T22:32:21 < nopcode> hm
2012-05-30T22:32:31 < nopcode> i tried the usb_cdc demo from the head revision of chibios
2012-05-30T22:32:44 < nopcode> but windows says "usb device malfuncitoned"
2012-05-30T22:35:34 < nopcode> well not demo, its a test
2012-05-30T22:35:39 < nopcode> maybe it never worked yet ;)
2012-05-30T22:44:00 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-30T22:45:01 < Laurenceb_> suppp
2012-05-30T22:45:16 < Laurenceb_> so does it look like i have wrong gdb?
2012-05-30T22:45:27 < Laurenceb_> ass im getting zeros even tho openocd seems to be connected
2012-05-30T22:46:08 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer]
2012-05-30T22:47:53 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-30T22:47:56 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-30T22:49:57 < zyp> nopcode, usb-cdc worked nicely for me when I used chibios a year ago
2012-05-30T22:52:31 < Laurenceb_> any idea what gdb_port does in openocd cfg file?
2012-05-30T22:52:46 < Laurenceb_> i mean why a separate port for gdb? why not telnet
2012-05-30T22:53:29 < zyp> because telnet_port is used for openocd cli, gdb_port is used for gdb
2012-05-30T22:53:29 < BrainDamage> because 2 ports cannot be shared by the same protocol ( I guess both use tcp )
2012-05-30T22:53:51 < BrainDamage> once you bind to a port using tcp, you cannot bind another tcp service
2012-05-30T22:54:13 < BrainDamage> and if you'd telnet to the gdb port, you'd get flooded by useless gdb<->openocd communications
2012-05-30T22:55:11 < Laurenceb_> ah
2012-05-30T22:56:16 < Laurenceb_> zyp: which arm-gdb did you use?
2012-05-30T22:56:43 < zyp> for what?
2012-05-30T22:56:52 < Laurenceb_> for connecting with openocd
2012-05-30T22:57:02 < zyp> the gdb I have doesn't work with openocd, and I didn't bother searching for one that do
2012-05-30T22:57:22 < zyp> I just wanted to test flashing speed, and openocd can do that without gdb
2012-05-30T23:01:18 < Laurenceb_> ah i see
2012-05-30T23:01:31 < Laurenceb_> yeah i cant get gdb to connect successfully
2012-05-30T23:02:09 < Laurenceb_> i get all zeros back
2012-05-30T23:02:16 < zyp> karlp also had problems with that, not sure if he solved it or gave up
2012-05-30T23:03:20 < Laurenceb_> ill wait and see if anyone makes some progress then
2012-05-30T23:03:40 < TitanMKD> for those interested in difference for ARM code in -O0 vs -O2
2012-05-30T23:03:41 < TitanMKD> http://pastebin.com/pbcbdXNw
2012-05-30T23:03:52 < TitanMKD> it is very important to use -O2 ;)
2012-05-30T23:04:10 < zyp> well, yeah
2012-05-30T23:04:26 < zyp> that's a pretty trivial function you've got there
2012-05-30T23:04:30 < TitanMKD> the code -O0 is working but why it's so crazy ;)
2012-05-30T23:04:36 < TitanMKD> yes of course
2012-05-30T23:05:23 -!- tavish_ [~tavish@59.177.12.152] has quit [Quit: leaving]
2012-05-30T23:05:24 < TitanMKD> it is just
2012-05-30T23:05:24 < zyp> void scu_normal(int* p, int x) { *p = x; } or something like that?
2012-05-30T23:05:24 < TitanMKD> MMIO32(group_pin) = val;
2012-05-30T23:05:48 < TitanMKD> in fact group_pin is a huge enum ;)
2012-05-30T23:06:00 < TitanMKD> but anyway it should not produce this ugly code even in O0
2012-05-30T23:06:32 < zyp> ugly how?
2012-05-30T23:06:42 < zyp> it's a normal stack frame preamble
2012-05-30T23:06:51 -!- feurig_ is now known as mrcrankypantsfeu
2012-05-30T23:07:03 < TitanMKD> I speak about the STR / LDR ;)
2012-05-30T23:07:37 < zyp> what about it?
2012-05-30T23:08:06 < TitanMKD> grr and why GCC does not check enums !! if i set a value it shall tell me hey it is not in my enum list
2012-05-30T23:08:29 -!- mrcrankypantsfeu is now known as crankyfeurig
2012-05-30T23:08:45 < TitanMKD> maybe there's a GCC option to check enum are correct as parameter
2012-05-30T23:09:03 < TitanMKD> at least to produce a Warning if the user does not use enum but a value
2012-05-30T23:09:24 < zyp> you mean implicit casts?
2012-05-30T23:09:40 < TitanMKD> yes without cast
2012-05-30T23:09:47 < TitanMKD> example
2012-05-30T23:09:47 < TitanMKD> void scu_normal(group_pin_normal_t group_pin, u32 val)
2012-05-30T23:09:49 < zyp> in C++ it's possible
2012-05-30T23:09:57 < TitanMKD> normal call
2012-05-30T23:09:58 < TitanMKD> scu_normal(PF_10, 0x1234);
2012-05-30T23:10:16 < TitanMKD> PF_10 is an entry in the (group_pin_normal_t
2012-05-30T23:10:18 < TitanMKD> now
2012-05-30T23:10:22 < TitanMKD> scu_normal(12345, 0x1234);
2012-05-30T23:10:30 < TitanMKD> this code does not even produce a warning
2012-05-30T23:10:49 < TitanMKD> 1st arg is not in enum list !!
2012-05-30T23:11:17 < zyp> of course not, in C enums are just lists
2012-05-30T23:11:29 < TitanMKD> but it's bad ;)
2012-05-30T23:11:39 < zyp> then switch to C++
2012-05-30T23:12:05 < TitanMKD> yes could be an option but it's not my choice
2012-05-30T23:12:14 < TitanMKD> it's in libopencm3
2012-05-30T23:12:24 < TitanMKD> i cannot change compiler like that ;)
2012-05-30T23:13:21 < TitanMKD> oups with g++ tons of stuff do error like vector table ;)
2012-05-30T23:18:13 < nopcode> 21:49 < zyp> nopcode, usb-cdc worked nicely for me when I used chibios a year ago
2012-05-30T23:18:16 < nopcode> which board?
2012-05-30T23:18:38 < nopcode> this test used some "shell" stuff
2012-05-30T23:18:41 < zyp> some F1 board
2012-05-30T23:18:50 < nopcode> i just commented all that out and did printf in a loop in main()
2012-05-30T23:20:38 < nopcode> zyp: well which code did you use for all the configuration structs?
2012-05-30T23:20:57 < nopcode> i used testhal/STM32F4XX/USB_CDC
2012-05-30T23:21:00 < zyp> I don't remember, it's a year ago
2012-05-30T23:24:37 < nopcode> Tracker: Bugs
2012-05-30T23:24:38 < nopcode> 3USB_CDC Demo for STM32F4 Discovery does not work - ID: 3530201
2012-05-30T23:24:51 < nopcode> Submitted:
2012-05-30T23:24:51 < nopcode> Chris ( caw100 ) - 2012-05-28 01:58:24 PDT
2012-05-30T23:25:01 < nopcode> About the second problem, the F4 USB driver is not complete yet so the demo
2012-05-30T23:25:01 < nopcode> is not functional yet.
2012-05-30T23:25:02 < nopcode> --
2012-05-30T23:25:04 < nopcode> alright.
2012-05-30T23:25:10 < zyp> as I said, I used F1
2012-05-30T23:25:15 < nopcode> yeah ok
2012-05-30T23:25:19 < zyp> F4 weren't even out a year ago
2012-05-30T23:25:50 < nopcode> ok so i guess i'll have to live with blinking LEDs for now ;)
2012-05-30T23:26:01 < nopcode> or get a ft232 something adapter
2012-05-30T23:26:08 < nopcode> and connect to the usart
2012-05-30T23:26:22 < Laurenceb_> im using F1 cdc code on a project
2012-05-30T23:26:24 < Laurenceb_> works ok
2012-05-30T23:26:32 < zyp> not on F4
2012-05-30T23:26:36 < nopcode> Laurenceb_: does chibios have demo code for that
2012-05-30T23:26:41 < Laurenceb_> i dont know
2012-05-30T23:26:43 < zyp> usb peripherals on F1 and F4 are completely different
2012-05-30T23:26:46 < Laurenceb_> i ripped code from maple
2012-05-30T23:26:53 < nopcode> whats maple
2012-05-30T23:27:02 < nopcode> zyp: i see
2012-05-30T23:27:04 < nopcode> that explains
2012-05-30T23:27:23 < nopcode> well seems like the guy is working on it
2012-05-30T23:28:20 < nopcode> hmm is there like a debug-printf
2012-05-30T23:28:28 < nopcode> which appear in gdb when used via stlink?
2012-05-30T23:28:30 < nopcode> appears
2012-05-30T23:28:33 < zyp> yes
2012-05-30T23:28:46 < nopcode> oh
2012-05-30T23:28:54 < nopcode> that'd probably be good enough since i mainly need it for debugging right now
2012-05-30T23:28:57 < TitanMKD> nopcode chibios USB for F4 is not working
2012-05-30T23:29:25 < nopcode> TitanMKD: any idea about the progress there?
2012-05-30T23:29:31 < TitanMKD> nopcode it is a work in progress see the feature/bug list I reported a problem with USB CDC
2012-05-30T23:29:44 < TitanMKD> nopcode it seems a bit in standby
2012-05-30T23:29:56 < nopcode> i see
2012-05-30T23:30:24 < nopcode> ok then i'll just go back to reallife ;)
2012-05-30T23:30:28 < nopcode> thanks for the help, later
2012-05-30T23:30:41 < TitanMKD> but other peripheral are very well supported and the driver API + OS is one of the best I have seen on embedded stuff
2012-05-30T23:40:51 < karlp> zyp: Laurenceb_ : gdb from arm on launchpad gives all zeros, which the net suggests is incompatible register maps? gdb from code sourcery works to load, but I can't ctrl-c to break into it.
2012-05-30T23:41:07 < karlp> and you have to do monitor halt before you call load
2012-05-30T23:41:14 < Laurenceb_> ive got code sourcery
2012-05-30T23:41:24 < Laurenceb_> i get zeros
2012-05-30T23:41:27 < karlp> it's a lot more manual that with stlink/texane
2012-05-30T23:41:35 < karlp> code sourcery which version? :)
2012-05-30T23:41:38 < Laurenceb_> but yeah i havent tried the monitor halt
2012-05-30T23:41:42 < karlp> it worked for me this afternoon at work yet.
2012-05-30T23:41:43 < Laurenceb_> hmm its a little only
2012-05-30T23:41:54 < Laurenceb_> ok ill try tomorrow
2012-05-30T23:41:56 < karlp> at work at least
2012-05-30T23:42:15 < karlp> I'm actually trying to do a bit of that tonight too, but I'm busy brewing, so not a full on hackery night
2012-05-30T23:42:20 < Laurenceb_> all my hardware is at work
2012-05-30T23:42:21 < Laurenceb_> cool
2012-05-30T23:42:46 < karlp> I was going to try and read a bit more about how openocd expects it all to work
2012-05-30T23:48:24 < zyp> oh, by the way, the talk about -O0 vs -O2 reminded me about something I played with a while ago
2012-05-30T23:49:29 < karlp> openocd irc channel is almost completely dead by the way
2012-05-30T23:49:55 < zyp> I made some tools to extract and graph the call tree of an application, and compared different optimization levels
2012-05-30T23:50:32 < zyp> http://bin.jvnv.net/f/HsiRv.png <- here is -O0, each box is a function and the number on the last line is the stack frame size
2012-05-30T23:51:30 < zyp> http://bin.jvnv.net/f/TXsox.png <- and here is -O2 for comparison
2012-05-30T23:52:37 < zyp> http://bin.jvnv.net/f/j4TBZ.png <- -Os does a bit less inlining
2012-05-30T23:54:48 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit []
2012-05-30T23:58:41 < zyp> I was thinking about being able to determine the required stack size for each thread automatically
2012-05-30T23:59:04 < zyp> but it's kind of unfeasible for indirect calls
2012-05-30T23:59:27 < zyp> i.e. function pointers
2012-05-30T23:59:27 < karlp> there's a hell of a lot of research theses on solving tha tproblem isn't there?
2012-05-30T23:59:45 < zyp> probably, but I like using my own head
--- Day changed Thu May 31 2012
2012-05-31T00:00:28 < karlp> I'm not clever enough :)
2012-05-31T00:04:50 < zyp> the call graphs I have makes it pretty clear that the thread started from «threadmain» needs 72 bytes of stack (in addition to room for context on top of that)
2012-05-31T00:06:04 < zyp> but as soon as you call a function pointer in a thread, that function might be anything
2012-05-31T00:06:55 < zyp> static analysis should be able to tell which possible values the function pointer could take, and go by the worst case
2012-05-31T00:07:58 < zyp> but that's way harder to find :p
2012-05-31T00:09:56 < Laurenceb_> is that done with a script?
2012-05-31T00:10:14 < Laurenceb_> * i hope thats done with a script
2012-05-31T00:10:34 < zyp> of course
2012-05-31T00:10:39 < Laurenceb_> ah :P
2012-05-31T00:10:48 < Laurenceb_> my boss is meeting with ST tomorrow
2012-05-31T00:10:57 < Laurenceb_> ill remind him to ask for free F3s
2012-05-31T00:11:32 < zyp> it's using gdb to store some extra info during compilation, and analyzes that, and passes the results through graphviz to generate the image
2012-05-31T00:11:53 < Laurenceb_> interesting
2012-05-31T00:19:41 < Laurenceb_> ST are collaborating with a UK team and a team from a university in a "less developed eurozone economy" to design and fab a custom medical sensor ic
2012-05-31T00:19:45  * Laurenceb_ facepalms
2012-05-31T00:20:54 < Laurenceb_> they dont actually have a clue what they are going to build...
2012-05-31T00:21:13 < karlp> someone's ahnding out stimulus money I guess
2012-05-31T00:21:31 < Laurenceb_> "this project looks very exciting"
2012-05-31T00:21:41 < Laurenceb_> "i can has free stm32f3 please"
2012-05-31T00:23:14 < Laurenceb_> yes, blatant subsidy surfing
2012-05-31T00:23:33 <+izua> sounds like something our guys would do
2012-05-31T00:23:53 -!- sourcebox [~sourcebox@static-87-79-70-47.netcologne.de] has joined ##stm32
2012-05-31T00:26:11 -!- izua [~izua@unaffiliated/izua] has quit [Quit: Lost terminal]
2012-05-31T00:30:16 -!- upgrdman [~upgrdman@71-92-208-122.static.mtpk.ca.charter.com] has joined ##stm32
2012-05-31T00:30:16 -!- upgrdman [~upgrdman@71-92-208-122.static.mtpk.ca.charter.com] has quit [Changing host]
2012-05-31T00:30:16 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has joined ##stm32
2012-05-31T00:30:48 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has joined ##stm32
2012-05-31T00:39:31 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32
2012-05-31T01:43:28 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Read error: Connection reset by peer]
2012-05-31T01:44:38 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-31T01:53:29 -!- sourcebox [~sourcebox@static-87-79-70-47.netcologne.de] has quit [Remote host closed the connection]
2012-05-31T02:01:36 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-31T03:31:44 -!- LawrenceSeattle [~lawrence@66.192.187.106] has quit [Quit: LawrenceSeattle]
2012-05-31T04:05:05 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Ping timeout: 252 seconds]
2012-05-31T04:05:30 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 260 seconds]
2012-05-31T04:28:51 -!- cjbaird [~cjb@ppp121-44-125-219.lns20.syd6.internode.on.net] has joined ##stm32
2012-05-31T04:31:41 < upgrdman> is a "reset value" the same as a default? stm32f4, if that makes any difference.
2012-05-31T04:33:09 < karlp> yes.
2012-05-31T04:33:17 < karlp> it's what the registers are after reset.
2012-05-31T04:33:58 < cjbaird> It is a more functionally precise term..
2012-05-31T04:34:51 < upgrdman> sure
2012-05-31T04:34:57 < upgrdman> ok
2012-05-31T04:35:27 < upgrdman> so even a normal power on, without pressing the reset button, will result in registers that start out with their reset values?
2012-05-31T04:36:14 < karlp> power on _is_ a reset
2012-05-31T04:36:29 < upgrdman> o
2012-05-31T04:36:52 < upgrdman> great. thanks for the info.
2012-05-31T04:46:59 < dongs> http://i.imgur.com/Ck2X1.png how the fuck do you fix this in eagle
2012-05-31T04:47:06 < dongs> pour spacing and  thermal spacing is different.
2012-05-31T04:48:19 < karlp> probably some restring craziness
2012-05-31T04:49:45 < dongs> fucking hate eagle i wish people would stop using that shit
2012-05-31T05:12:25 < upgrdman> PLL_VCO... what is VCO?
2012-05-31T05:24:14 < dongs> voltage controlled oscillator?
2012-05-31T05:28:12 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 252 seconds]
2012-05-31T05:43:18 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-31T06:36:48 -!- izua [~izua@86.121.85.94] has joined ##stm32
2012-05-31T06:36:48 -!- izua [~izua@86.121.85.94] has quit [Changing host]
2012-05-31T06:36:48 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-31T06:36:51 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-31T06:47:30 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-31T06:51:08 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 240 seconds]
2012-05-31T07:09:36 < upgrdman> the clocks for each gpio channel can be enabled or disabled with RCC_AHB1ENR, but i was able to use the GPIO pins without turning the clock on. whats the purpose or benefit of the clock?
2012-05-31T07:31:26 < dongs> you should turn on clocks for peripherals you want to use.
2012-05-31T07:43:46 < emeb> well, shutting this one down.
2012-05-31T07:44:22 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.]
2012-05-31T07:49:06 -!- L00NG [~longxk@123.84.250.88] has joined ##stm32
2012-05-31T08:08:15 < upgrdman> i want to try the stm stdperiph library. i use linux, how do i add that library so gcc can find it?
2012-05-31T08:08:40 < dongs> uh
2012-05-31T08:08:42 < upgrdman> (where to a copy the inc and src directories)
2012-05-31T08:08:48 < dongs> unzip it in a dir and -Ilol\inc?
2012-05-31T08:08:52 < dongs> dont copy them anywhre
2012-05-31T08:08:59 < dongs> just unzip and build them
2012-05-31T08:09:10 < dongs> i.e. proj\stdlib\inc proj\stdlib\src
2012-05-31T08:09:16 < upgrdman> ok
2012-05-31T08:09:23 < dongs> though you want CMSIS too, so just organize things appropriately
2012-05-31T08:09:36 < dongs> and -Istdlib\inc and -Icmsis\inc or whatnot.
2012-05-31T08:09:41 < upgrdman> k
2012-05-31T08:09:55 < upgrdman> why not copy them to a more common place so i can omit the -I's
2012-05-31T08:10:09 < dongs> why would you copy them to system include directories?
2012-05-31T08:10:12 < dongs> they're not system files.
2012-05-31T08:10:18 < upgrdman> fair enough
2012-05-31T08:10:27 < upgrdman> this is the first time i havent used system libs
2012-05-31T08:10:29 < upgrdman> :)
2012-05-31T08:11:09 < dongs> you still need build options anyway... like -DUSE_STDPERIPH_LIBRARY or something like that - read the chm docs that come with the stuff.
2012-05-31T08:11:18 < upgrdman> k
2012-05-31T08:11:26 < dongs> once you set it up once you'll know how to do it again, initial setup will be annoying
2012-05-31T08:25:11 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124]
2012-05-31T08:26:00 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32
2012-05-31T09:03:35 -!- izua [~izua@unaffiliated/izua] has quit [Quit: Lost terminal]
2012-05-31T09:06:04 -!- ben1066_ [~quassel@host109-152-45-7.range109-152.btcentralplus.com] has joined ##stm32
2012-05-31T09:06:04 -!- ben1066_ [~quassel@host109-152-45-7.range109-152.btcentralplus.com] has quit [Changing host]
2012-05-31T09:06:04 -!- ben1066_ [~quassel@unaffiliated/ben1066] has joined ##stm32
2012-05-31T09:06:51 -!- ben1066 [~quassel@unaffiliated/ben1066] has quit [Ping timeout: 246 seconds]
2012-05-31T09:38:41 < Tectu> jpa-, are you arround?
2012-05-31T09:41:03 < jpa-> not really
2012-05-31T09:41:35 < Tectu> sure, you're busy, i guess
2012-05-31T09:54:04 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has joined ##stm32
2012-05-31T09:54:05 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has quit [Changing host]
2012-05-31T09:54:05 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32
2012-05-31T10:14:05 < upgrdman> would putting all of the CMSIS and STMperiphLib .h and .c files into one directory, and including that directory with -I when running GCC be all that's needed if I want to use those libs? i've never used a non-system lib before...
2012-05-31T10:15:27 < Tectu> upgrdman, that's what i did
2012-05-31T10:15:39 < Tectu> depending on your toolchain you still need a different startup code
2012-05-31T10:17:26 < upgrdman> what do you mean by startup code
2012-05-31T10:18:32 < Tectu> upgrdman, well, you need some startup code which initializes all the things, sets the vectors etc
2012-05-31T10:18:47 < upgrdman> o
2012-05-31T10:18:56 < Tectu> afaik that's what all the different toolchains bring on their own. couldn't find that in the stdlib
2012-05-31T10:19:03 < upgrdman> hum
2012-05-31T10:19:04 < Tectu> so i wrote my own
2012-05-31T10:19:05 < upgrdman> ok
2012-05-31T10:20:03 < upgrdman> so i can't just edit the header to reflect my 8MHz crystal, #include "stmf4xx.h" and move on?
2012-05-31T10:20:23 < upgrdman> stm32f4xx.h
2012-05-31T10:22:02 < upgrdman> any chance you'd be willing to share what you wrote?
2012-05-31T10:22:14 < Tectu> sure, i can zip the whole folder of mine
2012-05-31T10:22:24 < Tectu> but i never really did something with it, i work currently with chibios
2012-05-31T10:22:28 < Tectu> but it compiled and worked
2012-05-31T10:22:32 < upgrdman> i'd greatly appreciate it. im new to this stuff... used to the arduino
2012-05-31T10:24:58 < Tectu> oh
2012-05-31T10:25:03 < Tectu> are you under linux?
2012-05-31T10:26:03 < upgrdman> yes
2012-05-31T10:26:14 < Tectu> which toolchain do you use?
2012-05-31T10:26:47 < upgrdman> i followed this guide: http://cu.rious.org/make/stm32f4-discovery-board-with-linux/ ... summon-arm-toolchain
2012-05-31T10:27:43 < Tectu> i used summon too, but had to change
2012-05-31T10:27:57 < Tectu> when you want to use something like chibios later, you'll have some problems with that toolchain
2012-05-31T10:28:53 < upgrdman> o
2012-05-31T10:29:03 < upgrdman> can you recommend something better?
2012-05-31T10:29:16 < upgrdman> that was the only page i found covering the f4 with linux
2012-05-31T10:29:22 < Tectu> not sure if it is better
2012-05-31T10:29:24 < Tectu> but i use this one   https://launchpad.net/gcc-arm-embedded
2012-05-31T10:29:31 < Tectu> just download, unpack and set $PATH
2012-05-31T10:29:45 < Tectu> it's prebuild
2012-05-31T10:29:49 < Tectu> what distribution do you use?
2012-05-31T10:30:38 < upgrdman> ubuntu
2012-05-31T10:31:00 < Tectu> ah
2012-05-31T10:31:17 < Tectu> well, i currently use that one i linked
2012-05-31T10:31:19 < Tectu> and it works
2012-05-31T10:31:25 < Tectu> wihtout any problems
2012-05-31T10:31:35 < upgrdman> ok
2012-05-31T10:32:51 < upgrdman> what exactly is a toolchain? is it just the compiler and driver for the programmer?
2012-05-31T10:33:38 < Tectu> well
2012-05-31T10:33:50 < Tectu> toolchain is compiler+linker+flash/debug utility+IDE
2012-05-31T10:33:52 < Tectu> in my opinion
2012-05-31T10:34:23 < upgrdman> what ide do you use?
2012-05-31T10:35:39 < Tectu> well, just vim (that's a text editor) and Makefiles
2012-05-31T10:35:44 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32
2012-05-31T10:35:48 < Tectu> so no real IDE like eclipse
2012-05-31T10:35:55 < upgrdman> ok
2012-05-31T10:36:08 < upgrdman> i've been using Geany and a Makefile
2012-05-31T10:36:15 < Tectu> geany is nice
2012-05-31T10:36:20 < Tectu> you use geany with ARM?
2012-05-31T10:36:24 < Tectu> or just for arduino?
2012-05-31T10:36:32 < upgrdman> one of these days i should learn vi or emacs
2012-05-31T10:36:35 < upgrdman> for ARM
2012-05-31T10:36:44 < upgrdman> well for any coding really
2012-05-31T10:37:00 < upgrdman> for the arduino i just open the code up in their software to flash stuff
2012-05-31T10:37:03 < Tectu> yeah, tried geany
2012-05-31T10:37:11 < Tectu> like vi + Make much more
2012-05-31T10:37:18 < upgrdman> o ok
2012-05-31T10:37:29 < Tectu> learn vi ;)
2012-05-31T10:37:35 < upgrdman> ok :)
2012-05-31T10:39:17 < Tectu> took screenshot:  http://www.abload.de/img/2012-05-31-113831_3362zjnn.png
2012-05-31T10:40:24 < upgrdman> wow :) i recognize... the xchat icon...
2012-05-31T10:40:27 < upgrdman> :)
2012-05-31T10:40:57 < Tectu> yeah
2012-05-31T10:41:11 < Tectu> xchat and mozilla are the only gui programs i use
2012-05-31T10:41:20 < Tectu> everything else is in terminal
2012-05-31T10:42:21 < upgrdman> are you in denmark?
2012-05-31T10:43:29 < upgrdman> some nice danish guy on youtube did a video review of the stm32f4... it convinced me to try leaving the arduino. :)
2012-05-31T10:43:59 < Tectu> no, i am from switzerland
2012-05-31T10:44:09 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.]
2012-05-31T10:44:41 < upgrdman> oh, i confused .de and .dk
2012-05-31T10:44:54 < Tectu> .de is germany
2012-05-31T10:44:59 < Tectu> i am from .ch
2012-05-31T10:45:15 < upgrdman> shows just how little i know ;)
2012-05-31T10:48:01 < upgrdman> is that a dual monitor setup?
2012-05-31T10:48:49 < upgrdman> i like the look of a dark theme but every time i try one i get blinded when i open a web page or watch a movie :(
2012-05-31T10:48:56 < upgrdman> sweet setup though
2012-05-31T10:54:48 < Tectu> abload.de is just a generic image hoster
2012-05-31T10:54:55 < Tectu> and yes, that are 2x 22"
2012-05-31T10:55:12 < Tectu> it's not a dark theme, that are just only terminals
2012-05-31T10:55:25 < Tectu> and it would be pretty pointless to make that single bar on the top in a bright color
2012-05-31T10:56:35 < zyp> Tectu, you're an archlinux/awesome guy, and then you use xchat?
2012-05-31T10:56:41 < zyp> weird combination :p
2012-05-31T10:57:28 < upgrdman> lol
2012-05-31T10:57:34 < upgrdman> whats wrong with xchat
2012-05-31T10:57:39 < Tectu> zyp, yeah, thats true ;-)
2012-05-31T10:57:45 < Tectu> zyp, but hey, I stand behind that!
2012-05-31T10:57:46 < Tectu> :D
2012-05-31T10:57:58 < Tectu> there are guys who do close xchat every time they make a screenshot.... seriously
2012-05-31T10:58:06 < upgrdman> lol
2012-05-31T10:58:26 < Tectu> upgrdman, nothing's wrong with xchat. but guys wich a similar setup like me do use irssi or something similar. that's an irc client inside a terminal
2012-05-31T10:58:35 < zyp> I'm not saying anything is wrong with xchat, I'm just saying it's weird that a guy using cli vim to edit files is using a gui based irc client
2012-05-31T10:58:47 < Tectu> zyp, that's true
2012-05-31T10:58:51 < zyp> :p
2012-05-31T10:59:13 < Tectu> but i have to many query open and i am in to many channels (not just idling) so i got fed up with irssi
2012-05-31T10:59:26 < zyp> how so?
2012-05-31T10:59:34 < Tectu> zyp, navigation...
2012-05-31T10:59:43 < zyp> what about it?
2012-05-31T10:59:55 < Tectu> i am sure that i don't know anything about irssi, just used it for a month or so, but with the basic navigation, it was hard to find to the right place
2012-05-31T11:00:05 < Tectu> i'd like to go back to irssi, just because of the terminal
2012-05-31T11:00:41 < Tectu> but somehow i never came to learn a way to handle 35 channels and 5 queries on 4 different servers
2012-05-31T11:02:08 < zyp> I've mapped 1-0, q-p and a-l to window selection, so I try to stay below 29 open windows :p
2012-05-31T11:02:50 < Tectu> zyp, yeah, i should try to make a propper config this time
2012-05-31T11:03:03 < Tectu> i just got with  alt+arrow, and alt+0-9
2012-05-31T11:03:14 < Tectu> so i guess you can think of it's not that awesome ;)
2012-05-31T11:03:28 < zyp> at the moment I've got the server window and 20 channels
2012-05-31T11:03:30 < zyp> so 21 in total
2012-05-31T11:03:59 < Tectu> so you can make a config which declares that ##stm32 on freenode is ALWAYS reachable over  alt+s  ?
2012-05-31T11:06:15 < upgrdman> any idea why a simply example that blinks LEDs on the f4 dev board would have this: void _tmain(void) {main();}
2012-05-31T11:07:13 < Tectu> upgrdman, where the hell did you get that code from?
2012-05-31T11:07:25 < Tectu> sounds like some loop for me
2012-05-31T11:07:29 < Tectu> but _t looks like compiler macro?
2012-05-31T11:07:35 < Tectu> sorry, i am a newbie too ;-)
2012-05-31T11:07:43 < Tectu> just work for a few weeks with stm32
2012-05-31T11:08:47 < upgrdman> texane stlink, the blink example in their examples dir
2012-05-31T11:09:02 < Tectu> ah, never took a look to that
2012-05-31T11:09:11 < Tectu> upgrdman, btw, what speed do you get when loading with texane/stlink?
2012-05-31T11:09:25 < Tectu> watch out in gdb window for this     Transfer rate: 11 KB/sec, 10235 bytes/write.
2012-05-31T11:09:30 < Tectu> what's your transfer rate?
2012-05-31T11:09:47 < upgrdman> i've only uploaded two programs so far. i'd have my dev board for a week now and its been one problem after another (all my fault... noob)
2012-05-31T11:10:06 < Tectu> na, don't bother we all got through that,  i guess :D
2012-05-31T11:10:11 < Tectu> whta's your transfer rate?
2012-05-31T11:10:18 < upgrdman> Transfer rate: 144 bytes/sec, 104 bytes/write.
2012-05-31T11:10:28 < upgrdman> Transfer rate: 213 bytes/sec, 104 bytes/write.
2012-05-31T11:10:35 < Tectu> thank you
2012-05-31T11:10:41 < upgrdman> and one time: Transfer rate: 2 KB/sec, 104 bytes/write.
2012-05-31T11:10:47 < Tectu> it seems like all F4 guys do get a very very low transfer rate
2012-05-31T11:11:26 < upgrdman> i just for a f0 in the mail yesterday. looks sweet but i have not opened it yet
2012-05-31T11:11:32 < upgrdman> just got a*
2012-05-31T11:12:26 < upgrdman> i bought an ipad3 so i could read the 1500 page reference manual more easily
2012-05-31T11:12:46 < upgrdman> my 7" tab wasn't enough for that beast of a pdf
2012-05-31T11:13:43 < Tectu> o0
2012-05-31T11:13:58 < upgrdman> i use the ipad for other stuff too... lol
2012-05-31T11:14:03 < upgrdman> but its great for reading
2012-05-31T11:14:29 < upgrdman> i just wish it ran android instead of ios... i hate apple software
2012-05-31T11:14:44 < Tectu> then why the hell did you buy an ipad?
2012-05-31T11:14:52 < upgrdman> the lcd
2012-05-31T11:14:56 < upgrdman> and the price
2012-05-31T11:15:06 < upgrdman> the only hd android tabs coming out were overpriced
2012-05-31T11:15:12 < upgrdman> and ugly
2012-05-31T11:15:32 < Tectu> how's the iPad3 display?
2012-05-31T11:15:46 < Tectu> isn't it a bit.... to high resolutioned?
2012-05-31T11:15:48 < upgrdman> awesome
2012-05-31T11:15:55 < upgrdman> how can it be too high res?
2012-05-31T11:16:28 < upgrdman> the constast and brightness are both excellent.
2012-05-31T11:16:29 < Tectu> i dunno, but i'd be afraid of that res :D
2012-05-31T11:16:40 < upgrdman> it makes reading a pdf so comfortable
2012-05-31T11:16:52 < Tectu> how much did you pay?
2012-05-31T11:16:54 < upgrdman> you don't see pixels unless you hold the tablet up to your eye
2012-05-31T11:16:57 < upgrdman> 499
2012-05-31T11:17:01 < Tectu> € ?
2012-05-31T11:17:03 < Tectu> $ ?
2012-05-31T11:17:05 < upgrdman> %usd
2012-05-31T11:17:09 < upgrdman> $usd
2012-05-31T11:17:11 < Tectu> ok
2012-05-31T11:17:39 < upgrdman> 402 euros
2012-05-31T11:18:55 < Tectu> i got swiss francs here, so i don't care how much it is in euros, but thank you anyways :D
2012-05-31T11:19:03 < upgrdman> :)
2012-05-31T11:19:31 < upgrdman> probably for the best with greece fucking up the euro
2012-05-31T11:19:49 < Tectu> haha :D
2012-05-31T11:21:09 < Tectu> oh dear... someone in a generic microcontroller channel came and asked, if there's a microcontroller which can take float values into the timer register
2012-05-31T11:21:10 < Tectu> wtf?
2012-05-31T11:21:41 < upgrdman> lol
2012-05-31T11:21:46 < upgrdman> what channel
2012-05-31T11:22:05 < Tectu> its a german channel on euIRC
2012-05-31T11:22:07 < upgrdman> o
2012-05-31T11:22:19 < BrainDamage> well, you can copy a float value into the timer register, it'll just inteprete it in the wrong way :p
2012-05-31T11:22:27 < upgrdman> i want a timer tick every 3.14 cycles
2012-05-31T11:22:36 < upgrdman> ;)
2012-05-31T11:22:43 < Tectu> yeah :D
2012-05-31T11:23:01 < BrainDamage> ( or cast it to a uint )
2012-05-31T11:24:11 -!- tavish [~tavish@120.59.136.231] has joined ##stm32
2012-05-31T11:24:11 -!- tavish [~tavish@120.59.136.231] has quit [Changing host]
2012-05-31T11:24:11 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-31T11:27:31 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has quit [Quit: Quit]
2012-05-31T11:30:13 < upgrdman> HSI is the internal RC oscillator, right?
2012-05-31T11:30:29 < zyp> it's one of them, yes
2012-05-31T11:30:36 < zyp> «high speed internal»
2012-05-31T11:30:43 < zyp> there is also a LSI
2012-05-31T11:30:51 < upgrdman> ok
2012-05-31T11:31:18 < upgrdman> how do you write << as one char?
2012-05-31T11:31:52 < zyp> I stuff them really hard together
2012-05-31T11:32:02 < upgrdman> lol
2012-05-31T11:32:21 < zyp> on my keymap, they are on AltGr+z/x
2012-05-31T11:33:20 < upgrdman> altgr?
2012-05-31T11:33:59 < zyp> on my keyboard that's the button right of the spacebar
2012-05-31T11:34:17 < upgrdman> alt?
2012-05-31T11:34:25 < Tectu> upgrdman, do you have german keyboard?
2012-05-31T11:34:29 < upgrdman> no
2012-05-31T11:34:32 < upgrdman> usa
2012-05-31T11:34:49 < zyp> which brand?
2012-05-31T11:34:58 < upgrdman> ibm model m
2012-05-31T11:35:27 < zyp> well, I have no idea about how US keyboards/keymaps work, I'm using a norwegian
2012-05-31T11:35:42 < upgrdman> ok
2012-05-31T11:36:00 < Tectu> and i have swiss here
2012-05-31T11:36:13 < upgrdman> im up late :)
2012-05-31T11:36:17 < zyp> http://en.wikipedia.org/wiki/AltGr
2012-05-31T11:36:20 < BrainDamage> «
2012-05-31T11:36:32 < Tectu> here it is   AltGr+x/y
2012-05-31T11:36:34 < Tectu> «  »
2012-05-31T11:36:38 < BrainDamage> I press altgr and <
2012-05-31T11:36:42 < BrainDamage> italian layout
2012-05-31T11:36:55 < upgrdman> i have no altgr :(
2012-05-31T11:36:56 < Tectu> also have fancy arrows:    ←↓→
2012-05-31T11:37:06 < BrainDamage> ⅝
2012-05-31T11:37:08 < upgrdman> lucky bastards
2012-05-31T11:37:26 < Tectu> sure you have some altgr
2012-05-31T11:37:37 < Tectu> mostly the key next to the right of your space bar
2012-05-31T11:37:37 < BrainDamage> the most useful extra symbols tough are ™ and ® to make jokes in a conversation
2012-05-31T11:37:48 < Tectu> BrainDamage, ha :D
2012-05-31T11:37:59 < upgrdman> alt is there
2012-05-31T11:38:07 < Tectu> try alt+ctrl
2012-05-31T11:38:11 < Tectu> on some systems thats altgr :D
2012-05-31T11:38:18 < upgrdman> and it doesnt do those symbols
2012-05-31T11:38:23 < Tectu> but that does only work on windows afaik
2012-05-31T11:38:32 < upgrdman> nope
2012-05-31T11:38:47 < BrainDamage> I also changed my keyb layout, and remapped the menu key to compose key
2012-05-31T11:39:00 < zyp> http://en.wikipedia.org/wiki/File:KB_Sweden_AltGr.svg <- this is pretty similar to my keymap, except I've got norwegian Ø in place of the swedish Ö
2012-05-31T11:39:04 < BrainDamage> https://en.wikipedia.org/wiki/Compose_key
2012-05-31T11:39:06 < Tectu> http://en.wikipedia.org/wiki/Keyboard_layout#US-International
2012-05-31T11:39:14 < Tectu> it says there is AltGr on US keyboard
2012-05-31T11:39:44 < BrainDamage> I strongly suggest to do the same, because it allows you to type a lot of chars using mnemonics, and you usually don't use that key anyway
2012-05-31T11:39:45 < Tectu> dafuq is compose key?
2012-05-31T11:40:08 < BrainDamage> see the wiki page
2012-05-31T11:40:15 < zyp> Tectu, a key to write notes
2012-05-31T11:40:18 < zyp> :D
2012-05-31T11:40:25 < Tectu> is that a standard key?
2012-05-31T11:40:28 < zyp> so you can be a composer
2012-05-31T11:40:30 < Tectu> i've never ever seen that one
2012-05-31T11:40:55 < Tectu> http://en.wikipedia.org/wiki/Keyboard_layout#Switzerland_.28German.2C_French.2C_Italian.2C_Romansh.29.2C_Liechtenstein.2C_Luxembourg
2012-05-31T11:40:59 < zyp> people tend to rebind their caps lock to be compose
2012-05-31T11:41:19 < zyp> I believe my arch-friend I told you about have done that
2012-05-31T11:41:20 < BrainDamage> I rebinded the menu key to compose
2012-05-31T11:41:24 < BrainDamage> I never used anyway
2012-05-31T11:41:35 < Tectu> BrainDamage, menu key == windows key?
2012-05-31T11:41:40 < Tectu> zyp, ah
2012-05-31T11:41:44 < BrainDamage> no, menu key == menu key
2012-05-31T11:41:51 < BrainDamage> https://en.wikipedia.org/wiki/File:KB_Swiss.svg
2012-05-31T11:41:54 < BrainDamage> bottom right
2012-05-31T11:42:11 < Tectu> ah, called context key sometimes
2012-05-31T11:42:15 < BrainDamage> I lack right win key, otherwise I'd have used it
2012-05-31T11:42:34 < Tectu> on fancy logitech keyboards there is just the  2fn key, instead of the context/menu key
2012-05-31T11:42:51 < Tectu> BrainDamage, you one of these fancy neo keymap guys?
2012-05-31T11:43:02 < BrainDamage> neo keymap?
2012-05-31T11:43:12 < BrainDamage> it's the only change I made to the layout
2012-05-31T11:43:44 < Tectu> ah
2012-05-31T11:43:49 < Tectu> never heard of neo?
2012-05-31T11:43:51 < BrainDamage> I cba to learn another keyboard layout than dvorak or others, when using other keyboards it'd be too awkward
2012-05-31T11:43:55 < Tectu> it's an optimized keyboard layout
2012-05-31T11:44:10 < Tectu> yeah, same reason here
2012-05-31T11:44:21 < Tectu> and i don't want to change keymap on a computer just to write a sentense :D
2012-05-31T11:51:47 < nopcode> whats a good usb-serial converter dongle
2012-05-31T11:51:54 < nopcode> which supports 3.3V / 5V levels
2012-05-31T11:53:24 < jon1012> pl2303 work well and are cheap
2012-05-31T11:53:30 < BrainDamage> or ftdi
2012-05-31T11:53:38 < jon1012> but you could use ft232 or ft230x based one
2012-05-31T11:53:39 < jon1012> yeah
2012-05-31T11:55:30 < Tectu> ftdi does have some CLP12xx chip
2012-05-31T11:55:37 < Tectu> which are used in "professional" converters as well
2012-05-31T11:56:18 < nopcode> yeah i'd like to have a usb dongle
2012-05-31T11:56:23 < nopcode> with 3 wires coming out
2012-05-31T11:56:39 < Tectu> i have pl2303 here
2012-05-31T11:57:06 < Tectu> also used ft232RL in the past
2012-05-31T11:57:10 < Tectu> or was it RB?
2012-05-31T11:57:41 < zyp> I've used ft232rl
2012-05-31T11:57:52 < zyp> first smt chip I ever soldered :p
2012-05-31T11:58:02 < Tectu> :D
2012-05-31T11:58:13 < nopcode> yeah
2012-05-31T11:58:16 < nopcode> i dont wanna solder
2012-05-31T11:58:17 < Tectu> my first smd chip was LM75  (I²C temperature sensor)
2012-05-31T11:58:24 < Tectu> you don't wana solder?
2012-05-31T11:58:30 < nopcode> well not for this
2012-05-31T11:58:32 < nopcode> i just want printf
2012-05-31T11:58:39 < Tectu> wtf do you mean?
2012-05-31T11:58:45 < nopcode> and chibios usb support doesnt work yet
2012-05-31T11:58:47 < Tectu> these chips are all only available SMD packages, no DIP for breadboards
2012-05-31T11:58:57 < nopcode> thats why i said i want a usb dongle
2012-05-31T11:59:06 < zyp> just grab one from sparkfun or something
2012-05-31T11:59:06 < Tectu> why do you want real USB? just use serial driver for USART/RS232  ?
2012-05-31T11:59:16 < Tectu> and then grap some cheap USB to RS232 converter for 5$
2012-05-31T11:59:25 < zyp> Tectu, that's what he's asking about
2012-05-31T11:59:32 < Tectu> zyp, ah!
2012-05-31T11:59:33 < BrainDamage> http://www.ebay.com/itm/FT232RL-USB2-0-to-Serial-Module-USB-to-TTL-level-Converter-Adapter-for-Arduino-/221034622451?pt=LH_DefaultDomain_0&hash=item3376b0adf3
2012-05-31T11:59:53 < Tectu> with delivery time from 3 weeks, i guess :D
2012-05-31T12:00:20 < BrainDamage> or buy a chinese rs232 adapter, since they stretch a bit the rs232 spec and send 0-5V signals
2012-05-31T12:00:42 < BrainDamage> ( rs232 are supposed to be symmetrical to 0V )
2012-05-31T12:02:18 < nopcode> well but the stm32 doesnt expect -12v to +12v
2012-05-31T12:03:35 < Tectu> that's why you need a max232
2012-05-31T12:04:01 < Tectu> (level converter    -12V to +12V → 0V to 5V
2012-05-31T12:04:02 < upgrdman> reading the ref manual, is VCO the HSE (i have an 8MHz crystal on my dev board)
2012-05-31T12:04:14 < Tectu> no
2012-05-31T12:04:19 < Tectu> HSE is high speed external
2012-05-31T12:04:27 < Tectu> or do i missunderstand your question?
2012-05-31T12:04:33 < upgrdman> ok
2012-05-31T12:04:34 < upgrdman> well
2012-05-31T12:04:41 < upgrdman> what is the crystal on my board called
2012-05-31T12:04:50 < BrainDamage> you don't need the max232
2012-05-31T12:05:02 < BrainDamage> that's the "nice" thing of crappy chinese adapters
2012-05-31T12:05:05 < zyp> upgrdman, it's part of the HSE
2012-05-31T12:05:10 < Tectu> BrainDamage, when he gets +-12V from the converter, he sure does
2012-05-31T12:05:11 < BrainDamage> they won't send you +-12V
2012-05-31T12:05:21 < BrainDamage> they'll send you 0-5V
2012-05-31T12:05:30 < Tectu> but i'd take some real USB to USART(TTL) converter for 5 bucks
2012-05-31T12:05:57 < upgrdman> zyp, what makes up the rest of the HSE?
2012-05-31T12:21:37 < zyp> the oscillator driving the crystal
2012-05-31T12:22:19 < zyp> a crystal by itself doesn't do much, you still need a feedback amplifier to make it oscillate
2012-05-31T12:22:41 < zyp> and the crystal and everything together makes up a crystal oscillator, which is the HSE
2012-05-31T12:23:00 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-31T12:32:52 < upgrdman> i have the stm32f4discovery board. it has an 8mhz crystal on the pcb. stm32f4xx.h has HSE_VALUE = 25000000 ... how do i find out the value for HSE?
2012-05-31T12:33:42 < zyp> hmm, that doesn't make sense
2012-05-31T12:34:08 < zyp> IIRC HSE_VALUE should be the frequency of the crystal, i.e. 8000000
2012-05-31T12:34:12 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep]
2012-05-31T12:35:31 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-31T12:35:33 < Laurenceb_> hi all
2012-05-31T12:35:43 < Laurenceb_> http://www.amazon.co.uk/product-reviews/B005HP1UHK/ref=cm_cr_dp_see_all_btm/279-4927325-7103646?ie=UTF8&showViewpoints=1&sortBy=bySubmissionDateDescending
2012-05-31T12:35:52 < upgrdman> zyp, thats what i thought
2012-05-31T12:36:18 < upgrdman> zyp, so i made that 8000000, and im editing system_stm32f4xx.c to change the PLL factors.
2012-05-31T12:37:12 < upgrdman> with an 8mhz crystal, does PLL_M = 4, PLL_N = 336, PLL_P = 4, PLL_Q = 14 sound right for 168MHz
2012-05-31T12:38:51 < zyp> hang on, I'll check what I'm using
2012-05-31T12:40:15 < upgrdman> k
2012-05-31T12:41:00 < zyp> P = 2, Q = 7, N = 336, and M = 8
2012-05-31T12:41:24 < upgrdman> ok
2012-05-31T12:41:33 < zyp> hmm, but your values might be better
2012-05-31T12:41:47 < upgrdman> why
2012-05-31T12:43:03 < zyp> from the documentation from M: The software has to set these bits correctly to ensure that the VCO input frequency ranges from 1 to 2 MHz. It is recommended to select a frequency of 2 MHz to limit PLL jitter.
2012-05-31T12:43:46 < zyp> so everything from 4-8 is allowed, 4 gives 2 MHz, 8 gives 1 MHz
2012-05-31T12:43:49 < upgrdman> oh ya i read that last night
2012-05-31T12:44:51 < zyp> but N is too high then
2012-05-31T12:45:23 < zyp> try P = 2, Q = 7, N = 168 and M = 4
2012-05-31T12:46:10 < upgrdman> from system_stm32f4xx.c: "SystemCoreClock variable: Contains the core clock (HCLK), it can be used by the user application to setup the SysTick..." what is the core clock? 168mhz in my case?
2012-05-31T12:46:20 < zyp> yes
2012-05-31T12:49:00 < upgrdman> it says that needs to be a global, so that would be uint32_t SystemCoreClock = 168000000; correct?
2012-05-31T12:49:07 < upgrdman> outside of main()
2012-05-31T12:49:38 < zyp> I haven't used the files you're talking about, so I don't know that :p
2012-05-31T12:49:45 < upgrdman> ok
2012-05-31T12:49:54 < upgrdman> what libs do you use?
2012-05-31T12:50:00 < zyp> none
2012-05-31T12:50:45 < karlp> yeah, I found those system_ files to be reallllly confusing.
2012-05-31T12:51:50 < upgrdman> thank god
2012-05-31T12:51:54 < upgrdman> im not the only on
2012-05-31T12:51:55 < upgrdman> e
2012-05-31T12:52:37 < upgrdman> the first program i got to work was just messed with memory directly... *(unsigned int*) 0xblahblah = 1
2012-05-31T12:52:50 < karlp> also, don't look at the examples in texane/stlink.
2012-05-31T12:52:57 < upgrdman> why
2012-05-31T12:53:09 < karlp> because they're confusing and broken in many cases
2012-05-31T12:53:14 < upgrdman> o :)
2012-05-31T12:57:38 < upgrdman> damn ... libraries/CMSIS/core_cm4.h:143:97: fatal error: stdint.h: No such file or directory
2012-05-31T12:57:55 < upgrdman> isnt that part of the std c lib?
2012-05-31T13:01:35 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 250 seconds]
2012-05-31T13:01:42 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-31T13:08:11 < karlp> upgrdman: are you linking against a std c lib?
2012-05-31T13:08:30 < upgrdman> i dont think so
2012-05-31T13:08:38 < karlp> then you don't get a stdint.h :)
2012-05-31T13:08:50 < upgrdman> wtf does CMSIS want it :)
2012-05-31T13:10:43 < upgrdman> oh fuck yes https://launchpad.net/gcc-arm-embedded has it. i'll try that toolchain
2012-05-31T13:11:51 < upgrdman> the readme for that toolchain lists Cortex-M4 with no fp, soft fp, or hard fp. wtf is soft fp?
2012-05-31T13:12:07 < karlp> soft(ware)
2012-05-31T13:12:18 < upgrdman> wouldnt that be the same as no fp?
2012-05-31T13:12:22 < karlp> no.
2012-05-31T13:12:27 < karlp> no fp is no floating point support at all
2012-05-31T13:13:00 < upgrdman> so with no fp you can have any floats, with soft fp you can use floats and the math is done in software, and with hard fp the math is done in hardware?
2012-05-31T13:13:07 < karlp> this matters if you have binary blobs built in different ways.
2012-05-31T13:13:17 < karlp> that's basically it though yes.
2012-05-31T13:13:23 < upgrdman> ok thanks
2012-05-31T13:13:48 < upgrdman> this channel is much for helpful at this hour. you guys are all europeans right?
2012-05-31T13:13:58 < karlp> many of us, yes :)
2012-05-31T13:14:05 < karlp> not all.
2012-05-31T13:14:14 < upgrdman> im in california. 3:15am here... :)
2012-05-31T13:14:27 < karlp> the good part of cali, or the not good part? ;)
2012-05-31T13:14:30 < zyp> I just ate lunch
2012-05-31T13:14:34 < upgrdman> i would consider it good
2012-05-31T13:14:40 < upgrdman> long beach, part of los angeles
2012-05-31T13:14:46 < karlp> oh, the not good part :)
2012-05-31T13:14:52 < karlp> sorry about that :)
2012-05-31T13:14:53 < upgrdman> im not afriad to walk around at night
2012-05-31T13:15:06 < upgrdman> no need to be sorry
2012-05-31T13:15:11 < upgrdman> i guess good is relative
2012-05-31T13:15:18 < karlp> norcal all the way baby ;)
2012-05-31T13:15:36 < upgrdman> i have family in sacramento
2012-05-31T13:16:58 -!- L00NG [~longxk@123.84.250.88] has quit [Remote host closed the connection]
2012-05-31T13:17:04 < upgrdman> my kitty keeps getting mad when i wake her up by patting her. stupid kitty, aren't they supposed to be nocturnal?
2012-05-31T13:20:24 < upgrdman> what is multilib?
2012-05-31T13:21:08 < karlp> I _believe_ it's include precompiled versions of most of the libs for the different formats (soft, hard, m3 vs m4, m0, all together)
2012-05-31T13:21:28 < karlp> in some toolchains, it is also compiled for arm4v, and arm7tdmi and so on as well.
2012-05-31T13:21:43 < upgrdman> k
2012-05-31T13:21:48 < karlp> but that's a wweakpoint of mine
2012-05-31T13:21:58 < upgrdman> k
2012-05-31T13:22:05 < karlp> you're working with what, f4 discovery board right now?
2012-05-31T13:22:10 < upgrdman> yes
2012-05-31T13:22:19 < karlp> and what tools for debugging and platform?
2012-05-31T13:22:44 < karlp> with texane/stlink, either the gcc arm from launchpad or the sourcery tools should work,
2012-05-31T13:22:50 < upgrdman> summon-arm-toolchain, texane stlink, per: http://cu.rious.org/make/stm32f4-discovery-board-with-linux/
2012-05-31T13:23:10 < karlp> I should retry the summon-arm-toolchain, it _mostly_ worked for me,
2012-05-31T13:23:18 < karlp> but failed when I tried to use newlib routines,
2012-05-31T13:23:24 < upgrdman> no need to retry, that's what i use
2012-05-31T13:23:39 < karlp> it works with clean cortex code,
2012-05-31T13:23:42 < upgrdman> but it doesnt have stdint.h so i will have to try the launchpad stuff
2012-05-31T13:23:59 < upgrdman> it wont work with CMSIS :(
2012-05-31T13:23:59 < karlp> but if you add in newlib calls, like to memcpy or anything, I was having troubles where it would link in arm code, not thumb2 code.
2012-05-31T13:24:17 < karlp> launchpad stuff just works for me.
2012-05-31T13:24:28 < upgrdman> CMSIS wants stdint.h, which SUT doesn't have :(
2012-05-31T13:25:23 < upgrdman> SAT i mean, not SUT
2012-05-31T13:25:32 < karlp> well, you cna make  your own stdint.h like mine does:  https://github.com/karlp/kkstm32_base/tree/master/libs_stm/inc
2012-05-31T13:25:39 < karlp> base/stdint.h
2012-05-31T13:26:54 < upgrdman> fair enough
2012-05-31T13:27:12 < upgrdman> but will there be other headers that CMSIS wants but don't exist with SAT?
2012-05-31T13:27:31 < karlp> well, they will exist with SAT, it's just a matter of wher eyou want them and how you find them.
2012-05-31T13:27:37 < karlp> SAT builds newlib, which has those headers
2012-05-31T13:28:25 < karlp> ~/sat$ find . -name stdint.h
2012-05-31T13:28:31 < karlp> will show you three...
2012-05-31T13:29:28 < upgrdman> o
2012-05-31T13:29:40 < upgrdman> why couldn't SAT's gcc find its own libs?
2012-05-31T13:29:54 < karlp> the makefile gods frowned upon you?
2012-05-31T13:30:02 < upgrdman> yes
2012-05-31T13:30:10 < upgrdman> ok
2012-05-31T13:36:01 < Tectu> karlp, another F4 user here only get 200B/s ;-)
2012-05-31T13:36:06 < Tectu> seems like some serious F4 issue
2012-05-31T13:36:10 < Tectu> he has F4 discovery
2012-05-31T13:36:19 < karlp> no, you justmissed my statement on it the other day
2012-05-31T13:36:30 < karlp> f4 has _no_ flash loader code in sram
2012-05-31T13:36:33 < karlp> f1 and l1 do.
2012-05-31T13:36:40 < karlp> so f4 is slow, and expected to be slow.
2012-05-31T13:37:07 < karlp> openocd has written some even faster flash loader routines for f1, l1 _and_ f4,
2012-05-31T13:37:41 < zyp> still a huge difference between 200B/s and the 7 kB/s I get
2012-05-31T13:37:58 < karlp> you don't get 7k/sec with f4 and texane/stlink do you?
2012-05-31T13:38:08 < zyp> I did when I tested the other day
2012-05-31T13:38:31 < karlp> hmm, well, usb controller speed then :)
2012-05-31T13:38:46 < karlp> f4 writes make a couple of usb calls for every word.
2012-05-31T13:39:10 < zyp> so usb on os x is faster than usb on linux? :p
2012-05-31T13:39:21 < karlp> possibly.
2012-05-31T13:39:31 < karlp> my F4 board is at work,
2012-05-31T13:39:33 < upgrdman> i have my CMSIS and STMstdPeriph libs inside a libraries dir in my project dir. how do i get gcc to compile the .c's from those libraries so they can link into my code?
2012-05-31T13:39:35 < karlp> and that's inside virtualbox,
2012-05-31T13:39:44 < Tectu> upgrdman, you need propper Makefile
2012-05-31T13:39:53 < Tectu> upgrdman, shall i gave you a sample project folder of mine?
2012-05-31T13:39:58 < upgrdman> im writing one, but i dont know what im doing :)
2012-05-31T13:40:03 < upgrdman> wonderful! yes
2012-05-31T13:40:07 < Tectu> upgrdman, that's always the same with Makefile ;-)
2012-05-31T13:40:15 < Tectu> well, how do i send you the zip? mail?
2012-05-31T13:40:20 < upgrdman> sure
2012-05-31T13:40:21 < karlp> that kkexamples github link has _a_ way of building cmsis and stdperiph lib too,
2012-05-31T13:40:24 < upgrdman> can i PM you
2012-05-31T13:40:29 < karlp> another option is to use libopencm3
2012-05-31T13:41:15 < zyp> yeah, libopencm3 looks pretty decent
2012-05-31T13:41:40 < karlp> getting better and better, and nicer still after th license change :)
2012-05-31T13:41:54 < Tectu> upgrdman, drop me the mail address in a query
2012-05-31T13:42:27 < upgrdman> done
2012-05-31T13:43:08 < upgrdman> did you get it?
2012-05-31T13:52:12 < Tectu> hope that helps
2012-05-31T14:03:02 < dongs> dongs
2012-05-31T14:03:24 < dongs> libopencm3 woudl be cool if they didnt invent their own handler names
2012-05-31T14:06:09 < karlp> well, if you're going to reinvent it all, might as well do all of it,
2012-05-31T14:06:15 < dongs> also im pretty sure it doenst build wiht anything besides gcc
2012-05-31T14:06:21 < dongs> which limits its real-world usage to about 2 companies.
2012-05-31T14:06:34 < karlp> what, like cisco
2012-05-31T14:06:43 < karlp> lots of real world companies use gcc man.
2012-05-31T14:07:10 < dongs> cicso is fucked now, latest IOS = lunix
2012-05-31T14:07:23 < karlp> if they've broken llvm though, they do deserve some spanking.
2012-05-31T14:08:05 < dongs> my flyingshit firmare with -Os with gcc is like 56k, and ~48k with armcc
2012-05-31T14:08:51 < dongs> debug mode in gcc it doesnt even fit into 64k.
2012-05-31T14:09:03 < karlp> why do you bother testing gcc if you don't want to use it?
2012-05-31T14:09:18 < dongs> i dunno cause some retards using my shit insist on using free as in aids stuff.
2012-05-31T14:09:26 < dongs> i still dont know why i cant use sprintf() inside shit ocmpiled by gcc
2012-05-31T14:09:32 < dongs> it throws so me retarded sbrk errors
2012-05-31T14:09:36 < dongs> works fine with armcc
2012-05-31T14:09:57 < zyp> that doesn't have anything to do with the compiler
2012-05-31T14:15:34 < dongs> yes it does
2012-05-31T14:17:45 < zyp> no it doesn't, newlib being bad doesn't have anything to do with gcc
2012-05-31T14:22:25 < karlp> we need newnewlib
2012-05-31T14:28:03 < Tectu> karlp, call it newestlib?
2012-05-31T14:28:12 < Tectu> that would be pretty badass if we need newnewestlib then
2012-05-31T14:29:04 < dongs> zyp: i dont care, people use armcc = works, people use gcc = fail
2012-05-31T14:29:19 < dongs> as far as im concerned , gcc = fail
2012-05-31T14:29:23 < dongs> newlib or oldlib or whatever.
2012-05-31T14:52:52 -!- izua [~izua@86.121.85.94] has joined ##stm32
2012-05-31T14:52:52 -!- izua [~izua@86.121.85.94] has quit [Changing host]
2012-05-31T14:52:52 -!- izua [~izua@unaffiliated/izua] has joined ##stm32
2012-05-31T14:52:55 -!- mode/##stm32 [+v izua] by ChanServ
2012-05-31T15:01:47 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32
2012-05-31T15:17:39 < dongs> dingleberry
2012-05-31T15:33:34 < karlp> goddamnit, I had the stlink working in virtual box yesterday, now it won't attach at all
2012-05-31T15:35:08 < Laurenceb> heh
2012-05-31T15:35:15 < Laurenceb> i havent tried anything
2012-05-31T15:48:54 < Tectu> how do i make a macro for    sizeof(myArray)/sizeof(myArray[0])  ?
2012-05-31T15:49:13 < Tectu> #define ARRAYLEN(a)  sizeof(a)/sizeof(a[0])   ?
2012-05-31T16:15:12 < karlp> look in the linux kernel sources for array_sizeof or something
2012-05-31T16:15:16 < karlp> don't rebuild your own
2012-05-31T16:27:17 < Tectu> glcd is fun:  http://www.abload.de/img/20120531_151413q08aa.jpg
2012-05-31T16:27:21 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-31T16:27:22 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-31T16:27:22 < Tectu> http://www.abload.de/img/20120531_151341ejjuz.jpg
2012-05-31T16:28:30 < Laurenceb> nice
2012-05-31T16:28:34 <+Steffanx> Yay, me received his rpi
2012-05-31T16:28:37 < Laurenceb> where did you get the hardware?
2012-05-31T16:28:41 < Laurenceb> heh me too
2012-05-31T16:28:45 <+Steffanx> RS?
2012-05-31T16:29:51 < Laurenceb> i mean the lcd
2012-05-31T16:30:17 <+Steffanx> I know
2012-05-31T16:30:23 <+Steffanx> I mean your rpi :)
2012-05-31T16:30:50 < Laurenceb> RS
2012-05-31T16:30:55 < Laurenceb> yes
2012-05-31T16:32:29 < Tectu> Laurenceb, LCD is from ebay, costs 18$ inclusive shipping,  3.2" 320x240 TFT with touchscreen
2012-05-31T16:33:11 < Laurenceb> nice
2012-05-31T16:33:17 < Laurenceb> how is it connected?
2012-05-31T16:34:37 < Thorn> I got a small stm32 dev board with a similar (if not identical) display for ~$30
2012-05-31T16:35:44 < Laurenceb> using FSMC or whatever its called?
2012-05-31T16:36:19 <+Steffanx> FSMC :)
2012-05-31T16:37:33 < Tectu> Laurenceb, it has SPI interface for both, touchpad and LCD controller. the controller is also accessible over different GPIO/FSMC interfaces, in 8 or 16 bit mode
2012-05-31T16:37:54 < Thorn> http://www.yacoset.com/Home/signs-that-you-re-a-bad-programmer
2012-05-31T16:38:02 < Laurenceb> what are you using then? spi?
2012-05-31T16:40:06 < Laurenceb> Fixing bugs by writing code that overwrites the result of the faulty code
2012-05-31T16:40:08 < Laurenceb> hehe
2012-05-31T16:40:30 <+Steffanx> hey, it's ok when it wokrs :P
2012-05-31T16:41:04 < Thorn> "Signs that you shouldn't be a programmer" is the fun part
2012-05-31T16:43:12 <+Steffanx>  Hmm, I'm sure I have usb micro cables, but i can't find them :(
2012-05-31T16:44:10 < zyp> then you don't have enough
2012-05-31T16:44:25 <+Steffanx> I guess so
2012-05-31T16:44:40 <+Steffanx> I never needed micro, until now
2012-05-31T16:44:59 < zyp> I've used a lot of micro stuff the last year
2012-05-31T16:45:22 <+Steffanx> No fancy phone here
2012-05-31T16:45:26 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-31T16:45:49 < Laurenceb> wtf... i get this photo when there is a server error
2012-05-31T16:45:52 < Laurenceb> http://www.nottingham.ac.uk/Utilities/Images/pageErrorImage.jpg
2012-05-31T16:46:08 -!- amstan [~alex@aichallenge/admin/amstan] has joined ##stm32
2012-05-31T16:46:24 < Laurenceb> "yeah look at my new macbook... oh yeah and everything is broken"
2012-05-31T16:46:26 <+Steffanx> Soo Laurenceb ?
2012-05-31T16:46:34 <+Steffanx> That macbook is old :P
2012-05-31T16:46:54 <+Steffanx> Today it's all unibody stuff afaik :P
2012-05-31T16:47:04 <+Steffanx> aluminum
2012-05-31T16:47:35 < Laurenceb> aluminium
2012-05-31T16:47:50 < amstan> anyone using this repo? https://github.com/texane/stlink
2012-05-31T16:47:51 -!- dekar [~dekar@dslb-188-097-064-013.pools.arcor-ip.net] has joined ##stm32
2012-05-31T16:47:54 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-31T16:48:00 < amstan> how do you compile it in the new revisions?
2012-05-31T16:48:03 < amstan> just make doesn't work
2012-05-31T16:48:07 < amstan> i had to checkout an older version
2012-05-31T16:49:18 <+Steffanx> Many here use it..
2012-05-31T16:49:45 < dongs> blogebrity
2012-05-31T16:50:46 < Tectu> Laurenceb, i use bare nacked GPIO
2012-05-31T16:51:08 < dongs> http://www.youtube.com/watch?v=smz2cU3FfFk Laurenceb < cheap $18 SPI 320x240 tft
2012-05-31T16:51:09 < BrainDamage> amstan: run ./autogen
2012-05-31T16:51:16 < BrainDamage> then ./configure
2012-05-31T16:51:17 < BrainDamage> then make
2012-05-31T16:51:38 < amstan> BrainDamage: decent, i should probably submit a comment to the archlinux aur package as well
2012-05-31T16:51:45 < Thorn> dongs: are you sure it's spi?
2012-05-31T16:51:57 < Thorn> spi is probably slow as hell
2012-05-31T16:52:02 < BrainDamage> I didn't know there was an arch package
2012-05-31T16:52:04 < dongs> Thorn: yes very much so, I requested it to be SPI when I ordered it
2012-05-31T16:52:11 < dongs> because I had no interest to hookup over 9000 wires for FSMC
2012-05-31T16:52:40 < BrainDamage> amstan: you want to pass --prefix=/usr to configure, or it'll install to /usr/local
2012-05-31T16:53:03 < amstan> BrainDamage: i'm not sure, i didn't actually write the aur package
2012-05-31T16:53:15 < amstan> i'm actually at an stm conference and i wanted to play with it on linux
2012-05-31T16:53:32 < amstan> here's the aur package, the pkgbuild has the compile steps: https://aur.archlinux.org/packages.php?ID=57198
2012-05-31T16:54:01 < BrainDamage> the pkgbuild is outdated
2012-05-31T16:54:09 < BrainDamage> it's not been updated for autotools
2012-05-31T16:55:01 < amstan> will i be ok with a checkout from april? or is there new goodies?
2012-05-31T16:55:10 <+Steffanx> dongs which umeral system do you use?
2012-05-31T16:55:14 <+Steffanx> 9000 wires?!
2012-05-31T16:55:18 <+Steffanx> *numeral
2012-05-31T16:55:25 < dongs> base36
2012-05-31T16:55:31 <+Steffanx> Ah
2012-05-31T16:55:53 < Tectu> dongs, why do you use base36
2012-05-31T16:56:18 < dongs> cuz iot s funnyeh
2012-05-31T16:56:24 < BrainDamage> base 10 is public domain therefore sucks
2012-05-31T16:57:04 < Laurenceb> what speed spi?
2012-05-31T16:57:14 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 245 seconds]
2012-05-31T16:57:17 < dongs> for wat? my shit?
2012-05-31T16:57:29 < dongs>     SPI_InitStructure.SPI_BaudRatePrescaler = SPI_BaudRatePrescaler_2;
2012-05-31T16:57:44 < dongs> and /8 for receive
2012-05-31T16:58:09 < Tectu> dongs, ever worked with ADS7843?
2012-05-31T16:58:30 < dongs> the touchscreen shit?
2012-05-31T16:58:45 < dongs> chink driver CD has all the sores for it
2012-05-31T16:58:56 < dongs> http://www.wayengineer.com/index.php?main_page=product_info&cPath=50_66&products_id=138 -> "download cd data here"
2012-05-31T16:58:59 < dongs> has sample codes for all the stuff.
2012-05-31T17:00:05 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32
2012-05-31T17:00:48 < Tectu> dongs, did you do some code on your own? not able to port that code sample -.-
2012-05-31T17:01:13 < dongs> Tectu: wut? it builds
2012-05-31T17:01:18 < dongs> which code?
2012-05-31T17:01:26 < dongs> ad8wahtever shit>?
2012-05-31T17:01:28 < Tectu> sure it works
2012-05-31T17:01:54 < dongs> thers a bunch of chinese lcd_test* .rar files
2012-05-31T17:01:59 < Tectu> just trying to do it under chibios, but not sure about the clock things with the chibios driver.
2012-05-31T17:02:10 < dongs> for what, spi?
2012-05-31T17:02:14 < Tectu> yes
2012-05-31T17:02:39 < dongs> duno.. should just work, no?
2012-05-31T17:02:42 < Tectu> i send for examle  0x90 to read out X axis, then i have to send more clocks, so i send some garbage, and wait for answer?
2012-05-31T17:02:53 < Tectu> well, tried   spiExchange()  which sends and waits for answer
2012-05-31T17:02:56 < dongs> do you know how SPI workS?
2012-05-31T17:02:58 < Tectu> but not sure about clock implementation
2012-05-31T17:02:59 < Tectu> yes
2012-05-31T17:03:04 < Tectu> and i worked with it
2012-05-31T17:03:10 < Tectu> but not sure about the chibios implementation
2012-05-31T17:07:11 < Tectu> dongs, but go on
2012-05-31T17:10:13 < dongs> i dunno? i dont use chibios (or any other OS that forces their own shitty drivers on you)
2012-05-31T17:10:43 < Tectu> dongs, you have problems in your life, right?
2012-05-31T17:10:49 < dongs> no ;d
2012-05-31T17:11:17 -!- dekar [~dekar@dslb-188-097-064-013.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep]
2012-05-31T17:12:04 < BrainDamage> btw Tectu, out of curiosity, which canton are you in?
2012-05-31T17:12:14 -!- dekar [~dekar@dslb-188-097-064-013.pools.arcor-ip.net] has joined ##stm32
2012-05-31T17:12:17 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-31T17:12:20 < Tectu> BrainDamage, called  "Wallis"
2012-05-31T17:12:42 < dongs> wwat
2012-05-31T17:12:49 < Tectu> BrainDamage, why?
2012-05-31T17:12:52 -!- dekar [~dekar@dslb-188-097-064-013.pools.arcor-ip.net] has quit [Client Quit]
2012-05-31T17:12:59 < BrainDamage> I'm 4 km from chiasso
2012-05-31T17:13:19 < Tectu> right now or do you live there?
2012-05-31T17:13:42 < BrainDamage> I live in como
2012-05-31T17:14:04 < Tectu> chiasso is 2 hours by car from here
2012-05-31T17:14:17 < dongs> free boner
2012-05-31T17:14:25 < Tectu> como is right on the frontier, isn't it o0
2012-05-31T17:14:28 < dongs> are you plannin to meat up
2012-05-31T17:14:42 < Tectu> dongs, bdsmfinder.com
2012-05-31T17:14:52 < dongs> im not into that
2012-05-31T17:14:58 < Tectu> sure ~
2012-05-31T17:15:19 < BrainDamage> was wondering since you made some references to places I've seen
2012-05-31T17:15:23 < dongs> if you could get any more kawaii you could pass as hackkitten
2012-05-31T17:16:51 -!- dekar [~dekar@dslb-188-097-064-013.pools.arcor-ip.net] has joined ##stm32
2012-05-31T17:16:54 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-31T17:17:06 < BrainDamage> I bet dongs is overcompensating and he's a huge anime fan
2012-05-31T17:17:10 < cjbaird> uguu~
2012-05-31T17:17:35 < BrainDamage> also, only open sauce stuff
2012-05-31T17:18:28 < dongs> cjbaird is into kawaii chibi pinku bento boxes
2012-05-31T17:19:07 -!- dekar [~dekar@dslb-188-097-064-013.pools.arcor-ip.net] has quit [Client Quit]
2012-05-31T17:19:18 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32
2012-05-31T17:19:23 <+Steffanx> Hmm, the debian image for the rpi doesn't come with ssh preinstalled?1
2012-05-31T17:19:26 <+Steffanx> Who made that image?!
2012-05-31T17:19:34 < BrainDamage> lolfail
2012-05-31T17:20:39 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32
2012-05-31T17:20:42 < jpa-> not even dropbear?
2012-05-31T17:21:03 < karlp> are people really expected to have it hooked up to a tv and a usb keyboard?!
2012-05-31T17:21:49 < Tectu> BrainDamage, which places o0
2012-05-31T17:21:52 <+Steffanx> Maybe i'm pebkecking, but "ssh: connect to host 10.0.0.103 port 22: Connection refused" looks like not installed it me
2012-05-31T17:22:34 < Tectu> or not configured
2012-05-31T17:22:42 <+Steffanx> Same thing :P
2012-05-31T17:22:46 < cjbaird> ...that's pretty-much what's been said since the start. (Albeit before the HURRIWANTCHEAPVIDYASETUP faggots showed up, demanding the Edu project become Consumer..)
2012-05-31T17:23:51 <+Steffanx> karlp, with the debian image it seems to be the case
2012-05-31T17:23:58 <+Steffanx> lets try fedora or arch
2012-05-31T17:24:00 < zyp> Thorn, good article
2012-05-31T17:24:28 < dongs> isnt all lunix just same trash
2012-05-31T17:24:40 <+Steffanx> When you're aka as timecop, yes
2012-05-31T17:25:03 <+Steffanx> -as
2012-05-31T17:25:07 <+Steffanx> When you're not aka time, no
2012-05-31T17:25:11 <+Steffanx> *timecop
2012-05-31T17:25:20 < dongs> youre confusing teh shit out of me
2012-05-31T17:25:33 <+Steffanx> Yeah, isn't that a good thing?
2012-05-31T17:25:54 < Tectu> dongs dosen't like linux, right?
2012-05-31T17:26:06 <+Steffanx> He and windows are one
2012-05-31T17:26:12 < Tectu> seriously?
2012-05-31T17:26:14 < Tectu> how come?
2012-05-31T17:26:15 <+Steffanx> Yeah
2012-05-31T17:26:16 < Tectu> thought he was clever
2012-05-31T17:26:23 <+Steffanx> He doesn't like opensauce
2012-05-31T17:26:29 < Tectu> lol?
2012-05-31T17:26:31 < Tectu> why so?
2012-05-31T17:26:32 < cjbaird> dongs says what he says, hoping to get a hug
2012-05-31T17:26:39 < Thorn> wait, timecop? something to do with GNAA?
2012-05-31T17:26:50 <+Steffanx> According to my sources, yes.. Thorn
2012-05-31T17:26:52 < dongs> you JUST figured that out?
2012-05-31T17:27:13 < Tectu> dongs, what do you have against opensauce?
2012-05-31T17:27:37 <+Steffanx> I think that's a part of his life he tries to forget Thorn :P
2012-05-31T17:27:55 < Tectu> BrainDamage, where have you been where i talked about?
2012-05-31T17:28:10 < Thorn> >One of the principal members of the GNAA is a developer of Linux Debian.
2012-05-31T17:28:19 < Thorn> >The ex-president of the GNAA, timecop, is known on the internet for being part of Dattebayo, a group of fans who translated the Japanese cartoons Naruto and Bleach.
2012-05-31T17:28:27 <+Steffanx> I mean, who didn't see that page of GNAA that opened a shitload of applications and some sound saying "Aah I'm watching gay porn" or something like that
2012-05-31T17:28:28 < cjbaird> hug-seekers should probably hang out in channels with more furries, though. like #electronics
2012-05-31T17:28:33 < BrainDamage> grenoble for one
2012-05-31T17:28:38 < dongs> cjbaird: already there
2012-05-31T17:28:39 < Thorn> *Chinese cartoons
2012-05-31T17:28:44 -!- amstan [~alex@aichallenge/admin/amstan] has quit [Quit: Konversation terminated!]
2012-05-31T17:28:50 < dongs> cjbaird: hackkitten is my favorite furry/dickgirl
2012-05-31T17:29:08 < Tectu> BrainDamage, took a look to satelit pictures of como... looks very nice over there :)
2012-05-31T17:29:09 <+Steffanx> dongs, please don't be silly
2012-05-31T17:29:19 < dongs> qbout hwat
2012-05-31T17:29:24 < Tectu> i might go to chiasso again. I can travel in switerland for free
2012-05-31T17:29:27 <+Steffanx> hackkitten and her trouble
2012-05-31T17:29:31 -!- dekar [~dekar@dslb-188-097-064-013.pools.arcor-ip.net] has joined ##stm32
2012-05-31T17:29:34 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-31T17:29:41 < dongs> "her"
2012-05-31T17:29:42 < dongs> haha.
2012-05-31T17:30:03 -!- mode/##stm32 [+o Steffanx] by ChanServ
2012-05-31T17:30:06 -!- mode/##stm32 [+b *!*1000@*.ppp.asahi-net.or.jp] by Steffanx
2012-05-31T17:30:06 < BrainDamage> it's turistic city, don't get tricked from aerial views, close up is much more shitty :p
2012-05-31T17:31:07 < BrainDamage> shitty roads, and the lake's view ( the city's biggest attraction ) is obstructed by a construction site since 7 years
2012-05-31T17:31:11 -!- mode/##stm32 [-b dongs!*@*] by Steffanx
2012-05-31T17:31:11 <@Steffanx> arh
2012-05-31T17:31:19 < BrainDamage> yay for shitty administration :/
2012-05-31T17:31:50 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32
2012-05-31T17:32:01 <@Steffanx> fail client BrainDamage
2012-05-31T17:32:08 <@Steffanx> Next time i'll type it myself
2012-05-31T17:32:09 < Tectu> BrainDamage, ah
2012-05-31T17:32:17 < Tectu> BrainDamage, well, as i said, i can do it for free
2012-05-31T17:32:25 < Tectu> well, using public transport stuff i mean
2012-05-31T17:32:27 < BrainDamage> Steffanx: I was referring to my city hall, not you
2012-05-31T17:32:33 <@Steffanx> Ah ok
2012-05-31T17:32:38 < Tectu> BrainDamage, which construction?
2012-05-31T17:33:14 -!- mode/##stm32 [+b ##stm32!*@*] by Steffanx
2012-05-31T17:33:17 <@Steffanx> oops
2012-05-31T17:33:22 -!- mode/##stm32 [-b ##stm32!*@*] by Steffanx
2012-05-31T17:33:59 < BrainDamage> basically a mobile dam because part of the city is below the 0th level of the lake, so when it fills up it submerges some squares, but it's a rare event, it happened 2-3 times in 10 years
2012-05-31T17:34:08 < BrainDamage> and the cost of the dam is disproportionate to the damage
2012-05-31T17:34:41 -!- mode/##stm32 [-b *!*1000@*.ppp.asahi-net.or.jp] by Steffanx
2012-05-31T17:35:27 < BrainDamage> not to mention, during the workings, a 2m tall concrete wall was being build over the lake's shores, over the arc of 2 days, hastily done, and the contractor pretended it was in the original project too ( it was not )
2012-05-31T17:35:59 <+izua> BrainDamage: wait
2012-05-31T17:36:00 <+izua> como?
2012-05-31T17:36:05 <+izua> like, with the lake and all?
2012-05-31T17:36:07 < BrainDamage> yes
2012-05-31T17:36:08 < Tectu> BrainDamage, oh dear
2012-05-31T17:36:09 <+izua> wow
2012-05-31T17:36:20 <+izua> that place is amazing
2012-05-31T17:36:26 < Tectu> izua, BrainDamage told me not :D
2012-05-31T17:36:34 <+izua> not that the nearby switzerland isn't
2012-05-31T17:36:43 < BrainDamage> after several criticisms, the wall got removed, some politicians resigned, and extra money was wasted
2012-05-31T17:36:55 <+izua> as long as you don't remove the lake, it's ok
2012-05-31T17:37:23 -!- mode/##stm32 [-o Steffanx] by ChanServ
2012-05-31T17:38:09 -!- dekar [~dekar@dslb-188-097-064-013.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep]
2012-05-31T17:38:16 < Tectu> BrainDamage, when the hell did i mention grenoble ?
2012-05-31T17:38:53 < BrainDamage> few days ago, don't know why but it popped back into my memory
2012-05-31T17:39:11 < BrainDamage> iirc you said you were like 100km away from it, and realized you couldn't be far off here
2012-05-31T17:40:49 < BrainDamage> https://imgur.com/a/XXW8n
2012-05-31T17:41:22 < BrainDamage> yes, I know, my phone camera is a potato
2012-05-31T17:41:56 < Laurenceb> where is that?
2012-05-31T17:42:05 < BrainDamage> como
2012-05-31T17:42:09 < Laurenceb> italy?
2012-05-31T17:42:16 <+izua> i wanna live in como brah
2012-05-31T17:42:34 <+izua> i'd rather choose switzerland because of the internets though
2012-05-31T17:42:37 <+izua> Laurenceb: yeah, italy
2012-05-31T17:42:44 < BrainDamage> yes, I live there
2012-05-31T17:43:04 < Tectu> BrainDamage, dosen't look that bad
2012-05-31T17:43:07 < Tectu> BrainDamage, i've been there, btw
2012-05-31T17:43:19 < Tectu> izua, internet not only bad here
2012-05-31T17:44:22 < Laurenceb> dongs: http://www.youtube.com/watch?v=iONM3BZDiPI
2012-05-31T17:44:34 <+Steffanx> No, dongs is mad
2012-05-31T17:44:54 <+Steffanx> but he'll like that video
2012-05-31T17:45:06 <+Steffanx> Laurenceb and his 4chan stuff
2012-05-31T17:45:08 < cjbaird> You could've warned the rest of us, though. -_-
2012-05-31T17:45:14 < Laurenceb> sorry
2012-05-31T17:45:26 < Laurenceb> do not watch
2012-05-31T17:45:46 < dongs> haha
2012-05-31T17:45:57 < dongs> once a dude, always a dude
2012-05-31T17:46:21 <+izua> wait
2012-05-31T17:46:29 <+izua> mtfs
2012-05-31T17:46:42 < Laurenceb> mount female system?
2012-05-31T17:47:00 <+izua> i sense some hardcore flyback activity
2012-05-31T17:47:02 <+izua> or maya sama?
2012-05-31T17:47:14 <+izua> Laurenceb: man mount
2012-05-31T17:47:21 < Laurenceb> lawl
2012-05-31T17:47:32 <+Steffanx> and flyback isn't even alive these days ..
2012-05-31T17:47:41 < dongs> damn Laurenceb do you ever get laid.
2012-05-31T17:48:43 <+Steffanx> Who wants that when you have 4chan + other crap?
2012-05-31T17:49:02 <+izua> Steffanx: dude, this is irc
2012-05-31T17:49:14 <+izua> everybody gets laid as we speak, and has multi-meter penii
2012-05-31T17:49:19 <+Steffanx> You can't multitask izua ?
2012-05-31T17:49:26 <+Steffanx> oh
2012-05-31T17:49:52 < Laurenceb> multimeter penis? can it measure volts?
2012-05-31T17:50:06 <+Steffanx> Give it a try
2012-05-31T17:50:14 <+Steffanx> Go with mains first
2012-05-31T17:50:59 -!- Tectu_ [tectu@kunsmann.eu] has joined ##stm32
2012-05-31T17:51:36 <+Steffanx> It's not allowed to see what Tectu_ is hiding on kunsmann.eu?
2012-05-31T17:51:43 -!- Tectu [tectu@irc.ipv6.kunsmann.eu] has quit [Ping timeout: 245 seconds]
2012-05-31T17:51:56 <+izua> i think he's hiding it in goatse.cx
2012-05-31T17:52:45 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Ping timeout: 248 seconds]
2012-05-31T17:52:47 -!- BrainDam- [BrainDamag@i.love.tiltshellz.org] has joined ##stm32
2012-05-31T17:52:48 -!- BrainDam- is now known as BrainDamage
2012-05-31T18:00:14 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds]
2012-05-31T18:10:26 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-31T18:13:57 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 248 seconds]
2012-05-31T18:17:21 < dongs> heh i should really make a proper 20->10pin 0.05" swd adapter pcb
2012-05-31T18:17:30 < dongs> instead of cutting apart thin idc cables and ghettoing shit up
2012-05-31T18:23:31 < Laurenceb> can you run SMART on usb mass storage devices
2012-05-31T18:23:47 <+Steffanx> ok
2012-05-31T18:24:23 < Laurenceb> i seem to have found smart status stuff in the ST example code
2012-05-31T18:25:26 < Laurenceb> will have to try making it report pcb temperature or something
2012-05-31T18:38:14 < Tectu_> Steffanx, what do you mean?
2012-05-31T18:43:19 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Ping timeout: 264 seconds]
2012-05-31T18:43:51 <+Steffanx> What do mean where Tectu_ ?
2012-05-31T18:43:53 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving]
2012-05-31T18:44:07 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32
2012-05-31T18:44:08 -!- mode/##stm32 [+v Steffanx] by ChanServ
2012-05-31T18:44:18 <+Steffanx> What do i mean where Tectu_ ?
2012-05-31T18:44:37 < Tectu_> [Thu May 31 2012 16:51:36]: Steffanx (~Steffanx@ip4da726ae.direct-adsl.nl) (##stm32): It's not allowed to see what Tectu_ is hiding on kunsmann.eu?
2012-05-31T18:45:25 <+Steffanx> It shows a 403
2012-05-31T18:47:25 < Tectu_> sure :)
2012-05-31T18:51:09 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-31T18:57:58 -!- amstan [~alex@aichallenge/admin/amstan] has joined ##stm32
2012-05-31T18:58:03 < amstan> has anyone got f0discovery working with st-flash in linux?
2012-05-31T18:58:10 < amstan> i managed to mass erase stuff, but not to write
2012-05-31T18:59:07 < Tectu_> do you use texane/stlink?
2012-05-31T19:00:41 < amstan> yes
2012-05-31T19:03:14 < Laurenceb> its all on an stm32
2012-05-31T19:04:09 < amstan> flyback-: ohai
2012-05-31T19:05:13 < amstan> Tectu_: all i get is this: http://pastebin.com/7ZZPpcZp
2012-05-31T19:05:48 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-249-119.clienti.tiscali.it] has joined ##stm32
2012-05-31T19:09:10 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has joined ##stm32
2012-05-31T19:09:13 -!- mode/##stm32 [+v dekar] by ChanServ
2012-05-31T19:22:46 -!- cjbaird [~cjb@ppp121-44-125-219.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!]
2012-05-31T19:43:38 < amstan> Tectu_: is there another programmer i could use?
2012-05-31T19:44:48 -!- amstan [~alex@aichallenge/admin/amstan] has quit [Read error: Connection reset by peer]
2012-05-31T19:45:10 -!- amstan [~alex@aichallenge/admin/amstan] has joined ##stm32
2012-05-31T19:56:24 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32
2012-05-31T19:57:04 < ratatata> nu
2012-05-31T19:57:15 < karlp> amstan: the f0 probably falls into an "unkonwn chip id" in the "choose flash writing method" path
2012-05-31T19:57:44 < amstan> karlp: yeah, it's because f0s are not supported yet
2012-05-31T19:57:45 < karlp> if you compare the flash programming manuals, you might be able to edit the code that chooses that to accept the f0 as being identical to the f1, f2+f4, or l1,
2012-05-31T19:57:56 < karlp> yeah, I was trying to say what might be needed for support :)
2012-05-31T19:58:04 < karlp> I presume it still turns up as an stlink v2 right?
2012-05-31T19:58:27 < karlp> I nearly bought a couple for myself to try them out, but I have enough on my plate already :)
2012-05-31T19:59:48 < karlp> you're getting this message I presume? https://github.com/texane/stlink/blob/master/src/stlink-common.c#L1540
2012-05-31T20:06:43 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32
2012-05-31T20:07:22 < TitanMKD> hi
2012-05-31T20:07:36 <+Steffanx> Lo
2012-05-31T20:08:51 < amstan> karlp: yes, it does
2012-05-31T20:09:08 < amstan> karlp: there's a fork of the texane repo
2012-05-31T20:09:17 < amstan> that has the f0 indentification code
2012-05-31T20:09:26 < amstan> so it no longer errors on that, and it actually tries to write the flash
2012-05-31T20:09:29 < amstan> but it errors later
2012-05-31T20:09:43 < amstan> https://github.com/UweBonnes/stlink/commit/bda8405bd742ecc86b886e0f9675e4c9698d6064
2012-05-31T20:11:41 < karlp> oh uwe's working on it?
2012-05-31T20:11:50 < karlp> that's good, he'll be finished soon then I'd imagine:)
2012-05-31T20:13:11 < karlp> I can't find a flash programming manual for the f0 on st?
2012-05-31T20:13:32 < karlp> oh, it's just int he other one
2012-05-31T20:13:36 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 246 seconds]
2012-05-31T20:13:37 < karlp> looks like it only supports half word
2012-05-31T20:13:45 < karlp> so you want half of the L1 code :)
2012-05-31T20:15:28 < karlp> or something.
2012-05-31T20:32:12 < amstan> karlp: decent
2012-05-31T20:32:24 < amstan> karlp: i'm at this stm conference and i wanted to get it going on linux
2012-05-31T20:32:36 < amstan> i don't have the required windows laptop :)
2012-05-31T20:34:30 < amstan> so how is the general support in linux? i understand that the f0 is new and not supported yet, but how's the other ones?
2012-05-31T20:35:03 < BrainDamage> basic functionality is all there
2012-05-31T20:35:05 < zyp> support for what?
2012-05-31T20:35:10 < zyp> st-link or stm32 in general?
2012-05-31T20:35:13 < BrainDamage> for both flashing and debugging
2012-05-31T20:35:16 < BrainDamage> flashing is a bit slow
2012-05-31T20:35:29 < karlp> flash is slowish with texane/stlink, fast with openocd,
2012-05-31T20:35:37 < karlp> debugging works with texane, not really with openocd.
2012-05-31T20:35:47 < karlp> there's some quirks on low power modes and attaching in suspend and things.
2012-05-31T20:36:11 < karlp> but not for the f0 yet :)
2012-05-31T20:36:45 < amstan> openocd?
2012-05-31T20:37:13 < karlp> openocd has work in progress for supporting the stlink (and really, swd in general)
2012-05-31T20:38:57 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32
2012-05-31T20:39:27 < amstan> zyp: in general
2012-05-31T20:39:49 < amstan> i'm just thinking compared to gcc-msp430 or gcc-avr
2012-05-31T20:39:56 < amstan> and the programmers too
2012-05-31T20:40:10 < karlp> kinda different environments.
2012-05-31T20:40:23 < karlp> avr-libc is miles ahead of anything for cortex m3,
2012-05-31T20:41:04 < karlp> and jtag/swd programming via 100000 jtag dongles is a little different to all going via ICSP on avr.
2012-05-31T20:41:58 < blkcat> yeah, the difficulty level is definitely a bit higher.
2012-05-31T20:42:22 < blkcat> the free/hobbyist infrastructure for avr and pic is much much better.
2012-05-31T20:43:34 < zyp> amstan, I find it wokring great for me
2012-05-31T20:43:48 < zyp> but I guess I'm not your average hobbyist :p
2012-05-31T20:44:04 < amstan> blkcat: i didn't like the pic stuff at all, not even a gcc based compiler
2012-05-31T20:44:14 < zyp> it's not as beginner friendly as avr
2012-05-31T20:44:28 < blkcat> mmhm.
2012-05-31T20:44:57 < amstan> what about h files, and libraries? this guy at the talk keeps talking about them
2012-05-31T20:45:11 < amstan> like all you need to get uart is include something and it works
2012-05-31T20:45:14 < karlp> what talk are you at?
2012-05-31T20:45:21 < karlp> is he selling a tool that builds it all in?
2012-05-31T20:45:52 < karlp> std periph lib sort of does that, for varying interpretations of, "inlcude the .h and it works"
2012-05-31T20:46:11 < karlp> it's more, include the .h, and you get a whole lot of methods yuou need to call, in the right order to do the right thing,
2012-05-31T20:46:25 < karlp> but you don't have to construct the bitfields in the registers quite as manually
2012-05-31T20:46:29 < amstan> yes, but it's much better than setting the registers manually
2012-05-31T20:46:37 < amstan> as you do in most cases for avr and ti
2012-05-31T20:47:08 < amstan> so do these kind of libraries come with the open source tools?
2012-05-31T20:48:24 < amstan> i'm at this talk: http://www.st.com/internet/com/Learning/stm32f0_seminars.jsp?d=nuhorizons_na&WT.mc_id=nuhorizons_apr12_stm32f0seminar
2012-05-31T20:54:08 < karlp> ST provides "Std Periph Lib" which is a lot more functional than the register dfinitions you get with avr-libc, yes,
2012-05-31T20:54:13 < karlp> but a lot more complicated too
2012-05-31T20:54:27 < karlp> the pain just moves to a different place imo
2012-05-31T20:54:46 < karlp> america gets all the free stuff
2012-05-31T20:55:05 < karlp> ok, admittedly, there's more developers there
2012-05-31T20:55:06 < zyp> that's because they can't afford anything on their own :p
2012-05-31T20:55:21 < amstan> karlp: keeping in mind it's a $8 board..
2012-05-31T20:55:31 < karlp> don't start that again.
2012-05-31T20:55:49 < karlp> I can't walk in and pick one up anywhere for $8
2012-05-31T20:55:55 < karlp> anyway, sunshine and beer time.
2012-05-31T20:56:51 < amstan> karlp: you're right
2012-05-31T20:57:07 < amstan> you can get an msp430 launchpad for 4.30
2012-05-31T20:57:44 < zyp> I got an msp430 fram thing for cheap once
2012-05-31T20:57:45 < TitanMKD> amstan or a STM32F4 Discovery for 12Euros ;)
2012-05-31T20:57:57 < amstan> this one? http://www.st.com/internet/evalboard/product/252419.jsp
2012-05-31T20:58:04 < zyp> it's still sealed
2012-05-31T20:58:22 < amstan> zyp: yes, i played with those before
2012-05-31T20:59:10 < zyp> but I don't really see any need in learning another architectures
2012-05-31T20:59:31 < zyp> I'd rather learn more arm
2012-05-31T20:59:41 < TitanMKD> zyp ARM is just a must ;)
2012-05-31T20:59:56 < zyp> of course
2012-05-31T21:00:25 < BrainDamage> btw, re 5$ board: http://mchck.org/
2012-05-31T21:00:38 < BrainDamage> I think it's a nifty idea
2012-05-31T21:01:08 < BrainDamage> would get more people to use stm32 at least
2012-05-31T21:01:24 < zyp> I remember that guy were here asking for opinions about it once
2012-05-31T21:04:53 < amstan> BrainDamage: hmm, that's a nice board
2012-05-31T21:05:18 < BrainDamage> unlike discovery boards tough it lacks debugger
2012-05-31T21:06:25 < amstan> yeah
2012-05-31T21:06:39 < amstan> one thing though
2012-05-31T21:06:43 < amstan> usb is a lot of stuff
2012-05-31T21:06:58 < amstan> i kinda stayed away from it, uart is just so wasy to implement
2012-05-31T21:12:09 < zyp> it's not really that hard
2012-05-31T21:12:58 < zyp> I have some messy buggy usb code for F4 working
2012-05-31T21:13:49 < zyp> http://cgit.jvnv.net/suzumebachi/tree/main.cpp?h=stm32f4 <- it still lives in the main.cpp file, I haven't started cleaning it up and making a decent API for it yet :p
2012-05-31T21:15:09 < zyp> obviously no classes implemented yet, only plain bulk endpoints and some vendor specific control requests
2012-05-31T21:15:16 < amstan> so yeah, that's why i don't want to move away from uart
2012-05-31T21:16:56 < zyp> uart being easy is ok, but it's a byte transport, usb is a frame transport, so that saves you from having to implement your own framing layer
2012-05-31T21:18:48 < zyp> the added complexity brings added features :p
2012-05-31T21:21:19 < amstan> zyp: yeah, i guess
2012-05-31T21:23:38 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit []
2012-05-31T21:26:09 -!- amstan [~alex@aichallenge/admin/amstan] has quit [Ping timeout: 260 seconds]
2012-05-31T21:39:00 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 246 seconds]
2012-05-31T21:47:13 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32
2012-05-31T21:49:04 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has joined ##stm32
2012-05-31T21:51:39 < Laurenceb_> anyone here used the Kinetis?
2012-05-31T22:11:43 < Laurenceb_> http://uk.mouser.com/ProductDetail/Freescale-Semiconductor/MK50DX128CLH7/?qs=b%252b6ZnhyoAL8egbBWgMhFUplA70N403GhRkGqsCi4V0I%3d
2012-05-31T22:11:50 < Laurenceb_> looks pretty epic if they get it in stock
2012-05-31T22:12:01 < Laurenceb_> 16bit adcs
2012-05-31T22:12:40 <+Steffanx> Laurenceb_ and his ADC's - the movie
2012-05-31T22:12:45 <+Steffanx> -'
2012-05-31T22:12:50 < zyp> everything is epic as long at is has 16-bit ADCs?
2012-05-31T22:13:34 < Laurenceb_> yes
2012-05-31T22:13:47 < Laurenceb_> and PGA, and transimpedance stage
2012-05-31T22:14:21 < zyp> and flux capacitor?
2012-05-31T22:18:12 -!- Laurenceb_ [~Laurence@host86-177-210-248.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds]
2012-05-31T22:19:02 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32
2012-05-31T22:19:42 < TitanMKD> Laurenceb 16bits adc but what's the speed ?
2012-05-31T22:21:14 < zyp> 15 samples per month
2012-05-31T22:21:17 <+Steffanx> 1mSPS
2012-05-31T22:21:55 < TitanMKD> too slow for my needs ;)
2012-05-31T22:22:01 < TitanMKD> I prefer STM32F4 ;)
2012-05-31T22:25:49 < zyp> F4 does 2MSPS per ADC, that's not a very huge difference
2012-05-31T22:26:34 < TitanMKD> zyp it does 7.2MSPS in special mode ;)
2012-05-31T22:26:57 < TitanMKD> supported by chibios ;)
2012-05-31T22:27:24 < zyp> what special mode?
2012-05-31T22:27:36 < TitanMKD> using 3 ADC at same time
2012-05-31T22:27:43 -!- Laurenceb_ [~Laurence@host86-168-105-99.range86-168.btcentralplus.com] has joined ##stm32
2012-05-31T22:27:50 < Laurenceb_> arg toasters
2012-05-31T22:27:57 < Laurenceb_> just tripped my entire house
2012-05-31T22:28:02 < zyp> TitanMKD, that's why I said per ADC
2012-05-31T22:28:08 <+Steffanx> fail Laurenceb_
2012-05-31T22:28:16 < zyp> and datasheet lists max 6 MSPS for triple ADC mode
2012-05-31T22:28:17 < Laurenceb_> damp bread
2012-05-31T22:28:20 < TitanMKD> zyp yes but you can use this mode for very fast ADC stuff
2012-05-31T22:28:31 < zyp> heh
2012-05-31T22:28:54 < Laurenceb_> Estimated Dispatch Date
2012-05-31T22:28:55 < Laurenceb_> 160 08/08/2012
2012-05-31T22:29:02 < zyp> I don't really think 6 MSPS qualifies for «very fast ADC stuff»
2012-05-31T22:29:07 < Laurenceb_> ouch - may as well wait for F3
2012-05-31T22:29:24 < Laurenceb_>  my scope is 5Gsps
2012-05-31T22:33:41 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving]
2012-05-31T22:42:34 < Laurenceb_> actually once you account for the noise on the 16bit adc at high clk frequencies and the faster 12bit adc rate on F1, kinetis is only about 2 bits better
2012-05-31T22:42:55 < Laurenceb_> then if you use F4 adc...
2012-05-31T22:43:25 < Laurenceb_> its almost as good, just more samples to process
2012-05-31T22:43:30 < TitanMKD> zyp for MCU 6MSPS is very fast ;)
2012-05-31T22:43:59 < Laurenceb_> kinetis is 13.5ENOB at 400Ksps
2012-05-31T23:02:13 -!- BrainDamage1 [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32
2012-05-31T23:02:13 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-249-119.clienti.tiscali.it] has quit [Disconnected by services]
2012-05-31T23:13:24 -!- BrainDamage1 [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Quit: Leaving.]
2012-05-31T23:13:35 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32
2012-05-31T23:22:27 -!- amstan_ [~alex@aichallenge/admin/amstan] has joined ##stm32
2012-05-31T23:26:36 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32
2012-05-31T23:30:03 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 245 seconds]
2012-05-31T23:35:13 -!- amstan_ [~alex@aichallenge/admin/amstan] has quit [Quit: Konversation terminated!]
2012-05-31T23:52:48 -!- carp3 [~chatzilla@31.59.30.255] has joined ##stm32
--- Log closed Fri Jun 01 00:00:57 2012