--- 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 means you have selected wrong processor, blx 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 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 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? ... " 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> 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