--- Log opened Fri Jun 01 00:00:57 2012 2012-06-01T00:18:08 -!- carp3 [~chatzilla@31.59.30.255] has quit [Remote host closed the connection] 2012-06-01T00:24:33 -!- izua [~izua@86.121.85.94] has joined ##stm32 2012-06-01T00:24:33 -!- izua [~izua@86.121.85.94] has quit [Changing host] 2012-06-01T00:24:33 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-01T00:24:33 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-01T00:37:13 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-01T00:39:10 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 252 seconds] 2012-06-01T01:04:36 -!- crankyfeurig is now known as feurig 2012-06-01T01:27:04 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer] 2012-06-01T01:27:10 -!- peabody128 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-01T01:39:06 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 246 seconds] 2012-06-01T01:51:03 < upgrdman> what benefit does turning on a gpio clock have? i used a gpio pin to blink and LED without turning on the clock and it seemed to work fine. 2012-06-01T01:51:21 < zyp> no, it does not work 2012-06-01T01:51:37 < zyp> so in your case it's likely already enabled 2012-06-01T01:52:26 < zyp> every peripheral that is not in use can be turned off (no clock) to save power, and peripherals that are turned off do not work 2012-06-01T01:58:29 -!- Laurenceb_ [~Laurence@host86-168-105-99.range86-168.btcentralplus.com] has quit [Ping timeout: 245 seconds] 2012-06-01T02:04:41 < R2COM> who is using kicad? 2012-06-01T02:05:42 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-06-01T02:07:35 -!- peabody128 is now known as peabody124 2012-06-01T03:38:07 < emeb> Yay! Free STM32F0 Discovery board. 2012-06-01T03:43:15 < emeb> http://www.st.com/internet/evalboard/product/253215.jsp 2012-06-01T03:43:32 < emeb> note the big blue button that says "FREE KIT" 2012-06-01T03:43:51 < emeb> Applied for mine last Thursday. Got it today. 2012-06-01T03:44:28 < emeb> And the board has STLINK V2. 2012-06-01T03:44:46 < emeb> tried it out with stlink-karlp : worked fine. 2012-06-01T03:45:52 < emeb> it really comes with a 0.1" perfboard w/ plated-thru holes. For what that's worth. 2012-06-01T03:47:26 < emeb> looks like 55 to me 2012-06-01T03:47:54 < emeb> hmmm - doubt that. 2012-06-01T03:50:31 < emeb> err - there's a regulator on the board so it can run from USB +5V 2012-06-01T03:50:42 < emeb> but the parts are 3.3V only AFAICT 2012-06-01T03:54:41 < emeb> Most 3.3V logic inputs can stand 5V if you include a current limit resistor. 10k or so should be fine. 2012-06-01T03:55:36 < emeb> what do you mean? 3.3V outputs driving 5V inputs needs no extra circuitry. 2012-06-01T03:57:19 < emeb> pg 35 of the User Manual has a 'schematic' for hooking the F0 Discovery to Arduino shields. 2012-06-01T03:57:52 < emeb> So maybe it is 5V tolerant... Ard Shields are nominal 5V I/O, right? 2012-06-01T04:02:32 < dongs> i bet yall buying this because of stlinkv2 2012-06-01T04:02:40 < dongs> and by buying i mean 'getting for free" 2012-06-01T04:02:50 < emeb> maaaaybe... :) 2012-06-01T04:03:00 < R2COM> free? what where 2012-06-01T04:03:25 < emeb> http://www.st.com/internet/evalboard/product/253215.jsp 2012-06-01T04:04:09 < R2COM> you have to be part of company 2012-06-01T04:04:47 < emeb> Could be. I am. A buddy applied a couple days earlier than I and just put down self/hobby and got one too. 2012-06-01T04:05:26 < emeb> ST is winning at marketing lately. 2012-06-01T04:06:02 < dongs> k ordered mine 2012-06-01T04:06:09 < emeb> I've already put 1 product into production and started 2 more with their parts because of these low-cost devboards. 2012-06-01T04:07:11 < R2COM> is m0 lower grade device? 2012-06-01T04:07:14 < R2COM> than m4 right? 2012-06-01T04:07:46 < emeb> still has 32-bit regs tho, no? 2012-06-01T04:08:22 < dongs> flyback-: please stop talking nonsense out of your ass 2012-06-01T04:08:27 < dongs> cortex M0 is not 16bit. 2012-06-01T04:08:52 < emeb> but m3, m4 are thumb-only too. 2012-06-01T04:09:03 < emeb> yes 2012-06-01T04:10:29 < dongs> yes m3 and m4 are thumb only you fucknut 2012-06-01T04:11:23 < dongs> thats because you keep spreading bullshit 2012-06-01T04:11:27 < dongs> about stuff you dont even know 2012-06-01T04:11:31 < dongs> and make it sound authoritative 2012-06-01T04:11:37 < dongs> ^_^ 2012-06-01T04:11:47 < dongs> ??????????????? 2012-06-01T04:11:55 < dongs> how the fuck does instruction set have anything to do with lunix 2012-06-01T04:12:12 < dongs> i mean i dont evne need to link to wikipedo for this but 2012-06-01T04:12:15 < dongs> http://en.wikipedia.org/wiki/ARM_Cortex-M 2012-06-01T04:12:34 < dongs> All four Cortex-M cores implement a common instruction subset that consists of: Thumb subset, Thumb-2 subset, and multiply. The Cortex-M0 and M1 include all older Thumb instructions, except new instructions (CBZ, CBNZ, IT) which were added in ARMv7-M architecture. 2012-06-01T04:12:49 < dongs> break "what" C code? 2012-06-01T04:14:55 < dongs> moar TROLLING by FLYBACK 2012-06-01T04:18:21 < dongs> dude they're all fucking 32bit 2012-06-01T04:18:31 < dongs> size of instruction has fuck all to do with the fact that the core is 32bit 2012-06-01T04:19:21 < dongs> I did 2012-06-01T04:19:26 < dongs> 10:11 < dongs> how the fuck does instruction set have anything to do with lunix 2012-06-01T04:25:19 < dongs> flyback-: if you havent coded since college what hte fuck are you doing here besides trolling. 2012-06-01T04:26:30 < dongs> got caught up on most of my fail projects maybe time to code for some fun 2012-06-01T04:36:53 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Ping timeout: 248 seconds] 2012-06-01T04:53:38 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-01T04:54:44 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 245 seconds] 2012-06-01T05:17:53 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-06-01T05:18:06 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Disconnected by services] 2012-06-01T05:18:11 -!- Tom_L is now known as Tom_itx 2012-06-01T05:19:03 -!- zlog_ [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32 2012-06-01T05:19:38 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Ping timeout: 240 seconds] 2012-06-01T05:19:42 -!- zlog_ [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Remote host closed the connection] 2012-06-01T05:19:59 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32 2012-06-01T05:34:58 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-01T06:28:19 -!- cjbaird [~cjb@ppp121-44-125-219.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-01T06:47:27 < cjbaird> Bigass drone photoessay of HD pics: http://cryptome.org/2012-info/drone-photos/drone-photos.htm 2012-06-01T06:52:05 < R2COM> LOL!!! 2012-06-01T06:52:06 < R2COM> http://cryptome.org/2012-info/drone-photos/pict41.jpg 2012-06-01T06:52:49 < R2COM> surveillance drone? 2012-06-01T06:53:02 < R2COM> i dont remember seeing such a surveillance drone 2012-06-01T06:53:11 < R2COM> has to be top secret Pentagon's development :P 2012-06-01T06:54:21 < R2COM> this one is real. http://cryptome.org/2012-info/drone-photos/pict40.jpg 2012-06-01T06:54:26 < R2COM> first one...heh... 2012-06-01T06:54:46 < cjbaird> Super-cheaply made, must be Isreali. :P 2012-06-01T06:54:51 < dongs> what 2012-06-01T06:54:54 < R2COM> probably 2012-06-01T06:55:05 < dongs> why you gotta talk shit about jews 2012-06-01T06:55:28 < R2COM> I dont like Israeli UAVs, they'v been pimped so much, but they performed poorly in some recent conflicts 2012-06-01T06:55:33 < cjbaird> :D 2012-06-01T06:56:09 < R2COM> they are just ok... but not a big thing 2012-06-01T06:58:22 < R2COM> cjbaird: you did some drone or what? 2012-06-01T07:00:31 < cjbaird> I've only done the two-wheeled floorbot kind of thing so far. 2012-06-01T07:01:21 < R2COM> good. send him to war. 2012-06-01T08:43:19 < R2COM> anyone can point to some sd-card related code for stm32f4? which one used and know it works? 2012-06-01T08:43:39 < R2COM> cant find anything on ST, seems they have simpler examples, not sd-card 2012-06-01T10:39:51 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-01T10:40:07 < ratatata> nu 2012-06-01T11:02:23 < dongs> http://i.imgur.com/WVVNQ.jpg lol 2012-06-01T11:02:29 < dongs> "not 12V tolerant IO" 2012-06-01T11:03:08 < zyp> cute 2012-06-01T11:06:33 < dongs> haha.. that pin disconnected itself from the package 2012-06-01T11:06:36 < R2COM> zyp: you ever used sd-card related code with stm32? 2012-06-01T11:06:44 < dongs> I have. it works. 2012-06-01T11:06:49 < dongs> used 4bit SDIO 2012-06-01T11:06:52 < dongs> not_hard 2012-06-01T11:06:52 < R2COM> dongs: which one you used? 2012-06-01T11:06:58 < R2COM> i mean which code 2012-06-01T11:07:01 < R2COM> where did you get it 2012-06-01T11:07:09 < dongs> do you mean filesystem? or hardware part? or? 2012-06-01T11:07:14 < dongs> filesystem = fatfs by elm"chan" 2012-06-01T11:07:15 < R2COM> source 2012-06-01T11:07:22 < dongs> there's tons of examples of using it with stm32 2012-06-01T11:07:24 < dongs> even in st examples 2012-06-01T11:07:32 < R2COM> source for stm32f4 2012-06-01T11:07:58 < dongs> http://nemuisan.blog.bai.ne.jp/?cid=7420 2012-06-01T11:08:06 < dongs> this guy makes fatfs/etc samples for STM32F4 2012-06-01T11:08:12 < dongs> i used his shit for F1 and F2. 2012-06-01T11:09:15 < R2COM> dont get anything in that language 2012-06-01T11:09:24 < R2COM> you know direct link to source package? 2012-06-01T11:10:14 < dongs> https://skydrive.live.com/?cid=36f4d1230f8a673c&sc=documents&id=36F4D1230F8A673C%21102#cid=36F4D1230F8A673C&id=36F4D1230F8A673C%213303&sc=documents 2012-06-01T11:10:24 < dongs> https://skydrive.live.com/?cid=36f4d1230f8a673c&sc=documents&id=36F4D1230F8A673C%21102#cid=36F4D1230F8A673C&id=36F4D1230F8A673C%213330&sc=documents 2012-06-01T11:10:27 < dongs> more specifically 2012-06-01T11:10:39 < R2COM> yeah i think got it now 2012-06-01T11:10:47 -!- izua [~izua@86.121.85.94] has joined ##stm32 2012-06-01T11:10:47 -!- izua [~izua@86.121.85.94] has quit [Changing host] 2012-06-01T11:10:47 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-01T11:10:50 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-01T11:12:16 < R2COM> i guess it just takes some time to study fat and write own stuff, but well.. 2012-06-01T11:12:46 < dongs> well this board is a writeoff 2012-06-01T11:12:53 < dongs> the trace burned off the board for the most part 2012-06-01T11:12:58 < dongs> as i suspected not worth fixing 2012-06-01T11:13:40 < R2COM> which board?? 2012-06-01T11:13:59 < dongs> 17:02 < dongs> http://i.imgur.com/WVVNQ.jpg lol 2012-06-01T11:14:01 < dongs> ths one. 2012-06-01T11:18:17 < R2COM> i see that zip contains ff folder, with all fat-fs related stuff 2012-06-01T11:18:38 < R2COM> so ill probably include it all, and grab main functions, see how it works later 2012-06-01T11:18:42 < dongs> yes, and original homepage is: http://elm-chan.org/fsw/ff/00index_e.html 2012-06-01T11:18:49 < dongs> which also has stm32 examples. 2012-06-01T11:22:23 < R2COM> hmm it can also work with ATA? 2012-06-01T11:22:37 < R2COM> but, there has to be a controller for that then.. 2012-06-01T11:26:14 < zyp> fatfs should work with any block device 2012-06-01T11:26:38 < R2COM> well ok, but there must be a controller, a low level controller 2012-06-01T11:26:50 < zyp> you mean block device driver 2012-06-01T11:26:58 < zyp> that's not fatfs' responsibility 2012-06-01T11:27:05 < dongs> lunix device driver 2012-06-01T11:27:05 < R2COM> in a case of stm32 there is of course internal hardware responsible for sd-card related stuff 2012-06-01T11:27:26 < dongs> doesnt fsmc do ata 2012-06-01T11:27:30 < R2COM> and one cannot just add those pins to ATA drive 2012-06-01T11:27:44 < R2COM> not sure...if it does then ok 2012-06-01T11:27:51 < dongs> it does CE-ATA whatever teh fuck that is 2012-06-01T11:28:09 < dongs> IDE drives are deader than Lubunto on desktop 2012-06-01T11:29:06 < zyp> I haven't looked at fatfs, but I imagine it requires an API like «give me n bytes from offset x» and «write these n bytes to offset x» 2012-06-01T11:29:56 < zyp> and as long as you have something implementing that for whatever device you use, it's fine 2012-06-01T11:30:33 < R2COM> its routines do that...give me that from that offset 2012-06-01T11:30:50 < R2COM> but the way how its actually *done* is from low level controller 2012-06-01T11:30:59 < zyp> huh? 2012-06-01T11:31:16 < dongs> zyp: blocks, but yeah 2012-06-01T11:31:20 < R2COM> i mean, what you described is probably coded in the functions of fatfs already 2012-06-01T11:31:26 < dongs> i think it needs 512byte sectors 2012-06-01T11:31:37 < dongs> R2COM: you provide fatfs readblock() and writeblock() 2012-06-01T11:31:39 < dongs> it handles the rest. 2012-06-01T11:31:50 < zyp> right 2012-06-01T11:31:52 < dongs> for all it cares, you can allocate 30k of ram for a ramdisk and give it read/write pointers to that. 2012-06-01T11:32:25 < R2COM> right now i dont have enough time to fuck around with internals of fat 2012-06-01T11:32:32 < R2COM> otherwise it would make sense to write your own 2012-06-01T11:32:45 < zyp> would it really? 2012-06-01T11:32:54 < dongs> for bonus points, add ethernet, write a program in ruby to read/write bits from a file, then replace read/write block stuff wtih sending it across network. 2012-06-01T11:32:59 < R2COM> some people told me that there are many problems arising when using those libs when doing something critical 2012-06-01T11:33:01 < R2COM> yes 2012-06-01T11:33:12 < R2COM> i remember long time ago, i was using the Microchips sd-card routines 2012-06-01T11:33:18 < R2COM> i was designing some data logging application 2012-06-01T11:33:27 < dongs> thats because microchip shit sucks 2012-06-01T11:33:31 < dongs> fatfs has been around for years 2012-06-01T11:33:32 < R2COM> and, i noticed that under several conditions, it took longer time to write stuff 2012-06-01T11:33:36 < dongs> and pretty much every project uses it 2012-06-01T11:33:41 < R2COM> ok 2012-06-01T11:33:50 < dongs> and by project i mean even payware shit. 2012-06-01T11:33:54 < zyp> dongs, you're not a real man before you have support for iscsi on your mcu 2012-06-01T11:34:02 < dongs> o rite 2012-06-01T11:34:21 < R2COM> so, who developed fatfs? 2012-06-01T11:34:30 < dongs> < dongs> yes, and original homepage is: http://elm-chan.org/fsw/ff/00index_e.html 2012-06-01T11:34:35 < dongs> some animu-watching jap 2012-06-01T11:34:38 < R2COM> oh that same guy 2012-06-01T11:34:55 < dongs> different guy 2012-06-01T11:34:56 < dongs> but same shit 2012-06-01T11:35:09 < R2COM> interesting 2012-06-01T11:35:32 < R2COM> right now he is probably developing soft for future robots which would fight US isnt it 2012-06-01T11:36:45 < zyp> yea, you'd have to have fatfs on them, so you can just insert an sd-card with a list of targets 2012-06-01T11:36:55 < R2COM> true 2012-06-01T11:37:35 < R2COM> actually, im not sure if sd-card is military graded 2012-06-01T11:37:48 < R2COM> though it looks very attractive for many applications 2012-06-01T11:39:14 < R2COM> shit its late 2012-06-01T11:43:14 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-06-01T11:56:54 < dongs> hoho, attn Laurenceb 8451QT is here 2012-06-01T11:57:00 < dongs> after a month of backorder 2012-06-01T12:00:04 < upgrdman> can GPIO_Init be called multiple times for the same GPIO channel? would that reset the channel each time or just modify? 2012-06-01T12:01:14 -!- Laurenceb_ [~Laurence@host86-168-105-99.range86-168.btcentralplus.com] has joined ##stm32 2012-06-01T12:08:05 < R2COM> starts from 3.18$ at digikey 2012-06-01T12:08:40 < R2COM> chip of course, who the hell sells board for 3$ 2012-06-01T12:09:08 < dongs> i pay 2.10 for stm32f103c8t6 2012-06-01T12:09:20 < zyp> hmm, no can 2012-06-01T12:09:37 < zyp> would still have to go with F1 or higher for can I guess 2012-06-01T12:10:07 < dongs> no hardware divide on M0 either 2012-06-01T12:10:13 < dongs> so its a bit ghettoish 2012-06-01T12:10:18 < dongs> avr-class 2012-06-01T12:10:34 < zyp> flyback-, that's why cortex ranges from M0 to A15 :p 2012-06-01T12:11:38 < zyp> dongs, that's probably fine for a lot of applications 2012-06-01T12:11:50 < R2COM> they should start doing FPGAs and compete with Xilinx 2012-06-01T12:12:24 < zyp> dongs, if anything, that should help killing the avr :p 2012-06-01T12:12:37 < nopcode> what i'd like is a board with stm32 and a fpga 2012-06-01T12:12:44 < zyp> flyback-, why not? 2012-06-01T12:12:44 < dongs> rite 2012-06-01T12:12:56 < R2COM> nopcode: how much would you pay for that board? 2012-06-01T12:13:10 < nopcode> R2COM: hm 30-40 euros? 2012-06-01T12:13:17 < R2COM> lol 2012-06-01T12:13:22 < R2COM> like 60$? 2012-06-01T12:13:24 < R2COM> you kiddin 2012-06-01T12:13:25 < nopcode> yeah 2012-06-01T12:13:27 < dongs> wat board 2012-06-01T12:13:33 < zyp> imaginary board 2012-06-01T12:13:34 < nopcode> idk the stm32f4discovery was pretty cheap 2012-06-01T12:13:51 < R2COM> well + FPGA adds some cost, + routing + harder design etc 2012-06-01T12:13:53 < nopcode> yeah i want that with a fpga 2012-06-01T12:14:22 < R2COM> would you pay 260$ for FPGA+stm32f4 board? + many other shit? 2012-06-01T12:14:25 < zyp> R2COM, fpgas aren't that hard to design with 2012-06-01T12:14:55 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Read error: Connection reset by peer] 2012-06-01T12:15:07 < R2COM> zyp, it depends, it might be hard, but generally no, depends on application, but making a board with low amount of layers, and dense and FPGA + other shit is not very trivial 2012-06-01T12:15:25 <+izua> yo9u could go with the tqfp fpgas for starters 2012-06-01T12:15:33 < R2COM> nopcode: you looking at something specific or you wnat just FPGA+stm32f4 and thats it? 2012-06-01T12:15:39 <+izua> can be done on two layers only 2012-06-01T12:15:46 < nopcode> well most of the fpga pins could be routed direclty to headers 2012-06-01T12:15:48 < R2COM> izua: yea...but screw that... 2012-06-01T12:16:03 < zyp> R2COM, sounds like you're assuming a huge BGA FPGA with lots of IO and crap 2012-06-01T12:16:10 < nopcode> R2COM: yeah just that to use the FPGA for accelerating stuff 2012-06-01T12:16:13 < R2COM> nopcode: yes...but you not gona be able to do some high speed stuff with headers 2012-06-01T12:16:14 < upgrdman> what not do a tqfp fpga? 2012-06-01T12:16:28 <+izua> also, why use a dedicated controller? 2012-06-01T12:16:35 <+izua> you could get a softcore cpu 2012-06-01T12:16:46 < R2COM> hardware accelerating? 2012-06-01T12:16:47 < R2COM> LOL 2012-06-01T12:16:50 < R2COM> and headers? 2012-06-01T12:17:00 < R2COM> so...you accelerate in hardware...and then slow down with headers 2012-06-01T12:17:02 < R2COM> awesome 2012-06-01T12:17:03 < R2COM> :P 2012-06-01T12:17:08 -!- Laurenceb_ [~Laurence@host86-168-105-99.range86-168.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-06-01T12:17:28 < nopcode> :P 2012-06-01T12:17:41 < R2COM> i assume, if you accelerate or do something very fast, it has to be transferred very fast too 2012-06-01T12:17:47 < R2COM> and you not going to do that with headers 2012-06-01T12:17:49 < zyp> of course, if you want both cortex-m3 and fpga, you can have a look at the actel smartfusion stuff 2012-06-01T12:17:52 < nopcode> like logic analyzer, you could capture and buffer on fpga 2012-06-01T12:17:56 < nopcode> and transmit to PC using stm32 2012-06-01T12:18:03 < zyp> only problem is that I've heard actel toolchain is shit 2012-06-01T12:18:08 < R2COM> well yea... 2012-06-01T12:18:23 < R2COM> all the tools are shit... 2012-06-01T12:18:25 < nopcode> oh lunchtime over here 2012-06-01T12:18:26 < nopcode> bbl 2012-06-01T12:18:54 < zyp> flyback-, sure 2012-06-01T12:19:18 < zyp> flyback-, that's not unique for F4 2012-06-01T12:20:35 < zyp> then get one 2012-06-01T12:20:37 < R2COM> so, ST says that f4 is something close to DSP 2012-06-01T12:20:45 < R2COM> though im not sure it can compete with DSPs 2012-06-01T12:20:48 < zyp> R2COM, no, they are not 2012-06-01T12:21:08 < R2COM> but it can do true 32bit single precision IEEE754 i guess 2012-06-01T12:21:10 < R2COM> with hardware 2012-06-01T12:21:11 < zyp> they are saying that it's based on a cortex-M4, which has «DSP-extensions» 2012-06-01T12:21:13 < zyp> i.e. SIMD 2012-06-01T12:21:29 < R2COM> ok 2012-06-01T12:22:44 < R2COM> and, the gcc, or code-sourcery gcc for ARM, are they doing a good job? no need to do assembly for something critical? 2012-06-01T12:22:53 < R2COM> or probably i think there are such a situations? 2012-06-01T12:23:14 < R2COM> im not talking about 8bit 2012-06-01T12:23:20 < R2COM> stm32 is 32bit 2012-06-01T12:25:09 < zyp> flyback-, bullshit, I had to do some asm on avr for a project last year, to get decent fixed point performance 2012-06-01T12:25:17 < zyp> got a 500% speedup or something like that 2012-06-01T12:25:42 < R2COM> ok sleep time 2012-06-01T12:26:16 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.] 2012-06-01T12:26:17 < zyp> flyback-, and what are you basing this on? 2012-06-01T12:32:01 < zyp> then you should have read the question better 2012-06-01T12:32:15 < zyp> «no need to do assembly for something critical?» 2012-06-01T12:33:02 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-01T13:09:55 < upgrdman> im trying to learn the stdPeriphLib and want to turn on the blue led of the f4discovery board. i got the led to light up but it also lit up the green one. any ideas why? http://pastebin.com/UZDvb3R0 2012-06-01T13:11:06 < zyp> what's the value of GPIO_Pin_15? 2012-06-01T13:11:49 < upgrdman> #define GPIO_Pin_15 ((uint16_t)0x8000) 2012-06-01T13:12:09 < zyp> right 2012-06-01T13:12:29 < zyp> well, you only told it to turn on the blue one, not turn off the others 2012-06-01T13:13:10 < upgrdman> ok but the orange and red LEDs are on the same port and didnt light up 2012-06-01T13:14:16 < zyp> what happens if you don't turn on the blue led? 2012-06-01T13:20:55 < upgrdman> damn it 2012-06-01T13:20:59 < upgrdman> well 2012-06-01T13:21:25 < upgrdman> if a comment out that line it does nothing (no leds on) but then i uncommented it and now it works perfect, only the blue led lights up 2012-06-01T13:21:27 < upgrdman> wtf 2012-06-01T13:21:35 < upgrdman> oh well. 2012-06-01T13:22:46 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-01T13:22:47 < upgrdman> and i had to set it low to light up the led... does that mean they have the pin going to the LED's cathode? why not have the pin go to the anode and set high? seems backward, or am i wrong? 2012-06-01T13:28:09 < cjbaird> sounds like open-drain output 2012-06-01T13:30:42 -!- carp3 [~chatzilla@31.59.30.255] has joined ##stm32 2012-06-01T13:31:10 < carp3> Hi, is there any preconfigured eclipse for stm32 development? 2012-06-01T13:34:44 < zyp> upgrdman, I'm pretty sure that they are wired active high, not active low like you are describin 2012-06-01T13:34:47 < zyp> g 2012-06-01T13:36:02 < zyp> yep, double checked the schematic 2012-06-01T13:36:12 < zyp> pin is going to anode 2012-06-01T13:38:38 < upgrdman> ok 2012-06-01T13:39:02 < upgrdman> but using BSRRL makes them light up 2012-06-01T13:39:22 < zyp> yes? 2012-06-01T13:39:32 -!- L00NG [~longxk@123.84.250.88] has joined ##stm32 2012-06-01T13:39:59 < upgrdman> yes 2012-06-01T13:40:09 < zyp> what about it? 2012-06-01T13:40:20 < upgrdman> doesnt bsrrl make the pin low? 2012-06-01T13:40:33 < zyp> hmm 2012-06-01T13:40:44 < zyp> let me get this right, you have a BSRRL and a BSRRH? 2012-06-01T13:40:49 < upgrdman> yes 2012-06-01T13:40:53 < zyp> right 2012-06-01T13:41:02 < zyp> that's two 16-bit parts of the 32-bit register BSRR 2012-06-01T13:41:09 < upgrdman> ok 2012-06-01T13:41:19 < zyp> L is bits 0-15, H is bits 16-31 2012-06-01T13:41:48 < zyp> the lower part of BSRR is the set-part, the higher part of BSRR is the reset-part 2012-06-01T13:42:05 < zyp> so BSRRL sets the output high, BSRRH sets the output low 2012-06-01T13:42:16 < zyp> the L and H in the names have nothing to do with the output levels 2012-06-01T13:42:23 < upgrdman> oh! 2012-06-01T13:42:28 < upgrdman> ok thanks 2012-06-01T13:43:46 < upgrdman> do you use arm-none-eabi-gdb? loading the .elf with "load x.elf" loads it into memory instead of saving it to flash. any idea how to get it to load the firmware into flash? 2012-06-01T13:44:31 < karlp> change your linker scripts 2012-06-01T13:44:35 < zyp> it's loaded to wherever it's linked to be loaded 2012-06-01T13:44:42 < zyp> so the linker script determines that 2012-06-01T13:44:47 < upgrdman> hum ok 2012-06-01T13:44:49 < karlp> yeah, what he said :) 2012-06-01T13:45:09 < zyp> upgrdman, are you by chance using one of the examples shipped with texane? 2012-06-01T13:45:31 < upgrdman> a while ago. my makefile is probably based on one of those 2012-06-01T13:45:37 < upgrdman> is this the part: -Wl,-Ttext,0x20000000 -Wl,-e,0x20000000 2012-06-01T13:45:44 < zyp> right 2012-06-01T13:45:49 < zyp> because those are bad 2012-06-01T13:45:58 < upgrdman> any idea what i should change it to? 2012-06-01T13:46:05 < zyp> if you are going to look at an example, look at a better one 2012-06-01T13:46:06 < upgrdman> or what i need to read to find that out 2012-06-01T13:48:31 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-01T13:51:40 < upgrdman> ? 2012-06-01T13:52:37 < zyp> karlp can probably suggest a better example that you can look at 2012-06-01T13:53:32 < upgrdman> karlp, :) can you provide an example? 2012-06-01T13:54:49 < karlp> https://github.com/karlp/kkstm32_base/tree/master/example/32l_dac perhaps 2012-06-01T13:55:04 < karlp> or https://github.com/karlp/kkstm32_base/tree/master/example/32vl_exti_adc 2012-06-01T13:55:46 < karlp> also https://github.com/karlp/kkstm32_base/tree/master/example/blink 2012-06-01T13:55:51 < cjbaird> Does anyone need further proof that hackaday is long past its use-by date? http://hackaday.com/2012/05/31/dot-matrix-printer-spits-out-any-tweet-mentioning-kwf/ 2012-06-01T13:56:28 < karlp> upgrdman: also, libopencm3 has a nice set of examples 2012-06-01T13:59:48 < upgrdman> that aren't any short makefiles that work, huh? ;) 2012-06-01T14:00:01 < upgrdman> there* 2012-06-01T14:00:07 < zyp> sure there are 2012-06-01T14:00:52 < zyp> well, I'm not using make, but yeah 2012-06-01T14:01:01 < zyp> http://cgit.jvnv.net/suzumebachi/tree/SConstruct?h=stm32f4 <- this is my equivalent to a makefile 2012-06-01T14:01:39 < upgrdman> what do you use? (toolchain or whatever) 2012-06-01T14:02:42 < zyp> I'm using scons instead of make 2012-06-01T14:02:58 < zyp> except for that I'm using same toolchain 2012-06-01T14:05:49 < upgrdman> well i dont fully understand makefiles, but heres the short one i have been using http://pastebin.com/6s1WQZti ... try not to laugh ;) i'll have to read up on make and gc 2012-06-01T14:14:58 < zyp> IMO make is old and outdated, and doesn't really have any real advantages over scons 2012-06-01T14:16:31 < upgrdman> ok 2012-06-01T14:16:40 < zyp> your simple makefile builds everything in a single step, so it's not really utilizing the point of make 2012-06-01T14:16:49 < zyp> which is to rebuild only the parts that changed 2012-06-01T14:17:00 < upgrdman> i know 2012-06-01T14:17:27 < upgrdman> i'm going to have to give up on understanding my makefile and just use a proper one that i dont really understand ;) 2012-06-01T14:17:44 < upgrdman> i'll try some of karlp's stuff and look into libopencm3 2012-06-01T14:18:23 < zyp> or you could use scons instead of make ;) 2012-06-01T14:19:21 < zyp> it hides all the lowlevel complexity of dependency tracking and intermediate steps, and lets you just specify which output files you want from which input files 2012-06-01T14:19:29 < Laurenceb> it looks nice 2012-06-01T14:19:41 < Laurenceb> does it track changes in headers? 2012-06-01T14:19:45 < zyp> yes 2012-06-01T14:19:52 < Laurenceb> better than make then 2012-06-01T14:20:00 < upgrdman> your scons makefile was above my head too. im still working on the steep learning curve while transitioning from the arduino 2012-06-01T14:20:52 * Laurenceb has to write documentation for ISO60601 2012-06-01T14:20:52 -!- L00NG [~longxk@123.84.250.88] has quit [Ping timeout: 252 seconds] 2012-06-01T14:20:55 < Laurenceb> funtimes 2012-06-01T14:20:58 < zyp> Laurenceb, yeah, it includes it's own include-tracker instead of having to have a seperate steps for generating dependencies 2012-06-01T14:21:16 < Laurenceb> make is annoying, sometimes it tracks headers ok, sometimes not 2012-06-01T14:21:45 < zyp> and it also handles multiple directories correctly 2012-06-01T14:22:00 < zyp> which was the main reason I switched to scons in the first place 2012-06-01T14:22:19 -!- L00NG [~longxk@123.84.250.88] has joined ##stm32 2012-06-01T14:23:04 < zyp> and then it has other advantages like not only using timestamps but also hashes for dependency tracking 2012-06-01T14:23:57 < zyp> if I do, say, a whitespace change in a source file, scons discovers the change and recompiles the object, then discovers that the object didn't change and skips relinking it 2012-06-01T14:30:28 -!- L00NG [~longxk@123.84.250.88] has quit [Ping timeout: 260 seconds] 2012-06-01T14:32:14 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 246 seconds] 2012-06-01T14:40:34 < upgrdman> anyone know if the libopencm3 flash util works with the f4discovery's stlink2? 2012-06-01T14:42:49 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Quit: Leaving.] 2012-06-01T14:42:55 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-01T14:43:54 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Client Quit] 2012-06-01T14:44:53 < zyp> probably not, I'd imagine it's only for the internal bootloader 2012-06-01T14:49:09 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-01T14:53:39 -!- corecode [~2@0x2c.org] has quit [Read error: Operation timed out] 2012-06-01T14:54:30 -!- cjbaird [~cjb@ppp121-44-125-219.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-01T14:54:34 -!- corecode [~2@0x2c.org] has joined ##stm32 2012-06-01T14:57:12 < Laurenceb> nice, my pc has now been up for 900days 2012-06-01T14:58:32 < zyp> so you're running a horribly outdated system? 2012-06-01T14:58:48 -!- carp3 [~chatzilla@31.59.30.255] has quit [Quit: ChatZilla 0.9.88.2 [Firefox 13.0/20120528154913]] 2012-06-01T14:58:55 < zyp> considering no updates installed for several years 2012-06-01T15:01:58 < upgrdman> when i moved from one house to another i contemplated keeping my server on by unplugging the UPS and keeping the box plugged into the UPS while driving. 2012-06-01T15:02:19 < upgrdman> but i decided to play it safe. bouncing in a car can't be good for hdd's 2012-06-01T15:02:54 < upgrdman> i would've had an uptime of maybe 500 days 2012-06-01T15:02:57 < Laurenceb> did you hear about the iphone? 2012-06-01T15:03:01 < upgrdman> ? 2012-06-01T15:03:02 < Laurenceb> apparently its a Smart Hybrid Internet Telephone 2012-06-01T15:03:14 < upgrdman> wtf does that mean 2012-06-01T15:03:21 < upgrdman> smartphone 2012-06-01T15:03:29 < Laurenceb> the acronym 2012-06-01T15:03:34 < upgrdman> o 2012-06-01T15:05:15 < zyp> yeah, I hear that's why they are selling so good 2012-06-01T15:11:09 < Laurenceb> writing iso shit makes me angry 2012-06-01T15:24:02 < upgrdman> why? 2012-06-01T15:29:40 < Laurenceb> cuz its stupid 2012-06-01T15:31:40 < Laurenceb> http://i.imgur.com/yJM68.jpg 2012-06-01T15:32:12 < Laurenceb> its as daft as that all the way through 2012-06-01T15:32:39 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-06-01T15:44:25 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-01T15:52:20 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-01T15:52:23 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-01T16:20:04 < karlp> what's wrong with that cable? 2012-06-01T16:28:53 < Tectu_> how does one calibrate a touchscreen without knowing math like matrixes etc 2012-06-01T16:30:21 < zyp> one learns more math 2012-06-01T16:31:23 < zyp> math is a tool, not knowing enough is like trying to build a house without having a hammer 2012-06-01T16:33:33 < Tectu_> sure 2012-06-01T16:33:39 < Tectu_> but all i find are very very hard algorithms 2012-06-01T16:34:00 < zyp> get a better hammer 2012-06-01T16:44:03 < Laurenceb> di you get kalman running? 2012-06-01T16:44:23 < Laurenceb> is it possible to identify different itg-3150 sensors? 2012-06-01T16:48:12 < Laurenceb> maybe theres some calibration eeprom at undocumented registers 2012-06-01T16:49:04 < zyp> Laurenceb, me? 2012-06-01T16:49:09 < zyp> no, I haven't done more yet 2012-06-01T16:50:16 < Laurenceb> oh 2012-06-01T16:50:43 * Laurenceb needs to load the correct caliobration data when a sensor unit is connected to his logger 2012-06-01T16:50:56 < Laurenceb> i guess the proper way is i2c eeprom 2012-06-01T16:53:23 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-01T16:53:23 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-01T17:01:42 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-01T17:16:37 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has left ##stm32 [] 2012-06-01T17:37:15 < dongs> haha. some trolls on a tarduino forum are suggesting using 2 mega2560s instead of stm32F4 2012-06-01T17:37:30 < dongs> ITS MOARE FASTAR 2012-06-01T17:37:44 < dongs> JUST ADD MORE ARDUINO CORES PROBLEM SOLVED 2012-06-01T17:38:23 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-06-01T17:38:36 < BrainDamage> just duct tape som bycicles together to make a car 2012-06-01T17:38:45 < dongs> yep 2012-06-01T17:40:19 < Laurenceb> http://www.theregister.co.uk/2012/06/01/steve_bong_facebook_opo/ 2012-06-01T17:40:32 < Laurenceb> "The Bong Diet means that for a whole year you only eat animals that are still alive" 2012-06-01T17:41:15 < dongs> haha fecesbook < $30 2012-06-01T17:43:17 < Laurenceb> http://www.theregister.co.uk/2012/06/01/rehab_altimeter/ 2012-06-01T17:43:21 * Laurenceb facepalms 2012-06-01T17:43:36 < Laurenceb> even a bmp085 would be good enough for what they want 2012-06-01T17:44:03 < dongs> haha is that some tarduino there 2012-06-01T17:44:23 < dongs> haha mega32 wtf 2012-06-01T17:44:35 < Laurenceb> filming it through perspex made me wtf 2012-06-01T17:45:01 < Laurenceb> just drill hold in side and epxy through some wires to run i2c to a bmp085 2012-06-01T17:45:10 < Laurenceb> bunch of noobs 2012-06-01T17:47:57 * Laurenceb wonders if you can apply bong diet to humans 2012-06-01T17:54:26 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-01T17:59:05 < Laurenceb> BS EN 60601-1:2006 - 10.1 X-Radiation 2012-06-01T17:59:10 < Laurenceb> lulwut who calls it that 2012-06-01T17:59:25 < karlp> iso standards people 2012-06-01T17:59:48 < karlp> they're called roentgen rays here 2012-06-01T17:59:54 < Laurenceb> heh 2012-06-01T18:00:03 < karlp> and roenntgen pictures 2012-06-01T18:00:16 < zyp> here as well 2012-06-01T18:05:54 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-01T18:09:59 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-01T18:24:37 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has quit [Quit: Leaving] 2012-06-01T18:51:04 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-01T18:51:25 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-01T19:10:35 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-01T19:11:48 < Laurenceb> wohoo 2012-06-01T19:11:58 < Laurenceb> first document completed 2012-06-01T19:12:22 < Laurenceb> at current rate of progress thats 9 months to go 2012-06-01T19:18:55 * Laurenceb joins UKIP 2012-06-01T19:21:43 < Laurenceb> According to Annex A of BS EN60601-1, a HAZARD, as used in the standard, cannot result in HARM until such time as a sequence of events or other circumstances (including NORMAL USE) lead to a HAZARDOUS SITUATION 2012-06-01T19:21:53 < Laurenceb> who wuld hav thunk it 2012-06-01T19:35:00 < dongs> attn Laurenceb http://www.youtube.com/watch?v=MkWWx0YSyM0 2012-06-01T19:35:53 < Laurenceb> o..k.. 2012-06-01T19:36:11 < dongs> or maybe i meant cjbaird but he isnt around. 2012-06-01T19:37:27 < dongs> song by vivitri feat hackkitten 2012-06-01T19:37:27 < emeb> ATTENTION JAPANESE PEOPLE: PLEASE STOP IT - YOU'RE FREAKING THE REST OF US OUT. That is all. 2012-06-01T19:44:23 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-01T20:10:47 -!- ben1066_ [~quassel@unaffiliated/ben1066] has quit [Read error: Connection reset by peer] 2012-06-01T20:10:55 -!- ben1066 [~quassel@unaffiliated/ben1066] has joined ##stm32 2012-06-01T20:12:21 -!- ben1066 [~quassel@unaffiliated/ben1066] has quit [Read error: Connection reset by peer] 2012-06-01T20:12:27 -!- ben1066 [~quassel@unaffiliated/ben1066] has joined ##stm32 2012-06-01T20:13:47 -!- ben1066 [~quassel@unaffiliated/ben1066] has quit [Read error: Connection reset by peer] 2012-06-01T20:13:54 -!- ben1066 [~quassel@host109-152-45-7.range109-152.btcentralplus.com] has joined ##stm32 2012-06-01T20:13:54 -!- ben1066 [~quassel@host109-152-45-7.range109-152.btcentralplus.com] has quit [Changing host] 2012-06-01T20:13:54 -!- ben1066 [~quassel@unaffiliated/ben1066] has joined ##stm32 2012-06-01T20:44:52 < dongs> you guys suck at chatting 2012-06-01T20:47:25 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-06-01T20:47:52 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds] 2012-06-01T20:49:48 < feurig> hello pot? This is the kettel 2012-06-01T20:50:13 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-01T20:51:26 < dongs> it's kettle. 2012-06-01T20:58:22 * Tom_itx smacks dongs with a frying pan. 2012-06-01T20:58:24 < Tom_itx> what was that? 2012-06-01T20:58:58 < Tom_itx> oh and one more thing. 2012-06-01T20:59:03 < Tom_itx> make friends with flyback 2012-06-01T20:59:05 < Tom_itx> :) 2012-06-01T21:30:26 < jon1012> before going back home after a hard week, stm32 powered : http://hackspark.fr/en/32cm-x-16cm-usb-controlled-full-color-rgb-led-matrix-video-panel.html 2012-06-01T21:30:37 < jon1012> have a nice week end :) 2012-06-01T21:33:26 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Quit: Quitte] 2012-06-01T21:43:32 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 265 seconds] 2012-06-01T21:46:58 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-01T21:52:43 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 265 seconds] 2012-06-01T21:53:18 -!- TeknoJuce [~TeknoJuce@bas1-london15-1279301811.dsl.bell.ca] has joined ##stm32 2012-06-01T21:53:18 -!- TeknoJuce [~TeknoJuce@bas1-london15-1279301811.dsl.bell.ca] has quit [Changing host] 2012-06-01T21:53:18 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-01T22:02:16 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Disconnected by services] 2012-06-01T22:02:17 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-01T22:02:32 -!- mode/##stm32 [+v Steffann] by ChanServ 2012-06-01T22:04:14 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-06-01T23:04:44 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds] 2012-06-01T23:26:19 -!- jon1012 [~jon@alf94-12-88-161-74-128.fbx.proxad.net] has joined ##stm32 2012-06-01T23:37:10 -!- FUZxxl [~fuz@no.spaceleft.net] has joined ##stm32 2012-06-01T23:37:19 < FUZxxl> Hello! ANybody out there? 2012-06-01T23:39:37 < blkcat> nope. :D 2012-06-01T23:41:55 < jon1012> hi 2012-06-01T23:58:28 -!- _Shurik_ [~akronberg@64.31.191.194] has quit [Quit: 73s] --- Day changed Sat Jun 02 2012 2012-06-02T00:16:17 <+izua> just nod if you can hear me 2012-06-02T00:17:02 < BrainDamage> is there anyone at home? 2012-06-02T00:24:19 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 245 seconds] 2012-06-02T00:24:42 < FUZxxl> Hlloello! 2012-06-02T00:25:00 < FUZxxl> I have an stm32l discovery board. 2012-06-02T00:25:20 < FUZxxl> I use linux, I just started 2012-06-02T00:25:28 < FUZxxl> I accidentially overwrote the demo software. 2012-06-02T00:25:49 < FUZxxl> Does anybody know where I can get a blob of the original demo software to flash onto the device? 2012-06-02T00:25:59 < FUZxxl> flyback-: What do you mean? 2012-06-02T00:26:16 < FUZxxl> yeah 2012-06-02T00:26:23 < FUZxxl> There are some linux tools for this device. 2012-06-02T00:26:32 < FUZxxl> I actually don't have any of the WIndows tools installed. 2012-06-02T00:27:29 < FUZxxl> flyback-: Do you know where I can get a binary of those demo programs? The "firmware package" ships sources, but, lacking a Makefile, I wasn't able to compile them. 2012-06-02T00:28:12 < FUZxxl> Germany 2012-06-02T00:28:58 < FUZxxl> The problem is: The device is not mine. I tried one of the demos infrom the linux utils, but it apparently got flashed onto the chips 2012-06-02T00:29:14 < FUZxxl> All other demos did just run from RAM, just using gdb 2012-06-02T00:31:29 < FUZxxl> GDB apparaently sees no reason to ask if one overwrites the flash memory... 2012-06-02T00:37:43 -!- jon1012 [~jon@alf94-12-88-161-74-128.fbx.proxad.net] has quit [Remote host closed the connection] 2012-06-02T00:38:02 < zyp> of course it doesn't, it would get tedious since you're doing that a lot of times in a normal session 2012-06-02T00:38:48 -!- Laurenceb_ [~Laurence@host86-168-105-99.range86-168.btcentralplus.com] has joined ##stm32 2012-06-02T00:39:07 < FUZxxl> zyp: Yeah... Proably. It just comes in a little bit unexpected. Now, the device just blinks... 2012-06-02T00:39:19 < FUZxxl> Do you know where I can get a blob of the original firmaware from? 2012-06-02T00:39:27 < zyp> http://www.st.com/internet/com/SOFTWARE_RESOURCES/SW_COMPONENT/FIRMWARE/stm32l-discovery_fw_pack.zip <- I'd assume that the default firmware is found in here 2012-06-02T00:43:23 < zyp> ah, right, just source 2012-06-02T00:44:33 < zyp> ah, no, there are compiled files for AN3413 and AN3964 in there 2012-06-02T00:45:27 < zyp> I guess it ships with one of those then? 2012-06-02T00:46:31 < zyp> yeah, databrief says it ships with AN3413 2012-06-02T00:46:59 < zyp> so you can just flash Projects/AN3413-Current_consumption_touch_sensing/Binary/STM32L-Discovery.hex from that package 2012-06-02T00:49:02 < Laurenceb_> its quite clever 2012-06-02T00:49:16 < Laurenceb_> it doesnt really have touch hardware 2012-06-02T00:49:33 < Laurenceb_> its abusing the analogue mux as a charge pump 2012-06-02T00:49:54 < FUZxxl> zyp: Thank you! 2012-06-02T00:50:01 < FUZxxl> Do yo know how to flash it using gdb? 2012-06-02T00:50:43 < zyp> no, I've never flashed a .hex, can't you just load it like it were an .elf? 2012-06-02T00:50:53 < FUZxxl> let me try... 2012-06-02T00:52:14 < FUZxxl> Yeah! It works!!! 2012-06-02T00:52:17 < FUZxxl> xD 2012-06-02T00:52:29 < zyp> glad I could help 2012-06-02T00:52:43 < FUZxxl> Thank you so much! 2012-06-02T00:52:58 < Laurenceb_> using texane? 2012-06-02T00:56:04 < FUZxxl> Laurenceb_: Yeah 2012-06-02T00:56:12 < Laurenceb_> cool 2012-06-02T00:56:24 < FUZxxl> I want to check out what is possible with that board. 2012-06-02T00:56:37 < FUZxxl> I'm new to microcontrollers and such stuff. 2012-06-02T00:56:59 < FUZxxl> I just found out, the lcd demo shipped with the texane package is buggy. 2012-06-02T00:57:19 < FUZxxl> It always displays some random garbage inbetween and at the end. 2012-06-02T00:57:26 < zyp> lots of the texane demos are 2012-06-02T00:57:31 < FUZxxl> ANd if I change the string, it sometimes stops working... 2012-06-02T00:58:01 < FUZxxl> Well, it seems like he just took the lib from said package and implemented his lcd demo atop it. 2012-06-02T00:58:10 < zyp> likely 2012-06-02T00:58:10 < FUZxxl> That's why I wonder why it fails. 2012-06-02T00:58:25 < FUZxxl> I guess it's because of gcc "optimizing" away behavior... 2012-06-02T00:58:28 < Laurenceb_> the st stuff is known to have bugs 2012-06-02T00:58:44 < zyp> I don't have experience myself with them, but karlp claims they are pretty bad and that you're better off looking at other demos 2012-06-02T00:59:07 < FUZxxl> zyp: Where can I get demos? 2012-06-02T00:59:14 < FUZxxl> Is there a good tutorial about that stuff? 2012-06-02T00:59:34 < zyp> not that I know of, ask karlp 2012-06-02T00:59:41 < FUZxxl> I thought about implementing "Simon Says" as an excercise, o understand how it works. 2012-06-02T00:59:50 < zyp> he usually suggests something here and there, and then looking at libopencm3 2012-06-02T01:00:01 < FUZxxl> okay 2012-06-02T01:03:05 < FUZxxl> Do you know how to tell objcopy that the binary dump is ARM code? 2012-06-02T01:03:32 < zyp> I've done it before 2012-06-02T01:04:14 < zyp> you use -B with some value, IIRC 2012-06-02T01:04:19 < FUZxxl> Yeah. 2012-06-02T01:04:27 < FUZxxl> So, I have that .hex firmware file. 2012-06-02T01:04:36 < zyp> -B elf32-littlearm, or something like that 2012-06-02T01:04:44 < FUZxxl> I run the following command (from the summon-arm-toolchain package): 2012-06-02T01:05:17 < FUZxxl> arm-none-eabi-objcopy -I ihex -B arm -O elf-little STM32L-Discovery.hex STM32L-Discovery.elf 2012-06-02T01:05:51 < FUZxxl> Well, if I run file on that elf file, it reports "unknown architecture" 2012-06-02T01:06:31 < zyp> what does readelf say? 2012-06-02T01:07:10 < FUZxxl> ABI: unknown, Machine: none 2012-06-02T01:07:37 < zyp> ah, right 2012-06-02T01:08:01 < zyp> well, just read the objcopy man page and try stuff until you get it right 2012-06-02T01:08:05 < FUZxxl> okay 2012-06-02T01:08:16 < zyp> I don't know anything more specific than what you already did 2012-06-02T01:09:38 < FUZxxl> okay. Thank you! 2012-06-02T01:10:42 < FUZxxl> Is there a tutorial on how IO works with ARM? 2012-06-02T01:11:10 < FUZxxl> I'm especially curious about the lcd. It blinks even if the processor is haltet remotely... 2012-06-02T01:11:41 < Laurenceb_> yeah thats as just the core is halted 2012-06-02T01:12:38 < FUZxxl> okay... 2012-06-02T01:13:14 < FUZxxl> But, what controls the panel than? The connection scheme didn't show any other controller for it (did I miss something?) 2012-06-02T01:13:55 < zyp> I guess stm32l contains an lcd controller? 2012-06-02T01:14:51 < zyp> yep 2012-06-02T01:14:57 < FUZxxl> stm32l - s that the processor or the board? 2012-06-02T01:15:10 < zyp> that is the microcontroller chip on the board 2012-06-02T01:15:17 < zyp> or rather, the microcontroller family 2012-06-02T01:15:46 < zyp> I suggest you have a look at the stm32l reference manual 2012-06-02T01:15:47 < zyp> http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/REFERENCE_MANUAL/CD00240193.pdf 2012-06-02T01:16:49 < zyp> remember that a microcontroller is more than just a cpu, it's pretty much a one-chip-computer, containing both flash, ram and various other peripherals 2012-06-02T01:17:20 < zyp> and even if you halt the cpu, it's just the cpu that gets halted 2012-06-02T01:18:34 < zyp> (some peripherals can be configured to halt along with the cpu to assist debugging, but generally they run fully independent of the cpu) 2012-06-02T01:18:49 < FUZxxl> okay. 2012-06-02T01:19:02 < FUZxxl> Thank you for the information! 2012-06-02T01:19:11 < zyp> no problems 2012-06-02T01:21:54 < FUZxxl> If I'd try to do that LCD stuff on my own (w/o that library), would that be similiar to shooting yourself in the foot? 2012-06-02T01:22:10 < zyp> likely not 2012-06-02T01:22:20 < zyp> let's have a look at chapter 15 in that reference manual 2012-06-02T01:23:28 < zyp> ok, looking at the registers of the lcd controller, it looks very simple 2012-06-02T01:24:06 < zyp> a few control registers to select mode of operation, and then just a bunch of registers containing the value you want for each segment 2012-06-02T01:24:52 < FUZxxl> Sorry, my internet is a little it slow right now (24 kb/s)... 2012-06-02T01:25:18 < FUZxxl> I haven't yet received the manauual. 2012-06-02T01:25:34 < zyp> do you have any experience from other microcontrollers? 2012-06-02T01:25:59 < FUZxxl> Nope. 2012-06-02T01:26:12 < zyp> do you understand memory-mapped registers? :p 2012-06-02T01:28:45 < FUZxxl> I understand what memory mapping is and that certain magic addresses are mapped to hardware functions 2012-06-02T01:29:17 < zyp> good 2012-06-02T01:29:35 < zyp> every peripheral have it's own block of memory mapped registers 2012-06-02T01:29:51 < FUZxxl> okay. 2012-06-02T01:29:58 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2012-06-02T01:30:09 < FUZxxl> The spec probably gives some information about the addresses... 2012-06-02T01:30:32 < zyp> each peripheral have it's own chapter in the reference manual, and the last section of each chapter contains a description of all those registers 2012-06-02T01:30:52 < zyp> so if you are working directly with the peripheral registers, that's where you find the info you need 2012-06-02T01:31:04 < FUZxxl> okay. That looks like what I need. 2012-06-02T01:31:49 < FUZxxl> Does the board also have some things to implement a sleep() like functionality without needing to use empty loops? 2012-06-02T01:32:03 < zyp> yes 2012-06-02T01:32:19 < FUZxxl> That's good. 2012-06-02T01:32:40 < zyp> the cpu core has a systick timer, so you can use that to wait until it has reached a certain value 2012-06-02T01:35:41 < zyp> http://cgit.jvnv.net/suzumebachi/tree/os/time.h?h=stm32f4 <- in my application I'm doing it like this 2012-06-02T01:35:59 < FUZxxl> okay 2012-06-02T01:36:08 < zyp> tick() is called once every millisecond, and increases systime which is a millisecond counter 2012-06-02T01:36:45 < zyp> and when sleep() is called, it calculates which value it would have to wait until, and remains in the loop until that value is reached 2012-06-02T01:37:04 < zyp> I'm doing multithreading, so Thread::yield() switches to another thread while sleeping 2012-06-02T01:37:49 < FUZxxl> okay 2012-06-02T01:38:16 < zyp> if you don't have other threads, i.e. nothing else to do while waiting, you could just have an empty loop body there 2012-06-02T01:38:21 < FUZxxl> Wait... this is C++ code. 2012-06-02T01:38:28 < zyp> yes, I'm writing C++ 2012-06-02T01:38:43 < FUZxxl> How does it look like on a lower level? Is your code hiding hardware details? 2012-06-02T01:38:52 < zyp> it would be the same in C, except you can't wrap it up in a class like that 2012-06-02T01:39:43 < zyp> that particular class has all methods static, so it doesn't really do anything except provide a namespace and give systime private visibility 2012-06-02T01:39:58 < FUZxxl> okay. 2012-06-02T01:40:36 < FUZxxl> How can one ensure that tick() is called every millisecond? 2012-06-02T01:40:47 < zyp> it's done by the systick interrupt 2012-06-02T01:41:14 < zyp> http://cgit.jvnv.net/suzumebachi/tree/hal/fault.cpp <- which in my code is currently located here 2012-06-02T01:41:14 < FUZxxl> okay... 2012-06-02T01:41:19 < FUZxxl> I'm confused 2012-06-02T01:42:18 < zyp> I'm configuring the systick timer to give me an interrupt every millisecond, which calls tick() that serves as the base for the rest of the timing stuff 2012-06-02T01:42:32 < FUZxxl> okay. 2012-06-02T01:42:35 < FUZxxl> That makes sense. 2012-06-02T01:42:59 < zyp> it might not be the best way to do stuff, but currently it works for me 2012-06-02T01:43:35 < Thorn> Use __sync_lock_test_and_set() for spinlocks on ARM, if available. This function replaces our previous use of the SWPB instruction, which is deprecated and not available on ARMv6 and later. Reports suggest that the old code doesn't fail in an obvious way on recent ARM boards, but simply doesn't interlock concurrent accesses, leading to bizarre failures in multiprocess operation. 2012-06-02T01:43:43 < FUZxxl> Well, it's certainly better than spinning loops 2012-06-02T01:43:44 < Thorn> ^^ from postgresql release notes 2012-06-02T01:44:06 < zyp> Thorn, huh? :p 2012-06-02T01:44:51 < Thorn> looks like somebody failed in a pretty spectacular fashion 2012-06-02T01:44:57 < zyp> Thorn, __sync_lock_test_and_set is probably based on ldrex/strex 2012-06-02T01:45:03 < zyp> http://cgit.jvnv.net/suzumebachi/tree/os/mutex.h <- similar to this 2012-06-02T01:45:36 < FUZxxl> zyp: Is there also an instruction listening included in the spec you linked? 2012-06-02T01:45:53 < zyp> FUZxxl, no, that's available from ARM 2012-06-02T01:46:12 < zyp> the cpu in stm32l is a normal cortex-m3 2012-06-02T01:46:31 < zyp> actually, I think ST has it's own document for that too 2012-06-02T01:46:47 < zyp> http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/PROGRAMMING_MANUAL/CD00228163.pdf <- here it is 2012-06-02T01:47:27 < FUZxxl> Thank you! 2012-06-02T01:47:48 < FUZxxl> I love assembly programming, but I always fail to find a plain instruction listening. 2012-06-02T01:48:37 < FUZxxl> It's crazy... When I learned amd64, there were lots of tutorials, but none actually gave a full detailed listening of all instructions (the only thing I needed) 2012-06-02T01:48:38 < zyp> then you need to get better at locating/reading documentation ;) 2012-06-02T01:48:55 < FUZxxl> zyp: Yeah. That one's difficult. 2012-06-02T01:49:21 < zyp> oh, intel provides documents containing all x86/64 instructions 2012-06-02T01:49:38 < zyp> I got a copy of them somewhere 2012-06-02T01:50:03 < zyp> those are a few thousand pages each, and the instruction listing is so huge that it's split across two of those :p 2012-06-02T01:50:50 < FUZxxl> zyp: And that's the problem. Why can't they make developer-friendly html-documents with proper indices and an explanation of the semantics that is actually understandable. 2012-06-02T01:51:06 < FUZxxl> Same thing for the docu for their intrinsics. 2012-06-02T01:51:26 < Thorn> I had those intel docs somewhere too. they should be issued to anybody who thinks ARM ARM is too complex to understand and/or use 2012-06-02T01:51:28 < zyp> http://www.intel.com/content/www/us/en/processors/architectures-software-developer-manuals.html <- here they are 2012-06-02T01:51:46 < BrainDamage> I prefer pdf docs to html docs 2012-06-02T01:51:51 < zyp> oh, looks like it got split into three now; 2A, 2B, 2C 2012-06-02T01:51:52 < BrainDamage> and pdf can still have indices 2012-06-02T01:51:54 < FUZxxl> I have them on my machine. But.. you know... I also have other hobbies 2012-06-02T01:52:06 < zyp> :) 2012-06-02T01:52:30 < zyp> I've played with writing a small kernel for x86 before 2012-06-02T01:53:25 < zyp> it's a bit harder than cortex-m, virtual memory adds a whole new level of complexity :p 2012-06-02T01:53:31 < FUZxxl> zyp: Well, I guess you don't need to understand what VPERMPD does for writing a kernel... 2012-06-02T01:53:52 < FUZxxl> zyp: I understand that actually pretty good. 2012-06-02T01:54:00 < FUZxxl> I did MMIX as an introduction. 2012-06-02T01:54:13 < FUZxxl> Knuth did a good job there. That thing has a nice MMU 2012-06-02T01:54:33 < zyp> MMIX? 2012-06-02T01:55:09 < FUZxxl> MMIX is an ISA developed by Donald E. Knuth for his "The Art of Computer Programming" series. 2012-06-02T01:55:19 < zyp> ah 2012-06-02T01:55:21 < FUZxxl> It's a pretty nice RISC CPU with some unique features. 2012-06-02T01:55:29 < FUZxxl> Streamlined to be educative. 2012-06-02T01:55:44 < FUZxxl> It has some crazy things like register renaming as a calling convention 2012-06-02T01:56:33 < FUZxxl> Oh nice... the Programmers' manual is just 150 pages... 2012-06-02T01:56:37 < FUZxxl> That's cool. 2012-06-02T01:56:49 < zyp> it just describes the cpu 2012-06-02T01:56:58 < zyp> and cortex-m3 is a pretty simple architecture 2012-06-02T01:57:40 < FUZxxl> yeah... 2012-06-02T01:57:45 < FUZxxl> So nice... 2012-06-02T01:57:51 < FUZxxl> How many different instructions? 2012-06-02T01:58:22 < zyp> yes, the simplicity of the arm and thumb ISA is the beauty of the ARM architecture :p 2012-06-02T01:58:26 < FUZxxl> yeah. 2012-06-02T01:58:29 < zyp> don't knwo 2012-06-02T01:58:32 < Thorn> who cares about the number of instructions 2012-06-02T01:58:40 < FUZxxl> Can I do things like thumb interworking with that processor? 2012-06-02T01:58:50 < zyp> I don't know them all, I just refer to the reference if i need to work with them 2012-06-02T01:58:55 < zyp> thumb interworking? 2012-06-02T01:59:11 < zyp> is that switching between arm and thumb? 2012-06-02T01:59:11 < FUZxxl> You can mix thumb and non-thumb instructions on some modells. 2012-06-02T01:59:12 < Thorn> FUZxxl: no ARM mode -> no interworking 2012-06-02T01:59:19 < zyp> what Thorn said 2012-06-02T01:59:28 < FUZxxl> Thorn: It only has thumb instructions??? 2012-06-02T01:59:33 < zyp> cortex-m only implements thumb 2012-06-02T01:59:37 < FUZxxl> okay. 2012-06-02T01:59:39 < Thorn> -2 2012-06-02T01:59:40 < FUZxxl> Nice to know. 2012-06-02T01:59:45 < Thorn> quiz: what ARM CPU doesn't support ARM ISA? 2012-06-02T02:00:11 < zyp> thumb is also an ARM ISA, but not _the_ ARM ISA :p 2012-06-02T02:00:35 < FUZxxl> okay. 2012-06-02T02:00:46 < FUZxxl> I'm confused. 2012-06-02T02:01:14 < zyp> oh, and trying to switch to switch to arm mode will cause a UsageFault, due to INVSTATE, rumor has it that a lot of hairs have been pulled due to that :p 2012-06-02T02:01:20 < zyp> -switch to 2012-06-02T02:01:57 < Thorn> blx -> branch with link and crash 2012-06-02T02:02:09 < zyp> mostly happens if your toolchain is broken so it links to arm-libraries rather than thumb-libraries 2012-06-02T02:02:22 < FUZxxl> hehe 2012-06-02T02:04:42 < zyp> also, I like you, you sound skilled… stay, learn and start helping others ;) 2012-06-02T02:04:59 < Thorn> btw cortex-m1 is actually free for actel fpgas 2012-06-02T02:05:26 < FUZxxl> Thank you! 2012-06-02T02:05:51 < FUZxxl> You know, I'm just a highschool student. I got this device from somebody who did Atmels before. 2012-06-02T02:06:19 < FUZxxl> He want's me to find out for him how to do lowlevel stuff on this thing... 2012-06-02T02:06:41 < FUZxxl> Pretty interesting, this device. 2012-06-02T02:06:44 < FUZxxl> One more question: 2012-06-02T02:07:01 < FUZxxl> The discovery board features a six-digit 14-segment display. 2012-06-02T02:07:30 < FUZxxl> The chip's spec only says something about seven-segment displays. Are there any tricks involved? 2012-06-02T02:08:34 < zyp> no idea, let's check the documentation again 2012-06-02T02:08:59 < FUZxxl> hehe 2012-06-02T02:09:24 < zyp> reference manual says that the LCD controller can run up to 44x4 or 40x8 matrices of lcd segments 2012-06-02T02:09:44 < FUZxxl> okay. 2012-06-02T02:10:03 < FUZxxl> IIRC the display is using a 40x8 matrix. 2012-06-02T02:10:26 < Laurenceb_> we used cortex-m3 on vertex4 at the place i used to work 2012-06-02T02:10:33 < Laurenceb_> but that certainly wasnt free 2012-06-02T02:10:44 < zyp> FUZxxl, looks like 24x4 in the schematic 2012-06-02T02:11:02 < zyp> I'm seeing COM0-3 and SEG0-23 in the schematic 2012-06-02T02:11:12 < FUZxxl> hm... 2012-06-02T02:11:20 < FUZxxl> okay... 2012-06-02T02:11:53 < FUZxxl> It has 6*16 different parts to light up independently 2012-06-02T02:12:06 < zyp> ah, it says that in the description as well 2012-06-02T02:12:07 < FUZxxl> Yeah. That is 24*4. 2012-06-02T02:12:07 < zyp> LCD (24 segments, 4 commons) 2012-06-02T02:13:05 < FUZxxl> nice. 2012-06-02T02:13:12 < FUZxxl> I'm really tired now. 2012-06-02T02:13:15 < FUZxxl> See you tomorrow! 2012-06-02T02:13:21 < FUZxxl> Thanks for all the help! 2012-06-02T02:13:43 < Thorn> Laurenceb_: m3? is it available for fpgas? 2012-06-02T02:13:51 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-02T02:16:33 < zyp> ah, table 6 in discovery board datasheet lists the mappings of commons to segments 2012-06-02T02:18:32 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 244 seconds] 2012-06-02T02:18:34 < FUZxxl> oh really? 2012-06-02T02:18:37 < FUZxxl> That's nice. 2012-06-02T02:19:07 < FUZxxl> YOu mean this one: http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/USER_MANUAL/DM00027954.pdf 2012-06-02T02:19:16 < zyp> yes, check page 23 2012-06-02T02:19:24 < FUZxxl> okay 2012-06-02T02:19:28 < FUZxxl> It's loading... 2012-06-02T02:19:55 < zyp> so what you end up with is that each bit in one of the data registers of the lcd controller controls the state of one individual segment of the display 2012-06-02T02:20:19 < FUZxxl> yeah 2012-06-02T02:20:39 < FUZxxl> So if I want to change the displays content, I just write some data into those registers? 2012-06-02T02:20:46 < zyp> exactly 2012-06-02T02:21:26 < FUZxxl> nice. 2012-06-02T02:21:30 < zyp> you'd have to write a function to translate letters into which segments shoult be set if you want to write text 2012-06-02T02:21:38 < FUZxxl> That makes that bloaty API almost redundant. 2012-06-02T02:21:48 < FUZxxl> zyp: That shouldn't be too difficult. 2012-06-02T02:22:01 < zyp> nah, mostly table lookup 2012-06-02T02:22:20 < FUZxxl> I think the best way is to put a short chars[256] into my program.. 2012-06-02T02:22:27 < zyp> probably a good exercise to get used to the platform 2012-06-02T02:22:55 < FUZxxl> yeah. 2012-06-02T02:23:03 < FUZxxl> I'm gonna tr that tomorrow. 2012-06-02T02:24:29 < FUZxxl> good night, see you! 2012-06-02T02:35:48 < Laurenceb_> Thorn: not unless you payt 2012-06-02T02:35:59 < Laurenceb_> it was the most disorganised mess ever 2012-06-02T02:37:10 < Laurenceb_> - the setup for using it from arm 2012-06-02T02:37:55 < Laurenceb_> spent ages on phone to arm trying to make it work :P 2012-06-02T02:38:57 < Thorn> so it actually was m3, not m1? why? m1 is (supposed to be) optimized for fpgas 2012-06-02T02:39:13 < Laurenceb_> i dont know, i wasnt that involved in the project even 2012-06-02T02:39:23 < zyp> then it was probably m1 2012-06-02T02:39:29 < Laurenceb_> lol 2012-06-02T02:39:37 < Laurenceb_> maybe - i seem to remeber M3 2012-06-02T02:55:52 -!- _Shurik_ [~akronberg@64.31.191.194] has joined ##stm32 2012-06-02T03:07:39 -!- Laurenceb_ [~Laurence@host86-168-105-99.range86-168.btcentralplus.com] has quit [Ping timeout: 245 seconds] 2012-06-02T03:40:33 < dongs> http://static.rcgroups.net/forums/attachments/3/2/4/0/5/7/a4905920-1-DSCN7690.JPG 2012-06-02T04:06:46 < zyp> did he barf on it during soldering? 2012-06-02T04:07:45 < zyp> so, I'm assuming this is the same osd guy? looks like he changed to another type of flux :p 2012-06-02T04:26:26 < dongs> yes 2012-06-02T04:26:53 < dongs> I wonder how many more years its going to take him to finish making a DC/DC converter tha works 2012-06-02T04:36:04 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Read error: Operation timed out] 2012-06-02T05:34:30 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-02T05:53:39 < upgrdman> i have to run stlink as root to upload firmware, any idea what i need to change to allow normal users? 2012-06-02T05:55:04 < BrainDamage> you need to add a udev rule 2012-06-02T05:55:09 < BrainDamage> there's the files in the stlink repo 2012-06-02T05:55:19 < BrainDamage> copy them to /etc/udev/rules.d 2012-06-02T05:55:26 < BrainDamage> and restart udev 2012-06-02T05:57:37 < upgrdman> o 2012-06-02T06:14:13 -!- blkcat [~colin@cider.blkcat.net] has quit [Remote host closed the connection] 2012-06-02T06:31:17 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32 2012-06-02T06:35:48 -!- cjbaird [~cjb@ppp121-44-125-219.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-02T06:49:33 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-02T06:52:22 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Client Quit] 2012-06-02T07:15:04 -!- ziph [~ziph@office.bitplantation.com] has quit [Quit: ziph] 2012-06-02T07:30:02 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-02T07:42:35 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-02T07:48:17 < dongs> http://www.silabs.com/products/mcu/usb/Pages/SiM3U1xx.aspx 2012-06-02T07:52:37 < upgrdman> what the difference between a .bin and a .elf? 2012-06-02T08:00:08 < cjbaird> bin: raw binary data, elf: structured format, aka "xml for compiler output" 2012-06-02T08:01:24 < cjbaird> https://en.wikipedia.org/wiki/Executable_and_Linkable_Format 2012-06-02T08:05:09 < dongs> this SiLabs M3 shit looks pretty nice 2012-06-02T08:05:15 < dongs> 300mA drive pins 2012-06-02T08:05:38 < dongs> and looks liek it runs off 5V 2012-06-02T08:05:39 < dongs> hmmmmmmm 2012-06-02T08:05:50 < dongs> very neat 2012-06-02T08:06:21 < cjbaird> Next you be telling us it's available in DIP.. 2012-06-02T08:06:36 < dongs> haha 2012-06-02T08:06:41 < dongs> and it has awesome silabs pin remapping 2012-06-02T08:06:52 < dongs> http://www.silabs.com/products/mcu/Pages/crossbar-architecture.aspx#crossbar 2012-06-02T08:07:18 < dongs> that is pretty awesome. 2012-06-02T08:08:17 < R2COM> how much 2012-06-02T08:08:19 < R2COM> $ 2012-06-02T08:08:27 < dongs> a bit more expensive than comparable stm32 2012-06-02T08:08:31 < dongs> http://www.digikey.com/product-detail/en/SIM3U157-B-GM/336-2211-ND/2795713 2012-06-02T08:08:33 < dongs> still cheacp 2012-06-02T08:09:14 < R2COM> so what is it good for 2012-06-02T08:09:16 < R2COM> different 2012-06-02T08:09:21 < R2COM> looking at datasheet 2012-06-02T08:09:29 < cjbaird> Actually, I'm surprised that the crossbar thing wasn't already being done.. considering how big a PITA routing was for large chip since the year dot.. (probably patented to all hell) 2012-06-02T08:09:52 < dongs> eh timers are kinda shitty on it 2012-06-02T08:09:59 < dongs> o wait no 2012-06-02T08:10:12 < dongs> 4x16+2x16+6ch motor timer 2012-06-02T08:10:21 < dongs> better than similar package stm32 2012-06-02T08:10:33 < R2COM> crossbar... 2012-06-02T08:10:42 < R2COM> hmm 2012-06-02T08:10:44 < R2COM> well... 2012-06-02T08:10:56 < R2COM> dont see huge need in that 2012-06-02T08:11:25 < upgrdman> cjbaird, so does that mean an ELF has not been linked? 2012-06-02T08:11:49 < upgrdman> or not converted to assembly? 2012-06-02T08:11:58 < dongs> mm 40pin qfn 2012-06-02T08:12:41 < dongs> evenm 92lga isnt so bad 2012-06-02T08:12:47 < dongs> you can route it on 2 layers 2012-06-02T08:22:59 < cjbaird> u: ELF files usually have been linked. It's a resource format for programs-- "this is the starting address, this next chunk is the program executible text, this chunk is the initalized data that goes into RAM, here's the symbol table that a debugger will need, ..." 2012-06-02T08:25:59 < upgrdman> o ok 2012-06-02T08:26:57 < upgrdman> and bin is what gets written to flash? and an elf is used to generate the bin? 2012-06-02T08:33:24 < dongs> BIN THE FLASH 2012-06-02T08:39:44 < cjbaird> pretty-much correct. The "bin" is the .text segment in the elf file. 2012-06-02T09:06:24 < cjbaird> FLASH THE BIN YOU MORONIC FUCKS 2012-06-02T09:27:24 < dongs> sense of tumor 2012-06-02T10:03:16 < upgrdman> i couldn't find any articles that covered setting up the f4discovery board in linux so i wrote a post in my blog. any chance you guys would be willing to read it and let me know if anything seems awkward? http://www.farrellf.com/projects/hardware/2012-06-01%20First%20Steps%20with%20the%20STM32F4%20in%20Linux/ 2012-06-02T10:04:05 < R2COM> hmm 2012-06-02T10:04:45 < R2COM> upgrdman: you using texane stlink? 2012-06-02T10:04:54 < upgrdman> yes 2012-06-02T10:17:07 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-02T10:18:09 < dongs> II'm not sure I understand the reason for installing lunix in a VM on windows to do development. 2012-06-02T10:18:21 < upgrdman> i dont use windows 2012-06-02T10:18:37 < upgrdman> i just setup a vm to keep things separate for now 2012-06-02T10:24:59 -!- LawrenceSeattle [~lawrence@216.243.49.130] has joined ##stm32 2012-06-02T10:25:43 < cjbaird> Create another user account..? 2012-06-02T10:27:17 < upgrdman> :) i guess im the only one that like to use VMs. 2012-06-02T10:27:32 < upgrdman> i try anything new in a VM 2012-06-02T10:28:01 < upgrdman> so if i make some mistake i know it can be completely gone... no messed up system files or trash in ~ 2012-06-02T10:28:42 < R2COM> im using Linux 2012-06-02T10:28:43 < R2COM> no VM 2012-06-02T10:28:47 < R2COM> just Linux 2012-06-02T10:29:13 < upgrdman> i use linux, with vm's for linux and windows when needed 2012-06-02T10:34:20 -!- LawrenceSeattle_ [~lawrence@216.243.49.130] has joined ##stm32 2012-06-02T10:36:35 -!- LawrenceSeattle [~lawrence@216.243.49.130] has quit [Read error: Operation timed out] 2012-06-02T10:36:35 -!- LawrenceSeattle_ is now known as LawrenceSeattle 2012-06-02T11:27:57 -!- LawrenceSeattle [~lawrence@216.243.49.130] has quit [Remote host closed the connection] 2012-06-02T11:28:12 -!- LawrenceSeattle [~lawrence@216.243.49.130] has joined ##stm32 2012-06-02T12:00:56 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-02T12:00:56 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-02T12:06:36 -!- LawrenceSeattle [~lawrence@216.243.49.130] has quit [Quit: LawrenceSeattle] 2012-06-02T12:29:04 -!- pelrun_ [~pelrun@60-241-99-33.static.tpgi.com.au] has joined ##stm32 2012-06-02T12:29:49 -!- CheBuzz [~CheBuzz@76.164.192.124] has quit [Quit: Terminated with extreme prejudice - dircproxy 1.2.0] 2012-06-02T12:30:31 -!- izua [~izua@unaffiliated/izua] has quit [Quit: Pull me under] 2012-06-02T12:35:01 -!- pelrun_ [~pelrun@60-241-99-33.static.tpgi.com.au] has quit [Ping timeout: 244 seconds] 2012-06-02T12:44:22 < upgrdman> if a project is written using just the CMSIS stuff, does that mean it can be moved over to other ARM processors with minimal effort? obviously the other proc would need to meet some spec's, like number of timers, gpios, etc, but other than that... 2012-06-02T12:48:27 -!- CheBuzz [~CheBuzz@76.164.192.124] has joined ##stm32 2012-06-02T12:51:05 < jpa-> upgrdman: not really, unless it is a trivial program 2012-06-02T12:51:13 < upgrdman> ok 2012-06-02T12:51:16 < jpa-> the mappings of dma channels etc. vary between processors 2012-06-02T12:52:03 < jpa-> it is possible to write portable code by making a HAL layer, but CMSIS is not enough to achieve that 2012-06-02T13:35:46 -!- izua [~izua@86.121.85.94] has joined ##stm32 2012-06-02T13:35:46 -!- izua [~izua@86.121.85.94] has quit [Changing host] 2012-06-02T13:35:46 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-02T13:35:47 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-02T13:49:38 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-02T13:51:36 -!- Laurenceb_ [~Laurence@host86-168-105-99.range86-168.btcentralplus.com] has joined ##stm32 2012-06-02T13:53:40 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.] 2012-06-02T14:01:08 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-02T14:09:32 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer] 2012-06-02T14:09:37 < dongs> hello dongs 2012-06-02T14:09:45 < upgrdman> yes, hello dongs 2012-06-02T14:11:14 -!- izua [~izua@86.121.85.94] has joined ##stm32 2012-06-02T14:11:14 -!- izua [~izua@86.121.85.94] has quit [Changing host] 2012-06-02T14:11:14 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-02T14:11:17 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-02T14:12:52 < dongs> fuck 2012-06-02T14:13:01 < dongs> i cant order that silabs shit of course because of export restriction trash on digikjey 2012-06-02T14:13:12 < upgrdman> what stuff 2012-06-02T14:13:22 < dongs> the cortex m3 shit 2012-06-02T14:13:31 < upgrdman> where wont they export to 2012-06-02T14:13:31 < dongs> http://www.digikey.com/product-detail/en/SIM3U167-B-GQ/336-2217-ND/2795719 2012-06-02T14:13:39 < dongs> outside US 2012-06-02T14:13:47 < dongs> looks like its cheaper at mouser anyway 2012-06-02T14:13:49 < dongs> fuck digikey 2012-06-02T14:14:19 < TitanMKD> dongs i have not this limitation as my account is language US ;) 2012-06-02T14:14:28 < dongs> TitanMKD: thats irrelevant 2012-06-02T14:14:37 < upgrdman> isnt that chip way overpriced? 2012-06-02T14:14:39 < dongs> you dont get free shipping and they wont ship it anyway 2012-06-02T14:14:45 < dongs> upgrdman: compared to waht 2012-06-02T14:14:53 < upgrdman> 32f4 2012-06-02T14:14:58 < TitanMKD> dongs ha yes that really su*** :( 2012-06-02T14:15:20 < dongs> upgrdman: it has things f4 doesnt. 2012-06-02T14:15:36 < TitanMKD> dongs like what ? 2012-06-02T14:15:40 < upgrdman> o, such as? 2012-06-02T14:15:50 < dongs> analog comparators, pin crossbar 2012-06-02T14:16:07 < dongs> runs off 5V 2012-06-02T14:16:09 < dongs> has 5V output ios 2012-06-02T14:16:14 < dongs> has high current IOs for motor/fet control 2012-06-02T14:16:20 < dongs> touchsense 2012-06-02T14:16:39 < TitanMKD> but also very expensive and slow 80MHz 2012-06-02T14:17:55 < upgrdman> what are touchsense and pin crossbar 2012-06-02T14:18:10 < dongs> http://www.silabs.com/products/mcu/Pages/crossbar-architecture.aspx#crossbar 2012-06-02T14:19:28 < TitanMKD> dongs i prefer f4 ;) for same price you have cortexM4 and FPU and it is 2 time faster 2012-06-02T14:20:09 < TitanMKD> also ADC of F4 is faster 2012-06-02T14:20:33 < zyp> the question is what is more suited for a particular application 2012-06-02T14:20:39 < TitanMKD> anyway for motor stuff maybe this silabs stuff is better but it's not my requirements 2012-06-02T14:21:24 < TitanMKD> zyp Yes i just hate the market fragmentation 2012-06-02T14:21:40 < upgrdman> speaking of motors, how would you drive a typical FET with a 3V MCU like the f4? Vgs is usually >4V 2012-06-02T14:21:56 < zyp> using a fet driver 2012-06-02T14:21:57 < dongs> Laurenceb_: does digikey/whoever have some GPS antennas with u.FL connector at the end? 2012-06-02T14:22:09 < dongs> upgrdman: see, with this silabs shit you can, it has 5V drive IO. 2012-06-02T14:22:26 < dongs> but yeah use a driver. 2012-06-02T14:22:28 < upgrdman> i understand. i come from the arduino work... 5v logic is nice 2012-06-02T14:22:34 < TitanMKD> dongs but 300mA is a bit low for motor ;) 2012-06-02T14:22:48 < TitanMKD> dongs at startup they can reach more than 2Amps 2012-06-02T14:22:48 < dongs> ... its for driving fet gates 2012-06-02T14:22:50 < dongs> not motor directly 2012-06-02T14:22:52 < dongs> what hte fuck dude. 2012-06-02T14:22:57 < TitanMKD> yes ;) 2012-06-02T14:23:12 < TitanMKD> anyway you need additional hardware in both cases 2012-06-02T14:23:13 < dongs> zyp: some guy was demoing me his awesome CNC today and bragging how he bought this $$ spindle driver 2012-06-02T14:23:15 < upgrdman> that mcu can do 300mA per pin? wow 2012-06-02T14:23:26 < dongs> and im like wat kinda motor is that hes like not really sure 2012-06-02T14:23:31 < dongs> i look around its got 3 wires going to it 2012-06-02T14:23:43 < dongs> i was like no wai is that shit just a brushless esc 2012-06-02T14:23:51 < dongs> and it was spinning and making some terrible whine 2012-06-02T14:23:57 < dongs> so i bust out my FFT and its got a peak right at 4khz 2012-06-02T14:24:11 < dongs> not only is it a shitty fucking brushless esc its also got shitty pwm freq ;p 2012-06-02T14:24:16 < zyp> ha 2012-06-02T14:24:46 < upgrdman> dongs, are the good spindle motors sensored brushless? 2012-06-02T14:24:56 < dongs> this wasnt sensored 2012-06-02T14:25:01 < upgrdman> i know 2012-06-02T14:25:06 < upgrdman> dongs, are the good spindle motors sensored brushless? 2012-06-02T14:25:07 < dongs> i dont know what good, I dont do CNC 2012-06-02T14:25:12 < upgrdman> ok 2012-06-02T14:25:21 < zyp> shouldn't be any need to have small motors sensored 2012-06-02T14:25:36 < dongs> yeah startup at low rpm isnt an issue for spindles 2012-06-02T14:26:11 < upgrdman> so then whats a good spindle motor? a stepper? 2012-06-02T14:26:16 < upgrdman> whats wrong with a 3wire blm 2012-06-02T14:26:20 < dongs> nothing. 2012-06-02T14:26:29 < dongs> he spent probably $300+ on a brushless driver that whines at 4khz 2012-06-02T14:26:33 < upgrdman> o 2012-06-02T14:26:41 < dongs> when it coulda been driven by a $10 chinese ESC 2012-06-02T14:26:53 < upgrdman> hobbyking 2012-06-02T14:26:55 < upgrdman> :) 2012-06-02T14:28:10 < dongs> cool they do have GPS with ufl 2012-06-02T14:28:20 < dongs> http://jp.mouser.com/ProductDetail/Taoglas/AP17F070064A/?qs=QpZVHcK7GhR%252bx8qFNCS%252bxonOe%2fJhw48S 2012-06-02T14:29:00 < dongs> hmm wat else to get 2012-06-02T14:29:04 < dongs> need another $20 for free shipping 2012-06-02T14:31:06 < upgrdman> why do gps antennas have what looks like a ball of solder in the middle? 2012-06-02T14:33:20 < dongs> http://jp.mouser.com/Search/ProductDetail.aspx?R=AP.25F.07.0078Avirtualkey57580000virtualkey960-AP25F070078A at 30dB that shit will pickup signal inside my office hopefully 2012-06-02T14:36:46 < TitanMKD> dongs i have similar problem of non delivery with Flux Cleaner from Mouser :( 2012-06-02T14:36:58 < TitanMKD> dongs they do not want to sell them outside of USA 2012-06-02T14:37:47 < dongs> i buy that shit locally 2012-06-02T14:37:51 < dongs> spray stuff its really nice 2012-06-02T14:41:30 < zyp> upgrdman, because that's where the connector is soldered 2012-06-02T14:41:50 < zyp> it's produding through a hole in the antenna and soldered on the top 2012-06-02T14:42:08 < zyp> conductor, not connector 2012-06-02T14:45:41 < upgrdman> ok 2012-06-02T14:46:03 < upgrdman> and gps antenna dont like like tradition antennas, why? 2012-06-02T14:46:24 < upgrdman> look like* 2012-06-02T14:51:26 < dongs> zyp what you think about that antenna 2012-06-02T14:52:04 < zyp> no idea, probably ok 2012-06-02T14:52:17 < zyp> upgrdman, different usage 2012-06-02T14:52:18 < dongs> it was most expensive one and 30dB gain 2012-06-02T14:52:57 < zyp> upgrdman, what kind of traditional antennas are you thinking of? 2012-06-02T14:54:13 < upgrdman> radio, wifi, tv... 2012-06-02T14:54:56 < dongs> wat else to get from mouser 2012-06-02T14:55:11 < zyp> upgrdman, because you don't receive radio/wifi/tv signals from satellites that move across the sky all the time 2012-06-02T14:55:27 < BrainDamage> even radios can use weird shape antennas 2012-06-02T14:55:39 < BrainDamage> helical, discone, spiral, etc 2012-06-02T14:55:46 < zyp> gps antennas are optimized to cover the entire sky 2012-06-02T14:55:48 < dongs> GPS antennas are patch 2012-06-02T14:56:00 < dongs> a patch antenna for TV?wifi/wahtever also looks same. 2012-06-02T14:56:06 < zyp> and patch antennas are ideal for that 2012-06-02T14:57:01 < zyp> gps is 1.5 GHz, fm radio is 100 MHz, that's a pretty big difference :p 2012-06-02T14:57:13 < upgrdman> ok 2012-06-02T14:57:40 < BrainDamage> well, you can build a patch antenna for 100MHz too, it'd just be a square of 1.5m per side :p 2012-06-02T14:57:57 < zyp> yep 2012-06-02T14:58:37 < zyp> helical gps antennas are also pretty popular 2012-06-02T14:58:55 < zyp> it's used on a lot of handheld units 2012-06-02T15:00:53 < zyp> directional gps antennas aren't feasible, since the satellites are moving all the time, and you're receiving from several of them at the same time 2012-06-02T15:02:22 < zyp> and quarterwave-stuff like the shit used for wifi is also useless, since it has a donut-shaped pattern along the ground, which won't catch satellites passing directly over you 2012-06-02T15:02:40 < upgrdman> ya 2012-06-02T15:03:12 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds] 2012-06-02T15:16:53 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-06-02T15:31:54 < cjbaird> The pstruct command just found its way into my permanent memory.. 2012-06-02T15:32:19 -!- izua [~izua@unaffiliated/izua] has quit [Quit: Lost terminal] 2012-06-02T15:32:22 < zyp> pstruct? 2012-06-02T15:33:09 < cjbaird> "pstruct cpu.h" ... lists the object sizes, alignments, etc. 2012-06-02T15:33:24 < cjbaird> (command-line linux) 2012-06-02T15:34:02 < zyp> hmm, I have it as well, looks like it's bundled with perl 2012-06-02T15:34:39 < cjbaird> Was needing to check how the alignment was happening in some code.. and there just happened to be a utility for doing just that. 2012-06-02T15:35:30 < Tectu_> hello folks 2012-06-02T15:35:35 < zyp> doesn't seem to work with C++ 2012-06-02T16:04:48 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-02T16:08:52 -!- izua [~izua@86.121.85.94] has joined ##stm32 2012-06-02T16:08:52 -!- izua [~izua@86.121.85.94] has quit [Changing host] 2012-06-02T16:08:52 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-02T16:08:55 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-02T16:11:15 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-02T16:13:00 < ratatata> nu 2012-06-02T16:15:01 < Tectu_> nu? 2012-06-02T16:18:41 < Thorn> nu. 2012-06-02T16:27:55 -!- tunebird is now known as mansfeld 2012-06-02T16:27:56 -!- mansfeld [~andrew@web130.webfaction.com] has quit [Changing host] 2012-06-02T16:27:56 -!- mansfeld [~andrew@robopoly/watson] has joined ##stm32 2012-06-02T16:33:20 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-06-02T17:35:41 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-02T17:47:57 -!- TitanMKD is now known as TitanMKD_AW 2012-06-02T18:10:54 < Tectu_> what the hell is nu 2012-06-02T18:11:56 < cjbaird> rot13'd "ah" 2012-06-02T18:12:27 < cjbaird> They're fapping, but don't want to be obvious about it. 2012-06-02T18:16:47 < Tectu_> aah 2012-06-02T18:16:48 < Tectu_> thanks 2012-06-02T18:17:53 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-06-02T18:19:31 -!- cjbaird [~cjb@ppp121-44-125-219.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-02T18:41:24 -!- cjbaird [~cjb@ppp121-44-125-219.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-02T18:51:44 < Laurenceb_> fapfapfapfap 2012-06-02T18:54:05 -!- cjbaird [~cjb@ppp121-44-125-219.lns20.syd6.internode.on.net] has left ##stm32 ["Konversation terminated!"] 2012-06-02T18:56:38 < jpa-> unlike Laurenceb, who has a spectroscope monitoring his blood while fapping 2012-06-02T19:00:44 < BrainDamage> wait, other people don't? 2012-06-02T19:02:01 < Laurenceb_> lol 2012-06-02T19:02:12 < Laurenceb_> lots of motor stuff will run off 300ma 2012-06-02T19:02:17 < Laurenceb_> - the silabs stuff 2012-06-02T19:02:30 < Laurenceb_> ive got a air pump that takes 90ma@3v 2012-06-02T19:02:45 < Laurenceb_> and solenoid valve that takes 120ma@3v 2012-06-02T19:13:36 -!- TitanMKD_AW [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 260 seconds] 2012-06-02T19:35:36 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-02T19:41:37 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-06-02T19:44:23 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 244 seconds] 2012-06-02T19:54:23 < Laurenceb_> http://news.bbcimg.co.uk/media/images/60664000/jpg/_60664249_014922616-2.jpg 2012-06-02T19:54:27 < Laurenceb_> trollface.jpg 2012-06-02T19:55:10 -!- TitanMKD_AW [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-02T19:59:18 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Read error: No route to host] 2012-06-02T19:59:56 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-02T20:02:49 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Client Quit] 2012-06-02T20:03:01 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-02T20:29:25 < BrainDamage> apparently dongs wrote a smd soldering guide. http://www.siliconfarmers.com/smtmanga/ 2012-06-02T20:52:13 -!- TitanMKD_AW is now known as TitanMKD 2012-06-02T21:11:54 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-06-02T21:16:36 < Laurenceb_> his would have loli/hentai illustrations 2012-06-02T21:22:41 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-02T21:26:36 -!- zippe [~Adium@173.11.99.161] has quit [Quit: Leaving.] 2012-06-02T21:27:40 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-06-02T22:02:25 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 256 seconds] 2012-06-02T22:07:15 -!- tavish [~tavish@unaffiliated/tavish] has quit [Read error: Connection reset by peer] 2012-06-02T22:52:59 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: win] 2012-06-02T23:15:45 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-02T23:31:00 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has left ##stm32 [] 2012-06-02T23:31:35 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32 --- Day changed Sun Jun 03 2012 2012-06-03T00:11:13 -!- izua [~izua@86.121.85.94] has joined ##stm32 2012-06-03T00:11:13 -!- izua [~izua@86.121.85.94] has quit [Changing host] 2012-06-03T00:11:13 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-03T00:11:16 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-03T02:49:08 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 240 seconds] 2012-06-03T02:51:49 -!- Laurenceb_ [~Laurence@host86-168-105-99.range86-168.btcentralplus.com] has quit [Ping timeout: 245 seconds] 2012-06-03T03:15:55 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has quit [Ping timeout: 265 seconds] 2012-06-03T03:27:25 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has joined ##stm32 2012-06-03T03:40:50 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 252 seconds] 2012-06-03T03:41:45 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-03T04:08:02 < dongs> BrainDamage: lol'd 2012-06-03T04:19:58 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has quit [Quit: Ex-Chat] 2012-06-03T04:20:29 -!- upgrdman [~upgrdman@71-92-208-122.static.mtpk.ca.charter.com] has joined ##stm32 2012-06-03T04:20:29 -!- upgrdman [~upgrdman@71-92-208-122.static.mtpk.ca.charter.com] has quit [Changing host] 2012-06-03T04:20:29 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has joined ##stm32 2012-06-03T04:41:59 < upgrdman> in the stm stdperiphlib theres lots of empty assert function definitions and i dont see any calls to them. are they just stubs that can be defined and called manually? in other words, can i safely remote them? 2012-06-03T04:42:14 < upgrdman> remove them* 2012-06-03T04:46:18 < zyp> huh? 2012-06-03T04:46:40 < zyp> can you give an example of what you mean? 2012-06-03T04:49:25 < upgrdman> sure 2012-06-03T04:49:44 < upgrdman> http://pastebin.com/CjLjj4YM 2012-06-03T04:50:49 < zyp> ah, it's an handler that will be called if an assertion is failed 2012-06-03T04:51:10 < upgrdman> but does anything make assertions? i dont see any calls 2012-06-03T04:51:14 < zyp> assert() itself is a macro, which will test for a condition and call the defined handler if it fails 2012-06-03T04:51:39 < zyp> if you don't see any assert() anywhere, then no 2012-06-03T04:51:44 < upgrdman> ok 2012-06-03T04:51:50 < upgrdman> thank you 2012-06-03T05:21:29 -!- cjbaird [~cjb@ppp121-44-125-219.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-03T05:34:52 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Ping timeout: 252 seconds] 2012-06-03T05:49:12 < upgrdman> http://pastebin.com/t0W0qeGB changing HSE_VALUE seems to have no affect. (the LEDs blink at the same speed). any ideas? 2012-06-03T05:49:55 < R2COM> nopcode: so, how much do you want to pay for logic-analyzer FPGA board with 16 channels, ? 2012-06-03T05:51:50 < zyp> R2COM, obviously as little as possible :p 2012-06-03T05:52:39 < zyp> R2COM, which speed are we looking at? 2012-06-03T06:02:21 < R2COM> well, im thinking of using it with -2 grade spartan6 2012-06-03T06:02:34 < R2COM> i guess, they might do up to 200MHz 2012-06-03T06:02:38 < R2COM> IO 2012-06-03T06:02:50 < R2COM> so, speed of 100MHz or maybe more then 2012-06-03T06:03:32 < R2COM> i guess enough speed for most microcontroller related shit 2012-06-03T06:04:18 -!- cjbaird [~cjb@ppp121-44-125-219.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-03T06:17:13 < R2COM> just wanted to make sure, i havent yet used stm32 spi, the PB15 pin, stated in pinout description of datasheet as SPI2_MOSI, so from this pin i can give signals OUT to other chips which receive them right? 2012-06-03T06:18:35 < R2COM> i basically want to use my STM32 as a MASTER SPI, the one which writes data to other chips, those chips ONLY receive SPI data, they do not give something back 2012-06-03T06:38:48 < dongs> datasheet is wrong for tat heh 2012-06-03T06:38:58 < R2COM> is it?? 2012-06-03T06:39:00 < R2COM> why? 2012-06-03T06:39:17 < R2COM> im using TQFP64, stm32f405rgt6 2012-06-03T06:41:07 < dongs> MISO: Master In / Slave Out data. This pin can be used to transmit data in slave mode and receive data in master mode. 2012-06-03T06:41:11 < dongs> MOSI: Master Out / Slave In data. This pin can be used to transmit data in master mode and receive data in slave mode. 2012-06-03T06:42:00 < R2COM> well i want my stm32 to be a master, and transmit data to other device 2012-06-03T06:42:49 < dongs> in my project, im receving data on MISO. stm32 is slave,clocked by external device 2012-06-03T06:43:08 < dongs> so thats opposite of wat docs say. 2012-06-03T06:43:24 < dongs> unless im reading it wrong. 2012-06-03T06:43:24 < zyp> really? 2012-06-03T06:43:27 < dongs> yes 2012-06-03T06:43:29 < R2COM> ah darn 2012-06-03T06:43:30 < R2COM> wait 2012-06-03T06:43:33 < R2COM> wrong! 2012-06-03T06:43:33 < zyp> wow 2012-06-03T06:43:53 < dongs> http://bcas.tv/paste/results/lrr4ad32.html 2012-06-03T06:43:59 < R2COM> im looking at reference manual now 2012-06-03T06:44:00 < dongs> i had an error on pcb layout, data input was routed to MOSI 2012-06-03T06:44:05 < zyp> dongs, so MISO is input and MOSI is output regardless of master/slave mode? 2012-06-03T06:44:06 < dongs> and i was getting fuckall 2012-06-03T06:44:22 < dongs> i was getting clock but all zeros in dma buffer 2012-06-03T06:44:25 < R2COM> well..im doing pcb right now 2012-06-03T06:44:36 < dongs> swapped the data pin to MISO and suddenly im getting data OK. 2012-06-03T06:44:46 < dongs> zyp: i dont know, wikipedo also has it swapped 2012-06-03T06:44:53 < zyp> huh? 2012-06-03T06:45:12 < dongs> # SCLK: serial clock (output from master); 2012-06-03T06:45:12 < dongs> # MOSI; SIMO: master output, slave input (output from master); 2012-06-03T06:45:13 < dongs> # MISO; SOMI: master input, slave output (output from slave); 2012-06-03T06:45:29 < zyp> yes, that is correct 2012-06-03T06:45:32 < dongs> right 2012-06-03T06:45:38 < dongs> i mean swapped compared to stm manuala 2012-06-03T06:45:48 < R2COM> so STM manual wrong?! 2012-06-03T06:45:51 < zyp> only for slave mode, or both? 2012-06-03T06:46:07 < dongs> dont know as I've only used slave mode and had this issue 2012-06-03T06:46:35 < zyp> say, what would happen if you hooked two STM32s together, MISO to MISO and MOSI to MOSI, ran one as master and one as slave? 2012-06-03T06:46:45 < zyp> if everything is correct, that should work. 2012-06-03T06:47:20 < R2COM> now im just wondering what configuration would be right for me 2012-06-03T06:47:30 < zyp> I know for sure that master mode is correct on F4, because it works properly with L3GD20 on my board 2012-06-03T06:47:33 < R2COM> i have external digital device, which will have to receive data 2012-06-03T06:47:39 < R2COM> and stm32 will be giving out this data 2012-06-03T06:47:54 < zyp> I have not tried slave mode, but I would be very surprised if that also doesn't work correctly 2012-06-03T06:48:43 < R2COM> zyp, so you use MOSI to OUTPUT the data to another device? 2012-06-03T06:49:05 < zyp> MOSI is used to transfer data from the master to the slave 2012-06-03T06:49:16 < zyp> MISO is used to transfer data from the slave to the master 2012-06-03T06:50:00 < R2COM> ok, if, in my case i want STM32 to generate the clock, and to transfer data to another device, i should use MOSI? (another device does not transfer anything, it just receives data from STM32) 2012-06-03T06:50:10 < zyp> it's named that way, so you always hook MOSI to MOSI and MISO to MISO 2012-06-03T06:50:26 < zyp> yes 2012-06-03T06:50:38 < R2COM> one sec. let me show diagram 2012-06-03T06:50:38 < zyp> in your case you would hook up clock and MOSI 2012-06-03T06:50:46 < zyp> no need for diagram 2012-06-03T06:52:24 < R2COM> http://picpaste.com/pics/serial_timing-77cOK9wi.1338695516.png 2012-06-03T06:52:36 < R2COM> there CCLK and Master DIN come from STM32 2012-06-03T06:52:57 < R2COM> ignore Master DOUT 2012-06-03T06:53:14 < R2COM> and other signals also connected to stm32, but they are not part of SPI module 2012-06-03T06:53:38 < zyp> wait, is «Master DIN» data from master? 2012-06-03T06:53:51 < R2COM> Master DIN is data coming FROM stm32 2012-06-03T06:53:59 < zyp> I'd assume that «Master DIN» were «data input on master» 2012-06-03T06:55:04 < R2COM> well, this is basically configuration of FPGA in slave serial mode 2012-06-03T06:55:18 < R2COM> FPGA is Slave, it receives serial data, from microprocessor 2012-06-03T06:55:20 < zyp> yeah, I just realized that 2012-06-03T06:55:27 < zyp> hmm 2012-06-03T06:55:29 < R2COM> and i, want to use STM32 to give data to it 2012-06-03T06:55:30 < R2COM> BUT! 2012-06-03T06:55:32 < zyp> which document is that? 2012-06-03T06:55:36 < zyp> let me double check it 2012-06-03T06:55:39 < R2COM> i want to use SPI functionality of STM32 to do that 2012-06-03T06:55:42 < R2COM> one sec 2012-06-03T06:55:42 < zyp> because something doesn't make sense there 2012-06-03T06:56:23 < R2COM> http://www.xilinx.com/support/documentation/user_guides/ug380.pdf 2012-06-03T06:56:31 < R2COM> page 27 2012-06-03T06:58:50 < R2COM> so, there is also SPI type configuration for spartan6, which is using some flash prom in SPI mode... but since im not using those FLASH proms, i do not want to use this method! 2012-06-03T06:59:07 < zyp> I get that 2012-06-03T06:59:21 < R2COM> that is why, i am using just Serial Configuration method, BUT... my STM32 is configuring FPGA in Serial Mode utilizing its own SPI protocol 2012-06-03T06:59:41 < zyp> just forget about that diagram, just look at page 26 2012-06-03T06:59:48 < R2COM> 1 sec 2012-06-03T06:59:59 < R2COM> well 2012-06-03T07:00:02 < zyp> SERIAL_OUT on microprocessor is MOSI 2012-06-03T07:00:06 < R2COM> p.26 is just schematics for all stuff 2012-06-03T07:00:21 < zyp> yes, aren't you asking how to hook it up? 2012-06-03T07:00:31 < R2COM> yes 2012-06-03T07:00:43 < zyp> well, there you have it. 2012-06-03T07:00:46 < R2COM> let me tell you exact pins i used on stm32: 2012-06-03T07:01:04 < zyp> no, I can't be bothered to look up a pin reference 2012-06-03T07:01:20 < R2COM> well i just wanted to tell i used MOSI 2012-06-03T07:01:32 < R2COM> pin which is SPI2_MOSI 2012-06-03T07:01:44 < zyp> let CLOCK be a SPI_CLK pin, SERIAL_OUT be the corresponding SPI_MOSI, and the other three is normal gpios 2012-06-03T07:01:50 < dongs> i think that should work... i guess. since i was using miso to RECEIVE 2012-06-03T07:02:24 < R2COM> zyp: thats what i did. i wasnt going to bother you. 2012-06-03T07:02:26 < R2COM> its just 2012-06-03T07:02:28 < zyp> dongs, in slave mode you would use MOSI to receive 2012-06-03T07:02:33 < R2COM> dongs said docs are fucked up 2012-06-03T07:02:42 < R2COM> and i got suspicious 2012-06-03T07:02:43 < R2COM> thats it 2012-06-03T07:02:53 < dongs> zyp, this is clearly not the case 2012-06-03T07:02:58 < dongs> i have external clock + data 2012-06-03T07:03:07 < dongs> connected to SPI1_CLK and SPI1_MISO 2012-06-03T07:03:08 < zyp> dongs, is this F1? 2012-06-03T07:03:11 < dongs> this is the only way it works 2012-06-03T07:03:12 < dongs> no F4 2012-06-03T07:03:16 < dongs> F405 or so 2012-06-03T07:03:36 < zyp> ok, if this is the case it should be listed in the errata 2012-06-03T07:03:49 < dongs> but arent the docs just fucked? 2012-06-03T07:04:12 < zyp> no SPI peripheral in the errata 2012-06-03T07:05:19 < dongs> soa re you saying that is wrong? 2012-06-03T07:05:37 < dongs> also my spi settings are 2012-06-03T07:05:38 < dongs> spi.SPI_Direction = SPI_Direction_1Line_Rx; 2012-06-03T07:05:56 < zyp> oh 2012-06-03T07:06:10 < zyp> that may explain it 2012-06-03T07:06:22 < dongs> why> 2012-06-03T07:06:38 < zyp> 1Line sounds like bidirectional mode 2012-06-03T07:06:49 < zyp> i.e. same pin used for both receiving and transmitting 2012-06-03T07:07:27 < zyp> let me check the reference manual 2012-06-03T07:08:34 < zyp> yes 2012-06-03T07:08:36 < zyp> «In this mode SCK is used for the clock and MOSI in master or MISO in slave mode is used for data communication.» 2012-06-03T07:09:59 < zyp> check 27.3.4 in the reference manual for the details 2012-06-03T07:10:58 < zyp> you're likely running BIDIMODE=1, you probably wanted BIDIMODE=0 2012-06-03T07:11:36 < zyp> and in BIDIMODE=0, slave input would be hooked to MOSI like normal 2012-06-03T07:13:37 < zyp> another way to phrase it is that input is remapped to same pin as output in bidirectional mode, i.e. the opposite of what it would normally be in that configuration 2012-06-03T07:14:44 < zyp> that means that in a receive only setup, you can configure it to read from either pin, should you happen to get it wrong on the board :p 2012-06-03T07:16:59 < R2COM> so, docs happen to be right then? 2012-06-03T07:17:07 < zyp> yep 2012-06-03T07:17:45 < zyp> everything is working as intended, dongs just configured it wrong 2012-06-03T07:21:27 < zyp> there is quite a few errors in the documentation, but something as blatantly wrong as confusing MISO and MOSI would surely not go unnoticed, so you should really check your own code before even suggesting such a thing 2012-06-03T07:27:22 < dongs> blah :( 2012-06-03T07:34:56 < R2COM> zyp, you using L3G42? 2012-06-03T07:35:20 < zyp> no, L3GD20 2012-06-03T07:38:55 < R2COM> hm i see L3GD20 is almost same, just allows you choose different sensivities 2012-06-03T07:38:58 < R2COM> and ranges 2012-06-03T07:39:17 < R2COM> sorry 2012-06-03T07:39:23 < R2COM> L3G42 allows to choose 2012-06-03T07:39:27 < R2COM> L3G20 is fixed 2012-06-03T07:40:09 < zyp> L3GD20, not L3G20 2012-06-03T07:40:27 < zyp> and it has selective range. 2012-06-03T07:47:25 < upgrdman> http://pastebin.com/t0W0qeGB changing HSE_VALUE seems to have no affect. (the LEDs blink at the same speed). any ideas? 2012-06-03T07:49:51 < zyp> you're likely defining a value that's not used anywhere 2012-06-03T07:50:01 < zyp> i.e. you're doing it wrong 2012-06-03T07:50:10 < zyp> are you using chibios? check mcuconf.h 2012-06-03T07:50:45 < upgrdman> no, stm stdperiphlib 2012-06-03T07:51:05 < upgrdman> how do you like chibios? 2012-06-03T07:52:13 < zyp> haven't used it for a year, seems okay though 2012-06-03T07:53:15 < R2COM> is it like RtOS? 2012-06-03T07:53:22 < R2COM> real time operating system? 2012-06-03T07:53:33 < zyp> chibios is an rtos, yes 2012-06-03T07:53:51 < R2COM> i dont see many usage for RTOS on most embedded systems 2012-06-03T07:53:52 < R2COM> really 2012-06-03T07:54:04 < R2COM> unless system will have a user running/doing different stuff on it 2012-06-03T07:54:15 < zyp> ha 2012-06-03T07:54:25 < R2COM> why to put all that shit on a system when you can get away writing just long enough but predefined C program 2012-06-03T07:54:53 < zyp> you've clearly misunderstood the point of an rtos 2012-06-03T07:55:56 < R2COM> i understand it, mostly to handle real time issues like interrupts etc 2012-06-03T07:56:00 < R2COM> and writing data 2012-06-03T07:56:04 < R2COM> while doing something 2012-06-03T07:56:16 < R2COM> what i say, for most applications that can just be done with a program 2012-06-03T07:56:30 < upgrdman> do people still code in assembly for mcu's? 2012-06-03T07:56:57 < zyp> R2COM, what is the difference between a program and using an rtos then? 2012-06-03T07:57:11 < zyp> upgrdman, as for me; only inline 2012-06-03T07:58:05 < R2COM> zyp: well, writing specialized program which handles all real time related things, and still does the job is more efficient and wastefull than putting RTOs on a chip, or am i wrong? 2012-06-03T07:58:36 < zyp> upgrdman, some times you need specific instructions to achieve something, like a context switch, other times the compiler does a bad job of optimizing a very hot code path 2012-06-03T07:58:57 < upgrdman> hot? does that mean time critical? 2012-06-03T07:59:15 < zyp> hot as in «runs a lot» 2012-06-03T07:59:20 < upgrdman> o 2012-06-03T07:59:58 < zyp> inner loops and so on 2012-06-03T08:00:23 < R2COM> *and less wastefull 2012-06-03T08:00:57 < zyp> R2COM, I believe you have the wrong idea of what an rtos is 2012-06-03T08:01:42 < zyp> the os-part of an rtos is mainly multithreading 2012-06-03T08:01:58 < zyp> i.e. the capability to have several threads running at the same time 2012-06-03T08:02:16 < R2COM> ok 2012-06-03T08:02:36 < zyp> and the rt-part is a scheduler that is capable of running those threads subject to realtime constraints 2012-06-03T08:02:58 < R2COM> but...it runs those threads technically *NOT* at the same time 2012-06-03T08:03:00 < R2COM> right? 2012-06-03T08:03:09 < R2COM> in its internals 2012-06-03T08:03:12 < R2COM> it switches 2012-06-03T08:03:25 < zyp> of course they don't run at the same time, you only have one cpu 2012-06-03T08:03:31 < R2COM> yes 2012-06-03T08:03:56 < R2COM> someone pointed me out recently on chips called xmos, they have hardware multithreading supported i guess 2012-06-03T08:04:02 < zyp> the scheduler is controlling which threads to run 2012-06-03T08:04:39 < R2COM> zyp: ok i know that, now what i say is, that there is no need to do that so often in most embedded systems 2012-06-03T08:04:48 < zyp> and the realtime constraints is like «this thread must respond within 1 ms of that happening» 2012-06-03T08:05:01 < R2COM> ok 2012-06-03T08:05:31 < zyp> and in real world control systems, the ability to respond to input within a given deadline can be very critical 2012-06-03T08:06:04 < R2COM> ok, now, why to have an OS do it for you and not just write your code? 2012-06-03T08:07:37 < zyp> because you're likely to have several tasks, some of high priority, some of low priority 2012-06-03T08:07:55 < R2COM> ok 2012-06-03T08:08:30 < zyp> stuff like user interfaces are not very real time critical, so that can run in low priority threads 2012-06-03T08:09:36 < zyp> and it still sounds like you believe that an rtos is some huge resource-eating stuff 2012-06-03T08:09:53 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has quit [Quit: Ex-Chat] 2012-06-03T08:10:24 < zyp> it's not worse than other libraries you might happen to use. 2012-06-03T08:10:32 -!- upgrdman [~upgrdman@71-92-208-122.static.mtpk.ca.charter.com] has joined ##stm32 2012-06-03T08:10:32 -!- upgrdman [~upgrdman@71-92-208-122.static.mtpk.ca.charter.com] has quit [Changing host] 2012-06-03T08:10:32 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has joined ##stm32 2012-06-03T08:10:59 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-03T08:11:41 < dongs> xmos is deader than *bsd 2012-06-03T08:11:51 < R2COM> hmm why is it deader? 2012-06-03T08:12:01 < R2COM> whats the problem you see with it? 2012-06-03T08:13:21 < zyp> what I've heard about xmos is «hey, we've got lots of processing power, let's just waste it on bitbanging everything!» 2012-06-03T08:14:17 < R2COM> but processing power is to be used internally to "process" its not meant for bit-banging, i mean if used properly then whats the problem 2012-06-03T08:14:37 < R2COM> the reason im so curious is, they have cheap prices 2012-06-03T08:15:01 < zyp> but that's everything I'm going to say about it, I don't have any experience with xmos, so I'm not going to make any more uninformed comments 2012-06-03T08:15:07 < zyp> cheap? 2012-06-03T08:15:20 < R2COM> http://www.digikey.com/product-detail/en/XS1-L01A-TQ128-C4/880-1002-ND/2095037 2012-06-03T08:15:29 < zyp> I considering getting some shit to play with once, but I got discouraged by the price 2012-06-03T08:16:09 -!- cjbaird [~cjb@ppp121-44-125-219.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-03T08:16:33 < R2COM> but thats 1 core 2012-06-03T08:16:36 < zyp> given, that was for a full board 2012-06-03T08:16:41 < R2COM> dual core goes for around 18$ 2012-06-03T08:16:55 < R2COM> no thats chip price 2012-06-03T08:16:59 < R2COM> not full board... 2012-06-03T08:17:09 < cjbaird> nu 2012-06-03T08:17:13 < R2COM> stm32f4 with 1Meg also costs if im correct almost 12$ 2012-06-03T08:17:21 < R2COM> this one is few bucks more, what the heck 2012-06-03T08:17:33 < zyp> R2COM, do you lack reading comprehension? 2012-06-03T08:17:52 < R2COM> what did you want to tell? 2012-06-03T08:17:59 < zyp> I said that I looked at a board once, and that it was expensive, as opposed to the chip you just linked. 2012-06-03T08:18:10 < R2COM> ok 2012-06-03T08:18:56 < zyp> hmm, «400 MIPS» 2012-06-03T08:19:08 < zyp> F4 is rated to 210 MIPS 2012-06-03T08:19:19 < zyp> so about twice the processing power, on paper 2012-06-03T08:20:36 < R2COM> http://www.digikey.com/product-detail/en/XS1-G04B-FB144-C4/880-1008-ND/2095043 2012-06-03T08:20:39 < R2COM> 1600MIPS 2012-06-03T08:20:41 < R2COM> 20$ 2012-06-03T08:20:50 < R2COM> 144BGA 2012-06-03T08:24:17 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 265 seconds] 2012-06-03T08:27:21 < zyp> ah, right, here's the catch 2012-06-03T08:28:07 < zyp> you have to have at least four active threads per core to keep the core fully occupied 2012-06-03T08:28:32 < zyp> each thread get at most 100 MIPS 2012-06-03T08:29:22 < zyp> so for the 1600 MIPS variant, you need to be able to split the workload across at least 16 threads 2012-06-03T08:30:53 < zyp> this makes it suited for highly parallelizable tasks, think similar to GPU/GPGPU workloads 2012-06-03T08:33:31 < zyp> and very useless for algorithms where each calculation is dependant on the output of the previous and similar tasks 2012-06-03T08:35:15 < dongs> < zyp> what I've heard about xmos is «hey, we've got lots of processing power, let's just waste it on bitbanging everything!» 2012-06-03T08:35:19 < dongs> zyp: you must be thinking propeller 2012-06-03T08:35:23 < dongs> but im sure xmos is nodifferent 2012-06-03T08:35:43 < zyp> no, this is xmos I'm talking about, I looked it up 2012-06-03T08:36:39 < zyp> hmm, propeller looks pretty different 2012-06-03T08:38:04 < cjbaird> "let's just waste it on bitbanging everything" ... the Connection Machine guys said the same thing too.. -_- 2012-06-03T08:38:21 < zyp> propeller has 8 actual cores running independently, xmos has a four-level pipeline allowing four threads to be running on the same core in different stages at the same time 2012-06-03T08:40:06 < zyp> looks like propeller does 20 MIPS per core, 160 MIPS in total 2012-06-03T08:40:44 < zyp> that's pretty shitty, looks unfair to compare xmos to that :p 2012-06-03T08:42:52 < zyp> hmm, kind of want an xmos board to play with, guess I'll pick one up if I come across it 2012-06-03T08:51:16 < jpa-> it also depends a lot on how costly it is to synchronize the threads.. e.g. if it is sensible to parallelize a 16-item dotproduct or not 2012-06-03T08:52:54 < zyp> yep 2012-06-03T08:56:54 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-03T09:42:46 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-03T09:57:38 -!- pelrun__ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-03T09:57:39 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Read error: Connection reset by peer] 2012-06-03T10:15:28 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds] 2012-06-03T10:33:50 < jpa-> hmm, apparently full-speed usb works just fine on HSI on STM32L151.. even though it's not officially within the clock accuracy requirements 2012-06-03T10:57:57 < gsmcmullin> jpa-: It does for me on the f103 too. 2012-06-03T11:00:39 < pelrun__> who knows if it'll work on all usb ports or with random hubs though 2012-06-03T11:00:42 < pelrun__> still, cool to know 2012-06-03T11:02:20 < gsmcmullin> pelrun__: Yes, it's out of spec, so don't do it if you need it to be reliable. 2012-06-03T11:02:44 < pelrun__> yeah, not on anything one could call 'production-ready', certainly 2012-06-03T11:17:23 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-03T12:03:20 < pelrun__> okay, just wasted another couple of hours on this stlink v1->v2 upgrade without any luck. Might try this versaloon thingie instead... 2012-06-03T12:05:41 < jpa-> why are you upgrading it? 2012-06-03T12:11:58 < pelrun__> stlink v1 is poo 2012-06-03T12:12:13 < pelrun__> also it doesn't give me swv/swo/whatever debug trace facility 2012-06-03T12:12:54 < pelrun__> wiring up a separate serial port every time to get debug output isn't much fun 2012-06-03T12:16:39 < gsmcmullin> pelrun__: stlink v2 is poo too. 2012-06-03T12:17:00 < pelrun__> yeah well it does what it needs to do 2012-06-03T12:35:05 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-03T12:35:05 -!- pelrun__ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Read error: Connection reset by peer] 2012-06-03T12:37:42 -!- pelrun__ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-03T12:37:43 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Read error: Connection reset by peer] 2012-06-03T12:41:07 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-03T12:41:08 -!- pelrun__ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Read error: Connection reset by peer] 2012-06-03T12:59:38 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.] 2012-06-03T12:59:54 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 260 seconds] 2012-06-03T12:59:57 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-03T13:00:00 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-03T13:03:46 < SuicideFunky> hello folks 2012-06-03T13:05:27 < SuicideFunky> having problmens with DMA in mem2mem mode. When i initiate the xfer (by setting count register to > 0 and enable the channel), it seems the interrupt on complete is always called 2012-06-03T13:06:05 < SuicideFunky> although the docs mention the dma channel is disabled after the DMA_CNDTR reaches zero 2012-06-03T13:06:18 < SuicideFunky> anyone have a clue? 2012-06-03T13:06:42 < jpa-> what do you mean "always called"? 2012-06-03T13:06:48 < jpa-> do you clear the interrupt flag? 2012-06-03T13:07:44 < SuicideFunky> no i do not, that may be it, then i missed something in the docs 2012-06-03T13:07:52 < SuicideFunky> the interrupt vector is called non-stop 2012-06-03T13:08:09 < SuicideFunky> i can see that when i toggle the blue LED in the vector 2012-06-03T13:08:35 < SuicideFunky> then the led's brightness decreases 2012-06-03T13:08:56 < jpa-> yeah, you need to clear the interrupt flag 2012-06-03T13:08:57 < jpa-> DMA1->IFCR = DMA_IFCR_CTCIF4; 2012-06-03T13:08:59 < jpa-> or similar 2012-06-03T13:09:46 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-03T13:10:22 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Remote host closed the connection] 2012-06-03T13:10:35 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-03T13:12:58 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-03T13:14:39 < SuicideFunky> jpa-: many thanks once again for your quick advice! it works perfect now. Proven once again that reading docs carefully is imperative 2012-06-03T13:20:30 < dongs> bloggityblog 2012-06-03T13:26:54 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-03T13:27:01 < pelrun_> hahaha 2012-06-03T13:27:19 < pelrun_> decrypted the firmware blobs out of the stlink fw update app 2012-06-03T13:27:26 < pelrun_> the keys are ridiculous 2012-06-03T13:27:37 < pelrun_> one is "key wawawa" 2012-06-03T13:27:42 < pelrun_> one is "best performance" 2012-06-03T13:27:50 < pelrun_> one is "what are you doing" 2012-06-03T13:28:20 < pelrun_> security best practices there :) 2012-06-03T13:31:06 -!- cjbaird_ [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-03T13:31:08 -!- cjbaird [~cjb@ppp121-44-125-219.lns20.syd6.internode.on.net] has quit [Ping timeout: 240 seconds] 2012-06-03T13:40:47 < dongs> ya 2012-06-03T13:41:00 < dongs> i remember seeing something along those lines 2012-06-03T13:41:04 < dongs> i think i saw the best perfomrance key 2012-06-03T13:55:38 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has quit [Ping timeout: 240 seconds] 2012-06-03T14:08:12 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has joined ##stm32 2012-06-03T14:12:04 <+izua> pelrun_: wat 2012-06-03T14:12:15 < pelrun_> yes. 2012-06-03T14:18:04 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 245 seconds] 2012-06-03T14:24:41 -!- cjbaird_ [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-03T14:32:39 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Ping timeout: 260 seconds] 2012-06-03T15:12:24 -!- Laurenceb_ [~Laurence@host86-168-105-99.range86-168.btcentralplus.com] has joined ##stm32 2012-06-03T15:32:31 < dongs> ok wtf 2012-06-03T15:32:39 < dongs> some how i managed to fuck up rx/tx blinking leds 2012-06-03T15:32:46 < dongs> used npn and a led... 2012-06-03T15:32:53 < dongs> and they're on, off when data 2012-06-03T15:32:56 < dongs> wanted reverse. 2012-06-03T15:33:00 < dongs> time for java simulator... 2012-06-03T15:34:45 < Tectu_> you mean they are on when no data end off when data? 2012-06-03T15:35:23 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 250 seconds] 2012-06-03T15:41:05 < dongs> yeah 2012-06-03T15:44:37 < Tectu_> so you just wired them up the wrong way 2012-06-03T15:44:44 < Tectu_> please give me the schematics 2012-06-03T15:45:27 < dongs> http://i.imgur.com/hnwlN.png im pretty sure i fucked something up. but I did copy this circuit from somewehre i just cant remember where 2012-06-03T15:46:29 < Tectu_> yes, this is wrong 2012-06-03T15:46:39 < Tectu_> when Rx geths high, the LED lights up 2012-06-03T15:46:44 < Tectu_> when it gets low, the LED dosen't light up 2012-06-03T15:46:48 < dongs> yeah. 2012-06-03T15:46:52 < Tectu_> and bceause UART is "active low" that dosen't work 2012-06-03T15:47:00 < dongs> right. 2012-06-03T15:47:15 < Tectu_> and you don't know how to fix that or what's your "question"? 2012-06-03T15:47:23 < dongs> correct. 2012-06-03T15:47:41 < Tectu_> ok 2012-06-03T15:47:46 < Tectu_> there are (of course) many ways 2012-06-03T15:47:47 < dongs> will just swapping transistors for a pnp work? 2012-06-03T15:48:23 < Tectu_> dongs, yes, but then you need to place the LEDs in the seconds segment. so this way: vcc --- transistor --- LED --- resistor ---- GND 2012-06-03T15:48:54 < Tectu_> but well, what you also can do: VCC --- LED --- resistor --- RxD/TxD 2012-06-03T15:48:57 < Tectu_> that works fine :) 2012-06-03T15:49:07 < dongs> heh 2012-06-03T15:49:11 < dongs> ya but ghetto 2012-06-03T15:49:31 < Tectu_> http://www.scienceprog.com/wp-content/uploads/2006i/RS232_adapter1/RS232_adapter.PNG 2012-06-03T15:49:34 < Tectu_> no 2012-06-03T15:49:36 < Tectu_> not really 2012-06-03T15:49:42 < dongs> yes really 2012-06-03T15:49:44 < Tectu_> that is done in many many industrial applicatoins too 2012-06-03T15:50:15 < pelrun_> it's no problem if you don't mind making your uart pin sink current 2012-06-03T15:50:32 < pelrun_> couple of mA wouldn't hurt 2012-06-03T15:50:35 < dongs> ^ eaxctly 2012-06-03T15:50:46 < dongs> its ok for one off but not ok for production 2012-06-03T15:50:52 < dongs> or for debuggingetc. 2012-06-03T15:51:25 < Tectu_> dongs, http://www.mikrocontroller.net/attachment/33500/pnp.jpg 2012-06-03T15:51:34 < Tectu_> (don't forget resistor) 2012-06-03T15:51:43 < dongs> so jsut swapping fora pnp might work? 2012-06-03T15:51:46 < dongs> lemme try that.. 2012-06-03T15:52:44 < pelrun_> oh heh, that would work pretty well 2012-06-03T15:53:04 < pelrun_> fixes the problem with having to pull the base above the collector too 2012-06-03T15:53:49 < pelrun_> although they need to be slapped for forgetting the resistor :) 2012-06-03T15:54:23 < Tectu_> pelrun_, i was too tired of drawing it myself, so i just searched a matching google picture ;) 2012-06-03T15:54:32 < pelrun_> heh 2012-06-03T15:54:47 < Tectu_> just how i'd do it ;-) 2012-06-03T15:54:58 < Tectu_> <--- electronics engineer 2012-06-03T15:55:26 < dongs> <--- troll 2012-06-03T15:55:43 < Tectu_> we all know, dongs, we all know 2012-06-03T15:55:54 < dongs> yep works 2012-06-03T15:55:54 < dongs> thanks. 2012-06-03T15:56:07 < dongs> blinks nicely 2012-06-03T15:56:10 < pelrun_> <--- dog 2012-06-03T15:56:20 < pelrun_> weird 2012-06-03T15:56:22 < Tectu_> you're welcome, dongs 2012-06-03T15:57:00 < dongs> fucking now i still have a whole ton of 3904's i cant fucking use anywehre 2012-06-03T15:57:05 < Tectu_> happy that i can help one time ^^ 2012-06-03T15:57:12 < pelrun_> this fw blob is definitely decrypted properly - the vector table at the start looks right and there are legible strings in it, but I can't get a disassembly to work 2012-06-03T15:57:14 < dongs> one of my projects uses 3906 and I've ordered 3904's by mistake THREE TIMES 2012-06-03T15:57:29 < pelrun_> good jorb 2012-06-03T15:57:37 < pelrun_> that third time must have hurt 2012-06-03T15:57:48 < dongs> twice from a supr expensive place 2012-06-03T15:57:50 < Tectu_> how the hell did you do that, sir 2012-06-03T15:57:54 < dongs> and once from digikey 2012-06-03T15:57:58 < pelrun_> troll brain 2012-06-03T15:58:03 < dongs> no fucking idea. i was like Ok i need some 3906's 2012-06-03T15:58:07 < dongs> search+clickclick+order 3904s 2012-06-03T15:58:12 < dongs> shit arrives 2012-06-03T15:58:14 < dongs> FFFFFFFFFFUUUUUUUUUUUUUUUUuu 2012-06-03T15:58:19 < dongs> search again, order wrong shit again 2012-06-03T15:58:21 < dongs> ?????? 2012-06-03T15:59:43 < Tectu_> sir, you need some girlfriend 2012-06-03T16:00:30 < dongs> to order parts for me? 2012-06-03T16:01:43 < Laurenceb_> for sexy times 2012-06-03T16:02:00 < jpa-> to hold your spectrometer while you wank 2012-06-03T16:02:26 < Laurenceb_> oh dear 2012-06-03T16:02:58 < Laurenceb_> i use duck tape and a goat for that 2012-06-03T16:04:29 < Tectu_> real men do build levitation machine for that first 2012-06-03T16:04:33 < jpa-> two animals victimized in your joy 2012-06-03T16:22:57 < Tectu_> someone here know gnublin board? 2012-06-03T16:31:07 -!- os-app92 [~ftw@37.170.195.77.rev.sfr.net] has joined ##stm32 2012-06-03T16:34:52 < dongs> http://members.shaw.ca/swstuff/wgt634u-schematic.png wtf 2012-06-03T16:34:59 < dongs> why are they bridging T1in/T2in 2012-06-03T16:35:02 < dongs> in that schema? 2012-06-03T16:36:16 < pelrun_> AHA! 2012-06-03T16:36:32 * pelrun_ has probably, finally, cracked this bloody v1->v2 upgrade 2012-06-03T16:40:59 < pelrun_> dongs: probably to stop that input floating 2012-06-03T16:41:24 < pelrun_> since the output would be at rs232 levels 2012-06-03T16:41:37 < Tectu_> dongs, what exactly do you mean? 2012-06-03T16:41:44 < pelrun_> the other way isn't so critical, since the output is only ttl 2012-06-03T16:41:55 < dongs> o rite. so just to shut it up 2012-06-03T16:42:58 < pelrun_> yeah, they could just as easily set it to 0 or 5v, but since the other signal is right there they're just being lazy and tying them together 2012-06-03T16:58:24 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-03T16:59:19 < upgrdman> if i used systick to update a global variable, should that global be defined as volatile? 2012-06-03T16:59:27 < dongs> yea 2012-06-03T16:59:44 < dongs> and: you might needs disable/enable_irq around it 2012-06-03T17:00:17 < upgrdman> ok 2012-06-03T17:00:21 < upgrdman> it works fine as is 2012-06-03T17:00:28 < upgrdman> why the dis/en irq? 2012-06-03T17:01:11 < dongs> if you're accessing the shit outside systick 2012-06-03T17:01:15 < dongs> and it fires while youre readingi t 2012-06-03T17:01:16 < dongs> or osmething 2012-06-03T17:01:17 < dongs> i dunno 2012-06-03T17:01:39 < upgrdman> ok 2012-06-03T17:01:49 < dongs> http://bcas.tv/paste/results/Y0XQI669.html 2012-06-03T17:01:50 < dongs> i had to do this 2012-06-03T17:01:58 < dongs> and im still not so sure it doesnt miss in some place 2012-06-03T17:02:18 < Thorn> reading a single word from memory is atomic, isn't it 2012-06-03T17:02:45 < upgrdman> what the statics? 2012-06-03T17:02:53 < dongs> no, in micros() 2012-06-03T17:03:12 < upgrdman> no, i mean: separate q: why the statics 2012-06-03T17:03:22 < dongs> oh, jsut cause i want shit local to that file 2012-06-03T17:03:27 < dongs> they're internal vars so.. 2012-06-03T17:03:28 < upgrdman> ok 2012-06-03T17:04:25 < dongs> i think my problem with interrupts was that 2012-06-03T17:04:31 < dongs> i'd read cycle counter 2012-06-03T17:04:42 < dongs> systick would tick between that read and reading systickcyclecounter 2012-06-03T17:04:49 < dongs> and would fuck shit up 2012-06-03T17:05:12 < dongs> anyway, that needs to be rewritten i still think something is lamed up in that code 2012-06-03T17:06:45 < Thorn> dongs: http://www.ganssle.com/articles/asynchf.htm 2012-06-03T17:07:25 < dongs> Thorn: pretty tl;dr 2012-06-03T17:07:29 < upgrdman> how do i extract a bit from a byte? 2012-06-03T17:07:31 < dongs> is it relevant to my rant? 2012-06-03T17:07:47 < dongs> dongs >> bitindex 2012-06-03T17:07:58 < dongs> & 1 if needed. 2012-06-03T17:08:11 < dongs> dongs & 1 << bitindex 2012-06-03T17:08:12 < dongs> etc. 2012-06-03T17:08:13 < Thorn> it describes a pretty similar situation 2012-06-03T17:09:01 < Thorn> foo, bar, baz, lol, dongs, troll 2012-06-03T17:14:20 -!- Tectu_ is now known as Tectu 2012-06-03T18:02:16 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 250 seconds] 2012-06-03T18:18:57 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-03T18:19:17 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-03T18:28:18 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-06-03T18:32:14 -!- os-app92 [~ftw@37.170.195.77.rev.sfr.net] has quit [Ping timeout: 245 seconds] 2012-06-03T18:34:55 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-03T18:36:57 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has joined ##stm32 2012-06-03T18:37:00 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-03T18:37:34 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-03T18:38:06 < lukky513> has anyone any experience with Virtual COM by STM? 2012-06-03T18:39:40 < jpa-> no, but usb cdc in chibios works fine 2012-06-03T18:39:56 < dongs> boner 2012-06-03T18:48:19 < Laurenceb_> /ignore dongs 2012-06-03T18:48:35 < Laurenceb_> lukky513 usb cdc in maple works too 2012-06-03T18:48:48 < dongs> INVENSENSE® EXPANDS INTO INDUSTRIAL APPLICATIONS WITH THE WORLD'S FIRST SINGLE-CHIP, INTEGRATED HIGH-PERFORMANCE 3-AXIS INDUSTRIAL GYROSCOPE 2012-06-03T18:48:57 < dongs> MotionTracking™devices, today announced its entry into the industrial market with the introduction of its MPU-3300, the world's first single-chip, high performance integrated 3-axis industrial gyroscope. 2012-06-03T18:49:01 < dongs> http://invensense.com/mems/gyro/mpu3300.html 2012-06-03T18:49:27 < dongs> check out rate noise 2012-06-03T18:50:04 < Laurenceb_> as good as the 9150 2012-06-03T18:50:28 < Laurenceb_> lower full scale 2012-06-03T18:50:44 < dongs> oh snap 2012-06-03T18:50:53 < dongs> but 9150 = i2fuckingc 2012-06-03T18:51:04 < Laurenceb_> Zero-rate output variation over temperature: ±0.14°/sec/°C 2012-06-03T18:51:08 < Laurenceb_> thats improved 2012-06-03T18:51:14 < Laurenceb_> still a bit lame 2012-06-03T18:52:12 < Laurenceb_> bu tkalman handles offset drift well 2012-06-03T18:52:49 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 260 seconds] 2012-06-03T18:53:33 < Laurenceb_> the noise is so low its pretty much irrelevant 2012-06-03T18:54:06 < lukky513> Laurenceb_: I need a way to bridge USB to USART, does it provide it? 2012-06-03T18:54:25 < Laurenceb_> erm i could 2012-06-03T18:54:34 < Laurenceb_> but thats a poor use of an stm 2012-06-03T18:54:57 < lukky513> Laurenceb_: I know, but I need that specific thing :) 2012-06-03T18:55:10 < lukky513> can I set it to work in reasonable time? 2012-06-03T18:56:04 < dongs> hm 2012-06-03T18:56:09 < dongs> the leds are lighting up but super fuckign dim 2012-06-03T18:56:15 < dongs> i guess i should fix that schematic... 2012-06-03T18:56:54 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-03T18:56:57 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-03T18:59:51 < lukky513> Laurenceb_: you know, I wouldn't personally make stm32 to be used where regular ft232 could be used 2012-06-03T19:00:02 < lukky513> could you somehow help me in that one? 2012-06-03T19:00:07 < dongs> >ft232 found your problem 2012-06-03T19:00:28 < lukky513> dongs: what do you mean by that 2012-06-03T19:00:28 <+izua> dekar loves ftdi chips to death 2012-06-03T19:00:43 < dongs> ftdi = overpriced shite 2012-06-03T19:03:31 < Laurenceb_> cp2102 ftw 2012-06-03T19:07:22 < Laurenceb_> http://www.b3tards.com/u/037e58b9e054b3c8dd7b/queenjubilee_01.jpg 2012-06-03T19:21:00 < dongs> blah 2012-06-03T19:21:14 < dongs> replaced with PNP but leds arent on long enough 2012-06-03T19:21:14 < dongs> shitty 2012-06-03T19:25:28 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: .] 2012-06-03T19:55:52 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep] 2012-06-03T19:56:07 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-03T20:02:49 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has joined ##stm32 2012-06-03T20:02:52 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-03T20:05:03 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 256 seconds] 2012-06-03T20:07:50 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-03T21:31:36 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-03T21:39:59 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving] 2012-06-03T22:15:29 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 --- Day changed Mon Jun 04 2012 2012-06-04T00:05:54 < lukky513> soooo... it doesn't work 2012-06-04T00:06:06 < lukky513> I can't get virtual com example running 2012-06-04T00:06:10 < lukky513> it doesn't pass enumeration 2012-06-04T00:06:50 < Laurenceb_> what code are you using? 2012-06-04T00:08:49 < Tectu> anyone ever calibrated touchpad? 2012-06-04T00:08:59 < lukky513> example from st, version for 3210c-eval 2012-06-04T00:09:13 < lukky513> I don't have this eval though, but it's almost compatible 2012-06-04T00:09:39 < lukky513> mcu is the same and pins are connected likewise... except for resistors 2012-06-04T00:10:03 < lukky513> I'm trying to get it working as it is, though - I can't add anything to this board, technically 2012-06-04T00:11:16 < lukky513> it seems like these externals should be the source of problem... but I can't help it in any way 2012-06-04T00:11:44 < lukky513> I thought about data pullup, but it's not present in 3210 2012-06-04T00:12:04 < lukky513> so I guess it's realised through OTG internal hw, somehow 2012-06-04T00:16:33 < gsmcmullin> lukky513: Remove your pull-up, it's internal. 2012-06-04T00:18:17 < lukky513> I don't have any; infact, I couldn't even put it there 2012-06-04T00:19:01 < gsmcmullin> I don't know ST's code at all. Other thing to check is the VBUS detect. 2012-06-04T00:19:31 < lukky513> you mean? 2012-06-04T00:20:18 < zyp> lukky513, what is the problem? 2012-06-04T00:21:15 < lukky513> zyp: enumeration failed/device not working at all 2012-06-04T00:21:33 < lukky513> I'm using slightly modified version of stm32 example 2012-06-04T00:21:43 < Laurenceb_> sure the pins are connected? 2012-06-04T00:21:45 < Laurenceb_> :P 2012-06-04T00:21:59 < lukky513> Laurenceb_: yes... I'm using evaluation board 2012-06-04T00:22:04 < zyp> ah, you're using F107 2012-06-04T00:22:21 < zyp> that should be same usb peripheral as F4 2012-06-04T00:22:28 < zyp> I do have some experience with it 2012-06-04T00:25:00 < zyp> but you'd have to be more specific 2012-06-04T00:25:09 < lukky513> okay, so first - schematics 2012-06-04T00:25:30 < zyp> no external pullups or anything is required 2012-06-04T00:25:31 < lukky513> I'm using code made for stm3210c-eval: please refer to http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/USER_MANUAL/CD00212441.pdf - page34 2012-06-04T00:26:03 < lukky513> and my board is some lousy http://www.kamami.pl/dl/zl29arm.pdf - page 5 2012-06-04T00:26:31 < lukky513> at first sight most important difference is (un)presence of 22R on D+/- lines 2012-06-04T00:26:56 < lukky513> I'm not very experienced... but I wouldn't say it matters 2012-06-04T00:27:18 < lukky513> sorry for Polish, I can translate if needed :) 2012-06-04T00:27:26 < zyp> they should be there, but it would likely work without 2012-06-04T00:27:37 < zyp> no, it's ok, I'm just looking at schematics 2012-06-04T00:27:59 < lukky513> jumpers are ok 2012-06-04T00:28:36 < lukky513> there'd be no notice from PC if they weren't, anyway 2012-06-04T00:28:53 < zyp> ah, so you get some response? 2012-06-04T00:29:11 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-06-04T00:29:25 < lukky513> yeah; enumeration fails. 2012-06-04T00:30:27 < zyp> ID line seem to be disconnected 2012-06-04T00:30:42 < lukky513> it doesn't matter, it's device, that's one 2012-06-04T00:30:50 < zyp> you might have to force it into device mode then 2012-06-04T00:30:53 < lukky513> two: I don't have usb mini connector on my board :) 2012-06-04T00:31:20 < lukky513> hm, you say, but how? 2012-06-04T00:31:24 < zyp> on my board, I've wired it as device-only, omitted ID line, so I'm forcing it into device-only mode 2012-06-04T00:32:02 < lukky513> I guess it's so here by design 2012-06-04T00:32:13 < zyp> you set FDMOD bit in GUSBCFG register 2012-06-04T00:32:26 < zyp> I don't know how to do it through ST's code, I've not used that 2012-06-04T00:33:15 < lukky513> right after clock setting? hm 2012-06-04T00:33:28 < lukky513> I'd have to browse whole USB init code 2012-06-04T00:34:02 < lukky513> lol, I'm in just right place of code 2012-06-04T00:34:03 < lukky513> miracle 2012-06-04T00:35:00 < zyp> http://cgit.jvnv.net/suzumebachi/tree/main.cpp?h=stm32f4#n261 <- my code is awfully messy, but this is what I'm doing 2012-06-04T00:46:29 < gsmcmullin> lukky513: There are working examples in libopencm3. 2012-06-04T00:46:30 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-04T00:48:05 < lukky513> are st examples known not to work? ;) 2012-06-04T00:48:16 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Disconnected by services] 2012-06-04T00:48:18 -!- phantoneD is now known as phantoxeD 2012-06-04T00:48:58 < zyp> no, they are just known to be very messy 2012-06-04T00:49:31 < lukky513> zyp: I can find sucha a setting in gusbcfg struct 2012-06-04T00:49:45 < lukky513> seems I have to read manual 2012-06-04T00:51:54 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-04T00:53:27 < lukky513> zyp: man says it's there, daaamn 2012-06-04T00:54:37 < lukky513> found it 2012-06-04T00:55:56 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Read error: Connection reset by peer] 2012-06-04T00:56:15 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-04T01:00:00 < lukky513> zyp: it doesn't help 2012-06-04T01:00:12 < lukky513> and first 2012-06-04T01:02:07 < lukky513> oops, I put it in wrong line 2012-06-04T01:05:36 < lukky513> it doesn't work either :| 2012-06-04T01:09:23 < lukky513> zyp: any other ideas? 2012-06-04T01:49:18 < Tectu> how do i print a struct in gdb? i do (gdb) print cal (cal is the name of the struct) ---> $1 = (struct cal * const) 0x0 2012-06-04T01:49:27 < Tectu> does it matter if i have the struct "as pointer" or not? 2012-06-04T01:49:47 -!- izua [~izua@79.115.171.1] has joined ##stm32 2012-06-04T01:49:47 -!- izua [~izua@79.115.171.1] has quit [Changing host] 2012-06-04T01:49:47 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-04T01:49:50 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-04T01:50:03 < Tectu> never mind 2012-06-04T01:51:24 -!- Laurenceb_ [~Laurence@host86-168-105-99.range86-168.btcentralplus.com] has quit [Ping timeout: 245 seconds] 2012-06-04T01:54:58 < zyp> Tectu, just print it 2012-06-04T01:55:11 < Tectu> zyp p *cal did the trick 2012-06-04T01:55:20 < zyp> Tectu, and I suggest doing «set print pretty on» 2012-06-04T01:55:31 < zyp> if you don't already have it 2012-06-04T01:55:48 < Tectu> uhm 2012-06-04T01:55:49 < Tectu> let's see 2012-06-04T01:55:55 < zyp> it affects how structs are printed 2012-06-04T01:56:07 < Tectu> nice 2012-06-04T01:56:08 < Tectu> thanks 2012-06-04T01:56:15 < Tectu> does it only affect structs? 2012-06-04T01:56:24 < zyp> no idea 2012-06-04T01:56:54 < zyp> yes, according to gdb docs it only affects structs 2012-06-04T01:56:59 < Tectu> ok 2012-06-04T01:57:00 < Tectu> thanks 2012-06-04T02:09:44 < lukky513> zyp: can I go sleep? :D 2012-06-04T02:10:24 < zyp> that's what I'm preparing to do :p 2012-06-04T02:10:58 < Tectu> why do people need to prepare for sleep? 2012-06-04T02:11:26 < zyp> because it's hard to get up from the chair :) 2012-06-04T02:18:57 < lukky513> yep, I'm walking away 2012-06-04T02:19:00 < lukky513> see you 2012-06-04T02:19:37 -!- LawrenceSeattle [~lawrence@216.243.49.130] has joined ##stm32 2012-06-04T02:22:07 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 265 seconds] 2012-06-04T02:59:02 < zyp> only cortex-m 2012-06-04T02:59:09 < zyp> cortex-r and cortex-a are arm/thumb 2012-06-04T03:21:35 < LawrenceSeattle> anyone ever got the CLR working on an STM32 2012-06-04T03:21:36 < LawrenceSeattle> ? 2012-06-04T03:27:07 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-04T03:28:06 < zyp> CLR? 2012-06-04T03:28:47 < LawrenceSeattle> this looks promising actually: http://www.mountaineer.org/netmf-for-stm32/ 2012-06-04T03:28:58 < zyp> ah 2012-06-04T03:40:18 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-04T03:40:29 -!- cjbaird [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-04T04:14:06 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 252 seconds] 2012-06-04T04:14:13 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Ping timeout: 245 seconds] 2012-06-04T04:16:38 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-06-04T04:17:05 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32 2012-06-04T04:19:13 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Ping timeout: 245 seconds] 2012-06-04T04:28:23 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-04T04:40:07 < dongs> fuck who the fuck still uses 274D gerber data 2012-06-04T04:40:11 < dongs> rage 2012-06-04T04:44:01 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer] 2012-06-04T04:47:25 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-04T04:51:43 < dongs> haha awesome 2012-06-04T04:51:47 < dongs> got my tsop socket 2012-06-04T05:09:08 < cjbaird> For sexy FSMC hackings? 2012-06-04T05:09:15 < dongs> yes. 2012-06-04T05:10:06 < cjbaird> sweet. Make me a 2MB daughterboard for the F4Disco. 2012-06-04T05:10:31 < dongs> for what, flash? 2012-06-04T05:10:46 < dongs> i made it to fit into this waveshare kit I have 2012-06-04T05:24:39 -!- cjbaird [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-04T05:27:20 -!- cjbaird [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-04T05:37:12 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32 2012-06-04T06:28:09 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has joined ##stm32 2012-06-04T06:44:12 -!- ziph [~ziph@203.59.136.175] has joined ##stm32 2012-06-04T07:13:06 -!- cjbaird [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-04T08:22:06 < dongs> Bloggs 2012-06-04T08:37:22 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-06-04T08:37:42 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has quit [Quit: Quit] 2012-06-04T08:42:13 < dongs> Book Hotels in Nigeria For A Luxury And Comfy Holiday Stay | Duck... 2012-06-04T08:42:14 < dongs> Nigeria with its serenity and diversity attract the visitors from far off places of the world. The popular destination is visited by infinite number of travelers each year. There are large numbers of hotels in Nigeria to accommodate the large influx... 2012-06-04T09:00:26 -!- tavish [~tavish@120.59.0.200] has joined ##stm32 2012-06-04T09:00:26 -!- tavish [~tavish@120.59.0.200] has quit [Changing host] 2012-06-04T09:00:26 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-04T09:15:56 < dongs> start_chat 2012-06-04T09:33:54 < dongs> http://i.imgur.com/ABXzI.jpg 2012-06-04T10:20:02 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-04T10:25:55 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Read error: Connection reset by peer] 2012-06-04T10:26:10 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-04T10:39:53 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-04T10:46:12 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving] 2012-06-04T10:55:34 < zyp> looks nice 2012-06-04T11:15:54 < Thorn> http://www.newscientist.com/article/dn21877-go-for-a-jog-with-a-helicopter-drone.html 2012-06-04T11:41:05 -!- cjbaird [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-04T12:07:49 < Tectu> someone ever used external interrupt with chibios? 2012-06-04T12:33:48 * pelrun_ pokes his silent usart3 2012-06-04T12:33:53 < pelrun_> talk to me dammit 2012-06-04T12:35:34 < pelrun_> Tectu, aren't normal interrupts and the rtos mostly independent? 2012-06-04T12:38:21 < Thorn> chibios has its own drivers for everything 2012-06-04T12:42:22 < karlp> here's one for you rc freaks: http://www.youtube.com/watch?v=-S4DZ_aWNuU&feature=youtu.be 2012-06-04T12:54:02 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 252 seconds] 2012-06-04T12:54:32 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-04T13:01:37 < zyp> that one is a few months old now, isn't it? 2012-06-04T13:02:32 < zyp> not that particular movie, but that copter 2012-06-04T13:04:21 < karlp> don't know, I'm not an RC person. 2012-06-04T13:04:29 < karlp> just got sent to me. 2012-06-04T13:17:44 < Tectu> Thorn, experience with EXT in chibi? 2012-06-04T13:18:51 < Thorn> none at all 2012-06-04T13:35:18 < Tectu> Enables an EXT channel. 2012-06-04T13:35:29 < Tectu> STM32 -> i can have my external interrupt everywhere, right? 2012-06-04T13:35:39 < Tectu> its not that only a few pins are external interrupt able, right? 2012-06-04T13:35:51 < Tectu> so i can say, wooh, PortC 6 is external interrupt now? 2012-06-04T13:36:29 < cjbaird> Heaps of uxtb instructions everywhere making the place look ugly.. 2012-06-04T13:59:22 < dongs> new ida 6.3 is out 2012-06-04T13:59:30 < dongs> source-level debugging with decompiler 2012-06-04T13:59:46 < dongs> zyp: yeah seems some "new" blogs linked to it again 2012-06-04T13:59:50 < dongs> so everyoen and their mother is messaging me that link 2012-06-04T13:59:59 < dongs> the original was posted at least a month mybe more ago 2012-06-04T14:00:14 < dongs> fucking useless internet 2012-06-04T14:02:55 < Tectu> did you sleep well, dongs? 2012-06-04T14:03:03 < dongs> wat 2012-06-04T14:05:36 < dongs> Tectu: each port is shared 2012-06-04T14:05:48 < dongs> i.e. PB6, PC6, PA6 will trigger same EXTI line 2012-06-04T14:05:53 < Tectu> dongs, so i can only have 16 external interrupts? 2012-06-04T14:05:54 < Tectu> ah! 2012-06-04T14:05:59 < dongs> also only first few lines are individual 2012-06-04T14:06:05 < dongs> i.e. exti0, exti1 etc 2012-06-04T14:06:08 < Tectu> so no ext interrupt for PA8 and PC8 ? 2012-06-04T14:06:08 < dongs> then they become shared 2012-06-04T14:06:10 < dongs> exti10-15 2012-06-04T14:06:17 < Tectu> so we get 16*16 interrupts? 2012-06-04T14:06:35 < dongs> you cant distinguish which port did exti i dont think 2012-06-04T14:06:39 < dongs> you attach port -> line 2012-06-04T14:06:50 < dongs> so you can do either pa8 or pc8, but not both, as far as I know. 2012-06-04T14:06:56 < Tectu> ok 2012-06-04T14:07:02 < dongs> and there are 16 lines. 2012-06-04T14:07:06 < dongs> + a couple system ones 2012-06-04T14:07:44 < dongs> Figure 27 in f4 reference manual 2012-06-04T14:07:55 < dongs> looks like tehre's about 8 system lines 2012-06-04T14:08:02 < dongs> rtc alarm, usb wakeup, shit like that 2012-06-04T14:08:12 < dongs> and the 0..15 are for gpio 2012-06-04T14:14:21 < upgrdman> any idea why "uint8_t inputStartingTime[8] = {0};" works, but "uint32_t inputStartingTime[8] = {0};" (32bit int) fails with "undefined reference to `memset'"?? 2012-06-04T14:14:33 < dongs> yes 2012-06-04T14:14:44 < dongs> = { 0, } gets compiled into something like 2012-06-04T14:14:56 < dongs> blah[size]; memset(blah, 0, sizeof(blah)); 2012-06-04T14:15:06 < dongs> small sized stuff is initialized inline 2012-06-04T14:15:14 < dongs> i.e. just blah[0] = 0; blah[1] = 0; 2012-06-04T14:15:17 < Tectu> dongs, how to fix? 2012-06-04T14:15:23 < zyp> is this stack or global? 2012-06-04T14:15:28 < upgrdman> oh. is that specific to mcu's? i dont recall this problem with normal software dev 2012-06-04T14:15:30 < dongs> sounds liek stack 2012-06-04T14:15:34 < zyp> yeah 2012-06-04T14:15:38 < zyp> because it won 2012-06-04T14:15:43 < zyp> 't use memset for global 2012-06-04T14:15:45 < Thorn> if it were global you wouldn't need memset 2012-06-04T14:16:02 < Thorn> also, doesn't gcc use builtin memset at some -O level? 2012-06-04T14:16:36 < upgrdman> ok 2012-06-04T14:17:03 < upgrdman> im used to globals being "bad" unless they really need to be global... are the common when doing mcu stuff? 2012-06-04T14:17:04 < Thorn> http://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html 2012-06-04T14:17:36 < Thorn> The ISO C90 functions ..., memset, ... are all recognized as built-in functions unless -fno-builtin is specified (or -fno-builtin-function is specified for an individual function). 2012-06-04T14:17:37 < dongs> well you can just link to whatever lib that provides memset... 2012-06-04T14:18:12 < zyp> upgrdman, that depends 2012-06-04T14:18:24 < zyp> globals are good for a lot of shit 2012-06-04T14:19:49 < zyp> globals being bad has to do with reentrancy 2012-06-04T14:20:02 < upgrdman> ? 2012-06-04T14:20:13 < Thorn> just make them static for internal linkage whenver possible 2012-06-04T14:20:14 < dongs> zyp, what was that command line to turn hex into bin 2012-06-04T14:20:21 < dongs> FFFFEA3661110220 2012-06-04T14:20:21 < dongs> FF1FE5FEFFFFEA81 2012-06-04T14:20:23 < dongs> textfile like this 2012-06-04T14:20:26 < dongs> i think od? or someshit 2012-06-04T14:20:29 < dongs> you pasted me before. 2012-06-04T14:20:41 < zyp> huh? 2012-06-04T14:20:41 < dongs> or one of lunix hax0-rs did 2012-06-04T14:20:53 < dongs> i have a .txt of hex 2012-06-04T14:20:55 < zyp> is this ihex or just some plain hex shit? 2012-06-04T14:21:00 < dongs> plain text 2012-06-04T14:21:05 < dongs> not fixed length either 2012-06-04T14:21:16 < dongs> http://bcas.tv/paste/results/6IOvU791.html 2012-06-04T14:21:17 < dongs> i.e. shit like this 2012-06-04T14:21:21 < Thorn> in ihex lines start with : 2012-06-04T14:21:25 < dongs> right. 2012-06-04T14:21:27 < dongs> its not ihex. 2012-06-04T14:21:36 < zyp> I'd probably use python 2012-06-04T14:21:45 < dongs> ok then it probably wasnt you 2012-06-04T14:22:09 < dongs> found it 2012-06-04T14:22:11 < zyp> open('outfile', 'w').write(''.join(line.decode('hex') for line in open('infile'))) 2012-06-04T14:22:14 < dongs> xxd -r -p dix.txt > dix.bin 2012-06-04T14:22:47 < zyp> never heard about xxd 2012-06-04T14:23:21 < zyp> looks useful 2012-06-04T14:23:23 < dongs> some mega hax0r lunix tool 2012-06-04T14:29:43 < zyp> upgrdman, http://en.wikipedia.org/wiki/Reentrancy_%28computing%29 2012-06-04T14:35:29 < upgrdman> hum 2012-06-04T14:57:49 < cjbaird> Forcing type for fun and profit... http://pastebin.com/raw.php?i=P2wUYMtz 2012-06-04T15:05:57 < upgrdman> if i want to check bit "n" to see if its equal to 0, this should work, right? number | (1 << n) != number ... (that would be true if the bit is zero) 2012-06-04T15:12:05 < Thorn> the caninocal way is !(number & (1< *canonical 2012-06-04T15:12:26 < cjbaird> clear the bit (bic.w Rn ...), and test if the value changes? 2012-06-04T15:58:28 -!- dongs [1000@l212168.ppp.asahi-net.or.jp] has quit [Ping timeout: 256 seconds] 2012-06-04T15:59:20 -!- dongs [1000@l212168.ppp.asahi-net.or.jp] has joined ##stm32 --- Log closed Mon Jun 04 16:13:07 2012 --- Log opened Mon Jun 04 16:13:30 2012 2012-06-04T16:13:30 -!- jpa- [jpa@hilla.kapsi.fi] has joined ##stm32 2012-06-04T16:13:30 -!- Irssi: ##stm32: Total of 42 nicks [1 ops, 0 halfops, 1 voices, 40 normal] 2012-06-04T16:14:05 -!- Irssi: Join to ##stm32 was synced in 41 secs 2012-06-04T16:19:44 < dongs> fucking lilo. 2012-06-04T16:24:24 -!- Laurenceb_ [~Laurence@host86-168-105-99.range86-168.btcentralplus.com] has joined ##stm32 2012-06-04T16:27:09 < Laurenceb_> hello 2012-06-04T16:27:47 < dongs> sup 2012-06-04T16:27:57 * Laurenceb_ is raging @ monarchy 2012-06-04T16:28:32 < Laurenceb_> _everything_ is shut down to 4 days 2012-06-04T16:29:51 < Laurenceb_> *for 2012-06-04T16:31:11 < karlp> suck it up and drink your tea 2012-06-04T16:31:16 < Tectu> how can i set the SPI1 speed under 280kHz? o0 i have BR[2:0] to 111 -> 256 prescaler 2012-06-04T16:31:24 < Tectu> and i need <100kHz 2012-06-04T16:31:30 < karlp> Tectu: reduce your clock :) 2012-06-04T16:31:39 < dongs> lol, 280khz 2012-06-04T16:31:44 < dongs> what the fuck need SPI that slow? 2012-06-04T16:31:48 < karlp> what SPI are you using that is that goddamned slow? 2012-06-04T16:31:50 < karlp> yeah, what he said 2012-06-04T16:32:03 < Laurenceb_> long cable? 2012-06-04T16:32:16 < karlp> get better termination? 2012-06-04T16:32:21 < Tectu> dongs, ADS7843 touchpad controller needs <= 200kHz 2012-06-04T16:32:53 < zyp> really? 2012-06-04T16:33:22 < Tectu> yes 2012-06-04T16:33:28 < dongs> doubtful 2012-06-04T16:33:35 < Tectu> i mean AVRs get get SPI prescaler 2048 2012-06-04T16:33:41 < Tectu> why shouldn't STM32 be able to do that 2012-06-04T16:33:55 < zyp> not according to datasheet 2012-06-04T16:34:00 < Tectu> damn 2012-06-04T16:34:13 < Laurenceb_> cant you clk down the APB? 2012-06-04T16:34:52 < Tectu> i need fullspeed everywhere else? 2012-06-04T16:35:16 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-04T16:35:45 < Tectu> do we have internal eeprom, btw, for storing calibration values? 2012-06-04T16:36:02 < zyp> no 2012-06-04T16:38:06 < Laurenceb_> you can store to flash 2012-06-04T16:38:13 < Laurenceb_> 10K writes endurance 2012-06-04T16:38:27 < Tectu> nice 2012-06-04T16:38:40 < Laurenceb_> or use battery backed ram 2012-06-04T16:38:45 < dongs> wth 2012-06-04T16:38:50 < dongs> arm9tdmi doesnt have vfp? 2012-06-04T16:39:06 < Laurenceb_> vfp? 2012-06-04T16:39:15 < dongs> hardware fp 2012-06-04T16:39:18 < Laurenceb_> you mean fpu 2012-06-04T16:39:19 < Laurenceb_> no 2012-06-04T16:39:24 < dongs> wth 2012-06-04T16:39:27 < Laurenceb_> its a pita to find fpu 2012-06-04T16:39:34 < Laurenceb_> thats why F4 is so useful 2012-06-04T16:39:39 < zyp> Tectu, if I'm reading ADS7843 datasheet correctly, you can run it at up to 2.5 MHz 2012-06-04T16:40:00 < Laurenceb_> fpu in easy to solder package, and easy to use gcc support 2012-06-04T16:59:48 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-06-04T17:21:34 < jpa-> vfp = vector floating point 2012-06-04T17:21:51 < jpa-> more than just fpu 2012-06-04T17:22:43 < dongs> well irrelevant 2012-06-04T17:22:47 < dongs> it has no hardware fpu or vfp 2012-06-04T17:22:55 < dongs> just started looking at the code its all nasty fucking mess of softfp 2012-06-04T17:23:56 < jpa-> nothing nasty about software fp 2012-06-04T17:24:03 < jpa-> it's just slowish 2012-06-04T17:24:17 < dongs> there is when you're trying to reverse code wiht it 2012-06-04T17:25:33 < Laurenceb_> https://github.com/facebook/javelin 2012-06-04T17:25:34 < Laurenceb_> lmao 2012-06-04T17:25:41 < dongs> isnt that fucking old 2012-06-04T17:25:45 < dongs> is t hat thier optimized php shite 2012-06-04T17:25:54 < Laurenceb_> im laughing at the comments 2012-06-04T17:25:57 < dongs> . 2012-06-04T17:26:00 < dongs> Large, bloated Javascript framework with an unintuitive, verbose syntax and very few features. Browsing its inelegant, poorly written source is an unwelcome experience. 2012-06-04T17:26:01 < dongs> lool 2012-06-04T17:26:07 < jpa-> dongs: doesn't it just have nice calls to __divfp etc? 2012-06-04T17:26:39 < dongs> sure 2012-06-04T17:26:49 < dongs> but mapping those is a pain in the ass too 2012-06-04T17:26:58 < dongs> ill see if I can match some patterns 2012-06-04T17:27:08 < dongs> but usually i havent had much luck getting signatures from various gcc libs 2012-06-04T17:27:54 < jpa-> should be quite easy if you can run the code in a debugger 2012-06-04T18:14:51 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.] 2012-06-04T18:21:18 < Laurenceb_> god i hate word 2012-06-04T18:21:26 < Laurenceb_> stupid table failure 2012-06-04T18:23:45 -!- grummund [~user@unaffiliated/grummund] has quit [Quit: leaving] 2012-06-04T18:29:23 -!- tavish [~tavish@59.177.11.134] has joined ##stm32 2012-06-04T18:29:23 -!- tavish [~tavish@59.177.11.134] has quit [Changing host] 2012-06-04T18:29:23 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-04T18:46:13 < dongs> HUEg BLOGS 2012-06-04T18:46:20 < dongs> opffice2010 is a fucking disaster 2012-06-04T18:46:28 < dongs> the ribbon interface shit was the dumbest shit ever 2012-06-04T18:46:50 < dongs> HI LOOK ALL TEH SHIT W AS IN MENUS WHERE YOU COULD EASILY USE IT BUT NOW LETS HIDE IT BEHIND OVER 9000 CLICKS OR JUT REMOVE IT ALLTOGTHER 2012-06-04T18:47:58 < cjbaird> ENGLISH MOTHERFUCKER, DO YOU SPEAK IT. 2012-06-04T18:49:34 -!- cjbaird [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-04T18:50:23 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-04T18:52:29 -!- dekar_ [~dekar@dslb-088-068-110-091.pools.arcor-ip.net] has joined ##stm32 2012-06-04T18:52:32 -!- mode/##stm32 [+v dekar_] by ChanServ 2012-06-04T18:54:57 -!- dekar [~dekar@dslb-084-059-131-123.pools.arcor-ip.net] has quit [Ping timeout: 252 seconds] 2012-06-04T18:58:00 -!- dekar [~dekar@dslb-084-059-027-118.pools.arcor-ip.net] has joined ##stm32 2012-06-04T18:58:04 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-04T18:59:52 -!- dekar_ [~dekar@dslb-088-068-110-091.pools.arcor-ip.net] has quit [Ping timeout: 244 seconds] 2012-06-04T19:02:26 < Laurenceb_> http://uk.farnell.com/silonex/slcd-61n2/photodiode-planar-chip/dp/1218987 2012-06-04T19:02:26 < Laurenceb_> nice 2012-06-04T19:04:42 -!- dekar_ [~dekar@dslb-084-059-043-155.pools.arcor-ip.net] has joined ##stm32 2012-06-04T19:04:42 -!- mode/##stm32 [+v dekar_] by ChanServ 2012-06-04T19:08:12 -!- dekar [~dekar@dslb-084-059-027-118.pools.arcor-ip.net] has quit [Ping timeout: 260 seconds] 2012-06-04T19:18:49 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-04T19:18:52 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-04T19:20:47 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-04T19:21:10 -!- Netsplit *.net <-> *.split quits: ben1066, Laurenceb_, SuicideFunky 2012-06-04T19:21:33 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-04T19:23:30 -!- dekar_ [~dekar@dslb-084-059-043-155.pools.arcor-ip.net] has quit [Ping timeout: 244 seconds] 2012-06-04T19:23:49 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 248 seconds] 2012-06-04T19:24:01 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 250 seconds] 2012-06-04T19:31:04 -!- dekar__ [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has joined ##stm32 2012-06-04T19:31:04 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-04T19:31:08 -!- Netsplit over, joins: Laurenceb_, ben1066, SuicideFunky 2012-06-04T19:31:08 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Quit: Leaving.] 2012-06-04T19:31:19 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-04T19:53:17 -!- LawrenceSeattle [~lawrence@216.243.49.130] has quit [Quit: LawrenceSeattle] 2012-06-04T20:04:03 < Tectu> yeah 2012-06-04T20:09:57 * Laurenceb_ passes round some troll food 2012-06-04T20:12:34 < Tectu> yya 2012-06-04T20:12:36 < Tectu> thanks Laurenceb 2012-06-04T20:24:24 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32 2012-06-04T20:29:17 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-06-04T20:30:25 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-04T21:15:34 -!- dekar__ [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has quit [Ping timeout: 245 seconds] 2012-06-04T21:47:31 -!- dekar [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has joined ##stm32 2012-06-04T21:47:31 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-04T22:03:52 -!- tavish [~tavish@unaffiliated/tavish] has quit [Read error: Connection reset by peer] 2012-06-04T22:11:05 -!- tavish [~tavish@59.177.3.194] has joined ##stm32 2012-06-04T22:11:05 -!- tavish [~tavish@59.177.3.194] has quit [Changing host] 2012-06-04T22:11:05 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-04T22:11:21 -!- tavish [~tavish@unaffiliated/tavish] has quit [Read error: Connection reset by peer] 2012-06-04T22:24:36 < Tectu> stm32 big or little endian? o0 2012-06-04T22:24:37 < Tectu> confused 2012-06-04T22:26:31 < karlp> hint, you probably don't care. 2012-06-04T22:26:59 < karlp> or, you should write your code such that it doesn't care. 2012-06-04T22:27:24 < karlp> (don't use pointer tricks to convert things) 2012-06-04T22:33:12 * zyp converts karlp with pointer tricks 2012-06-04T22:34:09 < Tectu> aw :( 2012-06-04T22:34:18 < zyp> Tectu, little endian 2012-06-04T22:34:23 <+Steffanx> A little or big endian system zyp ? 2012-06-04T22:34:34 < zyp> Steffanx, middle endian 2012-06-04T22:34:44 <+Steffanx> Ah, 2012-06-04T22:36:34 <+Steffanx> Time for an endianless system :) 2012-06-04T22:36:38 <+Steffanx> Pure magic 2012-06-04T22:37:08 < zyp> easy, just restrict operation to one word size only 2012-06-04T22:37:45 <+Steffanx> And when you need two you're screwed 2012-06-04T22:37:59 < zyp> I don't know if you have seen the DCPU-16 stuff the kids are playing with nowadays, it's endianless 2012-06-04T22:38:11 < zyp> or the version of the spec I last read were, at least 2012-06-04T22:38:54 <+Steffanx> And who defines who you store "123456789" ? 2012-06-04T22:39:15 < zyp> what do you mean? 2012-06-04T22:39:22 <+Steffanx> *who = how 2012-06-04T22:39:35 < zyp> in what sense? 2012-06-04T22:40:29 < zyp> memory is two-dimensional, bits and bytes are orthogonal 2012-06-04T22:41:00 <+Steffanx> So .. 2012-06-04T22:41:31 < zyp> so? 2012-06-04T22:41:41 < zyp> so bit order doesn't matter 2012-06-04T22:42:26 <+Steffanx> but byte order does, isn't that where the endianness systems are 'designed' for? 2012-06-04T22:43:01 < zyp> endianness refers to the byte order when you have to split a large word into several bytes 2012-06-04T22:44:01 <+Steffanx> My endianless system was more like a randomainess system :P 2012-06-04T22:44:32 <+Steffanx> *randomianess 2012-06-04T22:44:37 < zyp> the address only refers to whole bytes, not the individual bits inside an byte, so it has nothing to do with endianness 2012-06-04T22:45:01 < zyp> but you can say that you get a similar problem when you are serializing a byte 2012-06-04T22:45:20 < zyp> then you split an 8-bit word into eight 1-bit words 2012-06-04T22:45:32 < zyp> that you can send either MSB or LSB first 2012-06-04T22:51:45 <+Steffanx> Your interpreter thought of "123456789" being a string, didn't it zyp ? 2012-06-04T22:52:17 < zyp> no, I thought of it as a number 2012-06-04T22:52:43 <+Steffanx> okok 2012-06-04T22:52:54 <+Steffanx> I guess you read the right specs 2012-06-04T23:11:05 < jpa-> hmm.. is it crazy to think that there is misalignment error between the accelerometer and magnetometer axes on my LSM303? 2012-06-04T23:11:52 < zyp> that sounds pretty crazy, yes 2012-06-04T23:11:53 < zyp> :p 2012-06-04T23:12:14 < zyp> why do you suspect that? 2012-06-04T23:13:32 < jpa-> i put the device on horizontal table and rotated it.. accelerometer data indicates that it was perfectly level (within 1°), but magnetometer data rotates around an axis that is 5° from vertical direction 2012-06-04T23:17:51 < jpa-> have to check more carefully tomorrow 2012-06-04T23:24:42 < zyp> that sounds pretty normal 2012-06-04T23:26:12 < zyp> remember that magnetometers are affected by other shit around them and have to be calibrated 2012-06-04T23:36:48 < Tectu> should this tell me something? 2012-06-04T23:36:48 < Tectu> Note: automatically using hardware breakpoints for read-only addresses. 2012-06-04T23:36:57 < Tectu> i do get it sometimes and sometimes i don't 2012-06-04T23:39:08 < Laurenceb_> jpa-: did you calibrate both sensors? 2012-06-04T23:39:21 < Laurenceb_> my lsm303 sensors both have fairly large gain and bias offsets 2012-06-04T23:39:28 < Laurenceb_> particularly the magno 2012-06-04T23:43:59 < zyp> Laurenceb_, duh, all magnos do, it's called soft and hard iron effects 2012-06-04T23:44:17 < Laurenceb_> yeah 2012-06-04T23:44:27 < Laurenceb_> thats my point 2012-06-04T23:44:44 < zyp> the rest of your board that the magno is mounted on affects the measurements, so you have to calibrate it after it's mounted on the board 2012-06-04T23:46:04 < Laurenceb_> also the soldering effects it 2012-06-04T23:46:21 < zyp> http://bin.jvnv.net/f/unBCL.png <- here's from some shit I calibrated last year 2012-06-04T23:46:47 < zyp> blue is actual samples, red is the sphere that the samples should lie on 2012-06-04T23:47:24 < Laurenceb_> looks like my results 2012-06-04T23:48:02 < zyp> yeah, I guess z is most affected because of the ground plane, or something 2012-06-04T23:49:08 < Laurenceb_> seems unlikely 2012-06-04T23:49:13 < Laurenceb_> probably just chance --- Day changed Tue Jun 05 2012 2012-06-05T00:00:43 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-05T00:03:47 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 245 seconds] 2012-06-05T00:12:19 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2012-06-05T00:21:02 -!- LawrenceSeattle [~lawrence@66.192.187.106] has joined ##stm32 2012-06-05T00:40:47 -!- izua [~izua@79.115.171.1] has joined ##stm32 2012-06-05T00:40:47 -!- izua [~izua@79.115.171.1] has quit [Changing host] 2012-06-05T00:40:47 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-05T00:40:50 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-05T00:43:02 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Quit: Leaving.] 2012-06-05T00:45:36 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-05T01:14:46 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-06-05T01:44:10 -!- dekar_ [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has joined ##stm32 2012-06-05T01:44:13 -!- mode/##stm32 [+v dekar_] by ChanServ 2012-06-05T01:44:38 -!- dekar [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has quit [Ping timeout: 240 seconds] 2012-06-05T02:01:10 -!- peabody124 [~peabody12@128.249.96.21] has quit [Read error: Operation timed out] 2012-06-05T02:21:49 -!- Laurenceb_ [~Laurence@host86-168-105-99.range86-168.btcentralplus.com] has quit [Ping timeout: 245 seconds] 2012-06-05T02:29:10 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 256 seconds] 2012-06-05T03:05:33 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-05T03:23:49 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-05T03:36:21 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-05T03:38:44 < dongs> sup blogueres 2012-06-05T03:39:04 < dongs> < jpa-> i put the device on horizontal table and rotated it.. accelerometer data indicates that it was perfectly level 2012-06-05T03:39:07 < dongs> (within 1°), but magnetometer data rotates around an axis that is 5° from vertical direction 2012-06-05T03:39:11 < dongs> metal desk, right? :) 2012-06-05T03:39:35 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Read error: Operation timed out] 2012-06-05T04:00:36 < dongs> attn zyp http://www.thelocal.no/page/view/anti-semitism-common-in-norway-study 2012-06-05T04:03:46 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-05T04:08:31 -!- peabody124 [~peabody12@99-63-106-203.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2012-06-05T04:10:59 -!- peabody124 [~peabody12@99-63-106-203.lightspeed.hstntx.sbcglobal.net] has quit [Client Quit] 2012-06-05T04:13:29 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-05T04:38:18 < dongs> haha 2012-06-05T04:38:19 < dongs> wtf 2012-06-05T04:38:31 < dongs> i signed up for Stm32F0 freeshit and forgot I entered my JP address instead of usa 2012-06-05T04:38:36 < dongs> and they are still shipping it to me... ? 2012-06-05T04:48:18 -!- LawrenceSeattle [~lawrence@66.192.187.106] has quit [Quit: LawrenceSeattle] 2012-06-05T05:04:37 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Ping timeout: 245 seconds] 2012-06-05T05:34:52 -!- LawrenceSeattle [~lawrence@66.192.187.106] has joined ##stm32 2012-06-05T05:37:42 -!- cjbaird [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-05T06:20:50 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-05T07:58:29 < dongs> BLOG 2012-06-05T08:05:51 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has joined ##stm32 2012-06-05T08:06:54 < szczys> Hi all 2012-06-05T08:07:17 < szczys> I've got a question about the firmware package that ST has published for their new STM32F0-Discovery board 2012-06-05T08:07:25 < szczys> is this the right place to ask? 2012-06-05T08:08:23 < dongs> sure 2012-06-05T08:08:30 < szczys> Great! 2012-06-05T08:08:48 < szczys> I downloaded the package, but I don't see a source file that I think should have been included with the CMSIS 2012-06-05T08:08:56 < szczys> There is a core_cm0.h file 2012-06-05T08:09:01 < szczys> but there is no core_cm0.c file 2012-06-05T08:09:14 < szczys> does this sound like a problem? 2012-06-05T08:09:47 < dongs> core_cm?.c/h should be in same dir 2012-06-05T08:09:53 < dongs> under CMSIS\CM0\CoreSupport or so. 2012-06-05T08:09:58 < dongs> did you download stdperiphlib? 2012-06-05T08:10:04 < dongs> or just F0discover specific package 2012-06-05T08:10:23 < szczys> the F0 specific package 2012-06-05T08:10:45 < szczys> available here: http://bit.ly/JQZ1bW 2012-06-05T08:10:50 < szczys> click the support tab 2012-06-05T08:10:53 < szczys> package is at the bottom 2012-06-05T08:13:31 < szczys> I also downloaded the stm32f0_stdperiph_lib.zip file 2012-06-05T08:13:42 < szczys> and I don't see the core_cm0.c file there either 2012-06-05T08:13:53 < szczys> Now I've been able to compile the peripherals library 2012-06-05T08:14:09 < szczys> but I haven't tested it yet... I'm just trying to get up and running 2012-06-05T08:14:15 < szczys> for the first time 2012-06-05T08:14:28 < szczys> (I'm in a bit over my head but I think I'll get it.) 2012-06-05T08:15:49 < dongs> hm 2012-06-05T08:16:09 < dongs> so wahts inside CMSIS\CM0\CoreSupport? 2012-06-05T08:16:10 < dongs> just .h file? 2012-06-05T08:16:38 < cjbaird> Meeeeh... Element14 sent an order via super-elite-expensive-neutrino-express shipping ($13 for a 100g package..), when I'd lodged it as a trade-counter pickup. :/ .. I bothered them just then to get my monies back. 2012-06-05T08:17:08 < szczys> \Libraries\CMSIS has three directories: 2012-06-05T08:17:11 < szczys> ST 2012-06-05T08:17:14 < szczys> Include 2012-06-05T08:17:18 < szczys> and Documentation 2012-06-05T08:17:31 < dongs> weird maybe they moived shit around 2012-06-05T08:18:00 < szczys> well... I don't find any src files in the CMSIS folder 2012-06-05T08:18:06 < dongs> o wait 2012-06-05T08:18:11 < szczys> all of the C files look to be part of the peripherals 2012-06-05T08:18:11 < dongs> F4 cmsis doesnt have .c either 2012-06-05T08:18:14 < dongs> youre probably ok. 2012-06-05T08:18:17 < szczys> oh... okay 2012-06-05T08:18:21 < szczys> thanks! 2012-06-05T08:18:34 < dongs> core_cm0.h looks much bigger than the one included in M3 CMSIS 2012-06-05T08:18:40 < dongs> so they probably jut moved all teh shit from .c into h 2012-06-05T08:18:45 < dongs> it was mostly asm macros for shit anyway 2012-06-05T08:18:47 < szczys> right, I see 2012-06-05T08:19:03 < szczys> thanks for taking the time to check into it, I do appreciate it! 2012-06-05T08:19:32 < szczys> I believe I found a bug in one of the peripheral C files 2012-06-05T08:19:56 < dongs> unlikely, but.. 2012-06-05T08:20:13 < szczys> well, I'm using arm-none-eabi-gcc 2012-06-05T08:20:28 < szczys> and got a compiler error when it got to the dac source file 2012-06-05T08:20:41 < szczys> undefined function, needed to include another header file 2012-06-05T08:21:11 < dongs> i usually only build files from stdperiphlib for the peripherals im gonna use.. 2012-06-05T08:21:34 < szczys> I'm following an example package built for one of the other Discovery boards 2012-06-05T08:22:12 < szczys> https://github.com/texane/stlink/tree/master/example/libs_stm/build 2012-06-05T08:22:30 < szczys> the make files in that directory build one big .a file out of the peripherals 2012-06-05T08:26:34 < szczys> anyway... off to bed. Thanks for the advice! 2012-06-05T08:26:39 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has quit [Quit: Leaving] 2012-06-05T09:40:48 -!- blkcat [~colin@cider.blkcat.net] has joined ##stm32 2012-06-05T09:41:11 < blkcat> hey guys :) 2012-06-05T09:44:47 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-05T10:19:03 -!- dekar_ [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep] 2012-06-05T10:42:25 -!- Laurenceb_ [~Laurence@host86-168-105-99.range86-168.btcentralplus.com] has joined ##stm32 2012-06-05T10:59:29 -!- dekar [~dekar@dslb-088-069-137-175.pools.arcor-ip.net] has joined ##stm32 2012-06-05T10:59:32 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-05T11:12:14 -!- Laurenceb_ [~Laurence@host86-168-105-99.range86-168.btcentralplus.com] has quit [Ping timeout: 245 seconds] 2012-06-05T12:21:05 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-05T12:22:06 -!- LawrenceSeattle [~lawrence@66.192.187.106] has quit [Quit: LawrenceSeattle] 2012-06-05T12:33:59 -!- izua [~izua@79.115.171.1] has joined ##stm32 2012-06-05T12:33:59 -!- izua [~izua@79.115.171.1] has quit [Changing host] 2012-06-05T12:33:59 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-05T12:34:02 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-05T12:35:43 -!- ben1066_ [~quassel@host109-152-71-251.range109-152.btcentralplus.com] has joined ##stm32 2012-06-05T12:35:43 -!- ben1066_ [~quassel@host109-152-71-251.range109-152.btcentralplus.com] has quit [Changing host] 2012-06-05T12:35:43 -!- ben1066_ [~quassel@unaffiliated/ben1066] has joined ##stm32 2012-06-05T12:37:14 -!- ben1066 [~quassel@unaffiliated/ben1066] has quit [Ping timeout: 245 seconds] 2012-06-05T12:51:49 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has joined ##stm32 2012-06-05T12:51:49 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has quit [Changing host] 2012-06-05T12:51:49 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32 2012-06-05T12:55:09 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 252 seconds] 2012-06-05T13:03:16 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has quit [Ping timeout: 260 seconds] 2012-06-05T13:15:20 -!- ben1066_ is now known as ben1066 2012-06-05T13:19:11 -!- upgrdman [~upgrdman@71-92-208-122.static.mtpk.ca.charter.com] has joined ##stm32 2012-06-05T13:19:11 -!- upgrdman [~upgrdman@71-92-208-122.static.mtpk.ca.charter.com] has quit [Changing host] 2012-06-05T13:19:11 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has joined ##stm32 2012-06-05T13:27:54 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-05T13:36:34 < upgrdman> im trying to measure how long each GPIO input pin stays high. i think my logic is correct, but it isnt working. http://pastebin.com/hue5vjjM any ideas? 2012-06-05T13:41:14 < zyp> how is it not working? 2012-06-05T13:45:10 < upgrdman> when all pins on that port are low, currentInputValues never equals 0 2012-06-05T13:45:34 < upgrdman> i even configured pull downs for that port, but they should not be needed anyway 2012-06-05T13:45:59 < zyp> oh, right, so GPIO_ReadInputData() doesn't give you results as expected? 2012-06-05T13:46:50 < upgrdman> yes 2012-06-05T13:46:52 < zyp> did you consider that all ports are 16 bits wide, even though you're only using lower 8? 2012-06-05T13:46:59 < upgrdman> yes 2012-06-05T13:47:14 < upgrdman> oh i think i found the problem 2012-06-05T13:47:25 < upgrdman> one of the dev board periphs uses one of those pins 2012-06-05T13:47:27 < upgrdman> doh! 2012-06-05T13:48:31 < zyp> oh, and instead of doing a lot of if checks like that, you can compute changed pins like this: (prev ^ current) 2012-06-05T13:49:19 < zyp> ((prev ^ current) & current) will give you pins that just went high, and ((prev ^ current) & prev) will give you pins that just went low 2012-06-05T13:50:31 < upgrdman> well i need to update an array 2012-06-05T13:51:06 < zyp> yes, but you simplify the if tests that run 8 times by adding a calculation that only runs one time 2012-06-05T13:51:25 < zyp> sorry, I'm just obsessed with writing efficient code :p 2012-06-05T13:52:21 < upgrdman> ok 2012-06-05T14:07:20 < dongs> lol. i put fireworks on top of my quad (the kind that shoots out just one charge, but fairly loudly i guess) and it fired about 5 meters off hte ground, and must have jerked the quad enough that one of the props snapped 2012-06-05T14:12:38 -!- pelrun_ [~pelrun@14-202-70-213.static.tpgi.com.au] has joined ##stm32 2012-06-05T14:21:53 * pelrun_ kicks his non-running usart interrupt code 2012-06-05T14:22:06 < pelrun_> can't figure out why it isn't firing 2012-06-05T14:22:20 < pelrun_> should probably check to see if the vector is correct 2012-06-05T14:38:10 <+dekar> in case someone cares, I've updated TNT to Linaro GCC 4.7 - my resulting firmware shrunk by 150bytes and compiling seems quite a bit faster 2012-06-05T14:38:42 <+dekar> TNT now downloads the needed tarballs 2012-06-05T14:38:53 <+dekar> as well as extracts them 2012-06-05T14:39:15 < Laurenceb> 150bytes out of what size? 2012-06-05T14:39:20 <+dekar> 15kb 2012-06-05T14:39:24 < Laurenceb> lol 2012-06-05T14:39:27 < Laurenceb> not much 2012-06-05T14:39:41 <+dekar> yeah well, I just updated from gcc4.6 to 4.7 2012-06-05T14:39:42 < Laurenceb> what is tnt? 2012-06-05T14:39:45 <+dekar> I didn't expect much 2012-06-05T14:39:46 < Laurenceb> ah 2012-06-05T14:39:55 <+dekar> the official ##stm32 toolchain 2012-06-05T14:40:01 < Laurenceb> really 2012-06-05T14:40:11 < Laurenceb> hmm 2012-06-05T14:40:14 <+dekar> Thumb2 Newlib Toolchain 2012-06-05T14:40:17 < Laurenceb> better than codesourcery? 2012-06-05T14:40:42 <+dekar> yeah, I made TNT cause I didn't like they way they used newlib 2012-06-05T14:40:44 < zyp> dekar, no multilib? 2012-06-05T14:40:50 <+dekar> zyp, nope 2012-06-05T14:41:04 <+dekar> but feel free to add multilib if you care 2012-06-05T14:41:09 < Laurenceb> where can i download? 2012-06-05T14:41:23 < zyp> so, no F0 support and no utilization of M4 extensions in F4? 2012-06-05T14:41:24 <+dekar> https://github.com/EliasOenal/TNT 2012-06-05T14:41:46 <+dekar> zyp, add multilib and I'll gladly add it to the script 2012-06-05T14:41:55 < zyp> I'm just asking 2012-06-05T14:41:58 <+dekar> I only build for stm32f1 2012-06-05T14:42:44 < Laurenceb> looks good, ill try it laters 2012-06-05T14:43:04 <+dekar> I've only tried it on OSX so far so it probably needs some changes 2012-06-05T14:43:26 < Laurenceb> yeah i see the darwin stuff 2012-06-05T14:43:31 < Laurenceb> im running ubuntu 2012-06-05T14:44:31 < zyp> how is it, when you use hardfloat, do float functions use a different ABI? 2012-06-05T14:44:49 < zyp> i.e. pass float arguments in fpu regs 2012-06-05T14:47:04 < zyp> if that is the case, it's not a matter of libs compiled for cm3 being slow, it's a matter of libs compiled for cm3 not working when compiling an application for cm4f with hardfloat 2012-06-05T14:47:06 <+dekar> the main reason I made TNT was the lack of sane memory page sizes in codesourcery 2012-06-05T14:47:20 <+dekar> they compiled newlib with 4096byte pages 2012-06-05T14:47:26 < zyp> memory page sizes? 2012-06-05T14:47:28 < zyp> ah, right 2012-06-05T14:47:36 <+dekar> well for malloc 2012-06-05T14:47:46 < Laurenceb> interesting 2012-06-05T14:47:53 < zyp> so sbrk will be called with 4k increments, I guess 2012-06-05T14:48:01 <+dekar> yeah 2012-06-05T14:48:04 < Laurenceb> guess that explains the issues i was having 2012-06-05T14:48:11 <+dekar> for TNT newlib uses 128byte pages 2012-06-05T14:48:11 < Laurenceb> with malloc eating all my ram 2012-06-05T14:48:36 <+dekar> I also set some flags to make newlib smaller at the cost of speed 2012-06-05T14:48:44 < zyp> how does the paging in newlib malloc work? 2012-06-05T14:48:58 < zyp> does it affect anything more than sbrk increment size? 2012-06-05T14:49:54 <+dekar> I did't look into it that far, but I saw malloc failing on codesourcery when I had quite some memory left 2012-06-05T14:50:43 < zyp> would be more sane to just remove the sbrk stuff at all 2012-06-05T14:51:13 < Laurenceb> dekar: me too 2012-06-05T14:51:28 <+dekar> I guess so, but newlib was intended for use on top of operating systems 2012-06-05T14:51:29 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Quit: Leaving.] 2012-06-05T14:52:02 < zyp> dekar, yes, on platforms with MMU, so sbrk can request more memory to be mapped up 2012-06-05T14:52:25 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-05T14:52:58 <+dekar> the 128byte pages work reasonably well though, so I am to lazy to patch it and get it upstream 2012-06-05T15:19:18 < pelrun_> blah, why has my linker script put a non-aligned address in a vector entry? :P 2012-06-05T15:19:27 < pelrun_> time to get the hammer out 2012-06-05T15:21:48 < Laurenceb> can anyone help me with github? 2012-06-05T15:21:58 < Laurenceb> i need to merge remote changes 2012-06-05T15:22:06 < zyp> pelrun_, because that's the way they are supposed to be 2012-06-05T15:22:09 < Laurenceb> from my github repo 2012-06-05T15:22:22 < Laurenceb> how do i do that? 2012-06-05T15:22:35 < zyp> Laurenceb, huh? 2012-06-05T15:23:13 < Laurenceb> i have changes A,B and C 2012-06-05T15:23:21 < Laurenceb> my local copy has A and C 2012-06-05T15:23:23 < pelrun_> zyp, oh, is the lower bit a flag? 2012-06-05T15:23:26 < Laurenceb> repo has B 2012-06-05T15:23:33 < Laurenceb> how do i do the merge? 2012-06-05T15:23:39 < zyp> pelrun_, yes, it indicates arm or thumb mode 2012-06-05T15:23:48 < zyp> and as stm32 is thumb only, it should always be 1 2012-06-05T15:24:30 < zyp> if you go ahead and force it to be 0, the cpu will throw a usagefault due to INVSTATE 2012-06-05T15:24:31 < Laurenceb> http://securfox.wordpress.com/2010/04/29/merge-the-remote-changes-before-pushing-again-not-a-fast-forward/ 2012-06-05T15:24:31 < pelrun_> gotcha 2012-06-05T15:24:35 < Laurenceb> ^that? 2012-06-05T15:24:49 < pelrun_> didn't know they were thumb-only, that's interesting too 2012-06-05T15:25:05 < zyp> Laurenceb, what is the common ancestor? 2012-06-05T15:25:09 * pelrun_ wonders what else he missed 2012-06-05T15:25:21 < Laurenceb> its shared at point A 2012-06-05T15:25:37 < zyp> github has A -> B and you have A -> C? 2012-06-05T15:25:41 < Laurenceb> yes 2012-06-05T15:26:29 < zyp> and you are now in your local repo, in your github tracking branch? 2012-06-05T15:26:55 < Laurenceb> erm.. yeah 2012-06-05T15:27:00 < zyp> ok 2012-06-05T15:27:10 < zyp> first, run git fetch 2012-06-05T15:27:21 < zyp> then: git rebase origin/master 2012-06-05T15:27:41 < zyp> origin/master should refer to B, and rebase will move B on top of C 2012-06-05T15:27:46 < Laurenceb> like the link i posted? 2012-06-05T15:28:02 < zyp> ah, yes 2012-06-05T15:28:08 < zyp> it says pretty much the same 2012-06-05T15:28:34 < zyp> it's a bit more explicit with the arguments, but it's the same idea 2012-06-05T15:29:00 < zyp> oh 2012-06-05T15:29:02 < zyp> actually 2012-06-05T15:29:11 < zyp> you could just do this: git pull --rebase 2012-06-05T15:29:19 < zyp> it will be equivalent to fetch and rebase 2012-06-05T15:30:15 < Laurenceb> i see 2012-06-05T15:30:40 < zyp> you can also do a normal pull, but that would create a merge of B and C, instead of rebasing C 2012-06-05T15:30:52 < zyp> and that leads to pretty ugly history 2012-06-05T15:31:24 < Laurenceb> CONFLICT (content): Merge conflict in main.map 2012-06-05T15:31:24 < Laurenceb> Failed to merge in the changes. 2012-06-05T15:31:52 < Laurenceb> delete the file? 2012-06-05T15:31:54 < zyp> http://bin.jvnv.net/f/IRsAD.png <- this is from my final project in uni, three guys working on the same repo 2012-06-05T15:32:01 < zyp> ha, no, don't be stupid 2012-06-05T15:32:13 < zyp> open the file and resolve the conflict 2012-06-05T15:32:38 < Laurenceb> Auto-merging main.bin 2012-06-05T15:32:38 < Laurenceb> CONFLICT (content): Merge conflict in main.bin 2012-06-05T15:32:46 < Laurenceb> its not liking the binaries 2012-06-05T15:32:51 < zyp> oh, right 2012-06-05T15:33:04 < Laurenceb> thats why i thought delete it 2012-06-05T15:33:11 < zyp> wait, map and bin sounds like compiler output 2012-06-05T15:33:16 < Laurenceb> it is 2012-06-05T15:33:18 < zyp> why are they in the repo in the first place? 2012-06-05T15:33:21 < Laurenceb> lol 2012-06-05T15:33:21 < zyp> that's dumb. 2012-06-05T15:34:10 < zyp> well, if you insist on having them in the repo, the right way now is to delete them and rebuild them from the merged sources 2012-06-05T15:34:26 < zyp> and if you don't, just delete them 2012-06-05T15:34:53 < zyp> *yawn* 2012-06-05T15:35:14 < zyp> actually, resolving merge conflicts is what I've been doing for work all day 2012-06-05T15:35:16 < Laurenceb> heh 2012-06-05T15:35:18 < Laurenceb> git push prigin master 2012-06-05T15:35:24 < Laurenceb> what does that mean? 2012-06-05T15:35:38 < zyp> pretty much same as git push 2012-06-05T15:35:47 < BrainDamage> puts prigin branch into repo named master 2012-06-05T15:35:49 < pelrun_> oh geez 2012-06-05T15:35:55 * pelrun_ is an idiot 2012-06-05T15:36:00 < zyp> BrainDamage, no, other way around 2012-06-05T15:36:07 < BrainDamage> ah right 2012-06-05T15:36:10 < zyp> push master branch into repo named origin 2012-06-05T15:36:13 < pelrun_> was using a ld_vl startup on the f1 discovery, which is an md_vl 2012-06-05T15:36:25 < zyp> origin is the default name for the main upstream server 2012-06-05T15:36:39 < BrainDamage> yeah, I was wondering why he picked such weird name 2012-06-05T15:36:47 < BrainDamage> didn't realize it was a typo 2012-06-05T15:37:27 < Laurenceb> seems to work now thanks 2012-06-05T15:37:41 < zyp> Laurenceb, are you sure? 2012-06-05T15:37:58 < Laurenceb> well... all the files look correct now 2012-06-05T15:37:59 < zyp> did you resolve the conflict, tell git that you resolved the conflict, and push the changes? 2012-06-05T15:38:04 < Laurenceb> and it compiles... 2012-06-05T15:38:17 < zyp> but is the repo in a valid state? 2012-06-05T15:38:33 < BrainDamage> remember that after resolving a merge conflict you have to issue a commit order 2012-06-05T15:38:38 < zyp> yes 2012-06-05T15:38:39 < BrainDamage> or the changes won't be saved 2012-06-05T15:39:07 < zyp> I've probably did that 20 times today 2012-06-05T15:40:41 < Laurenceb> it looks to have picked up all the correct changes 2012-06-05T15:40:44 < Laurenceb> https://github.com/Laurenceb/STM32-Logger 2012-06-05T15:41:41 < zyp> yeah, if push didn't give you any errors, you're all good 2012-06-05T15:42:22 < Laurenceb> now ill spend some time doing something insane 2012-06-05T15:42:30 < Laurenceb> like adding SMART status info 2012-06-05T15:43:04 < Laurenceb> grab pcb temperature data 2012-06-05T15:49:21 <+dekar> Laurenceb, I am just compiling TNT on Debian, seems to "just work" after commenting the DARWIN lines 2012-06-05T15:49:29 <+dekar> I'll add some ifdef 2012-06-05T15:49:31 < Laurenceb> cool 2012-06-05T15:49:35 < Laurenceb> ill try later 2012-06-05T15:49:59 < Laurenceb> currently trying to work ouyt if "scsi sense data" is actually SMART 2012-06-05T15:51:23 < Laurenceb> looks like its actually this? 2012-06-05T15:51:24 < Laurenceb> http://en.wikipedia.org/wiki/KCQ 2012-06-05T15:52:36 < Laurenceb> http://lists.freebsd.org/pipermail/freebsd-scsi/2008-February/003353.html 2012-06-05T15:52:38 < Laurenceb> damn 2012-06-05T15:52:43 < Laurenceb> oh well it was a cool idea 2012-06-05T15:54:35 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-05T15:57:06 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has quit [Ping timeout: 260 seconds] 2012-06-05T16:03:58 < BrainDamage> anyone tried http://dragonegg.llvm.org/ with a stm32 already? 2012-06-05T16:05:45 < zyp> nah 2012-06-05T16:05:52 < zyp> but I've considered trying clang 2012-06-05T16:11:39 <+dekar> I don't think dragonegg would have any advantages 2012-06-05T16:13:23 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has joined ##stm32 2012-06-05T16:14:23 <+dekar> and I think clang doesn't support thumb2 2012-06-05T16:15:17 < zyp> strictly speaking, clang is just the frontend 2012-06-05T16:29:17 < dongs> http://i.imgur.com/Ih01P.jpg 2012-06-05T16:29:24 < dongs> attn Laurenceb ^ 2012-06-05T16:29:32 < dongs> and no its not the catquad link. 2012-06-05T16:29:56 < Laurenceb> nice 2012-06-05T16:30:04 < Laurenceb> whats the lower green pcb? 2012-06-05T16:30:17 < dongs> holder for top pcb ;p 2012-06-05T16:30:26 < dongs> cause the frame has no mount holes for 36mm shit 2012-06-05T16:30:50 < Laurenceb> ah 2012-06-05T16:33:13 < BrainDamage> are you going to mount a camera and use it to spy gym locker rooms? 2012-06-05T16:34:11 < dongs> yes. 2012-06-05T16:35:12 < Laurenceb> meanwhile in japan... 2012-06-05T16:36:56 < pelrun_> okay, weird 2012-06-05T16:37:14 < pelrun_> I can get usart rx interrupts now, but not TX 2012-06-05T16:37:23 < pelrun_> wonder what I'm doing wrong now 2012-06-05T16:38:42 < dongs> why the fuck are you using interrupts 2012-06-05T16:38:44 < dongs> just use dma?? 2012-06-05T16:39:58 < pelrun_> That's a whole other kettle of fish I'm not prepared to open just yet 2012-06-05T16:40:11 < pelrun_> also I'm not throwing that much data at the usart yet 2012-06-05T16:41:05 <+dekar> I do like the error messages clang outputs, they're so much more readable than GCC 2012-06-05T16:41:24 <+dekar> but on my mac clang fails to compile most software :/ 2012-06-05T16:41:44 -!- Tectu_ [~Tectu@81.201.194.34] has joined ##stm32 2012-06-05T16:41:58 < dongs> btw Tectu_ 2012-06-05T16:42:05 < Tectu_> yes dongs ? 2012-06-05T16:42:06 < dongs> that pnp.png shit you found 2012-06-05T16:42:11 < dongs> besides the resistor and shit 2012-06-05T16:42:19 < dongs> the led should have been on the low side etc 2012-06-05T16:42:27 < dongs> shit sorta works on high side but its biased wrongetc etc. 2012-06-05T16:42:30 < Tectu_> i did say you that, sir 2012-06-05T16:42:34 < dongs> o ok 2012-06-05T16:42:35 < Tectu_> scroll back to your log 2012-06-05T16:42:41 < dongs> i dont log, i'm not a spy/paranoid 2012-06-05T16:42:46 < Tectu_> i said take PNP and also move LED to the other side 2012-06-05T16:42:48 < Tectu_> aye 2012-06-05T16:42:51 < Tectu_> i don't log eighter 2012-06-05T16:43:00 < Tectu_> but i am 100% sure that i did say that to you ;) 2012-06-05T16:43:17 < Tectu_> because i work with transistors every fucking day 2012-06-05T16:43:21 * Laurenceb fails 2012-06-05T16:43:33 < Laurenceb> wondered why my pgio kept going weird 2012-06-05T16:43:42 < Laurenceb> turns out a pin was shorted to gnd 2012-06-05T16:43:47 < Laurenceb> stupid pcbtrain boards 2012-06-05T16:44:14 < Laurenceb> you can see the fingerprint going over the traces under a scope 2012-06-05T16:44:20 < Tectu_> Laurenceb, didn't we say take 4 layers? :D 2012-06-05T16:45:25 < karlp> ahh, but whose fingerprint? ;) 2012-06-05T16:47:44 < Laurenceb> not mine 2012-06-05T16:48:29 < Tectu_> you cot some microscope arround? 2012-06-05T16:48:42 < Tectu_> some seriously biochemicallaboratory one or just one of these USB things? 2012-06-05T16:50:19 < Laurenceb> serious one 2012-06-05T16:50:53 < Laurenceb> modified to look at pcbs 2012-06-05T16:51:05 < Laurenceb> i cut off most of the base with an angle grinder 2012-06-05T16:52:50 < Tectu_> where the hell do you work, dude 2012-06-05T16:53:01 < dongs> he doesnt work 2012-06-05T16:53:03 < dongs> he's a troll 2012-06-05T16:53:06 < Laurenceb> exactly 2012-06-05T16:53:14 < dongs> just like me 2012-06-05T16:53:18 < dongs> but im on a bigger scale 2012-06-05T16:53:26 < Laurenceb> lol 2012-06-05T16:56:58 < Laurenceb> lol@ seeedstudio 2012-06-05T16:57:09 < Laurenceb> parcel got returned as they only put my postcode on it 2012-06-05T16:57:34 < Laurenceb> they dont seem to realise thats an area of about half a square mile 2012-06-05T16:57:40 -!- izua [~izua@79.115.171.1] has joined ##stm32 2012-06-05T16:57:40 -!- izua [~izua@79.115.171.1] has quit [Changing host] 2012-06-05T16:57:40 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-05T16:57:43 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-05T16:58:08 < Laurenceb> meaning i only have pcbtrain boards.. wohoo 2012-06-05T16:59:47 < Laurenceb> set y2tics 2012-06-05T17:06:14 -!- Tectu_ [~Tectu@81.201.194.34] has quit [Quit: Verlassend] 2012-06-05T17:23:11 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Ping timeout: 252 seconds] 2012-06-05T17:27:47 -!- cjbaird [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-05T17:33:12 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-05T17:35:26 < pelrun_> yay, got this working 2012-06-05T17:38:35 < pelrun_> was using "USART_FLAG_TXE" when I should have used "USART_IT_TXE" 2012-06-05T17:43:21 -!- [7] [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-05T17:58:02 < dongs> duh 2012-06-05T17:58:34 < Laurenceb> lanchon? 2012-06-05T17:58:48 < dongs> i should probably pass out 2012-06-05T17:59:11 < Laurenceb> http://den.spicylemons.com/gallery.php?action=viewimage&iid=825&cid=17 2012-06-05T18:14:24 < dongs> # 11 february 2010 : 2012-06-05T18:14:24 < dongs> * Jose Alberto Reguero has found the bug preventing the firmware load. After almost a year, a significant step forward. 2012-06-05T18:14:27 < dongs> # 21 may 2009 : 2012-06-05T18:14:32 < dongs> typical lunix development timeline 2012-06-05T18:17:13 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-05T18:18:06 < Laurenceb> stupid commies 2012-06-05T18:24:38 <+dekar> did some major update to TNT, compiles on linux now and builds GDB as well 2012-06-05T18:25:28 < BrainDamage> what version of gcc do you compile? 2012-06-05T18:25:49 < [7]> heh, what's the matter with gdb? 2012-06-05T18:26:02 < [7]> i just noticed it doesn't come with ubuntu's arm-linux-gnueabi toolchain for some reason 2012-06-05T18:26:20 < [7]> which makes using that for stm32 development a bit awkward 2012-06-05T18:26:37 <+dekar> BrainDamage, Linaro 4.7 2012-06-05T18:27:22 <+dekar> [7], arm-linux-gnueabi doesn't sound like it is suited for stm32 anyway 2012-06-05T18:28:17 < [7]> I think it can work with some tweaks though, and it has the advantage of being there already :) 2012-06-05T18:28:35 < dongs> ubunto is still relevant? 2012-06-05T18:28:39 < BrainDamage> you want arm-none-eabi, not linux-gnueabi 2012-06-05T18:28:54 < dongs> incompatible-eabi 2012-06-05T18:29:11 < dongs> why did gnutards think it was OK to reinvent the wheel? 2012-06-05T18:32:17 <+dekar> [7] try TNT :D https://github.com/EliasOenal/TNT 2012-06-05T18:40:07 < zyp> huh? 2012-06-05T18:40:45 < zyp> I'm assuming linux-gnueabi means linux with a gnu userland that uses eabi 2012-06-05T18:41:13 < zyp> not that it's a gnu-specific eabi 2012-06-05T18:42:40 < pelrun_> hmm 2012-06-05T18:49:16 < dongs> fail with fail doing fail and failing while failing. 2012-06-05T18:49:22 < dongs> ^ lunix-gnueabi 2012-06-05T18:56:52 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-05T18:58:53 -!- pelrun_ [~pelrun@14-202-70-213.static.tpgi.com.au] has quit [Ping timeout: 252 seconds] 2012-06-05T19:09:53 < Tectu> "For less than 8$, the STM32 F0 Discovery kit helps you to discover the STM32 F0 Cortex-M0 features and to develop your applications easily. " 2012-06-05T19:09:56 < Tectu> for less than 8$ ? 2012-06-05T19:10:46 <+dekar> Tectu, don't they offer free samples for the f0? 2012-06-05T19:11:06 < Tectu> dekar, dunno, where to get? 2012-06-05T19:11:27 < zyp> probably us only 2012-06-05T19:12:25 < Tectu> F0 ist very low power, right? 2012-06-05T19:12:59 < zyp> potato powered 2012-06-05T19:13:53 < Tectu> yes, but L1 is even more low power, right? 2012-06-05T19:14:12 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-05T19:14:16 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-05T19:14:22 < zyp> hmm, good question 2012-06-05T19:15:07 < BrainDamage> F0 mounts a cortex M0 2012-06-05T19:15:20 < zyp> yes, and L1 is based on M3 2012-06-05T19:15:38 < zyp> M0 is less complex, so it should be cheaper at least 2012-06-05T19:16:12 < BrainDamage> yup, it's supposed to be even cheaper than F1 ( and it is ) 2012-06-05T19:16:21 < jpa-> ah.. no axis misalignment after all, just that my heading calculation is very sensitive to any bias 2012-06-05T19:16:22 < BrainDamage> afaik they go to like 0.9$ 2012-06-05T19:16:42 < Tectu> http://www.st.com/internet/mcu/class/1734.jsp?wt.mc_id=enews_may12_F0_learning 2012-06-05T19:16:52 < jpa-> and the bias wanders.. 2012-06-05T19:17:06 < Tectu> not sure why there are needed 10000 different chips "versions" 2012-06-05T19:17:09 < zyp> power draw is kind of hard to answer, L1 could be more power efficient, i.e. more processing for the same amount of power 2012-06-05T19:17:21 < zyp> which translates into less power for the same amount of processing 2012-06-05T19:18:15 < BrainDamage> Tectu: most consumer design is all about fitting the cheapest components possible 2012-06-05T19:18:15 < karlp> different reasons for the different power too. 2012-06-05T19:18:27 < karlp> f0 cores are inhernetly lower power because they're tinier, and the core was designed for that. 2012-06-05T19:18:41 < karlp> L1 is low power because of process tricks. 2012-06-05T19:18:46 < BrainDamage> so having a broad spectrum of chips allows you potentially to save 2012-06-05T19:18:57 < zyp> karlp, but are they more power efficient? 2012-06-05T19:19:02 < karlp> you could implement the f0 IP on some very inefficient silicon processes, 2012-06-05T19:19:13 < karlp> zyp: like you say, hard to measure right now :) 2012-06-05T19:19:19 < zyp> ;) 2012-06-05T19:19:23 < karlp> I haven't looked at the sheets for the f0 closely enough 2012-06-05T19:19:37 < karlp> this is why you get dev boards :) 2012-06-05T19:19:56 < karlp> L1 does offer extra periphs designed to make low power apps work though 2012-06-05T19:20:10 < karlp> separate vbat domains and rtc's running in that domain and so on. 2012-06-05T19:20:20 < zyp> yeah 2012-06-05T19:20:27 < karlp> f0 gives you a bunch of power savings for free, just because it's a tiny core. 2012-06-05T19:20:31 < jpa-> L1 is lovely 2012-06-05T19:20:37 < zyp> I'm kind of suspecting an L0 in the future 2012-06-05T19:20:38 < karlp> L1 is pretty cool :) 2012-06-05T19:20:44 < karlp> yeah, I woudl foresee an L0 too :) 2012-06-05T19:20:45 < zyp> like L1 with M0 2012-06-05T19:20:45 < BrainDamage> I was thinking the same zyp 2012-06-05T19:30:00 * Laurenceb is heating his hand to 50C in an autoclave 2012-06-05T19:30:40 < Laurenceb> 50C hand doesnt looks very healthy 2012-06-05T19:33:12 < Laurenceb> hmm TMP006 says 52C 2012-06-05T19:35:05 < jpa-> hmm, i wonder if i could somehow cascade kalman filters so that one runs at 200Hz (estimating orientation) and another at 1 Hz (estimating biases) 2012-06-05T19:39:57 -!- tavish [~tavish@120.59.0.74] has joined ##stm32 2012-06-05T19:39:58 -!- tavish [~tavish@120.59.0.74] has quit [Changing host] 2012-06-05T19:39:58 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-05T19:48:29 < [7]> dekar: so if I'd go with TNT, where would it spew all its files? i.e. what would it break and how could I remove it? 2012-06-05T19:49:52 < [7]> IIUC it gets installed into my home directory? 2012-06-05T19:51:27 < [7]> and how would it be different compared to arm-linux-gnueabi? 2012-06-05T19:52:03 < [7]> slightly smaller libgcc I assume, anything else that's relevant if I don't use system libs? 2012-06-05T19:53:44 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-05T20:01:28 <+dekar> [7], yeah it installs to your home 2012-06-05T20:02:24 <+dekar> well your linux-gnueabi is likely not to work for your purposes, syscalls need the linux kernel for your toolchain 2012-06-05T20:02:27 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-06-05T20:02:45 <+dekar> TNT uses newlib instead of libgcc 2012-06-05T20:04:37 <+dekar> [7], since your toolchain is targeted at linux, does it even support generating thumb2 code? 2012-06-05T20:04:56 <+dekar> the stm32 can't execute normal ARM assembly 2012-06-05T20:05:06 <+dekar> *opcodes 2012-06-05T20:05:49 <+dekar> Steffanx, izua try the new TNT :) 2012-06-05T20:05:55 <+dekar> it now even downloads stuff 2012-06-05T20:05:59 <+Steffanx> Whaat? 2012-06-05T20:06:16 <+dekar> also updated to Linaro GCC 4.7 2012-06-05T20:06:50 <+Steffanx> me gives it a try 2012-06-05T20:07:56 <+Steffanx> it has to run as root dekar ? As it uses tries to install too 2012-06-05T20:10:39 < zyp> dekar, it probably does, cortex-a also supports thumb-2 2012-06-05T20:11:11 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-06-05T20:11:25 < zyp> actually, entire ARMv7 range does 2012-06-05T20:15:09 <+Steffanx> That's a yes dekar ? 2012-06-05T20:24:26 <+dekar> Steffanx, it installs to your home directory, no root needed 2012-06-05T20:24:37 <+dekar> $home/toolchain 2012-06-05T20:24:59 <+dekar> you can move it once it is done, if you don't like having it in your home 2012-06-05T20:25:42 <+dekar> zyp, so it is multilib? 2012-06-05T20:26:12 <+dekar> zyp, it also has to have softfloat 2012-06-05T20:26:12 < zyp> no idea 2012-06-05T20:35:15 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 265 seconds] 2012-06-05T20:40:54 -!- tavish [~tavish@120.59.0.74] has joined ##stm32 2012-06-05T20:40:55 -!- tavish [~tavish@120.59.0.74] has quit [Changing host] 2012-06-05T20:40:55 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-05T20:43:05 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-05T20:48:15 < karlp> whee, I just approval to prototype a new board with stm32 instead of avr. 2012-06-05T20:48:48 <+Steffanx> work related? 2012-06-05T20:48:53 < karlp> yeah 2012-06-05T20:56:29 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32 2012-06-05T21:14:51 -!- Laurenceb_ [~Laurence@host86-168-105-99.range86-168.btcentralplus.com] has joined ##stm32 2012-06-05T21:14:55 < Laurenceb_> sup 2012-06-05T21:15:07 < Laurenceb_> turns out spontaneous human combustion occurs at 52C 2012-06-05T21:15:19 < jpa-> burned your hand? 2012-06-05T21:15:19 < Laurenceb_> just got back from A&E 2012-06-05T21:15:27 < Laurenceb_> /jk 2012-06-05T21:15:44 < feurig> he gave a talk at rubycon in 2007 arduino 2012-06-05T21:20:02 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds] 2012-06-05T21:20:34 < Laurenceb_> i did it for science 2012-06-05T21:20:46 < Laurenceb_> my hand is a bit sore 2012-06-05T21:21:27 < Laurenceb_> http://i.imgur.com/Z3OL9.png 2012-06-05T21:21:38 < Laurenceb_> but results look textbook :P 2012-06-05T21:22:09 < Laurenceb_> mmm 53C, toasty 2012-06-05T21:22:30 < Laurenceb_> should have put some bread on there 2012-06-05T21:23:09 < BrainDamage> what's that for? that temp range looks a bit extreme 2012-06-05T21:23:28 -!- tavish [~tavish@120.59.0.74] has joined ##stm32 2012-06-05T21:23:33 < Laurenceb_> a bit extreme for palm surface temperature, yes 2012-06-05T21:23:44 -!- tavish [~tavish@120.59.0.74] has quit [Changing host] 2012-06-05T21:23:44 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-05T21:23:53 < Laurenceb_> vertical axis is proportional to blood flow volume 2012-06-05T21:24:30 < Laurenceb_> as it heats up you get sympathetic nervous system response, then nervous system cuts out, then you get nitric oxide regulation 2012-06-05T21:24:49 < Laurenceb_> then as it cools down you get both effects cutting in 2012-06-05T21:24:52 < Laurenceb_> so even more flow 2012-06-05T21:25:00 < Laurenceb_> its textbook results 2012-06-05T21:26:38 < Laurenceb_> next experiment: hand versus propane torch 2012-06-05T21:28:30 < feurig> Laurenceb_: a couple of mondays ago I dropped a part on the floor and went to look for it. While down there I kicked the cord for my solering iron and then proceeded to catch it. 2012-06-05T21:28:54 < feurig> dont have any graphs though. 2012-06-05T21:29:01 < feurig> only scars 2012-06-05T21:29:16 < zyp> why do you have the cord of your soldering iron on your floor? 2012-06-05T21:31:12 < Laurenceb_> also, biological PID control needs a bit of tuning 2012-06-05T21:31:20 < Laurenceb_> if you look at the cool down 2012-06-05T21:33:14 < Thorn> product idea: closed loop controlled vibrators. satisfaction guaranteed or fuses blow 2012-06-05T21:33:21 < Laurenceb_> lol 2012-06-05T21:46:44 < Laurenceb_> its pid loops all the way down... 2012-06-05T21:52:23 < Tectu> c hackers, can i ask a question? 2012-06-05T21:54:55 -!- _Shurik_ [~akronberg@64.31.191.194] has left ##stm32 [] 2012-06-05T21:56:13 < Laurenceb_> http://pic.epicfail.com/wp-content/uploads/2012/02/valentine-fail.jpg 2012-06-05T21:57:37 < Tectu> http://pastebin.com/vZpBgzmu 2012-06-05T21:57:55 < Tectu> not sure about line 12 and 14 2012-06-05T21:58:16 < Tectu> why does one pass struct **foo ? 2012-06-05T21:58:24 < Tectu> isn't that the same as struct *foo[] ? 2012-06-05T21:58:31 < Tectu> so array of pointers to struct? 2012-06-05T21:58:42 < Thorn> this looks like IBM mainftame code from the 70s (except C) 2012-06-05T21:59:59 < Thorn> everything is statically allocated 2012-06-05T22:00:52 -!- TitanMKD is now known as TitanMKD_AW 2012-06-05T22:01:30 < Tectu> Thorn, but there is struct irc_data *irc = malloc(sizeof(struct irc_data)); 2012-06-05T22:02:00 < Thorn> so if malloc() is not prohibited why not malloc() the strings too? 2012-06-05T22:11:35 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds] 2012-06-05T22:13:23 -!- tavish [~tavish@59.177.13.240] has joined ##stm32 2012-06-05T22:13:24 -!- tavish [~tavish@59.177.13.240] has quit [Changing host] 2012-06-05T22:13:24 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-05T22:31:12 -!- LawrenceSeattle [~lawrence@66.192.187.106] has joined ##stm32 2012-06-05T22:39:43 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-06-05T22:49:14 < zyp> Tectu, huh? 2012-06-05T22:49:36 < zyp> **foo is a pointer to a pointer 2012-06-05T22:49:41 < zyp> those are useful in a lot of cases 2012-06-05T22:50:45 < zyp> say you have a context struct, that will be created by an init() function 2012-06-05T22:51:24 < zyp> say you want the init function to return an error code, so it can't be used to return a pointer to the context 2012-06-05T22:51:48 < zyp> then you solve that by passing in a pointer to the context-pointer, so the function can write it 2012-06-05T22:52:29 < zyp> this is how libusb_init() works, among others 2012-06-05T22:53:51 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-05T23:02:26 -!- [7] [~quassel@rockbox/developer/TheSeven] has quit [Remote host closed the connection] 2012-06-05T23:04:48 -!- TitanMKD_AW is now known as TitanAW 2012-06-05T23:11:31 <+dekar> Steffanx, feedback? 2012-06-05T23:27:38 < Laurenceb_> yo dawg, we heard you liked pointers 2012-06-05T23:32:20 <+Steffanx> Yeah, that it failed dekar 2012-06-05T23:32:43 <+Steffanx> or at least.. it shows an error 2012-06-05T23:40:39 <+Steffanx> but i see that's my fault :) 2012-06-05T23:44:34 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving] 2012-06-05T23:53:04 -!- dekar [~dekar@dslb-088-069-137-175.pools.arcor-ip.net] has quit [Ping timeout: 245 seconds] 2012-06-05T23:53:22 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 245 seconds] --- Day changed Wed Jun 06 2012 2012-06-06T00:08:53 -!- TitanAW is now known as TitanMKD 2012-06-06T00:26:34 < Tectu> zyp, what was that 'huh?' for? 2012-06-06T00:26:41 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-06T00:44:31 -!- peabody124 [~peabody12@128.249.96.21] has quit [Read error: Connection reset by peer] 2012-06-06T00:45:05 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-06-06T01:02:27 < feurig> most of this sounds like a job for k&r .... 2012-06-06T01:02:54 < Tectu> feurig, still talking about my paste? 2012-06-06T01:04:08 < feurig> Sorry I came in late. 2012-06-06T01:05:04 < Tectu> this dosen't answer my question at all 2012-06-06T01:05:23 < feurig> (but .... your code the pointer to pointer malloc v xxx ...) 2012-06-06T01:05:42 < feurig> sorry I will scroll further up... 2012-06-06T01:08:24 < feurig> I think the use case presented (malloc) is one good reason to pass a pointer to a pointer. 2012-06-06T01:09:58 < feurig> and an array of struct pointers is not the same thing at all 2012-06-06T01:11:07 < feurig> but when ever I get into these issues and get confused I go back to k&r (which has been loaned out at the moment) 2012-06-06T01:11:42 < Tectu> yes, i'll take a look to my k&r 2012-06-06T01:11:53 < Tectu> confused about ** and *foo[] all the time... 2012-06-06T01:12:57 < feurig> I think it has to do with the way that structs are implimented. They happen to be pointers mostly. 2012-06-06T01:13:10 < feurig> and I also get lost in it. 2012-06-06T01:16:40 -!- dekar [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has joined ##stm32 2012-06-06T01:16:43 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-06T01:17:14 -!- Laurenceb_ [~Laurence@host86-168-105-99.range86-168.btcentralplus.com] has quit [Ping timeout: 245 seconds] 2012-06-06T01:27:30 < zyp> are you meaning arrays when you say structs? 2012-06-06T01:29:46 < zyp> there is a major difference between an array and a pointer 2012-06-06T01:30:05 < zyp> a pointer is a variable containing a memory address 2012-06-06T01:31:31 < zyp> an array is an amount of variable bytes, but no space is consumed to store the address of it 2012-06-06T01:32:12 < zyp> the thing is that in C, the name of a pointer refers to the contents of the variable, i.e. the address 2012-06-06T01:33:16 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-06T01:33:48 < zyp> while the name of an array is either a global symbol that gets resolved at linking time (if it's a global variable) or an offset into the current stack frame (if it's a stack variable) 2012-06-06T01:34:11 < zyp> in either case, the name of an array resolves to the address of the array 2012-06-06T01:35:23 < zyp> it's not mutable, so it's pretty much a constant pointer, always pointing to the start of the array 2012-06-06T01:35:47 < zyp> pointing to the start of the array is the same as pointing to the first element in the array 2012-06-06T01:37:11 < Tectu> you're awesome 2012-06-06T01:37:12 -!- Huitaryan [~Huitaryan@blk-252-42-151.eastlink.ca] has quit [Quit: Leaving.] 2012-06-06T01:39:30 < zyp> pointers are nothing magic, just stop thinking about them as pointers for a moment, and think about them as memory addresses instead 2012-06-06T01:41:04 < Tectu> but what's the difference between **argv and *argv[] ? 2012-06-06T01:41:22 < Tectu> because in int main(int argc, char *argv[]) you see **argv many times 2012-06-06T01:41:45 < zyp> as a function argument? none 2012-06-06T01:42:14 < zyp> consider this: 2012-06-06T01:42:25 < zyp> say we have a function that takes an array 2012-06-06T01:42:39 < zyp> we can declare it as foo(int x[]) 2012-06-06T01:43:10 -!- LawrenceSeattle [~lawrence@66.192.187.106] has quit [Quit: LawrenceSeattle] 2012-06-06T01:43:15 < zyp> you can then call it with an int-array as an argument 2012-06-06T01:43:34 < zyp> what happens then is that the address of the array will be passed in as an argument 2012-06-06T01:43:50 < karlp> does anyone know why this would block forever?: while (USART_GetFlagStatus(USART1, USART_FLAG_TC) == RESET) 2012-06-06T01:44:02 < Tectu> zyp, okay 2012-06-06T01:44:04 < zyp> then consider this: foo(int* x) 2012-06-06T01:44:05 < karlp> I'm guess I've not got something set up, or in the right order, but I'm damned if I know what I've left out. 2012-06-06T01:44:27 < Tectu> zyp, pointer to variable of type x 2012-06-06T01:44:27 < zyp> Tectu, you can call it with an int-pointer as an argument 2012-06-06T01:44:43 < Tectu> or we pass an array and increment pointer with sizeof(int) ? 2012-06-06T01:44:48 < Tectu> to access other indexes 2012-06-06T01:44:54 < zyp> and what happens is that the address of the int will be passed in 2012-06-06T01:45:15 < Tectu> what do you mean? 2012-06-06T01:45:35 < zyp> this is a function declaration: foo(int* x) 2012-06-06T01:45:47 < zyp> of a function taking an int-pointer argument 2012-06-06T01:45:55 < Tectu> yes 2012-06-06T01:46:18 < zyp> when you call it, the value that will actually go into the register containing the argument is the address of the int being pointed to 2012-06-06T01:46:35 < Tectu> right 2012-06-06T01:46:38 < zyp> this is another function declaration: bar(int x[]) 2012-06-06T01:46:45 < zyp> of a function taking an int-array argument 2012-06-06T01:46:56 < zyp> when you call it, the value that will actually go into the register containing the argument is the address of the first int in the array 2012-06-06T01:47:16 < zyp> do you now see how that is exactly the same thing? 2012-06-06T01:47:26 < Tectu> yes 2012-06-06T01:47:31 < zyp> good 2012-06-06T01:47:33 < Tectu> i knew that before 2012-06-06T01:47:36 < Tectu> i don't know about ** ;-) 2012-06-06T01:48:05 < zyp> now, consider that the type is not int, but a string, which in C is a char-pointer 2012-06-06T01:48:20 < Tectu> char *str ? 2012-06-06T01:48:59 < zyp> I prefer writing the * adjacent to the type rather than the name, since it's part of the type 2012-06-06T01:49:08 < Tectu> well 2012-06-06T01:49:34 < zyp> there are reasons for and against doing that, but let's not discuss them now 2012-06-06T01:49:43 < zyp> either way 2012-06-06T01:49:57 < Tectu> yeah, i see that the same way 2012-06-06T01:50:02 < zyp> consider that char* argv[] is an array of char-pointers 2012-06-06T01:50:24 < zyp> while char** argv is a pointer to the first char-pointer in that array 2012-06-06T01:50:42 < zyp> it's a char-pointer-pointer 2012-06-06T01:51:02 < zyp> char-pointer-pointer = char-pointer-array 2012-06-06T01:51:12 < Tectu> ahaaa!!!!! 2012-06-06T01:51:12 < zyp> exactly the same logic as int-pointer = int-array 2012-06-06T01:52:48 < Tectu> thank you very much!!!! 2012-06-06T01:52:53 < Tectu> this is now much clearer to me :D 2012-06-06T01:53:04 < zyp> good 2012-06-06T01:53:35 < zyp> oh, and there is a reason that there is two ways to write it 2012-06-06T01:53:49 < Tectu> why? 2012-06-06T01:54:01 < Tectu> wait, what exactly do you mean now? 2012-06-06T01:54:03 < zyp> pointer = array is only true for one-dimentional stuff 2012-06-06T01:54:05 < Tectu> to write what? 2012-06-06T01:54:09 < Tectu> okay 2012-06-06T01:54:12 < Tectu> i understand 2012-06-06T01:54:28 < zyp> two-dimentional pointers are pointers to pointers 2012-06-06T01:54:31 < Tectu> so it's much better when just using *foo[] instead of **foo ? 2012-06-06T01:55:11 < zyp> while two-dimentional arrays are just some index magic on top of a one-dimentional array 2012-06-06T01:55:26 < Tectu> how is a multidimensionl array build? 2012-06-06T01:55:36 < Tectu> like 10*10 -> is 100 entry 1D array? 2012-06-06T01:55:41 < Tectu> with a bit of wrapping magic? 2012-06-06T01:55:42 < zyp> exactly 2012-06-06T01:55:58 < Tectu> aye 2012-06-06T01:56:27 < Tectu> i am off for now 2012-06-06T01:56:31 < zyp> int x[][] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}}; is stored as int x[] = {1, 2, 3, 4, 5, 6, 7, 8, 9}; 2012-06-06T01:56:33 < Tectu> thanks for your time, zyp, that really helped 2012-06-06T01:57:41 < zyp> good to hear 2012-06-06T01:59:50 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-06-06T01:59:52 < karlp> how do you tell gdb about symbols like USART1->SR ? 2012-06-06T02:00:06 < karlp> it shows it in the listing, but just says no USART1 in current context? 2012-06-06T02:03:21 < zyp> not in context means not visible from where you halted your program 2012-06-06T02:05:42 < karlp> meh, I had usart workign on 32L, missing something dumb on 32vl 2012-06-06T02:09:56 < karlp> ah, it's not blcoking, 2012-06-06T02:10:01 < karlp> it's continually sending a 0 2012-06-06T02:10:10 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-06-06T02:12:54 -!- GargantuaSauce [~sauce@blk-252-42-151.eastlink.ca] has joined ##stm32 2012-06-06T02:16:06 <+dekar> zyp, I don't think that array behavior is guaranteed 2012-06-06T02:23:35 < zyp> I'm pretty sure row-major order is guaranteed by c spec 2012-06-06T02:27:44 < zyp> yep 2012-06-06T02:27:53 < zyp> spec says «blah blah … It follows from this 2012-06-06T02:27:54 < zyp> that arrays are stored in row-major order (last subscript varies fastest).» 2012-06-06T02:28:28 < zyp> http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf <- source is section 6.5.2.1, page 70 2012-06-06T02:28:32 < zyp> :p 2012-06-06T03:03:38 < dongs> lots of bloggery 2012-06-06T03:04:08 < zyp> woah, you still got internet? 2012-06-06T03:04:27 < zyp> thought you were going to stop using it now 2012-06-06T03:08:45 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 252 seconds] 2012-06-06T04:21:34 < dongs> lolwat 2012-06-06T04:25:29 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Ping timeout: 250 seconds] 2012-06-06T04:35:25 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 260 seconds] 2012-06-06T04:42:50 -!- amstan [~alex@aichallenge/admin/amstan] has joined ##stm32 2012-06-06T04:43:10 < amstan> so it seems that texane's repo now has F0 compatibility 2012-06-06T04:43:25 < amstan> how does one program the blink_F0.elf? 2012-06-06T04:51:24 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-06T04:58:51 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-06T04:58:53 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-06-06T04:59:59 -!- zlog_ [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32 2012-06-06T05:00:07 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Disconnected by services] 2012-06-06T05:00:10 -!- Tom_L is now known as Tom_itx 2012-06-06T05:00:57 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Ping timeout: 252 seconds] 2012-06-06T05:01:18 -!- zlog_ [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Remote host closed the connection] 2012-06-06T05:01:34 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32 2012-06-06T05:09:03 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-06T05:53:52 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-06T05:53:54 -!- [7] [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-06T05:59:20 -!- cjbaird [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-06T06:03:09 -!- peabody128 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-06T06:05:45 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer] 2012-06-06T06:05:46 -!- Tectu [tectu@kunsmann.eu] has quit [Ping timeout: 260 seconds] 2012-06-06T06:05:46 -!- peabody128 is now known as peabody124 2012-06-06T06:09:04 -!- Tectu [tectu@kunsmann.eu] has joined ##stm32 2012-06-06T06:09:33 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-06T06:16:54 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Ping timeout: 256 seconds] 2012-06-06T06:39:21 < pelrun_> hahaha 2012-06-06T06:39:34 < pelrun_> got c++ working in my toolchain 2012-06-06T06:39:58 < pelrun_> stuck a single std::string static object in a minimal source file 2012-06-06T06:40:07 < pelrun_> it sucked in 90K of crap 2012-06-06T06:40:54 < pelrun_> that was instructive (i.e. DON'T DO THAT) :) 2012-06-06T07:13:40 < cjbaird> "lol trying to do embedded programming with C++" 2012-06-06T07:20:35 < pelrun_> actually, there's nothing wrong with it 2012-06-06T07:21:06 < pelrun_> done right, it can actually remove the need for some dynamic heap allocations 2012-06-06T07:22:00 < pelrun_> the issue was more with trying to use the standard C++ libs :) 2012-06-06T08:02:50 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-06-06T08:03:28 -!- amstan [~alex@aichallenge/admin/amstan] has quit [Quit: Konversation terminated!] 2012-06-06T08:48:27 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has joined ##stm32 2012-06-06T09:23:35 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has quit [Quit: Quit] 2012-06-06T09:44:10 < zyp> I'm doing c++ on stm32, but no stl :p 2012-06-06T09:51:57 < pelrun_> yeah, I think it's probably a good idea to continue that behaviour :) 2012-06-06T09:52:29 < pelrun_> oh goodie, eclipse didn't barf when I replaced my C-nature project files with C++ ones 2012-06-06T09:59:12 < Thorn> c++ templates are inlined if you do them right, remember. lots of optimization opportunities 2012-06-06T09:59:50 < Thorn> c++ catches much more errors at compile time too (again if you use it right) 2012-06-06T10:02:55 < pelrun_> oh sure 2012-06-06T10:03:21 < pelrun_> you just probably don't want to spend 90K on the STL. 2012-06-06T10:04:15 < pelrun_> although it's not such a big deal if you're using an F4 with 1MB of flash :o 2012-06-06T10:05:48 < zyp> my code is currently 7k or so 2012-06-06T10:05:55 < zyp> :p 2012-06-06T10:06:38 < Thorn> I imagine that stl heavily uses malloc() internally (in the form of operator new) 2012-06-06T10:06:49 < Thorn> that's even worse on an embedded system 2012-06-06T10:07:37 < Thorn> I think someone tried to implement something like iostreams for embedded systems, maybe string too 2012-06-06T10:07:59 < zyp> I implemented a memory pool with smart pointers 2012-06-06T10:08:55 < zyp> http://cgit.jvnv.net/suzumebachi/tree/os/pool.h 2012-06-06T10:09:09 < zyp> it's experimental, it works, but it's probably not the best way of doing stuff 2012-06-06T10:09:31 < zyp> I'm redoing it when I get around to it 2012-06-06T10:28:40 < pelrun_> I just try to stick with stack and static global allocation as much as humanly possible 2012-06-06T10:29:13 < pelrun_> refactoring this dodgy little serial library I wrote to use C++ should help me eliminate a few mallocs for buffers 2012-06-06T10:29:49 < pelrun_> although I could probably have done it with structs just as easily 2012-06-06T11:34:25 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.] 2012-06-06T11:58:49 < Tectu> this is strange... i use elm-chan.org's fatfs with chibios. it works, f_open, f_read, f_write etc... but i get "undefined reference" to f_mkfs, f_gets etc 2012-06-06T11:58:53 < Tectu> but these functions are in ff.c 2012-06-06T11:59:32 < Tectu> they are also inside ff.h 2012-06-06T12:00:37 < Tectu> lol, found the fault 2012-06-06T12:07:07 < Tectu> okay, i didn't 2012-06-06T12:13:23 < karlp> bleugh, toolchain linked in arm code again. 2012-06-06T12:13:37 < karlp> dahfuq 2012-06-06T12:14:08 < Tectu> karlp, what? 2012-06-06T12:17:04 < karlp> copied the libopencm3/examples/stm32/f2/jobygps/usart_printf 2012-06-06T12:17:13 < karlp> and it's linked in a whole heap of arm code, instead of thumb2 code. 2012-06-06T12:17:26 < karlp> so it doesn't work :) 2012-06-06T12:20:45 <+dekar> *cough* TNT *cough* 2012-06-06T12:20:58 < Tectu> aye, this makes me asking questions :D 2012-06-06T12:21:11 < Tectu> thumb is the "shorted" instructionset -> 16 bit adresses instead of 32 2012-06-06T12:21:12 < Tectu> right? 2012-06-06T12:21:40 <+dekar> Tectu, thumb1 or thumb2? 2012-06-06T12:21:50 <+dekar> thumb2 has many 32bit opcodes 2012-06-06T12:21:52 < Tectu> dekar, dunno :D 2012-06-06T12:21:56 < Tectu> i guess thumb1 2012-06-06T12:22:04 < Tectu> just have j -mthumb here 2012-06-06T12:22:04 <+dekar> thumb1 is 16bit only 2012-06-06T12:22:14 < Tectu> yeah 2012-06-06T12:22:15 <+dekar> but you should never use thumb1, it is horribly slow 2012-06-06T12:22:57 < Tectu> i have TOPT = -mthumb -DTHUMB in Makefile here 2012-06-06T12:23:02 < Tectu> so i guess thumb1? 2012-06-06T12:23:08 < karlp> dekar: TNT works because it's not multilib? 2012-06-06T12:23:14 < karlp> cm3 _only_ :) 2012-06-06T12:23:29 <+dekar> ya :) 2012-06-06T12:24:09 < Tectu> dekar, why is it slower? 2012-06-06T12:24:21 < Tectu> it is just a smaller address space for the instructions? 2012-06-06T12:24:47 <+dekar> Tectu, thumb1 has no division opcode for example 2012-06-06T12:24:59 < Tectu> i have no idea what this means :D 2012-06-06T12:25:12 < karlp> thumb2 has 32bit opcodes? 2012-06-06T12:25:15 <+dekar> 10 / 2 = 5 2012-06-06T12:25:16 < karlp> I didn't know that? 2012-06-06T12:25:31 < karlp> I thought the evidence of 32bit opcodes in objdump -d was proof that the wrong things had been linked in? 2012-06-06T12:25:41 <+dekar> 10 / 2 = 5 is one opcode in thumb2, but a bunch of them in thumb1 2012-06-06T12:25:55 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-06T12:26:47 < Tectu> can i just change my chibios demo Makefile from thumb1 to thumb2 without breaking anything? 2012-06-06T12:26:59 <+dekar> also thumb2 has stuff like ITEEE (IF-THEN-ELSE-ELSE-ELSE) 2012-06-06T12:27:20 <+dekar> which is quite funny for assembly imo 2012-06-06T12:27:52 <+dekar> -mthumb can also generate thumb2 btw, I think gcc looks at the arch 2012-06-06T12:30:12 < zyp> ITE is used to make arm-compatible assembly 2012-06-06T12:30:27 < cjbaird> ITEEE sounds like something from the VAX instruction set... (which also had instructions for FP polynominals..) 2012-06-06T12:31:57 < zyp> the thing is that arm has a «unified assembly language», where the same mnemonics can assemble both into arm and thumb/thumb2 instructions 2012-06-06T12:32:20 < zyp> arm instructions can be conditional, thumb can not 2012-06-06T12:32:52 < Tectu> okay... so here we go: i have an external interrupt on PC4, but now i want one on PA4 too. can i do that or not? afaik there are only 16 channels? 2012-06-06T12:32:58 <+dekar> yeah the conditional stuff was awesome 2012-06-06T12:33:12 <+dekar> also the barrel shift 2012-06-06T12:33:48 < zyp> thumb2 remedies this by prefixing the conditional instructions with a new instruction making them conditional, this is IT, ITE, ITEEE, ITTTT or whatever you make of it 2012-06-06T12:34:08 < zyp> when same code is assembled for arm rather than thumb, the IT* will be ignored 2012-06-06T12:35:43 <+dekar> the bottom-line is, use thumb2! :D 2012-06-06T12:36:26 < zyp> and yes, I believe -mthumb only says «disallow arm» 2012-06-06T12:39:32 < Tectu> so i am fine with -mthumb ? 2012-06-06T12:39:48 < Thorn> oh lol http://electronics.stackexchange.com/questions/33364/my-can-node-trasmits-but-cant-receive-in-the-receiver-node-why 2012-06-06T12:40:45 <+dekar> Tectu, just write some code performing an division and see if it uses div or udiv 2012-06-06T12:41:13 <+dekar> or cbz (compare branch zero), which I think is thumb2-only as well 2012-06-06T12:41:34 <+dekar> it's been quite some time since I did arm assembly 2012-06-06T12:41:46 < Tectu> Thorn, oh dear 2012-06-06T12:47:13 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-06T12:49:52 < karlp> dafuq, compiling in the examples directory of libopencm3 builds thumb2 code, compiling in my own dir with what I thought was the same makefile is building me arm code 2012-06-06T12:52:40 -!- Laurenceb_ [~Laurence@host86-168-105-99.range86-168.btcentralplus.com] has joined ##stm32 2012-06-06T13:04:24 <+dekar> TNT? :) 2012-06-06T13:05:34 < karlp> it's still building :) 2012-06-06T13:13:52 < karlp> bleh, now I'm in the same trouble as last night, checking for tx complete blocks forever 2012-06-06T13:14:34 -!- Laurenceb_ [~Laurence@host86-168-105-99.range86-168.btcentralplus.com] has quit [Ping timeout: 260 seconds] 2012-06-06T13:26:01 < karlp> dekar: http://pastebin.com/sXvNHKW7 any ideas why that failed? 2012-06-06T13:29:49 < cjbaird> Typical. BSD tar can't handle gtar archives again. 2012-06-06T13:35:59 < karlp> hmm, dekar shouldn't newlib be built using the newly built gcc? 2012-06-06T13:36:10 < karlp> not whatever arm-none-eabi-gcc is already on my path? 2012-06-06T13:36:34 < zyp> yes 2012-06-06T13:40:34 < karlp> meh, still doesn't help me when my earlier working libopencm3 code could happily write chars to usart1 and usart2 over and over and again, 2012-06-06T13:40:46 < karlp> and I could stick in some wires to either one and see the characters nicely 2012-06-06T13:40:53 < karlp> but now it blocks on the send 2012-06-06T13:45:32 <+dekar> karlp, yeah looks like you have to remove the old toolchain from your $PATH 2012-06-06T13:51:41 < karlp> trying now with your export reversed, to put toolchain ahead of the existing path, instead of after it 2012-06-06T13:56:13 <+dekar> I guess I should fix that 2012-06-06T13:59:23 < cjbaird> Whoa. I managed to get TNT to build on NetBSD (i.e: the fast machine in the house). 2012-06-06T14:00:24 <+dekar> cjbaird, neat :D 2012-06-06T14:00:29 <+dekar> were any changes needed? 2012-06-06T14:01:56 < zyp> cjbaird, your toaster is the fastest machine in your house? 2012-06-06T14:03:33 < dongs> hello trolls/trollees 2012-06-06T14:03:36 <+dekar> zyp, you need quite a bunch of cores to generate enough heat :P 2012-06-06T14:03:49 < cjbaird> this: http://pastebin.com/raw.php?i=pm0qKwHs 2012-06-06T14:04:39 < cjbaird> tar/gtar, make/gmake, curl ssl certs, and gcc -with-* defines. 2012-06-06T14:05:27 <+dekar> cjbaird, will that gtar/gmake stuff work on GNU systems? 2012-06-06T14:06:09 <+dekar> nope won't :/ 2012-06-06T14:08:07 < cjbaird> Probably changing to $(MAKE), $(TAR) throughout the script would be the way to go.. 2012-06-06T14:08:55 <+dekar> yeah, do you feel like doing it? :P 2012-06-06T14:09:47 <+dekar> I also just realized my linux box lacks curl, maybe I should test for curl and wget 2012-06-06T14:09:54 < cjbaird> What thumb-related GCC optimisation flags are new in 4.7.0, which 4.5.2 doesn't have...? 2012-06-06T14:10:28 <+dekar> no idea 2012-06-06T14:10:50 <+dekar> TNT is mainly about configuring newlib properly 2012-06-06T14:13:58 <+dekar> it did get some 150bytes smaller when I updated TNT from 4.6 to 4.7 though 2012-06-06T14:15:43 <+dekar> my firmware I mean 2012-06-06T14:15:59 < karlp> duh, I'm such an idiot, forgot to turn on the right clocks again 2012-06-06T14:19:26 -!- izua [~izua@79.115.171.1] has joined ##stm32 2012-06-06T14:19:27 -!- izua [~izua@79.115.171.1] has quit [Changing host] 2012-06-06T14:19:27 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-06T14:19:30 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-06T14:25:00 < dongs> cleaned up my desk a bit 2012-06-06T14:34:43 <+dekar> cjbaird, I did commit your changes 2012-06-06T14:46:06 < SuicideFunky> does anyone have advice on how to use a serial device (/dev/ttyS0) from within your own device driver? 2012-06-06T14:46:28 < SuicideFunky> i've seen its possible to use the serial layer in linux 2012-06-06T14:51:59 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 260 seconds] 2012-06-06T14:56:42 -!- dekar [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep] 2012-06-06T14:58:24 < cjbaird> Hmm, dek just removed the OSX support from TNT.. 2012-06-06T14:58:56 < dongs> and nothing of value was lost 2012-06-06T14:59:55 -!- izua [~izua@79.115.171.1] has joined ##stm32 2012-06-06T14:59:55 -!- izua [~izua@79.115.171.1] has quit [Changing host] 2012-06-06T14:59:55 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-06T14:59:59 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-06T15:02:20 < Laurenceb> sup 2012-06-06T15:02:31 < Laurenceb> i just trolled an entire school 2012-06-06T15:03:22 < Laurenceb> i was walking past the playground and some kid shouted pedo 2012-06-06T15:03:38 < Laurenceb> so i gave the whole school my best pedosmile and they all ran off screaming 2012-06-06T15:03:41 < cjbaird> I hate it when that happens.. 2012-06-06T15:05:45 < Laurenceb> http://www.thebestpageintheuniverse.net/c.cgi?u=spot_the_pedo 2012-06-06T15:06:47 < Tectu> wtf 2012-06-06T15:07:09 < zyp> Laurenceb, don't be useless 2012-06-06T15:08:02 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-06T15:11:14 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 260 seconds] 2012-06-06T15:12:41 < BrainDamage> Laurenceb: http://www2.b3ta.com/funnelortunnel/ 2012-06-06T15:13:00 < BrainDamage> kinda nsfw 2012-06-06T15:13:20 < Laurenceb> lool 2012-06-06T15:33:47 -!- dekar [~dekar@studpool-wlan-75-68.fs.fbi.h-da.de] has joined ##stm32 2012-06-06T15:33:50 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-06T15:38:21 -!- dekar_ [~dekar@studpool-wlan-75-228.fs.fbi.h-da.de] has joined ##stm32 2012-06-06T15:38:24 -!- mode/##stm32 [+v dekar_] by ChanServ 2012-06-06T15:38:28 -!- dekar_ [~dekar@studpool-wlan-75-228.fs.fbi.h-da.de] has quit [Read error: Connection reset by peer] 2012-06-06T15:41:52 -!- dekar [~dekar@studpool-wlan-75-68.fs.fbi.h-da.de] has quit [Ping timeout: 250 seconds] 2012-06-06T15:48:08 < karlp> well, TNT builds code that looks like it works, ie, memset is 16bit opcodes, not arm opcodes, but doesn't actually run. 2012-06-06T16:00:06 < Laurenceb> oops 2012-06-06T16:00:16 < Laurenceb> and i was just about to install it 2012-06-06T16:04:41 < karlp> well, it looks good. 2012-06-06T16:04:55 < karlp> bloody mess. 2012-06-06T16:05:25 < karlp> gcc from launchpad works, but if I install the libopencm3 libs _into_ that, it starts linking in arm libs instead. 2012-06-06T16:05:44 < karlp> if I put the libopencm3 libs in /opt/somewhere/else it correctly pulls in the armv7-m libs. 2012-06-06T16:34:39 < Tectu> someone here using minicom? 2012-06-06T16:37:08 < zyp> karlp, so, when you build libopencm3 as a library, how specific will it be? 2012-06-06T16:38:56 < karlp> it builds separate f1, f2, f4 libraries 2012-06-06T16:39:57 < zyp> so it normally builds for all supported devices? 2012-06-06T16:40:53 < karlp> and yeah 2012-06-06T16:40:57 < dongs> what the hell is "sq()"? 2012-06-06T16:41:07 < karlp> though it looks like the f4 one still says m3, at least according to -readelf 2012-06-06T16:41:13 < zyp> I see 2012-06-06T16:41:17 < karlp> but I fail massively at getting these libs to work properly. 2012-06-06T16:41:31 < dongs> oh lulz 2012-06-06T16:41:33 < dongs> #ifndef sq 2012-06-06T16:41:33 < dongs> #define sq(x) ((x)*(x)) 2012-06-06T16:41:46 < zyp> sq(x++) 2012-06-06T16:41:47 < karlp> I've at least got _a_ way of building with stdlib and having memset and so on, 2012-06-06T16:42:05 < karlp> but I don't understand why I haven't had it working before, or why _this_ way works, but no other wya. 2012-06-06T16:42:10 < karlp> so I'm ignoring it for now. 2012-06-06T16:42:31 < karlp> is it reasonable to use interrupts for rx serial, and dma for tx? 2012-06-06T16:42:40 < karlp> tx is known lengths, 2012-06-06T16:42:46 < karlp> rx is noisy from other people on the line. 2012-06-06T16:42:52 < zyp> I'm going to take another approach with my library 2012-06-06T16:43:17 < zyp> rather than building a seperate library, I'm planning to include it in projects as a git submodule 2012-06-06T16:43:17 < karlp> or do people tend to use dma only or interrupts only for this? 2012-06-06T16:43:41 < karlp> yeah, that's sort of what I was doing in my own hacking, 2012-06-06T16:43:46 < zyp> then git would keep track of which lib version that works with a certain project version 2012-06-06T16:44:35 < zyp> http://paste.jvnv.net/view/KAkYm <- did I already show you this? 2012-06-06T16:44:50 < zyp> I was playing around with that last weekend 2012-06-06T16:45:05 < zyp> the idea here is that «foo» would be the submodule directory 2012-06-06T16:45:18 < zyp> and the SConscript in there will add the two new commands 2012-06-06T16:45:36 < Laurenceb> karlp: i do that with usart 2012-06-06T16:45:42 < zyp> the first will initialize the environment for that specific chip and choose correct flags and linker script and everything 2012-06-06T16:45:43 < Laurenceb> due to lame dma conflicts 2012-06-06T16:45:56 < Laurenceb> f1 dma sucks 2012-06-06T16:46:14 < karlp> well, the only dma I would be using is for the serial port, 2012-06-06T16:46:15 < zyp> and then the second will take the list of sources I supply, add the list of library sources and compile them all 2012-06-06T16:46:58 < zyp> the idea is to reduce the amount of boilerplate code required to get started on a new project 2012-06-06T16:47:21 -!- izua_ [~izua@79.115.171.1] has joined ##stm32 2012-06-06T16:47:21 -!- izua_ [~izua@79.115.171.1] has quit [Changing host] 2012-06-06T16:47:21 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32 2012-06-06T16:47:23 -!- mode/##stm32 [+v izua_] by ChanServ 2012-06-06T16:47:24 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-06T16:50:59 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 260 seconds] 2012-06-06T16:50:59 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 260 seconds] 2012-06-06T17:20:27 < karlp> man, stlinkv1 really is shit. 2012-06-06T17:20:33 < karlp> I've never used it for very long in one sitting 2012-06-06T17:26:05 < jpa-> works quite well for me.. a bit slow though, and not sure what the reset issues are about 2012-06-06T17:43:34 < karlp> mine keeps losing usb connection 2012-06-06T17:43:39 < karlp> I have to unplug and replug 2012-06-06T17:47:08 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-06T17:50:29 -!- izua_ [~izua@unaffiliated/izua] has quit [Ping timeout: 260 seconds] 2012-06-06T18:03:31 < jpa-> i usually get that only if i ctrl-c the flasher 2012-06-06T18:15:44 -!- izua [~izua@79.115.171.1] has joined ##stm32 2012-06-06T18:15:44 -!- izua [~izua@79.115.171.1] has quit [Changing host] 2012-06-06T18:15:44 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-06T18:15:47 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-06T18:33:02 < jpa-> hmm, the data eeprom is wonderfully easy to write :) 2012-06-06T18:33:14 < dongs> wat data eeprom? 2012-06-06T18:34:16 < zyp> plain i2c eeprom? 2012-06-06T18:34:41 < jpa-> the built-in eeprom on atleast stm32l151 2012-06-06T18:34:46 < zyp> oh 2012-06-06T18:34:55 < zyp> nobody told me it had that :p 2012-06-06T18:35:01 < dongs> must be same shit as on stm8 then 2012-06-06T18:35:04 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-06T18:35:08 < dongs> unlock(); memcpy(); lock() 2012-06-06T18:35:09 < jpa-> just write to memory address 2012-06-06T18:36:31 < jpa-> (and yeah, unlock first) 2012-06-06T18:37:02 < zyp> does anyone happen to know if the flash size character in the chip name happen to mean the same across all stm32 lines? 2012-06-06T18:41:54 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-06T18:45:56 < zyp> dongs, found something for you: http://www.thingiverse.com/image:140992 2012-06-06T18:46:39 < karlp> zyp: do your cxxflags == cflags? or are there differences? 2012-06-06T18:46:59 < karlp> zyp: only the 32L has onboard eeprom 2012-06-06T18:47:06 < karlp> I guess as part of it's "low power" design 2012-06-06T18:47:10 < zyp> I don't have any .c files in my project, so that doesn't matter 2012-06-06T18:48:50 < zyp> I'm using scons, with it cxxflags are appended to ccflags for .cpp files 2012-06-06T18:49:12 < zyp> so I have all the generic stuff in ccflags and C++-specifics in cxxflags 2012-06-06T18:50:01 -!- tavish [~tavish@59.177.3.173] has joined ##stm32 2012-06-06T18:50:01 -!- tavish [~tavish@59.177.3.173] has quit [Changing host] 2012-06-06T18:50:01 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-06T19:05:55 -!- izua_ [~izua@79.115.171.1] has joined ##stm32 2012-06-06T19:05:55 -!- izua_ [~izua@79.115.171.1] has quit [Changing host] 2012-06-06T19:05:55 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32 2012-06-06T19:05:56 -!- mode/##stm32 [+v izua_] by ChanServ 2012-06-06T19:06:06 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer] 2012-06-06T19:17:11 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-06-06T19:35:48 -!- peabody124 [~peabody12@128.249.96.123] has quit [Remote host closed the connection] 2012-06-06T19:36:05 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-06-06T19:38:13 < karlp> heh, took more care with the clocks, didn't notice that the uart had separate bits for tx and rx enable. 2012-06-06T19:40:55 < zyp> :p 2012-06-06T19:41:01 < zyp> in rcc? 2012-06-06T19:41:56 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 252 seconds] 2012-06-06T19:51:37 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-06T19:51:41 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-06T20:02:53 -!- cjbaird [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-06T20:04:55 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Read error: Connection reset by peer] 2012-06-06T20:05:07 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-06T20:08:46 < zyp> hmm 2012-06-06T20:09:15 < zyp> http://paste.jvnv.net/view/rZqGb <- starting to get all options right now, based on what I'm building for 2012-06-06T20:19:03 <+Steffanx> dekar wake up! 2012-06-06T20:19:51 <+Steffanx> His fancy script fails for me :( 2012-06-06T20:21:50 < ratatata> nu 2012-06-06T20:24:04 < dongs> no u 2012-06-06T20:24:17 <+Steffanx> nu 2012-06-06T20:27:27 < karlp> zyp: in USART_CR1. 2012-06-06T20:27:34 < zyp> ah, right 2012-06-06T20:29:53 <+Steffanx> or left 2012-06-06T20:35:14 < karlp> bleh, now it's failing to enumerate when I plug/unplug 2012-06-06T20:35:16 < karlp> awesome 2012-06-06T20:35:34 <+Steffanx> -unplug :) 2012-06-06T20:51:16 -!- feurig is now known as zombiefeurig 2012-06-06T20:54:51 <+Steffanx> "../../../../../newlib-1.20.0/libgloss/arm/crt0.S:37: Error: unknown architecture `armv6s-m'" :S 2012-06-06T20:58:42 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-06-06T21:02:32 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Quit: Quitte] 2012-06-06T21:12:20 < FUZxxl> Hi there! 2012-06-06T21:12:38 < FUZxxl> Did anybody of you had this bug: https://github.com/texane/stlink/issues/89 ? 2012-06-06T21:15:58 < karlp> not really enough of a bug I think anyone's in any hurry to fix 2012-06-06T21:16:03 < karlp> the examples are starting points at best. 2012-06-06T21:16:26 < karlp> and most of the examples in texane/stlink are of dubious quality 2012-06-06T21:17:08 < karlp> oh jpa: do you happen to know what firmware you have on y our VL board's stlink? 2012-06-06T21:17:29 < karlp> I just was back in windows, and tried the windows stlink tool, and it offered to upgrade me from v1.j11.s0 to v1.j12.so, 2012-06-06T21:17:30 < FUZxxl> karlp: What I don't understand is: The example basically calls into the libraries shipped by ST. 2012-06-06T21:17:38 < karlp> and it seems to be much more reliable so far 2012-06-06T21:17:41 < FUZxxl> There isn't much that can go wrong. 2012-06-06T21:17:51 < karlp> no-one said the examples from st were right 2012-06-06T21:17:51 < jpa-> karlp: no idea 2012-06-06T21:18:20 < karlp> the lcd files for instance have rather odd encodings in the files :) 2012-06-06T21:19:26 < FUZxxl> karlp: Yeah. That might be possible. 2012-06-06T21:19:46 < FUZxxl> Anyway, the specs are quite readable. It shouldn't be too difficult to implement that stuff by hand. 2012-06-06T21:20:11 < FUZxxl> If I want to write my own program for that board from scratch, is there anything I need to pay attention to? 2012-06-06T21:20:53 < karlp> yeah, don't follow the examples in stlink as to how to do it :) 2012-06-06T21:20:59 < karlp> otherwise, the world's your oyster. 2012-06-06T21:21:13 < FUZxxl> karlp: Yeah... They even use a nop-loop for delay... 2012-06-06T21:21:21 < FUZxxl> It's no fun to debug that. 2012-06-06T21:21:30 < FUZxxl> gdb just single-steps the loop... 2012-06-06T21:21:37 < FUZxxl> 100000 times 2012-06-06T21:21:48 < FUZxxl> in super-slow-motion 2012-06-06T21:37:17 < karlp> wow. 2012-06-06T21:37:35 < karlp> I actually got modbus code ported to stm32 in a day. 2012-06-06T21:37:49 < karlp> took a few months of faffing around at home, but whee 2012-06-06T21:38:52 < karlp> libopencm3 has some nice examples for dma and irq driven usarts. 2012-06-06T21:39:01 < karlp> I hadn't even used the usarts in my faffing around at home. 2012-06-06T21:40:48 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-06T21:41:29 < karlp> so, 20min to get to the carwash 2012-06-06T21:44:15 <+Steffanx> Or do it tomorrow? 2012-06-06T21:44:37 -!- Laurenceb_ [~Laurence@host86-168-105-99.range86-168.btcentralplus.com] has joined ##stm32 2012-06-06T22:00:53 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32 2012-06-06T22:01:04 < Laurenceb_> blackops? 2012-06-06T22:01:23 <+Steffanx> You prefer white? 2012-06-06T22:01:56 < R2COM> im looking now at GPIO_Init function of CMSIS 2012-06-06T22:02:02 < Laurenceb_> is TNT working? 2012-06-06T22:02:09 < R2COM> so i was thinking before that CMSIS is just a matter of redefining things 2012-06-06T22:02:13 <+Steffanx> Not for me Laurenceb_ 2012-06-06T22:02:23 < Laurenceb_> :-/ 2012-06-06T22:02:25 < R2COM> and that messing around and rewriting CMSIS would not give you any performance gain 2012-06-06T22:02:36 < R2COM> that its only about register and namespace definitions 2012-06-06T22:02:37 < R2COM> but 2012-06-06T22:02:59 < R2COM> i noticed that in GPIO_Init for example function, there are things which are wasting processor speed for stuff which could be defined 2012-06-06T22:03:42 < zyp> or simply inlined 2012-06-06T22:04:01 <+Steffanx> Just write to the registers yourself when you want the 'optimal' performance? 2012-06-06T22:04:20 < zyp> oh 2012-06-06T22:04:25 < R2COM> no 2012-06-06T22:04:27 < R2COM> look here 2012-06-06T22:04:27 < R2COM> http://shorttext.com/8tpQxJ 2012-06-06T22:04:32 < R2COM> look at this piece of code 2012-06-06T22:04:38 < R2COM> its GPIO_Init function 2012-06-06T22:04:38 < zyp> and surely the initialization performance can't be that important :p 2012-06-06T22:04:40 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Read error: Connection reset by peer] 2012-06-06T22:04:44 < R2COM> look at that for loop at the beginning 2012-06-06T22:04:49 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-06T22:05:02 < R2COM> i mean, that stuff could have been done without running a for loop, to identify which pin is current 2012-06-06T22:05:07 < R2COM> why to waste resources on such shit 2012-06-06T22:05:19 < R2COM> now im curious is the same shit with many other types of functions 2012-06-06T22:05:24 < R2COM> i'v got to take a look.. 2012-06-06T22:05:28 < zyp> are you sure any resources are wasted? 2012-06-06T22:05:45 < R2COM> zyp: for loop loads processor, you dont think so 2012-06-06T22:05:55 < R2COM> its a function 2012-06-06T22:06:04 < zyp> so what? 2012-06-06T22:06:20 < zyp> the loop arguments are static, so it's easy for the compiler to unroll 2012-06-06T22:06:23 < R2COM> so, nothing, my point is that there are things done in CMSIS which could be done more effectively 2012-06-06T22:06:47 < zyp> and if all the numbers are constant, that entire loop can probably be reduced to a few register accesses 2012-06-06T22:06:58 < zyp> ah, no 2012-06-06T22:07:00 < R2COM> whatever 2012-06-06T22:07:10 < zyp> there's actual register accesses in the look 2012-06-06T22:07:15 < zyp> ok, I agree, it's horrible 2012-06-06T22:07:28 < zyp> s/look/loop/ 2012-06-06T22:07:50 < R2COM> i'll explore more and see if similar shit happens in other functions 2012-06-06T22:08:10 < R2COM> now, at this stage im starting to think that it probably makes sense to have your own stuff 2012-06-06T22:08:14 < R2COM> not that CMSIS thingy 2012-06-06T22:08:46 < R2COM> its just CMSIS is there and works, and it takes much less time to get something done with it right now 2012-06-06T22:08:47 < zyp> sure 2012-06-06T22:08:55 < R2COM> if one is just starting with stm32 2012-06-06T22:09:10 <+Steffanx> Nah, with the cmsis i had actually no idea what i was doing 2012-06-06T22:09:24 <+Steffanx> no idea.. as in not 100% sure :P 2012-06-06T22:09:38 < zyp> I'm currently in the process of wrapping up my stuff so it's more reusable 2012-06-06T22:10:07 < zyp> but I don't know if I want to go around and suggest it to everyone, then I suddenly have an obligation to maintain it for everyone 2012-06-06T22:10:14 < zyp> :p 2012-06-06T22:10:19 <+Steffanx> Lazy .. lazy 2012-06-06T22:10:26 < R2COM> why, no obligation 2012-06-06T22:10:39 < zyp> :p 2012-06-06T22:10:46 < R2COM> if someone likes it, he picks up and reuses, if not then he can develop his own or fuck himself 2012-06-06T22:11:14 < zyp> yeah, I think that's the way I'm going to go about it 2012-06-06T22:11:25 < zyp> use it if you want, patches accepted 2012-06-06T22:11:35 <+Steffanx> Lazy++ 2012-06-06T22:11:39 < zyp> :D 2012-06-06T22:12:07 < zyp> maybe I should call it that 2012-06-06T22:12:11 <+Steffanx> Ha :P 2012-06-06T22:12:19 < zombiefeurig> beats lazy# 2012-06-06T22:12:33 < zyp> aww, there is already a liblazy 2012-06-06T22:12:44 < zombiefeurig> pronounced lay zee pound 2012-06-06T22:13:29 <+Steffanx> pound? 2012-06-06T22:13:33 < zyp> # 2012-06-06T22:14:02 < zyp> some people call it hash and some call it pound 2012-06-06T22:14:03 <+Steffanx> ARh, American English .. 2012-06-06T22:14:10 <+Steffanx> Americans and their english => trash 2012-06-06T22:14:12 <+Steffanx> :P 2012-06-06T22:14:16 < zyp> and in norway people tend to call it firkant 2012-06-06T22:14:30 <+Steffanx> Hekje :) 2012-06-06T22:15:09 < zombiefeurig> nothing particularly sharp comes out of Micro$oft 2012-06-06T22:15:43 <+Steffanx> Blablablabla 2012-06-06T22:15:53 < zyp> Steffanx, agreed 2012-06-06T22:16:36 < zyp> ms-bashers are about as uninteresting as dongs is when he's bashing non-ms-stuff 2012-06-06T22:16:44 <+Steffanx> lunix ftw 2012-06-06T22:16:54 <+Steffanx> Anyway has an idea why dekars build script would fail with 2012-06-06T22:17:03 <+Steffanx> ../../../../../newlib-1.20.0/libgloss/arm/crt0.S:37: Error: unknown architecture `armv6s-m' 2012-06-06T22:17:05 <+Steffanx> ? 2012-06-06T22:17:17 <+Steffanx> It's the script from the topic 2012-06-06T22:17:21 < zyp> v6s-m? 2012-06-06T22:17:24 < Laurenceb_> firkat? 2012-06-06T22:17:30 <+Steffanx> nt 2012-06-06T22:17:32 < Laurenceb_> oh 2012-06-06T22:17:39 < Laurenceb_> i thought it involved furries 2012-06-06T22:18:10 < Laurenceb_> which always gets my attention 2012-06-06T22:19:13 <+Steffanx> Yeah, i don't know zyp 2012-06-06T22:20:41 < zombiefeurig> well Steffanx there is the fact that it is English. 2012-06-06T22:20:49 < zombiefeurig> an arbitrary language at best 2012-06-06T22:21:12 < zippe> It's a sharp 2012-06-06T22:21:18 < zippe> As any musician will tell you 2012-06-06T22:21:22 <+Steffanx> No a pound 2012-06-06T22:21:36 < zippe> C# is C sharp, not C pound 2012-06-06T22:21:40 <+Steffanx> :P 2012-06-06T22:21:49 < zippe> QED 2012-06-06T22:22:03 < zyp> no, it's a preprocessor/comment character! 2012-06-06T22:22:20 < zippe> steffan, my guess is bogus multilib config 2012-06-06T22:22:46 < zippe> Though I don't know this script you speak of 2012-06-06T22:23:14 < R2COM> do you use stm32_flash.ld linker script located in TRUEstudio folder always by default, or people use different one, or do some modifications? 2012-06-06T22:23:23 <+Steffanx> It looks like a hacky/not too much work script zippe 2012-06-06T22:23:25 <+Steffanx> https://github.com/EliasOenal/TNT/blob/master/toolchain.sh 2012-06-06T22:25:35 < R2COM> or .. if one doesnt use CMSIS, do they just borrow that linker script from that stuff, or use something else? 2012-06-06T22:25:58 < R2COM> im just wondering is there something else which could be done better than it is now or no 2012-06-06T22:26:05 < R2COM> or more properly..? 2012-06-06T22:26:10 <+Steffanx> I use zyps linker script 2012-06-06T22:35:41 < karlp> R2COM: a) gpio_init isn't CMSIS, it's ST's std periph lib. 2012-06-06T22:36:30 < R2COM> yes, right 2012-06-06T22:36:42 < karlp> b) the loop is presumably because you can use that function to init multiple pins at once. yes, it could be done more efficiently, if you want more efficiency, I'm sure there are some tools vendors who'd love to take your money 2012-06-06T22:38:08 < karlp> some people call # hash too, not sharp or pound :) 2012-06-06T22:39:45 < R2COM> well, yea what im thinking is, i still might stick to CMSIS and ST's stdperiph for beginning 2012-06-06T22:40:57 < karlp> I was extremely happy with the progress I made with libopencm3 starting from last night to now, as opposed to stdperiph lib, but lgpl may not be to your liking. 2012-06-06T22:41:31 < karlp> though part of that was the examples, perhaps more so than the library itself 2012-06-06T22:41:40 < R2COM> is libopencm3 betteer than ST's stdperiph ? 2012-06-06T22:41:46 < karlp> depends what you want. 2012-06-06T22:41:55 < karlp> one of them accepts patches. 2012-06-06T22:41:56 < R2COM> what do you mean? 2012-06-06T22:43:08 < R2COM> so, is it a library with more efficient functions? faster? better..or what? 2012-06-06T22:43:26 < karlp> if you care about efficiency at this point, ur doin it rong 2012-06-06T22:43:43 < R2COM> you mean at the beginning point of exploring stm32? 2012-06-06T22:58:35 -!- NonaSuomy [~TeknoJuce@bas1-london15-1279301811.dsl.bell.ca] has joined ##stm32 2012-06-06T22:58:35 -!- NonaSuomy [~TeknoJuce@bas1-london15-1279301811.dsl.bell.ca] has quit [Changing host] 2012-06-06T22:58:35 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-06T23:00:27 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 245 seconds] 2012-06-06T23:05:42 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Remote host closed the connection] 2012-06-06T23:05:55 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-06T23:07:52 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Remote host closed the connection] 2012-06-06T23:08:07 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-06T23:22:23 < R2COM> heh CMSIS uses startup file for gcc_red7 2012-06-06T23:27:10 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 265 seconds] 2012-06-06T23:28:39 -!- tavish [~tavish@120.56.130.127] has joined ##stm32 2012-06-06T23:28:45 -!- tavish [~tavish@120.56.130.127] has quit [Changing host] 2012-06-06T23:28:45 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-06T23:37:21 -!- metaxa [metaxa@members.bombshellz.net] has quit [Quit: leaving] 2012-06-06T23:38:04 -!- metaxa [metaxa@members.bombshellz.net] has joined ##stm32 2012-06-06T23:54:10 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Quit: Leaving] 2012-06-06T23:55:18 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 252 seconds] 2012-06-06T23:55:38 < R2COM> zyp: can i take a look at your linker script? 2012-06-06T23:55:48 < zyp> sure 2012-06-06T23:56:02 < zyp> http://cgit.jvnv.net/suzumebachi/tree/suzumebachi.ld 2012-06-06T23:56:14 < R2COM> also, at the startup file xxxx.s you are using, which one you use? 2012-06-06T23:56:23 < zyp> http://cgit.jvnv.net/suzumebachi/tree/entry.cpp 2012-06-06T23:56:44 < R2COM> entry.cpp is startup file? 2012-06-06T23:56:48 < zyp> yep 2012-06-06T23:56:52 < R2COM> hmm... 2012-06-06T23:57:00 < zyp> no need for doing it in assembly 2012-06-06T23:57:04 < R2COM> i see some assembly in the .s file coming from CMSIS 2012-06-06T23:57:05 < R2COM> ? 2012-06-06T23:57:10 < R2COM> you sure? 2012-06-06T23:57:20 < zyp> of course I'm sure, my code works. --- Day changed Thu Jun 07 2012 2012-06-07T00:01:05 < karlp> R2COM: being able to write startup code in c was a selling point from arm 2012-06-07T00:01:30 < karlp> people pushing asm ones are presumably just reusing the ones they already had from armv6 2012-06-07T00:02:18 < zyp> http://cgit.jvnv.net/potetmos/tree/kernel/entry.c <- I wrote some startup code for x86 a few years ago as well 2012-06-07T00:02:19 < R2COM> hm ok 2012-06-07T00:02:36 < zyp> but I couldn't get away without a few lines of inline assembly there :p 2012-06-07T00:02:55 < zyp> mostly because I had to set up stack before entering a C function 2012-06-07T00:03:04 < R2COM> also, by the way, im using code sourcery 2012-06-07T00:03:06 < R2COM> compiler 2012-06-07T00:03:08 < R2COM> not summon arm 2012-06-07T00:03:12 < zyp> on cortex-m, stack is initialized by hardware before reset handler is called 2012-06-07T00:04:06 < zyp> C functions expect a valid stack pointer when they are called 2012-06-07T00:04:43 < R2COM> well. 2012-06-07T00:04:59 < karlp> what are you ini_array and fini_array sections for zyp? 2012-06-07T00:04:59 < R2COM> dont know... so would you recommend go ahead with CMSIS and stdperiph then for beginning? 2012-06-07T00:05:13 < zyp> karlp, global constructors/destructors 2012-06-07T00:05:40 < zyp> those sections are created by the compiler 2012-06-07T00:05:54 < zyp> it contains lists of function pointers to call at startup/end 2012-06-07T00:05:55 < karlp> glue7t? is that some sort of arm interworking stuff? 2012-06-07T00:06:27 < zyp> hmm, might be 2012-06-07T00:06:38 < karlp> so many linker scripts out there, 2012-06-07T00:06:59 < zyp> I made a bunch of new ones today 2012-06-07T00:07:02 < karlp> some do most things, seems to always be floating bits that might be important for something, but no-one always knows why/what 2012-06-07T00:07:31 < zyp> http://paste.jvnv.net/view/BB8d3 <- the new ones reads like this 2012-06-07T00:07:38 < zyp> have one for each flash size 2012-06-07T00:07:41 < karlp> yeah, that's more like it :) 2012-06-07T00:07:51 < karlp> that's how mine and the libopencm3 ones look 2012-06-07T00:09:20 < zyp> I'm going to add another section, like .bss but uninitialized, for stacks 2012-06-07T00:09:37 < zyp> then put it into ccm on devices with ccm, ram on others 2012-06-07T00:09:52 < zyp> and keep a strict «no dma to stack» policy 2012-06-07T00:10:07 < karlp> what's ccm again? 2012-06-07T00:10:13 < zyp> core coupled memory 2012-06-07T00:10:29 < zyp> i.e. directly on proc's data bus 2012-06-07T00:10:37 < zyp> so it's only available from proc 2012-06-07T00:11:51 < zyp> seems reasonable to put stacks there, stack is probably the most active part of memory except dma buffers 2012-06-07T00:12:19 < zyp> then the processor will never have to wait for arbitration to use stacks 2012-06-07T00:13:38 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving] 2012-06-07T00:25:14 < zippe> karlp: ini_array is for static constructors; fini_array for destructors 2012-06-07T00:25:24 < zippe> fini_array is usually meaningless for an embedded target 2012-06-07T00:26:15 < zippe> zyp: You know that you can #include in linker scripts? So you can have a master for each memory size that includes the generic script for your program layout? 2012-06-07T00:26:54 < zippe> glue7t is interworking, you can toss it 2012-06-07T00:27:39 < zippe> (re: include, ah, I see you do) 2012-06-07T00:27:43 < zyp> ;) 2012-06-07T00:35:59 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-07T00:50:02 < Laurenceb_> core coupled memory?! 2012-06-07T00:50:03 -!- zombiefeurig is now known as feurig 2012-06-07T00:50:09 < Laurenceb_> which processors have that? 2012-06-07T00:51:04 < zyp> F4 2012-06-07T00:51:28 < zyp> it's branded as 192k ram, that's 128k of normal ram and 64k of ccm 2012-06-07T00:52:29 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Remote host closed the connection] 2012-06-07T00:53:24 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-07T01:03:00 < R2COM> zyp: what is hal_init() in your startup file? is it something like SystemInit() in CMSIS startup.s file? 2012-06-07T01:03:35 < zyp> probably 2012-06-07T01:03:53 < zyp> it calls rcc_init() that sets up the clocks and switches to full speed 2012-06-07T01:04:28 < zyp> I do it before performing all the initialization, so initialization goes faster ;) 2012-06-07T01:10:36 < R2COM> yeah 2012-06-07T01:10:47 < R2COM> i see in startup.s its done after initialization 2012-06-07T01:10:57 < R2COM> well...continuing study of CMSIS/stdperiph 2012-06-07T01:11:11 < R2COM> i'll probably write first few projects with that shit 2012-06-07T01:11:30 < R2COM> i think once you figure things out, its not difficult to transfer to custom library all stuff you have 2012-06-07T01:19:26 < Laurenceb_> i see 2012-06-07T01:19:33 < Laurenceb_> so whats the advantage of the ccm? 2012-06-07T01:20:41 < zyp> it's cheaper than having another slave on the AHB matrix :p 2012-06-07T01:21:05 < zyp> and since only the cpu can access it, it don't risk having to compete for it 2012-06-07T01:24:40 < zippe> It's almost certainly just another slave on the PL301 2012-06-07T01:24:53 -!- Laurenceb_ [~Laurence@host86-168-105-99.range86-168.btcentralplus.com] has quit [Ping timeout: 260 seconds] 2012-06-07T01:25:00 < R2COM> so, CMSIS and stdperiph you think are going to be constantly supported and renewed by ST? 2012-06-07T01:25:10 < zippe> R2: CMSIS is ARM 2012-06-07T01:25:16 < R2COM> ok 2012-06-07T01:25:18 < zippe> R2: and stdperiph is junk 2012-06-07T01:25:32 < R2COM> zippe: what do you use instead of stdperiph? 2012-06-07T01:25:34 < zippe> I would avoid it like the plague 2012-06-07T01:25:37 -!- izua_ [~izua@unaffiliated/izua] has quit [Quit: Pull me under] 2012-06-07T01:25:39 < zippe> NuttX 2012-06-07T01:25:43 < R2COM> hmm 2012-06-07T01:25:53 < zippe> Along with a bunch of custom drivers. 2012-06-07T01:25:55 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-07T01:25:56 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-07T01:26:06 < zippe> The problem with stdperiph is that it doesn't actually give you any sort of driver abstraction 2012-06-07T01:26:17 < zippe> It's just a bunch of #defines and some wrapper functions 2012-06-07T01:26:35 < R2COM> you mean its messy 2012-06-07T01:26:38 < zippe> Instead of "put these bits into this register" you make a structure and call eight functions 2012-06-07T01:26:53 < zippe> It doesn't actually *do* anything 2012-06-07T01:27:03 < zippe> Like, there is no timer abstraction 2012-06-07T01:27:05 < R2COM> nuttx is RTOS ... i dont want rtos 2012-06-07T01:27:21 < zippe> I didn't say you did; you asked what I use, I told you 2012-06-07T01:27:42 < R2COM> and, do you use CMSIS? 2012-06-07T01:27:45 < zippe> No 2012-06-07T01:27:54 < zippe> Or more specifically, I use the dsplib 2012-06-07T01:27:57 < R2COM> just use custom definitions? 2012-06-07T01:27:58 < R2COM> ok 2012-06-07T01:28:15 < R2COM> hm 2012-06-07T01:28:29 < R2COM> is that your custom thing or what? 2012-06-07T01:29:20 < R2COM> i found DSP_lib within CMSIS folder 2012-06-07T01:30:04 < zippe> dsplib contains actual, real, useful algorithms 2012-06-07T01:30:10 < zippe> cmsis is mostly defines, but often useful 2012-06-07T01:30:45 < R2COM> yeah the defines 2012-06-07T01:53:01 < R2COM> im looking in stdlib, at here: 2012-06-07T01:53:03 < R2COM> #define RCC_APB1Periph_TIM2 ((uint32_t)0x00000001) 2012-06-07T01:53:23 < R2COM> in the datasheet i see for register map this: 2012-06-07T01:53:24 < R2COM> 0x4000 0000 - 0x4000 03FF TIM2 2012-06-07T01:53:37 < R2COM> kind of doesnt make sense 2012-06-07T01:53:48 < zyp> it's different things 2012-06-07T01:54:04 < R2COM> oh rcc 2012-06-07T01:54:06 < zyp> the define is for the bit in RCC_AHB1ENR 2012-06-07T01:55:43 < R2COM> APB1ENR 2012-06-07T01:56:43 < R2COM> but there, TIM2 is at bit 0 2012-06-07T01:56:46 < R2COM> not 1 2012-06-07T01:56:52 < zyp> of course 2012-06-07T01:57:01 < zyp> 1 is bit 0 set 2012-06-07T01:57:11 < R2COM> oh yea that way 2012-06-07T01:57:13 < R2COM> ok 2012-06-07T02:17:35 < R2COM> there is weird redundancy with that stdperiph library: in a file stm32f4xx.h there is this "#define RCC_APB1ENR_TIM2EN ((uint32_t)0x00000001)" which is in comment called bit definitions for RCC_APB1ENR register, and then in the file stm32f4xx_rcc.h there is this "#define RCC_APB1Periph_TIM2 ((uint32_t)0x00000001) 2012-06-07T02:17:36 < R2COM> " and that is commented as RCC_APB1_Peripherals... why have these same things in two separate files...whole stuff gets bigger with no reason 2012-06-07T02:31:03 < Tectu> well 2012-06-07T02:31:08 < Tectu> how's it going 2012-06-07T02:32:36 < zyp> R2COM, doesn't really matter though, it's just defines 2012-06-07T02:32:46 < zyp> havng two doesn't affect source size at all 2012-06-07T02:33:17 < R2COM> i know, im just saying in terms of mess 2012-06-07T02:33:19 < R2COM> its a mess 2012-06-07T02:53:07 -!- LawrenceSeattle [~lawrence@66.192.187.106] has joined ##stm32 2012-06-07T03:10:16 < dongs> sup dongs 2012-06-07T03:11:26 < zippe> R2COM: I told you, stdperiph is crap 2012-06-07T03:11:44 < zippe> R2COM: Note how your application still has to know which clock control register controls the clock for a peripheral? 2012-06-07T03:12:47 < R2COM> yeah... i see...im just going through this, since im completely new to stm32 2012-06-07T03:12:59 < zippe> R2COM: See also the clusterfuck that is GPIO configuration 2012-06-07T03:13:18 < dongs> http://static.rcgroups.net/forums/attachments/3/2/4/0/5/7/a4918699-78-DSCN7695.jpg 2012-06-07T03:13:49 < R2COM> zippe: so, CMSIS is not a crap? 2012-06-07T03:15:10 < dongs> i think (?) cmsis is by arm and bits by vendors while stdperiph is 100% st 2012-06-07T03:21:14 < R2COM> if i want for example, to redefine some register myself, but, i want later on to be able to view it using p/x MYREG in gdb, how would i define it? 2012-06-07T03:21:24 < R2COM> or, what is a way to achieve that 2012-06-07T03:21:48 < dongs> i duno all my IDEs that I use have a 'register' or 'peripheral' view that shows all the stuff 2012-06-07T03:22:56 < R2COM> hmm 2012-06-07T03:23:03 < R2COM> im using just text gdb under linux 2012-06-07T03:23:14 < R2COM> or command line gdb 2012-06-07T03:36:43 -!- peabody128 [~peabody12@128.249.96.123] has joined ##stm32 2012-06-07T03:38:14 < R2COM> hmm there is something what quite doesnt make sense 2012-06-07T03:38:28 < R2COM> ******************** Bit definition for RCC_APB1ENR register *************** 2012-06-07T03:38:29 < R2COM> #define RCC_APB1ENR_TIM2EN ((uint32_t)0x00000001) 2012-06-07T03:38:29 < R2COM> #define RCC_APB1ENR_TIM3EN ((uint32_t)0x00000002) 2012-06-07T03:38:29 < R2COM> #define RCC_APB1ENR_TIM4EN ((uint32_t)0x00000004) 2012-06-07T03:38:39 < R2COM> TIM2 is located at the first bit, ok 2012-06-07T03:38:43 < R2COM> TIM3 at second bit, ok 2012-06-07T03:38:52 < R2COM> but how come TIM4 be on 4th bit? 2012-06-07T03:39:20 < R2COM> when on the datasheet its on 3rd position 2012-06-07T03:39:38 < R2COM> this is RCC_APB1ENR register, located at address 0x40023800 2012-06-07T03:40:01 < R2COM> sorry at 0x40023800 + 0x40 2012-06-07T03:40:06 < zippe> Those are binary values, not shifts 2012-06-07T03:40:19 < zippe> 1<<1 = 1, 1<<2 = 2, 1<<3 = 4 2012-06-07T03:40:33 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 252 seconds] 2012-06-07T03:40:57 -!- peabody128 [~peabody12@128.249.96.123] has quit [Ping timeout: 244 seconds] 2012-06-07T03:41:16 < zippe> R2COM: If you want the debugger to know about register locations, then you need symbols for them 2012-06-07T03:41:55 < zippe> You can either use something like 2012-06-07T03:42:11 < zippe> volatile uint32_t *pMYREG = MYREG_ADDRESS 2012-06-07T03:42:20 < zippe> and then p/x *pMYREG 2012-06-07T03:42:54 < R2COM> hm ok thanx 2012-06-07T03:43:53 < R2COM> and in that case of course it will consume memory space 2012-06-07T03:44:05 < zippe> or you can use the linker to construct symbols for everything. That's kinda messy though, and if you turn on link-time garbage collection you will probably only have defs for the ones you actually use 2012-06-07T03:44:31 < zippe> it won't consume memory if you put the definitions in a header 2012-06-07T03:44:52 < zippe> volatile uint32 * const pMYREG = MYREG_ADDRESS 2012-06-07T03:45:32 < zippe> That's a constant expression the same as (volatile uint32 *)MYREG_ADDRESS 2012-06-07T03:45:53 < R2COM> hm so its the best way to do it then i guess 2012-06-07T03:46:22 < zippe> Actually, sorry, cross-toolchain confusion 2012-06-07T03:46:40 < zippe> I'm not certain that if you don't have a copy of the value in memory that the compiler won't optimise it to the point where the debugger can't find it 2012-06-07T03:46:49 < zippe> You should try 2012-06-07T03:46:59 < zippe> Separately though, you're better off writing a debugger script to do what you want 2012-06-07T03:47:13 < R2COM> ok 2012-06-07T03:47:45 < R2COM> by the way, i like 0b00000100 stuff better 2012-06-07T03:47:49 < R2COM> than in hex 2012-06-07T03:48:31 < zippe> I prefer (1<<3) myself, but you should learn to read them all 2012-06-07T03:48:52 < R2COM> i know, it just didnt come into my mind they did that 2012-06-07T03:48:59 < R2COM> i do read hex 2012-06-07T03:50:36 < karlp> zippe: thanks for the linker script notes! 2012-06-07T03:51:31 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-07T04:03:07 -!- LawrenceSeattle [~lawrence@66.192.187.106] has quit [Quit: LawrenceSeattle] 2012-06-07T04:14:02 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Quit: Leaving.] 2012-06-07T04:19:39 < R2COM> zippe: how do you make gdb run one instruction at a time? 2012-06-07T04:19:45 < karlp> s 2012-06-07T04:19:51 < R2COM> but wait 2012-06-07T04:19:54 < R2COM> it doesnt work 2012-06-07T04:21:04 < R2COM> im looking at manual 2012-06-07T04:21:12 < R2COM> well yeah in original gdb manual it says step 2012-06-07T04:21:13 < R2COM> or s 2012-06-07T04:21:18 < R2COM> but 2012-06-07T04:21:35 < karlp> are you running wit -O0? 2012-06-07T04:21:49 < R2COM> where do you set -O0 ? 2012-06-07T04:21:58 < karlp> CFLAGS? 2012-06-07T04:21:59 < R2COM> im runnint stlink-texane by the way 2012-06-07T04:22:03 < R2COM> one sec 2012-06-07T04:22:13 < karlp> if you have optimizations turned on, then stepping may not produce the results you expect 2012-06-07T04:22:27 < R2COM> CFLAGS=$(COMMONFLAGS) $(MCUFLAGS) $(INCLUDE) $(CDEFS) 2012-06-07T04:22:28 < karlp> you can just let it roll, and let gdb take you where it thinks is best 2012-06-07T04:22:42 < R2COM> when i do s, it says: 2012-06-07T04:22:58 < R2COM> Single stepping until exit from function Reset_Handler, 2012-06-07T04:22:58 < R2COM> which has no line number information. 2012-06-07T04:22:58 < R2COM> SystemInit () at system_stm32f4xx.c:208 2012-06-07T04:22:58 < R2COM> 208 RCC->CR |= (uint32_t)0x00000001; 2012-06-07T04:23:18 < karlp> what's your actual problem? 2012-06-07T04:23:33 < karlp> that you don't understand what you're looking at? or you're expecting something else? 2012-06-07T04:23:44 < R2COM> ops, it works i guess 2012-06-07T04:24:10 < dongs> it sets lsb of RCC CR register 2012-06-07T04:24:47 < R2COM> but 2012-06-07T04:24:51 < R2COM> it says line 208 2012-06-07T04:24:59 < R2COM> however, in the source file, that line is at line 217 2012-06-07T04:25:08 < dongs> oh no fucking idea. 2012-06-07T04:27:17 < R2COM> oh yea... got it... the thing is, this file is INSIDE my project folder, but i was looking at similar file in the ST/STM32fxx/templates/ folder 2012-06-07T04:27:33 < R2COM> i have no idea why on earth this shit exists in several places, and its different 2012-06-07T04:28:14 < dongs> Ya i never use templates. I have the cmsis/stdperiph structure with each project 2012-06-07T04:28:18 < dongs> and I always use #include "" 2012-06-07T04:28:24 < dongs> to make sure it adds only the files I want 2012-06-07T04:28:33 < dongs> and not some shit by IDE vendor etc. 2012-06-07T04:28:45 < dongs> keil for example has modified versions of stm*.h files with some additions/deleetions 2012-06-07T04:28:56 < dongs> if I #include <> those half the shit in stdperiph doesnt work 2012-06-07T04:29:05 < R2COM> got it 2012-06-07T04:40:17 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-07T04:44:39 < R2COM> i started rewriting stdperiph 2012-06-07T04:44:46 < dongs> silly. 2012-06-07T04:45:24 < R2COM> you kiddin? every time im going to go through each shit function like PeriphClockCmdWhatFuckingEver and so on until i figure out what it does? 2012-06-07T04:45:55 < R2COM> so what i decided to do now is, i traced one thing, for example TIM3 peripheral, and the way how its clock is enabled 2012-06-07T04:46:01 < R2COM> and now, im looking at datasheet 2012-06-07T04:46:10 < R2COM> and want to put my own definitions 2012-06-07T04:46:38 < R2COM> dongs: whats the problem? today at least 3 people already said that stdperiph is crap... so? 2012-06-07T04:46:49 < dongs> those people use lunix and don't value thier time 2012-06-07T04:46:56 < dongs> so I'mn not sure how helpful thier advice is 2012-06-07T04:47:02 < dongs> another guy who said its crap writes code like 2012-06-07T04:47:09 < dongs> BLAH->CR = 0x7a69; 2012-06-07T04:47:28 < dongs> I think I would rather take something like PeriphClockCmdWhatFuckingEver() with some human-readable args 2012-06-07T04:47:32 < R2COM> what you do? autocomplete shit? 2012-06-07T04:47:34 < R2COM> in IDE? 2012-06-07T04:47:54 < dongs> i would if I could. but generally I just have the header files for the stuff im using open 2012-06-07T04:47:57 < dongs> its really not that hard. 2012-06-07T04:48:30 < R2COM> lol then screw that! if one would use autocomplete then its something at least... 2012-06-07T04:48:39 < R2COM> but having header and looking...again waste of time 2012-06-07T04:48:43 < R2COM> what im thinking of, is: 2012-06-07T04:49:00 < R2COM> make several basic easy to memorise functions, and obvious register names, and i just reuse them 2012-06-07T04:49:05 < R2COM> no need to even open anything later 2012-06-07T04:49:27 < dongs> well, theres nothing actually w rong with stdperiph functions 2012-06-07T04:49:27 < R2COM> functions like: regwrite(REGNAME, VALUE) 2012-06-07T04:49:34 < dongs> uh well 2012-06-07T04:49:37 < dongs> regwrite is just 2012-06-07T04:49:40 < dongs> regname->blah?? 2012-06-07T04:49:41 < dongs> or wat 2012-06-07T04:49:53 < R2COM> no i write my own function regwrite 2012-06-07T04:49:56 < dongs> why? 2012-06-07T04:50:00 < R2COM> and in my main.c just reuse it 2012-06-07T04:50:03 < R2COM> because...ill tell 2012-06-07T04:50:25 < dongs> http://bcas.tv/paste/results/3d4Z6R25.html what's confusing about shit like this? 2012-06-07T04:50:26 < R2COM> because stdperiph has many different functions for different shit, but honestly they all literally WRITE stuff in regs 2012-06-07T04:50:36 < dongs> also I think I can just combine all same peripheral flags on one line 2012-06-07T04:50:39 < R2COM> ok ill tell 2012-06-07T04:50:41 < R2COM> first of all 2012-06-07T04:50:50 < R2COM> so many words each with big letter 2012-06-07T04:50:57 < R2COM> i mean thats slow 2012-06-07T04:51:18 < R2COM> its just inconvenient 2012-06-07T04:51:26 < R2COM> why to have ClockCmd? 2012-06-07T04:51:30 < R2COM> it write value to regs! 2012-06-07T04:51:30 < dongs> lunix_way_with_underscores_and_shit_is_more_lame() 2012-06-07T04:51:33 < R2COM> just like all other functions 2012-06-07T04:51:55 < R2COM> so, its better just to have regwrite(REG, VAL) 2012-06-07T04:52:01 < R2COM> and then make registers have obvious names 2012-06-07T04:52:05 < dongs> well shit dude, if you dont like long names, you just do RCC->APB1ENR |= 0xwhateverbitmask; 2012-06-07T04:52:12 < dongs> how does that make you better than that other dude 2012-06-07T04:52:28 < dongs> registers DO have obvious names 2012-06-07T04:52:30 < R2COM> well, that works too 2012-06-07T04:52:35 < dongs> and as you noticed they're all in f4xx.h 2012-06-07T04:53:12 < R2COM> RCC_APB2Periph_GPIOB <---- not nice, this is better ------> PERIPHERAL_APB2GPIOB 2012-06-07T04:53:16 < R2COM> dont you think? 2012-06-07T04:53:17 < dongs> no 2012-06-07T04:53:33 < dongs> style nazism never gets you anywehre with vendor-provided shit 2012-06-07T04:53:33 < R2COM> first, one less separation, second same capital letters 2012-06-07T04:53:42 < dongs> you;ll be the only kid on teh block rewriting everything and wasting time while others are getting shti done 2012-06-07T04:54:13 < dongs> stdperiph shit has pretty good separation for all peripherals 2012-06-07T04:54:20 < dongs> i.e. if you dont like to use thier _rcc shit just dont use it 2012-06-07T04:54:29 < dongs> but you can stil use timer shit e tc. 2012-06-07T04:54:46 < dongs> but personally i dont think its all that evil 2012-06-07T04:55:15 < dongs> are you saying there's redefinition of RCC_APB2Periph_GPIOA in f4xx.h? 2012-06-07T04:55:25 < R2COM> by the way, yes 2012-06-07T04:55:37 < R2COM> also, those fucking for loops to determine current pin 2012-06-07T04:55:45 < R2COM> which takes my CPU power 2012-06-07T04:55:46 < dongs> i dont see it 2012-06-07T04:55:52 < R2COM> yes today i discussed it 2012-06-07T04:55:58 < dongs> iknow 2012-06-07T04:56:00 < dongs> im scrolling up 2012-06-07T04:56:02 < dongs> i dont see it in my .h 2012-06-07T04:56:06 < dongs> but im loking at f1xx 2012-06-07T04:56:24 < R2COM> http://shorttext.com/8tpQxJ 2012-06-07T04:56:29 < R2COM> look here 2012-06-07T04:56:37 < R2COM> its using for loop, to determine current pin 2012-06-07T04:56:44 < R2COM> GPIO_Init function 2012-06-07T04:57:10 < R2COM> pinpos shit 2012-06-07T04:57:24 < dongs> gpio IS ugly. 2012-06-07T04:57:30 < dongs> i agree with that 2012-06-07T04:57:31 < R2COM> so whatever 2012-06-07T04:57:33 < dongs> other shit is just fluff i think 2012-06-07T04:57:37 < R2COM> ehh 2012-06-07T04:57:39 < R2COM> still 2012-06-07T04:58:03 < dongs> RCC_APB2ENR_IOPAEN 2012-06-07T04:58:04 < dongs> haha 2012-06-07T04:58:09 < dongs> vs RCC_APB2Periph_GPIOA 2012-06-07T04:58:22 < R2COM> no 2012-06-07T04:58:36 < dongs> im saying the cmsis define vs stdlib 2012-06-07T04:58:41 < R2COM> ok 2012-06-07T04:59:04 < dongs> lemme rewritee that block i pasted using raw register shit and see how much it saves 2012-06-07T04:59:07 < dongs> i'd guess not so much 2012-06-07T04:59:27 < R2COM> hmmm so CMSIS and stdperiph has same definitions...? heh... 2012-06-07T04:59:30 < R2COM> i mean 2012-06-07T04:59:35 < R2COM> different definitions but for same stuff 2012-06-07T04:59:54 < dongs> yes.. 2012-06-07T05:00:10 < R2COM> slowly slowly i want to transition out of all that crap 2012-06-07T05:05:06 < R2COM> also, redefenition not of GPIOA, but of RCC_APB1 Peripherals, one in stm32f4xx_rcc.h file another in stm32f4xx.h file... 2012-06-07T05:05:10 < dongs> well funny 2012-06-07T05:05:16 < dongs> i found a bug in my code with this 2012-06-07T05:05:24 < dongs> RCC_AHBPeriphClockCmd(RCC_AHBPeriph_DMA2, ENABLE); i had this 2012-06-07T05:05:27 < dongs> and it was building 2012-06-07T05:05:31 < R2COM> ok? 2012-06-07T05:05:34 < dongs> but apparently there's no DMA2 on F103? 2012-06-07T05:05:42 < dongs> RCC_AHBENR_DMA2EN is not defined 2012-06-07T05:05:42 < R2COM> im not sure about F1 2012-06-07T05:05:45 < dongs> except for CL or HD 2012-06-07T05:05:49 < R2COM> im using F4 2012-06-07T05:11:05 < dongs> well this is weird 2012-06-07T05:12:46 < dongs> http://bcas.tv/paste/results/xFGpYs61.html 2012-06-07T05:13:33 < dongs> but which one is easier to read? 2012-06-07T05:13:53 < R2COM> isnt it same shit 2012-06-07T05:13:58 < dongs> yes it is 2012-06-07T05:14:06 < dongs> but to me the 2nd part is easier to read 2012-06-07T05:14:10 < R2COM> then why you ask which one is easier 2012-06-07T05:14:18 < R2COM> oh 2012-06-07T05:14:19 < R2COM> wait 2012-06-07T05:14:30 < R2COM> no way 2012-06-07T05:14:31 < R2COM> 1st 2012-06-07T05:14:35 < dongs> yes way 2012-06-07T05:14:47 < dongs> notice the RCC_* shit compiles smaller too 2012-06-07T05:14:54 < R2COM> more switching between caps, more errors etc 2012-06-07T05:14:57 < R2COM> typos 2012-06-07T05:15:04 < dongs> I dont type any of that shit 2012-06-07T05:15:24 < R2COM> what you do then? 2012-06-07T05:16:08 < dongs> dunno 2012-06-07T05:16:51 < dongs> im curious how RCC_* shit gets compiled into smaller code 2012-06-07T05:16:57 < dongs> by 4 bytes 2012-06-07T05:17:02 < R2COM> i dont know, there must be something else 2012-06-07T05:17:06 < dongs> nope 2012-06-07T05:17:09 < R2COM> because that shouldnt matter 2012-06-07T05:17:10 < dongs> just switch #if 0 to #if 1 2012-06-07T05:17:27 < dongs> should look at asm 2012-06-07T05:17:28 < dongs> lets see 2012-06-07T05:17:30 < R2COM> RCC->APB1ENR should be fastest 2012-06-07T05:20:54 < dongs> X ((RCC_TypeDef *) ((((uint32_t)0x40000000) + 0x20000) + 0x1000))->APB1ENR |= (((uint32_t)0x00000001) | ((uint32_t)0x00000002) | ((uint32_t)0x00000004) | ((uint32_t)0x00400000)); 2012-06-07T05:21:01 < dongs> this is what prepropcessor turns it into 2012-06-07T05:21:31 < R2COM> it turns to this which piece of code? 2012-06-07T05:21:44 < dongs> RCC->APB1ENR |= (RCC_APB1ENR_TIM2EN | RCC_APB1ENR_TIM3EN | RCC_APB1ENR_TIM4EN | RCC_APB1ENR_I2C2EN); 2012-06-07T05:22:04 < R2COM> so? 2012-06-07T05:23:39 < dongs> http://bcas.tv/paste/results/J5COln34.html 2012-06-07T05:23:44 < dongs> haha wow it actually DOES end up BL'ing to it 2012-06-07T05:24:16 < dongs> so same size is kinda lucky 2012-06-07T05:24:29 < R2COM> ...and, now what? 2012-06-07T05:24:31 < dongs> i would have expected the shit to get inlined 2012-06-07T05:26:38 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 240 seconds] 2012-06-07T05:29:31 < R2COM> also, if im rewriting stdperiph, i guess there later wouldnt be need to use CMSIS either... 2012-06-07T05:29:31 < R2COM> heh 2012-06-07T05:29:39 < R2COM> of course cant do it all instantly 2012-06-07T05:29:42 < dongs> well, ive got news for you 2012-06-07T05:29:46 < dongs> doing direct register shit 2012-06-07T05:29:48 < R2COM> what left is: linker script, and startup file 2012-06-07T05:29:50 < dongs> results in bigger files 2012-06-07T05:29:57 < dongs> and yes i made sure that function isnt used anywehre else in code 2012-06-07T05:30:06 < dongs> i took out all reference to RCC_APB1PeriphClockCmd 2012-06-07T05:30:10 < R2COM> ok how does that happen? 2012-06-07T05:30:12 < dongs> and replaced with raw RCC->APB1ENR 2012-06-07T05:30:19 < dongs> and shit is like 12 bytes bigger 2012-06-07T05:30:42 < R2COM> how? 2012-06-07T05:30:46 < R2COM> whats the reason 2012-06-07T05:31:38 < R2COM> because it doesnt make sense... 2012-06-07T05:31:43 < R2COM> there must be some reason 2012-06-07T05:32:04 < dongs> compare asm 2012-06-07T05:32:20 < R2COM> well..it might be due to the fact, that you are still using that stdperiph 2012-06-07T05:32:27 < dongs> no 2012-06-07T05:32:34 < R2COM> but you still using it right? 2012-06-07T05:32:35 < R2COM> you do 2012-06-07T05:32:35 < dongs> unused functions dont get linked.. 2012-06-07T05:32:48 < R2COM> no... but APB1ENR *IS* used 2012-06-07T05:32:57 < R2COM> its defined in the structure as: 2012-06-07T05:33:03 < R2COM> __IO uint32_t APB1ENR; /*!< RCC APB1 peripheral clock enable register, Address offset: 0x40 */ 2012-06-07T05:33:20 < R2COM> what is that __IO macro by the way... 2012-06-07T05:33:37 < dongs> just same as volatile 2012-06-07T05:33:43 < R2COM> so, maybe its designed to be used fully with their shit, and once you start modifying their shit it gets bigger 2012-06-07T05:34:01 < R2COM> maybe, if you would completely not use stdperiph, and do it your way, it would be better 2012-06-07T05:34:24 < R2COM> and plus... its structure 2012-06-07T05:34:33 < R2COM> so maybe it reserves somehow more memory 2012-06-07T05:34:35 < dongs> dude 2012-06-07T05:34:35 < R2COM> or... 2012-06-07T05:34:37 < R2COM> i dont know 2012-06-07T05:34:46 < dongs> no.. its memory mapped this is only instruction to compiler 2012-06-07T05:34:54 < dongs> X ((RCC_TypeDef *) ((((uint32_t)0x40000000) + 0x20000) + 0x1000))->APB1ENR |= (((uint32_t)0x00000001) | ((uint32_t)0x00000002) | ((uint32_t)0x00000004) | ((uint32_t)0x00400000)); 2012-06-07T05:34:58 < dongs> notice this shit 2012-06-07T05:35:02 < R2COM> ok? 2012-06-07T05:35:10 < dongs> it just writes blah to that address 2012-06-07T05:35:30 < dongs> 0x40000000+0x20000+0x1000+offset of apb1enr 2012-06-07T05:35:48 < R2COM> ok 2012-06-07T05:35:50 < dongs> mm my mouser order showed up 2012-06-07T05:35:56 < dongs> time to check out this awesome $50 gps antenna i got 2012-06-07T05:36:04 < dongs> shit better give me a lock indoors 2012-06-07T05:36:38 < R2COM> ok, now you have an idea why it got bigger? 2012-06-07T05:36:43 < R2COM> i mean the real reason 2012-06-07T05:36:49 < R2COM> ? 2012-06-07T05:37:16 < dongs> no i certainly don't. RCC_APB1PeriphClockCmd shouldn't be linked anymore in raw version 2012-06-07T05:37:19 < dongs> let me see the linker/map output 2012-06-07T05:37:40 < dongs> hmm its still used 2012-06-07T05:37:42 < dongs> somewehre 2012-06-07T05:38:20 < dongs> hm or is it 2012-06-07T05:41:34 < dongs> ok right 2012-06-07T05:41:35 < dongs> its not used 2012-06-07T05:41:38 < dongs> so, still, its bigger. 2012-06-07T05:41:59 < R2COM> but its nonsense 2012-06-07T05:42:53 < dongs> 1G/hm its still in global symbols list 2012-06-07T05:49:33 -!- [7] [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-07T05:49:39 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-07T05:49:44 < dongs> holy shit 2012-06-07T05:49:54 < dongs> enabled crossmodule optimization 2012-06-07T05:50:04 < dongs> 43152 -> 38144 2012-06-07T05:54:32 < R2COM> so? 2012-06-07T05:55:38 < R2COM> are you comparing size of .elf file by the way? 2012-06-07T05:55:40 < R2COM> or which one? 2012-06-07T05:55:48 < dongs> no, compiler outputs statistics 2012-06-07T05:55:55 < dongs> Program Size: Code=38144 RO-data=3612 RW-data=968 ZI-data=5608 2012-06-07T05:55:56 < dongs> i.e. like this 2012-06-07T05:57:34 < R2COM> hell i dont know how to get this data with my tools 2012-06-07T05:58:45 < R2COM> ill compare the size of .bin files then 2012-06-07T06:00:53 < dongs> ok gonna rebuild with stdperiph thing and see. crossoptimization probably kills that stuff 2012-06-07T06:01:15 < dongs> Program Size: Code=38204 RO-data=3608 RW-data=968 ZI-data=5608 2012-06-07T06:01:16 < dongs> yeah 2012-06-07T06:01:17 < dongs> ok 2012-06-07T06:01:19 < R2COM> ok i have some results 2012-06-07T06:01:24 < R2COM> here is what i did 2012-06-07T06:01:50 < R2COM> i have this line: RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM3, ENABLE); i compiled it, and size of .bin file was: 7840 2012-06-07T06:02:14 < R2COM> then i changed that line to: RCC->APB1ENR |= RCC_APB1Periph_TIM3; compiled, and size of .bin file is: 7848 2012-06-07T06:02:16 < R2COM> bytes 2012-06-07T06:02:31 < dongs> so its biggar. 2012-06-07T06:03:09 < R2COM> not sure why 2012-06-07T06:03:11 < R2COM> the thing is 2012-06-07T06:03:25 < R2COM> first line, in its code contains second line 2012-06-07T06:03:30 < R2COM> you see what im saying? 2012-06-07T06:04:57 < R2COM> http://shorttext.com/kxEzN80 2012-06-07T06:05:08 < R2COM> look at that 2012-06-07T06:05:26 < R2COM> the long line, which i changed to a short line....basically that big function 2012-06-07T06:05:40 < R2COM> it contains that short code too, RCC->APB1ENR ... 2012-06-07T06:05:51 < dongs> right. 2012-06-07T06:06:01 < R2COM> its just there is assert_param shit 2012-06-07T06:06:08 < dongs> thats a no-op 2012-06-07T06:06:11 < R2COM> and one comparison (wasting processor time) 2012-06-07T06:06:29 < R2COM> or maybe compiler optimizes that 2012-06-07T06:06:47 < dongs> i can see it optimizing it (maybe) if y ou never disable 2012-06-07T06:07:00 < dongs> i.e. theres only one code path, and thats to enable 2012-06-07T06:07:13 < R2COM> im gona try something else now 2012-06-07T06:07:52 < dongs> after I enabled proper optimizations it actually optimized APB1shit out. 2012-06-07T06:08:34 < dongs> yes, and its gone from linker map 2012-06-07T06:10:36 < R2COM> now which one is smaller? 2012-06-07T06:10:43 < dongs> the raw one 2012-06-07T06:10:53 < dongs> Program Size: Code=38144 RO-data=3612 RW-data=968 ZI-data=5608 vs Program Size: Code=38204 RO-data=3608 RW-data=968 ZI-data=5608 2012-06-07T06:11:05 < dongs> 60 bytes out 2012-06-07T06:14:35 < R2COM> heh 2012-06-07T06:14:38 < R2COM> i did this now: 2012-06-07T06:14:50 < R2COM> uint32_t* regPtr = (uint32_t*)0x40023800; 2012-06-07T06:14:59 < R2COM> *(regPtr) |= RCC_APB1Periph_TIM3; 2012-06-07T06:15:07 < R2COM> and now its even bigger: 7856 bytes 2012-06-07T06:15:21 < R2COM> its address of exactly RCC_APB1ENR register 2012-06-07T06:15:24 < R2COM> precise address 2012-06-07T06:15:28 < dongs> right 2012-06-07T06:15:37 < dongs> why not just 2012-06-07T06:15:48 < dongs> *(uint32_t*)0x40023800 |= RCC_APB1Periph_TIM3 or whatever 2012-06-07T06:16:04 < dongs> also it should be volatile uint32_t 2012-06-07T06:16:22 < R2COM> *(volatile uint32_t*)0x40023800 |= RCC_APB1Periph_TIM3 2012-06-07T06:16:24 < R2COM> like this? 2012-06-07T06:16:47 < dongs> or something yeah 2012-06-07T06:17:18 < R2COM> i tried in similar way 2012-06-07T06:17:48 < R2COM> volatile uint32_t* regPtr = (volatile uint32_t*)0x40023800; 2012-06-07T06:17:56 < R2COM> *(regPtr) |= RCC_APB1Periph_TIM3; 2012-06-07T06:18:01 < R2COM> same ... : 7856 2012-06-07T06:18:03 < dongs> compare asm to see what its really doing 2012-06-07T06:18:06 < dongs> are you building with -O3 or so? 2012-06-07T06:18:08 < dongs> or -Os i guess 2012-06-07T06:18:11 < dongs> for gcc 2012-06-07T06:18:21 < R2COM> OPTLVL:=3 # Optimization level, can be [0, 1, 2, 3, s]. 2012-06-07T06:18:28 < dongs> try s 2012-06-07T06:19:00 < R2COM> same shit 2012-06-07T06:19:06 < R2COM> s is highest? 2012-06-07T06:19:11 < dongs> s is optimize for size 2012-06-07T06:21:47 < R2COM> this gave less size: *(volatile uint32_t *)0x40023800 |= RCC_APB1Periph_TIM3; 2012-06-07T06:21:47 < R2COM> 7848 2012-06-07T06:21:58 < R2COM> but not 7840 as it is with that long stdperiph function 2012-06-07T06:23:30 < R2COM> it has to do i guess with the way how compiler handles function call and direct access 2012-06-07T06:23:30 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer] 2012-06-07T06:23:44 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-07T06:24:23 < R2COM> any more ideas? 2012-06-07T06:25:01 < dongs> is your file just main() { stdperiph; }? 2012-06-07T06:25:05 < dongs> or is there other code 2012-06-07T06:26:43 < R2COM> other code 2012-06-07T06:26:48 < dongs> well 2012-06-07T06:26:55 < dongs> did you check if other code doesnt call that function?? 2012-06-07T06:27:14 < R2COM> RCC_APB1PeriphClockCmd ? 2012-06-07T06:27:37 < dongs> yes 2012-06-07T06:27:46 < dongs> i.e. some other shit inside stdperiph might be calling it. 2012-06-07T06:28:11 < R2COM> i checked in my main.c noone does 2012-06-07T06:28:30 < R2COM> here another thing i did: 2012-06-07T06:28:43 < R2COM> since it handled better a function 2012-06-07T06:28:46 < R2COM> i decided do my own 2012-06-07T06:28:46 < R2COM> void config_rcc_apb1enr(uint32_t arg) 2012-06-07T06:28:47 < R2COM> { 2012-06-07T06:28:47 < R2COM> RCC->APB1ENR |= arg; 2012-06-07T06:28:47 < R2COM> } 2012-06-07T06:28:51 < R2COM> and then in main.c : 2012-06-07T06:28:58 < R2COM> config_rcc_apb1enr(RCC_APB1Periph_TIM3); 2012-06-07T06:29:03 < R2COM> result is: 7868 2012-06-07T06:29:06 < R2COM> even much bigger 2012-06-07T06:29:08 < R2COM> lol 2012-06-07T06:29:52 < R2COM> maybe someone else here might have idea 2012-06-07T06:29:58 < R2COM> why is that shit doing it 2012-06-07T06:31:03 < R2COM> ..seriously its weird 2012-06-07T06:33:31 < dongs> well, it works with my compiler 2012-06-07T06:33:37 < dongs> and i did see a nice improvement 2012-06-07T06:33:41 < dongs> so I think your gcc is failing something 2012-06-07T06:34:00 < R2COM> which gcc you using? 2012-06-07T06:34:17 < dongs> im not using gcc 2012-06-07T06:34:18 < dongs> im using armcc 2012-06-07T06:34:29 < dongs> same 38k-bulit project by armcc compiles to like 58k by gcc 2012-06-07T06:35:05 < R2COM> oh...maybe i just shouldnt give a shit to all that 2012-06-07T06:35:05 < R2COM> lol 2012-06-07T06:35:15 < R2COM> afterall its C not asm...and of course different compiler will behave differently 2012-06-07T06:51:26 -!- dekar [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has joined ##stm32 2012-06-07T06:51:29 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-07T08:15:33 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-07T08:39:38 < R2COM> ok 2012-06-07T08:39:44 < R2COM> now after some thinking 2012-06-07T08:39:52 < R2COM> i think im going to stick with stdperiph for now 2012-06-07T08:40:07 < R2COM> i already messed alot today with some custom coding 2012-06-07T08:40:10 < R2COM> and more experiments 2012-06-07T08:40:20 < R2COM> so, it has to be done thoroughly if done.. 2012-06-07T08:40:29 < R2COM> but for now 2012-06-07T08:40:29 < R2COM> i guess ill do CMSIS + stdperiph 2012-06-07T08:41:17 < dongs> lol 2012-06-07T08:41:23 < dongs> good plan 2012-06-07T08:41:38 -!- cjbaird [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-07T09:44:18 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-07T09:45:16 < cjbaird> dekar: if you're going to do something stupid like accept my contributions, here's a better version of the toolchain.sh ... http://kildall.apana.org.au/~cjb/TNT_toolchain.sh 2012-06-07T09:45:50 < cjbaird> Handles the varying program names and different OSen a bit better 2012-06-07T10:18:09 -!- pelrun__ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-07T10:21:44 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 252 seconds] 2012-06-07T11:00:17 -!- Laurenceb_ [~Laurence@host109-157-39-186.range109-157.btcentralplus.com] has joined ##stm32 2012-06-07T11:06:37 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.] 2012-06-07T11:33:33 -!- zippe [~Adium@173.11.99.161] has quit [Ping timeout: 252 seconds] 2012-06-07T12:19:41 -!- Laurenceb_ [~Laurence@host109-157-39-186.range109-157.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-06-07T12:36:17 -!- ziph [~ziph@203.59.136.175] has quit [Ping timeout: 245 seconds] 2012-06-07T12:50:50 < karlp> cjbaird: your webserver wants to give that to me as a download, not as text/plain :| 2012-06-07T12:58:14 < karlp> heh, I love datasheet comments like: "Reserved for Debug use. This bit reads as 0. When writing to the register you must write 0 to 2012-06-07T12:58:17 < karlp> this bit, otherwise behavior is unpredictable. 2012-06-07T13:03:50 < karlp> anyone know what this is meant to mean, "Bits 15:0 U_ID(31:16): 31:16 unique ID bits This field value is also reserved for a future feature. 2012-06-07T13:04:00 < karlp> in the middle of the other unique id bits? 2012-06-07T13:04:07 < karlp> only those 15 say "also reserved" 2012-06-07T13:04:31 < karlp> I guess I should not use those lower bits 2012-06-07T13:06:54 < cjbaird> karlp: probably the 8-bit character at the start of the file making it do that.. 2012-06-07T13:08:00 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-06-07T13:09:35 -!- cjbaird [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-07T13:10:09 < dongs> 8butt 2012-06-07T13:11:14 < dongs> http://de3.eu.apcdn.com/full/75438.jpg 2012-06-07T13:11:16 < dongs> oh lawd 2012-06-07T13:25:47 < zyp> transit of penus 2012-06-07T13:47:11 < Laurenceb> so does TNT work? 2012-06-07T13:47:16 < dongs> no 2012-06-07T13:50:30 < Laurenceb> :( 2012-06-07T13:55:13 -!- cjbaird [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-07T13:59:59 < dongs> Laurenceb: when attitude loop runs faster, all other things being equal, how does it have effect on PID 2012-06-07T14:00:37 < dongs> I guess effect of P doesn't change, but I + D? 2012-06-07T14:00:56 < jpa-> if you properly multiply/divide I & D by the timestep, it should not affect 2012-06-07T14:00:59 < Laurenceb> yeah 2012-06-07T14:01:10 < Laurenceb> i use the timestep as part of the terms 2012-06-07T14:03:22 < jpa-> i do integral += error * timestep; derivative = change / timestep; 2012-06-07T14:04:06 < jpa-> but it could change the resonant frequencies of the control system 2012-06-07T14:30:36 < Laurenceb> http://www.youtube.com/watch?feature=player_embedded&v=ONZcjs1Pjmk 2012-06-07T14:32:39 < dongs> damn indians 2012-06-07T14:36:57 < karlp> gdb's "step" shows the line about to be executed right? 2012-06-07T14:37:07 < karlp> and you press s to execute the one it just showed? 2012-06-07T14:37:13 < Tectu> Laurenceb, that's epic 2012-06-07T14:37:41 < dongs> attn http://www.johnlewis.com/231434201/Product.aspx 2012-06-07T14:39:41 < Tectu> karlp, afaik yes, but not 100% sure 2012-06-07T14:40:02 < Laurenceb> nice 2012-06-07T14:40:35 < karlp> Laurenceb: yeah, that's awesome 2012-06-07T14:40:56 < Tectu> dongs, is that one thousand or one ? 2012-06-07T14:40:58 < Laurenceb> seems to be relatively simple 2012-06-07T14:41:12 < dongs> Tectu: 9000/9 2012-06-07T14:41:17 < Laurenceb> just amplifying spacial frequencies as a function of time 2012-06-07T14:41:19 < Tectu> dongs, woah 2012-06-07T14:41:26 < Tectu> Laurenceb, yes, very easy :) 2012-06-07T14:41:35 < dongs> Tectu: its like getting a dong stuck in your ear and paying for it 2012-06-07T14:47:56 < karlp> what was the trick for decoding branchs to faults? looking at xpsr lower bits or something? 2012-06-07T14:48:15 < dongs> i just click 'stack trace' in IDE :) 2012-06-07T14:48:45 < karlp> yeah, I stepd onto the line that did it, 2012-06-07T14:48:51 < karlp> I just don't really understand why it did it 2012-06-07T14:51:35 < dongs> ugh stupdi fucking users 2012-06-07T14:51:36 -!- tavish [~tavish@120.56.139.10] has joined ##stm32 2012-06-07T14:51:37 -!- tavish [~tavish@120.56.139.10] has quit [Changing host] 2012-06-07T14:51:37 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-07T15:01:44 < zyp> karlp, yes, lower 9 bits of xpsr is active handler 2012-06-07T15:08:20 < karlp> and that's CFSR in the cortex programming manual? 2012-06-07T15:08:33 < dongs> rage. 2012-06-07T15:08:36 < dongs> my timing shit is still fucked 2012-06-07T15:08:46 < dongs> i took out all sensor reads and replaced wiht delays 2012-06-07T15:08:53 < dongs> and my cycle time still jumps + 100us sometimes at random 2012-06-07T15:09:58 < zyp> karlp, no 2012-06-07T15:10:09 < zyp> it's an actual core register 2012-06-07T15:10:18 < zyp> it's listed in «info registers» 2012-06-07T15:10:30 < zyp> as xpsr or cpsr or whatever 2012-06-07T15:11:40 < zyp> if you find a hardfault, however, promoted from another fault, the reason for that fault will be recorded in SCB_CFSR 2012-06-07T15:12:15 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-07T15:12:18 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-07T15:15:21 -!- pelrun__ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 244 seconds] 2012-06-07T15:16:18 < karlp> right, but I mean, the definitions of how to decode what xpsr says, is that in the SCB_CFSR definition as well? 2012-06-07T15:16:24 < karlp> or does it have it's own definitions? 2012-06-07T15:17:49 < zyp> no 2012-06-07T15:17:58 < zyp> it's in the *PSR definitions 2012-06-07T15:18:06 < zyp> it's described along with the other core registers 2012-06-07T15:18:31 < zyp> http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0552a/CHDBIBGJ.html 2012-06-07T15:24:53 < karlp> ok, so lowest bits are 3, which is hardfault. 2012-06-07T15:25:02 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds] 2012-06-07T15:25:48 < karlp> cortex m3 technical reference manual IPSR section isn't nearly as easy to read as that web page 2012-06-07T15:25:48 < zyp> suspected as much 2012-06-07T15:26:12 < zyp> the TRM from ARM or from ST? 2012-06-07T15:27:11 -!- tavish [~tavish@120.56.235.141] has joined ##stm32 2012-06-07T15:27:12 -!- tavish [~tavish@120.56.235.141] has quit [Changing host] 2012-06-07T15:27:12 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-07T15:27:44 < Laurenceb> http://pic.epicfail.com/wp-content/uploads/2012/06/multi-sexy-fail-guys-mirror-shot.jpg 2012-06-07T15:27:53 < Laurenceb> is that an irc meetup? 2012-06-07T15:29:15 < zyp> looks more like your family 2012-06-07T15:30:01 < Laurenceb> i see hackitten is there on the left 2012-06-07T15:30:39 <+Steffanx> Whatever .. not funny 2012-06-07T15:30:41 < karlp> from arm 2012-06-07T15:30:50 <+Steffanx> Keep your 4chan crap out of this channel please Laurenceb 2012-06-07T15:30:59 < zyp> agreed 2012-06-07T15:33:25 < karlp> ARM DDI 0337G, section 2.7, table 2.2 has ISR number, 8 bits, but has different numbers 2012-06-07T15:34:10 < zyp> no idea what that is, and can't be assed to look it up now 2012-06-07T15:34:17 < zyp> but it's pretty easy 2012-06-07T15:34:24 < zyp> number matches index in interrupt table 2012-06-07T15:38:33 < karlp> oh, is that all 2012-06-07T15:38:45 < karlp> I hadn't made the jump that they were the same index 2012-06-07T15:39:11 < karlp> well, I fixed it anyway, I was doing something bad with a pointer 2012-06-07T15:39:31 < karlp> anyone know what parts of the "Unique id" are relatively stable, and which bits change a lot? 2012-06-07T15:43:03 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-07T15:44:12 < zyp> you're supposed to hash it if you need to make a shorter id 2012-06-07T15:46:38 < karlp> I guess :) 2012-06-07T15:49:54 < karlp> we've been using chips with 48bit mac's, it would be nice to just use a 48bit section of the uid. 2012-06-07T15:50:02 * karlp fiddles 2012-06-07T15:51:53 < zyp> isn't a 48-bit mac usually a 24-bit OUI and a 24-bit unique ID? 2012-06-07T15:54:29 < karlp> yeah, 2012-06-07T15:55:01 < karlp> I eventually need an 8bit number, and I just used the lowest byte of the ID portion, 2012-06-07T15:55:14 < karlp> and then just kept the full 48 as the device "serial" 2012-06-07T15:56:10 < karlp> want to get the same from the 96bit on stm32, with hopefully something like 1/255 duplicates like we had before. (ish) 2012-06-07T15:56:30 < karlp> silly modbus with it's tiny address space :) 2012-06-07T15:57:21 < zyp> yeah, we've talked about this before :p 2012-06-07T15:58:26 < karlp> we have? guess I'd better quiet down then :) 2012-06-07T15:59:44 <+Steffanx> What kind of modbus device you make karlp ? 2012-06-07T15:59:51 < zyp> well, I believe you talked about modbus and I talked about can 2012-06-07T16:00:31 < zyp> and I said that I'm going to go with having a master enumerating devices and handing out short addrs 2012-06-07T16:01:00 <+Steffanx> zlog :) 2012-06-07T16:08:05 <+Steffanx> Hmm, my raspberrypi has some issues transferring multiple files with samba 2012-06-07T16:08:22 <+Steffanx> issues as in .. the ethernet connection drops out 2012-06-07T16:08:23 < dongs> lol, rapeberrypi 2012-06-07T16:08:39 <+Steffanx> dongs and his highlight on raspberrypi 2012-06-07T16:08:50 < karlp> oh yeah, assigning addresses, that's right. 2012-06-07T16:09:02 < karlp> Steffanx: power metering stuff. 2012-06-07T16:09:13 < zyp> yes, kind of like how usb works 2012-06-07T16:10:42 < dongs> http://www-e.uni-magdeburg.de/steschum/DSCN0754.JPG spot the lunix guy 2012-06-07T16:10:57 <+Steffanx> :P 2012-06-07T16:10:57 < zyp> expecting bearded guy 2012-06-07T16:10:59 < zyp> *opening* 2012-06-07T16:11:03 < zyp> yep 2012-06-07T16:11:04 <+Steffanx> + T shirt zyp 2012-06-07T16:11:10 < zyp> and t-shirt with forkbomb 2012-06-07T16:11:12 < Laurenceb> lol 2012-06-07T16:11:14 <+Steffanx> Never forget about a geeky T-shirt 2012-06-07T16:11:39 <+Steffanx> dongs looks more like the guy on the right 2012-06-07T16:11:46 <+Steffanx> The average windows guy 2012-06-07T16:13:55 < zyp> it's fun how every time dongs posts something funny, Laurenceb goes and reposts it on another channel 2012-06-07T16:14:18 < dongs> what other channel are you dudes nerding otu in 2012-06-07T16:14:34 < dongs> #hightrollitude? 2012-06-07T16:14:36 < zyp> that balloon channel 2012-06-07T16:14:37 < zyp> yea 2012-06-07T16:21:48 <+Steffanx> dongs probably did the same thing zyp 2012-06-07T16:23:28 <+Steffanx> karlp you mean… measure the power supply? 2012-06-07T16:23:46 <+Steffanx> Could be a power issue, but I would be surprised if it is 2012-06-07T16:25:38 -!- dongs [1000@l212168.ppp.asahi-net.or.jp] has quit [Ping timeout: 240 seconds] 2012-06-07T16:26:33 -!- dongs [1000@l212168.ppp.asahi-net.or.jp] has joined ##stm32 2012-06-07T16:35:13 <+Steffanx> We missed you dongs 2012-06-07T16:35:32 < dongs> fucking shitnode 2012-06-07T16:35:46 <+Steffanx> Blame asahi-net 2012-06-07T16:36:00 < dongs> thats what dead lilo would say 2012-06-07T16:36:01 <+Steffanx> or jp 2012-06-07T16:36:20 <+Steffanx> Whoever dead lilo may be 2012-06-07T16:36:38 < zyp> the freenode guy 2012-06-07T16:36:49 < zyp> that was run over by a car while biking a few years ago 2012-06-07T16:37:10 <+Steffanx> Only people who are on IRC for too long know that 2012-06-07T16:37:29 < zyp> dongs, so, how's ipv6 working out for you nowadays? 2012-06-07T16:38:05 < dongs> zyp: link me to something ipv6 2012-06-07T16:38:10 < cjbaird> Was he a Queenslander, UQ student? I knew someone that Darwined himself the same way, after trying for a hacking record. (yearrrrssss before it was in vogue with Koreans :P :) 2012-06-07T16:38:24 < Laurenceb> wtf 2012-06-07T16:38:47 < Laurenceb> freenode guy died? 2012-06-07T16:38:51 < zyp> http://en.wikipedia.org/wiki/Rob_Levin 2012-06-07T16:38:57 < dongs> Laurenceb: dude welcome to like 2006 2012-06-07T16:39:27 < dongs> he was fucking trailer trash 2012-06-07T16:39:32 < Laurenceb> lol 2012-06-07T16:39:52 < Laurenceb> dongs is universally bad taste 2012-06-07T16:39:58 < zyp> dongs, isn't google and everything on ipv6 now? 2012-06-07T16:39:59 < cjbaird> The guy I knew was an Andrew@uq.edu.au .. Did 3 days of NON STOP EPIC HAXXINGS in the UQ CompSci student labs, finally decided to go home for sleep, went underneath a truck on his pushbike. 2012-06-07T16:40:16 < dongs> zyp: shit like jvnv.net is uaully megafail 2012-06-07T16:40:17 <+Steffanx> AW 2012-06-07T16:40:26 < dongs> hey 2012-06-07T16:40:27 < dongs> it works now 2012-06-07T16:40:37 < dongs> did you fix something? 2012-06-07T16:40:47 < dongs> ya.. ipv66 sites laod now 2012-06-07T16:40:50 < zyp> no, I haven't changed anything 2012-06-07T16:40:50 < dongs> no lag 2012-06-07T16:40:57 < zyp> maybe your isp did 2012-06-07T16:40:59 <+Steffanx> karlp .. maybe it's some power issues. Power it from my laptop and now using another power supply 2012-06-07T16:41:03 <+Steffanx> It seems to work now 2012-06-07T16:41:44 < karlp> oh, no, I meant the modbus devices I working with are for power metering 2012-06-07T16:41:52 <+Steffanx> Oh LOL 2012-06-07T16:41:57 < karlp> glad it helped though :) 2012-06-07T16:42:02 <+Steffanx> But the rpi had some power issues too i think :P 2012-06-07T16:42:02 < zyp> nice coincidence 2012-06-07T16:42:12 <+Steffanx> Have to test a little more 2012-06-07T16:42:49 <+Steffanx> It seems to perform ok-ish with a samba share 2012-06-07T16:43:00 <+Steffanx> Ok-ish for only 100mbit 2012-06-07T16:43:12 < Laurenceb> aiui ehternet can kill it if its cant grab enough current 2012-06-07T16:45:59 < dongs> ugh 2012-06-07T16:46:02 < dongs> this code his hideous 2012-06-07T16:46:35 < dongs> http://bcas.tv/paste/results/nr8Tgc31.html ????? 2012-06-07T16:49:37 <+Steffanx> It's perfect 2012-06-07T16:50:17 < dongs> its indented almost as good as Laurenceb code 2012-06-07T16:50:35 <+Steffanx> Why you don't just return 0 instead of bRetValue ? 2012-06-07T16:50:36 <+Steffanx> or false 2012-06-07T16:52:43 <+dekar> cjbaird, thanks a lot :) 2012-06-07T16:52:55 <+Steffanx> Hey dekar 2012-06-07T16:53:08 <+Steffanx> You script … it fails for me 2012-06-07T16:53:22 <+dekar> how so? 2012-06-07T16:53:39 <+Steffanx> It fails to compile newlib 2012-06-07T16:53:48 <+Steffanx> "../../../../../newlib-1.20.0/libgloss/arm/crt0.S:37: Error: unknown architecture `armv6s-m'" 2012-06-07T16:54:16 <+dekar> Steffanx, did you patch in some changes? 2012-06-07T16:54:18 <+Steffanx> could it be possible it uses the ' wrong' gcc ? 2012-06-07T16:54:27 <+Steffanx> No, i didn't 2012-06-07T16:54:35 <+dekar> oh, do you have any other toolchain in PATH? 2012-06-07T16:54:41 <+Steffanx> I think so 2012-06-07T16:54:53 <+dekar> there was a bug with $PATH, but it has been fixed 2012-06-07T16:55:00 <+Steffanx> Since when? 2012-06-07T16:55:09 <+dekar> umm yesterday I think :) 2012-06-07T16:55:11 < zyp> since yesterday or so? 2012-06-07T16:55:14 <+Steffanx> Ah ok :) 2012-06-07T16:55:18 < dongs> QM1D1C0045_ILLEAGAL_SLAVE_ADDR 2012-06-07T16:55:19 < dongs> haha.. 2012-06-07T16:55:22 <+Steffanx> me updates the repo and tries again 2012-06-07T16:56:04 <+Steffanx> Aw.. karlp too bad 2012-06-07T16:56:09 <+Steffanx> You non-help didn't help 2012-06-07T16:56:30 <+Steffanx> It still disconnects 2012-06-07T17:03:34 <+Steffanx> I guess it has some issues with large data streams .. f 2012-06-07T17:11:41 <+Steffanx> hmpf dekar :P 2012-06-07T17:11:50 <+Steffanx> "reverted back to /bin/bash cause using env failed on OSX" 2 minutes ago :P 2012-06-07T17:15:45 <+dekar> Steffanx, I did commit cjbairds version without further checking :/ 2012-06-07T17:15:50 <+dekar> shouldn't have done that :P 2012-06-07T17:16:17 <+dekar> check it out again, it should work on OSX now 2012-06-07T17:16:55 < karlp> hehe 2012-06-07T17:16:58 <+Steffanx> btw .. softfp means it won't be able to use hardware fp for m4? 2012-06-07T17:17:09 < karlp> tnt is m3 only and forever :) 2012-06-07T17:17:28 <+dekar> karlp, feel free to supply multilib support 2012-06-07T17:18:51 <+Steffanx> You disappoint me dekar 2012-06-07T17:19:00 <+dekar> Steffanx, how so? 2012-06-07T17:19:25 <+Steffanx> That what i just asked an what you just 'answered' :) 2012-06-07T17:20:04 <+dekar> that's my toolchain and I made it for myself, if you want it to be different, then change it 2012-06-07T17:20:13 <+Steffanx> Too many disappointing moments today.. have to figure out why the rpi drops it's ethernet connection :P 2012-06-07T17:20:17 <+dekar> it's open source after all 2012-06-07T17:20:26 < zippe> All these people suffering… just use the ARM bare-metal toolchain & get on with life 8) 2012-06-07T17:23:39 <+Steffanx> Arh, the crappy open source philosophy all the time. 2012-06-07T17:23:51 * jpa- uses the STeffanx bare-skin toolchain 2012-06-07T17:23:53 < zippe> er, what? 2012-06-07T17:23:54 <+Steffanx> I prefer "when it doesn't work/fit my needs, use something else" :) 2012-06-07T17:24:13 < zippe> Steffanx: the ARM baremetal toolchain is the ARM-maintained snapshots of the GCC-embedded branch 2012-06-07T17:24:25 < zippe> They test it, can a build script and post it to launchpad 2012-06-07T17:24:35 < zippe> They also build and post linnex and windows binaries 2012-06-07T17:25:30 <+Steffanx> Nah, I'm not into compiling stuff myself. When it fails i most of the time have no idea what to do 2012-06-07T17:26:06 < zippe> Steffanx: brew tap MikeSmith/misc && brew install gcc-arm-none-eabi 2012-06-07T17:26:27 < karlp> zippe: that's the one I'm using, but when I installed liboipencm3 into that directory, 2012-06-07T17:26:41 < karlp> and passed -L for it, it started linking in thewrong modules. 2012-06-07T17:26:58 < karlp> apparently you may _not_ pass -L 2012-06-07T17:27:01 < zippe> When you say "into that directory", which directory? 2012-06-07T17:27:14 < zippe> Well, no, -L is for directories containing libraries 2012-06-07T17:27:21 < zippe> You may be confusing it with -isysroot 2012-06-07T17:27:43 < karlp> if I put them in gcc-arm-none-eabi-4_6-2012q1/arm-none-eabi/lib 2012-06-07T17:27:49 < karlp> and pass -Lgcc-arm-none-eabi-4_6-2012q1/arm-none-eabi/lib 2012-06-07T17:27:57 < karlp> then it links with the libc.a in that directorry 2012-06-07T17:28:10 < karlp> instead of autoselecting the libc.a from the armv7-m directory 2012-06-07T17:28:43 < karlp> if I put libopencm3 somewhere else, and use -L/opt/somewhere then it correctly picks the right libc.a from the mcu= and mthumb flags 2012-06-07T17:29:03 < zippe> Yes, that's normal 2012-06-07T17:29:24 < zippe> Don't ever pass any of the compiler's private library directories to -L 2012-06-07T17:29:35 < karlp> ok :) 2012-06-07T17:29:40 < karlp> I didn't know that. 2012-06-07T17:29:42 < zippe> It 2012-06-07T17:29:48 < zippe> It's not a very smrt animal 2012-06-07T17:30:18 < karlp> so, I should experiment with leaving the libopencm libs in the "root" lib directory and _not_ passing that path with -L. 2012-06-07T17:30:36 < karlp> hopefully it should start in the specific armv7-m dir, not find them, and move up and find them in the root lib dir 2012-06-07T17:30:55 < karlp> I will try that in the next hour or two and report back :) 2012-06-07T17:30:58 < zippe> Don't install anything at all into the gcc directory 2012-06-07T17:31:00 < zippe> Nothing 2012-06-07T17:31:06 < zippe> Especially if you're using homebrew 2012-06-07T17:31:12 < zippe> Put libopencm3 somewhere else 2012-06-07T17:31:25 < karlp> is there anywhere it can go that won't require me to add a -L flag? 2012-06-07T17:31:44 < zyp> why do you want to avoid that? 2012-06-07T17:31:56 < karlp> because I want to treat it like a system installed library? 2012-06-07T17:32:09 < karlp> same as libc, libm, and friends 2012-06-07T17:32:23 < karlp> same as I do with any other library I install on my desktop 2012-06-07T17:32:45 < zippe> Try just installing it in /usr/local 2012-06-07T17:33:22 < zippe> That'll be a bit messy if you don't have a package manager to clean it out 2012-06-07T17:34:17 < zippe> Or use the default as "the place" you install everything that's build arm-none-eabi 2012-06-07T17:38:10 <+Steffanx> It seems the fix didn't fix it, mr dekar. It still seems to use the wrong gcc 2012-06-07T17:38:42 <+Steffanx> Or i'm peckbec-ing 2012-06-07T17:43:55 <+dekar> Steffanx, I just realized the version I got from cjbaird reverted the path fix 2012-06-07T17:44:03 <+Steffanx> Haha 2012-06-07T17:44:19 <+dekar> I'll get it working again and do a test build and tell you once I'm done :) 2012-06-07T17:45:13 <+Steffanx> The power of open source :P 2012-06-07T17:46:22 <+dekar> Steffanx, or you can that revision: https://github.com/EliasOenal/TNT/tree/f3d560264e2f9f415d5fa9afc8cf30a458e2fb07 2012-06-07T17:46:38 <+dekar> that was the last one I tested 2012-06-07T17:48:04 <+Steffanx> Nah, i'll try again tomorrow :P 2012-06-07T17:50:43 <+dekar> k 2012-06-07T17:53:51 < Tectu> this is funny... whenever i make a struct: struct foo_t *foo; fill in the members: foo->x = ; the struct is filled with: {1024, 8192, 9777, 2048} 2012-06-07T17:53:57 < Tectu> is this some known issue? :D 2012-06-07T17:54:00 < Tectu> i use chibios 2012-06-07T17:54:06 < Tectu> i got that serval times now... 2012-06-07T17:56:40 < karlp> do you mean, x is not what you set it to? 2012-06-07T17:56:47 < Tectu> jep 2012-06-07T17:56:50 < karlp> or were you expecting your struct to be zero filled automatically? 2012-06-07T17:56:50 < Tectu> gdb: $3 = {x0 = 10241, y0 = 2048, x1 = 10241, y1 = 2048, 2012-06-07T17:56:50 < Tectu> state = 0x8002801 } 2012-06-07T17:56:55 < Tectu> no 2012-06-07T17:57:05 < Tectu> struct does have 4x uint16_t and one uint8_t* 2012-06-07T17:57:10 < Tectu> and i fill in all the values 2012-06-07T17:57:25 -!- dongs [1000@l212168.ppp.asahi-net.or.jp] has quit [Ping timeout: 248 seconds] 2012-06-07T17:57:27 < Tectu> x0 = 100, y0 = 100, x1 = 200, y1 = 200 and state gets some pointer 2012-06-07T17:57:31 < Tectu> i also removed the state stuff 2012-06-07T17:57:33 < Tectu> still same problem 2012-06-07T17:57:57 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 248 seconds] 2012-06-07T17:57:58 -!- dongs [1000@l212168.ppp.asahi-net.or.jp] has joined ##stm32 2012-06-07T17:59:48 < Tectu> karlp, any ideas? 2012-06-07T18:01:08 <+Steffanx> When your pointer points to Tectu ? 2012-06-07T18:01:12 <+Steffanx> *where 2012-06-07T18:01:36 < Tectu> Steffanx, which pointer? the uint8_t* structmember? 2012-06-07T18:01:39 < Tectu> i removed that one, same problem 2012-06-07T18:02:02 < Tectu> and inside a function, i have struct buttonStruct_t *buttonStruct; 2012-06-07T18:02:09 < Tectu> then i go wiht buttonStruct->x0 = 100; 2012-06-07T18:02:20 < Tectu> but gdb says: $4 = {x0 = 10241, y0 = 2048, x1 = 10241, y1 = 2048} 2012-06-07T18:02:27 <+Steffanx> Yeah, and that pointer points to what? 2012-06-07T18:02:36 < Tectu> how to find out? 2012-06-07T18:02:59 -!- tavish [~tavish@120.56.235.141] has joined ##stm32 2012-06-07T18:03:00 -!- tavish [~tavish@120.56.235.141] has quit [Changing host] 2012-06-07T18:03:00 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-07T18:03:20 <+Steffanx> Look at your code :) 2012-06-07T18:03:23 < Tectu> Steffanx, 2012-06-07T18:03:24 < Tectu> (gdb) print buttonStruct 2012-06-07T18:03:24 < Tectu> $5 = (struct buttonStruct_t *) 0xc8 2012-06-07T18:03:27 < Tectu> is this what you mean? 2012-06-07T18:03:44 < Tectu> what are you trying to tell me, Steffanx ? :d 2012-06-07T18:03:53 <+Steffanx> It now looks like you have a struct buttonStruct_t pointer that points to .. nothing 2012-06-07T18:04:02 < zyp> uh, it's a pointer to 0xc8? 2012-06-07T18:04:09 < Tectu> zyp, looks like 2012-06-07T18:04:27 < zyp> well, that's not to ram, at least 2012-06-07T18:04:34 < Tectu> how to fix? 2012-06-07T18:04:48 <+Steffanx> Don't make it a pointer 2012-06-07T18:04:55 <+Steffanx> or make it point to some valid memory 2012-06-07T18:04:57 < Tectu> that line struct buttonStruct_t *buttonStruct; is in a function which gets called in a Thread (from chibios) 2012-06-07T18:05:03 < Tectu> Steffanx, use malloc? 2012-06-07T18:05:10 < Tectu> well, this worked on every x86 program i had :d 2012-06-07T18:05:17 < Tectu> i made* 2012-06-07T18:05:48 <+Steffanx> Sure? 2012-06-07T18:05:55 < zyp> you're not initializing it to anything? 2012-06-07T18:05:57 < Tectu> :/ 2012-06-07T18:06:01 < zyp> that can't possibly work 2012-06-07T18:06:07 <+Steffanx> It works, but not as expected :P 2012-06-07T18:06:08 < Tectu> i am not sure what i am doing wrong here o0 2012-06-07T18:06:33 < zyp> you make a pointer, without making it point to anything 2012-06-07T18:06:38 < karlp> yeah, what he said. 2012-06-07T18:06:52 < Tectu> aha! 2012-06-07T18:06:58 < Tectu> so we'd need some malloc magic here? 2012-06-07T18:06:59 < zyp> so it points into the flash alias, somewhere in the vector table 2012-06-07T18:07:19 < zyp> the values you print is actually a couple of vector entries pointing to 0x8002801 2012-06-07T18:07:49 < zyp> are you sure you want a pointer at all? 2012-06-07T18:08:29 < Tectu> well, but when i go with struct buttonStruct_t buttonStruct; fill in some values, i get 0,0,0,0 everywhere 2012-06-07T18:08:46 < zyp> everywhere how? 2012-06-07T18:08:48 < Tectu> i guess i missunderstand here something 2012-06-07T18:08:56 < Tectu> zyp, every member of the struct 2012-06-07T18:09:01 < Tectu> all four uint16_t 2012-06-07T18:10:34 < Tectu> okay, seriously now 2012-06-07T18:10:37 < Tectu> i want to get a struct 2012-06-07T18:10:41 < Tectu> while runtime 2012-06-07T18:10:55 < Tectu> so struct foo_t foo; is correct or not? o0 2012-06-07T18:10:57 < Tectu> i guess not. 2012-06-07T18:12:43 <+Steffanx> Looks correct to me 2012-06-07T18:12:48 < Tectu> okay 2012-06-07T18:13:14 < Tectu> then i fill in member values like foo.x0 = 100; foo.y0 = 100; foo.x1 = 200; foo.y1 = 200; 2012-06-07T18:13:15 < Tectu> right? 2012-06-07T18:13:23 <+Steffanx> Yes 2012-06-07T18:13:39 < jpa-> Tectu: it is ok for the current scope 2012-06-07T18:13:55 < jpa-> {struct foo_t foo; return &foo;} is not ok 2012-06-07T18:14:04 < Tectu> okya, so i did exactly that.... now gdb says: $10 = {x0 = 0, y0 = 0, x1 = 200, y1 = 200} 2012-06-07T18:14:07 < Tectu> what the hell is wrong? 2012-06-07T18:14:26 < Tectu> i am inside the same scope 2012-06-07T18:14:36 < Tectu> made some breakpoint after filling the struct with the thing above 2012-06-07T18:14:50 < jpa-> optimization or something could be messing up your gdb :P 2012-06-07T18:15:21 < Tectu> jpa-, but about the scope: when i did wha ti wrote above, i can pass &foo as an argument to a thread or not? 2012-06-07T18:15:38 < jpa-> only if the thread exits before you go out of scope 2012-06-07T18:16:13 < Tectu> well, after filling that struct i go with: tp = chThdCreateFromHeap(NULL, THD_WA_SIZE(128), NORMALPRIO+1, buttonThread, &buttonStruct); 2012-06-07T18:16:22 < Tectu> and then my function returns 2012-06-07T18:16:28 < Tectu> so that should be okay? 2012-06-07T18:17:00 < jpa-> not really 2012-06-07T18:17:29 < Tectu> how to fix? though i can go with struct foo *foo; and pass foo as argument 2012-06-07T18:17:47 < jpa-> you could allocate buttonStruct statically 2012-06-07T18:18:08 < jpa-> or malloc (or chCoreAlloc) it 2012-06-07T18:18:12 < Tectu> with chHeapAlloc() ? 2012-06-07T18:18:15 < Tectu> ah, not Heap? 2012-06-07T18:18:19 < jpa-> sure, why not 2012-06-07T18:18:23 < Tectu> i am never sure about taking HeapAlloc or CoreAlloc 2012-06-07T18:18:29 < jpa-> depends on if you want to free it also 2012-06-07T18:18:48 < jpa-> CoreAlloc is one-way only, you can allocate stuff but you can never free it again 2012-06-07T18:19:03 < Tectu> when i use chHeapAlloc() nside a thread, it takes the memory from the static WORKING_AREA(foo, 128); <--- 128 bytes, right? 2012-06-07T18:19:03 <+Steffanx> Never free it :) 2012-06-07T18:19:12 < jpa-> Tectu: no 2012-06-07T18:19:21 < jpa-> working area is just for stack etc. 2012-06-07T18:19:32 < Tectu> heap is "global", right? 2012-06-07T18:19:36 < jpa-> yep 2012-06-07T18:19:39 < Tectu> so not every thread does have it's own? 2012-06-07T18:19:46 < Tectu> what's the core memory then? 2012-06-07T18:19:51 < Tectu> and why can't i free it again? 2012-06-07T18:20:23 < jpa-> because there is no CoreFree :) 2012-06-07T18:20:36 < Tectu> but what/where eactly is the core memory 2012-06-07T18:20:47 < jpa-> core & heap memory reside in the end of ram, it depends on linker script 2012-06-07T18:20:54 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-07T18:20:55 < jpa-> by default core & heap use the same memory area 2012-06-07T18:21:51 < jpa-> (CoreAlloc is very simple compared to HeapAlloc; in many embedded systems, you don't need to free the memory so the simpler function is enough) 2012-06-07T18:22:21 < Tectu> so i'd do here: 2012-06-07T18:22:22 < jpa-> (if the program never terminates and it keeps using the memory, why free it) 2012-06-07T18:22:29 < Tectu> struct buttonStruct_t *buttonStruct; 2012-06-07T18:22:30 < Tectu> buttonStruct = (struct buttonStruct_t)chHeapAlloc(NULL, sizeof(struct buttonStruct_t)); 2012-06-07T18:22:54 < jpa-> yeah, though no need for the cast in C 2012-06-07T18:23:01 < dongs> haha.. 2012-06-07T18:23:05 < dongs> Tectu: wtf?@?#@!$?#?%$@#%@#%@#$%@#$&* 2012-06-07T18:23:07 < jpa-> and typedef your structs :) 2012-06-07T18:23:29 < Tectu> jpa-, i don't like typedef somehow 2012-06-07T18:23:35 < Tectu> struct is such a small word 2012-06-07T18:23:40 < Tectu> and it looks strange otherwise 2012-06-07T18:23:40 < Tectu> imo 2012-06-07T18:23:43 <+Steffanx> so easy to forget 2012-06-07T18:23:48 < dongs> guy probably uses lunix 2012-06-07T18:24:00 <+Steffanx> Say dongs in his windows pants 2012-06-07T18:24:04 <+Steffanx> *Says 2012-06-07T18:24:07 < Tectu> jpa-, also never sure about the malloc stuff... 50% of people say you need to cast, 50% say you don't 2012-06-07T18:24:37 < jpa-> well if the compiler accepts it, you don't need to cast 2012-06-07T18:24:57 < jpa-> you only need a cast in there in C++ code, but in C++ code you should just use 'new' anyway 2012-06-07T18:26:05 < Tectu> (gdb) print buttonStruct 2012-06-07T18:26:05 < Tectu> $11 = 2012-06-07T18:26:07 < Tectu> fuuu 2012-06-07T18:26:25 < jpa-> that's why printf-debug rules :) 2012-06-07T18:26:39 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-07T18:27:35 < Tectu> why does it optimize it out, when i pass it as argument and actually USE it over there? 2012-06-07T18:27:47 < jpa-> it doesn't 2012-06-07T18:27:51 < jpa-> gdb for arm just sucks 2012-06-07T18:28:41 < Tectu> seems to work for now, thanks jpa 2012-06-07T18:28:49 < Tectu> and all you others of course 2012-06-07T18:28:54 < Tectu> jpa-, why does it suck? 2012-06-07T18:30:33 < zyp> it doesn't suck 2012-06-07T18:30:55 < zyp> optimized out means that the variable is not stored in memory 2012-06-07T18:31:33 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-07T18:32:01 < zyp> the compiler found that there was no need to keep the value around in ram, it can just live in a register while it's used 2012-06-07T18:32:36 < zyp> and discarded when it's not used any more 2012-06-07T18:32:53 < zyp> and that's why there is no memory gdb can read to determine the value of that variable 2012-06-07T18:34:07 < jpa-> gdb knows the registers 2012-06-07T18:34:11 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32 2012-06-07T18:34:13 < Tectu> when i have a member uint8_t *bar; in struct foo_t *foo; and i want to assign bar to the address i got als parameter from another function which is uint8_t *bar; i cam make foo->bar = bar ? 2012-06-07T18:34:18 < jpa-> why can't it be smart enough to read it from the register? 2012-06-07T18:34:51 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-07T18:35:04 < zyp> jpa-, did you break at a point where the value were still present in a register? 2012-06-07T18:35:29 < jpa-> i didn't break :) 2012-06-07T18:35:37 < ratatata> nu 2012-06-07T18:42:22 < R2COM> when i set a break point in gdb, in some line, say 168, it goes there, but then then i press s instead of going right away to 169, it goes to 167, and then to 169 2012-06-07T18:42:25 < R2COM> 168 TIM_OC1Init(TIM3, &TIM_OCInitStructure); 2012-06-07T18:42:25 < R2COM> (gdb) s 2012-06-07T18:42:25 < R2COM> 167 2012-06-07T18:42:25 < R2COM> (gdb) s 2012-06-07T18:42:25 < R2COM> 169 2012-06-07T18:42:25 < R2COM> (gdb) s 2012-06-07T18:42:36 < R2COM> why is that 2012-06-07T18:42:53 < jpa-> happens for me too 2012-06-07T18:43:06 < jpa-> -O0 helps 2012-06-07T18:43:39 < R2COM> what is that option 2012-06-07T18:43:40 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-07T18:43:43 < R2COM> i cant find it in gdb manual 2012-06-07T18:43:49 < zyp> because you are not debugging source code, you're debugging compiled code, compilet with optimizations 2012-06-07T18:43:55 < zyp> -O0 is a gcc option 2012-06-07T18:44:01 < zyp> to compile without optimizations 2012-06-07T18:44:01 < R2COM> oh 2012-06-07T18:44:34 < R2COM> in makefile i have: OPTLVL:=3 # Optimization level, can be [0, 1, 2, 3, s]. 2012-06-07T18:44:37 < R2COM> will see now 2012-06-07T18:45:09 < zyp> optimizations basically steps on your program, crushes it, stirs a bit and packs it together, so it will perform the same task in a faster way 2012-06-07T18:45:17 < R2COM> so, for this arm development in stm32, its better then to do the whole project with -O0? and then if it works, and verified, recompile under -O3? 2012-06-07T18:45:21 < zyp> so the output can be fairly different from the source 2012-06-07T18:46:05 < zyp> «better» is always subject to opinions 2012-06-07T18:47:07 < dongs> zyp, I enabled cross-module optimization in my commercial compiler and my shit went from 43k to 38k compiled. 2012-06-07T18:47:20 < dongs> its sad gcc has nothign equivalent 2012-06-07T18:47:26 < dongs> gcc still builds my code to something like 52k 2012-06-07T18:47:29 < dongs> with -Os 2012-06-07T18:47:29 < karlp> clang does. 2012-06-07T18:47:32 < dongs> terrible 2012-06-07T18:47:50 < zyp> dongs, sure it has 2012-06-07T18:48:01 < karlp> I was reading about whole project opts recently with gcc too I thought 2012-06-07T18:48:26 < zyp> it's called «link time optimization» 2012-06-07T18:49:25 < zyp> but you obviously don't get that when you compile all objects seperate and link them together in the end, like «everyone» does 2012-06-07T18:49:30 < Laurenceb> with usb OTG, should you have a FET to connect the shield to gnd? 2012-06-07T18:49:41 < zyp> Laurenceb, why? 2012-06-07T18:49:45 < dongs> zyp: well, i can do that with my compiler. 2012-06-07T18:49:48 < dongs> k time to passout 2012-06-07T18:49:50 < Laurenceb> to meet USB spec 2012-06-07T18:50:10 < zyp> Laurenceb, using a FET for that sounds like something only you could come up with 2012-06-07T18:50:15 < Laurenceb> lol 2012-06-07T18:50:36 < R2COM> zyp: yesterday we were looking at how setting registers yourself vs using the stdperiph function makes difference on compiled program size, for example if i use standard function: RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM3, ENABLE); then my program was 7840 bytes, but when i did this: RCC->APB1ENR |= RCC_APB1Periph_TIM3; then a program size was 7848 bytes! that doesnt make much sense because RCC_APB1PeriphClockCmd function inside it 2012-06-07T18:51:33 < zyp> R2COM, makes sense to me 2012-06-07T18:51:37 <+dekar> R2COM, did you encapsulate "RCC->APB1ENR |= RCC_APB1Periph_TIM3;" in a function? 2012-06-07T18:51:49 <+dekar> if you didn't then it gets "inlined" all the time 2012-06-07T18:52:03 < R2COM> when it was in standard stdperiph function, and i called that function then it was smaller size 2012-06-07T18:52:16 < R2COM> when i did it by itself in a code it was of a bigger size 2012-06-07T18:52:18 < R2COM> after that 2012-06-07T18:52:32 < R2COM> i did this, i encapsulated it in my own function, and the size was even bigger 2012-06-07T18:52:48 < R2COM> own function was just like stdperiph function except no comparison and assertions in it 2012-06-07T18:53:03 < zyp> R2COM, calling a function is shorter than performing a read-modify-write 2012-06-07T18:53:18 < R2COM> ok, but i did that too 2012-06-07T18:53:24 < R2COM> as i said, size was even bigger 2012-06-07T18:53:25 < jpa-> R2COM: you probably got *both* the stdperiph function and your own function 2012-06-07T18:53:37 < jpa-> if you explicitly didn't leave out the stdperiph library 2012-06-07T18:53:46 < zyp> the read-modify-write needs at least five instructions, calling an already defined function with two arguments needs maybe three 2012-06-07T18:53:51 < R2COM> stdperiph was there, but that function was commented out 2012-06-07T18:54:25 < zyp> R2COM, but what are you concerned about? code size or code speed? 2012-06-07T18:54:28 < jpa-> then check the assembler listing for the differences 2012-06-07T18:54:38 <+dekar> R2COM, just enable proper optimizations, commenting it out shouldn't change the size if it wasn't used 2012-06-07T18:54:40 < R2COM> speed, but i was just curious 2012-06-07T18:54:51 <+dekar> you probably want gc-sections for example 2012-06-07T18:54:58 < R2COM> ok 2012-06-07T18:55:02 < zyp> calling functions is smaller than inlining functions, inlining is larger but faster 2012-06-07T18:55:29 < R2COM> so this gets inlined: RCC->APB1ENR |= RCC_APB1Periph_TIM3 ? 2012-06-07T18:55:48 < zyp> well, it's not a function 2012-06-07T18:55:49 < R2COM> and supposed to be faster? 2012-06-07T18:55:53 < R2COM> i know 2012-06-07T18:55:57 < zyp> but yes, it's faster 2012-06-07T18:56:04 <+dekar> zyp, I wonder if GCC has an option to "de-duplicate" code fragments 2012-06-07T18:56:18 < zyp> haven't seen one 2012-06-07T18:56:38 < R2COM> so by doing this: RCC->APB1ENR |= RCC_APB1Periph_TIM3 im talking to memory directly, and thats faster than calling function? 2012-06-07T18:57:00 < R2COM> which is being called...and does same thing again 2012-06-07T18:57:04 < zyp> R2COM, yes, because calling the function would do the same, in addition to the function call and function return 2012-06-07T18:57:18 < zyp> calls and returns also consume cpu cycles 2012-06-07T18:57:31 < R2COM> yes 2012-06-07T18:57:44 < R2COM> how did you organize such stuff in your library? 2012-06-07T18:57:51 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-07T18:57:56 < zyp> as functions, that get inlined 2012-06-07T18:58:13 < R2COM> so its going to be same speed as just doing this: RCC->APB1ENR |= RCC_APB1Periph_TIM3 ? 2012-06-07T18:58:29 < zyp> my code compiles to exactly that 2012-06-07T18:58:47 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds] 2012-06-07T18:58:51 < R2COM> so inlining function, or writing that code is same thing then 2012-06-07T18:59:14 < zyp> yes, but I only have to write RCC.enable(RCC.TIM3); to get that result ;) 2012-06-07T19:00:19 < R2COM> what i was thinking of, is that when i'll rewrite that library later myself, i'll have few main functions, and one of the main function like regwrite(REG,VAL) and with that stuff i'd operate on any register, how is that idea? 2012-06-07T19:00:20 < zyp> I've considered extending it so I can drop the second RCC part and only write RCC.enable(TIM3); 2012-06-07T19:00:27 < R2COM> instead of bunch of functions like enable() etc... 2012-06-07T19:00:48 < zyp> well, my first impression is that it sounds stupid 2012-06-07T19:00:53 < R2COM> why 2012-06-07T19:01:21 < zyp> because it's kind of the opposite of making an abstraction 2012-06-07T19:01:22 < jpa-> because RCC.enable(RCC.TIM3) probably also selects the right register to write to :) 2012-06-07T19:01:30 < zyp> yes 2012-06-07T19:01:45 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-06-07T19:01:49 < zyp> I don't want to have to care about registers, I just want TIM3 enabled, no bullshit 2012-06-07T19:01:52 < R2COM> what about if you select right register in REG, in regwrite(REG,VAL) ? 2012-06-07T19:01:52 < jpa-> unlike RCC_APB1PeriphClockCmd() which is kind of stupid in my opinion 2012-06-07T19:01:57 < R2COM> oh ok 2012-06-07T19:02:06 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Client Quit] 2012-06-07T19:02:49 < jpa-> it's very annoying to look up all the time if TIMx is in APB1 or APB2 (though you may need that info for computing clock periods also) 2012-06-07T19:03:34 < zyp> jpa-, I'm doing that also implicitly 2012-06-07T19:04:06 < zyp> http://cgit.jvnv.net/suzumebachi/tree/hal/usart.h?h=stm32f4 <- like this 2012-06-07T19:04:28 < R2COM> class? 2012-06-07T19:04:34 < zyp> C++ yo 2012-06-07T19:04:40 < R2COM> heh why c++ 2012-06-07T19:04:57 < zyp> because it's classy 2012-06-07T19:05:29 < jpa-> zyp: works only for your specific APB1 & APB2 dividers :) 2012-06-07T19:05:42 < zyp> jpa-, yes, currently 2012-06-07T19:05:51 < jpa-> yeah 2012-06-07T19:06:01 < jpa-> but yes, abstraction for clocks is feasible and very nice 2012-06-07T19:06:25 < R2COM> or what about this: RCC_APB1ENR.enable(TIM3); ? 2012-06-07T19:06:32 < zyp> as long as the bus speeds are hardcoded in the setup, it's fine if it's hardcoded there as well :p 2012-06-07T19:06:33 < R2COM> isnt it shorter, but yet descriptive? 2012-06-07T19:06:45 < R2COM> also indicates which APB 2012-06-07T19:07:00 < zyp> R2COM, but then you have to look up which APB 2012-06-07T19:07:09 < R2COM> no why? 2012-06-07T19:07:13 < R2COM> number is there 2012-06-07T19:07:15 < R2COM> APB1 2012-06-07T19:07:34 < zyp> but how would you as a developer know that when you are going to write that line? 2012-06-07T19:08:01 < R2COM> what do you mean how? developer knows when he wants to enable TIM3 clock, isnt it? 2012-06-07T19:08:03 < jpa-> "i use intellisense or other ide" 2012-06-07T19:08:13 < jpa-> ah, actually even that wouldn't help :) 2012-06-07T19:08:44 < jpa-> R2COM: how do you know whether to type RCC_APB1ENR.enable(TIM3); or RCC_APB2ENR.enable(TIM3);? 2012-06-07T19:08:54 < zyp> R2COM, what if I want to enable TIM8 clock then? can you tell me which bus it's on without looking it up? 2012-06-07T19:09:51 < R2COM> well... but the one who builds embedded system supposed at least to know hardware or look in datasheet, if no then wtf 2012-06-07T19:10:05 < zyp> why? 2012-06-07T19:10:17 < R2COM> because he designs low level software for specific chip? 2012-06-07T19:10:37 < R2COM> then whats your suggestion for a better convention? 2012-06-07T19:10:44 < zyp> I know there is a TIM8 on some bus in the device, I want to turn it on, why do I need to check which bus it is on? 2012-06-07T19:10:51 < jpa-> R2COM: so why not write just *(uint32_t*)0x40200324 = 0x02000;? 2012-06-07T19:11:10 < zyp> R2COM, I've already said it 2012-06-07T19:11:26 < zyp> with my library I can write RCC.enable(RCC.TIM8); 2012-06-07T19:11:32 < R2COM> RCC.enable(TIM3); ? 2012-06-07T19:11:34 < zyp> and then the compiler will resolve the rest for me 2012-06-07T19:11:45 < karlp> classy ;) 2012-06-07T19:11:53 < karlp> function overloading ftmfw 2012-06-07T19:12:00 < R2COM> then, in that case how would it know if its APB1 or APB2? 2012-06-07T19:12:11 < karlp> did you _look_ at the code he posted? 2012-06-07T19:12:23 < karlp> or are you still just on this wild MUST OPTIMIZE ALLLLL THE THINGS! trip 2012-06-07T19:12:37 < zyp> R2COM, http://cgit.jvnv.net/suzumebachi/tree/main.cpp#n83 <- here's my main() functions that uses that function 2012-06-07T19:12:59 < R2COM> looking 2012-06-07T19:13:04 < zyp> http://cgit.jvnv.net/suzumebachi/tree/hal/rcc.h?h=stm32f4 <- and here's the actual implementation 2012-06-07T19:13:13 < jpa-> fancy C++ overloading :) 2012-06-07T19:13:28 < jpa-> but wouldn't be too difficult to do with C either 2012-06-07T19:13:53 < R2COM> ok so function itself figures out 2012-06-07T19:13:56 < R2COM> agree then 2012-06-07T19:14:05 < R2COM> you do TIM8 and it worts things out 2012-06-07T19:15:18 < R2COM> and i guess no trade off for performance 2012-06-07T19:15:26 < R2COM> because decisions are #defines 2012-06-07T19:15:33 < zyp> of course not, it's all compile time 2012-06-07T19:16:03 < zyp> I prefer compiler tricks over preprocessor tricks :) 2012-06-07T19:16:24 < R2COM> you use #defines 2012-06-07T19:16:52 < zyp> only for selecting between stm32f1 and stm32f4 2012-06-07T19:17:04 < R2COM> and then enum 2012-06-07T19:17:20 -!- tavish [~tavish@59.180.220.199] has joined ##stm32 2012-06-07T19:17:20 -!- tavish [~tavish@59.180.220.199] has quit [Changing host] 2012-06-07T19:17:20 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-07T19:17:36 < zyp> http://cgit.jvnv.net/suzumebachi/tree/hal/stm32.h <- no defines in my old branch that only supports F1 2012-06-07T19:18:14 < R2COM> by the way, you use all the time volatile? do you use volatile const sometimes? 2012-06-07T19:18:21 < R2COM> to define read only stuff? 2012-06-07T19:18:48 < zyp> nah, I don't really see a point in that 2012-06-07T19:19:01 < R2COM> yeah, me too, i just noticed it in stdperiph 2012-06-07T19:19:13 < zyp> quite a few registers have some bits that are read-write and some that are read-only 2012-06-07T19:19:21 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-07T19:19:38 < zyp> no point in trying to enforce something if you can't fully enforce it 2012-06-07T19:19:56 < zyp> and not much gain either 2012-06-07T19:19:59 < R2COM> zyp: and i forgot, you use stlink stuff? for debug and program? i mean stlink-texane? 2012-06-07T19:20:13 < zyp> I did 2012-06-07T19:20:26 < R2COM> what soft do you use now for debugging? 2012-06-07T19:20:32 < zyp> blackmagic 2012-06-07T19:20:34 < R2COM> and downloading program 2012-06-07T19:20:36 < R2COM> oh 2012-06-07T19:20:41 < R2COM> that 6-$ thingy? 2012-06-07T19:20:44 < R2COM> 60 2012-06-07T19:20:50 < zyp> sounds about right 2012-06-07T19:21:09 < R2COM> j-link 300$ for commercial 2012-06-07T19:21:10 <+Steffanx> its great :) 2012-06-07T19:21:16 <+Steffanx> the blackmagic 2012-06-07T19:21:52 < R2COM> but, what i dont get is... thats a hardware and maybe plus their software... but why to get another hardware, if you have, say stm32f4discovery? 2012-06-07T19:22:05 < R2COM> if you have that board, then all you need is software for fast debug/download? 2012-06-07T19:22:10 < R2COM> or, whats the point here? 2012-06-07T19:22:47 < R2COM> basically, why to buy another programmer, if you have discovery board? 2012-06-07T19:22:58 < R2COM> which is st-link/v2 2012-06-07T19:22:59 < R2COM> ? 2012-06-07T19:23:33 < zyp> the discovery board is rather unwieldy as a programmer for other boards 2012-06-07T19:23:44 < zyp> http://bin.jvnv.net/f/9kGPA.JPG <- it works, but it's not pretty 2012-06-07T19:23:50 < R2COM> what you mean unwieldy? 2012-06-07T19:23:51 < R2COM> oh 2012-06-07T19:23:57 < R2COM> just not pretty 2012-06-07T19:24:35 < R2COM> so, when you had that board as programmer, you used texane soft? 2012-06-07T19:24:40 < zyp> yes 2012-06-07T19:24:51 < R2COM> its ok, but i still dont undertand why it writes so slow 2012-06-07T19:24:55 < R2COM> 233bytes/sec 2012-06-07T19:24:59 < karlp> because you'ðre using an f4 2012-06-07T19:25:04 < R2COM> yes i do 2012-06-07T19:25:09 < karlp> and you haven't contributed or ported an sram based loaded to texane stlink yet 2012-06-07T19:25:27 < R2COM> like.. what you mean? 2012-06-07T19:25:29 < zyp> http://bin.jvnv.net/f/UGyVL.JPG <- only pic I have of the blackmagic, you can see it if you look closely :p 2012-06-07T19:26:19 < zyp> hanging the discovery board like that in addition to some ghetto wires is not very practical :p 2012-06-07T19:26:55 < R2COM> by the way, how much you payed for that reflow, was it like 300$? 2012-06-07T19:27:05 < jpa-> i like boxed programmers, like pickit2 is :P 2012-06-07T19:27:08 < zyp> probably 2012-06-07T19:27:21 < zyp> jpa-, I've been thinking about shrink-wrapping the blackmagic 2012-06-07T19:27:44 < karlp> you can buy the stlink2 in a box if you like too 2012-06-07T19:27:47 < zyp> but I currently don't have large enough shrink-wrap 2012-06-07T19:27:51 < R2COM> karlp: could you tell me more about what you mean by ported an sram based loaded to texane? 2012-06-07T19:28:15 < karlp> to get fast flashing, you need to load a helper program into the sram of the target, and use that to write fast 2012-06-07T19:28:21 < karlp> the current code has that for f1 and l1 2012-06-07T19:28:24 < karlp> but not for f4 2012-06-07T19:28:30 < R2COM> oh got it 2012-06-07T19:28:34 < karlp> so it has to write them all via separate usb calls 2012-06-07T19:28:38 < karlp> which is slow. 2012-06-07T19:28:47 < karlp> but easy to understand, easy to test and easy to get working. 2012-06-07T19:28:54 < R2COM> but im not ready yet to contribute with that, i'd have to study whole thing, im literally starting only with stm32 2012-06-07T19:29:23 < karlp> so, as has been said, if you want speed, pay money for different tools, or fix it yourself. 2012-06-07T19:29:35 < zyp> or use openocd 2012-06-07T19:29:44 < karlp> or that 2012-06-07T19:29:51 < zyp> if you get it to work :) 2012-06-07T19:29:57 < karlp> I stopped trying 2012-06-07T19:30:08 < zyp> I got flashing to work, but not debugging 2012-06-07T19:30:10 < karlp> it flash really fast, but no gdb with the arm from launchpad 2012-06-07T19:30:11 < karlp> yeah 2012-06-07T19:30:11 < R2COM> recently one guy reported me he got it working 2012-06-07T19:30:12 < R2COM> but 2012-06-07T19:30:19 < R2COM> getting there now...would take more time 2012-06-07T19:30:22 < R2COM> with openocd 2012-06-07T19:30:32 < R2COM> oh 2012-06-07T19:30:33 < R2COM> ok 2012-06-07T19:30:38 < karlp> I'd rather have gdb than fast flashing personally 2012-06-07T19:30:44 < R2COM> yes sure 2012-06-07T19:31:16 < karlp> you can contribute your hours to either texane/stlink or openocd, to fix either the speed or the gdb support :) 2012-06-07T19:31:30 < R2COM> karlp: you have that code, which does fast flashing, for f1? 2012-06-07T19:31:40 < karlp> it's built into stlink 2012-06-07T19:31:47 < karlp> though openocd's version is even faster 2012-06-07T19:31:57 < R2COM> into...the stm32f103 which is on the discovery board? 2012-06-07T19:32:09 < karlp> into the stm32f100 (valueline) 2012-06-07T19:32:12 < karlp> no, 2012-06-07T19:32:16 < karlp> into the texane/stlink code 2012-06-07T19:32:20 < karlp> if that's what you mean? 2012-06-07T19:32:29 < R2COM> well, can i take a look at it? 2012-06-07T19:32:43 < karlp> sure, you hve the source in front of you, 2012-06-07T19:32:49 < karlp> there's no binary builds of texane/stlink 2012-06-07T19:32:59 < R2COM> is it main.c in flash folder? 2012-06-07T19:33:07 < zyp> R2COM, http://blackmagicdebug.git.sourceforge.net/git/gitweb.cgi?p=blackmagicdebug/blackmagicdebug;a=tree;f=flashstub <- here is the ones blackmagic is using 2012-06-07T19:33:17 < karlp> it's probably in st-common.c 2012-06-07T19:33:20 < zyp> stlink is probably pretty similar 2012-06-07T19:33:24 < karlp> openocd has them in the "contrib" folder 2012-06-07T19:33:35 < karlp> there's are even cooler, using sram fifos, not fixed chunked buffers 2012-06-07T19:33:46 < R2COM> src/stlink-common.c ? 2012-06-07T19:35:50 -!- Randomskk [~adam@paladin.randomskk.net] has quit [Quit: leaving] 2012-06-07T19:37:08 < R2COM> i see that file has functions like: int stlink_fwrite_flash 2012-06-07T19:37:26 < R2COM> so, probably that file is the one you are talking about, which writes fast for f1 but not f4.. ? 2012-06-07T19:37:49 < karlp> are you really seriously going to go and implement this now? 2012-06-07T19:38:04 < R2COM> no, but im curious to see 2012-06-07T19:38:16 < R2COM> i couldnt do it now, i said im barely starting stm32 2012-06-07T19:39:52 < zyp> so, why aren't there a flashing stub for F4? can't be that hard to write if you have the F1 one as a reference 2012-06-07T19:40:01 < karlp> because it hasn't been done :) 2012-06-07T19:40:08 < zyp> maybe I should waste my afternoon on that :p 2012-06-07T19:40:13 < emeb> +1 2012-06-07T19:40:13 < karlp> I don't use the F4, texane doesn't seem to be very active 2012-06-07T19:40:25 < karlp> the people using f4's haven't done it. 2012-06-07T19:40:31 < karlp> I kinda thought uwe might, 2012-06-07T19:40:38 < karlp> but looks like he went down to f0, not f4 2012-06-07T19:42:30 < zyp> ah, the ones in stlink are grabbed from some openocd version 2012-06-07T19:42:38 < karlp> from an old old openocd version 2012-06-07T19:42:47 < karlp> the newer ones are quite different 2012-06-07T19:42:47 < zyp> figured as much 2012-06-07T19:43:33 < karlp> also, I'm not entirely sure how the gpl on ooocd really applies to the bootstubs, as far as bringing them into texane 2012-06-07T19:44:57 < zyp> it's ~20 instructions, can't be that hard to write from scratch :p 2012-06-07T19:45:07 < karlp> for anyone who wants it :) 2012-06-07T19:45:39 < karlp> I'll even snail mail a cookie to someone to sweeten the deal 2012-06-07T19:46:02 < zyp> hmm, do you happen to know where stlink chooses which mcu specific functions to use? 2012-06-07T19:46:24 < karlp> in that giant butt ugly function, that uses a weird mismatch of core id and chip id. 2012-06-07T19:46:39 < karlp> you should be able to rely on sl->chipid being set, 2012-06-07T19:46:52 < karlp> but that first flash_write() function predated multiple target support 2012-06-07T19:47:04 < karlp> so it got some fairly ugly hacks and giant if/else clauses added to it 2012-06-07T19:47:46 < zyp> ah, yeah 2012-06-07T19:48:03 < karlp> man, I got all of modbus working yesterday, and I've spent most of tday wranglig just 96 damn bits. 2012-06-07T19:48:12 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-07T19:48:26 < karlp> principle of least surpise on whicih bits should be in which byte positions and endianess is a bit arbitrary. 2012-06-07T19:49:36 < zyp> :p 2012-06-07T19:50:17 < zyp> just make up some weird hashing function 2012-06-07T19:51:34 < zyp> for byte in bytes: id = (id << 1 || id >> 7) + unique_id[i] 2012-06-07T19:51:38 < zyp> or something like that :p 2012-06-07T19:52:15 < karlp> oh, I was going to just use one of the bytes as is, just trying to decide where to start 2012-06-07T19:52:46 < karlp> just my own thickness about how u32 is stored in memory vs u8s, and msb vs lsb 2012-06-07T19:53:13 < zyp> somebody commented that some of the bits were x and y position on wafer, and then wafer serial 2012-06-07T19:53:21 < karlp> if I have 96bits in a u8[], should b96 be in arr[0] or arr[11]? that sort of thing 2012-06-07T19:53:30 < karlp> yeah, that's what I was trying to find out, 2012-06-07T19:53:43 < karlp> there's 16 bits that they say are "also for a future purpose" 2012-06-07T19:54:48 < karlp> or I just hash like it like you've been telling me all day, and to hell with trying to make the modbus slave id be easily humanly determined from the serial number 2012-06-07T19:58:48 < zyp> read it out when you program the chip and put a sticker on it ;) 2012-06-07T20:01:53 < zyp> hmm, indentation of stlink code is horrible 2012-06-07T20:02:03 < zyp> some nasty mix of tabs and spaces 2012-06-07T20:03:21 < zyp> setting editor to 4 spaces per tab seems to do the trick 2012-06-07T20:04:38 < zyp> almost 2012-06-07T20:04:57 < zyp> this must be a mix of people with a lot of different editor settings 2012-06-07T20:07:10 < karlp> indeed 2012-06-07T20:07:23 < karlp> and it all being slammed in, without any massaging 2012-06-07T20:07:31 < zyp> yeah 2012-06-07T20:07:59 < zyp> almost tempted to reindent it before starting, but that would be kind of intrusive :p 2012-06-07T20:08:03 < karlp> a long time ago I had netbeans reformat large chunks of it, but that time is long past 2012-06-07T20:08:12 < karlp> do it anyway :) 2012-06-07T20:08:20 < karlp> it's no more intrusive than say, autotools 2012-06-07T20:09:03 < zyp> meh, I'm not sure I got a tool fixing shit like that 2012-06-07T20:10:23 < zyp> personally I prefer single tab as indentation character, because then people don't have to agree about indentation width 2012-06-07T20:12:23 < zyp> to me, that seems like a much more reasonable compromise than forcing one indentation width on everyone 2012-06-07T20:33:15 < karlp> I'm a spaces not tabs person :) 2012-06-07T20:33:40 < karlp> too many things get mangled in transport when it matters what _sort_ of whitespace to use 2012-06-07T20:35:42 < zyp> never had a problem with that 2012-06-07T20:37:49 < karlp> lucky you :) 2012-06-07T20:38:06 < karlp> you've never had emailed diffs? or copied and pasted diffs? 2012-06-07T20:43:29 < zyp> I live in 2012, the only patches I'm dealing with nowadays go unedited from git format-patch to git am :p 2012-06-07T20:50:04 < blkcat> awesome, just got my free stm32f0-discovery in the mail :) 2012-06-07T21:00:13 <+Steffanx> Don't talk about this US only crap :P 2012-06-07T21:03:30 <+Steffanx> I mean: nice blkcat 2012-06-07T21:03:40 < blkcat> ;) 2012-06-07T21:03:46 < blkcat> i gotta say. 2012-06-07T21:03:53 < blkcat> st sure is a lot more generous than nxp, heh. 2012-06-07T21:04:12 <+Steffanx> No, I received my board from nxp a while ago 2012-06-07T21:04:18 < R2COM> so that f0 is downgraded f4? 2012-06-07T21:04:18 <+Steffanx> Actually a few months 2012-06-07T21:04:42 < blkcat> i registered for a free lpcxpresso from them and it never showed up. :\ 2012-06-07T21:04:53 < blkcat> contrast that to two free boards from st mailed two-day from digi-key. 2012-06-07T21:04:54 < R2COM> lol 2012-06-07T21:04:58 <+Steffanx> Incl. a great photo/video blkcat ? 2012-06-07T21:05:16 < R2COM> blkcat did you show US address to them? 2012-06-07T21:05:22 <+Steffanx> I received my with that lpcxpresso 'contest' 2012-06-07T21:05:23 < R2COM> maybe they though you are not serious guy :P 2012-06-07T21:05:30 <+Steffanx> *mine 2012-06-07T21:06:58 < blkcat> Steffanx: mmhm, it was from that contest. 2012-06-07T21:07:09 < blkcat> though evidently they didn't even require the photo/video towards the end. shrug. 2012-06-07T21:07:17 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-07T21:07:32 <+Steffanx> I just took a photo of a broken AVR atmega16 :) 2012-06-07T21:09:12 <+Steffanx> but i actually never used the board i received 2012-06-07T21:09:31 <+Steffanx> Just another board for the unused goodies pile 2012-06-07T21:09:41 <+Steffanx> /box 2012-06-07T21:10:18 < R2COM> i'd wish xilinx would send their Virtex7 for free :P 2012-06-07T21:10:24 < R2COM> LOL 2012-06-07T21:10:52 -!- izua [~izua@79.115.171.1] has joined ##stm32 2012-06-07T21:10:53 -!- izua [~izua@79.115.171.1] has quit [Changing host] 2012-06-07T21:10:53 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-07T21:10:56 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-07T21:16:58 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-07T21:17:20 < Tectu> am i doing it right? :D http://pastebin.com/7EuHAjrJ 2012-06-07T21:17:32 < karlp> anyone know why this would hardfault? http://pastebin.com/6ZjPXhTT 2012-06-07T21:18:04 < Tectu> karlp, maybe to less free memory for converting to %d ? 2012-06-07T21:25:34 -!- cjbaird [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-07T21:33:59 < R2COM> by the way, i did -O0, and when i set breakpoint in gdb at line 168, it goes there, but then when i press s it goes back to 167, and only then starts go sequentially 168 169 etc.. 2012-06-07T21:34:28 < R2COM> im using code-sourcery by the way 2012-06-07T21:42:02 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-07T21:44:48 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Disconnected by services] 2012-06-07T21:44:49 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-07T21:44:51 -!- mode/##stm32 [+v Steffann] by ChanServ 2012-06-07T21:44:51 -!- ben1066_ [~quassel@host86-128-58-129.range86-128.btcentralplus.com] has joined ##stm32 2012-06-07T21:44:52 -!- ben1066_ [~quassel@host86-128-58-129.range86-128.btcentralplus.com] has quit [Changing host] 2012-06-07T21:44:52 -!- ben1066_ [~quassel@unaffiliated/ben1066] has joined ##stm32 2012-06-07T21:45:34 -!- ben1066 [~quassel@unaffiliated/ben1066] has quit [Ping timeout: 245 seconds] 2012-06-07T21:47:20 < karlp> yep, printf("%x") works, and printf("%d") works until the int is >= 10 2012-06-07T21:47:26 < karlp> I guess it's a sbrk/mallocy thing 2012-06-07T21:47:52 < karlp> be nice to get told that by the compiler rather than just a hardfault 2012-06-07T21:48:29 <+Steffann> Time for a good code analyzer :D 2012-06-07T21:52:48 < karlp> well, all the aeabi_uldivmod stuff that is presumably used to make decimal representations appears to be arm code again 2012-06-07T21:52:55 < karlp> good job compiler/linker 2012-06-07T21:56:46 < karlp> yeah, vfprintf has a blx __aeabi_dcmpeq 2012-06-07T21:57:00 < karlp> which is all arm. 2012-06-07T21:57:28 <+Steffann> isn 2012-06-07T21:57:34 <+Steffann> t that what it should be? 2012-06-07T21:57:45 < karlp> no, it should be thumb2 only. 2012-06-07T21:57:54 < jpa-> why would it need external function for divmod anyway? 2012-06-07T21:58:01 * karlp shrugs 2012-06-07T21:58:07 < karlp> doing the modulo stuff? 2012-06-07T21:58:22 < karlp> don't care. just wanted to use printf and %d 2012-06-07T21:59:51 -!- Laurenceb_ [~Laurence@host109-157-39-186.range109-157.btcentralplus.com] has joined ##stm32 2012-06-07T22:00:09 < jpa-> Laurenceb_: how hot is your hand tonight? 2012-06-07T22:00:49 <+Steffann> /kick Laurenceb_ We don't want to know 2012-06-07T22:00:50 <+Steffann> :P 2012-06-07T22:01:51 <+Steffann> jpa- needs a gf 2012-06-07T22:01:55 <+Steffann> oh, wait ... 2012-06-07T22:02:27 < jpa-> i already have you 2012-06-07T22:02:57 <+Steffann> Too bad you're already married 2012-06-07T22:03:42 < jpa-> maybe we can have threesome 2012-06-07T22:03:49 < jpa-> you, me and Laurenceb_'s hand 2012-06-07T22:03:55 < Laurenceb_> oh dear 2012-06-07T22:03:55 <+Steffann> HELP 2012-06-07T22:03:59 < Laurenceb_> this is getting bad 2012-06-07T22:04:23 <+Steffann> /msg chanserv rename ##4chan 2012-06-07T22:04:45 < Laurenceb_> i prefer 11chan 2012-06-07T22:06:55 < Laurenceb_> so, is TNT working properly? 2012-06-07T22:07:05 <+Steffann> Not sure yeet 2012-06-07T22:07:07 <+Steffann> -e 2012-06-07T22:10:59 < karlp> ahha! stupid linker flags in opencm3 makefile! 2012-06-07T22:11:17 < karlp> linker flags included "-mthumb -march=armv7 -mfix-cortex-m3-ldrd -msoft-float" 2012-06-07T22:11:27 < karlp> the -march=armv7 was wrong. 2012-06-07T22:11:40 < karlp> changing it to -mcpu=cortex-m3 like in the cflags fixes everything 2012-06-07T22:11:42 < karlp> sexy 2012-06-07T22:12:32 < karlp> or to -march=armv7-m 2012-06-07T22:27:11 < zyp> hmm 2012-06-07T22:27:13 < zyp> 2012-06-07T21:26:27 WARN src/stlink-common.c: run_flash_loader(0x8010000) failed! == -1 2012-06-07T22:27:23 < zyp> starting to get somewhere :p 2012-06-07T22:27:26 < karlp> :) 2012-06-07T22:27:34 < karlp> me too! 2012-06-07T22:27:39 < R2COM> in the stm32 manual fPCLK refered to which clock? 2012-06-07T22:27:40 < karlp> I fixed my own linker errors! 2012-06-07T22:27:47 < karlp> the world improves, one day at at ime 2012-06-07T22:28:14 <+Steffann> No 2012-06-07T22:28:33 <+Steffann> Today only bugs for me 2012-06-07T22:28:39 < R2COM> fPCLK is the prescaler output clock? 2012-06-07T22:28:47 < R2COM> or main system one which is usually 168MHz? 2012-06-07T22:31:06 < R2COM> letter P should stand for prescaler.. 2012-06-07T22:31:19 < R2COM> in the manual they refer to it a lot, but never state where that shit come from 2012-06-07T22:31:30 < zyp> check the clock diagram in the clock chapter 2012-06-07T22:32:59 < R2COM> i see page 85 2012-06-07T22:33:07 < R2COM> FCLK coming out of prescaler AHB 2012-06-07T22:33:33 < R2COM> but not fPCLK 2012-06-07T22:34:37 < R2COM> SYSLCLK is before prescaler 2012-06-07T22:34:39 < R2COM> FCLK is after 2012-06-07T22:34:48 < R2COM> and in datasheet theres lots of fPCLK 2012-06-07T22:34:57 < R2COM> maybe its just an error, and they mean FCLK by writing that 2012-06-07T22:44:01 < zyp> karlp, ok, now I'm stuck :p 2012-06-07T22:44:44 < zyp> nothing happens after starting the flash loader 2012-06-07T22:45:14 < zyp> is_core_halted() never returns true, so it just «runs» until timeout 2012-06-07T22:45:24 < zyp> inspecting pc, it seems like it doesn't even start 2012-06-07T23:01:01 < Tectu> jpa-, arround? 2012-06-07T23:01:14 < Tectu> well, jpa- and everyone else: http://forum.chibios.org/phpbb/viewtopic.php?f=2&t=458&p=4098#p4098 2012-06-07T23:05:56 < zyp> oh, think I got it 2012-06-07T23:06:24 < zyp> Tectu, were you one of the guys having problems with the ram-only examples distributed with texane? 2012-06-07T23:06:32 < karlp> almost everyone. 2012-06-07T23:06:39 < karlp> there's bad dodgy stack stuff there 2012-06-07T23:06:52 < karlp> it would work if a _prior_ app ha dset up proper stack and vector stuff 2012-06-07T23:07:07 < karlp> zyp: I don't really know too much about the way the sram loaders are started, 2012-06-07T23:07:12 < karlp> I think uwe wrote that. 2012-06-07T23:07:14 < Tectu> zyp, yeah 2012-06-07T23:07:31 < zyp> I suspect that _stlink_usb_run is broken 2012-06-07T23:07:43 < karlp> is that used anywhere else? 2012-06-07T23:07:46 < zyp> and that's why it won't execute my flash stub 2012-06-07T23:08:03 < karlp> there's probably still some dead routines that aren't used anywhere, and so might not actually do the right thing 2012-06-07T23:08:33 < zyp> I made a loop doing single-stepping instead, looks like it made my flash loader work 2012-06-07T23:10:59 < zyp> hmm, or not 2012-06-07T23:15:35 < karlp> sorry, cooking dinner, don't have the stlink code in front of me right now 2012-06-07T23:21:14 <+dekar> TNT vs SAT (firmware size comparison): http://pastebin.com/npmhWPUP 2012-06-07T23:21:42 <+Steffann> SAT = ? 2012-06-07T23:21:50 <+dekar> summon arm toolchain 2012-06-07T23:22:28 <+Steffann> what about yagath oor wahtever 2012-06-07T23:22:38 <+dekar> dunno, you may try :) 2012-06-07T23:22:51 <+Steffann> Give me your code :) 2012-06-07T23:22:53 < karlp> I wonder if I should try TNT again with more link option knowledge 2012-06-07T23:22:59 < karlp> see if it builds me anything that works 2012-06-07T23:24:00 <+dekar> karlp, what was the problem for you? 2012-06-07T23:28:29 <+Steffann> 0 2012-06-07T23:35:22 < karlp> switched toolchain paths, rebuilt the same source with the same makefile, loaded, ran, immediate hard fault 2012-06-07T23:35:31 < karlp> I was having enough issues I went back to the one that was working. 2012-06-07T23:38:21 <+dekar> karlp, did you try -O0? 2012-06-07T23:38:47 <+Steffann> ls 2012-06-07T23:38:49 <+Steffann> ar 2012-06-07T23:39:04 <+dekar> Steffann, r u bored? 2012-06-07T23:39:19 <+Steffann> Wieso? 2012-06-07T23:40:55 <+dekar> what was this ls ar about? 2012-06-07T23:41:13 <+Steffann> ls => terminal 2012-06-07T23:41:24 <+Steffann> ar => i failed to type that in my terminal 2012-06-07T23:41:57 < R2COM> i cant find how you remove breakpoint in gdb? 2012-06-07T23:42:05 < R2COM> i set several ones in some source file 2012-06-07T23:42:15 < R2COM> now i want to remove some of them, at specific line 2012-06-07T23:43:36 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Remote host closed the connection] 2012-06-07T23:43:47 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-07T23:44:33 <+Steffann> clear [location] 2012-06-07T23:44:39 <+Steffann> or delete [id] 2012-06-07T23:46:15 < R2COM> thanks 2012-06-07T23:46:23 < R2COM> i have some weird thing going on 2012-06-07T23:46:27 < R2COM> configuring SPI_CR register 2012-06-07T23:46:31 < R2COM> using this code, directly: 2012-06-07T23:46:41 < R2COM> ((SPI_TypeDef *) (SPI2_BASE)) -> CR1 |= (SPI_CR1_CPOL | 2012-06-07T23:46:42 < R2COM> SPI_CR1_CPHA | SPI_CR1_LSBFIRST | SPI_CR1_MSTR | SPI_CR1_SPE); 2012-06-07T23:46:50 < R2COM> before that CR register is 0 2012-06-07T23:46:54 < R2COM> but after that its still 0 2012-06-07T23:47:05 < R2COM> oh 2012-06-07T23:47:09 < R2COM> nevermind 2012-06-07T23:47:14 <+Steffann> :) 2012-06-07T23:47:27 < zyp> oh, I got it working 2012-06-07T23:47:37 < R2COM> zyp, it writes FAST? 2012-06-07T23:47:48 < zyp> don't know that yet 2012-06-07T23:47:54 < R2COM> maybe i try? 2012-06-07T23:47:59 < R2COM> i have the f4 board 2012-06-07T23:48:04 < karlp> slow down R2COM 2012-06-07T23:48:08 < karlp> you can't optimize the world 2012-06-07T23:48:11 < zyp> I haven't done any block-splitting yet, so it can't flash anything larger than ram 2012-06-07T23:48:18 < R2COM> ok 2012-06-07T23:48:21 < zyp> and it's not reliable 2012-06-07T23:48:33 < zyp> some times it fail to execute the loader, some times it work 2012-06-07T23:49:17 < karlp> dekar: I did not try -O0, and I have no plans on ever doing so. at least not until I decide to run -O0 code too. 2012-06-07T23:51:20 <+dekar> karlp, I just suggested it since it might be a bug in your code brought up by an optimization option 2012-06-07T23:52:29 < karlp> after what I've been seeing and dealing with recently, I could almost believe that, 2012-06-07T23:52:59 < karlp> but if it doesn't work with -Os, ie, fails to _run_, when it works with other toolchains, then I don't really care, it's just broken :) 2012-06-07T23:53:10 < karlp> but it's building again in another window now we'll try again :) 2012-06-07T23:53:11 < zyp> Start address 0x8000190, load size 57364 2012-06-07T23:53:11 < zyp> Transfer rate: 14 KB/sec, 8194 bytes/write. 2012-06-07T23:53:23 < karlp> whee 2012-06-07T23:53:43 < zyp> hmm, wonder if it works 2012-06-07T23:54:03 < karlp> nah, just print some good stats, always write a fixed blink image, and call it good :) 2012-06-07T23:54:12 <+dekar> karlp, well optimizations can be tricky, when I enabled lto it dropped all my exception handlers for example 2012-06-07T23:54:41 <+dekar> *interrupt handlers 2012-06-07T23:55:08 < zyp> anyway, have to fix page splitting to flash larger stuff 2012-06-07T23:55:09 <+dekar> on the other hand toolchains like SAT (and probably codesourcery as well) don't support lto to begin with 2012-06-07T23:56:36 < karlp> well, sat didn'twork for me earlier either, though that may have been bad makefile settings. 2012-06-07T23:56:53 < karlp> from the same source, the only one that worked with a memset call out of the box was the arm-launchpad 2012-06-07T23:57:02 < karlp> so I've run with that for the last few days. --- Day changed Fri Jun 08 2012 2012-06-08T00:05:06 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer] 2012-06-08T00:07:12 < R2COM> im setting bits of SPI2_CR1 register 2012-06-08T00:07:21 < R2COM> but i see that only some of them are set now 2012-06-08T00:07:27 < R2COM> not all which i wanted 2012-06-08T00:07:38 < R2COM> i wonder what could be wrong 2012-06-08T00:07:50 < R2COM> prior to that, i of course enable its clock with RCC 2012-06-08T00:13:23 < R2COM> first i do this: 2012-06-08T00:13:25 < R2COM> ((RCC_TypeDef *) (RCC_BASE))->APB1ENR |= RCC_APB1ENR_SPI2EN; 2012-06-08T00:13:30 < R2COM> after, i do this: 2012-06-08T00:13:38 < R2COM> ((SPI_TypeDef *) (SPI2_BASE)) -> CR1 |= (SPI_CR1_CPOL | 2012-06-08T00:13:39 < R2COM> SPI_CR1_CPHA | SPI_CR1_LSBFIRST | SPI_CR1_MSTR | SPI_CR1_SPE); 2012-06-08T00:14:03 < R2COM> during debugging, i see that only bits CPOL,CPHA,LSBFIRST are set... not others which i tried to set 2012-06-08T00:14:16 < zyp> Start address 0x8000190, load size 1031188 2012-06-08T00:14:16 < zyp> Transfer rate: 22 KB/sec, 10522 bytes/write. 2012-06-08T00:17:33 -!- izua [~izua@79.115.171.1] has joined ##stm32 2012-06-08T00:17:34 -!- izua [~izua@79.115.171.1] has quit [Changing host] 2012-06-08T00:17:34 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-08T00:17:35 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-08T00:18:32 < zyp> http://bin.jvnv.net/f/SetO5/0001-Added-flash-loader-stub-for-F2-F4.patch <- if anybody want to give it a try 2012-06-08T00:18:51 < R2COM> how do you patch it? 2012-06-08T00:19:03 < zyp> git am 2012-06-08T00:19:09 < zyp> (and then name of file) 2012-06-08T00:19:19 < R2COM> i should put it in stlink_texane folder first? 2012-06-08T00:19:25 < zyp> yes 2012-06-08T00:19:28 < R2COM> ok 1 sec 2012-06-08T00:20:29 < R2COM> warning: squelched 10 whitespace errors 2012-06-08T00:20:29 < R2COM> warning: 15 lines add whitespace errors. 2012-06-08T00:20:32 < R2COM> is this ok? 2012-06-08T00:20:36 < zyp> yes 2012-06-08T00:21:08 < zyp> it's just extra whitespace 2012-06-08T00:21:13 < zyp> :p 2012-06-08T00:22:09 < R2COM> Start address 0x8000eb0, load size 3876 2012-06-08T00:22:09 < R2COM> Transfer rate: 115 bytes/sec, 1292 bytes/write. 2012-06-08T00:22:11 < R2COM> :) 2012-06-08T00:23:10 < zyp> well, what's the size of your image 2012-06-08T00:23:12 < zyp> ? 2012-06-08T00:23:17 -!- LawrenceSeattle [~lawrence@66.192.187.106] has joined ##stm32 2012-06-08T00:23:41 < R2COM> Loading section .isr_vector, size 0x188 lma 0x8000000 2012-06-08T00:23:41 < R2COM> Loading section .text, size 0xd78 lma 0x8000188 2012-06-08T00:23:41 < R2COM> Loading section .data, size 0x24 lma 0x8000f00 2012-06-08T00:23:41 < zyp> the gdbserver is doing some shit, wasting a lot of time, before actually starting flashing 2012-06-08T00:24:34 < zyp> so it still takes around half a minute to flash? 2012-06-08T00:25:09 < R2COM> hell yea 2012-06-08T00:25:36 < zyp> ok, can you pastebin the st-util output? 2012-06-08T00:25:50 < R2COM> 1 sec 2012-06-08T00:26:20 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving] 2012-06-08T00:28:14 < R2COM> hot! is it really ur pic? 2012-06-08T00:29:00 < zyp> are you having weird stuff on your clipboard? 2012-06-08T00:29:40 < R2COM> oh shit 2012-06-08T00:29:41 < R2COM> ok here 2012-06-08T00:29:42 < R2COM> http://shorttext.com/1B7P9dg7A9J 2012-06-08T00:30:22 < zyp> that's not running with my patch 2012-06-08T00:30:28 < zyp> did you remember to compile? :p 2012-06-08T00:30:33 < R2COM> ohhh 2012-06-08T00:30:35 < R2COM> make 2012-06-08T00:30:37 < R2COM> configure 2012-06-08T00:30:37 < zyp> just run make 2012-06-08T00:30:39 < R2COM> compile 2012-06-08T00:30:54 < R2COM> 1 sec 2012-06-08T00:31:17 < R2COM> ./configure 2012-06-08T00:31:19 < R2COM> then just make? 2012-06-08T00:31:24 < zyp> sure 2012-06-08T00:31:32 < R2COM> ok 2012-06-08T00:31:34 < R2COM> done it went fast 2012-06-08T00:32:45 < R2COM> Start address 0x8000eb0, load size 3876 2012-06-08T00:32:45 < R2COM> Transfer rate: 3 KB/sec, 1292 bytes/write. 2012-06-08T00:32:45 < R2COM> (gdb) 2012-06-08T00:32:56 < zyp> that's more like it 2012-06-08T00:33:21 < R2COM> http://shorttext.com/RysfDs 2012-06-08T00:33:57 < zyp> yep 2012-06-08T00:34:02 < R2COM> so...it worked? 2012-06-08T00:34:11 < R2COM> its gona work just as regular texane stuff, but faster? 2012-06-08T00:34:14 < R2COM> any trade offs? 2012-06-08T00:34:27 < zyp> notice how the time from starting flash write to starting verification went from 32 seconds to 1 second in those logs ;) 2012-06-08T00:34:33 < R2COM> yes i noticed 2012-06-08T00:35:09 < zyp> well, I can't guarantee for it's stability 2012-06-08T00:35:42 < zyp> sometimes it fails when I run the seperate st-flash utility, haven't had it happen with st-util yet 2012-06-08T00:35:59 < zyp> so I can't claim it's reliable 2012-06-08T00:36:06 < R2COM> well...will use then and see 2012-06-08T00:36:13 < zyp> but as long as it works, it's fine 2012-06-08T00:37:05 < R2COM> zyp, you have any idea about question i posed before 2012-06-08T00:37:09 < R2COM> im messing with spi2 now 2012-06-08T00:37:16 < R2COM> im turning on its clock in rcc 2012-06-08T00:37:20 < R2COM> then turn on CR1 bits 2012-06-08T00:37:26 < R2COM> but not all bits are set 2012-06-08T00:37:30 < zyp> no, I don't know, and I don't want to think about it now :p 2012-06-08T00:37:41 < zyp> I've been doing enough thinking for today 2012-06-08T00:37:47 < R2COM> thats fine, will mess more with it 2012-06-08T00:39:09 < R2COM> did you modify it to work with F2/F4 only now? 2012-06-08T00:39:15 < zyp> no 2012-06-08T00:39:15 < R2COM> would it work with F1 as well? 2012-06-08T00:39:17 < R2COM> ok 2012-06-08T00:39:20 < zyp> sure 2012-06-08T00:39:27 < R2COM> ok thanks 2012-06-08T00:39:29 < zyp> I just modified the F2/F4 flashing mode 2012-06-08T00:42:20 < zyp> Steffann, you should give it a go as well, I want any issues rooted out before I submit it to texane :p 2012-06-08T00:47:16 < R2COM> oh i just received my f0 board 2012-06-08T00:48:36 < R2COM> oh it came with nice proto board 2012-06-08T00:48:42 < Tectu> Thorn, you arround? 2012-06-08T00:49:24 < Thorn> I am 2012-06-08T00:50:07 < Tectu> Thorn, can you provide the paste with your lcdSetWindow function from the ssd1289 controller? 2012-06-08T00:51:01 < Tectu> could you also provide the lcdFillArea() function using that? 2012-06-08T00:51:55 < Thorn> http://pastebin.com/u5LW3NiU 2012-06-08T00:52:55 < Thorn> I don't have a fill function but it should be pretty trivial 2012-06-08T00:53:39 < Thorn> LCD_REG = 0x22; for(int i=0; i something like this (using fsmc) 2012-06-08T00:54:37 < Thorn> that's the fastest method I'm aware of 2012-06-08T00:54:51 < Thorn> you can draw a bitmap the same way too 2012-06-08T00:58:15 < Tectu> Thorn, i really don't get why this dosen't work with my lcd :( 2012-06-08T00:59:40 < Tectu> Thorn, idea? http://pastebin.com/HChCYKVf 2012-06-08T01:00:14 < Tectu> when i go with lcdFillArea(100, 100, 200, 200, Blue); i get a blue line from 100 to 200, vertical 2012-06-08T01:00:15 < Tectu> nothing more 2012-06-08T01:01:54 < Thorn> look at line 5 of my paste 2012-06-08T01:02:19 < Thorn> the function takes x, y, w and h. not x1, y1, x2 and y2 2012-06-08T01:02:27 < Tectu> don't worry 2012-06-08T01:02:29 < Tectu> works now :) 2012-06-08T01:02:34 < Tectu> thanks for your help, Thorn ! 2012-06-08T01:02:45 < Tectu> x1=w y1=h 2012-06-08T01:03:25 < Rickta59> I'm getting started with texane/stlink ... 2012-06-08T01:03:35 < Rickta59> git checked out .. make ... no makefile 2012-06-08T01:03:44 < Thorn> the comment says x+w-1 <= 239 for a reason. the controller acts weird if these constraints are not satisfied 2012-06-08T01:04:26 -!- Laurenceb_ [~Laurence@host109-157-39-186.range109-157.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-06-08T01:06:16 < Tectu> Rickta59, run ./autogen.sh first 2012-06-08T01:06:29 < Rickta59> yeah .. just trying to follow the directions as stated 2012-06-08T01:06:34 < Rickta59> but that works 2012-06-08T01:06:43 < Rickta59> just wondering if i was doing something wrong 2012-06-08T01:07:02 < zyp> you have to run the commands in the specific order 2012-06-08T01:07:13 < zyp> each commands creates the files required by the next 2012-06-08T01:07:14 < Rickta59> the autogen.sh isn't mentioned that i see 2012-06-08T01:07:26 < zyp> now it is :p 2012-06-08T01:08:14 < Rickta59> does karlp on git show up here? 2012-06-08T01:08:45 < zyp> sure he does 2012-06-08T01:08:59 < Rickta59> * was wondering if that would probe him awake 2012-06-08T01:09:07 < zyp> but I can probably answer your questions 2012-06-08T01:09:22 < Rickta59> can you update the docs to tell people to run autogen.sh? 2012-06-08T01:11:04 < zyp> can't you? 2012-06-08T01:11:12 < Rickta59> i guess i could make an issue 2012-06-08T01:11:23 < Rickta59> sometimes it is easier to just ask the person who has checkin rights 2012-06-08T01:11:51 < zyp> why can't you make a patch? 2012-06-08T01:12:07 < Rickta59> i can do that .. can you check it in? 2012-06-08T01:12:15 < zyp> karlp has no more checkin rights than me and you do 2012-06-08T01:12:33 <+Steffann> dekar it seems TNT compiled well this time 2012-06-08T01:12:45 < zyp> Steffann, test my shit! 2012-06-08T01:12:47 < Rickta59> he was the last person to check something in .. or so it seems to me https://github.com/texane/stlink/tree/master/doc/tutorial 2012-06-08T01:12:48 < zyp> :p 2012-06-08T01:12:58 <+Steffann> Your shit zyp ? 2012-06-08T01:13:02 < Rickta59> https://github.com/texane/stlink/commits/master/doc/tutorial 2012-06-08T01:13:20 < zyp> 23:18:32 < zyp> http://bin.jvnv.net/f/SetO5/0001-Added-flash-loader-stub-for-F2-F4.patch <- if anybody want to give it a try 2012-06-08T01:13:50 < R2COM> can it be that my CR register for SPI isnt set because the pins are not configured? 2012-06-08T01:13:55 < R2COM> though i dont see reason for that.. 2012-06-08T01:14:00 < zyp> R2COM, no. 2012-06-08T01:14:03 < R2COM> if i write something to CR, it should be there... 2012-06-08T01:14:20 < zyp> should it really? 2012-06-08T01:14:34 < R2COM> yea.. 2012-06-08T01:14:44 < R2COM> it has to obey :P 2012-06-08T01:14:48 < zyp> what are you writing and where? 2012-06-08T01:14:58 < zyp> and what are you reading back? 2012-06-08T01:15:11 < R2COM> ((RCC_TypeDef *) (RCC_BASE))->APB1ENR |= RCC_APB1ENR_SPI2EN; 2012-06-08T01:15:15 < R2COM> dont read anything 2012-06-08T01:15:30 < R2COM> ((SPI_TypeDef *) (SPI2_BASE)) -> CR1 |= (SPI_CR1_CPOL | 2012-06-08T01:15:30 < R2COM> SPI_CR1_CPHA | SPI_CR1_LSBFIRST | SPI_CR1_MSTR | SPI_CR1_SPE); 2012-06-08T01:15:33 < zyp> then how do you know it's not set? 2012-06-08T01:15:33 < R2COM> thats it 2012-06-08T01:15:37 < R2COM> im debugging 2012-06-08T01:15:41 < R2COM> step by step 2012-06-08T01:15:45 < zyp> right, then you're reading back 2012-06-08T01:15:54 < R2COM> so.. ? 2012-06-08T01:16:04 < zyp> so, what value are you reading back? 2012-06-08T01:16:08 < R2COM> 0x83 2012-06-08T01:16:17 < R2COM> it means CPOL,CPHA,LSBFIRST are set 2012-06-08T01:16:20 < zyp> and what do you write? 2012-06-08T01:16:29 < R2COM> those things on top 2012-06-08T01:16:35 < R2COM> SPE, MSTR 2012-06-08T01:16:40 <+Steffann> Care if that's something for tomorrow zyp ? 2012-06-08T01:16:43 < R2COM> plus SPOL CPHA LSBFIRST 2012-06-08T01:16:54 < zyp> Steffann, that's fine 2012-06-08T01:17:09 < R2COM> interesting thing is, that i read 0x83 even before i set the CR 2012-06-08T01:17:11 < zyp> Steffann, I'm not going to submit anything until tomorrow anyway 2012-06-08T01:17:57 <+Steffann> Used the flashloader from the bmp ? 2012-06-08T01:18:02 < R2COM> so, after i set it, im supposed to read the 0xc7 2012-06-08T01:18:09 < R2COM> but i read always 0x83 in debugger 2012-06-08T01:18:14 < R2COM> before setting, and after setting 2012-06-08T01:18:26 < zyp> try setting it from the debugger 2012-06-08T01:18:38 < R2COM> hm...how you do that? 2012-06-08T01:18:42 < zyp> set variable blah = 0xc7 2012-06-08T01:18:52 < zyp> where blah is a valid lvalue :p 2012-06-08T01:19:22 < R2COM> set variable (SPI_TypeDef *)(addr) = 0xc7 also fine? 2012-06-08T01:19:33 < R2COM> because its not variable, CR1 is in memory 2012-06-08T01:20:25 < R2COM> gdb) set variable (uint32_t*)(0x40003800) = 0xc7 2012-06-08T01:20:25 < R2COM> Left operand of assignment is not an lvalue. 2012-06-08T01:20:38 < zyp> put a * in front of it 2012-06-08T01:20:41 < zyp> to dereference it 2012-06-08T01:20:47 < zyp> *(uint… 2012-06-08T01:20:59 < R2COM> (gdb) set variable *(uint32_t*)(0x40003800) = 0xc7 2012-06-08T01:20:59 < R2COM> (gdb) p/x *(uint32_t *) 0x40003800 2012-06-08T01:20:59 < R2COM> $7 = 0x83 2012-06-08T01:20:59 < R2COM> (gdb) 2012-06-08T01:21:03 < R2COM> again i read that shit 2012-06-08T01:21:05 < R2COM> 0x83 2012-06-08T01:21:15 < zyp> good 2012-06-08T01:21:22 < zyp> that's interesting 2012-06-08T01:21:37 < R2COM> hmm 2012-06-08T01:23:06 < R2COM> lol 2012-06-08T01:23:28 < R2COM> malfunctioning reactor...then all others would set off in other cities too, they are really douchebags 2012-06-08T01:23:32 < blkcat> well, rbmk reactor designs are inherently unsafe 2012-06-08T01:23:39 < R2COM> ? 2012-06-08T01:23:40 < R2COM> what? 2012-06-08T01:23:43 < R2COM> they *ARE* safe 2012-06-08T01:23:54 < blkcat> rbmk? nope. 2012-06-08T01:24:02 < blkcat> the old ones were hugely dangerous. 2012-06-08T01:24:21 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 256 seconds] 2012-06-08T01:24:33 < zyp> you guys treating safe as a boolean is kind of cute 2012-06-08T01:25:02 < blkcat> highly positive void coefficient and fragile control rods. 2012-06-08T01:25:16 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-08T01:26:10 < blkcat> there was a lot of human error too, obviously. 2012-06-08T01:26:39 < R2COM> other rbmk operated without issues 2012-06-08T01:27:04 < blkcat> yes, safety improvements were undertaken after the chernobyl disaster. 2012-06-08T01:27:06 < R2COM> not human error... human pressure from some officials..etc 2012-06-08T01:27:22 < R2COM> that stuff was common in USSR 2012-06-08T01:27:59 < R2COM> once one general forced technicians and designer of some missile, to make some rework *on the fly* ... that was strictly prohibited by designer himself 2012-06-08T01:28:12 < R2COM> but he still forced him to run this procedure, to complete plan 2012-06-08T01:28:23 < R2COM> result was explosion and around 126 people dead right away 2012-06-08T01:28:37 < R2COM> but missile was not bad 2012-06-08T01:28:40 < blkcat> the soviets didn't exactly have an exacting safety culture, heh. 2012-06-08T01:28:53 < R2COM> well..its just, rushing. 2012-06-08T01:29:03 < R2COM> safety drops during rush. 2012-06-08T01:29:07 < R2COM> its obvious. 2012-06-08T01:29:09 <+izua> soviets love safety 2012-06-08T01:29:11 <+izua> http://www.neatorama.com/2008/10/05/the-man-who-stuck-his-head-inside-a-particle-accelerator/ 2012-06-08T01:29:55 < blkcat> wow. 2012-06-08T01:29:57 < blkcat> that is terrifying. 2012-06-08T01:30:09 < R2COM> lol 2012-06-08T01:31:06 < R2COM> i think i heard of him 2012-06-08T01:32:10 < R2COM> zyp, i restarted it all, neither program can set that register, nor the debugger 2012-06-08T01:32:17 < R2COM> rechecked addresses, its right address 2012-06-08T01:32:26 < zyp> yeah, I checked that as well 2012-06-08T01:32:36 < zyp> looks weird 2012-06-08T01:32:39 < R2COM> im thinking, maybe there is some operation which has to be done, before messing with SPI registers? 2012-06-08T01:32:39 < zyp> hm 2012-06-08T01:32:42 < R2COM> like...restart? 2012-06-08T01:32:44 < R2COM> or something 2012-06-08T01:32:49 < zyp> wait a moment 2012-06-08T01:33:51 < R2COM> Note: 2012-06-08T01:33:51 < R2COM> 1 Prior to changing the CPOL/CPHA bits the SPI must be disabled by resetting the SPE bit. 2012-06-08T01:34:05 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-08T01:34:50 < zyp> try writing it to 0 first 2012-06-08T01:37:46 < R2COM> http://shorttext.com/uc5dNj2 2012-06-08T01:37:48 < R2COM> didnt work 2012-06-08T01:38:52 < R2COM> now here is interesting thing 2012-06-08T01:38:57 < R2COM> first i try setting the whole CR to 0 2012-06-08T01:39:01 < R2COM> and it sets! 2012-06-08T01:40:03 < R2COM> but then... http://shorttext.com/6rnOeIP 2012-06-08T01:40:31 < R2COM> so i can set it to 0 from debugger, (because after that i read it as 0...so it worked), however, i cannot set it to anything else 2012-06-08T01:42:41 < R2COM> now thats weird... 2012-06-08T01:42:52 < R2COM> after i write anything in it, i read again 0x83 2012-06-08T01:43:05 < R2COM> after i write 0x00 to it, i read 0x0 2012-06-08T01:48:40 <+dekar> I compiled newlib with LTO 2012-06-08T01:48:59 <+dekar> -> GCC discarded like all of it 2012-06-08T01:49:03 <+dekar> :/ 2012-06-08T02:28:31 < R2COM> interesting shit, sometimes when i have break point, and i run from beginning 2012-06-08T02:28:32 < R2COM> it just stucks 2012-06-08T02:28:37 < R2COM> and never reaches it 2012-06-08T02:28:40 < R2COM> restarting does NOT help 2012-06-08T02:28:48 < R2COM> restarting and REPLUGGING the board DOES help 2012-06-08T02:28:56 < R2COM> powering/off on 2012-06-08T02:30:31 < R2COM> but hell i dont understand why this SPI shit doesnt work 2012-06-08T02:30:37 < R2COM> i mean setting the CR1 register 2012-06-08T02:30:45 < R2COM> i tried, to configure it first, and THEN enable 2012-06-08T02:30:48 < R2COM> but same thing... 2012-06-08T02:30:52 <+dekar> R2COM, sounds like a memory problem - use of uninitialized memory for example 2012-06-08T02:31:07 < R2COM> im doing it this way: 2012-06-08T02:31:13 <+dekar> I also once had a problem where my .bss wasn't initialized due to a bug in my linkerscript 2012-06-08T02:31:25 < R2COM> // configure SPI2 2012-06-08T02:31:25 < R2COM> ((SPI_TypeDef *) (SPI2_BASE)) -> CR1 |= (SPI_CR1_CPOL | 2012-06-08T02:31:25 < R2COM> SPI_CR1_CPHA | SPI_CR1_LSBFIRST | SPI_CR1_MSTR); 2012-06-08T02:31:42 < R2COM> but before that i do this: 2012-06-08T02:31:55 < R2COM> ((SPI_TypeDef *)(SPI2_BASE)) -> CR1 = 0x00; 2012-06-08T02:37:43 < R2COM> i even tried this: 2012-06-08T02:37:45 < R2COM> ((SPI_TypeDef *)(SPI2_BASE)) -> CR1 = 0x00; 2012-06-08T02:37:55 < R2COM> ((SPI_TypeDef *)(SPI2_BASE)) -> CR1 = 0x87; 2012-06-08T02:38:05 < R2COM> after first line, i can see in debugger that CR1 is 0 2012-06-08T02:38:17 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer] 2012-06-08T02:38:20 < R2COM> but after i set it to 0x87, i again read it as 0x83 2012-06-08T02:38:23 < R2COM> not as 0x87 2012-06-08T02:38:30 < R2COM> this kind of doesnt make sense 2012-06-08T03:01:55 < dongs> lots of blogging 2012-06-08T03:02:06 < dongs> R2COM: it makes perfect sense 2012-06-08T03:02:10 < dongs> some bits in CR register are write only 2012-06-08T03:02:13 < dongs> and go back to zero 2012-06-08T03:02:18 < R2COM> hm? 2012-06-08T03:02:31 < dongs> im not saying thats the case wiht SPI since I never fucked with raw registers on it, but its likely 2012-06-08T03:02:41 < dongs> in a lot of things stuff like reset bits are write only 2012-06-08T03:02:49 < dongs> i.e. you write '1' to reset bit, then wehn you read it back, its back to zero 2012-06-08T03:03:23 < R2COM> uh no! 2012-06-08T03:03:31 < R2COM> in datasheet SPI_CR1 all bits are rw 2012-06-08T03:03:40 < dongs> dude. 2012-06-08T03:03:43 < dongs> < dongs> im not saying thats the case wiht SPI since I never fucked with raw registers on it, but its likely 2012-06-08T03:03:49 < R2COM> oh ok 2012-06-08T03:04:03 < R2COM> (06:04:52 PM) dongs: R2COM: it makes perfect sense 2012-06-08T03:04:03 < R2COM> (06:04:56 PM) dongs: some bits in CR register are write only 2012-06-08T03:04:14 < dongs> ok, are -> could be 2012-06-08T03:04:15 < dongs> shrug 2012-06-08T03:04:31 < R2COM> turns out that no... but it still does this shit 2012-06-08T03:04:43 < R2COM> did you use SPI at all? 2012-06-08T03:04:43 < dongs> im talking about mcus in general, that shit like that is possible, giving example of reset bits. who knows what hte fuck they do in SPI. 2012-06-08T03:04:47 < dongs> yes, using stdlib 2012-06-08T03:04:55 < dongs> wokrs perfectly fine. 2012-06-08T03:05:10 < R2COM> can you give fragment of code where you use its functions, i want to see sequence and what else is going on 2012-06-08T03:05:10 < dongs> in double-buffered DMA mode 2012-06-08T03:05:47 < dongs> http://bcas.tv/paste/results/cyZ5Bo42.html 2012-06-08T03:07:55 < R2COM> RCC_APB2PeriphClockCmd(RCC_APB2Periph_SPI1 | RCC_APB2Periph_SYSCFG, ENABLE); // SPI clock + SYSCFG (exti) 2012-06-08T03:07:58 < R2COM> why SYSCFG? 2012-06-08T03:08:05 < dongs> the comment explains it. 2012-06-08T03:08:16 < dongs> syscfg for exti stuf. 2012-06-08T03:09:00 < R2COM> and why you do SPI_I2S_DeInit if you are only using SPI? 2012-06-08T03:09:02 < R2COM> not I2S? 2012-06-08T03:09:45 < dongs> thats the function name 2012-06-08T03:09:52 < dongs> stdlib spi/i2s shit handles both. 2012-06-08T03:10:02 < dongs> There's no SPI_DeInit 2012-06-08T03:10:16 < dongs> not that it matters anyway 2012-06-08T03:10:21 < dongs> all it does is toggles the reset bit 2012-06-08T03:10:41 < R2COM> uhh...fucking library notation, whoever did it all is retard 2012-06-08T03:11:05 < R2COM> so, it looks like before doing anything, one has to call DeInit? 2012-06-08T03:11:40 < dongs> not really 2012-06-08T03:11:53 < dongs> look at waht deinit does. 2012-06-08T03:12:00 < R2COM> lookin 2012-06-08T03:12:12 < dongs> all it dodes is resets the peripheral 2012-06-08T03:12:16 < dongs> set reset bit/ clear it 2012-06-08T03:19:35 < R2COM> i tried resetting first 2012-06-08T03:19:38 < R2COM> as that function does 2012-06-08T03:19:39 < R2COM> same shit 2012-06-08T03:19:44 < dongs> what 'shit'? 2012-06-08T03:19:48 < dongs> you mean it doesnt work? 2012-06-08T03:19:55 < R2COM> after i configure CR1 register 2012-06-08T03:19:58 < R2COM> its not being set 2012-06-08T03:20:04 < R2COM> gdb returns value of 0x83 2012-06-08T03:20:11 < dongs> oh no fucking idea. 2012-06-08T03:20:12 < R2COM> should return 0xc7 2012-06-08T03:21:41 < R2COM> so you just operate on those functions.. 2012-06-08T03:21:49 < dongs> yes, because I just want shit to work 2012-06-08T03:21:56 < dongs> and I am not worried about what it does behind me 2012-06-08T03:22:57 < R2COM> ok im gona try that first then 2012-06-08T03:40:28 < R2COM> i see this 2012-06-08T03:40:37 < R2COM> * Data transfers functions ***************************************************/ 2012-06-08T03:40:37 < R2COM> void SPI_I2S_SendData(SPI_TypeDef* SPIx, uint16_t Data); 2012-06-08T03:40:37 < R2COM> uint16_t SPI_I2S_ReceiveData(SPI_TypeDef* SPIx); 2012-06-08T03:40:53 < R2COM> but where are the SPI 1 byte transfer functions? 2012-06-08T03:41:09 < R2COM> or i just write 1byte value.. 2012-06-08T03:43:37 < dongs> thta is it 2012-06-08T03:43:45 < dongs> that writes a byte 2012-06-08T03:46:18 < R2COM> note: expected 'struct SPI_TypeDef *' but argument is of type 'struct SPI_InitTypeDef *' 2012-06-08T03:46:18 < R2COM> cc1: all warnings being treated as errors 2012-06-08T03:46:21 < R2COM> weird! 2012-06-08T03:46:29 < dongs> duh 2012-06-08T03:46:30 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-08T03:46:38 < dongs> SPI_I2S_SendData(SPI1, blah 2012-06-08T03:46:47 < dongs> why are you passing the init struct? 2012-06-08T03:48:56 < R2COM> ok fixed 2012-06-08T03:48:57 < R2COM> now this 2012-06-08T03:49:02 < R2COM> 1/main.c:86: undefined reference to `SPI_Init' 2012-06-08T03:49:09 < R2COM> i have included ...._spi.h file 2012-06-08T03:49:28 < dongs> bullshit. 2012-06-08T03:49:42 < R2COM> its included 2012-06-08T03:49:51 < R2COM> #include "stm32f4_discovery.h" 2012-06-08T03:49:51 < R2COM> #include "stm32f4xx_tim.h" 2012-06-08T03:49:51 < R2COM> #include "stm32f4xx_spi.h" 2012-06-08T03:50:01 < R2COM> it didnt complain about _tim related stuff... 2012-06-08T03:51:04 < R2COM> undefined reference to `SPI_Cmd' 2012-06-08T03:51:12 < R2COM> main.c:93: undefined reference to `SPI_I2S_SendData 2012-06-08T03:53:27 < R2COM> maybe its because im doing it directly in main() ? 2012-06-08T03:53:30 < R2COM> but unlikely 2012-06-08T03:53:56 < R2COM> oh 2012-06-08T03:54:37 < R2COM> Makefile :) 2012-06-08T03:54:44 < R2COM> i included it there too 2012-06-08T03:54:53 < R2COM> now im gona check... it compiled.. 2012-06-08T04:02:24 < R2COM> well doesnt work 2012-06-08T04:03:18 < R2COM> here is my main function with all that shit 2012-06-08T04:03:19 < R2COM> http://shorttext.com/OxC8TQI 2012-06-08T04:04:18 < R2COM> after every command in main() im checking the CR1 register in gdb, and after some time its value is 0xf19b, and always stays same 2012-06-08T04:04:33 < R2COM> whereas it shouldnt be like that 2012-06-08T04:05:08 -!- LawrenceSeattle [~lawrence@66.192.187.106] has quit [Ping timeout: 240 seconds] 2012-06-08T04:06:47 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-08T04:09:55 < R2COM> checked with a scope too, there is absolutely no activity at all on powerup 2012-06-08T04:10:03 < R2COM> on the MOSI/SCK pins 2012-06-08T04:11:14 -!- LawrenceSeattle [~lawrence@66.192.187.106] has joined ##stm32 2012-06-08T04:11:27 -!- LawrenceSeattle [~lawrence@66.192.187.106] has quit [Remote host closed the connection] 2012-06-08T04:11:39 < R2COM> oh 2012-06-08T04:11:45 < R2COM> ...pins.. 2012-06-08T04:11:49 -!- LawrenceSeattle [~lawrence@66.192.187.106] has joined ##stm32 2012-06-08T04:25:02 < R2COM> ok fixed 2012-06-08T04:25:05 < R2COM> still nothing 2012-06-08T04:26:00 < R2COM> http://shorttext.com/fKftmHE6 2012-06-08T04:26:37 < R2COM> i have commented all my actions there, and they seem to be the same as instructed in stdperiph comments 2012-06-08T04:27:05 < R2COM> pins dont show any activity on a board, and i always get that 0xf19b on from the CR1 register 2012-06-08T04:31:06 < R2COM> any ideas what else could be wrong? 2012-06-08T04:31:59 < zippe> Did you try banging the GPIOs by hand first? 2012-06-08T04:45:59 -!- LawrenceSeattle [~lawrence@66.192.187.106] has quit [Ping timeout: 245 seconds] 2012-06-08T04:46:54 < R2COM> hm lemme see 2012-06-08T04:47:23 < R2COM> also, should i configure them as output or no? because in some SPI codes i see they dont do it? 2012-06-08T04:47:30 < dongs> uh 2012-06-08T04:47:34 < dongs> this is F4? 2012-06-08T04:47:36 < R2COM> yes 2012-06-08T04:47:37 < dongs> you should configure them as AF 2012-06-08T04:47:41 < R2COM> i did it 2012-06-08T04:47:43 < dongs> for SPIblah 2012-06-08T04:47:47 < dongs> just like you saw me doing in my shit 2012-06-08T04:47:55 < R2COM> look here 2012-06-08T04:47:56 < R2COM> http://shorttext.com/fKftmHE6 2012-06-08T04:48:00 < R2COM> yes 2012-06-08T04:48:03 < dongs> why do you keep using gay sites with ads 2012-06-08T04:48:29 < R2COM> what? what difference it makes? which should i use? 2012-06-08T04:48:52 < R2COM> oh i think one needs to register to use pastebin 2012-06-08T04:50:35 < dongs> http://www.youtube.com/watch?v=DhfGcpaJxfY lol america 2012-06-08T05:49:00 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-08T05:49:00 -!- [7] [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-08T05:52:57 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Ping timeout: 245 seconds] 2012-06-08T06:30:28 < R2COM> eh flyback die out for now 2012-06-08T06:30:34 < R2COM> ok 2012-06-08T06:30:37 < R2COM> i have some improvement 2012-06-08T06:30:53 < R2COM> now, on the clock, with a scope, on the SCK pin i see 5MHz clock 2012-06-08T06:30:54 < R2COM> but 2012-06-08T06:31:04 < R2COM> the MOSI pin never shows activity since startup 2012-06-08T06:31:20 < R2COM> i send data like this: 2012-06-08T06:31:35 < R2COM> // sending the data 2012-06-08T06:31:35 < R2COM> while (SPI_I2S_GetFlagStatus(SPI2, SPI_I2S_FLAG_TXE) == RESET); 2012-06-08T06:31:35 < R2COM> SPI_I2S_SendData(SPI2, (uint8_t)d0); 2012-06-08T06:32:02 < R2COM> and in the debug, i see that it passes that while loop and jumps to a function sending a data 2012-06-08T06:32:19 < R2COM> so it means, that after the board power up, there HAS to be an activity on the MOSI pin 2012-06-08T06:32:23 < R2COM> but i dont see it 2012-06-08T06:33:36 < R2COM> any ideas here now? 2012-06-08T06:34:31 < R2COM> here is updated code 2012-06-08T06:34:32 < R2COM> http://pastebin.com/eq6Xd1ej 2012-06-08T08:02:44 < dongs> haha 2012-06-08T08:03:04 < dongs> @ flyback comment 2012-06-08T08:56:07 < R2COM> ok so if my SCK pin oscillates 2012-06-08T08:56:16 < R2COM> then SPI module works...or been configured correctly 2012-06-08T08:56:27 < R2COM> otherwise it wouldnt be giving out SCK clock 2012-06-08T08:56:35 < R2COM> shit...something else is there with just sending data 2012-06-08T09:14:22 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [] 2012-06-08T09:24:22 < R2COM> 331 people sitting on arduino channel, and 30 on other controllers 2012-06-08T09:24:28 < R2COM> how stupid this is... 2012-06-08T09:24:30 < R2COM> uh.. 2012-06-08T10:23:37 < dongs> haha 2012-06-08T10:23:46 < dongs> arduino is fucking retarded thats why 2012-06-08T10:24:15 < dongs> stupid = more people 2012-06-08T10:56:06 -!- dekar [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep] 2012-06-08T11:02:42 < R2COM> zyp, you have any idea why would an SPI module give out clock as expected on SPI2_SCK pin, but not give out a data? 2012-06-08T11:06:07 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has joined ##stm32 2012-06-08T11:06:08 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has quit [Changing host] 2012-06-08T11:06:08 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32 2012-06-08T11:08:46 < zyp> R2COM, yeah, you've configured or connected something wrong 2012-06-08T11:09:03 < zyp> are you measuring the output with a logic analyzer? 2012-06-08T11:09:38 < R2COM> zyp, scope 2012-06-08T11:09:56 < zyp> and you are measuring on SPI2_MOSI? 2012-06-08T11:10:01 < R2COM> yes 2012-06-08T11:10:13 < R2COM> SPI2_SCK gives me desired clock, which was set for SPI2 in software 2012-06-08T11:10:13 < zyp> and SPI2_MOSI are set to AF with correct AF chosen? 2012-06-08T11:10:17 < R2COM> yes 2012-06-08T11:10:52 < zyp> and SPI2 are configured in full-duplex or tx-only mode? 2012-06-08T11:11:23 < R2COM> http://pastebin.com/ccwSLrwY 2012-06-08T11:11:36 < R2COM> Master mode 2012-06-08T11:11:55 < zyp> sure, master mode was kind of obvious, since it generates clock 2012-06-08T11:12:22 < zyp> your paste doesn't seem to be loading for me 2012-06-08T11:12:31 < R2COM> what you mean? 2012-06-08T11:12:32 -!- pelrun__ [~pelrun@14-202-70-213.static.tpgi.com.au] has joined ##stm32 2012-06-08T11:12:47 < zyp> your link doesn't work 2012-06-08T11:12:51 < R2COM> heh 2012-06-08T11:12:57 < zyp> ok, worked now 2012-06-08T11:13:08 < zyp> yep, found your problem 2012-06-08T11:13:12 < R2COM> haha 2012-06-08T11:13:16 < R2COM> 1 second 2012-06-08T11:13:16 < zyp> you did the same error as dongs 2012-06-08T11:13:19 < R2COM> hmm 2012-06-08T11:13:24 < zyp> spi2.SPI_Direction = SPI_Direction_1Line_Tx; 2012-06-08T11:13:24 < R2COM> what error use stdperiph? 2012-06-08T11:13:32 < zyp> that is simplex mode 2012-06-08T11:13:35 < R2COM> well...its one line 2012-06-08T11:13:57 < zyp> when you use that mode, SPI2_MISO are used for both input and output 2012-06-08T11:14:40 < zyp> it's 1Line_Tx means «one-line bidirectional, now transmitting» 2012-06-08T11:15:09 < R2COM> i need then 2Lines_FullDuplex ? 2012-06-08T11:15:26 < zyp> if there is a mode with that name, yes 2012-06-08T11:17:34 < R2COM> that option sets BIDIMODE and BIDIOE to 1 2012-06-08T11:17:51 < R2COM> BIDIOE=1, output enabled... i want it 2012-06-08T11:18:06 < R2COM> BIDIMODE=1 - 1 line bidirectional data mode selected 2012-06-08T11:18:15 < R2COM> trying now 2012-06-08T11:19:05 < zyp> are you even reading what I say? 2012-06-08T11:19:40 < zyp> ok, let's do it this way 2012-06-08T11:19:48 < zyp> there are four ways of using spi 2012-06-08T11:20:10 < zyp> either tx-only, rx-only, tx and rx on different pins or tx and rx on same pin 2012-06-08T11:20:15 < zyp> which of those do you want? 2012-06-08T11:20:33 < R2COM> tx only 2012-06-08T11:22:07 < zyp> right 2012-06-08T11:22:14 < R2COM> hmm seems in that case i want BIDIMODE=0 2012-06-08T11:22:16 < zyp> then you don't want bidirectional mode 2012-06-08T11:22:20 < zyp> correct 2012-06-08T11:22:26 < R2COM> and also i want BIDIOE=1 2012-06-08T11:22:54 < zyp> correct 2012-06-08T11:23:19 < R2COM> lol! 2012-06-08T11:23:24 < R2COM> library doesnt have that option 2012-06-08T11:23:29 < zyp> oh, wait 2012-06-08T11:23:35 < zyp> it doesn't matter 2012-06-08T11:23:44 < zyp> BIDIOE aren't used when BIDIMODE=0 2012-06-08T11:23:52 < R2COM> oh 2012-06-08T11:24:11 < R2COM> #define SPI_Direction_2Lines_FullDuplex ((uint16_t)0x0000) 2012-06-08T11:24:11 < R2COM> #define SPI_Direction_2Lines_RxOnly ((uint16_t)0x0400) 2012-06-08T11:24:11 < R2COM> #define SPI_Direction_1Line_Rx ((uint16_t)0x8000) 2012-06-08T11:24:11 < R2COM> #define SPI_Direction_1Line_Tx ((uint16_t)0xC000) 2012-06-08T11:24:29 < R2COM> BIDIMODE (bit15), BIDIOE(bit14) 2012-06-08T11:24:55 < zyp> right 2012-06-08T11:25:00 < zyp> just do FullDuplex 2012-06-08T11:25:05 < R2COM> i did 2012-06-08T11:25:07 < R2COM> now 2012-06-08T11:25:10 < R2COM> here is an interesting thing 2012-06-08T11:25:15 < R2COM> i loaded it already in chip 2012-06-08T11:25:18 < R2COM> and debugging 2012-06-08T11:25:25 < R2COM> what i did is, i went to a last lines of code 2012-06-08T11:25:31 < R2COM> where it is about to send data to buffer 2012-06-08T11:26:08 < R2COM> i am stepping, and reading the p/x *(uint32_t *) 0x4000380c which is SPI_DR register 2012-06-08T11:26:11 < R2COM> and i get 0x 2012-06-08T11:26:20 < R2COM> is it normal? 2012-06-08T11:26:37 < zyp> that DR contains 0? 2012-06-08T11:26:41 < R2COM> i was thinking like...if i put something in that register, and then read it, i should get what i put 2012-06-08T11:26:41 < R2COM> yes 2012-06-08T11:26:47 < zyp> no 2012-06-08T11:26:54 < zyp> I mean 2012-06-08T11:26:57 < zyp> yes it's normal 2012-06-08T11:27:05 < zyp> it's two different registers on the same addr 2012-06-08T11:27:23 < R2COM> hmm.. ok 1 sec, hooking to scope then 2012-06-08T11:27:27 < zyp> when you write, you write to the output buffer, when you read, you read the input buffer 2012-06-08T11:29:01 < R2COM> hm 2012-06-08T11:30:33 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-08T11:30:36 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-08T11:31:33 < R2COM> no 2012-06-08T11:31:34 < R2COM> same shit 2012-06-08T11:31:42 < R2COM> upon power-up, i see clock 2012-06-08T11:31:48 < R2COM> 5.25MHz 2012-06-08T11:31:58 < R2COM> but NO activity on MOSI pin (PB15) 2012-06-08T11:32:06 < zyp> what data are you sending? 2012-06-08T11:32:12 < R2COM> one byte 2012-06-08T11:32:18 < jon1012> someone tried to use enc28j60 with stm32 ? 2012-06-08T11:32:19 < zyp> containing what? 2012-06-08T11:32:21 < R2COM> uint8_t d0 = 0xd9; // 11011001, test data0 2012-06-08T11:32:33 < zyp> ok 2012-06-08T11:32:45 < R2COM> // sending the data while (SPI_I2S_GetFlagStatus(SPI2, SPI_I2S_FLAG_TXE) == RESET) { } SPI_I2S_SendData(SPI2,  (uint8_t)d0); 2012-06-08T11:32:58 < R2COM> bad paste, but its in the code i gave link to 2012-06-08T11:33:11 < R2COM> except that in that code i corrected it to fullduplex 2012-06-08T11:33:40 < R2COM> you can also notice in the code, prescaler _8, and 42MHz/8 = 5.25MHz 2012-06-08T11:33:56 < R2COM> and i see this frequency on SPI2_SCK (PB13) 2012-06-08T11:35:41 < R2COM> im thinking.. maybe there must be some kind of delay in between? 2012-06-08T11:37:11 < zyp> looks correct 2012-06-08T11:37:19 < R2COM> yep. 2012-06-08T11:37:29 < R2COM> but MOSI pin is dead silent, right from power up 2012-06-08T11:37:33 < zyp> hmm, new datasheet revision 2012-06-08T11:37:43 < zyp> interesting 2012-06-08T11:37:44 < zyp> Starting from Silicon revision Z, USB OTG full-speed interface is now 2012-06-08T11:37:44 < zyp> available for all STM32F405xx devices. 2012-06-08T11:38:04 < zyp> that explains why my F405 got both OTG_FS and OTG_HS 2012-06-08T11:39:18 < R2COM> datasheet or reference manual 2012-06-08T11:39:22 < R2COM> i see reference manual is same 2012-06-08T11:39:28 < zyp> datasheet 2012-06-08T11:39:54 < zyp> there was a lot confusion about what were present and not in the previous revision 2012-06-08T11:41:08 < R2COM> ok 2012-06-08T11:42:07 < R2COM> i checked 2012-06-08T11:42:14 < R2COM> SCK and MOSI pins there, 2012-06-08T11:42:15 < zyp> I had to change my design to use OTG_HS when I discovered that OTG_FS were only present in F407, then after I assembled the boards I discovered by poking the registers for OTG_FS that it were still present 2012-06-08T11:42:16 < R2COM> lol 2012-06-08T11:42:41 <+Steffanx> And it also works zyp ? 2012-06-08T11:42:56 <+Steffanx> or you didn't/couldn't try? 2012-06-08T11:43:02 < zyp> Steffanx, according to new datasheet it should 2012-06-08T11:43:09 <+Steffanx> You have REV Z ? 2012-06-08T11:43:15 < zyp> I didn't try because the pins aren't hooked up on my board 2012-06-08T11:43:27 < zyp> that is posible 2012-06-08T11:43:29 < zyp> possible 2012-06-08T11:43:51 < R2COM> darn 2012-06-08T11:43:58 < R2COM> i have no idea what about this SPI 2012-06-08T11:44:04 < R2COM> i recheck all already 2012-06-08T11:44:16 <+Steffanx> ST and it's annoying revision system 2012-06-08T11:44:25 < R2COM> there might be some trivial thing which i just dont see 2012-06-08T11:44:33 <+Steffanx> They go from 1 to B to Z to whatever is next 2012-06-08T11:45:14 < R2COM> ? 2012-06-08T11:45:39 <+Steffanx> Nothing, just a random rant about the revision system from ST :P 2012-06-08T11:46:12 < zyp> Steffanx, you should see the version numbers for shit I work with then 2012-06-08T11:46:15 < R2COM> zyp how did you configure spi, maybe there is something else u did 2012-06-08T11:46:15 < R2COM> ? 2012-06-08T11:46:35 < zyp> lots of weird stuff that I don't understand how anybody came up with :p 2012-06-08T11:47:00 <+Steffanx> I have the same problem with this one and it's only 1 character :D 2012-06-08T11:47:12 < R2COM> im also not messing/setting NSS, since i dont have any multiple receiving devices 2012-06-08T11:47:37 < zyp> R2COM, http://cgit.jvnv.net/suzumebachi/commit/?h=stm32f4&id=2a34130 2012-06-08T11:48:27 < R2COM> well 2012-06-08T11:48:29 < zyp> Steffanx, here's a bunch of characters, and if I'm lucky, all the other characters are equal and the last one is incremented for each new version :p 2012-06-08T11:48:34 -!- Laurenceb_ [~Laurence@host109-157-39-186.range109-157.btcentralplus.com] has joined ##stm32 2012-06-08T11:49:11 <+Steffanx> Ha Mr Laurenceb_ 2012-06-08T11:49:45 < R2COM> accel is spi? 2012-06-08T11:50:02 < zyp> accel is i2c, gyro is spi 2012-06-08T11:50:02 < R2COM> can you show its init function? 2012-06-08T11:50:08 < R2COM> gyros init? 2012-06-08T11:50:14 < Laurenceb_> sup 2012-06-08T11:50:23 * Laurenceb_ is pissed with the ltc2481 adc 2012-06-08T11:50:31 < zyp> R2COM, it's in the previous commit 2012-06-08T11:50:33 < zyp> http://cgit.jvnv.net/suzumebachi/commit/?h=stm32f4&id=55d20ed 2012-06-08T11:50:41 < Laurenceb_> seems acessing it over i2c corrupts the next reading 2012-06-08T11:51:03 < zyp> Laurenceb_, nah, it's just your bad luck again 2012-06-08T11:51:08 < Laurenceb_> heh 2012-06-08T11:51:16 < Laurenceb_> its relatively small 2012-06-08T11:51:27 < Laurenceb_> but seems to be a real effect, very annoying 2012-06-08T11:51:39 < Laurenceb_> im getting crosstalk from the digital logic 2012-06-08T11:52:02 < zyp> is this the new board, that we told you should have four layers? :p 2012-06-08T11:52:19 < Laurenceb_> heh 2012-06-08T11:52:22 < R2COM> i see you set SSM and SSI to 1 2012-06-08T11:52:43 < zyp> Laurenceb_, seriously, your problems is a result of shitty board layout 2012-06-08T11:52:44 < Laurenceb_> thwe interference is only when the adc is accessed 2012-06-08T11:52:50 < R2COM> which is, software slave management enabled, and internal slave select 2012-06-08T11:52:58 < Laurenceb_> using the i2c bus doesnt cause issues 2012-06-08T11:53:40 < Laurenceb_> if i let it buffer some values without reads its ok 2012-06-08T11:53:46 < Laurenceb_> but that give slag ;( 2012-06-08T11:53:50 < Laurenceb_> *lag 2012-06-08T11:53:56 < zyp> R2COM, sounds about right 2012-06-08T11:54:18 < R2COM> but i guess...im my case i dont have to mess with those SSM,SSI bits? 2012-06-08T11:54:32 < R2COM> since, i have only one "receiver" connected to my SPI2 2012-06-08T11:54:43 < zyp> so do I 2012-06-08T11:55:02 < zyp> I set those bits to say that «this device will never be a slave» 2012-06-08T11:55:02 < R2COM> then why you enable software slave management? 2012-06-08T11:55:14 < R2COM> maybe that matters... 2012-06-08T11:55:14 < R2COM> hm 2012-06-08T11:55:17 < zyp> because I don't need hardware slave management 2012-06-08T11:55:39 < zyp> enabling software slave management is a bit of a misnomer, it means disabling hardware slave management :p 2012-06-08T11:56:06 < R2COM> in my code i have this commented out: 2012-06-08T11:56:07 < R2COM> //spi2.SPI_Mode = SPI_NSS_Soft; 2012-06-08T11:56:30 < R2COM> i noticed, that before, when this was not commented out, i didnt even get a clock output 2012-06-08T11:57:03 < zyp> well, then you probably had it set to slave 2012-06-08T11:57:23 < R2COM> #define SPI_NSS_Soft ((uint16_t)0x0200) 2012-06-08T11:57:23 < R2COM> #define SPI_NSS_Hard ((uint16_t)0x0000) 2012-06-08T11:57:27 < R2COM> thats what in library 2012-06-08T11:57:31 < zyp> exactly 2012-06-08T11:57:36 < zyp> so it sets SSM but not SSI 2012-06-08T11:57:56 < R2COM> but i need to set both to 1? 2012-06-08T11:58:01 < zyp> yes 2012-06-08T11:58:16 < zyp> SSI = 1 for master, 0 for slave 2012-06-08T11:58:16 < R2COM> turns out that this library doesnt even have this option? 2012-06-08T11:58:31 < zyp> and SSM should be 1 if you don't have SPI2_NSS connected 2012-06-08T11:58:57 < zyp> I don't have any idea about what your library has and don't 2012-06-08T11:59:24 < R2COM> hmm so not setting those bits actually could be problem? 2012-06-08T11:59:47 < zyp> likely not, you would probably not get a clock if it went into slave mode 2012-06-08T12:00:02 < zyp> but should still be fixed 2012-06-08T12:00:31 < R2COM> hm... 2012-06-08T12:00:32 < R2COM> ok 2012-06-08T12:00:32 < zyp> it's a case of «does happen to work, even if behavior is undefined» 2012-06-08T12:00:51 < R2COM> well...darn...what else could be wrong then 2012-06-08T12:01:06 < zyp> no idea 2012-06-08T12:01:27 < zyp> I'd try poking the registers directly from the debugger 2012-06-08T12:01:43 < zyp> that's what I usually do when learning how peripherals work 2012-06-08T12:02:05 < R2COM> yeah 2012-06-08T12:08:30 -!- cjbaird [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-08T12:13:38 -!- pelrun__ [~pelrun@14-202-70-213.static.tpgi.com.au] has quit [Ping timeout: 240 seconds] 2012-06-08T12:19:14 -!- Laurenceb_ [~Laurence@host109-157-39-186.range109-157.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-06-08T12:20:38 -!- nopcode_ [~nop@sushi.unix-ag.uni-kl.de] has joined ##stm32 2012-06-08T12:21:01 -!- gsmcmull1n [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-06-08T12:21:22 -!- feurig_ [~don@198.202.31.180] has joined ##stm32 2012-06-08T12:21:38 -!- nopcode [~nop@sushi.unix-ag.uni-kl.de] has quit [Ping timeout: 260 seconds] 2012-06-08T12:21:39 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Remote host closed the connection] 2012-06-08T12:21:39 -!- feurig [~don@198.202.31.180] has quit [Remote host closed the connection] 2012-06-08T12:30:41 -!- CheBuzz [~CheBuzz@76.164.192.124] has quit [Ping timeout: 260 seconds] 2012-06-08T12:31:31 -!- CheBuzz [~CheBuzz@76.164.192.124] has joined ##stm32 2012-06-08T12:31:55 -!- CheBuzz is now known as Guest23699 2012-06-08T12:50:50 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-08T12:58:41 -!- mrcan [~mrcan@95.8.245.193] has joined ##stm32 2012-06-08T12:58:51 -!- mrcan [~mrcan@95.8.245.193] has quit [Changing host] 2012-06-08T12:58:51 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-06-08T13:00:08 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Remote host closed the connection] 2012-06-08T13:06:18 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.] 2012-06-08T13:11:42 < karlp> I wonder if he got spi working in the end? 2012-06-08T13:16:16 < dongs> probably not 2012-06-08T13:17:25 < karlp> I was going to give him my working spi code as well, 2012-06-08T13:18:42 < dongs> spi isnt that hard. 2012-06-08T13:20:06 < dongs> my analol'g-fu is nonexistent, would there be 433mhz harmonics off 27mhz clock signal travelling over 10cm cable run? 2012-06-08T13:24:39 -!- ben1066_ is now known as ben1066 2012-06-08T13:26:11 <+Steffanx> pass 2012-06-08T13:32:38 < dongs> http://i.imgur.com/NXLW0.png 2012-06-08T13:39:53 -!- ben1066_ [~quassel@host109-152-91-222.range109-152.btcentralplus.com] has joined ##stm32 2012-06-08T13:39:53 -!- ben1066_ [~quassel@host109-152-91-222.range109-152.btcentralplus.com] has quit [Changing host] 2012-06-08T13:39:53 -!- ben1066_ [~quassel@unaffiliated/ben1066] has joined ##stm32 2012-06-08T13:40:47 -!- ben1066 [~quassel@unaffiliated/ben1066] has quit [Ping timeout: 246 seconds] 2012-06-08T13:43:26 -!- ben1066 [~quassel@host86-164-176-229.range86-164.btcentralplus.com] has joined ##stm32 2012-06-08T13:43:26 -!- ben1066 [~quassel@host86-164-176-229.range86-164.btcentralplus.com] has quit [Changing host] 2012-06-08T13:43:26 -!- ben1066 [~quassel@unaffiliated/ben1066] has joined ##stm32 2012-06-08T13:44:18 < zyp> karlp, did you have a look at the patch I posted yesterday? 2012-06-08T13:44:27 < zyp> or, you maybe don't have F4 hardware? :p 2012-06-08T13:47:30 -!- ben1066_ [~quassel@unaffiliated/ben1066] has quit [Ping timeout: 260 seconds] 2012-06-08T13:48:41 -!- ben1066_ [~quassel@host86-151-210-231.range86-151.btcentralplus.com] has joined ##stm32 2012-06-08T13:48:52 -!- ben1066_ [~quassel@host86-151-210-231.range86-151.btcentralplus.com] has quit [Changing host] 2012-06-08T13:48:52 -!- ben1066_ [~quassel@unaffiliated/ben1066] has joined ##stm32 2012-06-08T13:51:35 -!- ben1066 [~quassel@unaffiliated/ben1066] has quit [Ping timeout: 260 seconds] 2012-06-08T13:54:15 -!- ben1066_ is now known as ben1066 2012-06-08T13:54:43 <+Steffanx> zyp you used the blackmagic probe flash loader for that? 2012-06-08T13:56:09 <+Steffanx> No.. it's different :P 2012-06-08T14:03:48 < zyp> I wrote it myself, it's pretty trivial 2012-06-08T14:04:28 < zyp> I'm going to attach the source in the patch when I submit it 2012-06-08T14:12:30 < Laurenceb> dongs: i was thinking about catcopter 2012-06-08T14:12:46 < Laurenceb> you know what other 4 pointed shape could be used? 2012-06-08T14:13:16 < Laurenceb> swastikacopter :P 2012-06-08T14:13:46 < karlp> zyp: I had a look at it, but haven't applied it anywhere or tried it :) 2012-06-08T14:13:49 < karlp> looks good though 2012-06-08T14:14:20 < karlp> I actually have an f4 discovery board, it's just not something I plug in very often. 2012-06-08T14:15:38 < Tectu> why arent there any f4 development boards besides the discovery btw? 2012-06-08T14:15:45 < karlp> because you haven't made one? 2012-06-08T14:15:49 < Tectu> i mean there are hundrets of different f103 boards 2012-06-08T14:15:52 < Tectu> but no f4 2012-06-08T14:15:52 < karlp> what the hell sort of question is that? 2012-06-08T14:16:06 < Tectu> karlp, didn't you sleep well this night? o0 2012-06-08T14:16:08 < karlp> f1 has been around about 100 years longer than f4 too 2012-06-08T14:16:20 < zyp> Tectu, there are other 2012-06-08T14:16:28 < Tectu> zyp, le link? 2012-06-08T14:16:41 < zyp> ST got one expensive one, and then there are third party ones like the waveshare stuff dongs are using 2012-06-08T14:16:58 < Tectu> zyp, there is no real f4 board from waveshare 2012-06-08T14:17:01 < Tectu> beside these coreboards 2012-06-08T14:17:10 < zyp> Tectu, http://www.st.com/internet/evalboard/product/252216.jsp 2012-06-08T14:19:57 < Tectu> zyp, yeah, and where are waveshares development board, which are not just coreboards? 2012-06-08T14:24:18 < dongs> Laurenceb: lol 2012-06-08T14:24:27 < dongs> Laurenceb: that'll sure rile up bloggers 2012-06-08T14:27:38 < Laurenceb> alternatively a star of david hexacopter 2012-06-08T14:28:02 < Laurenceb> or both, for aerial battle 2012-06-08T14:28:28 < zyp> Tectu, ah, right, those are still just F1 and F2 2012-06-08T14:29:56 < zyp> http://www.wvshare.com/product/Port407V.htm <- assuming you mean this when you say coreboard? 2012-06-08T14:31:03 < zyp> it's still a development board, though, so my argument still stands 2012-06-08T14:31:40 < karlp> does olimex make an f4 board yet? 2012-06-08T14:32:03 < zyp> haven't seen one yet, but it can't be far away 2012-06-08T14:32:29 < zyp> and the maple guys supposedly have some F4 stuff coming 2012-06-08T14:52:43 < karlp> hey, look, /b being genuinely funny, _and_ SFW! http://24.media.tumblr.com/tumblr_m4vj4edvCa1r6c2i9o1_1280.jpg 2012-06-08T15:03:14 < cjbaird> 12 hours out, though... 2012-06-08T15:27:06 < Tectu> zyp: http://www.abload.de/img/2012-06-08-152429_144d4ag1.png 2012-06-08T15:28:17 < zyp> you're saying I should be afraid of jpa-? :p 2012-06-08T15:29:03 < Tectu> ah, jpa- is from finnland not you, right 2012-06-08T15:29:04 < Tectu> sorry 2012-06-08T15:30:05 <+Steffanx> haha, what a genius karlp :D 2012-06-08T15:30:37 < Tectu> zyp, and yes, no F4 boards beside the discovery and the eval board from ST at all 2012-06-08T15:31:10 <+Steffanx> and some other board 2012-06-08T15:31:12 <+Steffanx> http://www.ebay.com/itm/STM32F407-417ZG-module-HY-STM32F4xxCore144-Core-Dev-Board-/170818749248?pt=BI_Electrical_Equipment_Tools&hash=item27c5974340 LO 2012-06-08T15:31:13 <+Steffanx> :) 2012-06-08T15:31:55 < zyp> Tectu, http://bin.jvnv.net/f/sTW8U.JPG <- well, and I've got this board 2012-06-08T15:31:56 < Tectu> Steffanx, yes, but that are core boards 2012-06-08T15:32:01 < Tectu> Steffanx, i talk about development boards 2012-06-08T15:32:11 <+Steffanx> hmpf 2012-06-08T15:32:28 < Tectu> zyp, dafuq is that? new STericson device? :D 2012-06-08T15:32:58 < zyp> no, it's my F4 board that I made a few months ago 2012-06-08T15:34:24 < Tectu> yeah, but does not look like development board at all? 2012-06-08T15:34:42 < Tectu> Steffanx, did you get that board you linked? 2012-06-08T15:34:50 <+Steffanx> No 2012-06-08T15:35:05 < zyp> Tectu, of course it is a development board, I made it to develop my quadrotor software 2012-06-08T15:35:13 < Tectu> zyp, aye 2012-06-08T15:35:28 < Tectu> am i the only one on earth which does not do quadrotor? 2012-06-08T15:35:38 < zyp> and it has a bunch of shit that wouldn't be present on a normal user board 2012-06-08T15:35:48 < zyp> so it's pretty clear that it's a devboard :p 2012-06-08T15:36:11 < Tectu> i am sorry sir. 2012-06-08T15:36:19 < Tectu> didn't try to be offense at at all :D 2012-06-08T15:36:51 <+Steffanx> Sir :) 2012-06-08T15:37:30 < dongs> sup 2012-06-08T15:37:31 < dongs> status 2012-06-08T15:38:03 <+Steffanx> Rainy and ~15C 2012-06-08T15:38:04 < zyp> status? at work, idling, hour and a half until summer vacation 2012-06-08T15:38:23 <+Steffanx> No way you can't go on vacation! 2012-06-08T15:38:24 < Tectu> at school, learning about taxes... rainy and 18°C 2012-06-08T15:38:36 <+Steffanx> You have to watch the dutch soccer team on TV tomorrow zyp ! 2012-06-08T15:38:38 < Tectu> zyp, how long? 2012-06-08T15:38:44 < Tectu> Steffanx, you're from dutch? 2012-06-08T15:38:46 < dongs> i got some rcg troll to cnc me a delrin case for my trollboard 2012-06-08T15:38:55 <+Steffanx> I'm from dutchland, yes Tectu 2012-06-08T15:38:56 < Tectu> dongs, trollboard? 2012-06-08T15:39:08 <+Steffanx> troll(tm) 2012-06-08T15:39:09 < zyp> I've delivered all the shit I promised to do before I left, filled out timesheets and other shit, reassigned all my open tickets to the guy that's going to stand in for me while I'm away 2012-06-08T15:39:09 < Tectu> Steffanx, my girlfriend to.... damn dutch people are very.... partriotistic... :D 2012-06-08T15:39:40 < dongs> Tectu: http://i.imgur.com/1Fpeb.jpg 2012-06-08T15:39:45 <+Steffanx> Everywhere except in the netherlands Tectu 2012-06-08T15:39:51 < zyp> so I don't really have anything more to do before I leave, but I already wrote full day on today's timesheet 2012-06-08T15:39:54 < Tectu> Steffanx, ha! sure... 2012-06-08T15:40:25 < Tectu> Steffanx, going to the netherlands from 1st to 7th of july 2012-06-08T15:40:35 <+Steffanx> Amsterdam? 2012-06-08T15:40:39 < Tectu> Steffanx, just one day 2012-06-08T15:40:50 < Tectu> Steffanx, arnhem, utrecht, etc, etc 2012-06-08T15:40:59 <+Steffanx> 1st to 7th of july = 1 day? 2012-06-08T15:41:00 < Tectu> you live in amsterdam, sir? 2012-06-08T15:41:04 <+Steffanx> No 2012-06-08T15:41:12 <+Steffanx> Not even close 2012-06-08T15:41:15 < Tectu> no, just one day at amsterdam, i meant 2012-06-08T15:41:27 <+Steffanx> Groningen it is for me :0 2012-06-08T15:41:28 <+Steffanx> :) 2012-06-08T15:41:33 <+Steffanx> or 23km away from that city 2012-06-08T15:41:36 < Tectu> lemme see, sir 2012-06-08T15:41:45 < Tectu> 23km from groningen or 23km from amsterdam? 2012-06-08T15:41:52 < zyp> Steffanx almost lives in norway 2012-06-08T15:41:54 <+Steffanx> Groningen 2012-06-08T15:41:57 < Tectu> dongs, dafuq is that? 2012-06-08T15:42:07 < zyp> I mean, Steffanx is closer to me than what trondheim is 2012-06-08T15:42:08 < dongs> Tectu: teledildonics 2012-06-08T15:42:19 <+Steffanx> When i go by boat zyp .. 2012-06-08T15:42:34 < Tectu> Steffanx, afaik being somewhere arround there, visiting gf's relatives 2012-06-08T15:42:42 <+Steffanx> YAy 2012-06-08T15:42:55 <+Steffanx> Don 2012-06-08T15:42:57 <+Steffanx> t 2012-06-08T15:43:06 <+Steffanx> forget to take some 'stroopwafels' back to the US :P 2012-06-08T15:43:29 < Tectu> Steffanx, i am not from US 2012-06-08T15:43:33 < Tectu> Steffanx, switzerland here 2012-06-08T15:43:47 < Tectu> dongs, what's it for/what's it doing 2012-06-08T15:44:16 <+Steffanx> Ah, i thought you were from the US 2012-06-08T15:44:17 < zyp> Tectu, it's a quadrotor controller :D 2012-06-08T15:44:23 <+Steffanx> I confuse you and others all the time 2012-06-08T15:44:23 < Tectu> zyp, ah, thanks :) 2012-06-08T15:44:36 <+Steffanx> Then take it back to switzerland 2012-06-08T15:44:37 < Tectu> what's your problem, dongs, that you can't just tell me that the ways zyp does? 2012-06-08T15:44:49 < Tectu> Steffanx, what exactly? :D 2012-06-08T15:44:52 < dongs> cause zyp's here to tell you things 2012-06-08T15:44:55 < dongs> I'm here to troll 2012-06-08T15:44:58 <+Steffanx> ' stroopwafels' dongs 2012-06-08T15:45:04 <+Steffanx> I'm here to feed dongs 2012-06-08T15:45:18 <+Steffanx> *'stroopwafels' Tectu 2012-06-08T15:45:47 < Tectu> Steffanx, asking gf what that is 2012-06-08T15:46:03 <+Steffanx> Just some sort of a cookie 2012-06-08T15:46:56 < Tectu> Steffanx, sounds good :) 2012-06-08T15:48:13 < Tectu> why are so many people from north of europe here? 2012-06-08T15:48:20 < dongs> no idea 2012-06-08T15:48:21 < Tectu> is it just me or are many many embedded people from over up there? 2012-06-08T15:48:25 < dongs> no 2012-06-08T15:48:28 < Tectu> excpect the trolls ~ 2012-06-08T15:48:31 < dongs> i think they just like to chat/be trolled 2012-06-08T15:49:09 <+Steffanx> We like to feed the helpless ( dongs ) 2012-06-08T15:49:10 < cjbaird> embedded systems are a natural progression from microcomputers, and Euro was big on those? 2012-06-08T15:50:11 <+Steffanx> Tectu there are also quiet a few from aussieland 2012-06-08T15:50:16 <+Steffanx> or new zealand 2012-06-08T15:51:41 < Tectu> aussieland? 2012-06-08T15:51:58 < dongs> also known as ausfags 2012-06-08T15:52:21 < dongs> or dudes who do sheep (in case of .nz) 2012-06-08T15:52:54 < cjbaird> ausfags are into computers because auswomen are shit in bed... 2012-06-08T15:56:43 < cjbaird> The plan with 'Multiculturalism' was to import as many overseas girls as possible, but the first thing they learned here was doing it corpse style.. -_- 2012-06-08T15:57:27 < Tectu> hrhr 2012-06-08T15:57:31 < Tectu> cjbaird, where are you from 2012-06-08T15:58:07 < dongs> israel 2012-06-08T16:00:06 -!- dekar [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has joined ##stm32 2012-06-08T16:00:09 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-08T16:01:09 < cjbaird> Sydney/Newcastle. "Congratuations, you're dating a Frustrated Catholic High School Girl! ... Unfortunately, she's Australian." 2012-06-08T16:01:43 < cjbaird> Living in the Parramatta area now. 2012-06-08T16:03:04 < cjbaird> Probably not to far from pelrun, actually. 2012-06-08T16:03:19 < cjbaird> He's someone I knew about ~8 years ago. 2012-06-08T16:09:02 < Rickta59> do people have any thoughts good or bad about libmaple? 2012-06-08T16:09:26 < zyp> the lowlevel libmaple looks rather decent 2012-06-08T16:09:41 < zyp> IIRC 2012-06-08T16:09:48 < zyp> I haven't looked at it for a year 2012-06-08T16:09:49 < Rickta59> yeah that is what it seemed to me 2012-06-08T16:10:16 < Rickta59> i'm new to the stm arm stuff and I'm looking around at the available lib stuff 2012-06-08T16:12:09 < zyp> libopencm3 seems like a pretty good choice 2012-06-08T16:12:42 < dongs> whats wrong with stdperiphlib 2012-06-08T16:12:43 < Rickta59> what is the most popular 2012-06-08T16:12:54 < zyp> dongs, except for being horribly messy? 2012-06-08T16:13:09 < dongs> its not that bad 2012-06-08T16:13:15 < dongs> Rickta59: if y ou want official vendor support, stdperiphlib. 2012-06-08T16:13:21 < dongs> if you're a lunix faggot who edits code in vi, it doesnt matter what you use 2012-06-08T16:13:28 < dongs> cause you'll be rewriting it anyway 2012-06-08T16:13:45 < Rickta59> there ya go I'm a linux fag 2012-06-08T16:13:50 < dongs> libopencm3 is ok but all it is is renaming of all registers and removing functionality 2012-06-08T16:14:00 < dongs> and renaming all ISR function names etc 2012-06-08T16:14:50 < Rickta59> is there any chance that any of the available libs would work cross arm vendor? 2012-06-08T16:15:01 < dongs> libopencm3 sorta does 2012-06-08T16:15:06 < dongs> if you use highlevel shit. 2012-06-08T16:15:13 < Rickta59> kind of interested in both TI and ST 2012-06-08T16:15:23 < dongs> ti what, stellaris? 2012-06-08T16:15:35 < Rickta59> is that their m3/m4 stuff? 2012-06-08T16:15:42 < dongs> didnt think they had any m4 stuff 2012-06-08T16:15:46 < dongs> stellaris is thier m3 stuff. 2012-06-08T16:16:02 < dongs> http://www.ti.com/ww/en/mcu/cortex_m4f/?DCMP=cortexm4f&HQS=cortexm4-b o neat 2012-06-08T16:16:13 < dongs> lol 80mhz 2012-06-08T16:16:13 < dongs> wtf 2012-06-08T16:16:21 < dongs> All LM4F variants include the ARM Cortex-M4F core with the single precision floating point at 80 MHz ??? 2012-06-08T16:16:27 < dongs> way2fail, TI 2012-06-08T16:17:22 < zyp> hmm, 65nm 2012-06-08T16:17:26 < zyp> F4 is 90nm 2012-06-08T16:17:34 < dongs> 80mhz and 32k sram 2012-06-08T16:17:39 < dongs> wtf are tehy targeting? 2012-06-08T16:17:51 < zyp> battery efficiency? 2012-06-08T16:18:09 < zyp> I guess 65nm would consume less power per cycle than 90nm 2012-06-08T16:19:08 < zyp> if it's about using the least amount of power per floating point operation, it might beat F4 2012-06-08T16:24:56 < Rickta59> so those 3 libs .. anything else that is of interest ? 2012-06-08T16:27:55 < dongs> no. 2012-06-08T16:28:02 < dongs> personally i'd just use vendor shit 2012-06-08T16:28:06 < dongs> i.e. stellarisware for TI and stdperiphlib for ST 2012-06-08T16:28:21 < dongs> you aren't gonna have 1:1 shit thats hardware specific between platforms anyway 2012-06-08T16:28:52 < Rickta59> are any of the peripheral in common? gpio? timers? 2012-06-08T16:29:02 < dongs> nope. 2012-06-08T16:29:09 < dongs> which is why. 2012-06-08T16:29:33 < Rickta59> hmm .. well seems like you just need to pick your poison and learn to love it 2012-06-08T16:29:41 < Rickta59> any reason to not use ST stuff? 2012-06-08T16:29:45 < dongs> nope. 2012-06-08T16:29:47 < dongs> it works perfectly fine. 2012-06-08T16:30:10 < Rickta59> business wise they keep the chip factory humming and pumping them out? 2012-06-08T16:30:31 < dongs> oh they're not going anywhere if thats what you mean 2012-06-08T16:30:46 < Rickta59> seems like when i looked for availability on octopart they were always plentiful and inexpensive 2012-06-08T16:31:01 < Rickta59> I'm buying in qty 1 ish 2012-06-08T16:31:01 < dongs> yes. 2012-06-08T16:31:15 < dongs> for example STM32F103CxT6 is ~$2/ea in qty 2012-06-08T16:31:27 < dongs> 48qfp cortex m3 2012-06-08T16:31:37 < dongs> STM32F405RG is around ~$6 2012-06-08T16:31:43 < Rickta59> yeah .. just wondered if it was a bait and switch thing .. 2012-06-08T16:31:44 <+Steffanx> 2$ where? 2012-06-08T16:31:49 < dongs> Steffanx: in my office 2012-06-08T16:32:09 <+Steffanx> I paid 2.25$ 2012-06-08T16:32:17 <+Steffanx> For the C8 2012-06-08T16:32:24 < dongs> terrible. 2012-06-08T16:32:35 <+Steffanx> Cheapest i could find 2012-06-08T16:32:37 < dongs> 2$ for C8 and 2.5 for CB here. 2012-06-08T16:33:25 <+Steffanx> 'in my offfice' == black market stuff? 2012-06-08T16:33:34 < dongs> noes? 2012-06-08T16:33:39 < dongs> i only buy legit stuff. 2012-06-08T16:34:23 <+Steffanx> You pay 2$ for 1k? 2012-06-08T16:34:31 < dongs> tray 2012-06-08T16:34:44 <+Steffanx> I even used ebay to get them D: 2012-06-08T16:35:13 < dongs> ebay isnt legit :) 2012-06-08T16:35:20 <+Steffanx> For me it is 2012-06-08T16:37:07 < Rickta59> these seem to be around the price i'd like to spend STM32F051C8T6 < $2 2012-06-08T16:37:43 < zyp> dongs can probably get those for < $1 :p 2012-06-08T16:37:44 <+Steffanx> That's a cortex-m0 .. 2012-06-08T16:37:51 < Rickta59> yeah that is fine Steffanx 2012-06-08T16:37:57 <+Steffanx> ok 2012-06-08T16:38:12 <+Steffanx> Dongs has it's own clone factory 2012-06-08T16:38:17 <+Steffanx> *his 2012-06-08T16:38:17 < Rickta59> : ) 2012-06-08T16:38:52 < dongs> F0 isn't widely available yet 2012-06-08T16:39:08 <+Steffanx> Not cloned yet.. 2012-06-08T16:39:11 < dongs> Ya. 2012-06-08T16:39:37 < Rickta59> it will be a while before I get up to speed 2012-06-08T16:39:45 < dongs> I wonder how many arduino-styles ST trolled by calling F0 shit F05, making it look like its next step after F4 2012-06-08T16:40:01 < dongs> look its new and its got bigger number!! 2012-06-08T16:40:06 < zyp> how's that different from F45? 2012-06-08T16:40:22 < dongs> ? where's F45 2012-06-08T16:40:23 < zyp> sorry, F405 2012-06-08T16:40:26 < dongs> you mean F405? 2012-06-08T16:40:26 < Rickta59> they just sent me a free board so i guess i got trolled 2012-06-08T16:41:19 <+Steffanx> You have to be very stupid to think that dongs 2012-06-08T16:41:34 < zyp> «arduino» 2012-06-08T16:41:36 < zyp> so yeah 2012-06-08T16:41:37 < Rickta59> i saw it as a step up in low power vs msp430 2012-06-08T16:42:08 < dongs> Steffanx: what zyp said 2012-06-08T16:42:25 <+Steffanx> dongs and his phobias 2012-06-08T16:42:28 < dongs> zyp: why tyhe fuck are you using unicode quiotation amrks 2012-06-08T16:42:38 < zyp> habit 2012-06-08T16:42:48 <+Steffanx> <> 2012-06-08T16:42:51 < dongs> are they easily available on eurofag keyboard or something? 2012-06-08T16:42:56 <+Steffanx> Not on mine 2012-06-08T16:43:00 < zyp> at least on mine 2012-06-08T16:43:15 < zyp> altgr+z/x 2012-06-08T16:43:22 < dongs> <<< Arduino >>> 2012-06-08T16:43:41 < zyp> they nest so nicely, as opposed to "" 2012-06-08T16:43:54 <+Steffanx> Ω≈ 2012-06-08T16:43:56 < dongs> lolwut? 2012-06-08T16:44:12 <+Steffanx> altgr +z/x = Ω≈ :) 2012-06-08T16:44:16 <+dekar> Ω≈ 2012-06-08T16:44:59 <+Steffanx> Actually I have no key with "altgr" 2012-06-08T16:45:03 < dongs> altgr sounds like some lunix shit 2012-06-08T16:45:11 <+Steffanx> http://en.wikipedia.org/wiki/AltGr_key 2012-06-08T16:45:16 <+dekar> me neither lol 2012-06-08T16:45:19 <+dekar> but I have alt 2012-06-08T16:45:32 <+Steffanx> You don't have a qwerty kb do you? 2012-06-08T16:45:36 <+Steffanx> *have you 2012-06-08T16:45:44 <+Steffanx> or do 2012-06-08T16:45:45 <+Steffanx> whatever 2012-06-08T16:45:45 < zyp> on mac keyboards it's alt-shift-v/b 2012-06-08T16:45:48 * dekar has qwertz 2012-06-08T16:45:57 < dongs> ccxxsddwerqrwet 2012-06-08T16:45:58 <+Steffanx> ◊ı 2012-06-08T16:46:01 < dongs> qwertyui 2012-06-08T16:46:04 <+dekar> ◊‹ 2012-06-08T16:46:05 < dongs> o dpmt se amytjomg diffwejt 2012-06-08T16:46:06 < dongs> uihhh 2012-06-08T16:46:11 <+dekar> « 2012-06-08T16:46:18 <+dekar> alt Q is one of them for me 2012-06-08T16:46:20 <+dekar> «««««««««« 2012-06-08T16:46:29 < dongs> i dont see anything diferent with that hsit 2012-06-08T16:46:47 <+Steffanx>  2012-06-08T16:46:50 <+dekar> :D 2012-06-08T16:47:05 <+dekar> Steffanx, try TNT :) 2012-06-08T16:47:05 <+Steffanx> Only a few can see that one 2012-06-08T16:47:10 <+Steffanx> I already did 2012-06-08T16:47:13 <+Steffanx> Yesterday 2012-06-08T16:47:25 < zyp> Steffanx, did you try my F4 patch? 2012-06-08T16:47:30 <+Steffanx> Nope 2012-06-08T16:47:32 <+dekar> Steffanx, after you failed? 2012-06-08T16:47:41 < zyp> Steffanx, are you going to? :p 2012-06-08T16:47:56 <+Steffanx> Not sure yet zyp 2012-06-08T16:48:00 <+Steffanx> dekar, it compiled 2012-06-08T16:48:04 <+Steffanx> Didn't run it yet 2012-06-08T16:48:27 <+dekar> I am trying to get newlib working with LTO 2012-06-08T16:48:43 <+Steffanx> LTO .. 2012-06-08T16:49:36 < karlp> man, I can't find f103 for $2.anything until I'm in the thousands of units 2012-06-08T16:49:41 <+Steffanx> What exactly you want me to try zyp ? 2012-06-08T16:49:46 <+Steffanx> Just the patch and load something? 2012-06-08T16:49:55 <+Steffanx> ebay :) 2012-06-08T16:50:08 <+dekar> Steffanx, http://pastebin.com/RiXwwZPw (using newlib stuff like sprintf and float) 2012-06-08T16:50:33 < zyp> Steffanx, yeah, I just want to know if it works without any problems 2012-06-08T16:50:54 < zyp> and what speed difference you see 2012-06-08T16:51:06 <+Steffanx> Have a nice 'big' elf to load? 2012-06-08T16:51:33 < zyp> just make a huge array and have it placed in .text 2012-06-08T16:51:56 <+dekar> use the no-bss flag 2012-06-08T16:52:23 -!- blkcat [~colin@cider.blkcat.net] has quit [Ping timeout: 244 seconds] 2012-06-08T16:52:33 -!- corecode [~2@0x2c.org] has quit [Ping timeout: 244 seconds] 2012-06-08T16:53:17 -!- corecode [~2@0x2c.org] has joined ##stm32 2012-06-08T16:55:47 -!- blkcat [~colin@cider.blkcat.net] has joined ##stm32 2012-06-08T17:01:34 <+Steffanx> Don't need an extra flag do i zyp ? 2012-06-08T17:10:03 <+Steffanx> zyp 2012-06-08T17:10:03 <+Steffanx> Transfer rate: 10 KB/sec, 10178 bytes/write. 2012-06-08T17:14:32 < zyp> what did you get before? 2012-06-08T17:14:45 <+Steffanx> I have no idea :P 2012-06-08T17:14:46 <+Steffanx> Hehe 2012-06-08T17:17:15 < Laurenceb> huh 2012-06-08T17:17:28 < Laurenceb> thats faster 2012-06-08T17:18:18 < Laurenceb> texane? 2012-06-08T17:18:26 <+Steffanx> 3KB/s zyp 2012-06-08T17:18:54 <+Steffanx> Yeah zyp made it a little better Laurenceb 2012-06-08T17:18:59 < Laurenceb> awesome 2012-06-08T17:19:27 <+Steffanx> It seems it went for 3KB/s (for me) to 10-13KB/s 2012-06-08T17:19:39 < Laurenceb> https://github.com/texane/stlink 2012-06-08T17:19:41 < Laurenceb> there? 2012-06-08T17:19:44 < FUZxxl> Hi there! 2012-06-08T17:20:22 <+Steffanx> Not yet Laurenceb 2012-06-08T17:20:32 -!- izua [~izua@79.115.171.1] has joined ##stm32 2012-06-08T17:20:32 -!- izua [~izua@79.115.171.1] has quit [Changing host] 2012-06-08T17:20:32 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-08T17:20:35 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-08T17:20:43 <+Steffanx> How this speed is measured zyp? 2012-06-08T17:20:46 < Laurenceb> where is it? 2012-06-08T17:21:00 <+Steffanx> Somewhere in a non-official patch :) 2012-06-08T17:21:08 <+Steffanx> Can't give you a link.. lost it 2012-06-08T17:21:30 <+Steffanx> It does 13KB/s with a 10k file, but … i'm sure it takes longer that a second 2012-06-08T17:23:56 < zyp> Laurenceb, http://bin.jvnv.net/f/SetO5/0001-Added-flash-loader-stub-for-F2-F4.patch 2012-06-08T17:24:10 < zyp> going to polish it a bit before I submit it to texane 2012-06-08T17:24:19 < Laurenceb> ok 2012-06-08T17:24:22 < dongs> http://i.imgur.com/tz1K6.jpg bloggin' 2012-06-08T17:24:29 < Laurenceb> how the hell do i use a .patch? 2012-06-08T17:24:32 < zyp> git am 2012-06-08T17:24:58 < dongs> aboutto head to the oven 2012-06-08T17:25:01 <+Steffanx> big ass 405 .. 2012-06-08T17:25:15 < zyp> dongs, what's that? 2012-06-08T17:25:23 < dongs> billboard 2012-06-08T17:25:45 < Laurenceb> layout looks a bit mental 2012-06-08T17:25:45 <+Steffanx> So your fix is an improvement zyp 2012-06-08T17:25:56 < zyp> oh, right, I thought those were SMA footprints 2012-06-08T17:26:26 < zyp> I was all «gps and seven antennnas???» 2012-06-08T17:26:50 <+Steffanx> Sure it looks better than the layout you made Laurenceb :P 2012-06-08T17:30:49 < dongs> haha 7 antennas 2012-06-08T17:31:02 <+Steffanx> Hey, you are dongs 2012-06-08T17:31:04 < dongs> sadly its all autorouted 2012-06-08T17:31:11 <+Steffanx> auto routed LOL 2012-06-08T17:31:16 < dongs> no joke 2012-06-08T17:31:40 <+Steffanx> Whyyy? 2012-06-08T17:32:09 <+Steffanx> Less blogging more routing for dongs next time 2012-06-08T17:32:24 < Laurenceb> no wonder it looks a mess 2012-06-08T17:33:30 < dongs> Steffanx: i didnt route it 2012-06-08T17:34:58 < FUZxxl> Hello! 2012-06-08T17:35:23 < FUZxxl> I want to compile a C program for the STM32l micro controller. 2012-06-08T17:35:35 < FUZxxl> I mean, 2012-06-08T17:35:43 < FUZxxl> I have such an STM32l discovery board. 2012-06-08T17:35:48 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-06-08T17:35:58 < FUZxxl> It seems like I need to set up the stack on my own, right? 2012-06-08T17:36:12 < FUZxxl> What exactly should I set for the stack boundary? 2012-06-08T17:36:12 < dongs> if you're programming in vi writing asm, yes. 2012-06-08T17:36:27 < FUZxxl> dongs: ? 2012-06-08T17:38:11 < dongs> i dont know how to answer your question because it does not compute 2012-06-08T17:39:33 < FUZxxl> Well, I want to write (in C) a program for this microcontroller. 2012-06-08T17:39:44 < FUZxxl> I use texane's stlink to access the device. 2012-06-08T17:39:46 < Rickta59> start on this page http://www.st.com/internet/evalboard/product/250990.jsp 2012-06-08T17:40:00 < FUZxxl> I use Linux and the GNU toolchain. 2012-06-08T17:40:20 < FUZxxl> I use the linker script provided in some of stlink's examples. 2012-06-08T17:40:26 < Rickta59> have you looked at the tutorial that comes with the texane stlink package 2012-06-08T17:40:29 < FUZxxl> I don't want, however, use any libraries 2012-06-08T17:40:39 < FUZxxl> Rickta59:Yes. 2012-06-08T17:40:48 < Rickta59> and you have tried the blink examples 2012-06-08T17:40:51 < FUZxxl> Did I miss something? 2012-06-08T17:40:57 < FUZxxl> Yeah, they all compile and run just fine. 2012-06-08T17:41:06 < FUZxxl> I am now starting on my own. 2012-06-08T17:41:11 < Rickta59> hmm .. so you compiled a c program for the stm32l 2012-06-08T17:41:19 < FUZxxl> But I don't want to use the libraries and includes provided. 2012-06-08T17:41:19 < Rickta59> just use that as a base to get started 2012-06-08T17:41:28 < Rickta59> well then you are on your own 2012-06-08T17:41:39 < FUZxxl> I only want to know, what I need to do to set up the stack. 2012-06-08T17:41:45 < Thorn> you need to write your own startup code then 2012-06-08T17:41:52 < FUZxxl> Yeah. 2012-06-08T17:42:02 < FUZxxl> What does the startup code needs to do? 2012-06-08T17:42:20 < Thorn> the stack is set up by the hardware, initial sp value is read from address 0 2012-06-08T17:42:22 < Rickta59> you might look at the startup code used by the libs and includes you don't want to use 2012-06-08T17:42:59 < Thorn> 1) sets up all the clocks 2) copies .data to ram 3) zeroes out .bss 4) calls main() 2012-06-08T17:42:59 < FUZxxl> Rickta59: Well, the blink example has none. I failed to compile the "official" stuff, since I don't have Windows. 2012-06-08T17:43:25 < Rickta59> i'm also just getting started 2012-06-08T17:43:43 < Rickta59> and the approach i'm taking is to look at the startup.s files used by stdperiphlib 2012-06-08T17:43:51 < FUZxxl> Okay. 2012-06-08T17:44:04 < FUZxxl> Where can I find that lib? 2012-06-08T17:44:14 < Rickta59> that first link i supplied 2012-06-08T17:44:39 < FUZxxl> In that Windows-installer? 2012-06-08T17:44:56 < dongs> .. 2012-06-08T17:45:01 < dongs> no stdperiphlib is a .zip file 2012-06-08T17:45:03 < Rickta59> i'm thinking more the firmware download zip 2012-06-08T17:45:21 < Rickta59> ah .. it is an ex 2012-06-08T17:45:22 < Rickta59> e 2012-06-08T17:45:36 < Rickta59> so yah you are going to have to find a windows machine to extract it 2012-06-08T17:45:51 < Rickta59> * i'm using the F0 board not the L board 2012-06-08T17:45:52 < FUZxxl> Rickta59: Yeah, I managed to unpack it using Wine 2012-06-08T17:46:04 < FUZxxl> What's the difference? 2012-06-08T17:46:17 < Rickta59> F is the M0 core 2012-06-08T17:46:32 < Thorn> you can often extract exe under linux, unzip/unrar will recognize their archives even if they're sfx 2012-06-08T17:46:35 < Rickta59> and the zip i downloaded was just a bunch of source and headers 2012-06-08T17:47:18 < FUZxxl> ... 2012-06-08T17:47:20 < FUZxxl> hm... 2012-06-08T17:47:41 < FUZxxl> There is no "stdperiphlib" in this package. 2012-06-08T17:47:58 < Rickta59> well i have no idea how to help you help yourself then sorry 2012-06-08T17:48:01 < FUZxxl> okay. 2012-06-08T17:48:33 < FUZxxl> So, what does the startup code need to do anyway? I guess it's just setting up the stack and probably zeroing out the bss section, isn't it? 2012-06-08T17:48:56 < Thorn> see my earlier answer 2012-06-08T17:49:13 < FUZxxl> Rickta59: Can you email me that stdperiphlib? 2012-06-08T17:49:17 < Rickta59> no 2012-06-08T17:49:21 < Rickta59> it is for the wrong chip 2012-06-08T17:49:27 < Rickta59> you can download it yourself if you want 2012-06-08T17:49:35 < Thorn> what stm32 family are you using? 2012-06-08T17:49:37 < Rickta59> but it isn't going to be appropriate for your chip 2012-06-08T17:49:41 < FUZxxl> Thorn: Well, the chip has no memory mapped to address 0x0 2012-06-08T17:50:01 < FUZxxl> Rickta59: Yeah, okay. I thought just as an inspiration. 2012-06-08T17:50:10 < Thorn> 1) it has to 2) memory can be aliased 2012-06-08T17:50:15 < FUZxxl> Thorn: I have the STM32l discovery board. 2012-06-08T17:50:17 < Rickta59> all it does it put the top of the stack address at 0 2012-06-08T17:50:20 < FUZxxl> Let me look 2012-06-08T17:50:26 < Rickta59> and then setups up a jump address for the reset vector 2012-06-08T17:50:35 < FUZxxl> The microcontroller is STM32L152RBT6 2012-06-08T17:50:50 < FUZxxl> okay 2012-06-08T17:53:18 < Thorn> www.st.com -> micros & memories -> microcontrollers -> stm32 -> STM32 L1 Ultra Low Power -> resources -> firmware -> stm32l1xx standard peripherals library 2012-06-08T17:53:26 < Thorn> see, easy enough 2012-06-08T17:57:41 < FUZxxl> :-) 2012-06-08T17:57:49 < FUZxxl> Now I need to understand that... 2012-06-08T17:59:19 < zyp> oh, texane merged my patch already, that was fast 2012-06-08T18:00:17 < zyp> some 9 minutes after I created a pull request 2012-06-08T18:02:17 < Thorn> look under Libraries\CMSIS\Device\ST\STM32L1xx\Source\Templates\gcc_ride7 2012-06-08T18:04:30 < zyp> Laurenceb, if you wanted to test fast F4 flashing, it's in texane master now :p 2012-06-08T18:06:11 < FUZxxl> Thorn: Thank you! 2012-06-08T18:27:41 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-08T18:35:44 -!- emeric_ [~emeric@AToulouse-551-1-71-89.w92-146.abo.wanadoo.fr] has joined ##stm32 2012-06-08T18:58:54 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-08T19:09:00 < ratatata> nu 2012-06-08T19:09:22 < Thorn> un 2012-06-08T19:24:03 < Laurenceb> how do i build st-util 2012-06-08T19:24:05 * Laurenceb forgot 2012-06-08T19:24:25 < Rickta59> ./autogen.sh; ./configure; make 2012-06-08T19:25:21 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer] 2012-06-08T19:25:33 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 246 seconds] 2012-06-08T19:26:24 < Laurenceb> sweet 2012-06-08T19:26:27 < Laurenceb> 15KB/s 2012-06-08T19:26:39 < Laurenceb> nice work 2012-06-08T19:31:57 < jon1012> (woohoo got stm32f4 to work with enc28j60 and lwip stack :D) 2012-06-08T19:32:59 < Rickta59> do you get close to 10MBits with that? 2012-06-08T19:33:43 < jon1012> I am trying to check the speed right now :) 2012-06-08T19:35:26 < Rickta59> i'd be happy to have SLIP working ; ) 2012-06-08T19:43:22 < jon1012> hehe 2012-06-08T19:44:46 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-08T19:54:22 <+Steffanx> Why an f4 with en enc28j60 jon1012 ?!?!?!?! 2012-06-08T19:54:48 < jon1012> Steffanx, I had some dev boards with it, and it's cheap :) 2012-06-08T19:56:06 < zyp> surely not cheaper than a PHY 2012-06-08T19:56:07 -!- izua [~izua@79.115.171.1] has joined ##stm32 2012-06-08T19:56:07 -!- izua [~izua@79.115.171.1] has quit [Changing host] 2012-06-08T19:56:07 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-08T19:56:07 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-08T20:02:09 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-08T20:07:50 < jon1012> it's dumb to use an enc28j60 with an stm32f4 ? 2012-06-08T20:08:35 <+Steffanx> Nah, some F4's have a built-in mac 2012-06-08T20:08:45 <+Steffanx> All you need is a phy and you have real ethernet :P 2012-06-08T20:08:52 < jon1012> yeah I know 2012-06-08T20:09:04 < jon1012> but seemed too complex at first look 2012-06-08T20:09:23 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-08T20:09:28 < zyp> how is having an external PHY more complex than having an external MAC? 2012-06-08T20:09:34 <+Steffanx> There's a lwip example iirc .. nice thing to start with 2012-06-08T20:09:36 < TitanMKD> hi 2012-06-08T20:09:41 <+Steffanx> lo TitanMKD 2012-06-08T20:09:46 < jon1012> Steffanx, working well with gcc ? 2012-06-08T20:09:55 <+Steffanx> Never tried 2012-06-08T20:09:59 <+Steffanx> Only know it exists 2012-06-08T20:10:06 <+Steffanx> but i'm pretty sure it'll work with gcc 2012-06-08T20:10:23 < jon1012> ok 2012-06-08T20:10:37 < jon1012> I have a couple dp83848 dev board around, I'll give it a try 2012-06-08T20:10:49 < jon1012> (rmii phy seemed to cost more than enc28j60) 2012-06-08T20:10:55 < jon1012> enc28j60 => 2.5 usd 2012-06-08T20:11:09 < jon1012> dp83848 or KSZ**** => 5 usd at least 2012-06-08T20:11:43 <+izua> enc28j60 is pretty lulzy 2012-06-08T20:11:51 <+izua> only thing i have around that works at base10-T 2012-06-08T20:12:11 <+Steffanx> Yeah, with a good phy you at least have real e thernet :) 2012-06-08T20:12:15 < zyp> jon1012, chip or complete board? 2012-06-08T20:12:20 < jon1012> chip 2012-06-08T20:12:25 <+izua> plus, you can always get away with weird lines when people ask you why it does a different thing on their router/switch led 2012-06-08T20:12:33 < zyp> dp83848 is at 2.95 for 1 at digikey 2012-06-08T20:12:36 <+izua> "because it's not a computer!" "because i programmed it to do that" 2012-06-08T20:13:00 <+izua> are there any stm32 dev boards with a phy? 2012-06-08T20:13:13 <+Steffanx> Yes 2012-06-08T20:13:21 <+Steffanx> F4 .. don't know 2012-06-08T20:13:27 < zyp> and enc28j60 is at 3.54 for 1 at digikey 2012-06-08T20:14:22 < jon1012> in france, rs, dp => 5.89 eur per 1, enc28j60 => 2.61 eur per 1 2012-06-08T20:15:08 < zyp> izua, STM3240G-EVAL 2012-06-08T20:18:19 < ratatata> any cheaper boardas ? 2012-06-08T20:18:52 < zyp> make one yourself 2012-06-08T20:19:40 < ratatata> dont wanna make my own 2012-06-08T20:19:55 <+izua> neat, almost 300GBP 2012-06-08T20:20:11 < jon1012> olimex e407 will be good 2012-06-08T20:20:16 < jon1012> but not for sale yet 2012-06-08T20:20:40 <+izua> oh god 2012-06-08T20:20:45 <+izua> the one with the arduino like connectors 2012-06-08T20:20:48 <+izua> WHY GOD WHY 2012-06-08T20:21:03 <+izua> why do people have to take bad designs and make them standards 2012-06-08T20:23:29 <+izua> but yeah, i hope it will be out soon 2012-06-08T20:23:35 < cjbaird> BECAUSE OLIMEX WERE BUTTHURT, THAT'S WHY. 2012-06-08T20:23:41 <+izua> unless it will become a raspberry 2012-06-08T20:24:35 <+izua> how are things with the rpi anyway? last time i heard of them, farnell took over manufacture 2012-06-08T20:24:50 < jon1012> nobody can gets its hand on one 2012-06-08T20:25:05 < jon1012> and it's still closed hardware 2012-06-08T20:25:12 < jon1012> :) 2012-06-08T20:25:15 < cjbaird> Another 15 days before mine shows up. 2012-06-08T20:25:18 <+izua> i like their marketing scheme 2012-06-08T20:25:32 <+izua> "buy the initial historical prototypes fopr insane amount of money, this will make history" 2012-06-08T20:25:42 < zyp> I hear several people get their 2012-06-08T20:25:56 < zyp> Laurenceb got his, even though he didn't even want one 2012-06-08T20:26:24 <+izua> wait, how does that work? 2012-06-08T20:26:31 < cjbaird> In a way, the "hyperhyped gadget flooded into everyone's hands are the first priority" the RPi people did will probably work in their Evil Scheme to get them into Education. 2012-06-08T20:28:09 < cjbaird> Compare that with what the OLPC people did, where only a elistist small number should get one, and the Foundation had to work and work to try to get Government educational groups interested, effectively offering no-cost trails and such. 2012-06-08T20:29:11 < zyp> izua, I guess he was the one here most excited for it, but didn't want to admit it :p 2012-06-08T20:30:40 < cjbaird> Good to see that Microsoft and Intel _haven't_ tried to FUD and sabotage the RPi, though. Their super-small form-factor HTPC product announcements waited until after the RPi shipped. 2012-06-08T20:32:51 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-06-08T20:33:27 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-08T20:42:56 < karlp> assert(ptrs->functionptr); should pass as long as the function ptr isn't NULL right? 2012-06-08T20:43:36 < karlp> as soon as I call assert I go into hardfault again 2012-06-08T20:43:43 < Rickta59> maybe ptrs && ptrs->functionptr 2012-06-08T20:44:07 < karlp> hmm, gdp pretty print of *ptrs manually before hand showed them all being valid 2012-06-08T20:44:15 < karlp> even kindly decoded the addresses to the function names for me 2012-06-08T20:45:01 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-06-08T21:11:43 -!- cjbaird [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-08T21:13:21 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Quit: Quitte] 2012-06-08T21:18:32 < karlp> oh, don't use -fPIC when you're making a .a for stm32 2012-06-08T21:18:40 < karlp> silly me, copying library code from linux 2012-06-08T21:20:28 <+Steffanx> karlp and his libraries 2012-06-08T21:25:30 < Rickta59> is there a way to have the discovery boards provide some kind of serial interface with using an ftdi chip? specifically the F0 board 2012-06-08T21:25:45 < Rickta59> serial as in it would be ok if it was a libusb endpoint 2012-06-08T21:28:04 <+Steffanx> swv .. 2012-06-08T21:28:36 < jpa-> "with using an ftdi chip"? you mean with or without? 2012-06-08T21:28:38 <+Steffanx> The stlink/v2 supports that 2012-06-08T21:28:44 <+Steffanx> i guess without :) 2012-06-08T21:28:49 < jpa-> probably :) 2012-06-08T21:28:59 < jpa-> you could use CP2012 chip instead :P 2012-06-08T21:29:03 <+Steffanx> Ha 2012-06-08T21:29:16 <+Steffanx> or \pl23[something] 2012-06-08T21:29:18 < zyp> I read it as «hey, I want to communicate with my application from my computer in any manner without extra hardware» 2012-06-08T21:29:33 <+Steffanx> Yes 2012-06-08T21:29:41 < jpa-> yeah.. not really possible :) 2012-06-08T21:29:47 <+Steffanx> but only Rickta59 knows what he really meant 2012-06-08T21:29:50 < jpa-> you could write some hack around stlink :P 2012-06-08T21:30:01 <+Steffanx> swv is not hackish :P 2012-06-08T21:30:04 < zyp> how is it, F0 doesn't have usb? 2012-06-08T21:30:05 <+Steffanx> ok, a little 2012-06-08T21:30:09 < jpa-> (or does F0 discovery have stlinkv2?) 2012-06-08T21:30:15 < zyp> jpa-, yes 2012-06-08T21:30:18 <+Steffanx> It's a new board, so ... 2012-06-08T21:30:22 <+Steffanx> Ah, zyp knows it all 2012-06-08T21:30:36 < jpa-> does some program support swv? :) 2012-06-08T21:30:44 <+Steffanx> Software no 2012-06-08T21:30:50 < zyp> no, I just seem to recall that it had the 6-pin connector and not the 4-pin for external swd 2012-06-08T21:30:57 <+Steffanx> Except for the TruStudio windows stuff 2012-06-08T21:31:13 < zyp> but he was fine with a libusb endpoint! 2012-06-08T21:31:20 < karlp> stlinkv1 is end of lifed from ST anyway, 2012-06-08T21:31:25 < karlp> or, "not recommended for new designs" 2012-06-08T21:31:36 < karlp> so I presume the f0 discovery has a v2 like all the others. 2012-06-08T21:31:48 < zyp> yes, it does 2012-06-08T21:32:01 < zyp> «it includes an ST-LINK/V2 embedded debug tool» 2012-06-08T21:32:27 < zyp> so swv from F0 to computer is possible 2012-06-08T21:33:03 < karlp> so, zyp, you've been in super productive mode recently :) .... 2012-06-08T21:33:15 < karlp> bmp does swv doesn't it? 2012-06-08T21:33:24 < zyp> ha 2012-06-08T21:33:25 < zyp> :p 2012-06-08T21:33:40 < karlp> happy summer holidays project? ;) 2012-06-08T21:33:59 < zyp> not sure I've got time for that :p 2012-06-08T21:34:04 <+Steffanx> ... 2012-06-08T21:34:23 <+Steffanx> karlp i know it support something of swv .. but haven't looked into it 2012-06-08T21:34:27 <+Steffanx> *supports 2012-06-08T21:34:41 < zyp> Steffanx, didn't you work on it once? 2012-06-08T21:35:03 <+Steffanx> I was reverse engineering it.. until i found the docs yes :P 2012-06-08T21:35:49 < zyp> does it do anything by default? 2012-06-08T21:36:32 <+Steffanx> Not that i know of.. you have to enable it iirc 2012-06-08T21:38:11 <+Steffanx> Oh, the bmp just pushes it to an endpoint, just like the stlink 2012-06-08T21:38:19 < zyp> yep 2012-06-08T21:38:20 <+Steffanx> i think gsmcmull1n said something about that a while ago 2012-06-08T21:38:38 < zyp> yes, he got some gdb plugin for that 2012-06-08T21:38:44 <+Steffanx> Yes? 2012-06-08T21:38:52 < zyp> haven't had time to play with it yet 2012-06-08T21:39:08 <+Steffanx> Why I don't know about it? 2012-06-08T21:40:37 <+Steffanx> I don't see a plugin in his repo zyp .... 2012-06-08T21:40:39 < zyp> https://github.com/gsmcmullin/magictpa 2012-06-08T21:40:50 <+Steffanx> Ah, another repo 2012-06-08T21:41:46 < dongs> Laurenceb: beap 2012-06-08T21:42:22 <+Steffanx> beep beep 2012-06-08T21:47:25 < karlp> you can drive my car 2012-06-08T21:48:03 <+izua> is there even any driver for a chip, that comes with windows, and does usb-serial and COM port emulation out of the box? 2012-06-08T21:48:45 <+Steffanx> Not that i know of 2012-06-08T21:48:46 <+izua> i thought ftdi had that for a while, thus the reason behind the reverse engineering of ftdi client code, but apparently they also need drivers for CDC to COM emulation >< 2012-06-08T21:49:29 <+Steffanx> windows has standard CDC stuff, but you still need an INF-file 2012-06-08T21:53:52 -!- Laurenceb_ [~Laurence@host109-157-39-186.range109-157.btcentralplus.com] has joined ##stm32 2012-06-08T21:53:56 < dongs> Laurenceb: beep 2012-06-08T21:54:10 <+Steffanx> beep beep 2012-06-08T21:54:13 < dongs> Laurenceb_: do you have e4000 specs laying around somewehre 2012-06-08T21:54:24 <+Steffanx> beep bop bop bop 2012-06-08T21:54:26 < Laurenceb_> no 2012-06-08T21:54:28 < Laurenceb_> i wish 2012-06-08T21:54:30 < dongs> wtf whyn ot 2012-06-08T21:54:42 < dongs> i had the shit somewhere but i cant find it 2012-06-08T21:54:47 < Laurenceb_> i have a hacked e4000 based dvbt board, but no datasheet 2012-06-08T21:54:50 < Laurenceb_> cuz its nda 2012-06-08T21:54:50 <+Steffanx> You can't find that on 4chan dongs 2012-06-08T21:55:06 <+izua> it has 4 in it 2012-06-08T21:55:31 < karlp> doh, git pushed before git svn dcommit, 2012-06-08T21:55:45 <+Steffanx> uh? 2012-06-08T21:55:45 < karlp> now because of the git-svn tags in the commit notes, it thinks they've diverged 2012-06-08T21:55:56 < karlp> stupid dual versioning 2012-06-08T21:56:01 < karlp> need to just drop one :) 2012-06-08T21:56:03 <+Steffanx> Who uses that? 2012-06-08T21:56:25 * Laurenceb_ uses the gnu-radio drivers 2012-06-08T21:57:34 <+Steffanx> How's your rpi doing Laurenceb_? 2012-06-08T21:57:51 < Laurenceb_> havent used it 2012-06-08T21:57:59 < Laurenceb_> its gethering dust like it was designed to do 2012-06-08T21:58:11 <+Steffanx> :( 2012-06-08T21:58:23 <+Steffanx> Give it to me 2012-06-08T21:58:42 < Laurenceb_> i might sell on fleabay 2012-06-08T21:58:43 < dongs> what are you gona do with it? 2012-06-08T21:58:51 <+Steffanx> Or you should try to setup a samba share or ftp server + external hdd 2012-06-08T21:58:57 < dongs> I have a gumstix overo or whatever shite somewhere in a box here 2012-06-08T21:58:58 <+Steffanx> and see if the connection drops when you start using it 2012-06-08T21:59:04 < dongs> i bet thats infinitely more useful than shitberrypi 2012-06-08T21:59:12 <+Steffanx> blablabalbla 2012-06-08T21:59:18 <+Steffanx> dongs, write a blog 2012-06-08T21:59:30 < Laurenceb_> he already did 2012-06-08T21:59:45 <+Steffanx> This isn't the right place for that kind of blog 2012-06-08T21:59:51 < Laurenceb_> lol 2012-06-08T22:00:04 < dongs> http://www.lunix.tv/ one of my blogs 2012-06-08T22:00:15 < Laurenceb_> i was about to link vivians incest blog 2012-06-08T22:00:17 < Laurenceb_> but nvm then 2012-06-08T22:00:21 <+Steffanx> LOL dongs 2012-06-08T22:00:23 < dongs> lfao 2012-06-08T22:01:15 <+Steffanx> Russia - czech 1 - 0 (for those who don't care) 2012-06-08T22:02:25 * Laurenceb_ plays russian anthem 2012-06-08T22:02:34 < Rickta59> yes, I meant without. I'd like to communicate with firmware I write without extra hardware and the F0 discovery board 2012-06-08T22:02:56 < dongs> k 4am passout time 2012-06-08T22:03:04 <+Steffanx> Have a good sleep mr dongs 2012-06-08T22:03:04 < dongs> fuckers gonna wake me up at 8 i am sure 2012-06-08T22:03:10 <+Steffanx> fuckers? 2012-06-08T22:03:32 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-06-08T22:03:37 < Laurenceb_> random people who screw in his house? 2012-06-08T22:03:47 <+izua> above neighbours engaging in loud coitus? 2012-06-08T22:03:53 < Laurenceb_> i used to have that problem 2012-06-08T22:03:56 < Laurenceb_> in my shed 2012-06-08T22:04:02 <+Steffanx> 'problem' 2012-06-08T22:04:11 <+Steffanx> You and your hand liked it very much 2012-06-08T22:04:16 < Laurenceb_> neighbours + local builders 2012-06-08T22:04:23 <+izua> you could just let them in for free if they agreed to be taped 2012-06-08T22:04:25 < Laurenceb_> dogging in my shed 2012-06-08T22:04:30 <+izua> then start a site about it 2012-06-08T22:04:43 < Laurenceb_> good idea 2012-06-08T22:04:48 <+izua> "the rake of luvin" 2012-06-08T22:04:50 <+izua> or something like that 2012-06-08T22:05:14 <+Steffanx> izua and his fantasies 2012-06-08T22:05:28 <+izua> i'm just trying to monetize his shed 2012-06-08T22:05:53 < Laurenceb_> it was my other neighbours that spotted them - shes about 80 2012-06-08T22:05:56 < Laurenceb_> that was a bit odd 2012-06-08T22:06:08 < Rickta59> 80 the woman shagging? 2012-06-08T22:06:23 < Laurenceb_> no, the one who spotted them and told me 2012-06-08T22:06:24 < Rickta59> or 80 the spotter? 2012-06-08T22:06:58 <+Steffanx> ##stm32 gone wrong 2012-06-08T22:07:06 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-08T22:07:13 < Laurenceb_> thats normal 2012-06-08T22:07:43 < Rickta59> so one option would be using the swd protocol in some bizarre manner? 2012-06-08T22:07:53 <+Steffanx> swv 2012-06-08T22:08:15 <+Steffanx> You just have to give the texane stuff support for it 2012-06-08T22:08:18 < zyp> Steffanx, do you know anything about what the stlink accepts? 2012-06-08T22:08:27 <+Steffanx> accepts? 2012-06-08T22:08:30 < Rickta59> serial wire viewer? 2012-06-08T22:09:00 <+Steffanx> Yes, or whatever it's official name is 2012-06-08T22:09:08 < zyp> Steffanx, I have my F4 spitting out async serial at 1960 baud on swv line now :p 2012-06-08T22:09:29 < Rickta59> with the texane stuff? 2012-06-08T22:09:35 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-06-08T22:09:40 < zyp> Steffanx, punching out values via ITM 2012-06-08T22:10:08 < zyp> but stlink wouldn't recognize just anything since it's async 2012-06-08T22:10:23 < zyp> so I need to configure it to spit out what stlink expects 2012-06-08T22:10:26 < zyp> and what is that? 2012-06-08T22:11:11 <+Steffanx> Uhm .. 2012-06-08T22:13:19 < Laurenceb_> nobody knows 2012-06-08T22:13:34 < Laurenceb_> but stlink is much faster now :P 2012-06-08T22:13:40 < Laurenceb_> i got about 15KB/s 2012-06-08T22:14:04 <+Steffanx> Yeah, but it still takes longer than a second even when the fw is only 10k 2012-06-08T22:14:42 <+Steffanx> I actually don't know much about the stm32-stlink part zyp 2012-06-08T22:14:53 < Laurenceb_> a second isnt veyr long 2012-06-08T22:15:05 <+Steffanx> Yes, but it still takes longer than a second .. 2012-06-08T22:15:12 < Laurenceb_> oh noes 2012-06-08T22:15:18 <+Steffanx> 10k/15ks = less than a second :P 2012-06-08T22:15:28 < zyp> the gdbserver does some slowness before it starts flashing 2012-06-08T22:15:30 < Laurenceb_> it takes like 200ms to click a mouse 2012-06-08T22:15:35 < zyp> i.e. before it invokes my code 2012-06-08T22:15:50 < Laurenceb_> yeah i see that too 2012-06-08T22:16:15 <+Steffanx> I just used TruStudio + usb logger to get some info about the stlink-host part zyp 2012-06-08T22:16:24 < zyp> flashing a 1M image takes just over 40s here, and the first ten is spent on some internal shit 2012-06-08T22:16:46 <+Steffanx> I gave up on it when i discovered it's just the raw stream and everything is documented :P 2012-06-08T22:19:09 <+Steffanx> Everything is configurable with the gui .. it also shows the settings iirc zyp 2012-06-08T22:19:33 < zyp> well, not going to dick around with anything now 2012-06-08T22:21:14 <+Steffanx> :) 2012-06-08T22:29:13 < Laurenceb_> the gui?! 2012-06-08T22:29:19 < Laurenceb_> oh truestudio 2012-06-08T22:29:37 <+Steffanx> Yep 2012-06-08T22:48:38 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 240 seconds] 2012-06-08T22:50:54 -!- tavish [~tavish@59.177.10.155] has joined ##stm32 2012-06-08T22:50:55 -!- tavish [~tavish@59.177.10.155] has quit [Changing host] 2012-06-08T22:50:55 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-08T23:07:54 < lukky513> zyp: hey 2012-06-08T23:08:22 < zyp> hi 2012-06-08T23:08:24 < lukky513> I finally made virtual COM enumerate 2012-06-08T23:09:56 <+Steffanx> A free beer for us? 2012-06-08T23:10:18 <+Steffanx> Or wodka as you are probably more into that 2012-06-08T23:10:47 < Laurenceb_> cdc ftw 2012-06-08T23:10:53 < lukky513> Steffanx: thus I should offer it to myself, lol ;) 2012-06-08T23:11:09 <+Steffanx> and everyone in ##stm32 2012-06-08T23:11:13 < lukky513> but I wouldn't, because it wasn't working due to my "retardness" 2012-06-08T23:12:43 < Laurenceb_> at least you have your own olypics 2012-06-08T23:36:46 <+izua> the first time i had to debug a usb-cdc, i couldn't get it to work on two different boards, three different boxes. 2012-06-08T23:36:55 <+izua> turns out my typeA-typeB cable was borked 2012-06-08T23:38:56 < jpa-> i'm having trouble with the chibios usb cdc hanging when i write data to it too fast 2012-06-08T23:47:01 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving] 2012-06-08T23:54:44 <+izua> http://www.thumpweb.com/Z1/img/aolmetro11.jpg 2012-06-08T23:55:29 < zyp> then write slower 2012-06-08T23:59:58 < jpa-> 4kB/s is not that fast anyway --- Day changed Sat Jun 09 2012 2012-06-09T00:00:08 < zyp> :) 2012-06-09T00:01:09 < jpa-> apparently the problem is that printf was doing size-1 writes, and the serial driver is not smart enough to combine them 2012-06-09T00:01:19 < jpa-> so it sends each byte in a separate usb packet :) 2012-06-09T00:01:34 < jpa-> snprintf and a single write helped :P 2012-06-09T00:02:20 < jpa-> hmm no, actually it didn't fix it completely 2012-06-09T00:20:39 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 250 seconds] 2012-06-09T00:21:24 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32 2012-06-09T00:26:45 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-06-09T00:32:52 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-09T00:48:17 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2012-06-09T01:04:15 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-09T01:05:09 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Read error: Connection reset by peer] 2012-06-09T01:21:13 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-09T01:21:24 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-09T01:23:51 -!- emeb1 [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-09T01:24:31 -!- emeb1 [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Client Quit] 2012-06-09T01:24:41 -!- emeb1 [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-09T01:25:43 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Ping timeout: 245 seconds] 2012-06-09T01:26:38 -!- emeb1 [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Read error: Connection reset by peer] 2012-06-09T01:26:46 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-09T01:26:48 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Client Quit] 2012-06-09T01:31:50 -!- feurig [~don@198.202.31.180] has joined ##stm32 2012-06-09T01:36:44 -!- Netsplit *.net <-> *.split quits: feurig_ 2012-06-09T01:54:13 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 248 seconds] 2012-06-09T02:31:05 -!- Laurenceb_ [~Laurence@host109-157-39-186.range109-157.btcentralplus.com] has quit [Ping timeout: 260 seconds] 2012-06-09T02:50:36 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-09T03:09:24 -!- GargantuaSauce [~sauce@blk-252-42-151.eastlink.ca] has quit [Read error: Connection reset by peer] 2012-06-09T03:29:58 -!- GargantuaSauce [~sauce@blk-252-42-151.eastlink.ca] has joined ##stm32 2012-06-09T03:36:35 -!- gsmcmull1n is now known as gsmcmullin 2012-06-09T04:00:18 -!- peabody128 [~peabody12@128.249.96.123] has joined ##stm32 2012-06-09T04:04:06 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 244 seconds] 2012-06-09T04:04:06 -!- peabody128 is now known as peabody124 2012-06-09T04:11:22 <+dekar> izua, I managed to get the GCCs new linker to work with TNT, though it ignores most of my linker scripts :/ 2012-06-09T04:12:14 <+dekar> as a result it drops all sections 2012-06-09T04:12:23 -!- xx [~Arizona_B@modemcable055.174-83-70.mc.videotron.ca] has joined ##stm32 2012-06-09T04:40:14 < dongs> sup dongs 2012-06-09T04:46:13 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer] 2012-06-09T04:53:00 < dongs> https://fbcdn-sphotos-a.akamaihd.net/hphotos-ak-ash4/s320x320/389603_326503350759995_2134464725_n.jpg 2012-06-09T04:56:22 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Quit: Leaving.] 2012-06-09T05:01:01 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-06-09T05:14:57 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32 2012-06-09T05:32:23 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-09T05:47:20 -!- [7] [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-09T05:47:26 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-09T06:12:42 < dongs> wassup 2012-06-09T06:26:12 < R2COM> sky is up 2012-06-09T07:23:15 <+dekar> SAT vs YAG vs CS vs TNT: http://pastebin.com/uJUe7rbX 2012-06-09T07:28:01 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-09T07:29:00 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-09T07:35:02 < dongs> a real comparison would also get it compiled by something real, i.e. armcc 2012-06-09T07:46:37 <+dekar> dongs, I'll stay with GCC :) 2012-06-09T08:05:00 < zippe> dekar: what are the toolchains, and what's the thing you're building? 2012-06-09T08:05:32 < zippe> Assuming CS is codesourcery and YAG is yagarto, SAT would be SummonArmToolchain, what's TNT? 2012-06-09T08:06:01 < zippe> Without knowing the gcc versions and compile options, not sure whether that's very helpful 2012-06-09T08:17:27 <+dekar> zippe, TNT https://github.com/EliasOenal/TNT 2012-06-09T08:18:40 <+dekar> zippe, I just used my makefile for all of them, -Os, gc-sections etc 2012-06-09T08:18:51 <+dekar> for toolchains supporting it I also used LTO 2012-06-09T08:21:12 <+dekar> feel free to compile dhrystone or coremark if you want a better quality benchmark 2012-06-09T08:21:26 <+dekar> I just did a quick test with what I had 2012-06-09T08:27:44 <+dekar> zippe, TNT, SAT and YAG were the latest ones, CS is some version I found on my disk - I posted the date code though 2012-06-09T08:27:58 <+dekar> they're all open source so you can compare the compile options 2012-06-09T09:14:19 < zippe> Hmm, yeah, so TNT is 4.7, the rest are probably still on 4.6 2012-06-09T09:14:33 < zippe> But TNT is building Linaro, not gcc-embedded 2012-06-09T09:14:44 < zippe> Do you have the arm baremetal toolchain in there? 2012-06-09T09:16:00 < zippe> And TNT is m3-only 2012-06-09T10:43:16 -!- TeknoJuce [~TeknoJuce@bas1-london15-1279301811.dsl.bell.ca] has joined ##stm32 2012-06-09T10:43:16 -!- TeknoJuce [~TeknoJuce@bas1-london15-1279301811.dsl.bell.ca] has quit [Changing host] 2012-06-09T10:43:16 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-09T10:45:45 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 260 seconds] 2012-06-09T10:48:45 -!- cjbaird [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-09T10:49:57 -!- peabody128 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-09T10:49:57 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer] 2012-06-09T10:49:57 -!- peabody128 is now known as peabody124 2012-06-09T11:06:52 -!- tavish [~tavish@120.56.236.29] has joined ##stm32 2012-06-09T11:06:52 -!- tavish [~tavish@120.56.236.29] has quit [Changing host] 2012-06-09T11:06:52 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-09T11:54:26 -!- pelrun__ [~pelrun@14-202-70-213.static.tpgi.com.au] has joined ##stm32 2012-06-09T12:36:52 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-09T12:40:15 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-09T12:40:19 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-09T12:52:00 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-09T13:04:23 -!- Laurenceb_ [~Laurence@host109-157-39-186.range109-157.btcentralplus.com] has joined ##stm32 2012-06-09T13:12:32 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-09T13:13:21 < ratatata> nu 2012-06-09T13:15:41 <+Steffanx> nu 2012-06-09T13:17:19 < Tectu> nu 2012-06-09T13:17:47 <+Steffanx> How do you pronounce that ratatata ? 2012-06-09T13:27:38 < ratatata> like moo 2012-06-09T13:27:43 < ratatata> but shorter 2012-06-09T13:28:05 < ratatata> and n in the plce of m 2012-06-09T13:28:43 <+Steffanx> n00b without the b? :) 2012-06-09T13:28:53 <+Steffanx> Like google translate pronounces it? 2012-06-09T13:28:57 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-09T13:33:54 < Tectu> Steffanx, got some sparetime, eh? :D 2012-06-09T13:34:03 <+Steffanx> uh? 2012-06-09T13:36:30 < Tectu> Steffanx, when do the netherlands play today? 2012-06-09T13:36:36 < Tectu> gf is reallife AFK abd needs result :D 2012-06-09T13:36:44 <+Steffanx> 18.00 2012-06-09T13:36:46 < Tectu> and i don't have any clue about soccer 2012-06-09T13:36:52 < Tectu> Steffanx, against germany, right? 2012-06-09T13:36:56 <+Steffanx> No, Denmark 2012-06-09T13:37:00 < Tectu> ah 2012-06-09T13:37:21 < Tectu> can I ask you in the evening for some results? :D 2012-06-09T13:37:33 <+Steffanx> Hmpf :P 2012-06-09T13:37:39 <+Steffanx> Go watch it 2012-06-09T13:38:12 < Tectu> naaa 2012-06-09T13:38:15 < Tectu> it's so boring :D 2012-06-09T13:38:19 < Tectu> i don't like soccer 2012-06-09T13:38:27 < Tectu> my gf also does just watch the netherlands :D 2012-06-09T13:38:34 < Tectu> don't like sports either 2012-06-09T13:38:45 <+Steffanx> lol 2012-06-09T13:39:02 < Tectu> as i said, patriotistic :D 2012-06-09T13:39:11 <+Steffanx> Germany is Wednesday 2012-06-09T13:39:17 < Tectu> aye 2012-06-09T13:39:22 < Tectu> also 1800? 2012-06-09T13:39:28 <+Steffanx> 20.45 2012-06-09T13:39:32 < Tectu> okay 2012-06-09T13:39:39 < Tectu> are dutch people even good at soccer? 2012-06-09T13:39:50 <+Steffanx> but you are in a different time zone/line :P 2012-06-09T13:40:06 < Tectu> no, just my server 2012-06-09T13:40:12 <+Steffanx> You know they lost the world cup final in 2010 :P 2012-06-09T13:40:13 < Tectu> switzerland, remember? 2012-06-09T13:40:24 < Tectu> Steffanx, aaah :D so they are not that bad, aye 2012-06-09T13:40:32 < Tectu> Steffanx, GMT+01:00 here 2012-06-09T13:40:59 <+Steffanx> Oh, same here 2012-06-09T13:41:04 <+Steffanx> Fix your server time 2012-06-09T13:41:20 < Tectu> not my server 2012-06-09T13:41:27 < Tectu> and server also not here ;) 2012-06-09T13:42:09 < Tectu> how about switzerland in last EM and WM? 2012-06-09T13:42:23 < Tectu> afaik they sucked, only got to quarter final somewhere, right? 2012-06-09T13:42:36 <+Steffanx> Don't know :P 2012-06-09T13:42:47 <+Steffanx> Don't care about switzerland 2012-06-09T13:42:53 <+Steffanx> :P 2012-06-09T13:43:57 < Tectu> ass :P 2012-06-09T13:44:45 < BrainDamage> they should draw every match 2012-06-09T13:45:20 < Tectu> haha 2012-06-09T13:45:25 <+Steffanx> That's better for the italian match fixers BrainDamage ? 2012-06-09T13:45:32 <+Steffanx> No, it's not 2012-06-09T13:45:32 < ratatata> Steffanx, exactlyb, n00b without b 2012-06-09T13:46:20 < BrainDamage> I don't care, I don't watch sport, I prefer doing it 2012-06-09T13:46:37 <+Steffanx> That's all up to you 2012-06-09T13:46:57 < BrainDamage> or better, better than I don't care, I don't even know 2012-06-09T13:47:08 < Tectu> using ENC28J60 shouldn't be that hard, right? 2012-06-09T13:48:53 < zyp> no, just kind of pointless when you can get a stm32 with internal mac 2012-06-09T13:49:13 < BrainDamage> what about phy? 2012-06-09T13:49:18 < BrainDamage> eithernet phy 2012-06-09T13:49:24 < BrainDamage> -I 2012-06-09T13:49:47 <+Steffanx> You need that, but it's still better than a enc28j60 2012-06-09T13:49:48 <+Steffanx> *an 2012-06-09T13:50:34 < Tectu> zyp, just have STM32F103VET without internal Ethernet, also ENC28J60 on my board 2012-06-09T13:50:48 < Tectu> did someone ever use that chip? 2012-06-09T13:50:52 < zyp> yes 2012-06-09T13:51:07 < zyp> some guy come here talking about doing just that yesterday 2012-06-09T13:51:15 <+Steffanx> jon something iirc 2012-06-09T13:51:28 <+Steffanx> 2012-06-09T13:51:40 < ratatata> Steffanx, what is iirc ? 2012-06-09T13:51:51 <+Steffanx> if i remember correctly 2012-06-09T13:51:52 < zyp> if I recall correctly 2012-06-09T13:51:58 < Laurenceb_> maybe you could attach a SD card and so SAMBA? 2012-06-09T13:52:00 <+Steffanx> I go for my version zyp 2012-06-09T13:52:11 < zyp> Steffanx, pretty much same meaning 2012-06-09T13:52:20 <+Steffanx> samba Laurenceb_ ?! 2012-06-09T13:52:30 <+Steffanx> As in that windows sharing stuff? 2012-06-09T13:52:39 < Laurenceb_> as opposed to using rpi 2012-06-09T13:52:48 < Laurenceb_> as you were saying 2012-06-09T13:53:13 <+Steffanx> I don't think it can do 9-10MB/s .. 2012-06-09T13:53:17 < Tectu> so none of your guys here does have some sharable sourcecode yet, right? 2012-06-09T13:53:26 < Tectu> Steffanx, ENC28J60 is 10 T-base 2012-06-09T13:53:48 <+Steffanx> Even the samba process has a load of 75% on the rpi with 9-10MB/s Laurenceb_ ... 2012-06-09T13:53:59 < Laurenceb_> oh 2012-06-09T13:54:07 < pelrun__> I saw the mikroelectronika stm32 boards yesterday, theyre using a lan8726a phy 2012-06-09T13:54:15 <+Steffanx> That sentence is not correct, but you probably understand what i meant :P 2012-06-09T13:54:17 < pelrun__> seems to be fairly small and easy to route 2012-06-09T13:54:26 < zyp> Steffanx, isn't smb known to be rather inefficient? 2012-06-09T13:54:42 <+Steffanx> Probably 2012-06-09T13:54:54 < zyp> are you sharing with windows computers? 2012-06-09T13:55:00 < zyp> otherwise, you could just use nfs 2012-06-09T13:55:00 <+Steffanx> No, OS X 2012-06-09T13:55:07 < zyp> then nfs 2012-06-09T13:55:10 <+Steffanx> No :P 2012-06-09T13:55:20 <+Steffanx> The current kernel has no nfs support 2012-06-09T13:55:30 < zyp> oh 2012-06-09T13:55:30 < BrainDamage> use ssh with10mbit key! 2012-06-09T13:55:50 < zyp> then you could try afpd 2012-06-09T13:55:51 < zyp> :p 2012-06-09T13:56:06 <+Steffanx> And the ethernet connection drops anyway :P 2012-06-09T13:56:10 <+Steffanx> So it's useless 2012-06-09T13:56:24 < zyp> sounds too slow to be useful anyway 2012-06-09T13:56:42 <+Steffanx> What? 9-10Mbyte/s isn't that bad 2012-06-09T13:56:50 <+Steffanx> On an 100mbit network 2012-06-09T13:56:53 < zyp> what for? 2012-06-09T13:57:05 <+Steffanx> Basic ftp/samba sharing stuff 2012-06-09T13:57:11 <+Steffanx> Nah, I was just messing around 2012-06-09T13:57:15 <+Steffanx> And it terribly failed 2012-06-09T13:57:26 < zyp> that's just it, 100mbit networks is too slow to be useful for file transfer stuff :p 2012-06-09T13:57:27 <+Steffanx> I'll get me a real NAS when i need something like that 2012-06-09T13:57:40 <+Steffanx> No, it's fast enough for my purposes 2012-06-09T13:57:53 <+Steffanx> My pc can multitask you know 2012-06-09T13:58:42 < zyp> yes, and to do more you'd like it to access files even faster :p 2012-06-09T13:58:56 <+Steffanx> It's just storage 2012-06-09T13:59:06 <+Steffanx> backup stuff 2012-06-09T13:59:33 <+Steffanx> Anyway, it was just a test and it failed 2012-06-09T14:00:50 < zyp> my storage server is fast enough that the gigabit ethernet connection becomes the bottleneck, and you're talking about speeds only a tenth of that 2012-06-09T14:01:25 <+Steffanx> Yes yes, but it's still fast enough for me :P 2012-06-09T14:01:51 < zyp> even single hard drives nowadays pushes data way faster than 100 Mb/s 2012-06-09T14:03:05 < zyp> although, I guess it doesn't have to be fast if you don't use it :p 2012-06-09T14:03:54 < zyp> I have a storage server because that lets me move all the noisy harddrives out of my workstation and into another room where I can't hear them :p 2012-06-09T14:04:18 <+Steffanx> My hdd's aren't noise at all 2012-06-09T14:04:27 <+Steffanx> Or do you use 10k rpm drives? 2012-06-09T14:04:39 <+Steffanx> *noisy 2012-06-09T14:05:58 < zyp> no, normal 7200rpm drives 2012-06-09T14:06:26 < zyp> and I'm not talking about just the drive, but the entire infrastructure to house them with cooling and all 2012-06-09T14:07:04 <+Steffanx> You did talk about the driver, but .. nah nvm :P 2012-06-09T14:07:08 <+Steffanx> *drives 2012-06-09T14:07:17 < zyp> of course 2012-06-09T14:07:34 < zyp> but if I don't have drives in my workstation, I don't need to cool them either 2012-06-09T14:07:37 < BrainDamage> you're getting 10 MB with smb on a rpi as nas? 2012-06-09T14:07:41 < Laurenceb_> http://www.eizo.com/global/products/duravision/fdh3601/ 2012-06-09T14:07:43 < BrainDamage> 10M/s* 2012-06-09T14:07:49 <+Steffanx> BrainDamage, yes 2012-06-09T14:07:58 <+Steffanx> but it terribly fails after a while 2012-06-09T14:07:59 < BrainDamage> from usb or sd? 2012-06-09T14:08:01 <+Steffanx> USB 2012-06-09T14:08:09 <+Steffanx> External hdd 2012-06-09T14:08:39 < zyp> Laurenceb_, I hear the display dongs is using does the same resolution at 22" 2012-06-09T14:08:50 < Laurenceb_> yeah 2012-06-09T14:09:35 <+Steffanx> I need a magnifying glass for a screen like that :P 2012-06-09T14:19:37 < Tectu> can i make GDB outputting a variable on a given interval, without halting the program? 2012-06-09T14:23:32 < Laurenceb_> i think so 2012-06-09T14:23:38 < Laurenceb_> less sure about with texane 2012-06-09T14:27:40 < dongs> Tectu: standard feature in any IDE 2012-06-09T14:27:41 < dongs> watch window 2012-06-09T14:28:06 < dongs> o rite u said gdb 2012-06-09T14:28:29 < Tectu> dongs, do you have friends? 2012-06-09T14:29:01 < dongs> no 2012-06-09T14:33:41 < gsmcmullin> Tectu: You can do 'watch ' and then commands ; cont; end 2012-06-09T14:33:58 < gsmcmullin> It'll show you when your variable changes. 2012-06-09T14:34:11 < gsmcmullin> It does halt the program, but hopefully not for too long. 2012-06-09T14:34:18 < Tectu> thanks gsmcmullin 2012-06-09T14:41:24 < R2COM> dongs where r u from 2012-06-09T14:45:08 < dongs> israel 2012-06-09T14:46:37 <+Steffanx> And he as a house + webshop in japan 2012-06-09T14:47:46 < R2COM> oh 2012-06-09T14:47:46 < dongs> weabooshop 2012-06-09T14:47:58 < R2COM> :O 2012-06-09T14:48:23 <+Steffanx> You know he's famous R2COM ? 2012-06-09T14:48:33 < R2COM> eh 2012-06-09T14:48:34 < R2COM> wait 2012-06-09T14:48:40 < R2COM> Steffanx: i think i saw you somewhere 2012-06-09T14:48:45 < R2COM> i cant remember where 2012-06-09T14:48:46 < R2COM> oh shit 2012-06-09T14:48:47 <+Steffanx> I think i saw you somewhere too 2012-06-09T14:48:48 <+Steffanx> . 2012-06-09T14:48:48 <+Steffanx> . 2012-06-09T14:48:48 <+Steffanx> . 2012-06-09T14:48:48 <+Steffanx> . 2012-06-09T14:48:48 <+Steffanx> . 2012-06-09T14:48:50 <+Steffanx> . 2012-06-09T14:48:50 < R2COM> sparfkun 2012-06-09T14:48:52 <+Steffanx> . 2012-06-09T14:48:52 < R2COM> yea yea 2012-06-09T14:48:57 <+Steffanx> Ha :P 2012-06-09T14:49:08 < R2COM> you are following me 2012-06-09T14:49:15 <+Steffanx> No, you me 2012-06-09T14:49:15 < R2COM> probably some fucking spy 2012-06-09T14:49:18 < R2COM> ok 2012-06-09T14:50:13 < R2COM> so 2012-06-09T14:50:25 < R2COM> nothing 2012-06-09T14:50:30 <+Steffanx> null 2012-06-09T14:50:32 < R2COM> forget 2012-06-09T14:50:33 < R2COM> yea 2012-06-09T14:50:35 < R2COM> exactly 2012-06-09T14:50:38 < R2COM> hahaha 2012-06-09T14:52:20 < Tectu> it's awesome how many times i get segfault from taxene 2012-06-09T14:52:34 < R2COM> i havent 2012-06-09T14:52:35 <+Steffanx> What kind of weird stuff you do? 2012-06-09T14:52:40 < R2COM> you using Whitdows? 2012-06-09T14:52:45 < R2COM> sorry 2012-06-09T14:52:47 < R2COM> Shitdows? 2012-06-09T14:52:52 < R2COM> Microfuck Shitdows? 2012-06-09T14:52:56 <+Steffanx> Run it in valgrind and try to do some debugging Tectu 2012-06-09T14:53:24 < Tectu> Steffanx, well 2012-06-09T14:53:31 < Tectu> Steffanx, not now, when i get time later on, maybe 2012-06-09T14:53:47 < zyp> only time it segfaulted for me was when I was writing the F4 loader and made a typo :p 2012-06-09T14:54:06 < R2COM> zyp how is Norway? 2012-06-09T14:54:13 < zyp> norwegian 2012-06-09T14:54:25 <+Steffanx> Cold, rainy and snowy 2012-06-09T14:54:30 < R2COM> snowy 2012-06-09T14:54:32 < R2COM> no shit? 2012-06-09T14:54:34 < zyp> ha 2012-06-09T14:54:48 < zyp> slight rain when I went out earlier today 2012-06-09T14:54:56 <+Steffanx> If you want shit i can give you some R2COM 2012-06-09T14:55:04 < zyp> 13°C 2012-06-09T14:55:11 < R2COM> Steffanx: you dont make sense, as always 2012-06-09T14:55:32 < R2COM> Steffanx: your response is ultimately slow, and... nonsense 2012-06-09T14:55:45 < R2COM> zyp 2012-06-09T14:55:47 <+Steffanx> You should look better at the things you send to us 2012-06-09T14:55:47 < R2COM> good temp 2012-06-09T14:56:14 <+Steffanx> My reply was sent within 30 second .. 2012-06-09T14:56:17 <+Steffanx> isn't that fast enough? 2012-06-09T14:56:19 <+Steffanx> *seconds 2012-06-09T14:56:24 < R2COM> Steffanx: i dont send you anything dude, you probably wrong... you wanted Santa... im not Santa 2012-06-09T14:56:30 < R2COM> no its not 2012-06-09T14:56:33 < R2COM> go to Santa 2012-06-09T14:56:35 < R2COM> he has shit for you 2012-06-09T14:56:40 <+Steffanx> I'm sure you send things to me 2012-06-09T14:56:43 <+Steffanx> bits and bytes 2012-06-09T14:56:46 < R2COM> no 2012-06-09T14:56:57 < R2COM> not to you 2012-06-09T14:56:58 < R2COM> sorry 2012-06-09T14:57:02 < R2COM> go get Santa 2012-06-09T14:57:15 <+Steffanx> So this is .. cosmic interference ? 2012-06-09T14:57:23 < R2COM> no, its your overdose 2012-06-09T14:58:10 <+Steffanx> No, only flyback does things like that 2012-06-09T14:58:41 < R2COM> whatever 2012-06-09T14:58:46 < R2COM> you dont make sense 2012-06-09T14:58:46 < R2COM> ok 2012-06-09T14:59:00 <+Steffanx> Isn't that the idea behind this conversation? 2012-06-09T14:59:30 < R2COM> no, there is noone behind, if there were, you'd be in trouble 2012-06-09T14:59:45 <+Steffanx> There's no need to make sense at all in this conversation 2012-06-09T15:00:08 < R2COM> then, go to sleep 2012-06-09T15:00:14 <+Steffanx> No, it's 14.00 2012-06-09T15:00:26 < R2COM> go to sleep kiddy time 2012-06-09T15:00:34 < R2COM> right after lunch 2012-06-09T15:01:04 < zyp> oh behave 2012-06-09T15:01:10 <+Steffanx> Yes Sir! 2012-06-09T15:01:21 < R2COM> good 2012-06-09T15:02:25 < zyp> hmm, ordering a suitcase online must be one of the dumbest things I've done 2012-06-09T15:02:43 <+Steffanx> Uh? 2012-06-09T15:02:51 <+Steffanx> I think i did that as wel 2012-06-09T15:02:54 <+Steffanx> l 2012-06-09T15:03:00 < zyp> it haven't arrived yet, and I'm leaving monday, so now I have to go buy another in a store 2012-06-09T15:03:05 <+Steffanx> Haha 2012-06-09T15:03:21 <+Steffanx> So you're going to visit dongs too? 2012-06-09T15:04:09 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.] 2012-06-09T15:05:21 <+Steffanx> How many weeks you'll be in Japan zyp ? 2012-06-09T15:05:46 < zyp> four or so 2012-06-09T15:05:51 <+Steffanx> Nice 2012-06-09T15:06:02 <+Steffanx> Alone? 2012-06-09T15:06:09 < zyp> no 2012-06-09T15:08:53 < Laurenceb_> watch out for tsunamis 2012-06-09T15:08:57 < Laurenceb_> and trolls 2012-06-09T15:09:06 < Laurenceb_> and fuckular3000 races 2012-06-09T15:09:16 < dongs> haha spies 2012-06-09T15:09:19 <+Steffanx> I think he has enough experience with trolls 2012-06-09T15:09:44 <+Steffanx> So no need to watch out for them 2012-06-09T15:10:11 <+Steffanx> dongs, which one you like most? 2012-06-09T15:10:25 < dongs> one hwat 2012-06-09T15:10:25 <+Steffanx> Oh, no that's called "totally spies" 2012-06-09T15:11:08 <+Steffanx> http://en.wikipedia.org/wiki/Totally_Spies! 2012-06-09T15:11:34 < Laurenceb_> http://static.rcgroups.net/forums/attachments/3/2/4/0/5/7/a4918699-78-DSCN7695.jpg 2012-06-09T15:11:46 <+Steffanx> Another pro job 2012-06-09T15:12:07 <+Steffanx> Seriously .. he does that on purpose, doesn't he? 2012-06-09T15:12:16 < Laurenceb_> hes got to be trolling 2012-06-09T15:12:36 <+Steffanx> Even my first smd board looked better 2012-06-09T15:12:59 < dongs> if he's trolling, he's been doing it for over a year 2012-06-09T15:13:06 < dongs> and managed to get people to give him liek $1500 2012-06-09T15:13:15 <+Steffanx> I guess he overtrolled you 2012-06-09T15:13:29 < pelrun__> geez 2012-06-09T15:13:33 < Laurenceb_> he trolls at trolling 2012-06-09T15:13:58 < dongs> dualcore dsPIC 2012-06-09T15:14:00 < dongs> for OSD 2012-06-09T15:14:06 < dongs> when a singlecore F103 would do the job 10x better 2012-06-09T15:14:11 < Tectu> he trolled before it was cool 2012-06-09T15:14:12 < dongs> in 4x less space 2012-06-09T15:14:17 < pelrun__> I'm actually working on a contract atm that's in the rc space, and I was seriously considering adding an osd to it (since it's just a couple of discrete components on some stm32 pins) 2012-06-09T15:14:51 < Laurenceb_> you know theres a maxim ic that does osd? 2012-06-09T15:14:52 < pelrun__> seeing osd's like that thing is just funny to me now 2012-06-09T15:14:57 < pelrun__> yeah, for $20 2012-06-09T15:15:03 < Laurenceb_> who cares 2012-06-09T15:15:15 < Laurenceb_> when its veyr small quantity 2012-06-09T15:15:17 < pelrun__> or I can do it for 10c 2012-06-09T15:15:21 < pelrun__> it's not small quantity 2012-06-09T15:15:27 < pelrun__> this is going to be a commercial product 2012-06-09T15:15:31 < Laurenceb_> ah 2012-06-09T15:16:03 < Laurenceb_> i was wonderng about doing color osd using multiple timers 2012-06-09T15:16:14 < pelrun__> I don't really see the need for colour 2012-06-09T15:16:26 < pelrun__> but it'd be pretty cool 2012-06-09T15:16:27 <+Steffanx> Everything needs color nowadays 2012-06-09T15:16:34 <+Steffanx> (and usb) 2012-06-09T15:16:35 < pelrun__> actually, have a look at lft's stuff 2012-06-09T15:16:46 < Tectu> Steffanx, bluetooth! you forgot bluetooth! 2012-06-09T15:16:46 < pelrun__> he generates colour pal signals from a small avr 2012-06-09T15:16:47 < Laurenceb_> couple of timers doing the PAL stuff 2012-06-09T15:16:49 < pelrun__> it's insane 2012-06-09T15:17:08 <+Steffanx> Incl. sound and stuff 2012-06-09T15:17:12 < pelrun__> http://www.linusakesson.net/scene/phasor/index.php 2012-06-09T15:17:13 <+Steffanx> That's a nice project indeed 2012-06-09T15:17:22 < Tectu> Steffanx, and at least 16GB of DDRIII 2012-06-09T15:17:44 < pelrun__> if an avr can do it, it should be trivial for an arm 2012-06-09T15:17:59 < pelrun__> of course, he's using a bit of a trick to do it, so it wouldn't really work for NTSC 2012-06-09T15:18:17 < Tectu> what's NTSC? 2012-06-09T15:18:38 <+Steffanx> I like his fancy boards 2012-06-09T15:18:39 < pelrun__> american analogue colour tv standard 2012-06-09T15:18:49 < pelrun__> also known as "never the same colour" 2012-06-09T15:18:51 < Laurenceb_> nice 2012-06-09T15:19:03 < Tectu> lol 2012-06-09T15:19:03 < Laurenceb_> yeah i was thinking of the same thing on a stm 2012-06-09T15:19:14 < dongs> < Laurenceb_> you know theres a maxim ic that does osd? 2012-06-09T15:19:18 < dongs> yeah its textonly a nd shit 2012-06-09T15:19:27 < dongs> with stm32 you can do like fully graphical shit, double buffered. 2012-06-09T15:19:34 < pelrun__> dongs, exactly 2012-06-09T15:19:48 <+Steffanx> Can you write a sentence without 'shit' in it dongs ? :P 2012-06-09T15:19:59 < pelrun__> fuck no 2012-06-09T15:20:35 < pelrun__> there's a polish guy who posted some youtube vids of a very nice stm32 osd, but without any build details >:( 2012-06-09T15:21:21 < pelrun__> http://www.youtube.com/watch?v=0ZVnD1GM1bQ 2012-06-09T15:21:30 < Tectu> Steffanx, he actually did: < Laurenceb_> you know theres a maxim ic that does osd? 2012-06-09T15:21:47 <+Steffanx> That was a quote, that doesn't count 2012-06-09T15:21:49 < Laurenceb_> lol 2012-06-09T15:22:05 < Tectu> dafuq is OSD? 2012-06-09T15:22:10 < pelrun__> on screen display 2012-06-09T15:22:19 < Tectu> Steffanx, i gave my best :D 2012-06-09T15:22:23 < pelrun__> basically overlaying text/graphics onto an existing video signal 2012-06-09T15:23:20 < Tectu> is that hard to do? 2012-06-09T15:23:33 < Tectu> looks nice 2012-06-09T15:27:15 < pelrun__> not really 2012-06-09T15:27:53 < pelrun__> synchronising with the hsync/vsync pulses is the only tricky part 2012-06-09T15:27:59 < pelrun__> I found this http://www.rcgroups.com/forums/showthread.php?t=1473207 2012-06-09T15:28:23 < pelrun__> which uses the comparator on an avr to do it, pity the stm32 doesn't have one 2012-06-09T15:28:42 < pelrun__> or you could spend money on a separate sync separator chip (bleh) 2012-06-09T15:28:43 < Tectu> i never ever used AVRs comperator 2012-06-09T15:29:06 < Laurenceb_> lol 2012-06-09T15:29:15 < Laurenceb_> and that guy cant do it with two pics 2012-06-09T15:29:18 < Laurenceb_> *dspics 2012-06-09T15:29:19 <+Steffanx> The low power F1's have a comparator don't they? 2012-06-09T15:29:27 < Laurenceb_> the L1? 2012-06-09T15:29:28 < Laurenceb_> yes 2012-06-09T15:29:31 <+Steffanx> L1 yes 2012-06-09T15:29:33 < pelrun__> F1's definitely don't 2012-06-09T15:29:33 <+Steffanx> Not F1 2012-06-09T15:29:37 < pelrun__> didn't know about the L1 2012-06-09T15:29:45 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 256 seconds] 2012-06-09T15:29:47 < Laurenceb_> yeah its annoying - comparator is useful 2012-06-09T15:29:53 <+Steffanx> Yeah 2012-06-09T15:30:01 < pelrun__> I was just going to throw the ADC at the signal with a watchdog :) 2012-06-09T15:30:17 < Laurenceb_> lol yeah thats what the suggest 2012-06-09T15:30:27 < Laurenceb_> it seems silly but i guess it kind of works 2012-06-09T15:31:15 <+Steffanx> I used a fast external comparator + external interrupt :) 2012-06-09T15:31:30 < pelrun__> that'll do it too 2012-06-09T15:32:17 < pelrun__> just for my application it's not really an intended function, just a nice bonus if I can sneak the hardware in there trivially (so pretty much just a few resistors and caps) 2012-06-09T15:36:49 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-09T15:38:49 < SuicideFunky> Tectu: i live in Arnhem, drop by for a cup of coffee :p 2012-06-09T15:39:17 <+Steffanx> Coffee?! 2012-06-09T15:39:18 < Tectu> SuicideFunky, sure :) 2012-06-09T15:39:36 < SuicideFunky> Steffanx: yes, coffee! 2012-06-09T15:39:39 < SuicideFunky> coffee is good 2012-06-09T15:40:00 <+Steffanx> Also get some 'stroopwafels' and 'drop' 2012-06-09T15:40:24 < Tectu> why do you wrie that inside quotes, Steffanx ? 2012-06-09T15:40:35 <+Steffanx> because i can 2012-06-09T15:40:39 < zyp> because it's not english words 2012-06-09T15:40:44 <+Steffanx> ^^ 2012-06-09T15:43:16 < Tectu> any movie recommendation at this point? 2012-06-09T15:43:18 < SuicideFunky> i dont like 'stroopwafels' 2012-06-09T15:43:23 <+Steffanx> Tectu does 2012-06-09T15:43:31 < SuicideFunky> im not a real dutchy :p 2012-06-09T15:43:38 <+Steffanx> He just doesn't know yet 2012-06-09T15:43:46 < Tectu> SuicideFunky, you're a trojan? :D 2012-06-09T15:44:17 < SuicideFunky> oh yeah, a badass :D 2012-06-09T15:46:55 < Laurenceb_> nice 2012-06-09T15:46:57 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-06-09T15:47:01 < Laurenceb_> gnome has broken 2012-06-09T15:47:32 < SuicideFunky> who uses gnome :p 2012-06-09T15:47:36 < SuicideFunky> use awesome :p 2012-06-09T15:47:52 < Laurenceb_> if i stick stuff on desk3 and click on it it jumps to desk1 2012-06-09T15:49:38 < Tectu> awesome \o/ 2012-06-09T15:49:46 < Tectu> Laurenceb, fix it 2012-06-09T15:56:14 < Laurenceb_> this is annoying 2012-06-09T15:56:39 <+Steffanx> Stop using it 2012-06-09T15:58:07 * TheSeven tossed gnome into the trash can when he realized it's simply incapable of having a dock on the second display 2012-06-09T15:58:33 < SuicideFunky> i sometimes used to use just a tty 2012-06-09T15:59:18 < SuicideFunky> fixed ssh public key auth by fixing permissions 2012-06-09T16:02:16 < dongs> you guys still trolen 2012-06-09T16:02:27 <+Steffanx> .
Uh mr dongs ? 2012-06-09T16:30:11 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-09T16:46:41 <+dekar> Steffanx, http://pastebin.com/uJUe7rbX 2012-06-09T16:47:44 <+Steffanx> What kind of fancy features does your TNT remove? 2012-06-09T16:47:48 <+Steffanx> s 2012-06-09T16:47:52 <+dekar> hehe 2012-06-09T16:48:22 < zyp> this is with LTO? 2012-06-09T16:48:23 <+Steffanx> There has to be a good reason why SAT is 20k larger .. 2012-06-09T16:48:39 <+dekar> zyp, yeah I compiled whole newlib with LTO 2012-06-09T16:48:48 <+Steffanx> I still don't know what LTO means :) 2012-06-09T16:48:55 < zyp> link time optimization 2012-06-09T16:49:01 <+dekar> Steffanx, well if you look at SAT it says "LTO-disabled" 2012-06-09T16:49:10 < zyp> i.e. optimization across several translation units 2012-06-09T16:49:30 < zyp> stuff that normal optimization doesn't catch 2012-06-09T16:49:43 <+dekar> I also added the new and uber fast GOLD linker 2012-06-09T16:49:54 <+dekar> but it has problems understanding linkerscripts 2012-06-09T16:50:07 <+Steffanx> So => trash :P 2012-06-09T16:50:16 <+dekar> it's 5 times faster though 2012-06-09T16:50:44 <+dekar> idk, maybe someone knows how to make it work 2012-06-09T16:51:09 <+dekar> Steffanx, linking with TNT now takes quite a while 2012-06-09T16:51:19 < zyp> hmm 2012-06-09T16:51:21 < zyp> «gold is optimized for the case of not using a linker script» 2012-06-09T16:51:38 <+dekar> since it basically compiles everything including newlib at link time 2012-06-09T16:52:08 <+dekar> zyp, gold seems to have some linker script support, it ignores "KEEP" though and complains about "INCLUDE" 2012-06-09T16:54:06 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-09T16:54:06 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Client Quit] 2012-06-09T16:57:09 <+dekar> about 15kb of the firmware I linked are standard library functions (e.g. sprintf) those tend to be much bigger on other GCC toolchains than TNT 2012-06-09T16:57:59 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-09T16:59:02 < dongs> haha 2012-06-09T16:59:18 < dongs> someone seriosuly linked me to a parallolx propeller page and said "look what an awesome idea" 2012-06-09T16:59:30 <+Steffanx> :( 2012-06-09T17:01:05 -!- FUZxxl [~fuz@no.spaceleft.net] has quit [Read error: Connection reset by peer] 2012-06-09T17:01:33 <+dekar> dongs, what an awesome idea: http://www.altera.com/ 2012-06-09T17:03:21 <+dekar> on the other hand I guess we'll get multicore cortex-m as well 2012-06-09T17:03:34 <+Steffanx> nxp has them .. 2012-06-09T17:03:47 <+dekar> yeah I think someone showed them to me before 2012-06-09T17:04:15 <+dekar> the OMAP4 has two cortex-m0 as well 2012-06-09T17:04:34 <+Steffanx> 2 :S 2012-06-09T17:04:35 < zyp> no, m3 2012-06-09T17:04:51 < zyp> and OMAP5 got two m4 2012-06-09T17:05:15 <+Steffanx> 2 :S 2012-06-09T17:05:44 <+dekar> Steffanx, I think they're meant to control radios and the like 2012-06-09T17:05:56 < zyp> or camera stuff 2012-06-09T17:07:07 < zyp> at least, I believe that's what they do on the OMAP4-thing I got at work 2012-06-09T17:08:14 <+dekar> Steffanx, besides that a cortex-m takes up barely any space on the die compared to the cortex-a 2012-06-09T17:08:39 < zyp> yeah 2012-06-09T17:09:00 < zyp> remember that the die contains two a9s 2012-06-09T17:09:13 < zyp> a couple of m3s can't be very noticeable :p 2012-06-09T17:09:14 <+dekar> yeah it's a dualcore 2012-06-09T17:09:38 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 240 seconds] 2012-06-09T17:10:54 < zyp> it's kind of interesting how many arm cores that's actually present in a modern smartphone 2012-06-09T17:11:41 <+dekar> a bunch :) 2012-06-09T17:11:47 < zyp> I once counted seven in that OMAP4 reference platform 2012-06-09T17:11:50 -!- tavish [~tavish@120.56.141.156] has joined ##stm32 2012-06-09T17:11:51 -!- tavish [~tavish@120.56.141.156] has quit [Changing host] 2012-06-09T17:11:51 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-09T17:12:24 < zyp> actually, when I think about it, I've seen a configuration with eight too 2012-06-09T17:13:12 < zyp> and there might of course be more cores present that I don't even know about :) 2012-06-09T17:15:21 <+dekar> like the ninja core in the Tegra3 2012-06-09T17:15:41 <+dekar> a completely transparent and invisible 5th core 2012-06-09T17:16:31 < zyp> is it really invisible? 2012-06-09T17:16:52 <+Steffanx> Yeah, the used invisible paint 2012-06-09T17:17:14 <+Steffanx> they 2012-06-09T17:17:38 < zyp> I mean, to be actually able to use it in a sane way, I assume that the OS should have explicit control over it 2012-06-09T17:17:45 <+dekar> Steffanx, they didn't use paint :/ it's just in another dimension! 2012-06-09T17:17:49 < dongs> .. the same guy who says he only uses printf debugging 2012-06-09T17:17:52 < dongs> ookay 2012-06-09T17:17:55 < dongs> time to stop reading his mails 2012-06-09T17:18:10 -!- Laurenceb__ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has joined ##stm32 2012-06-09T17:18:21 <+Steffanx> I did that on. AVR for a while too dongs 2012-06-09T17:18:26 <+dekar> dongs, I wonder how he debugs an illegal opcode exception :) 2012-06-09T17:18:55 -!- Laurenceb_ [~Laurence@host109-157-39-186.range109-157.btcentralplus.com] has quit [Ping timeout: 260 seconds] 2012-06-09T17:19:24 <+Steffanx> "hey, it stops here … the bug should be somewhere here" 2012-06-09T17:19:54 < zyp> I kind of wish I had some experience with tegra 3, I've been sitting next to devboards since some time last year, but never used one myself 2012-06-09T17:19:56 < dongs> Steffanx: right. 2012-06-09T17:20:07 <+Steffanx> or left, whatever you want 2012-06-09T17:20:38 <+dekar> zyp, people tend to install linux on it and use that 2012-06-09T17:21:02 <+dekar> though the people working with tegra at our company just switched to some freescale 2012-06-09T17:22:53 < dongs> i.MEXI 2012-06-09T17:30:40 <+dekar> dongs, so will you benchmark TNT vs armCC for us? 2012-06-09T17:31:06 <+dekar> since I don't have a license, I can't do it 2012-06-09T17:32:26 < zyp> of course he won't… then he wouldn't be able to troll about how armcc is better :p 2012-06-09T17:33:28 <+dekar> :) 2012-06-09T17:33:33 < dongs> dekar: sure 2012-06-09T17:33:38 < dongs> what do i do? 2012-06-09T17:33:45 < dongs> is it just some .c file or someshit? 2012-06-09T17:34:05 < dongs> link me to wahtever 2012-06-09T17:34:13 <+dekar> umm what? start by compiling TNT 2012-06-09T17:34:28 < dongs> what 2012-06-09T17:34:42 < dongs> isnt TNT = gcc??? 2012-06-09T17:34:54 <+dekar> it contains GCC yeah 2012-06-09T17:35:00 < dongs> then no?........ 2012-06-09T17:35:07 <+dekar> oh you want to compile what I compiled 2012-06-09T17:35:09 < dongs> I thought you had some retarded testsuite 2012-06-09T17:35:19 < dongs> you cant compile gcc with anything except itself 2012-06-09T17:35:20 <+dekar> can't do that, it's proprietary 2012-06-09T17:35:39 <+dekar> compile whatever you want with both 2012-06-09T17:35:52 < dongs> oh, this guy who talks about prop programs PLCs 2012-06-09T17:35:58 < dongs> and he thinks he's a master programmer beacuse of that 2012-06-09T17:36:01 < dongs> yeah ok. 2012-06-09T17:36:47 < karlp> don't knock ladder code man 2012-06-09T17:37:09 < karlp> there's some seriously woooly "code" written in ladders, and they get paid a fortune to fix anything 2012-06-09T17:37:18 <+dekar> we could take some st example and compile it I guess 2012-06-09T17:38:08 < dongs> i dont see how compiling gcc with armcc (even if it was possible) would result in bigger/smaller/whatever binaries produced by said gcc 2012-06-09T17:38:29 < zyp> dongs, nobody said that 2012-06-09T17:38:35 <+dekar> dongs, yeah troll on 2012-06-09T17:38:39 < dongs> isnt that what he's saying? 2012-06-09T17:38:45 < dongs> <+dekar> umm what? start by compiling TNT 2012-06-09T17:38:46 < dongs> ? 2012-06-09T17:38:49 <+dekar> dongs, I'll search for some example and link it to you 2012-06-09T17:39:05 <+dekar> dongs, I said you should pick anything and compile it with both TNT and armcc 2012-06-09T17:39:13 < dongs> oh right 2012-06-09T17:39:15 < dongs> but i dont have lunix 2012-06-09T17:39:28 < dongs> or time to wait 5 hours for gcc to compile itself 2012-06-09T17:39:34 <+dekar> dongs, got that, thus I said I'll find some open source project we can compile on both 2012-06-09T17:39:43 <+dekar> dongs, how about eLUA? 2012-06-09T17:39:59 <+dekar> or nuttx? 2012-06-09T17:40:09 < dongs> howea bout you compile my shit since i have makefiles for gcc in it 2012-06-09T17:40:17 < dongs> and ithen i dont have to get any extra stuff 2012-06-09T17:40:21 <+Steffanx> Haha 2012-06-09T17:40:24 < zyp> baseflight stuff should work 2012-06-09T17:40:25 <+Steffanx> Lazy dongs 2012-06-09T17:40:25 < dongs> its about 38k of compiled code with armcc 2012-06-09T17:40:30 < dongs> yea 2012-06-09T17:40:32 <+dekar> dongs, k 2012-06-09T17:40:47 <+Steffanx> git clone http://lazydongs.jp/repo.git 2012-06-09T17:40:53 < dongs> http://code.google.com/p/afrodevices/source/browse#svn%2Ftrunk%2Fbaseflight 2012-06-09T17:40:58 <+Steffanx> Ah, i was close 2012-06-09T17:41:17 < dongs> sorry, i dont use git 2012-06-09T17:41:28 < dongs> another scm created for no purpose 2012-06-09T17:41:47 <+Steffanx> uhuh 2012-06-09T17:41:52 < zyp> ha 2012-06-09T17:41:53 < dongs> i don't maintain the makesfiles but it shouldstill work 2012-06-09T17:42:48 < dongs> Program Size: Code=38048 RO-data=3612 RW-data=956 ZI-data=5604 2012-06-09T17:42:54 < dongs> thats wiht armcc, -O3 2012-06-09T17:42:57 < zyp> text data bss dec hex filename 2012-06-09T17:42:57 < zyp> 58176 1404 3212 62792 f548 obj/baseflight.elf 2012-06-09T17:43:04 < zyp> yagarto, -Os 2012-06-09T17:45:53 < dongs> i suspect gcc has a ways to go... :p 2012-06-09T17:46:05 < dongs> zyp, is that 62k 2012-06-09T17:46:17 <+Steffanx> Nah, yaragarto isn't the best around 2012-06-09T17:46:20 < zyp> flash is text+data 2012-06-09T17:46:22 <+Steffanx> yagarto 2012-06-09T17:47:04 < zyp> and yagarto is just some old gcc build, because I'm too lazy to compile myself 2012-06-09T17:47:24 <+Steffanx> old .. 2012-06-09T17:47:29 <+Steffanx> 4.6 iirc 2012-06-09T17:47:58 <+Steffanx> October 26, 2011 isn't that long ago 2012-06-09T17:48:05 < dongs> still waiting for magical compile results from dekar / etc 2012-06-09T17:48:20 < zyp> hmm, I'm not using newest yagarto either 2012-06-09T17:48:20 <+Steffanx> Time for a nap dongs 2012-06-09T17:48:40 < Tectu> what does the 2 mean? percent = 0x200034ff "2" 2012-06-09T17:48:44 < Tectu> printed struct from GDB 2012-06-09T17:49:21 < zyp> looks like a string-pointer 2012-06-09T17:49:26 < zyp> to a string containing "2" 2012-06-09T17:49:47 < Tectu> impossible 2012-06-09T17:49:55 < Tectu> uint8_t *percentage 2012-06-09T17:49:59 < Tectu> percentage is value 50 2012-06-09T17:50:26 <+dekar> dongs, http://pastebin.com/8yegdvsY 2012-06-09T17:50:34 <+Steffanx> haha dekar 2012-06-09T17:50:38 <+dekar> XD 2012-06-09T17:50:55 <+Steffanx> GCC did a great job there 2012-06-09T17:50:58 < dongs> lol 2012-06-09T17:51:10 < dongs> thats horrible. 2012-06-09T17:53:15 < zyp> dekar, what optimization level? 2012-06-09T17:54:09 <+dekar> -Os XD 2012-06-09T17:54:30 < zyp> ha, that's worse than yagarto then 2012-06-09T17:55:16 <+Steffanx> I also tried your toolchain .. i didn't see that message dekar 2012-06-09T17:55:30 < dongs> tehre's nothing particularly retarded in the code either to make such a big difference 2012-06-09T17:55:49 <+dekar> Steffanx, you probably didn't enable LTO in the makefile 2012-06-09T17:56:00 <+Steffanx> No, 2012-06-09T17:56:12 <+dekar> dongs, seems to be an LTO related bug 2012-06-09T17:56:28 <+Steffanx> text data bss dec hex filename 2012-06-09T17:56:28 <+Steffanx> 54584 1404 3208 59196 e73c obj/baseflight.elf 2012-06-09T17:56:43 <+Steffanx> Os 2012-06-09T17:56:58 < dongs> getting closer. 2012-06-09T17:57:01 < dongs> what is the shit i need to run on elf 2012-06-09T17:57:03 < dongs> to get that output 2012-06-09T17:57:11 <+Steffanx> arm-non-eabi-size 2012-06-09T17:57:13 <+Steffanx> none 2012-06-09T17:57:50 < dongs> i guess armcc doesnt even do elf 2012-06-09T17:57:59 < dongs> it does some 'axf' shit 2012-06-09T17:58:06 < dongs> o, that is elf 2012-06-09T17:58:21 < dongs> text data bss dec hex filename 2012-06-09T17:58:25 < dongs> 41660 256 5604 47520 b9a0 baseflight.axf 2012-06-09T17:58:33 <+dekar> text data bss dec hex filename 2012-06-09T17:58:33 <+dekar> 54424 568 3180 58172 e33c obj/baseflight.elf 2012-06-09T17:58:36 <+dekar> without LTO 2012-06-09T17:59:07 <+Steffanx> dongs wins 2012-06-09T17:59:41 < dongs> text data bss dec hex filename 2012-06-09T17:59:43 < dongs> 0 41916 0 41916 a3bc baseflight.hex 2012-06-09T17:59:47 < dongs> hex has only text section? 2012-06-09T17:59:58 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Quit: Rebooting...] 2012-06-09T18:00:04 < dongs> i wonder wehre Program Size: Code=38048 RO-data=3612 RW-data=956 ZI-data=5604 comes form then 2012-06-09T18:00:16 < dongs> 38k code + 3.6k of ROData? 2012-06-09T18:00:41 < zyp> dongs, hex has no distinction of sections, it's just a bunch of shit going into flash 2012-06-09T18:00:48 < dongs> right 2012-06-09T18:01:00 < dongs> but i mean, its contents is text+rodata 2012-06-09T18:01:12 < zyp> and data 2012-06-09T18:01:23 <+dekar> with LTO: 2012-06-09T18:01:24 <+dekar> text data bss dec hex filename 2012-06-09T18:01:24 <+dekar> 80264 644 3240 84148 148b4 obj/baseflight.elf 2012-06-09T18:01:30 <+dekar> so fucked up 2012-06-09T18:01:31 <+Steffanx> So you have to optimize stuff a little more dekar 2012-06-09T18:01:41 < zyp> dekar, try other optimization levels 2012-06-09T18:01:43 < dongs> maybe compiling it with armcc WILL improve things :p 2012-06-09T18:01:48 <+dekar> Steffanx, I guess it's an GCC bug in LTO 2012-06-09T18:02:29 < Laurenceb__> link time optimisation? 2012-06-09T18:02:35 <+dekar> yeah 2012-06-09T18:02:45 < Laurenceb__> which is supposed to help? 2012-06-09T18:02:50 < Laurenceb__> this is with TNT? 2012-06-09T18:02:57 < dongs> same shit as cross-module optimization in armcc i guess 2012-06-09T18:03:54 < zyp> yes 2012-06-09T18:05:15 <+dekar> lol I just messed it up 2012-06-09T18:05:26 <+dekar> forgot to pass -Os to the _linker_ 2012-06-09T18:05:32 <+dekar> text data bss dec hex filename 2012-06-09T18:05:32 <+dekar> 50680 432 3176 54288 d410 obj/baseflight.elf 2012-06-09T18:05:35 <+Steffanx> :D 2012-06-09T18:05:55 <+Steffanx> So you're getting closer 2012-06-09T18:05:59 <+Steffanx> but not close enough 2012-06-09T18:06:13 <+dekar> well I think it is quite nice 2012-06-09T18:06:19 <+dekar> given that it's free :) 2012-06-09T18:06:26 <+Steffanx> That doesn't count 2012-06-09T18:06:42 <+dekar> if you want to improve it, do it yourself :P 2012-06-09T18:06:46 <+Steffanx> Nono :P 2012-06-09T18:06:49 <+Steffanx> I can't 2012-06-09T18:07:42 < zyp> dekar, how large will it be with -O2? 2012-06-09T18:07:44 <+dekar> 47520 vs 54288 is quite fine imo 2012-06-09T18:08:03 <+Steffanx> 7k .. fine?! 2012-06-09T18:08:27 < zyp> don't count bss 2012-06-09T18:08:37 <+dekar> oh right 2012-06-09T18:08:40 < dongs> 41916 vs 54288 2012-06-09T18:09:11 <+dekar> dongs, don't count bss 2012-06-09T18:09:16 <+Steffanx> but still 2012-06-09T18:09:21 <+Steffanx> 41k vs 50k 2012-06-09T18:09:25 <+Steffanx> *32 2012-06-09T18:09:29 <+Steffanx> *42 2012-06-09T18:09:30 <+Steffanx> Heh 2012-06-09T18:09:43 <+Steffanx> or whatever.. not close enough 2012-06-09T18:10:07 <+dekar> text data bss dec hex filename 2012-06-09T18:10:07 <+dekar> 56352 436 3208 59996 ea5c obj/baseflight.elf 2012-06-09T18:10:09 <+dekar> -O2 2012-06-09T18:10:31 <+Steffanx> dongs uses O3 2012-06-09T18:10:55 < zyp> you can't compare optimization levels across different compilers 2012-06-09T18:11:06 < zyp> they don't translate 2012-06-09T18:11:07 <+dekar> GCC often gets slower with -O3 2012-06-09T18:11:25 <+Steffanx> We talk about code size here anyway dekar :P 2012-06-09T18:11:28 <+dekar> clang even has O levels higher than 3 :) 2012-06-09T18:11:44 <+dekar> Steffanx, zyp asked me to do it 2012-06-09T18:11:53 <+Steffanx> Never listen to zyp 2012-06-09T18:12:12 <+dekar> I'll stop when you make TNT beat armcc :P 2012-06-09T18:12:41 < zyp> :p 2012-06-09T18:13:30 <+Steffanx> ok, have fun dekar 2012-06-09T18:13:44 <+dekar> still it's like 9k smaller than yagarto :) 2012-06-09T18:15:53 < upgrdman> what is bss? 2012-06-09T18:16:02 < Laurenceb__> GCC gets fastest with -Os usually fo rme 2012-06-09T18:16:10 < Laurenceb__> on arm 2012-06-09T18:16:13 <+Steffanx> fastest and smallest? 2012-06-09T18:16:48 < Laurenceb__> yes 2012-06-09T18:17:20 <+dekar> Steffanx, especially when running from flash loading more opcodes costs time 2012-06-09T18:17:27 <+dekar> so code density can gain a lot 2012-06-09T18:21:00 <+dekar> text data bss dec hex filename 2012-06-09T18:21:00 <+dekar> 50060 420 3148 53628 d17c obj/baseflight.elf 2012-06-09T18:21:35 < Laurenceb__> what toolchain is that? 2012-06-09T18:22:31 <+dekar> still TNT 2012-06-09T18:23:22 < Laurenceb__> ah 2012-06-09T18:24:37 <+dekar> upgrdman, bss is memory initialized with zero 2012-06-09T18:24:54 <+dekar> that gets done at startup and doesn't take up any space on flash 2012-06-09T18:27:55 <+dekar> Steffanx, to use LTO pass "-Os -flto -fuse-linker-plugin -fwhole-program" to the linker and "-flto -fuse-linker-plugin" to the compiler 2012-06-09T18:32:58 < Laurenceb__> so TNT is working now on debian? 2012-06-09T18:33:22 <+dekar> yes 2012-06-09T18:33:26 <+dekar> and netBSD 2012-06-09T18:34:32 < Laurenceb__> hmm ill have to try then 2012-06-09T18:37:25 <+dekar> TNT compiles newlib with __DYNAMIC_REENT__ now, meaning that you have to provide a reent struct for each context (e.g. interrupt/thread) 2012-06-09T18:37:35 <+dekar> well if you use syscalls at least 2012-06-09T18:37:44 < Laurenceb__> what are syscalls? 2012-06-09T18:37:47 < Laurenceb__> malloc etc? 2012-06-09T18:38:02 <+dekar> malloc, sprintf yeah those 2012-06-09T18:38:05 < Laurenceb__> i see 2012-06-09T18:38:16 < Laurenceb__> so whats a reent struct? 2012-06-09T18:38:35 <+dekar> /newlib reent context 2012-06-09T18:38:36 <+dekar> struct _reent my_reent; _REENT_INIT_PTR(&my_reent); 2012-06-09T18:39:21 < Laurenceb__> right 2012-06-09T18:39:22 <+dekar> if you do that it should be fully "thread safe" 2012-06-09T18:39:28 < Laurenceb__> oh i see 2012-06-09T18:41:53 <+dekar> I haven't fully implemented that for my firmware yet, but I plan on doing so 2012-06-09T18:42:32 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-09T19:11:30 -!- cjbaird [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-09T19:24:10 < Laurenceb__> what the fuuuuu 2012-06-09T19:24:15 < Laurenceb__> openoffice is failing so bad 2012-06-09T19:24:29 < Laurenceb__> is oscillating between tow difference configurations of the document at about 5hz 2012-06-09T19:26:15 -!- izua [~izua@79.115.171.1] has joined ##stm32 2012-06-09T19:26:15 -!- izua [~izua@79.115.171.1] has quit [Changing host] 2012-06-09T19:26:15 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-09T19:26:18 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-09T19:28:52 < Laurenceb__> god what a clustfuck 2012-06-09T19:30:31 <+izua> hmm 2012-06-09T19:31:06 <+izua> so turns out that uwe released libopencm3 under lgpl in march 2012-06-09T19:32:20 < Laurenceb__> im going to kill someone 2012-06-09T19:32:56 < Laurenceb__> someone decided it was a good idea to format a 120 page document using whitespace and newline 2012-06-09T19:39:19 < Laurenceb__> ill email it off and claim their must be a "problem with their computer" 2012-06-09T19:39:28 < Laurenceb__> when it comes out all screwed up 2012-06-09T19:43:18 <+izua> nice 2012-06-09T19:43:35 <+izua> i know someone who writes code in msword.exe, so he can highlight important sections and words as he sees fit 2012-06-09T19:43:48 <+izua> "but how do you compile it?" "i copy paste it in a notepad" 2012-06-09T19:53:47 <+dekar> izua, I know 2012-06-09T19:54:09 <+dekar> izua, pretty fucked up given that I asked him to do that when I started with my project so I could use it 2012-06-09T19:54:20 <+dekar> yet he refused back then 2012-06-09T19:55:19 < karlp> I think esden talked some sense into him 2012-06-09T19:56:32 < Laurenceb__> ok... so i have footers at the bottom of pages 2012-06-09T19:56:39 < Laurenceb__> i want them to be the page number 2012-06-09T19:56:43 < Laurenceb__> how the hell do i do that? 2012-06-09T19:57:17 <+dekar> Laurenceb__ open office? 2012-06-09T19:57:23 < Laurenceb__> yes 2012-06-09T19:57:31 < Laurenceb__> in word it seems to work automatically 2012-06-09T19:57:33 <+dekar> it's in the insert menu iirc 2012-06-09T19:57:58 <+dekar> it inserts some magic variable representing the page number 2012-06-09T19:58:06 < Laurenceb__> ah thanks 2012-06-09T19:58:08 <+dekar> you can do that with open office, I have done that before 2012-06-09T19:58:10 < Laurenceb__> works now 2012-06-09T20:01:21 < Laurenceb__> see theres a reason i use latex 2012-06-09T20:04:35 < zippe> Keeps out the nasty germs, *and* attracts the goth chix. 2 for 1, my man. 2012-06-09T20:06:27 <+izua> you got me at goth chicks 2012-06-09T20:18:44 <+dekar> Laurenceb__ from what I heard that tex stuff has a ton of problems as well 2012-06-09T20:26:00 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Read error: Connection reset by peer] 2012-06-09T20:26:21 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has joined ##stm32 2012-06-09T20:34:47 < Tectu> Steffanx, alrady a result ? 2012-06-09T20:38:08 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-241-11.clienti.tiscali.it] has quit [Ping timeout: 240 seconds] 2012-06-09T20:42:44 <+izua> dekar: not if you use _la_tex 2012-06-09T20:43:09 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-240-74.clienti.tiscali.it] has joined ##stm32 2012-06-09T20:43:26 <+dekar> izua, that one as well 2012-06-09T20:43:39 <+dekar> having to compile stuff twice in order to generate the index 2012-06-09T20:43:49 <+dekar> sounds pretty broken to me 2012-06-09T20:48:55 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 260 seconds] 2012-06-09T20:54:44 <+Steffanx> Tectu 0 - 1 2012-06-09T20:55:31 < Tectu> Steffanx, for DK, i guess? 2012-06-09T20:55:35 < Tectu> Steffanx, is it already over? 2012-06-09T20:56:36 <+Steffanx> over as in .. 2012-06-09T20:56:47 <+Steffanx> the next match is wednesday :P 2012-06-09T20:59:00 < Tectu> oh 2012-06-09T20:59:02 < Tectu> too bad 2012-06-09T20:59:22 <+Steffanx> Too bad? :P 2012-06-09T21:00:31 < Tectu> that they did loose 2012-06-09T21:00:40 <+Steffanx> Shit happens 2012-06-09T21:20:35 -!- izua [~izua@86.121.85.246] has joined ##stm32 2012-06-09T21:20:35 -!- izua [~izua@86.121.85.246] has quit [Changing host] 2012-06-09T21:20:35 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-09T21:20:36 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-09T21:30:29 -!- tuxfool [~anonymous@bl7-144-135.dsl.telepac.pt] has joined ##stm32 2012-06-09T21:36:27 <+dekar> izua, wb 2012-06-09T21:36:41 <+izua> my internet is cool like that 2012-06-09T21:36:48 <+Steffanx> Yeah, we love it 2012-06-09T21:37:12 < Tectu> izua, take a word to dongs... he tells you where le problem is 2012-06-09T21:37:13 <+izua> i'm going to make a script to randomly halt my connection for a few seconds then! 2012-06-09T21:37:36 <+Steffanx> Get a raspberrypi .. it'll help with that izua 2012-06-09T21:37:41 <+izua> sure 2012-06-09T21:37:46 <+izua> and a few arduinos too 2012-06-09T21:38:03 <+Steffanx> Just download a few mb's .. make the connection drop 2012-06-09T21:38:18 < Tectu> Steffanx, some serious networking issue with rpi? 2012-06-09T21:38:19 <+Steffanx> ifdown and -up and there you are 2012-06-09T21:38:29 <+Steffanx> Not sure if it's a common thing Tectu 2012-06-09T21:38:38 < Tectu> but? 2012-06-09T21:38:42 <+Steffanx> but nothing 2012-06-09T21:38:50 < Tectu> you have some issues? 2012-06-09T21:38:53 <+Steffanx> I do 2012-06-09T21:39:01 <+Steffanx> but it was just a test and the test failed 2012-06-09T21:39:01 < Tectu> tell oncle tectu 2012-06-09T21:39:06 <+Steffanx> *uncle 2012-06-09T21:39:13 < Tectu> uncle* 2012-06-09T21:39:19 <+Steffanx> samba share/ftp server => usb-hdd 2012-06-09T21:39:29 < Tectu> 1kB/ s? 2012-06-09T21:39:32 <+izua> Steffanx: it doesn't fail on downloads 2012-06-09T21:39:35 <+Steffanx> Upload a few gigs and say bye bye to the connection 2012-06-09T21:39:41 <+izua> also, it can do ~10MBps on local trackers 2012-06-09T21:39:51 <+Steffanx> For me it terribly fails izua 2012-06-09T21:39:52 <+izua> it also has ipv6 :D 2012-06-09T21:40:01 <+izua> but it simply fails at random because bad admins 2012-06-09T21:40:02 <+Steffanx> with ~10MB/s transfers over samba/ftp 2012-06-09T21:40:13 <+izua> i upgraded my router a while ago 2012-06-09T21:40:23 <+izua> never had an issue since 2012-06-09T21:41:10 <+Steffanx> Anyway, my rpi will go in the nice to have box :P 2012-06-09T21:42:22 <+Steffanx> Or i'll send it to dongs so he can rape it 2012-06-09T21:43:26 < Tectu> ADC: what's the difference between linear and continous conversions? 2012-06-09T21:43:52 < Tectu> linear is oneshot? 2012-06-09T21:59:15 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 246 seconds] 2012-06-09T22:05:13 <+dekar> http://dx.com/p/android-4-0-mini-pc-google-tv-player-w-wifi-allwinner-a10-cortex-a8-tf-hdmi-white-4gb-137012 2012-06-09T22:05:22 <+dekar> that one is pretty cheap as well 2012-06-09T22:15:08 -!- tuxfool [~anonymous@bl7-144-135.dsl.telepac.pt] has quit [Quit: tuxfool] 2012-06-09T22:58:30 < upgrdman> for small project you can omit a linker script and just use "-Wl,-Ttext,0x20000000 -Wl,-e,0x20000000" to run from SRAM. how do i do that but for running from flash? changing the addresses to 0x02000000 doesn't work 2012-06-09T22:58:43 < upgrdman> i mean 0x80000000 2012-06-09T22:58:51 < upgrdman> i mean 0x08000000 2012-06-09T23:00:40 <+dekar> upgrdman, how do you get the interrupt vector in position? 2012-06-09T23:01:07 <+dekar> oh, you don't have any for the execution from ram, right? 2012-06-09T23:01:17 < upgrdman> ya 2012-06-09T23:01:32 <+dekar> well if you want to boot from flash there has to be an interrupt vector at 0x0 2012-06-09T23:01:49 < upgrdman> how do i do that with a gcc flag? 2012-06-09T23:01:55 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 260 seconds] 2012-06-09T23:01:59 <+dekar> idk whether you can 2012-06-09T23:02:04 < upgrdman> o ok 2012-06-09T23:06:05 <+dekar> what does -T exactly do? does it allow to place any section at will? 2012-06-09T23:06:21 <+dekar> then you could make it place the interrupt vector section as well 2012-06-09T23:07:10 < zyp> but can you make it place a section following another section without specifying exactly where? :p 2012-06-09T23:08:26 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-09T23:08:26 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-09T23:08:32 <+dekar> izua, wb 2012-06-09T23:08:52 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer] 2012-06-09T23:09:08 <+dekar> bbc is so awesome, gotta move to UK some day 2012-06-09T23:09:19 <+dekar> you can even stream their HD content on demand 2012-06-09T23:10:01 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds] 2012-06-09T23:11:52 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-09T23:14:57 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-09T23:16:41 -!- izua_ [~izua@188.26.165.66] has joined ##stm32 2012-06-09T23:16:41 -!- izua_ [~izua@188.26.165.66] has quit [Changing host] 2012-06-09T23:16:41 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32 2012-06-09T23:16:43 -!- mode/##stm32 [+v izua_] by ChanServ 2012-06-09T23:20:10 -!- xx [~Arizona_B@modemcable055.174-83-70.mc.videotron.ca] has quit [Read error: Connection reset by peer] 2012-06-09T23:20:58 -!- xx [~Arizona_B@modemcable055.174-83-70.mc.videotron.ca] has joined ##stm32 2012-06-09T23:24:01 <+izua_> i take back the part where i say my upgraded router does not cause problems 2012-06-09T23:24:09 <+izua_> it doesn't take heat well, apparently 2012-06-09T23:33:21 < pelrun__> if it can't stand the heat, it should get out of the kitchen 2012-06-09T23:39:55 < pelrun__> although I'm cold and in a warehouse... 2012-06-09T23:44:58 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Remote host closed the connection] 2012-06-09T23:44:58 < upgrdman> i remember when i upgrades from dial-up to dsl. the dsl modem would hang every 24 - 36 hours, requiring a power cycle. crappy networking hardward sucks... 2012-06-09T23:47:25 < upgrdman> "interrupt vector" ... what's a vector? 2012-06-09T23:48:52 < zyp> function pointer, pretty much 2012-06-09T23:49:25 < upgrdman> ok 2012-06-09T23:49:36 < zyp> it points to the ISR, i.e. the function called when the interrupt is triggered 2012-06-09T23:50:12 < upgrdman> and that is specified to the linker, no in the source code, correct? 2012-06-09T23:54:02 < pelrun__> the link script specifies where the interrupt vectors are, and which function pointers should be loaded into them 2012-06-09T23:54:36 < pelrun__> then you just define a function with the appropriate name in the source 2012-06-09T23:55:57 < pelrun__> e.g. a function called "TIM3_IRQHandler" will be called whenever the TIM3 ISR is triggered 2012-06-09T23:56:40 -!- tuxfool [~anonymous@bl7-144-135.dsl.telepac.pt] has joined ##stm32 --- Day changed Sun Jun 10 2012 2012-06-10T00:12:12 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving] 2012-06-10T00:23:41 <+dekar> upgrdman, http://pastebin.com/kFEq9m6a 2012-06-10T00:25:45 -!- cjbaird [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-10T00:26:19 < pelrun__> oh geez 2012-06-10T00:26:34 < pelrun__> my brain finally just realised why it's called 'thumb' 2012-06-10T00:27:04 < pelrun__> can't believe I didn't see that pun the instant it was made 2012-06-10T00:27:18 < zyp> :D 2012-06-10T00:27:32 < cjbaird> I'm punistically-challenged. 2012-06-10T00:28:00 < pelrun__> i annoy people incessantly with bad puns 2012-06-10T00:29:10 <+dekar> pelrun__, what's the pun you're talking about? arms as well as thumbs being body parts? 2012-06-10T00:29:29 < pelrun__> thumb being the small thing at the end of the arm 2012-06-10T00:29:40 <+dekar> yarr 2012-06-10T00:29:58 < pelrun__> THUMB being the small instruction set at the end of the ARM 2012-06-10T00:30:21 <+dekar> there's no end to ARM! 2012-06-10T00:33:05 < cjbaird> I honestly never realised that joke in 26 years... 2012-06-10T00:34:12 < zyp> thumb is just 18 years old 2012-06-10T00:35:53 < cjbaird> Well, I was just thinking of when I first heard of the Archimedes machines. I didn't think to think thumb appreared later.. 2012-06-10T00:38:54 <+dekar> I just disassembled my firmware - the interrupt vector is just a bunch of addresses! I actually had a lecture about arm assembly (ARMv4) and they told us the interrupt vector contained the actual opcodes to jump into the handlers 2012-06-10T00:39:16 < zyp> it's different from architecture to architecture 2012-06-10T00:39:35 < zyp> IIRC AVR also have actual jump opcodes in the vector table 2012-06-10T00:40:04 <+dekar> was some old ATMEL ARM7-TDMI iirc 2012-06-10T00:44:53 < Laurenceb__> sup 2012-06-10T00:44:58 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-10T00:45:17 < Laurenceb__> lol i only just got that 2012-06-10T00:45:25 < Laurenceb__> i knew it was thumb as its small... 2012-06-10T00:46:15 < Laurenceb__> ok.. so i have TNT installed 2012-06-10T00:46:20 < Laurenceb__> where is the gcc to use? 2012-06-10T00:47:08 <+dekar> it installes into your home 2012-06-10T00:47:40 < Laurenceb__> aha ~/toolchain/bin$ ? 2012-06-10T00:47:49 <+dekar> yes 2012-06-10T00:49:40 <+dekar> cjbaird, TNT now compiles newlib with LTO for further space savings 2012-06-10T00:50:40 < Laurenceb__> /tmp/ccJeJXRp.s: Assembler messages: 2012-06-10T00:50:40 < Laurenceb__> /tmp/ccJeJXRp.s:442: Error: registers may not be the same -- `strexb r0,r0,[r1]' 2012-06-10T00:50:40 < Laurenceb__> /tmp/ccJeJXRp.s:466: Error: registers may not be the same -- `strexh r0,r0,[r1]' 2012-06-10T00:50:40 < Laurenceb__> make: *** [lib/CMSIS_CM3/core_cm3.o] Error 1 2012-06-10T00:50:59 <+dekar> Laurenceb__, yeah ARM fucked that one up 2012-06-10T00:51:20 <+dekar> what they did is not allowed 2012-06-10T00:51:23 < Laurenceb__> what do i do? 2012-06-10T00:51:27 <+dekar> patch it 2012-06-10T00:51:38 <+dekar> I can give you mine if you want 2012-06-10T00:51:49 < Laurenceb__> core_cm3.s? 2012-06-10T00:51:52 <+dekar> but the CMSIS code is buggy 2012-06-10T00:51:53 <+dekar> yeah 2012-06-10T00:52:03 < Laurenceb__> k, pastebin? 2012-06-10T00:52:17 < Laurenceb__> odd that it works in codesourcery 2012-06-10T00:54:03 <+dekar> Laurenceb__, https://dl.dropbox.com/u/28467113/core_cm3.c 2012-06-10T00:54:22 <+dekar> Laurenceb__, old GCC didn't detect it - it is indeed illegal though, I looked it up 2012-06-10T00:54:25 < cjbaird> dekar: I'm about to attempt building TNT on the MIPS gNewsense machine.. 2012-06-10T00:55:13 <+dekar> cjbaird, nice, but wouldn't it take ages on a mips? ;) 2012-06-10T00:55:24 <+dekar> I am not aware of any fast MIPS systems 2012-06-10T00:55:27 < Laurenceb__> ok thanks, that bit works 2012-06-10T00:55:41 < Laurenceb__> but /toolchain/lib/gcc/arm-none-eabi/4.7.1/../../../../arm-none-eabi/bin/ld: cannot find libcs3.a 2012-06-10T00:56:07 <+dekar> libcs3 is codesourcery proprietary stuff 2012-06-10T00:56:15 <+dekar> they never even released the source code for that 2012-06-10T00:56:16 < Laurenceb__> oh 2012-06-10T00:56:20 < Laurenceb__> what does it do? 2012-06-10T00:56:28 < cjbaird> Don't diss my Lemote :P 2012-06-10T00:56:30 < Laurenceb__> equiv of newlib? 2012-06-10T00:56:42 < Laurenceb__> do i need to fix my linker script? 2012-06-10T00:56:43 <+dekar> handle some interrupts and some newlines stubs I think 2012-06-10T00:57:05 <+dekar> Laurenceb__ idk what pulls that libcs3 in 2012-06-10T00:57:18 < Laurenceb__> either makefile or linker script 2012-06-10T00:57:23 <+dekar> cjbaird, ah one of those illegal chinese mips? nice :) 2012-06-10T00:58:03 <+dekar> cjbaird, have you tried the x86er emulation features? 2012-06-10T00:58:27 < cjbaird> Wasn't aware of the Loongson2F having them..? 2012-06-10T00:58:39 <+dekar> cjbaird, it has 200 x86er opcodes iirc 2012-06-10T00:58:49 < Laurenceb__> oh shit 2012-06-10T00:58:58 < Laurenceb__> i have codesourcerys linker script 2012-06-10T00:58:58 < cjbaird> Yeah, it's the Loongson3 that has them. 2012-06-10T00:59:06 <+dekar> cjbaird, ah I see 2012-06-10T00:59:10 -!- pelrun__ [~pelrun@14-202-70-213.static.tpgi.com.au] has quit [Ping timeout: 260 seconds] 2012-06-10T00:59:23 < Laurenceb__> anyone have a linker script that works with TNT? 2012-06-10T00:59:26 < cjbaird> I have plans of going /outside/ today, so I'll set the ~800MHz Lemote up to build TNT before I leave. 2012-06-10T00:59:39 < Laurenceb__> lol 2012-06-10T01:00:24 < Laurenceb__> anyone? 2012-06-10T01:02:37 <+dekar> Laurenceb__, https://dl.dropbox.com/u/28467113/stm32_linkerscript/TNT.zip 2012-06-10T01:03:06 < Laurenceb__> thanks 2012-06-10T01:03:15 < Laurenceb__> looks almost as complex as codesourcery :P 2012-06-10T01:04:31 <+dekar> we should make some tiny test project for TNT 2012-06-10T01:04:40 < zyp> I'll probably test TNT when I'm back from vacation and have started using my new workstation :p 2012-06-10T01:04:40 <+dekar> making it easier for beginners to start 2012-06-10T01:04:51 <+Steffanx> You still don't use it zyp ?! 2012-06-10T01:05:06 < zyp> no, I haven't bought a decent monitor yet 2012-06-10T01:05:06 <+dekar> zyp, it compiles reasonably fast, about an hour on my macbook 2012-06-10T01:05:29 <+Steffanx> I'm pretty sure it was faster on mine .. but perhaps i was wrong 2012-06-10T01:05:33 <+Steffanx> *was = am 2012-06-10T01:05:39 < zyp> dekar, yeah, but I'm not in a hurry to test it 2012-06-10T01:06:02 < zyp> my project, when compiled with yagarto, is still only 7k or so :p 2012-06-10T01:06:12 < zyp> and that's for F4 with 1M flash :p 2012-06-10T01:06:17 <+dekar> zyp, could be 6kb with TNT :P 2012-06-10T01:06:20 <+Steffanx> And hw fp stuff? 2012-06-10T01:06:37 <+dekar> Steffanx, I actually think TNT supports hw float stuff 2012-06-10T01:06:46 <+dekar> haven't tried it though 2012-06-10T01:06:47 < zyp> dekar, I don't really think it would make a huge difference 2012-06-10T01:06:49 <+Steffanx> think != being sure 2012-06-10T01:07:00 < zyp> dekar, we could check 2012-06-10T01:07:13 <+dekar> Steffanx, I managed to have it generate some float code once, which made my stm32f1 lock up 2012-06-10T01:07:25 <+dekar> didn't look into it though 2012-06-10T01:07:35 < zyp> dekar, git://git.jvnv.net/suzumebachi <- grab stm32f4 branch from here and just run scons 2012-06-10T01:07:39 <+dekar> Steffanx, if you care, feel free to disassemble 2012-06-10T01:07:45 <+Steffanx> No thanks 2012-06-10T01:07:59 <+dekar> what's scons? 2012-06-10T01:08:07 < zyp> a decent make alternative 2012-06-10T01:09:25 <+dekar> I probably need to have TNT in path, don't I? 2012-06-10T01:09:38 < cjbaird> ...one of several dozen, which everyone expects you to learn.. 2012-06-10T01:09:54 < zyp> dekar, yes 2012-06-10T01:10:00 <+Steffanx> Just edit the sconstruct file 2012-06-10T01:10:08 < cjbaird> It's as annyoing as people who publish code written in Modula2. :P 2012-06-10T01:10:17 <+Steffanx> /opt/local/bin/../lib/gcc/arm-none-eabi/4.3.2/../../../../arm-none-eabi/bin/ld: Warning: telemetry.o: Unknown EABI object attribute 34 ... 2012-06-10T01:10:26 <+Steffanx> I've no idea what something like that means 2012-06-10T01:10:35 < zyp> huh? 2012-06-10T01:10:37 <+dekar> scons: done building target. 2012-06-10T01:10:42 <+Steffanx> oops 2012-06-10T01:10:44 <+Steffanx> me failing 2012-06-10T01:11:02 <+dekar> Steffanx, linking binary stuff? 2012-06-10T01:11:32 <+Steffanx> nvm.. wrong combination of toolchains :P 2012-06-10T01:11:32 <+dekar> zyp, so what do I do now? 2012-06-10T01:11:38 <+dekar> it did build 2012-06-10T01:11:48 < zyp> then check the size? :p 2012-06-10T01:12:00 < Laurenceb__> ok it compiles 2012-06-10T01:12:01 < Laurenceb__> thanks 2012-06-10T01:12:09 < Laurenceb__> only 14% smaller 2012-06-10T01:12:12 <+Steffanx> only? 2012-06-10T01:12:21 <+dekar> text data bss dec hex filename 2012-06-10T01:12:21 <+dekar> 4196 568 5804 10568 2948 suzumebachi.elf 2012-06-10T01:12:43 < zyp> hmm, I commented out gc-sections once I was debugging some issue 2012-06-10T01:12:45 < Laurenceb__> `STARTFLASH' not declared 2012-06-10T01:12:47 <+dekar> zyp, I didn't use LTO though, didn't look at your scons file 2012-06-10T01:12:57 < Laurenceb__> `ENDFLASH' not declared 2012-06-10T01:12:58 < zyp> is that unchanged? 2012-06-10T01:13:00 < Laurenceb__> etc ? 2012-06-10T01:13:10 <+dekar> zyp, didn't change anything 2012-06-10T01:13:12 < zyp> text data bss dec hex filename 2012-06-10T01:13:13 < zyp> 6580 452 5856 12888 3258 suzumebachi.elf 2012-06-10T01:13:45 < zyp> I get it a bit smaller with -Os and gc-sections, but still not as small as TNT 2012-06-10T01:13:46 < zyp> text data bss dec hex filename 2012-06-10T01:13:46 < zyp> 5092 448 5852 11392 2c80 suzumebachi.elf 2012-06-10T01:14:05 <+dekar> zyp, want me to enable LTO? 2012-06-10T01:14:07 < Laurenceb__> ok - i used wrong flags 2012-06-10T01:14:12 < zyp> dekar, sure 2012-06-10T01:14:13 < Laurenceb__> 29% smaller 2012-06-10T01:14:21 < zyp> SConscript should be pretty understandable 2012-06-10T01:14:28 < Laurenceb__> than codesourcery 2012-06-10T01:14:29 < zyp> SConstruct I mean :p 2012-06-10T01:14:53 < Laurenceb__> how do i do LTO? 2012-06-10T01:14:58 < Laurenceb__> wouls that help? 2012-06-10T01:15:22 <+Steffanx> A little maybe 2012-06-10T01:15:45 < zyp> so, for my project TNT shaves off 32% of the size 2012-06-10T01:15:50 < zyp> that was kind of unexpected 2012-06-10T01:16:29 <+Steffanx> :D 2012-06-10T01:16:38 <+Steffanx> but does it still work 2012-06-10T01:16:40 <+Steffanx> ? 2012-06-10T01:16:48 < zyp> that's another question :p 2012-06-10T01:16:48 <+dekar> zyp, how do I "make clean"? 2012-06-10T01:16:53 < zyp> scons -c 2012-06-10T01:17:07 < Laurenceb__> i see 29% smaller on my project 2012-06-10T01:17:18 <+dekar> text data bss dec hex filename 2012-06-10T01:17:19 <+dekar> 1042 248 5796 7086 1bae suzumebachi.elf 2012-06-10T01:17:25 < Laurenceb__> without trying LTO.. how would i do that? 2012-06-10T01:17:26 <+dekar> that looks wrong 2012-06-10T01:17:30 < Laurenceb__> wtf 2012-06-10T01:17:31 < Laurenceb__> lol 2012-06-10T01:17:32 < zyp> ha 2012-06-10T01:17:33 <+dekar> XD 2012-06-10T01:17:42 <+dekar> zyp, I did also enable gc-sections 2012-06-10T01:17:48 <+dekar> was that correct? 2012-06-10T01:17:52 <+dekar> dunno your project 2012-06-10T01:17:56 < zyp> hmm 2012-06-10T01:18:12 < zippe> dekar: is your project "complete", or have you #ifdef'ed out large parts? 2012-06-10T01:18:14 <+dekar> I guess LTO dropped some entry points or something 2012-06-10T01:18:22 < zippe> Or just the calls to large parts? 2012-06-10T01:18:30 < zippe> You do need to mark the vectors section to be kept 2012-06-10T01:18:31 < zyp> dekar, can you send me the .elf? 2012-06-10T01:18:36 <+dekar> zippe, what are you talking about? 2012-06-10T01:18:38 < zippe> It's common to lose everything if you forget that 2012-06-10T01:18:40 <+dekar> zyp, sure 2012-06-10T01:18:49 <+Steffanx> sure you are using the stm32f4 branch dekar ? 2012-06-10T01:18:50 < zyp> dekar, just put it on bin.jvnv.net or something 2012-06-10T01:19:10 < zippe> If you don't have a separate section for your vectors, you can 2012-06-10T01:19:11 < zippe> EXTERN(_vectors) /* force the vectors to be included in the output */ 2012-06-10T01:19:19 <+dekar> zyp, https://dl.dropbox.com/u/28467113/suzumebachi.zip 2012-06-10T01:19:23 < zyp> thanks 2012-06-10T01:19:44 < zyp> looking forward to see the disassembly :p 2012-06-10T01:19:52 <+dekar> zippe, it's not my project but the project of zyp 2012-06-10T01:20:15 <+dekar> zippe, dunno what it does, keeps or drops 2012-06-10T01:20:17 < Laurenceb__> so, how can i use LTO? 2012-06-10T01:21:02 < zyp> dekar, it fucked up the vector table at least 2012-06-10T01:21:15 < zyp> no vector table at the start 2012-06-10T01:21:22 < Laurenceb__> oops 2012-06-10T01:21:33 <+dekar> Laurenceb__, CFLAGS += -flto -fuse-linker-plugin and LDFLAGS += -Os -flto -fuse-linker-plugin -fwhole-program 2012-06-10T01:21:43 < Laurenceb__> k 2012-06-10T01:21:49 <+dekar> zyp, probably your linkerscript 2012-06-10T01:22:00 < zyp> dekar, oh, and wrong branch 2012-06-10T01:22:12 < zyp> that's the master branch, not stm32f4 2012-06-10T01:22:41 <+dekar> oh 2012-06-10T01:22:52 <+dekar> well, compile TNT yourself :P 2012-06-10T01:23:07 < zyp> :p 2012-06-10T01:23:51 < zyp> ha 2012-06-10T01:24:12 < Laurenceb__> ok it tries to optimise.. but fails 2012-06-10T01:24:23 < zyp> dekar, I switched to master and recompiled 2012-06-10T01:24:29 < zyp> text data bss dec hex filename 2012-06-10T01:24:29 < zyp> 4052 1400 5800 11252 2bf4 suzumebachi.elf 2012-06-10T01:24:30 < Laurenceb__> http://pastebin.com/1cu08DCy 2012-06-10T01:24:57 <+dekar> zyp, 1k is better :P 2012-06-10T01:25:14 <+Steffanx> 1k and non-functional is better 2012-06-10T01:25:15 <+Steffanx> oh, no 2012-06-10T01:25:18 < zyp> mine produces smaller code 2012-06-10T01:25:33 <+Steffanx> mine = ? 2012-06-10T01:25:38 < zyp> yagarto 2012-06-10T01:25:47 < zyp> 00:12:21 <+dekar> text data bss dec hex filename 2012-06-10T01:25:47 < zyp> 00:12:21 <+dekar> 4196 568 5804 10568 2948 suzumebachi.elf 2012-06-10T01:26:09 <+dekar> zyp, first time was -O2 2012-06-10T01:26:13 <+dekar> did you -O2 as well? 2012-06-10T01:26:20 <+dekar> your "makefile" came with -O2 2012-06-10T01:26:25 < zyp> yes, this was unchanged 2012-06-10T01:26:47 <+dekar> not bad then I guess 2012-06-10T01:27:23 < zyp> but then I don't really link in much from newlib 2012-06-10T01:28:01 < zyp> maybe some libm functions, but I'm not sure they are present in that revision 2012-06-10T01:29:35 < Laurenceb__> http://pastebin.com/1cu08DCy <-- can anyone advise me what the issue is? 2012-06-10T01:30:22 <+dekar> zyp, text data bss dec hex filename 2012-06-10T01:30:22 <+dekar> 3396 564 5800 9760 2620 suzumebachi.elf 2012-06-10T01:30:34 <+dekar> without LTO, but with -Os and gc-sections 2012-06-10T01:30:47 < zyp> for which branch? :p 2012-06-10T01:30:50 < zyp> still master? 2012-06-10T01:30:53 <+dekar> zyp, same as before 2012-06-10T01:30:55 <+dekar> yeah 2012-06-10T01:30:58 < zyp> ok 2012-06-10T01:31:27 < zyp> text data bss dec hex filename 2012-06-10T01:31:27 < zyp> 3380 1400 5800 10580 2954 suzumebachi.elf 2012-06-10T01:32:21 <+dekar> zyp, text+data is now smaller for me 2012-06-10T01:32:27 < zyp> :p 2012-06-10T01:32:35 < zyp> wonder what's different 2012-06-10T01:32:42 <+dekar> well I guess -O2 cares more about speed than size 2012-06-10T01:32:47 < zyp> yes 2012-06-10T01:33:12 < zyp> -Os is -O2 without a couple of optimizations that add size 2012-06-10T01:33:23 <+dekar> and given that TNT has a newer GCC than YAG… I guess it makes sense that TNT wins 2012-06-10T01:33:51 <+dekar> zyp, do you want the binary so you can try whether it works? 2012-06-10T01:34:31 <+dekar> zyp, https://dl.dropbox.com/u/28467113/suzumebachi.zip 2012-06-10T01:34:35 < zyp> nah, I don't have the F1 setup for a quick test 2012-06-10T01:34:39 <+dekar> hm 2012-06-10T01:34:53 <+dekar> zyp, do you have the f4 ready? 2012-06-10T01:35:52 <+dekar> well w/e 2012-06-10T01:36:02 < zyp> I do, but it's not that important 2012-06-10T01:36:11 < zyp> hmm 2012-06-10T01:36:33 < zyp> my project's object files only contains 324 bytes of .data 2012-06-10T01:36:38 < Laurenceb__> http://pastebin.com/1cu08DCy <-- hellooo can anyone advise me what the issue is? 2012-06-10T01:36:42 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 245 seconds] 2012-06-10T01:36:47 < Laurenceb__> seems to be missing _exit 2012-06-10T01:36:49 < zyp> so something in newlib adds over 1k in data 2012-06-10T01:37:08 < zyp> so it's not my fault :p 2012-06-10T01:37:22 < zyp> Laurenceb__, try -lnosys 2012-06-10T01:37:29 <+dekar> zyp, well TNT has some finely tuned newlib for minimum size 2012-06-10T01:37:34 < Laurenceb__> in LDFLAGS ? 2012-06-10T01:37:43 < zyp> Laurenceb__, yes, it's a library 2012-06-10T01:38:01 <+dekar> Laurenceb__ void _exit(int i) 2012-06-10T01:38:02 <+dekar> { 2012-06-10T01:38:02 <+dekar> while(1); 2012-06-10T01:38:02 <+dekar> } 2012-06-10T01:38:02 < zyp> containing shit like that if you're too lazy to write it yourself 2012-06-10T01:38:11 < Laurenceb__> oh 2012-06-10T01:38:40 <+dekar> Laurenceb__ those are newlib stubs, codesourcery had them partially implemented 2012-06-10T01:38:49 -!- FUZxxl [~fuz@no.spaceleft.net] has joined ##stm32 2012-06-10T01:38:59 < Laurenceb__> ok 2012-06-10T01:39:02 < Laurenceb__> `_impure_ptr' referenced in section `.text.__getreent' of /home/laurence/toolchain/lib/gcc/arm-none-eabi/4.7.1/../../../../arm-none-eabi/lib/thumb/libc.a(lib_a-getreent.o): defined in discarded section `.text' of lib_a-impure.o (symbol from plugin) 2012-06-10T01:39:20 < Laurenceb__> is there a whole series of things im missing now? 2012-06-10T01:39:47 < zyp> Laurenceb__, are you linking with gc-sections? 2012-06-10T01:39:49 <+dekar> Laurenceb__ that discarded section looks wrong 2012-06-10T01:40:09 <+dekar> Laurenceb__ does it work without LTO for you? 2012-06-10T01:40:17 < Laurenceb__> yes 2012-06-10T01:40:19 <+dekar> k 2012-06-10T01:40:26 < Laurenceb__> compiles fine without LTO, 29% smaller 2012-06-10T01:41:06 < Laurenceb__> what are gc-sections? 2012-06-10T01:41:28 <+dekar> Laurenceb__ discard unused sections 2012-06-10T01:41:52 < Laurenceb__> oh 2012-06-10T01:42:12 < Laurenceb__> ok i removed --gc-sections from the makefile, it got a biut further before breaking 2012-06-10T01:42:31 <+dekar> Laurenceb__ you shouldn't have to remove it 2012-06-10T01:42:32 < Laurenceb__> wait no 2012-06-10T01:42:37 < Laurenceb__> it broke earlier 2012-06-10T01:43:11 < Laurenceb__> hmm 2012-06-10T01:43:40 <+dekar> do you have any assembly for example? 2012-06-10T01:43:51 < Laurenceb__> from what? 2012-06-10T01:44:01 <+dekar> LTO doesn't read assembly and might drop stuff that is actually called 2012-06-10T01:44:18 < Laurenceb__> oh 2012-06-10T01:44:28 < Laurenceb__> libc.a is linked 2012-06-10T01:44:37 <+dekar> you may wanna try marking your interrupt handlers (entry points) with "__attribute__((externally_visible))" 2012-06-10T01:44:47 < zyp> doesn't LTO pass GIMPLE rather than assembly to the linker? 2012-06-10T01:45:21 <+dekar> zyp, both actually 2012-06-10T01:45:38 <+dekar> zyp, LTO makes your .o files size increase like 5 times 2012-06-10T01:46:00 < zyp> sure, because they are stored in intermediate (GIMPLE) form 2012-06-10T01:46:06 <+dekar> Laurenceb__, try removing the whole-program flag 2012-06-10T01:46:21 < Laurenceb__> what is that? 2012-06-10T01:46:41 <+dekar> that makes LTO be more aggressive and drop everything not being referenced 2012-06-10T01:46:45 < Laurenceb__> in the makefile 2012-06-10T01:46:46 < Laurenceb__> oh 2012-06-10T01:47:22 <+dekar> stuff that is referenced from assembly is also dropped (was for me at least) 2012-06-10T01:47:40 < Laurenceb__> no luck there 2012-06-10T01:47:41 <+dekar> since 'as' doesn't support LTO 2012-06-10T01:47:50 < Laurenceb__> ill pastebin my makefile 2012-06-10T01:47:54 < Laurenceb__> its a mess, sorry 2012-06-10T01:48:07 < zyp> most makefiles are :D 2012-06-10T01:48:19 < Laurenceb__> http://pastebin.com/XEzWpTG3 2012-06-10T01:48:19 <+dekar> idk why it drops impure, that's the pointer for the newlib reentrancy context 2012-06-10T01:48:26 < Laurenceb__> thanx for the help 2012-06-10T01:49:27 <+dekar> removing "-fwhole-program" didn't help? 2012-06-10T01:49:32 < Laurenceb__> nope 2012-06-10T01:49:44 < Laurenceb__> i removed it than made clean 2012-06-10T01:49:52 < Laurenceb__> make clean; make 2012-06-10T01:51:33 <+dekar> Laurenceb__, http://pastebin.com/uUdPSCrc 2012-06-10T01:51:36 <+dekar> add that to your main 2012-06-10T01:51:44 <+dekar> make the struct global 2012-06-10T01:52:04 <+dekar> that uses the impure pointer, maybe it stops it from getting discarded 2012-06-10T01:53:30 < Laurenceb__> wont compile - redeclaration 2012-06-10T01:53:56 <+dekar> umm what? 2012-06-10T01:54:13 <+dekar> what in global namespace "struct _reent my_reent;" 2012-06-10T01:54:17 <+dekar> *that 2012-06-10T01:54:28 <+dekar> that into your main() "_REENT_INIT_PTR(&my_reent); 2012-06-10T01:54:28 <+dekar> _impure_ptr = &my_reent;" 2012-06-10T01:54:43 < Laurenceb__> /toolchain/lib/gcc/arm-none-eabi/4.7.1/../../../../arm-none-eabi/include/sys/reent.h:818:23: note: previous declaration of '_impure_ptr' was here 2012-06-10T01:55:08 < Laurenceb__> wait what 2012-06-10T01:55:13 < Laurenceb__> that makes no sense 2012-06-10T01:55:38 <+dekar> the code I pasted doesn't declare _impure_ptr 2012-06-10T01:55:45 < Laurenceb__> exactly 2012-06-10T01:56:02 <+dekar> it just assigns it 2012-06-10T01:56:18 < Laurenceb__> my mistake 2012-06-10T01:56:20 <+dekar> something is pretty fucked up XD 2012-06-10T01:57:19 < Laurenceb__> ok 2012-06-10T01:57:20 < Laurenceb__> /home/laurence/toolchain/lib/gcc/arm-none-eabi/4.7.1/../../../../arm-none-eabi/bin/ld: section .init loaded at [08011d24,08011d27] overlaps section .data loaded at [08011d24,0801238f] 2012-06-10T01:57:20 < Laurenceb__> collect2: error: ld returned 1 exit status 2012-06-10T01:57:31 < Laurenceb__> i got that before but it didnt error 2012-06-10T01:57:36 < Laurenceb__> i think its hte linker 2012-06-10T01:58:20 < Laurenceb__> thanks for the help 2012-06-10T01:59:08 <+dekar> Laurenceb__ it still doesn't work, does it? 2012-06-10T01:59:53 <+dekar> idk what section .init is 2012-06-10T01:59:57 <+dekar> or where it comes from 2012-06-10T02:01:12 <+dekar> Laurenceb__ open the sections_FLASH.ld 2012-06-10T02:01:24 <+dekar> search for "/DISCARD/" 2012-06-10T02:01:45 <+dekar> and add *(.init*) to the list 2012-06-10T02:02:03 <+dekar> Laurenceb__ whatever that .init section is, that should kill it 2012-06-10T02:02:16 <+dekar> flyback, what did you ask? 2012-06-10T02:03:21 < Laurenceb__> `_init' referenced in section `.text' of /tmp/ccarQpEv.ltrans7.ltrans.o: defined in discarded section `.init' of /home/laurence/toolchain/lib/gcc/arm-none-eabi/4.7.1/thumb/crti.o 2012-06-10T02:03:47 < Laurenceb__> isnt .init the startup code? 2012-06-10T02:04:48 <+dekar> Laurenceb__, wait 2012-06-10T02:04:54 <+dekar> let me look at your makefile 2012-06-10T02:05:09 <+dekar> Laurenceb__: add -nostartfiles to LDFLAGS 2012-06-10T02:06:04 < Laurenceb__> bbl 2012-06-10T02:06:36 <+dekar> Laurenceb__, before you leave try what I told you 2012-06-10T02:07:47 <+dekar> flyback, big companies suck 2012-06-10T02:07:56 <+dekar> it's always the same with them 2012-06-10T02:09:18 <+dekar> flyback, I once lost my phoneline/ISP contract over crap like that 2012-06-10T02:12:35 <+dekar> it went like… me: "why did you charge my bank account, I didn't get any service yet!" they: "you can look at the invoice online, you just have to login…" me: "how do I do that without internet?" they: "why do you order internet if you don't have a PC?" me: "wtf? My PC is fine, your company didn't connect my service yet!" they: "that's impossible, I can see in my computer that your internet is working fine!" 2012-06-10T02:13:20 <+dekar> -> I canceled the charges from my bank account and they cancelled my contract 2012-06-10T02:13:50 <+dekar> they still want money from me, I wonder whether I'll see them in court 2012-06-10T02:26:04 < zyp> how can you not have internet access in 2012? :p 2012-06-10T02:27:58 <+dekar> I have internet 2012-06-10T02:28:03 <+dekar> just not the DSL I wanted 2012-06-10T02:28:19 < zyp> how can somebody want DSL in 2012? :p 2012-06-10T02:30:14 <+dekar> VDSL is quite epic 2012-06-10T02:30:23 <+dekar> 50mbit/s down and 10mbit/s up 2012-06-10T02:30:53 <+dekar> cable only has 5mbit/s up here 2012-06-10T02:31:18 <+dekar> zyp, what do you get at your place? 2012-06-10T02:32:29 < zyp> I currently have 70/10 on cable 2012-06-10T02:32:43 < zyp> and I'm sorry, I read DSL as ADSL 2012-06-10T02:32:57 < zyp> my bashing was intended for ADSL 2012-06-10T02:33:58 <+dekar> I actually don't even care for speed that much 2012-06-10T02:34:09 <+dekar> I guess 10mbit/s would be enough 2012-06-10T02:34:43 <+dekar> I do like upload though 2012-06-10T02:34:51 < zyp> yeah, I had 20/5 last year 2012-06-10T02:35:06 < zyp> jumped at an offering for 50/10 at same cost around newyears 2012-06-10T02:35:15 < zyp> and then that got upgraded to 70/10 2012-06-10T02:36:20 < zyp> I had 10/10 for three years before I moved last summer 2012-06-10T02:36:42 < zyp> going 10 -> 20 down were a nice boost, and 10 -> 5 up weren't really noticeable 2012-06-10T02:37:12 < zyp> beyond 20 down, I haven't really noticed a huge difference 2012-06-10T02:38:00 < zyp> small downloads are only a few minutes either way, and huge downloads still take enough time that I forget about them before they finish 2012-06-10T02:46:32 < Laurenceb__> back 2012-06-10T02:46:53 < Laurenceb__> with nostartfiles i get the _impure_ptr error again 2012-06-10T02:53:33 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-06-10T03:03:22 -!- izua_ [~izua@unaffiliated/izua] has quit [Quit: Pull me under] 2012-06-10T03:04:11 * Laurenceb__ zzz 2012-06-10T03:08:40 -!- Laurenceb__ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has quit [Ping timeout: 260 seconds] 2012-06-10T03:09:05 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-06-10T03:34:25 < dongs> im still waiting for that guy to email me what practical application is there for propeller other than academic wank 2012-06-10T03:34:39 < dongs> can any of you dudes think of one 2012-06-10T03:35:15 < zyp> honestly, no trolling? not really 2012-06-10T03:35:22 < dongs> ya, honestly no trolling 2012-06-10T03:35:41 < dongs> from what I understand it has zero useful peripherals 2012-06-10T03:35:54 < zyp> it's parallax, after all 2012-06-10T03:35:55 < dongs> practically no memory per cog and a cog can only access its own memory 2012-06-10T03:36:20 < dongs> 160mips over 8 cores parallel isn't all that impressive calculation-wise. 2012-06-10T03:36:53 < zyp> nah 2012-06-10T03:37:13 < zyp> and then there is the «spin» stuff 2012-06-10T03:37:48 < dongs> right 2012-06-10T03:37:57 < dongs> the other multicore shit, xmos, can at least be programmed in regular C 2012-06-10T03:38:09 < dongs> though it sucks just as bad wrt periperals etc. 2012-06-10T03:38:42 < zyp> I looked at xmos recently, it's very different from the propeller 2012-06-10T03:39:14 < zyp> and actually seems pretty good for what it does 2012-06-10T03:40:59 < zyp> dongs, but yeah, I see the propeller as some «modern» variant of the basic stamp 2012-06-10T03:41:18 < dongs> heh 2012-06-10T03:41:37 < zyp> since it's all parallax 2012-06-10T03:41:40 < dongs> but basic stamp is at least usable 2012-06-10T03:41:41 < dongs> right 2012-06-10T03:41:49 < zyp> so that was probably the intention 2012-06-10T03:41:54 < dongs> to me, the fact that it s till comes in dip package automatically discredits it 2012-06-10T03:42:13 < dongs> btw i think the new hobbyking "32bit" flyingthing uses prop lol 2012-06-10T03:42:21 < zyp> is basic stamp any more usable than the propeller? 2012-06-10T03:42:26 < dongs> yes 2012-06-10T03:42:31 < zyp> how? 2012-06-10T03:42:41 < dongs> people actually understand basic 2012-06-10T03:42:49 < dongs> and they dont need to worry about concurrency and shit 2012-06-10T03:43:02 < dongs> ive seen lots of dumb hacks done on basicstamp because its easy 2012-06-10T03:43:06 < dongs> prop would be a huge learning curve 2012-06-10T03:43:23 < dongs> http://a.yfrog.com/img815/3193/ca4bi.jpg 2012-06-10T03:43:25 < dongs> what do you think 2012-06-10T03:43:30 < zyp> 02:43:02 < dongs> ive seen lots of dumb hacks done on basicstamp because its easy 2012-06-10T03:43:32 < dongs> props? 2012-06-10T03:43:33 < zyp> sounds like arduino 2012-06-10T03:43:48 < dongs> im not aware of any ARM proc in 44tqfp 2012-06-10T03:44:44 < dongs> i searched 'cortex' on digikey and scrolled through package list and nothing was in 44tqfp 2012-06-10T03:48:09 < zyp> looks like atmel logo or something on the chips 2012-06-10T03:48:12 < dongs> pretty sure no arm exists in dip 2012-06-10T03:48:15 < dongs> zyp: thats what im thinking 2012-06-10T03:48:25 < dongs> 44tqfp is atmel's package too 2012-06-10T03:48:35 < dongs> that thin one 2012-06-10T03:49:26 < zyp> flyback, way to be irrelevant 2012-06-10T03:49:47 < dongs> lol dip28 2012-06-10T03:52:58 < zyp> yeah, let's use packages that's longer than my entire F4 board 2012-06-10T03:54:08 < dongs> hobbyists stuck in 1996 maybe 2012-06-10T03:54:17 < dongs> hobbyists in 2012 can do bga shit at home 2012-06-10T03:54:33 < cjbaird> Breadboard people 2012-06-10T03:54:44 < dongs> yes really 2012-06-10T03:55:05 < TheSeven> hobbyists would happily use some LQFP packages in DIP-whatever adapters :P 2012-06-10T03:55:24 < cjbaird> Maybe if you're some hikki who has nothing better to do than design and order boards from PCB shops.. 2012-06-10T03:57:41 < dongs> i geuss nobody ever said hk-kk2 was 32bit. people jut assumed 2012-06-10T03:57:46 < dongs> so its probably just a fucking mega644 or some other trash 2012-06-10T03:57:47 < dongs> pass. 2012-06-10T04:00:13 < cjbaird> Someone I remember from the original NXP DIP28 announcements was it really being intended for the ultra-cheap production types, who do single/double sided PCB products. (Hand-etched by indentured slave kids in India..) 2012-06-10T04:01:16 < dongs> if its not on digikey, it doesnt exist 2012-06-10T04:33:40 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-240-74.clienti.tiscali.it] has quit [Remote host closed the connection] 2012-06-10T04:36:15 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-240-74.clienti.tiscali.it] has joined ##stm32 2012-06-10T04:46:50 -!- tuxfool [~anonymous@bl7-144-135.dsl.telepac.pt] has quit [Quit: tuxfool] 2012-06-10T05:08:50 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-240-74.clienti.tiscali.it] has quit [Ping timeout: 260 seconds] 2012-06-10T05:46:15 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-10T05:46:22 -!- [7] [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-10T05:50:22 -!- upgrdman_ [~upgrdman_@cpe-72-130-43-158.socal.res.rr.com] has joined ##stm32 2012-06-10T06:12:18 -!- upgrdman_ [~upgrdman_@cpe-72-130-43-158.socal.res.rr.com] has quit [Ping timeout: 244 seconds] 2012-06-10T06:45:45 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-10T06:47:43 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-10T07:16:01 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-10T07:27:12 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has left ##stm32 [] 2012-06-10T08:11:02 < cjbaird> TNT build on the gNewsense Lemote completed successfully... 2012-06-10T08:18:58 < cjbaird> The mandelbrot program is 1472 bytes smaller than the esden arm toolchain.. 2012-06-10T08:20:28 -!- cjbaird [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-10T08:43:56 -!- nopcode_ is now known as nopcode 2012-06-10T09:23:23 < GargantuaSauce> http://xn--d-bga.su/stm32-lcd.png great success 2012-06-10T09:23:26 -!- upgrdman_ [~upgrdman_@cpe-72-130-43-158.socal.res.rr.com] has joined ##stm32 2012-06-10T09:24:07 < GargantuaSauce> oops, http://xn--d-bga.su/stm32-lcd.jpg 2012-06-10T09:29:24 < upgrdman_> what lib are you using for char lcd? 2012-06-10T09:31:46 < GargantuaSauce> i ported the arduino code from http://spikenzielabs.com/SpikenzieLabs/I2C-SPI_LCD.html 2012-06-10T09:32:08 < GargantuaSauce> it's pretty bad though, need to refactor it entirely now that i have a working baseline 2012-06-10T09:32:53 < upgrdman_> i wonder if it would be hard to wite one from scratch. i might try it just to learn. 2012-06-10T09:33:17 < GargantuaSauce> using chibios underneath...nice to have blocking functions for sending and receiving 2012-06-10T09:33:33 < GargantuaSauce> Wire is fucking garbage, i am never going to do anything significant on the arduino again 2012-06-10T09:33:43 < upgrdman_> do you know if a 5v lcd will work on 3v and 3v logic? 2012-06-10T09:34:03 < GargantuaSauce> doubtful 2012-06-10T09:34:25 < upgrdman_> 5v and 3v logic? 2012-06-10T09:34:29 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2012-06-10T09:34:55 < GargantuaSauce> which mcu are you using 2012-06-10T09:35:05 < upgrdman_> f4disco 2012-06-10T09:35:18 < GargantuaSauce> you don't need to worry about it afaik 2012-06-10T09:35:42 < upgrdman_> k 2012-06-10T09:36:09 < GargantuaSauce> especially not for i2c, since it's an open drain thing 2012-06-10T09:36:20 < GargantuaSauce> just pull up to 5v and it will work, exactly like my pic 2012-06-10T09:36:49 < GargantuaSauce> (those are 500 ohm resistors, 2 in series...increasing by an order of magniude would be a good idea though 2012-06-10T09:37:35 < upgrdman_> mine doesnt have the extra pcb... dont think theyre i2c 2012-06-10T09:38:43 < GargantuaSauce> oh...no idea then 2012-06-10T09:54:12 -!- upgrdman_ [~upgrdman_@cpe-72-130-43-158.socal.res.rr.com] has quit [Ping timeout: 245 seconds] 2012-06-10T10:01:20 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32 2012-06-10T10:53:40 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-10T11:46:59 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-10T11:55:43 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.] 2012-06-10T12:35:16 -!- tuxfool [~anonymous@bl13-165-209.dsl.telepac.pt] has joined ##stm32 2012-06-10T12:47:37 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-10T13:17:38 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-240-74.clienti.tiscali.it] has joined ##stm32 2012-06-10T13:23:16 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Read error: Connection reset by peer] 2012-06-10T13:26:30 < Tectu> morning 2012-06-10T13:51:16 -!- Laurenceb__ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has joined ##stm32 2012-06-10T13:57:46 < dongs> status 2012-06-10T14:00:48 -!- cjbaird [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-10T14:02:22 < Laurenceb__> text: 74688 2012-06-10T14:02:27 < dongs> fail 2012-06-10T14:02:41 < Laurenceb__> it was 112544 2012-06-10T14:02:51 < Laurenceb__> thats a 34% reduction 2012-06-10T14:04:13 < Laurenceb__> but this doesnt look right atm 2012-06-10T14:04:17 < Laurenceb__> at least it compiles 2012-06-10T14:04:24 < Laurenceb__> using TNT 2012-06-10T14:04:33 < Laurenceb__> and LTO 2012-06-10T14:09:27 < dongs> congrats 2012-06-10T14:09:33 < dongs> when will you upgrade to a real compiler 2012-06-10T14:30:37 < Laurenceb__> lool 2012-06-10T14:30:48 < dongs> 4 cjbaird http://img179.imageshack.us/img179/1502/jap1cr1.jpg 2012-06-10T14:31:06 < Laurenceb__> lol 2012-06-10T14:31:24 < Laurenceb__> i had issues with .init and .fini sections 2012-06-10T14:31:31 < Laurenceb__> any idea where they go? 2012-06-10T14:32:14 < dongs> nope? i dont dick around with linker scripts 2012-06-10T14:32:16 < dongs> my $5000 compiler does ti 2012-06-10T14:33:14 < Laurenceb__> lol 2012-06-10T14:38:00 < cjbaird> d: necessary for people who eat with sticks 2012-06-10T14:39:09 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Ping timeout: 244 seconds] 2012-06-10T14:39:16 < BrainDamage> what's the actual advantage of using chopsticks compared to a fork? 2012-06-10T14:40:42 < cjbaird> they grow on trees? 2012-06-10T14:40:49 < dongs> lewl 2012-06-10T14:42:42 < cjbaird> I used chopsticks on the around-Australia motorbike trip: they're pretty useful for camping, actually. 2012-06-10T14:42:51 <+dekar> cjbaird, did you use LTO to compile the mandelbrot? 2012-06-10T14:46:36 < cjbaird> Yep. Code was ~1.5kB/5% smaller. 2012-06-10T14:46:54 < cjbaird> Well, by LTO, you mean the TNT toolchain? 2012-06-10T14:47:09 <+dekar> cjbaird, you have to set special flags for LTO 2012-06-10T14:47:30 <+dekar> TNT supports LTO and normal compile time optimizations 2012-06-10T14:47:44 <+dekar> LTO is usually superior though 2012-06-10T14:49:41 <+dekar> CFLAGS += -flto -fuse-linker-plugin LDFLAGS += -flto -fuse-linker-plugin -fwhole-program 2012-06-10T14:50:04 <+dekar> cjbaird, oh and make sure to add -Os to _LDFLAGS_ as well 2012-06-10T14:50:06 < Laurenceb__> dekar: https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Adding%20an%20uninitialized%20data%20section%20to%20a%20GCC%20build&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=83 2012-06-10T14:50:12 < Laurenceb__> sorry huge url 2012-06-10T14:50:21 < Laurenceb__> im getting it to build now 2012-06-10T14:50:23 <+dekar> since with LTO the linker optimizes and not the compiler 2012-06-10T14:50:41 < Laurenceb__> still doesnt look quite right, need to fix the linker script 2012-06-10T14:50:53 < Laurenceb__> down to 70KB from 113 2012-06-10T14:51:26 <+dekar> Laurenceb__, what's that insanely huge project you have? 2012-06-10T14:51:42 < Laurenceb__> its a datalogger 2012-06-10T14:52:20 <+dekar> ah I remember that one 2012-06-10T14:52:22 < Laurenceb__> datalogger with fat32+usb mass storage+led based "spectrometer"+various pneumatics stuff 2012-06-10T14:54:27 < Laurenceb__> ive got an autopilot project too, but havent really worked on it for a while 2012-06-10T14:54:42 < Laurenceb__> it could benefit from shrinking, as atm it only just fits into 128KB 2012-06-10T14:55:50 < Laurenceb__> clive1 seems to know what hes talking about 2012-06-10T14:56:36 < zyp> what's the issue? 2012-06-10T14:56:49 < Laurenceb__> .init and .fini 2012-06-10T14:57:20 < zyp> somebody here mentioned that gold doesn't respect KEEP in linker scripts 2012-06-10T14:57:29 < zyp> so that might be the issue 2012-06-10T14:57:44 <+dekar> zyp, he's not using gold 2012-06-10T14:57:57 < zyp> doesn't LTO require gold? 2012-06-10T14:58:13 < cjbaird> Got a bit of a saving, although there's only like printf and malloc being used. 2012-06-10T14:58:20 < cjbaird> text data bss dec hex filename 2012-06-10T14:58:22 < cjbaird> 30824 2276 60 33160 8188 mandel.elf-esdentoolchain 2012-06-10T14:58:23 < cjbaird> 29576 2276 60 31912 7ca8 mandel.elf-tnt 2012-06-10T14:58:25 < cjbaird> 29348 2248 60 31656 7ba8 mandel.elf-lto 2012-06-10T14:58:28 <+dekar> nope, I thought it would, but I just compiled both linkers defaulting to LD and it worked 2012-06-10T14:58:34 < Laurenceb__> KEEP (*(.init)) 2012-06-10T14:58:34 < Laurenceb__> KEEP (*(.fini)) 2012-06-10T14:58:41 < Laurenceb__> in the linker and it compiles 2012-06-10T14:59:04 <+dekar> Laurenceb__, I don't think you need ini and fini 2012-06-10T14:59:10 <+dekar> what's in those sections? 2012-06-10T14:59:16 <+dekar> are those even called? 2012-06-10T14:59:20 < Laurenceb__> well otherwise the sections go in the wrong place 2012-06-10T14:59:23 < Laurenceb__> and it fails 2012-06-10T14:59:35 < Laurenceb__> they must be called from somewhere? 2012-06-10T14:59:35 <+dekar> where did you get them from? 2012-06-10T14:59:47 < Laurenceb__> i dont know 2012-06-10T14:59:51 < zyp> oh, thought you were talking about .init_array and .fini_array 2012-06-10T15:00:13 < Laurenceb__> no, just .init, .fini 2012-06-10T15:00:20 < Laurenceb__> with i had the hardwar ehere to test 2012-06-10T15:00:47 <+dekar> well my code doesn't have those sections 2012-06-10T15:00:50 < zyp> I haven't seen my compiler emitting them, but I would guess that's where the actual init/fini methods are emitted then 2012-06-10T15:01:03 < zyp> I believe my compiler throws them into .text 2012-06-10T15:01:15 <+dekar> Laurenceb__, what's your startup code? 2012-06-10T15:01:21 < Laurenceb__> arm-none-eabi-objdump -D main.elf ? 2012-06-10T15:01:24 < Laurenceb__> to get asm? 2012-06-10T15:01:30 < zyp> yes 2012-06-10T15:01:34 <+dekar> I am using the startup codes that comes with the st libs 2012-06-10T15:01:47 < Laurenceb__> i think i am, just a sec 2012-06-10T15:02:25 <+dekar> Laurenceb__, the gcc_ride7 startup code goes into test ".text.Reset_Handler" 2012-06-10T15:02:32 <+dekar> *text 2012-06-10T15:02:47 < Laurenceb__> yeah i have the ST startup 2012-06-10T15:02:56 <+dekar> the ride one? 2012-06-10T15:03:06 <+dekar> then drop those weird init sections 2012-06-10T15:03:50 < Laurenceb__> it just says "MCD development team" 2012-06-10T15:04:53 <+dekar> Laurenceb__, https://dl.dropbox.com/u/28467113/startup_stm32f10x_hd.s 2012-06-10T15:05:18 -!- tuxfool [~anonymous@bl13-165-209.dsl.telepac.pt] has quit [Quit: tuxfool] 2012-06-10T15:05:25 < zyp> dekar, init/fini is typically constructors/destructors for global objects 2012-06-10T15:05:38 < Laurenceb__> yeah i have the same 2012-06-10T15:05:41 <+dekar> zyp, objects? like in c++ stuff? 2012-06-10T15:05:51 <+dekar> drop c++ as well :) 2012-06-10T15:06:00 < zyp> it's used for c++, yes 2012-06-10T15:06:14 < zyp> but it's possible to mark c functions to be called as a constructor as well 2012-06-10T15:06:21 < Laurenceb__> http://pastebin.com/Z0fiBmJR 2012-06-10T15:06:31 < Laurenceb__> ^does that look sane? 2012-06-10T15:07:03 < zyp> as far as you pasted it, yes 2012-06-10T15:07:24 <+dekar> Laurenceb__, what's at 0x08008ff9? 2012-06-10T15:07:53 <+dekar> Laurenceb__, you probably want to find another linker script, the one I gave you is C only 2012-06-10T15:07:54 < zyp> entry symbol ;) 2012-06-10T15:07:58 <+dekar> never knew you use C++ 2012-06-10T15:08:23 < zyp> I didn't say he's using C++ 2012-06-10T15:08:28 <+dekar> zyp, I know it's the entry symbol, I wanted to see the disassembly :P 2012-06-10T15:08:38 < zyp> :p 2012-06-10T15:08:59 < dongs> zyp, your i2c shit works wiht F1 also right 2012-06-10T15:09:08 <+dekar> zyp, didn't you use C++ with your linker script as well? 2012-06-10T15:09:30 < zyp> yep 2012-06-10T15:09:45 < zyp> but I have no .init/.fini, just .init_array and .fini_array 2012-06-10T15:10:11 <+dekar> Laurenceb__, grab zips linkerscript and use that 2012-06-10T15:10:17 < zyp> dongs, yes, I don't think I even changed it since using F1 2012-06-10T15:10:28 <+dekar> *zyps (I hate autocorrect) 2012-06-10T15:10:39 < zyp> dekar, linker script goes with startup code though 2012-06-10T15:10:44 < Laurenceb__> yeah 2012-06-10T15:10:46 < Laurenceb__> 8000000: 20010000 andcs r0, r1, r0 2012-06-10T15:10:51 < Laurenceb__> ^i dont follow that 2012-06-10T15:11:00 < Laurenceb__> i thought it needed vector table? 2012-06-10T15:11:05 <+dekar> Laurenceb__, that's the stack pointer 2012-06-10T15:11:07 < Laurenceb__> sure 2012-06-10T15:11:15 < Laurenceb__> but wtf is andcs r0, r1, r0 2012-06-10T15:11:16 <+dekar> 0x20010000 is your stack 2012-06-10T15:11:19 < zyp> my linker script only exposes the symbols expected by my startup code, so it won't work with any other startup code 2012-06-10T15:11:35 <+dekar> Laurenceb__, don't read the disassembly for the interrupt vector lol 2012-06-10T15:11:36 < zyp> Laurenceb__, it's what it would be if it were an instruction 2012-06-10T15:11:48 < Laurenceb__> oh lmao 2012-06-10T15:12:25 < Laurenceb__> i see 2012-06-10T15:15:22 <+dekar> Laurenceb__, did you ever call .fini/.init from your old code? 2012-06-10T15:15:46 < Laurenceb__> no 2012-06-10T15:16:20 <+dekar> so your global objects weren't constructed at startup? 2012-06-10T15:16:45 < zyp> if he have any 2012-06-10T15:17:04 < Laurenceb__> http://pastie.org/4061334 2012-06-10T15:17:05 <+dekar> zyp, if he doesn't he should be able to drop them anyway 2012-06-10T15:17:37 <+dekar> [14:07] Laurenceb__, what's at 0x08008ff9? 2012-06-10T15:17:43 < Laurenceb__> sec 2012-06-10T15:17:57 < zyp> hmm, interesting 2012-06-10T15:18:04 < zyp> oh 2012-06-10T15:18:05 < zyp> haha 2012-06-10T15:18:12 < zyp> those are empty functions 2012-06-10T15:18:40 < Laurenceb__> 08008ff8 : 2012-06-10T15:18:40 < Laurenceb__> 8008ff8: 2100 movs r1, #0 2012-06-10T15:18:40 < Laurenceb__> 8008ffa: f000 b804 b.w 8009006 2012-06-10T15:19:07 < zyp> creates a stack frame and destroys it again 2012-06-10T15:19:23 < zyp> those can safely be dropped 2012-06-10T15:19:29 < Laurenceb__> ok 2012-06-10T15:19:59 < Laurenceb__> does the reset hander look sane? 2012-06-10T15:20:43 < zyp> https://dl.dropbox.com/u/28467113/startup_stm32f10x_hd.s <- sure, it corresponds exactly to this 2012-06-10T15:21:06 < Laurenceb__> why are all the vectors odd? 2012-06-10T15:21:14 < zyp> thumb 2012-06-10T15:21:24 < zyp> lower bit selects thumb or arm mode 2012-06-10T15:21:26 <+dekar> Laurenceb__, they're not actually odd 2012-06-10T15:22:04 < Laurenceb__> ah yeah i remember 2012-06-10T15:22:07 < Laurenceb__> makes sense 2012-06-10T15:22:07 < zyp> every instruction have to be 16-bit aligned, so lower bit is not used for adressing 2012-06-10T15:22:20 < zyp> so they put a flag there instead 2012-06-10T15:22:23 < Laurenceb__> cool, ill have to try running this tomorrow 2012-06-10T15:22:55 * Laurenceb__ is watching balloons on spacenear 2012-06-10T15:23:12 <+dekar> I like how _init and _fini do NOP :) 2012-06-10T15:23:19 < zyp> it's kind of intel and their pagetables on x86 2012-06-10T15:23:32 < zyp> every page is 4k, so every page addr is 4k aligned 2012-06-10T15:23:41 < zyp> so they have 12 bits free to use for flags 2012-06-10T15:25:46 < Laurenceb__> 35% size reduction isnt bad then :P 2012-06-10T15:26:42 <+dekar> I have seen TNT do as much before 2012-06-10T15:27:05 <+dekar> Laurenceb__, http://pastebin.com/uJUe7rbX 2012-06-10T15:27:49 < Laurenceb__> nice 2012-06-10T15:28:34 < Laurenceb__> malloc should be better behaved too 2012-06-10T15:29:00 <+dekar> yeah 2012-06-10T15:29:29 -!- tavish [~tavish@120.59.3.78] has joined ##stm32 2012-06-10T15:29:29 -!- tavish [~tavish@120.59.3.78] has quit [Changing host] 2012-06-10T15:29:29 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-10T16:30:42 -!- emeric_ [~emeric@AToulouse-551-1-71-89.w92-146.abo.wanadoo.fr] has left ##stm32 ["Quitte"] 2012-06-10T16:54:08 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32 2012-06-10T17:00:20 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 256 seconds] 2012-06-10T17:01:07 -!- tuxfool [~anonymous@bl13-165-209.dsl.telepac.pt] has joined ##stm32 2012-06-10T17:05:19 -!- cjbaird [~cjb@ppp121-44-89-139.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-10T17:13:56 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-10T17:16:55 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-10T17:19:41 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124] 2012-06-10T17:27:53 -!- tavish [~tavish@unaffiliated/tavish] has quit [Read error: Connection reset by peer] 2012-06-10T17:30:12 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [] 2012-06-10T17:30:36 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-10T17:30:36 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-10T17:32:12 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-10T17:32:59 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-10T17:40:23 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds] 2012-06-10T17:41:01 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-10T17:46:54 < Laurenceb__> my interrupts are all broken :-/ 2012-06-10T17:47:27 < Laurenceb__> well apart from 2012-06-10T17:49:26 <+dekar> Laurenceb__, hahaha 2012-06-10T17:49:40 < Laurenceb__> it obviously the names 2012-06-10T17:49:50 < Laurenceb__> but i see them in the COMMON linker 2012-06-10T17:49:53 < Laurenceb__> im confused 2012-06-10T17:50:03 <+dekar> LTO did that 2012-06-10T17:50:11 <+dekar> umm prefix them with "__attribute__((externally_visible))" 2012-06-10T17:50:38 < Laurenceb__> oh 2012-06-10T17:50:50 < Laurenceb__> i had this issue before with typos in linker scripts 2012-06-10T17:51:21 < Laurenceb__> void __attribute__((externally_visible)) IRQ_Handler ? 2012-06-10T17:52:02 <+dekar> left of the void 2012-06-10T17:59:17 < Laurenceb__> ok, its grown a bit in size and the handers are there 2012-06-10T17:59:34 < Laurenceb__> but shouldnt the addresses be at the start in the vectors? 2012-06-10T17:59:39 <+dekar> you can also pass "-u function-name" to the linker 2012-06-10T18:00:02 <+dekar> yes they should 2012-06-10T18:00:42 < Laurenceb__> hmm 2012-06-10T18:00:54 < Laurenceb__> only the reset hander and the adc handers are there 2012-06-10T18:01:07 <+dekar> did you prefix them? 2012-06-10T18:01:10 < Laurenceb__> yes 2012-06-10T18:01:12 <+dekar> the other ones I mean? 2012-06-10T18:01:16 < Laurenceb__> yes 2012-06-10T18:01:17 <+dekar> didn't help? 2012-06-10T18:01:21 < Laurenceb__> it did yes 2012-06-10T18:01:28 < Laurenceb__> all the hander functions are now in the asm 2012-06-10T18:01:40 < Laurenceb__> but they arent all in the vector table 2012-06-10T18:01:50 <+dekar> what's in the vector then? 2012-06-10T18:01:55 <+dekar> just zero? 2012-06-10T18:03:01 < Laurenceb__> 08009e8c : 2012-06-10T18:03:02 < Laurenceb__> lol 2012-06-10T18:03:29 < Laurenceb__> lots of busfault 2012-06-10T18:03:33 <+dekar> give me a name of some dropped handler 2012-06-10T18:03:46 <+dekar> I remember codesourcery had different names for them 2012-06-10T18:03:50 <+dekar> maybe that's the problem 2012-06-10T18:04:14 < Laurenceb__> DMAChannel1_IRQHandler 2012-06-10T18:04:25 < Laurenceb__> yes, but i see that name in the COMMON linker 2012-06-10T18:04:42 < Laurenceb__> PROVIDE ( DMAChannel1_IRQHandler = 0 ) ; 2012-06-10T18:04:59 <+dekar> Laurenceb__, rename it to DMA1_Channel1_IRQHandler 2012-06-10T18:05:55 <+dekar> Laurenceb__, https://dl.dropbox.com/u/28467113/startup_stm32f10x_hd.s 2012-06-10T18:06:02 <+dekar> look the names up in the startup code 2012-06-10T18:06:12 < Laurenceb__> oh 2012-06-10T18:06:37 < Laurenceb__> so confusing 2012-06-10T18:07:09 <+dekar> XD 2012-06-10T18:08:31 < jon1012> (whoeve told me enc28j60 wsasn't fitted was right :)) 2012-06-10T18:09:14 < jon1012> (max data rate I get is 100k / s...) 2012-06-10T18:12:51 < Laurenceb__> ok they all link now 2012-06-10T18:12:54 < Laurenceb__> thanks 2012-06-10T18:14:35 < Laurenceb__> so "only" 32% smaller 2012-06-10T18:15:02 <+dekar> how much was it before? :) 2012-06-10T18:15:17 < Laurenceb__> 112544 2012-06-10T18:15:32 < Laurenceb__> now 70080 2012-06-10T18:15:34 <+dekar> I mean the percentage it was smaller before fixing the handlers 2012-06-10T18:15:48 < Laurenceb__> 34% 2012-06-10T18:15:50 <+dekar> might be worth having no handlers :P 2012-06-10T18:19:11 <+dekar> Laurenceb__, we should make some example project for TNT 2012-06-10T18:19:17 <+dekar> making sure it keeps all the handlers etc 2012-06-10T18:19:22 <+dekar> so people can build on that 2012-06-10T18:19:41 < Laurenceb__> *now 77080 2012-06-10T18:20:42 <+dekar> if you feel like making a small example project I'd commit it to the repo 2012-06-10T18:20:54 < Laurenceb__> heh my project is quite big 2012-06-10T18:21:08 < dongs> does it beat armcc yet? 2012-06-10T18:21:24 <+dekar> dongs, well using GOLD it does 2012-06-10T18:21:36 < dongs> ? 2012-06-10T18:21:46 <+dekar> my firmware was 0 bytes when I used the experimental GOLD linker 2012-06-10T18:21:54 < dongs> ya ur super leet 2012-06-10T18:22:51 <+dekar> dongs, well I never really intended to beat armCC, I see there is a reason to use it if you need the smallest size possible (for mass production and cost savings) 2012-06-10T18:23:14 < Laurenceb__> https://github.com/Laurenceb/STM32-Logger 2012-06-10T18:24:42 <+dekar> Laurenceb__, now make it work with GOLD for faster compile times :P 2012-06-10T18:25:21 < Laurenceb__> what is GOLD? 2012-06-10T18:25:59 <+dekar> ld.gold - it's an experimental linker that comes with TNT 2012-06-10T18:26:07 < Laurenceb__> ah 2012-06-10T18:26:12 < dongs> jewgold 2012-06-10T18:26:13 <+dekar> written by google 2012-06-10T18:26:22 < dongs> huh really? 2012-06-10T18:26:25 < Laurenceb__> loldongs 2012-06-10T18:26:33 < dongs> from 2008 2012-06-10T18:26:33 < dongs> lol 2012-06-10T18:26:37 <+dekar> dongs, I think gold is a nazi since it drops all my sections -> nazigold 2012-06-10T18:26:38 < dongs> http://google-opensource.blogspot.jp/2008/04/gold-google-releases-new-and-improved.html 2012-06-10T18:27:09 < dongs> haha its written in C++ 2012-06-10T18:27:17 < Laurenceb__> 503 2012-06-10T18:27:26 < Laurenceb__> i think japan finally ran out of power 2012-06-10T18:27:37 <+dekar> dongs, yet better than that weird language they made… go? 2012-06-10T18:27:55 < Laurenceb__> so is gold packaged with TNT? 2012-06-10T18:28:01 <+dekar> yeah 2012-06-10T18:28:10 < Laurenceb__> ok guess id batter use it 2012-06-10T18:28:14 < Laurenceb__> *better 2012-06-10T18:28:27 <+dekar> arm-none-eabi-ld.gold 2012-06-10T18:28:40 < Laurenceb__> as the linker? 2012-06-10T18:28:44 <+dekar> ya 2012-06-10T18:28:50 < Laurenceb__> k 2012-06-10T18:29:05 <+dekar> it has major problems parsing linker scripts though 2012-06-10T18:29:20 <+dekar> so you probably have to do everything using linker flags 2012-06-10T18:31:19 < Laurenceb__> arm-none-eabi-ld.gold: -Wl,--gc-sections,-Map=main.map,-cref: unknown option 2012-06-10T18:32:04 < Laurenceb__> it doesnt seem happy? 2012-06-10T18:33:38 <+dekar> -Wl means that gcc should pass it to the linker 2012-06-10T18:33:46 <+dekar> but you call the linker and not GCC 2012-06-10T18:34:28 <+dekar> you can just do "cp arm-none-eabi-ld.gold arm-none-eabi-ld" 2012-06-10T18:34:35 <+dekar> then you don't have to change your makefile 2012-06-10T18:36:14 < Laurenceb__> wont that overwrite my linker? 2012-06-10T18:39:12 < Laurenceb__> ok it built 2012-06-10T18:39:20 < Laurenceb__> but erm no change 2012-06-10T18:39:30 < Laurenceb__> its supposed to be faster? 2012-06-10T18:39:42 <+dekar> it is supposed to link faster, like times 5 2012-06-10T18:39:52 <+dekar> also it isn't supposed to work actually 2012-06-10T18:39:58 <+dekar> didn't work for me at least 2012-06-10T18:40:00 < Laurenceb__> lol 2012-06-10T18:40:06 <+dekar> it complained about my linkerscript 2012-06-10T18:40:06 < Laurenceb__> hmm 2012-06-10T18:40:18 <+dekar> so somehow you're probably not using gold 2012-06-10T18:40:19 <+dekar> idk 2012-06-10T18:40:39 <+dekar> maybe that "cp arm-none-eabi-ld.gold arm-none-eabi-ld" doesn't actually work 2012-06-10T18:42:56 < Laurenceb__> oh its certainly replaced 2012-06-10T18:43:08 < Laurenceb__> but i cant see a massive change in speed 2012-06-10T18:43:16 < Laurenceb__> its about 3 seconds for each 2012-06-10T18:43:17 <+dekar> Laurenceb__, that's not what I mean, I mean maybe you have to rebuild GCC 2012-06-10T18:43:35 < Laurenceb__> oh 2012-06-10T18:43:48 < Laurenceb__> theres no way im doing that 2012-06-10T18:44:12 < Laurenceb__> takes about 30s to build the whole project, im happy with that 2012-06-10T18:44:28 <+dekar> yeah I don't really care either 2012-06-10T18:44:34 <+dekar> thus I gave up on gold 2012-06-10T18:44:36 <+dekar> XD 2012-06-10T18:44:38 < Laurenceb__> heh 2012-06-10T18:45:02 <+dekar> I think you have to change "--enable-gold" to "--enable-gold=default" or something in the TNT buildscript 2012-06-10T19:09:46 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds] 2012-06-10T19:17:30 -!- ben1066 [~quassel@unaffiliated/ben1066] has quit [Read error: Connection reset by peer] 2012-06-10T19:18:50 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-10T19:23:10 -!- izua [~izua@86.121.85.82] has joined ##stm32 2012-06-10T19:23:10 -!- izua [~izua@86.121.85.82] has quit [Changing host] 2012-06-10T19:23:10 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-10T19:23:13 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-10T19:31:04 -!- tavish [~tavish@120.56.233.12] has joined ##stm32 2012-06-10T19:31:04 -!- tavish [~tavish@120.56.233.12] has quit [Changing host] 2012-06-10T19:31:04 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-10T19:36:40 < zippe> ./configure: line 4781: syntax error near unexpected token `USB,' 2012-06-10T19:36:41 < zippe> ./configure: line 4781: `PKG_CHECK_MODULES(USB, libusb-1.0 >= 1.0.0,,' 2012-06-10T19:36:45 < zippe> Dammit, I thought I fixed that 2012-06-10T19:40:17 < zyp> hmm, that's the same error I got when I attempted to build openocd 2012-06-10T19:40:38 < zyp> a coupe of weeks ago 2012-06-10T19:46:54 < zippe> s'ok, fixed it on another machine, not this one 2012-06-10T19:46:58 < zippe> Just had to migrate the fix 2012-06-10T19:49:18 < zippe> Oh, and dongs… suck it. That makes the FSF linker the only mainstream link editor not written in C++ 2012-06-10T19:49:49 < zippe> Since you seem to care about that sort of thing. 8) 2012-06-10T19:52:35 < zyp> zippe, what is causing that configure error? 2012-06-10T19:52:56 < zyp> someting broken in the autoconf setup? 2012-06-10T20:18:18 < Rickta59> so to write to flash on the f0 discovery, do i need to use st-flash ( texane/stlink ) or can i just use load in gdb 2012-06-10T20:26:30 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32 2012-06-10T20:27:32 < R2COM> for the GPIO ports, there is AFRLH and AFRLL registers, to set alternate functions, you can set AF function to any of 16 pins in AFRH for example, what is the purpose of having two registers? 2012-06-10T20:28:03 < R2COM> oh 2012-06-10T20:28:04 < R2COM> ok 2012-06-10T20:28:06 < R2COM> nevermind 2012-06-10T20:29:25 < BrainDamage> this might be an odd question, but anyone knows a mesh networking lib where I simply provide IO hooks, node discovery ,etc 2012-06-10T20:29:41 < zippe> BrainDamage: Have you looked at Contiki? 2012-06-10T20:31:12 < BrainDamage> this ? https://en.wikipedia.org/wiki/Contiki 2012-06-10T20:31:40 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 260 seconds] 2012-06-10T20:35:15 < zippe> Yes 2012-06-10T20:35:31 < BrainDamage> looking at it now 2012-06-10T20:53:09 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-10T21:48:35 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving] 2012-06-10T21:54:57 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-06-10T22:40:21 -!- dekar [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has quit [Read error: Connection reset by peer] 2012-06-10T22:40:37 -!- dekar [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has joined ##stm32 2012-06-10T22:40:41 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-10T22:53:40 < upgrdman> arm-none-eabi-gdbtui fails to load with "Error opening terminal: xterm." but i have xterm installed. any ideas? 2012-06-10T22:56:29 <+dekar> upgrdman, what's gdbtui? 2012-06-10T22:57:21 < upgrdman> gdb text gui-ish 2012-06-10T22:58:45 < upgrdman> arm-none-eabi-gdb works fine but i want to try the tui 2012-06-10T23:08:25 <+dekar> is that my toolchain? 2012-06-10T23:10:40 < upgrdman> GAE 2012-06-10T23:10:50 < upgrdman> gcc arm embedded ... on launchpad 2012-06-10T23:36:30 < Laurenceb__> anyone here use dropbox? 2012-06-10T23:36:53 < Laurenceb__> how do i share a folder with a group of users? 2012-06-10T23:37:19 < R2COM> folder? 2012-06-10T23:37:33 < R2COM> you mean orders? 2012-06-10T23:37:51 < R2COM> dont you just submit them to laens mail? or there is somethind different you talking about? 2012-06-10T23:38:07 < Laurenceb__> hmm ill try and work out the menus 2012-06-10T23:38:22 < Laurenceb__> i dont want it to be public, i want to be able to select the tusers who can see it 2012-06-10T23:38:29 < Laurenceb__> *users 2012-06-10T23:42:19 < Laurenceb__> lmao 2012-06-10T23:42:30 < Laurenceb__> i confused samba and dropbox sharing options 2012-06-10T23:55:20 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] --- Day changed Mon Jun 11 2012 2012-06-11T00:22:32 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/] 2012-06-11T00:38:58 -!- izua [~izua@86.121.85.82] has joined ##stm32 2012-06-11T00:38:58 -!- izua [~izua@86.121.85.82] has quit [Changing host] 2012-06-11T00:38:58 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-11T00:38:59 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-11T00:45:45 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-11T00:46:07 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 244 seconds] 2012-06-11T00:47:01 -!- phantoneD is now known as phantoxeD 2012-06-11T00:49:51 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2012-06-11T00:52:41 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-11T00:54:05 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 256 seconds] 2012-06-11T00:58:04 -!- xx [~Arizona_B@modemcable055.174-83-70.mc.videotron.ca] has left ##stm32 ["When you take yourself too seriously is when you will fall down"] 2012-06-11T01:06:11 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-11T01:39:43 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Remote host closed the connection] 2012-06-11T01:50:10 -!- Laurenceb__ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has quit [Ping timeout: 260 seconds] 2012-06-11T03:27:40 < R2COM> got my spi working at last 2012-06-11T03:28:01 < R2COM> with manually toggling registers.. without stdperiph 2012-06-11T03:28:51 < R2COM> now, im wondering would it be relatively not much time consuming making SD-card work, by using the library, and Not using stdperiph... or fatfs highly dependent on stdperiph 2012-06-11T03:28:53 < R2COM> gotta look... 2012-06-11T03:31:04 <+izua> you mean software spi? that's.. brutal. 2012-06-11T03:32:45 < karlp> so, variou speople all provided workign spi code using stdperiph, 2012-06-11T03:32:49 < karlp> and you went and bitbanged it? 2012-06-11T03:33:06 < zyp> he said registers, not pins 2012-06-11T03:33:14 < karlp> oh yeah, ok, good :) 2012-06-11T03:33:24 < zyp> so I guessed he ditched stdperiph but not hardware-spi 2012-06-11T03:38:16 < R2COM> what? 2012-06-11T03:38:17 < R2COM> no 2012-06-11T03:38:28 < R2COM> no i used hardware SPI 2012-06-11T03:38:35 < R2COM> but by talking with SPI registers directly 2012-06-11T03:38:40 < R2COM> CR...SR etc 2012-06-11T03:39:01 < R2COM> ((SPI_TypeDef *) (SPI2_BASE)) -> CR1 |= etc etc.. 2012-06-11T03:39:58 < R2COM> zyp 2012-06-11T03:40:02 <+izua> hmm 2012-06-11T03:40:03 < R2COM> you already using fatfs? 2012-06-11T03:40:13 <+izua> anyone here messed with libopencm3? 2012-06-11T03:40:31 <+izua> i've been trying to have a project make outside the example dir, but i suck at makefiles ._. 2012-06-11T03:40:55 < zyp> izua, blackmagic does just that, I suggest you have a look at it 2012-06-11T03:41:11 < upgrdman> what does ?= mean in a Makefile? 2012-06-11T03:41:41 < R2COM> zyp: how did you tie fatfs to your own library? you had to change all the calls in fatfs or, you did something else? 2012-06-11T03:42:16 < zyp> I've never used fatfs 2012-06-11T03:42:33 < R2COM> zyp: do you use sd-card at all? or any other data logging card interface to stm32? 2012-06-11T03:42:44 < zyp> no, I've never interfaced with sd-cards 2012-06-11T03:42:48 < R2COM> ok 2012-06-11T03:42:58 <+izua> zyp: the thing from blacksphere tech? 2012-06-11T03:43:14 < zyp> izua, yeah, it's on gsmcmullin's github page 2012-06-11T03:49:14 <+izua> reading, checking, and going to test. 2012-06-11T03:59:15 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-11T04:34:39 < R2COM> heh sdio driver based on stdperiph 2012-06-11T04:34:43 < R2COM> as i expected... 2012-06-11T04:34:50 < R2COM> the fatfs one.. 2012-06-11T04:58:00 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 260 seconds] 2012-06-11T05:44:59 -!- [7] [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-11T05:45:05 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-11T05:52:43 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-240-74.clienti.tiscali.it] has quit [Ping timeout: 256 seconds] 2012-06-11T06:05:47 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-06-11T07:07:12 -!- upgrdman_ [~upgrdman_@71-92-208-122.static.mtpk.ca.charter.com] has joined ##stm32 2012-06-11T07:19:49 -!- upgrdman_ [~upgrdman_@71-92-208-122.static.mtpk.ca.charter.com] has quit [Ping timeout: 244 seconds] 2012-06-11T07:48:35 < zippe> Huh. Feiyu brought boot0 out to a pin on the FY-20A 2012-06-11T07:48:44 < zippe> So perhaps these aren't completely useless anymore 2012-06-11T07:52:51 -!- dekar [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has quit [Read error: Connection reset by peer] 2012-06-11T07:53:08 -!- dekar [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has joined ##stm32 2012-06-11T07:53:11 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-11T08:10:50 < dongs> zippe: its on a pin on FY90 as well 2012-06-11T08:10:53 < dongs> just snipped. 2012-06-11T08:11:06 < dongs> zippe: i have my flyingthing code running on FY90A 2012-06-11T08:11:32 < dongs> i think hardware between FYx0y things are al lsame? 2012-06-11T08:14:11 < zippe> all analog gyro/ADC? F103RBT6 ? 2012-06-11T08:14:24 < dongs> yea 2012-06-11T08:14:28 < dongs> same shit then 2012-06-11T08:15:28 < dongs> ST's LPR550/LY550 gyros + some random analog ADC (adxl??something I think?) 2012-06-11T08:15:39 < zippe> 345 or similar 2012-06-11T08:15:46 < zippe> Hmm, that means you 2012-06-11T08:15:56 < zippe> are the AfroFlight guy 2012-06-11T08:16:01 < dongs> heh yeah 2012-06-11T08:16:26 < zippe> I was looking at that code; looked like adding support for these sensors wouldn't be hard, but if you've already done it that's even more amusing 2012-06-11T08:16:32 < zippe> Is it on a branch anywhere? 2012-06-11T08:16:37 < dongs> its in the base code 2012-06-11T08:16:41 < dongs> just #define FYwhatever 2012-06-11T08:16:50 < dongs> http://code.google.com/p/afrodevices/source/browse/#svn%2Ftrunk%2Fbaseflight 2012-06-11T08:16:54 < zippe> Hrm, I wasn't looking hard enough then; I didn't see the gyro stuff 2012-06-11T08:17:09 < dongs> all adc shit is in http://code.google.com/p/afrodevices/source/browse/trunk/baseflight/src/drv_adc_fy90q.c 2012-06-11T08:17:31 < dongs> acc/gyro function pointers are set there 2012-06-11T08:17:43 < zippe> Ah, FY90 stuff 2012-06-11T08:18:15 < dongs> zippe> Ah, FY90 stuff 2012-06-11T08:18:17 < dongs> err 2012-06-11T08:18:25 < dongs> ADXL335 2012-06-11T08:18:28 < dongs> accorrding to my code 2012-06-11T08:18:41 < dongs> you need to do scalefactor shit 2012-06-11T08:18:44 < dongs> for both acc and gyro 2012-06-11T08:19:03 < dongs> i kinda kludged it so it looks more or less Ok but if you wanna properly measure it thats cool, i'll take patches :D 2012-06-11T08:20:23 < zippe> Heh, sure 2012-06-11T08:20:39 < zippe> First thing is to get a programming cable together 2012-06-11T08:20:51 < dongs> i made a nice internal SWD connector 2012-06-11T08:21:00 < dongs> soldered it up and hotglued inside 2012-06-11T08:21:06 < dongs> so I can stick in a 4pin 2mm header to program it 2012-06-11T08:21:56 < dongs> original FY shit even kills jtag while running 2012-06-11T08:22:02 < dongs> those guys are super paranoid of thier shit getting stolen 2012-06-11T08:32:46 < dongs> you probably know this already? http://i.imgur.com/ptwLN.png 2012-06-11T08:35:00 < zippe> FY-20A pinout is different 2012-06-11T08:35:45 < zippe> JTAG pins seem to go nowhere 2012-06-11T08:36:01 < zippe> There's a sensor footprint in there with nothing loaded, not quite sure what it was meant to be... 2012-06-11T08:39:04 < dongs> yes they go nowehre 2012-06-11T08:39:10 < dongs> i had to solder tiny wires to it 2012-06-11T08:39:18 < dongs> the footprint = spi eeprom 2012-06-11T08:39:25 < dongs> thats where I put my 2mm SWD header 2012-06-11T08:39:32 < dongs> and then ran thin transformer wire to debug pins. 2012-06-11T08:55:45 -!- tuxfool [~anonymous@bl13-165-209.dsl.telepac.pt] has quit [Quit: tuxfool] 2012-06-11T09:26:55 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-11T09:28:47 < zippe> Ok, that's weird. There's one n/c pin, and it's routed to an un-stuffed LDO on the board 2012-06-11T09:29:01 < zippe> If it was stuffed, it would be supplying power out to … something? 2012-06-11T09:30:58 < zippe> And the baseboard has more I/O than is routed to the connector 2012-06-11T09:54:42 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has joined ##stm32 2012-06-11T09:54:42 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has quit [Changing host] 2012-06-11T09:54:42 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32 2012-06-11T10:00:15 -!- tuxfool [~anonymous@195-23-237-248.net.novis.pt] has joined ##stm32 2012-06-11T10:10:44 -!- dekar [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has quit [Quit: Leaving] 2012-06-11T10:41:58 < zippe> Hah, that Makefile is a travesty 2012-06-11T10:42:37 < dongs> haha 2012-06-11T10:42:44 < dongs> no doubt. 2012-06-11T10:42:47 < dongs> i dont maintain it 2012-06-11T10:51:15 < zippe> Hmm, you have a beef with DJI I see 2012-06-11T10:51:20 < zippe> Such a character, so lovable. 2012-06-11T10:52:00 < zippe> It builds, but no idea what it built 2012-06-11T10:52:10 < zippe> Almost certainly not the right stuff. 2012-06-11T10:53:34 < zippe> Where do you put the config on these boards? No EEPROm 2012-06-11T10:54:13 < zippe> Ah, burning a flash page, fair 'nuff 2012-06-11T10:54:17 < dongs> yes 2012-06-11T10:54:31 < dongs> you proably need to -DFY90Q or whatever somewehre in makefile to make it build FY stuff 2012-06-11T10:54:41 < dongs> i dont think i ever added anything for that in makefile 2012-06-11T10:54:52 < dongs> #ifdef FY90Q 2012-06-11T10:54:53 < dongs> ya that. 2012-06-11T10:56:23 < dongs> looks like adding it to COMPILER_FLAGS will work. 2012-06-11T11:00:21 < zippe> Yeah, got that part 2012-06-11T11:00:29 < zippe> Just trying to work out how to rightly kill the stupid PWM crap 2012-06-11T11:00:47 < Tectu> zyp, you fixed texane/stlink f4 issue? 2012-06-11T11:00:56 < zyp> which issue? 2012-06-11T11:01:04 < Tectu> speed issue 2012-06-11T11:01:08 < zyp> I wrote a flashloader, if that's what you're referring to 2012-06-11T11:01:09 < Tectu> dunno, something was there 2012-06-11T11:01:26 < Tectu> not sure what this is 2012-06-11T11:01:34 < zyp> mostly as a challenge, since I don't use the st-link much myself :p 2012-06-11T11:01:59 < zyp> but yeah, it's faster now 2012-06-11T11:01:59 < Tectu> what is the "flashloader" doing? 2012-06-11T11:02:01 < dongs> zippe: which pwm crap. 2012-06-11T11:02:10 < dongs> Tectu: i think shit that loads flash through ram so its fastar 2012-06-11T11:02:10 < Tectu> zyp, so people do get 10kB/s with f4 now? 2012-06-11T11:02:25 < zyp> ha, way more 2012-06-11T11:02:31 < Tectu> aaah, like stm32flash over serial bootloader? 2012-06-11T11:02:53 < zippe> dongs: mm, have you tried building for FY lately? The includes in board.h seem wrong 2012-06-11T11:03:12 < dongs> yes, it works (inside IDE) 2012-06-11T11:03:14 < zippe> Or is it just trying to build too much? 2012-06-11T11:03:27 < dongs> it'll build some shit that's irrelvant but it should still build 2012-06-11T11:03:29 < zyp> Tectu, when I tested, a full 1M flash took just over 40 seconds 2012-06-11T11:03:32 < Tectu> zyp, can you explain to me what it's doing 2012-06-11T11:03:37 < Tectu> the thing you wrote 2012-06-11T11:03:39 < Tectu> and is it only for F4? 2012-06-11T11:03:42 < zippe> the adxl345 driver doesn't build; missing its header 2012-06-11T11:03:58 < zyp> Tectu, ok 2012-06-11T11:04:04 < dongs> huh lemme try the commandline failway 2012-06-11T11:04:13 < zippe> Guessing the IDE is not building that part 2012-06-11T11:04:19 < zippe> You using TS or UV? 2012-06-11T11:04:31 < zippe> I can try firing up the heap of crap that is TS if I must 2012-06-11T11:04:36 < Tectu> just wondering.... can you PM people "over github" ? 2012-06-11T11:04:41 < zyp> Tectu, the thing is, when flashing you can only write one word at a time, then you have to wait for a flag before writing the next word 2012-06-11T11:04:56 < zyp> Tectu, so you have a loop repeatedly checking that flag 2012-06-11T11:05:17 < dongs> crapo 2012-06-11T11:05:18 < dongs> urite 2012-06-11T11:05:26 < dongs> i turn off those in the iDE 2012-06-11T11:05:28 < dongs> but not in makefile 2012-06-11T11:05:33 < zyp> Tectu, doing that over usb adds a lot of latency, so you waste a lot of time between writing each word 2012-06-11T11:05:43 < dongs> you dont need to build drv_adc, drv_adxl, dvr_bmp, drv_hmc, drv_mpu, drv_pwm, drv_ledring 2012-06-11T11:05:46 < zippe> The makefile is pretty failtastic; it just compiles "everything" 2012-06-11T11:05:50 < dongs> yeah 2012-06-11T11:05:51 < Tectu> zyp, i understand 2012-06-11T11:05:58 < Tectu> zyp, go on 2012-06-11T11:05:59 < R2COM> dongs: which IDE? 2012-06-11T11:06:02 < dongs> R2COM: keil 2012-06-11T11:06:05 < R2COM> oh 2012-06-11T11:06:09 < R2COM> but isnt it expencive? 2012-06-11T11:06:18 < dongs> but it works 2012-06-11T11:06:19 < zyp> Tectu, a flashloader is a small program that you upload to ram, then you just transfer a block of data to ram, and run the flashloader to copy that block to flash 2012-06-11T11:06:28 < R2COM> oh so you are rich 2012-06-11T11:06:33 < dongs> zippe: you can quickhax it by wrapping those files with #ifndef FY90Q or something.. or fix the makefile.. 2012-06-11T11:06:53 < R2COM> its like, 800$ or so if im correct 2012-06-11T11:07:09 < R2COM> mainly because you can simulate peripherals etc... 2012-06-11T11:07:11 < R2COM> i guess... 2012-06-11T11:07:45 < R2COM> i actually played with it a little 2012-06-11T11:07:53 < dongs> R2COM: try $4895 2012-06-11T11:08:02 < R2COM> so you payed 5 grand for it? 2012-06-11T11:08:08 < R2COM> really? 2012-06-11T11:08:38 < dongs> no, i paid for crossworks edu license, when I make > $50k with keil, I'll pay for it too. 2012-06-11T11:08:56 < R2COM> > 50k$ with keil? 2012-06-11T11:08:58 < R2COM> hm 2012-06-11T11:09:13 < R2COM> edu doesnt let to sell 2012-06-11T11:10:05 < R2COM> also, debugger probably more convenient, if it can pop up all main registers, instead of typing addresses in gdb 2012-06-11T11:10:14 < Tectu> zyp, sounds awesome! 2012-06-11T11:10:19 < Tectu> zyp, does it only work for F4? 2012-06-11T11:10:21 < gsmcmullin> zyp: Is your flash loader much faster than mine? 2012-06-11T11:10:24 < R2COM> thats pretty much it i guess...other than that.. not sure what other advantage 2012-06-11T11:10:25 < zippe> dongs: MMA driver too? 2012-06-11T11:10:34 < zyp> gsmcmullin, probably not 2012-06-11T11:10:41 < dongs> zippe: mma? 2012-06-11T11:10:49 < dongs> oh right 2012-06-11T11:10:49 < R2COM> mixed martial arts 2012-06-11T11:10:50 < dongs> dont need that either 2012-06-11T11:11:31 < gsmcmullin> zyp: You said way more than 10k/s above? 2012-06-11T11:11:34 < zyp> gsmcmullin, and there is some other slowness in the texane stuff, ~10 seconds of the 40 seems to be wasted on some internal stuff before starting flashing 2012-06-11T11:11:48 < zyp> I get around 25kB/s 2012-06-11T11:11:52 < R2COM> i get 3KB 2012-06-11T11:12:04 < zyp> blackmagic did 45 kB/s when I tested 2012-06-11T11:12:16 < zippe> hmm, well, that built 2012-06-11T11:12:20 < gsmcmullin> Oh, wow. I haven't used it with a big project on f4. 2012-06-11T11:12:21 < R2COM> i'v heard from some people that if you use HUB for USB it sometimes boosts speed up, though not sure if its true 2012-06-11T11:12:37 < gsmcmullin> I get about 15k/s into f103. 2012-06-11T11:12:50 < zippe> gsmcmullin: my project's about 600K on the F4 with Lua included 2012-06-11T11:12:50 < R2COM> sometimes i get 4KB/s 2012-06-11T11:13:01 < zippe> But I only flash the bootloader with BM 2012-06-11T11:13:04 < zyp> gsmcmullin, it reports way slower when I do smaller images 2012-06-11T11:13:24 < zippe> The bootloader flashes plenty fast enough 2012-06-11T11:13:27 < Tectu> zyp, does it wonly work for F4 or can i use what you wrote also over dedicated stlinkv2 and F103? 2012-06-11T11:13:49 < R2COM> actually yes, i think so, when i did some very small ones, speed was <1KB 2012-06-11T11:13:50 < zyp> Tectu, there is already another flashloader present for F1 I believe 2012-06-11T11:15:22 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.] 2012-06-11T11:15:45 < zyp> zippe, in any case the final bottleneck is how fast the flash can accept data 2012-06-11T11:16:15 < zyp> gsmcmullin, you are not doing any kind of split-buffering? 2012-06-11T11:16:29 < zyp> i.e. transferring one block to ram while writing another to flash 2012-06-11T11:16:44 < gsmcmullin> zyp: No. Write one block with the stub to flash it. 2012-06-11T11:17:32 < gsmcmullin> I never thought of it. 2012-06-11T11:18:06 < zyp> I considered trying split-buffering with texane to see how large difference it would make, but I would have to hack around a lot of stuff, so I didn't bother 2012-06-11T11:18:33 < gsmcmullin> zyp: I'd like to profile it first. 2012-06-11T11:18:56 < zyp> yeah 2012-06-11T11:19:34 < zyp> if the time spent transferring to ram is way shorter than the time spent executing the flashloader, there wouldn't be much gains 2012-06-11T11:21:09 < gsmcmullin> I'd hate to invest the effort and make the program more complicated for possibly no gain. 2012-06-11T11:21:30 < zyp> either way, when you're at the point when you have the flashloader writing continously, you've pretty much reached the max possible flashing speed for that chip 2012-06-11T11:22:12 < gsmcmullin> Yeah, but I don't know how much time is wasted transferring to ram or waiting for the USB. 2012-06-11T11:24:32 < zyp> and I don't really mind wasting an afternoon on something, as long as I learn something from it ;) 2012-06-11T11:26:33 < gsmcmullin> Same applies to me. I'd learn more and it'd be more useful to get profiling information out of the trace port. 2012-06-11T11:26:57 < zyp> ah, yeah 2012-06-11T11:26:58 < gsmcmullin> ...but so little time... 2012-06-11T11:27:29 < zyp> I've been meaning to look at your magictpa stuff, but I haven't gotten around to it yet 2012-06-11T11:28:24 < gsmcmullin> Let me know if you try it. It's really more of a proof-of-concept than anything else at this stage. 2012-06-11T11:28:39 < zyp> I'm kind of putting that off until I replace my workstation after my vacation, which means I get a newer OS X version with USB IAD support :p 2012-06-11T11:28:50 < gsmcmullin> Cool. 2012-06-11T11:29:02 < zyp> upgrading OS X on the old one seems like a waste of time when I'm replacing it anyway 2012-06-11T11:29:56 < gsmcmullin> You may still have issues with magictpa. Mac doesn't like libusb using the same device as the cdcacm driver, even though they're on different interfaces. 2012-06-11T11:31:15 < gsmcmullin> It may work. The problem I had before was using the control endpoint, this is another bulk endpoint, so it's not the same. 2012-06-11T11:34:59 < zyp> we'll see 2012-06-11T11:35:22 < zyp> it can probably be solved in one way or another anyway 2012-06-11T11:36:48 < zyp> might be possible to do an alternative configuration for non-cdc gdb data, and integrate a gdb-proxy with the tpa stuff, and force it into that configuration? 2012-06-11T11:51:46 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-06-11T12:02:51 -!- Laurenceb__ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has joined ##stm32 2012-06-11T12:13:29 -!- jaeckel is now known as brrrm 2012-06-11T12:13:54 -!- brrrm is now known as jaeckel 2012-06-11T12:19:26 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-11T12:35:09 -!- tavish [~tavish@125.63.110.189] has joined ##stm32 2012-06-11T12:35:09 -!- tavish [~tavish@125.63.110.189] has quit [Changing host] 2012-06-11T12:35:09 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-11T12:42:33 -!- mrcan_ [~mrcan@95.8.149.248] has joined ##stm32 2012-06-11T12:42:33 -!- mrcan_ [~mrcan@95.8.149.248] has quit [Changing host] 2012-06-11T12:42:33 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-06-11T12:44:33 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 265 seconds] 2012-06-11T13:02:45 -!- Laurenceb__ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has quit [Ping timeout: 260 seconds] 2012-06-11T13:09:57 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-232-149.clienti.tiscali.it] has joined ##stm32 2012-06-11T13:29:25 -!- mrcan__ [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-06-11T13:31:55 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 260 seconds] 2012-06-11T13:32:22 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-06-11T13:35:25 -!- mrcan__ [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 260 seconds] 2012-06-11T13:37:22 < SuicideFunky> hello 2012-06-11T13:37:34 < SuicideFunky> nano copter sickness: http://www.youtube.com/watch?v=6lCUGPixEnk 2012-06-11T13:37:51 < dongs> thats gotta be old as shit 2012-06-11T13:41:11 < zyp> yeah 2012-06-11T13:48:53 < SuicideFunky> thats not the point 2012-06-11T13:49:15 < zyp> old as shit as in we've all seen it already 2012-06-11T13:49:46 < zyp> all the videos those guys do gets posted everywhere as soon as they are published :p 2012-06-11T13:51:48 < SuicideFunky> ah, didnt know that, then i would probably respond the same :p 2012-06-11T13:51:55 < SuicideFunky> thought those vids were not so common known 2012-06-11T13:58:28 < dongs> each time new of thos shits comes outo 2012-06-11T13:58:35 < dongs> every fucking blog retweets that shit 2012-06-11T13:58:36 < dongs> over and over 2012-06-11T14:07:54 < SuicideFunky> i dont use those sites anyway 2012-06-11T14:08:04 < SuicideFunky> keeps you away from doing usefull stuff 2012-06-11T14:10:56 < Tectu> dafuq is this shit: 2012-06-11T14:10:57 < Tectu> 2012-06-11T14:10:57 < Tectu> #define GATE(name, num)do{\ 2012-06-11T14:10:57 < Tectu> name##list[num] = #name;\ 2012-06-11T14:10:58 < Tectu> }while(0) 2012-06-11T14:13:24 < dongs> haha 2012-06-11T14:13:34 < dongs> fucking gcc faggotry is what it is 2012-06-11T14:23:57 < pelrun> nah 2012-06-11T14:24:14 < pelrun> generic broken macro bullshit 2012-06-11T14:24:55 < pelrun> http://stackoverflow.com/questions/10977411/macro-replacement 2012-06-11T14:25:29 < pelrun> ^ dumbass wanted to have only-available-at-runtime information included in the compile-time macro 2012-06-11T14:25:47 < pelrun> unbelievable 2012-06-11T14:25:54 < Tectu> pelrun, yeah, read that 2012-06-11T14:26:27 < Tectu> pelrun, also note this dumbass: http://stackoverflow.com/questions/10978370/useles-type-qualifier-error 2012-06-11T14:27:41 < pelrun> that's not quite so silly, though :) 2012-06-11T14:28:23 < Tectu> i agree 2012-06-11T14:28:32 < Tectu> i searched for the fault for hours :D 2012-06-11T14:28:37 < pelrun> ouuuuuch 2012-06-11T14:28:38 < Tectu> over few different days 2012-06-11T14:28:43 < Tectu> na, not like hours hours... 2012-06-11T14:28:49 < Tectu> just like take a look, don't find it, take it up next day 2012-06-11T14:28:55 < Tectu> and keep working at the rest 2012-06-11T14:29:02 < Tectu> it was just the only compiler error i got 2012-06-11T14:29:31 < pelrun> still, at least when you got the answer it was just an "oh, DUH" and you can get on with things 2012-06-11T14:29:45 < Tectu> s/error/warning 2012-06-11T14:29:46 < pelrun> that first one... god knows what kind of batshit insane code he was trying to write 2012-06-11T14:30:02 < Tectu> he is me 2012-06-11T14:30:31 < Tectu> that's why i searched hours for the fault :D 2012-06-11T14:30:41 < pelrun> was talking about the GATE thing 2012-06-11T14:30:46 < Tectu> aah! 2012-06-11T14:31:02 < Tectu> yeah, probably he's writing some teleporter code 2012-06-11T14:31:12 < Tectu> and the gate is an essential thing there 2012-06-11T14:31:32 < pelrun> perpetual motion generator 2012-06-11T14:31:38 < pelrun> sorry - "over unity" 2012-06-11T14:31:41 < Tectu> :D 2012-06-11T14:32:19 * Laurenceb sends pelrun to jln labs 2012-06-11T14:32:31 < pelrun> damn, google doesn't bring up "perpetual motion" on wikipedia when you search "over unity" 2012-06-11T14:32:39 < Tectu> pelrun, LOL! 2012-06-11T14:32:50 < pelrun> no wonder they keep using the term 2012-06-11T14:39:00 -!- tuxfool [~anonymous@195-23-237-248.net.novis.pt] has quit [Ping timeout: 260 seconds] 2012-06-11T14:39:09 -!- tuxfool [~anonymous@195-23-237-248.net.novis.pt] has joined ##stm32 2012-06-11T14:40:36 < BrainDamage> but it brings a lot of results if you use "bullshit" as keyword 2012-06-11T14:53:09 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Read error: Connection reset by peer] 2012-06-11T14:53:30 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-11T15:05:04 < pelrun> heh 2012-06-11T15:06:15 < pelrun> we obey the laws of thermodynamics in this universe, dammit! 2012-06-11T15:07:25 < Tectu> how about "no, we don't"? 2012-06-11T15:10:32 < pelrun> good luck with that :) 2012-06-11T15:13:49 < Tectu> thanks 2012-06-11T15:15:59 < BrainDamage> would you like some entropy on top of that machine? 2012-06-11T15:39:19 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds] 2012-06-11T15:41:04 -!- tavish [~tavish@125.63.117.177] has joined ##stm32 2012-06-11T15:41:04 -!- tavish [~tavish@125.63.117.177] has quit [Changing host] 2012-06-11T15:41:04 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-11T15:45:11 -!- tavish [~tavish@unaffiliated/tavish] has quit [Client Quit] 2012-06-11T15:53:43 < dongs> status 2012-06-11T15:55:59 < Tectu> 14:55pm, 22°C, cloudy, compiler macros dosen't work properly, throat pain like ass 2012-06-11T15:58:05 < dongs> compiler macro solutions: move off gcc 2012-06-11T15:58:38 < Tectu> why should I 2012-06-11T15:58:40 < Tectu> i like gcc 2012-06-11T15:58:44 < Tectu> and it compiler errors 2012-06-11T15:58:54 < Tectu> this makes me feeling not being lonely 2012-06-11T16:06:59 < pelrun> pfff as if I'd move off gcc just because some moron somewhere tried to do something stupid 2012-06-11T16:07:26 < pelrun> you'd pretty much have to stop doing anything if that was the criterion 2012-06-11T16:07:58 < Tectu> pelrun, everything works, as long as it's properietary and not open sauce, isn't it, dongs ? 2012-06-11T16:08:30 < pelrun> I dunno, dongs keeps his personal opinions pretty close to his chest 2012-06-11T16:08:50 < pelrun> :) 2012-06-11T16:09:12 < pelrun> proprietary just means you can't see the stupid 2012-06-11T16:09:22 < pelrun> because the stupid is definitely still there 2012-06-11T16:10:38 < Tectu> pelrun, don't point it out, you hurt dongs :D 2012-06-11T16:10:49 < pelrun> heh 2012-06-11T16:23:08 < karlp> I've used that ## preprocessor trick stuff before, 2012-06-11T16:23:11 < karlp> it's not all bad. 2012-06-11T16:23:57 < karlp> but only for varags and debug printf stuff 2012-06-11T16:28:01 < dongs> oh crap 2012-06-11T16:28:14 < dongs> i gotta make a breakout board for that silabs M3 chip if i wanna panel it wiht some free pcbs tomrorw 2012-06-11T16:28:28 < dongs> furiosuyl reading appnotes 2012-06-11T16:30:18 < Tectu> karlp, just try to make my GLCD library as following: #define LCD_USE_SSD1289 2012-06-11T16:30:27 < Tectu> or #define LCD_USE_S61121 2012-06-11T16:30:39 < Tectu> and then put #ifdef LCD_USE_SSD1289 in the lld files 2012-06-11T16:30:43 < Tectu> does not work somehow 2012-06-11T16:37:26 < dongs> wat 2012-06-11T17:02:38 < dongs> http://www.rcgroups.com/forums/showthread.php?t=1669844 2012-06-11T17:02:40 < dongs> shit better get on this 2012-06-11T17:16:13 < jon1012> spi prescaler give the freq of the spi bus right ? 2012-06-11T17:16:17 < jon1012> or two times it ? 2012-06-11T17:17:31 < dongs> spi prescaler is ABP/AHB clk / prescaler 2012-06-11T17:17:38 < dongs> whatever bus SPI is on 2012-06-11T17:17:45 < jon1012> oh I see 2012-06-11T17:17:51 < dongs> i.e. higher prescaler = slower 2012-06-11T17:19:09 < jon1012> thanks :) 2012-06-11T17:19:21 < jon1012> I thought it was a prescaler over system clock 2012-06-11T17:19:32 < jon1012> now I see that for spi1 it's apb2 for example 2012-06-11T17:19:40 < dongs> no, because it cant go faster than the bus its connected to 2012-06-11T17:19:42 < dongs> right 2012-06-11T17:20:28 < jon1012> hehe, I was wondering why it was working perfectly with prescaler of 8 on enc28j60 while the chip was intended to run at max 20 mhz 2012-06-11T17:20:39 < dongs> well yeah 2012-06-11T17:20:45 < dongs> 'i think apb is like 36mhz? 2012-06-11T17:20:47 < dongs> so /8... 2012-06-11T17:20:49 < dongs> you got way under 20mhz. 2012-06-11T17:20:53 < jon1012> yeah 2012-06-11T17:21:05 < jon1012> well, apb2 prescaler is at 2 2012-06-11T17:21:20 < jon1012> and system clock at 240 (yeah a bit overclocked) 2012-06-11T17:21:31 < dongs> lolwat 2012-06-11T17:21:39 < dongs> what chip is this 2012-06-11T17:21:45 < jon1012> stm32f407vgt6 2012-06-11T17:22:02 < dongs> funtimes 2012-06-11T17:22:54 < jon1012> (the only thing to take care of was to get a good pll_q value, to have a working flash 2012-06-11T17:23:00 < dongs> what doesn't work at those speeds? 2012-06-11T17:23:18 < jon1012> from what I see, nothing as long as the prescalers for peripherals are good 2012-06-11T17:23:36 < jon1012> and the chip doesn't even get hot at all 2012-06-11T17:25:03 < dongs> heh i doubt it will 2012-06-11T17:29:00 -!- izua [~izua@86.121.85.82] has joined ##stm32 2012-06-11T17:29:00 -!- izua [~izua@86.121.85.82] has quit [Changing host] 2012-06-11T17:29:00 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-11T17:29:02 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-11T17:29:22 < Tectu> izua, ya'r ISP's likeing you, aye? 2012-06-11T17:29:42 <+izua> a lot 2012-06-11T17:29:47 <+izua> no internet since ~13:00 2012-06-11T17:30:10 < Tectu> sounds like your girlfriend knows where your router's poweroff button is 2012-06-11T17:31:30 <+izua> if she powers off the router, she won't get internet either :P 2012-06-11T17:31:51 < pelrun> oh weird 2012-06-11T17:32:14 < pelrun> just realised there's an 'interrupt' gcc attribute for arm 2012-06-11T17:32:18 < pelrun> and I haven't been using it 2012-06-11T17:32:42 < pelrun> wonder what the difference is on cortexM3 2012-06-11T17:32:55 < karlp> izua: did you get your makefile to build with libopencm3? 2012-06-11T17:33:32 <+izua> i did something much simpler 2012-06-11T17:34:16 < karlp> I built a project myself to do libopencm3 standalone, https://github.com/karlp/opencm3-standalone/blob/master/Makefile.include 2012-06-11T17:34:20 <+izua> changed the libopencm3 makefile to output compiler commands, recompiled a custom project in the example dir, made a file with the commands shown with a bash shebang, ghetto makefile 2012-06-11T17:34:35 < karlp> there was just one or two paths that were wrong 2012-06-11T17:34:41 < karlp> but yeah, I based it off the example projects 2012-06-11T17:34:46 <+izua> will probably hack it in a makefile that uses a file structure I like though, with src/ bin/ obj/, etc 2012-06-11T17:35:03 <+izua> also, the blacksphere looks pretty cool 2012-06-11T17:35:26 < pelrun> ah, isr attribute is a no-op for cortex-M3 gcc 2012-06-11T17:38:09 < karlp> don't need attributes for isrs on m3 :) 2012-06-11T17:40:11 < pelrun> yeah, my code was working, just wanted to verify it was not needed 2012-06-11T17:40:20 < dongs> http://www.kickstarter.com/projects/limemouse/scanbox-turn-your-smartphone-into-a-portable-scann 2012-06-11T17:40:25 < dongs> you guys are doing it wrong. 2012-06-11T17:40:46 < pelrun> seriously? jeez 2012-06-11T17:40:58 < pelrun> nice money if you have few scruples 2012-06-11T17:41:15 < pelrun> "I'M GONNA GET RICH SELLING PEOPLE SOME CARDBOARD" 2012-06-11T17:41:31 < pelrun> bitches love cardboard 2012-06-11T17:42:46 <+izua> and kickstarter 2012-06-11T17:43:00 <+izua> https://xkcd.com/1055/ 2012-06-11T17:44:10 <+izua> pelrun: DUDE 2012-06-11T17:44:12 <+izua> it comes in 6 colors 2012-06-11T17:44:18 < pelrun> HOLY SHIT 2012-06-11T17:44:20 < pelrun> TAKE MY MONEY 2012-06-11T17:44:36 < pelrun> kickstopper 2012-06-11T17:47:57 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer] 2012-06-11T17:49:08 < pelrun> guess he got kickstopped 2012-06-11T17:50:48 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Quit: Leaving] 2012-06-11T17:52:22 -!- izua [~izua@86.121.85.82] has joined ##stm32 2012-06-11T17:52:23 -!- izua [~izua@86.121.85.82] has quit [Changing host] 2012-06-11T17:52:23 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-11T17:52:26 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-11T17:53:02 < dongs> The best way to confirm you will get the full document in your image is to hold you phone 310mm above the document and you'll be able to see what it will capture. (This is the same height as the actual Scanbox.) Email info@limemouse.com if you have any questions about this and we'll be able to guide you through the process 2012-06-11T17:53:23 < dongs> "You might have trouble figuring out how to measure 310mm, so we'll hold your dick for you while explaining it" 2012-06-11T17:58:06 < dongs> hmm 2012-06-11T17:58:19 < dongs> SIM3U1 has ETM stuff. 2012-06-11T18:00:59 < Laurenceb> wait is that the guy from the trampery? 2012-06-11T18:02:10 < Laurenceb> oh australia 2012-06-11T18:02:13 < Laurenceb> nvm 2012-06-11T18:02:19 < dongs> scamstralia 2012-06-11T18:02:54 < Laurenceb> http://thetrampery.com/ 2012-06-11T18:02:59 < Laurenceb> thought it was from there 2012-06-11T18:03:26 < Laurenceb> looks like it is 2012-06-11T18:05:41 < Laurenceb> trampery guy is often on uk tv, talking about how he reinvented work etc 2012-06-11T18:10:35 < BrainDamage> that page doesn't say anything about what they actually do there :/ 2012-06-11T18:10:58 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-11T18:18:19 < Laurenceb> protip: nothing 2012-06-11T18:18:29 < Laurenceb> well aprt from chat with camerooooon 2012-06-11T18:18:52 < Laurenceb> £330 Your own desk for 1 month 2012-06-11T18:18:54 < Laurenceb> pmsl 2012-06-11T18:18:55 < dongs> vivi from cameroon? 2012-06-11T18:19:22 < dongs> vivitrix or wahtever was that wank shit you linked 2012-06-11T18:19:23 < dongs> k bedtime 2012-06-11T18:19:36 < pelrun> it's like a hackerspace if you removed the cool tools and added some gnomes 2012-06-11T18:19:38 <+izua> 330GBP for renting deskspace? 2012-06-11T18:19:50 < dongs> dickspace 2012-06-11T18:19:53 < pelrun> also charged a fucking bomb 2012-06-11T18:19:58 <+izua> that sounds expensive and pointless 2012-06-11T18:20:05 < Laurenceb> http://en.wikipedia.org/wiki/Charles_Armstrong_%28ethnographer%29 2012-06-11T18:20:07 < pelrun> well, the only person who gets rich from working there is probably the guy who runs it 2012-06-11T18:20:07 < Laurenceb> lmao 2012-06-11T18:20:14 < Laurenceb> thats the guy i was thinking of 2012-06-11T18:20:21 < Laurenceb> sort of thing he would come up with 2012-06-11T18:20:39 <+izua> unless they also cook for you, give you your own apple to microwave/blend everyday and have their own whorehouse, free for desk renters 2012-06-11T18:20:45 < Laurenceb> "This article has multiple issues" so does he 2012-06-11T18:20:54 < dongs> lool 2012-06-11T18:21:11 < pelrun> OH 2012-06-11T18:21:17 < pelrun> it's a hipsterspace 2012-06-11T18:21:22 < Laurenceb> yes 2012-06-11T18:21:24 < pelrun> the hackerspace's natural enemy 2012-06-11T18:21:29 < dongs> Laurenceb: when will your shit achieve this http://www.youtube.com/watch?v=a55A4lUIAdE 2012-06-11T18:21:29 < Laurenceb> heh 2012-06-11T18:21:30 <+izua> rofl 2012-06-11T18:22:02 < Laurenceb> position hold with gps? 2012-06-11T18:22:51 < BrainDamage> nah, invisible strings and an out of frame crane 2012-06-11T18:22:58 < pelrun> his shit will achieve it a day after you force him to swallow one 2012-06-11T18:23:04 < Laurenceb> http://chzemokid.files.wordpress.com/2011/03/emo-scene-hipster-the-universe-is-so-emo-it-just-sits-there.jpg 2012-06-11T18:23:16 < dongs> lol 2012-06-11T18:24:03 < pelrun> must be nice to live in a place with no wind ever 2012-06-11T18:24:58 < dongs> i kno rite 2012-06-11T18:25:07 < dongs> k bed for real 2012-06-11T18:37:55 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-11T18:37:58 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-11T18:39:37 <+Steffanx> nu 2012-06-11T18:40:54 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-11T18:41:03 < emeb> shuz 2012-06-11T18:41:06 < ratatata> nu 2012-06-11T18:45:24 < Laurenceb> not a lot is the answer 2012-06-11T18:45:48 < Laurenceb> scouts are doing an "follow the trail" thing past my house 2012-06-11T18:45:54 < Laurenceb> going to go out and troll them 2012-06-11T18:46:36 < BrainDamage> do you have a supply of water balloons? 2012-06-11T18:46:47 < Laurenceb> no no no 2012-06-11T18:46:55 < Laurenceb> leave fake direction signs 2012-06-11T18:47:34 < Laurenceb> even better if their new route spells out a message 2012-06-11T18:51:11 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-11T19:00:02 < pelrun> oh man 2012-06-11T19:00:15 < pelrun> I'm officially spoiled now 2012-06-11T19:00:26 < pelrun> "lets just throw all the program logic in the ISR!" 2012-06-11T19:01:01 < zippe> It's called a state machine, y'know 2012-06-11T19:03:25 < pelrun> actually the core bit of joy is the 32 bit atomic copies 2012-06-11T19:04:06 < pelrun> don't need to lock around read accesses to the variables the isr is writing to 2012-06-11T19:04:12 < pelrun> at least not in this application 2012-06-11T19:05:28 < Laurenceb> you can write a float without flags 2012-06-11T19:06:31 < pelrun> worst case scenario is the isr updates while I'm reading out and I get some really fresh data :) 2012-06-11T19:08:21 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-06-11T19:14:19 < Laurenceb> scouts are trying to be gay but they fail - they rubbed two dicks together but all they got was a fire 2012-06-11T19:16:16 < Laurenceb> http://gofails.com/wp-content/uploads/2012/02/back-off-ladies.jpg 2012-06-11T19:24:12 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 245 seconds] 2012-06-11T19:24:20 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: .] 2012-06-11T19:38:40 -!- tuxfool [~anonymous@195-23-237-248.net.novis.pt] has quit [Quit: tuxfool] 2012-06-11T19:40:00 -!- tuxfool [~anonymous@195-23-237-248.net.novis.pt] has joined ##stm32 2012-06-11T19:44:49 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-11T19:59:11 < karlp> man, using the f4 board as a debugger is even less reliable than using the vl board 2012-06-11T19:59:24 < karlp> continuous send_recv libusb_submit_transfer problems 2012-06-11T20:27:54 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-11T20:31:58 -!- mansfeld [~andrew@robopoly/watson] has quit [Read error: Operation timed out] 2012-06-11T20:33:00 -!- mansfeld [~andrew@web130.webfaction.com] has joined ##stm32 2012-06-11T20:33:02 -!- mansfeld [~andrew@web130.webfaction.com] has quit [Changing host] 2012-06-11T20:33:02 -!- mansfeld [~andrew@robopoly/watson] has joined ##stm32 2012-06-11T20:37:07 -!- dekar [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has joined ##stm32 2012-06-11T20:37:10 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-11T20:37:52 <+dekar> izua, hows the wiki coming along? XD 2012-06-11T20:38:15 <+izua> can't tell you that, you have to submit your vote first 2012-06-11T20:39:01 <+izua> so, /q dekar your choice of script 2012-06-11T20:41:05 < zyp> what's this vote you're speaking of? 2012-06-11T20:41:30 < zyp> like mediawiki or something else? 2012-06-11T20:41:54 <+Steffanx> zyp still on the ground? 2012-06-11T20:43:59 < zyp> sure 2012-06-11T20:44:38 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Quit: Quitte] 2012-06-11T20:44:58 <+Steffanx> Hmm, I remember you said something about going to jp today 2012-06-11T20:45:10 <+Steffanx> I know the day isn't over yet 2012-06-11T20:45:17 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-06-11T20:52:32 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-06-11T20:53:42 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 265 seconds] 2012-06-11T20:55:08 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-11T20:56:25 <+dekar> izua, my vote has been counted already 2012-06-11T20:57:01 <+dekar> Steffanx, the new macs have been revealed, but retina displays only for 15" :/ 2012-06-11T20:57:11 <+dekar> I guess I'll stay with my 13" for a while then 2012-06-11T20:57:19 <+izua> yeah, i know 2012-06-11T20:57:24 <+izua> this is an electoral year though 2012-06-11T20:57:28 <+Steffanx> I prefer 15" dekar 2012-06-11T20:57:30 <+izua> show your support by voting multiple times 2012-06-11T20:57:32 <+Steffanx> And i don't need a new mac 2012-06-11T20:58:54 <+dekar> well I like the retina stuff, 1280x720 is a bit low imo 2012-06-11T20:59:24 < BrainDamage> what res format is that? 2012-06-11T20:59:26 < BrainDamage> 10:9 ? 2012-06-11T20:59:53 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 246 seconds] 2012-06-11T21:00:11 <+dekar> oh I actually have 1280x800 2012-06-11T21:00:14 <+dekar> 16:10 2012-06-11T21:00:18 -!- Tom_L is now known as Tom_itx 2012-06-11T21:00:24 <+dekar> still I'd prefer more resolution 2012-06-11T21:02:07 <+dekar> the new 15" one has 2880x1800 2012-06-11T21:03:15 <+izua> huh 2012-06-11T21:03:18 <+izua> that's squared 2012-06-11T21:03:24 <+izua> should do wonders for scaling and dev work. 2012-06-11T21:03:28 <+izua> on mac, of course. 2012-06-11T21:04:35 <+Steffanx> Not bad dekar ... 2012-06-11T21:05:08 <+izua> i wonder how much strains those put on the eye 2012-06-11T21:05:21 <+izua> i had troubles adjusting on a 1920x1080 15" 2012-06-11T21:05:29 <+Steffanx> I think my next pc won't be a mac anyway. Maybe some hackintosh stuff 2012-06-11T21:05:29 <+izua> strain* 2012-06-11T21:05:35 <+dekar> izua, then better never try reading newspapers 2012-06-11T21:05:43 <+dekar> those have like 600dpi 2012-06-11T21:05:52 <+dekar> macbook only has 240dpi I think 2012-06-11T21:06:59 <+izua> printwork needs many times the amount of dpi as display stuff to get similar letter (erm? glyph?) quality 2012-06-11T21:07:23 <+izua> but yeah, newspapers print with a small font anyway 2012-06-11T21:08:17 <+dekar> I mean we do shit like anti-aliasing to compensate for the low DPI on todays displays 2012-06-11T21:08:32 <+dekar> print doesn't do that 2012-06-11T21:13:29 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-06-11T21:18:08 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-11T21:36:31 -!- Laurenceb__ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has joined ##stm32 2012-06-11T21:41:15 <+Steffanx> izua my vote goes to whatever you voted 2012-06-11T21:41:23 <+Steffanx> for 2012-06-11T21:43:18 <+dekar> Steffanx, mediawiki 2012-06-11T21:43:40 <+dekar> Steffanx, though izua was the one who took the wiki down in the first place 2012-06-11T21:44:02 <+izua> there was no wiki, it was my temporary website. 2012-06-11T21:44:20 <+dekar> izua, it actually was a mediawiki 2012-06-11T21:44:30 <+izua> it happend to be based on mediawiki, yes 2012-06-11T21:44:39 <+Steffanx> Ha 2012-06-11T21:44:47 <+izua> it's the best cms around, what 2012-06-11T21:45:11 <+izua> nobody could edit it but me, and it had almost no special pages visible. hardly a wiki :P 2012-06-11T21:45:53 <+dekar> izua, yet you were talking about using it for #stm32 2012-06-11T21:46:20 <+dekar> back then when there were no people in #stm32 2012-06-11T21:46:31 <+izua> i said, i could set up a subdomain on izua.ro, for a different cms :P 2012-06-11T21:46:42 <+izua> yes, you make a very compelling argument :P 2012-06-11T21:46:57 <+Steffanx> I was in #stm32 ! 2012-06-11T21:47:06 <+izua> also, i was about to say that 2012-06-11T21:47:34 <+izua> Steffanx: i also recall when he said he's give us a million € each 2012-06-11T21:48:15 <+dekar> izua, you wish 2012-06-11T21:49:28 <+Steffanx> From the company cc izua ? 2012-06-11T21:49:47 <+izua> don't care 2012-06-11T21:49:53 <+Steffanx> pi:P 2012-06-11T21:50:10 <+dekar> izua, you don't care about the million? :) 2012-06-11T21:50:21 <+izua> i don't care where the money comes from 2012-06-11T21:50:56 <+dekar> you better care, since I don't have a million to begin with :P 2012-06-11T21:51:09 <+Steffanx> So company cc it is 2012-06-11T21:55:07 <+dekar> Steffanx, you're mixing it up, it was your mom who sent it 2012-06-11T21:55:35 <+dekar> since izua doesn't care where the money comes from... 2012-06-11T21:56:12 -!- tuxfool [~anonymous@195-23-237-248.net.novis.pt] has quit [Quit: tuxfool] 2012-06-11T21:56:22 <+Steffanx> my mom sent what dekar ? 2012-06-11T21:58:32 <+dekar> Steffanx, the message to izua promising to send him a million € 2012-06-11T22:04:05 <+Steffanx> I'm sure my other wasn't near your pc 2012-06-11T22:06:37 <+dekar> your mom is your significant other? 2012-06-11T22:07:44 <+Steffanx> dekar go annoy someone else today 2012-06-11T22:07:55 <+Steffanx> :P 2012-06-11T22:08:15 <+izua> i can unban that tech it guy for you 2012-06-11T22:08:28 <+izua> "Are you sure you have designed that product?" 2012-06-11T22:08:29 <+Steffanx> Uh? 2012-06-11T22:08:38 <+dekar> hehe I remember that one 2012-06-11T22:08:46 <+Steffanx> That old guy? 2012-06-11T22:08:57 <+izua> haven't seen him around in other channels or freenode since 2012-06-11T22:09:03 <+izua> well, not under that nickname 2012-06-11T22:09:10 <+dekar> Steffanx, I'm not judging you, though incest is illegal in Germany. That's how nazi we are, eugenics and stuff! 2012-06-11T22:09:22 <+izua> but incest keeps the bloodline pure 2012-06-11T22:09:27 <+Steffanx> At least i'm not from Germany D: 2012-06-11T22:09:28 <+izua> that's anti-eugenics at its best 2012-06-11T22:09:51 <+Steffanx> but you are .. so what are you trying to say dekar ? 2012-06-11T22:10:25 <+izua> he's bored 2012-06-11T22:11:20 <+Steffanx> The performance of the gpu of the rpi is indeed pretty impressive 2012-06-11T22:11:27 <+Steffanx> 1080p without any trouble 2012-06-11T22:11:42 <+izua> did you order one? 2012-06-11T22:11:47 <+Steffanx> Yep 2012-06-11T22:11:52 <+izua> where? o_o 2012-06-11T22:11:58 <+Steffanx> RS 2012-06-11T22:12:12 <+dekar> Steffanx, are you talking about the hardware decoding? 2012-06-11T22:12:17 <+Steffanx> Yes 2012-06-11T22:12:22 <+dekar> but it's limited to a few codecs, isn't it? 2012-06-11T22:12:27 <+Steffanx> Yes 2012-06-11T22:12:50 <+izua> .wav and uncompressed bmp streams? 2012-06-11T22:12:50 <+Steffanx> but the only codec i use is supported :) 2012-06-11T22:12:57 <+dekar> so if you for example have h264 hi10p it will fail :/ 2012-06-11T22:13:14 <+Steffanx> Isn't h264 the only supported codec? 2012-06-11T22:13:23 <+Steffanx> or one of the few 2012-06-11T22:13:46 <+dekar> but only the basic profiles I guess, my nvidia card fails to decode the high 10 profile as well 2012-06-11T22:13:56 <+dekar> generates horrible artefacts 2012-06-11T22:14:00 <+Steffanx> I don't use that anyway 2012-06-11T22:14:15 <+dekar> it's coming up though, has better compression ratios 2012-06-11T22:14:39 <+Steffanx> It's decoding the AC3 audio in sw.. but that isn't a real problem 2012-06-11T22:15:31 <+dekar> "Significantly higher compression ratios resulting in vastly decreased file sizes. The first rounds of testing show a 20-40% improvement on file sizes" 2012-06-11T22:15:38 <+dekar> http://haruhichan.com/wpblog/index.php/205/hi10p-info-guide.html 2012-06-11T22:15:49 <+dekar> Steffanx, doesn't it output AC3 via hdmi? 2012-06-11T22:16:14 < Laurenceb__> raspberry pron 2012-06-11T22:16:30 <+Steffanx> It does dekar 2012-06-11T22:16:36 <+Steffanx> but it's decoded in sw afaik 2012-06-11T22:17:09 <+dekar> Steffanx, umm what if you have a AV-receiver? those usually decode AC3 for you 2012-06-11T22:17:24 <+dekar> my atom does just pass-through 2012-06-11T22:18:01 <+Steffanx> I can do that, but my tv cant 2012-06-11T22:18:14 <+dekar> ah I see 2012-06-11T22:18:49 < Laurenceb__> http://www.theverge.com/2012/6/11/3078215/apple-stub-etc-whatevs 2012-06-11T22:18:52 < Laurenceb__> do want 2012-06-11T22:19:22 <+Steffanx> Laurenceb__ a mac?! 2012-06-11T22:19:25 <+dekar> Laurenceb__, I want 13" 2012-06-11T22:19:36 <+Steffanx> I want 25" 2012-06-11T22:19:44 <+Steffanx> And 3 times that resolution 2012-06-11T22:19:55 < Laurenceb__> lol 2012-06-11T22:20:21 <+dekar> Steffanx, hf waiting 2012-06-11T22:20:37 <+Steffanx> Uh? 2012-06-11T22:21:02 <+Steffanx> Time for a reboot, my touch pad is doing weird things 2012-06-11T22:21:08 <+dekar> well I think I'll get 13" in maybe a year, but you'll probably have to wait longer for your 25" laptop 2012-06-11T22:21:23 <+Steffanx> bb uptime of 48 days 2012-06-11T22:21:45 <+dekar> like if that was a lot :/ 2012-06-11T22:21:49 <+Steffanx> No 2012-06-11T22:21:53 <+Steffanx> but the touchpad gone mad 2012-06-11T22:22:16 <+Steffanx> And all tries to fix it failed 2012-06-11T22:22:23 <+Steffanx> so the only solution is a .. reboot 2012-06-11T22:22:30 <+dekar> that sucks 2012-06-11T22:22:58 <+dekar> did you try unloading and reloading the kernel module? 2012-06-11T22:23:34 <+Steffanx> Oh, a sleep seems to be enough 2012-06-11T22:23:37 <+Steffanx> For now 2012-06-11T22:27:22 <+Steffanx> Wha, Apple gone mad .. a macbook pro with a hdmi port 2012-06-11T22:35:39 <+dekar> I think it's great 2012-06-11T22:36:14 <+dekar> DVI connectors are too big for the macbook 2012-06-11T22:36:19 <+dekar> and hdmi is convenient 2012-06-11T22:36:29 <+dekar> those adaptors are annoying 2012-06-11T22:37:26 <+Steffanx> Yeah, but Apple is into displayport/thunderbolt/whatever they call it 2012-06-11T22:39:26 <+Steffanx> I knew it 2012-06-11T22:39:37 <+Steffanx> Another fancy gadget:http://apc.io/order/pre-order/ 2012-06-11T22:39:40 <+Steffanx> 49$ .. 2012-06-11T22:39:47 <+Steffanx> + 38$ shipping :S 2012-06-11T22:41:41 <+dekar> Steffanx, is that x86er? 2012-06-11T22:41:53 <+Steffanx> No 2012-06-11T22:42:17 <+Steffanx> oh ,yes :P 2012-06-11T22:42:46 -!- tuxfool [~anonymous@bl13-165-209.dsl.telepac.pt] has joined ##stm32 2012-06-11T22:43:15 <+dekar> and uber old android? 2012-06-11T22:43:21 <+Steffanx> I mean .. no :P 2012-06-11T22:44:46 <+Steffanx> A little old yes 2012-06-11T22:45:25 <+dekar> Steffanx, http://www.dealextreme.com/p/android-4-0-mini-pc-google-tv-player-w-wifi-allwinner-a10-cortex-a8-tf-hdmi-white-4gb-137012?item=2 2012-06-11T22:45:36 <+dekar> I think I did link that a day or two ago 2012-06-11T22:45:49 <+Steffanx> > 49$ 2012-06-11T22:46:20 <+dekar> it's far less crappy though 2012-06-11T22:46:31 <+dekar> who would want a slow x86er running outdated android 2012-06-11T22:46:40 <+dekar> it couldn't run all the native arm applications 2012-06-11T22:46:56 <+Steffanx> it's not x86 from what i read about that via thingy 2012-06-11T22:46:59 <+dekar> even the android browser would lag, it is optimized for arm neon 2012-06-11T22:47:53 < Laurenceb__> nice 2012-06-11T22:47:58 < Laurenceb__> who cares 2012-06-11T22:48:08 < Laurenceb__> wipe all the flash and stick something decent on 2012-06-11T22:48:13 <+Steffanx> :) 2012-06-11T22:48:41 <+dekar> Laurenceb__, hf writing drivers 2012-06-11T22:48:50 <+dekar> Steffanx, it's an old ARMv6 cpu 2012-06-11T22:48:56 <+dekar> without neon 2012-06-11T22:49:19 <+Steffanx> Hey is a rpi competitor or it's not :P 2012-06-11T22:49:42 <+Steffanx> And that new macbook pro retina blabla is way too expensive 2012-06-11T22:49:43 <+dekar> Laurenceb__, running mainline linux is pretty hard on most SoCs 2012-06-11T22:49:54 <+dekar> Steffanx, agree 2012-06-11T22:50:19 < Laurenceb__> i thought allwinner a10 had drivers? 2012-06-11T22:50:23 <+Steffanx> dollar to euro +100 = 2.279,00 euro :S 2012-06-11T22:51:02 <+dekar> Laurenceb__, what do you mean? 2012-06-11T22:51:24 <+dekar> they build proprietary drivers linked for some specific linux version -> meaning you can't update 2012-06-11T22:51:55 <+dekar> besides that android uses no Xorg, thus you can't use an Ubuntu desktop for example 2012-06-11T22:52:15 < Laurenceb__> sure 2012-06-11T22:52:18 <+dekar> there are barely any SoCs with proper upstream support, the only one I know of is OMAP3 2012-06-11T22:52:25 <+Steffanx> Who wants to run ubuntu?!!??!?! 2012-06-11T22:52:26 < Laurenceb__> i mean non android 2012-06-11T22:52:38 < Laurenceb__> ok maybe i was wrong 2012-06-11T22:52:43 <+dekar> Steffanx, you don't want Xorg? 2012-06-11T22:53:13 <+Steffanx> no 2012-06-11T22:54:26 <+dekar> Steffanx, Laurenceb__ if you want to know about GNU/Linux on various SoCs, read his blog: http://blog.the-leviathan.ch/?p=402 2012-06-11T22:54:36 <+dekar> it basically sucks on all of them 2012-06-11T22:54:40 <+Steffanx> dekar likes to mess around with xorg.conf 2012-06-11T22:54:58 <+dekar> Steffanx, Xorg is configuration free, has been for years 2012-06-11T22:55:20 <+Steffanx> No http://xkcd.com/963/ 2012-06-11T22:55:27 <+Steffanx> :P 2012-06-11T22:56:22 <+dekar> Steffanx, go on and buy it 2012-06-11T22:56:27 <+Steffanx> buy way? 2012-06-11T22:56:28 <+Steffanx> t 2012-06-11T22:56:30 <+Steffanx> what 2012-06-11T22:56:35 <+dekar> that thing you linked me 2012-06-11T22:56:38 <+Steffanx> No, i won't 2012-06-11T22:56:41 <+dekar> that 50usd android thing 2012-06-11T22:56:50 <+Steffanx> + 38$ shipping 2012-06-11T22:56:57 <+Steffanx> Not worth it 2012-06-11T22:59:02 <+dekar> getting linux running on random SoCs is too much work anyway 2012-06-11T22:59:35 <+Steffanx> Getting linux running on anything is too much work :P 2012-06-11T22:59:35 <+dekar> I once compiled mainline linux for arm and tried to boot it on some Tegra2 -> instant brick 2012-06-11T22:59:45 <+dekar> didn't even output anything to serial anymore 2012-06-11T22:59:58 <+dekar> Steffanx, fedora boots fine on my macbook, no work needed 2012-06-11T23:00:10 <+Steffanx> Until you have to compile stuff yourself 2012-06-11T23:00:23 <+dekar> that is easier than on OSX 2012-06-11T23:00:38 <+Steffanx> I mean the kernel en stuff 2012-06-11T23:01:00 <+dekar> I doubt compiling darwin is any easier 2012-06-11T23:01:01 <+Steffanx> No prebuilt distro 2012-06-11T23:01:21 <+dekar> Steffanx, I have built Linux for x86er many times, that's not hard 2012-06-11T23:01:24 <+Steffanx> Anyway battery is almost empty 2012-06-11T23:01:26 <+dekar> for ARM it is 2012-06-11T23:01:28 <+Steffanx> => bb 2012-06-11T23:01:31 <+dekar> cya 2012-06-11T23:01:33 <+izua> wait 2012-06-11T23:01:44 <+izua> ah wait, i still have shit left to install 2012-06-11T23:01:45 <+Steffanx> That was ./configure && make ? :P 2012-06-11T23:01:51 <+izua> go ahead, go to sleep, i'll bug you tommorow 2012-06-11T23:01:58 <+Steffanx> bug me with what? 2012-06-11T23:02:02 <+izua> setting up wiki 2012-06-11T23:02:17 <+Steffanx> I won't go to sleep 2012-06-11T23:02:22 <+izua> i'll just set your password to steffanx correct horse battery staple 2012-06-11T23:02:25 <+dekar> Steffanx, you've never built linux, did you? you usually use "make menuconfig" 2012-06-11T23:02:27 <+izua> you just plug yourself in ac? 2012-06-11T23:02:40 <+Steffanx> No 2012-06-11T23:02:44 <+Steffanx> my pc will go to sleep i wont 2012-06-11T23:02:50 <+izua> that's as low as i got dekar 2012-06-11T23:02:51 <+Steffanx> Isn't the what everyone does dekar ? 2012-06-11T23:03:07 <+Steffanx> I compiled linux for my AVR32 2012-06-11T23:03:18 <+Steffanx> with menuconfig :P 2012-06-11T23:03:36 <+Steffanx> And once for my router.. without menuconfig 2012-06-11T23:03:39 <+Steffanx> and it terrible failed 2012-06-11T23:04:08 <+dekar> in any case, mainline support usually is only good for x86er 2012-06-11T23:05:15 <+dekar> and I'd stay away from random ARM SoCs, I've tried several 2012-06-11T23:05:44 < BrainDamage> like ... stm32? :p 2012-06-11T23:06:32 <+dekar> BrainDamage, yeah like if the stm32 runs linux (don't come with µCLinux, that's uber limited) 2012-06-11T23:06:47 <+izua> i doubt it will, without a mmu 2012-06-11T23:06:55 < BrainDamage> I meant your sentence 2012-06-11T23:07:06 < BrainDamage> btw, uClinux has been integrated in the mainline kernel 2012-06-11T23:07:13 <+dekar> BrainDamage, partially 2012-06-11T23:07:15 < BrainDamage> I meant your sentence out of context* 2012-06-11T23:08:43 <+dekar> BrainDamage, well I use the stm32 for a product we sell. I just don't think it's worth wasting months writing drivers and the like for a hobby project 2012-06-11T23:09:10 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 256 seconds] 2012-06-11T23:09:17 <+dekar> that Leviathan guy hacked graphics drivers to get Xorg working on some qualcomm and he also wrote alas drivers 2012-06-11T23:09:19 < BrainDamage> it was a joke, not a serious answer 2012-06-11T23:09:20 <+dekar> waste of time imo 2012-06-11T23:10:51 <+dekar> *alsa 2012-06-11T23:11:46 <+dekar> that phone he worked on now has some barely working GNU/Linux, some drivers crash when you enable swap 2012-06-11T23:11:59 <+dekar> and said phone has been out of production for quite a while now 2012-06-11T23:12:11 <+dekar> it will probably never get proper mainline support 2012-06-11T23:12:22 <+dekar> and that SoC is one of the better supported ones 2012-06-11T23:12:39 <+dekar> I think mainline linux boots on it (without video, audio etc) 2012-06-11T23:13:38 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-232-149.clienti.tiscali.it] has quit [Quit: Leaving.] 2012-06-11T23:14:19 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-232-149.clienti.tiscali.it] has joined ##stm32 2012-06-11T23:16:21 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 248 seconds] 2012-06-11T23:16:55 <+dekar> BrainDamage, besides all that the stm32 is a micro controller and doesn't really fit the description of an SoC 2012-06-11T23:18:32 < BrainDamage> well, I'd argue that a microcontroller fits the description of a SoC better than most SoC, but let's not digress too much :p 2012-06-11T23:36:53 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32 2012-06-11T23:40:51 < Laurenceb__> uClinux has been run on stm32 2012-06-11T23:41:03 < Laurenceb__> i have an ngw100 running linux on avr32 2012-06-11T23:41:54 <+dekar> Laurenceb__, BrainDamage, yeah like if the stm32 runs linux (don't come with µCLinux, that's uber limited) 2012-06-11T23:42:23 <+dekar> besides that the stm32 port isn't upstream, vanilla linux can't boot on the stm32. This basically was my point 2012-06-11T23:43:14 <+dekar> BrainDamage, agree to disagree 2012-06-11T23:43:44 < Laurenceb__> linux is overrated 2012-06-11T23:44:15 <+dekar> what makes you think so? 2012-06-11T23:45:03 < Laurenceb__> well its just boring in embedded 2012-06-11T23:45:19 < Laurenceb__> whats so amazing about embedded linux? 2012-06-11T23:45:52 <+dekar> Laurenceb__, to me linux is mostly useful for the bazillion drivers as well as an API abstracting the hardware 2012-06-11T23:45:58 < Laurenceb__> yeah 2012-06-11T23:46:19 < Laurenceb__> which tends to become bloated and not very relevant in embedded 2012-06-11T23:46:42 <+dekar> depends on which embedded we're talking about 2012-06-11T23:46:48 < Laurenceb__> true 2012-06-11T23:46:49 <+dekar> for deeply embedded targets I agree 2012-06-11T23:46:57 <+dekar> for Android phones I would disagree 2012-06-11T23:47:14 <+dekar> I think linux makes sense on smartphones as a hardware abstraction layer 2012-06-11T23:47:29 <+dekar> for the vendors it is much easier to port linux, than some proprietary OS 2012-06-11T23:47:30 < Laurenceb__> yeah 2012-06-11T23:47:51 <+dekar> they have to code less and can bring their stuff faster to the market 2012-06-11T23:48:12 <+dekar> besides that there is a ton of linux experts out there, so that is easier for them as well 2012-06-11T23:48:37 <+dekar> I mean just look at BadaOS with their nucleus kernel 2012-06-11T23:48:59 <+dekar> Samsung actually gave me one of their Bada phones for free at some developer gathering I was invited to 2012-06-11T23:49:07 <+dekar> yet it fails horribly :) 2012-06-11T23:49:15 <+dekar> I sold it on ebay and got an android 2012-06-11T23:49:44 < Laurenceb__> yeah im talking about more deeply embedded stuff 2012-06-11T23:49:51 < Laurenceb__> with there were some meago phones 2012-06-11T23:50:06 <+dekar> tizen you mean? :P 2012-06-11T23:51:34 <+dekar> Laurenceb__, and yeah linux doesn't make sense on systems like the STM32 - you have to load it on external SRAM which has one wait state slowing execution down... 2012-06-11T23:51:46 <+dekar> it's obviously far too bloated for our micro 2012-06-11T23:53:20 < Laurenceb__> yet loads of people get obsessive about running it on hardware of this level 2012-06-11T23:54:44 <+dekar> Laurenceb__, µCLinux lacks most of its POSIX conformity, you don't even have basic threading features like fork() 2012-06-11T23:54:54 <+dekar> not worth it imo --- Day changed Tue Jun 12 2012 2012-06-12T00:34:51 -!- izua [~izua@86.121.85.82] has joined ##stm32 2012-06-12T00:34:51 -!- izua [~izua@86.121.85.82] has quit [Changing host] 2012-06-12T00:34:51 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-12T00:34:55 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-12T01:02:30 < R2COM> so, on which smartphones one can run true linux? 2012-06-12T01:02:42 < R2COM> samsung galaxy II? iphone II? or what? 2012-06-12T01:02:48 < zyp> is android not true linux? 2012-06-12T01:03:00 < R2COM> im not sure, im not into that stuff was just curious 2012-06-12T01:03:35 < zyp> then let me inform you that android is true linux, with a different userland 2012-06-12T01:03:42 <+dekar> R2COM, well I guess "true linux" is more like GNU/Linux 2012-06-12T01:04:08 <+dekar> zyp, well they changed a lot actually 2012-06-12T01:04:28 < zyp> it's not that different 2012-06-12T01:04:32 <+dekar> they don't use alsa for audio output 2012-06-12T01:04:45 <+dekar> they use some different graphics framwork 2012-06-12T01:04:51 <+dekar> *framework 2012-06-12T01:05:20 < zyp> isn't graphics mostly userland? 2012-06-12T01:05:37 < Laurenceb__> in b4 RMS 2012-06-12T01:05:45 <+dekar> zyp, nope - traditionally on *NIX system the Xserver has kernel privileges 2012-06-12T01:06:01 <+dekar> and the Xserver contains the graphics drivers 2012-06-12T01:06:23 < zyp> anyway, consider this 2012-06-12T01:06:42 < zyp> pandaboard can run normal linux distributions 2012-06-12T01:06:51 < R2COM> so, does it mean i can run nearly any Linux application i run on my RHEL6, on the Android, on one of those phones? 2012-06-12T01:07:07 <+dekar> zyp, panda board is build around one of the best supported SoCs out there 2012-06-12T01:07:10 < zyp> a lot of today's smartphones are practically identical hardware-wise 2012-06-12T01:07:23 < zyp> i.e. OMAP4-based 2012-06-12T01:07:25 <+dekar> OMAP3 has full mainline support and OMAP4 has partial support 2012-06-12T01:07:36 < BrainDamage> R2COM: I suspect Xorg won't run on them 2012-06-12T01:07:57 <+dekar> R2COM, no Xorg, no Sound 2012-06-12T01:08:00 < zyp> R2COM, you can't run x86 code on an arm processor 2012-06-12T01:08:14 < BrainDamage> plus I don't know what patches most android flavours have on top of the kernel 2012-06-12T01:08:19 <+dekar> R2COM, you can run your commandline redhat stuff on android 2012-06-12T01:08:22 < BrainDamage> but most command line apps should work 2012-06-12T01:08:40 < R2COM> hm 2012-06-12T01:08:40 < zyp> sure, it's still all posix 2012-06-12T01:09:09 <+dekar> but the worst about android are the proprietary drivers, you're usually bound to one hacked together kernel with proprietary modules you'll never see the sources of 2012-06-12T01:09:09 < BrainDamage> if someone does an xorg for android, then most of the stuff should work 2012-06-12T01:09:18 <+dekar> so you can't update the kernel 2012-06-12T01:09:19 < R2COM> what about writing your app for it? would it be easy portable thing PC(Linux)--->Android, if written in C? 2012-06-12T01:09:20 < R2COM> or 2012-06-12T01:09:23 < R2COM> no? 2012-06-12T01:09:32 < R2COM> also 2012-06-12T01:09:32 <+dekar> and you can't use android drivers for Xorg and ALSA 2012-06-12T01:09:32 < BrainDamage> depends on the libs / what it does 2012-06-12T01:09:41 < zyp> let me add that I work on android stuff for a living, I don't notice much difference from other embedded linux stuff 2012-06-12T01:09:50 < R2COM> one more thing interesting, is there any way connect some USB device to one of those Android phones? 2012-06-12T01:10:01 < BrainDamage> some have usb host capability 2012-06-12T01:10:06 <+dekar> R2COM, libusb 2012-06-12T01:10:10 < BrainDamage> but it's a minority 2012-06-12T01:10:12 < R2COM> ok 2012-06-12T01:10:18 <+dekar> R2COM, you only need root 2012-06-12T01:10:18 < R2COM> but do those phones have Micro USB output? 2012-06-12T01:10:22 < R2COM> or something? 2012-06-12T01:10:24 < zyp> the chipsets got OTG support, but most phones are not wired to provide 5V to connected devices 2012-06-12T01:10:27 < BrainDamage> not all 2012-06-12T01:10:36 < BrainDamage> a minority has usb host support 2012-06-12T01:11:06 <+dekar> just buy a tablet with usb port if you want that 2012-06-12T01:11:08 < zyp> all the devboards we got at work got full host support 2012-06-12T01:11:28 < zyp> so it's just a matter of phone manufacturers to hook it up 2012-06-12T01:11:36 < R2COM> for example, it could be useful, say i have some board, or hardware, and somewhere on a field i want to tweak its parameters, and i dont want to drag my laptop every time, so i run my app on android phone, and do the job (given that the application is written for it and drivers too) 2012-06-12T01:12:06 < zyp> sure 2012-06-12T01:12:29 < R2COM> which phone would you recommend from the latest ones? capable of such stuff? 2012-06-12T01:12:36 < R2COM> and supporting android 2012-06-12T01:12:51 < R2COM> i heard there are some already with quad cores 2012-06-12T01:12:52 < zyp> I don't know, I don't have much experience with actual recent phones, just devboards 2012-06-12T01:12:56 < R2COM> and 8MP camera as well? 2012-06-12T01:13:28 <+dekar> R2COM, just get a IOIO or something like that, all android devices interface to IOIO 2012-06-12T01:13:44 < BrainDamage> that's because the ioio is a usb host 2012-06-12T01:13:49 < zyp> yep 2012-06-12T01:13:51 <+dekar> I know 2012-06-12T01:13:57 < zyp> that's because a lot of devices are only device 2012-06-12T01:14:00 < BrainDamage> he wants to hook to random boards 2012-06-12T01:14:07 < zyp> does he? 2012-06-12T01:14:21 < BrainDamage> "i have some board, or hardware, and somewhere on a field i want to tweak its parameters, " 2012-06-12T01:14:26 <+dekar> oh, like using OpenOCD on his android phone to jtag some board? 2012-06-12T01:14:46 < BrainDamage> that's what I took from it 2012-06-12T01:14:59 < BrainDamage> I guess tought you could reimplement that using the ioio 2012-06-12T01:15:03 < BrainDamage> like ioio to jtag 2012-06-12T01:15:15 < BrainDamage> but it'd be a specific app, toggling the gpio 2012-06-12T01:15:18 <+dekar> read that blog and pick some device he suggests: http://blog.the-leviathan.ch/ 2012-06-12T01:15:25 < zyp> BrainDamage, doesn't have to 2012-06-12T01:15:33 < R2COM> im looking at IOIO 2012-06-12T01:15:39 < zyp> can run a full gdbserver on the ioio and just pipe it to gdb on the phone 2012-06-12T01:15:42 <+dekar> that guy installs GNU/Linux systems like Gentoo and android devices 2012-06-12T01:15:54 < R2COM> it has USB 2012-06-12T01:16:04 < R2COM> so... what would i need that? 2012-06-12T01:16:07 < R2COM> why* 2012-06-12T01:16:26 < R2COM> i guess its for those who want to toggle LEDs from android or something 2012-06-12T01:16:28 <+dekar> R2COM, it allows your android device to interface GPIO pins 2012-06-12T01:16:39 < R2COM> yea.. i was talking about different stuff 2012-06-12T01:16:41 <+dekar> R2COM, well I didn't fully understand what you want 2012-06-12T01:16:44 < R2COM> if there is already board with USB 2012-06-12T01:16:56 < R2COM> and that board, lets say needs to be tweaked 2012-06-12T01:17:00 < R2COM> from its USB port 2012-06-12T01:17:10 < BrainDamage> you want a phone with usb hosting capability 2012-06-12T01:17:30 < R2COM> host... or actually device would work too 2012-06-12T01:17:45 < BrainDamage> the other board must support usb hosting then 2012-06-12T01:17:48 < R2COM> its just, i suppose, in that case, one would have to write a device drivers for Android right? 2012-06-12T01:17:52 < R2COM> to interface with my board 2012-06-12T01:17:56 <+dekar> R2COM, that device maybe? http://blog.the-leviathan.ch/?p=433 2012-06-12T01:17:56 < R2COM> yes 2012-06-12T01:17:58 < BrainDamage> one of the endpoints needs to have hosting capability 2012-06-12T01:18:05 < R2COM> the other board lets say supports hosting usb 2012-06-12T01:18:16 < BrainDamage> then any androind phone should work 2012-06-12T01:18:22 <+dekar> that transformer tablet only runs botched up kernels made by nvidia, but you probably won't care about that 2012-06-12T01:18:24 < BrainDamage> but to access usb you need root 2012-06-12T01:18:26 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-06-12T01:18:32 < R2COM> yeah what about being root? 2012-06-12T01:18:49 < R2COM> is it blocked to be root in android or what? 2012-06-12T01:19:13 <+dekar> R2COM, on most devices it is 2012-06-12T01:19:18 < BrainDamage> most vendors don't give you root access 2012-06-12T01:19:27 <+dekar> R2COM, anyway if your external board has USB host then you don't need root 2012-06-12T01:19:47 <+dekar> you just have to implement the android debug bridge protocol 2012-06-12T01:19:55 < R2COM> oh ok 2012-06-12T01:19:57 <+dekar> or the android accessory protocol 2012-06-12T01:20:02 < R2COM> but thats stupid that vendors dont give root 2012-06-12T01:20:08 < R2COM> ok 2012-06-12T01:20:15 < R2COM> so board needs to be a USB host then 2012-06-12T01:20:18 <+dekar> R2COM, vendors don't want you to brick your device 2012-06-12T01:20:26 <+dekar> R2COM, think of "rm -rf /" 2012-06-12T01:20:39 -!- zippe1 [~Adium@173.11.99.161] has joined ##stm32 2012-06-12T01:20:40 <+dekar> or have it infected by viruses 2012-06-12T01:20:46 < R2COM> they should give it to those who want 2012-06-12T01:20:53 <+dekar> R2COM, many do 2012-06-12T01:21:08 <+dekar> you have to unlock those devices at some vendor website though 2012-06-12T01:21:12 <+dekar> and give up warranty 2012-06-12T01:21:35 <+dekar> R2COM, all the nexus ones sold by google offer that 2012-06-12T01:21:40 <+dekar> as well as the older dev phones 2012-06-12T01:22:17 < R2COM> dekar which smartphone you use? 2012-06-12T01:22:19 <+dekar> my Android Developer Phone 1 actually runs some debian flavor, proper GNU/Linux and not Android 2012-06-12T01:22:45 <+dekar> it also has host support if you do some hardware modifications 2012-06-12T01:23:07 <+dekar> you may wanna look at "SHR", that's some debian optimized for phones 2012-06-12T01:23:34 <+dekar> http://www.youtube.com/watch?v=iW6uBllUQcs 2012-06-12T01:23:43 -!- Kevin`_ [~kevin@router.kwzs.be] has joined ##stm32 2012-06-12T01:25:06 <+dekar> the ADP1 is pretty well suited for running GNU/Linux since it has a trackball and a keyboard 2012-06-12T01:25:29 -!- phantoneD [~destroy@95.92.89.24] has joined ##stm32 2012-06-12T01:26:21 <+dekar> xchat running on the G1: http://www.youtube.com/watch?v=5ZpbWc0vFlc 2012-06-12T01:26:49 -!- Laurenceb__ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has quit [Ping timeout: 245 seconds] 2012-06-12T01:26:51 < R2COM> hm 2012-06-12T01:27:32 < R2COM> dont see links to buy one, with specs of phone 2012-06-12T01:28:06 < R2COM> oh on android market site 2012-06-12T01:28:33 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 244 seconds] 2012-06-12T01:29:16 <+dekar> R2COM, you probably don't want an Android Developer Phone 1 since that's the device initially used to develop android, it's pretty old 2012-06-12T01:29:24 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 248 seconds] 2012-06-12T01:29:37 -!- zippe [~Adium@173.11.99.161] has quit [Ping timeout: 248 seconds] 2012-06-12T01:29:37 -!- Kevin` [~kevin@router.kwzs.be] has quit [Ping timeout: 248 seconds] 2012-06-12T01:29:58 < R2COM> ok 2012-06-12T01:30:00 < R2COM> basically 2012-06-12T01:30:32 < R2COM> i was thinking of some new cool smartphone, with 8MP camera, quad processor, and well.. Android, and a hardware capability to talk to different boards with USB 2012-06-12T01:30:33 < R2COM> thats it 2012-06-12T01:31:01 <+dekar> so get any you like 2012-06-12T01:31:10 < R2COM> which would you recommend? 2012-06-12T01:31:14 <+dekar> they all can connect to USB hosts and communicate with them 2012-06-12T01:31:48 <+dekar> well I hate the idea of having to run botched up "android-kernels" 2012-06-12T01:32:01 <+dekar> but for you probably any device will do 2012-06-12T01:32:08 < R2COM> hm 2012-06-12T01:32:10 <+dekar> I would suggest going for a NEXUS device 2012-06-12T01:32:15 -!- Kevin`_ is now known as Kevin` 2012-06-12T01:32:16 < R2COM> looking.. 2012-06-12T01:32:17 <+dekar> since they come unlocked 2012-06-12T01:32:32 <+dekar> nexus one, nexus s or nexus galaxy 2012-06-12T01:32:39 <+dekar> only dual core though 2012-06-12T01:32:39 < R2COM> what about HTC? 2012-06-12T01:32:52 <+dekar> what about HTC? 2012-06-12T01:32:56 <+dekar> nexus one is HTC 2012-06-12T01:33:08 <+dekar> nexus s and nexus galaxy are samsung 2012-06-12T01:33:27 <+dekar> but the nexus brands marks devices supported directly by google targeted at developers 2012-06-12T01:33:28 < R2COM> quad core? 2012-06-12T01:33:44 <+dekar> what? there is no nexus quadcore 2012-06-12T01:34:27 <+dekar> well get what you like. buy a phone, use it for a year and throw it away once the vendor stops shipping any updates 2012-06-12T01:34:39 <+dekar> that's how things go for android 2012-06-12T01:34:50 < R2COM> heh 2012-06-12T01:35:05 < R2COM> so 300$ or so just for year 2012-06-12T01:35:11 <+dekar> you have some hacked together kernel by the vendor, they give you updates for maybe a year and then you're basically on your own 2012-06-12T01:35:19 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-12T01:35:38 <+dekar> and you can't install the latest linux kernels on your device 2012-06-12T01:35:46 <+dekar> just the kernel hacked together by the vendor 2012-06-12T01:36:27 <+dekar> so if you want to install the latest android on your device everything fails. you might still get an image, but no hardware acceleration, camera stops working and so on 2012-06-12T01:36:43 < R2COM> hm 2012-06-12T01:36:47 <+dekar> thus you only have the option to sell it on ebay and buy a new device 2012-06-12T01:37:02 <+dekar> that's why I don't think android is normal linux 2012-06-12T01:37:06 < R2COM> sell for like 20$ or so then 2012-06-12T01:37:16 <+dekar> it might be some hacked linux, but it's not what I want when I think about linux 2012-06-12T01:37:29 < R2COM> i see now, HTC ONE X, quad core 2012-06-12T01:37:33 <+dekar> that's why my old phone runs debian now 2012-06-12T01:37:41 <+dekar> R2COM, yeah well get it 2012-06-12T01:38:26 <+dekar> I only had HTC so far, though I am not too pleased with the devices 2012-06-12T01:38:36 <+dekar> I'd rather go for samsung 2012-06-12T01:38:41 < R2COM> its not available yet 2012-06-12T01:38:46 <+dekar> and well I'd go for the developer nexus phone 2012-06-12T01:38:49 <+dekar> nexus galaxy 2012-06-12T01:38:52 <+dekar> since it is open 2012-06-12T01:38:58 <+dekar> and since the SoC is an OMAP4 2012-06-12T01:39:07 <+dekar> which is one of the best supported SoCs out there 2012-06-12T01:39:23 <+dekar> for upstream GNU/Linux at least 2012-06-12T01:40:29 < R2COM> so what you say is, once its not being updated by manufacturer, its an option to install Debian and stuff? 2012-06-12T01:40:38 < R2COM> is it pain in the ass or smooth process? 2012-06-12T01:40:46 <+dekar> is what pain in the ass? 2012-06-12T01:40:58 <+dekar> running debian on your phone? a lot of pain! 2012-06-12T01:41:02 < R2COM> put debian on say... HTC ONE X, after one year, when its not supported 2012-06-12T01:41:06 < R2COM> oh 2012-06-12T01:41:18 <+dekar> R2COM, you probably won't have ANY drivers 2012-06-12T01:41:19 < R2COM> you got all its peripheral working? 2012-06-12T01:41:20 < R2COM> camera etc? 2012-06-12T01:41:34 <+dekar> no display output, no sound, no camera, no bluetooth, no wifi, no radio 2012-06-12T01:41:38 < R2COM> yeah... thats a lot of dedication, im not sure if ill have time for that shit 2012-06-12T01:41:43 <+dekar> maybe just serial console 2012-06-12T01:42:01 <+dekar> R2COM, you can still sell it on ebay like normal people 2012-06-12T01:42:04 <+dekar> and buy a new one 2012-06-12T01:42:39 < R2COM> ok 2012-06-12T01:42:50 < R2COM> but one X is not available for sale yet 2012-06-12T01:43:04 <+dekar> so get the nexus galaxy then 2012-06-12T01:43:45 < R2COM> this? 2012-06-12T01:43:46 < R2COM> http://www.t-mobile.com/shop/phones/Cell-Phone-Detail.aspx?cell-phone=T-Mobile-Galaxy-S-II-White 2012-06-12T01:44:05 <+dekar> NEXUS GALAXY 2012-06-12T01:44:09 < R2COM> oh 2012-06-12T01:44:11 < R2COM> ok 2012-06-12T01:44:23 <+dekar> that's the google dev phone 2012-06-12T01:44:27 <+dekar> comes with stock android 2012-06-12T01:44:40 <+dekar> no weird UI shit vendors like Samsung and HTC usually put on top 2012-06-12T01:44:58 < R2COM> List Price: $799.99 Price From: $0.01 (Price varies based on service type) You Save: $799.98 (99%) 2012-06-12T01:44:59 < R2COM> wtf 2012-06-12T01:45:07 < R2COM> oh 2012-06-12T01:45:08 < R2COM> service 2012-06-12T01:45:23 < R2COM> camera only 5MP 2012-06-12T01:45:37 <+dekar> sucks for you 2012-06-12T01:45:43 < R2COM> so it has USB socket, which can go to USB host socket? 2012-06-12T01:45:47 < R2COM> USB plug* 2012-06-12T01:45:49 < R2COM> ? 2012-06-12T01:45:49 <+dekar> well you can still interpolate that up to 50mbit later 2012-06-12T01:45:58 <+dekar> uhm MP 2012-06-12T01:46:01 <+dekar> 50MP 2012-06-12T01:46:26 <+dekar> yeah like all other android devices it supports the android accessory protocol via usb 2012-06-12T01:47:00 < R2COM> then 2012-06-12T01:47:21 < R2COM> all i need to do is, write One driver, which would be universal to all my boards, so they can talk with this phone and get settings/data/etc? 2012-06-12T01:47:32 <+dekar> yeah 2012-06-12T01:47:41 < R2COM> and..lets say after a year i get another similar, but better one 2012-06-12T01:47:46 < R2COM> there wont be much work to remake driver etc? 2012-06-12T01:47:52 <+dekar> no change 2012-06-12T01:47:56 < R2COM> well... 2012-06-12T01:48:02 < R2COM> thats...kind of good 2012-06-12T01:48:07 < R2COM> thanks for the info 2012-06-12T01:48:16 < R2COM> ill look at that stuff 2012-06-12T01:48:23 < blkcat> you can get an unlocked nexus from google play for $400. 2012-06-12T01:48:27 < blkcat> but i'd rather you just bought mine. 2012-06-12T01:49:12 <+dekar> blkcat, why don't you like it? 2012-06-12T01:49:15 < R2COM> yes, i'd pay 401$ for your 2012-06-12T01:49:34 < blkcat> dekar: poor signal where i live. 2012-06-12T01:49:47 < R2COM> hmm 2012-06-12T01:49:55 < R2COM> also i see different carriers support different phones 2012-06-12T01:50:00 < R2COM> not like all support all phones 2012-06-12T01:50:03 <+dekar> R2COM, oh android5 will come up soon, and the nexus galaxy is probably the only phone that will get the update 2012-06-12T01:50:09 <+dekar> all others will have to be sold on ebay 2012-06-12T01:50:26 < R2COM> i wonder who buys them, since they know this product is obsolete 2012-06-12T01:50:49 <+dekar> most people don't seem to understand the numbers 2012-06-12T01:51:01 <+dekar> that's why old iPhones have this insane resell value 2012-06-12T01:51:12 <+dekar> people are like "oh it's an iPhone!" 2012-06-12T01:51:33 < R2COM> i wonder why manufacturers do such shit 2012-06-12T01:51:43 < R2COM> i mean...why not write a code which runs on new and on old shit 2012-06-12T01:51:45 <+dekar> R2COM, what kind of shit? selling products? 2012-06-12T01:51:48 < R2COM> to some degree its possible 2012-06-12T01:51:57 < R2COM> no, like stopping updates 2012-06-12T01:52:03 <+dekar> R2COM, supporting those hacked together kernels is a lot of work 2012-06-12T01:52:10 <+dekar> why would they keep supporting it? 2012-06-12T01:52:15 <+dekar> people already spent the money 2012-06-12T01:52:20 < R2COM> well... 2012-06-12T01:52:25 <+dekar> they don't earn anything by supporting them 2012-06-12T01:52:28 <+izua> hack valuye 2012-06-12T01:52:58 <+izua> which is pretty much the definition of titanical pointless work 2012-06-12T01:54:09 < R2COM> ok 2012-06-12T01:54:43 <+dekar> izua, I hate how all those SoCs (like the qualcomm ones) just aren't supported by any OS. I mean you can install that one hacked together kernel full of precompiled proprietary bits, but that's it. Once you want something new (software wise), the hardware has reached the end of life 2012-06-12T01:55:19 <+dekar> the hardware goes out of production really soon and after that they're just dead 2012-06-12T01:55:37 < blkcat> it's a paradigm shift in the industry 2012-06-12T01:55:44 < blkcat> cheaper to just throw stuff out and buy new than to support the old 2012-06-12T01:55:50 <+dekar> they basically manufacture ARM SoCs to have them end up in trash 2012-06-12T01:55:59 < R2COM> blkcat: turns out that yes 2012-06-12T01:56:05 < R2COM> unless one has lots of time for such shit 2012-06-12T01:56:09 < R2COM> but 2012-06-12T01:56:13 < R2COM> new stuff is expencive 2012-06-12T01:56:17 <+dekar> I just think it's an incredibly waste 2012-06-12T01:56:23 < blkcat> it is. 2012-06-12T01:56:25 <+izua> ^ 2012-06-12T01:56:26 <+dekar> *incredible 2012-06-12T01:56:26 < R2COM> but here is another thing! 2012-06-12T01:56:29 < R2COM> if 2012-06-12T01:56:40 <+izua> you could start your own ic factory 2012-06-12T01:56:43 < R2COM> the providers of phone companies, give it for somoe 50$ or so, for those who are on contract 2012-06-12T01:56:46 < R2COM> then its OK? 2012-06-12T01:56:59 < R2COM> i mean...50$ 100$ every year on phone 2012-06-12T01:57:01 < R2COM> not that bad 2012-06-12T01:57:13 < R2COM> you dont have to buy unlocked 2012-06-12T01:57:17 <+dekar> R2COM, what? I have a general problem with destroying perfectly working turing complete hardware 2012-06-12T01:57:26 < R2COM> what you mean 2012-06-12T01:57:27 < R2COM> ? 2012-06-12T01:57:30 <+dekar> I have a problem with limiting turing complete hardware to begin with 2012-06-12T01:57:36 < blkcat> it's not the expense, it's the waste of it all 2012-06-12T01:57:37 <+izua> design a similar core to arm, at least, IS compatible, add peripherals, and let anyone with an fpga or asic synthesising capabilities build his own soc or mcu similar to what we design 2012-06-12T01:57:54 <+izua> which of course, can run what we want, and that would be the mainline linux kernel? :P 2012-06-12T01:58:25 <+izua> but of course, probably halfway through that we'll run out of money, most likely after the first batch 2012-06-12T01:58:36 <+dekar> R2COM, those chips are general purpose CPUs, yet we use them as if they were special purpose ASICs, just able to run android version X and not version Y 2012-06-12T01:58:40 <+izua> and it will end in the same pile as rpi and duke nukem 2012-06-12T01:59:08 <+dekar> izua, I'll just buy x86er 2012-06-12T01:59:13 <+dekar> at least till secure boot comes 2012-06-12T01:59:20 < R2COM> right now my primary and only phone is NOkia5100 ;) which i bought in 2003 2012-06-12T01:59:24 < R2COM> no fancy thit 2012-06-12T01:59:28 < R2COM> just reliable 2012-06-12T01:59:29 <+izua> secure boot is going to be so cool 2012-06-12T01:59:47 <+dekar> izua, yeah - crippled linux that can't do shit anymore is so cool 2012-06-12T01:59:56 <+dekar> I can't compile my own modules anymore 2012-06-12T02:00:08 <+dekar> I can't have MY OS boot any other OS I want 2012-06-12T02:00:09 <+izua> and even cooler will be the time when you won't be able to install hardware breakpoints on your machine anymore, and it will be able to run and sign encrypted code 2012-06-12T02:00:29 <+izua> go go gadget drm 2012-06-12T02:00:35 <+dekar> izua, just wait for fully homomorphic encryption 2012-06-12T02:00:42 <+dekar> the holy grail of cryptography 2012-06-12T02:01:01 <+izua> y u no count to infinity instead 2012-06-12T02:01:04 <+dekar> your CPU calculates stuff, but you have mathematically proven no chance of understanding WHAT it actually does 2012-06-12T02:01:32 <+dekar> cause it is actually able to do all calculations through a layer of encryption on encrypted data 2012-06-12T02:01:41 <+dekar> and the data only decrypts itself if it wants to 2012-06-12T02:01:46 <+dekar> turing complete encryption 2012-06-12T02:01:59 <+dekar> now _that's_ fucked up 2012-06-12T02:02:12 <+dekar> would allow for epic cloud computing though 2012-06-12T02:02:13 <+izua> i have no idea what homo encryption is, pardon the pun, but wasn't it theoretical only? 2012-06-12T02:02:28 < R2COM> the android phones have USB 2? 2012-06-12T02:02:30 < R2COM> or USB3? 2012-06-12T02:02:43 <+dekar> izua, there are working implementations of homomorphic crypto already, they're just incredibly slow 2012-06-12T02:02:57 <+izua> let's take this slow. what is homomorphic crypto 2012-06-12T02:03:02 <+dekar> they only support like 3 operations at EXTREME costs, yet they're turing complete 2012-06-12T02:03:20 <+dekar> izua, you have some application, that has been encrypted 2012-06-12T02:03:28 <+dekar> you run it, in its encrypted form 2012-06-12T02:03:32 <+dekar> without knowing the key 2012-06-12T02:03:43 <+dekar> that's homomorphic crypto 2012-06-12T02:03:50 <+izua> neat. 2012-06-12T02:04:04 <+dekar> _if_ the application decides to decrypt parts of it (like a frame it rendered) then it does so 2012-06-12T02:04:11 <+izua> i'm not sure how that is matematically possible though 2012-06-12T02:04:15 <+dekar> but you can't hack the application 2012-06-12T02:04:50 <+izua> but that has a high chance of being used for drm and such 2012-06-12T02:04:55 <+dekar> okay let's take an easy example 2012-06-12T02:04:58 <+dekar> XOR 2012-06-12T02:05:05 <+izua> every mp3 file is an mp3 player instead 2012-06-12T02:05:08 <+dekar> XOR is homomorphic concerning the XOR operation 2012-06-12T02:05:19 <+dekar> you know what a one time pad is right? 2012-06-12T02:05:29 <+izua> and you can only play your mp3 5 times a day 2012-06-12T02:05:35 <+izua> yeah 2012-06-12T02:05:50 <+dekar> okay so I have two numbers 32bit each 2012-06-12T02:05:59 <+dekar> so I have 64bit and I encrypt them with a one time pad 2012-06-12T02:06:03 <+dekar> then I give them to you 2012-06-12T02:06:14 <+dekar> and I tell you to XOR the first number with the second 2012-06-12T02:06:18 <+dekar> and pass the result to me 2012-06-12T02:06:28 <+dekar> you don't know which numbers you XOR'ed 2012-06-12T02:06:40 <+dekar> but I can now decrypt them with the one time pad 2012-06-12T02:06:49 <+dekar> and get the result of the calculation you performed 2012-06-12T02:07:05 < R2COM> i cant find if those phone support usb3 or 2? 2012-06-12T02:07:07 < R2COM> anyone knows? 2012-06-12T02:07:13 <+dekar> R2COM, they don't 2012-06-12T02:07:18 < R2COM> just USB2? 2012-06-12T02:07:19 <+izua> usb3 has sort of a bigger jack 2012-06-12T02:07:29 < R2COM> USB2 High Speed? 2012-06-12T02:07:36 <+dekar> izua, were you able to follow me? 2012-06-12T02:07:37 <+izua> and it's widely unimplemented, i only seen it on MSC and some very expensive hubs 2012-06-12T02:07:39 <+izua> dekar: yeah 2012-06-12T02:07:47 <+dekar> izua, you see how it works? 2012-06-12T02:07:59 <+izua> yeah, i got it before your example though :) 2012-06-12T02:08:05 <+dekar> k 2012-06-12T02:08:15 <+izua> but that can probably be used for more bad stuff than good 2012-06-12T02:08:18 <+dekar> RSA is another partially homomorphic algorithm 2012-06-12T02:08:25 <+dekar> I can encrypt 2 numbers with RSA 2012-06-12T02:08:27 <+dekar> pass them to you 2012-06-12T02:08:32 <+dekar> and you can multiply them for me 2012-06-12T02:08:40 <+dekar> and return them without ever knowing the content 2012-06-12T02:09:01 <+dekar> izua, it's the perfect copy protection 2012-06-12T02:09:09 < karlp> bloody hell, this is one hell of a lot of scrollback to say the same thing over and over and over and over 2012-06-12T02:09:13 <+dekar> it also is the perfect trust anchor for cloud computing 2012-06-12T02:09:19 < karlp> no-one mentioned openwrt? 2012-06-12T02:09:24 < BrainDamage> I tought there's no homomorphic encryption for operations only 2012-06-12T02:09:36 < karlp> they have 3.3 for most socs, but they're not targetting socs with graphics :) 2012-06-12T02:09:37 <+dekar> BrainDamage, what do you mean? 2012-06-12T02:09:53 <+dekar> BrainDamage, RSA is homomorphic for multiplications 2012-06-12T02:09:59 <+dekar> and XOR is homomorphic for XOR 2012-06-12T02:10:02 < BrainDamage> I mean for all operations 2012-06-12T02:10:03 <+dekar> and there are some others 2012-06-12T02:10:29 < karlp> also, usb3 does NOT have a bigger jack, 2012-06-12T02:10:30 <+dekar> BrainDamage, there are fully homomorphic algorithms, they don't support _all_ operations, but enough to be turing complete 2012-06-12T02:10:36 < karlp> onl yif you want to support some of the higher speed an dhigher power modes 2012-06-12T02:10:53 <+dekar> BrainDamage, like some older ARMs couldn't divide in hardware, the compiler would do that in software 2012-06-12T02:11:06 < BrainDamage> I know what turing complete implies 2012-06-12T02:12:02 <+dekar> BrainDamage, the ones that exist somehow corrupt themselves after X operations so they constantly have to re-encrypt their own data to protect themselves from corruption 2012-06-12T02:12:11 <+dekar> idk the details, but it seems like they suck 2012-06-12T02:12:37 <+izua> you're easy to distract, dekar 2012-06-12T02:12:40 < BrainDamage> I am quite glad to it, because I suspect it'd be badly abused in rights-limiting way 2012-06-12T02:12:44 <+izua> or you have a very wide array of interests :) 2012-06-12T02:13:00 <+izua> last time i recall raptor codes talk 2012-06-12T02:13:03 <+dekar> izua, I have a really wide array of interests 2012-06-12T02:13:25 < BrainDamage> btw, even subtract and branch if 0 is turing complete 2012-06-12T02:13:38 < BrainDamage> I once made a retarded cpu implementing it in vhdl 2012-06-12T02:13:51 <+dekar> even a turing machine is turing complete, it still sucks :) 2012-06-12T02:13:51 < BrainDamage> the compiler wasn't exactly fun tough :s 2012-06-12T02:14:11 <+dekar> lol why would you do that? XD 2012-06-12T02:14:17 <+izua> BrainDamage: that's what i'm saying, homomorphic encryption has very little useful properties than can be useful for an everyday user - at least imo 2012-06-12T02:14:23 <+dekar> useless exercise 2012-06-12T02:14:44 <+dekar> izua, imagine all your applications running in the cloud 2012-06-12T02:14:48 <+izua> they're the perfect pitch for copy protection, as dekar said, until the major cpu won't be x86 anymore or it will evolve to the point that has no hardware breakpoints and can run signed and encrypted code 2012-06-12T02:14:51 < BrainDamage> dekar: it was a challenge 2012-06-12T02:14:53 <+dekar> yet you can be sure it is perfectly safe 2012-06-12T02:15:06 < BrainDamage> in retrospective, I paid myself 3€/h 2012-06-12T02:15:18 < BrainDamage> but I won the bet :p 2012-06-12T02:15:22 <+izua> there's always someone with a bigger computer that can brute force everything - at least that's what i try to believe 2012-06-12T02:15:24 <+dekar> izua, so I do think that can be pretty useful 2012-06-12T02:15:40 <+dekar> izua, you're wrong, brute force my one time pad 2012-06-12T02:15:41 <+izua> BrainDamage: did you end up poorer or wealthier? 2012-06-12T02:15:53 < BrainDamage> wealthier 2012-06-12T02:16:09 < BrainDamage> the money was from the bet, divide the time wasted on it 2012-06-12T02:16:22 <+dekar> izua, I did tell you that I implemented brute-force based FEC since I couldn't be fucked understanding the algorithm, didn't I? 2012-06-12T02:16:24 <+izua> you can't have otps for everything, that's not how it works in the real world 2012-06-12T02:16:32 <+izua> yeah, i recall :) 2012-06-12T02:16:37 <+dekar> it actually worked 2012-06-12T02:16:40 <+izua> with all the childbirth paging messages 2012-06-12T02:16:47 <+izua> yeah, you showed me a transcript. epic. 2012-06-12T02:16:51 <+dekar> yeah those 2012-06-12T02:17:03 <+izua> something about a cop inspecting a raw sewage plant? 2012-06-12T02:17:06 <+izua> i recall gestank :D 2012-06-12T02:17:14 <+dekar> so brute force is a solution to some problems 2012-06-12T02:17:17 <+dekar> but not to all :) 2012-06-12T02:17:32 <+dekar> it only generated 2.5% cpu load while decoding in realtime 2012-06-12T02:17:50 <+izua> that implies a otp big enough for all your apps though 2012-06-12T02:18:17 <+dekar> izua, I have some tritium in my keyring, I will use the decay to generate entropy :) 2012-06-12T02:18:37 <+dekar> actually a few GB of entropy isn't much of a problem these days 2012-06-12T02:18:54 <+dekar> also you can just AES or something like that as a secure PRNG 2012-06-12T02:19:07 <+dekar> 128bit seed is enough 2012-06-12T02:19:12 < BrainDamage> actually hw isn't that secure nowdays 2012-06-12T02:19:20 < BrainDamage> chip hacking are getting common and common 2012-06-12T02:20:41 < karlp> ie, money talks. 2012-06-12T02:20:47 < karlp> it doesn't matter how they did it. 2012-06-12T02:21:17 < feurig> yeah and cypress is still 8051 based. 2012-06-12T02:21:21 < feurig> bahhh. 2012-06-12T02:21:24 < karlp> hehe 2012-06-12T02:21:33 < karlp> 8051 is still uber cheap 2012-06-12T02:21:37 < karlp> unfortunately, 2012-06-12T02:22:09 < feurig> and lots of us geezers grew up on it. 2012-06-12T02:22:13 <+dekar> uber cheap ftl, I prefer high margin business 2012-06-12T02:22:23 < BrainDamage> I've seen rf chips with micro cores 2012-06-12T02:22:40 < BrainDamage> it was not 8086, but something similar 2012-06-12T02:22:42 < feurig> (the same way that basic is still around because the dinosaurs knew basic) 2012-06-12T02:22:45 < BrainDamage> it was awful to see 2012-06-12T02:23:14 < BrainDamage> ( still x86 ) 2012-06-12T02:23:24 < feurig> but the only compiler thats open source is sdcc so you might as well use something equally psychotic like a pic. 2012-06-12T02:23:46 < karlp> dekar: I'm not saying I wanted to be making them. 2012-06-12T02:24:01 <+dekar> karlp, I actually meant using them 2012-06-12T02:24:14 <+dekar> if your margin is big enough you just don't care 2012-06-12T02:24:19 < karlp> indeed. 2012-06-12T02:24:22 < karlp> that's why I'm not using them 2012-06-12T02:24:34 < karlp> but people send me things and go, "hey, but there's some 8051 code already done" 2012-06-12T02:24:48 < karlp> and margins don't last forever 2012-06-12T02:25:02 < BrainDamage> for the same reason, fortran is still widely used in the physics community 2012-06-12T02:25:07 < feurig> u g ly you aint got no alibi your just .... 2012-06-12T02:25:16 < feurig> uhhg 8051 2012-06-12T02:26:50 * feurig wanders to #LaBreaTarPits 2012-06-12T02:26:57 < feurig> :) 2012-06-12T02:27:22 -!- Tom_L is now known as Tom_itx 2012-06-12T02:30:00 < feurig> speak of the devil hey tom! 2012-06-12T02:30:26 < feurig> digikey. 2012-06-12T02:30:46 < feurig> 8 bucks for the "discovery" 2012-06-12T02:30:54 < feurig> less thatn 3 for the chip. 2012-06-12T02:33:56 < GargantuaSauce> they're like $13 on mouser 2012-06-12T02:34:52 < GargantuaSauce> a reasonable decision 2012-06-12T03:05:36 < dongs> sup trollback 2012-06-12T03:06:52 < R2COM> flyback-: how come they not respect you that much 2012-06-12T03:06:59 < R2COM> i got my f0 freeshit by the way 2012-06-12T03:07:05 < R2COM> havent looked at it yet 2012-06-12T03:07:16 < R2COM> flyback-: i can sell it to you for 500$ if you want it that bad? 2012-06-12T03:07:26 < BrainDamage> he's prone to boring monologues and one-word spamming which are echo-ed in all the channels he is in 2012-06-12T03:09:06 < dongs> < flyback-> well stm canucked me on the stm32f0 so I am just going to have to find somewhere to order one 2012-06-12T03:09:10 < dongs> haha 2012-06-12T03:09:12 < dongs> rejected?? 2012-06-12T03:27:39 <+izua> did you, perhaps, maybe, just by chance, got involved in discussions with the members on their forum or technical support and so on? 2012-06-12T04:34:44 -!- GargantuaSauce [~sauce@blk-252-42-151.eastlink.ca] has quit [Quit: Leaving.] 2012-06-12T04:36:53 -!- zippe1 [~Adium@173.11.99.161] has quit [Quit: Leaving.] 2012-06-12T04:37:05 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-06-12T04:37:08 -!- Huitaryan [~Huitaryan@blk-252-42-151.eastlink.ca] has joined ##stm32 2012-06-12T04:45:40 -!- tuxfool [~anonymous@bl13-165-209.dsl.telepac.pt] has quit [Quit: tuxfool] 2012-06-12T04:55:13 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-12T05:27:48 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-232-149.clienti.tiscali.it] has quit [Ping timeout: 245 seconds] 2012-06-12T05:43:59 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-12T05:44:05 -!- [7] [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-12T05:44:32 < Rickta59> maybe the stm people hang out here flyback- and put you on the no-fly list 2012-06-12T05:46:08 < Rickta59> the two sided protoboard is quite nice 2012-06-12T05:51:54 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-12T05:56:36 < dongs> DONGLE 2012-06-12T05:57:01 < dongs> haha 2012-06-12T05:57:05 < dongs> @ no fly list 2012-06-12T05:59:56 < dongs> what hte ufck is a carrier board 2012-06-12T06:00:26 < dongs> http://wvshare.com/product/Port407V.htm you mean shit liek this 2012-06-12T06:00:31 < dongs> http://wvshare.com/img/preview/Port107V_207V_407V_l.jpg 2012-06-12T06:02:34 < dongs> yes and? 2012-06-12T06:02:38 < dongs> thats exactly waht this is you faggot 2012-06-12T06:07:55 < upgrdman> dongs, htf are you going to breadboard with that? 2012-06-12T06:08:05 < upgrdman> do you know what a breadboard is? 2012-06-12T06:08:25 <+izua> flyback-: olimex is prototyping one with a ethernet, it has an arduino pinout (among others) 2012-06-12T06:09:21 <+izua> https://olimex.wordpress.com/2012/05/30/stm32-e407-prototypes-are-ready/ 2012-06-12T06:16:59 <+izua> oh god 2012-06-12T06:17:09 <+izua> i'm working with some TV IR receivers 2012-06-12T06:17:27 <+izua> (used them as a guerilla reflectance sensor, yes) 2012-06-12T06:17:55 <+izua> out of all CFLs, the cheapest one is incredibly noise in pretty much all the spectrum 2012-06-12T06:18:10 <+izua> well, not the cheapest one, the smallest one, which happened to be almost the cheapest 2012-06-12T06:18:17 <+izua> s/noise/noisy 2012-06-12T06:18:31 <+izua> back at this guy, even a 50 Hz incandescent would trigger it 2012-06-12T06:18:59 <+izua> at home,i'm shinning several light sources at it - led, cfls, regular fluoro, incadescent - and it's ok 2012-06-12T06:19:19 <+izua> it's like 2012-06-12T06:19:19 <+izua> auto pilot causes a 200 fpm drop on altitude-hold mode 2012-06-12T06:19:23 <+izua> could not reproduce problem on ground 2012-06-12T06:19:23 < dongs> upgrdman: who the FUCK uses breadboards in 2012, and if you really want to you can just jumper the fucking ports with 1:1 wires into your "breadboard" 2012-06-12T06:20:04 <+izua> dongs: people who can't afford to prototype a pcb for every small idea they have or wait for the lead time 2012-06-12T06:20:15 <+izua> breadboarding is baws 2012-06-12T06:20:32 < upgrdman> " spreads out the pins so you can beadboard..." dongs: then why did you answer his question with that board? 2012-06-12T06:20:34 < R2COM> sometimes it might be useful 2012-06-12T06:20:40 <+izua> http://www.adafruit.com/blog/2012/03/13/32-bit-meet-dip-arm-cortex-m0-in-dip-packages/ 2012-06-12T06:21:21 < R2COM> dip 2012-06-12T06:21:22 < R2COM> heh 2012-06-12T06:22:04 < R2COM> but sometimes it happens some stuff is available in DIP only 2012-06-12T06:22:11 < R2COM> or one would go with it due to price etc.. 2012-06-12T06:22:17 < upgrdman> "targeting the Chinese market where a lot of low cost goods are still assembled by hand using PTH parts" is it really cheaper for the chinese to hand solder them? 2012-06-12T06:22:37 < dongs> for chinese, yes 2012-06-12T06:22:45 < dongs> you can just go out in the street and gather some teenage girls 2012-06-12T06:22:50 < dongs> and make them solder 2012-06-12T06:23:01 < R2COM> only solder? and thats it? 2012-06-12T06:23:33 <+izua> sex-slave needed. must know to solder, program C, generic office skills and operate a lathe. sex may not always be mandatory. 2012-06-12T06:24:49 < upgrdman> anal bleeding required? 2012-06-12T06:26:07 < dongs> making breakout board for sim3u1xx 2012-06-12T06:35:31 < zippe> flyback-: actually, I think he's mostly just insecure and looking for validation 2012-06-12T06:35:43 < zippe> Some people lack the sort of basic social conditioning that makes polite conversation possible 2012-06-12T06:35:56 < zippe> In the meantime, the canonical answer to your question is the STM32F4 discovery board 2012-06-12T06:36:44 < zippe> You might also consider the GHI Cerb40: http://www.ghielectronics.com/catalog/product/353 2012-06-12T06:37:34 < zippe> If I was starting over right now, I would probably be giving NetMF a serious look 2012-06-12T06:37:43 < dongs> lolwut 2012-06-12T06:37:49 < dongs> netmf has interrupt latency of like over 9000us 2012-06-12T06:38:07 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer] 2012-06-12T06:38:08 < dongs> how many pins arent broken out 2012-06-12T06:38:10 < dongs> on that package 2012-06-12T06:38:13 < dongs> looks like over half 2012-06-12T06:38:32 < zippe> Much like mbed 2012-06-12T06:38:42 < zippe> As for latency; it's not that bad 2012-06-12T06:38:54 < zippe> But if you want better latency, that's what native code is for 2012-06-12T06:39:02 < dongs> right. 2012-06-12T06:39:14 < zippe> Same reason I mix C and lua 2012-06-12T06:39:25 < zippe> I would much rather replace lua with C# 2012-06-12T06:39:42 < zippe> and get all the nice debug tools, libraries, etc. 2012-06-12T06:40:38 < zippe> Or forth, but then recruiting developers would be NP-hard 2012-06-12T06:42:23 < Rickta59> didn't microsoft already port that .net crap to arm and make it open source? 2012-06-12T06:42:57 < dongs> yes "crap" 2012-06-12T06:43:01 < dongs> except its not 2012-06-12T06:43:37 < zippe> Rickta59: that's what NetMF is 2012-06-12T06:43:57 < zippe> TinyCLR, etc. etc. 2012-06-12T06:43:58 < Rickta59> k .. i hadn't kept up with the names 2012-06-12T06:44:10 < zippe> It's actually disgustingly nice 2012-06-12T06:44:40 < Rickta59> they seem to constantly rename their stuff so you think they did something new and then you waste time to find it is the same old stuff with a different name 2012-06-12T06:44:42 < zippe> Like, I honestly think that if it was liquid, and I sprinkled some on Massimo Banzi, he would turn instantly to ash 2012-06-12T06:45:22 < zippe> The GHI gadgeteer stuff is also really well thought out 2012-06-12T06:45:55 < R2COM> when i'll be rich, i'll buy microsoft and shut it down. No more microsoft. No more Windows. 2012-06-12T06:47:43 < zippe> Well, I guess we dodged a bullet there. 2012-06-12T06:47:58 < zippe> And by "dodged" I mean that you shoot like most of the kids in the 'hood here. 2012-06-12T06:48:09 < zippe> (see, I can play like dongs too...) 2012-06-12T06:54:00 -!- izua [~izua@86.121.85.82] has joined ##stm32 2012-06-12T06:54:00 -!- izua [~izua@86.121.85.82] has quit [Changing host] 2012-06-12T06:54:00 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-12T06:54:03 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-12T07:23:19 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 256 seconds] 2012-06-12T07:40:02 < dongs> http://i.imgur.com/6Mjn1.png neat 2012-06-12T08:22:22 -!- LawrenceSeattle [~lawrence@216.243.49.130] has joined ##stm32 2012-06-12T08:56:04 -!- tuxfool [~anonymous@bl13-165-209.dsl.telepac.pt] has joined ##stm32 2012-06-12T09:00:47 -!- tuxfool [~anonymous@bl13-165-209.dsl.telepac.pt] has quit [Ping timeout: 256 seconds] 2012-06-12T09:17:20 -!- iR0b0t1 [~dev@unaffiliated/r0b0t1] has joined ##stm32 2012-06-12T09:54:54 -!- peabody128 [~peabody12@128.249.96.123] has joined ##stm32 2012-06-12T09:58:29 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 245 seconds] 2012-06-12T09:59:14 -!- peabody128 [~peabody12@128.249.96.123] has quit [Ping timeout: 246 seconds] 2012-06-12T10:00:51 -!- tuxfool [~anonymous@195-23-237-248.net.novis.pt] has joined ##stm32 2012-06-12T10:02:40 -!- Laurenceb__ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has joined ##stm32 2012-06-12T10:09:08 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-12T10:10:43 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.] 2012-06-12T10:11:44 -!- izua [~izua@86.121.85.82] has joined ##stm32 2012-06-12T10:11:44 -!- izua [~izua@86.121.85.82] has quit [Changing host] 2012-06-12T10:11:44 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-12T10:11:47 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-12T10:25:25 -!- Laurenceb__ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has quit [Read error: Operation timed out] 2012-06-12T12:17:21 -!- tuxfool [~anonymous@195-23-237-248.net.novis.pt] has quit [Quit: tuxfool] 2012-06-12T12:25:03 < karlp> zippe: how easy is it mixing c and lua? do you use luac to compile it all into one piece, and the c calling stuff fro mlua to call your native code? got any examples lying around of a combined project? 2012-06-12T12:28:02 < Laurenceb> ah finally 2012-06-12T12:28:19 < Laurenceb> i have my sdr gps boards and all components 2012-06-12T12:28:49 < Laurenceb> i should have something assembled soon ish 2012-06-12T12:31:22 < Laurenceb> wtf 2012-06-12T12:31:25 < Laurenceb> tnt is breaking 2012-06-12T12:31:49 < Laurenceb> annot access memory at address 0x2001001 2012-06-12T12:40:30 < Laurenceb> why the hell not?! 2012-06-12T12:43:01 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-12T12:43:02 -!- tuxfool [~anonymous@195-23-237-248.net.novis.pt] has joined ##stm32 2012-06-12T13:09:21 < karlp> heh, no wonder this didn't work, at 300 baud, the divider from a 24mhz clock is too big for the 16bit register :) 2012-06-12T13:12:31 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-232-149.clienti.tiscali.it] has joined ##stm32 2012-06-12T13:32:08 <+dekar> Laurenceb, what happens? 2012-06-12T13:32:32 <+dekar> how would a toolchain prevent you from accessing memory? 2012-06-12T13:34:41 <+dekar> karlp, https://dl.dropbox.com/u/28467113/Screen%20Shot%202012-05-30%20at%2012.02.52%20AM.png 2012-06-12T13:34:53 <+dekar> I'll actually move the lua over to the stm32 2012-06-12T13:35:46 <+dekar> I dislike that LUA is using float, but I guess the stm32f1 is fast enough 2012-06-12T13:37:34 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 265 seconds] 2012-06-12T13:37:35 <+dekar> karlp, can't give you examples though, project is proprietary - sorry :/ 2012-06-12T13:37:47 <+dekar> but embedding lua is easy 2012-06-12T13:37:52 <+dekar> there are lots of examples 2012-06-12T13:47:06 < karlp> any that embed it in cortex m3? 2012-06-12T13:56:50 -!- neuro-sys is now known as neuro_sys 2012-06-12T14:00:04 < Laurenceb> oh lol 2012-06-12T14:00:13 < Laurenceb> i built for 64KB ram 2012-06-12T14:02:15 < zyp> always nice to build for more than you've got 2012-06-12T14:09:41 < dongs> sup dongs 2012-06-12T14:10:37 <+dekar> Laurenceb, you might wanna change the linker script I gave you quite a bit, I think the stack is like 8kb 2012-06-12T14:11:42 < Laurenceb> the codesourcery linker doesnt seem to have a stack size 2012-06-12T14:11:46 < Laurenceb> do you need it? 2012-06-12T14:12:58 <+dekar> if you don't then the heap will eventually overwrite the stack 2012-06-12T14:14:32 < Laurenceb> surely only if you let heap grow forever 2012-06-12T14:17:39 -!- pelrun [~pelrun@14-202-70-213.static.tpgi.com.au] has joined ##stm32 2012-06-12T14:29:14 < Laurenceb> lol @ work issues 2012-06-12T14:29:31 < Laurenceb> just got sent a datalogger that takes 3 hours to download data 2012-06-12T14:29:56 < Laurenceb> turns out guy writing the firmware was told "data shouldnt be processed onboard" 2012-06-12T14:30:14 < Laurenceb> so he grabbed raw 24bit adc data at 800Ksps and shoved to to SD 2012-06-12T14:30:18 < Laurenceb> *it 2012-06-12T14:30:50 < Laurenceb> then the download code uses winjungo called with 16byte transfers 2012-06-12T14:31:04 < Laurenceb> each call takes ~10ms to complete.... 2012-06-12T14:31:11 < karlp> winjungo? 2012-06-12T14:31:36 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-06-12T14:31:38 < Laurenceb> http://www.jungo.com/st/wdusb.html 2012-06-12T14:31:40 < karlp> hey, he did what he was told 2012-06-12T14:31:48 < karlp> this is why you make sd cards removable 2012-06-12T14:32:07 < Laurenceb> downloading 3GB datalog at ~2KB/s 2012-06-12T14:35:15 < Laurenceb> so i low pass filtered and decimated the data, and redid download code to make one call, takes 500ms to download 2012-06-12T15:30:24 < Laurenceb> anyone hjere used leiton.de ? 2012-06-12T15:40:59 < Laurenceb> seems very cheap for flexi pcb 2012-06-12T15:41:14 < Laurenceb> compared to other places that quote >£1K 2012-06-12T15:44:20 -!- neuro_sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-06-12T15:45:16 < Laurenceb> just got 10 pcbs for £300 2012-06-12T15:47:51 < dongs> I just ordered the most awesome pcb i ever designed 2012-06-12T15:49:22 < dongs> http://i.imgur.com/bYyq7.png 2012-06-12T15:49:47 < dongs> hopefully i didnt fuck anything up 2012-06-12T15:56:40 < dongs> whats trollin' 2012-06-12T15:58:18 < Laurenceb> http://i.imgur.com/ZMCST.png 2012-06-12T15:59:00 < BrainDamage> is that an egg dildo pcb? 2012-06-12T15:59:12 < Laurenceb> maybe 2012-06-12T15:59:58 < Laurenceb> http://www.iloveegg.com/index.htm 2012-06-12T16:00:01 < Laurenceb> lol japan 2012-06-12T16:00:38 < dongs> i think thats korea 2012-06-12T16:00:42 < dongs> yea it is 2012-06-12T16:00:54 < dongs> i think ive seen that animu before its funny 2012-06-12T16:00:55 <+dekar> Laurenceb, neat, I was interested in flexible PCBs as well 2012-06-12T16:01:28 < Laurenceb> they do up to 4 layer 2012-06-12T16:04:09 <+dekar> dongs, how many did you make? I'd take one :) 2012-06-12T16:04:38 < dongs> dekar: i dunno its getting paneled with some random customer order, I'll probably have like 10-20 lol 2012-06-12T16:04:49 < dongs> gonna be sleepin' on them 2012-06-12T16:06:42 < Laurenceb> seems to be at least 270 euros or so 2012-06-12T16:10:03 < Laurenceb> local place quoted £6K for 10 slightly more complex boards 2012-06-12T16:11:14 < dongs> this is why they d idnt make rapeberrypi in uk 2012-06-12T16:26:17 -!- dongs [1000@l212168.ppp.asahi-net.or.jp] has quit [Ping timeout: 246 seconds] 2012-06-12T16:27:07 -!- GuShH_ [~GuShH@unaffiliated/gushh] has joined ##stm32 2012-06-12T16:27:08 -!- Huj-S-Gory [~Dave@shamrock.jd.gurutek.biz] has joined ##stm32 2012-06-12T16:27:09 -!- dongs [1000@l212168.ppp.asahi-net.or.jp] has joined ##stm32 2012-06-12T16:27:19 < dongs> fucking feenode 2012-06-12T16:27:21 < Huj-S-Gory> HELLO FRIENDS! 2012-06-12T16:29:07 -!- marienz [marienz@freenode/staff/marienz] has joined ##stm32 2012-06-12T16:30:06 < Huj-S-Gory> marienz, quit stalking me you little bastard 2012-06-12T16:30:18 < Laurenceb> http://groups.google.com/group/ukhas/browse_thread/thread/c5b0f06e1d52eeef 2012-06-12T16:30:22 < Laurenceb> pmsl 2012-06-12T16:30:32 < Huj-S-Gory> !ops marienz cyberstalker 2012-06-12T16:30:49 < dongs> david akerman = dankers? 2012-06-12T16:31:13 < Laurenceb> "Can you explain what the methane would be for? Intrigued " 2012-06-12T16:31:19 < GuShH_> dongs: is he kawaii? 2012-06-12T16:31:30 < dongs> who the fuck are these retards 2012-06-12T16:31:45 < Huj-S-Gory> dongs, staffers 2012-06-12T16:31:50 < Laurenceb> the future Anu-5 launch for some reason, so I guess I will carry on launching. I wonder about methane maybe for Anu-5. 2012-06-12T16:31:56 < dongs> i was thinking more like 'stoners' 2012-06-12T16:32:11 < dongs> or maybe 'pumpers' 2012-06-12T16:32:20 < Laurenceb> why are staff in here? 2012-06-12T16:32:43 < Laurenceb> come to take my virginity away? 2012-06-12T16:32:44 < Huj-S-Gory> Laurenceb, to hijack the channel 2012-06-12T16:32:44 < GuShH_> dongs: what's your favorite anime? 2012-06-12T16:32:47 < BrainDamage> Laurenceb: as long as there's a blowout valve that ensures the balloon never returns to land inflated 2012-06-12T16:33:14 < dongs> GuShH_: the one where you get raped 2012-06-12T16:33:26 < Laurenceb> erm.. its called ANU5 2012-06-12T16:33:27 < BrainDamage> or even cutdown 2012-06-12T16:33:31 < Huj-S-Gory> !ops test 2012-06-12T16:33:31 < Laurenceb> geddit?? 2012-06-12T16:33:39 < GuShH_> dongs: have you been raped? 2012-06-12T16:33:41 < Huj-S-Gory> did it work? 2012-06-12T16:33:44 < Laurenceb> yes 2012-06-12T16:33:55 < Laurenceb> dongs has been raped 2012-06-12T16:35:29 < Huj-S-Gory> !ops marienz stalkerstaff 2012-06-12T16:36:50 < Laurenceb> http://www.youtube.com/watch?v=ekr_msIte_o 2012-06-12T16:39:29 < Laurenceb> ^that you dongs? 2012-06-12T16:40:14 < Huj-S-Gory> !ops Laurenceb gaylord detected 2012-06-12T16:40:28 < Laurenceb> gaylord fokker 2012-06-12T16:41:02 < dongs> who the hell let these clowns in here 2012-06-12T16:43:44 < Huj-S-Gory> !ops dongs attacking other freenode users 2012-06-12T16:43:51 -!- Huj-S-Gory [~Dave@shamrock.jd.gurutek.biz] has quit [K-Lined] 2012-06-12T16:43:57 < marienz> sorry about that 2012-06-12T16:52:07 -!- Huj-S-Gory [~Dave@client-94-155-49-18.ip.daticum.com] has joined ##stm32 2012-06-12T16:52:38 < dongs> freakin internet infidels 2012-06-12T16:52:52 < Huj-S-Gory> Shalom! 2012-06-12T16:53:21 < dongs> Laurenceb: did you bring this shit in 2012-06-12T16:53:40 < Laurenceb> Salman Rushdie? 2012-06-12T16:53:41 < Laurenceb> no 2012-06-12T16:53:45 < marienz> nah, it was more or less my fault 2012-06-12T16:53:46 < Huj-S-Gory> no it was GuShH_ that invited me here 2012-06-12T16:53:53 < marienz> oh, sigh 2012-06-12T16:53:57 -!- Huj-S-Gory [~Dave@client-94-155-49-18.ip.daticum.com] has quit [K-Lined] 2012-06-12T16:54:58 < marienz> also, is it normal to want to get an stm32f0discovery even though you're not sure what you'd actually do with it, just because it looks neat and you think you'll be able to think of something eventually? 2012-06-12T16:55:28 < BrainDamage> yes, narly every human is attracted to shiny stuff 2012-06-12T16:55:44 -!- GapSpark [~Dave@stuke5.piratenpartei-bayern.de] has joined ##stm32 2012-06-12T16:55:50 < GapSpark> Shalom friends! 2012-06-12T16:56:31 < BrainDamage> marienz: check ST site for docs 2012-06-12T16:56:50 < GapSpark> !ops marienz SHALOM 2012-06-12T16:56:51 < BrainDamage> you might not want to use ST libs tough, their quality isn't exactly awesome 2012-06-12T16:56:58 -!- GapSpark [~Dave@stuke5.piratenpartei-bayern.de] has quit [K-Lined] 2012-06-12T16:57:36 -!- Huj-S-Gory [~Dave@orion.jd.gurutek.biz] has joined ##stm32 2012-06-12T16:57:36 < BrainDamage> since it'd be for hobbist stuff anyway, you could use libopencm3, since the license won't bother you 2012-06-12T16:57:39 < BrainDamage> or even newlib 2012-06-12T16:57:44 < Huj-S-Gory> !ops marienz SHALOM 2012-06-12T16:57:50 -!- Huj-S-Gory [~Dave@orion.jd.gurutek.biz] has quit [K-Lined] 2012-06-12T16:57:57 < marienz> sorry about the noise :( 2012-06-12T16:58:16 < BrainDamage> can't you ip range ban him or something? 2012-06-12T16:58:20 -!- Huj-S-Gory [~Dave@titan.galaxy-anon.net] has joined ##stm32 2012-06-12T16:58:21 < Huj-S-Gory> !ops marienz SHALOM!!!!!!! 2012-06-12T16:58:26 -!- Huj-S-Gory [~Dave@titan.galaxy-anon.net] has quit [K-Lined] 2012-06-12T16:58:43 -!- Huj-S-Gory [~Dave@anonymization-service.ya-trade.com] has joined ##stm32 2012-06-12T16:58:44 < Huj-S-Gory> !ops marienz SHALOM!!!!!!! 2012-06-12T16:58:47 < dongs> looks ilke he's using tor nodes or something. 2012-06-12T16:58:50 -!- Huj-S-Gory [~Dave@anonymization-service.ya-trade.com] has quit [K-Lined] 2012-06-12T16:59:00 < dongs> marienz: who the fuck are these people 2012-06-12T16:59:12 < marienz> tor is blocked automatically. These are more likely to be open proxies (which we try to detect, but they're harder to catch reliably) 2012-06-12T16:59:14 < dongs> MO looks like pumpers 2012-06-12T16:59:25 < BrainDamage> he was asking about microcontrollers 2012-06-12T16:59:30 < BrainDamage> and flyback suggested stm32 2012-06-12T16:59:36 < marienz> dongs: he was being a bit of an idiot over on ##electronics, and apparently I've inadvertently pissed him off 2012-06-12T16:59:36 < BrainDamage> that troll was around 2012-06-12T16:59:48 -!- Huj-S-Gory [~Dave@64.118.81.158] has joined ##stm32 2012-06-12T16:59:49 < Huj-S-Gory> !ops marienz SHALOM!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2012-06-12T16:59:53 < Huj-S-Gory> !ops marienz SHALOM!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2012-06-12T16:59:53 -!- Huj-S-Gory [~Dave@64.118.81.158] has quit [K-Lined] 2012-06-12T17:00:13 < marienz> now I'll get to play whack-a-mole for a while, and your nice and peaceful channel's all disrupted, bleh 2012-06-12T17:00:53 < BrainDamage> I wouldn't say nice & peaceful :p 2012-06-12T17:04:07 < dongs> well hackkitten isn't here, so it's pretty good 2012-06-12T17:04:27 -!- FiveBy9 [~Steve@ks363872.kimsufi.com] has joined ##stm32 2012-06-12T17:04:28 < GuShH_> oh god. 2012-06-12T17:04:49 < GuShH_> marienz: For the record I didn't invite anyone to anywhere >_< 2012-06-12T17:04:58 * GuShH_ is troubleshooting an lcd monitor 2012-06-12T17:05:22 < BrainDamage> marienz: if you're in the continental north america, you can get a free f0 discovery board 2012-06-12T17:05:26 < BrainDamage> by all means, go for it 2012-06-12T17:05:28 < marienz> right, not your fault (I should've banned him so he wouldn't have picked up on any channel mentioned after the quiet) 2012-06-12T17:05:43 < Laurenceb> http://groups.google.com/group/ukhas/browse_thread/thread/c5b0f06e1d52eeef 2012-06-12T17:05:51 < marienz> BrainDamage: I'm in western europe, but it looks like I can postorder one for about 10 euros 2012-06-12T17:05:55 < Laurenceb> ^pmsl 2012-06-12T17:06:39 < BrainDamage> if you have to order one, you can get better price / power ratio with a f4 discovery board 2012-06-12T17:07:04 < BrainDamage> for 16€, you get a _really_ powerful chip, and some extras like an accelerometer, etc 2012-06-12T17:07:34 < marienz> actually, the accelerometer would come in handy for the one silly little thing I might use something like this for 2012-06-12T17:08:03 < marienz> which is to tape it to the back of my monitor so my pc knows if it's in portrait or landscape 2012-06-12T17:08:34 < dongs> i think a tarduino will do that job jsut fine 2012-06-12T17:08:44 < dongs> you dont need 168mhz processor tellign you if its facing up or down 2012-06-12T17:09:32 < marienz> absolutely, but it looks like an arduino is actually more expensive than a board like this one 2012-06-12T17:09:37 < BrainDamage> fun thing is that a tarduino costs more than a f4 discovery 2012-06-12T17:09:55 < BrainDamage> not to mention that you'd have to buy an accelerometer too 2012-06-12T17:10:17 < marienz> IIUC the main thing arduino would buy me is ease of use programming, which I don't really need (it'll just take me longer, but I'm not in a hurry and don't mind having to learn on the programming side of things) 2012-06-12T17:10:49 < marienz> if this thing has an accelerometer already on the board that's pretty hard to beat for me 2012-06-12T17:12:27 < karlp> BrainDamage: libopencm3 is lgpl now, so it's not nearly as awkward as before when it was gpl 2012-06-12T17:12:35 < BrainDamage> oh awesome 2012-06-12T17:14:48 < karlp> indeed 2012-06-12T17:14:54 < karlp> so, I started usign it. 2012-06-12T17:15:02 < karlp> and immediately felt more productive than with stdperiph lib 2012-06-12T17:15:16 < dongs> for me, it was the other way around 2012-06-12T17:15:17 < karlp> but part of that was makefiles all nciely done for me .) 2012-06-12T17:15:31 < karlp> dongs: I just hadn't had enough done with stdperiph lib for it to really matter 2012-06-12T17:15:34 < marienz> it's a bit like the f4 discovery being a reasonably-priced accelerometer I can plug into a usb port, with a microcontroller and a ton of additional connectivity thrown in as a bonus 2012-06-12T17:15:49 < karlp> more likely, I'd used stdperiph enough to learn _how_ to use either of them. 2012-06-12T17:16:07 < dongs> i tried libopencm3 and they renamed every ISR, added some useless makefile shit, I had to use THEIR linker scripts, they renamed every register from what it was called in stdperiphlib, AND half the stuff I needed to use wasn't implemented. 2012-06-12T17:16:58 < dongs> also the project dir now had like 100 directories for different s hit 2012-06-12T17:17:05 < dongs> stdperiph/cmsis is in 2 dirs 2012-06-12T17:20:54 -!- tuxfool [~anonymous@195-23-237-248.net.novis.pt] has quit [Quit: tuxfool] 2012-06-12T17:23:25 < karlp> renaming the ISRs I agree was a bad idea, I+m not sure why they thought that was a good idea. 2012-06-12T17:23:42 < karlp> the linker script is unfortunately always tied to the startup code though. 2012-06-12T17:24:10 < dongs> ive used their warez with my own linker/startup 2012-06-12T17:24:20 < dongs> but I had to hack shit up for renamed ISRs 2012-06-12T17:24:22 < dongs> annoying 2012-06-12T17:36:38 < Laurenceb> lolz 2012-06-12T17:36:52 < Laurenceb> my friend just almost got fired for putting his job up on linkedin 2012-06-12T17:38:18 < Laurenceb> cuz he works on nukiller weaponds 2012-06-12T17:38:40 < Laurenceb> what a tard 2012-06-12T17:41:26 < FiveBy9> !ops marienz SHALOM!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2012-06-12T17:41:33 < Laurenceb> wtf 2012-06-12T17:41:43 < Laurenceb> whats happening in here 2012-06-12T17:41:52 < FiveBy9> !ops marienz SHALOM!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2012-06-12T17:41:54 -!- FiveBy9 [~Steve@ks363872.kimsufi.com] has quit [K-Lined] 2012-06-12T17:43:12 < Thorn> you have interesting friends 2012-06-12T17:44:04 < dongs> BJ64 Jun 12, 2012 08:46 AM10 / Highly Offensive Content (Immediate suspension)Please do not post violent images of bestiality. 2012-06-12T17:44:08 < dongs> gotta love rcgroups 2012-06-12T17:44:38 < dongs> also isnt it beastiality :( gotta check with Laurenceb for spellin 2012-06-12T17:45:48 -!- tavish [~tavish@120.59.8.140] has joined ##stm32 2012-06-12T17:45:49 -!- tavish [~tavish@120.59.8.140] has quit [Changing host] 2012-06-12T17:45:49 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-12T17:48:09 < Laurenceb> lol 2012-06-12T17:48:33 < Laurenceb> linkedin is funny 2012-06-12T17:48:55 < dongs> if by funny you mean retarded, I fully agree 2012-06-12T17:49:21 < Laurenceb> it thinks my aunt is a C# developer, which is pretty funny 2012-06-12T17:49:31 < Laurenceb> http://uk.linkedin.com/in/alexapacellirobinson 2012-06-12T17:49:50 < Laurenceb> she gonna get trolled now 2012-06-12T17:50:34 < dongs> by nerds 2012-06-12T17:52:23 < Laurenceb> seems it takes 7months on average for her to get fired 2012-06-12T17:52:33 < dongs> haha 2012-06-12T17:52:51 < Laurenceb> for spending all day lurking on irc... oh wait 2012-06-12T17:54:44 -!- FiveBy9 [~Steve@91.121.182.141] has joined ##stm32 2012-06-12T17:59:28 -!- tuxfool [~anonymous@195-23-237-248.net.novis.pt] has joined ##stm32 2012-06-12T18:11:02 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-12T18:14:58 <+dekar> BrainDamage, or even newlib? the newlib license is uber permissive 2012-06-12T18:15:35 < BrainDamage> yeah, I didn't phrase that correctly 2012-06-12T18:15:47 < BrainDamage> I shouldn't have used even 2012-06-12T18:16:29 <+dekar> also LGPL is still weird, you have to provide your compiled object files to the customer and give them a way to flash modified firmwares 2012-06-12T18:17:05 <+dekar> BSD style licenses (like newlib) are usually no problems for corporations, anything GPL is probably restricted 2012-06-12T18:17:07 < jpa-> yeah, LGPL for embedded is a bit annyoing 2012-06-12T18:17:26 <+dekar> GPL does a ton of stuff like giving permission to use your companies IP for free 2012-06-12T18:17:59 <+dekar> we only use LGPL for internal tools at our company 2012-06-12T18:18:13 < jpa-> do you have a reference on that? 2012-06-12T18:18:26 < jpa-> i.e. how widely does it apply anyway 2012-06-12T18:18:39 <+dekar> jpa-, on what? GPL licensing your IP as well? 2012-06-12T18:18:58 < Laurenceb> gpl is funny 2012-06-12T18:19:10 <+dekar> "Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free." 2012-06-12T18:19:14 < Laurenceb> "we support free software.... here are a ton of conditions" 2012-06-12T18:19:15 <+dekar> http://www.gnu.org/copyleft/gpl.html 2012-06-12T18:20:03 <+dekar> so whenever you license something under the GPL to a customer you also license your patents used by that software to them 2012-06-12T18:20:13 < BrainDamage> https://en.wikipedia.org/wiki/WTFPL 2012-06-12T18:20:15 < jpa-> ah, of course 2012-06-12T18:20:25 <+dekar> I started using CC0 actually 2012-06-12T18:20:40 <+dekar> for my private projects at least 2012-06-12T18:20:58 < jpa-> we don't even really have software patents around here, fortunately 2012-06-12T18:21:02 <+dekar> it makes sure that wherever you live, you license it the most permissive way possible 2012-06-12T18:21:26 <+dekar> jpa-, I still think it is wrong to be forced to license your patents for free 2012-06-12T18:21:37 <+dekar> I mean companies pay for patents 2012-06-12T18:21:42 < jpa-> not really, for GPL anyway 2012-06-12T18:21:57 <+dekar> overall I am pro patents, I think they make sure companies disclose all their inventions 2012-06-12T18:21:58 < jpa-> otherwise you could just patent it and cheat around GPL 2012-06-12T18:22:22 <+dekar> and after the patent protection end, all their proprietary technology is documented (patent paper) and freely available 2012-06-12T18:22:32 <+dekar> I have read patents to implement stuff several times 2012-06-12T18:22:52 <+dekar> jpa-, I don't consider that cheating, but w/e 2012-06-12T18:22:59 <+dekar> I guess I just don't agree with the GPL 2012-06-12T18:23:21 <+dekar> I think licensing some software under an open source license while parts of it implement patents is perfectly fine 2012-06-12T18:23:31 <+dekar> people can wait 18 years till the patent protection end 2012-06-12T18:23:35 <+dekar> or pay and use it right now 2012-06-12T18:24:00 <+dekar> we all use FFMPEG etc, that is covered under a ton of patents 2012-06-12T18:24:27 < jpa-> yeah, but just don't use GPL for those and be happy 2012-06-12T18:24:45 < karlp> dekar: no, you have to provide your objects and a way for them to recompile, _on demand_ 2012-06-12T18:24:46 <+dekar> the FFMPEG authors can't give us licenses for the patents they used to implement the codecs anyway 2012-06-12T18:25:04 <+dekar> karlp, not recompile, rather link 2012-06-12T18:25:07 < jpa-> dekar: but they promise *they* don't sue 2012-06-12T18:25:07 <+dekar> but yeah 2012-06-12T18:25:21 < karlp> also, patent handover is gplv3 only 2012-06-12T18:25:25 <+dekar> jpa-, who doesn't sue? 2012-06-12T18:25:31 < jpa-> ffmpeg authors 2012-06-12T18:25:39 < jpa-> they can't do anything about other people, obviously 2012-06-12T18:25:46 <+dekar> jpa-, they don't OWN the patents anyway 2012-06-12T18:25:50 <+dekar> so how would they sue? 2012-06-12T18:27:04 < jpa-> dekar: it applies to the patents *if* they owned any 2012-06-12T18:27:32 < jpa-> it's really just a way to stop people circumventing GPL 2012-06-12T18:28:17 < jpa-> if you don't like GPL, you won't like things that make GPL more secure 2012-06-12T18:28:17 <+dekar> jpa-, it's a way to prevent companies from using the GPL, they can "circumvent" the GPL by using a BSD license 2012-06-12T18:28:46 <+dekar> yeah I feel like the GPL is limiting my personal freedom 2012-06-12T18:29:03 < jpa-> eh, i mean "circumvent GPL" as in "take GPL software developed by someone else, add propietary part to achieve vendor lock-in, sell for profit" 2012-06-12T18:29:14 <+dekar> when I release a modified android kernel, then I have to also post the source for it. if I lose the source, then I can get sued over it 2012-06-12T18:29:35 <+dekar> so I rather not, I feel like the GPL is potentially dangerous to me 2012-06-12T18:30:05 < jpa-> i guess you live in the USA where ridiculous lawsuits cost millions? 2012-06-12T18:30:33 <+dekar> that stuff could backfire years later, like someone downloads my modified kernel now and sues me in 50 years when I don't have the source anymore 2012-06-12T18:30:34 < jpa-> i haven't heard anyone getting in trouble for actually losing the source code, it's quite a remote chance 2012-06-12T18:30:45 <+dekar> nope I live in germany where lawsuits are reasonable 2012-06-12T18:30:51 < jpa-> dekar: you only need to provide source for 3 years after distributing 2012-06-12T18:31:03 <+dekar> jpa-, only for 3 years? are you sure? 2012-06-12T18:31:18 <+dekar> I guess I missed that when reading the GPL 2012-06-12T18:31:37 < jpa-> valid for at least three years and valid for as long as you offer spare parts or customer support for that product model 2012-06-12T18:31:47 <+dekar> jpa-, yeah in any case they could probably only charge me for the work needed to hack those 3 lines I changes themselves 2012-06-12T18:32:07 <+dekar> *I changed 2012-06-12T18:32:36 <+dekar> so that would probably be like 100€ and not significant 2012-06-12T18:32:48 < jpa-> also "force majeure" could apply if you actually lose the source code accidentally 2012-06-12T18:32:59 <+dekar> I guess so 2012-06-12T18:33:18 <+dekar> also they could argue I was careless 2012-06-12T18:33:23 <+dekar> didn't do backups 2012-06-12T18:33:26 < jpa-> true 2012-06-12T18:33:39 <+dekar> well I just feel my freedom is limited 2012-06-12T18:33:44 <+dekar> don't like it, and thus avoid it 2012-06-12T18:33:53 <+dekar> I have one GPL project on github 2012-06-12T18:34:06 <+dekar> but I will probably strip the GPL stuff and make it a small CC0 project 2012-06-12T18:34:12 <+dekar> probably a single gnu radio plugin 2012-06-12T18:35:38 < jpa-> i guess time will show how much GPL / non-GPL matters for the eventual success of open source projects.. both have advantages and drawbacks 2012-06-12T18:37:06 <+dekar> jpa-, I have a router that allows me to officially open a root telnet shell via a simple code I can enter to my phone (it does SIP as well) 2012-06-12T18:37:17 <+dekar> they didn't do that cause they were forced 2012-06-12T18:38:09 <+dekar> I don't think I need GPL to enforce my access to device, I believe in a free market and I can pick open devices if I want to 2012-06-12T18:38:16 <+dekar> *devices 2012-06-12T18:40:49 < pelrun> put the source and the binary in one zip, done. 2012-06-12T18:40:58 < pelrun> then you lose all or none of it 2012-06-12T18:41:08 <+dekar> jpa-, I actually wonder… the secure boot stuff is coming up and distributions like fedora (probably ubuntu as well) plan to have their bootloader signed by microsoft, doesn't that void the GPL if they don't give me as their user a way to boot my own kernel etc? 2012-06-12T18:41:09 < jpa-> it doesn't matter if you lose the binary 2012-06-12T18:41:24 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-12T18:41:40 <+dekar> pelrun, people may still have the binary only, and then you have to give them the source 2012-06-12T18:41:50 < jpa-> dekar: there have been discussions - who cares, there is a bios option you can enable 2012-06-12T18:42:14 < pelrun> if you're not actively distributing the binary, then you're off the hook 2012-06-12T18:42:16 <+dekar> jpa-, there _may be_ a bios option 2012-06-12T18:42:25 <+dekar> that's up to the vendors, not mandatory 2012-06-12T18:42:34 < jpa-> not really clear yet 2012-06-12T18:42:40 < jpa-> crappy system anyway if there is not 2012-06-12T18:43:15 <+dekar> microsoft made clear that the option to disable is is allowed on x86, whereas on ARM secure boot is mandatory and mustn't be disabled 2012-06-12T18:43:57 < pelrun> yeah well they're dicks anyway 2012-06-12T18:44:06 < pelrun> and they're hardly going to get a monopoly on arm devices 2012-06-12T18:44:10 <+dekar> I am pretty sure some vendors won't disable it, I mean why risk having the customer brick the mainboard? 2012-06-12T18:44:33 < pelrun> and it'll get cracked at some point 2012-06-12T18:44:35 <+dekar> same for android, many devices are locked due to warranty reasons 2012-06-12T18:44:58 <+dekar> pelrun, might be cracked, will get updated 2012-06-12T18:45:05 <+dekar> it can only be cracked so often 2012-06-12T18:45:35 < pelrun> many devices are locked because the vendors want control 2012-06-12T18:45:42 < pelrun> not really for warranty 2012-06-12T18:46:09 < pelrun> certainly, if recovering from a bad upload was simple, then warranty wouldn't be an issue anyway 2012-06-12T18:46:33 <+dekar> pelrun, so many people bricked their android devices 2012-06-12T18:46:36 < pelrun> but they just want you to preferentially buy a new phone than extend the life of an old one 2012-06-12T18:46:58 < pelrun> yeah, because they don't bother making them brickproof 2012-06-12T18:47:04 < pelrun> which is pretty bloody easy to do 2012-06-12T18:47:04 <+dekar> ofc they want, I would want that if I were them 2012-06-12T18:47:15 <+dekar> selling more means earning more money 2012-06-12T18:47:44 < pelrun> in fact, being unbrickable is *trivial*, so it's almost fraudulent that they make them so fragile 2012-06-12T18:48:19 <+dekar> pelrun, I disagree on the fraudulent 2012-06-12T18:48:36 <+dekar> bios updates were known to possibly brick PC hardware as well 2012-06-12T18:48:48 < pelrun> and then they fixed that 2012-06-12T18:48:49 <+dekar> vendors just don't feel like investing much time on that 2012-06-12T18:49:17 < pelrun> I don't think you can readily get a mainboard that doesn't have a read-only failsafe bios of some sort 2012-06-12T18:49:18 <+dekar> pelrun, they fixed that? only for some over clocker main boards with like dual bios and stuff 2012-06-12T18:49:24 < pelrun> nah, bollocks 2012-06-12T18:49:53 <+dekar> idk, haven't updated a bios in quite a while 2012-06-12T18:49:59 <+dekar> bit I have seen them brick 2012-06-12T18:50:11 < pelrun> when you reflash they only update the second half of the flash rom 2012-06-12T18:50:14 <+dekar> around 2005 was probably the last time I've seen it go wrong 2012-06-12T18:50:41 <+dekar> more memory costs more money 2012-06-12T18:50:56 < pelrun> it's trivially cheap now 2012-06-12T18:51:12 <+dekar> pelrun, why do you think there are so many different stm32f1? 2012-06-12T18:51:27 < pelrun> that's different 2012-06-12T18:51:32 <+dekar> once you mass produce that stuff matters 2012-06-12T18:51:45 < pelrun> and even there, there's a RO bootloader in every stm32 that can't be overwritten 2012-06-12T18:52:04 <+dekar> yeah and you can external reflash like every bios chip 2012-06-12T18:52:18 < pelrun> but it's been a long time since even the smallest bios flash chips are multiples of the maximum bios binary size 2012-06-12T18:52:19 <+dekar> and use JTAG to recover your phones after your bricked them 2012-06-12T18:52:28 < pelrun> why would you need jtag? 2012-06-12T18:52:46 <+dekar> cause you fucked up and it crashed after deleting the whole flash 2012-06-12T18:53:03 < pelrun> you have either a separate mask rom with a first stage bootloader in it 2012-06-12T18:53:08 <+dekar> I agree that they could make it secure, but they didn't 2012-06-12T18:53:23 <+dekar> people are free to buy different phones 2012-06-12T18:53:49 < pelrun> the thing is, such a bootloader is so small that it doesn't cost you anything to install it 2012-06-12T18:53:52 <+dekar> I'd go for the nexus line, they have unlocked bootloaders without bricking risk 2012-06-12T18:54:11 < pelrun> and it reduces the cost of repairing/replacing bricked devices 2012-06-12T18:54:21 <+dekar> I don't believe in forcing vendors, I think the free market can self-regulate 2012-06-12T18:54:28 < pelrun> yeah, like with cars? 2012-06-12T18:54:39 < BrainDamage> it's not a free market 2012-06-12T18:54:42 < pelrun> there's a reason the government puts safety regs in place 2012-06-12T18:55:07 < pelrun> because if it was truly free, companies would happily kill you if it made them a few more cents 2012-06-12T18:55:20 < pelrun> as it is there are plenty of ways they do that already 2012-06-12T18:55:35 <+dekar> well whatever, I live in germany and americans tell me it's communism over here all the time 2012-06-12T18:56:02 < pelrun> and in germany, you've got incredibly strict safety standards already 2012-06-12T18:56:07 < pelrun> not to mention the CE stuff 2012-06-12T18:56:07 < BrainDamage> it's not even comunism, most of the UE is more like socialist 2012-06-12T18:56:08 <+dekar> I know 2012-06-12T18:56:35 < pelrun> and it's why german engineering is so good 2012-06-12T18:56:38 <+dekar> yeah we CE tested our stm32 product :) 2012-06-12T18:57:15 < pelrun> whereas america has put banking as their highest-priority business action 2012-06-12T18:57:16 <+dekar> I guess saving peoples lives should be important and regulations make sense for that 2012-06-12T18:57:17 < pelrun> morons 2012-06-12T18:57:24 <+dekar> make sure your water bottles don't poison you etc 2012-06-12T18:57:38 <+dekar> but I feel like phone bootloaders shouldn't be regulated 2012-06-12T18:57:54 < pelrun> regulations are the only way to get corporations to behave as ethical actors 2012-06-12T18:58:06 < Laurenceb> not really 2012-06-12T18:58:13 <+dekar> the EU did regulate charging connectors, phones made here _must_ have micro-usb now. that's wrong imo 2012-06-12T18:58:15 < Laurenceb> if people dont buy their products 2012-06-12T18:58:21 < pelrun> dekar: SERIOUSLY? 2012-06-12T18:58:23 < Laurenceb> i didnt know that 2012-06-12T18:58:25 < pelrun> that's like the best thing ever 2012-06-12T18:58:32 < pelrun> I can't believe you think that sucks 2012-06-12T18:58:39 < blkcat> how is that wrong? 2012-06-12T18:58:45 < blkcat> interoperability is awesome. 2012-06-12T18:59:01 < pelrun> the whole "every phone a new connector just to force you to re-buy every accessory" is an awful state of affairs 2012-06-12T18:59:17 -!- dekar [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep] 2012-06-12T18:59:27 * pelrun raises eyebrow 2012-06-12T18:59:47 < BrainDamage> it's 6, if he was at work, he could've left 2012-06-12T19:00:44 < BrainDamage> btw, I prefer with unlocking option too, I hate when my freedoms are restricted 2012-06-12T19:00:55 < pelrun> ok, you miss my meaning 2012-06-12T19:01:02 < pelrun> it's not about locking down the firmware 2012-06-12T19:01:28 < Laurenceb> unlocking option is good 2012-06-12T19:01:40 < Laurenceb> but forcing it toi be sold with that would be stupid 2012-06-12T19:01:42 < pelrun> it's about making a first-stage bootloader that's unbreakable, that *facilitates* restoring the entire firmware 2012-06-12T19:01:51 < pelrun> no bogus 'security' or anything 2012-06-12T19:01:57 < Laurenceb> same for usb 2012-06-12T19:02:13 < BrainDamage> why the usb connector is stupid? 2012-06-12T19:02:17 < pelrun> then you're free to do whatever you want, and it's easy to repair 2012-06-12T19:02:25 < Laurenceb> what if i want a waterproof phone 2012-06-12T19:02:29 < BrainDamage> btw, the regulation requires it to be micro-usb compatible 2012-06-12T19:02:34 < BrainDamage> not micro usb micro usb 2012-06-12T19:02:50 < BrainDamage> I have a phone with a connector which is not micro usb. yet a micro usb can be plugged in 2012-06-12T19:02:53 < pelrun> companies would rather you don't have that freedom, and make the thing fragile so that it can easily brick if you try to exercise those freedoms 2012-06-12T19:02:57 < Laurenceb> i should be free to buy whatever connector i want 2012-06-12T19:03:01 < pelrun> that's the sort of thing that should be regulated away 2012-06-12T19:03:13 < Laurenceb> some companies 2012-06-12T19:03:17 < Laurenceb> like apple would 2012-06-12T19:03:24 < Laurenceb> thats why i dont buy apple 2012-06-12T19:03:30 < BrainDamage> you're not free to hook any rf endpoint to the cell network for instance 2012-06-12T19:03:33 < BrainDamage> it has to be approved 2012-06-12T19:03:39 < pelrun> Laurenceb, but as a consumer you shouldn't be forced to buy 15 different chargers and usb cables for every different phone you buy 2012-06-12T19:04:03 < BrainDamage> the charger change afaik was done to amount of chargers in the landfills 2012-06-12T19:04:14 < pelrun> absolutely, the waste is atrocious 2012-06-12T19:04:23 < Laurenceb> i guess it makes sense, but i dont see how it should be compulsory 2012-06-12T19:04:29 < Laurenceb> maybe a tax incentive or similar 2012-06-12T19:04:46 < Laurenceb> based on the environmental damage 2012-06-12T19:04:51 < pelrun> like I said, it's the best way to get corporations to behave ethically 2012-06-12T19:06:16 < pelrun> taxes are good for giving a financial incentive to improve the way companies do business 2012-06-12T19:06:38 < pelrun> but it's not much good in terms of standardisation 2012-06-12T19:06:53 < Laurenceb> standardisation isnt always good 2012-06-12T19:07:07 < pelrun> behaving like a sack of cats isn't either 2012-06-12T19:07:16 < Laurenceb> say i want a specialist phone 2012-06-12T19:07:22 < Laurenceb> micro usb might not be best 2012-06-12T19:07:33 < BrainDamage> you can add any other connector 2012-06-12T19:07:53 < Laurenceb> anyway ive got better things to think about 2012-06-12T19:08:27 < pelrun> a connector choice is one of the most trivial things in the design of a product 2012-06-12T19:08:55 < pelrun> not to mention having everyone use microusb means volumes can go up and production prices then go down 2012-06-12T19:09:12 < pelrun> so it's ridiculous to argue against it in the general case 2012-06-12T19:10:01 < Laurenceb> sure 2012-06-12T19:10:14 < Laurenceb> thats why tax incentives would be ok 2012-06-12T19:10:17 < Laurenceb> as a general case 2012-06-12T19:10:30 < Laurenceb> regulation means you _cant_ do something different 2012-06-12T19:10:41 < Laurenceb> which is stupid and oppressive 2012-06-12T19:15:07 < FiveBy9> !ops marienz SHALOM!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 2012-06-12T19:15:28 < FiveBy9> :-) 2012-06-12T19:15:34 -!- FiveBy9 [~Steve@91.121.182.141] has quit [K-Lined] 2012-06-12T19:17:00 < Laurenceb> wqtf 2012-06-12T19:17:05 < Laurenceb> litteraly, WTF 2012-06-12T19:17:14 < Laurenceb> also i cant spell 2012-06-12T19:17:32 < Laurenceb> i think regulations about ! use are required 2012-06-12T19:22:26 < BrainDamage> I think it's encompassed in the "don't act like a retard" rule on freenode 2012-06-12T19:28:22 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Remote host closed the connection] 2012-06-12T19:30:15 -!- LawrenceSeattle [~lawrence@216.243.49.130] has quit [Quit: LawrenceSeattle] 2012-06-12T19:31:06 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-12T20:00:49 -!- izua [~izua@86.121.85.82] has joined ##stm32 2012-06-12T20:00:49 -!- izua [~izua@86.121.85.82] has quit [Changing host] 2012-06-12T20:00:49 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-12T20:00:52 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-12T20:01:43 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-12T20:04:55 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32 2012-06-12T20:08:41 < karlp> has anyone done anything with 7 databist and parity with the f1 usarts? 2012-06-12T20:09:59 -!- mode/##stm32 [+o izua] by ChanServ 2012-06-12T20:10:04 -!- mode/##stm32 [+b *!*@91.121.182.141] by izua 2012-06-12T20:10:07 -!- mode/##stm32 [-o izua] by izua 2012-06-12T20:10:41 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-12T20:10:42 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-12T20:23:55 <+Steffanx> nu 2012-06-12T20:31:45 -!- izua_ [~izua@86.121.85.82] has joined ##stm32 2012-06-12T20:31:46 -!- izua_ [~izua@86.121.85.82] has quit [Changing host] 2012-06-12T20:31:46 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32 2012-06-12T20:31:46 -!- mode/##stm32 [+v izua_] by ChanServ 2012-06-12T20:34:58 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 256 seconds] 2012-06-12T20:43:38 -!- metaxa [metaxa@members.bombshellz.net] has quit [Quit: leaving] 2012-06-12T20:44:17 -!- metaxa [metaxa@members.bombshellz.net] has joined ##stm32 2012-06-12T20:49:01 -!- tuxfool [~anonymous@195-23-237-248.net.novis.pt] has quit [Quit: tuxfool] 2012-06-12T20:51:48 < karlp> do the received bytes include the damn parity bit? 2012-06-12T20:51:54 < karlp> I guess they must in 7-e-1 2012-06-12T20:52:07 -!- tuxfool [~anonymous@195-23-237-248.net.novis.pt] has joined ##stm32 2012-06-12T20:53:20 < karlp> yep, they do. 2012-06-12T20:53:22 < karlp> how tediosu 2012-06-12T20:53:38 < karlp> I was hoping it would just give me a parity error flag on the transfer, not include the parity bits 2012-06-12T20:55:21 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: Reconnecting] 2012-06-12T20:55:35 -!- tavish [~tavish@120.59.8.140] has joined ##stm32 2012-06-12T20:55:35 -!- tavish [~tavish@120.59.8.140] has quit [Changing host] 2012-06-12T20:55:35 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-12T20:58:37 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-12T21:06:51 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Remote host closed the connection] 2012-06-12T21:07:40 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-12T21:07:43 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-12T21:08:42 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-06-12T21:41:05 -!- Laurenceb__ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has joined ##stm32 2012-06-12T21:43:38 -!- pelrun [~pelrun@14-202-70-213.static.tpgi.com.au] has quit [Ping timeout: 240 seconds] 2012-06-12T21:44:29 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving] 2012-06-12T21:46:19 -!- tuxfool [~anonymous@195-23-237-248.net.novis.pt] has quit [Quit: tuxfool] 2012-06-12T22:19:31 -!- pelrun [~pelrun@60-241-99-33.static.tpgi.com.au] has joined ##stm32 2012-06-12T22:26:15 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-12T22:26:40 -!- Laurenceb__ is now known as Laurenceb_ 2012-06-12T22:38:23 -!- tuxfool [~anonymous@bl13-165-209.dsl.telepac.pt] has joined ##stm32 2012-06-12T22:51:06 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-06-12T22:57:12 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 256 seconds] 2012-06-12T23:00:29 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-12T23:15:20 -!- izua_ [~izua@unaffiliated/izua] has quit [Ping timeout: 256 seconds] 2012-06-12T23:27:47 < Laurenceb_> hahah linkedin is epic 2012-06-12T23:28:03 < Laurenceb_> just looked up the linkedin profile of the genius whos code ive been fixing 2012-06-12T23:30:23 < Laurenceb_> its like the bullshit on linkedin is inversely proportional to the quality of their work 2012-06-12T23:42:37 -!- izua [~izua@79.115.171.95] has joined ##stm32 2012-06-12T23:42:38 -!- izua [~izua@79.115.171.95] has quit [Changing host] 2012-06-12T23:42:38 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-12T23:42:39 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-12T23:43:47 < karlp> so, I don't have a profile, that makes me infinitely talented? 2012-06-12T23:44:23 < Laurenceb_> probably 2012-06-12T23:45:15 < Laurenceb_> "A creative and innovative engineer with a broad experience of electronic and software design for instrumentation applications, with experience" 2012-06-12T23:45:26 < Laurenceb_> hahaha mr 16byte transfers 2012-06-12T23:47:03 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-12T23:52:08 -!- Huitaryan [~Huitaryan@blk-252-42-151.eastlink.ca] has quit [Read error: Connection reset by peer] 2012-06-12T23:57:03 -!- GargantuaSauce [~sauce@blk-252-42-151.eastlink.ca] has joined ##stm32 --- Day changed Wed Jun 13 2012 2012-06-13T00:01:59 < Laurenceb_> bet flyback is on linkedin 2012-06-13T00:08:03 -!- dekar [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has joined ##stm32 2012-06-13T00:08:04 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-13T00:14:25 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-13T00:14:28 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-13T00:17:22 <+dekar> Laurenceb_, did you fix your TNT problem? the memory problem? 2012-06-13T00:19:34 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-06-13T00:20:15 -!- Guest23699 [~CheBuzz@76.164.192.124] has quit [Ping timeout: 260 seconds] 2012-06-13T00:20:42 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2012-06-13T00:27:37 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-06-13T00:28:44 < Laurenceb_> not yet 2012-06-13T00:30:20 < Laurenceb_> yeah it was your linker 2012-06-13T00:30:23 < Laurenceb_> 64K ram 2012-06-13T00:37:34 < Laurenceb_> i think anyway - dont have hardware setup 2012-06-13T00:38:10 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-06-13T01:04:12 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-13T01:11:18 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-13T01:47:46 -!- Laurenceb_ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has quit [Ping timeout: 256 seconds] 2012-06-13T01:47:59 -!- CheBuzz [~CheBuzz@76.164.192.124] has joined ##stm32 2012-06-13T01:48:24 -!- CheBuzz is now known as Guest30161 2012-06-13T01:53:35 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Read error: Connection reset by peer] 2012-06-13T02:24:46 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-06-13T02:57:16 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-06-13T02:59:06 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.] 2012-06-13T03:57:24 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-13T04:12:46 -!- LawrenceSeattle [~lawrence@66.192.187.106] has joined ##stm32 2012-06-13T04:29:03 -!- LawrenceSeattle [~lawrence@66.192.187.106] has quit [Quit: LawrenceSeattle] 2012-06-13T04:56:23 -!- Guest30161 [~CheBuzz@76.164.192.124] has quit [Ping timeout: 265 seconds] 2012-06-13T05:03:05 < blkcat> does this happen often? 2012-06-13T05:18:05 -!- Guest30161 [~CheBuzz@76.164.192.124] has joined ##stm32 2012-06-13T05:18:50 -!- dekar [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep] 2012-06-13T05:27:15 -!- tuxfool [~anonymous@bl13-165-209.dsl.telepac.pt] has quit [Quit: tuxfool] 2012-06-13T05:41:38 -!- zippe [~Adium@173.11.99.161] has quit [Quit: Leaving.] 2012-06-13T05:43:01 -!- [7] [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-13T05:43:08 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-13T06:03:53 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-232-149.clienti.tiscali.it] has quit [Ping timeout: 244 seconds] 2012-06-13T06:04:15 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32 2012-06-13T06:16:10 -!- peabody124 [~peabody12@128.249.96.123] has quit [Remote host closed the connection] 2012-06-13T06:16:29 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-06-13T06:51:27 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-06-13T07:24:11 < dongs> verified publisher: Atmel Norway 2012-06-13T07:24:13 < dongs> attn zyp 2012-06-13T08:15:24 < dongs> u heard wrong 2012-06-13T08:15:45 < zippe> He moved to .jp for the underwear vending machines, not the TV shows 2012-06-13T08:16:27 < GuShH_> dongs loves anime 2012-06-13T08:16:51 < GuShH_> flyback-: anything that is kawaii 2012-06-13T08:19:18 < dongs> if your bento box is not pinku, you dont belong on this channel 2012-06-13T08:21:30 < GuShH_> dongs: my god, aren't you one big weeaboo 2012-06-13T08:29:38 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-06-13T08:33:07 < dongs> GuShH_: do you actually have any stm32 projects 2012-06-13T08:33:09 < dongs> if not get the fuck out . 2012-06-13T08:33:32 < dongs> this is a pumper-free zone 2012-06-13T08:35:19 < GuShH_> dongs: this is more of a sausage full zone with you at the head, or rather giving head. 2012-06-13T08:35:40 < GuShH_> dongs: what's the matter? can't get it up? is it bent sideways? 2012-06-13T08:36:47 -!- pelrun [~pelrun@60-241-99-33.static.tpgi.com.au] has quit [Ping timeout: 265 seconds] 2012-06-13T08:38:10 < dongs> wow, you're so funny and original. 2012-06-13T08:38:19 < dongs> i wish i could be anywhere as cool as you are. 2012-06-13T08:40:57 < GuShH_> dongs: You'd have to be born not-japanese first. 2012-06-13T08:41:11 < GuShH_> dongs: are we done? 2012-06-13T08:41:27 < dongs> yes, you can /part now. 2012-06-13T08:41:38 < GuShH_> I shall not. 2012-06-13T08:41:52 < GuShH_> Since you have no say. 2012-06-13T08:53:30 -!- GuShH_ is now known as GuShH 2012-06-13T09:11:29 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has joined ##stm32 2012-06-13T09:19:43 < R2COM> and? 2012-06-13T09:32:10 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-06-13T09:34:52 < zyp> GuShH, stop being an ass 2012-06-13T09:36:03 < dongs> zyp, impossible state for pumpers. the more you ask the more ridiculous they become 2012-06-13T09:36:07 < dongs> so just /ignore 2012-06-13T09:38:51 < zyp> that's not a proper solution, if he continues being an ass, he will be thrown out. 2012-06-13T09:54:50 -!- tuxfool [~anonymous@195-23-237-248.net.novis.pt] has joined ##stm32 2012-06-13T09:55:49 < zyp> sounds like an enormous investment 2012-06-13T09:58:09 < zyp> man, how will you afford food if your project fails? 2012-06-13T10:01:13 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-13T10:29:23 < iR0b0t1> flyback-: What's your project idea 2012-06-13T10:29:25 < iR0b0t1> wait damnit 2012-06-13T10:31:20 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has quit [Quit: Quit] 2012-06-13T10:34:56 < iR0b0t1> hmm 2012-06-13T10:49:13 < iR0b0t1> Hey, sounds like me. 2012-06-13T10:49:21 < iR0b0t1> Yeah, this is a good project :) 2012-06-13T10:49:24 < iR0b0t1> I wish you luck. 2012-06-13T10:49:33 < iR0b0t1> And I'll be waiting for you to finish... 2012-06-13T10:55:55 < zippe> flyback-: Most of the interesting MCUs have embedded bootloaders; no need for a programmer 2012-06-13T10:56:17 < zippe> And the LPC111x have been out for ages 2012-06-13T10:56:37 < dongs> indeed 2012-06-13T10:56:45 < dongs> flyback is just coming up wiht excuses 2012-06-13T10:57:20 < zippe> heh 2012-06-13T10:57:43 < dongs> im making a breakout for SiLabs M3 chip to play with. 2012-06-13T10:58:12 < dongs> 6 5V/300mA drive pins 2012-06-13T10:59:44 -!- GuShH [~GuShH@unaffiliated/gushh] has quit [Ping timeout: 245 seconds] 2012-06-13T11:02:32 < iR0b0t1> People using Silabs chips? 2012-06-13T11:02:34 < iR0b0t1> No wai. 2012-06-13T11:02:42 < dongs> dunno, looked interesting 2012-06-13T11:02:55 < dongs> comparators, high drive io, all 5v tolerant, crossbar/remappable peripherals etc. 2012-06-13T11:03:08 < iR0b0t1> zippe: They have embedded bootloaders? By programming I don't think flyback means HV programming. 2012-06-13T11:03:19 < dongs> pretty much anything these days has at least uart bootoader 2012-06-13T11:03:24 < dongs> most/a lot have usb/dfu 2012-06-13T11:03:48 < iR0b0t1> Hmm. I don't think out-of-the-box they do 2012-06-13T11:03:54 < dongs> .. yes they do 2012-06-13T11:03:59 < dongs> i flash blank STM32's via uart daily 2012-06-13T11:04:07 < dongs> nothign special needed 2012-06-13T11:06:02 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has joined ##stm32 2012-06-13T11:06:02 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has quit [Changing host] 2012-06-13T11:06:02 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32 2012-06-13T11:07:07 < iR0b0t1> dongs: Do you know anything about the silabs 8051 chips? 2012-06-13T11:07:42 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-13T11:07:43 < iR0b0t1> also which silabs M3? 2012-06-13T11:08:07 * iR0b0t1 has two SIM3U167 2012-06-13T11:20:03 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.] 2012-06-13T11:21:12 -!- tuxfool [~anonymous@195-23-237-248.net.novis.pt] has quit [Quit: tuxfool] 2012-06-13T11:44:38 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 240 seconds] 2012-06-13T12:00:27 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-13T12:01:16 < dongs> iR0b0t1: yea one of those 2012-06-13T12:01:18 < dongs> 80pin shit 2012-06-13T12:01:57 < iR0b0t1> Wait shit it has 300mA drive pins?.... :| 2012-06-13T12:09:26 <+izua> if you put 10 pins in parallel, can you get 3 amps? 2012-06-13T12:10:57 < karlp> he said 6 x 5v/300ma 2012-06-13T12:11:33 <+izua> 2 amps, then? 2012-06-13T12:12:49 < iR0b0t1> It would not be safe. 2012-06-13T12:13:15 < iR0b0t1> Hooking MOSFETs/LGBTs/whatever in parallel to drive more than their rated current is a bad idea. 2012-06-13T12:19:46 <+izua> igbts 2012-06-13T12:21:10 < iR0b0t1> Yeah, I think I was thinking about GLBT for some reason 2012-06-13T12:32:16 -!- dekar [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has joined ##stm32 2012-06-13T12:32:20 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-13T12:33:09 < pelrun> except I've seen that done routinely... :) 2012-06-13T12:33:49 < pelrun> of course as discrete fets, not the multiple pin-drive fets of a micro... 2012-06-13T12:33:57 < dongs> iR0b0t1: it has 6 of those pins to use as fet drivers 2012-06-13T12:34:03 < dongs> separate vcc to them 2012-06-13T12:35:28 < iR0b0t1> pelrun: If you see it done it is usually to reduce heat dissipation, not to increase current capacity. 2012-06-13T12:36:01 < iR0b0t1> (as in, each the bank of FETs never encounters more than the max current for a single FET) 2012-06-13T12:36:35 < pelrun> thermal runaway? 2012-06-13T12:38:19 < iR0b0t1> Not exactly. The FETs never turn on at the same time, so at least one FET will carry the full load for a few ns or so. 2012-06-13T12:38:27 < pelrun> ah, right 2012-06-13T12:39:32 * iR0b0t1 is reading the SiM3U1xx reference 2012-06-13T12:39:34 < iR0b0t1> dafuq 2012-06-13T12:53:32 < dongs> sup 2012-06-13T12:55:05 <+izua> LGBTs and mcu with 2A fet driving pins 2012-06-13T12:56:02 < dongs> lol lgbt 2012-06-13T12:56:50 <+izua> lesbulated game bisexual trans-sistor 2012-06-13T12:57:13 < pelrun> probably need a gender changer in there 2012-06-13T13:00:24 <+izua> yeah well 2012-06-13T13:00:28 <+izua> my productivity skyrockets 2012-06-13T13:01:21 <+izua> i'm working on a pulser/DNC for a cnc machine 2012-06-13T13:01:51 < dongs> dnc? 2012-06-13T13:02:01 <+izua> after i got the timers working, i hooked em up to a usart, so i can change the frequency and so on - but having no debugger, i attached some piezo speakers 2012-06-13T13:02:07 <+izua> and instant eargasm ensued 2012-06-13T13:02:39 <+izua> instead of actually pursuing useful work, i'm considering writing a small vst wrapper to control it from frutiy loops or similar 2012-06-13T13:03:21 <+izua> direct numerical control. the thing that generates pulses that coresspond to a trajectory, more or less 2012-06-13T13:05:17 <+izua> hmm. 2012-06-13T13:06:01 * izua is googling for the mario theme 2012-06-13T13:09:48 -!- dekar [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep] 2012-06-13T13:10:37 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 256 seconds] 2012-06-13T13:12:22 -!- xbledi [~xbledi@212.189.140.10] has joined ##stm32 2012-06-13T13:13:34 < xbledi> hi 2012-06-13T13:13:39 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-13T13:14:17 < xbledi> have anyone used the stm32w mb954 rev.A board? 2012-06-13T13:14:56 < dongs> wai so specific 2012-06-13T13:15:19 < xbledi> this board have an external antenna connector 2012-06-13T13:15:58 < xbledi> i have connected a directional antenna on it but it seams that both antenna are working 2012-06-13T13:17:03 < xbledi> how do i deactivate the omnidirectionale antenna on the board? 2012-06-13T13:17:22 < dongs> did you try looking at the manual for schematic/layout? 2012-06-13T13:18:37 < xbledi> yes but nothing... 2012-06-13T13:18:59 < xbledi> neither i datasheet or usermanual 2012-06-13T13:52:22 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-232-149.clienti.tiscali.it] has joined ##stm32 2012-06-13T13:58:10 < karlp> whoever said they were using lua here recently, were you using elua? or your own bundling of lua? 2012-06-13T14:09:16 -!- izua [~izua@79.115.171.95] has joined ##stm32 2012-06-13T14:09:16 -!- izua [~izua@79.115.171.95] has quit [Changing host] 2012-06-13T14:09:16 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-13T14:09:17 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-13T14:09:48 -!- xbledi [~xbledi@212.189.140.10] has quit [Remote host closed the connection] 2012-06-13T14:31:39 < Laurenceb> what the fuuuuuuu 2012-06-13T14:32:00 < Laurenceb> pcbtrain just emailed me to say they accidentally wiped a hard drive and lost half my gerbers 2012-06-13T14:32:17 < Laurenceb> which is why my pcbs are a month late 2012-06-13T14:32:37 < Laurenceb> more like pcbfail 2012-06-13T14:53:43 < pelrun> good jorb 2012-06-13T14:54:15 < dongs> more like mantrain 2012-06-13T14:54:30 < dongs> http://www.timingtm.com/uploads/DF3C5778-9810-4A95-8B84-B6C2C566D6C7.jpg lol 2012-06-13T14:55:21 < BrainDamage> 1-layer board, rite? 2012-06-13T14:56:36 < Laurenceb> lmao 2012-06-13T14:56:45 < Laurenceb> and i thought i had routing issues 2012-06-13T15:03:15 <+izua> i alawys liked bgas 2012-06-13T15:03:44 <+izua> why the rounded traces on top left? 2012-06-13T15:06:08 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 240 seconds] 2012-06-13T15:16:09 < dongs> http://www.timingtm.com/uploads/032EFBE6-C48B-4AEC-998C-3CAA37D7D5F5.jpg 2012-06-13T15:16:17 < dongs> how the fuck do you route shit from under this 2012-06-13T15:16:19 < dongs> if thats the recommended land pattern 2012-06-13T15:16:33 < dongs> buried vias into the bottom layer(s)? 2012-06-13T15:25:22 < Tom_itx> yup 2012-06-13T15:28:19 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 256 seconds] 2012-06-13T15:37:59 < Laurenceb> on lqfp-64 F4, the 4.7uF decoupling cap doesnt have to be at a specific pin? 2012-06-13T15:55:39 < Laurenceb> wtf 2012-06-13T15:55:57 < Laurenceb> the dimple on the lqfp64 is pin1 right? 2012-06-13T15:56:03 < Laurenceb> cuz theres a circle as well 2012-06-13T16:09:36 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Read error: Connection reset by peer] 2012-06-13T16:10:02 -!- Thorn [~Thorn@2.94.140.17] has joined ##stm32 2012-06-13T16:10:03 -!- Thorn [~Thorn@2.94.140.17] has quit [Changing host] 2012-06-13T16:10:03 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-06-13T16:30:32 < dongs> wat 2012-06-13T16:35:15 < Laurenceb> whats the discovery SWd pinout? 2012-06-13T16:40:08 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Ping timeout: 240 seconds] 2012-06-13T16:41:24 < Laurenceb> arg ftw 2012-06-13T16:41:33 < Laurenceb> why cant doscivery power things 2012-06-13T16:41:55 < Laurenceb> through swd 2012-06-13T16:44:38 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-13T16:48:46 < Laurenceb> hell yeah 2012-06-13T16:48:49 < Laurenceb> pwnage 2012-06-13T16:49:06 < Laurenceb> sdr-gps board is alive and kicking 2012-06-13T16:52:12 < karlp> because the "VDD" pin on the stlink header is for detecting the target voltage, so that it can adjust the voltage levels used when communicating back from the stlink to the target 2012-06-13T16:52:18 < karlp> like the jtag target-vdd-sense 2012-06-13T16:56:19 < BrainDamage> you can use a vdd pin from the strip pins 2012-06-13T16:57:08 < dongs> ur a vdd sense 2012-06-13T17:01:12 -!- xbledi [~xbledi@212.189.140.222] has joined ##stm32 2012-06-13T17:05:00 < xbledi> hi,do someone nows how to activate the external antenna on a stm32w mb954 rev. A ? 2012-06-13T17:12:01 < Laurenceb> ive grabbed VDD off the I_sense pin 2012-06-13T17:23:45 < xbledi> I_sense pin ? which pin is it? and how do i grabb vdd off for it? thanks 2012-06-13T17:23:59 < dongs> i dont think he was talking t oyuo 2012-06-13T17:25:00 < xbledi> ok 2012-06-13T17:25:21 < karlp> xbledi: there's only been a very few people show up here with stm32w problems so far, 2012-06-13T17:25:26 < karlp> (and none in the last few hours) 2012-06-13T17:25:44 < dongs> i think infact he's the onyl one 2012-06-13T17:25:46 < dongs> in the last week+ 2012-06-13T17:27:02 < xbledi> mm this is stm32 channel so i thought i am in the right place 2012-06-13T17:29:06 < jpa-> yeah, but stm32w is poorly documented 2012-06-13T17:29:20 -!- dekar [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has joined ##stm32 2012-06-13T17:29:23 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-13T17:29:24 < jpa-> no-one knows much about the radio side of it 2012-06-13T17:29:25 < BrainDamage> not many here are using the w series I suspect 2012-06-13T17:30:26 < xbledi> :-) yes it is very poorly documented 2012-06-13T17:34:26 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-06-13T17:42:53 < dongs> for a reason, I'm sure 2012-06-13T17:48:22 -!- izua [~izua@79.115.171.95] has joined ##stm32 2012-06-13T17:48:22 -!- izua [~izua@79.115.171.95] has quit [Changing host] 2012-06-13T17:48:22 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-13T17:48:24 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-13T18:01:58 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-06-13T18:07:06 -!- tavish [~tavish@120.56.136.117] has joined ##stm32 2012-06-13T18:07:07 -!- tavish [~tavish@120.56.136.117] has quit [Changing host] 2012-06-13T18:07:07 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-13T18:19:12 < Laurenceb> im not feeling insane enought o hand solder BGA SAw filters today 2012-06-13T18:20:04 < Laurenceb> hmm 0.25mm pitch BGA... 2012-06-13T18:21:27 <+dekar> Laurenceb, is BGA hard to do? I imagined you just use some flux and heat it with hot air till it's done. Haven't done it yet though 2012-06-13T18:21:41 < Laurenceb> thats my plan 2012-06-13T18:21:54 < Laurenceb> i havent done anything this small before, and ive got a headache today 2012-06-13T18:30:17 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-13T18:47:30 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-13T18:53:48 < Laurenceb> how do you organise a chibios project? 2012-06-13T18:54:20 < Laurenceb> i mean do you stick projects in the same directory structure as chibios, or just link to it? 2012-06-13T18:56:55 < jpa-> i put chibios in a subdir under my project 2012-06-13T19:01:55 < Laurenceb> ah 2012-06-13T19:08:42 < Tectu> morning, folks 2012-06-13T19:15:17 -!- xbledi [~xbledi@212.189.140.222] has quit [Remote host closed the connection] 2012-06-13T19:15:38 < Laurenceb> what do i use as a makefile? 2012-06-13T19:15:46 < Laurenceb> for chibi 2012-06-13T19:16:57 < Tectu> Laurenceb, take one out of the demos folder 2012-06-13T19:17:08 < Laurenceb> ok 2012-06-13T19:17:09 < Tectu> and modify CHIBIOS path (Arround line 60, somewhere) 2012-06-13T19:17:25 < Tectu> then everything works from wherever your project is located 2012-06-13T19:17:55 < Tectu> just do the including of the other files as needed then in SRCINC and LIBINC 2012-06-13T19:19:08 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-13T19:20:31 < Tectu> Laurenceb, works? 2012-06-13T19:20:45 < Laurenceb> dunno 2012-06-13T19:21:54 < Laurenceb> ah yes it built 2012-06-13T19:22:01 < Laurenceb> wtf.. why is it 34KB 2012-06-13T19:22:39 < Tectu> it isnt? 2012-06-13T19:22:49 < Laurenceb> oh wait - i have to make it optimise? 2012-06-13T19:22:55 < Tectu> i get <10kB with GLCD/touchscreen, SD card etc 2012-06-13T19:23:01 < Tectu> no? 2012-06-13T19:23:32 < jpa-> Laurenceb: which example did you take? 2012-06-13T19:23:36 < Laurenceb> my own 2012-06-13T19:23:39 < Laurenceb> led blink 2012-06-13T19:23:46 < Tectu> Laurenceb, Laurenceb then it should be <5kB 2012-06-13T19:23:54 < Laurenceb> yeah 2012-06-13T19:24:02 < Laurenceb> -DUSE_OPT ? 2012-06-13T19:25:06 < Laurenceb> how do i pass that as an artgument to make? 2012-06-13T19:25:25 < Tectu> make ? 2012-06-13T19:28:29 < Laurenceb> then it interprets that as a target 2012-06-13T19:29:22 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 244 seconds] 2012-06-13T19:31:53 < karlp> do you have gc-sections? 2012-06-13T19:32:11 < Laurenceb> oh nvm 2012-06-13T19:32:16 < Laurenceb> i screwed up makefile 2012-06-13T19:32:21 < Laurenceb> but now i get Error finishing flash operation 2012-06-13T19:32:30 < Laurenceb> i though texane was fixed for F4? 2012-06-13T19:33:41 < Laurenceb> 2012-06-13T17:31:42 INFO src/stlink-common.c: Attempting to write 16384 (0x4000) bytes to stm32 address: 134217728 (0x8000000) 2012-06-13T19:33:41 < Laurenceb> EraseFlash - Sector:0x0 Size:0x4000 2012-06-13T19:33:41 < Laurenceb> Flash page at addr: 0x08000000 erased 2012-06-13T19:33:41 < Laurenceb> 2012-06-13T17:31:42 INFO src/stlink-common.c: Finished erasing 1 pages of 16384 (0x4000) bytes 2012-06-13T19:33:41 < Laurenceb> 2012-06-13T17:31:58 INFO src/stlink-common.c: Starting verification of write complete 2012-06-13T19:33:43 < Laurenceb> 2012-06-13T17:31:58 WARN src/stlink-common.c: Verification of flash failed at offset: 0 2012-06-13T19:37:53 < Laurenceb> is there a basic flash utility? 2012-06-13T19:39:06 < zippe> Laurenceb: like in the flash directory? 2012-06-13T19:41:18 < Laurenceb> 2012-06-13T17:40:35 INFO src/stlink-common.c: Successfully loaded flash loader in sram 2012-06-13T19:41:18 < Laurenceb> size: 6808 2012-06-13T19:41:18 < Laurenceb> run error 2012-06-13T19:41:18 < Laurenceb> 2012-06-13T17:40:37 WARN src/stlink-common.c: run_flash_loader(0x8000000) failed! == -1 2012-06-13T19:41:18 < Laurenceb> stlink_fwrite_flash() == -1 2012-06-13T19:41:42 < Laurenceb> i dont know 2012-06-13T19:43:47 < Laurenceb> bbl 2012-06-13T19:44:34 < karlp> stop st-util, unplug, replug, start st-util again 2012-06-13T19:46:04 < jpa-> and reset the board 2012-06-13T19:48:40 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Quit: Quitte] 2012-06-13T19:52:47 < karlp> that normally happens automatically when I unplug/plug the stlink for me, 2012-06-13T19:52:49 < karlp> or at least, it seems to 2012-06-13T19:58:42 -!- [7] [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-13T19:58:47 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-13T19:58:50 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-13T20:03:17 -!- TitanMKD is now known as TitanMKD_AW 2012-06-13T20:03:55 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-13T20:04:49 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-13T20:06:12 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Client Quit] 2012-06-13T20:19:33 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 265 seconds] 2012-06-13T20:29:23 < Tectu> Laurenceb, how's it going? 2012-06-13T20:29:44 < dongs> he's blogging hard 2012-06-13T20:32:10 -!- TitanMKD_AW [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-13T20:35:00 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Remote host closed the connection] 2012-06-13T20:35:21 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32 2012-06-13T20:39:04 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-13T20:39:07 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-13T20:39:33 <+Steffanx> nu 2012-06-13T20:43:51 -!- TitanMKD_AW [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-13T20:44:01 -!- TitanMKD_AW is now known as TitanMKD 2012-06-13T20:44:02 < Tectu> hello Steffanx 2012-06-13T20:44:05 <+Steffanx> so where is that wiki dekar / izua ? 2012-06-13T20:44:08 < Tectu> so, Steffanx it's on in an hour? 2012-06-13T20:44:14 < Tectu> which wiki? 2012-06-13T20:44:17 <+Steffanx> Yep 2012-06-13T20:44:35 <+Steffanx> it's dekar vs Steffanx in an hour 2012-06-13T20:47:28 < Tectu> dekar is german? 2012-06-13T20:49:03 <+Steffanx> He's from/lives in germany 2012-06-13T20:49:50 < Tectu> i see 2012-06-13T20:56:53 < karlp> hrmm, dma worked fine teh first time I tried it, now no dice. 2012-06-13T20:56:56 < karlp> blocking it is then 2012-06-13T20:58:23 <+Steffanx> Why PoE seems to be so relatively complex? 2012-06-13T20:59:20 < BrainDamage> because lan cables tend to be long and moderately high resistive 2012-06-13T20:59:35 <+Steffanx> Compared to a simple ethernet/power split cable (fake PoE) 2012-06-13T20:59:44 < BrainDamage> plus it has to be rather idiot proof 2012-06-13T20:59:59 < karlp> either end can be the supply side, so they need to negotiate 2012-06-13T21:00:35 <+Steffanx> but still 2012-06-13T21:02:29 < karlp> dma to a really slow uart will only write each byte as the uart becomes available right? 2012-06-13T21:03:31 <+Steffanx> Isn't that the idea of dma? 2012-06-13T21:10:21 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Remote host closed the connection] 2012-06-13T21:10:41 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-13T21:10:43 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-13T21:11:00 < jpa-> you can use mem2mem to write faster than the uart can process :) 2012-06-13T21:12:19 -!- [7] [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-13T21:12:26 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-13T21:44:16 -!- Laurenceb_ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has joined ##stm32 2012-06-13T21:45:02 < Laurenceb_> hi 2012-06-13T21:45:08 < Laurenceb_> any ideas why i cant flash stm32f4? 2012-06-13T21:45:16 < Laurenceb_> to do with clk source perhaps? 2012-06-13T21:48:53 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 248 seconds] 2012-06-13T21:50:11 < Tectu> Laurenceb_, dunno, but can you say me why my car cannot fly? 2012-06-13T21:50:19 < Tectu> no seriously, some more infromations could be usefull. 2012-06-13T21:50:38 < Laurenceb_> well first of all i need to undersant how texane works when flashing 2012-06-13T21:50:49 < Laurenceb_> i pasted the texane output here earlier 2012-06-13T21:51:13 < Laurenceb_> does it run this from ram? 2012-06-13T21:51:14 < Laurenceb_> https://github.com/texane/stlink/blob/e49bcb357a49cf0a17362629c5f48ebb10781ea0/flashloaders/stm32f4.s 2012-06-13T21:52:39 < Laurenceb_> wait wtf 2012-06-13T21:52:51 < Laurenceb_> lash_base: 2012-06-13T21:52:51 < Laurenceb_> .word 0x40023c00 2012-06-13T21:53:09 < BrainDamage> Tectu: mass/power ratio is so high you need huge wingspan up that normal materials cannot withstand 2012-06-13T21:53:33 < Tectu> aaah, i see BrainDamage 2012-06-13T21:53:37 < Tectu> BrainDamage, lemme try 2012-06-13T21:55:58 < Laurenceb_> no - F4 flash is at 0x08000000 2012-06-13T21:56:01 < Laurenceb_> im confused 2012-06-13T22:00:19 < Laurenceb_> why the hell cant i flash 2012-06-13T22:04:31 < Laurenceb_> texane _does_ work for F4 right? 2012-06-13T22:14:27 < Tectu> yes. 2012-06-13T22:14:38 < Tectu> Laurenceb, everybody uses texane with f4 discovery 2012-06-13T22:14:43 < Tectu> dongs, how's blogging going 2012-06-13T22:17:16 < Laurenceb_> hmmm 2012-06-13T22:17:43 < Laurenceb_> so, it erases the first block, then says its flashed it, but gets verify error on byte 0x00 2012-06-13T22:17:51 < zippe> Laurenceb: I'm using gdb's "load" command as I type this 2012-06-13T22:18:04 < Laurenceb_> does the flashing process use that asm code i linked? 2012-06-13T22:18:08 < Laurenceb_> ok 2012-06-13T22:18:16 < Laurenceb_> yeah load works on my F4 discovery too 2012-06-13T22:20:31 < zippe> I don't actually know; I haven't dug into it 2012-06-13T22:20:43 < zippe> the 'flash' commandline tool always annoys me 2012-06-13T22:21:19 < Laurenceb_> that fails too 2012-06-13T22:21:21 < Laurenceb_> same error 2012-06-13T22:23:11 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-13T22:23:11 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-13T22:27:51 < Laurenceb_> this makes no sense 2012-06-13T22:33:10 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-13T22:33:14 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-13T22:34:54 < Laurenceb_> F4 has internal osc right? 2012-06-13T22:35:22 <+Steffanx> Yep 2012-06-13T22:35:53 <+Steffanx> 16MHz 2012-06-13T22:35:54 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 246 seconds] 2012-06-13T22:36:07 <+Steffanx> And 32kHz iirc 2012-06-13T22:36:42 < Laurenceb_> so it boots to 16MHz clk? 2012-06-13T22:37:12 < Laurenceb_> i have a 16.386MHz TCXO input to the EXTOSC pin 2012-06-13T22:41:19 < Laurenceb_> should there be a DC blocking cap on OSC_IN? 2012-06-13T22:49:06 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-06-13T22:59:59 <+Steffanx> Laurenceb_ unfortunately i'm not an STM32 reference manual nor datasheet 2012-06-13T23:04:51 < Laurenceb_> oh i know what the issue might be 2012-06-13T23:05:08 < Laurenceb_> it seems texane loads that asm into ram and tries to run it 2012-06-13T23:05:12 < Laurenceb_> but it times out 2012-06-13T23:05:17 <+Steffanx> Laurenceb it may be 2012-06-13T23:05:37 <+Steffanx> That zyp fix? 2012-06-13T23:05:38 < Laurenceb_> i know the core wont run but the jtag works if VDDA isnt supplied 2012-06-13T23:05:43 < Laurenceb_> yes 2012-06-13T23:05:53 < Laurenceb_> and the VDDA pin looks a little bad 2012-06-13T23:06:05 < Laurenceb_> i dont have multimeter here 2012-06-13T23:06:10 <+Steffanx> :S 2012-06-13T23:06:19 < Laurenceb_> ill try reflowing the VDDA pin tomorrow 2012-06-13T23:06:27 <+Steffanx> no solder iron? 2012-06-13T23:06:46 < Laurenceb_> im at home atm 2012-06-13T23:07:20 < Laurenceb_> i didnt fill the stencil very well at one corner 2012-06-13T23:08:24 < Laurenceb_> if it behaves like F1 that would explain the issue 2012-06-13T23:08:49 < Laurenceb_> F1 seems to need a running ADC to power up the core 2012-06-13T23:20:26 < Tectu> Steffanx, is it over? 2012-06-13T23:20:37 < Tectu> Steffanx, 2:1 for germany was the last state i heard of 2012-06-13T23:22:32 < Laurenceb_> its like ww2 all over again 2012-06-13T23:23:05 < Tectu> Laurenceb_, lol'd 2012-06-13T23:23:07 <+Steffanx> At least 10 min. to go Tectu 2012-06-13T23:23:14 < Tectu> Steffanx, think they can do it? 2012-06-13T23:23:19 <+Steffanx> Who knows 2012-06-13T23:23:28 <+Steffanx> ask dekar if they can't do it 2012-06-13T23:32:05 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-13T23:34:56 < zippe> 2012-06-13T23:35:17 < zippe> (this is stm32-relevant because the Neato is STM32-based) 2012-06-13T23:36:42 <+Steffanx> hehe 2012-06-13T23:37:47 < zippe> Now if only I could fix the firmware on it … their updater is crap 2012-06-13T23:38:15 < Laurenceb_> they didnt solder VDDA 2012-06-13T23:38:45 <+Steffanx> they .. 2012-06-13T23:43:45 -!- LawrenceSeattle [~lawrence@66.192.187.106] has joined ##stm32 2012-06-13T23:46:25 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 265 seconds] --- Day changed Thu Jun 14 2012 2012-06-14T00:13:43 -!- Titan___ [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-14T00:14:00 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: BRB] 2012-06-14T00:15:54 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 265 seconds] 2012-06-14T00:18:04 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-14T00:20:39 -!- Titan___ [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 244 seconds] 2012-06-14T00:47:16 < Laurenceb_> chibios is very nice 2012-06-14T00:47:22 < Laurenceb_> it "just works" 2012-06-14T00:53:05 < zippe> I am greatly enjoying being able to do things like: 2012-06-14T00:53:05 < zippe> /* Open the GPIO driver so we can do LEDs and the like. */ 2012-06-14T00:53:05 < zippe> gpio_fd = open("/dev/gpio", 0); 2012-06-14T00:53:06 < zippe> ASSERTCODE((gpio_fd >= 0), A_GPIO_OPEN_FAIL); 2012-06-14T00:53:26 < zippe> ... 2012-06-14T00:53:27 < zippe> #define LED_AMBER(_s) ioctl(gpio_fd, GPIO_SET(GPIO_LED_AMBER), !_s) 2012-06-14T00:53:57 < zippe> on an STM32F100 2012-06-14T00:57:07 -!- peabody128 [~peabody12@128.249.96.123] has joined ##stm32 2012-06-14T01:00:26 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 245 seconds] 2012-06-14T01:00:26 -!- peabody128 is now known as peabody124 2012-06-14T01:03:51 < blkcat> zippe: uclinux? 2012-06-14T01:07:30 < Laurenceb_> yeah wtf 2012-06-14T01:26:23 -!- Laurenceb_ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has quit [Ping timeout: 244 seconds] 2012-06-14T01:30:24 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 244 seconds] 2012-06-14T01:30:54 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925199413.dsl.bell.ca] has joined ##stm32 2012-06-14T01:30:54 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925199413.dsl.bell.ca] has quit [Changing host] 2012-06-14T01:30:54 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-14T01:31:27 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer] 2012-06-14T01:48:16 < zippe> That's NuttX 2012-06-14T01:50:33 < zippe> It took a bit of beating to get it down to this size; I had to get rid of the pthread and signals support 2012-06-14T01:52:16 < zippe> And I only have ~3.5k of heap free (of 8k) 2012-06-14T01:53:04 < zippe> On the bigger systems like the F4 it's wicked having a shell and a filesystem and all the mod cons 2012-06-14T01:53:29 < zippe> Well, ok, some of the mod cons, at least 8) 2012-06-14T02:15:57 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has joined ##stm32 2012-06-14T02:17:27 < szczys> I'm trying to write an image to an STM32F0-Discovery board using OpenOCd 2012-06-14T02:17:40 < szczys> I can't figure out if it's my program, or the programmer that's the issue 2012-06-14T02:17:53 < szczys> does anyone know where I can get an .elf or .bin file known to be working with the board? 2012-06-14T02:20:31 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-14T02:43:37 < dongs> no blogging 2012-06-14T02:53:43 < dongs> http://a6.sphotos.ak.fbcdn.net/hphotos-ak-ash3/527586_10150984640307941_556578356_n.jpg 2012-06-14T02:55:24 <+dekar> zippe, when I had nuttx it running on one of my stm32f1 (20kb ram) I only had around 8kb heap left 2012-06-14T02:56:18 <+dekar> and I had weird memory fragmentation issues, after starting "sleep 10 &" a few times my total ram was less than after reboot 2012-06-14T02:56:46 <+dekar> the shell was quite cool, but overall I wasn't too convinced 2012-06-14T02:56:56 < zippe> dekar: RAM consumption depends a lot on your config 2012-06-14T02:57:04 < zippe> stacks, features, preallocated stuff 2012-06-14T02:57:14 <+dekar> zippe, I wanted it all! :D 2012-06-14T02:57:14 < dongs> zippe: ever got anywhere with FY shit? 2012-06-14T02:57:22 < zippe> Really it's a bit beefy for the F1x devices. 64K of RAM and it's much better 2012-06-14T02:57:37 < zippe> dongs: I got your stuff all compiling, then I got sidetracked 2012-06-14T02:57:42 < dongs> ok good 2012-06-14T02:57:50 < zippe> I need to build a programming cable 2012-06-14T02:58:01 < dongs> i'm sure wiring up transfoermer wire to 0.5mm pins for SWD isn't high on your priority/enjoyment list 2012-06-14T02:58:04 < dongs> right 2012-06-14T02:58:25 < dongs> I think you can clear out the chip from serial bootloader 2012-06-14T02:58:52 < dongs> infact that might be a good idea at first as it blocks jtag as soon as it powers up. i had to do some manual reset line holding on jlink to get it to chip erase 2012-06-14T03:05:21 < Rickta59> does the program you are trying to use work with the texane stuff szczys? 2012-06-14T03:05:46 < szczys> No? 2012-06-14T03:05:54 < szczys> Maybe 2012-06-14T03:06:09 < szczys> I've compiled a few of the samples for the F0 (from the texane repo) 2012-06-14T03:06:15 < Rickta59> is it something complicated or just a simple thing 2012-06-14T03:06:16 < szczys> but there's a warning that many of those samples don't work 2012-06-14T03:06:24 < szczys> Complicated 2012-06-14T03:06:39 < Rickta59> maybe start with something simple to see if it is the programmer or the program' 2012-06-14T03:06:40 < szczys> I've ended up tailoring a makefile to build the demo in the STM firmware package 2012-06-14T03:06:54 < szczys> The problem is I have zero experience with ARM 2012-06-14T03:07:00 < szczys> so I'm not sure what simple things will work 2012-06-14T03:07:12 < szczys> intitially I got a simple blink program to work by loading it in RAM 2012-06-14T03:07:14 < Rickta59> maybe just blink and led in a loop with a delay 2012-06-14T03:07:21 < szczys> but since I've erase the flash memory this will no longer work 2012-06-14T03:07:45 < szczys> I was thinking that I probably need code in Flash to configure the system clock 2012-06-14T03:07:50 < szczys> does that sound right? 2012-06-14T03:08:02 < Rickta59> probably more like the interrupt vector is empt 2012-06-14T03:08:05 < Rickta59> empty 2012-06-14T03:08:37 < Rickta59> the interrupt vector is used with your first startup to figure out what the stack ptr should be set to 2012-06-14T03:08:42 < Rickta59> do you have another board? 2012-06-14T03:09:04 < Rickta59> you might want to copy an existing board with st-flash 2012-06-14T03:09:10 < Rickta59> copy the code 2012-06-14T03:09:14 < Rickta59> and then write it back 2012-06-14T03:09:20 < Rickta59> on the one that doesn't wor4k 2012-06-14T03:09:36 < Rickta59> can you connect with gdb? 2012-06-14T03:09:42 < Rickta59> and look at what is at 0x00000 2012-06-14T03:09:46 < Rickta59> dissassemble 2012-06-14T03:09:49 < szczys> Yes, I can connect with GDB 2012-06-14T03:10:01 < Rickta59> what is at address 0x0000 2012-06-14T03:10:04 < szczys> any idea the command for pulling down the zero register? 2012-06-14T03:10:19 < Rickta59> pulling down the zero register? 2012-06-14T03:10:31 < szczys> you asked what is at address 0 2012-06-14T03:10:39 < szczys> I'm unsure how to use gdb 2012-06-14T03:10:40 < Rickta59> ah .. just disassemble it 2012-06-14T03:10:55 < Rickta59> let me start it up so i can talk more intelligently 2012-06-14T03:11:03 < szczys> thanks! 2012-06-14T03:12:16 < Rickta59> I'm actually new to this myself .. so i need to poke around 2012-06-14T03:17:07 < Rickta59> hmm .. i'm more used to the gdb with the 430 .. 2012-06-14T03:17:39 < Rickta59> and the sad thing is i did the other day without a problem 2012-06-14T03:17:48 < Rickta59> so i started up st-util 2012-06-14T03:17:51 < Rickta59> it finds my f0 2012-06-14T03:17:58 < Rickta59> i then use the blink directory 2012-06-14T03:18:04 < Rickta59> and typed 2012-06-14T03:18:12 < Rickta59> arm-non-eabi-gdb foo.elf 2012-06-14T03:18:25 < Rickta59> that is the code I've been messing with 2012-06-14T03:18:34 < Rickta59> it loads it into memory a 2012-06-14T03:18:37 < szczys> sure 2012-06-14T03:18:38 < szczys> yep 2012-06-14T03:18:43 < szczys> but that's just ram 2012-06-14T03:18:46 < szczys> not the flash memory 2012-06-14T03:18:51 < Rickta59> i thought the other day i was able to use 2012-06-14T03:18:59 < Rickta59> disassemble 0x8000001 2012-06-14T03:19:10 < Rickta59> which then would show me what is at 0x000 .. 2012-06-14T03:19:38 < szczys> right 2012-06-14T03:19:47 < szczys> I think that's a disassembly from the .elf file 2012-06-14T03:19:49 < Rickta59> when i did that .. 2012-06-14T03:19:54 < szczys> it's not actually reading from the chip 2012-06-14T03:19:56 < Rickta59> i was able to see the stack ptr 2012-06-14T03:20:11 < Rickta59> i did start it 2012-06-14T03:20:15 < Rickta59> and interrupt 2012-06-14T03:20:24 < Rickta59> it is sitting in the code running 2012-06-14T03:20:49 < szczys> right but the texane stlink project doesn't have support for writing to flash 2012-06-14T03:20:55 < szczys> I've been working on it... 2012-06-14T03:21:02 < Rickta59> i thought that is what st-flash does? no? 2012-06-14T03:21:04 < szczys> got so far as to get it to erase the flash 2012-06-14T03:21:14 < szczys> Not for STM32F0 yet 2012-06-14T03:21:18 < szczys> it works for the other discovery boards 2012-06-14T03:21:33 < Rickta59> k .. i hadn't tried i've been focused on what is supposed to go in the linker 2012-06-14T03:21:34 < szczys> for now, the F0 boards are only able to write to RAM, not to FLASH memory 2012-06-14T03:21:51 < dongs> where teh fuck is my free f0 2012-06-14T03:21:52 < szczys> So I'm trying out OpenOCD right now 2012-06-14T03:21:55 < dongs> i signed up but with wrong address 2012-06-14T03:21:58 < Rickta59> got it 2012-06-14T03:22:00 < dongs> id didnt expect them to ship it to jp 2012-06-14T03:22:03 < dongs> but apparently they did 2012-06-14T03:22:17 < szczys> @dongs: that sucks 2012-06-14T03:22:39 < szczys> @dongs: can you stop by the address and knock on the door? 2012-06-14T03:23:05 < Rickta59> well if it doesn't write than what i was going to suggest isn't going to work 2012-06-14T03:23:17 < Rickta59> i could at least capture the file if you are interested 2012-06-14T03:23:33 < Rickta59> if you only have one board 2012-06-14T03:23:39 < szczys> So if you power cycle yours it still runs the demo that shipped with it? 2012-06-14T03:23:44 < Rickta59> yeah 2012-06-14T03:23:51 < szczys> what OS do you use? 2012-06-14T03:23:56 < Rickta59> linux .. ubuntu 2012-06-14T03:24:15 < szczys> Well, I'd love it if you fired up OpenOCD and grabbed a copy of the flash memory 2012-06-14T03:24:26 < szczys> but it's a bit of work and you might not want to waste the time 2012-06-14T03:24:27 < Rickta59> what does openocd run on? 2012-06-14T03:24:36 < szczys> all platforms 2012-06-14T03:24:41 < szczys> but I've just compiled it on Ubuntu 2012-06-14T03:24:41 < Rickta59> i'm pretty sure i can grab it with st-flash 2012-06-14T03:24:49 < szczys> oh, sure 2012-06-14T03:24:55 < szczys> if you want to give it a try that would be great 2012-06-14T03:24:57 < Rickta59> what .. maybe that is what i did the other day 2012-06-14T03:25:15 < Rickta59> i might have grabbed it and used the arm objcopy to disassemble not gdb 2012-06-14T03:26:18 < Rickta59> how big do you think the demo object code is? 2012-06-14T03:26:44 < Rickta59> the other day i was only looking at the interrupt table so i just grabbed a little 2012-06-14T03:27:36 < szczys> I really don't know 2012-06-14T03:27:44 < szczys> the .bin file I compiled is... 2012-06-14T03:27:55 < szczys> 4.5k 2012-06-14T03:28:03 < szczys> the .elf is 109k 2012-06-14T03:28:16 < szczys> but these don't work so I could be way off. 2012-06-14T03:28:32 < zyp> szczys, isn't adding F0 support just about getting the id to be recognized, then adding F0 specific flash reg addr, flash unlock code and flashing procedure? 2012-06-14T03:28:38 < Rickta59> http://pastebin.com/hWqitx0c 2012-06-14T03:28:43 < Rickta59> that is the interrupt table 2012-06-14T03:29:15 < Rickta59> 99d .. seems to be the highest handler function 2012-06-14T03:29:16 < szczys> zyp: Not quite... there's flash loader code 2012-06-14T03:29:23 < szczys> zyp: written in assembly 2012-06-14T03:29:50 < szczys> zyp: it looks like OpenOCD uses the same loader code for F1 and F0 but I can't get that to work with stlink package 2012-06-14T03:30:17 < Rickta59> are you fine with just a bin file that you can use? 2012-06-14T03:30:41 < zyp> szczys, right, I assumed you wanted it to work withou flashloader first 2012-06-14T03:30:52 < szczys> Rickta59: yeah, a .bin would be great 2012-06-14T03:31:09 < szczys> zyp: yep... loading into RAM seems to work just fine 2012-06-14T03:31:19 < zyp> szczys, I wrote the F4 flashloader that's in the texane repo now 2012-06-14T03:31:32 < szczys> zyp: ah, cool 2012-06-14T03:31:33 < zyp> it should not be that hard to adapt to F0 2012-06-14T03:31:44 < szczys> zyp: I found what OpenOCD uses 2012-06-14T03:31:57 < szczys> zyp: then compiled it, disassembled it, and translated that to hex just like the other loaders 2012-06-14T03:32:10 < zyp> some register bits might be different, and you'd have to replace the thumb2 instructions with normal thumb 2012-06-14T03:32:42 < zyp> https://github.com/texane/stlink/blob/master/flashloaders/stm32f4.s 2012-06-14T03:33:06 < szczys> zyp: http://pastebin.com/bdKFgfkd 2012-06-14T03:33:52 < szczys> Rickta59: any chance you can post that .bin file somewhere? 2012-06-14T03:34:03 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has left ##stm32 [] 2012-06-14T03:34:57 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-14T03:35:21 < Rickta59> try http://kimballsoftware.com/tmp/orig.zip 2012-06-14T03:35:45 < Rickta59> i used ./st-flash read orig.bin 0x08000000 16384 2012-06-14T03:36:04 < zyp> szczys, looks a bit more complex 2012-06-14T03:36:20 < zyp> checks error flag too 2012-06-14T03:36:23 < Rickta59> not sure if that is enough .. 16k that is 2012-06-14T03:36:37 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-06-14T03:38:09 < zyp> szczys, have you seen this part of the code: https://github.com/texane/stlink/blob/master/src/stlink-common.c#L1647 ? 2012-06-14T03:38:44 < zyp> i.e. the part of the code that sets up the registers before running the flashloaders 2012-06-14T03:38:46 < szczys> zyp: yes 2012-06-14T03:39:11 < szczys> That's where I think I'm going wrong 2012-06-14T03:39:21 < szczys> I get stuck in that is_core_halted loop 2012-06-14T03:39:22 < dongs> wat is orig.zip? 2012-06-14T03:39:24 < szczys> and it times out 2012-06-14T03:39:28 < dongs> stlink original flash? 2012-06-14T03:39:39 < Rickta59> that is a dump of the first 16k using st-flash read 2012-06-14T03:40:01 < Rickta59> ./st-flash read orig.bin 0x08000000 16384 2012-06-14T03:40:21 < Rickta59> off an f0 discovery 2012-06-14T03:40:25 < zyp> szczys, so, do you know which registers your flashloader is using and for what? 2012-06-14T03:40:33 < dongs> o 2012-06-14T03:40:44 < szczys> zyp: no, I have no idea 2012-06-14T03:40:50 < szczys> I took that code from OpenOCD: 2012-06-14T03:41:08 < szczys> http://openocd.git.sourceforge.net/git/gitweb.cgi?p=openocd/openocd;a=blob_plain;f=contrib/loaders/flash/stm32f1x.S;hb=HEAD 2012-06-14T03:41:12 < zyp> ok, then that's definitely your problem 2012-06-14T03:41:20 < Rickta59> well at least that answers the question i had the other day ; ) .. "does it work with the f0 board" 2012-06-14T03:41:26 < zyp> ah, says it all there 2012-06-14T03:42:04 < szczys> As far as I can tell (from debug messages) 2012-06-14T03:42:14 < szczys> the loader gets written to ram just fine 2012-06-14T03:42:28 < szczys> but once it tries to run it 2012-06-14T03:42:33 < zyp> do you see the params comment in the assembly source file? 2012-06-14T03:42:40 < szczys> yes 2012-06-14T03:42:42 < zyp> that is how the loader is using the registers 2012-06-14T03:42:53 < szczys> how can I translate that to the C file in stlink? 2012-06-14T03:43:00 < zyp> and the part of the code that I linked to is responsible for getting those registers right 2012-06-14T03:44:00 < szczys> oh, I see 2012-06-14T03:44:05 < zyp> you can think of it as a function signature 2012-06-14T03:44:14 < szczys> I get lost because of the C++ type of function/method assignment 2012-06-14T03:44:16 < zyp> you have to call it with the arguments in the correct order 2012-06-14T03:44:25 < szczys> I'm unfamiliar with that and don't know where to look in the code for how it works 2012-06-14T03:44:42 < zyp> huh? 2012-06-14T03:44:43 < Rickta59> stlink_write_reg(sl, target, 0); /* target */ 2012-06-14T03:44:51 < Rickta59> 0 in that context is r0? 2012-06-14T03:44:54 < szczys> sl->backend->core_id(sl); 2012-06-14T03:44:55 < zyp> yes 2012-06-14T03:45:00 < szczys> zyp: sorry, I'm off topic 2012-06-14T03:45:17 < zyp> Rickta59, that sets r0 = target 2012-06-14T03:45:44 < Rickta59> so to use that flash loader you have to fill in the registers to match that loader and expected values 2012-06-14T03:45:53 < zyp> exactly 2012-06-14T03:46:19 < Rickta59> * r0 - flash base (in), status (out) ... 2012-06-14T03:46:35 < Rickta59> * r1 - count (halfword-16bit) 2012-06-14T03:47:03 < Rickta59> stlink_write_reg(sl, fl->buf_addr, 0); /* source .. r0*/ 2012-06-14T03:47:12 < zyp> and if you don't want to use the GPLed flashloader from openocd, adapting my F4 one to F0 shouldn't be that hard 2012-06-14T03:47:16 < zyp> it's less complex 2012-06-14T03:47:25 < Rickta59> stlink_write_reg(sl, count, 1); /* count (32 bits words) r1 */ 2012-06-14T03:47:49 < zyp> flash base is the base addr of the flash register block 2012-06-14T03:47:57 < szczys> I still really need some code that will get the demo running again 2012-06-14T03:48:16 < szczys> I can't really test stlink for writing to flash if I don't have code I know works 2012-06-14T03:48:29 < zyp> fl->buf_addr should go into r2 (workarea) 2012-06-14T03:48:43 < Rickta59> goes openocd let you load that link i provided? 2012-06-14T03:48:49 < Rickta59> s/g/d/ 2012-06-14T03:48:53 < zyp> szczys, sure you can 2012-06-14T03:49:12 < zyp> as long as it flashes and verifies fine, you can flash any data 2012-06-14T03:49:38 < Rickta59> was that the right thing for me to grab so he can get back to square one? 2012-06-14T03:50:06 < Rickta59> "./st-flash read orig.bin 0x08000000 16384" .. or is there more than that needed 2012-06-14T03:51:11 < zyp> Rickta59, hexdump it and check 2012-06-14T03:51:30 < Rickta59> http://pastebin.com/hWqitx0c .. that is the start of it 2012-06-14T03:51:35 < zyp> empty flash reads as 0xff, so you should have a bunch of that in the end of your file 2012-06-14T03:51:41 < Rickta59> ah .. ok 2012-06-14T03:52:02 < zyp> if not, you likely didn't read as far as the empty area 2012-06-14T03:52:17 < Rickta59> 0004560 e7fe e7fe e7fe e7fe e7fe e7fe e7fe e7fe 2012-06-14T03:52:17 < Rickta59> * 2012-06-14T03:52:17 < Rickta59> 0004620 e7fe e7fe e7fe e7fe e7fe e7fe e7fe 0000 2012-06-14T03:52:17 < Rickta59> 0004640 2012-06-14T03:52:23 < Rickta59> that is at the end 2012-06-14T03:53:36 < zyp> huh? 2012-06-14T03:53:47 < dongs> 0xdeadfeed 2012-06-14T03:54:00 < zyp> 16384 should be 0x4000 2012-06-14T03:54:32 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-06-14T03:54:44 < szczys> yeah, I can write and verify that .BIN file (using OpenOCD) at 0x08000000 but the program doesn't run 2012-06-14T03:54:49 < szczys> (no blinking lights, etc) 2012-06-14T03:54:55 < szczys> so I don't think that's the bin file i needed 2012-06-14T03:54:56 < Rickta59> did you unplug/replug 2012-06-14T03:55:18 < szczys> voila 2012-06-14T03:55:20 < szczys> works 2012-06-14T03:55:27 < szczys> you're much smarter than I 2012-06-14T03:55:30 < Rickta59> you have to power cycle 2012-06-14T03:55:32 < szczys> thanks! 2012-06-14T03:55:43 < szczys> so, now I know it's possible 2012-06-14T03:55:46 < Rickta59> well i'm not just selfish ; ) 2012-06-14T03:55:52 < Rickta59> what hardware do i need for openocd? 2012-06-14T03:55:59 < szczys> none 2012-06-14T03:56:03 < zyp> nothing special 2012-06-14T03:56:04 < szczys> what you've already got 2012-06-14T03:56:08 < zyp> openocd supports st-link 2012-06-14T03:56:19 < szczys> just get the latest from their git repository 2012-06-14T03:56:22 < szczys> then do: 2012-06-14T03:56:31 < szczys> (hang on) 2012-06-14T03:56:34 < Rickta59> is there any reason to use the texane stuff if that works? 2012-06-14T03:57:07 < szczys> ./bootstrap 2012-06-14T03:57:18 < szczys> ./configure --prefix=/usr --enable-maintainer-mode --enable-stlink 2012-06-14T03:57:19 < szczys> make 2012-06-14T03:57:22 < szczys> sudo make install 2012-06-14T03:57:25 < Rickta59> great thanks 2012-06-14T03:57:30 < szczys> no problem 2012-06-14T03:57:41 < Rickta59> so .. the texane stuff .. if the openocd works why? 2012-06-14T03:57:41 < zyp> Rickta59, that's a question you have to ask yourself 2012-06-14T03:57:46 < szczys> once installed go into the "tcl" directory 2012-06-14T03:57:48 < szczys> and type: 2012-06-14T03:57:57 < szczys> openocd -f board/stm32f0discovery.cfg 2012-06-14T03:58:08 < szczys> you can connect through GDB on port 333 2012-06-14T03:58:10 < zyp> I find openocd to be a lot more complex to get going 2012-06-14T03:58:18 < szczys> sorry... meant port 3333 2012-06-14T03:58:25 < szczys> zyp: exactly 2012-06-14T03:58:30 < szczys> I would prefer to use stlink 2012-06-14T03:58:32 < szczys> for simplicity 2012-06-14T03:58:33 < Rickta59> i do like the simplicity of the command line stuff .. is openocd only tcl? 2012-06-14T03:58:51 < zyp> only how? 2012-06-14T03:59:03 < Rickta59> do i have to use tcl ui 2012-06-14T03:59:16 < Rickta59> * not even sure if i have it installed 2012-06-14T03:59:22 < szczys> there's no ui 2012-06-14T03:59:28 < Rickta59> k 2012-06-14T03:59:30 < szczys> that's just one of the folders in the git repo 2012-06-14T03:59:45 < szczys> you need to tell it what cfg file to use 2012-06-14T03:59:55 < Rickta59> tcl as in sun gui thing or tcl as in some other acronym 2012-06-14T04:00:01 < szczys> but the example also has some path instructions so you need to start it from the right place 2012-06-14T04:00:07 < szczys> like rick said... it's complicated 2012-06-14T04:00:20 < szczys> but I already knew it worked (just wanted to verify 2012-06-14T04:00:33 < szczys> are you still around zyp? 2012-06-14T04:00:42 < Rickta59> : ) .. well now that you are humming i can just wait for you to get it working 2012-06-14T04:00:51 < szczys> me too 2012-06-14T04:01:01 < zyp> szczys, sure 2012-06-14T04:01:11 < Rickta59> thanks btw .. i saw your post on h-a-d and that is why i got one 2012-06-14T04:01:15 < szczys> I think it would be better to port over your loader code 2012-06-14T04:01:29 < szczys> it's probably just address offsets that are different 2012-06-14T04:01:38 < zyp> probably, then here's what you need to change: 2012-06-14T04:01:39 < szczys> unless there is an instruction that's missing in the F0 chips 2012-06-14T04:01:44 < szczys> (they do have a reduced chipset) 2012-06-14T04:01:53 < szczys> sorry ... * reduced instruction set 2012-06-14T04:02:23 < zyp> yes, line 19 is a thumb-2 instruction I believe 2012-06-14T04:02:31 < zyp> so you need to rewrite that 2012-06-14T04:02:37 < Rickta59> so once that is working will it be possible to write to flash from both gdb and st-flash? or just st-flash 2012-06-14T04:02:57 < zyp> also change line 32 and check that the bit tested in line 19 is correct 2012-06-14T04:03:03 < zyp> Rickta59, both 2012-06-14T04:03:09 < Rickta59> just a load? 2012-06-14T04:03:13 < Rickta59> in gdb 2012-06-14T04:03:14 < zyp> this is common code for both 2012-06-14T04:03:31 < zyp> both st-flash and load in gdb invokes this, yes 2012-06-14T04:03:47 < Rickta59> great thanks 2012-06-14T04:04:13 < szczys> so, 2012-06-14T04:04:24 < szczys> are you calling out lines from the stm32f4.s file? 2012-06-14T04:04:47 < zyp> yes 2012-06-14T04:04:59 < zyp> hmm, is there no F0 flashing manual yet? 2012-06-14T04:05:07 < szczys> ummm 2012-06-14T04:05:11 < szczys> there's a programming manual 2012-06-14T04:05:20 < szczys> but it seems to suck compared to prior families 2012-06-14T04:05:24 < szczys> I've been using RM0091 2012-06-14T04:05:27 < szczys> for most everything 2012-06-14T04:05:33 < zyp> where is the flash registers described? 2012-06-14T04:05:45 < szczys> in RM0091 2012-06-14T04:05:47 < zyp> oh, they are in the reference manual now 2012-06-14T04:05:49 < szczys> (looking up the page) 2012-06-14T04:06:19 < szczys> page 42 2012-06-14T04:06:28 < szczys> 3.2 Flash memory functional description 2012-06-14T04:06:33 < szczys> need a link to the document? 2012-06-14T04:06:35 < zyp> already found it 2012-06-14T04:06:38 < szczys> okay 2012-06-14T04:06:56 < zyp> you have to change line 18 as well, it should now read: ldr r4, [r3, #0x0c] 2012-06-14T04:07:10 < szczys> is this file used during compilation, or just in the repo for reference? 2012-06-14T04:07:11 < zyp> the old one only read the upper 16 bits, now the busy flag is in the lower part 2012-06-14T04:07:17 < zyp> just for reference 2012-06-14T04:07:24 < szczys> I see... that confused me at first 2012-06-14T04:07:40 < szczys> so I used arm-none-eabi-gcc to compile it, then object dump to see what it's doing 2012-06-14T04:07:52 < szczys> is that how you translated it to the array in the C file? 2012-06-14T04:07:57 < zyp> pretty much 2012-06-14T04:08:09 < szczys> I figured I was some kind of moron and doing it the hard way.... heh 2012-06-14T04:08:59 < zyp> it's only a few bytes, so transcribing it by hand is not that much waste of time 2012-06-14T04:09:17 < zyp> but actually compiling it as part of the compilation would be nice for maintenance 2012-06-14T04:12:17 < zyp> szczys, http://paste.jvnv.net/view/9S8h1 <- so, you can start out with this (fixed addr of flash reg), and then you have to replace any thumb-2 stuff that doesn't exist on cortex-m0 2012-06-14T04:13:05 < zyp> I believe you might have to replace tst.w with a register-register comparison 2012-06-14T04:13:05 < szczys> I have almost no idea what I'm doing when it comes to assembly 2012-06-14T04:13:27 < szczys> what is the tst line meant to do (in common terms?) 2012-06-14T04:13:40 < zyp> it's «test» 2012-06-14T04:13:57 < szczys> what is it testing? 2012-06-14T04:14:11 < zyp> it checks equality to a bitmask 2012-06-14T04:14:38 < szczys> yeah... I'm not going to be able to figure that out by myself 2012-06-14T04:14:44 < szczys> is texane good at this stuff? 2012-06-14T04:14:50 < szczys> I'm pretty sure he has one of these boards 2012-06-14T04:14:59 < szczys> If someone can get the loader translated 2012-06-14T04:15:12 < szczys> I think I can get the rest working (now that you explained how it maps to the C file) 2012-06-14T04:15:38 < zyp> http://paste.jvnv.net/view/D3RZd <- this might work 2012-06-14T04:16:01 < zyp> but I don't have any way to test it now 2012-06-14T04:17:47 < zippe> dongs: Hmm. The bootloader script(s) I'm using trying to talk to the FY20 are failing. 2012-06-14T04:18:03 < dongs> serial? 2012-06-14T04:18:48 < dongs> doesnt shorting boot0 make it go into bootloader mode. then you can use ST Flash Demonstrator or someshit to clear it 2012-06-14T04:18:56 < szczys> zyp: so I should be able to map this the same way as you did for the F4 2012-06-14T04:19:05 < zyp> yes 2012-06-14T04:19:29 < zyp> just keep in mind that you have much less ram, so you have to do much smaller blocks 2012-06-14T04:20:50 < zippe> dongs: Yeah, boot0 strapped high, but it's not behaving 2012-06-14T04:20:56 < zippe> Wonder if they blew some of the OTP bits 2012-06-14T04:21:00 < dongs> no 2012-06-14T04:21:01 < Rickta59> anything special to make arm gdb happy with openocd? 2012-06-14T04:21:09 < zippe> Rickta59: ha! 2012-06-14T04:21:14 < Rickta59> Remote 'g' packet reply is too long: 0000000000000000000000000000000000000000000 ... 2012-06-14T04:21:18 < zyp> zippe, what about boot1? 2012-06-14T04:21:19 < dongs> otp wont affect boootloader 2012-06-14T04:21:20 < Rickta59> then it drops me 2012-06-14T04:21:28 < zippe> Rickta59: which GDB version? 2012-06-14T04:21:41 < Rickta59> 7.3.1 2012-06-14T04:21:43 < zyp> doesn't boot1 choose between ram and bootloader when boot0 is high? 2012-06-14T04:21:43 < zippe> zyp: boot1 should be strapped from what I can tell 2012-06-14T04:21:47 < zippe> Rickta59: That's too new 2012-06-14T04:21:54 < Rickta59> it has probably been a while since i built my gcc 2012-06-14T04:22:05 < Rickta59> too new .. thats a first : ) 2012-06-14T04:22:10 < zippe> Rickta59: OpenOCD and gdb disagree violently about how many registers an "arm" device has 2012-06-14T04:22:13 < zyp> zippe, so that it starts bootloader and not ram? 2012-06-14T04:22:16 < Rickta59> i'm using the sat thing 2012-06-14T04:22:30 < zippe> Rickta59: I stopped using openocd because I got tired of patching it 2012-06-14T04:22:35 < szczys> zyp: arm-none-eabi-gcc -c stm32f0.s -o test -mcpu=cortex-m0 2012-06-14T04:22:41 < szczys> gives me some errors 2012-06-14T04:22:48 < zyp> which? 2012-06-14T04:22:56 < szczys> stm32f0.s:15: Error: selected processor does not support Thumb mode `cbz r2,done' 2012-06-14T04:22:56 < szczys> stm32f0.s:24: Error: lo register required -- `add r0,#4' 2012-06-14T04:22:56 < szczys> stm32f0.s:25: Error: lo register required -- `add r1,#4' 2012-06-14T04:22:56 < szczys> stm32f0.s:26: Error: lo register required -- `sub r2,#1' 2012-06-14T04:22:57 < zippe> They refuse to vend a machine description to gdb, so gdb falls back to some v4/v5 default behaviour I think 2012-06-14T04:23:14 < zippe> szczys: -mthumb 2012-06-14T04:23:16 < Rickta59> ic 2012-06-14T04:23:39 < szczys> zippe: same errors 2012-06-14T04:23:41 < Rickta59> * just wanted to have an option .. will just wait to see what happens 2012-06-14T04:23:45 < zippe> szczys: also -arch=armv6m 2012-06-14T04:23:55 < szczys> isn't this an armv7? 2012-06-14T04:24:06 < zippe> no 2012-06-14T04:24:10 < zippe> m0 is v6m 2012-06-14T04:24:16 < szczys> oh, anyway, same errors 2012-06-14T04:24:21 < zippe> You may need -march=armv6s-m 2012-06-14T04:24:38 < zyp> I guess the problem is that those are thumb2 instructions 2012-06-14T04:25:02 < zyp> plain thumb might not have add and subtract immediates 2012-06-14T04:25:11 -!- fishhead is now known as i8086 2012-06-14T04:25:25 < szczys> you're speaking a different language to me ;-) 2012-06-14T04:25:58 < szczys> leaving out the mcpu stuff lets it go without throwing the add and sub errors 2012-06-14T04:26:05 < szczys> but the cbz error is still there 2012-06-14T04:26:06 < zippe> szczys: I just took zyp's pastie and built it with: 2012-06-14T04:26:07 < zippe> ➜ /tmp arm-none-eabi-gcc -c -march=armv6s-m -mthumb foo.S 2012-06-14T04:26:16 -!- i8086 is now known as psufan 2012-06-14T04:26:52 < Rickta59> that doesn't work here 2012-06-14T04:26:57 < szczys> perhaps I should just try to use the OpenOCD file 2012-06-14T04:27:02 < szczys> and remap everything 2012-06-14T04:27:22 < szczys> ugh... 2012-06-14T04:28:15 < Rickta59> it is basically just doing a memcopy? 2012-06-14T04:28:47 < zyp> yes, and checking the busy flag in FLASH_SR between each word 2012-06-14T04:28:55 -!- TheSeven is now known as The_Seven 2012-06-14T04:29:27 < zyp> szczys, oh, and you might want to check how large words you are transferring 2012-06-14T04:29:56 -!- The_Seven is now known as _TheSeven_ 2012-06-14T04:30:06 < Rickta59> 0x0c is an SFR? 2012-06-14T04:30:10 < zyp> F4 supports 32-bit words in most circumstances, so that's what I do 2012-06-14T04:30:15 -!- _TheSeven_ is now known as TheSeven|Mobile 2012-06-14T04:30:18 -!- TheSeven|Mobile is now known as TheSeven|Zzz 2012-06-14T04:30:19 -!- TheSeven|Zzz is now known as TheSeven 2012-06-14T04:30:19 < zyp> SFR? 2012-06-14T04:30:26 < Rickta59> not sure what arm calls them 2012-06-14T04:30:33 < Rickta59> memory mapped register 2012-06-14T04:30:41 < Rickta59> * special function register 2012-06-14T04:30:57 < Rickta59> i was trying to figure out what 0x0c is 2012-06-14T04:31:11 < zyp> FLASH_SR is a memory mapped register, 0x0c is the offset of SR into the FLASH register block 2012-06-14T04:31:26 < Rickta59> got it thanks 2012-06-14T04:31:33 < zyp> so it starts at 0x40022000 so FLASH_SR is 0x4002200c 2012-06-14T04:33:02 < szczys> zyp: F0 must use half-words for flash write 2012-06-14T04:33:37 < zyp> then you have to change that as well 2012-06-14T04:34:01 < zyp> lines 16, 17, 24 and 25 2012-06-14T04:35:03 < zyp> oh, and since not everybody agrees on word-size I call them 32-bit words and 16-bit words :p 2012-06-14T04:35:31 < zyp> also 8-bit words and 64-bit words 2012-06-14T04:36:33 < zyp> anyway, time to go out and grab some breakfast, see you later 2012-06-14T04:39:11 < zippe> Oh goody, "startup repair"… for when Windows craps the bed and can't get going, they actually have a program that's supposed to fix it 2012-06-14T04:39:20 < zippe> Why not just … I dunno, not fail? 2012-06-14T04:40:44 -!- LawrenceSeattle [~lawrence@66.192.187.106] has quit [Quit: LawrenceSeattle] 2012-06-14T04:55:09 < dongs> flyback has a visa? 2012-06-14T05:02:20 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-06-14T05:21:10 < iR0b0t1> zippe: One does not use the unicode character for ellipses. 2012-06-14T05:24:16 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-232-149.clienti.tiscali.it] has quit [Ping timeout: 265 seconds] 2012-06-14T05:24:25 < zyp> … 2012-06-14T05:29:49 < zippe> iR0b0t1: one types three dots and lets NSTextInputWidgetThingy correctly turn them into ëllïpßeß... 2012-06-14T05:30:20 < szczys> U+2026 2012-06-14T05:30:26 < szczys> how do you use unicode here? 2012-06-14T05:30:33 < iR0b0t1> zippe: Why would you do that. 2012-06-14T05:30:39 < iR0b0t1> szczys: Just type it 2012-06-14T05:30:43 < iR0b0t1> well 2012-06-14T05:30:44 < szczys> ... 2012-06-14T05:30:46 < iR0b0t1> µ 2012-06-14T05:30:54 < szczys> I don't understand 2012-06-14T05:30:56 < iR0b0t1> ¡™£¢∞§¶•ªº–⁄€‹›fifl‡°·‚— 2012-06-14T05:31:02 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 265 seconds] 2012-06-14T05:31:47 < dongs> hackers 2012-06-14T05:31:50 < dongs> stop ruining my terminal 2012-06-14T05:32:26 < szczys> … 2012-06-14T05:32:30 < szczys> ah-ha 2012-06-14T05:32:38 < szczys> I'm not sharing my secrets 2012-06-14T05:32:45 < szczys> well… 2012-06-14T05:33:09 < szczys> in Linux just hit ctrl-shift-u, then type your four digit unicode 2012-06-14T05:33:21 < szczys> (learn something new all the time around here) 2012-06-14T05:38:11 < Rickta59> did you get it the loader working szczys? 2012-06-14T05:41:38 < zippe> iR0b0t1: It's not a question of doing; it's all automatic 2012-06-14T05:43:57 < zippe> And, wtf. Where is the windows point-and-click serial downloader for STM32? 2012-06-14T05:47:54 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-14T05:48:00 -!- [7] [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-14T06:11:34 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-14T06:14:48 < dongs> ST Flash Downloader 2012-06-14T06:15:15 < dongs> or flash loader dmemonstartor or someshti 2012-06-14T06:15:22 < dongs> http://code.google.com/p/afrodevices/downloads/detail?name=stm32-stm8_flash_loader_demo.zip&can=2&q= 2012-06-14T06:31:56 < dongs> http://i.imgur.com/6AjYa.png 2012-06-14T06:46:39 < zippe> Yeah, I got it and it seems to be happy talking to the thing 2012-06-14T06:48:59 < zippe> No apparent readout protection 2012-06-14T06:50:11 < zippe> Huh, no, I managed to nuke it somehow earlier 2012-06-14T06:50:12 < zippe> Oh well. 2012-06-14T06:57:59 < zippe> Something's working, I get a red blinking LED 2012-06-14T07:00:51 < zippe> There's supposed to be a shell or something, right? 2012-06-14T07:06:15 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-14T07:15:48 < zippe> Ah, ok. Got the wiiconf stuff running. The UI looks like ass on the latest version on OS X, but it seems to be talking and seeing the sensors. Crazy. 2012-06-14T07:34:06 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has quit [Quit: Leaving] 2012-06-14T07:42:30 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 265 seconds] 2012-06-14T08:09:58 < dongs> ~BLog 2012-06-14T08:10:24 < dongs> no, there's definitely rop. 2012-06-14T08:10:29 < dongs> you probably cleared it. 2012-06-14T08:10:38 < dongs> yes 2012-06-14T08:10:40 < dongs> shell is there too 2012-06-14T08:10:44 < dongs> connect at 115200 and hit '#' 2012-06-14T08:34:11 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32 2012-06-14T08:36:01 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-14T08:51:51 < zippe> Sorry, "rop"? 2012-06-14T08:51:59 < zippe> I got the shell, thanks. 2012-06-14T08:57:31 < zippe> I still don't get why everyone is so wild about the M0 2012-06-14T08:57:48 < zippe> If you want cheap, go Nuvoton 2012-06-14T09:00:52 < pelrun> it's more that the f0 discovery board is being given away in the us 2012-06-14T09:01:06 < pelrun> eh 2012-06-14T09:01:11 < pelrun> I wasn't eligible anyway 2012-06-14T09:01:22 < pelrun> and the m3 is stupid cheap already 2012-06-14T09:03:15 < zippe> ah, I see. You're an idiot. 2012-06-14T09:04:01 < zippe> It's OK. I was just trying to work out what had you razzed about the M0, and it's nothing that makes any sort of engineering sense. q.e.d. 2012-06-14T09:05:02 < zippe> so you want to use the M0 instead of the M3 because… someone else is too cheap? 2012-06-14T09:05:44 < zippe> You can benefit from using a chip that's been well-shaken out and understood, with a toolchain that's settled and plenty of testing time on it 2012-06-14T09:06:07 < zippe> Conversely, you win little or nothing by using the m0 2012-06-14T09:06:22 < zippe> And… you were just ranting about people penny-pinching. 2012-06-14T09:06:23 < dongs> dongle 2012-06-14T09:06:28 < dongs> zippe: rop = read out protection 2012-06-14T09:06:55 < zippe> dongs: yeah, I think that gareth's programmer got halfway through talking to the bootrom and then crapped out 2012-06-14T09:07:02 < dongs> aha heh 2012-06-14T09:07:08 < dongs> windows version worked though? 2012-06-14T09:07:11 < zippe> dongs: I'll have to give him a hard time about it 2012-06-14T09:07:13 < zippe> yeah 2012-06-14T09:07:33 < zippe> I need a version of the GUI that doesn't blow heaving chunks though 2012-06-14T09:08:17 < zippe> But right now I'm going to bed with some Balvenie doublewood to chase away the STM32 I2C horrors 2012-06-14T09:08:32 < zippe> I can't believe I signed up to write an i2c slave handler 2012-06-14T09:08:50 < dongs> hoho 2012-06-14T09:08:57 < dongs> bitbanging it? 2012-06-14T09:09:10 < dongs> i would feer a bitbanged i2c slave. 2012-06-14T09:09:14 < zippe> No, I can't spare the cycles for that 2012-06-14T09:09:24 < dongs> there's a beta of mw-wingui 2012-06-14T09:09:27 < dongs> that's .net written 2012-06-14T09:09:33 < dongs> that works wiht the new protocol 2012-06-14T09:09:39 < dongs> a huge step-up from java trash. 2012-06-14T09:09:48 < dongs> otherwise, most settings are settable via console. 2012-06-14T09:09:57 < zippe> Yeah, I was waiting for Winders in my VM to finish downloading porn or whatever it does when it's "installing required updates" 2012-06-14T09:10:39 < dongs> time to program dicknplace again 2012-06-14T09:11:22 < dongs> its dick-n-place cuz you gott dick with it so much for a new project 2012-06-14T09:11:26 < dongs> but once its done, then its pretty quick 2012-06-14T09:11:49 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Read error: Connection reset by peer] 2012-06-14T09:11:57 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-14T09:14:44 < zippe> maybe if I give the VM 4GB it will be quicker 2012-06-14T09:22:33 < zippe> dongs: Hmm, looks like the sensors may be wired differently 2012-06-14T09:22:44 < dongs> rusure 2012-06-14T09:22:51 < dongs> diff adc channels? 2012-06-14T09:22:55 < zippe> Yeah 2012-06-14T09:23:09 < zippe> I have the mw-wingui UI up, looking at the sensor numbers 2012-06-14T09:23:25 < zippe> Not sure what full scale should be, but they definitely respond wrong 2012-06-14T09:23:34 < dongs> oh, scalefactor is probably wrong 2012-06-14T09:23:39 < dongs> but are they responding correctly to movement? 2012-06-14T09:24:05 < zippe> No 2012-06-14T09:24:06 < dongs> http://bcas.tv/paste/results/hi4SYa27.html 2012-06-14T09:24:08 < dongs> i.e. shit like this 2012-06-14T09:24:11 < zippe> channel assignment seems wrong 2012-06-14T09:24:50 < dongs> same applies for acc 2012-06-14T09:25:48 < zippe> Yeah, still working out what it "should" be like. Ok, so accel actually seems ON 2012-06-14T09:25:50 < zippe> er, OK 2012-06-14T09:26:09 < zippe> 1G reads as about 375 "units" on the Z axis when flat on the table 2012-06-14T09:26:16 < dongs> right. the rate units are totally wrong. 2012-06-14T09:26:18 < dongs> thats where you come in :) 2012-06-14T09:26:28 < dongs> there's acc_1G which you can set 2012-06-14T09:26:31 < zippe> The artificial horizon widget is all kinds of messed up 2012-06-14T09:26:44 < dongs> did you move the stuff while powering it up 2012-06-14T09:26:58 < dongs> it needs to sit perfectly still for the first few seconds while you powert it up 2012-06-14T09:27:05 < dongs> or else gyro offsets will be all wrong 2012-06-14T09:27:35 < zippe> ah, hard to do with this pile of wire on the dsk 2012-06-14T09:27:57 < dongs> if you want to update to R164 2012-06-14T09:28:03 < dongs> i added gyro cal while acc cal 2012-06-14T09:28:10 < dongs> so you can hit htat acccal button and zero out offsets 2012-06-14T09:28:22 < dongs> before it could only be done by stick combo 2012-06-14T09:28:28 < dongs> which is kinda annoying if youre just testing 2012-06-14T09:31:31 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-14T09:31:32 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Read error: Connection reset by peer] 2012-06-14T09:31:48 < zippe> Is the hex in the object directory prebuilt, or should I build my own? 2012-06-14T09:32:16 < dongs> prebuilt from latest 2012-06-14T09:32:19 < zippe> Ok 2012-06-14T09:32:24 < dongs> you could just use it , it "should" work. 2012-06-14T09:35:44 < zippe> seems to 2012-06-14T09:36:04 < zippe> Ok, so accel cal seemed to DTRT, but the gyro numbers are still wild 2012-06-14T09:36:17 < zippe> 426, 426, 415 2012-06-14T09:39:06 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Read error: Connection reset by peer] 2012-06-14T09:39:23 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-14T09:39:28 < dongs> this is using prebuilt hex? 2012-06-14T09:39:41 < zippe> Yes 2012-06-14T09:39:52 < zippe> With the module clamped to the desk during powerup 2012-06-14T09:40:04 < dongs> I think i might have fucked up the gyro stuff as I had to fix it in digital sensor version. not sure if I rebuilt FY version. lemme up a new build 2012-06-14T09:40:12 < zippe> sure 2012-06-14T09:40:28 < zippe> Anything to avoid thinking about I2C error handling 2012-06-14T09:40:32 < dongs> lo 2012-06-14T09:40:38 < dongs> ok try it out, r165 2012-06-14T09:40:47 < dongs> the 4xx gyro sounds like default zero/idle offset 2012-06-14T09:40:49 < dongs> since they're analog 2012-06-14T09:40:56 < dongs> but I had a bug in offset removal that I took out in164 2012-06-14T09:42:48 < zippe> ug, Microsoft says YOU MUST REBOOT NOW 2012-06-14T09:42:53 < dongs> lfao 2012-06-14T09:42:59 < dongs> stop hogging upo usb port 2012-06-14T09:43:20 < zippe> Na, I have't run this VM in months 2012-06-14T09:43:26 < zippe> So everything is apeshit about updating 2012-06-14T09:43:34 < zippe> oh noes, your viruses are out of date 2012-06-14T09:43:40 < zippe> oh noes, your cookies are out of date 2012-06-14T09:43:57 < zippe> oh noes, ATi Catalyst doesn't support your VM, must download a new version just in case that does 2012-06-14T09:44:48 < zippe> oh noes, 49 critical windows updates and 171 important updates including eight new icon packs and twelve sound themes 2012-06-14T09:44:51 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 244 seconds] 2012-06-14T09:45:09 < dongs> or yo0u could just use windows, problem solved.. 2012-06-14T09:47:17 < zippe> Yeah…. no 2012-06-14T09:47:23 < zippe> Meanwhile, looks like that fixed it 2012-06-14T09:48:00 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-14T09:48:03 < zippe> Which GPS units does it support? 2012-06-14T09:49:29 < zippe> Oh, heh. the mw-wingui has some serious artificial horizon fail going on 2012-06-14T09:50:33 < zippe> Anyway. You wanted some numbers from me? 2012-06-14T09:59:38 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-14T10:24:50 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has left ##stm32 [] 2012-06-14T10:35:13 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-14T10:39:52 < dongs> yes 2012-06-14T10:40:06 < dongs> there are comments in fy_adc.c 2012-06-14T10:40:25 < dongs> the adc readings need to be converted (linear) to whatever lsb/dps 2012-06-14T10:40:30 < dongs> for gyro and whatever for acc 2012-06-14T10:41:22 < dongs> the numbers are there, but im too dumb to calculate them 2012-06-14T10:46:26 -!- Laurenceb_ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has joined ##stm32 2012-06-14T11:02:59 -!- Laurenceb_ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has quit [Ping timeout: 244 seconds] 2012-06-14T11:21:48 < dongs> dick-n-place: complete 2012-06-14T11:38:34 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer] 2012-06-14T11:49:12 < Tectu> dongs, status 2012-06-14T11:59:21 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has joined ##stm32 2012-06-14T11:59:21 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has quit [Changing host] 2012-06-14T11:59:21 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32 2012-06-14T12:12:59 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-06-14T12:28:35 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-14T12:30:02 < Tectu> some STM32 do have "direct USB" right? where you can just route the USB plug to the STM32 with two resistors, right? 2012-06-14T12:30:28 < Tectu> my development board has some chip (CH376T) which is connected over SPI1 to my STM32F103... what is that for? 2012-06-14T12:31:41 < Tectu> ah, that's for host USB, g guess 2012-06-14T12:31:43 < Tectu> I guess* 2012-06-14T12:31:55 < Tectu> the other USB port is directly connected to USB_DM and USB_DP 2012-06-14T12:38:49 -!- dekar [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep] 2012-06-14T12:49:26 -!- Kevin` [~kevin@router.kwzs.be] has quit [Ping timeout: 246 seconds] 2012-06-14T12:53:02 < Laurenceb> hmm this makes no sense 2012-06-14T12:53:11 < Laurenceb> VDDA is fine on my F4 2012-06-14T12:55:29 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-232-149.clienti.tiscali.it] has joined ##stm32 2012-06-14T12:57:33 < Laurenceb> Successfully loaded flash loader in sram 2012-06-14T12:57:33 < Laurenceb> size: 6808 2012-06-14T12:57:33 < Laurenceb> run error 2012-06-14T12:57:33 < Laurenceb> 2012-06-14T10:56:17 WARN src/stlink-common.c: run_flash_loader(0x8000000) failed! == -1 2012-06-14T13:06:58 < dongs> Tectu: nice chink usb chip 2012-06-14T13:07:17 < dongs> its usb host/device, you can plug in USB memory s tick to it and access from mcu via spi 2012-06-14T13:09:01 < dongs> i might actually find a use for that here. 2012-06-14T13:09:05 < dongs> for some led lighting shit 2012-06-14T13:10:17 < Laurenceb> gdb says its at 0x01000000 2012-06-14T13:10:18 < Laurenceb> wtf 2012-06-14T13:10:41 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-14T13:10:52 < dongs> u hacve been hacked 2012-06-14T13:10:58 < dongs> by chiense 2012-06-14T13:14:45 < karlp> dongs: some aftermath of that jeep picture here: http://www.jeppaspjall.is/viewtopic.php?f=9&p=59055 2012-06-14T13:14:55 < karlp> (scroll down a bit) 2012-06-14T13:15:15 < dongs> yea i know one of hte .is guys who is doing that shit 2012-06-14T13:15:45 < dongs> haha @ pitch/roll meters 2012-06-14T13:26:05 < Laurenceb> what the fuuuuuuu 2012-06-14T13:26:14 < Laurenceb> texane was holding reset low 2012-06-14T13:26:17 < Laurenceb> works now 2012-06-14T13:26:21 < Laurenceb> epic wtf 2012-06-14T13:26:50 < Laurenceb> i unsoldered nrsty 2012-06-14T13:27:36 < dongs> stop using that shit you troll 2012-06-14T13:29:46 < karlp> works for everyone but Laurenceb too :) 2012-06-14T13:30:21 * karlp is a .is guy, but my jeep is only on 32" 2012-06-14T13:30:32 < karlp> still early for me to be on some of those roads 2012-06-14T13:35:51 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-14T13:35:54 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-14T13:36:59 <+Steffanx> nu 2012-06-14T13:40:17 < Tectu> dongs, is it "hard" to use that usb chip? 2012-06-14T13:40:27 < Laurenceb> where do you configure the mcu in chibios? 2012-06-14T13:40:41 < Tectu> Laurenceb, in Makefile there is the included LD file 2012-06-14T13:40:45 < Tectu> search for *ld 2012-06-14T13:40:50 < Laurenceb> ah 2012-06-14T13:40:55 < Tectu> *.ld should work 2012-06-14T13:41:01 < Tectu> somewhere at line 50 i guess 2012-06-14T13:42:00 < dongs> Tectu: I would imagine 10x easier than dealing with being a usb host/device/parsing fatfs/sd/usb sticks/etc 2012-06-14T13:42:28 < Laurenceb> ok thanks 2012-06-14T13:42:38 < Laurenceb> hmm chibios doesnt want to run off HSI ? 2012-06-14T13:42:43 < Laurenceb> giving compile error 2012-06-14T13:42:48 < dongs> isnt chibios shit 2012-06-14T13:42:50 < dongs> why ar you using it 2012-06-14T13:42:55 < Laurenceb> #error "HSE not enabled, required by STM32_SW and STM32_PLLSRC" 2012-06-14T13:43:27 < Tectu> Laurenceb, take a look to halconfig.h mcuconfig.h and chconfig.h 2012-06-14T13:43:33 < Laurenceb> ok 2012-06-14T13:44:47 < Laurenceb> hmm thats what i edited 2012-06-14T13:45:04 < Laurenceb> i want to run off HSI 2012-06-14T13:45:53 < Tectu> did you take a demo like I said or tried to write the whole thing up yourself? 2012-06-14T13:47:39 < Laurenceb> took the discovery demo 2012-06-14T13:47:53 < Laurenceb> it loads now but wont run 2012-06-14T13:48:00 < Laurenceb> as it needs an xtal 2012-06-14T13:49:17 < Tectu> wtf dude 2012-06-14T13:49:21 < Tectu> discovery demos cannot not run 2012-06-14T13:49:26 < Tectu> you're doing it wrong! 2012-06-14T13:49:38 < dongs> he is always doing things wrong :p 2012-06-14T13:51:09 < Laurenceb> the demo needs an external xtal 2012-06-14T13:51:18 <+Steffanx> I don't think you have to help him to remember that dongs :P 2012-06-14T13:57:23 < Laurenceb> http://images.huffingtonpost.com/2012-02-26-variouscanonphotosOct06275.jpg 2012-06-14T13:57:30 < Laurenceb> that you dongs? 2012-06-14T13:58:38 <+Steffanx> Laurenceb doesn't like the truth :P 2012-06-14T14:01:30 < Tectu> dongs, awesome how you don't find anything related to that chip 2012-06-14T14:01:44 < Tectu> Laurenceb, discovery demo runs on discovery board. 2012-06-14T14:01:44 <+Steffanx> zlog 2012-06-14T14:01:44 < zlog> Steffanx: Log stored at http://tom-itx.dyndns.org:81/~tom-itx/irc/logs/%23%23stm32/2012-06-14.html 2012-06-14T14:02:04 < Laurenceb> Tectu: sure 2012-06-14T14:02:16 < Laurenceb> i want to run on my board 2012-06-14T14:02:32 < Tectu> and now you want HSI? 2012-06-14T14:02:50 < Tectu> go to mcuconf.h 2012-06-14T14:03:02 < Tectu> set HSE_ENABLED FALSE 2012-06-14T14:03:10 < Tectu> makse sure HSI_ENABLED is TRUE 2012-06-14T14:03:14 < Tectu> there you go 2012-06-14T14:04:46 < dongs> Tectu: first google link is a pdf. 2012-06-14T14:05:00 < Tectu> i am reading that dongs 2012-06-14T14:05:04 < Tectu> awesome how there isn't anymore than that 2012-06-14T14:05:15 < dongs> thre is 2012-06-14T14:05:19 < dongs> its on manufacturer's site 2012-06-14T14:05:21 < dongs> wch.cn or whatever 2012-06-14T14:05:38 < dongs> Tectu: did that shit come wiht your waveshare kit 2012-06-14T14:05:38 <+Steffanx> I'm sure it's not whatever 2012-06-14T14:05:46 <+Steffanx> As 'whatever' isn't a valid domain 2012-06-14T14:05:50 < Tectu> why cant asian people use readable letters like the rest of the fucking world 2012-06-14T14:06:07 < Tectu> dongs, yep, directly soldered on the board, that biatch 2012-06-14T14:06:19 <+Steffanx> Tectu life is hard isn't it? 2012-06-14T14:06:27 < Tectu> Steffanx, no here 2012-06-14T14:06:39 < dongs> i might have to buy it from them next time 2012-06-14T14:06:45 < dongs> i got a useless usb3300 breakout from them 2012-06-14T14:06:47 < dongs> after making my own 2012-06-14T14:06:52 < Laurenceb> ./ChibiOS/os/hal/platforms/STM32F4xx/hal_lld.h:875:2: error: #error "HSE not enabled, required by STM32_SW and STM32_PLLSRC" 2012-06-14T14:06:54 < dongs> and theirs has more feautres 2012-06-14T14:07:46 < Tectu> dongs, looks like that biatch is to use as easy as taking a crap 2012-06-14T14:08:08 < Tectu> awesome no-sense sentense 2012-06-14T14:08:24 <+Steffanx> :) 2012-06-14T14:08:38 < dongs> takin a crap is pretty easy where im from 2012-06-14T14:08:52 < Tectu> dongs, that's what i am saying... 2012-06-14T14:09:02 < Tectu> chip just got some registers where you write in some values 2012-06-14T14:09:06 < Tectu> and read out some other registers 2012-06-14T14:09:08 < Tectu> finished. 2012-06-14T14:16:02 < Laurenceb> arg wtf 2012-06-14T14:16:16 < Laurenceb> i need to change the pll settings 2012-06-14T14:16:21 < Laurenceb> thats the problem 2012-06-14T14:16:44 < Laurenceb> how should i change M,N,P,Q ? 2012-06-14T14:18:51 < dongs> use the excel tool?? 2012-06-14T14:19:24 < Tectu> dongs, w00t? 2012-06-14T14:19:27 < Laurenceb> ewww 2012-06-14T14:19:46 < dongs> wat 2012-06-14T14:23:21 < Laurenceb> it wont run 2012-06-14T14:30:00 < Laurenceb> ha it runs 2012-06-14T14:30:09 < Laurenceb> used datasheet to work out pll settings 2012-06-14T14:31:15 < Laurenceb> but systick is way too fast 2012-06-14T14:32:26 < Tectu> dongs, USB OTG cannot handle USB sticks 'nd shit? 2012-06-14T14:34:18 < Laurenceb> wait no its running correctly 2012-06-14T14:34:24 < Laurenceb> but gpio is being weird 2012-06-14T14:34:37 < dongs> Tectu: of course it ca n but then you have to handle all teh shit 2012-06-14T14:34:52 < Laurenceb> how do you init gpio in chibios? 2012-06-14T14:35:22 < Tectu> dongs, is that CH376 shit used often? don't find any european distributor 2012-06-14T14:35:29 < Tectu> Laurenceb, you don't 2012-06-14T14:35:34 < Tectu> Laurenceb, take a look to the board files 2012-06-14T14:35:38 < Laurenceb> http://pastebin.com/XiEUQyFK 2012-06-14T14:35:40 < Tectu> board.h/board.c 2012-06-14T14:36:20 < Laurenceb> oh crap 2012-06-14T14:36:31 < Laurenceb> this is more complex than it looks 2012-06-14T14:36:45 < dongs> Tectu: its 100% chink shit. 2012-06-14T14:36:53 < dongs> i asked my suppliers about it, im sure waveshare will sell it to you as well 2012-06-14T14:37:17 < Tectu> dongs, does that shit work properly or is it just some half-working shit copy clone of some else shit? 2012-06-14T14:37:25 < dongs> they generaly work 2012-06-14T14:37:29 < Tectu> Laurenceb, it's not, when you see through it 2012-06-14T14:37:30 < dongs> they have a clone of ftdi 2012-06-14T14:37:31 < dongs> lol 2012-06-14T14:37:34 < dongs> usb>serial 2012-06-14T14:37:43 < Tectu> lol 2012-06-14T14:37:50 < Tectu> Laurenceb, you should read documentation first. 2012-06-14T14:37:51 < Laurenceb> so i need board.c and .h ? 2012-06-14T14:38:16 < Tectu> Laurenceb, damn boy, read documentation 2012-06-14T14:38:20 < Tectu> Laurenceb, inside your makefile 2012-06-14T14:38:24 < Tectu> arround line +60 2012-06-14T14:38:41 < Tectu> there is some include=$(CHIBIOS)/boards/foooo/board.mk 2012-06-14T14:38:44 < Tectu> go to that directory 2012-06-14T14:38:49 < Tectu> open the board.h file 2012-06-14T14:38:55 < Tectu> configure your pins 2012-06-14T14:39:38 < Tectu> i recommend to write a board file up from scratch for your board 2012-06-14T14:39:40 < Tectu> isn't that hard 2012-06-14T14:39:49 < Tectu> takes 1 hour, everything works from now on 2012-06-14T14:40:10 < dongs> whyt do pepople use chibios anyway 2012-06-14T14:40:13 < dongs> its too bloated 2012-06-14T14:40:23 < Tectu> dongs, because it works 2012-06-14T14:40:28 < Tectu> at least sometimes.... 2012-06-14T14:40:29 < dongs> apparently it doesn't 2012-06-14T14:40:34 < Tectu> and it's open sauce 2012-06-14T14:40:34 < dongs> or else Laurenceb wouldnt be having all this trouble 2012-06-14T14:40:42 < karlp> laurence always has problems though 2012-06-14T14:40:44 < Tectu> he just didn't read documentation 2012-06-14T14:40:52 < Tectu> karlp, can't say that i don't ;-) 2012-06-14T14:41:06 < Tectu> i mostly just run into stupid problems 2012-06-14T14:41:08 < Laurenceb> heh 2012-06-14T14:41:13 < Laurenceb> i thought it was simple 2012-06-14T14:41:16 < Laurenceb> its not 2012-06-14T14:41:21 < Tectu> Laurenceb, it is! 2012-06-14T14:41:22 < Tectu> i use it 2012-06-14T14:41:25 < Tectu> it is very simple 2012-06-14T14:41:29 < Tectu> just read the documentation 2012-06-14T14:41:34 < Tectu> takes one hour, then you do whatever you want 2012-06-14T14:42:39 < Laurenceb> k 2012-06-14T14:42:52 < Laurenceb> im going to molest children 2012-06-14T14:43:06 < karlp> as long as you read the docs first :) 2012-06-14T14:43:09 < Laurenceb> ok 2012-06-14T14:43:23 < Tectu> haha 2012-06-14T14:43:36 < Tectu> karlp, sounds like you make fun of me? 2012-06-14T14:43:59 * Laurenceb is lolling at apples pcbs 2012-06-14T14:44:03 < karlp> no, I was using your joke :) 2012-06-14T14:44:10 < Laurenceb> wonder how much time they spent making it all the same color 2012-06-14T14:44:26 < Tectu> Laurenceb, what the hell do you mean? 2012-06-14T14:44:29 < Tectu> the children? 2012-06-14T14:44:32 < Tectu> or the documentation 2012-06-14T14:44:37 < karlp> Laurenceb: what do you mean, all the same colour? aren't most pcbs all the same colour? 2012-06-14T14:45:12 < Laurenceb> http://cdn.macrumors.com/article-new/2012/06/retina_macbook_pro_teardown.jpg 2012-06-14T14:50:18 < Tectu> Laurenceb, how's it going with the children? having trouble? 2012-06-14T14:50:37 < Laurenceb> lolo 2012-06-14T14:53:33 < Laurenceb> do i have to define all the pins? 2012-06-14T14:53:55 < Laurenceb> VAL_GPIOC_MODER <- what if its zero? 2012-06-14T14:55:56 < Tectu> read the documentation 2012-06-14T14:56:07 < Tectu> seriously, I'd help you if i'd have time 2012-06-14T14:56:10 < Tectu> but i don't i am sorry 2012-06-14T14:56:26 < Tectu> and there is pretty pretty pretty everything documented INSIDE the board.h file :( 2012-06-14T15:03:17 -!- dekar [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has joined ##stm32 2012-06-14T15:03:21 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-14T15:13:53 < Laurenceb> running 2012-06-14T15:13:57 < Laurenceb> thanks for the help 2012-06-14T15:14:05 < Laurenceb> you a thread running a flashing led now 2012-06-14T15:14:48 < Tectu> aye 2012-06-14T15:14:50 < Tectu> enjoy 2012-06-14T15:16:19 < Laurenceb> oops fried it 2012-06-14T15:21:45 < Tectu> hope you do better with your girlfriend 2012-06-14T15:23:16 < Laurenceb> top of the F4 blew right off 2012-06-14T15:23:20 < dongs> wat 2012-06-14T15:23:23 < dongs> pics or it didnt happen 2012-06-14T15:23:36 < Laurenceb> when i plugged it into USB 2012-06-14T15:23:40 < dongs> pics 2012-06-14T15:23:53 < Laurenceb> dont have a decent camera 2012-06-14T15:24:02 < Laurenceb> section of the top came off exposing the die 2012-06-14T15:24:22 < dongs> did you overclock the pll to over 9000mhz? 2012-06-14T15:24:29 < Laurenceb> lol 2012-06-14T15:24:37 < Laurenceb> i have VBus going to portA 2012-06-14T15:24:44 < Laurenceb> but thats meant to happen right? 2012-06-14T15:25:05 < karlp> PICS! 2012-06-14T15:25:33 < dongs> go bum a kawaii cellphone from some girl at your .edu 2012-06-14T15:25:37 < dongs> and take a pic 2012-06-14T15:25:40 < Tectu> pic 2012-06-14T15:25:47 < Tectu> (had the same with my STM32VL) 2012-06-14T15:25:51 < Tectu> well, not really 2012-06-14T15:25:56 < Tectu> just diode fucked up 2012-06-14T15:26:18 < Tectu> was some manufacuturing fail, i guess 2012-06-14T15:26:39 < Laurenceb> OTG_FS_VBUS 2012-06-14T15:26:44 < Laurenceb> is portA-9? 2012-06-14T15:27:09 < Laurenceb> ive tied it to VBUS 2012-06-14T15:27:12 < Laurenceb> is that bad? 2012-06-14T15:27:38 < Tectu> hopefully you don't tie up your girlfriend the wrong way 2012-06-14T15:31:32 < Laurenceb> fig 343 2012-06-14T15:31:33 < Laurenceb> wtf 2012-06-14T15:35:19 < Laurenceb> ill desolder the stm and try again 2012-06-14T15:35:26 <+Steffanx> Yeah, we need pics ! 2012-06-14T15:37:33 <+Steffanx> No camera on your phone Laurenceb ? 2012-06-14T15:37:39 <+Steffanx> That will work this time 2012-06-14T15:39:16 < Laurenceb> its actually not too bad 2012-06-14T15:39:31 < Laurenceb> small section of plastic blew off around the F of F405 2012-06-14T15:40:24 < Laurenceb> looks like the VREg is bad 2012-06-14T15:41:01 <+Steffanx> Still nice too see a photo of that 2012-06-14T15:41:31 <+Steffanx> For LaurencebsExperienceWithSTM32.com 2012-06-14T15:43:26 < Laurenceb> its clusterfucked 2012-06-14T15:43:44 < Laurenceb> whole board is fried 2012-06-14T15:43:46 < BrainDamage> you can use a lens in front of the camera if your phone can't focus 2012-06-14T15:43:58 < BrainDamage> like magnifying glass 2012-06-14T15:45:06 <+Steffanx> Laurenceb ^^ 2012-06-14T16:02:55 <+Steffanx> Laurenceb, I have a new idea for a kickstarter project .. 2012-06-14T16:03:06 <+Steffanx> So we can buy you a camera :) 2012-06-14T16:03:31 < Tectu> I don't know why, but i feel like saying this: I like sex 2012-06-14T16:03:38 <+Steffanx> I mean, people donate for a new camera for you (and get photos from your project in return) 2012-06-14T16:03:48 <+Steffanx> Tectu .. grow up :) 2012-06-14T16:04:17 < Tectu> Steffanx, yes, i think the same 2012-06-14T16:06:08 <+Steffanx> Don't hurt your brains 2012-06-14T16:07:12 < Tectu> I am sorry, Steffanx :( 2012-06-14T16:07:14 < Laurenceb> fuuuuu 2012-06-14T16:07:18 < Laurenceb> usb is reversed 2012-06-14T16:07:36 <+Steffanx> Reversed? 2012-06-14T16:08:29 < Laurenceb> yes 2012-06-14T16:08:34 <+Steffanx> How so? 2012-06-14T16:08:42 <+Steffanx> What is reversed? 2012-06-14T16:08:44 < Laurenceb> 1,2,3,4 is 4,3,2,1 2012-06-14T16:08:53 <+Steffanx> Ha 2012-06-14T16:09:05 <+Steffanx> I mean, sorry to hear 2012-06-14T16:09:07 < BrainDamage> try flipping the connector 2012-06-14T16:09:10 < Laurenceb> hacksaw time 2012-06-14T16:09:41 <+Steffanx> BrainDamaged 2012-06-14T16:10:36 < BrainDamage> Steffane 2012-06-14T16:19:35 <+dekar> where's the pic? 2012-06-14T16:20:36 <+Steffanx> It did not happen dekar 2012-06-14T16:25:24 < pelrun_> aaargh 2012-06-14T16:25:34 < pelrun_> can't get this damn serial rx code working 2012-06-14T16:26:41 < pelrun_> the rxie interrupt only seems to fire once after I continue from a breakpoint 2012-06-14T16:26:53 < pelrun_> if I'm free running it doesn't trigger at all 2012-06-14T16:26:59 < pelrun_> pretty sure I'm clearing the bit 2012-06-14T16:31:22 -!- cjbaird [~cjb@ppp121-44-30-62.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-14T16:38:39 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-232-149.clienti.tiscali.it] has quit [Remote host closed the connection] 2012-06-14T16:38:55 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-232-149.clienti.tiscali.it] has joined ##stm32 2012-06-14T16:56:44 < Laurenceb> nice 2012-06-14T16:56:50 < Laurenceb> just made a new pcb, it works 2012-06-14T16:57:00 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-14T17:14:52 < karlp> where do you make your pcbs? 2012-06-14T17:14:55 < karlp> that was quick :) 2012-06-14T17:26:42 <+Steffanx> Yeah, how you do that so fast Laurenceb ? 2012-06-14T17:26:49 <+Steffanx> hobby bobby etched pcb? 2012-06-14T17:27:01 < Laurenceb> i have 20 pcbs 2012-06-14T17:27:10 < Laurenceb> *i have 19 pcbs 2012-06-14T17:27:13 <+Steffanx> Yeah, but 'new' pcb .. 2012-06-14T17:27:23 < Laurenceb> as in i populated one 2012-06-14T17:27:30 < Laurenceb> with connector upside down 2012-06-14T17:27:32 <+Steffanx> So an old board with new components :) 2012-06-14T17:28:26 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-06-14T17:30:51 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Read error: Connection reset by peer] 2012-06-14T17:30:59 < Laurenceb> lol my boss just showed up 2012-06-14T17:31:06 < Laurenceb> hes going mental 2012-06-14T17:31:15 <+Steffanx> ? 2012-06-14T17:31:16 < Laurenceb> 2 people quit yesterday 2012-06-14T17:31:24 < Laurenceb> now down to 3 staff 2012-06-14T17:32:17 < Laurenceb> but ill have someone from Albania to keep me company from next week 2012-06-14T17:32:23 < Laurenceb> not sure if that is good ro bad 2012-06-14T17:32:44 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-14T17:32:55 <+Steffanx> Hehe 2012-06-14T17:33:08 <+Steffanx> Two quit .. things are going bad? 2012-06-14T17:33:22 < Laurenceb> i dont know 2012-06-14T17:33:33 < Laurenceb> everyone round here is a looser it seems 2012-06-14T17:33:41 < Laurenceb> main leisure activity is WOW 2012-06-14T17:35:49 <+Steffanx> Almost sounds like the company i work for 2012-06-14T17:38:30 <+Steffanx> You work fulltime for them Laurenceb ? 2012-06-14T17:39:16 < Laurenceb> im a sponsored PhD student 2012-06-14T17:39:29 < Laurenceb> yeah fulltime 2012-06-14T17:40:48 < Laurenceb> so first guy quit because "yesterday you compained when i turned up for work at 2pm... its all too much for me to take" 2012-06-14T17:41:03 < Laurenceb> dont know about the second 2012-06-14T17:49:04 <+Steffanx> Nice colleagues .. 2012-06-14T17:49:22 < Laurenceb> funniest part is when we dismantled his PC in front of boss 2012-06-14T17:49:47 < Laurenceb> inside it says "FUCK OFF THIEVING CUNT" 2012-06-14T17:50:06 < Laurenceb> cuz he was obsessed that someone planned to steal his graphics card 2012-06-14T17:52:35 < pelrun_> geez 2012-06-14T17:52:43 < pelrun_> I turn up for work after 3pm every day 2012-06-14T17:52:59 < pelrun_> it's now 1am :D 2012-06-14T17:53:02 <+Steffanx> And leave .. 3am? 2012-06-14T17:53:18 < pelrun_> that happens rather a lot 2012-06-14T17:53:20 < pelrun_> I love this job 2012-06-14T17:53:25 <+Steffanx> this = ? 2012-06-14T17:53:41 < pelrun_> oh, doing embedded dev stuff for a friend's company 2012-06-14T17:54:14 < pelrun_> I find it impossible to actually be awake between 9am and midday 2012-06-14T17:54:22 < pelrun_> which plays havoc with a standard office job 2012-06-14T17:54:35 < pelrun_> even if I get 10+ hours of sleep the night before 2012-06-14T17:54:42 < pelrun_> silly sleep disorders 2012-06-14T17:55:18 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Remote host closed the connection] 2012-06-14T17:56:33 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-14T18:06:57 < dongs> coding lame 8051 shit 2012-06-14T18:07:11 < zyp> sounds lame 2012-06-14T18:07:19 -!- izua [~izua@79.115.171.95] has joined ##stm32 2012-06-14T18:07:19 -!- izua [~izua@79.115.171.95] has quit [Changing host] 2012-06-14T18:07:19 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-14T18:07:22 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-14T18:07:49 < dongs> very much so 2012-06-14T18:08:07 <+Steffanx> Isn't lame your second name? 2012-06-14T18:09:38 < dongs> yes 2012-06-14T18:10:27 <+Steffanx> At least we know something more about you now 2012-06-14T18:12:20 <+Steffanx> Man, i should change my nick to "MrOffTopic" :P 2012-06-14T18:14:08 < Laurenceb> is NRST supposed to work with texane and F4? 2012-06-14T18:14:19 <+Steffanx> pass 2012-06-14T18:15:02 <+Steffanx> Can't you get some decent tools from your boss Laurenceb ? 2012-06-14T18:15:10 < Laurenceb> lol 2012-06-14T18:15:29 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-14T18:16:33 <+Steffanx> I guess that's a 'no'? 2012-06-14T18:17:47 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-14T18:18:22 < Laurenceb> wtf 2012-06-14T18:18:30 < Laurenceb> no usb support in chibios for f4 2012-06-14T18:18:37 <+Steffanx> Ha 2012-06-14T18:18:50 < Laurenceb> that sucks massively 2012-06-14T18:19:38 < karlp> nrst from the swd header on the discovery board? 2012-06-14T18:19:49 < karlp> probably not, it's a feature of the stlink2 only, 2012-06-14T18:20:00 < karlp> and I don't remember seeing anyone add any special support for it yet. 2012-06-14T18:20:21 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has left ##stm32 [] 2012-06-14T18:20:32 < karlp> openocd has a few extra commands decoded, but you'd have to decided when you wanted to do anything with the pin too. 2012-06-14T18:20:33 < Laurenceb> its odd 2012-06-14T18:20:39 < Laurenceb> my F1 board runs fine 2012-06-14T18:20:49 < Laurenceb> but F4 needs NRST disconnecting 2012-06-14T18:20:49 < karlp> f1 has been around a lot longer, and had more people work on it :) 2012-06-14T18:25:44 < GargantuaSauce> speaking of chibios on the f4, are the sleep functions supposed to be somewhat precisely timed? 2012-06-14T18:26:08 < GargantuaSauce> because i am trying to naively do hobby servo timing and only seem to be getting ~ms precision 2012-06-14T18:26:38 <+Steffanx> Hobby servo timing? 2012-06-14T18:26:49 < GargantuaSauce> "pwm" where the pulse is between 1 and 2 ms 2012-06-14T18:26:49 <+Steffanx> Why you don't use a real timer? 2012-06-14T18:27:00 <+Steffanx> Which is designed for things like this 2012-06-14T18:27:00 < GargantuaSauce> hence the "naively" 2012-06-14T18:27:06 < GargantuaSauce> will try a real solution next :P 2012-06-14T18:27:32 <+izua> did you forget to have the sum of delays constant to 1/50Hz 2012-06-14T18:27:39 < GargantuaSauce> nope 2012-06-14T18:27:57 <+izua> because if you put a pulse of 1ms and then for one clock cycle have the line at 0, and then another 1ms pulse, it doesn't really count 2012-06-14T18:28:07 <+izua> you have to 'fill the gap' to 20ms 2012-06-14T18:28:45 < GargantuaSauce> it's not THAT naive an implementation 2012-06-14T18:28:45 <+izua> well then, make sure tha t_off + t_on = 20ms 2012-06-14T18:28:46 < pelrun_> or you run 8+ channels at once and cycle between them 2012-06-14T18:29:11 * pelrun_ wrote a 12+ channel ppm/pwm input and combined output thingy on the f1 2012-06-14T18:29:21 < GargantuaSauce> yeah this will be 18 eventually 2012-06-14T18:29:25 <+izua> you have a lot of timers on it dude 2012-06-14T18:29:32 < GargantuaSauce> yeah I'll use those next 2012-06-14T18:29:33 <+izua> why waste cycles in software? 2012-06-14T18:29:34 < pelrun_> you only need one 2012-06-14T18:29:46 < GargantuaSauce> because i was pissing around :P 2012-06-14T18:29:51 * pelrun_ is using TIM2 only 2012-06-14T18:29:53 < GargantuaSauce> will do it properly next...thanks 2012-06-14T18:29:54 < GargantuaSauce> gotta run 2012-06-14T18:30:05 <+izua> pelrun_: my best approach to software pwm was using a sorted array of timestamps + masks structs 2012-06-14T18:30:27 < pelrun_> I don't really bother with sorted timestamps 2012-06-14T18:30:31 <+izua> you could toggle all or just a single channel in constant time, every time the software pwm counted up 2012-06-14T18:30:38 <+izua> you could also sort them, i guess :P 2012-06-14T18:30:59 < pelrun_> it's not really needed for rc stuff; each channel is handled sequentially so you just update the output capture for the length of the next channel 2012-06-14T18:31:32 <+izua> that works for 10 channels or so 2012-06-14T18:31:55 < pelrun_> or more, if you don't mind your update rate dropping slightly 2012-06-14T18:32:15 <+izua> i don't mind, it's the crappy rc servo electronics which might. 2012-06-14T18:32:39 < pelrun_> nah, servos have a fairly long timeout before they go 'limp' 2012-06-14T18:32:43 <+izua> hey cool, no more signal! that means i should let the motor coast! 2012-06-14T18:33:31 < pelrun_> have to check that out on the escs though, thanks for the reminder 2012-06-14T18:33:56 < pelrun_> worst case I just split the channels into two bands 2012-06-14T18:34:43 < pelrun_> although the ppm output wouldn't work in that case 2012-06-14T18:38:18 < jpa-> with DMA it is trivial to do e.g. 16-channel PWM on STM32 2012-06-14T18:38:49 < pelrun_> yeah, if all your pins are adjacent 2012-06-14T18:38:58 < pelrun_> grrrr 2012-06-14T18:39:10 < jpa-> well, just in the same port 2012-06-14T18:39:16 < jpa-> throw in more ram and do a second port :P 2012-06-14T18:39:35 < pelrun_> I'm spread across three :P 2012-06-14T18:39:45 < jpa-> aw :/ 2012-06-14T18:40:09 < pelrun_> juggling other peripherals *and* the 5v tolerant pins made for some 'fun' 2012-06-14T18:40:39 < pelrun_> (the outputs are also used as inputs, so need to be on the high voltage pins) 2012-06-14T18:41:11 < pelrun_> and I'm using EXTI, so the pin numbers had to be unique >:( 2012-06-14T18:41:36 < pelrun_> god damn does that setup make me rage 2012-06-14T18:42:03 < pelrun_> well, not really (once I found a viable pin mapping) 2012-06-14T18:44:25 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 252 seconds] 2012-06-14T18:45:55 < Laurenceb> anyone here run an stm off a tcxo? 2012-06-14T18:46:26 < Laurenceb> it looks like it needs 0.3 to 0.7VDD drive level according to datasheet 2012-06-14T18:46:39 < Laurenceb> but xtals can be run at lower drive level cant they? 2012-06-14T18:47:06 < Laurenceb> so can you run the HSE is xtal mode and stick the TCXO signal in? 2012-06-14T18:47:12 < pelrun_> I read that as 'taco' 2012-06-14T18:56:08 < dongs> wat 2012-06-14T18:56:36 < dongs> Laurenceb: tcxo outputs square wave based on whatever voltage its supplied with 2012-06-14T18:56:55 < Laurenceb> mine gives 0.8v pp 2012-06-14T18:56:56 < dongs> so common sense would say you would run the shit in 'external clock mode' 2012-06-14T18:56:58 < dongs> what 2012-06-14T18:57:00 < dongs> no 2012-06-14T18:57:03 < dongs> youre doing it wrong 2012-06-14T18:57:06 < dongs> url to datasheet 2012-06-14T18:57:10 < Laurenceb> its there in datasheet 2012-06-14T18:57:19 < dongs> what trash did you get 2012-06-14T18:57:37 < dongs> i've got some mega expensive / accurate 27Mhz shits and they output square wave at 3.3V which is their power 2012-06-14T18:59:07 < Laurenceb> http://www.digikey.com/product-detail/en/KT3225F16369ACW28TA0/478-4826-6-ND/1833949?cur=USD 2012-06-14T18:59:36 < dongs> Output: Clipped Sine Wave 2012-06-14T18:59:38 < dongs> ........... 2012-06-14T18:59:45 < dongs> found your problem 2012-06-14T19:00:44 < Laurenceb> no this even http://www.digikey.com/product-detail/en/7Q-16.367667MBN-T/887-1551-1-ND/2804886 2012-06-14T19:01:05 < Laurenceb> its what my rf section requires 2012-06-14T19:01:17 < dongs> hmm they're all sinewave shits 2012-06-14T19:01:41 < Laurenceb> im going to try haxoring it to thing its an xtal 2012-06-14T19:01:48 < Laurenceb> as soon as i cant make it compile 2012-06-14T19:02:27 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-06-14T19:02:48 < Laurenceb> rage @ pll 2012-06-14T19:03:26 < dongs> http://www.pletronics.com/ple/articles/view/401 here u go 2012-06-14T19:12:14 < Laurenceb> well thats very nice 2012-06-14T19:12:18 < dongs> wat 2012-06-14T19:12:22 < Laurenceb> NOW IVE MADE THE PCBS 2012-06-14T19:12:25 < dongs> lawl 2012-06-14T19:12:39 * Laurenceb -> food 2012-06-14T19:12:41 < dongs> ghetto it up 2012-06-14T19:13:29 < zyp> just make both at the same time 2012-06-14T19:14:32 < zyp> just make a pizza while you reflow 2012-06-14T19:14:38 <+Steffanx> lol 2012-06-14T19:15:32 < Laurenceb> hmm lead topped pizza 2012-06-14T19:15:40 < zyp> mmm 2012-06-14T19:16:23 <+Steffanx> PizzaByLaurenceb.com 2012-06-14T19:16:48 < pelrun_> lead doesn't evaporate, though 2012-06-14T19:17:07 < dongs> cook a pizza inside leadfree reflow oven 2012-06-14T19:18:05 < pelrun_> "what's this white residue on my boards? flux?" "nope, cheese" 2012-06-14T19:24:33 < karlp> what will strtod do with arm baremetal and newlib? specifically, with decimal separators . vs , ? 2012-06-14T19:24:48 < karlp> can I rely on it only ever being local == C, and it will always expect a .? 2012-06-14T19:24:59 < Laurenceb> i dont hold out much hope that this will work 2012-06-14T19:25:40 < karlp> 10k software axed at nokia today 2012-06-14T19:26:38 < Laurenceb> ouch 2012-06-14T19:26:45 < karlp> http://www.theregister.co.uk/2012/06/14/nokia_software_purge/ 2012-06-14T19:27:08 < zyp> pelrun_, would still look better than the boards the tom guy makes 2012-06-14T19:27:19 < pelrun_> haha 2012-06-14T19:27:45 < pelrun_> those poor softwares 2012-06-14T19:28:18 < Laurenceb> hmm 2012-06-14T19:28:25 < Laurenceb> while ((RCC->CR & RCC_CR_HSERDY) == 0) 2012-06-14T19:28:33 < Laurenceb> its stuck there 2012-06-14T19:28:53 < Laurenceb> is that cuz the level isnt high enough or because i didnt set bypass? 2012-06-14T19:29:27 < dongs> is this on F4 2012-06-14T19:29:30 < Laurenceb> yes 2012-06-14T19:29:43 < dongs> why havent you used the fucking excel to do all this shit for you 2012-06-14T19:29:52 < Laurenceb> i did 2012-06-14T19:29:54 < dongs> and? 2012-06-14T19:29:57 < pelrun_> because of fucking excel 2012-06-14T19:30:10 < Laurenceb> im trying to haxor it 2012-06-14T19:30:24 < Laurenceb> to run off 0.8v pp 2012-06-14T19:30:25 < dongs> why 2012-06-14T19:30:27 < dongs> it wont 2012-06-14T19:30:34 < dongs> ITS NOT A CRYSTAL 2012-06-14T19:30:38 < Laurenceb> heh 2012-06-14T19:30:43 < dongs> do you knwo the difference between clock and crystal inputs? 2012-06-14T19:30:49 < Laurenceb> yes 2012-06-14T19:30:51 < dongs> ok. 2012-06-14T19:30:58 < Laurenceb> i wondered if i could persuade it to work 2012-06-14T19:31:01 < dongs> get a fucking soldering iron and work that inverter gate in there. 2012-06-14T19:31:03 < dongs> you wont 2012-06-14T19:31:06 < Laurenceb> looks like it cant be persuaded 2012-06-14T19:31:34 < dongs> remember hte pic of that reworked boaord I pasted 2012-06-14T19:31:34 < Laurenceb> pcb haxor time then 2012-06-14T19:31:39 < dongs> with like 6 SOT23 shits on it 2012-06-14T19:31:49 < dongs> they tried to make a 2nd one like that for hte other guys who are working on this firmware 2012-06-14T19:31:52 < dongs> and fucking failed 2012-06-14T19:32:06 < dongs> one of the signals gets stuck somewehre so i had to send mine to them 2012-06-14T19:32:11 < dongs> while htey're waiting for new pcb respin 2012-06-14T19:35:30 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-14T19:39:51 < dongs> i think i got i2c working on this trash 2012-06-14T19:40:04 < dongs> 8051 sucks 2012-06-14T19:40:08 < dongs> (i2c sucks too) 2012-06-14T19:40:21 <+Steffanx> life sucks 2012-06-14T19:40:40 < zippe> i2c sucks disproportionately 2012-06-14T19:40:45 < pelrun_> your mom sucks 2012-06-14T19:40:49 < zippe> F4 i2c lockup is making me very, very sad 2012-06-14T19:41:12 < pelrun_> is that an actual silicon errata, or just a bug hiding where you can't find it? 2012-06-14T19:41:28 < pelrun_> erratum, bleh 2012-06-14T19:41:41 < dongs> i thought zyp nailed all F4 I2C stuff 2012-06-14T19:42:30 * pelrun_ quashes the urge to make another your mom joke 2012-06-14T19:43:48 < dongs> nailing your mom? 2012-06-14T19:44:25 < dongs> http://www.rcgroups.com/forums/showthread.php?t=1672081 attn Laurenceb 2012-06-14T19:46:00 < Laurenceb> lulwut 2012-06-14T19:46:56 < Laurenceb> ah well, even with hacked logic level, it will suck less than this: http://static.rcgroups.net/forums/attachments/3/2/4/0/5/7/a4905920-1-DSCN7690.JPG 2012-06-14T19:47:17 < dongs> lulz 2012-06-14T19:47:40 < dongs> he ended up taking out that shit anyway 2012-06-14T19:47:45 < dongs> because there was "some short" 2012-06-14T19:47:54 < dongs> i mean that switching reg 2012-06-14T19:47:58 < dongs> i dont think he ever got it working... 2012-06-14T19:48:09 < dongs> he wasted like 3 revisions on various shorts due to not drc chekinghis shit.. 2012-06-14T19:48:27 <+Steffanx> What's all that white stuff? 2012-06-14T19:48:52 < dongs> jizz 2012-06-14T19:48:55 < Laurenceb> lol 2012-06-14T19:49:07 < Laurenceb> ok i dont get how the invertor thing works 2012-06-14T19:49:12 <+Steffanx> You can laugh about a silly joke like that Laurenceb ? 2012-06-14T19:49:22 < Laurenceb> i mean it take 0.8v peak to peak 2012-06-14T19:49:36 < Laurenceb> oh wait 2012-06-14T19:49:45 < dongs> Laurenceb: wut 2012-06-14T19:49:47 < Laurenceb> the RC stabilises it around VCC/2 2012-06-14T19:49:48 < dongs> the shit i pasted? 2012-06-14T19:49:52 < Laurenceb> i gettit 2012-06-14T19:49:56 < dongs> its just a buffer isnt it 2012-06-14T19:50:00 < dongs> i dunno shit about analog though 2012-06-14T19:50:06 < dongs> (or anything really) 2012-06-14T19:50:11 < Laurenceb> not quite, as it has to be stable with low voltage 2012-06-14T19:50:53 < dongs> cool i2c works and i can read/write shit out of connected eeprom 2012-06-14T19:50:57 < Laurenceb> it will actually oscillate if left to itself 2012-06-14T19:51:10 < Laurenceb> oh well home times 2012-06-14T19:51:12 < Laurenceb> cya all 2012-06-14T19:51:15 < dongs> lol 2012-06-14T19:51:21 < dongs> when brits go home, its def time for me to sleep 2012-06-14T19:51:41 <+Steffanx> Have fun dongs 2012-06-14T19:52:05 <+Steffanx> We'll miss you 2012-06-14T19:52:20 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Remote host closed the connection] 2012-06-14T19:55:06 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-14T19:57:47 < zippe> If zyp has "fixed" the F4 I2C I'm all ears 2012-06-14T19:58:30 < dongs> well he has code that worsk 2012-06-14T19:58:45 < zippe> Ah. Is it shared somewhere? Or is he just smarter than me? 8) 2012-06-14T19:59:36 < dongs> http://cgit.jvnv.net/suzumebachi/tree/hal?h=stm32f4 2012-06-14T19:59:40 < dongs> i2c.h/cpp 2012-06-14T19:59:52 < dongs> ive used it on 2 projects now and it works. 2012-06-14T20:11:24 < dongs> http://www.iodata.jp/fun/digital/pc/nico/img/main.gif 2012-06-14T20:11:27 < dongs> silly japs 2012-06-14T20:11:49 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 248 seconds] 2012-06-14T20:16:59 <+Steffanx> Doesn't look more silly than the other things they make dongs .. 2012-06-14T20:27:45 < zyp> zippe, fixed how? 2012-06-14T20:28:52 < dongs> http://i.imgur.com/M7e6S.png hello i2c from 8051 2012-06-14T20:29:21 <+Steffanx> dongs and his fancy scope screenshots 2012-06-14T20:30:08 < zyp> zippe, my i2c code has always been working on F4, but it did hang on error, because the error flags have to be cleared explicitly in the error interrupt handler by writing them to 0 2012-06-14T20:30:35 < zyp> I have fixed it, but not made a commit of that fix, so the latest version in git still hangs on errors 2012-06-14T20:31:04 < zyp> but fixing it is adding a single line writing the status register with error flags to 0 2012-06-14T20:47:43 < zippe> Hmm, current issue for me is the hardware state machine seeming to hang at the end of a transaction 2012-06-14T20:50:42 < jpa-> note to self: if you load the wrong binary, wrong code will run 2012-06-14T20:51:52 <+Steffanx> :D 2012-06-14T20:52:43 < zyp> zippe, never seen that 2012-06-14T20:54:08 < dongs> i'm guessing hes failing at something 2012-06-14T20:54:21 < dongs> zippe, 'hang' do you mean you can't do more i2c shit after it hangs? 2012-06-14T20:54:30 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-06-14T20:54:36 < dongs> are you clearing out the bus by clocking out some shit before retrying to make sure slaves arent holding it up 2012-06-14T20:54:52 < zippe> dongs: the bus trace itself is fine, the hardware state machine just isn't finishing 2012-06-14T20:55:23 < dongs> oh ok. i dunno then. 2012-06-14T20:55:39 < dongs> this is i2c slave shit you got forced to do? 2012-06-14T20:56:18 < zippe> No, this is master side 2012-06-14T20:56:30 < zippe> I am going to move the slave to 1-wire UART 2012-06-14T20:56:38 < zyp> zippe, not finishing how? 2012-06-14T20:57:10 < zippe> zyp: I have to ankle right now; I will be back 7ish PST and I'll have more traces around then 2012-06-14T20:57:28 < zippe> This isn't my code, so I'm still not 100% I understand what's up, but it works "good" on the D1 2012-06-14T20:57:32 < zippe> s/D1/F1/ 2012-06-14T20:57:56 < zippe> meaning it's either timing or a logic change 2012-06-14T20:58:40 < zippe> If I learn anything I'll do my best to pass it on 2012-06-14T21:01:02 < zyp> my code works unchanged between F1 and F4 2012-06-14T21:02:25 < dongs> i was gonna use it on F1 for something 2012-06-14T21:02:29 < dongs> but got distracted wiht this 8051 shit 2012-06-14T21:02:35 < dongs> might revisit it agian next week 2012-06-14T21:02:39 < dongs> but i think it worked 2012-06-14T21:02:47 < dongs> oh i did ask you before i dunno if you answered 2012-06-14T21:02:59 < dongs> why are you making local copies of the data passed to i2cread/write shits 2012-06-14T21:03:04 < dongs> is tehre any reason 2012-06-14T21:03:42 < dongs> oh never mind im a fuckwit. 2012-06-14T21:03:47 < dongs> youre just making a buffer to make it easier to send 2012-06-14T21:03:50 < dongs> for _write 2012-06-14T21:03:52 < dongs> k 2012-06-14T21:04:20 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-06-14T21:04:30 < zyp> yes, because the ISR only operates on the pointers 2012-06-14T21:07:14 < zyp> if you are writing a multi-byte buffer you could just pass in a pointer to that, my write function is written for transactions consisting of one byte register address and one byte of contents to write to that register 2012-06-14T21:08:19 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-14T21:10:17 < zyp> anyway, time to sleep 2012-06-14T21:10:22 <+Steffanx> Or not 2012-06-14T21:10:35 < zyp> time for me to sleep. 2012-06-14T21:10:42 <+Steffanx> ok, have fun 2012-06-14T21:24:59 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has joined ##stm32 2012-06-14T21:25:08 < szczys> zyp: are you around? 2012-06-14T21:38:45 < karlp> you just missed him, he said he was heading to bed. 2012-06-14T21:39:11 <+Steffanx> He is in dongs-country, so … 2012-06-14T21:39:27 <+Steffanx> Timezones :( 2012-06-14T21:45:58 -!- Laurenceb_ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has joined ##stm32 2012-06-14T21:46:27 < szczys> darn 2012-06-14T21:46:53 <+Steffanx> Now you're in trouble? 2012-06-14T21:48:36 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving] 2012-06-14T21:50:21 < karlp> still having troubles with your f0 loader? 2012-06-14T21:53:02 < Laurenceb_> rape 2012-06-14T21:53:19 < Laurenceb_> oops wrong window 2012-06-14T21:55:19 < Laurenceb_> just giving some instructions to my minions 2012-06-14T21:55:36 < Rickta59> did you make any progress szczys? 2012-06-14T21:56:58 < Laurenceb_> dongs level converter is very clever 2012-06-14T21:57:16 < Laurenceb_> its an RC oscillator thats biased by the incoming osc signal 2012-06-14T21:57:20 < Laurenceb_> very clever stuff 2012-06-14T22:05:43 < szczys> Rickta59: not really 2012-06-14T22:05:53 < szczys> I've made a bunch of changes to the code 2012-06-14T22:05:58 < szczys> but still the same problem with the loader 2012-06-14T22:06:10 < Rickta59> merging the openocd with the stlink stuff? 2012-06-14T22:06:16 < szczys> yes 2012-06-14T22:06:37 < Rickta59> is it getting into the loading code? 2012-06-14T22:07:21 < Rickta59> do you have anything to pastebin? 2012-06-14T22:10:13 -!- TitanMKD_AW [~Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-14T22:10:27 -!- TitanMKD_AW is now known as TitanMKD 2012-06-14T22:18:51 < szczys> Rickta59: I can share what I'm working on if you want to give it a go 2012-06-14T22:18:57 < szczys> but I'm really just feeling around in the dark 2012-06-14T22:19:34 < Rickta59> i'm no arm expert but i am interested and have some time 2012-06-14T22:19:37 < Rickta59> so sure 2012-06-14T22:22:58 < szczys> https://github.com/szczys/stlink/tree/f0-flash-loader-testing 2012-06-14T22:23:16 < szczys> just commited that branch of non-working code 2012-06-14T22:23:30 < szczys> This will all get trashed if I ever get it working because I've made a real mess 2012-06-14T22:23:44 < szczys> (I'll pull out the working bits later if I ever figure it out) 2012-06-14T22:23:58 < szczys> I've enable verbose logging whenever the program runs 2012-06-14T22:24:41 < szczys> the stuff I'm working with is in stlink-common.c 2012-06-14T22:25:21 < szczys> it gets as far as run_flash_loader() 2012-06-14T22:25:39 < szczys> but bombs out when that function tries to run stlink_run(sl) 2012-06-14T22:25:59 < Rickta59> k 2012-06-14T22:26:08 < szczys> Not sure if the flash loader code taken from OpenOCD works, and I suspect I've mapped it wrong 2012-06-14T22:26:20 < szczys> you know, the stuff we were talking with zyp about yesterday 2012-06-14T22:26:25 < Rickta59> flashloaders/stm32f4.s 2012-06-14T22:26:27 < Rickta59> that code? 2012-06-14T22:26:32 < szczys> no 2012-06-14T22:26:42 < szczys> this file: 2012-06-14T22:26:48 < Rickta59> * was trying to see what you added 2012-06-14T22:27:27 < szczys> http://openocd.git.sourceforge.net/git/gitweb.cgi?p=openocd/openocd;a=blob_plain;f=contrib/loaders/flash/stm32f1x.S;hb=HEAD 2012-06-14T22:28:01 < Rickta59> did you modify that chunk of code that setup the registers ? .. i can't see it if you did 2012-06-14T22:28:16 < szczys> https://github.com/szczys/stlink/commit/1a04fe70ebfcfefd61284d2ab39699b424cb021e 2012-06-14T22:28:19 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-14T22:29:23 < Rickta59> k, i'll poke around thanks 2012-06-14T22:30:06 < szczys> no, thank you! 2012-06-14T22:30:19 < Rickta59> have you stopped and checked to see if what gets loaded into ram disassembles into what you expect? 2012-06-14T22:30:27 < Rickta59> stopped in gdb i mean 2012-06-14T22:31:16 < szczys> no, that's beyond my skills 2012-06-14T22:31:26 < Rickta59> k 2012-06-14T22:33:50 -!- izua [~izua@79.115.171.95] has joined ##stm32 2012-06-14T22:33:51 -!- izua [~izua@79.115.171.95] has quit [Changing host] 2012-06-14T22:33:51 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-14T22:33:54 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-14T22:35:02 < szczys> Rickta59: I guessed when I filled in lines 1765-66 2012-06-14T22:35:19 < szczys> don't know what workarea start and workarea end should actually be 2012-06-14T22:35:46 < szczys> also confused about the in/out use of r0 2012-06-14T22:36:14 < Rickta59> i think that means that the return of the function is done in r0 2012-06-14T22:36:20 < Rickta59> in you pass a value 2012-06-14T22:36:28 < Rickta59> the loader code should fill in r0 with the result 2012-06-14T22:36:38 < Rickta59> i think 2012-06-14T22:36:44 < Rickta59> i haven't looked at it that much 2012-06-14T22:36:52 < Rickta59> but is seems that all it is really doing is a memcopy 2012-06-14T22:37:07 < Rickta59> and monitoring the flash write flag 2012-06-14T22:37:19 < Rickta59> and updating another memory address to indicate doneness 2012-06-14T22:38:39 < szczys> you've already discovered more than I have 2012-06-14T22:39:54 < Rickta59> debugging a program that is a debugger is kind of self referential .. gdb st-link .. and then attaching to it with gdb .. hmmm 2012-06-14T22:40:27 < szczys> I've just been using the flash util to do the writing: 2012-06-14T22:40:37 < Rickta59> ok 2012-06-14T22:40:52 < szczys> ./st-flash write ~/compile/orig.bin 0x08000000 2012-06-14T22:41:04 < Rickta59> i was going to use the gdb so i could look at memory at the same time as it is using it 2012-06-14T22:41:09 < Rickta59> look at memory in the device 2012-06-14T22:41:15 < szczys> oh, I see 2012-06-14T22:41:38 < Rickta59> the st-flash is download a chunk of code to the device with it writes 2012-06-14T22:41:50 < Rickta59> so if you are running gbd on the device you can look at what it loaded 2012-06-14T22:41:58 < Rickta59> and then monitor what that routine does 2012-06-14T22:42:03 < Rickta59> wacky really 2012-06-14T22:42:12 < Rickta59> hurts brain thinking about it 2012-06-14T22:43:00 < szczys> good luck 2012-06-14T22:43:13 < Rickta59> yeah i don't expect a quick answer .. but it is something to start with 2012-06-14T22:43:20 < Rickta59> thanks for sharing 2012-06-14T22:43:23 < szczys> I'll be in and out this afternoon but I'll leave this connected 2012-06-14T22:43:51 < szczys> so shout if you have any questions (or breakthroughs) 2012-06-14T22:44:00 < Rickta59> k, will do .. 2012-06-14T22:44:15 < Rickta59> i only have a hour or two then i'm done for the night .. headed out 2012-06-14T22:59:02 -!- TitanMKD [~Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-14T23:07:13 -!- peabody124 [~peabody12@128.249.96.123] has quit [Remote host closed the connection] 2012-06-14T23:07:30 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-06-14T23:34:40 <+dekar> zippe, what was the i2c problem on f4? 2012-06-14T23:42:12 < Laurenceb_> its i2c? 2012-06-14T23:42:25 < Laurenceb_> thats the first part of the problem right there 2012-06-14T23:43:04 <+dekar> I don't get it 2012-06-14T23:44:03 < Laurenceb_> i2c is always going wrong 2012-06-14T23:44:34 <+dekar> That's what I had when I was using an FTDI to do I2C, but with the STM32 it works great for me 2012-06-14T23:45:22 <+izua> what you had was horrible 2012-06-14T23:46:00 <+dekar> izua, at some point I re-implemented I2C bit banging it over bare MPSSE XD 2012-06-14T23:46:20 <+izua> iirc, zippe's slaved sucked badly and he always got a nak 2012-06-14T23:46:35 <+izua> slave* 2012-06-14T23:47:34 <+dekar> well my experience is that you have to give the slaves some time (especially after writes) and in some times write only a few bytes at a time 2012-06-14T23:47:52 <+dekar> but those are all parameters for my driver API now 2012-06-14T23:47:57 <+izua> true 2012-06-14T23:48:09 <+izua> sounds neat 2012-06-14T23:48:13 <+izua> does it use busy wait delays 2012-06-14T23:48:15 <+dekar> we just benchmark our I2C slaves for the best settings and save them to our server 2012-06-14T23:48:29 <+izua> so it can halt the whole os while waiting for an ack from the device which in turns waits for the i2c slave? 2012-06-14T23:48:40 <+dekar> izua, it supports both actually, it can either poll the slave or use a hard delay 2012-06-14T23:48:52 <+dekar> some slaves crashed for me on constant polling though 2012-06-14T23:49:20 <+dekar> I just sent a start sequence with the address and once they sent the ack I sent stop for my polling 2012-06-14T23:50:13 <+dekar> izua, what do you mean? my stuff always stays responsible 2012-06-14T23:50:35 <+dekar> usb has high priority interrupts on my device, it just reports that it is still busy 2012-06-14T23:50:55 <+dekar> also the driver is used in a worker thread so it doesn't block anything 2012-06-14T23:51:14 <+izua> you suck at programming then 2012-06-14T23:51:21 <+izua> you should use a hardcoded busy wait delay in your windows driver 2012-06-14T23:51:36 <+izua> this way, by halting the whole system, the user will know the computer is working, so it won't mess with it 2012-06-14T23:51:51 <+izua> alternatively, you can also thrash the hdd a bit, so the led and noise should tell him to stay away :D 2012-06-14T23:51:58 <+dekar> izua, last but not least the hardware has an I2C timeout you can set, so if the slave fails to answer in time I reset it 2012-06-14T23:52:09 <+izua> that's neat 2012-06-14T23:52:19 <+dekar> some slaves get stuck in weird ways, like pulling both I2C lines down 2012-06-14T23:52:21 <+izua> and this interface you speak of, is only for the transceivers? 2012-06-14T23:52:26 <+dekar> in that case we power-reset the slave 2012-06-14T23:52:26 <+izua> yeah 2012-06-14T23:52:41 <+izua> you can probably keep a database or something, with exhibited behaviour of tested parts 2012-06-14T23:52:52 <+dekar> izua, yeah we do 2012-06-14T23:53:02 <+dekar> but there are thousands from different vendors 2012-06-14T23:53:11 <+dekar> all use different I2C implementations 2012-06-14T23:53:22 <+dekar> then there are firmware updates for transceivers 2012-06-14T23:54:27 <+dekar> and it is only transceivers, I have connected simple EEPROMS and the like though 2012-06-14T23:55:08 <+dekar> izua, some transceivers even use exotic stuff like I2C 10bit addresses 2012-06-14T23:55:29 <+izua> really? 2012-06-14T23:55:33 <+dekar> yeah 2012-06-14T23:55:36 <+izua> i never found a chip that does that :D 2012-06-14T23:55:45 <+dekar> we have quite a lot 2012-06-14T23:56:00 <+dekar> that usually do that as obfuscation 2012-06-14T23:56:04 <+izua> i2c is pretty bad imo, it leaves a lot of stuff undetailed, which leaves room for interpretation 2012-06-14T23:57:11 <+dekar> imo the problem rather is vendors implementing it badly on microcontrollers 2012-06-14T23:57:29 <+izua> that's a pretty fail obfuscation 2012-06-14T23:57:40 <+dekar> they often use parallel port bit bang programmers at low speed, so they never realize 2012-06-14T23:57:43 <+izua> what i'd do is something no one would expect, so they'd be thinking WTF 2012-06-14T23:58:00 <+izua> like, sending the first byte for a 10 bit address, then sending a repeated start 2012-06-14T23:58:13 <+izua> and have the chip work ONLY if it's addressed this way, heh 2012-06-14T23:58:53 <+dekar> izua, what do you mean? iirc if you only send the first byte it just is an i2c 7bit address 2012-06-14T23:59:04 <+dekar> oh you mean in the reserved address space for 10bit? 2012-06-14T23:59:14 <+izua> yeah, but it's a special address,, or an address space, to enter 10 bit mode 2012-06-14T23:59:30 <+izua> like, there are 4 addresses 2012-06-14T23:59:42 <+izua> yeah 2012-06-14T23:59:49 <+izua> i mean, no device COULD actually use that address --- Day changed Fri Jun 15 2012 2012-06-15T00:00:04 <+izua> and have the second byte name clash with something really common, like an eeprom 2012-06-15T00:00:22 <+dekar> well many use 32bit passwords 2012-06-15T00:00:43 <+dekar> that's the most common way to protect transceivers 2012-06-15T00:00:47 <+izua> yeah 2012-06-15T00:00:50 <+izua> which you brute force :D 2012-06-15T00:00:57 <+dekar> :) 2012-06-15T00:01:00 <+izua> found any cool stuff through the passwords? 2012-06-15T00:01:14 <+dekar> nope, just some boring sequences and the like 2012-06-15T00:01:24 <+dekar> not even stuff like 0xBEEFSTEAKS 2012-06-15T00:01:27 <+izua> i think you can get stuff like DONT FUCK WITH USME 2012-06-15T00:01:29 <+dekar> uhm wait 2012-06-15T00:01:33 <+dekar> 0xDEADBEEF 2012-06-15T00:01:34 <+dekar> I mean 2012-06-15T00:01:35 <+dekar> XD 2012-06-15T00:01:38 <+izua> 0xDEADB00B ? 2012-06-15T00:01:50 <+izua> beefsteaks, lol 2012-06-15T00:02:02 <+dekar> I'd prefer beefsteaks 2012-06-15T00:02:16 <+dekar> deadbeef sounds rotten :) 2012-06-15T00:02:24 <+izua> 0xROADKILL 2012-06-15T00:02:45 < Laurenceb_> fail 2012-06-15T00:02:51 < Laurenceb_> thats not hex 2012-06-15T00:02:57 <+izua> hax 2012-06-15T00:03:04 <+dekar> I kno 2012-06-15T00:03:11 <+izua> also, dekar started with hex hax 2012-06-15T00:03:16 < Laurenceb_> 0xBEEF57EA3 2012-06-15T00:03:16 <+dekar> XD 2012-06-15T00:03:34 <+izua> 57EAC? 2012-06-15T00:03:53 <+dekar> I vote for that 2012-06-15T00:04:15 <+izua> i got a mill with italian spices 2012-06-15T00:04:21 <+dekar> O.o 2012-06-15T00:04:21 <+izua> like, the spices are inside the mini miller thingie 2012-06-15T00:04:47 <+izua> i was hoping to use the mill after the spices are gone, but it feels like it locks into place after being assembled :( 2012-06-15T00:05:01 <+dekar> http://chrome.blogspot.de/2012/06/chrome-and-new-shiny.html 2012-06-15T00:05:18 <+dekar> izua, those suck -.-" 2012-06-15T00:05:28 <+dekar> drill a hole into the side of it 2012-06-15T00:05:40 <+izua> that picture is exagerated 2012-06-15T00:05:41 <+izua> oh 2012-06-15T00:05:43 <+izua> you know them too? 2012-06-15T00:05:58 <+izua> they're from the hungarian manufacturer, kotanyi 2012-06-15T00:06:05 <+izua> which oddly, has an hq in austria 2012-06-15T00:06:49 <+dekar> izua, yeah I've had one of those filled with hot pepper flakes 2012-06-15T00:07:21 <+dekar> but I just threw it away 2012-06-15T00:07:40 <+dekar> izua, I think the pic is legit 2012-06-15T00:08:05 <+dekar> it's just a screenshot 2012-06-15T00:08:12 <+izua> that would be an incredibly small font he's using 2012-06-15T00:08:42 <+izua> but still, kudos for quadrupling the number of pixels and not using them for something useful, but just for shiny :D 2012-06-15T00:08:58 <+dekar> izua, http://1.bp.blogspot.com/-JUm5Qm-mdzg/T9kaIsOfQXI/AAAAAAAAA0k/_6MkZplv6SY/s1600/high-res.png 2012-06-15T00:09:03 <+dekar> scale it down to normal size 2012-06-15T00:09:12 <+dekar> looks legit 2012-06-15T00:09:23 <+dekar> font size isn't that small 2012-06-15T00:09:28 <+izua> yeah 2012-06-15T00:09:31 <+izua> exactly what i did 2012-06-15T00:09:33 <+izua> well 2012-06-15T00:09:49 <+izua> it's kind of pointless without having a 1080x2p display :P 2012-06-15T00:09:58 <+izua> actually 2012-06-15T00:10:03 <+izua> i'm going to rephrase my question 2012-06-15T00:10:12 <+izua> I don't see any difference between the two xD 2012-06-15T00:10:13 <+dekar> Qt apps supported retina stuff right away 2012-06-15T00:10:28 <+izua> neat. 2012-06-15T00:10:36 <+izua> isn't that controlled through the system wide dpi setting? 2012-06-15T00:10:40 <+izua> i know text is. 2012-06-15T00:10:40 < FUZxxl> Hello! 2012-06-15T00:10:50 < FUZxxl> I think I found a bug in either stlink or gdb. 2012-06-15T00:10:59 <+izua> i had a odd time getting used to thin borders of UI on a 1920x1080, 15 incher 2012-06-15T00:11:01 <+dekar> izua, is what controlled through the dpi settings? 2012-06-15T00:11:18 < FUZxxl> You can get a tarball of anything related at http://d00m.org/~fuz/gdb-crash.tar.bz2 2012-06-15T00:11:24 <+izua> "retina stuff", by which i assume you mean extra high quality graphics on the UI 2012-06-15T00:11:38 <+dekar> they have higher resolution icons and windows decorations 2012-06-15T00:11:44 <+izua> ah 2012-06-15T00:12:05 <+izua> but you need to add a bunch of includes, call some weird functions, read the callbacks, sacrifice the goat, and then recompile to get it working? :D 2012-06-15T00:12:19 <+dekar> for Qt you don't 2012-06-15T00:15:27 <+izua> does it come with its own sacrificial goat xD? 2012-06-15T00:15:43 <+izua> i've been taking a liking to qt lately 2012-06-15T00:15:51 <+izua> well, for the last year or so, since i started messing around with it 2012-06-15T00:16:48 <+izua> it's awesome for both crosscompiling and fast stuff (if you're like me and find python/mono/.net/java always being nothing more than prototyping languages) 2012-06-15T00:17:05 <+dekar> izua, I think they had to sacrifice the goat at nokia already when they added symbian support 2012-06-15T00:17:30 <+dekar> .net was always pretty fast for me 2012-06-15T00:17:42 <+dekar> java still is a bit sluggish 2012-06-15T00:18:06 <+dekar> well I only did C#.net 2012-06-15T00:18:18 <+izua> same 2012-06-15T00:18:34 <+izua> VB.net sounded like a fail 2012-06-15T00:20:12 < FUZxxl> Okay. Good night! 2012-06-15T00:20:50 <+izua> and thanks for all the fish 2012-06-15T01:37:41 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 248 seconds] 2012-06-15T01:41:01 < feurig> \:) 2012-06-15T01:41:37 < feurig> douglas adams is like vonnegut except shallow. 2012-06-15T01:41:46 < feurig> so it goes.... 2012-06-15T01:42:09 < Laurenceb_> symbian support for what? 2012-06-15T01:42:31 * feurig giggles 2012-06-15T01:51:53 < iR0b0t1> Something I've noticed - on chips with a 12bit ADC, the sample rate is 1/4 that of the ADC if it were sampling in 10bit. Does the ADC module most likely implement hardware oversampling? 2012-06-15T02:04:34 -!- Laurenceb_ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has quit [Ping timeout: 244 seconds] 2012-06-15T02:09:53 <+dekar> Laurenceb, Qt 2012-06-15T02:10:45 <+dekar> http://www.ebay.de/itm/Mini-Google-Android-4-0-TV-Box-Allwinner-A10-1GHz-Cortex-A8-WIFI-4G-HD-IPTV-Play-/320924674910?pt=PCC_Drives_Storage_Internal&hash=item4ab899eb5e#ht_4292wt_1024 2012-06-15T02:10:56 <+dekar> 50usd 2012-06-15T02:29:58 < iR0b0t1> I always thought IrDA was its own protocol. 2012-06-15T02:33:22 <+dekar> IP over everything and everything over IP! 2012-06-15T02:34:54 <+dekar> why? 2012-06-15T02:35:33 <+dekar> you mean the stack is bloated 2012-06-15T02:35:34 <+dekar> agree 2012-06-15T02:35:48 <+dekar> but think about USB, it has all that stuff as well 2012-06-15T02:35:55 <+dekar> like error correction 2012-06-15T02:35:57 <+dekar> etc 2012-06-15T02:36:34 <+dekar> when I learned about USB I thought "why didn't they use USB?" 2012-06-15T02:36:40 <+dekar> *IP 2012-06-15T02:36:46 <+dekar> XD 2012-06-15T02:37:04 <+dekar> it even has endpoints and so on 2012-06-15T02:37:13 <+dekar> why not have ports? 2012-06-15T02:51:34 < zippe> flyback: Dunkels said the same things, only he was perhaps a little more constructive about it 2012-06-15T02:55:33 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 248 seconds] 2012-06-15T02:55:58 < zippe> flyback: You really can't talk about IOT without knowing who Dunkels is 2012-06-15T02:56:33 < zippe> IOT = Internet Of Things … aka smart dust, etc. etc. 2012-06-15T02:57:05 < zippe> And Adam Dunkels of µIP, lwIP, Contiki etc. 2012-06-15T03:00:52 < zippe> iR0b0t1: You were asking about DAC speeds? 2012-06-15T03:01:13 < zippe> iR0b0t1: There are two issues; for a SA ADC you need two extra clocks minumum for the SA to run 2012-06-15T03:02:21 < zippe> iR0b0t1: and for 12-bit vs 10-bit, you have to allow the S&H and the SA outputs to settle to 1/4 the margin 2012-06-15T03:03:07 < zippe> iR0b0t1: So for a given S&H / SA circuit, they will tend to settle within 1/2 LSB for a 10-bit converter about 4x as quickly as they will when the LSB is 1/4 the size. 2012-06-15T03:06:01 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 252 seconds] 2012-06-15T03:16:51 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-15T04:04:40 -!- cjbaird [~cjb@ppp121-44-30-62.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-15T04:05:04 < karlp> szczys: remember, you can't use the flash loader code from openocd as is. 2012-06-15T04:05:11 < karlp> openocd is all gpl, stlink is bsd 2012-06-15T04:06:19 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-15T04:11:02 < zippe> karlp: I guess the blackmagic loader is GPL as well 2012-06-15T04:14:29 < karlp> FUZxxl: do you have any comments? I'm not super inclined to download some random tar that "contains everything" 2012-06-15T04:14:41 < karlp> also, it's probably an stlink bug, not a gdb bug :) 2012-06-15T04:16:58 < karlp> did adam dunkels write both lwip _and_ µip? 2012-06-15T04:17:07 < karlp> I thought those were two completely separate projects? 2012-06-15T04:17:43 < karlp> and... we're caught up again :) 2012-06-15T04:17:53 < karlp> zippe: yeah, I'd guess the black magic loader is gpl too. 2012-06-15T04:18:08 < karlp> binary blobs of gpl are weird and make my head hurt though 2012-06-15T04:20:48 < karlp> szczys: if the f0 has the same flash programming method as the f1, then you do not need a separate loader. 2012-06-15T04:21:21 < karlp> you may need separate registers for lock/unlock, but stlink already supports the f1, so copying an f1 loader from openocd isn't going to help you anyway 2012-06-15T04:24:30 < dongs> sup dongs 2012-06-15T04:24:52 < dongs> 03:52 < Laurenceb_> rape 2012-06-15T04:24:52 < dongs> 03:53 < Laurenceb_> oops wrong window 2012-06-15T04:24:53 < dongs> hahaha 2012-06-15T04:28:44 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-15T04:30:15 -!- GargantuaSauce [~sauce@blk-252-42-151.eastlink.ca] has quit [Ping timeout: 256 seconds] 2012-06-15T04:31:46 -!- GargantuaSauce [~sauce@blk-252-42-151.eastlink.ca] has joined ##stm32 2012-06-15T04:40:29 < zippe> karlp: Dunkels was originally responsible for both, yes 2012-06-15T04:41:55 < karlp> are there any other ip implementations of any note? 2012-06-15T04:42:51 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-15T04:46:38 < iR0b0t1> zippe: thank you 2012-06-15T04:50:13 -!- GargantuaSauce [~sauce@blk-252-42-151.eastlink.ca] has quit [Read error: Connection reset by peer] 2012-06-15T04:50:39 -!- GargantuaSauce [~sauce@blk-252-42-151.eastlink.ca] has joined ##stm32 2012-06-15T05:38:57 -!- phantoneD is now known as phantoxeD 2012-06-15T05:46:45 -!- [7] [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-15T05:46:52 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-15T05:49:15 < dongs> heh 2012-06-15T05:49:22 < dongs> Tectu: that USB chip is like 3.5bucks 2012-06-15T05:49:25 < dongs> totally worth it i think 2012-06-15T05:49:29 < dongs> im gonna sample that shit and try it out 2012-06-15T06:13:36 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-232-149.clienti.tiscali.it] has quit [Ping timeout: 244 seconds] 2012-06-15T06:21:12 -!- XclusiveOR [~XclusiveO@108-228-24-172.lightspeed.sntcca.sbcglobal.net] has joined ##stm32 2012-06-15T06:22:55 -!- XclusiveOR [~XclusiveO@108-228-24-172.lightspeed.sntcca.sbcglobal.net] has left ##stm32 [] 2012-06-15T06:34:25 < zippe> Hmm, i2c issue may be timing or otherwise crosstalk-related 2012-06-15T06:34:36 < zippe> Since a solo read spam isn't hitting it 2012-06-15T07:51:29 -!- cjbaird [~cjb@ppp121-44-30-62.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-15T08:18:42 < iR0b0t1> dongs: If you get anywhere with that silabs chip, I wanna know. Like a board or something :) 2012-06-15T08:18:53 < dongs> iR0b0t1: you mean sim3u shit? 2012-06-15T08:19:17 < iR0b0t1> yeah 2012-06-15T08:19:33 < dongs> yeah, im makin a breakout for it. with maybe some shit on it, havent decided yet 2012-06-15T08:19:42 < dongs> maybe will put a nfet bridge on it to try motor control stuff. 2012-06-15T08:19:49 < iR0b0t1> Not a bad idea 2012-06-15T08:20:21 * iR0b0t1 has always wondered why about 50% of µCs are being sold as "motor control" 2012-06-15T08:20:37 < iR0b0t1> *shrug* 2012-06-15T08:25:49 < dongs> cause motor control is fun 2012-06-15T08:26:29 < iR0b0t1> lol 2012-06-15T08:27:03 < iR0b0t1> I was playing with brushless control for a while. That never really led anywhere for me... why not just buy a proper drive? 2012-06-15T08:33:22 < dongs> i made a brushless esc with failmega and stm32 2012-06-15T08:34:18 < iR0b0t1> Why two? Too processor intensive? That's what I usually found. The driver chips always seemed cheap enough to beat out making an ESC on a smaller chip 2012-06-15T08:34:24 < dongs> no, i mean different ones 2012-06-15T08:34:28 < dongs> failmega based ones and stm32 basedo ne 2012-06-15T08:34:53 < iR0b0t1> oh I see 2012-06-15T08:35:03 < iR0b0t1> you got a git repos or something then? 2012-06-15T08:36:41 < dongs> atmega shit uses simonk's tgy firmware 2012-06-15T08:36:47 < dongs> written in hardcore asm 2012-06-15T08:36:51 < iR0b0t1> :o 2012-06-15T08:36:56 < dongs> stm32 is 'esc32', not public yet 2012-06-15T08:38:12 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32 2012-06-15T08:50:12 < zippe> zyp: so I did actually make it fail 2012-06-15T08:50:37 < zippe> Biggest difference I see with the state machine so far is that we're not setting STOP when clearing ACK after receiving the second-last byte 2012-06-15T08:51:35 < zippe> Though, I think that's because we support repeated starts 2012-06-15T09:10:18 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has quit [Ping timeout: 245 seconds] 2012-06-15T09:48:20 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-15T10:13:21 < dongs> ohh shit my F0discovey is here 2012-06-15T10:13:24 < dongs> in usps flat rate box 2012-06-15T10:28:52 < Tectu> dongs, so shit gets mad this weekend? 2012-06-15T10:30:52 < dongs> i wish 2012-06-15T10:30:57 < dongs> im wasting lief away in tokyo until monday 2012-06-15T10:31:07 < Tectu> why 2012-06-15T10:31:13 < dongs> also: < dongs> Tectu: that USB chip is like 3.5bucks 2012-06-15T10:31:17 < Tectu> got some bitches 'round 2012-06-15T10:31:24 < Tectu> dongs, where to get? 2012-06-15T10:31:31 < Tectu> where did you get the price 2012-06-15T10:32:16 < dongs> Tectu: my HK supplier where I get most of my shit 2012-06-15T10:32:38 < dongs> im sure waveshare wouldnt mind selling you some 2012-06-15T10:32:42 < dongs> anyway, im sampling a few and gonna try it out 2012-06-15T10:32:48 < dongs> for 3.5 bucks its definitely useful 2012-06-15T10:32:59 < Tectu> are they arround in dip? 2012-06-15T10:33:01 < dongs> considering it can do usb host/sd/etc 2012-06-15T10:33:03 < dongs> lawl 2012-06-15T10:33:09 < Tectu> ;-) 2012-06-15T10:33:09 < dongs> tsop with 0.65mm to ahrdcore for you? 2012-06-15T10:33:13 < Tectu> na 2012-06-15T10:33:22 < Tectu> soldered QFP 0.5mm for breakfast 2012-06-15T10:33:44 < Tectu> only QFN and BGA gets bitchy 2012-06-15T10:34:23 < dongs> java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while 2012-06-15T10:34:24 < dongs> loading gnu.io.RXTXCommDriver 2012-06-15T10:34:25 < dongs> fucking java 2012-06-15T10:34:30 < dongs> what the hell is java.library.path 2012-06-15T10:35:31 < dongs> Requirements: PC side 2012-06-15T10:35:31 < dongs> Sun's java runtime (JRE, package sun-java6-jre); 2012-06-15T10:35:31 < dongs> RXTX serial communication; 2012-06-15T10:35:33 < dongs> RiiiiiiiiiGht. 2012-06-15T10:35:45 < cjbaird> circuit board people: would limonine (orange oil solvent) be safe to use as a PCB cleaner? 2012-06-15T10:36:13 < Tectu> that is the most weird thing about electronics i've ever got asked 2012-06-15T10:37:09 < Tectu> well 2012-06-15T10:37:20 < Tectu> here's a question: why do you use oil for cleaning= o0 2012-06-15T10:37:20 < dongs> cjbaird: why dont you just ufcking buy proper shit 2012-06-15T10:39:33 < cjbaird> It's more of a terpentine than oil. It's hella-good grime solvent, though-- I've got a mechanics hand-cleaner that uses limonine. I'm thinking though that I could use a limonine-based pre-wash stain remover to budge the ~30 years of crap off this 1980 Jefferson's BigboardII. 2012-06-15T10:40:09 < cjbaird> (#classiccmp were too busy fucking talking about American politics to give a fucking answer..) 2012-06-15T10:40:25 < dongs> yeah, i fucking hate it when irc discussions gvet into political shit 2012-06-15T10:40:54 < Tectu> dongs, what's doing FSMC shit 2012-06-15T10:40:57 < pelrun_> yeah, citrus oils aren't really oils - they evaporate completely, for instance 2012-06-15T10:41:04 < dongs> Tectu: what is doing fsmc shit 2012-06-15T10:41:06 < cjbaird> The guy who runs the classiccmp.org site/mailinglists/etc. is a NRA nut. Sheesh. 2012-06-15T10:41:20 < Tectu> dongs, what's doing FSMC shit 2012-06-15T10:41:36 < dongs> i dont understand. your question makes no sense without context 2012-06-15T10:41:56 < Tectu> you did some fsmc shit with NAND memory shit, didn't you? 2012-06-15T10:42:57 < Tectu> so how's it going with that shit sir? 2012-06-15T10:45:44 < dongs> oh right 2012-06-15T10:45:48 < dongs> that shit is: running 2012-06-15T10:45:50 < dongs> except 2012-06-15T10:45:52 < dongs> timing is still fucked 2012-06-15T10:46:00 < dongs> and i sheleved it be cause higher priority shit is in the queue 2012-06-15T10:56:35 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.] 2012-06-15T11:04:38 < cjbaird> The BigboardII I have to fix: https://imgur.com/77amW 2012-06-15T11:12:30 < pelrun_> retrotastic 2012-06-15T11:13:02 < cjbaird> FREE CANDY! https://imgur.com/ydeq8 (the van a friend bought yesterday) 2012-06-15T11:13:07 < pelrun_> still, some would say that's better than "it's an integrated unit, you have to replace the whole board if it goes bang" that happens these days 2012-06-15T11:14:32 < pelrun_> my present activity: https://imgur.com/gallery/trXrI 2012-06-15T11:14:53 < cjbaird> Some idiot missed using a socket for one of the chips.. 2012-06-15T11:15:12 < pelrun_> that'll be the one you have to replace 2012-06-15T11:15:39 < pelrun_> "shit, I'm one socket short. Fuck it, I'll do it live." 2012-06-15T11:17:10 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has left ##stm32 ["Leaving"] 2012-06-15T11:17:15 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-15T11:19:53 < cjbaird> The plan will be to catalog & remove all the chips, clean the fuck out of the board (limonine, high-pressure water), test the electroylics and other caps, test the socket pins, go through the construction test guide, test the ICs individually, replace the missing EPROM.. A working original board will probably be worth a bit of money. A 6502 SYM1 I fixed up sold for $380. 2012-06-15T11:21:31 < pelrun_> high pressure water o_o 2012-06-15T11:24:14 < cjbaird> I found out the other week that the Apple1 board the Powerhouse Museum has is actually one of the original 20 made.. i.e: one of the super-valuable ones (worth ~$250,000), compared to the just-expensive later boards worth ~$10,000 2012-06-15T11:25:47 < pelrun_> wow 2012-06-15T11:26:06 < pelrun_> and that reminds me I haven't been there in over a decade :P 2012-06-15T11:27:50 < cjbaird> Probably not worth the bother, sadly. The 'cyberworlds' exhibit has been all but removed (just the Altair8080 left), and more display-space is given to the womyn who trademarked 'geekgirl' than it does to the two Steves. >:( 2012-06-15T11:28:02 < pelrun_> geezus 2012-06-15T11:52:06 < dongs> flyback: guess what, my F0discovery is here. 2012-06-15T11:52:34 < dongs> i thought you got rejected 2012-06-15T11:52:34 < dongs> oh 2012-06-15T11:52:39 < dongs> digikey was the one who fulfilled this free order 2012-06-15T11:52:45 < dongs> everything looked like a digikey box 2012-06-15T11:52:46 < dongs> heh 2012-06-15T11:53:43 < dongs> it looks same as every other discovery board. 2012-06-15T11:53:47 < dongs> k back in a while 2012-06-15T12:20:17 -!- ABLomas [~abl@78-60-198-200.static.zebra.lt] has joined ##stm32 2012-06-15T12:20:23 < dongs> hm 2012-06-15T12:20:31 < dongs> another rcg guy. 2012-06-15T12:20:48 < ABLomas> a bit 2012-06-15T12:20:58 < dongs> < tc 2012-06-15T12:21:04 < dongs> (incase it wasnt obvious) 2012-06-15T12:21:09 < ABLomas> just to idle here and watch, what happen (being many years on freenode, but never on this chan) 2012-06-15T12:21:16 < dongs> ah 2012-06-15T12:21:21 < ABLomas> yes, i know, the same username as on MW forums 2012-06-15T12:21:22 < ABLomas> ;-) 2012-06-15T12:23:02 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-15T12:23:24 < dongs> i suspect my rcg days are numbered 2012-06-15T12:23:29 < dongs> DJI fanboys are ganging up 2012-06-15T12:23:39 < dongs> can't even post anything without some idiot reportingi t. 2012-06-15T12:24:41 < ABLomas> well, IMO your writing style is a bit... offensive, it's not clear when you're trolling, and when you're serious 2012-06-15T12:24:49 < ABLomas> so probably some do not understand that and... 2012-06-15T12:25:53 < ABLomas> 1 / Trolling (Provocation) 2012-06-15T12:25:55 < ABLomas> hehehe 2012-06-15T12:26:04 < ABLomas> (offtopic in this channel anyway) 2012-06-15T12:27:21 -!- Laurenceb_ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has joined ##stm32 2012-06-15T12:28:11 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-202.clienti.tiscali.it] has joined ##stm32 2012-06-15T12:30:20 < ABLomas> tc, could i ask one question in private? Nothing personal, but will be completely offtopic in that channel, so let's not fill logs with offtopic ;-) 2012-06-15T12:34:52 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-202.clienti.tiscali.it] has quit [Remote host closed the connection] 2012-06-15T12:35:10 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-202.clienti.tiscali.it] has joined ##stm32 2012-06-15T12:35:56 < dongs> yeah 2012-06-15T12:36:03 < dongs> why dont you just ask, instead of asking to ask ;p 2012-06-15T12:36:32 < Tectu> ABLomas, offtopic is the topic of this channel 2012-06-15T12:37:04 < dongs> yeah 2012-06-15T12:37:09 < dongs> people talk about dongs and other shit all the time 2012-06-15T12:37:16 < dongs> Laurenceb_ pastes his masturbation fantasies etc 2012-06-15T12:37:35 < Tectu> yeah 2012-06-15T12:37:40 < karlp> and furries, don't forget the furries 2012-06-15T12:37:55 < Tectu> and don't forget about karlp who always tries to be seriously ontopic 2012-06-15T12:38:08 < ABLomas> some ppl dislike any private questions, closing all aditional windows (it's window in irssi? heh) without even reading 2012-06-15T12:38:08 < Tectu> and Steffanx just talks about dutch candy 2012-06-15T12:38:20 < Tectu> ABLomas, there ae 2012-06-15T12:38:26 < ABLomas> well, that's why i'm not going to query without permission 2012-06-15T12:38:26 < Tectu> there are good reasons for that* 2012-06-15T12:38:30 < Laurenceb_> brb fapping 2012-06-15T12:38:35 < Tectu> then ask in channel 2012-06-15T12:38:43 < Tectu> Laurenceb_, don't forget the paste 2012-06-15T12:38:50 < Laurenceb_> ewww 2012-06-15T12:38:53 < Tectu> karlp, how's it going with texane? 2012-06-15T12:38:59 < ABLomas> (well, i do not like private queries too, especially when there's channel, where this question would be on-topic) 2012-06-15T12:39:07 < karlp> it's exactly how it was when I last touched it. 2012-06-15T12:39:14 < karlp> (ie, I'm not working on it right now) 2012-06-15T12:39:31 < karlp> but I'm using it in my day job all day right now, so that's nice 2012-06-15T12:39:38 < Tectu> karlp, how about doing some full erasement? 2012-06-15T12:39:50 < karlp> I don't need that, so no. 2012-06-15T12:40:00 < Tectu> cmon 2012-06-15T12:40:59 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has joined ##stm32 2012-06-15T12:42:37 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [] 2012-06-15T12:50:29 < dongs> szczys's nick looks like one of those chinese spammers on rcgroups 2012-06-15T12:50:37 < dongs> BUY IPHONE 4S NOW 2012-06-15T12:52:48 < Tectu> lol 2012-06-15T12:56:36 -!- Laurenceb_ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has quit [Ping timeout: 244 seconds] 2012-06-15T12:58:55 -!- dekar [~dekar@dslb-084-059-151-044.pools.arcor-ip.net] has quit [Ping timeout: 252 seconds] 2012-06-15T13:09:00 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Ping timeout: 244 seconds] 2012-06-15T13:12:27 < karlp> hmm, using strtod takes up 8k. 2012-06-15T13:12:36 < dongs> ghwehg 2012-06-15T13:20:18 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has quit [Ping timeout: 245 seconds] 2012-06-15T13:23:08 < karlp> meh, and assert is pulling in some assert_func and fiprintf somewhere too 2012-06-15T13:23:20 < karlp> I thought assert() without -g was zero code 2012-06-15T13:30:39 < Tom_itx> http://www2.electronicproducts.com/Communications_processor_is_full_featured-article-ICDjh16_Jul2012-html.aspx 2012-06-15T13:35:33 < dongs> full features processor is full featured. 2012-06-15T13:37:06 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-15T13:37:09 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-15T13:38:36 < karlp> heh. 2012-06-15T13:38:48 < karlp> -DNDEBUG is the key, not removing -g 2012-06-15T13:38:54 < karlp> program went from 48k to 2k 2012-06-15T13:39:13 <+Steffanx> And does it still work? :) 2012-06-15T13:39:55 < karlp> about to find out :) 2012-06-15T13:40:25 < karlp> man, how come I only just learnt about ctrl-r in bash?! 2012-06-15T13:40:50 < pelrun_> haha ouch 2012-06-15T13:40:57 < karlp> yep, still seems to work just fine. 2012-06-15T13:41:06 <+Steffanx> I didn't know about it either. lol :P 2012-06-15T13:41:23 < karlp> put strtod back in, only back up to 5k. 2012-06-15T13:41:28 < pelrun_> bash history search is the best thing ever 2012-06-15T13:41:30 < karlp> that's still heaps of room for the C4 2012-06-15T13:41:43 < karlp> I used !firstletters a fair bit 2012-06-15T13:41:50 < karlp> but ctrl-r is even better 2012-06-15T13:42:03 < karlp> I like !$ for last word of last command. 2012-06-15T13:49:01 < dongs> what the feuck does ST mean when they write 0.6/0.65/0.7 for the fucking ball pitch on F4-bga 2012-06-15T13:52:17 < dongs> looks like STM3220G-EVAL uses the bga version 2012-06-15T13:52:19 < dongs> time to troll for docs 2012-06-15T13:52:37 < dongs> gerber filez 2012-06-15T13:52:38 < dongs> perfect. 2012-06-15T13:59:43 < pelrun_> min/nominal/max? XD 2012-06-15T14:00:05 < dongs> ................. 2012-06-15T14:00:08 < dongs> in the ST gerbers 2012-06-15T14:00:12 < dongs> its 0.66/0.63mm 2012-06-15T14:00:16 < dongs> for horizontal/vertical spacing 2012-06-15T14:00:17 < dongs> what the fuck 2012-06-15T14:02:00 < karlp> trollgerbers, only for the ninterwebnet? not for actual production? 2012-06-15T14:02:20 < dongs> gerbers from their -eval board 2012-06-15T14:02:26 < pelrun_> for fucking over any chinese fab that tries to make knockoffs 2012-06-15T14:02:31 < dongs> ghmm i re-measured and its 0.66 2012-06-15T14:02:33 < dongs> so igeuss its ok 2012-06-15T14:05:22 -!- izua [~izua@86.121.2.119] has joined ##stm32 2012-06-15T14:05:22 -!- izua [~izua@86.121.2.119] has quit [Changing host] 2012-06-15T14:05:22 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-15T14:05:25 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-15T14:20:39 < Laurenceb> lol 2012-06-15T14:21:02 < Laurenceb> "we can offer you extra pcbs, 95 @ 8euros each" 2012-06-15T14:21:13 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2012-06-15T14:21:34 < Laurenceb> i dont have 760 euros lying around tho 2012-06-15T14:23:37 < dongs> about your fuckup? 2012-06-15T14:23:59 <+izua> so they screwed up, and you have to pay extra? 2012-06-15T14:24:19 < dongs> no, he fucked up and made pcbs with wrong shit on them 2012-06-15T14:24:34 <+izua> neat. 2012-06-15T14:25:00 < dongs> Laurenceb: marg seems to be doing OK 2012-06-15T14:26:18 < Laurenceb> marg? 2012-06-15T14:26:38 < Laurenceb> no its another project 2012-06-15T14:27:09 < dongs> the magdwick attitude shit 2012-06-15T14:27:25 < dongs> i also got ch robotics EKF shit running side by side and its failing 2012-06-15T14:28:00 < dongs> http://i.imgur.com/QoMMo.png 2012-06-15T14:28:09 < dongs> left: ekf, right: marg 2012-06-15T14:29:29 < karlp> ekf? 2012-06-15T14:31:05 < Laurenceb> the waht 2012-06-15T14:31:17 < Laurenceb> oh 2012-06-15T14:31:23 < Laurenceb> like the diydrones shit? 2012-06-15T14:32:14 < Laurenceb> ah yes 2012-06-15T14:32:19 < Laurenceb> the adrupilot code 2012-06-15T14:32:29 < dongs> no tardupilot is DCM 2012-06-15T14:32:36 < dongs> magdwick shit is diferent 2012-06-15T14:32:36 < Laurenceb> hmm 2012-06-15T14:32:42 * Laurenceb googles 2012-06-15T14:33:27 < dongs> http://code.google.com/p/imumargalgorithm30042010sohm/ 2012-06-15T14:33:28 < dongs> that shit 2012-06-15T14:33:28 < dongs> bbl 2012-06-15T14:33:35 < Laurenceb> www.x-io.co.uk/res/doc/madgwick_internal_report.pdf 2012-06-15T14:33:43 < Laurenceb> nah thats DCM 2012-06-15T14:33:48 < Laurenceb> done with quaternions 2012-06-15T14:38:46 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-15T14:38:49 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-15T14:42:17 < Laurenceb> oops hate it when that happens 2012-06-15T14:42:38 < Laurenceb> accidentally emailed someone pointing out their company was breaking the law 2012-06-15T14:43:10 <+Steffanx> accidentally .. ? 2012-06-15T14:44:14 <+Steffanx> You accidentally press some keys on your keyboard, filled in an email address and accidentally sent the email? 2012-06-15T14:44:29 <+Steffanx> And for some reason the text in the email made sense 2012-06-15T14:44:37 < Laurenceb> no 2012-06-15T14:44:48 < Laurenceb> i was asking some technical questions 2012-06-15T14:44:49 <+Steffanx> /press/pressed 2012-06-15T14:45:16 < Laurenceb> and if you put 2 and 2 together they realise its obvious its illegal 2012-06-15T14:45:30 <+Steffanx> Oh, :) 2012-06-15T14:45:33 < Laurenceb> which i only realised after sending 2012-06-15T14:45:51 < Laurenceb> ill just bribe them now 2012-06-15T14:46:45 < Laurenceb> i was asking about suppliers they use and its obvious they must be making fake CE stickers 2012-06-15T14:47:16 <+Steffanx> So, that's not your problem is it? 2012-06-15T14:54:04 < cjbaird> "Oh, they're the 'China Export' stickers!" 2012-06-15T14:56:48 < Tectu> what? 2012-06-15T14:57:57 <+Steffanx> That 2012-06-15T14:58:01 < Tectu> aye 2012-06-15T14:58:05 < Tectu> how's it going, Steffanx 2012-06-15T14:58:11 <+Steffanx> Fine, there? 2012-06-15T15:00:54 < Tectu> stupid teachers think we have to go the last day to schoool and don't do anything else than watching movies.... 2012-06-15T15:01:38 <+Steffanx> Isn't that sort of the truth? 2012-06-15T15:01:56 < Tectu> what do you mean 2012-06-15T15:02:05 < dongs> Laurenceb: oh well, at least dcm in quats is less aids than diytrolls dcm 2012-06-15T15:02:33 < dongs> Laurenceb: you got a vibrostand? 2012-06-15T15:06:32 < ABLomas> well, if there's already talk about MARG... there's thread on russian rcdesign.ru forums. Some ppl already done and flew copter+aircraft with MARG or DCM-hybrid code 2012-06-15T15:06:44 < dongs> well of course 2012-06-15T15:06:45 < ABLomas> including custom OSD on F4 processor, etc 2012-06-15T15:07:13 < dongs> the problem with russian stuff is nobody can fucking read it 2012-06-15T15:07:17 < dongs> or use it 2012-06-15T15:07:18 < ABLomas> i will find that thread if interested, too bad - it's not opensource and it's in russian language (well, i could read easily, but probably google translate will fck it up) 2012-06-15T15:07:21 < ABLomas> meh 2012-06-15T15:07:23 < ABLomas> i could read and use :P 2012-06-15T15:07:38 < dongs> closedsores shit is about as useful as DJI naza 2012-06-15T15:07:53 < ABLomas> well, some part of code is opensource and available... 2012-06-15T15:08:05 < dongs> anyway, shrug 2012-06-15T15:08:12 < dongs> f4 osd, talk about overkill 2012-06-15T15:08:20 < dongs> what did they do, make it generate color? 2012-06-15T15:08:32 < ABLomas> yep, but... why not - it's cheap anyway! 2012-06-15T15:08:46 < dongs> cheaper than atmega2560! 2012-06-15T15:09:10 < ABLomas> and there's some discussions after testing one or another setting/algo, would be usefull probably, but as i told before - google translate will fck it up... 2012-06-15T15:09:14 < ABLomas> heh 2012-06-15T15:09:26 -!- cjbaird [~cjb@ppp121-44-30-62.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-15T15:09:28 < dongs> the guys at rcdesign are too excited with that rabbit shit 2012-06-15T15:10:01 < ABLomas> (well, i bought the same processor as naza32 for 5$ on ebay, so, i guess, others who buy for factories get F4 for that price) 2012-06-15T15:10:19 < dongs> stm32F405VG (64pin version) is aroudn $6 2012-06-15T15:10:32 < dongs> but i dont like 64pin version.. if im gonna do something with it I'd use hte bga shit 2012-06-15T15:11:56 < Tectu> damn bga shit man 2012-06-15T15:13:52 < Tectu> i feel like i should build an alarm clock 2012-06-15T15:14:12 < dongs> with F0? 2012-06-15T15:14:55 -!- dekar [~dekar@46.115.37.132] has joined ##stm32 2012-06-15T15:14:58 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-15T15:20:58 < Tectu> no, with F4 2012-06-15T15:21:14 < Tectu> and fancy unused 3.2" TFT and SD card with mp3 player shit noone needs 2012-06-15T15:25:23 < Laurenceb> stm32F405VG-laurenceb 2012-06-15T15:25:29 < Laurenceb> its the version with 2 halves 2012-06-15T15:26:02 <+izua> Tectu: and usb? 2012-06-15T15:26:11 <+izua> gotta reprogram that clock somehow 2012-06-15T15:26:13 < Tectu> sure, but don't forget bluetooth! 2012-06-15T15:26:29 < Tectu> also GPS! 2012-06-15T15:26:37 < Tectu> ya need to know where your alarmclock is 2012-06-15T15:27:06 < Tectu> also 3G, to send tweet everytime you stand up, go to bed and do anything else within your bed 2012-06-15T15:28:54 < pelrun_> Tectu: so a chumby, then? 2012-06-15T15:29:05 < Tectu> a what 2012-06-15T15:29:16 <+izua> Tectu: every time the clock changes hours? 2012-06-15T15:29:18 <+izua> or minutes? 2012-06-15T15:29:27 <+izua> so people ca njust watch your twitter and not need a clock anymore 2012-06-15T15:29:52 < pelrun_> http://en.wikipedia.org/wiki/Chumby 2012-06-15T15:30:11 < dongs> chumby sucks 2012-06-15T15:30:33 < dongs> http://venturebeat.com/2012/04/20/chumby-kaput/ haha 2012-06-15T15:30:40 < Tectu> lawl izua 2012-06-15T15:30:46 < pelrun_> dongs: that was the point 2012-06-15T15:31:14 < Tectu> pelrun_, mine would be too cool for that 2012-06-15T15:34:26 <+Steffanx> izua you know that's pretty useless? 2012-06-15T15:34:34 <+Steffanx> My twitter client says "xx minutes ago" :) 2012-06-15T15:38:30 < BrainDamage> one would guess that also any device capable of accessing twitter also has a clock ... 2012-06-15T15:39:22 < Tectu> one would guess that every device has a clock ... 2012-06-15T15:40:10 < karlp> for various definitions of clock 2012-06-15T15:40:27 < dongs> twitter clock would have to be NTP synced with atomic sources minimum 3 times per hour 2012-06-15T15:40:39 < dongs> so you can know down to microsecond how long a go someone twittered that they took a dump 2012-06-15T15:41:00 < dongs> aminotwrong 2012-06-15T15:41:05 -!- Tectu is now known as Tibbers 2012-06-15T15:41:08 -!- Tibbers is now known as Tectu 2012-06-15T15:41:23 < BrainDamage> you are, unless the message is timestamped, network latency jitter would make the resolution way worse 2012-06-15T15:41:34 < dongs> BrainDamage: how the fuck do you think NTP works 2012-06-15T15:41:36 < BrainDamage> timestamped at source 2012-06-15T15:42:00 < BrainDamage> I know that ntp compensates for network latency 2012-06-15T15:42:03 < BrainDamage> but does twitter? 2012-06-15T15:42:12 < BrainDamage> are the messages timestamped at source or server? 2012-06-15T15:42:15 < dongs> no but that's the invention 2012-06-15T15:42:24 < dongs> NETWORK LATENCY COMPENSATED TWITS. 2012-06-15T15:42:33 < dongs> now all you need is ipad client 2012-06-15T15:42:37 < dongs> and you're ready for kickstarter 2012-06-15T15:42:40 < Laurenceb> lol 2012-06-15T15:42:43 <+Steffanx> lol? 2012-06-15T15:42:59 < Laurenceb> kickstarter+ipad+crapple 2012-06-15T15:43:26 < Laurenceb> a recipe for hipsterfail 2012-06-15T15:43:34 < dongs> and instant 100k in pocket 2012-06-15T15:43:44 < dongs> i.e. 'scanbox' 2012-06-15T15:43:54 < Laurenceb> kickstarter aka take the money and run 2012-06-15T15:43:57 < dongs> http://www.kickstarter.com/projects/limemouse/scanbox-turn-your-smartphone-into-a-portable-scann 2012-06-15T15:44:05 < BrainDamage> portable scam* 2012-06-15T15:44:07 < dongs> 123k to make a paperfuckingbox. 2012-06-15T15:44:07 < Laurenceb> portable scammer 2012-06-15T15:44:10 < dongs> yes. 2012-06-15T15:46:00 <+Steffanx> I see jealous people 2012-06-15T15:46:14 <+Steffanx> Such a fantastic idea / project 2012-06-15T15:46:34 < pelrun_> bitches love cardboard 2012-06-15T15:47:13 < karlp> who cares about the projects, kickstarter themselves are laughing all the way to the bank 2012-06-15T15:47:30 < dongs> haha, fantastic 2012-06-15T15:47:30 <+Steffanx> Who cares about it anyway? 2012-06-15T15:52:11 <+Steffanx> I still have to start a kickstarter project 2012-06-15T15:52:15 <+Steffanx> too bad it seems to be US only 2012-06-15T15:52:26 < dongs> ill be your proxy 2012-06-15T15:52:28 < dongs> for 20% cut 2012-06-15T15:52:42 <+Steffanx> GetLaurencebACamera-omatic 2012-06-15T15:53:56 <+Steffanx> Laurenceb made a picture of the STM32 he broke yet? 2012-06-15T16:02:00 < dongs> http://en.wikipedia.org/wiki/JooJoo haha i remember that shit 2012-06-15T16:02:14 < dongs> Operating system: GNU/Linux 2012-06-15T16:02:16 < dongs> that was its downfall 2012-06-15T16:03:22 <+Steffanx> Is that something you really want to remember? 2012-06-15T16:06:24 < dongs> it did cause a bit of internet trollery, so its noteworthy 2012-06-15T16:06:51 <+Steffanx> oh, ofcourse 2012-06-15T16:08:01 <+Steffanx> Did you go to Eduard Khil funaral btw? 2012-06-15T16:08:06 <+Steffanx> I think you did 2012-06-15T16:08:17 <+Steffanx> *khil's 2012-06-15T16:08:26 < dongs> who. 2012-06-15T16:08:31 <+Steffanx> You 2012-06-15T16:12:16 < dongs> The announcement included a tablet and Smartphone named the Grid 10 (10.1 inch tablet) and The Grid 4 (4 inch Smartphone), both running GridOS, a fork of the Android operating system. 2012-06-15T16:12:20 < dongs> haha gridos , more liek GRIDS 2012-06-15T16:17:07 < BrainDamage> sometimes I wonder if dongs is paid mby m$ to troll other OS 2012-06-15T16:17:18 < dongs> On January 9th 2012, Fusion Garage confirmed that the company had gone into liquidation owing creditors $40 million. 2012-06-15T16:17:21 < dongs> lol 2012-06-15T16:17:53 < dongs> so much fail 2012-06-15T16:18:01 < Laurenceb> gringoos 2012-06-15T16:18:20 < Laurenceb> or gringoOS 2012-06-15T16:18:27 < dongs> TrollOS 2012-06-15T16:18:39 < pelrun_> bongOS 2012-06-15T16:18:54 < dongs> thats illegal 2012-06-15T16:19:15 <+Steffanx> No BrainDamage .. the radiation in japan is reaching his brains :P 2012-06-15T16:33:11 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer] 2012-06-15T16:33:16 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Remote host closed the connection] 2012-06-15T16:35:18 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 245 seconds] 2012-06-15T16:37:02 < Tectu> bitches like pointers s = *((uint16_t*)&buffer[0]); 2012-06-15T16:39:37 < zyp> wat 2012-06-15T16:40:12 < pelrun_> seems legit 2012-06-15T16:40:28 < Tectu> zyp, youre back! 2012-06-15T16:40:38 < zyp> back? 2012-06-15T16:40:49 < Tectu> you were in vacations? 2012-06-15T16:41:01 < Tectu> btw, isnt &buffer[0]; the same as &buffer? 2012-06-15T16:41:20 < zyp> Tectu, I still am 2012-06-15T16:41:25 < Tectu> zyp, hwy 2012-06-15T16:41:27 < Tectu> why* 2012-06-15T16:41:39 < zyp> currently lazing about in a hotel in tokyo 2012-06-15T16:41:47 < pelrun_> hah you never vacation from the internet 2012-06-15T16:41:59 < Tectu> why the hack are you in tokyo 2012-06-15T16:42:08 < zyp> why not? 2012-06-15T16:42:23 < Tectu> what are you doing in _tokyo_ ? 2012-06-15T16:42:39 < pelrun_> bitches love tokyo 2012-06-15T16:43:17 < Tectu> lol'd 2012-06-15T16:43:18 < BrainDamage> he plans to meet with dongs 2012-06-15T16:43:25 < Tectu> he is dongs 2012-06-15T16:46:43 < Laurenceb> trollcation 2012-06-15T16:48:27 < pelrun_> trollception 2012-06-15T16:49:23 < zyp> so, anything interesting going on, or are you just bullshitting around like usual? 2012-06-15T16:52:57 < Laurenceb> im doing CE documentation 2012-06-15T16:53:03 < Laurenceb> so yes 2012-06-15T16:53:26 < zyp> doesn't sound very interesting 2012-06-15T16:53:53 < Laurenceb> no, Einstein 2012-06-15T16:54:17 <+dekar> [15:41] btw, isnt &buffer[0]; the same as &buffer? <-- it isn't 2012-06-15T16:54:37 < Laurenceb> different type of pointer 2012-06-15T16:54:49 < Laurenceb> wait 2012-06-15T16:54:58 < Laurenceb> not &buffer is a pointer to a pointer 2012-06-15T16:55:02 <+dekar> &buffer[0]; is a pointer to the first element and &buffer; is a pointer to a pointer to the first element 2012-06-15T16:55:08 < Laurenceb> dawg 2012-06-15T16:55:31 < Tectu> ah, thanks :) 2012-06-15T16:55:34 < zyp> dekar, no 2012-06-15T16:56:12 <+dekar> zyp, yes :) 2012-06-15T16:56:17 < zyp> aren't buf and &buf equivalent when buf is an array? 2012-06-15T16:56:21 < Laurenceb> pointer to the array 2012-06-15T16:56:42 < karlp> no &buf[0] is euqal to buf when buf is an array 2012-06-15T16:56:51 < karlp> hmm, what does &buf oint to? 2012-06-15T16:56:55 < karlp> maybe that's also the same thing 2012-06-15T16:57:02 < pelrun_> &buf can't exist 2012-06-15T16:57:10 <+dekar> zyp, if buf is an array (a pointer) then &buf is a pointer to an array (pointer to a pointer) 2012-06-15T16:57:56 < zyp> arrays are not pointers 2012-06-15T16:58:12 < karlp> but the name of an array is defined to be a pointer to the first element isn't it? 2012-06-15T16:58:27 < karlp> which is why &buf[0] == buf 2012-06-15T16:58:27 <+dekar> zyp, they are 2012-06-15T16:58:42 < pelrun_> there is no &buf 2012-06-15T16:59:11 <+dekar> pelrun_, so how do you become three star programmer if pointers to pointers can't exist? 2012-06-15T16:59:24 < pelrun_> of course pointers to pointers can exist 2012-06-15T16:59:41 < pelrun_> you can't get a pointer to a pointer to an array 2012-06-15T16:59:55 < pelrun_> at least, not using that syntax 2012-06-15T17:00:02 <+dekar> sure you can, try it 2012-06-15T17:00:31 < pelrun_> so it implicitly creates a variable to hold the intermediate pointer? 2012-06-15T17:00:34 <+dekar> you'll need some brackets at some point, it will still work 2012-06-15T17:01:24 < pelrun_> "buf" is an array, not a variable holding a pointer to an array 2012-06-15T17:02:47 < zyp> pelrun_, exactly 2012-06-15T17:05:45 < pelrun_> c has syntactic sugar to get arrays to evaluate to their pointer in certain circumstances 2012-06-15T17:06:03 < Tectu> what? 2012-06-15T17:06:12 < Tectu> circumstances 2012-06-15T17:06:25 < pelrun_> pregnancy 2012-06-15T17:06:28 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has joined ##stm32 2012-06-15T17:07:13 < pelrun_> http://c-faq.com/~scs/cgi-bin/faqcat.cgi?sec=aryptr 2012-06-15T17:07:51 <+dekar> #include 2012-06-15T17:07:52 <+dekar> int main(int argc, char *argv[]) 2012-06-15T17:07:52 <+dekar> { 2012-06-15T17:07:52 <+dekar> char myArray[] = "hello world!\n"; 2012-06-15T17:07:52 <+dekar> printf("%s", *(&myArray)); 2012-06-15T17:07:52 <+dekar> fflush(stdout); 2012-06-15T17:07:53 <+dekar> return 0; 2012-06-15T17:07:55 <+dekar> } 2012-06-15T17:08:20 < pelrun_> uh, *& cancels out 2012-06-15T17:08:45 <+dekar> pelrun_, ofc they do, yet "&myArray" can exist 2012-06-15T17:08:58 <+dekar> I just prove it 2012-06-15T17:09:00 < pelrun_> it decays to just the array pointer 2012-06-15T17:10:05 < pelrun_> ah, heh 2012-06-15T17:10:45 <+dekar> pelrun_, want me to compile with -O0? it still runs 2012-06-15T17:10:50 < pelrun_> of course it runs 2012-06-15T17:10:53 <+dekar> that's valid C 2012-06-15T17:10:53 <+dekar> I don't get your point 2012-06-15T17:11:03 < pelrun_> it's just semantics 2012-06-15T17:11:03 < zyp> http://paste.jvnv.net/view/EXE8m <- I made a test here, it prints the same value three times. 2012-06-15T17:11:11 <+dekar> you can make pointers to pointers all day long 2012-06-15T17:11:14 < zyp> thus, all thre expressions are equivalent 2012-06-15T17:11:18 < zyp> three* 2012-06-15T17:11:44 < zyp> an array label can be implicitly casted to a pointer, but _is_ not a pointer 2012-06-15T17:11:50 <+dekar> "[15:58] there is no &buf" 2012-06-15T17:11:58 < zyp> because a pointer to an array is not the same as a pointer to a pointer 2012-06-15T17:12:26 < pelrun_> dekar: sorry, I was referring to the operation, not to how C actually decomposes the statement 2012-06-15T17:13:08 < zyp> pelrun_, huh? 2012-06-15T17:13:37 < pelrun_> lets just say my statement was imprecise 2012-06-15T17:14:16 < pelrun_> because C actually handles the statements identically, even though (decomposed)buf and &buf would seem to be different things 2012-06-15T17:15:24 <+dekar> zyp, I actually think they _are_ pointers, but stuff like "sizeof(myArray)" works with them (which doesn't work with pointers). Though that's due to the fact that the compiler evaluates sizeof at compile time in some cases 2012-06-15T17:15:37 < zyp> dekar, arrays are not pointers 2012-06-15T17:15:46 < pelrun_> dekar: read the c faq again - arrays are not pointers 2012-06-15T17:16:08 < zyp> dekar, I made a test with typeid() as well, it clearly distinguishes between arrays and pointers 2012-06-15T17:16:37 <+dekar> pelrun_, so what makes them different? the fact that GCC stores the size at myArray[-1]? 2012-06-15T17:16:46 < pelrun_> what? 2012-06-15T17:16:56 < zyp> dekar, you are clearly confused 2012-06-15T17:16:57 < pelrun_> no, it's a syntax thing 2012-06-15T17:17:15 < pelrun_> an array is the whole object of multiple memory locations 2012-06-15T17:17:17 <+dekar> I am pretty sure once they're compiled they're just pointers 2012-06-15T17:17:18 < zyp> dekar, size is _not_ stored at [-1] 2012-06-15T17:17:30 <+dekar> zyp, it is 2012-06-15T17:17:37 < pelrun_> a pointer is a single address 2012-06-15T17:17:38 < zyp> no. 2012-06-15T17:17:57 < pelrun_> I've never seen any reference to this array[-1] malarkey 2012-06-15T17:18:08 < zyp> pelrun_, because it's wrong 2012-06-15T17:18:24 < pelrun_> hence malarkey :) 2012-06-15T17:18:44 < zyp> dekar, are you thinking of heap allocations? 2012-06-15T17:19:05 < pelrun_> as soon as malloc comes into it, you don't have an array 2012-06-15T17:19:16 < zyp> pelrun_, exactly 2012-06-15T17:19:18 <+dekar> zyp, well maybe I am 2012-06-15T17:19:48 <+dekar> but what makes arrays different from pointers then? (once they're compiled) 2012-06-15T17:19:50 < pelrun_> you have a variable that holds a pointer to a region of memory 2012-06-15T17:20:04 < pelrun_> dekar: there are no arrays in compiled code 2012-06-15T17:20:15 <+dekar> so they just become pointers? 2012-06-15T17:20:16 < pelrun_> it's purely a C language construct 2012-06-15T17:20:41 <+dekar> well that's what I meant 2012-06-15T17:20:55 < zyp> dekar, the difference is that a pointer compiles to a symbol to a location containing an address, while an array compiles to a symbol to the data itself 2012-06-15T17:21:20 < zyp> dekar, so even from an assembly perspective, pointers and arrays are very different 2012-06-15T17:22:45 < pelrun_> dear god 2012-06-15T17:22:52 < pelrun_> 5["abcdef'} is legal C 2012-06-15T17:23:14 < pelrun_> uh, just pretend I typed a closing ] instead of a } 2012-06-15T17:23:33 < zyp> and " instead of '? 2012-06-15T17:23:51 < pelrun_> :S 2012-06-15T17:23:58 <+dekar> zyp, so how do they behave different if I call "printf("%u", myArray[-1]);"? I pass a pointer in both cases 2012-06-15T17:24:16 < zyp> dekar, what do you mean? 2012-06-15T17:24:38 <+dekar> you meant they are different even from an assembly perspective 2012-06-15T17:24:48 < zyp> ah, yes 2012-06-15T17:25:03 <+dekar> how would I see the difference? 2012-06-15T17:25:36 < zyp> let me make an example for you 2012-06-15T17:25:55 < zyp> do you prefer x86 or arm assembly? 2012-06-15T17:26:12 <+dekar> I barely know x86er 2012-06-15T17:26:19 <+dekar> so rather arm 2012-06-15T17:28:09 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-06-15T17:30:18 < zyp> http://paste.jvnv.net/view/FWu1C 2012-06-15T17:32:18 < zyp> http://paste.jvnv.net/view/6RWnd <- it's more clear when compiled with -O2 2012-06-15T17:35:41 < zyp> in the pointer case, the first two instructions load r3 with the pointer address, 2012-06-15T17:36:39 < zyp> the third instruction loads the contents of memory location pointed to by r3 to r3 2012-06-15T17:37:37 < zyp> the fourth instruction loads the contents of memory location pointed to by r3+4 to r0 2012-06-15T17:37:54 < zyp> and the fifth instruction calls x 2012-06-15T17:38:19 < zyp> in the array case, first two instructions load r3 with the array address 2012-06-15T17:38:29 < zyp> the third instruction loads the contents of memory location pointed to by r3+4 to r0 2012-06-15T17:38:36 < zyp> and the fourth instruction calls x 2012-06-15T17:38:54 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-06-15T17:39:12 < zyp> was this clear enough? 2012-06-15T17:40:41 <+dekar> well yeah thanks, but why are the addresses for the pointer and the array zero? 2012-06-15T17:41:09 < zyp> because it's an unlinked object (.o file) 2012-06-15T17:41:24 <+dekar> I mean those "movw r3, #0" 2012-06-15T17:41:27 < zyp> they are filled by the linker 2012-06-15T17:41:39 <+dekar> oh I see, never disassembled those I think 2012-06-15T17:41:48 < zyp> same reason that the function call to x also is zero 2012-06-15T17:42:12 <+dekar> ah right, thanks a lot! 2012-06-15T17:47:52 -!- tavish [~tavish@59.177.3.115] has joined ##stm32 2012-06-15T17:47:53 -!- tavish [~tavish@59.177.3.115] has quit [Changing host] 2012-06-15T17:47:53 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-15T17:49:49 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-06-15T17:51:49 < szczys> dongs: my username is my last name 2012-06-15T18:00:10 < BrainDamage> mmm, I've seen your name somewhere already 2012-06-15T18:00:59 < BrainDamage> are you the hackaday editor? 2012-06-15T18:16:12 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-15T18:30:11 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has joined ##stm32 2012-06-15T18:30:12 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has quit [Changing host] 2012-06-15T18:30:12 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32 2012-06-15T18:31:59 < Laurenceb> chibios doesnt have an option for external clk in does it? 2012-06-15T18:33:23 < Laurenceb> oh wait it does 2012-06-15T18:33:25 < Laurenceb> sweet 2012-06-15T18:33:39 < Laurenceb> STM32_HSE_BYPASS 2012-06-15T18:40:32 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-15T18:53:37 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 244 seconds] 2012-06-15T19:06:48 -!- TitanMKD [~Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-15T19:13:49 -!- dekar_ [~dekar@176.5.227.127] has joined ##stm32 2012-06-15T19:13:52 -!- mode/##stm32 [+v dekar_] by ChanServ 2012-06-15T19:17:16 -!- dekar [~dekar@46.115.37.132] has quit [Ping timeout: 244 seconds] 2012-06-15T19:19:23 < szczys> BrainDamage: yes... been working away on today's posts 2012-06-15T19:20:00 < TitanMKD> very good day for STM32F4 ChibiOS as finally a working USB CDC driver 2012-06-15T19:20:13 < TitanMKD> other USB stuff shall also work fine 2012-06-15T19:25:09 < Laurenceb> oh 2012-06-15T19:25:12 < Laurenceb> hell yeah 2012-06-15T19:25:21 < Laurenceb> thats the one issue i had with it 2012-06-15T19:25:36 * Laurenceb is making a usb F4 SDR dongle that runs chibios 2012-06-15T19:26:17 * Laurenceb is failing 2012-06-15T19:26:22 < TitanMKD> haha ;) 2012-06-15T19:26:40 < Laurenceb> i sent a 0.8v peak to peak tcxo singal into external osc input 2012-06-15T19:26:47 < Laurenceb> does it work...? NO 2012-06-15T19:26:47 < TitanMKD> Laurenceb you should look https://github.com/mossmann/hackrf for a very cool SDR stuff 2012-06-15T19:27:33 < TitanMKD> but it will be more expensive than any existing SDR 2012-06-15T19:27:50 < TitanMKD> but support huge freq range and RX + TX :) 2012-06-15T19:28:27 < TitanMKD> Laurenceb your problem is USB does not work at all because of crystal ? or just the USB ? 2012-06-15T19:29:26 < Laurenceb> just the usb 2012-06-15T19:29:37 < Laurenceb> going to fix the xtal with the grovvy circuit form dongs 2012-06-15T19:29:54 < Laurenceb> i get how it works now, just an RC oscillator thats biased by the tcxo input 2012-06-15T19:30:09 < Laurenceb> so it could actually run at very small input voltages, very clever 2012-06-15T19:30:17 < TitanMKD> have you the right capacitor value for the external clock ? 2012-06-15T19:30:34 < Laurenceb> huh? 2012-06-15T19:30:37 < TitanMKD> anyway for USB it requires accurate oscillator and not a simple RC stuff 2012-06-15T19:30:39 < Laurenceb> i have a TCXO 2012-06-15T19:30:49 < Laurenceb> you dont understand 2012-06-15T19:30:53 < TitanMKD> ha yes tcxo oups 2012-06-15T19:31:03 < Laurenceb> you use an RC oscillator that give sabout the right freuqency 2012-06-15T19:31:14 < Laurenceb> then haxor it with a tcxo signal 2012-06-15T19:31:19 < TitanMKD> yes 2012-06-15T19:31:21 < Laurenceb> forcing it to phase with the tcxo 2012-06-15T19:31:29 < Laurenceb> its veyr clever 2012-06-15T19:31:44 < TitanMKD> we use a better stuff for that on JellyBean ;) 2012-06-15T19:32:04 < TitanMKD> a specific component to manage upto 8 different channel freq ;) 2012-06-15T19:32:24 < TitanMKD> the component is on lemondrop board in fact 2012-06-15T19:32:52 < TitanMKD> Si5351 is very good for that 2012-06-15T19:33:05 < TitanMKD> and the accuracy is just amazing 2012-06-15T19:33:09 < TitanMKD> 0 drift ... 2012-06-15T19:33:28 < TitanMKD> it is a VCXO 2012-06-15T19:34:01 < TitanMKD> freq can be programmed through I2C from 8KHz to 160MHz 2012-06-15T19:35:19 < TitanMKD> it also have an OTP to reload configuration at power on 2012-06-15T19:37:32 < Laurenceb> i dint knoe F4 has SSCG 2012-06-15T19:37:39 < Laurenceb> arg speeling 2012-06-15T19:50:38 < Laurenceb> i might be able to make it work with some resistors and a cap 2012-06-15T19:50:56 < Laurenceb> bbl 2012-06-15T20:30:08 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-06-15T20:40:44 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Quit: Quitte] 2012-06-15T20:41:58 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-202.clienti.tiscali.it] has quit [Ping timeout: 245 seconds] 2012-06-15T20:54:34 -!- Guest30161 is now known as CheBuzz 2012-06-15T21:20:15 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-06-15T21:22:09 -!- CheBuzz [~CheBuzz@76.164.192.124] has quit [Excess Flood] 2012-06-15T21:22:59 -!- CheBuzz [~CheBuzz@76.164.192.124] has joined ##stm32 2012-06-15T21:45:54 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving] 2012-06-15T22:12:21 -!- TitanMKD [~Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 265 seconds] 2012-06-15T22:13:14 < szczys> I have these compiler flags from a Makefile intended for the STM32F4-Discovery 2012-06-15T22:13:17 < szczys> CFLAGS = -g -O2 -Wall -Tstm32_flash.ld 2012-06-15T22:13:17 < szczys> CFLAGS += -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork 2012-06-15T22:13:17 < szczys> CFLAGS += -mfloat-abi=hard -mfpu=fpv4-sp-d16 2012-06-15T22:13:28 < szczys> I'd like to use this makefile with the F0 discovery board 2012-06-15T22:13:48 < szczys> I know I need to change the mcpu: "-mcpu=cortex-m0" 2012-06-15T22:13:53 < szczys> but what about the rest of the stuff 2012-06-15T22:14:01 < szczys> that third line is something I've never encountered before 2012-06-15T22:14:37 < karlp> you want -mthumb, but definitely not interwork. 2012-06-15T22:14:45 < karlp> drop all the float stuff too 2012-06-15T22:14:56 < karlp> and try -march=armv6-m 2012-06-15T22:15:00 < szczys> okay, thanks! 2012-06-15T22:15:26 < karlp> or armv6m-s or something, whatever zyp said earlier 2012-06-15T22:15:46 < szczys> I'll check the logs.... I remember it from a couple days ago 2012-06-15T22:30:50 < Tectu> karlp, what's thumb-interwork? 2012-06-15T22:36:04 < szczys> looks like zippe suggesed: -march=armv6s-m 2012-06-15T22:54:43 -!- Laurenceb_ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has joined ##stm32 2012-06-15T23:00:35 < karlp> thumb-interwork is making code that can call from thumb code into arm code iirc 2012-06-15T23:01:23 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-15T23:04:33 < szczys> grrrrrrrr 2012-06-15T23:04:35 < szczys> warning: implicit declaration of function 'assert_param' 2012-06-15T23:04:53 < szczys> when I try to compile the peripheral libraries 2012-06-15T23:05:18 < szczys> and it bombs out with an error in one that looks like it's missing a #DEFINE (or that it's defined in a header file that's not included) 2012-06-15T23:05:22 < karlp> there's a #define for use assert or something in the _board.c config file,if you're using that stuff 2012-06-15T23:05:51 < szczys> http://pastebin.com/VhEwTSPi 2012-06-15T23:07:10 < Laurenceb_> TitanMKD: did you say F4 usb is supported? 2012-06-15T23:07:47 < szczys> karlp: I'm not sure what you mean by _board.c 2012-06-15T23:08:49 < szczys> oh, I see it now in the stm32f0xx_conf.h file 2012-06-15T23:08:58 < szczys> hmmm.... maybe I need to set a variable in the makefile 2012-06-15T23:09:26 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Read error: Connection reset by peer] 2012-06-15T23:14:53 < Laurenceb_> cuz i dont see it 2012-06-15T23:16:33 < jpa-> supported in what? 2012-06-15T23:17:29 < Laurenceb_> chibios 2012-06-15T23:23:23 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-15T23:23:35 < jpa-> i don't think it is 2012-06-15T23:25:24 < szczys> karlp: I found the file you're talking about, but still can't figure out how to get rid of the compiler warning 2012-06-15T23:27:45 -!- dekar_ [~dekar@176.5.227.127] has quit [Ping timeout: 265 seconds] 2012-06-15T23:28:28 < Laurenceb_> apparently it was just added 2012-06-15T23:28:37 < Laurenceb_> but i dont see it on github 2012-06-15T23:36:39 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-15T23:38:07 < szczys> well well 2012-06-15T23:38:28 < szczys> it seems the firmware package for the STM32F0-Discovery includes an outdated peripheral library 2012-06-15T23:45:28 < szczys> ah, nothing major... looks mostly like better doxygen tags 2012-06-15T23:45:32 < szczys> I keep getting this error: 2012-06-15T23:45:53 < szczys> src/peripherals/stm32f0xx_dac.c:151:26: error: 'RCC_APB1Periph_DAC' undeclared (first use in this function) 2012-06-15T23:46:58 < szczys> the thing is that it's defined in a different header file: rcc.h 2012-06-15T23:47:18 < szczys> so if I include that one (acutally it's stm32f0xx_rcc.h) 2012-06-15T23:47:23 < szczys> the error goes away 2012-06-15T23:47:27 < szczys> doesn't that seem strange? 2012-06-15T23:49:53 -!- cjbaird [~cjb@ppp121-44-30-62.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-15T23:53:12 < Laurenceb_> http://www.youtube.com/watch?v=UareDFcnZTY&feature=plcp 2012-06-15T23:53:32 < szczys> ah-ha.... the assert param stuff is an issue with what order the files are being included 2012-06-15T23:54:46 < Laurenceb_> http://forum.chibios.org/phpbb/viewtopic.php?f=3&t=401&start=30 2012-06-15T23:54:56 < szczys> laurenceb: looks like usb is working... did you find it in the repo yet? 2012-06-15T23:54:59 < Laurenceb_> looks like its ready in the development branch 2012-06-15T23:55:32 < Laurenceb_> seems they want to do a little work on the examples before releasing 2012-06-15T23:56:05 < Laurenceb_> ChibiOS is so much neater than PiOS from openpilot 2012-06-15T23:56:15 < Laurenceb_> code is actually readable 2012-06-15T23:56:31 < Laurenceb_> i like this :P 2012-06-15T23:56:31 < TitanMKD> szczys i tested USB CDC it wortk fine now 2012-06-15T23:56:39 < Laurenceb_> nice 2012-06-15T23:56:49 < Laurenceb_> this is from the development branch? 2012-06-15T23:56:56 < TitanMKD> from trunk yes 2012-06-15T23:57:06 < Laurenceb_> is that on github? 2012-06-15T23:57:11 < TitanMKD> no on svn 2012-06-15T23:57:35 < TitanMKD> I use the official ChibiOS SVN 2012-06-15T23:57:51 < TitanMKD> https://chibios.svn.sourceforge.net/svnroot/chibios/ 2012-06-15T23:57:53 < Laurenceb_> ah 2012-06-15T23:58:04 < TitanMKD> refreshed each day with latest stuff 2012-06-15T23:58:29 < TitanMKD> this one if you prefer 2012-06-15T23:58:29 < TitanMKD> https://chibios.svn.sourceforge.net/svnroot/chibios/trunk --- Day changed Sat Jun 16 2012 2012-06-16T00:02:01 < Laurenceb_> i see 2012-06-16T00:03:19 < Laurenceb_> looks like the USB_MSC example is getting ported soon 2012-06-16T00:03:27 < Laurenceb_> i could run my datalogger on chibios 2012-06-16T00:17:27 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Read error: Connection reset by peer] 2012-06-16T00:24:31 < karlp> szczys: that looks like some pretty dodgy demo firmware packages from st if it depends on the order of inclusion :( 2012-06-16T00:24:43 < szczys> well 2012-06-16T00:24:53 < szczys> I'm getting a warning about a function called assert_param() 2012-06-16T00:25:07 < szczys> it's defined in the stm32f0xx_conf.h file 2012-06-16T00:25:15 < szczys> but that's getting included last by the makefile I'm using 2012-06-16T00:25:18 < karlp> sorry, I'm too busy watching mushrooms: http://www.youtube.com/watch?feature=player_embedded&v=8vxkBVTdzRQ 2012-06-16T00:25:54 < szczys> the dodgy part is the define used in a C file that does include the header where it's being defined 2012-06-16T00:26:10 < szczys> I filed a bug with STM and they said it's compiling for them so perhaps I'm just doing it wrong 2012-06-16T00:46:44 < szczys> Yay!!!! 2012-06-16T00:46:47 -!- izua [~izua@86.121.2.119] has joined ##stm32 2012-06-16T00:46:48 -!- izua [~izua@86.121.2.119] has quit [Changing host] 2012-06-16T00:46:48 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-16T00:46:51 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-16T00:47:04 < szczys> All rejoice... I just comiled and loaded my first ARM program to flash... every! 2012-06-16T00:47:29 < szczys> Boy did I waste a lot of time getting one LED to illuminate :-) 2012-06-16T00:51:37 < zyp> did you get the flashloader working, or did you give up and use something else to flash? 2012-06-16T00:51:48 < szczys> I gave up and used OpenOCD 2012-06-16T00:52:30 < szczys> I don't know how to use a debugger, so I think it will be almost impossible for me to get that flash loader working in the stlink program 2012-06-16T00:53:38 < TitanMKD> To Flash & Debug for my STM32F4 Discovery I use EclipseIndigo+TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0 only the ST-LINK_gdbserver 2012-06-16T00:53:51 < szczys> right 2012-06-16T00:54:04 < TitanMKD> anyway also tested open source stlink and it work fine 2012-06-16T00:54:07 < szczys> I'm talking about debugging the stlink package as I try to get the flash programmer to work 2012-06-16T00:54:14 < szczys> right 2012-06-16T00:54:27 < szczys> but it currently can't write to flash on the STM32F0-Discovery 2012-06-16T00:54:58 < szczys> I believe zyp was the one who did the coding to get working with the F4 2012-06-16T00:55:26 < TitanMKD> woo there's support for STM32F05xx chips !! 2012-06-16T00:55:35 < TitanMKD> it is a typo or a new chipset ? 2012-06-16T00:55:50 < szczys> I added support to load into RAM 2012-06-16T00:55:56 < szczys> but it still lacks the ability to write to flash 2012-06-16T00:56:08 < szczys> I wish I could get it working... it's a lot easier than using OpenOcd 2012-06-16T00:56:29 < szczys> that's the chip on the STM32F0-Discovery board 2012-06-16T00:57:45 < zyp> szczys, I only added code to speed up flashing on F4 2012-06-16T00:57:56 < zyp> it was working before, I just made it faster 2012-06-16T00:58:30 < szczys> oh, I see 2012-06-16T00:58:50 < szczys> are you in contact with Texane often? 2012-06-16T00:59:53 < zyp> not at all 2012-06-16T01:00:18 < TitanMKD> anyone have info on STM32F5 features ? 2012-06-16T01:01:13 < karlp> someone said they'd been on some training recently, 2012-06-16T01:01:29 < karlp> but f3 and f5 were said to be f1/f4 sort of thing, with more analog front end 2012-06-16T01:01:29 < TitanMKD> i saw a powerpoint presentation 2012-06-16T01:01:34 < TitanMKD> it will be 55nm 2012-06-16T01:01:43 < karlp> what is f1/f4 now? 2012-06-16T01:01:49 < TitanMKD> 80nm 2012-06-16T01:02:03 < TitanMKD> so lot of space for lot of stuff ;) 2012-06-16T01:02:13 < TitanMKD> I want the SGPIO features like NXP LPC43xx 2012-06-16T01:02:16 < zyp> probably F2 rather than F1-ish 2012-06-16T01:02:30 < karlp> well, it's only interesting academcailly, 2012-06-16T01:02:34 < TitanMKD> and ADC @20msps ;) 2012-06-16T01:02:42 < karlp> I don't really need to care about 55nm vs 28nm vs 115nm, 2012-06-16T01:02:49 < zyp> TitanMKD, how does the SGPIO work? 2012-06-16T01:02:56 < karlp> just what the power consumption is for my own application for a given chip 2012-06-16T01:03:08 < TitanMKD> zyp you configure tons of stuff and at end it is like an FPGA 2012-06-16T01:03:09 < zyp> karlp, agreed, the results are what is interesting to us 2012-06-16T01:03:35 < zyp> TitanMKD, that's not a really good explanation :p 2012-06-16T01:03:43 < TitanMKD> zyp there's some slice stuff to link SGPIO between them like synchro on clock and also to serialize or deserialize with N SGPIO 2012-06-16T01:03:57 < zyp> I've heard about the SGPIO and what it can do, but not how and how it is used 2012-06-16T01:04:24 < TitanMKD> we have samples on hackrf 2012-06-16T01:04:37 < zyp> I assume you're not writing HDL for it, so it's not like an FPGA in that respect :p 2012-06-16T01:04:39 < karlp> that's not an explanation either :) 2012-06-16T01:04:43 < TitanMKD> it is more clear now but i need to experiment more to do a logic analyzer 2012-06-16T01:05:20 < TitanMKD> look here https://github.com/mossmann/hackrf/wiki/LPC4350-SGPIO-Experimentation 2012-06-16T01:05:52 < TitanMKD> it is not really easy to explain how it works it's totally new in fact 2012-06-16T01:06:29 < TitanMKD> but the best is you can do for example special SPI protocol running at up to 104MHz ;) 2012-06-16T01:06:47 < TitanMKD> or even a LCD driver fully managed by hardware 2012-06-16T01:06:53 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-06-16T01:10:19 < Laurenceb_> F5 coming up? 2012-06-16T01:10:23 < Laurenceb_> sounds good 2012-06-16T01:11:01 < zyp> hmm, I checkted the LPC4300 datasheet 2012-06-16T01:11:25 < zyp> SGPIO consists of 16 «slices» with a 32-bit shift register each 2012-06-16T01:11:44 < zyp> that can be linked in various ways 2012-06-16T01:13:04 < TitanMKD> yes 2012-06-16T01:14:46 < TitanMKD> bye 2012-06-16T01:14:54 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-16T01:15:07 < Laurenceb_> can it be used for input as well? 2012-06-16T01:15:15 < zyp> of course 2012-06-16T01:15:34 < karlp> so just faster clocked buffers that you can preload patterns into then? 2012-06-16T01:15:36 < Laurenceb_> 8 bits I and Q from a hardcore SDR then 2012-06-16T01:17:13 < zyp> reading the reference manual now, it says that you can run up to eight bits in parallel 2012-06-16T01:17:23 < zyp> 1, 2, 4 or 8 2012-06-16T01:18:36 < zyp> I was hoping there was a diagram of it in the reference manual, but only text explanations 2012-06-16T01:19:09 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-16T01:20:28 < zyp> hmm, I'm counting 161 registers in the SGPIO block 2012-06-16T01:20:37 < zyp> so it should be pretty flexible :p 2012-06-16T01:21:26 <+izua> wthat sgpio is more than a bunch of shift registers i assume? 2012-06-16T01:21:45 <+izua> like, some programmable logic and data sinks/sources? 2012-06-16T01:22:55 < zyp> it's based around 16 shift registers, but have some flexible routing, data counters, configurable clock triggers, and data match 2012-06-16T01:30:27 < zyp> I've been meaning to play with LPC4300, but I haven't come across an interesting board yet 2012-06-16T01:31:02 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-16T01:44:41 < Tectu> dongs 2012-06-16T01:48:21 < Laurenceb_> lol 2012-06-16T01:48:56 < Laurenceb_> meeting with zyp 2012-06-16T01:50:36 < zyp> I don't think that will happen, I believe he lives further south than I'll be going anyway 2012-06-16T01:51:30 < Laurenceb_> http://www.google.com/url?sa=t&rct=j&q=stm32f5&source=web&cd=2&ved=0CFsQFjAB&url=http%3A%2F%2Fphx.corporate-ir.net%2FExternal.File%3Fitem%3DUGFyZW50SUQ9MTQxMjk0fENoaWxkSUQ9LTF8VHlwZT0z%26t%3D1&ei=9LvbT_aSKYnv8QOB9NSgCw&usg=AFQjCNG9cQQQTc_GhK5RRnMpRrth408olQ&cad=rja 2012-06-16T01:51:38 < Laurenceb_> wtf, how are atmel so high up 2012-06-16T01:52:49 < Laurenceb_> i see an L4 and F5 2012-06-16T01:54:05 < zyp> Laurenceb_, because they have their feet in several camps? they do both AVR, AVR32 and ARM stuff 2012-06-16T01:54:25 < karlp> they are populare in automotive too iirc 2012-06-16T01:54:50 < karlp> find the same pdf from atmel's company briefing :) 2012-06-16T02:01:08 < karlp> has anyone done anything along the lines of the eeprom emulation in flash app note? 2012-06-16T02:01:31 < karlp> how do you get a linker script to declare & then avoid placing anythign else in that section? 2012-06-16T02:01:45 < karlp> and do you have just to be careful when reprogramming not to overwrite that section? 2012-06-16T02:01:58 < karlp> or is it something you're expected to reinitialise if you reprogramm? 2012-06-16T02:03:31 < zyp> I haven't read the app note closely, but it's just using a flash page as eeprom, right? 2012-06-16T02:04:32 < zyp> reserving room for it in the linker script is easy, if you choose the last page on the flash you just reduce the flash size listed in the linker script 2012-06-16T02:04:36 -!- GargantuaSauce [~sauce@blk-252-42-151.eastlink.ca] has quit [Ping timeout: 246 seconds] 2012-06-16T02:05:58 < zyp> and if you do a full flash erase it will be cleared 2012-06-16T02:06:27 < Laurenceb_> you need to do erase first tho? 2012-06-16T02:06:35 < Laurenceb_> so its not like using eeprom on avr 2012-06-16T02:06:49 < zyp> so you either have to be careful or reinitialise it, depending on what suits you best 2012-06-16T02:06:59 < zyp> Laurenceb_, yes 2012-06-16T02:07:09 < karlp> no, then it would be eeprom :) 2012-06-16T02:07:12 < karlp> like on the L1, 2012-06-16T02:07:29 < zyp> flash memory is pretty much eeprom with page granularity erase 2012-06-16T02:07:42 < Laurenceb_> and less endurance 2012-06-16T02:08:01 < zyp> and less cost 2012-06-16T02:08:11 -!- GargantuaSauce [~sauce@blk-252-42-151.eastlink.ca] has joined ##stm32 2012-06-16T02:10:54 < zyp> I think I'll be going with I2C EEPROM if I need persistent storage and don't have anything else to store on 2012-06-16T02:11:33 < zyp> they are pretty small and easy to hook up to the same bus if you're already using I2C for something else 2012-06-16T02:11:56 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has quit [Quit: Leaving] 2012-06-16T02:12:11 < zyp> I got one on my F4 board in a SOT23-5 package 2012-06-16T02:12:48 < zyp> http://bin.jvnv.net/f/sTW8U.JPG <- it's in the lower left corner here 2012-06-16T02:27:23 < Laurenceb_> wait arent you in japan? 2012-06-16T02:28:01 < Laurenceb_> oh maybe you are up early :P 2012-06-16T02:28:20 < Tectu> Laurenceb_, how's chibios going 2012-06-16T02:28:52 < Laurenceb_> at leds flashing in different threads stage 2012-06-16T02:28:59 < Laurenceb_> need to fix the osc in 2012-06-16T02:34:29 -!- Laurenceb_ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has quit [Ping timeout: 244 seconds] 2012-06-16T03:21:26 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has joined ##stm32 2012-06-16T03:23:50 < zyp> Laurenceb, yeah, I woke up around 6 :p 2012-06-16T03:31:21 -!- peabody124 [~peabody12@128.249.96.123] has quit [Read error: No route to host] 2012-06-16T03:31:40 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-06-16T03:33:54 -!- Tom_afk [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-06-16T03:39:00 -!- Tom_afk [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-06-16T03:55:09 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-16T04:35:01 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-06-16T04:37:45 < cjbaird> The f0disco comes with a prototype board now.. 2012-06-16T04:38:19 < cjbaird> Boo, the extra board won't fit on a F4Disco.. 2012-06-16T04:42:48 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 245 seconds] 2012-06-16T04:48:31 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32 2012-06-16T05:26:26 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-16T05:45:38 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-16T05:45:45 -!- [7] [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-16T05:47:04 < R2COM> thanks, you get a buck for valuable information 2012-06-16T05:50:36 < GargantuaSauce> duh 2012-06-16T06:29:57 < szczys> I'm using OpenOCD to flash my .bin files to an STM32F0-Discovery board 2012-06-16T06:30:09 < szczys> I have to power cycle every time I flash 2012-06-16T06:30:29 < szczys> is there an easier way than unplugging the USB cable? 2012-06-16T07:45:59 < zippe> szczys: The OpenOCD guys wimped out on a "proper" reset; every board def has to have their own, even though the M3 has an architected system reset 2012-06-16T07:46:15 < zippe> It is exceptionally lame 2012-06-16T07:50:52 < iR0b0t1> You know a book is fucking serious when its title is "fan engineering". 2012-06-16T07:58:29 -!- cjbaird [~cjb@ppp121-44-30-62.lns20.syd6.internode.on.net] has quit [Ping timeout: 248 seconds] 2012-06-16T09:12:40 -!- cjbaird [~cjb@ppp121-44-21-178.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-16T09:20:48 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-06-16T09:33:44 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-16T10:01:15 -!- NonaSuomy [~TeknoJuce@bas1-london15-2925199413.dsl.bell.ca] has joined ##stm32 2012-06-16T10:01:15 -!- NonaSuomy [~TeknoJuce@bas1-london15-2925199413.dsl.bell.ca] has quit [Changing host] 2012-06-16T10:01:15 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-16T10:02:45 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 248 seconds] 2012-06-16T10:39:00 -!- cjbaird [~cjb@ppp121-44-21-178.lns20.syd6.internode.on.net] has quit [Ping timeout: 244 seconds] 2012-06-16T10:39:24 -!- cjbaird [~cjb@ppp121-44-115-39.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-16T10:51:35 -!- cjbaird [~cjb@ppp121-44-115-39.lns20.syd6.internode.on.net] has quit [Ping timeout: 252 seconds] 2012-06-16T11:01:11 -!- cjbaird [~cjb@ppp121-44-115-39.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-16T11:34:00 < dongs> http://i.imgur.com/QfJf2.jpg < japan 2012-06-16T11:39:25 < cjbaird> A local hero: http://www.abc.net.au/news/2012-06-15/bus-driver-jailed-for-filming-school-girls/4073810 ... Of course, he used only the finest Japanese upskirt tech... 2012-06-16T11:40:10 < dongs> lawl 2012-06-16T12:39:54 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-16T12:39:57 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-16T12:40:15 <+Steffanx> nu 2012-06-16T12:42:21 < R2COM> lol 2012-06-16T12:43:26 < R2COM> dongs: tell the truth, you develop that software and hardware too 2012-06-16T12:43:49 < R2COM> you probably tested some of your gadgets 2012-06-16T12:45:33 < cjbaird> ...on himself 2012-06-16T12:45:51 < R2COM> or on.. 2012-06-16T12:45:52 < R2COM> hmm 2012-06-16T12:45:56 < R2COM> nothing 2012-06-16T12:45:58 < R2COM> :P 2012-06-16T13:00:52 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-202.clienti.tiscali.it] has joined ##stm32 2012-06-16T13:02:13 < zyp> dongs, I see those everywhere in tokyo too 2012-06-16T13:02:37 < R2COM> i wonder why is it like that there? 2012-06-16T13:10:53 < cjbaird> I had a girlfriend who rode horses, and left her dirty underwear in the ensuite bathroom for several days after.. You needed tongs to move them into the laundry... I /can't/ quite get the appeal of women's underwear. :P 2012-06-16T13:12:32 < R2COM> i feel sorry for you 2012-06-16T13:12:50 < R2COM> you supposed to like it so much that you want to smell it all the time 2012-06-16T13:12:56 < R2COM> but its opposite for you 2012-06-16T13:12:58 < R2COM> so... 2012-06-16T13:13:03 < R2COM> thats just sad 2012-06-16T13:34:38 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: tr-784-24-22442-224-at] 2012-06-16T13:48:28 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-16T13:54:56 < Tectu> morning 2012-06-16T13:55:50 < Tectu> question: buffer is of type uint8_t* and s is of type uint16_t what's the value of s here? s=*((uint16_t*)&buffer[0]); 2012-06-16T13:56:04 < Tectu> is it the integer value of the first element in the array 2012-06-16T14:01:44 < zyp> are you still going on about that? 2012-06-16T14:03:10 < Tectu> zyp, yeah, just came across it again -.- 2012-06-16T14:03:19 < zyp> anyway, it's «s = an 16-bit unsigned read from 0 bytes into the buffer» 2012-06-16T14:03:57 < zyp> &buffer[0] doesn't make sense by itself, but it would kind of make sense if it were &buffer[5] or something 2012-06-16T14:04:29 < zyp> because it will then skip the first five bytes, then read the next two and interpret those as an uint16_t 2012-06-16T14:04:46 < zyp> so it's likely to keep a consistent coding style 2012-06-16T14:05:11 < zyp> though, &buffer[x] equals (buffer + x) 2012-06-16T14:06:27 < Tectu> so if buffer[0] = 4 and buffer[3] = 2; and i do &buffer[3], i get 6? 2012-06-16T14:06:56 < zyp> wtf, no. 2012-06-16T14:07:20 < Tectu> it would be something arround 500, right? 2012-06-16T14:07:38 < zyp> buffer[3] would be 2, so &buffer[3] would be the address where the value 2 is stored 2012-06-16T14:07:46 < Tectu> o0 2012-06-16T14:07:51 < Tectu> i mean the whole line 2012-06-16T14:07:57 < Tectu> s=*((uint16_t*)&buffer[0]); 2012-06-16T14:08:11 < Tectu> this makes no sense -.- 2012-06-16T14:08:18 < zyp> you make no sense 2012-06-16T14:08:35 < zyp> remember that you are talking about 16-bit ints 2012-06-16T14:09:26 < zyp> if buffer[0] = 4 and buffer[1] = 2, that line would give you s = 516 on a little-endian system 2012-06-16T14:09:34 < Tectu> yeah 2012-06-16T14:09:38 < Tectu> it would be something arround 500, right? 2012-06-16T14:09:45 < zyp> and s = 1026 on a big-endian system 2012-06-16T14:09:54 < zyp> note that I wrote buffer[1] and not buffer[3] 2012-06-16T14:10:10 < Tectu> though, &buffer[x] equals (buffer + x) 2012-06-16T14:10:23 < zyp> yes 2012-06-16T14:10:24 < Tectu> buffer + x <--- buffer[0] buffer[x] ? 2012-06-16T14:10:32 < zyp> no. 2012-06-16T14:10:42 < zyp> buffer is the address of the array 2012-06-16T14:10:54 < Tectu> and x the element offset 2012-06-16T14:10:59 < zyp> yes 2012-06-16T14:11:33 < zyp> and &buffer[x] gives you address of element, while (buffer + x) adds offset to base address of array, which all makes out to the same 2012-06-16T14:12:35 < zyp> remember that &buffer[x] is read as &(buffer[x]) 2012-06-16T14:12:46 < Tectu> aaah! 2012-06-16T14:12:49 < Tectu> now i see it 2012-06-16T14:22:53 < cjbaird> Programming fun: stuffing shorts/ints into character arrays with crap like: ps = (short*)&buffer[pc]; *ps = (short)255; ..compiling into 1-2 instructions, instead of ~12 ... Also funky speed improvements like: http://dpaste.org/4OYvM/ 2012-06-16T14:24:15 < zyp> huh? 2012-06-16T14:25:23 < Tectu> what? 2012-06-16T14:25:35 <+Steffanx> /what/wat 2012-06-16T14:26:48 < cjbaird> The first bit replaces "buffer[pc] = 0; buffer[pc+1]= 255;" which arm-none-eabi-gcc would convert into ~12 instructions, into a load.w op. The paste zeros the area in 16384 loops instead of 65536.. 2012-06-16T14:28:06 < Tectu> w 2012-06-16T14:28:09 < Tectu> why do you hate me? 2012-06-16T14:28:27 -!- Laurenceb_ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has joined ##stm32 2012-06-16T14:30:13 < zyp> cjbaird, ah, you're too cool to use memset/memzero 2012-06-16T14:34:40 < cjbaird> yep. http://dpaste.org/yckUQ/ 2012-06-16T14:34:54 < TitanMKD> cjbaird which version and type of compiler have you used ? (and also option -O2 ...) ? 2012-06-16T14:35:48 < cjbaird> That was the linaro 4.5.2 .. 2012-06-16T14:36:20 < TitanMKD> do you use at least -O2 ? 2012-06-16T14:36:36 < TitanMKD> because -O0 produce very bad code 2012-06-16T14:37:20 < cjbaird> But even 4.7.3 with Os & O3 isn't that smart on ARM/thumb when it comes to basic/tight ops. 2012-06-16T14:38:48 < TitanMKD> ok 2012-06-16T14:38:51 < TitanMKD> bye 2012-06-16T14:38:57 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-16T14:45:05 < cjbaird> http://dpaste.org/fwuSw/ 2012-06-16T14:52:45 <+Steffanx> :) 2012-06-16T14:53:02 < cjbaird> I'm also too cool to use paste.com ... 2012-06-16T14:53:13 <+Steffanx> I think that's something to remember 2012-06-16T14:54:33 <+Steffanx> paste.com looks pretty useless anyway cjbaird 2012-06-16T14:54:42 <+Steffanx> "Your source for virtually anything!" 2012-06-16T14:55:03 <+Steffanx> paste.com => pastebin.com ? 2012-06-16T14:59:08 < jpa-> cjbaird: on a different note, you already set buffer[11] to 0 in the first loop :) 2012-06-16T15:06:01 < cjbaird> A bit of code I'm working on at the moment got reduced from ~7800 bytes of text down to 4380 bytes just with silly 'premature optimization is evil' tricks like that. :) 2012-06-16T15:16:22 < cjbaird> Something weak about the current state of the GCC ARM backend I've noticed is that you can reduce the number of instructions used by reordering code in stuff like "carry=0,zero=reg==0,sign=0;" .. in spite of the C spec allowing the compiler to do anything it likes in that situation for the sake of the preferred optimisation level, gcc/arm just does it dumb, and you get better results by rewriting it as "zero=reg==0,carry=0,sign=0; 2012-06-16T15:16:23 < cjbaird> " 2012-06-16T15:23:57 < cjbaird> Something weak about the current state of the GCC ARM backend I've noticed is that you can reduce the number of instructions used by reordering code in stuff like "carry=0,zero=reg==0,sign=0;" .. in spite of the C spec allowing the compiler to do anything it likes in that situation for the sake of the preferred optimisation level, gcc/arm just does it dumb, and you get better results by rewriting it as "zero=reg==0,carry=0,sign=0; 2012-06-16T15:24:40 <+Steffanx> Déjà vu 2012-06-16T15:25:16 < cjbaird> wifi fucked up here.. :/ 2012-06-16T15:34:14 < Laurenceb_> gcc arm support has improved a lot in the past few years aiui 2012-06-16T15:37:49 < Tectu> wtf is this http://www.youtube.com/watch?v=u3ctz3RTI-o 2012-06-16T15:38:25 <+Steffanx> Someone with a sick hobby Tectu 2012-06-16T15:38:34 < Tectu> yeah ~ 2012-06-16T15:38:45 < Tectu> no seriously, wtf is wrong with that guy 2012-06-16T15:39:01 <+Steffanx> Some people say it's 'epic' .. i think people who made that are .. sick 2012-06-16T15:39:30 < Tectu> it's just wrong 2012-06-16T15:39:32 < Tectu> and not right 2012-06-16T15:39:36 < Tectu> at the same time 2012-06-16T15:39:42 < Tectu> you just don't do such things man 2012-06-16T15:39:56 <+Steffanx> Some can, as you can see 2012-06-16T15:40:08 < Tectu> must be american 2012-06-16T15:40:46 <+Steffanx> Dutch .. :P 2012-06-16T15:41:04 < Tectu> seriously? 2012-06-16T15:41:18 < Laurenceb_> its genius 2012-06-16T15:41:29 < Laurenceb_> veyr epic stuff 2012-06-16T15:41:33 <+Steffanx> At least, when this is the same http://bartjansen.tv/index.php?page=3d Tectu 2012-06-16T15:42:16 < Laurenceb_> haha 2012-06-16T15:42:18 < Laurenceb_> genius 2012-06-16T15:42:28 < Laurenceb_> i like the clock 2012-06-16T15:42:30 <+Steffanx> You are a visitor of 4chan, so you are 'infected' by the sickness virus 2012-06-16T15:42:36 < Laurenceb_> hehe 2012-06-16T15:42:40 < Laurenceb_> i cant deny it 2012-06-16T15:43:02 < Tectu> Laurenceb_, where are you from 2012-06-16T15:43:06 < Laurenceb_> UK 2012-06-16T15:43:45 < Tectu> are you sure? 2012-06-16T15:44:08 < Laurenceb_> but my dad is from the US 2012-06-16T15:44:22 < Tectu> AHA, I KNEW IT! 2012-06-16T15:45:34 < Tectu> Laurenceb_, are you on /mlp/ ? 2012-06-16T15:45:43 < Laurenceb_> whats that? 2012-06-16T15:45:47 < Laurenceb_> of some 4chan thing 2012-06-16T15:46:20 <+Steffanx> My little pony 2012-06-16T15:46:30 < Tectu> yeah 2012-06-16T15:46:39 <+Steffanx> Google skillz :) 2012-06-16T15:46:40 < Laurenceb_> oh of course 2012-06-16T15:46:56 < Laurenceb_> but what wrong with the cat anyway? its funny 2012-06-16T15:47:03 < Tectu> how can you be there and don't now what mlp stands for :/ 2012-06-16T15:47:06 < Laurenceb_> theres plenty of dead cats by the road anyway 2012-06-16T15:47:14 <+Steffanx> And you like to watch them? 2012-06-16T15:47:15 < Laurenceb_> i dont really hang out there :P 2012-06-16T15:47:38 < Tectu> Steffanx, can you please fix texane/stlink? 2012-06-16T15:47:47 <+Steffanx> Uh? 2012-06-16T15:48:59 < Tectu> what? I said please 2012-06-16T15:49:20 <+Steffanx> Is it broken? 2012-06-16T15:49:54 < Laurenceb_> its sick 2012-06-16T15:49:57 < Laurenceb_> its wrong man 2012-06-16T15:50:01 < Tectu> Steffanx, no 2012-06-16T15:50:52 < dongs> wassup dongs 2012-06-16T15:50:56 < Tectu> dongs, status 2012-06-16T15:51:04 <+Steffanx> if it ain't broke, don't fix it, Tectu :) 2012-06-16T15:51:16 < Tectu> Steffanx, ah c'mon, just fix it :> 2012-06-16T15:51:18 < dongs> status: tokyo sucks 2012-06-16T15:51:23 < dongs> i brought my F0 board with me 2012-06-16T15:51:27 < dongs> dunno if I should dick wiht it 2012-06-16T15:51:33 <+Steffanx> it's shit 2012-06-16T15:51:42 < Tectu> dongs, are you going to meet zyp? 2012-06-16T15:52:00 <+Steffanx> Poor zyp 2012-06-16T15:52:37 < Laurenceb_> lol 2012-06-16T15:52:37 < dongs> zyp isnt in tokyo is he 2012-06-16T15:52:44 < Tectu> afaik he said he is 2012-06-16T15:52:48 < dongs> NOWAI 2012-06-16T15:52:54 < dongs> zyp, confirm/deny 2012-06-16T15:52:55 < Tectu> YESWAI 2012-06-16T15:53:18 <+Steffanx> " dongs, I see those everywhere in tokyo too" 2012-06-16T15:53:21 <+Steffanx> zlog 2012-06-16T15:53:22 < zlog> Steffanx: Log stored at http://tom-itx.dyndns.org:81/~tom-itx/irc/logs/%23%23stm32/2012-06-16.html 2012-06-16T15:53:23 < dongs> yes but that doesnt mean anything 2012-06-16T15:53:32 <+Steffanx> It does 2012-06-16T15:53:51 < dongs> no 2012-06-16T15:53:58 < dongs> it means he could have been in tokyo at some point 2012-06-16T15:54:00 < Tectu> dongs, he clearly said to me that he's going to tokyo 2012-06-16T15:54:01 < dongs> and saw the signs 2012-06-16T15:54:09 < Tectu> the last few days 2012-06-16T15:54:12 < Tectu> and i think he still is 2012-06-16T15:54:15 < Tectu> i am pretty sure 2012-06-16T15:54:19 <+Steffanx> No, see = now dongs :P 2012-06-16T15:54:34 < dongs> i made some progress on reversing this softfp code 2012-06-16T15:54:49 < dongs> i started building some testcases (i.e. calling sin/sinf/ etc) and then loading the .elf in ida 2012-06-16T15:54:59 < dongs> this gives me function signatures and asm to compare 2012-06-16T15:55:07 < dongs> makes shit a lot easier to track down 2012-06-16T15:55:25 < dongs> so as i suspected these morons are using double versions of all math shit 2012-06-16T15:55:31 < dongs> adn pretty much everything has a f2d() in front of it 2012-06-16T15:55:34 < dongs> hten d2f 2012-06-16T15:55:39 < dongs> waste of cycles + flash 2012-06-16T15:56:27 <+Steffanx> According to my sources he was in Tokyo yesterday, so he's probably still there dongs 2012-06-16T15:56:33 < dongs> hmm 2012-06-16T15:56:34 <+Steffanx> " currently lazing about in a hotel in tokyo " 2012-06-16T15:56:38 < dongs> zyp: fuckin beep 2012-06-16T15:57:04 < Tectu> Steffanx, "according to my sources" lol'd 2012-06-16T15:57:05 <+Steffanx> Yesterday = yesterday for Tom_itx around 8:52 2012-06-16T15:57:09 < Tectu> dongs, wanna meet in hotel, eh? 2012-06-16T15:57:12 <+Steffanx> LOL 2012-06-16T15:57:40 < Tectu> Steffanx, nothing to lol about - serious buisiness over there 2012-06-16T15:57:58 <+Steffanx> You don't have your sources Tectu ? 2012-06-16T15:58:27 < Tectu> Steffanx, i've a dutch gf 2012-06-16T15:58:43 <+Steffanx> See's a good source for secret information? 2012-06-16T15:59:10 <+Steffanx> AIVD and stuff? 2012-06-16T15:59:29 < Tectu> yeah, also GIQY 2012-06-16T15:59:53 <+Steffanx> GIQY?! 2012-06-16T16:00:14 < dongs> NPCRecord::setrefs unknown subrecord: FGGA 2012-06-16T16:00:14 < dongs> NPCRecord::setrefs unknown subrecord: FGTS 2012-06-16T16:00:23 < dongs> ^ gay datafile 2012-06-16T16:00:39 < Tectu> Steffanx, dunno, just did the same as you did and wrote four compleltly nosense letters together 2012-06-16T16:00:43 < Tectu> aka faceroll'd keyboard 2012-06-16T16:00:58 <+Steffanx> No, Google it .. 2012-06-16T16:01:19 <+Steffanx> AIVD is the dutch General Intelligence and Security Service :P 2012-06-16T16:01:21 < cjbaird> dongs + zyp mantouching ... 2012-06-16T16:01:21 < Tectu> i was just to tired to google and hoped you might explain it yourself then :D 2012-06-16T16:01:25 < Tectu> aah! 2012-06-16T16:01:43 <+Steffanx> dongs leave your datafiles out of this channel 2012-06-16T16:01:47 <+Steffanx> *keep 2012-06-16T16:02:00 < Tectu> cjbaird, and if the clean-up girl from the hotel comes arround, they throw her out and keep the cleaning utilities for playing 'round 2012-06-16T16:02:21 <+Steffanx> Uh .. 2012-06-16T16:02:35 < Tectu> Steffanx, but c'mon, GIQY is an epic random shortform? :D 2012-06-16T16:02:42 < Tectu> we deffinitly have to give it some meaning... 2012-06-16T16:04:27 < Laurenceb_> dongs: youd like this www.urbandictionary.com/define.php?term=rape-mobile 2012-06-16T16:04:54 < Laurenceb_> also www.urbandictionary.com/define.php?term=burka 2012-06-16T16:07:16 < cjbaird> Yeeepp. Had a mate in high-school with a van like that. The cunt did 110 down Marshall Street with me in the back. 2012-06-16T16:09:03 < Tectu> cjbaird, seems like good mate 2012-06-16T16:10:17 < cjbaird> Marshall 2012-06-16T16:11:17 < cjbaird> Marshall St Newcastle (before they put the speed-bumps in) was known for being able to get a car airborn for a good distance if you did it fast enough. 2012-06-16T16:11:55 < Tectu> oh dear 2012-06-16T16:19:02 < cjbaird> And thus begun my two month terror campagin pranking his van when he drove to school.. (toilet-paper tails, homebrew car bumperstickers, ...) 2012-06-16T16:20:51 < Laurenceb_> Tectu stop sending me pron :P 2012-06-16T16:21:57 < Tectu> wtf 2012-06-16T16:22:03 < Tectu> i wasn't even on my keyboard 2012-06-16T16:22:09 < Laurenceb_> lol right 2012-06-16T16:22:34 < Laurenceb_> also shes too skinny 2012-06-16T16:22:56 < Tectu> wtf are you talking about? 2012-06-16T16:22:57 < Laurenceb_> needs more pizaaaa 2012-06-16T16:31:50 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-202.clienti.tiscali.it] has quit [Ping timeout: 246 seconds] 2012-06-16T16:39:05 < zyp> dongs, what's up? 2012-06-16T16:39:12 < zyp> yes, I am currently in tokyo. 2012-06-16T16:39:20 < dongs> oh 2012-06-16T16:39:20 < dongs> where? 2012-06-16T16:39:36 < zyp> here. 2012-06-16T16:39:38 < dongs> ... 2012-06-16T16:39:44 < dongs> anything more specific 2012-06-16T16:39:48 < zyp> ikebukuro, why does it matter? 2012-06-16T16:39:52 < dongs> oh. 2012-06-16T16:39:54 < dongs> dunno. 2012-06-16T16:39:57 < dongs> im "here" too. 2012-06-16T16:40:00 < dongs> but weather is shit. 2012-06-16T16:40:06 < zyp> yeah 2012-06-16T16:40:19 < dongs> i was gonna troll around ueno park tomorrow. 2012-06-16T16:40:22 < dongs> but looks like it migh tbe a fail. 2012-06-16T16:40:59 < Laurenceb_> stroll 2012-06-16T16:41:01 < Laurenceb_> lol 2012-06-16T16:41:08 < Laurenceb_> you forgot the s 2012-06-16T16:41:10 <+Steffanx> I wonder how dongs trolls around in real life 2012-06-16T16:44:08 < zyp> dongs, I thought you were living down south, what are you doing in tokyo? 2012-06-16T16:44:23 < dongs> some work-related trolling on monday 2012-06-16T16:45:28 < dongs> but meeting some other dudes for other stuff 2012-06-16T16:46:46 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has joined ##stm32 2012-06-16T16:46:55 <+Steffanx> Whao, you left your save and secure Trollville :S 2012-06-16T16:50:16 < dongs> Panasonic Keyboard for Notebook (CF-50 Series) isn't compatible with this version of Windows. 2012-06-16T16:50:19 < dongs> Panasonic, the company that manufactured Panasonic Keyboard for Notebook (CF-50 Series), has informed Microsoft that they don't expect to offer updates to solve this problem. 2012-06-16T16:50:22 < dongs> haha 2012-06-16T16:50:53 <+Steffanx> "this version" = which version? 2012-06-16T16:51:38 < dongs> win7 x64 sp1 2012-06-16T16:52:16 <+Steffanx> I wonder how Panasonic even manages to implement something that isn't compatible 2012-06-16T16:52:27 <+Steffanx> Broken usb HID implementation? 2012-06-16T16:55:24 < dongs> i dont think its even hid... 2012-06-16T16:55:28 < dongs> its liek ps2 or whafever 2012-06-16T16:55:36 < dongs> like "Standard" keyboard. 2012-06-16T16:56:45 <+Steffanx> So now your keyboard doesn't work? 2012-06-16T17:09:32 -!- ChanServ [ChanServ@services.] has quit [shutting down] 2012-06-16T17:17:59 -!- iR0b0t1 [~dev@unaffiliated/r0b0t1] has quit [Ping timeout: 246 seconds] 2012-06-16T17:23:58 -!- iR0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has joined ##stm32 2012-06-16T17:25:14 -!- ChanServ [ChanServ@services.] has joined ##stm32 2012-06-16T17:25:14 -!- ServerMode/##stm32 [+o ChanServ] by lindbohm.freenode.net 2012-06-16T17:26:36 -!- marienz [marienz@freenode/staff/marienz] has quit [Max SendQ exceeded] 2012-06-16T17:34:08 < ABLomas> ... 2012-06-16T17:34:20 <+Steffanx> ... 2012-06-16T17:35:49 < ABLomas> dongs: wth with rcg 2012-06-16T17:35:54 < ABLomas> why? 2012-06-16T17:35:56 < dongs> wat 2012-06-16T17:36:08 < ABLomas> timecop timecop is offline 2012-06-16T17:36:08 < ABLomas> Suspended Account 2012-06-16T17:36:10 < dongs> o rite 2012-06-16T17:36:15 < dongs> too much DJI fun 2012-06-16T17:36:49 < ABLomas> fpvlab? 2012-06-16T17:37:35 < dongs> that place is even more obtuse 2012-06-16T17:37:44 < ABLomas> then... ? 2012-06-16T17:37:45 < dongs> its ok, only 5 days nad i gotta dick around in tokyo until tuesday anyway 2012-06-16T17:37:53 < dongs> got more important shit to worry about 2012-06-16T17:37:57 < ABLomas> going to write something into moderation section 2012-06-16T17:38:26 < ABLomas> well, good for you, i have dream - to visit japan one day 2012-06-16T17:38:27 < dongs> dont evne bother 2012-06-16T17:39:36 <+Steffanx> Go to Israel ABLomas, meet dongs there 2012-06-16T17:39:37 -!- Tom_itx is now known as Tom_L 2012-06-16T17:39:52 < dongs> ^_^ 2012-06-16T17:41:31 < ABLomas> nah, that i do not like 2012-06-16T17:41:51 < ABLomas> i had enough "friends" from there (@work) so i do not even want to visit that country 2012-06-16T17:43:44 < dongs> teehee 2012-06-16T17:47:41 -!- Tom_L is now known as Tom_itx 2012-06-16T17:51:05 -!- cjbaird [~cjb@ppp121-44-115-39.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-16T17:53:27 < zyp> dongs, I'm leaving tokyo tomorrow morning, but I'll be back monday evening in case you wanted to say hello :p 2012-06-16T17:57:02 < Laurenceb_> we need a photo of zyp and dongs 2012-06-16T17:57:05 < Laurenceb_> ... naked 2012-06-16T17:57:16 <+Steffanx> /kick Laurenceb* 2012-06-16T17:57:26 < Laurenceb_> teeheee 2012-06-16T17:57:41 <+Steffanx> We need a photo of your 'naked' stm32 first! 2012-06-16T17:59:36 < dongs> im leaving monday evening 2012-06-16T17:59:42 < dongs> hate this palce 2012-06-16T18:00:13 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer] 2012-06-16T18:00:42 < Laurenceb_> isnt there an animé convention or somethign to go to? 2012-06-16T18:00:52 < dongs> zyp is here for hte game show 2012-06-16T18:01:08 < Laurenceb_> lulz 2012-06-16T18:01:10 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-16T18:01:16 < Laurenceb_> bbl 2012-06-16T18:04:51 -!- izua [~izua@86.121.2.119] has joined ##stm32 2012-06-16T18:04:51 -!- izua [~izua@86.121.2.119] has quit [Changing host] 2012-06-16T18:04:51 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-16T18:04:53 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-16T18:08:56 <+izua> flyback: i wonder if they're gonna find out you're cheating their 'laboratory use only' agreement when you buy 100 to use them in other products 2012-06-16T18:09:18 <+Steffanx> zlog 2012-06-16T18:09:18 < zlog> Steffanx: Log stored at http://tom-itx.dyndns.org:81/~tom-itx/irc/logs/%23%23stm32/2012-06-16.html 2012-06-16T18:22:41 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-16T18:40:29 <+izua> hmph 2012-06-16T18:40:37 <+izua> the makefile for ocm3 is odd. 2012-06-16T18:40:45 <+izua> it keeps entering eternal loops of fail on windows 2012-06-16T18:45:26 < Tectu> Steffanx, do they do gay marriages in tokyo? 2012-06-16T18:45:35 < Tectu> izua, wtf? 2012-06-16T18:45:59 <+izua> eh, i was curious if i can compile ocm3 on windows 2012-06-16T18:46:10 <+izua> yeah, i know i shouldn't :-w 2012-06-16T18:46:38 < Tectu> why do you use windows? 2012-06-16T18:49:13 <+izua> because being exclusive to one OS is fail, when you need to use something that only the other OS has 2012-06-16T19:07:05 <+izua> dunno. i was curious 2012-06-16T19:07:22 <+izua> a VL discovery is prettyepic, compared to say, an arduino 2012-06-16T19:07:28 <+izua> and it costs, what, 33%? 2012-06-16T19:07:47 <+izua> you could make a programmer/mini logic analyzer/butt pirate out of it 2012-06-16T19:08:25 <+izua> plus, because you don't need to remap stuff 2012-06-16T19:08:36 <+izua> you can do stuff like "dump usart2 to spi3" 2012-06-16T19:09:56 < BrainDamage> even a f4 costs less than an arduino 2012-06-16T19:10:02 < BrainDamage> f4 discovery 2012-06-16T19:10:13 < BrainDamage> I paid the discovery 16€, an arduino costs > 20 2012-06-16T19:10:21 <+izua> hehe 2012-06-16T19:10:23 <+izua> 168MHz 2012-06-16T19:10:47 <+izua> they're not free 2012-06-16T19:11:15 <+izua> st is probably going in the red with the discovery line, though 2012-06-16T19:12:09 <+izua> i was thinking more like total cost 2012-06-16T19:12:40 <+izua> the two chips on a VL discovery, crystal, connectors, buttons, and leds, not counting pcb manufacturing and part assembly, easily cost > €10 2012-06-16T19:19:33 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-16T19:19:33 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Disconnected by services] 2012-06-16T19:19:52 < Steffann> i have no idea Tectu 2012-06-16T19:19:56 < Steffann> I don't care either 2012-06-16T19:51:14 -!- izua [~izua@unaffiliated/izua] has quit [Quit: Pull me under] 2012-06-16T19:58:07 -!- izua [~izua@86.121.2.119] has joined ##stm32 2012-06-16T19:58:07 -!- izua [~izua@86.121.2.119] has quit [Changing host] 2012-06-16T19:58:07 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-16T19:58:10 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-16T20:18:25 < dongs> flyback: that M3 costs them < $2 2012-06-16T20:18:32 < dongs> F0 is ~$1 2012-06-16T20:18:43 < dongs> the rest of the bom is probably < $3 2012-06-16T20:18:52 < dongs> pcbs in the qty they're making them are cheap 2012-06-16T20:35:15 <+izua> dongs: was that to me? 2012-06-16T20:36:03 < dongs> 01:12 <+izua> the two chips on a VL discovery, crystal, connectors, buttons, and leds, not counting pcb manufacturing and part assembly, easily cost > EUR10 2012-06-16T20:36:07 < dongs> ya 2012-06-16T20:36:28 <+izua> really? 2012-06-16T20:36:28 < dongs> believe it or not, they might be breaking even or even making something on them 2012-06-16T20:36:32 < dongs> well, when they sell them that is 2012-06-16T20:36:35 < dongs> not when they give htem away. 2012-06-16T20:36:35 < dongs> yes 2012-06-16T20:36:40 <+izua> i always thought that's the reason for the "don't use it in something else" agreement 2012-06-16T20:36:41 < dongs> even I can get C8T6 for $2 2012-06-16T20:36:45 < dongs> and im sure ST pays a lot less 2012-06-16T20:37:30 < dongs> F4-discovery im not so sure, but its also not too terribly complex 2012-06-16T20:38:47 < karlp> izua: I think it's because they're not making enough on the discovery boards, 2012-06-16T20:39:00 < karlp> and they know that they're cheap enough to tempt people to just use them in finished products 2012-06-16T20:39:04 < karlp> and they want more margin 2012-06-16T20:39:04 < dongs> dont use it in something else what 2012-06-16T20:39:06 < dongs> oh please 2012-06-16T20:39:11 < dongs> karlp: dont be ridiculous 2012-06-16T20:39:13 < karlp> my money's on them breaking about even. 2012-06-16T20:39:16 < dongs> nobody would use that shit ina finished product 2012-06-16T20:39:19 < karlp> sure theyw ould 2012-06-16T20:39:21 < dongs> no. 2012-06-16T20:39:28 < dongs> only some tarduino retards would even THINK something like that 2012-06-16T20:39:32 < karlp> yep :) 2012-06-16T20:39:34 < karlp> but you know what, 2012-06-16T20:39:38 < karlp> if it's in a box, 2012-06-16T20:39:43 < karlp> and you got it done quick 2012-06-16T20:39:47 < karlp> it's ok for 10 sales or so 2012-06-16T20:39:53 < dongs> ya but no way 2012-06-16T20:40:01 < karlp> we _sold_ an arduino + ether+ third board stacked on top 2012-06-16T20:40:06 < karlp> it was _stupid_ 2012-06-16T20:40:08 < karlp> but we sold it 2012-06-16T20:40:47 < Steffann> LOL 2012-06-16T20:41:04 <+izua> it's not something fair 2012-06-16T20:41:12 <+izua> but if you need a quick turnaround, it's better than an arduino 2012-06-16T20:41:14 < karlp> (we don't sell it any mor eby the way, that product was already built when I started at work) 2012-06-16T20:41:58 <+izua> maybe the whole no resell agreement is just reverse pscyhology so clients can buy more 2012-06-16T20:51:27 < dongs> ugh this hotel is retarded 2012-06-16T20:51:30 < dongs> no free toothpaste 2012-06-16T20:51:43 < dongs> and the brush thats free says "bring unusede brush to front desk to receive a small gift" 2012-06-16T20:54:00 < Steffann> lol 2012-06-16T20:54:16 < Steffann> only in japan 2012-06-16T20:55:16 < Laurenceb_> my friend is renting out his house to a Buddhist 2012-06-16T20:55:42 < Laurenceb_> she never paid any rent, and he was asking her to pay up 2012-06-16T20:56:07 < Laurenceb_> he got a letter through the door from her, and opened it up expecting to find money. 2012-06-16T20:56:47 < Laurenceb_> there was a root from some dead weeds inside with a note saying "please take this and eat it as a token of my appreciation" 2012-06-16T20:57:13 <+izua> wsrofl 2012-06-16T20:57:14 <+izua> win 2012-06-16T20:57:37 <+izua> why would buddhists want a house though? 2012-06-16T20:57:46 < Laurenceb_> she has load sof children 2012-06-16T20:58:35 < Steffann> Good troll :) 2012-06-16T20:58:41 < Laurenceb_> she was serious 2012-06-16T20:59:09 < Laurenceb_> he went round to the house and she lectured him for being too greedy and not appreciating the gifts of nature 2012-06-16T21:00:22 < BrainDamage> we'll see how the court will appreciate it I guess 2012-06-16T21:00:23 <+izua> yeah, what Steffann said >< 2012-06-16T21:00:30 <+izua> i don't think she'd really care 2012-06-16T21:00:32 < BrainDamage> my father had insolvent people too 2012-06-16T21:00:34 <+izua> she'll get free food and housing 2012-06-16T21:00:44 <+izua> as opposed to roots and rent 2012-06-16T21:01:09 < Steffann> Yeah, but you are from italy BrainDamage 2012-06-16T21:01:10 < BrainDamage> she's not paying rent, so how's different from free housing? 2012-06-16T21:01:13 < Steffann> That explains a lot :P 2012-06-16T21:01:32 < BrainDamage> actually yes, the law here is particularry bad wrt rentint and insolvents 2012-06-16T21:01:33 <+izua> she did haveto sweettalk her way into getting the place, and delaying payments 2012-06-16T21:01:40 < BrainDamage> it's always to the insolvent's part :/ 2012-06-16T21:01:51 < BrainDamage> they had to wait > 12 months to get rid of him 2012-06-16T22:34:00 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Read error: No route to host] 2012-06-16T22:34:42 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-16T22:34:47 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-16T22:37:08 <+Steffanx> A kernel panic.. always nice 2012-06-16T22:49:00 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Read error: No route to host] 2012-06-16T22:50:10 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-16T22:50:14 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-16T22:51:19 <+izua> Steffanx: don't you just love the lock leds flash? 2012-06-16T22:51:38 <+izua> we should submit a patch to kernel.org to make the leds flash with pwm 2012-06-16T22:51:42 <+Steffanx> this is osx, which gives you a nice overlay with a text you have to reboot 2012-06-16T22:51:44 <+izua> since you have 100% cpu time anyway 2012-06-16T22:51:57 <+izua> NO FLASHY LEDS ON KERNEL PANIC? :o 2012-06-16T22:52:08 <+izua> what is this world coming to? 2012-06-16T22:52:14 <+Steffanx> I didn't see it, no 2012-06-16T22:52:31 <+Steffanx> but i guess this is serious as it happened again 2012-06-16T22:57:51 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-06-16T23:06:16 -!- [7] [~quassel@rockbox/developer/TheSeven] has quit [Remote host closed the connection] 2012-06-16T23:10:49 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving] 2012-06-16T23:13:35 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 265 seconds] 2012-06-16T23:16:00 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 265 seconds] 2012-06-16T23:16:01 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 --- Day changed Sun Jun 17 2012 2012-06-17T00:32:52 -!- feurig [~don@198.202.31.180] has quit [Quit: leaving] 2012-06-17T00:34:42 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-17T00:47:17 -!- feurig [~don@198.202.31.217] has joined ##stm32 2012-06-17T00:53:56 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-17T01:00:53 < jpa-> bah.. my stm32l151 insists on using 3mA in standby and it won't even wake up :F 2012-06-17T01:03:28 < Tectu> jpa-, isn't 3mA a little bit much? 2012-06-17T01:03:48 < Tectu> afaik L series even should use very very low power, right? 2012-06-17T01:04:19 < jpa-> yes, there is a bug somewhere 2012-06-17T01:05:04 < jpa-> too bad they don't have a checklist or anything.. various peripherals like usb have powerdown bits that have to be set manually 2012-06-17T01:05:15 -!- cjbaird [~cjb@ppp121-44-115-39.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-17T01:05:55 < Tectu> awesome 2012-06-17T01:06:03 < Tectu> sounds like some enjoyable datasheet read job 2012-06-17T01:06:16 < Tectu> and specially STM do have for everything seperate power on/off bits :D 2012-06-17T01:08:08 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 240 seconds] 2012-06-17T01:12:03 < szczys> I'm having trouble with a header file... I'm trying to abstract the standard peripheral library 2012-06-17T01:12:18 < szczys> and things seem fine until my main.c throws an error 2012-06-17T01:12:33 < szczys> arm-none-eabi-gcc -g -O2 -Wall -TDevice/stm32_flash.ld -mlittle-endian -mthumb -mcpu=cortex-m0 -march=armv6s-m -Iinc -I~/compile/Libraries/ -I~/compile/Libraries/CMSIS/Device/ST/STM32F0xx/Include -I~/compile/Libraries/CMSIS/Include -I~/compile/Libraries/STM32F0xx_StdPeriph_Driver/inc src/main.c src/system_stm32f0xx.c Device/startup_stm32f0xx.s -o main.elf -L~/compile/Libraries -lstm32f0 2012-06-17T01:12:34 < szczys> src/main.c:1:28: fatal error: stm32f0xx_conf.h: No such file or directory 2012-06-17T01:12:34 < szczys> compilation terminated. 2012-06-17T01:12:34 < szczys> src/system_stm32f0xx.c:99:23: fatal error: stm32f0xx.h: No such file or directory 2012-06-17T01:12:35 < szczys> compilation terminated. 2012-06-17T01:13:04 < jpa-> maybe you should get that file :) 2012-06-17T01:13:05 < szczys> ---> but you can see I have "-I~compile/Libraries/" and that's where the file is located 2012-06-17T01:13:48 < szczys> in the C file I have this: 2012-06-17T01:14:17 < szczys> #include "stm32f0xx_conf.h" 2012-06-17T01:15:25 < jpa-> are you sure ~ works there? it is usually expanded by shell only 2012-06-17T01:15:41 < szczys> ah... let me try it with explicit path 2012-06-17T01:15:59 < szczys> yep, that was it 2012-06-17T01:16:00 < szczys> thanks! 2012-06-17T01:21:59 < Tectu> jpa-, aren't you always having trouble with sleepmode and power consumtion? :D 2012-06-17T01:29:46 < szczys> hey Rickta59, are you around? 2012-06-17T01:29:53 -!- cjbaird [~cjb@ppp121-44-115-39.lns20.syd6.internode.on.net] has quit [Ping timeout: 245 seconds] 2012-06-17T01:30:00 < Rickta59> hey szczys .. i am 2012-06-17T01:30:06 < Rickta59> i didn't make any headway the other day 2012-06-17T01:30:07 < szczys> I've been busy 2012-06-17T01:30:18 < szczys> check out the template I built for compiling and programming flash: 2012-06-17T01:30:24 < szczys> https://github.com/szczys/stm32f0-discovery-basic-template 2012-06-17T01:30:31 < Rickta59> and I kind of bailed and have been figuring out how to use the openocd 2012-06-17T01:30:47 < Rickta59> nice 2012-06-17T01:30:50 < szczys> I built command line programming with OpenOCD into the makefile of that template 2012-06-17T01:31:07 < szczys> just type "make program" and it will upload the .bin file automatically 2012-06-17T01:31:20 < Rickta59> do you have issues when you connect to opencd with gdb? 2012-06-17T01:31:22 < szczys> (assuming you have openocd installed correctly) 2012-06-17T01:31:41 < szczys> yes 2012-06-17T01:31:44 < szczys> not all the time 2012-06-17T01:31:57 < szczys> but I had been using Telnet instead of GDB because of it 2012-06-17T01:32:10 < Rickta59> http://michaldemin.wordpress.com/2010/02/22/part-2-debugging-with-gdb-and-openocd/ 2012-06-17T01:32:12 < szczys> I think it might have something to do with GDB not erasing the flash 2012-06-17T01:32:46 < Rickta59> i think someone here mentioned it the other day, in that gdb and openocd have a disagreement when it comes to registers 2012-06-17T01:32:59 < Rickta59> openocd -f openocd.cfg -c "init" -c "halt" -c "reset halt" 2012-06-17T01:33:06 < Rickta59> that seemed to help 2012-06-17T01:33:43 < Rickta59> of course with the right -f config for the f0 board 2012-06-17T01:34:09 < Rickta59> i saw your question earlier about plug unplug 2012-06-17T01:34:11 < Rickta59> i think 2012-06-17T01:34:12 < szczys> yeah... check out the extra folder in that repo I linked 2012-06-17T01:34:22 < Rickta59> monitor reset run might work 2012-06-17T01:34:32 < szczys> really? 2012-06-17T01:34:38 < Rickta59> from in gdb yes 2012-06-17T01:34:45 < szczys> doubtful 2012-06-17T01:35:37 < szczys> playing with it right now 2012-06-17T01:36:58 < Tectu> damn, can someone help me here? Am I stupid or just to tired? http://codepad.org/N6f3jUcB 2012-06-17T01:38:23 < Rickta59> hmm .. nm i'm trying too many things at once 2012-06-17T01:38:55 < Rickta59> i was using the summon build of arm-none... .. and that gdb isn't happy with openocd 2012-06-17T01:39:10 < Rickta59> i downloaded an older version of the codesourcery lite and that connects 2012-06-17T01:39:12 < Tectu> Rickta59, what exactly does summon have to do with gdb? 2012-06-17T01:39:15 < szczys> how to I load an elf file using GDB? 2012-06-17T01:39:27 < Tectu> szczys, (gdb) load file.elf 2012-06-17T01:39:27 < Rickta59> it builds gdb 2012-06-17T01:39:46 < Tectu> szczys, for better debugging, start gdb with the .elf as first argument 2012-06-17T01:39:49 < szczys> hey 2012-06-17T01:39:50 < Tectu> like 2012-06-17T01:39:55 < szczys> right, I did that 2012-06-17T01:39:58 < Tectu> $ arm-none-eabi-gdb foo.elf 2012-06-17T01:39:59 < szczys> just didn't try typing load 2012-06-17T01:40:02 < Tectu> then just type load 2012-06-17T01:40:09 < Tectu> works here every time 2012-06-17T01:40:16 < szczys> but I think using "monitor reset run" after load works 2012-06-17T01:40:19 < szczys> thanks Rick! 2012-06-17T01:40:25 < Rickta59> np 2012-06-17T01:40:38 < szczys> are you using: 2012-06-17T01:40:44 < Rickta59> anthing you see in the telenet 4444 is available via the monitor command 2012-06-17T01:40:45 < szczys> monitor stm32f1x mass_erase 0 2012-06-17T01:40:51 < szczys> to erase the chip before loading? 2012-06-17T01:40:59 < Tectu> szczys, are you using texane? 2012-06-17T01:41:04 < szczys> no 2012-06-17T01:41:07 < Rickta59> me .. i'm reading a lot and doing baby steps before i erase 2012-06-17T01:41:17 < szczys> I had been trying to get Flash write working in texane's stlink package 2012-06-17T01:41:20 < szczys> but hit a wall with it 2012-06-17T01:41:24 < Tectu> Rickta59, at least that's the right way ;) 2012-06-17T01:41:43 < Rickta59> i really waiting for szczys to fix it ; ) 2012-06-17T01:41:43 < Tectu> szczys, does work for me and everbody else... where was your problem? 2012-06-17T01:41:47 < Tectu> and what do you use now, szczys 2012-06-17T01:41:53 < Rickta59> f0 board isn't supported Tectu 2012-06-17T01:41:58 < Tectu> ah :D 2012-06-17T01:42:04 < Tectu> when did you try last time? 2012-06-17T01:42:11 < Tectu> they did some F0 related commits a few days ago 2012-06-17T01:42:16 < Rickta59> he did it 2012-06-17T01:42:18 < Tectu> not sure if it is yet working 2012-06-17T01:42:33 < Rickta59> but didn't fix the flash loading part .. just loading to ram 2012-06-17T01:42:47 < Tectu> then fix it yourself is always a good step :D 2012-06-17T01:42:47 < szczys> yeah... which is something I guess 2012-06-17T01:43:07 < szczys> but without the ability to write to flash it's not of very much use 2012-06-17T01:43:28 < Rickta59> so with openocd the other day szczys .. how did you load that bin file? 2012-06-17T01:43:34 < Laurenceb_> http://www.st.com/internet/mcu/product/251211.jsp?WT.ac=spear_spear1340_apr11 2012-06-17T01:43:38 < Laurenceb_> ^interesting 2012-06-17T01:44:30 < Tectu> Laurenceb_, got one? 2012-06-17T01:44:50 < szczys> Rickta59: Ya! 2012-06-17T01:44:58 < szczys> you're right... I'm using "reset run" 2012-06-17T01:45:07 < Laurenceb_> preview :( 2012-06-17T01:45:09 < szczys> and now I don't need to power cycle 2012-06-17T01:45:19 < szczys> pushing to github once I get the README updated 2012-06-17T01:45:22 < Rickta59> did it pick up your latest changes 2012-06-17T01:45:33 < Rickta59> on the firmware i mean 2012-06-17T01:45:45 < szczys> yes 2012-06-17T01:45:50 < Tectu> Laurenceb_, shut up and take my money! 2012-06-17T01:45:50 < szczys> I did a mass erase separately 2012-06-17T01:45:52 < szczys> then power cycled 2012-06-17T01:46:06 < szczys> then used "make program" with my updated command (reset run) 2012-06-17T01:46:07 < Rickta59> so to load a bin? you did that with a command ? 2012-06-17T01:46:16 < szczys> and it started blinking as soon as the write process finished 2012-06-17T01:46:17 < szczys> yay! 2012-06-17T01:46:27 < Rickta59> i want to make sure i can get back to the original firmware 2012-06-17T01:47:11 < Tectu> Rickta59, firmware? 2012-06-17T01:47:16 < Tectu> which firmware and where firmware? 2012-06-17T01:47:30 < Rickta59> as opposed to github 2012-06-17T01:47:48 < Rickta59> firmware .. the other day i snapped the flash and saved it to a bin file 2012-06-17T01:48:07 < szczys> Rickta59: here's the commands I use from telnet: 2012-06-17T01:48:15 < szczys> telnet localhost 4444 2012-06-17T01:48:17 < szczys> reset halt 2012-06-17T01:48:18 < Rickta59> and szczys was able to reload that on his f0 board after he found out that he couldn't load with stlink 2012-06-17T01:48:27 < szczys> stm32f1x mass_erase 0 2012-06-17T01:48:40 < Rickta59> f1x on the f0 board? 2012-06-17T01:48:46 < szczys> flash write_image /path/to/orig.bin 0x08000000 2012-06-17T01:48:57 < Rickta59> great thanks 2012-06-17T01:49:00 < szczys> verify_image /path/to/orig.bin 0x08000000 2012-06-17T01:49:04 < szczys> reset run 2012-06-17T01:49:05 < szczys> shutdown 2012-06-17T01:49:15 < szczys> Rickta59: is that what you were after? 2012-06-17T01:49:21 < Rickta59> yes thanks 2012-06-17T01:49:33 -!- iR0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has quit [Ping timeout: 252 seconds] 2012-06-17T01:49:53 < szczys> most of that can be done through gdb too 2012-06-17T01:49:58 < szczys> but I know for sure that works every time 2012-06-17T01:50:02 < Rickta59> I haven't spent any time reading the docs on openocd .. didn't want to invest too much time if stlink was going to start working 2012-06-17T01:50:04 < szczys> just try verifying the image first 2012-06-17T01:50:12 < szczys> then you can erase it and rewrite it 2012-06-17T01:51:00 < Rickta59> what version of arm gdb do you have? 2012-06-17T01:51:29 < Tectu> szczys, texane does work too, it just segfaults every 5 writes 2012-06-17T01:52:06 < szczys> tectu, really? 2012-06-17T01:52:17 < szczys> what commands are you using to get it to work? 2012-06-17T01:52:25 < Tectu> szczys, what exactly do you mean? 2012-06-17T01:52:30 < Tectu> it load; run; 2012-06-17T01:52:34 < Tectu> nothing more :) 2012-06-17T01:52:37 < Tectu> then ctrl+c 2012-06-17T01:52:38 < Rickta59> to flash? 2012-06-17T01:52:39 < Tectu> do debugg 2012-06-17T01:52:41 < Rickta59> or ram 2012-06-17T01:52:44 < szczys> oh 2012-06-17T01:52:45 < Tectu> just type 'load' 2012-06-17T01:52:51 < Tectu> or even 'lo' is enought 2012-06-17T01:52:54 < Tectu> and 'r' for run 2012-06-17T01:53:02 < szczys> for a flash program? 2012-06-17T01:53:05 < szczys> or a ram program? 2012-06-17T01:53:10 < Rickta59> you have an f0 board Tectu? 2012-06-17T01:53:22 < Tectu> Rickta59, no i don't 2012-06-17T01:53:29 < Rickta59> then how can you say it works? 2012-06-17T01:53:34 < Tectu> Rickta59, i talk about texane in general?! 2012-06-17T01:53:37 < szczys> this is specifically an f0 problem we're talking about 2012-06-17T01:53:40 < Tectu> ah 2012-06-17T01:53:42 < Tectu> sorry then 2012-06-17T01:53:45 < szczys> no problem 2012-06-17T01:53:49 < szczys> we figured it out ;-) 2012-06-17T01:54:36 < Rickta59> so if checkout this template thing it will create the CMSIS stuff for me? 2012-06-17T01:55:34 < szczys> Yes.. 2012-06-17T01:55:38 < szczys> if you look in the Libraries directory 2012-06-17T01:55:53 < szczys> it's all the files from the STM32f0xx Standard Peripheral Library 2012-06-17T01:55:56 < Rickta59> make install? 2012-06-17T01:56:00 < Rickta59> : ) 2012-06-17T01:56:11 < szczys> (I read the license and believe this is allowed) 2012-06-17T01:56:20 < szczys> just type make 2012-06-17T01:56:23 < szczys> to compile the file 2012-06-17T01:56:27 < szczys> and look for errors 2012-06-17T01:56:35 < szczys> if it created a main.bin (and main.elf) 2012-06-17T01:56:42 < szczys> you can type make program to flash it to your board 2012-06-17T01:56:44 < Rickta59> k that worked 2012-06-17T01:57:05 < Rickta59> hmm .. program .. not so much 2012-06-17T01:57:13 < Rickta59> i didn't install in that default directory 2012-06-17T01:57:23 < szczys> edit Makefile 2012-06-17T01:57:34 < szczys> change the OPENOCD_BOARD_DIR variable 2012-06-17T01:58:13 < szczys> to reflect the proper directory (containing stm32f0discovery.cfg) 2012-06-17T01:59:00 -!- cjbaird [~cjb@ppp121-44-62-23.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-17T02:02:33 < szczys> Rickta59: did it work? 2012-06-17T02:03:06 < Rickta59> it did .. sorry 2012-06-17T02:03:21 < Rickta59> was looking at the code to figure out why i only have a blue light : ) 2012-06-17T02:03:28 < Rickta59> nice work .. thanks 2012-06-17T02:03:37 < szczys> it's just blinking one and off at 1 Hz, right? 2012-06-17T02:03:57 < Rickta59> yep 2012-06-17T02:04:04 < szczys> that's how I programmed it 2012-06-17T02:04:10 < Rickta59> that is awesome 2012-06-17T02:04:14 < szczys> I love that SysTick timer!! 2012-06-17T02:04:15 < Rickta59> so what version of gdb do you have? 2012-06-17T02:04:20 < szczys> mmmm 2012-06-17T02:04:26 < Rickta59> my 7.3.1 version doesn't seem to work 2012-06-17T02:04:39 -!- iR0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has joined ##stm32 2012-06-17T02:04:42 < szczys> GNU gdb (Sourcery G++ Lite 2011.03-42) 7.2.50.20100908-cvs 2012-06-17T02:04:46 < Rickta59> are you using the latest code sourcery? 2012-06-17T02:04:51 < szczys> no 2012-06-17T02:04:51 < Rickta59> 11.03 .. 2012-06-17T02:04:52 < Rickta59> ah .. 2012-06-17T02:04:56 < Rickta59> yah that one worked 2012-06-17T02:05:08 < szczys> I'm just too lazy to upgrade 2012-06-17T02:05:10 < szczys> is that bad? 2012-06-17T02:05:13 < Rickta59> well you are lucky 2012-06-17T02:05:19 < Rickta59> if you had upgraded it wouldn't work 2012-06-17T02:05:22 < szczys> oh 2012-06-17T02:05:23 < szczys> well then 2012-06-17T02:05:39 < szczys> can't you download an older version and install it? 2012-06-17T02:05:50 < Rickta59> i did .. that is how i got it working 2012-06-17T02:05:55 < szczys> oh, I see 2012-06-17T02:05:59 < Rickta59> i was just verifying that you also had an old version 2012-06-17T02:06:23 < szczys> I'm just so glad to have the template set up 2012-06-17T02:06:25 < szczys> it took a long time 2012-06-17T02:06:36 < szczys> but now I'll be able to easily develop with these tools 2012-06-17T02:06:38 < szczys> :-) 2012-06-17T02:06:54 < Rickta59> I don't remember who said it but someone in here mentioned the other day that newer gdb (7.3.1 ) doesn't work and said it was too new 2012-06-17T02:07:03 < Rickta59> but he didn't say what old version was right 2012-06-17T02:07:44 < Rickta59> yeah this is great .. time for a hack-a-day post : ) 2012-06-17T02:08:06 < Rickta59> are you going to spend any more time trying to get st-link to work or no? 2012-06-17T02:10:44 < szczys> HaD post is written and will hit at 6:01am (server time) 2012-06-17T02:10:55 < szczys> I don't have plans to work on stlink in the near future 2012-06-17T02:10:56 < szczys> we'll see 2012-06-17T02:11:37 < Rickta59> so now that you have this working .. what is next? 2012-06-17T02:12:45 < BrainDamage> world domination, what else? 2012-06-17T02:14:21 -!- iR0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has quit [Changing host] 2012-06-17T02:14:21 -!- iR0b0t1 [~dev@unaffiliated/r0b0t1] has joined ##stm32 2012-06-17T02:17:34 < szczys> Rickta59: trying to compile the demo program now 2012-06-17T02:31:24 < szczys> Rickta59: I compiled it, but the clock is running a bit slower than the stock program 2012-06-17T02:31:32 < szczys> trying to figure out which file is wrong.... 2012-06-17T02:31:40 < Rickta59> k 2012-06-17T02:33:52 < Rickta59> HSE on .. 2012-06-17T02:33:58 < Rickta59> does this have an external clock? 2012-06-17T02:35:04 < Rickta59> nm .. there are lots of startup files.. need to look more closely at it 2012-06-17T02:41:34 < dongs> i got it. zyp is in tokyo to attend Japan's version of E3, called rapE3 2012-06-17T02:42:00 < dongs> (me too, but let's keep taht a secret) 2012-06-17T02:53:27 < zippe> Rickta59: I don't actually know, I am not using OCD these days 2012-06-17T02:55:53 -!- Laurenceb_ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-06-17T02:56:40 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-06-17T02:58:30 < Rickta59> gdb 7.2.50 from the codesourcery lite of 2011.03-42 seems to work zippe 2012-06-17T02:58:55 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-17T03:20:45 < Tectu> you guys still here 2012-06-17T03:20:46 < Tectu> aw 2012-06-17T03:20:51 < Tectu> dongs, status 2012-06-17T03:24:48 < szczys> Huh 2012-06-17T03:25:06 < szczys> I can compile the demo program that is in the STM32F0-Discovery board firmware package 2012-06-17T03:25:21 < szczys> but the clock is obviously running slower than what ships with the board 2012-06-17T03:25:27 < szczys> I'd guess around half as fast 2012-06-17T03:25:32 < szczys> very strange.... 2012-06-17T03:45:15 -!- phantoxeD [~destroy@95.92.89.24] has quit [Read error: Connection reset by peer] 2012-06-17T03:57:52 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-17T03:58:00 -!- izua [~izua@86.121.2.101] has joined ##stm32 2012-06-17T03:58:00 -!- izua [~izua@86.121.2.101] has quit [Changing host] 2012-06-17T03:58:00 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-17T03:58:03 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-17T04:26:39 < szczys> So I've got the binary file that shipped with my F0 discovery board. 2012-06-17T04:26:53 < szczys> I want to check the settings for the SysTick when that is running. 2012-06-17T04:27:06 < szczys> Anyone have any tips on how to read out register values using GDB? 2012-06-17T04:27:22 < szczys> I'm Googling but not finding anything useful 2012-06-17T04:28:04 < zippe> x/x
2012-06-17T04:28:22 < szczys> thanks! 2012-06-17T04:30:04 < szczys> cool... 2012-06-17T04:30:15 < szczys> I read the chip id just to make sure it worked... and it did 2012-06-17T04:30:30 < zippe> YOU DOUBTED ME? 2012-06-17T04:30:35 < dongs> lfao 2012-06-17T04:30:56 < zippe> ------------------------------------------------------------------------ 2012-06-17T04:30:56 < zippe> r163 | timecop | 2012-06-13 20:35:23 -0700 (Wed, 13 Jun 2012) | 5 lines 2012-06-17T04:30:57 < zippe> added FY90Q buyild target to Makefile 2012-06-17T04:31:00 < zippe> This appears to be a lie 2012-06-17T04:31:30 < dongs> zippe, the EXTRA=-D shit. 2012-06-17T04:31:45 < zippe> Ah, some new use of the word "target" that I had not previously encountered 2012-06-17T04:31:48 < dongs> i am not leet enough to actually make a new target for building shit i.e. make fy 2012-06-17T04:31:51 < zippe> 8) 2012-06-17T04:31:57 < zippe> That's OK, I was just hoping I didn't have to 2012-06-17T04:32:07 < zippe> So, ah, all my flyable quad frames are DJI knock-offs 2012-06-17T04:32:16 < dongs> nice 2012-06-17T04:32:20 < zippe> Is it OK to fly your code on a clone of their stuff? 2012-06-17T04:32:43 < dongs> as long as you dont mind it breking your face, sure 2012-06-17T04:32:47 < dongs> no guarantees. 2012-06-17T04:32:57 < zippe> Well, to be fair these are shit compared to the originals 2012-06-17T04:33:07 < zippe> I would be more worried about it disintegrating in midair 2012-06-17T04:33:13 < szczys> hmmm... any idea where i can read about the SysTick registers? 2012-06-17T04:33:16 < szczys> Not in the reference manual 2012-06-17T04:33:25 < szczys> and I see their mapped to the CMSIS header files 2012-06-17T04:33:27 < dongs> why do you need to read about systick registers 2012-06-17T04:33:32 < zippe> szczys: systick is documented in the architecture reference 2012-06-17T04:33:39 < zippe> ddi0403C 2012-06-17T04:33:56 < szczys> dongs: I compiled the demo code 2012-06-17T04:34:11 < szczys> and it blinks at half the speed of the .bin that shipped on the board 2012-06-17T04:34:22 < szczys> I think it might be an issue with how SysTick is defined 2012-06-17T04:34:28 < szczys> so I'm sleuthing 2012-06-17T04:34:30 < dongs> so, you probaly built it for HSE while there isnt one on the boarD? 2012-06-17T04:34:39 < szczys> ummmm 2012-06-17T04:34:43 < szczys> maybe 2012-06-17T04:34:51 < szczys> is that configured in the example code 2012-06-17T04:34:56 < szczys> or in my Makefile? 2012-06-17T04:35:27 < dongs> im not sure, There should be a system_xxx.c or so to bring up pll/clocks 2012-06-17T04:35:31 < dongs> in each sample project 2012-06-17T04:35:40 < zippe> szczys: that sounds a lot like you're still running off the osc direct 2012-06-17T04:35:52 < szczys> yeah, it's blinking 2012-06-17T04:36:01 < szczys> I figure if it were configured for a clock that wasn't there nothing would happen 2012-06-17T04:36:02 < szczys> right? 2012-06-17T04:36:29 < szczys> There isn't really a way to compare the two .bin files, is there? 2012-06-17T04:36:33 < zippe> i.e. you probably haven't called the routine that sets up the PLL 2012-06-17T04:36:37 < szczys> I have no idea what was used to compile the original 2012-06-17T04:36:48 < zippe> dongs: the FY20 is somewhat annoying; it has a different pinmap 2012-06-17T04:36:54 < szczys> I'm not calling anything... I'm just compiling the example files 2012-06-17T04:37:59 < szczys> RCC_GetClocksFreq(&RCC_Clocks); 2012-06-17T04:37:59 < szczys> SysTick_Config(RCC_Clocks.HCLK_Frequency / 1000); 2012-06-17T04:38:15 < szczys> oh, and this higher up: 2012-06-17T04:38:16 < szczys> RCC_ClocksTypeDef RCC_Clocks; 2012-06-17T04:38:32 < zippe> GetClocksFreq only works if you have called the other half, which is normally done at startup 2012-06-17T04:38:55 < szczys> what 'other half' should i be looking for? 2012-06-17T04:39:45 < zippe> There's a system init function that should be called early, it *should* be pretty obviou 2012-06-17T04:39:58 < szczys> in main.c or elsewhere? 2012-06-17T04:40:48 < zippe> yes 2012-06-17T04:41:02 < dongs> zippe: i trhought that was solved 2012-06-17T04:41:04 < dongs> whats differnt? 2012-06-17T04:41:42 < zippe> The FY90A pinout looks like T2/1-4 and T3/1-4 are pinned out 2012-06-17T04:42:13 < dongs> oh nice 2012-06-17T04:42:17 < dongs> so they fixed EXTI shit? 2012-06-17T04:42:54 < zippe> But the FY20 brings out T2/1,2,4, then T41,2,4 2012-06-17T04:43:30 < zippe> Oh god wait no no no 2012-06-17T04:43:36 < zippe> why am I looking at the F100 datasheet? 2012-06-17T04:43:43 < dongs> haha 2012-06-17T04:44:29 < zippe> Probably similar, but still 2012-06-17T04:46:31 < szczys> zippie: Looks like there's SystemInit() functin that is called by the startup file 2012-06-17T04:46:44 < zippe> Ok, so that's supposed to cut you over to the PLL 2012-06-17T04:47:13 < zippe> dongs: yeah, so for some inexplicable reason the "AIL in" is routed to PA4, which doesn't connect to a timer at all 2012-06-17T04:48:10 < zippe> Basically means some extra hacks required to the FY90 PWM driver 2012-06-17T04:48:29 < dongs> yeah 2012-06-17T04:48:37 < dongs> you'd have to use EXTI and shit. 2012-06-17T04:48:45 < dongs> I just ended up making it use PPM sum input 2012-06-17T04:49:08 < zippe> Yeah, that's what I was going to do 2012-06-17T04:49:17 < zippe> But I can't even run four motors off a single timer 2012-06-17T04:53:18 < szczys> why is it when I use x/x
to read registers I only get 16-bits back 2012-06-17T04:53:24 < szczys> aren't these 32-bit registers? 2012-06-17T04:53:35 < dongs> are you reading sustick shit? 2012-06-17T04:53:37 < dongs> they're 16bit. 2012-06-17T04:53:50 < zippe> When you say "only get 16-bits back", what do you mean? 2012-06-17T04:55:52 < szczys> zo 2012-06-17T04:56:05 < szczys> ah 2012-06-17T04:56:13 < szczys> I'm confusing hex and bin 2012-06-17T04:56:13 < szczys> sorry 2012-06-17T05:00:19 < szczys> comparing hex values read from a 32-bit register to binary values in the register description of the datasheet is amazingly difficult 2012-06-17T05:01:39 < BrainDamage> szczys: are you on linux? if so install qalculate-gtk 2012-06-17T05:01:55 < BrainDamage> then copypaste the hex like 0xhexcode 2012-06-17T05:02:03 < BrainDamage> and convert the result to binary 2012-06-17T05:03:34 < zippe> er, or you can use x/b 2012-06-17T05:04:23 < szczys> BrainDamage: Thanks for the tip, that will come in handy 2012-06-17T05:04:52 < szczys> zippie: that doesn't seem to work 2012-06-17T05:04:57 < BrainDamage> it's an awesome calculator regardless, even handles physical units 2012-06-17T05:05:41 < szczys> zippie it just trunkates it down to two digits 2012-06-17T05:05:44 < szczys> still in hex 2012-06-17T05:08:35 < szczys> zippe: I'm digging in the gdb documentation and found it: x/wt
2012-06-17T05:08:37 < szczys> thanks! 2012-06-17T05:08:57 < zippe> Ah, ok, must have changed at some point 2012-06-17T05:09:00 < zippe> I never use it... 2012-06-17T05:09:03 < szczys> although that output should have a space every four bits 2012-06-17T05:09:05 < Rickta59> are you using system_stm32f0xx.c from teh Project/Demostration? 2012-06-17T05:09:07 < szczys> hard to figure out what's in the middle 2012-06-17T05:09:16 < szczys> Rickta59: yes 2012-06-17T05:09:18 < Rickta59> that seems to default to the right clock 2012-06-17T05:09:35 < szczys> that's why I think the systick value might be the culprit 2012-06-17T05:09:50 < Rickta59> PLL_SOURCE_HSI is the default 2012-06-17T05:10:00 < Rickta59> so life should be good 2012-06-17T05:10:07 < szczys> I'd like to read the registers from the .bin that ships, and compare it to what I've compiled 2012-06-17T05:10:15 < szczys> It blinks too slow 2012-06-17T05:10:28 < szczys> I'd estimate it's blinking half as fast 2012-06-17T05:10:39 < szczys> as what shipped with the board 2012-06-17T05:10:51 < szczys> and the button press reaction is like half as fast 2012-06-17T05:10:53 < Rickta59> have you tried cycling through 2012-06-17T05:11:04 < szczys> which makes me think the delay function is slower 2012-06-17T05:11:12 < szczys> which is governed by the systick interrupt 2012-06-17T05:11:25 < szczys> so either the systick is setup differently 2012-06-17T05:11:34 < szczys> or the clock it's based on is running slow 2012-06-17T05:11:34 < Rickta59> are you compiling with optimization? 2012-06-17T05:11:41 < szczys> hmmmmmm 2012-06-17T05:11:45 < Rickta59> delay is just a busy wait 2012-06-17T05:11:48 < Rickta59> no real time involved 2012-06-17T05:12:02 < szczys> I've got "-O2" in my compiler flags 2012-06-17T05:12:05 < Rickta59> if you are running debug it might be slow 2012-06-17T05:12:08 < szczys> what do you think of that setting? 2012-06-17T05:12:10 < Rickta59> ok .. well then that rules that out 2012-06-17T05:12:24 < zippe> dongs: what's more useful to have on this thing? I2C or a second receive-only UART? 2012-06-17T05:12:24 < Rickta59> O2 is more optimization than O0 2012-06-17T05:12:41 < Rickta59> -Os for small code size 2012-06-17T05:12:47 < dongs> zippe: well it has enough sensors as far as im concerned. 2012-06-17T05:12:53 < Rickta59> -O2 faster with maybe larger code 2012-06-17T05:13:07 < Rickta59> O2 is good 2012-06-17T05:14:11 < Rickta59> did you try unplugging the usb cable? 2012-06-17T05:14:19 < Rickta59> just wondering if a power cycle might change it 2012-06-17T05:14:41 < szczys> I've tried it, no effect 2012-06-17T05:14:42 < Rickta59> I'm not versed enough with the clocks to know when they can and can't be set 2012-06-17T05:14:49 < szczys> hey, how do I load a .bin file using GDB 2012-06-17T05:14:58 < szczys> I get: is not an object file: File format not recognized 2012-06-17T05:15:05 < Rickta59> heh .. that is why i asked you .. i don't know how to do with with gdb 2012-06-17T05:15:21 < Rickta59> yeah it doesn't really want a bin in gdb .. looking for an elf file 2012-06-17T05:15:37 < Rickta59> there is a bin to elf converter i think 2012-06-17T05:21:06 < zippe> There isn't enough information in a bin file for gdb to do anything useful 2012-06-17T05:21:32 < szczys> this is just silly 2012-06-17T05:21:59 < BrainDamage> can't you use st-link to flash it to the memory? 2012-06-17T05:22:14 < szczys> nope 2012-06-17T05:22:20 < szczys> I got it: 2012-06-17T05:22:34 < szczys> monitor flash write_image orig.bin 0x08000000 2012-06-17T05:22:52 < szczys> but you have to either erase the flash first, or add the word erase before the bin file 2012-06-17T05:24:38 < Rickta59> monitor is a command to gdb to says .. don't do gdb .. talk to the monitor 2012-06-17T05:24:46 < Rickta59> so essentially openocd 2012-06-17T05:25:07 < szczys> yep 2012-06-17T05:25:19 < szczys> I just measured the frequency of both .bin file 2012-06-17T05:25:32 < szczys> the flashing when the program first runs is at 2.5 Hz with the file i compiled 2012-06-17T05:25:41 < szczys> but it's at 5.0 Hz with the bin that ships with it 2012-06-17T05:26:12 < szczys> I don't know if that means anything... but I measured it!!! 2012-06-17T05:26:14 < szczys> heh 2012-06-17T05:26:14 < Rickta59> 200ms .. well that maps 2012-06-17T05:26:25 < Rickta59> do you get 10 Hz at all? 2012-06-17T05:26:35 < Rickta59> should be 10Hz and 5Hz and then off 2012-06-17T05:26:40 < Rickta59> or 5/10/off 2012-06-17T05:26:51 < szczys> okay 2012-06-17T05:27:04 < szczys> that's theoretical from the source code you're looking at? 2012-06-17T05:27:27 < szczys> ummm, you okay flyback? 2012-06-17T05:27:28 < Rickta59> yes but i remember getting those numbers on my scope 2012-06-17T05:27:43 < szczys> on your scope from the BIN file that shipped with it? 2012-06-17T05:27:48 < Rickta59> yes 2012-06-17T05:27:54 < Rickta59> so you are getting the same as me 2012-06-17T05:27:55 < BrainDamage> don't mind flyback, he's like random line noise 2012-06-17T05:27:57 < Rickta59> and matches the code 2012-06-17T05:28:02 < BrainDamage> he's infamous in freenode 2012-06-17T05:28:07 < Rickta59> at least with orig.bin 2012-06-17T05:28:30 < szczys> did you do the math for the source code package? 2012-06-17T05:28:38 < szczys> (sorry to ask the same questions over and over) 2012-06-17T05:28:43 < Rickta59> it is 100ms / 200ms / off 2012-06-17T05:28:58 < Rickta59> 100ms should be 10Hz .. 200ms should be 5 Hz 2012-06-17T05:29:03 < szczys> so it's something wrong with the way I'm compiling it 2012-06-17T05:29:08 < szczys> hmmm.... 2012-06-17T05:29:26 < szczys> well.... I'm giving up for the night 2012-06-17T05:29:39 < Rickta59> seems like you are very close 2012-06-17T05:29:42 < Rickta59> thanks 2012-06-17T05:30:00 < szczys> thanks for the help today everyone... I appreciate it 2012-06-17T05:38:12 < szczys> Rickta59 one last thing 2012-06-17T05:38:18 < szczys> you should look at my latest commit 2012-06-17T05:38:31 < szczys> it adds the stm32f0xx_conf.h file to the main Makefile 2012-06-17T05:38:39 < szczys> this makes it really easy to compile the examples 2012-06-17T05:39:11 < szczys> just copy all of the .c to src, and .h to inc (you'll need to find the stm32f0_discovery files too) 2012-06-17T05:39:26 < szczys> and the examples should build without a problem 2012-06-17T05:44:45 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-17T05:44:47 -!- [7] [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-17T05:53:21 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has quit [Quit: Leaving.] 2012-06-17T05:55:35 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Ping timeout: 252 seconds] 2012-06-17T06:04:25 < zippe> dongs: hmm, should I be using the FY90-specific startup file? 2012-06-17T06:16:52 -!- cjbaird_ [~cjb@ppp121-44-34-13.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-17T06:17:13 -!- cjbaird [~cjb@ppp121-44-62-23.lns20.syd6.internode.on.net] has quit [Ping timeout: 252 seconds] 2012-06-17T07:24:05 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-17T07:53:30 < zippe> Apparently not, since it won't assemble. 2012-06-17T08:12:08 -!- emeb [~ericb@12.196.36.226] has joined ##stm32 2012-06-17T08:56:23 -!- emeb [~ericb@12.196.36.226] has quit [Ping timeout: 246 seconds] 2012-06-17T09:11:21 -!- emeb [~ericb@12.196.36.226] has joined ##stm32 2012-06-17T09:20:52 -!- emeb [~ericb@12.196.36.226] has left ##stm32 [] 2012-06-17T09:49:41 -!- tavish [~tavish@120.59.0.30] has joined ##stm32 2012-06-17T09:49:45 -!- tavish [~tavish@120.59.0.30] has quit [Changing host] 2012-06-17T09:49:45 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-17T10:15:38 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 240 seconds] 2012-06-17T11:02:54 -!- tavish [~tavish@120.59.0.30] has joined ##stm32 2012-06-17T11:02:55 -!- tavish [~tavish@120.59.0.30] has quit [Changing host] 2012-06-17T11:02:55 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-17T11:02:59 -!- drgreenthumb [~fletch@drupal.org/user/72475/view] has joined ##stm32 2012-06-17T11:06:01 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Ping timeout: 265 seconds] 2012-06-17T11:44:01 -!- cjbaird_ is now known as cjbaird 2012-06-17T12:18:40 -!- [7] [~quassel@rockbox/developer/TheSeven] has quit [Ping timeout: 244 seconds] 2012-06-17T12:25:48 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-17T12:32:16 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-17T12:33:49 < dongs> zippe: assembly there is for keil 2012-06-17T12:33:59 < dongs> all it adds is jump to bootloader if ram has a predefined pattern 2012-06-17T12:34:12 < dongs> so you can send 'R" over serial to make it go to STM bootloader without having to short Boot1 2012-06-17T12:37:27 < dongs> i found zyp in tokyo 2012-06-17T12:37:38 < dongs> pic incoming 2012-06-17T12:37:43 < dongs> http://i.imgur.com/NIEb6.jpg 2012-06-17T12:38:17 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 246 seconds] 2012-06-17T12:42:27 -!- jaeckel [~jaeckel@jaeckel.eu] has quit [Changing host] 2012-06-17T12:42:27 -!- jaeckel [~jaeckel@unaffiliated/jaeckel] has joined ##stm32 2012-06-17T12:48:34 < dongs> http://www.imaging1.com/thermal/UAV.html wow nice 2012-06-17T12:55:54 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-17T13:16:26 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 246 seconds] 2012-06-17T13:31:13 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has joined ##stm32 2012-06-17T13:31:41 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-06-17T13:43:07 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-17T13:50:20 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 260 seconds] 2012-06-17T13:59:03 -!- iR0b0t1 [~dev@unaffiliated/r0b0t1] has quit [Ping timeout: 265 seconds] 2012-06-17T14:01:08 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-17T14:08:50 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-17T14:08:53 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-17T14:21:28 < Tectu> dongs 2012-06-17T14:28:54 < dongs> sup 2012-06-17T14:40:45 < dongs> any status 2012-06-17T14:40:48 < dongs> im thikning of goin to bed 2012-06-17T14:48:18 < dongs> guys, start fucing chatting 2012-06-17T14:48:18 < dongs> this is ridiculous 2012-06-17T14:48:19 < dongs> i need entertainment 2012-06-17T14:48:30 < dongs> where's zyp/zippe/laurenceb/steffanx/hackkitten/etc 2012-06-17T14:59:51 < Tectu> zyp is in tokyo ;) 2012-06-17T15:08:58 < dongs> not since i met him and his doll-friend 2012-06-17T15:11:03 -!- tavish_ [~tavish@120.56.237.89] has joined ##stm32 2012-06-17T15:12:23 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds] 2012-06-17T15:15:37 < dongs> well fuck this, im going to sleep then 2012-06-17T15:18:37 < Tectu> lol 2012-06-17T15:35:17 -!- tavish_ [~tavish@120.56.237.89] has quit [Ping timeout: 252 seconds] 2012-06-17T15:36:23 -!- tavish [~tavish@120.56.237.89] has joined ##stm32 2012-06-17T15:36:24 -!- tavish [~tavish@120.56.237.89] has quit [Changing host] 2012-06-17T15:36:24 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-17T15:46:57 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has quit [Remote host closed the connection] 2012-06-17T15:49:31 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has joined ##stm32 2012-06-17T15:50:39 -!- cjbaird [~cjb@ppp121-44-34-13.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-17T15:53:19 < zyp> Tectu, no, I'm in kusatsu 2012-06-17T15:55:42 < Tectu> okay 2012-06-17T15:55:46 < Tectu> is that still in asia? 2012-06-17T15:56:24 < zyp> it's a few hours drive out from tokyo 2012-06-17T15:58:28 < Tectu> okay 2012-06-17T15:58:32 < Tectu> so you met with dongs? 2012-06-17T15:59:06 < zyp> no, didn't have time 2012-06-17T15:59:31 < Tectu> okay 2012-06-17T16:00:06 < zyp> anyway, leaving again 2012-06-17T16:00:10 < Tectu> hf 2012-06-17T16:00:14 < zyp> you too 2012-06-17T16:03:16 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has quit [Quit: Leaving.] 2012-06-17T16:05:42 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has joined ##stm32 2012-06-17T16:06:22 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has quit [Remote host closed the connection] 2012-06-17T16:13:17 < jpa-> ah, found my standby-bug 2012-06-17T16:13:36 < jpa-> had to execute full memory barrier to verify that all the register writes are complete before going to standby 2012-06-17T16:15:18 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Ping timeout: 245 seconds] 2012-06-17T16:20:07 -!- Laurenceb_ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has joined ##stm32 2012-06-17T16:21:49 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-17T16:58:49 <+Steffanx> zzzz 2012-06-17T16:59:43 <+Steffanx> What you need the standby for jpa- ? 2012-06-17T16:59:44 < zyp> Steffanx, remember to complete all your register writes 2012-06-17T16:59:47 <+Steffanx> Your ball bot? 2012-06-17T17:00:37 <+Steffanx> No, i don't care about my previous state zyp :P 2012-06-17T17:01:03 < zyp> ha :p 2012-06-17T17:06:25 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has joined ##stm32 2012-06-17T17:06:51 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 246 seconds] 2012-06-17T17:33:52 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has quit [Remote host closed the connection] 2012-06-17T17:34:09 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has joined ##stm32 2012-06-17T17:50:24 < jpa-> hmm.. once i enable IWDG, there is no way to disable it without reset? 2012-06-17T17:52:51 < jpa-> i would like to run IWDG only when i'm in run mode, and then disable it before going to standby 2012-06-17T18:15:43 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Ping timeout: 245 seconds] 2012-06-17T18:16:32 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-17T18:21:59 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Ping timeout: 265 seconds] 2012-06-17T18:24:04 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-17T18:27:47 < Tectu> dongs, you arround? 2012-06-17T18:42:16 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-17T18:42:19 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-17T18:50:04 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-06-17T18:51:27 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-17T19:34:36 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925199413.dsl.bell.ca] has joined ##stm32 2012-06-17T19:34:36 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925199413.dsl.bell.ca] has quit [Changing host] 2012-06-17T19:34:36 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-17T19:36:58 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 245 seconds] 2012-06-17T19:41:00 < Tectu> someone ever used VS1003B ? (MP3/WAV decoder) 2012-06-17T19:45:33 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-17T19:51:38 -!- Netsplit *.net <-> *.split quits: @ChanServ 2012-06-17T20:03:25 < szczys> Is it possible to change the SysTick reload register value from a debugger? 2012-06-17T20:03:42 < szczys> it's at address 0xe000e014 on this chip 2012-06-17T20:03:58 < szczys> and I've tried: monitor mww phys 0xe000e014 0x0000bb7f 2012-06-17T20:04:06 < szczys> but once I resume it reverts back to the old value 2012-06-17T20:04:18 < szczys> it's not running the startup code again when I resume, is it? 2012-06-17T20:05:40 < zippe> szczys: no, it should Just Work 2012-06-17T20:05:52 < zippe> You don't need to use 'monitor' though 2012-06-17T20:06:10 < szczys> I couldn't find a way to change values by address in gdb 2012-06-17T20:06:16 < szczys> the stuff I found only changes variables 2012-06-17T20:06:24 < zippe> set *(uint32_t *)address = value 2012-06-17T20:07:05 < zippe> Alternatively if you have a variable that points to it, use that 2012-06-17T20:07:06 < szczys> No symbol table is loaded. Use the "file" command. 2012-06-17T20:09:42 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer] 2012-06-17T20:09:52 < zippe> Why are you using gdb at all if you don't have symbols? 8) 2012-06-17T20:10:07 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925199413.dsl.bell.ca] has joined ##stm32 2012-06-17T20:11:45 < szczys> habit? 2012-06-17T20:13:07 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has left ##stm32 [] 2012-06-17T20:14:33 -!- Netsplit over, joins: @ChanServ 2012-06-17T20:23:08 -!- NonaSuomy [~TeknoJuce@bas1-london15-2925199413.dsl.bell.ca] has joined ##stm32 2012-06-17T20:23:08 -!- NonaSuomy [~TeknoJuce@bas1-london15-2925199413.dsl.bell.ca] has quit [Changing host] 2012-06-17T20:23:08 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-17T20:24:06 < szczys> zippie: does it matter that I'm trying to write to one of the Cortex-M0 peripheral registers? 2012-06-17T20:24:30 < Thorn> dongs does contract work for milkymist? http://milkymist.org/wp/2011/12/diversity-of-programmable-effects/pdb2/ 2012-06-17T20:26:24 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925199413.dsl.bell.ca] has quit [Ping timeout: 244 seconds] 2012-06-17T20:30:41 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer] 2012-06-17T20:32:21 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-17T20:32:44 < zippe> szczys: no 2012-06-17T20:34:49 < szczys> so anyway, I figured out the thing I was working on last night 2012-06-17T20:35:04 < szczys> how the demo image shipped on these boards runs faster than the comiled demo code 2012-06-17T20:35:20 < szczys> when I read the SysTick reload register, it is half of what is set in the source code 2012-06-17T20:35:37 -!- NonaSuomy [~TeknoJuce@bas1-london15-2925199413.dsl.bell.ca] has joined ##stm32 2012-06-17T20:35:37 -!- NonaSuomy [~TeknoJuce@bas1-london15-2925199413.dsl.bell.ca] has quit [Changing host] 2012-06-17T20:35:37 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-17T20:35:46 < szczys> this must have been changed between the time they compiled what is burned at the factor, and when they assembled the sample code package 2012-06-17T20:35:59 < szczys> * factory * 2012-06-17T20:36:18 -!- peabody124 [~peabody12@128.249.95.23] has joined ##stm32 2012-06-17T20:38:13 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 246 seconds] 2012-06-17T20:44:19 -!- peabody124 [~peabody12@128.249.95.23] has quit [Remote host closed the connection] 2012-06-17T20:44:44 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-06-17T20:55:48 < Rickta59> does the systick affect anything in that sample szczys? 2012-06-17T20:56:49 < szczys> rickta59: yep, it's what drives the delay function 2012-06-17T20:57:07 < szczys> so having the interrupt fire twice as fast is what causes it to blink twice as fast 2012-06-17T20:57:35 < Rickta59> k 2012-06-17T20:57:42 < szczys> I'd like to use the debugger to rewrite that register value just for the satisfaction of seeing it respond the same way the compiled code does 2012-06-17T20:57:47 < szczys> but I can't seem to figure out how to do that 2012-06-17T20:57:59 < Rickta59> TimingDelay_Decrement is done by the SysTick interrupt? 2012-06-17T20:58:47 < Rickta59> ah .. there it is 2012-06-17T21:01:47 < szczys> yeah, in my mind the code seems a bit obfuscated 2012-06-17T21:01:50 < Rickta59> is there a simple way to get the output the clock on a pin? 2012-06-17T21:02:12 < szczys> from the stock .bin file? 2012-06-17T21:02:15 < szczys> I doubt it 2012-06-17T21:02:18 < Rickta59> the final clock with all the PLL MUL/ DIVS applied 2012-06-17T21:02:48 < szczys> just load up the two bin files and read the 0xe000e014 register 2012-06-17T21:02:57 < Rickta59> well I know that with the atmega and the msp430 you can set a port register and have it spew out what it thinks is the main clock speed on an external pin as a square wave 2012-06-17T21:03:01 -!- iR0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has joined ##stm32 2012-06-17T21:03:07 < szczys> you'll get: 0x0000bb7f and 0x00005dbf 2012-06-17T21:03:18 < szczys> that's 48000-1 and 24000-1 2012-06-17T21:03:34 < szczys> the -1 is from the core_m0.h file's definition of the SysTick reload function 2012-06-17T21:03:52 < szczys> and that value is number of cycles that will pass before an interrupt 2012-06-17T21:03:54 < Rickta59> right i mean actually getting it to act like CLKO on an avr 2012-06-17T21:04:09 < Rickta59> and the SMCLK out on the msp430 2012-06-17T21:04:12 < szczys> You'd have to rewrite registers to do it 2012-06-17T21:04:27 < szczys> and I'm not having luck with the cortex peripheral registers right now 2012-06-17T21:04:58 < szczys> relevant regarding writing core registers on F0: http://comments.gmane.org/gmane.comp.debugging.openocd.devel/19440 2012-06-17T21:05:38 < Rickta59> I guess we are early in the cycle here with regard to tool chains catching up 2012-06-17T21:07:35 < Laurenceb_> http://forgifs.com/gallery/d/201951-1/Sign-kicker-rage-faces.gif 2012-06-17T21:08:40 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925199413.dsl.bell.ca] has joined ##stm32 2012-06-17T21:08:40 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925199413.dsl.bell.ca] has quit [Changing host] 2012-06-17T21:08:40 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-17T21:08:48 < Rickta59> so what speed is the demo running at szczys? 2012-06-17T21:08:53 < Rickta59> the main clock 2012-06-17T21:09:04 < szczys> 48 MHz 2012-06-17T21:09:48 < zippe> szczys: not relevant 2012-06-17T21:09:55 < Rickta59> so if all the defines are right .. 48000000/1000 should be the right number of a 1 ms systick 2012-06-17T21:10:26 < Rickta59> SysTick_Config(RCC_Clocks.HCLK_Frequency / 1000); 2012-06-17T21:10:45 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 260 seconds] 2012-06-17T21:11:13 < zippe> Assuming you haven't set the systick prescaler 2012-06-17T21:12:19 < Rickta59> looks like they are all DIV1 2012-06-17T21:12:34 < Rickta59> assuming #if defined (PLL_SOURCE_HSI) 2012-06-17T21:13:09 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 248 seconds] 2012-06-17T21:13:50 -!- NonaSuomy [~TeknoJuce@bas1-london15-2925199917.dsl.bell.ca] has joined ##stm32 2012-06-17T21:13:51 -!- NonaSuomy [~TeknoJuce@bas1-london15-2925199917.dsl.bell.ca] has quit [Changing host] 2012-06-17T21:13:51 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-17T21:14:15 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 260 seconds] 2012-06-17T21:14:58 -!- tavish [~tavish@120.56.140.98] has joined ##stm32 2012-06-17T21:14:58 -!- tavish [~tavish@120.56.140.98] has quit [Changing host] 2012-06-17T21:14:58 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-17T21:16:07 < Rickta59> are you using the system_stm32f0xx.c from your template or the demo project szczys? 2012-06-17T21:17:41 -!- iR0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has quit [Ping timeout: 246 seconds] 2012-06-17T21:21:42 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer] 2012-06-17T21:24:31 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-17T21:26:53 < zippe> dongs: would you like a better Makefile? 2012-06-17T21:27:12 < zippe> And if so, how do you accept diffs for the afrocode? 2012-06-17T22:01:13 -!- izua [~izua@86.121.2.101] has joined ##stm32 2012-06-17T22:01:14 -!- izua [~izua@86.121.2.101] has quit [Changing host] 2012-06-17T22:01:14 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-17T22:01:14 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-17T22:01:54 < szczys> Rickta59: I'd consider this an accomplishment: http://imgur.com/ulrVS 2012-06-17T22:01:57 < szczys> yay! 2012-06-17T22:02:51 < szczys> now I've just got to figure out how to do 9-bit hardware spi with this thing ;_) 2012-06-17T22:11:08 < Rickta59> Yay! is that a nokia display? 2012-06-17T22:11:29 < Rickta59> ah .. zooming in I see it is 2012-06-17T22:11:30 < Rickta59> nice 2012-06-17T22:16:28 < Rickta59> have you looked at the libmaple .. lots of samples in there 2012-06-17T22:21:56 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving] 2012-06-17T22:34:27 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-17T22:34:59 < ratatata> nu 2012-06-17T22:36:10 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-17T23:13:08 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-17T23:15:38 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 246 seconds] 2012-06-17T23:22:30 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-06-17T23:38:36 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-17T23:44:57 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-17T23:47:48 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 245 seconds] 2012-06-17T23:48:52 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-17T23:50:01 -!- iR0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has joined ##stm32 2012-06-17T23:50:38 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 240 seconds] 2012-06-17T23:50:50 -!- ghjfhgfghfhgf [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-17T23:50:55 -!- ghjfhgfghfhgf is now known as phantoxeD 2012-06-17T23:53:38 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 245 seconds] 2012-06-17T23:54:07 < Laurenceb_> someone filmed you driving to work flyback 2012-06-17T23:54:09 < Laurenceb_> http://forgifs.com/gallery/d/200745-1/Merging-road-rage-traffic.gif --- Day changed Mon Jun 18 2012 2012-06-18T00:08:31 -!- iR0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has quit [Ping timeout: 240 seconds] 2012-06-18T00:31:01 < upgrdman> anyone here use stlink and openocd? all i need to do is program and f4disco with the built-in stlinkv2... is one better than the other? im currently using texane/stlink 2012-06-18T00:43:50 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 246 seconds] 2012-06-18T01:01:47 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2012-06-18T01:04:14 -!- iR0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has joined ##stm32 2012-06-18T01:09:15 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-18T01:09:15 -!- [7] [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-18T01:16:17 -!- Netsplit *.net <-> *.split quits: BrainDamage 2012-06-18T01:21:00 < drgreenthumb> yay, so with a little tweaking and installing a few missing packages, that script in the topic built me a toolchain for Cygwin. I'm amazed it worked. but heh now I realize I have no idea how to install this as a working cross compiler :) 2012-06-18T01:23:37 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has joined ##stm32 2012-06-18T01:27:09 -!- iR0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has quit [Changing host] 2012-06-18T01:27:09 -!- iR0b0t1 [~dev@unaffiliated/r0b0t1] has joined ##stm32 2012-06-18T01:45:45 < iR0b0t1> make install 2012-06-18T01:45:54 < iR0b0t1> ./install[.sh] 2012-06-18T01:47:07 < drgreenthumb> heh iR0b0t1 I do know how to do a make install. which this script already does. it set the prefix to $HOME/toolchain 2012-06-18T01:47:27 < iR0b0t1> oh. bugger. 2012-06-18T01:47:28 < drgreenthumb> also these programs aren't prefixed or anything, gcc is just gcc.exe 2012-06-18T01:47:36 < iR0b0t1> See if the ./configure can set the prefix 2012-06-18T01:47:41 < iR0b0t1> and oh 2012-06-18T01:47:42 < iR0b0t1> bugger 2012-06-18T01:47:43 < iR0b0t1> :| 2012-06-18T01:47:44 < drgreenthumb> well I can set it in the script 2012-06-18T01:47:50 < drgreenthumb> but heh what to set it to 2012-06-18T01:54:35 < drgreenthumb> in /lib/gcc there's other cross compile toolchains, I think it needs to go in /lib/gcc/arm-none-eabi but the layout looks different from whats in my $HOME/toolchain. hrm. 2012-06-18T01:55:02 < drgreenthumb> wonder if I can just copy the tools there. I'll try. 2012-06-18T01:58:32 < BrainDamage> dongs' favourite chips brand: https://imgur.com/gallery/ZXK36 2012-06-18T02:01:55 < Laurenceb_> lmao 2012-06-18T02:02:19 < drgreenthumb> eat our chips! it's like getting kicked in the nuts! 2012-06-18T02:07:44 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer] 2012-06-18T02:09:08 -!- TeknoJuce [~TeknoJuce@69.158.141.114] has joined ##stm32 2012-06-18T02:09:09 -!- TeknoJuce [~TeknoJuce@69.158.141.114] has quit [Changing host] 2012-06-18T02:09:09 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-18T02:12:44 -!- Laurenceb_ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-06-18T02:24:39 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has quit [Quit: Leaving.] 2012-06-18T02:25:27 -!- NonaSuomy [~TeknoJuce@69.158.141.114] has joined ##stm32 2012-06-18T02:25:28 -!- NonaSuomy [~TeknoJuce@69.158.141.114] has quit [Changing host] 2012-06-18T02:25:28 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-18T02:27:14 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has joined ##stm32 2012-06-18T02:28:21 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 248 seconds] 2012-06-18T02:46:01 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 246 seconds] 2012-06-18T02:49:12 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-18T02:51:56 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 246 seconds] 2012-06-18T02:53:46 < drgreenthumb> oh. heh. in theory I can just set the prefix to /usr/local. /me tries it and starts praying. 2012-06-18T03:10:25 -!- dekar [~dekar@176.5.2.126] has joined ##stm32 2012-06-18T03:10:28 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-18T03:10:37 -!- NonaSuomy [~TeknoJuce@69.158.141.114] has joined ##stm32 2012-06-18T03:10:37 -!- NonaSuomy [~TeknoJuce@69.158.141.114] has quit [Changing host] 2012-06-18T03:10:37 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-18T03:13:29 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 245 seconds] 2012-06-18T03:16:33 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-18T03:17:14 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer] 2012-06-18T03:17:35 -!- dekar [~dekar@176.5.2.126] has quit [Quit: Leaving] 2012-06-18T03:18:33 -!- TeknoJuce [~TeknoJuce@69.158.141.114] has joined ##stm32 2012-06-18T03:18:33 -!- TeknoJuce [~TeknoJuce@69.158.141.114] has quit [Changing host] 2012-06-18T03:18:33 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-18T03:19:13 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 255 seconds] 2012-06-18T03:24:54 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-18T03:26:49 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 245 seconds] 2012-06-18T03:27:24 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer] 2012-06-18T03:27:49 -!- NonaSuomy [~TeknoJuce@69.158.141.114] has joined ##stm32 2012-06-18T03:27:49 -!- NonaSuomy [~TeknoJuce@69.158.141.114] has quit [Changing host] 2012-06-18T03:27:49 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-18T03:30:53 < drgreenthumb> hey it seems to be working, nice one. even works with the --build and --host options of autoconf. 2012-06-18T03:31:49 -!- TeknoJuce [~TeknoJuce@69.158.141.114] has joined ##stm32 2012-06-18T03:31:49 -!- TeknoJuce [~TeknoJuce@69.158.141.114] has quit [Changing host] 2012-06-18T03:31:49 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-18T03:32:10 < drgreenthumb> built me an ELF binary. is that what stm32 programmers take for input? or should I make it generate .hex? 2012-06-18T03:32:26 < drgreenthumb> heh and that reminds me. I need some gear to play with. 2012-06-18T03:34:11 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 272 seconds] 2012-06-18T03:34:15 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-18T03:34:54 -!- NonaSuomy [~TeknoJuce@69.158.141.114] has joined ##stm32 2012-06-18T03:34:54 -!- NonaSuomy [~TeknoJuce@69.158.141.114] has quit [Changing host] 2012-06-18T03:34:54 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-18T03:38:04 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 245 seconds] 2012-06-18T03:38:51 -!- cjbaird [~cjb@ppp121-44-34-13.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-18T03:39:06 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-18T03:39:43 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 264 seconds] 2012-06-18T03:42:22 -!- NonaSuomy [~TeknoJuce@bas1-london15-2925200810.dsl.bell.ca] has joined ##stm32 2012-06-18T03:42:22 -!- NonaSuomy [~TeknoJuce@bas1-london15-2925200810.dsl.bell.ca] has quit [Changing host] 2012-06-18T03:42:22 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-18T03:43:44 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 246 seconds] 2012-06-18T03:49:44 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925200810.dsl.bell.ca] has joined ##stm32 2012-06-18T03:49:44 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925200810.dsl.bell.ca] has quit [Changing host] 2012-06-18T03:49:44 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-18T03:51:47 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 246 seconds] 2012-06-18T04:45:30 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Ping timeout: 244 seconds] 2012-06-18T04:57:18 < zippe> drgreenthumb: seriously, just use the ARM bare-metal toolchain; precompiled binaries for Windows and Linux, and a Homebrew formula for Mac OS 2012-06-18T04:57:42 < drgreenthumb> what the gcc toolchain is nogood? it's producing binaries :P 2012-06-18T04:57:59 < drgreenthumb> why's it in the topic then? lying topic? :P 2012-06-18T04:58:29 < zippe> No idea why TNT is in the topic; people seem to love duplicating effort. 2012-06-18T04:58:50 < zippe> The ARM baremetal toolchain is ARM packaging stable drops from the GCC embedded branch 2012-06-18T04:59:01 < drgreenthumb> ah 2012-06-18T04:59:06 < zippe> Rather than some random cherry-picking from Linaro with bad multilib configs 2012-06-18T05:08:04 < cjbaird> At least it's not like the BSDfags, who're into literally duplicating the /entire/ effort from scratch, and then expecting their fellows to swallow a useless B,C-grade product for the ten years it takes to get close to what the GNU people had all along.. 2012-06-18T05:08:26 -!- [7] [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-18T05:08:32 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-18T05:08:51 < drgreenthumb> heh 2012-06-18T05:09:21 < drgreenthumb> aaaand of course this script in the topic here does not feature an uninstall feature. awesome. 2012-06-18T05:10:11 < cjbaird> echo "uninstall: rm -rf ~/toolchain" >>Makefile. Done. :) 2012-06-18T05:10:34 < drgreenthumb> heh well. I installed into /usr/local like a moron. 2012-06-18T05:10:50 < drgreenthumb> I'll use the toolchain dir to figure out what to delete. 2012-06-18T05:11:27 < cjbaird> "find /usr/local -mtime 1" (or whatever) would be something I used to locate everthing for those sorts of stuffups. 2012-06-18T05:11:40 < drgreenthumb> clever 2012-06-18T05:13:02 < drgreenthumb> -1 works fine it was a few hrs ago 2012-06-18T05:14:35 < drgreenthumb> heh better not delete that list directly it contains /usr/local :P 2012-06-18T05:16:11 < drgreenthumb> wait does that actually mean that /usr/local was created today? possible I guess. 2012-06-18T05:16:16 < drgreenthumb> cygwin is so weird. 2012-06-18T05:17:33 < cjbaird> "find /usr/local -mtime 1 -a -type f" would skip the modified directories.. but yeah, still better to do it manually with that as a guide. 2012-06-18T05:21:49 < drgreenthumb> alright gnuarm toolchain working. heh that was a lot simpler. herpderp on the topic. 2012-06-18T05:28:32 < drgreenthumb> also heh that TNT one on the topic exploded unless I did -nostdlib. someone should change that nonsense. 2012-06-18T05:43:21 < upgrdman> whats wrong with -nostdlib? 2012-06-18T05:43:46 -!- izua [~izua@86.121.2.101] has joined ##stm32 2012-06-18T05:43:47 -!- izua [~izua@86.121.2.101] has quit [Changing host] 2012-06-18T05:43:47 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-18T05:43:50 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-18T05:56:08 < drgreenthumb> nothing upgrdman but it's nicer not to have to specify it: `./configure --build=i686-pc-cygwin --host=arm-elf` now works beautifully without other fiddling. 2012-06-18T05:56:49 < upgrdman> k 2012-06-18T05:57:32 < drgreenthumb> I'm sorry. what I was trying to say is that the TNT thing in the topic doesn't play so nice with autotools. is all. 2012-06-18T05:58:02 < drgreenthumb> but after some help from zippe and cjbaird it works as expected. 2012-06-18T05:58:04 < upgrdman> no need to be sorry. im just new and learning... 2012-06-18T06:09:39 < drgreenthumb> me too :) well about ARMs anyway, not my first venture into microcontroller land. 2012-06-18T06:16:37 < cjbaird> The limonine cleaner on the old PCB worked well: http://i.imgur.com/o3BXw.jpg 2012-06-18T06:18:05 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 246 seconds] 2012-06-18T06:52:31 -!- emeb [~ericb@12.68.180.146] has joined ##stm32 2012-06-18T06:56:13 < upgrdman> do watchpoints work with arm-none-eabi-gdm and the stm32f4? 2012-06-18T06:57:11 < upgrdman> cjbaird, shit... what are all the sockets for? 2012-06-18T07:06:50 < cjbaird> --> http://i.imgur.com/5OhEB.jpg .. :) 2012-06-18T07:08:12 < cjbaird> Besides the CPU and its gluechips, there's peripheral devices like UARTs and PIAs, and (uncommonly for an SBC) video generation. 2012-06-18T07:10:16 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has quit [Read error: Operation timed out] 2012-06-18T07:11:55 < cjbaird> And back at the time, a lot of them used to be worth $20+ each... so hence, sockets. 2012-06-18T07:12:07 < cjbaird> Make that $50+... 2012-06-18T07:41:38 < cjbaird> flyback: you mentioned. Fortunately the bare board had nothing on it that would have a problem with water, so the 'surfacants' and such in the pre-wash spray wouldn't be a problem as I would be putting the garden hose on it to ensure everything was washed off. 2012-06-18T08:07:25 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-18T08:10:35 < zippe> cjbaird: Funny you should mention that… though actually it was the GNU weenies that couldn't stand the thought of the BSD tools and their liberal, use-anywhere license being the de-facto standard. 2012-06-18T08:10:51 < zippe> Since the BSD codebase predates Linus' efforts by a good decade or so. 2012-06-18T08:11:06 < pelrun_> so goes the GNU codebase, actually 2012-06-18T08:11:37 < zippe> When you say "the GNU codebase", what do you actually mean? Since there isn't really a "GNU codebase" in the same sense. 2012-06-18T08:12:00 < pelrun_> yeah, it's a whole bunch of separate tools 2012-06-18T08:12:47 < pelrun_> I'm coming into this conversation right in the middle, so I really shouldn't just make sweeping statements like that without context XD 2012-06-18T08:12:51 < zippe> 8) 2012-06-18T08:13:24 < zippe> Or pick it up with someone that has worked on the BSD code since the mid-90s, who was there for the USL lawsuit, etc. etc. 8) 2012-06-18T08:14:22 < pelrun_> it's not valid to compare the gnu and bsd projects directly anyway - it's not like it's "we do exactly the same thing just with slightly different philosophies" 2012-06-18T08:14:23 < zippe> and CJ, the reason we do the BSD thing is because the GPL is too restrictive. Some people want to write code that is useful, and the GPL prevents that. 2012-06-18T08:15:00 < zippe> pelrun_: also true. 2012-06-18T08:15:05 < pelrun_> bsd is "we want our code to be used as widely as possible", gpl is "we want our code to help promote 'freedom'" 2012-06-18T08:15:21 < pelrun_> honestly I think both are perfectly valid 2012-06-18T08:16:04 < zippe> pelrun_: sadly, most GPL applications are "because that's what everyone else is using", not even out of some misguided belief in "now with 20% extra freedom in every clause" 2012-06-18T08:16:15 < pelrun_> that's still perfectly fine 2012-06-18T08:16:30 < zippe> As is buying an SUV because you have eight kids. 2012-06-18T08:16:33 < pelrun_> you don't have to be an uber-RMS raving freedom weenie to use it 2012-06-18T08:16:52 < zippe> It doesn't address the dual issue that there are better choices to make than reproducing to that extent 2012-06-18T08:17:04 < zippe> or that you could buy something that moves people more efficiently than an SUV 2012-06-18T08:17:09 -!- emeb [~ericb@12.68.180.146] has quit [Quit: Leaving.] 2012-06-18T08:17:38 < zippe> … as you might guess, I believe in informed consent 2012-06-18T08:17:50 < pelrun_> and really, would you be complaining if people were going bsd purely because 'that's what everyone else is using'? 2012-06-18T08:17:55 < zippe> Yes. 2012-06-18T08:18:10 < zippe> Because that's not a stigma I would want to see attached to the mindset. 2012-06-18T08:18:22 < pelrun_> but you wouldn't be thinking of it in those terms 2012-06-18T08:18:31 < zippe> If someone were to pick a BSD-like license and it was not compatible with their actual aims, I would be unhappy about it. 2012-06-18T08:18:55 < zippe> And in fact on any number of occasions I've advised teams to consider alternative licensing strategies 2012-06-18T08:18:55 < pelrun_> but that's assuming that they actually have consciously chosen 'aims' 2012-06-18T08:19:23 < zippe> It helps to think about it in terms of consequences or outcomes, since you're right, 'aims' is too abstract in many cases. 2012-06-18T08:19:25 < pelrun_> which conflicts with the original assertion that they're just going with the popular choice 2012-06-18T08:20:03 < zippe> Not at all. The popular choice is the easy one because you just pretend that your aims must be similar to everyone else's 2012-06-18T08:20:31 < pelrun_> and anyway, if you went to one of those people who chose the gpl without thinking about it and ask them 'do you want a big company to take your code that you wrote for free and make money off it' they'd probably say no 2012-06-18T08:21:38 < pelrun_> which is less about their mindset and more about the bias inherent in the question 2012-06-18T08:25:15 < zippe> Aaanyway, this is not a forum for license advocacy; just annoying hearing someone like Chris spewing that sort of pre-teen bile. 2012-06-18T08:29:52 < pelrun_> hehehe, I don't disagree 2012-06-18T09:03:15 < cjbaird> zippe: the BSD codebase before GNU came along wasn't that much. Most of 'their' tools were actually SysV imports that you needed a Unix licence for. GNU started their replacements of the ~30 SysV tools circa 1987; surpassing them in number and quality (gzip instead of compress..) by around 1993. It was until about 1997 that the cult of BSD licensing faggotry took off, and psychos like Theo started ranting.. 2012-06-18T09:05:03 < cjbaird> Prior to ~1992, you were expected to be paying all-up about $1k/year/user for the 'free BSD' stuff (and then, people like BSDi tried to keep that going..) 2012-06-18T09:06:52 < cjbaird> Suns were popular about you could get a kind of 'bulk discount' for a multiuser Unix that way-- $20,000 up-front for a Sparc, with 'only' a $3k/year contract&etc. cost thereafter-- which worked out well for Unis and etc. 2012-06-18T09:08:19 < cjbaird> bsd is "we want our code to be used as widely as possible" ... fixed: "we want our code to get me a jerb!" :) 2012-06-18T09:09:48 < cjbaird> A number of the NetBSD coreteam have that attitude. "Oh, Oh! You should embed NetBSD in your products! NO GPL AIDS LOL LOL! ...hey, and there's nobody who understand the code better than me... Gimme jerb!" 2012-06-18T09:11:21 < cjbaird> The drawback being, as of 2012, the lack of any real contributors to NetBSD's code (if we're lucky, someone's Jerb lets them upsteam their work) is only at the stage that Linux was circa 1997.. "Journaling file system? What're those?" 2012-06-18T09:14:03 -!- izua [~izua@86.121.2.101] has joined ##stm32 2012-06-18T09:14:03 -!- izua [~izua@86.121.2.101] has quit [Changing host] 2012-06-18T09:14:04 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-18T09:14:07 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-18T09:14:34 < cjbaird> Apple's Time Capsule backup devices run NetBSD.. not that theres been any contributions of their porting work.. The TCs being totally Tivo-ized and locked-down, so they're worthless "to me". 2012-06-18T09:15:56 < cjbaird> <- Linksys weenie as well. 2012-06-18T09:19:43 < blkcat> mmm bsd <3 2012-06-18T09:20:43 -!- pelrun_ [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 256 seconds] 2012-06-18T09:21:47 < cjbaird> BSD supposedly could claim almost a 10 year head-start on the GPL.. Yet their userland is still second-rate. (One day I must troll Ken Pick with "if the BSD licence is better, and you guys claim to have invented 'open source', then why was there never a free-pc-unix scene like Linux had back in the 1980s.. :) 2012-06-18T09:22:20 < cjbaird> "Sheesh, Ken, even Minix was ten times bigger in its day than BSD.." 2012-06-18T09:26:22 < blkcat> really? i muh prefer the bsd userland 2012-06-18T09:26:44 < blkcat> also, cellphone keyboards are awful. 2012-06-18T09:44:51 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-18T10:03:08 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-06-18T10:05:14 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 246 seconds] 2012-06-18T10:50:45 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Ping timeout: 248 seconds] 2012-06-18T10:57:52 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-06-18T11:13:08 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has joined ##stm32 2012-06-18T11:13:08 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has quit [Changing host] 2012-06-18T11:13:08 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32 2012-06-18T11:28:47 -!- Laurenceb_ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has joined ##stm32 2012-06-18T11:43:13 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-18T11:46:55 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 260 seconds] 2012-06-18T12:08:05 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-18T12:11:55 < cjbaird> Hmm, my friendly neighbourhood Farnell has the F0-Discos for $12.30 now.. 2012-06-18T12:14:23 -!- Laurenceb_ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-06-18T13:27:32 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has joined ##stm32 2012-06-18T14:50:26 < karlp> shouldn't this "just work" for looking at registers via gdb directly? p /x *(uint32_t *)0x1fff7a10 2012-06-18T14:50:47 < karlp> I just get "Cannot access memory at address blah" 2012-06-18T14:51:48 < Laurenceb> so zyp met dongs? 2012-06-18T14:51:52 < Laurenceb> photo required 2012-06-18T14:54:35 < karlp> dongs has already provided one. 2012-06-18T14:55:00 < Laurenceb> hes trolling 2012-06-18T14:55:31 < Laurenceb> http://forgifs.com/gallery/d/201951-1/Sign-kicker-rage-faces.gif 2012-06-18T14:59:34 < karlp> you already pasted that 2012-06-18T14:59:55 < karlp> so, f4 ref man says that flash size register is 0x1fff7a10 + 0 2012-06-18T15:00:09 < karlp> but that's the same address as unique id bits 31:16 2012-06-18T15:00:17 < karlp> L1 and F1 don't overlap like that 2012-06-18T15:00:26 < karlp> I wonder if that's just a datasheet errata 2012-06-18T15:01:01 < karlp> L1 also has the unique id bits at x, x + 4, and x + 0x14 2012-06-18T15:01:09 < karlp> instead of contiguous like the others 2012-06-18T15:01:10 < karlp> weird 2012-06-18T15:02:54 < Thorn> unique id consists of several components: wafer number (or time code?), wafer x/y position, etc. 2012-06-18T15:04:24 < karlp> yeah, but F2 and F4 lists flash size register as having the same address as some of the unique id register bits 2012-06-18T15:04:38 < karlp> which seems odd to have the same addressed listed as two different registers 2012-06-18T15:05:52 < karlp> F0 data sheet actually describes thebits 2012-06-18T15:06:48 < karlp> heh, but doesn't actually say what the base address is. 2012-06-18T15:07:08 < karlp> there's just a blank space beside Base address: 2012-06-18T15:15:49 < karlp> well, here's some dumps from some parts I bought http://false.ekta.is/2012/06/stm32-device-electronic-signature-unique-device-id-register/ 2012-06-18T15:17:19 < Thorn> I've used a few stm32f103vct6 for a project, I think their unique ids differed in a single byte only 2012-06-18T15:17:37 < Thorn> probably all from the same wafer 2012-06-18T15:18:13 < Thorn> and hashing is certainly required 2012-06-18T15:33:24 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 244 seconds] 2012-06-18T15:39:07 < Laurenceb> how could i use different devices on the same i2c bus from different threads in chibios? 2012-06-18T15:41:56 < Laurenceb> an io queue is just data right? 2012-06-18T15:42:00 < Laurenceb> for serial etc 2012-06-18T15:44:09 < Laurenceb> oh nvm they thought of this 2012-06-18T15:44:16 < Laurenceb> i2cAcquireBus and Release 2012-06-18T15:49:35 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 265 seconds] 2012-06-18T16:07:28 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-06-18T16:49:35 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-18T16:58:39 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-06-18T17:28:19 -!- dekar [~dekar@dslb-188-107-082-087.pools.arcor-ip.net] has joined ##stm32 2012-06-18T17:28:23 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-18T18:04:11 -!- tavish [~tavish@120.56.137.86] has joined ##stm32 2012-06-18T18:04:13 -!- tavish [~tavish@120.56.137.86] has quit [Changing host] 2012-06-18T18:04:13 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-18T18:08:39 -!- tavish_ [~tavish@120.56.137.86] has joined ##stm32 2012-06-18T18:10:21 -!- tavish [~tavish@unaffiliated/tavish] has quit [Read error: Connection reset by peer] 2012-06-18T18:21:35 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-18T18:21:38 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-18T18:30:19 -!- cjbaird [~cjb@ppp121-44-34-13.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-18T18:36:28 -!- emeb [~ericb@12.68.180.146] has joined ##stm32 2012-06-18T18:47:54 -!- peabody124 [~peabody12@12.238.42.2] has joined ##stm32 2012-06-18T18:50:37 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-18T18:53:44 < Rickta59> so if you were going to make a usb serial device with an stm32 device would you use one of the stm32 chips that supports USB or would you just use an ftdi chip? 2012-06-18T18:54:14 < Rickta59> i'm leaning towards the new ftdi chip because it is supported by most OS drivers without too much pain 2012-06-18T18:54:17 -!- peabody124 [~peabody12@12.238.42.2] has quit [Ping timeout: 252 seconds] 2012-06-18T18:54:53 -!- tavish_ [~tavish@120.56.137.86] has quit [Quit: Reconnecting] 2012-06-18T18:55:10 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-18T19:03:59 <+izua> you could emulate the ftdi 2012-06-18T19:04:24 <+izua> i wonder if using the cdc class and vid/pid of an ftdi does the trick 2012-06-18T19:04:29 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-06-18T19:04:43 <+izua> that's probably against the license you agreed to when installing windows 2012-06-18T19:05:34 -!- emeb [~ericb@12.68.180.146] has quit [Ping timeout: 276 seconds] 2012-06-18T19:05:47 < Rickta59> most likely .. although I think they have some special sauce in there 2012-06-18T19:06:02 < Rickta59> special sauce in the ftdi device 2012-06-18T19:06:28 -!- peabody124 [~peabody12@12.238.42.2] has joined ##stm32 2012-06-18T19:16:16 < karlp> heh, ST has an android app for designing op amp circuits 2012-06-18T19:17:02 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-18T19:17:06 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-18T19:21:10 -!- peabody124 [~peabody12@12.238.42.2] has quit [Ping timeout: 276 seconds] 2012-06-18T19:36:17 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Quit: Quitte] 2012-06-18T20:06:38 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer] 2012-06-18T20:08:08 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925200810.dsl.bell.ca] has joined ##stm32 2012-06-18T20:08:09 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925200810.dsl.bell.ca] has quit [Changing host] 2012-06-18T20:08:09 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-18T20:11:24 -!- NonaSuomy [~TeknoJuce@bas1-london15-1279302540.dsl.bell.ca] has joined ##stm32 2012-06-18T20:11:24 -!- NonaSuomy [~TeknoJuce@bas1-london15-1279302540.dsl.bell.ca] has quit [Changing host] 2012-06-18T20:11:24 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-18T20:13:05 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 246 seconds] 2012-06-18T20:35:37 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer] 2012-06-18T20:38:21 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925201294.dsl.bell.ca] has joined ##stm32 2012-06-18T20:38:22 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925201294.dsl.bell.ca] has quit [Changing host] 2012-06-18T20:38:22 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-18T20:46:09 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-18T20:47:35 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-18T20:50:08 < ratatata> nu 2012-06-18T20:50:34 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer] 2012-06-18T20:50:51 <+Steffanx> nu 2012-06-18T20:51:29 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-18T20:51:38 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-06-18T20:52:35 <+dekar> izua, I am pretty sure the FTDI is not a normal CDC device 2012-06-18T20:52:50 <+dekar> I mean it uses MPSSE to communicate 2012-06-18T20:52:59 <+dekar> which are proprietary opcodes 2012-06-18T20:53:16 <+Steffanx> Who said it was CDC? 2012-06-18T20:53:43 <+dekar> "[18:04] i wonder if using the cdc class and vid/pid of an ftdi does the trick" 2012-06-18T20:54:32 <+dekar> Rickta59, I would go for USB-HID 2012-06-18T20:54:47 <+dekar> Rickta59, that works seamless on OSX and Windows 2012-06-18T20:55:15 < Rickta59> usb-hid as in you would just get an STM32 chip with a USB peripheral? 2012-06-18T20:55:56 <+dekar> yeah 2012-06-18T20:56:16 <+Steffanx> Why hid and not some random home made protocol and libusb? 2012-06-18T20:56:30 < Rickta59> and to expose it to programs that want to talk to com/tty ports you would do what? 2012-06-18T20:56:31 <+dekar> Steffanx, cause libusb isn't seamless 2012-06-18T20:57:09 <+dekar> if you use CDC or libUSB then you have to install drivers using administrative permissions 2012-06-18T20:57:20 < Rickta59> i'm trying to figure out the path of least resistance .. and was wondering if getting a stm32 working as usb serial was going to be a lot of effort 2012-06-18T20:57:22 <+Steffanx> and hid is hacky :P 2012-06-18T20:57:23 <+dekar> if you use the HID device class you can write the whole driver in userland 2012-06-18T20:57:31 < Rickta59> the ftdi one is no work 2012-06-18T20:57:51 <+dekar> well if you want to ship a product with great user experience then go for HID 2012-06-18T20:58:02 <+dekar> if you want the easiest way then use an FTDI 2012-06-18T20:58:05 < Rickta59> the host side may not be my program 2012-06-18T20:58:49 <+Steffanx> it takes 5 seconds to install and ftdi driver dekar :P 2012-06-18T20:59:16 <+dekar> Rickta59, our company is shipping a product using USB HID and the experience is great. we basically have an java applet deploy the userland driver and then the browser has access to our device 2012-06-18T20:59:34 <+dekar> Steffanx, you need administrative permissions 2012-06-18T20:59:44 < Rickta59> libusb is already there for java? 2012-06-18T20:59:50 < Rickta59> for all different platforms? 2012-06-18T20:59:58 <+dekar> there are customers using laptops they got from their customers, they don't have admin accounts 2012-06-18T21:00:10 <+dekar> and/or they don't want to install drivers 2012-06-18T21:00:25 < Rickta59> userland driver .. as in you install libusb and and interface? or you provide a socket interface on localhost? 2012-06-18T21:00:27 <+dekar> Rickta59, I am not using libusb 2012-06-18T21:00:42 <+dekar> my device is an HID device 2012-06-18T21:00:50 <+Steffanx> HID is still hacky imho :P 2012-06-18T21:00:55 <+dekar> libusb is a generic usb driver you can install for any device 2012-06-18T21:01:04 <+dekar> Steffanx, your mouse is hackish 2012-06-18T21:01:15 <+Steffanx> No, my mouse is a interface device 2012-06-18T21:01:23 < Rickta59> describe the userland driver 2012-06-18T21:01:30 <+dekar> Steffanx, well yeah I am raping the spec, so what? :) 2012-06-18T21:01:32 < Rickta59> a program or actually a driver 2012-06-18T21:01:45 <+dekar> Rickta59, program contains a driver 2012-06-18T21:01:55 <+dekar> no need to install anything into the system 2012-06-18T21:02:00 < Rickta59> so you have 3 versions for mac/pc/linux? 2012-06-18T21:02:04 < jpa-> so what is dekar's device? 2012-06-18T21:02:04 <+dekar> yeah 2012-06-18T21:02:21 <+dekar> jpa-, http://www.flexoptix.net/flexbox-v2-transceiver-programmer.html 2012-06-18T21:02:40 < jpa-> expensive 2012-06-18T21:03:01 <+dekar> jpa-, does it show up german for you? 2012-06-18T21:03:16 <+dekar> you can change the language at the top 2012-06-18T21:03:32 <+dekar> jpa-, you get one for free if you give feedback :) 2012-06-18T21:03:55 <+dekar> see "V2 feedback campaign" 2012-06-18T21:04:28 < Rickta59> SFP is what? 2012-06-18T21:04:49 <+Steffanx> ethernet crap 2012-06-18T21:05:05 <+Steffanx> Man, i shouldn't talk like dongs 2012-06-18T21:06:01 < Rickta59> so this is a low speed interface? 2012-06-18T21:06:08 <+Steffanx> high speed 2012-06-18T21:06:16 < Rickta59> i mean usb -> sfp device 2012-06-18T21:06:29 < Rickta59> host usb -> stm32 device 2012-06-18T21:06:46 <+Steffanx> Tranciever programmer .. so that thing is just a programmer 2012-06-18T21:07:11 <+Steffanx> for routers, switches and mulltiplexers 2012-06-18T21:07:19 <+dekar> Steffanx, it can also do other stuff, like replaying everything that comes in 2012-06-18T21:07:27 < Rickta59> that seems like a reasonable thing 2012-06-18T21:07:29 <+Steffanx> everything? 2012-06-18T21:07:33 <+Steffanx> over usb dekar ?! 2012-06-18T21:07:42 < Rickta59> did you find it hard to get the usb going on the stm32? 2012-06-18T21:07:45 <+dekar> Steffanx, inside the box, 10G in -> 10G out 2012-06-18T21:07:53 <+Steffanx> ooh 2012-06-18T21:08:05 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 260 seconds] 2012-06-18T21:08:53 <+dekar> Steffanx, it can also tune laser frequencies, allowing you to test your fibers over the whole spectrum 2012-06-18T21:09:02 < zyp> what's up? 2012-06-18T21:09:05 <+Steffanx> tha sky 2012-06-18T21:09:08 <+Steffanx> and stars 2012-06-18T21:09:22 < zyp> ceiling in the way 2012-06-18T21:09:42 <+Steffanx> open your eeeeyes 2012-06-18T21:10:09 <+Steffanx> zyp .. you didn;t take your stm32 stuff with you? 2012-06-18T21:10:44 < zyp> I think I did bring my F4 board and blackmagic, but I haven't had time to even think about playing with it 2012-06-18T21:10:47 < zyp> why? 2012-06-18T21:10:53 <+Steffanx> Ha, I knew it 2012-06-18T21:10:59 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-18T21:11:09 <+Steffanx> No time? You have to time to talk here 2012-06-18T21:11:19 < zyp> I've been busy driving all day, did I miss anything? 2012-06-18T21:11:27 <+Steffanx> Can't tell you 2012-06-18T21:11:33 < zyp> it's 3:15 now, and I'm about to pass out :p 2012-06-18T21:12:30 <+Steffanx> Drink some sake and write some code 2012-06-18T21:13:03 < zyp> I just did taste some sake, still tastes like shit 2012-06-18T21:13:22 <+Steffanx> The alcohol is the think that counts 2012-06-18T21:13:23 < feurig> zyp: then your drinking it wrong. 2012-06-18T21:13:52 < zyp> feurig, how? 2012-06-18T21:16:03 <+Steffanx> It's called Eye balling 2012-06-18T21:19:07 <+Steffanx> dekar, you have 1.5k for a device and still need credits?!?! 2012-06-18T21:19:52 <+Steffanx> *have = pay 2012-06-18T21:20:06 <+dekar> Steffanx, you can get the unmetered one for 1k more 2012-06-18T21:20:13 <+dekar> check the options 2012-06-18T21:20:25 <+dekar> that only covers transceivers bought from us though 2012-06-18T21:21:09 <+Steffanx> You'll buy your next pc from me? 2012-06-18T21:21:13 <+dekar> being able to tune laser wavelengths (colors) costs another 2k 2012-06-18T21:21:38 <+Steffanx> You pay 100 euro and have to buy credits for every app you try to install and/or compile oyurself :P 2012-06-18T21:22:07 <+dekar> Steffanx, sounds like windows8 for ARM with secure boot 2012-06-18T21:22:12 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving] 2012-06-18T21:23:13 <+dekar> Steffanx, just get the basic flexBox using the feedback campaign, it is probably the prettiest stm32 board you can get for free :) 2012-06-18T21:23:54 <+Steffanx> I don't have any compatible router/switch/multiplexer 2012-06-18T21:24:23 <+dekar> Steffanx, yet you get an stm32 board with nice case for free 2012-06-18T21:25:04 < karlp> only if you buy 100 transceivers? 2012-06-18T21:25:32 <+dekar> karlp, it doesn't say that? 2012-06-18T21:25:43 <+dekar> just order one cheap SFP :) 2012-06-18T21:25:54 <+Steffanx> cheap? 2012-06-18T21:28:15 <+dekar> Steffanx, like that one: http://www.flexoptix.net/produkte/sfp-sx-1-gigabit-mm-850nm-550m.html 2012-06-18T21:28:34 <+Steffanx> That is programmable? 2012-06-18T21:28:35 <+dekar> I mean it's an epic laser with an effective range of over half a kilometer! 2012-06-18T21:28:57 <+dekar> yeah you can program those using the flexbox 2012-06-18T21:29:28 <+dekar> POSSIBLE COMPATIBILITIES: HP H3C, HP Networking, Huawei, MSA Standard, 3COM, Netgear, Alcatel, Nokia-Siemens (Atrica), Allied Telesis, Nortel, Brocade IP, Brocade Storage, Cisco Systems, Riverstone, D-LINK, Zyxel, Enterasys, Extreme 2012-06-18T21:30:42 <+dekar> you can even have it pogrommed to EXTREME compatibility for free 2012-06-18T21:30:45 <+dekar> EXTREME! 2012-06-18T21:30:47 <+dekar> epic name :) 2012-06-18T21:30:55 <+dekar> I also like their purple switches 2012-06-18T21:31:36 <+dekar> so you buy some pretty EXTREME laser and get a flexbox for free, how's that? 2012-06-18T21:31:51 <+Steffanx> I like the case, but .. :P 2012-06-18T21:32:24 <+dekar> the aluminum is probably worth what you've paid on that transceiver 2012-06-18T21:32:38 <+dekar> so you can sell the EXTREME transceiver plus the aluminum case on ebay :) 2012-06-18T21:32:40 < Rickta59> there is an stm32 inside that? 2012-06-18T21:32:43 <+Steffanx> I actually don't even know what such a transceiver is used for :P 2012-06-18T21:32:51 <+dekar> Rickta59, inside the flexBox2 2012-06-18T21:32:56 <+Steffanx> I mean, i guess you need some compatible device for it? 2012-06-18T21:33:08 <+Steffanx> I'm not into networking at all 2012-06-18T21:33:09 < Rickta59> inside the tranceiver? 2012-06-18T21:34:22 <+dekar> Steffanx, http://img.directindustry.com/images_di/photo-g/rack-mount-industrial-10gbe-ethernet-switch-579210.jpg 2012-06-18T21:34:34 <+dekar> that's where those SFP go into 2012-06-18T21:34:43 <+dekar> into EXTREME switches 2012-06-18T21:35:18 <+dekar> Rickta59, not inside the transceiver, but inside the flexBox V2 which you can get for free with any transceiver order 2012-06-18T21:35:19 <+Steffanx> I get one of those for free too? 2012-06-18T21:35:23 <+dekar> only like 35 left 2012-06-18T21:35:28 <+dekar> Steffanx, nope 2012-06-18T21:35:30 <+Steffanx> Ahr 2012-06-18T21:35:38 < Rickta59> not really useful for me .. but thanks : ) 2012-06-18T21:35:43 <+Steffanx> So, i only have a fancy box + transciever for 35e 2012-06-18T21:35:57 <+dekar> it's an EXTREME transceiver! 2012-06-18T21:36:05 <+dekar> compatible to purple switches 2012-06-18T21:36:56 <+dekar> Steffanx, and the flexBox2 is full of goodies 2012-06-18T21:37:03 <+dekar> it has nice blue LEDs 2012-06-18T21:37:10 <+dekar> and a hidden microSD slot 2012-06-18T21:37:16 <+dekar> microUSB as well 2012-06-18T21:37:26 <+dekar> and 2 slots for transceivers 2012-06-18T21:37:29 <+dekar> a heatsink 2012-06-18T21:37:46 <+dekar> oh and pretty neat DC/DC converters 2012-06-18T21:37:54 <+dekar> those uber high efficiency ones 2012-06-18T21:38:39 <+dekar> op-amps... 2012-06-18T21:38:47 <+dekar> Steffanx, you know you want it! 2012-06-18T21:39:02 <+Steffanx> I know i want it, i know it'll end up on my pile of unused goodies 2012-06-18T21:39:23 <+Steffanx> i know it's not worth 35e + shipping 2012-06-18T21:40:22 <+dekar> Steffanx, besides that I am pretty sure our company would lose money on you buying it :P 2012-06-18T21:40:38 <+Steffanx> No 2012-06-18T21:40:42 < karlp> man, this crc block seems to be really crap. you need to bit reverse everything and do it in 32bit chunks not byte chunks 2012-06-18T21:40:54 < TitanMKD> anyone know if there's cache in STM32F4 ? 2012-06-18T21:41:09 <+dekar> TitanMKD, like the prefetch thing? 2012-06-18T21:41:13 < TitanMKD> it is not clear if cache is implemented or not on ARM M3/M4 2012-06-18T21:41:26 < TitanMKD> dekar yes and how many cache memory is available 2012-06-18T21:41:48 < TitanMKD> to know also if ARM instruction for cache are available ;) 2012-06-18T21:41:59 <+dekar> TitanMKD, I am pretty sure the stm32f1 has the prefetch buffer 2012-06-18T21:42:08 <+dekar> and I think it is enabled by default 2012-06-18T21:42:51 < TitanMKD> the branch predictor seems always here on M4 2012-06-18T21:43:04 < TitanMKD> with a 3 stage pipeline 2012-06-18T21:43:39 <+dekar> one would think stuff like that doesn't matter on a three stage pipeline -.-" 2012-06-18T21:44:00 < TitanMKD> the branch predictor is very important too 2012-06-18T21:44:09 <+dekar> cortex M5 will probably do out-of-order execution :P 2012-06-18T21:44:52 < TitanMKD> in fact i'm benchmarking LPC4330 which boot on SPIFI and it seems it has cache because basic code with 100nop loop execute more than 190 millions instructions per second @204MHz 2012-06-18T21:45:25 < TitanMKD> and the SPIFI max speed is 50MB/s (@more than 100MHz) 2012-06-18T21:46:05 <+dekar> TitanMKD, execution from ram isn't an option? 2012-06-18T21:46:15 < TitanMKD> dekar i tested it too with same speed ;) 2012-06-18T21:46:21 <+dekar> wow nice :) 2012-06-18T21:46:36 < TitanMKD> it is why i will add some test to know what's the cache size by increasing the test code ... 2012-06-18T21:46:58 < TitanMKD> and also by checking SPIFI access with Logic Analyzer to confirm code is not executed from SPIFI 2012-06-18T21:47:23 < TitanMKD> it is just not documented at all in any documentation 2012-06-18T21:47:55 <+dekar> TitanMKD, if our wiki was ready we could document your findings there :/ 2012-06-18T21:48:19 <+dekar> izua, Steffanx *cough* wiki *cough* 2012-06-18T21:48:27 < TitanMKD> dekar all my code is available on hackrf github 2012-06-18T21:48:33 <+Steffanx> izua izua 2012-06-18T21:48:34 <+izua> stm32.izua.ro 2012-06-18T21:48:41 <+izua> but i have to install some more crap 2012-06-18T21:48:47 <+dekar> neat 2012-06-18T21:48:47 <+Steffanx> .ro ? 2012-06-18T21:48:52 <+dekar> romania :D 2012-06-18T21:48:59 <+Steffanx> Yes, but .ro ?! 2012-06-18T21:49:12 <+izua> it's like they have .su for soviet union 2012-06-18T21:49:13 <+dekar> cause it's uber cool 2012-06-18T21:49:15 <+izua> but just .ro for romania 2012-06-18T21:49:16 <+dekar> I like .ro 2012-06-18T21:49:22 <+izua> also, hitler.su 2012-06-18T21:49:22 <+dekar> better than .de for Germany 2012-06-18T21:49:54 <+izua> also, russia has one more, .рф 2012-06-18T21:49:56 <+Steffanx> stm32.iz.ua 2012-06-18T21:50:09 <+dekar> domain hacks are so yesterday 2012-06-18T21:50:19 <+izua> which is pretty epic that they were stuckup against the main dns authority when asked to kill .su 2012-06-18T21:50:24 <+Steffanx> So is .ro dekar 2012-06-18T21:51:10 <+izua> .ro is not a domain hack 2012-06-18T21:51:15 <+izua> it's epicness in a box 2012-06-18T21:51:29 <+izua> you get a per-life domain for $30 2012-06-18T21:54:07 <+dekar> neat 2012-06-18T21:54:15 <+dekar> ours are like 2€ per year 2012-06-18T21:54:36 <+izua> well 2012-06-18T21:54:51 <+dekar> I can't stand .de though 2012-06-18T21:55:01 <+dekar> all mine are net and org 2012-06-18T21:55:01 <+izua> there's that option too, if you purchase it from a reseller, but if you buy it frm the tld's office, that's the only tax 2012-06-18T21:55:19 <+izua> schadenfreu.de 2012-06-18T21:55:23 <+dekar> :D 2012-06-18T21:55:27 < Rickta59> i found that excel spreadsheet for configuring the clocks .. however I don't have excel and it doesn't seem to work in libre office .. are there any online web pages that provide the same functionality? 2012-06-18T21:55:56 <+dekar> Rickta59, umm that google office maybe? 2012-06-18T21:56:03 < Rickta59> i tried that too 2012-06-18T21:56:15 < Rickta59> it is a giant ball of macros 2012-06-18T21:56:24 < Rickta59> that doesn't seem to work with google 2012-06-18T21:56:51 < Rickta59> i have an old win2k machine someplace i could resurrect that has excel i was just hoping not to 2012-06-18T21:56:58 <+Steffanx> Time for a js based clock configurator 2012-06-18T21:57:11 -!- mode/##stm32 [+o izua] by ChanServ 2012-06-18T21:57:11 -!- izua changed the topic of ##stm32 to: code protection bug: http://tinyurl.com/4469sbn | Prepare for the two minutes of /hate/love. this channel is publicly logged, ask zlog for more. (also for free z80s) | Join us building the ##stm32 toolchain: https://github.com/EliasOenal/TNT | we have a wiki http://stm32.izua.ro 2012-06-18T21:57:21 -!- mode/##stm32 [-o izua] by izua 2012-06-18T21:57:40 <+izua> Steffanx: nice going, replacing microsoft with javascript 2012-06-18T21:57:56 <+Steffanx> Nothing wrong with JS .. 2012-06-18T21:57:57 -!- whitequark [~whitequar@2a00:ab00:1::4464:5550] has joined ##stm32 2012-06-18T21:58:08 <+Steffanx> There even is a fancy Flac encoder/decoder in JS nowadays :P 2012-06-18T21:58:17 <+Steffanx> i think it was a decoder 2012-06-18T21:58:20 -!- whitequark [~whitequar@2a00:ab00:1::4464:5550] has left ##stm32 [] 2012-06-18T21:58:55 <+izua> nothing inherently wrong with it, just with designers that don't write stuff that works with js as enhancments and not mandatory crap 2012-06-18T21:59:08 < karlp> no, suck it up. 2012-06-18T21:59:19 < karlp> if you're browser doesn't support js, you're not in the target audience 2012-06-18T21:59:27 <+Steffanx> Yeah :D 2012-06-18T21:59:46 <+Steffanx> You mean you want a configurator written in php izua ? :P 2012-06-18T22:00:00 <+izua> you could do worse 2012-06-18T22:00:00 < Rickta59> that wouldn't be my preference 2012-06-18T22:00:03 <+izua> ironpython 2012-06-18T22:00:10 <+Steffanx> python :( 2012-06-18T22:00:12 < BrainDamage> x86 asm, WITH GUI 2012-06-18T22:00:17 <+izua> THAT 2012-06-18T22:00:28 < Rickta59> i just want to go to open up something and not install anything 2012-06-18T22:00:32 <+Steffanx> No, web based is the only option 2012-06-18T22:00:57 <+dekar> Steffanx, JS ftl 2012-06-18T22:00:59 <+izua> speaking of webstuff 2012-06-18T22:01:03 < Rickta59> ok .. so no one has seen anything like that? 2012-06-18T22:01:06 <+dekar> it doesn't even do threading 2012-06-18T22:01:16 <+Steffanx> It does dekar 2012-06-18T22:01:20 <+dekar> no waii 2012-06-18T22:01:24 <+izua> is there an xml or some other similar thing that has a memory map of the F1 chips? (or maybe even the F2 or F4) 2012-06-18T22:01:28 <+Steffanx> web workers dekar 2012-06-18T22:01:29 <+dekar> Steffanx, proof? 2012-06-18T22:01:32 <+dekar> O.o 2012-06-18T22:01:35 <+Steffanx> Not implemented very well yet, but it does exist 2012-06-18T22:01:49 <+izua> i'm curious to make a diff on them, and see how better chips overlay to the entry level ones 2012-06-18T22:02:00 <+dekar> Steffanx, one of those weird Mozilla only things? Like WebVibrator (vibration api) 2012-06-18T22:02:09 < Rickta59> you can just use frames to get threading 2012-06-18T22:02:18 <+izua> why would one choose such a horrible nickname for a project 2012-06-18T22:02:27 <+Steffanx> Not sure which browser implement it dekar 2012-06-18T22:02:32 < drgreenthumb> yeah it should have been called remote teledildonics! 2012-06-18T22:02:51 < drgreenthumb> bzzzzzzz 2012-06-18T22:03:03 < drgreenthumb> nice wiki :P 2012-06-18T22:03:16 < drgreenthumb> could use some pages ;) 2012-06-18T22:03:24 <+Steffanx> dekar 2012-06-18T22:03:25 <+Steffanx> Web workers are currently supported by Safari, Chrome, Opera and Mozilla Firefox.[ 2012-06-18T22:03:30 <+dekar> "Why use the working title WebVibrator? Because I can." -Chris Jones 2012-06-18T22:03:31 <+izua> http://stm32.izua.ro/wiki/Special:ListUsers 2012-06-18T22:03:33 <+Steffanx> So, all 'decent' browsers 2012-06-18T22:03:46 <+izua> https://www.youtube.com/watch?v=7CoeMD0lBXU i mean this 2012-06-18T22:03:53 <+Steffanx> It's tom_itx izua :P 2012-06-18T22:04:04 <+izua> yeah i made some default users 2012-06-18T22:04:13 <+izua> gonna pm them their passwords when i see them around 2012-06-18T22:04:42 <+izua> i did _, but wiki naming rules make _ a 2012-06-18T22:04:54 <+Steffanx> oh 2012-06-18T22:09:35 <+Steffanx> Now we need a fancy logo 2012-06-18T22:11:17 <+izua> yes 2012-06-18T22:11:21 <+izua> that should take up half the page 2012-06-18T22:11:29 -!- Laurenceb_ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has joined ##stm32 2012-06-18T22:11:29 <+izua> and a lot of javascript and ads and background music 2012-06-18T22:15:24 < Rickta59> animated GIF files are much tackier 2012-06-18T22:16:44 < Laurenceb_> 2012-06-18T22:16:59 < BrainDamage> quick chibios question: in the docs, with pwm period, do they actually mean semiperiod? because there seems to be a separate parameter for the frequency 2012-06-18T22:20:23 <+izua> 2012-06-18T22:21:47 <+izua> uh, what if one is the prescaler, and the other one is the frequency? 2012-06-18T22:22:43 <+Steffanx> Everything is better than that default logo+text izua 2012-06-18T22:23:30 <+izua> i was thinking of installing the gumax (:google) theme 2012-06-18T22:23:38 <+izua> it's looks much more clean and nice then mediawiki 2012-06-18T22:24:26 <+izua> hm 2012-06-18T22:24:41 <+izua> dongs had a neat picture where he ran 12v across a 5v tolerant p[in 2012-06-18T22:25:06 < BrainDamage> that reminds me we still didn't see the exploded stm32 pic from Laurenceb 2012-06-18T22:25:20 <+Steffanx> Laurenceb_ made a photo of his stm32 yet? 2012-06-18T22:25:26 <+izua> http://i.imgur.com/WVVNQ.jpg 2012-06-18T22:25:26 < Laurenceb_> i chucked it sorry 2012-06-18T22:25:46 < Laurenceb_> almost like that 2012-06-18T22:25:52 < Laurenceb_> is thats a dongs board? 2012-06-18T22:26:07 <+Steffanx> /ban-for-life Laurenceb_ 2012-06-18T22:26:20 < Laurenceb_> why? 2012-06-18T22:26:30 <+Steffanx> You didn't take a photo 2012-06-18T22:26:48 < Laurenceb_> heh 2012-06-18T22:26:54 < Laurenceb_> thats some quality pcb fab 2012-06-18T22:27:04 < Laurenceb_> wish i could find somewhere that good 2012-06-18T22:28:25 < jpa-> i made an add-on to my stm32 board: http://koti.kapsi.fi/jpa/stuff/pix/SANY0016.JPG 2012-06-18T22:29:06 < BrainDamage> that looks much more professional to the previous pic 2012-06-18T22:29:12 < Laurenceb_> hehe 2012-06-18T22:29:23 <+Steffanx> yuck .. what's that jpa- ? 2012-06-18T22:29:57 < jpa-> BrainDamage: they actually mean the number of ticks per period.. ie. if you set 12000000, 600 you get 12MHz timer with 600 tick PWM period 2012-06-18T22:30:10 < jpa-> (=> 20kHz PWM) 2012-06-18T22:30:35 < BrainDamage> ah, to set the resolution? thanks 2012-06-18T22:30:53 < jpa-> Steffanx: capacitor pump to raise 4V -> 5V :) 2012-06-18T22:31:01 < jpa-> driven from IO pin 2012-06-18T22:31:11 < jpa-> BrainDamage: yeah 2012-06-18T22:31:19 <+Steffanx> And what is it used for (the board) 2012-06-18T22:31:27 < jpa-> still the sphere 2012-06-18T22:31:34 <+Steffanx> Oh ok 2012-06-18T22:31:43 <+Steffanx> You also needed the standby for that? 2012-06-18T22:31:51 < jpa-> yeah, it has no power switch 2012-06-18T22:32:03 < jpa-> i'm finally starting to get it actually working 2012-06-18T22:32:09 < Rickta59> szczys are you here? 2012-06-18T22:32:53 < jpa-> note-to-self: inverting the Z channel measurements is not an easy fix to sign errors. it makes your coordinate system left-handed, and no-one likes lefties 2012-06-18T22:33:37 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-18T22:34:09 <+izua> jpa-: did you make that board at home? 2012-06-18T22:34:18 < jpa-> izua: yeah 2012-06-18T22:34:30 <+izua> details please? 2012-06-18T22:34:34 <+Steffanx> I stopped doing that after a little accident 2012-06-18T22:34:40 < jpa-> laser printer + photoresist 2012-06-18T22:34:43 <+izua> i was barely able to obtain 0.15mm features on a 1kW lamp 2012-06-18T22:34:58 < jpa-> bright fluorescent desk lamp 2012-06-18T22:35:00 <+izua> jpa -v -v 2012-06-18T22:35:26 <+Steffanx> No UV? 2012-06-18T22:35:26 <+izua> so, you impressed it with a desk lamp 2012-06-18T22:35:27 < jpa-> the real trick is to have a good print quality 2012-06-18T22:35:37 <+izua> CFLs have quite some UV noise 2012-06-18T22:36:06 <+izua> i've used one of those bigass hg discharge bulbs to get uv, and about 500mm distance from the light, to get little reflections 2012-06-18T22:36:09 < jpa-> then you can happily expose for 20 minutes and get good contrast (transparency with inkside against the board) 2012-06-18T22:36:27 <+Steffanx> 20 minutes .. i only needed 2-3 minutes 2012-06-18T22:36:32 <+izua> nah, i got 5 minute tops 2012-06-18T22:36:42 <+izua> but traces were often broken or thinner 2012-06-18T22:36:44 < jpa-> yeah, depends on your lamp & age of the board 2012-06-18T22:36:58 < jpa-> 10 minutes when the board is new, 20 minutes when it is 3 years old 2012-06-18T22:37:10 <+Steffanx> Your boards get old? 2012-06-18T22:37:13 <+izua> so you only printed on transparency? 2012-06-18T22:37:18 <+izua> the photoresist becomes less reactive 2012-06-18T22:37:20 < jpa-> izua: yeah 2012-06-18T22:37:26 < jpa-> Steffanx: if the resist is pre-applied 2012-06-18T22:37:41 <+izua> i do that to, but i also used calc(?) paper 2012-06-18T22:37:41 < jpa-> if you spray it on yourself not as much.. but not sure if the spray will age 2012-06-18T22:37:47 <+izua> uhm 2012-06-18T22:37:57 <+Steffanx> I used that izua 2012-06-18T22:37:58 <+izua> tracing paper* 2012-06-18T22:38:03 <+izua> that's the term 2012-06-18T22:38:20 < jpa-> too bad i only have 4 good transparency films left.. i bought new ones but they don't work as well 2012-06-18T22:39:30 <+izua> i have tried a lot of tricks to get such small details 2012-06-18T22:39:44 <+izua> and i couldn't get repetability at all 2012-06-18T22:39:53 < jpa-> but that board only has 0.2mm details anyway 2012-06-18T22:40:06 < jpa-> that's the smallest i can reliably manage 2012-06-18T22:40:46 < BrainDamage> the traces look rather sharp tough 2012-06-18T22:41:22 <+izua> would you care do give more details about your setup and boards? 2012-06-18T22:41:26 < jpa-> yeah, but i sometimes have trouble with extra dots or gaps in the printout 2012-06-18T22:41:51 <+izua> i'm interested in the specific light source, distance between the film and light and developer 2012-06-18T22:42:28 <+izua> jpa-: what i do against that is make a 45 degree fill 2012-06-18T22:42:37 < jpa-> izua: nothing special.. the number one important thing is to have a good printout and then make sure the ink is pressed close against the board surface 2012-06-18T22:42:51 <+izua> definitely check. 2012-06-18T22:42:59 <+izua> i have even tried with two transparencies overlaid 2012-06-18T22:43:07 < jpa-> 45 degree fill where? 2012-06-18T22:43:18 <+izua> everywhere 2012-06-18T22:43:24 < jpa-> what is 45 degree fill? 2012-06-18T22:43:35 < jpa-> two transparencies works, but ruins detail 2012-06-18T22:43:43 <+izua> whoopsie, sorry, i'm a bit tired 2012-06-18T22:43:49 <+izua> it's.. err... poly fill? 2012-06-18T22:43:53 <+izua> i can' tremember the exact term 2012-06-18T22:44:05 < jpa-> so how does it help? 2012-06-18T22:44:07 <+izua> you cover the whole board in a pattern, like on millimetric paper 2012-06-18T22:44:16 <+izua> the empty spaces, actually 2012-06-18T22:44:21 < jpa-> ah, for ground plane 2012-06-18T22:44:23 <+izua> you don't get dots and gaps 2012-06-18T22:44:30 <+izua> well, yeah, it could be a ground plane 2012-06-18T22:44:44 < jpa-> hmm.. why does it stop dots and gaps? 2012-06-18T22:44:58 < jpa-> i mean they don't hurt in the empty space anyway :) 2012-06-18T22:44:59 <+izua> it ensures faster and less loss of details during etching 2012-06-18T22:45:18 < jpa-> ah, true 2012-06-18T22:45:20 <+izua> and there won't be any dots, at least, not bigger than your minimum trace width in the plane 2012-06-18T22:45:42 < jpa-> but my dots & gaps don't occur at the etching stage 2012-06-18T22:45:43 <+izua> plus, you can tell apart boards with exposure problems pretty fast 2012-06-18T22:46:06 < jpa-> instead they are there after exposure & developing 2012-06-18T22:46:30 < jpa-> i think problem may be dust :P 2012-06-18T22:46:41 < jpa-> and crappy printer does some of those also.. 2012-06-18T22:50:12 <+izua> my old printer exhibeted some very strange behaviour (a hp1020) 2012-06-18T22:50:59 <+izua> if i printed lines parallel to the feeding direction (only that) they all came out washed 2012-06-18T22:51:12 <+Steffanx> :S 2012-06-18T22:51:22 <+Steffanx> At least my 1022 doesn't have that problem 2012-06-18T22:51:25 <+izua> if i printed the perpendicular to it (on the laser axis) some sort of interference pattern was created :D 2012-06-18T22:51:50 <+izua> when i added a ground grid, at 45 degrees, the problem went away :D 2012-06-18T22:51:50 <+izua> hehe 2012-06-18T22:52:13 <+izua> i have a new one for some time, a 1102, but i haven't tested how it prints transparencies yet. 2012-06-18T22:52:21 <+Steffanx> I guess HP designed it for next and nothing else but text 2012-06-18T22:52:31 <+Steffanx> */next/text 2012-06-18T22:53:12 <+izua> jpa-: what printer are you using for transparencies? 2012-06-18T22:59:30 < jpa-> izua: hp color laserjet 1600 2012-06-18T23:11:01 < TitanMKD> haha great i see access to SPIFI in realtime ;) 2012-06-18T23:11:20 <+Steffanx> ... 2012-06-18T23:11:40 < TitanMKD> there's 1 access each 1s so it is cached 2012-06-18T23:13:23 <+dekar> TitanMKD, nice! what logic analyzer are you using? 2012-06-18T23:15:23 < TitanMKD> dekar i'm checking it with my Scope in fact 2012-06-18T23:15:50 < TitanMKD> i know the SPIFI access is executed only when instruction flow is "broken" by the while(1) 2012-06-18T23:15:57 < TitanMKD> executed exactly each 1s ;) 2012-06-18T23:18:13 < TitanMKD> dekar the code loop is here http://pastie.org/4110506 2012-06-18T23:18:39 < TitanMKD> so it is interesting bl to gpio_clear ... are in fact all cached 2012-06-18T23:19:29 < TitanMKD> dekar SPIFI Clock is 22.73MHz ;) 2012-06-18T23:24:36 < TitanMKD> and it load only 32bytes each 1s 2012-06-18T23:29:00 < TitanMKD> dekar it means 32bytes=256bits so if just fill a full cache line at each instruction flow interruption of the while(1) branch to the start 2012-06-18T23:45:40 <+dekar> izua, http://www.heise.de/imgs/18/8/7/6/5/7/9/Yukon-Architektur.jpg-027e5d6d902e3fb2.jpeg 2012-06-18T23:45:44 <+dekar> new xbox architecture 2012-06-18T23:45:50 <+dekar> looks somewhat weird to me 2012-06-18T23:45:59 <+dekar> bazillions of cores 2012-06-18T23:46:02 <+dekar> PPC and ARM 2012-06-18T23:50:34 <+izua> security system 2012-06-18T23:50:37 <+izua> always on 2012-06-18T23:51:04 <+izua> why would i want a core wasting power just so it can.. wait, what advantage does that even offer ot the end user? 2012-06-18T23:51:58 < Laurenceb_> hmm 2012-06-18T23:52:06 < Laurenceb_> chibios uses dma for the peripherals 2012-06-18T23:52:23 < Laurenceb_> and looks like it generates an error if the dma channel is already allocated 2012-06-18T23:52:26 < Laurenceb_> seriously lame 2012-06-18T23:52:34 < Laurenceb_> it just errors 2012-06-18T23:52:58 < Laurenceb_> its particularly limiting on F1 2012-06-18T23:55:20 <+dekar> izua, it receives emails etc while in standby I guess 2012-06-18T23:55:33 <+dekar> on the other hand, my phone does that already 2012-06-18T23:55:38 <+izua> why? 2012-06-18T23:55:46 <+izua> i mean mail servers are already up 24/7 2012-06-18T23:56:30 <+dekar> it probably plays some loud windows error sound every time and demands you to delete some mails from your inbox so it can receive the latest spam :D 2012-06-18T23:56:50 <+dekar> idk, maybe video calls? 2012-06-18T23:57:00 <+dekar> it could ring telling you someone is calling 2012-06-18T23:57:12 <+dekar> didn't m$ buy Skype? --- Day changed Tue Jun 19 2012 2012-06-19T00:03:49 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 248 seconds] 2012-06-19T00:06:09 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-19T00:08:53 < Laurenceb_> hmf have i understood this? 2012-06-19T00:09:00 < Laurenceb_> seems like a bit of a fail by chibios 2012-06-19T00:09:25 < Laurenceb_> i guess it makes the drivers simple to just use dma, but an option for interrupt driven would be nice 2012-06-19T00:15:13 < TitanMKD> haha funny with 1000nop i obtain now 5millions instructions per sec ;) 2012-06-19T00:15:23 < TitanMKD> it seems cache is too little now 2012-06-19T00:20:48 < Laurenceb_> whats the clk speed? 2012-06-19T00:21:05 < TitanMKD> 204MHz 2012-06-19T00:21:14 < Laurenceb_> thats not good 2012-06-19T00:21:25 < TitanMKD> but it is limited by SPIFI @22.7MHz 2012-06-19T00:21:25 <+Steffanx> lpc something Laurenceb_ 2012-06-19T00:21:30 <+Steffanx> Not STM#@ 2012-06-19T00:21:31 <+Steffanx> 32 2012-06-19T00:22:33 <+Steffanx> TitanMKD does nxp have some schedule for the versions with flash? 2012-06-19T00:25:06 < TitanMKD> Steffanx no idea 2012-06-19T00:25:21 < TitanMKD> it seems some beta are running but for official update i do not know 2012-06-19T00:25:51 < TitanMKD> Steffanx I hope it will be 0 wait state Dual Flash Bank like the STM32F4 2012-06-19T00:26:01 < TitanMKD> except STM32F4 has only 1 bank ;) 2012-06-19T00:26:56 < TitanMKD> haha no test 200nop and the same 5millions cycles per sec ;) 2012-06-19T00:27:14 < Rickta59> http://hackaday.com/2012/06/17/template-for-building-stm32f0-discovery-project-in-gcc/#comments ... 2012-06-19T00:27:48 < Rickta59> does anyone have suggestions on how to deal with the comment about not distributing the stm32_flash.ld file? 2012-06-19T00:28:27 < Rickta59> aren't just about all gcc based ld scripts going to look remarkably similar give the startup file that is supplied? 2012-06-19T00:29:19 <+Steffanx> dekar and his legal issues all the time 2012-06-19T00:29:36 < Rickta59> Elias Önal  is dekar? 2012-06-19T00:30:02 <+Steffanx> Yes 2012-06-19T00:30:38 < Rickta59> I mean obviously you can copy the file from the st download as they are the ones providing it .. 2012-06-19T00:30:59 < Rickta59> or i could go make my own but it going to have to look very similar 2012-06-19T00:31:16 <+izua> 17 june 2012-06-19T00:31:20 <+izua> elias oenal 2012-06-19T00:31:28 <+izua> oh look, dekar is being the friendly neighbourhood troll 2012-06-19T00:31:50 <+izua> if you make your own, there shouldn't be a problem 2012-06-19T00:32:04 < Rickta59> my point is if i make my own it is going to look like that 2012-06-19T00:32:22 < Rickta59> it is like saying main can't look like another main 2012-06-19T00:32:22 <+Steffanx> No one can proof you didn't make it yourself :P 2012-06-19T00:32:36 <+izua> it isn't atollic that owns the memory layout 2012-06-19T00:32:56 < Rickta59> but they put restrictive warnings on there 2012-06-19T00:33:01 <+izua> plus, there is no way to prove that for a given problem, two equally good programmers will never reach the same conclusion 2012-06-19T00:33:14 <+izua> and this isn't even a problem 2012-06-19T00:33:17 <+Steffanx> And there are enough alternatives ... 2012-06-19T00:33:41 < Rickta59> right i found sites that have alternate linker scripts .. surprise .. they look very similar 2012-06-19T00:34:05 < Rickta59> http://www.triplespark.net/elec/pdev/arm/stm32.html .. i could use that one and change the addresses and length to fit 2012-06-19T00:34:18 <+Steffanx> yeah 2012-06-19T00:34:35 < Rickta59> so what are they protecting by putting that warning on there? 2012-06-19T00:35:01 <+izua> EVERYTHING 2012-06-19T00:35:31 < Rickta59> the rest of the CMSIS stuff is all there to grab 2012-06-19T00:36:44 <+izua> yeah, but that doesn't belong to atollic 2012-06-19T00:37:40 < Rickta59> http://lmgtfy.com/?q=Abstract+%3A+Linker+script+for+STM32 2012-06-19T00:38:11 < Rickta59> and it is part of the samples that STM provides 2012-06-19T00:40:56 <+izua> oh. 2012-06-19T00:41:14 <+izua> then i don't know. they're just being dicks? 2012-06-19T00:41:25 <+izua> atollic was pretty neat afaik 2012-06-19T00:41:40 <+izua> it had a nag message which forced me to move the mouse and click "ok" 2012-06-19T00:41:41 <+dekar> yeah that was me :) 2012-06-19T00:41:47 <+izua> each time i programmed the board 2012-06-19T00:41:52 < Rickta59> is it anymore than a company providing support for the open source tools? 2012-06-19T00:42:16 < Rickta59> is atollic eclipse based? 2012-06-19T00:42:21 <+izua> it also provides an ide 2012-06-19T00:42:32 <+dekar> Rickta59, I am using a modified linker script under a more permissive license, want a copy? 2012-06-19T00:42:35 <+izua> nah 2012-06-19T00:42:48 < Rickta59> sure 2012-06-19T00:42:53 < Rickta59> pastebin it 2012-06-19T00:43:20 <+dekar> Rickta59, https://dl.dropbox.com/u/28467113/stm32_linkerscript/TNT.zip 2012-06-19T00:43:28 <+dekar> that's what I use for TNT 2012-06-19T00:43:56 < Rickta59> heh .. ok .. to my point 2012-06-19T00:44:08 < Rickta59> it looks remarkably similar to the atollic one 2012-06-19T00:44:58 < Rickta59> but thanks 2012-06-19T00:45:19 <+dekar> Rickta59, so are you mike? 2012-06-19T00:45:28 < Rickta59> no that is szczys 2012-06-19T00:45:43 <+dekar> ah, so someone pass it to him if he needs one 2012-06-19T00:46:10 <+dekar> you might wanna adjust things like stack size (I changed it to 8k iirc) 2012-06-19T00:46:16 < BrainDamage> nothing better than a catastrophic failure on your dcdc controller leaking into the logic side and frying your 3$ micro 2012-06-19T00:46:21 <+dekar> and probably flash and ram regions 2012-06-19T00:46:22 < Rickta59> the point is if you strip modify it to work with the m0 board .. it is just going to end up looking like the atollic stuff 2012-06-19T00:46:36 < Rickta59> s/strip// 2012-06-19T00:47:08 <+dekar> the point is as long as you've never looked at their script it is legal :) 2012-06-19T00:47:19 <+dekar> couldn't be stolen in that case 2012-06-19T00:48:37 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 248 seconds] 2012-06-19T00:48:55 < Rickta59> where did this come from dekar? 2012-06-19T00:49:30 <+dekar> Rickta59, RAISONANCE 2012-06-19T00:49:36 < Rickta59> what is that? 2012-06-19T00:49:41 <+dekar> an IDE 2012-06-19T00:49:49 <+dekar> GCC toolchain based 2012-06-19T00:49:52 <+dekar> same as atollic 2012-06-19T00:50:00 < Rickta59> do you need to own it to use it? 2012-06-19T00:50:12 <+dekar> man RTFM 2012-06-19T00:50:24 <+dekar> you guys should read the licenses before you use something 2012-06-19T00:50:25 <+dekar> always 2012-06-19T00:50:38 < Rickta59> i'm looking at the files you gave me .. 2012-06-19T00:50:40 <+dekar> "You can use, copy and distribute this file freely, but without any waranty." 2012-06-19T00:50:48 < Rickta59> and you could have changed the text .. how do i know? 2012-06-19T00:50:53 <+dekar> that's what they say 2012-06-19T00:50:56 < Rickta59> i want to find the original source 2012-06-19T00:50:57 <+dekar> Rickta59, ask them 2012-06-19T00:50:59 <+dekar> hf 2012-06-19T00:51:07 <+dekar> grabbed it like a year ago 2012-06-19T00:51:14 <+dekar> don't remember where 2012-06-19T00:51:25 < Rickta59> http://www.mcu-raisonance.com/ ? 2012-06-19T00:51:51 <+dekar> I guess 2012-06-19T00:53:56 <+dekar> Rickta59, http://earl-revisited.googlecode.com/svn-history/r5/trunk/STM32F10x_COMMON.ld 2012-06-19T00:54:01 <+dekar> it's all over the net 2012-06-19T00:54:04 <+dekar> just google it 2012-06-19T00:54:14 <+dekar> and mail them in case you think it's forged 2012-06-19T00:54:39 <+dekar> Rickta59, I think I got it from one of their primer projects 2012-06-19T00:54:50 <+dekar> some small and portable devboard they sell 2012-06-19T00:54:52 < TitanMKD> dekar ok foudn the cache size ;) 2012-06-19T00:55:07 < TitanMKD> 190093634 instructions/sec => test_nb_instruction_per_sec_110nop() 2012-06-19T00:55:22 < TitanMKD> 2702720 instructions per sec => test_nb_instruction_per_sec_120nop() 2012-06-19T00:55:57 < TitanMKD> between 110 to 120 nop ;) it change dramatically and cache is reloaded at each loop it is why it drops to 2.7MIPS 2012-06-19T00:56:49 <+dekar> wow quite extreme 2012-06-19T00:57:20 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-06-19T00:57:22 < TitanMKD> theory is 5.625MIPS with SPIFI@22.5MHz 2012-06-19T00:57:38 < TitanMKD> because each NOP in THUMB nop use 2 bytes ;) 2012-06-19T00:59:02 < TitanMKD> (0x00 0xBF or 0xBF 0x00 if you prefer) 2012-06-19T01:06:19 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 276 seconds] 2012-06-19T01:07:32 -!- Laurenceb_ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-06-19T01:08:15 -!- Laurenceb_ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has joined ##stm32 2012-06-19T01:39:18 < dongs> lol dongs 2012-06-19T01:45:35 < dongs> hhm the company i went to on monday are planning on using analog's adxl345 and gyros in massproduced shit and they're getting adxl345's at like 70c/ea 2012-06-19T01:46:33 < dongs> gonna find out if they get any decent deal on gyros 2012-06-19T01:49:40 < BrainDamage> dongs: http://www.b3tards.com/u/0d2ba503c5487a5f8adb/kidscorner-maze1-big.jpg 2012-06-19T01:50:15 < dongs> lolwut. 2012-06-19T01:50:39 < Laurenceb_> hehe 2012-06-19T01:50:52 < Laurenceb_> i think you trace out the solution 2012-06-19T01:50:57 < Laurenceb_> and it spells something 2012-06-19T01:51:20 < dongs> like, "giant dongs"? 2012-06-19T01:51:43 < BrainDamage> look from far 2012-06-19T01:51:57 < Laurenceb_> awww 2012-06-19T01:52:04 < Laurenceb_> we could have trolled him more 2012-06-19T01:52:05 < dongs> haha 2012-06-19T01:52:12 -!- Netsplit *.net <-> *.split quits: ABLomas 2012-06-19T01:52:24 -!- Netsplit over, joins: ABLomas 2012-06-19T01:53:07 * Laurenceb_ zzz 2012-06-19T01:57:56 -!- Laurenceb_ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-06-19T01:58:17 < dongs> how fucking hard is it to just properly /QUIT IRC 2012-06-19T01:58:21 < dongs> if youre turning shit off. 2012-06-19T01:58:21 < dongs> ugh 2012-06-19T01:59:33 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-19T02:10:52 < dongs> heh and the place was showing me some topsecret docs from Panasonic 2012-06-19T02:10:55 < dongs> about 6axis gyro/acc sensor 2012-06-19T02:11:02 < dongs> so I look at the specs 2012-06-19T02:11:05 < dongs> and its invensense lol 2012-06-19T02:11:23 < dongs> looks like panasuck is buying from them and rebadging 2012-06-19T02:37:08 < BrainDamage> looool http://www.goodluckbuy.com/arduino-voltage-divider-voltage-sensor-module-robotbase-.html 2012-06-19T02:38:06 < dongs> wowwwwwwwwwwww 2012-06-19T02:38:09 < dongs> amazing 2012-06-19T02:38:27 < BrainDamage> the description is priceless too 2012-06-19T02:39:08 < dongs> can I get same shit for STM32 2012-06-19T02:39:12 < dongs> i think i totally need this 2012-06-19T02:39:27 < BrainDamage> sorry, it's arduino only 2012-06-19T02:59:05 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-06-19T03:01:43 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Ping timeout: 244 seconds] 2012-06-19T03:02:41 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32 2012-06-19T03:33:06 < dongs> fucking linkedin spam, i made a fake account to track down some trolls and apparently you cant really do shit on that gay site wihtout paying, and now they keep spamming me wiht shit 2012-06-19T03:33:28 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has left ##stm32 [] 2012-06-19T03:42:59 -!- cjbaird [~cjb@ppp121-44-81-126.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-19T04:02:41 < Rickta59> when you use INCLUDE in a linker script does it use the -I paths passed to the gcc line? 2012-06-19T04:03:16 < dongs> isnt -I for preprocessor 2012-06-19T04:03:33 < Rickta59> probably .. that is why I'm asking 2012-06-19T04:05:31 < Rickta59> nm .. "Include the linker script filename at this point. The file will be searched for in the current directory, and in any directory specified with the -L option. You can nest calls to INCLUDE up to 10 levels deep." 2012-06-19T04:05:53 < dongs> -L makes sense 2012-06-19T04:05:57 < dongs> since thats trash passed to linker 2012-06-19T04:07:24 < zyp> correct 2012-06-19T04:07:44 < zyp> INCLUDE in a linker script searches in the -L paths 2012-06-19T04:31:34 < zyp> dongs, so, how did trolling in tokyo go 2012-06-19T04:37:16 < dongs> very fucking well 2012-06-19T04:40:01 < zyp> good to hear 2012-06-19T05:01:08 -!- dekar [~dekar@dslb-188-107-082-087.pools.arcor-ip.net] has left ##stm32 ["Leaving"] 2012-06-19T05:07:05 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-19T05:07:12 -!- [7] [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-19T05:35:59 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has quit [Ping timeout: 272 seconds] 2012-06-19T05:59:25 < dongs> http://i.imgur.com/LYJ7w.jpg 2012-06-19T06:09:36 < Thorn> wtf is this 2012-06-19T06:11:15 < dongs> isnt it obvious 2012-06-19T06:38:27 < iR0b0t1> 10 pins? 2012-06-19T06:46:08 < dongs> like hwat 2012-06-19T06:58:15 < dongs> abusing 2 2x10 headers cuz im all out of 2x20 :( 2012-06-19T06:58:37 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-19T06:58:40 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-19T07:32:51 -!- emeb [~ericb@12.68.180.146] has joined ##stm32 2012-06-19T07:34:24 < zippe> cjbaird: "why was there never a free-pc-unix scene like Linux had back in the 1980s" … hmm. 2012-06-19T07:34:54 < zippe> cjbaird: Perhaps you might re-read http://en.wikipedia.org/wiki/Linux - at least the first paragraph. 2012-06-19T07:46:40 < cjbaird> The context from the entire line was about a free/cheap BSD pc-unix scene. I was there. Yes, there was Minix($150), Coherent($299), Xenix($1000), i86($3000), et.al. BSD had little free input into those-- and then, it was having to then pay an extra $800+ for the Xenix BSD layer. The 'bsd people' were too busy trying to become the next Bill Joy with "wanna buy a free compiler, mate?" 2012-06-19T07:48:13 < cjbaird> Also, I'm talking about the 1980s, when BSD ports to the 80286 were 'common', but never shared. 2012-06-19T07:48:26 < zippe> mm, yes, I was there too, and my point remains - there was no "free-pc-unix scene like linux had in the 80s" because there was no linux in the 80s. 2012-06-19T07:48:42 < cjbaird> The supposedly 'open source' that Ken Pick et.al. want to claim was anything but. 2012-06-19T07:49:03 < cjbaird> unix != linux, fuckknob. 2012-06-19T07:49:49 < cjbaird> The freest 'unix-alike' available at the time was probably Xinu. 2012-06-19T07:50:33 < blkcat> why are we discussing the 1980s 2012-06-19T07:50:36 < blkcat> what does this have to do with anything 2012-06-19T07:50:36 < zippe> Yeah, that's a great way to carry your argument. I'm waiting for you to explain how there was, as you have said, "a free-pc-unix scene like Linux had back in the 1980s" when there was no Linux in the 1980s. 2012-06-19T07:52:27 < dongs> blkcat: the fact that its 2012 and lunix is still shit. 2012-06-19T07:52:36 < zippe> blkcat: I'm waiting for an I2C test to fail, and taunting an incoherent greybeard like cj here is better than picking my toenails 2012-06-19T07:52:38 < blkcat> yeah, it kind of is. :\ 2012-06-19T07:52:38 < dongs> probably why they're discussing it while waiting for kernel 3.x.3.2.312.4. to finish compiling 2012-06-19T07:52:39 < cjbaird> for the comprehensionally-challenged: "a free-pc-unix scene like Linux had (in the 1990s) back in the 1980s" 2012-06-19T07:52:43 < dongs> just to find out it sucks as much as the one before. 2012-06-19T07:52:47 < blkcat> i'd much rather use free/openbsd myself. 2012-06-19T07:52:59 < dongs> i'd much rather just use windows, since it works 2012-06-19T07:53:29 < zippe> It's people like him that made dealing with APANA substantially less fun than product testing for Mr S. Leathers and Fetters. 2012-06-19T07:53:53 < blkcat> windows is also a fine choice. ditto os x. 2012-06-19T07:53:56 < blkcat> the right tool for the right job. 2012-06-19T07:54:12 < zippe> Various linux distributions are also right tools for some jobs 2012-06-19T07:54:18 < cjbaird> The BSD tools back in the 1980s /sucked/. If they were installed, it was so people could get the Pascal tools. GNU came along in the late 1980s and made things that worked. 2012-06-19T07:54:37 < dongs> ha ha. 2012-06-19T07:54:40 < zippe> cjbaird: For some value of "worked" that made any number of compiler vendors a lot of money. 2012-06-19T07:55:02 < zippe> … speaking of someone that was making a living building software for the 68k in those days. 2012-06-19T07:55:08 < zippe> s/of/as/ 2012-06-19T07:56:15 < zippe> There was a lot of interesting and sometimes even useful software floating around from any number of sources. 2012-06-19T07:57:14 < cjbaird> Yes, a Usenet feed was a _must_have_ back then. :) 2012-06-19T07:57:15 < zippe> When you say "GNU", I am at something of a loss as to what you might mean, though. 2012-06-19T07:57:26 < dongs> GNU/RMS 2012-06-19T07:57:41 < zippe> Since "GNU" was largely something that RMS grunted in moments of passion (according to someone that ought to know). 2012-06-19T07:58:12 < dongs> does hurd boot on non-386 hardware yet 2012-06-19T07:58:20 < zippe> If you mean "GNU-licensed software", that's one thing. If you mean "code that RMS wrote", that's quite another. 2012-06-19T07:59:36 < cjbaird> The subject was GNU vs. BSD userland at one point... 2012-06-19T07:59:37 < zippe> I doubt that you'd refer to Catholic or Methodist software, but that's about the same as your use of the GNU label... 2012-06-19T07:59:46 < zippe> What GNU userland? 2012-06-19T08:00:01 < zippe> There were some replacements for the SysV tools that were GNU-licensed. 2012-06-19T08:00:11 < zippe> There were some that were BSD or MIT-licensed. 2012-06-19T08:00:18 < zippe> Others in the public domain, etc. 2012-06-19T08:00:58 < zippe> It took crazies like Volkerding to try to build a complete system out of tools sharing a mostly common license. 2012-06-19T08:02:09 < zippe> By contrast, around that time you could 'make world' in a Lite/2 source distribution and have a complete system image after a day or so. 2012-06-19T08:03:30 < zippe> I'm still at a loss as to why after twenty-something years, someone of your alleged maturity feels the need to get all pubescent about someone that works on a particular toolset. But it's sure fun to watch. 8) 2012-06-19T08:04:02 < zippe> And excellent. Either Honeywell or ST have dropped the bucket, and the bits are dripping off the bus. 2012-06-19T08:04:40 < zippe> dongs: I have a reworked makefile for you - should I file an issue on your g!code project? 2012-06-19T08:04:48 < dongs> yes please 2012-06-19T08:10:08 < cjbaird> My RaspberryPi was supposed to arrive today.. Dongs most've stoled it. 2012-06-19T08:37:27 < zippe> dongs: done. 2012-06-19T08:41:17 < dongs> wow 2012-06-19T08:41:19 < dongs> that is hardcore 2012-06-19T08:45:09 -!- emeb [~ericb@12.68.180.146] has quit [Ping timeout: 245 seconds] 2012-06-19T08:45:17 < dongs> lemme ese if it builds on windows wiht htat setup 2012-06-19T08:45:30 < dongs> o crap i cleaned my desktop and dont have codesourcey shit anymore 2012-06-19T08:45:32 < dongs> ill just commit it 2012-06-19T08:47:10 < dongs> ok, looks good 2012-06-19T09:45:33 -!- iR0b0t1 [~dev@unaffiliated/r0b0t1] has quit [Read error: Connection reset by peer] 2012-06-19T09:58:26 -!- LawrenceSeattle [~lawrence@216.243.49.130] has joined ##stm32 2012-06-19T09:59:30 < dongs> http://i.imgur.com/ygOjY.jpg 2012-06-19T10:02:27 < zippe> dongs: I wimped out on making it build everything in one go 2012-06-19T10:02:45 < dongs> thats fine 2012-06-19T10:02:53 < dongs> most dudes will be building one or another nayway. 2012-06-19T10:02:53 < zippe> Figured that someone that doesn't do make for a living might want to maintain it someday 2012-06-19T10:03:35 < zippe> At some point I should have patches for the FY20, but I need to make progress on a few other things first 2012-06-19T10:03:50 < dongs> did you ever confirm the pinout was different? 2012-06-19T10:03:57 < zippe> Yeah, it definitely is 2012-06-19T10:03:57 < dongs> or you re just looking at wrong datasheet 2012-06-19T10:03:59 < dongs> hm 2012-06-19T10:04:01 < dongs> mkay 2012-06-19T10:04:55 < zippe> http://pastebin.com/pQaBwAqJ 2012-06-19T10:06:34 < zippe> What's incomprehensible to me is that the main board has PA2 on it, but they don't use it... 2012-06-19T10:06:55 < zippe> i.e. it's routed out to where they could have pulled it onto the I/O board. Oh well. 2012-06-19T10:06:57 < dongs> you mean to use as timer input? 2012-06-19T10:07:13 < zippe> Yeah, instead of whatever wackery they have to use for PA4 2012-06-19T10:07:19 < dongs> EXTI :( 2012-06-19T10:07:24 < dongs> but at least you got enough free timers 2012-06-19T10:07:29 < dongs> just wont be as accurate 2012-06-19T10:07:32 < zippe> If I ever use it, it'd be an ADC 2012-06-19T10:07:33 < dongs> you can just waste TIM5 or osmeshit on it 2012-06-19T10:07:46 < dongs> youll just use PPM input? 2012-06-19T10:07:49 < zippe> yeah 2012-06-19T10:07:54 < dongs> thats what I figured :09 2012-06-19T10:07:58 < dongs> thats why I never bothered fixing it. 2012-06-19T10:08:05 < zippe> I can't see the point of PWM input anymore 2012-06-19T10:08:12 < dongs> who teh fuck would want only 4 channels anyway 2012-06-19T10:08:56 < zippe> When you can buy a D4FR or a D4R-II for twenty-something bucks ... 2012-06-19T10:09:49 < dongs> yeah.. 2012-06-19T10:09:57 < zippe> Of course, they released the D4R-II just after I bought a bunch of D6FRs 2012-06-19T10:10:02 < dongs> heh 2012-06-19T10:10:03 < zippe> Oh well. 2012-06-19T10:10:13 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Ping timeout: 272 seconds] 2012-06-19T10:10:15 < dongs> ive only got one D4RII, havent been too impressed with it so far 2012-06-19T10:10:23 < zippe> Oh? Do tell 2012-06-19T10:10:29 < dongs> the range was much worse compared to D8R, but it might have been interference from elsewhere 2012-06-19T10:10:38 < zippe> huh. interesting 2012-06-19T10:10:40 < dongs> i got rssi alarm like 150meters out 2012-06-19T10:10:52 < dongs> same model/everything just swapped out D8R for D4Rii 2012-06-19T10:10:53 < zippe> That sounds like total crap 2012-06-19T10:10:58 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has joined ##stm32 2012-06-19T10:11:12 < dongs> i wanted to get it for telemetry hookup 2012-06-19T10:11:17 < dongs> cuz i got that sensorhub shite with baro on it 2012-06-19T10:11:18 < zippe> right, as you would 2012-06-19T10:11:24 < R0b0t1> zlog: FREE Z80S? 2012-06-19T10:11:55 < R0b0t1> Also about the code protection bug mentioned in the topic: 2012-06-19T10:12:10 < R0b0t1> "1. Intruder loads code (via System Boot Loader) into the beginning of RAM and after Reset the ST32 boots from this RAM. He is getting control over the processor and his procedure is easily copying my precious code from flash to ram and next via USART, SPI…." 2012-06-19T10:12:20 < R0b0t1> Counterpoint 1) No one cares about your "precious code". 2012-06-19T10:12:33 < dongs> R0b0t1: loooooooooooooooooooooooooooooooooooooooooooooooooooooooooool. 2012-06-19T10:12:41 < dongs> R0b0t1: obviosuly you've never worked anywhere or developed any sort of commercial product. 2012-06-19T10:13:09 < zippe> R0b0t1: You have successfully described about 90% of the hackerverse. Your point? 2012-06-19T10:13:11 < R0b0t1> The only people who care about their "precious code" is _maybe_ the programmer, but usually some person in management. 2012-06-19T10:13:22 < R0b0t1> If you are looking for something secure, you secure the CPU physically. 2012-06-19T10:13:37 < dongs> i need to do the ram attack shit and grab STLink's bootloader. 2012-06-19T10:13:38 < zippe> R0b0t1: and yourself, it seems 2012-06-19T10:13:39 < dongs> im so fucking lazy. 2012-06-19T10:14:00 < dongs> i used real stlinkv2 yesterday 2012-06-19T10:14:01 < R0b0t1> zippe: I care in a different way! 2012-06-19T10:14:03 < dongs> the one in oval case 2012-06-19T10:14:09 < dongs> it was uploading at 32k/sec on WINDOWS 2012-06-19T10:14:13 < dongs> using official ST drivers 2012-06-19T10:14:14 < dongs> utter total fail 2012-06-19T10:14:15 < zippe> dongs: mine is still on backorder. 8( 2012-06-19T10:14:39 < dongs> for the same price you can get clone jlink/ulink and it will be 230894239048x faster 2012-06-19T10:15:07 < R0b0t1> The main issue is that ultimately the code protection does crap, even for those hardened µCs and SoCs they have for ATMs and point-of-sales terminals. The largest portion of security comes from limiting access to the chips, and physically securing them inside the product. 2012-06-19T10:15:15 < R0b0t1> If someone _wanted_ to get in there, they could. 2012-06-19T10:15:22 < R0b0t1> But no one does. Because no one cares. 2012-06-19T10:15:51 < zippe> Er, they do, and they do. 2012-06-19T10:15:57 < dongs> ^ 2012-06-19T10:16:23 < zippe> Some portion of those that care can't afford to do vs. certain levels of protection 2012-06-19T10:16:41 < zippe> e.g the Flylogic guys are still 5 figures for a readout, and they're so overbooked it takes months 2012-06-19T10:17:08 < dongs> we pushed some shit through them. about 80k worth. 2012-06-19T10:17:15 < dongs> fucker still owes some data though 2012-06-19T10:17:16 < dongs> been almost 2 years. 2012-06-19T10:17:34 < zippe> Yup 2012-06-19T10:17:47 < zippe> And I think he's still not set up for 45nm 2012-06-19T10:17:55 < zippe> Chipworks might be able to work there. 2012-06-19T10:18:23 < zippe> In fact, is he even doing 65? 2012-06-19T10:18:40 < zippe> You might actually be able to buy a current-generation micro that can't be university-lab FIB'ed. 2012-06-19T10:18:58 < dongs> haha. 2012-06-19T10:19:08 < zippe> Of course, if you are having your CM program the device, you're an idiot 2012-06-19T10:19:33 < zippe> Because 9mm Para is cheap, and your CM's employees have family 2012-06-19T10:20:30 < zippe> (and they're stupid, too. Look at the idiots leaking Apple parts to the press… way to fuck your company over) 2012-06-19T10:21:23 < dongs> heh 2012-06-19T10:21:28 < dongs> who caresa bout apple parts anyway. 2012-06-19T10:21:33 < dongs> its all same glossy-white trash 2012-06-19T10:21:37 < zippe> The press, apparently. 2012-06-19T10:21:42 < dongs> right, but shrug 2012-06-19T10:22:01 < zippe> But! THIS COULD BE THE HOME BUTTON FROM THE NEXT iPHONE! GIVE ME PAGEHITZ! 2012-06-19T10:22:30 < zippe> This flex was routed by STEVE JOBS HIMSELF ON HIS DEATHBED! 2012-06-19T10:30:18 < dongs> ok now imback to nand shit 2012-06-19T10:30:26 < dongs> its definitely not working and I cannot find ANY info about nand timings on F2/F4 2012-06-19T10:30:30 < dongs> what hte fuck ST 2012-06-19T10:30:40 < dongs> I can read chip ID but anything beyond that returns noise. 2012-06-19T10:30:42 < dongs> RAGE. 2012-06-19T10:32:38 < zippe> Ugh. Why not eMMC or eSD? 2012-06-19T10:32:48 < zippe> You really want to implement your own FTL? 2012-06-19T10:33:34 < dongs> why do i have to? its just for reading out anyway, in sequential blocks 2012-06-19T10:35:10 < zippe> Oh, fine. You're not doing anything interesting with it? 2012-06-19T10:35:15 < dongs> nah :( 2012-06-19T10:35:23 < dongs> just stealing IP. 2012-06-19T10:35:39 < zippe> Table 193 and figure 408 2012-06-19T10:36:23 < dongs> Yeha I Know. 2012-06-19T10:37:06 < zippe> Also, good luck. I handed off all my NAND stuff years ago now. 2012-06-19T10:59:36 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has quit [Changing host] 2012-06-19T10:59:36 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has joined ##stm32 2012-06-19T11:34:35 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [] 2012-06-19T11:41:13 -!- pelrun_ [~pelrun@14-202-70-213.static.tpgi.com.au] has joined ##stm32 2012-06-19T11:50:06 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-06-19T11:51:44 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32 2012-06-19T11:52:16 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has left ##stm32 [] 2012-06-19T12:04:25 -!- corecode [~2@0x2c.org] has left ##stm32 [":wq"] 2012-06-19T12:07:14 < dongs> hmm... 2012-06-19T12:07:26 < dongs> re-reading panasonic 6axis warez.. "our unique thin-film MEMS technology" 2012-06-19T12:07:35 < dongs> may be htey're not getting it from invensense after all.. hmm 2012-06-19T12:07:49 < dongs> but man the rest of the spec looks awfully seimilar 2012-06-19T12:09:26 -!- peabody124 [~peabody12@stgt-5f719a4b.pool.mediaWays.net] has joined ##stm32 2012-06-19T12:09:36 < dongs> 250..2000dps, 2g..16g, i2c/spi, 3.8mA power consumption.. (same as mpu6000 w/DMP disabled)... etc 2012-06-19T12:10:53 < dongs> also has external I2C bus for mag or wahtever 2012-06-19T12:12:00 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-19T12:13:50 < karlp> zippe: nice makefile! 2012-06-19T12:14:03 < karlp> I like that $(addprefix -I,$(INCLUDE_DIRS)) 2012-06-19T12:15:11 < dongs> hopefully thats not a feature introduced by RMS Make 2013 2012-06-19T12:23:02 < dongs> st's "forum" is fucking dumbbbbbbbbbbb 2012-06-19T12:24:03 < karlp> zippe: what's a "CM" ("if you are having your CM program the device...") 2012-06-19T12:24:41 < dongs> contract manufacturer 2012-06-19T12:25:06 < karlp> ahh, 2012-06-19T12:25:29 < karlp> oh, and for you, just how fast can you program with the best jlink/ulink? 2012-06-19T12:25:37 < karlp> at some point it's limited by the actual flash 2012-06-19T12:25:42 < karlp> but what speed is that? 2012-06-19T12:26:09 < dongs> jlink programs my flyingthing using their jflash app in ~1.5 seconds including fullerase/program on F1 2012-06-19T12:26:25 < karlp> howbig is that app? 2012-06-19T12:26:59 < dongs> before i started link time optimizing shit it was around 43k or so I think. 2012-06-19T12:27:15 < dongs> i dont feel like making a test .hex for like full chip. 2012-06-19T12:27:28 < karlp> cool, that's fine 2012-06-19T12:27:33 < karlp> just wanted ballpark 2012-06-19T12:27:36 < dongs> but i was at another office today 2012-06-19T12:27:40 < dongs> er yesterday 2012-06-19T12:27:42 < dongs> where they had real stlink 2012-06-19T12:27:45 < dongs> and man it was pitiful 2012-06-19T12:27:58 < karlp> 32k/sec seems alright isn' tit?Ð 2012-06-19T12:28:02 < dongs> i cant imagine hwo you guys deal with "2-3k/sec" from stlink on lunix 2012-06-19T12:28:03 < karlp> that's what you said earlier? 2012-06-19T12:28:15 < dongs> Ya but I was debugging a board with F4 and it was like 350k of flash 2012-06-19T12:28:23 < dongs> and full erase took ages 2012-06-19T12:28:34 < dongs> like ~10 seconds t o fullerase, then another 10 for flash 2012-06-19T12:28:36 < karlp> yeah, zyp fixed sf4 support to get about 10k now, which is substantially better, but still much slower :) 2012-06-19T12:28:58 < karlp> does doing a full erase make the write any faster? 2012-06-19T12:29:08 < dongs> on F1 it does, on F4 it doesnt seem to be 2012-06-19T12:29:14 < dongs> in jflash F4 erase is almost instant 2012-06-19T12:29:15 -!- pelrun_ [~pelrun@14-202-70-213.static.tpgi.com.au] has quit [Ping timeout: 250 seconds] 2012-06-19T12:29:17 < dongs> so im not sure what hte fuck is up 2012-06-19T12:29:19 < dongs> over stlink its horrible 2012-06-19T12:29:22 < karlp> maybe it ignores you :) 2012-06-19T12:29:27 < karlp> because it knows you don't need to 2012-06-19T12:29:44 < dongs> i wanna write that ram exploit 2012-06-19T12:29:51 < dongs> to thieve shit over uart/something. 2012-06-19T12:30:05 < dongs> i guess i'd need to set bootX pins before resetting. 2012-06-19T12:33:09 -!- dekar [~dekar@dslb-088-069-158-123.pools.arcor-ip.net] has joined ##stm32 2012-06-19T12:33:12 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-19T12:35:49 <+dekar> izua, it seems like I have to fix newlib for LTO 2012-06-19T12:35:53 <+dekar> http://pastebin.com/BCJfW360 2012-06-19T12:35:58 <+dekar> http://pastebin.com/HS00xddU 2012-06-19T12:36:13 <+dekar> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47577 2012-06-19T12:36:41 <+dekar> it would be great if one of you knows a proper way to fix it 2012-06-19T12:39:07 < dongs> hey ehy. i think i got it working 2012-06-19T12:39:20 <+dekar> I guess moving the macro from the header to an object file that gets linked could help :/ 2012-06-19T12:48:28 -!- peabody124 [~peabody12@stgt-5f719a4b.pool.mediaWays.net] has quit [Quit: peabody124] 2012-06-19T12:51:00 <+dekar> dongs, do you know assembly macros? is there maybe a way to undefine them? 2012-06-19T12:51:12 < dongs> other than #undef? 2012-06-19T12:52:15 <+dekar> dongs, the arm header defines them like this: asm(".macro RETURN cond=\n\t" 2012-06-19T12:52:28 <+dekar> inline assembly 2012-06-19T12:53:44 <+dekar> and LTO refuses to compile it now since the macro has been redefined (even though it's identical all the time) 2012-06-19T13:02:07 < dongs> FUcking garbage. 2012-06-19T13:02:23 < dongs> the onyl F2 nand example in stdperiphlib sets up sometihng called 'OneNAND'.... 2012-06-19T13:02:27 < dongs> which on a closer look is acutally NOR flash 2012-06-19T13:02:31 < dongs> real fucking c lever 2012-06-19T13:04:37 < dongs> stupid. onenand is fucking nand + controller + sram 2012-06-19T13:04:39 < dongs> to fake it as NOR 2012-06-19T13:04:42 < dongs> fuck. 2012-06-19T13:05:12 <+dekar> why would you do that? 2012-06-19T13:05:31 < dongs> nand flash has much higher densities 2012-06-19T13:05:41 <+dekar> sounds about as weird as using a cpld to emulate sram using dram 2012-06-19T13:05:51 < dongs> yeah, they did that too 2012-06-19T13:05:54 <+dekar> -.- 2012-06-19T13:06:02 < dongs> PSRAM or someshit... i forgot, someone was talkign about it here 2012-06-19T13:06:07 < dongs> its SDRAM + controller faked as sram 2012-06-19T13:06:14 < dongs> so you dont have to carea bout refresh etc. 2012-06-19T13:06:18 < dongs> at ~sdram prices. 2012-06-19T13:06:30 < karlp> zippe: on the http://code.google.com/p/ardupilot/ page, it has, "the project is a diy drones project.... homepage... can be found [here]" 2012-06-19T13:06:41 < dongs> > tardupilot :( 2012-06-19T13:06:41 < karlp> the here link goes to a page that simple links to yet another page. 2012-06-19T13:06:44 < karlp> if you want to update it. 2012-06-19T13:06:56 < dongs> karlp: ardupilot is diytrolls 2012-06-19T13:08:55 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has joined ##stm32 2012-06-19T13:09:31 < karlp> well, zippe is listed as a project owner 2012-06-19T13:09:44 < karlp> I don't have any rc anything, was just reading web pages :) 2012-06-19T13:09:50 < ABLomas> ... 2012-06-19T13:10:43 < dongs> llo 2012-06-19T13:13:27 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has quit [Ping timeout: 250 seconds] 2012-06-19T13:15:24 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has joined ##stm32 2012-06-19T13:15:30 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has quit [Read error: Connection reset by peer] 2012-06-19T13:16:53 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has joined ##stm32 2012-06-19T13:23:35 <+izua> dongs: the code security issue? 2012-06-19T13:23:47 <+izua> i think you only need a jtag programmer 2012-06-19T13:24:28 <+izua> dekar: *shrug* 2012-06-19T13:33:23 <+dekar> :/ 2012-06-19T13:37:46 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has left ##stm32 ["Leaving"] 2012-06-19T13:37:52 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has joined ##stm32 2012-06-19T13:39:35 <+dekar> izua, I think I mostly fixed it 2012-06-19T13:40:08 <+dekar> though that also means I have to make TNT patch newlib 2012-06-19T13:41:03 < dongs> izua: for what 2012-06-19T13:41:31 < dongs> i'd still need to set boot0/1 pins to make it boot from ram on next reset 2012-06-19T13:41:36 <+dekar> dongs, http://pastebin.com/BCJfW360 2012-06-19T13:41:45 <+dekar> that macro stuff 2012-06-19T13:41:56 < dongs> 'return' 2012-06-19T13:41:58 < dongs> nice macro 2012-06-19T13:42:10 <+dekar> well I guess newlib is pretty low level ;) 2012-06-19T13:42:32 <+dekar> here you can see what it does: http://pastebin.com/HS00xddU 2012-06-19T13:42:53 <+dekar> I need a quadcore, compiling newlib takes ages 2012-06-19T13:42:58 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-19T13:44:00 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-19T13:45:38 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 246 seconds] 2012-06-19T13:45:45 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 246 seconds] 2012-06-19T13:45:59 -!- phantoneD is now known as phantoxeD 2012-06-19T13:54:06 < dongs> if only gcc supported precompiled headers 2012-06-19T13:54:09 < dongs> (and properly used them) 2012-06-19T13:57:53 < dongs> man these fucking nand reading diagrams are FUCKiNG CONFUSING 2012-06-19T13:58:05 < dongs> where the fuck is "just read this shit" shit. 2012-06-19T14:00:35 < dongs> karlp: hweredo you see zippy as owner of diytrolls 2012-06-19T14:00:37 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Ping timeout: 248 seconds] 2012-06-19T14:03:45 < jpa-> dongs: why do you use raw NAND chip if you want it easy? 2012-06-19T14:03:54 < dongs> jpa, its not up to me. 2012-06-19T14:05:40 < dongs> before I waste more of my time on this... I can just.. read all the blocks sequentially.. and get what I expect right? 2012-06-19T14:05:46 < dongs> or do i hve ot follow some wearleveling shit etc 2012-06-19T14:06:28 < karlp> dongs: on http://code.google.com/p/afrodevices/issues/detail?id=7&can=1, if you click on "reported by DrZip...." 2012-06-19T14:07:00 < dongs> hax 2012-06-19T14:07:33 < karlp> mad ninternet stalking ski11z 2012-06-19T14:07:38 < dongs> totally 2012-06-19T14:18:28 < dongs> i dont fucking get it 2012-06-19T14:18:30 < dongs> TCLR is like 4 bits 2012-06-19T14:18:42 < dongs> but in stdperiph, the shit has range from 0..0XFF 2012-06-19T14:18:47 < dongs> how the fuck doe sthat work with 4 bits 2012-06-19T14:26:35 < dongs> if I can read device ID and shit, why cant I read pages? 2012-06-19T14:31:02 < Laurenceb> chibios fails so bad 2012-06-19T14:31:09 < dongs> i told u so 2012-06-19T14:31:13 < Laurenceb> uses dma for spi and usart 2012-06-19T14:31:19 < dongs> wasting it? 2012-06-19T14:31:24 < Laurenceb> slight issue being they share dma channels on F1 2012-06-19T14:31:32 < Laurenceb> guess how it deal with that? 2012-06-19T14:31:36 < Laurenceb> it fails 2012-06-19T14:31:44 < Laurenceb> if there is a conflict 2012-06-19T14:32:13 < Laurenceb> should revert to interrupt driven, but looks like they werent that smart 2012-06-19T14:32:47 < dongs> haha 2012-06-19T14:33:08 < Laurenceb> on F4 isnt not that much of an issue as the dma is more sane 2012-06-19T14:33:18 < Laurenceb> *is 2012-06-19T14:33:31 < dongs> right 2012-06-19T14:33:41 < dongs> dumb shit like i2c/uart dma is shared on F1 2012-06-19T14:33:46 < dongs> makes so much sense 2012-06-19T14:34:07 < Laurenceb> glue mafia are not relying to my emails :-/ 2012-06-19T14:34:14 < Laurenceb> glue mafia == 3M 2012-06-19T14:35:24 < Laurenceb> seems to have happened after i said stainless steel adhesive would be fine for the medical products we were developing :P 2012-06-19T14:36:20 < Laurenceb> instead of the expensive iso10993 blah blah stuff that was sprayed on furry animals 2012-06-19T14:36:54 < Laurenceb> maybe ill make my own glue.... 2012-06-19T14:37:58 < Laurenceb> fap fap fap 2012-06-19T14:38:08 < dongs> make your own glue and sniff it 2012-06-19T14:42:04 < dongs> fukc yeah 2012-06-19T14:42:07 < dongs> im finally getting some data 2012-06-19T14:42:16 < dongs> PNG... IHDR 2012-06-19T14:42:19 < dongs> HAdx 2012-06-19T14:42:20 < dongs> hax 2012-06-19T14:44:04 <+dekar> dongs, you should see my i2c implementation - it polls the status registers :) 2012-06-19T14:44:16 < Tectu> morning 2012-06-19T14:45:30 < BrainDamage> just software bitbang it and call it done 2012-06-19T14:45:52 < Tectu> that's how you do it 2012-06-19T14:46:00 < Tectu> bitbang is always best solution evaaar 2012-06-19T14:46:45 < Laurenceb> polling i2c 2012-06-19T14:46:47 < Laurenceb> fail 2012-06-19T14:46:56 < Laurenceb> chibios i2c is quite nice 2012-06-19T14:47:03 < Laurenceb> but it needs max priority 2012-06-19T14:47:07 < Tectu> Laurenceb, so it runs now on your machine? 2012-06-19T14:47:14 < Laurenceb> yes 2012-06-19T14:47:22 < Laurenceb> but using HSI 2012-06-19T14:47:48 < Laurenceb> still waiting for parts to mod my tcxo input 2012-06-19T14:48:05 < Tectu> tcxo? 2012-06-19T14:48:15 < BrainDamage> oven controlled oscillator 2012-06-19T14:48:42 < BrainDamage> you heat the xtal so it maintains a constant temp for better stability 2012-06-19T14:48:46 < Laurenceb> nonnon 2012-06-19T14:48:54 < Laurenceb> temperature compensated 2012-06-19T14:49:08 < Laurenceb> OCXO is what #highaltitude are obsessed by 2012-06-19T14:49:16 < Laurenceb> for some unknown reason 2012-06-19T14:51:00 < Laurenceb> bbl 2012-06-19T14:52:07 < Tectu> what's bbl man 2012-06-19T14:52:16 < BrainDamage> Be Back Later 2012-06-19T14:52:22 < Tectu> why not brb 2012-06-19T14:52:29 < Tectu> brb has much more style than bbl 2012-06-19T14:52:41 < BrainDamage> usually brb is for short times, bbl for longer 2012-06-19T14:52:48 < BrainDamage> where short and long being subjective 2012-06-19T14:53:08 < Tectu> awesome 2012-06-19T15:12:23 <+izua> wait, so how is a txco != oxco 2012-06-19T15:16:28 < dongs> This operation is operated by writing 00h and 30h to the command register along with five address cycles. 2012-06-19T15:16:58 < dongs> ... lets be any more specific eh 2012-06-19T15:31:04 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has quit [Ping timeout: 265 seconds] 2012-06-19T15:37:20 < karlp> bleh bleh bleh expected unsigned int, got u32 (unsigned long) 2012-06-19T15:37:58 < karlp> aren't an int and a long the same on cm3? 2012-06-19T15:43:16 < Tectu> karlp, no hello for me? 2012-06-19T15:51:08 < Laurenceb> this is boring 2012-06-19T15:51:22 * Laurenceb is cataloguing all his smd components 2012-06-19T15:51:33 < Tectu> why are you doing that 2012-06-19T15:52:09 < Laurenceb> so i know what to reorder for n*project_x 2012-06-19T15:52:39 < Laurenceb> its called being organised 2012-06-19T15:52:49 < Tectu> i am organised, i keep everything in my head 2012-06-19T15:53:00 < Laurenceb> lol 2012-06-19T15:53:09 < BrainDamage> you must have plenty of space there 2012-06-19T15:53:09 < Laurenceb> i have about 500 different parts here 2012-06-19T15:53:25 < Tectu> i know that i have 23 100nF capacitors in 0805 in the second drawer at the left, fourth row, second container 2012-06-19T15:53:37 < Tectu> Laurenceb, i only got about 350 2012-06-19T15:53:41 < Tectu> BrainDamage, thank you 2012-06-19T15:53:49 < BrainDamage> I mean inside your head 2012-06-19T15:53:55 < Tectu> BrainDamage, i know. 2012-06-19T15:54:03 < BrainDamage> you can even fit drawers 2012-06-19T15:54:23 < Tectu> I am a drawer myself 2012-06-19T15:54:35 < Laurenceb> my head is obviously too full of reap fantasies 2012-06-19T15:54:48 < Tectu> lol 2012-06-19T15:58:24 <+izua> you must have a lot of containers 2012-06-19T15:58:43 < Tectu> izua, i am a container myself 2012-06-19T16:02:53 <+izua> not a very good one for smd parts 2012-06-19T16:09:53 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-06-19T16:15:21 < Tectu> how comes, izua ? 2012-06-19T16:16:26 < dongs> sup bloggersd. 2012-06-19T16:17:30 -!- cjbaird [~cjb@ppp121-44-81-126.lns20.syd6.internode.on.net] has left ##stm32 ["Konversation terminated!"] 2012-06-19T16:17:59 < Tectu> dongs, back in china or still in tokyo? 2012-06-19T16:18:10 < dongs> back, and i was never in china.. 2012-06-19T16:19:16 <+izua> try eating a few hundred of various resistor values 2012-06-19T16:19:21 <+izua> and then try to get one back 2012-06-19T16:20:13 < Tectu> izua, no problem 2012-06-19T16:20:19 < Tectu> just the sorting could be a little bit messed up 2012-06-19T16:20:28 < Tectu> and maybe their resistance value change a bit ~ 2012-06-19T16:29:40 < dongs> Rev 0.0 2012-06-19T16:29:41 < dongs> haha. 2012-06-19T16:35:25 < Tectu> dongs, where 2012-06-19T16:35:39 < dongs> some hynix datasheet. 2012-06-19T16:35:45 < dongs> i cant fi nd any real ones on theihr site, so fucking lame 2012-06-19T16:35:54 < dongs> all google hits for this part are full of alldatashet.com type spam 2012-06-19T16:35:55 < dongs> rage 2012-06-19T16:36:29 <+izua> tried octopart? 2012-06-19T16:36:29 < karlp> I hate those sites. 2012-06-19T16:36:37 <+izua> search collecting websites are the best 2012-06-19T16:36:47 < karlp> because you know that eveni f you _did_ pay them, they wouldn't actually have the datasheet anyway 2012-06-19T16:36:57 < karlp> they're just up to say they have the sheet for whatever part you searched for 2012-06-19T16:37:27 < BrainDamage> I hate the false hits they inject in normal search engines 2012-06-19T16:37:35 <+izua> seo at its best 2012-06-19T16:38:31 < dongs> huh. label says hynix, but octopart says hyundai 2012-06-19T16:38:49 < dongs> datasheet is same worthless one thats linked off hynix.com directly 2012-06-19T16:39:11 <+izua> hynix belonged to hyundai 2012-06-19T16:50:33 * Laurenceb orders 10K caps off farnell 2012-06-19T16:55:26 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 246 seconds] 2012-06-19T17:56:15 < Laurenceb> how do i merge remote changes to a git repository? 2012-06-19T17:56:16 -!- emeb [~ericb@12.68.180.146] has joined ##stm32 2012-06-19T17:56:34 -!- emeb [~ericb@12.68.180.146] has quit [Client Quit] 2012-06-19T18:02:13 -!- dekar [~dekar@dslb-088-069-158-123.pools.arcor-ip.net] has quit [Ping timeout: 244 seconds] 2012-06-19T18:03:15 < BrainDamage> git remote add anameyoulike remoterepourl 2012-06-19T18:03:20 < BrainDamage> git fetch anameyoulike 2012-06-19T18:03:23 < szczys> I want to drive a cellphone screen using hardware SPI 2012-06-19T18:03:29 < BrainDamage> git merge anameyoulike/branchname 2012-06-19T18:03:55 < szczys> I'm confused becase there's a chip select pin for the display 2012-06-19T18:04:03 < szczys> should I be driving that just with GPIO and software 2012-06-19T18:04:15 < szczys> or is there a way to do it via hardware? 2012-06-19T18:04:24 < BrainDamage> you can pull to a rail if you don't have multiple SPI devices on the same bus 2012-06-19T18:04:40 < szczys> so a CS pin isn't doing any latching or anything? 2012-06-19T18:04:51 < szczys> it's just telling the device to listen on the bus? 2012-06-19T18:05:19 < BrainDamage> pretty much 2012-06-19T18:05:34 < BrainDamage> CS = chip select 2012-06-19T18:12:59 < Rickta59> hey szczys 2012-06-19T18:13:17 < Rickta59> did you see the comments I typed to you yesterday? 2012-06-19T18:13:41 < Rickta59> * not sure what you call it in IRC when you private chat someone 2012-06-19T18:14:42 < BrainDamage> PM = private message 2012-06-19T18:14:46 < Rickta59> k .. thanks 2012-06-19T18:16:40 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-19T18:16:52 < Laurenceb> ok 2012-06-19T18:16:56 * Laurenceb range 2012-06-19T18:17:08 < Laurenceb> make 2012-06-19T18:17:08 < Laurenceb> arm-none-eabi-gcc -g -O2 -mlittle-endian -mthumb -ffreestanding -nostdlib -nostdinc -Wl,-Ttext,0x08000000 -Wl,-e,0x08000000 -mcpu=cortex-m3 -DCONFIG_STM32VL_DISCOVERY=1 main.c -o blink_32VL.elf 2012-06-19T18:17:11 < Laurenceb> what the fuuuuu 2012-06-19T18:17:30 < Laurenceb> why does it think i have a discovery? 2012-06-19T18:17:41 < Laurenceb> im trying to build my F1 project 2012-06-19T18:17:53 < Laurenceb> makefile is unchanged 2012-06-19T18:18:10 < dongs> VL_DISCOVERY = F 1 2012-06-19T18:18:13 < dongs> not that it matters anyway 2012-06-19T18:18:27 < dongs> bedtime 2012-06-19T18:18:31 < Laurenceb> yeah but where the hell did it get that from 2012-06-19T18:18:36 < Laurenceb> its failing epically 2012-06-19T18:19:42 < Laurenceb> this makes zero sense 2012-06-19T18:20:55 < ratatata> nu 2012-06-19T18:21:06 < Laurenceb> -rw-r--r-- 1 laurence laurence 919 2011-11-09 13:18 makefile 2012-06-19T18:21:10 < Laurenceb> what the fuck 2012-06-19T18:21:24 < Laurenceb> its 16:21 and i just saved it 2012-06-19T18:22:46 < Laurenceb> lol linux is failing 2012-06-19T18:22:53 < Laurenceb> dongs was right 2012-06-19T18:27:41 < jpa-> try 'touch makefile' 2012-06-19T18:27:54 < jpa-> or 'touch dongs' for that matter 2012-06-19T18:28:28 < Laurenceb> eww 2012-06-19T18:28:34 < Laurenceb> thats what zyp is doing 2012-06-19T18:28:54 < Thorn> alias kick=touch 2012-06-19T18:36:14 < Laurenceb> arm-none-eabi-gcc: -fuse-linker-plugin, but liblto_plugin.so not found 2012-06-19T18:36:22 < Laurenceb> should codesourcery use that? 2012-06-19T18:40:21 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-19T18:40:24 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-19T18:41:08 <+Steffanx> nu 2012-06-19T18:45:15 < Thorn> latest project by dongs http://www.youtube.com/watch?v=sCDo5p7Uihg 2012-06-19T18:49:28 < karlp> Laurenceb: what are you failing with now? that looks like the output of running make in the stlink examples directory. 2012-06-19T18:49:41 < Laurenceb> i know 2012-06-19T18:49:41 < karlp> youdon't have two different makefiles with Makefile vs makefile or something do you? 2012-06-19T18:49:52 < Laurenceb> the RTC on my desktop had gone mad 2012-06-19T18:50:04 < Laurenceb> and gedit was getting confused about age of files 2012-06-19T18:50:10 < karlp> by default, that builds three times, once for each discovery board 2012-06-19T18:50:20 < karlp> yeah, changing clocks will royally screw up make 2012-06-19T18:50:31 < Laurenceb> fixed it now 2012-06-19T18:50:53 < karlp> when in doubt, make clean 2012-06-19T18:51:14 < jpa-> or make -B 2012-06-19T18:51:27 < jpa-> even make clean sucks if your clean rule sucks 2012-06-19T18:51:30 -!- dekar [~dekar@dslb-188-107-082-087.pools.arcor-ip.net] has joined ##stm32 2012-06-19T18:51:34 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-19T18:51:45 < karlp> yeah, that's truye. 2012-06-19T18:51:50 < karlp> huh, -B looks cool. 2012-06-19T18:52:03 < Laurenceb> interesting 2012-06-19T18:52:18 < karlp> having clean depend on anything is probably a really bad idea 2012-06-19T18:52:28 < karlp> unless you're a wizard with phoney and so on. 2012-06-19T19:06:05 < zyp> the need for having clean at all seems so stupid 2012-06-19T19:06:47 < karlp> work around for bad rules? 2012-06-19T19:07:02 < zyp> scons have a clean function that just determines the files to be cleaned from the dependency graph 2012-06-19T19:07:03 < karlp> we should all use scons right? ;) 2012-06-19T19:07:06 < karlp> hehe 2012-06-19T19:07:14 < zyp> :p 2012-06-19T19:07:30 < Rickta59> I just use eclipse and let it do the work 2012-06-19T19:08:09 < zyp> «I just rely on magic I can't fix when it breaks» 2012-06-19T19:11:33 < BrainDamage> the difference between something that can break and something unbrekable, is that when the unbreakable thing breaks, it's irrecuperable 2012-06-19T19:14:18 < zyp> :p 2012-06-19T19:16:05 <+Steffanx> Thorn is jealous ? 2012-06-19T19:18:19 < karlp> cortex m0+ allows "multi drop serial wire" 2012-06-19T19:18:20 < karlp> wee 2012-06-19T19:18:56 < zyp> yeah, you just wire the swd lines in parallel 2012-06-19T19:19:05 <+Steffanx> I support drop all serial wire karlp 2012-06-19T19:19:10 <+Steffanx> Sorry, ignore me 2012-06-19T19:19:30 < zyp> which they will be if you wire them for jtag, since swd signals are on jtck and jtms 2012-06-19T19:23:50 < Thorn> have you read about target discovery in multidrop swd? the debugger has to probe for all chip IDs it knows about, and I've no idea what would happen if there're multiple identical ones on the bus 2012-06-19T19:24:47 < zyp> really? 2012-06-19T19:24:51 < zyp> well 2012-06-19T19:25:10 < zyp> I'd be surprised if it didn't support several identical (apart from serial) devices on the bus 2012-06-19T19:35:34 < Thorn> afair serial numbers play no role 2012-06-19T19:39:26 < Thorn> (and you can't use jtag even if targets support it because the bus has to be wired differently) 2012-06-19T19:57:40 -!- LawrenceSeattle [~lawrence@216.243.49.130] has quit [Quit: LawrenceSeattle] 2012-06-19T20:04:00 <+Steffanx> Hey dongs say something 2012-06-19T20:04:04 <+Steffanx> We need some entertainment 2012-06-19T20:06:37 < Thorn> dongs is busy selling his new project to Japanese distributors 2012-06-19T20:06:47 <+Steffanx> dont care 2012-06-19T20:09:16 <+Steffanx> You mean that thing you're jealous of Thorn ? 2012-06-19T20:09:21 <+Steffanx> That toy? 2012-06-19T20:09:26 < Thorn> yeah 2012-06-19T20:09:39 < Thorn> I think it could sell really well in Japan 2012-06-19T20:10:18 <+Steffanx> Maybe you can start to sell them in Russia 2012-06-19T20:12:06 < Thorn> afaik many of those who collect this kind of things order them online directly from Japan. buying them locally is not hip enough 2012-06-19T20:14:11 <+Steffanx> Everything is sellable in soviet russia 2012-06-19T20:15:04 <+Steffanx> Just give free vodka with it 2012-06-19T20:17:25 < zyp> it's the middle of the night in japan now. 2012-06-19T20:17:51 <+Steffanx> Trolls are awake at night 2012-06-19T20:18:08 < zippe> That was a pretty amusing movie, in hindsight 2012-06-19T20:26:22 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-19T20:27:36 < karlp> what toy was this? 2012-06-19T20:27:49 <+Steffanx> http://www.youtube.com/watch?v=sCDo5p7Uihg 2012-06-19T20:28:24 < karlp> does it do anything other than wave? 2012-06-19T20:29:52 < BrainDamage> karlp: the question is rather, does it needs to do anything other than wave? 2012-06-19T20:31:22 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has joined ##stm32 2012-06-19T20:31:37 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has quit [Changing host] 2012-06-19T20:31:37 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has joined ##stm32 2012-06-19T20:42:12 < Thorn> I was wrong, you can use jtag and multidrop swd with no circuit changes 2012-06-19T20:42:26 -!- tavish [~tavish@59.177.14.194] has joined ##stm32 2012-06-19T20:42:26 -!- tavish [~tavish@59.177.14.194] has quit [Changing host] 2012-06-19T20:42:26 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-19T20:43:29 < zyp> that's what I said 2012-06-19T20:43:51 < Thorn> right 2012-06-19T20:43:56 <+Steffanx> left 2012-06-19T20:44:23 < Thorn> gps signal lost 2012-06-19T20:44:36 < karlp> please remain calm, help is on the way 2012-06-19T20:45:49 < zyp> the gps stuff they have in the cars in japan is pretty awesome 2012-06-19T20:46:27 <+Steffanx> Japan and their technology .. 2012-06-19T20:48:45 < zyp> oh, and they have nice roads too 2012-06-19T20:48:54 < zyp> http://bin.jvnv.net/f/EkuKu.JPG <- pic from yesterday 2012-06-19T20:51:38 <+Steffanx> Weird definition of nice 2012-06-19T20:51:44 < zyp> :) 2012-06-19T20:51:55 < zyp> http://bin.jvnv.net/f/YAIEu.JPG <- nice views too 2012-06-19T20:52:24 <+Steffanx> Too bad the other tourist are on the photo too 2012-06-19T20:52:41 <+Steffanx> ts 2012-06-19T20:53:01 < zyp> no, it's my friends 2012-06-19T20:53:11 <+Steffanx> Tourists :P 2012-06-19T20:53:13 < zyp> I was driving the blue car 2012-06-19T20:53:14 < zyp> :p 2012-06-19T20:54:33 < zyp> I climbed some shit on the other side of the road specifically to include them in the pic :p 2012-06-19T20:54:50 <+Steffanx> Ok :P 2012-06-19T20:55:11 <+Steffanx> As long as you know they are your friends :) 2012-06-19T20:55:19 < zippe> zyp: dorifto! 2012-06-19T20:55:20 <+Steffanx> For my it's just a bunch of tourists :P 2012-06-19T20:55:35 <+Steffanx> *me 2012-06-19T20:56:08 < zyp> :p 2012-06-19T20:56:24 <+Steffanx> Anyway, nice view indeed 2012-06-19T20:56:25 < zyp> probably got some without them too, but haven't uploaded 2012-06-19T20:57:01 <+Steffanx> No super high speed internet in japan? 2012-06-19T20:57:28 < zyp> 100 Mb/s at the hotel 2012-06-19T20:57:43 < zyp> http://bin.jvnv.net/f/cVmaC.JPG <- here's one taken down by the cars 2012-06-19T20:58:21 <+Steffanx> You'll also go to the area the tsunami 'cleaned' ? 2012-06-19T20:58:42 < zyp> don't have any plans for it 2012-06-19T20:59:16 < zippe> It's not much fun 2012-06-19T21:00:03 < zyp> http://bin.jvnv.net/f/3N59w.JPG <- oh, and we also spotted this yesterday 2012-06-19T21:00:09 < zippe> When you can get in, you're just driving around piles of crap, or mud flats with outlines of buildings on it 2012-06-19T21:00:30 < zyp> zippe, yeah, it doesn't sound very interesting 2012-06-19T21:00:33 <+Steffanx> Cheeeese, zyp on google maps 2012-06-19T21:00:40 <+Steffanx> *streetview 2012-06-19T21:00:48 < zippe> zyp: It's "interesting" for a bit, then it's mostly just boring and terrifying 2012-06-19T21:00:54 < zyp> Steffanx, yep 2012-06-19T21:00:58 < zippe> Depending on how good your imagination is 2012-06-19T21:02:52 <+Steffanx> Your friends don't wonder why you are so tired every morning zyp ? :P 2012-06-19T21:04:03 < zyp> pff 2012-06-19T21:04:30 <+Steffanx> "Yeah, uhhhh.. i had a nice talk with someone from the US and a weird dutch guy" 2012-06-19T21:04:31 < zyp> the guy I'm sharing a room with were still asleep when I left this morning 2012-06-19T21:04:57 <+Steffanx> Translated to Norwegian 2012-06-19T21:05:25 < zyp> and some of the other guys are having troubles sleeping properly and wake up either very early or very late every day 2012-06-19T21:10:47 < Tectu> hey guys 2012-06-19T21:10:57 <+Steffanx> Hello Mr Tectu 2012-06-19T21:11:04 < zyp> hi 2012-06-19T21:11:08 < Tectu> How's it going, Mr.Steffanx? 2012-06-19T21:11:12 <+Steffanx> Fine 2012-06-19T21:11:15 <+Steffanx> There? 2012-06-19T21:12:56 < Tectu> nice 2012-06-19T21:13:00 < Tectu> just quite tired 2012-06-19T21:13:02 -!- Laurenceb_ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has joined ##stm32 2012-06-19T21:13:17 < zyp> time to sleep then 2012-06-19T21:13:20 < zyp> :p 2012-06-19T21:13:47 < Tectu> its 2013 here 2012-06-19T21:13:48 < Tectu> so no 2012-06-19T21:13:54 < Tectu> have to write some code firsts 2012-06-19T21:13:56 < Tectu> -s 2012-06-19T21:14:16 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-06-19T21:15:43 -!- peabody124 [~peabody12@stgt-5f719a4b.pool.mediaWays.net] has joined ##stm32 2012-06-19T21:24:32 < Laurenceb_> so i was going to troll the olympic torch with a fire extinguisher 2012-06-19T21:24:45 < Laurenceb_> but then i had a better idea for what to throw at it 2012-06-19T21:24:46 <+Steffanx> but .. 2012-06-19T21:24:48 < Laurenceb_> petrol 2012-06-19T21:24:56 <+Steffanx> Yeah, KILLLLLL THEMMMMM 2012-06-19T21:25:04 < Laurenceb_> when the relay goes past my house 2012-06-19T21:25:17 <+Steffanx> See you in prison Laurenceb_ 2012-06-19T21:25:31 < Laurenceb_> worth it for the lulz 2012-06-19T21:25:40 <+Steffanx> ok 2012-06-19T21:25:44 <+Steffanx> Go for it 2012-06-19T21:26:44 < zyp> Laurenceb_, man, you're so cool behind your keyboard 2012-06-19T21:27:11 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving] 2012-06-19T21:27:14 <+Steffanx> I wonder if he wears sun glasses 2012-06-19T21:27:38 < Laurenceb_> yup 2012-06-19T21:27:39 < Laurenceb_> http://forgifs.com/gallery/d/200745-1/Merging-road-rage-traffic.gif 2012-06-19T21:29:09 -!- peabody124 [~peabody12@stgt-5f719a4b.pool.mediaWays.net] has quit [Ping timeout: 250 seconds] 2012-06-19T21:30:08 <+Steffanx> So England will win this evening Laurenceb_ ? 2012-06-19T21:30:24 < Laurenceb_> hopefully not 2012-06-19T21:30:39 < Laurenceb_> then i can laugh at the disappointed fans 2012-06-19T21:30:41 <+Steffanx> I bet you are a real English hooligan 2012-06-19T21:33:30 < BrainDamage> to me he sounds like your typical moontan frustrated PhD student 2012-06-19T21:33:51 <+Steffanx> You sounds like you have experience with people like that 2012-06-19T21:34:05 < BrainDamage> I actually do sadly 2012-06-19T21:34:14 <+Steffanx> Good self reflection? 2012-06-19T21:34:22 < BrainDamage> nope 2012-06-19T21:34:30 < BrainDamage> not even by a small bit 2012-06-19T21:34:50 <+Steffanx> Not a phd student? 2012-06-19T21:35:20 < BrainDamage> correct, also normal suntan, and not frustrated 2012-06-19T21:35:47 < BrainDamage> some depressive crysis every now & then, but no frustration 2012-06-19T21:35:53 < Laurenceb_> anyways 2012-06-19T21:35:54 < Laurenceb_> http://chibios.sourceforge.net/html/group___u_a_r_t.html 2012-06-19T21:36:00 < Laurenceb_> wtf @ receive functions 2012-06-19T21:36:20 < Laurenceb_> i have to pass it the number of bytes? 2012-06-19T21:36:34 <+Steffanx> wtf @ underscores in url 2012-06-19T21:37:49 < zyp> Laurenceb_, of course? 2012-06-19T21:37:54 < BrainDamage> I guess it waits until the buffer is full? 2012-06-19T21:38:03 < Laurenceb_> then how an i meant to say connect a gps receiver? 2012-06-19T21:38:05 < BrainDamage> and returns when done 2012-06-19T21:38:06 < zyp> how would it else know how many bytes you want to read? 2012-06-19T21:38:18 < Laurenceb_> just have a circular rx buffer 2012-06-19T21:38:34 < Laurenceb_> a byteinbuff function and a read function 2012-06-19T21:39:08 < BrainDamage> have a rx buffer, read in chunks of fixed size and sum to a larger buffer that gets resized dynamically, then consume the larger as needed 2012-06-19T21:39:50 < Laurenceb_> then i have lag 2012-06-19T21:39:56 < Laurenceb_> unless i use 1 byte buffer 2012-06-19T21:41:04 < BrainDamage> depending how you hate yourself, you could make a linked list of the buffer chunks to make the larger buffer which sums them 2012-06-19T21:41:05 < Laurenceb_> maybe serial driver is what i want... 2012-06-19T21:42:05 < zyp> Laurenceb_, you could register your own interrupt callback 2012-06-19T21:42:12 < Laurenceb_> http://chibios.sourceforge.net/html/group___s_e_r_i_a_l.html#gac488fbd6cbf34b6f4a67ca72ff523d16 2012-06-19T21:42:17 < Laurenceb_> ^i think that would work 2012-06-19T21:43:18 < Laurenceb_> seems to use a proper fifo buffer 2012-06-19T21:52:45 < Laurenceb_> sdAsynchronousRead looks better actually 2012-06-19T21:52:57 < Laurenceb_> returns a byte and byte in the buffer 2012-06-19T21:53:01 < Laurenceb_> *bytes 2012-06-19T21:54:12 < Laurenceb_> while(bytesinbuffer) {ubxparserstatemachine} 2012-06-19T21:54:22 < Laurenceb_> type construction would work 2012-06-19T22:06:17 < jpa-> Laurenceb_: yeah, the uart driver is more low-level and it even says that "If your application requires a synchronoyus buffered driver then the Serial Driver should be used instead." 2012-06-19T22:09:33 < Laurenceb_> oh i didnt spot that 2012-06-19T22:10:22 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-19T22:11:00 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has quit [Read error: Operation timed out] 2012-06-19T22:12:05 <+Steffanx> Laurenceb_ won't get a nobel price for something 2012-06-19T22:12:14 <+Steffanx> He'll forget to spot the important part :P 2012-06-19T22:12:18 < Laurenceb_> lol 2012-06-19T22:12:59 < Laurenceb_> http://www.bbc.co.uk/news/uk-18514726 2012-06-19T22:13:01 < Laurenceb_> haha genius 2012-06-19T22:13:29 <+Steffanx> He's getting scared 2012-06-19T22:13:34 < Laurenceb_> hes trolling us 2012-06-19T22:13:35 < zippe> Who wouldn't? 2012-06-19T22:14:07 <+Steffanx> I would, but "Action=>reaction" 2012-06-19T22:14:28 < BrainDamage> troll governments and espect lot of shit coming your way 2012-06-19T22:14:38 < BrainDamage> I'm surprised he hasn't been "accidentally" murdered yet 2012-06-19T22:14:50 <+Steffanx> That's too obvious 2012-06-19T22:15:05 <+Steffanx> And hell, at least on the www, would break loose 2012-06-19T22:15:16 < BrainDamage> many government actions weren't exactly undercover in the past either 2012-06-19T22:15:26 < BrainDamage> politkoskaya murder, litvinenko, etc 2012-06-19T22:15:55 < BrainDamage> sometimes you're even fine letting people know that you did it, as long as they cannot prove it officially 2012-06-19T22:29:34 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has joined ##stm32 2012-06-19T22:50:23 < blkcat> could anyone suggest a reasonably expensive and roughly 3x2" color lcd display? 2012-06-19T22:50:32 < blkcat> maybe something like a replacement ipod touch display? 2012-06-19T22:51:26 -!- izua [~izua@86.121.2.101] has joined ##stm32 2012-06-19T22:51:26 -!- izua [~izua@86.121.2.101] has quit [Changing host] 2012-06-19T22:51:26 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-19T22:51:28 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-19T22:54:11 < Thorn> reasonably expensive? cheap ones won't do? 2012-06-19T22:54:40 < Thorn> what resolution, color depth, interface, controller or no controller? 2012-06-19T22:57:16 < feurig> gordon is like that 2012-06-19T22:57:31 < feurig> he wants things reasonably expensive 2012-06-19T22:58:37 <+Steffanx> Gordon who? 2012-06-19T23:02:38 <+Steffanx> No laughing at the supporters today for you Laurenceb_ 2012-06-19T23:03:45 -!- LawrenceSeattle [~lawrence@66.192.187.106] has joined ##stm32 2012-06-19T23:12:59 -!- Laurenceb_ [~Laurence@host86-177-210-160.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-06-19T23:26:36 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has joined ##stm32 2012-06-19T23:26:40 < zippe> blkcat: what interface? 2012-06-19T23:26:56 < blkcat> Thorn: reasonably *in*expensive, sorry haha 2012-06-19T23:27:23 < blkcat> zippe: spi would probably be fine? honestly i've never had to shop for displays before (beyond boring character lcds) 2012-06-19T23:27:41 < zippe> Yes, I see. 2012-06-19T23:27:56 < zippe> What are you going to do with it? What frame rate are you trying to achieve? 2012-06-19T23:28:06 < Thorn> 3x2" over spi is going to be slow 2012-06-19T23:28:27 <+Steffanx> 3x2 pixels isn't that bad 2012-06-19T23:28:35 <+Steffanx> *much 2012-06-19T23:28:40 <+Steffanx> or 6x3 2012-06-19T23:28:52 < zippe> 320 x 240 @ 8-bit color is 1.8MiB 2012-06-19T23:29:17 < zippe> er, Mib 2012-06-19T23:29:47 < zippe> So each frame needs ~2MHz on your SPI bus. 2012-06-19T23:30:11 < zippe> s/frame/frame-per-second 2012-06-19T23:30:18 < zippe> Gawd, and I've had coffee today too 2012-06-19T23:30:31 < zippe> What are you driving it with? 2012-06-19T23:30:42 -!- peabody124 [~peabody12@stgt-5f719a4b.pool.mediaWays.net] has joined ##stm32 2012-06-19T23:30:54 <+Steffanx> Nothing wrong with coffee 2012-06-19T23:30:59 <+Steffanx> I had enough to understand what you meant 2012-06-19T23:31:12 <+Steffanx> have had or whatever 2012-06-19T23:32:19 < zippe> For panels up to 16bpp you may be able to use the FSMC and DMA to auto-refresh 2012-06-19T23:33:13 < blkcat> zippe: nxp has some cortex-m3s with integrated lcd controllers, i was considering one of those perhaps 2012-06-19T23:33:57 < Thorn> in that case you need displays with an rgb interface 2012-06-19T23:34:14 < Thorn> which is most certainly not spi 2012-06-19T23:36:28 < zippe> Ya, in general a bit hard to offer specific suggestions without knowing what controller, etc. 2012-06-19T23:36:52 < blkcat> yeah. i think i have some more reading to do. 2012-06-19T23:36:54 < Thorn> England prevails 2012-06-19T23:37:12 <+Steffanx> Too bad 2012-06-19T23:38:32 < Thorn> wtf, stm32f407 is cheaper than 105 2012-06-19T23:40:16 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has quit [Ping timeout: 276 seconds] 2012-06-19T23:41:20 < drgreenthumb> blkcat, just a very random suggestion here but I had some luck with http://www.newhavendisplay.com/nhd18128160tfctxi-p-4981.html ... it has it's own controller and memory, so I was able to drive the thing from a slowass 8Mhz AVR. they had some example code which worked with very minimal changes. prototyping sucks a bit though, even with that breakout board - so many wires! 2012-06-19T23:42:00 < blkcat> drgreenthumb: thanks for the tip! unfortunately i'm/we're looking for something a bit bigger with a higher resolution 2012-06-19T23:42:07 < drgreenthumb> ah 2012-06-19T23:42:10 < blkcat> i think the target is around 4" diagonal 2012-06-19T23:42:22 < drgreenthumb> ah yes those are harder to drive I believe :) 2012-06-19T23:42:34 < Thorn> not necessarily 2012-06-19T23:42:49 < drgreenthumb> yeah I guess if it has a controller it'd be similar to what I did with this little one 2012-06-19T23:42:56 < drgreenthumb> but most I've seen are RGB interface 2012-06-19T23:45:32 < Thorn> http://www.ebay.com/itm/STM32-STM32F103VET6-Dev-Board-4-3-TFT-LCD-Module-/190565916857 2012-06-19T23:46:45 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has quit [Quit: Leaving.] 2012-06-19T23:47:54 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has joined ##stm32 2012-06-19T23:59:01 < blkcat> okay, let's say i need 24-bit color, somewhere in the vicinity of 24fps. something like 800x400 would be great but i could settle for less. 2012-06-19T23:59:08 < blkcat> i'd probably need a pretty beefy controller to drive that, right? --- Day changed Wed Jun 20 2012 2012-06-20T00:00:27 < Thorn> that would be a pretty nice intermediate level fpga project 2012-06-20T00:01:41 < Thorn> 800 pixels will likely mean LVDS which arm mcus lack, also RAM for the framebuffer and hard realtime refresh logic 2012-06-20T00:02:02 < Thorn> (external RAM) 2012-06-20T00:02:03 <+izua> that's a pretty good price for 128x160x8 2012-06-20T00:02:26 < Thorn> I've seen similar ones for ~$6 on aliexpress 2012-06-20T00:02:58 < Thorn> (also, I've no idea about newhaven shipping terms) 2012-06-20T00:03:28 < blkcat> actually, i bet 12fps would cut it. 2012-06-20T00:04:12 < zippe> LVDS or MIPI 2012-06-20T00:04:43 < zippe> 24-bit color is really overdoing it 2012-06-20T00:04:57 < zippe> You would almost certainly be fine with a 16bpp panel 2012-06-20T00:05:18 < zippe> 18bpp is pretty standard for laptop displays 2012-06-20T00:06:26 < zippe> But 8x4x16bpp is still going to be tens of dollars in any quantity 2012-06-20T00:10:29 < blkcat> indeed... 2012-06-20T00:11:03 < Thorn> 1280x800 tft panel driven by a CPLD (no LVDS hardware) with a piece cut out of a DIMM module as a framebuffer, all connected with wires and pin headers http://marsohod.org/index.php/projects/174-phframe3 2012-06-20T00:12:31 < drgreenthumb> that's pretty cool :) 2012-06-20T00:12:50 < blkcat> now that's impressive. 2012-06-20T00:13:00 < drgreenthumb> heh I was wondering if a display driver and DDR SDRAM driver would both fit on a CPLD. apparently, yes, yes it can :) 2012-06-20T00:13:22 < Thorn> these guys also made a CPU for EPM240 2012-06-20T00:13:33 < blkcat> perhaps it'd be cheaper to reuse a knockoff itouch 2g display or something... 2012-06-20T00:14:34 < Thorn> some lvds waveforms here http://marsohod.org/index.php/projects/173-phframe2 2012-06-20T00:26:13 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 248 seconds] 2012-06-20T00:31:38 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-06-20T00:32:54 < blkcat> sheesh, this is tough. :D 2012-06-20T00:37:17 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has quit [Quit: Leaving.] 2012-06-20T00:42:42 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has joined ##stm32 2012-06-20T00:46:12 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has quit [Read error: No route to host] 2012-06-20T00:46:15 -!- BrainDamage1 [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has joined ##stm32 2012-06-20T00:52:03 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-20T01:28:19 < neuro-sys> \o/ 2012-06-20T01:31:37 < Laurenceb_> what processor is that? 2012-06-20T01:37:37 < zippe> blkcat: the iDevice displays are Not Fun to talk to 2012-06-20T01:37:51 < Laurenceb_> LVDS? 2012-06-20T01:38:11 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has joined ##stm32 2012-06-20T01:38:24 < zippe> tmds and more recently MIPI 2012-06-20T01:38:26 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has quit [Changing host] 2012-06-20T01:38:26 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has joined ##stm32 2012-06-20T01:38:42 < blkcat> leaning towards a psp display at the moment. 2012-06-20T01:38:45 < blkcat> they seem pretty readily available. 2012-06-20T01:39:13 < Laurenceb_> oh its an FPGA 2012-06-20T01:42:12 < BrainDamage1> awesome, I either burned this gpio pin or this ADC has an equivalent number of bits = 1 2012-06-20T01:47:54 < dongs> sup trolls 2012-06-20T01:48:06 < dongs> where can i find >software< i2c slave for stm32 :) 2012-06-20T01:54:02 < zippe> you mean bitbang slave? 2012-06-20T01:55:38 < dongs> yes 2012-06-20T01:55:52 < dongs> or any micro as long as its not in ASM for some obscure 8bitter 2012-06-20T01:56:00 < dongs> i cannot find ANY shit written in C for this. 2012-06-20T01:56:01 < dongs> wtf. 2012-06-20T01:56:26 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-06-20T01:56:46 < karlp> http://jeelabs.org/2010/03/15/software-and-hardware-i2c/ 2012-06-20T01:57:14 < dongs> surely thats master 2012-06-20T01:57:26 < karlp> oh, yeah, my bad. 2012-06-20T01:57:33 < karlp> who wants to be a slave? 2012-06-20T01:57:39 < karlp> this isn't modbus 2012-06-20T01:57:42 < dongs> master takes like zero effort to do in software 2012-06-20T02:01:54 < zippe> dongs: it's quite annoying to do because you can't do *anything* else 2012-06-20T02:02:18 < zippe> implementing e.g. clock stretching is a major PITA. 2012-06-20T02:02:29 < zippe> plus some masters won't support it 2012-06-20T02:02:34 < dongs> thats fine 2012-06-20T02:02:41 < dongs> thats all the chip's gonna do 2012-06-20T02:02:44 < dongs> so im not too worried 2012-06-20T02:21:42 -!- pepsi_ [~jbutera@unaffiliated/jbutera] has joined ##stm32 2012-06-20T02:21:45 < pepsi_> sup 2012-06-20T02:22:02 < pepsi_> soo.. the code protection bug as in the topic 2012-06-20T02:22:13 < pepsi_> has been fixed on like the STM32F0 and STL32L\ 2012-06-20T02:22:34 < karlp> are you asking, or telling us? 2012-06-20T02:22:35 < pepsi_> true? 2012-06-20T02:22:37 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 252 seconds] 2012-06-20T02:22:39 < pepsi_> both 2012-06-20T02:22:44 < karlp> no idea :) 2012-06-20T02:22:57 < pepsi_> okay, well the STM32L has a jtag disable bit, and i think the F0 has it too 2012-06-20T02:23:07 < pepsi_> but the STM32F1xx dont have the jtag disable 2012-06-20T02:23:24 < pepsi_> and there seem to be way too many chances to thwart security like that 2012-06-20T02:23:29 < dongs> uh 2012-06-20T02:23:42 < dongs> you CAN disable jtag/swd on F1 2012-06-20T02:24:01 < dongs> where do you get the idea that you cant? 2012-06-20T02:24:01 < pepsi_> via software 2012-06-20T02:24:06 < dongs> yes and? 2012-06-20T02:24:09 < pepsi_> uh.. just reset it 2012-06-20T02:24:15 < pepsi_> reset it and dont give it a clock 2012-06-20T02:24:19 < pepsi_> and enter jtag mode 2012-06-20T02:24:33 < dongs> sure and how is htat different from how its done on F0/L? 2012-06-20T02:24:48 < pepsi_> hrm 2012-06-20T02:25:22 < pepsi_> i was under the impression there was another bit in the configuration bytes 2012-06-20T02:26:06 < pepsi_> do you know? or are you just entertaining question/statement? 2012-06-20T02:27:04 < pepsi_> i went to an st seminar for the f0, and it seemd like they were saying it was a nonvolatile configuration bit 2012-06-20T02:27:16 < pepsi_> and the L had it too i thought, but i am no longer sure 2012-06-20T02:27:45 < pepsi_> cause i was interested in the F103 months ago, but decided no because of the code protection bug 2012-06-20T02:29:07 < dongs> if someone really wants your shit, it doesnt really matte.r 2012-06-20T02:29:40 < pepsi_> yeah, i get that.. that doesnt mean i should just leave the door open 2012-06-20T02:29:49 < pepsi_> or use a suitcase padlock 2012-06-20T02:33:40 -!- cjbaird [~cjb@ppp121-44-81-126.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-20T02:34:53 -!- drgreenthumb [~fletch@drupal.org/user/72475/view] has quit [Read error: Connection reset by peer] 2012-06-20T02:35:35 < karlp> hehe more awesome chip pricing. F103ZG (1meg/80k/BGA) is $15, F103ZE (512k/64k/bga) is $23 2012-06-20T02:35:59 < pepsi_> okay so according to PM0062, memory protection level 2.. "The JTAG port is permanently disabled in level 2 (acting as a JTAG fuse)." 2012-06-20T02:36:20 < pepsi_> PM0062 is flash programming manual for STM32L152 2012-06-20T02:36:32 < pepsi_> the F0 has the same feature 2012-06-20T02:40:41 < zippe> karlp: supply and demand 2012-06-20T02:41:18 < karlp> yeah, I know :) 2012-06-20T02:41:32 < karlp> people either use much less, or use all the way to the hilt 2012-06-20T02:41:36 < karlp> still funny though 2012-06-20T02:42:27 < zippe> karlp: consider the STM32F405RGT6 is $11.45 in 1-off quantities. That's the 1M/192K version. 2012-06-20T02:42:38 < karlp> yeah, I was just checking the F4 prices 2012-06-20T02:43:01 < karlp> I had only just seen the big F103s, I didn't even know they existed, was just curious how much they cost 2012-06-20T02:43:18 < karlp> was vaguely hoping for a, "no longer the hot shit" price. 2012-06-20T02:43:22 < pepsi_> got a quote for <$2 on a smaller F103 before.. in .. big quantities though 2012-06-20T02:43:32 < zippe> If you want cheap, you need to move down the food chain quite a bit 2012-06-20T02:43:36 < karlp> well, the little f103s are much much much littler 2012-06-20T02:44:36 < pepsi_> hopefully i can get that quote honored for an equivalent L part given the security thing 2012-06-20T02:45:09 < zippe> You can get under $2 for the Nuvoton parts too … but ick 2012-06-20T02:45:19 < pepsi_> ya someone gave me a link to those 2012-06-20T02:45:29 < pepsi_> it drew my attention for an hour 2012-06-20T02:46:29 < karlp> what in particular is wrong with the nuvoton parts? 2012-06-20T02:47:00 < zippe> Sheer unfamiliarity on my part 2012-06-20T02:47:05 < zippe> Fear of the unknown 2012-06-20T02:47:12 < zippe> I have not had a chance to use any yet. 2012-06-20T02:48:46 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has quit [Ping timeout: 276 seconds] 2012-06-20T02:48:55 < zippe> And the datasheets are a bit scary. e.g. 2012-06-20T02:48:56 < zippe> The NuMicro Mini51 series provides one channel of Universal Asynchronous Receiver/Transmitters (UART). UART performs Normal Speed UART, and support flow control function. 2012-06-20T02:49:17 < pepsi_> only one, eh? 2012-06-20T02:50:09 < pepsi_> i dont remember why i didnt like it.. i think it was mostly fear of the unknown as well.. but i seem to recall it lacking in some technical features 2012-06-20T02:50:17 < pepsi_> and one uart is a bunch of poop :P 2012-06-20T02:51:56 < zippe> The Mini51's are the very small ones; they're kinda short on timers too 2012-06-20T02:52:02 < karlp> we're using stm32 right now precisely because the avr part we had before was only a single uart. 2012-06-20T02:53:04 < pepsi_> you guys do this for hobby? work? 2012-06-20T02:53:25 < zippe> various 2012-06-20T02:53:27 < karlp> I think the channel response is "both" 2012-06-20T02:53:30 < pepsi_> ok 2012-06-20T02:55:11 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has quit [Quit: Ex-Chat] 2012-06-20T02:55:31 -!- upgrdman [~upgrdman@71-92-208-122.static.mtpk.ca.charter.com] has joined ##stm32 2012-06-20T02:55:31 -!- upgrdman [~upgrdman@71-92-208-122.static.mtpk.ca.charter.com] has quit [Changing host] 2012-06-20T02:55:31 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has joined ##stm32 2012-06-20T02:56:16 < pepsi_> uhm.. probably unrelated.. anyone know where to find sockets for QFN chips? like for reprogramming 1000 or so chips that were done wrong? 2012-06-20T02:56:33 < zippe> How much are you willing to spend? 8) 2012-06-20T02:56:49 < pepsi_> couple hundred i guess? 2012-06-20T02:57:04 < dongs> i got my STM32 48lqfp socket from waveshare for like 35bucks 2012-06-20T02:57:07 < dongs> i think they have qfn shit too 2012-06-20T02:57:33 < dongs> http://wvshare.com/product/GP-QFN32-0.5.htm 2012-06-20T02:57:45 < dongs> shit like that 2012-06-20T02:58:07 < dongs> http://wvshare.com/column/Adapter_2.htm moar shit 2012-06-20T02:58:10 < pepsi_> nice 2012-06-20T02:58:19 < dongs> all < $120 2012-06-20T02:58:30 < pepsi_> yeah, that'll work! 2012-06-20T02:59:12 < dongs> http://wvshare.com/column/STM32_Adapter.htm 2012-06-20T02:59:22 < dongs> oh ok it was $60 anyway still 2012-06-20T02:59:41 < dongs> has jtag, uart broken out, socket for HSE, and all io pins, and boot0/boot1 on jumpers 2012-06-20T03:02:03 < upgrdman> qfn == quad flat no pin, right? 2012-06-20T03:05:08 < pepsi_> ya 2012-06-20T03:22:39 < dongs> gnu//pin 2012-06-20T03:28:38 < upgrdman> is that like gnu/linux? 2012-06-20T03:28:45 < dongs> ya but gayer. 2012-06-20T03:28:53 -!- peabody124 [~peabody12@stgt-5f719a4b.pool.mediaWays.net] has quit [Read error: Connection reset by peer] 2012-06-20T03:29:03 -!- peabody124 [~peabody12@stgt-5f719a4b.pool.mediaWays.net] has joined ##stm32 2012-06-20T03:29:59 -!- peabody128 [~peabody12@stgt-5f719a4b.pool.mediaways.net] has joined ##stm32 2012-06-20T03:29:59 -!- peabody124 [~peabody12@stgt-5f719a4b.pool.mediaWays.net] has quit [Read error: Connection reset by peer] 2012-06-20T03:29:59 -!- peabody128 is now known as peabody124 2012-06-20T03:33:03 -!- peabody124 [~peabody12@stgt-5f719a4b.pool.mediaways.net] has quit [Read error: Connection reset by peer] 2012-06-20T03:39:24 < cjbaird> Or has it should be called, GNU plus pin. 2012-06-20T03:51:19 < upgrdman> gnu+=pin? 2012-06-20T03:52:42 < dongs> RMS_PIN 2012-06-20T03:53:52 < upgrdman> anyone here use gdb with the stm32? any gotchas or weirdness? it works for me but i havnt had to actually debug anything yet 2012-06-20T04:10:33 -!- BrainDamage1 [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has quit [Quit: Leaving.] 2012-06-20T04:10:45 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has joined ##stm32 2012-06-20T04:37:20 < szczys> Wow, these peripheral libraries seem really convoluted 2012-06-20T04:37:46 < szczys> I'm beginning to think it would be faster for me to just set the registers from the datasheet than to learn the functions used in the libraries 2012-06-20T04:45:50 -!- LawrenceSeattle [~lawrence@66.192.187.106] has quit [Ping timeout: 246 seconds] 2012-06-20T04:47:47 < dongs> haha... 2012-06-20T04:47:53 < dongs> maybe you use lunix on desktop, too? 2012-06-20T04:58:13 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has joined ##stm32 2012-06-20T04:58:26 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has quit [Changing host] 2012-06-20T04:58:26 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has joined ##stm32 2012-06-20T05:00:06 < zippe> szczys: Many of us think the same way; google for e.g. Donald Becker's take on it 2012-06-20T05:00:55 < BrainDamage> szczys: consider trying an os as HAL 2012-06-20T05:01:17 < BrainDamage> some of them simplify decently the underlying hw 2012-06-20T05:05:41 -!- [7] [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-20T05:05:47 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-20T05:08:11 < szczys> I think you hit the nail on the head braindamage 2012-06-20T05:08:22 < szczys> this isn't 'simplified decently' 2012-06-20T05:08:47 < szczys> it's like they tried to simplify it with abstraction but just ended up with an entirely unrelated mess of obscurity 2012-06-20T05:10:18 < szczys> zippe, I'm not finding the donald becker article you mentioned 2012-06-20T05:11:41 < zippe> http://code.google.com/p/arm-utilities/ 2012-06-20T05:14:50 < szczys> thanks 2012-06-20T05:18:27 < zippe> szczys: You are looking at the ST driver library? It's junk 2012-06-20T05:18:34 < zippe> Have you looked at libopencm3 yet? 2012-06-20T05:18:40 < zippe> It's not bad for the things it covers. 2012-06-20T05:18:43 < dongs> st driver library >WORKS< 2012-06-20T05:18:48 < dongs> unlike libopencm3. 2012-06-20T05:18:51 < zippe> dongs: sometimes 2012-06-20T05:18:56 < dongs> no, it works out of hte box. 2012-06-20T05:18:59 < zippe> dongs: Don't try to use e.g. their USB stack 2012-06-20T05:19:13 < zippe> dongs: again, sometimes. It also doesn't actually *do* anything 2012-06-20T05:19:31 < zippe> dongs: e.g. where is the I2C state machine? 2012-06-20T05:19:41 < zippe> dongs: where is the UART driver? 2012-06-20T05:19:57 < zippe> Where is anything resembling a coherent power management API? 2012-06-20T05:20:28 < zippe> It's not a "driver library", it's a "wrapper function library" 2012-06-20T05:20:44 < dongs> right 2012-06-20T05:20:46 < dongs> and im fine with that. 2012-06-20T05:20:55 < dongs> drivers implemented one specific way = fail 2012-06-20T05:21:02 < dongs> like look like Laurenceb bitching about chibios yesterday 2012-06-20T05:21:07 < dongs> using DMA for I2C and SPI 2012-06-20T05:21:08 < szczys> I've looked at the examples in libopencm3 2012-06-20T05:21:15 < dongs> (or some other 2 peripherals that conflict) 2012-06-20T05:21:19 < zippe> dongs: LMI got it pretty right. 2012-06-20T05:21:20 < dongs> their solution? just crash when ith appens. 2012-06-20T05:21:22 < szczys> Hey, can you shed some light on this: 2012-06-20T05:21:31 < szczys> I see where to set GPIO speed, and the speed values available 2012-06-20T05:21:39 < szczys> but what is the speed setting actually doing? 2012-06-20T05:21:47 < zippe> slew rate limiting 2012-06-20T05:21:52 < szczys> slew? 2012-06-20T05:22:06 < dongs> howe fast ir rises 2012-06-20T05:22:09 < zippe> How fast the transition from 1 to 0 or vice versa is 2012-06-20T05:22:23 < zippe> The faster the transition, the more power you use, and the more RF noise you emit 2012-06-20T05:22:38 < szczys> ah-ha 2012-06-20T05:22:43 < szczys> I see the value in slowing it down 2012-06-20T05:22:43 < dongs> cuz square waves love making harmonics 2012-06-20T05:22:58 < szczys> thanks for explaining 2012-06-20T05:22:59 < zippe> Not to mention ringing, power rail glitching, you name it 2012-06-20T05:24:35 < szczys> so I see that the low rate is 2 MHz 2012-06-20T05:24:45 < szczys> if I'm running the system clock at 48 MHz 2012-06-20T05:24:56 < szczys> and I'm switching GPIO often, does this present a problem? 2012-06-20T05:26:12 < dongs> it takes a few cycles to switch.. try doing GPIOx->BSRR = blah; GPIOx->BRR = blah; in a loop and scope it to see what the max switching speed you can get at 48mhz 2012-06-20T05:26:16 < dongs> i think it takes a few cycles per 2012-06-20T05:26:43 < dongs> or GPIOx->ODR if you wanna try toggling with one instruction 2012-06-20T05:26:58 < dongs> GPIOx->ODR ^= blah; 2012-06-20T05:27:00 < szczys> so does it hold up the next instruction 2012-06-20T05:27:10 < szczys> or does it drop GPIO changes? 2012-06-20T05:27:17 < szczys> (obviously it drops gpio changes) 2012-06-20T05:27:28 < dongs> i dunno, i never bothered to look 2012-06-20T05:28:34 < szczys> well, if I run the SPI with the lowest clock divider (2) 2012-06-20T05:28:42 < szczys> then I'm running at 24 MHz 2012-06-20T05:29:24 < dongs> well, spi toggles GPIO indepenedent of your code 2012-06-20T05:29:24 < szczys> I guess I've got to look up how many instructions it takes to pulse the clock and shift the FIFO 2012-06-20T05:29:27 < dongs> i.e. clk lines etc. 2012-06-20T05:29:29 < dongs> no 2012-06-20T05:29:31 < szczys> right 2012-06-20T05:29:39 < szczys> but the driver library says I need to set the gpio speed 2012-06-20T05:29:43 < dongs> SPI is hardware, so when you tell it to run at 24mhz, thats what it runs at. 2012-06-20T05:29:52 < dongs> yes, so obviously you set it to >= 24mhz 2012-06-20T05:29:55 < zippe> szczys: You still need to set the pad slew rate though 2012-06-20T05:29:59 < dongs> i think the choices are liek 2/50/wahtever 2012-06-20T05:30:03 < szczys> right 2012-06-20T05:30:06 < zippe> 2/10/50 IIRC 2012-06-20T05:30:14 < szczys> 2/10/50 2012-06-20T05:30:15 < szczys> yep 2012-06-20T05:30:21 < szczys> so 2 probably isn't fast enough? 2012-06-20T05:30:25 < dongs> ... 2012-06-20T05:30:29 < zippe> Dammit, I really want a version of tpl that has already been ported to an embedded environment 2012-06-20T05:30:41 < zippe> szczys: No, that will give you bad results for 24MHz SPI 2012-06-20T05:30:44 < dongs> szczys: if youre running SPI at 24mhz, it should be above that. 2012-06-20T05:30:50 < dongs> as it will be toggling clk at 24mhz. 2012-06-20T05:30:53 < szczys> okay... thanks 2012-06-20T05:40:59 < upgrdman> anyone here use coocox? 2012-06-20T06:02:43 < dongs> i do 2012-06-20T06:02:50 < dongs> (not ide, the coos) 2012-06-20T06:26:08 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has quit [Ping timeout: 240 seconds] 2012-06-20T06:29:54 < zippe> Hmm 2012-06-20T06:37:02 < zippe> Gotta love it when porting a posix userland library to your embedded OS is just "conditionalise munmap on the config option that enables it" 2012-06-20T07:08:30 < cjbaird> Neeaattt. It looks like someone at Farnell stole my Raspberrypi (bogus parcel tracking number..) 2012-06-20T07:31:53 < dongs> loll 2012-06-20T07:32:05 < dongs> who the fuck would w ant that shit 2012-06-20T07:42:56 < dongs> so no reasonable way to autodetected attached HSE speed is tehre 2012-06-20T07:45:57 < zyp> sure there is 2012-06-20T07:46:02 < dongs> really? 2012-06-20T07:46:04 < dongs> do tell 2012-06-20T07:46:27 < dongs> even better, i'll take patches to baseflight for it :) 2012-06-20T07:46:47 < zyp> you can set up one timer to run from HSE and one to run from HSI 2012-06-20T07:46:57 < zyp> and then compare the results 2012-06-20T07:48:51 < dongs> hmm 2012-06-20T07:54:08 < dongs> i get 6 bytes of 0xff from fsmc reads... otherwise I think data finally starting to look sane 2012-06-20T07:54:42 < dongs> haha @ c hrome PDF viewer 2012-06-20T07:54:46 < dongs> hit ctrl+f, type 'f' 2012-06-20T07:54:50 < dongs> in a pdf of like 200 pages... 2012-06-20T07:55:00 < dongs> it'll lock up while it highlights EVERY occurence of 'c' 2012-06-20T08:11:17 -!- lukky513 [~lukky@student.agh.edu.pl] has quit [Ping timeout: 245 seconds] 2012-06-20T08:12:17 -!- lukky513 [~lukky@student.agh.edu.pl] has joined ##stm32 2012-06-20T08:32:33 -!- emeb [~ericb@12.68.180.146] has joined ##stm32 2012-06-20T08:42:24 < zippe> Sounds like you aren't allowing for T(read) 2012-06-20T08:43:37 < dongs> sure i am 2012-06-20T08:43:42 < dongs> i already made all the shit slow as hell 2012-06-20T08:43:42 < zippe> zyp: actually, I don't believe you can; all the timer clocks come out of the clock tree. 2012-06-20T08:43:58 < zippe> zyp: i.e. all derived from sysclk 2012-06-20T08:45:10 < zippe> zyp: You could perhaps route HSE to the RTC and use that to compare vs. a timer based off HSI 2012-06-20T08:45:45 < dongs> why hasnt anyone properly done this :( 2012-06-20T08:47:15 < dongs> are you saying i shouldnt have any extra bytes at start of fsmc read? 2012-06-20T08:57:51 < zyp> zippe, you can choose different clock sources for some timers, just for this purpose 2012-06-20T08:58:14 < zyp> it's documented in the reference manual, but I don't have time to look it up now, heading out 2012-06-20T09:08:21 < zippe> Sort of. You can use timer 5/11 input capture to measure the HSI and HSE clocks, but not actually clock them with it. 2012-06-20T09:08:35 < dongs> neither available on _MD 2012-06-20T09:10:00 < zippe> sorry, that's F4 only. Looking at F1 now 2012-06-20T09:12:46 < zippe> Yeah, so your best bet would be to configure the RTC to run off HSE/128 and then compare the RTC clock rate against a timer 2012-06-20T09:13:32 < dongs> F1 can take up to 24mhz xtal right? 2012-06-20T09:13:40 < dongs> then they bumped that to 25 in F2/F4? 2012-06-20T09:13:44 < zippe> Yes, believe so 2012-06-20T09:13:53 < zippe> 25 so they could do 100Mbps ethernet 2012-06-20T09:14:30 < zippe> oh wait, no 2012-06-20T09:14:34 < zippe> They have a separate ethernet osc 2012-06-20T09:14:37 < zippe> wacky 2012-06-20T09:14:59 < dongs> dont you need a external ethernet phy anyway 2012-06-20T09:15:06 < dongs> which will surely need its own xtal 2012-06-20T09:15:31 < zippe> You can share. 2012-06-20T09:17:05 < dongs> :( nand shit is still fucked 2012-06-20T09:17:18 < dongs> i maxed out all timings at ~F0 2012-06-20T09:17:25 < dongs> still remaining 3 bytes of FF 2012-06-20T09:18:48 < dongs> when I read a page, do i need to care about 64 ecc bytes or wat 2012-06-20T09:21:43 -!- emeb [~ericb@12.68.180.146] has quit [Ping timeout: 264 seconds] 2012-06-20T09:26:25 -!- peabody124 [~peabody12@stgt-5f718fa2.pool.mediaWays.net] has joined ##stm32 2012-06-20T09:28:33 < zippe> If you're just reading the buffer straight from the NAND, the correction data will usually follow the page data 2012-06-20T09:28:55 < zippe> It depends on what wrote the data in the first place 2012-06-20T09:29:09 < dongs> can ijust not read it 2012-06-20T09:29:12 < dongs> and re-send 00 30 again 2012-06-20T09:29:14 < dongs> and read next pge? 2012-06-20T09:29:27 < zippe> Sure, you can read as little or as much of the page buffer as you like 2012-06-20T09:29:32 < dongs> hmm 2012-06-20T09:29:40 < zippe> But you need to know how the page is laid out 2012-06-20T09:29:44 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has quit [Ping timeout: 245 seconds] 2012-06-20T09:29:59 < zippe> e.g. in a 4K page NAND you might have 8 512B subpages each with ECC data immediately after the page 2012-06-20T09:30:22 < dongs> shit is 2k page i believe. whgatever hte fuck "page" is 2012-06-20T09:30:37 < zippe> Pages are the addressable read unit 2012-06-20T09:30:39 < dongs> its HY27UF(08/16)2G2B (1st google hit = datasheet off hynix.co.kr but fucking google rapeifies the links so i cant paste it 2012-06-20T09:30:57 < zippe> Ok, so probably 2112B pages? 2012-06-20T09:31:00 < dongs> yes 2012-06-20T09:31:05 < zippe> What wrote the NAND? 2012-06-20T09:31:13 < dongs> not me 2012-06-20T09:31:18 < dongs> i just want to read it. 2012-06-20T09:31:21 < dongs> but, most likely, lunix 2012-06-20T09:31:27 < dongs> as I saw bits of boot=/ lol stuff in there 2012-06-20T09:31:29 < zippe> Ok, so quite possibly YAFFS? 2012-06-20T09:31:31 < dongs> while trying random addresses 2012-06-20T09:31:53 < dongs> right, but my problem is i cant even get what looks like contigious data out of it 2012-06-20T09:32:01 < dongs> table 3, address cycle map for x8 2012-06-20T09:32:28 < dongs> http://bcas.tv/paste/results/WryfJ423.html 2012-06-20T09:32:34 < dongs> this should trnslate to physical address right? 2012-06-20T09:32:42 < dongs> so theoretically i can do addr=0, addr=1 and it will return shit shifted by 1? 2012-06-20T09:33:01 < dongs> another datasheet of similar shit talks about "column address" and "row address" 2012-06-20T09:33:15 < zippe> Not sure what you're talking about here 2012-06-20T09:33:28 < dongs> read page command. 2012-06-20T09:33:33 < zippe> sorry; assuming you're trying to construct a raw NAND page read command 2012-06-20T09:33:36 < dongs> its 00 | addr1 2 3 4 5 | 30 2012-06-20T09:33:37 < dongs> yes 2012-06-20T09:34:08 < dongs> i dont see how 1st/2nd cycle address a 2k page though 2012-06-20T09:34:14 < dongs> since they talk about 12 bits (A0..A11) 2012-06-20T09:34:16 < dongs> thats 4K... 2012-06-20T09:35:32 < dongs> i was kind of hoping at least all flashes would have similar fucking programming interface... 2012-06-20T09:35:42 < dongs> but apparently its a worse clusterfuck than desktop lunix 2012-06-20T09:36:11 < zippe> They're all very similar 2012-06-20T09:36:24 < zippe> But none designed for any sort of forward expansion, much like win19/win32 2012-06-20T09:38:21 < zippe> Ok, so looking back at some old code 2012-06-20T09:38:32 < zippe> "column address" is a byte offset within the page 2012-06-20T09:38:36 < dongs> right 2012-06-20T09:38:40 < dongs> but why is it 12bit 2012-06-20T09:38:42 < zippe> It allows the readout from the page buffer to start offset into the page 2012-06-20T09:39:02 < zippe> because the page is 2112 bytes long 2012-06-20T09:39:18 < dongs> you mean.. including ECC shit 2012-06-20T09:39:20 < zippe> yes 2012-06-20T09:39:31 < dongs> so i could just leave the shit as 0 if I dont care about offset. 2012-06-20T09:39:32 < zippe> Though in fact you'll find that for 4K page nand, it's 13 bits. 2012-06-20T09:39:34 < zippe> Yes. 2012-06-20T09:39:45 < zippe> If you're just stripping it, you want column 0 2012-06-20T09:41:19 < dongs> so then i just give them address in multiples of 2048 2012-06-20T09:41:23 < dongs> 0, 2048, 4096,, etc 2012-06-20T09:41:27 < dongs> and that works? 2012-06-20T09:41:46 < dongs> or wait no... 2012-06-20T09:41:51 < zippe> Assuming you have your shifts correct 2012-06-20T09:42:19 < zippe> I haven't looked at how the F4 fsmc generates the NAND addresses 2012-06-20T09:42:46 < zippe> It will save you a lot of grief if you separate "column" and "page" and just accept that the page address is packed weirdly 2012-06-20T09:42:54 < dongs> right 2012-06-20T09:42:58 < dongs> just ognna zero column 2012-06-20T09:43:03 < dongs> and i guess pages are shifted up 2012-06-20T09:43:18 < zippe> Right 2012-06-20T09:43:50 < zippe> Here's a snip of some old code that might help 2012-06-20T09:44:13 < zippe> static void 2012-06-20T09:44:13 < zippe> fmcSetPageAddress(UInt32 page, UInt16 offset) 2012-06-20T09:44:13 < zippe> { 2012-06-20T09:44:13 < zippe> UInt32 columnAddress; 2012-06-20T09:44:13 < zippe> 2012-06-20T09:44:14 < zippe> setFMCANUM(4); 2012-06-20T09:44:15 < zippe> /* allow transfers to start offset from the base of the page */ 2012-06-20T09:44:15 < zippe> columnAddress = offset & 0x1fff; 2012-06-20T09:44:16 < zippe> setFMCADDR0(((page & 0xffffUL) << 16) | columnAddress); 2012-06-20T09:44:17 < zippe> setFMCADDR1(page >> 16); 2012-06-20T10:03:11 -!- peabody128 [~peabody12@stgt-5f718fa2.pool.mediaWays.net] has joined ##stm32 2012-06-20T10:03:12 -!- peabody124 [~peabody12@stgt-5f718fa2.pool.mediaWays.net] has quit [Read error: Connection reset by peer] 2012-06-20T10:03:12 -!- peabody128 is now known as peabody124 2012-06-20T10:05:08 -!- peabody128 [~peabody12@stgt-5f718fa2.pool.mediaWays.net] has joined ##stm32 2012-06-20T10:05:08 -!- peabody124 [~peabody12@stgt-5f718fa2.pool.mediaWays.net] has quit [Read error: Connection reset by peer] 2012-06-20T10:05:09 -!- peabody128 is now known as peabody124 2012-06-20T10:07:48 -!- peabody128 [~peabody12@stgt-5f718fa2.pool.mediaWays.net] has joined ##stm32 2012-06-20T10:07:48 -!- peabody124 [~peabody12@stgt-5f718fa2.pool.mediaWays.net] has quit [Read error: Connection reset by peer] 2012-06-20T10:07:49 -!- peabody128 is now known as peabody124 2012-06-20T10:34:52 < dongs> if I set address once 2012-06-20T10:34:54 < dongs> and just keep reading 2012-06-20T10:34:58 < dongs> will it automatically go to next page? 2012-06-20T10:35:08 < dongs> i geuss no... cuz it needs to do the other shit 2012-06-20T11:07:13 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32 2012-06-20T11:09:08 -!- izua [~izua@86.121.2.101] has joined ##stm32 2012-06-20T11:09:08 -!- izua [~izua@86.121.2.101] has quit [Changing host] 2012-06-20T11:09:08 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-20T11:09:11 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-20T11:17:05 < Tectu> this works: http://codepad.org/v5q5NASo but the same on my ARM dosent (steps is 0, everything else works) 2012-06-20T11:17:07 < Tectu> idea? 2012-06-20T11:17:41 < Tectu> okay 2012-06-20T11:17:49 < Tectu> it works if steps is int 2012-06-20T11:17:53 < Tectu> it dosen't work with uint16:t 2012-06-20T11:24:01 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-20T11:24:09 -!- [7] [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-20T11:26:44 -!- [7] [~quassel@rockbox/developer/TheSeven] has quit [Read error: Operation timed out] 2012-06-20T11:27:55 < cjbaird> I'm thinking you need "buffer += (char)offset;" .. http://codepad.org/kRXyI3ke .. seems to work here. 2012-06-20T11:30:30 < cjbaird> "buffer += (int)offset;" would make the compile think you want pointer arthmetic with (4-byte wide) ints, then cast back to char* .. (char)offset keeps it in bytes. 2012-06-20T11:31:07 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-20T11:31:28 < Tectu> i see 2012-06-20T11:31:35 < Tectu> thanks cjbaird 2012-06-20T11:50:57 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has joined ##stm32 2012-06-20T11:51:05 < Laurenceb_> http://www.youtube.com/watch?v=6YRrBueiEPc 2012-06-20T11:53:01 < Tectu> Laurenceb_, is it worth to look or just another taxidermistical quadrocopter? 2012-06-20T11:53:43 < Laurenceb_> you have to wait for it 2012-06-20T12:04:17 < cjbaird> Fucking Coward. It's only a sexual misconduct charge. 2012-06-20T12:05:16 < cjbaird> lol @ video, though. 2012-06-20T12:08:06 < dongs> wait what 2012-06-20T12:08:10 < dongs> it started off as some news 2012-06-20T12:08:12 < dongs> then turned homo 2012-06-20T12:08:28 < Laurenceb_> DJ Sash 2012-06-20T12:08:37 < dongs> is that assange dancing 2012-06-20T12:08:45 < dongs> otherwise im totally missing hte point 2012-06-20T12:08:54 < Laurenceb_> i think it is O_o 2012-06-20T12:09:03 < Laurenceb_> but yeah DJ Sash: Equador 2012-06-20T12:09:11 < Laurenceb_> old school :D 2012-06-20T12:15:37 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Read error: Operation timed out] 2012-06-20T12:16:23 < karlp> that's glaumbar in reykjavik. 2012-06-20T12:16:34 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-20T12:16:35 < karlp> only a couple of years ago. 2012-06-20T12:17:25 < karlp> here's the original: http://www.youtube.com/watch?v=vNqd4hW98sQ 2012-06-20T12:18:23 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-06-20T12:19:31 < karlp> zippe: what's "tpl" (a version already ported...) 2012-06-20T12:19:45 < karlp> also: "< zippe> dongs: LMI got it pretty right" wrt driver/periph libs, who/what is LMI? 2012-06-20T12:28:21 -!- peabody124 [~peabody12@stgt-5f718fa2.pool.mediaWays.net] has quit [Quit: peabody124] 2012-06-20T12:29:32 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-20T12:47:30 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 260 seconds] 2012-06-20T12:51:16 -!- peabody124 [~peabody12@stgt-5f718fa2.pool.mediaWays.net] has joined ##stm32 2012-06-20T12:58:08 < Thorn> this is a 2 layer pcb, right? http://www.olimex.com/dev/imx233-olinuxino-mini.html 2012-06-20T13:00:10 < Thorn> or 4 layer 2012-06-20T13:00:43 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-06-20T13:05:18 < cjbaird> My Lemote just got even moar awesome: http://i.imgur.com/UeeIt.jpg 2012-06-20T13:06:39 < cjbaird> imho that Olimex Mini is a waste of time. They've got a 'micro' breadboardable version of the same platform that not be a complete market flop. 2012-06-20T13:08:18 < cjbaird> Thorn: looking 4-layer, according to the others of that platform: http://www.olimex.com/dev/imx233-olinuxino-micro.html 2012-06-20T13:20:48 -!- peabody124 [~peabody12@stgt-5f718fa2.pool.mediaWays.net] has quit [Quit: peabody124] 2012-06-20T13:21:49 -!- izua [~izua@86.121.2.101] has joined ##stm32 2012-06-20T13:21:50 -!- izua [~izua@86.121.2.101] has quit [Changing host] 2012-06-20T13:21:50 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-20T13:21:52 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-20T13:26:48 < dongs> man this shit is still dumping 2012-06-20T13:32:04 <+dekar> cjbaird, I like the NOPs :) 2012-06-20T13:34:07 < cjbaird> That's the code from the other night, showing the difference that pointer crafting makes to GCC output.. 2012-06-20T13:40:00 <+dekar> hows the battery life for that lemote? 2012-06-20T13:41:17 < cjbaird> It's just 3 cells, so about 90 minutes. 2012-06-20T13:41:40 <+dekar> that sucks, I guess I'd rather get an atom them 2012-06-20T13:42:12 <+dekar> I mean it doesn't seem to be too cheap either, $450 on amazon :/ 2012-06-20T13:44:20 < dongs> lol, lemote 2012-06-20T13:44:37 < dongs> it has a color display? 2012-06-20T13:44:38 < cjbaird> I paid AU$500 about 2 ?3 years ago.. As I don't buy a new netbook whenever the next model comes out, I decided I'd get someone a little more distinctive. :) (MIPS!) 2012-06-20T13:44:38 < dongs> what hte fuck 2012-06-20T13:44:56 < dongs> i expectd it to have amber monochrome or something 2012-06-20T13:45:50 <+dekar> mips is cool, but it should match the battery life of a tablet at least 2012-06-20T13:45:53 <+dekar> like 10-12h 2012-06-20T13:46:33 < cjbaird> Although the next model of Lemote looks neat: 4 core @ 1.2GHz, at the same power usage. 2012-06-20T13:46:39 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has joined ##stm32 2012-06-20T13:47:15 <+dekar> it also has out of order execution, which the atom lacks :) 2012-06-20T13:47:44 <+dekar> though I'd guess I'd rather have an x86er or arm for the better software support 2012-06-20T13:48:21 <+dekar> gnu radio barely performs on ARM (using ARM neon) and completely falls back to all software without vectorization support for other architectures 2012-06-20T13:48:33 < cjbaird> The Loongson has quite a few parallel-math instruction extensions.. 2012-06-20T13:48:44 <+dekar> yeah but software has to support those 2012-06-20T13:48:55 <+dekar> I don't feel like adding them to gnu radio 2012-06-20T13:49:14 <+dekar> gcc auto-vectorization only gets you so far 2012-06-20T13:49:50 < cjbaird> The work has been put in where it most counts-- there's a loongson port of mplayer. :) 2012-06-20T13:51:18 <+dekar> :) 2012-06-20T14:00:05 < BrainDamage> you got a dvb key too? what are you decoding? 2012-06-20T14:00:28 < dongs> wat 2012-06-20T14:01:05 < BrainDamage> they found a debug mode in a dvb key usb interface chip that allows you to extract IQ raw samples 2012-06-20T14:01:22 < BrainDamage> this allows you to do baseband processing yourself, on your pc 2012-06-20T14:01:33 < BrainDamage> and use the dongle as simple downconverter + adc 2012-06-20T14:02:09 < BrainDamage> so you can get "any" signal which has bandwith of ~1MHz and range of 50 to 1.9GHz with some gap around 1.2GHz 2012-06-20T14:02:30 < BrainDamage> gnuradio is a lib that had a collection of many decoders, etc 2012-06-20T14:03:34 < BrainDamage> some people decoded gps, gsm, etc 2012-06-20T14:03:48 < BrainDamage> ( yes, gsm crypto suxxx ) 2012-06-20T14:04:43 < cjbaird> This sort of thing: http://sdr.osmocom.org/trac/wiki/rtl-sdr 2012-06-20T14:05:18 < cjbaird> I've got mine decoding local FM/AM/SSB vox, but I was really after the digital modes. :( 2012-06-20T14:14:32 <+izua> can't you get any digital modes? 2012-06-20T14:16:10 <+izua> olivia is done over fm, iirc 2012-06-20T14:18:00 <+izua> or was it ssb 2012-06-20T14:22:16 <+dekar> digital works fine for me 2012-06-20T14:22:35 <+dekar> BrainDamage, they fixed the gap with some driver changes 2012-06-20T14:22:49 < BrainDamage> impossibru 2012-06-20T14:22:50 <+dekar> at least people over at ##rtlsdr said so 2012-06-20T14:22:55 < BrainDamage> it's an hw limitation 2012-06-20T14:23:02 <+dekar> idk, didn't dig into it 2012-06-20T14:23:11 <+dekar> but multiple people reported it to work 2012-06-20T14:23:34 <+dekar> the problem was the PLL not locking, wasn't it? 2012-06-20T14:23:53 < BrainDamage> yes, because it was never designed to lock in that range itfp 2012-06-20T14:24:06 <+dekar> BrainDamage, also my RTL-SDR goes up to 2.2ghz 2012-06-20T14:24:14 < BrainDamage> afaik some non e4000 tuners allow you to tune in that range 2012-06-20T14:24:24 < BrainDamage> so does mine 2012-06-20T14:24:49 <+izua> dekar: so did you dug into digital modes? 2012-06-20T14:25:00 <+izua> can you actually listen to them with your sdr? 2012-06-20T14:25:04 < BrainDamage> but also afaik, those tuners use a sep mixer and input pin for those modes, which is grounded in the dvb key 2012-06-20T14:25:16 < BrainDamage> so you'd have to resolder it, and it's qfn 2012-06-20T14:25:39 <+dekar> BrainDamage, https://groups.google.com/forum/#!topic/ultra-cheap-sdr/LKldlLDINRE 2012-06-20T14:25:46 <+dekar> they say it's fixed 2012-06-20T14:26:22 < BrainDamage> "they are trying to keep them a secret" 2012-06-20T14:26:25 <+dekar> idk 2012-06-20T14:26:27 < BrainDamage> wat 2012-06-20T14:26:28 <+dekar> didn't care 2012-06-20T14:26:35 < BrainDamage> did it work? 2012-06-20T14:26:59 <+dekar> I don't know/care 2012-06-20T14:27:07 <+dekar> got no time for SDR atm 2012-06-20T14:27:09 <+dekar> maybe later 2012-06-20T14:27:18 <+dekar> in a few weeks :) 2012-06-20T14:27:26 <+dekar> BrainDamage, http://dekar.wc3edit.net/2012/05/24/multimonng/ 2012-06-20T14:27:33 <+dekar> that's what I have been doing with it so far 2012-06-20T14:39:26 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 246 seconds] 2012-06-20T14:49:03 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Ping timeout: 255 seconds] 2012-06-20T14:51:04 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-06-20T14:52:35 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Quit: Quitte] 2012-06-20T14:53:22 < dongs> im thinking of doing a board for SDR using the mirics usb shit 2012-06-20T14:53:47 < dongs> 150khz>2ghz and I think it can do much more htan 1mhz worth of bandwidth 2012-06-20T14:56:25 < cjbaird> Seems the Australian V& is getting heavy on quadcopters and the like (see comments): http://www.howtospotapsychopath.com/2012/06/20/like-being-a-rather-small-superhero/ 2012-06-20T14:57:27 < cjbaird> The video scenery at least looks heaps better than dongs shithole. 2012-06-20T14:58:18 < Tectu> cjbaird, wtf did i just read 2012-06-20T14:59:06 < cjbaird> tl;dr : the airspace people in Australia are bothering R/C people. 2012-06-20T14:59:45 < Tectu> i meant this one: The video scenery at least looks heaps better than dongs shithole. 2012-06-20T15:00:57 < cjbaird> The link includes FPV form the Blue Mountains area. A lot more pictureseque than the mozzie pond dongs lives near. 2012-06-20T15:08:45 < dongs> http://i.imgur.com/dAz6h.jpg cool bga bro http://i.imgur.com/zbliw.jpg 2012-06-20T15:11:22 < Laurenceb> you work for yamaha? 2012-06-20T15:11:35 < dongs> why would I do such silly thing 2012-06-20T15:11:36 < Tectu> you work for yamaha? 2012-06-20T15:13:29 < Laurenceb> http://www.prnewswire.com/news-releases/yamaha-launches-worlds-first-audio-and-voice-hub-codec-ic-ymu828-with-built-in-dual-mic-noise-suppressor-124171709.html 2012-06-20T15:13:59 < dongs> ya that shit 2012-06-20T15:14:51 < karlp> dongs, are you commenting on how few balls are actually connected to anything? 2012-06-20T15:14:54 < Laurenceb> what bus does it sit on? 2012-06-20T15:14:59 < dongs> karlp: they're all connected 2012-06-20T15:15:07 < dongs> its via in pad 2012-06-20T15:15:10 < dongs> on 4 layers 2012-06-20T15:15:19 < karlp> right, didn't think I could be reading it right. 2012-06-20T15:15:28 -!- dekar [~dekar@dslb-188-107-082-087.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep] 2012-06-20T15:15:55 < dongs> Laurenceb: i2s of course 2012-06-20T15:15:59 < Laurenceb> ah 2012-06-20T15:16:10 < dongs> but also i2c for control 2012-06-20T15:16:23 -!- dekar [~dekar@dslb-188-107-082-087.pools.arcor-ip.net] has joined ##stm32 2012-06-20T15:16:26 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-20T15:17:54 -!- dekar [~dekar@dslb-188-107-082-087.pools.arcor-ip.net] has quit [Client Quit] 2012-06-20T15:36:28 < Thorn> >the first Cortex A8 available in eLQFP176 package the Allwinner Technology 2012-06-20T15:36:49 < Thorn> >the Allwinner Technology Inc A13 2012-06-20T15:40:08 < Thorn> (note that this eLQFP176 apparently doesn't even have center pad) 2012-06-20T15:50:52 < Laurenceb> nice 2012-06-20T15:51:24 < Laurenceb> fun fact: london hackspace is next to the autistic society 2012-06-20T15:54:58 < dongs> free rapeberrypi if you show them your retard certificate 2012-06-20T15:56:00 < Laurenceb> assangepi 2012-06-20T15:56:21 < dongs> exactly 2012-06-20T16:07:01 < dongs> srs heat spreading http://i.imgur.com/zJGfH.jpg 2012-06-20T16:14:59 < Laurenceb> wtf 2012-06-20T16:15:05 < Laurenceb> ram stick? 2012-06-20T16:15:31 < dongs> yae 2012-06-20T16:18:51 < zyp> found a store selling discovery boards today, thinking about picking up a few different ones 2012-06-20T16:19:46 < dongs> attn Laurenceb http://www.intimategadgets.com/product/108307 2012-06-20T16:20:25 < zyp> they didn't have the F0 board though 2012-06-20T16:20:34 < dongs> store selling discovery boards in japan? 2012-06-20T16:20:37 < dongs> where the FUCK did you go looking? 2012-06-20T16:20:46 < zyp> akihabara of course 2012-06-20T16:20:47 < dongs> i went to akikebara last weekend to buy some 0805 SMD resistors 2012-06-20T16:20:54 < dongs> there was NOTHING but through-hole trash 2012-06-20T16:21:07 < dongs> in marutsu parts / akizuki / some other gay place i forgotten 2012-06-20T16:21:25 < zyp> I think it was marutsu selling the discovery boards 2012-06-20T16:21:29 < dongs> haha 2012-06-20T16:21:35 < dongs> worthless palce. 2012-06-20T16:23:29 < Laurenceb> Bring great excitement to you 2012-06-20T16:24:02 < zyp> they also had the spartan 6 microboards, so I'm considering picking up one of those too 2012-06-20T16:28:32 < Laurenceb> you speak japanese? 2012-06-20T16:31:09 -!- dekar [~dekar@dslb-188-107-082-087.pools.arcor-ip.net] has joined ##stm32 2012-06-20T16:31:09 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-20T16:32:08 < zyp> Laurenceb, me? a little bit 2012-06-20T16:34:50 < Thorn> plugged in my ft2232h board. one serial port was recognized immediately, for the other one windows downloaded a new driver and asked for restart. x_x 2012-06-20T16:35:02 < dongs> you fail 2012-06-20T16:35:11 < Thorn> me fail?! 2012-06-20T16:35:19 < Thorn> me didn't do anything 2012-06-20T16:35:24 < Laurenceb> windows fails 2012-06-20T16:35:49 < Thorn> right now one port is using driver 2.8.14.0 and the other 2.8.24.0 2012-06-20T16:36:07 < dongs> congrats. 2012-06-20T16:36:10 < dongs> and i bet you had something using it 2012-06-20T16:36:13 < dongs> while you were installing it 2012-06-20T16:36:16 < dongs> liek another ftdi dongle 2012-06-20T16:36:17 < Thorn> what else do you expect from an OS that is a favorite of dongs 2012-06-20T16:36:19 < dongs> why hte fuck do people use ftdi anyway 2012-06-20T16:36:28 < dongs> there has been 10x cheaper replacements to that shit for years 2012-06-20T16:37:43 < Thorn> this is not a dong-le, this is my interface board 2012-06-20T16:38:26 < Thorn> linux doesn't play games like this 2012-06-20T16:38:42 < BrainDamage> linux allows libusb drivers 2012-06-20T16:38:43 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-20T16:38:47 < dongs> lunix doesnt even have working ftdi drivers 2012-06-20T16:38:50 < BrainDamage> windows wants a kernelspace driver 2012-06-20T16:38:51 -!- [7] [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-20T16:39:16 < zyp> with the current abundance of usb capable microcontrollers, dedicated usb-serial chips are kind of obsolete 2012-06-20T16:39:26 < dongs> hardly 2012-06-20T16:39:37 < dongs> i for one dont feel like figuring out usb/cdc shit and making bootloaders and crap 2012-06-20T16:39:53 < dongs> though I guess if there's DFU thts another story. 2012-06-20T16:40:38 < Thorn> I almost agree, now if only ftdi had an interrupt capability 2012-06-20T16:41:39 < zyp> adding software is cheaper than adding another chip, both if you are considering BOM and board area 2012-06-20T16:42:51 < BrainDamage> unless the hw is already there 2012-06-20T16:42:58 < BrainDamage> and you want to extend functionality 2012-06-20T16:43:37 < zyp> though, I guess you can argue that you have to have a fair production volume before the cost of the chips are larger than the time invested in getting usb working 2012-06-20T16:45:37 < Laurenceb> cp2102 is nice 2012-06-20T16:45:47 < Laurenceb> or just usb-cdc on an stm 2012-06-20T16:46:28 < dongs> zyp, indeed. cp2102 for 70c or whatever the fuck makes much more sense than idiot users trashing the bootloader. 2012-06-20T16:46:51 < dongs> i mean people are having trouble with usb>serial bootloader, holy fuck imagine the support idiocy if there was no failsafe way to go back. 2012-06-20T16:47:10 < zyp> trashing bootloader how? 2012-06-20T16:47:30 < dongs> zyp, i get about one idiot every other week who can't figure out how to use fucking flash loader demonstrator. 2012-06-20T16:47:38 < dongs> or claiming they "fried" boards by reflashing them 2012-06-20T16:47:47 < dongs> and this is with bootloader in hardware. 2012-06-20T16:47:54 < zyp> if the bootloader doesn't allow overwriting itself, it can't trash itself 2012-06-20T16:48:00 < dongs> i dunno, pulling usb half-write, or uploading some avr .hex file or whatever. 2012-06-20T16:48:14 < dongs> zyp, when there's enough idiots, they will find a way 2012-06-20T16:48:20 < zyp> and if people still manage to overwrite the bootloader, they have the means to write it back 2012-06-20T16:48:58 -!- [7] [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-20T16:49:04 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-20T16:49:23 < Laurenceb> the serial bootloader is rom isnt it? 2012-06-20T16:49:29 < Laurenceb> so it cant be overwritten 2012-06-20T16:49:34 < dongs> right... 2012-06-20T16:49:35 < zyp> it's in a locked area of flash 2012-06-20T16:49:40 < Laurenceb> ok 2012-06-20T16:49:44 < Laurenceb> oh but its serial 2012-06-20T16:49:46 < Laurenceb> doh 2012-06-20T16:49:53 < dongs> on F2/F4 there's USB too. 2012-06-20T16:49:55 < zyp> oh, and the one in F2/F4 supports usb as well 2012-06-20T16:49:58 < Laurenceb> yeah 2012-06-20T16:49:59 < zyp> :p 2012-06-20T16:50:06 < Laurenceb> but dongs has an F1 board 2012-06-20T16:50:12 < zyp> only OTG_FS though, not HS 2012-06-20T16:50:18 < Laurenceb> so he needs usb-serial to be noobproof 2012-06-20T16:50:51 < zyp> it's just moving the problem to another chip 2012-06-20T16:50:58 < Laurenceb> no 2012-06-20T16:51:03 < zyp> sure it is 2012-06-20T16:51:05 < Laurenceb> cuz you cant brick a cp2102 2012-06-20T16:51:22 < zyp> sure I can 2012-06-20T16:51:23 < Thorn> okay now I have 5 boards running at the same time but only one debugger 2012-06-20T16:51:39 < Thorn> well, 3 stm32 boards 2012-06-20T16:51:41 < zyp> Laurenceb, how much heat do you think it'll handle :p 2012-06-20T16:51:45 < Laurenceb> lol 2012-06-20T16:52:59 < Thorn> I need to try and do a jtag chain from 3 boards 2012-06-20T16:53:07 < zyp> I don't see why a bootloader that doesn't allow overwriting itself is any less noobproof than unwritable hardware 2012-06-20T16:53:41 < zyp> if you argue that the bootloader can be erased by other means, I argue that another chip can be physically damaged 2012-06-20T16:53:43 < Laurenceb> but stm32 doesnt have flashlockbits does it? 2012-06-20T16:53:47 < Laurenceb> unlike avr 2012-06-20T16:53:54 < dongs> it does 2012-06-20T16:53:58 < dongs> you can protect pages 2012-06-20T16:54:01 < Laurenceb> permanent? 2012-06-20T16:54:07 < dongs> until serial bootloader, sure 2012-06-20T16:54:13 < dongs> i dont think you can set it outside bootloader 2012-06-20T16:54:18 < Laurenceb> oh ok 2012-06-20T16:54:35 < Laurenceb> you could protect the usb bootload flash then 2012-06-20T16:54:45 < zyp> I'm pretty sure they can be set via jtag as well 2012-06-20T16:55:47 < Laurenceb> ok, problem sorted 2012-06-20T16:56:00 < dongs> people will still fuck something up. 2012-06-20T16:56:30 < Laurenceb> hmm... fat32 file system that mounts the onboard flash as mass storage 2012-06-20T16:56:37 < BrainDamage> ass storage 2012-06-20T16:56:38 < Laurenceb> then you stick a .bin on there 2012-06-20T16:56:50 < dongs> ya that sounds like hueg bloatware 2012-06-20T16:56:54 < Laurenceb> reboot and the bootloader detects the .bin and uses it to write the flash 2012-06-20T16:57:04 < Laurenceb> it would be very noob friendly 2012-06-20T16:57:16 < BrainDamage> there's many fw update systems that do that actually 2012-06-20T16:57:25 < zyp> mbed for instance 2012-06-20T16:57:26 < BrainDamage> read file from usb stick 2012-06-20T16:57:41 < Laurenceb> thats usb otg surely? 2012-06-20T16:57:55 < Laurenceb> i guess usb dfu is the way to go 2012-06-20T16:58:10 < Laurenceb> im going to use mass sotrage on my logger 2012-06-20T16:58:15 < Laurenceb> but that has an sd card 2012-06-20T16:58:17 < zyp> I looked at the dfu specs once 2012-06-20T16:58:30 < Laurenceb> are they horrific? 2012-06-20T16:58:40 < zyp> nah, they are pretty simple 2012-06-20T16:58:46 < Laurenceb> ok 2012-06-20T16:58:49 < dongs> cant be much worse than this fucking nand flash trash 2012-06-20T16:58:50 < zyp> but not very flexible 2012-06-20T16:59:15 < Laurenceb> why does my phone get ">pers" 2012-06-20T16:59:22 < Laurenceb> texts 2012-06-20T16:59:57 < zyp> the thing with the dfu specs is that they are written so that any dfu loader software could be used with any dfu target 2012-06-20T17:00:03 < Laurenceb> full of undisplayed characters 2012-06-20T17:00:26 < zyp> because it's just transferring a binary image 2012-06-20T17:00:42 < karlp> what sort of limitations are a problem? 2012-06-20T17:00:53 < karlp> dfu sounds like a pretty good idea to have burnt into rom 2012-06-20T17:00:55 < zyp> the only requirement is that the binary file that's transferred ends with a dfu header 2012-06-20T17:01:34 < zyp> but the format is otherwise unspecified, so it could be whatever your bootloader on the dfu target expects 2012-06-20T17:01:51 < Laurenceb> http://www.flickr.com/photos/65670117@N02/7381721836/ <- lulwut 2012-06-20T17:02:06 < dongs> fucking faggots. 2012-06-20T17:02:21 < zyp> karlp, the main limitation I noticed was the linear transfer of the files 2012-06-20T17:02:45 < Laurenceb> arg no 470nF caps :( 2012-06-20T17:02:49 < karlp> just meaning you always had to load the entire image, or what? 2012-06-20T17:02:50 < zyp> I was hoping that the bootloader could request specific ranges of the file 2012-06-20T17:02:54 < karlp> right. 2012-06-20T17:02:57 < Laurenceb> why is there no capacitor cornershop :( 2012-06-20T17:03:08 < zyp> Laurenceb, there are in akihabara :p 2012-06-20T17:03:10 < dongs> Laurenceb: stop failing at designing shit r ight on the first try 2012-06-20T17:03:15 < karlp> well, just hope that the DFU rom is fast enough not to care :) 2012-06-20T17:03:19 < dongs> yeah if you wanted some throughhole 470nf caps 2012-06-20T17:03:25 < Laurenceb> lmao 2012-06-20T17:03:32 < zyp> dongs, you didn't look hard enough 2012-06-20T17:03:34 < karlp> but I guess that prevents you from using a certain block of flash as eeprom emul or something too doesn't it 2012-06-20T17:03:55 < zyp> karlp, you don't have to load it continously into flash 2012-06-20T17:03:59 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Ping timeout: 272 seconds] 2012-06-20T17:04:04 < zyp> you can interpret the image as you like 2012-06-20T17:04:26 < dongs> zyp, there is nowhere to look "harder", all teh shit is useless old dusty throgh-hole shit 2012-06-20T17:04:32 < zyp> I was thinking of making a dfu bootloader capable of interpreting elf files directly 2012-06-20T17:04:37 < dongs> zyp: youre welcome to show pics of a store in akikebara selling smd shit. 2012-06-20T17:04:45 < dongs> until you do, you're full of shit. 2012-06-20T17:05:03 < zyp> dongs, I walked through stores selling reels today 2012-06-20T17:06:15 < dongs> pics or it didnt happen. 2012-06-20T17:06:48 < zyp> ok, I'll try to remember to bring my camera next time I'm going to akihabara 2012-06-20T17:12:16 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-20T17:12:46 <+dekar> who are all those people failing to flash those stm32, is that a product you sell? 2012-06-20T17:13:08 < zyp> he sells quadrotor controller boards 2012-06-20T17:13:43 <+dekar> I am quite happy with the HID bootloader I made, our web-application updates the firmware without any trouble or risk of brick 2012-06-20T17:14:08 <+dekar> in the worst case it has to reflash the firmware, it does that automatically though 2012-06-20T17:14:19 <+dekar> and I don't think that happened before 2012-06-20T17:14:39 < zyp> abusing HID to get driverless usb usage on windows sounds so dumb 2012-06-20T17:14:47 < dongs> no, it sounds so great 2012-06-20T17:14:56 <+dekar> zyp, user experience is great 2012-06-20T17:15:14 < dongs> zyp, because CDC is annoying. 2012-06-20T17:15:37 < zyp> I mean, the fact that there is a point to using HID for non-HID purposes like that 2012-06-20T17:16:12 <+dekar> CDC still needs you to install a "driver" on windows iirc 2012-06-20T17:16:18 <+dekar> I think I did evaluate that 2012-06-20T17:16:27 < dongs> it does 2012-06-20T17:16:30 < dongs> and you need to sign it 2012-06-20T17:16:31 <+dekar> windows almost always looks at the VID/PID 2012-06-20T17:16:33 < dongs> for 64bit. 2012-06-20T17:16:35 < zyp> no, windows needs you to install a driver for CDC 2012-06-20T17:16:54 < dongs> zyp, openpilot also uses hid for thier shit 2012-06-20T17:16:55 < dongs> telemetry too 2012-06-20T17:17:09 <+dekar> and HID just works in a really convenient way 2012-06-20T17:17:31 < zyp> the problem is not with CDC, the problem is that windows don't handle standard classes in a sane way 2012-06-20T17:17:32 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Ping timeout: 246 seconds] 2012-06-20T17:17:40 < dongs> no it isnt 2012-06-20T17:17:49 <+dekar> USB on linux sucks as well though, by default on most distributions you can't access usb devices 2012-06-20T17:18:03 <+dekar> you need to install UDEV rules and the like to change permissions 2012-06-20T17:18:08 < dongs> haha distributions. 2012-06-20T17:18:49 <+dekar> so we only support Debian and Ubuntu right now 2012-06-20T17:19:00 <+dekar> offering a .deb doing the job 2012-06-20T17:19:06 < zyp> dekar, on OS X you have access to all usb devices by default 2012-06-20T17:19:13 <+dekar> zyp, yeah I like that 2012-06-20T17:19:14 < Tectu> dekar, USB just sucks because lack of configuration 2012-06-20T17:19:25 < dongs> why bother supporitng lunix at all 2012-06-20T17:19:35 < dongs> does it even make sense commercially 2012-06-20T17:19:49 <+dekar> zyp, not for all though, if there is a standard driver loaded already, then you can't open the device unless you unload the kernel driver 2012-06-20T17:19:55 < zyp> but yeah, I don't understand why ubuntu and stuff like that doesn't add users to a group allowing access to all usb devices by default 2012-06-20T17:20:05 < zyp> dekar, that's obvious 2012-06-20T17:20:08 < dongs> why is this even an issue in the first place 2012-06-20T17:20:18 < dongs> user groups? a ccesses? usb devices? in 2012? what the fuck. 2012-06-20T17:20:34 <+dekar> dongs, we have a bunch of customers who use linux, probably around 5-10% 2012-06-20T17:20:38 < dongs> whats next, tehy'll bring back the root:floppy group 2012-06-20T17:20:47 < BrainDamage> dongs: windows doesn't even allow userspace drivers, so troll yourself 2012-06-20T17:20:54 < Tectu> dekar, what are you producing 2012-06-20T17:20:59 <+dekar> I mean most people who use our product are system administrators and network technicians 2012-06-20T17:21:00 < dongs> BrainDamage: hello winUSB has been around since pre-vista and supported on XP + 2012-06-20T17:21:00 < zyp> dongs, there are no multi-user servers in 2012? 2012-06-20T17:21:02 < Tectu> BrainDamage, nice one 2012-06-20T17:21:18 < dongs> BrainDamage: also WUDF, I think vista+ 2012-06-20T17:21:21 <+dekar> Tectu, http://www.flexoptix.net/flexbox-v2-transceiver-programmer.html 2012-06-20T17:21:29 < dongs> both usermode drivers for either usb or other devices 2012-06-20T17:21:42 < BrainDamage> with some limitations 2012-06-20T17:21:45 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-20T17:21:49 < BrainDamage> I never checked WUDF 2012-06-20T17:21:54 < BrainDamage> I mean @ winusb 2012-06-20T17:22:00 < dongs> BrainDamage: i'd take winusb limitations over the pathetic opensores trash that is libusb 2012-06-20T17:22:08 < dongs> (there arent any btw) 2012-06-20T17:22:22 < dongs> but libusb installing itself as filter driver on top of EVERY usb device is FUCKING IDIOTIC 2012-06-20T17:22:39 < karlp> yes yes, we all love and hate all the various hacks around usb. 2012-06-20T17:22:45 < zyp> dongs, can you do isochronous shit with winusb? 2012-06-20T17:22:50 < dongs> of course 2012-06-20T17:22:59 < dongs> it does control/bulk/iso 2012-06-20T17:23:02 < dongs> why the fuck wouldnt it? 2012-06-20T17:23:10 < Thorn> winusb? 2012-06-20T17:23:15 < Thorn> does iso? 2012-06-20T17:23:18 <+dekar> I stopped using LibUSB when it somehow didn't work for HID devices plugged into USB3 ports 2012-06-20T17:23:19 < zyp> hmm 2012-06-20T17:23:34 < zyp> I checked, winusb doesn't support isochronous transfers 2012-06-20T17:23:59 < dongs> oh, maybe it doesnt. who teh fuck cares. iso on usb sucks anyway. shrug. 2012-06-20T17:24:01 < zyp> also doesn't support having several applications accessing one device at the same time 2012-06-20T17:24:02 < Tectu> dekar, afaik easiest way is to write up the USB driver module yourself ^^ 2012-06-20T17:24:14 < zyp> so, there's two limitations for you 2012-06-20T17:24:15 < Tectu> or use abstractions like ttyUSB or ttyACM 2012-06-20T17:24:30 < dongs> two? where's the first one 2012-06-20T17:24:39 < dongs> almost nothing uses iso and if it does, it can also do bulk 95% of the time 2012-06-20T17:24:42 <+dekar> Tectu, I started to write my own abstraction layer using native OS apis 2012-06-20T17:24:51 < Tectu> dekar, wtf? 2012-06-20T17:24:55 < Tectu> dekar, can you tell me more? 2012-06-20T17:24:58 <+dekar> but then hidapi fixed some bugs and I switched to that 2012-06-20T17:25:09 < dongs> and if you *really* must have iso, cypress cyusb DOES support it. 2012-06-20T17:25:09 < zyp> dekar, like reinventing libusb? :p 2012-06-20T17:25:26 < dongs> and its a proper driver not some fucking opensores filterdriverhack 2012-06-20T17:25:29 <+dekar> zyp, HID only 2012-06-20T17:25:29 < Thorn> how else would you do audio over usb, other than isochronous? 2012-06-20T17:25:32 <+dekar> Tectu, https://github.com/EliasOenal/hideous 2012-06-20T17:25:57 < BrainDamage> I'd be really curious about dongs being submitted to a double blind test about "opensores" libs 2012-06-20T17:26:09 < BrainDamage> like give him 2 apis with license stripped and let him judge the quality 2012-06-20T17:26:10 <+dekar> lol 2012-06-20T17:26:25 < dongs> BrainDamage: I could spot opensores API a mile away. 2012-06-20T17:26:37 < BrainDamage> yes, that's what I'd love to verify 2012-06-20T17:26:40 < dongs> it would be all_lower_case, with nonsensical_register_names and retarded shit that makes no sense. 2012-06-20T17:27:02 < Tectu> dekar, I am not quite sure here, but at least archlinux dosen't use libusb anymore 2012-06-20T17:27:09 < Tectu> because of not supported anymore 2012-06-20T17:27:10 <+dekar> Tectu, it was a rather useless exercise, but I still think HIDeous is an epic name for an HID lib 2012-06-20T17:27:12 < Tectu> they use libusbx now 2012-06-20T17:27:25 < Tectu> yeah, the name is epic indeed 2012-06-20T17:27:25 < zyp> dekar, ha, I like it 2012-06-20T17:27:45 < Tectu> dekar, libusbx shall be far better, but you might as BrainDamage, maybe he knows more 2012-06-20T17:27:49 < zyp> hmm, never heard of libusbx 2012-06-20T17:28:30 < Tectu> zyp, libusb got somehow dropped / not activly developed anymore 2012-06-20T17:28:45 < Tectu> so someone made libusbx http://libusbx.org/ 2012-06-20T17:28:58 < zyp> yeah, I'm reading there now 2012-06-20T17:29:05 < karlp> so. anyone got any experience with canopen? 2012-06-20T17:29:10 < karlp> love/hate or other? 2012-06-20T17:29:59 < Tectu> canopen? 2012-06-20T17:30:01 < zyp> that's one of the higher layer can protocols? 2012-06-20T17:30:12 < Tectu> is that some japan robot which opens cans for you? 2012-06-20T17:30:20 < Tectu> ah, CAN -.- 2012-06-20T17:30:36 <+dekar> / hideous is a library for "driverless" usb communication. 2012-06-20T17:30:36 <+dekar> / Ignore all the haters telling you HID wasn't meant to be used for whatever you're doing, 2012-06-20T17:30:36 <+dekar> / as long as is works and has a great user experience you're doing it right! :) 2012-06-20T17:30:43 <+dekar> that's from my header :) 2012-06-20T17:30:47 < zyp> I don't have any experience with any, but I read a bit on upper layer can protocols once 2012-06-20T17:31:07 < Tectu> zyp, so what do you think of libusbx? 2012-06-20T17:31:51 < zyp> well, it's a fork of libusb 2012-06-20T17:32:04 < Tectu> thank you. 2012-06-20T17:32:10 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Ping timeout: 260 seconds] 2012-06-20T17:32:21 < zyp> so I guess it's pretty similar in API, with some improvements 2012-06-20T17:32:29 < dongs> at least winusb finally paid $100 to get their 64bit windows drivers signed. 2012-06-20T17:32:32 < dongs> took them about 5 years 2012-06-20T17:33:16 < zyp> looks like libusbx is mostly libusb compatible 2012-06-20T17:33:18 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-20T17:33:36 <+dekar> dongs, sounds awesome that winusb 2012-06-20T17:33:39 < zyp> not much to think of it then 2012-06-20T17:34:35 < zyp> «it provides a drop-in replacement for existing libusb based code» 2012-06-20T17:35:16 < dongs> dekar, it works great. i've got a bunch of tv/usb related shits that use winusb, the driver is just part of the app, and installing it is just inf + winusb installer from msft. 2012-06-20T17:36:07 < Tectu> what is msft 2012-06-20T17:36:17 < dongs> ... 2012-06-20T17:36:20 < karlp> hehe 2012-06-20T17:36:34 < zyp> dongs, i.e. just like using libusb with the winusb backend 2012-06-20T17:36:55 < dongs> zyp, without the fucking aids. 2012-06-20T17:38:24 < dongs> winusb already *works* why would i need an opensores abstration fail on top of something that already works? 2012-06-20T17:38:31 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Ping timeout: 265 seconds] 2012-06-20T17:38:54 <+dekar> dongs, to support other architectures 2012-06-20T17:39:10 < dongs> irrelevant ones? 2012-06-20T17:39:15 < zyp> dongs, because that allows you to compile an application written for «lunix» on a «real» os? 2012-06-20T17:39:28 < Thorn> >winusb finally paid $100 to get their 64bit windows drivers signed 2012-06-20T17:39:30 < Thorn> wat 2012-06-20T17:39:33 < dongs> zyp, youre funny. compiling a lunix app on windows in a compiler? 2012-06-20T17:39:36 < dongs> when was last time you tried that 2012-06-20T17:39:44 <+dekar> dongs, people make a living off non-windows-systems, so they aren't irrelevant 2012-06-20T17:39:44 < dongs> Thorn: oh, i meant libusb 2012-06-20T17:39:56 < zyp> oh, last year 2012-06-20T17:41:02 < zyp> the project I worked on before I started working at STE included some third party components in binary form that would only work with MSVC 2012-06-20T17:41:25 < dongs> i wish all closedsource shit would do that 2012-06-20T17:41:33 < dongs> because microsoft compiler is by far the best one out there. 2012-06-20T17:41:42 <+dekar> dongs, ICC is faster :P 2012-06-20T17:41:52 < dongs> i fiigured someone would say that. 2012-06-20T17:41:56 < zyp> I had to waste a few hours to remove C99 stuff from the module I wrote earlier, so it would build with MSVC, because C99 support in MSVC is fucking broken 2012-06-20T17:42:04 < dongs> wrong 2012-06-20T17:42:12 < dongs> C99 fucking sucks and you know it 2012-06-20T17:42:18 < dongs> its called "gccisms" 2012-06-20T17:42:22 < Thorn> msvc itself is broken 2012-06-20T17:42:29 <+dekar> dongs, also MSVC lags behind a lot, I had to update from visual studio 2008 to 2010 to get stdint.h 2012-06-20T17:42:38 < Thorn> how ablut std::map, ...> 2012-06-20T17:42:41 < dongs> yteah heard that horror story 2012-06-20T17:42:44 < dongs> Thorn: STL, really? 2012-06-20T17:42:46 < dongs> in 2012? 2012-06-20T17:42:47 < Thorn> they refused to fix this in msvc2010 2012-06-20T17:42:52 < dongs> whats next, you'll tell me youre using boost? 2012-06-20T17:43:20 < Thorn> of course. std::map works even in msvc2010 2012-06-20T17:44:02 <+dekar> I am glad minGW is an option on windows 2012-06-20T17:44:06 < zyp> when did STL get a tuple template? 2012-06-20T17:44:27 < Thorn> in 2011 2012-06-20T17:44:34 < zyp> right 2012-06-20T17:44:55 < Thorn> they stole it (and everything else) from boost, of course 2012-06-20T17:44:55 < zyp> so why do you expect MSVC 2010 to support it? 2012-06-20T17:45:01 < zyp> ha 2012-06-20T17:45:04 < zyp> «stole» 2012-06-20T17:45:17 < zyp> it's more like boost is a testing ground for future C++ stuff 2012-06-20T17:45:17 < Thorn> because it claims to support it 2012-06-20T17:51:14 < dongs> a99-29a 2012-06-20T17:51:46 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-20T17:54:16 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-20T17:54:25 -!- [7] [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-20T17:59:56 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-20T18:01:08 -!- [7] [~quassel@rockbox/developer/TheSeven] has quit [Ping timeout: 240 seconds] 2012-06-20T18:42:08 < zippe> karlp: tpl is a C serialisation library 2012-06-20T18:42:56 < zippe> karlp: And LMI is Luminary Micro, inc., now a division of TI. They were responsible for the Stellaris CortexM3 SoCs, some of the first M3 silicon to hit the market. 2012-06-20T18:43:20 < zippe> Their "driver library" is actually a driver library 2012-06-20T18:43:22 < zippe> It works well. 2012-06-20T18:44:08 < karlp> with this stellarisWare stuff? 2012-06-20T18:47:53 < Laurenceb> sounds stellar to me 2012-06-20T18:47:59 < Thorn> why absolutely no lm3s* boards for amateurs out there? (afaik) 2012-06-20T18:48:05 < dongs> ??? 2012-06-20T18:48:12 < Laurenceb> huh 2012-06-20T18:48:16 < dongs> make pcb, solder LM3s, profit. 2012-06-20T18:48:48 < Thorn> why nobody sells that? maybe price/availability issues? 2012-06-20T18:49:06 < zippe> Thorn: because the LMI eval boards are cheap and they have everything you need 2012-06-20T18:50:43 < Thorn> you can say the same about stm32 discovery boards, but everybody and their dong makes their own 2012-06-20T18:50:52 < zippe> Thorn: *shrug* 2012-06-20T18:50:59 < zippe> And how profitable is that? 2012-06-20T18:51:22 < zippe> Regardless, the LM3 parts work, they're cheap, and the StellarisWare stuff doesn't suck. 2012-06-20T18:51:33 < zippe> I've built Real Products™ with it. 2012-06-20T18:52:57 < zippe> For a long time I used the S2E boards instead of FTDIs, because I dislike USB 2012-06-20T18:59:13 -!- cjbaird [~cjb@ppp121-44-81-126.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-20T20:28:32 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-20T20:28:34 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-20T20:29:34 <+Steffanx> nu 2012-06-20T20:30:12 < zyp> banana 2012-06-20T20:31:07 < zyp> so, how many stm32 discovery boards are there now, and which of them is useful to have? 2012-06-20T20:32:03 < zyp> the store I visited today had the VL, F4 and L1 ones, but not the F0 one, are there more? 2012-06-20T20:33:01 <+Steffanx> That's all afaik 2012-06-20T20:33:26 < zyp> oh, and they also had an stm8-one, but I'm not interested in that 2012-06-20T20:34:30 < BrainDamage> there's also W boards 2012-06-20T20:34:34 < BrainDamage> but they are not discovery 2012-06-20T20:34:47 < zyp> so, how's st-link v1 compared to v2 from a user perspective? is it pretty much equivalent, or a pain to deal with? 2012-06-20T20:34:53 < BrainDamage> AWFUL 2012-06-20T20:35:03 < zyp> how so? 2012-06-20T20:35:14 <+Steffanx> Crappy mass storage implementation .. ? 2012-06-20T20:35:37 < zyp> but how does that matter from a user perspective? 2012-06-20T20:35:44 <+Steffanx> Which you need a codeless kext for on os x 2012-06-20T20:35:49 < BrainDamage> sometimes not working, you need to add workarounds, etc 2012-06-20T20:35:51 < zyp> ah, right 2012-06-20T20:36:01 < BrainDamage> v2 is reliable 2012-06-20T20:36:26 < BrainDamage> also has some extensions to the debug protocol, that the open obsessive-compulsive disorder guys apparently put in 2012-06-20T20:36:41 < zyp> then I'll probably pass on the VL board, and pick up a L1 board 2012-06-20T20:36:54 < zyp> and a F0 board, should I come across one 2012-06-20T20:37:05 < BrainDamage> my personal reccomendation is L1 and F4 2012-06-20T20:37:24 < zyp> I already have two F4 boards 2012-06-20T20:37:26 < BrainDamage> as in, they are the most "different" 2012-06-20T20:38:36 < zyp> I'm thinking about making some setup for automated testing on different platforms 2012-06-20T20:39:49 < zyp> oh, and to me, L1 seems to be more similar to F4 than to F1 2012-06-20T20:40:20 < BrainDamage> really? with all the powersaving features? 2012-06-20T20:40:30 < BrainDamage> or do you mean stuff like DMA arch etc? 2012-06-20T20:41:06 < BrainDamage> ( unrelated, but I'd love a L0 chip series, chip and extremely low power ) 2012-06-20T20:41:19 < zyp> I haven't really looked much at L1, so I might be wrong, but as far as I've seen, L1 seems to follow the same register layout for the peripherals as F4 has 2012-06-20T20:41:47 < zyp> yeah, I've already predicted a future L0 2012-06-20T20:45:27 -!- jaeckel [~jaeckel@unaffiliated/jaeckel] has quit [Ping timeout: 245 seconds] 2012-06-20T20:47:06 -!- jaeckel [~jaeckel@jaeckel.eu] has joined ##stm32 2012-06-20T20:47:40 < karlp> I just saw a pdf with the L0 on it somewhere 2012-06-20T20:47:53 < karlp> some presentation or other 2012-06-20T20:48:18 < karlp> I agree with zyp, L1 periphs are more like f4 than f1. 2012-06-20T20:49:00 < karlp> zyp: I use a VL /stlinkv1) at home all the time, it's fine under linux. 2012-06-20T20:49:16 < karlp> you just use a quirks file thingy to tell the kernel never to ever try and use it as a disk. 2012-06-20T20:49:39 < karlp> until someone adds SWV/SWO support, they're basically the same 2012-06-20T20:50:03 < karlp> (I did update the stlink firmware with st's stlink tool) 2012-06-20T20:50:35 < zyp> oh, you can flash v2 firmware onto it? 2012-06-20T20:50:37 < karlp> the L1 board is cool, but it doesn't plug into a small breadboard, you need a long one. (if that matters) 2012-06-20T20:50:43 < karlp> no, but there was an updated v1 firmware 2012-06-20T20:50:46 < karlp> which made it more reliable 2012-06-20T20:50:49 < zyp> ah 2012-06-20T20:51:02 < karlp> though dongs said he attached a debugger to the stlink tool 2012-06-20T20:51:09 < karlp> and convinced it to flash the v2 firmware somehow 2012-06-20T20:51:10 < BrainDamage> the L0 doesn't 2012-06-20T20:51:12 < BrainDamage> err 2012-06-20T20:51:14 < BrainDamage> F0 2012-06-20T20:51:19 < zyp> hmm, I guess it could be possible to port blackmagic to it as well 2012-06-20T20:51:22 < BrainDamage> unless you remove the strip at bottom 2012-06-20T20:51:33 < karlp> F0 has no bottom strip I thought from the pictures 2012-06-20T20:51:39 < zyp> if it's not locked 2012-06-20T20:51:44 < BrainDamage> F1 2012-06-20T20:51:45 < karlp> VL board plugs into a breadboard if youð're careful with how it overhangs the end. 2012-06-20T20:51:56 < BrainDamage> yeah, the VL 2012-06-20T20:52:01 < karlp> I havemine plugged in at home, witha small breadboard on each side. 2012-06-20T20:52:07 < karlp> F0 looks nicer, without that bottom row 2012-06-20T20:52:26 <+Steffanx> isn't there already a stlink port zyp ? 2012-06-20T20:52:37 < zyp> hmm, might be 2012-06-20T20:52:43 < karlp> zyp: yeah, people have flashed versaloon onto it, so I'm sure bmp could be flashed too if you really wanted to. 2012-06-20T20:52:54 <+Steffanx> https://github.com/gsmcmullin/blackmagic/tree/master/src/platforms/stlink 2012-06-20T20:53:00 < zyp> ah, right 2012-06-20T20:53:37 <+Steffanx> It would be more interesting to be able to use the official bootloader 2012-06-20T20:54:02 <+Steffanx> So you get always get back to the original fw ( without extra wires) 2012-06-20T20:54:43 < karlp> what? 2012-06-20T20:55:10 <+Steffanx> stlink-bootloader => load other firmware ? 2012-06-20T20:55:36 < zyp> reverting to st-link doesn't sound very interesting after replacing it with something better 2012-06-20T20:55:49 <+Steffanx> Mwah, you still need other programmer 2012-06-20T20:56:23 < zyp> sure, I've lost count of how many I've got now 2012-06-20T20:56:34 < BrainDamage> when you have 2 discovery boards, you can use one to flash the other 2012-06-20T20:57:26 <+Steffanx> You, but you are not the average human zyp 2012-06-20T20:59:06 -!- jaeckel [~jaeckel@jaeckel.eu] has quit [Ping timeout: 265 seconds] 2012-06-20T20:59:53 <+dekar> zyp, is stlink better than versaloon? 2012-06-20T21:00:33 <+dekar> I am actually kinda annoyed by versaloon, they had support in upstream openOCD and they broke compatibility with firmware updates 2012-06-20T21:00:44 < zyp> never tried versaloon, but blackmagic beats stlink by far 2012-06-20T21:00:46 <+Steffanx> black magic probe ftw 2012-06-20T21:01:06 < FUZxxl> Hi guys! I need some help with an STM32l discovery board and the GNU toolchain. 2012-06-20T21:01:16 < karlp> you mean texane/stlink right? 2012-06-20T21:01:17 < FUZxxl> Is there any library ready to use for this thing? 2012-06-20T21:01:20 < FUZxxl> karlp: yeah 2012-06-20T21:01:32 < FUZxxl> The library shipped with stlink doesn't really work 2012-06-20T21:01:38 <+Steffanx> Not? 2012-06-20T21:01:41 < karlp> I mean, there's no particular reason that BMP should be any better than any other tool that properly uses the stlink hardware? 2012-06-20T21:01:48 < karlp> FUZxxl: wasn't really talking to you sorry :) 2012-06-20T21:01:57 < FUZxxl> karlp: hehe 2012-06-20T21:02:07 < FUZxxl> Steffanx: Where you talking to me? 2012-06-20T21:02:12 <+Steffanx> Yes 2012-06-20T21:02:15 < FUZxxl> nice 2012-06-20T21:02:20 < FUZxxl> Have a look at this: 2012-06-20T21:02:41 < FUZxxl> (wait a sec please) 2012-06-20T21:02:47 <+Steffanx> The bmp would be better karlp 2012-06-20T21:02:53 < Thorn> what software do you use with blackmagic? openocd? 2012-06-20T21:02:54 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving] 2012-06-20T21:02:59 <+Steffanx> GDB 2012-06-20T21:03:03 < karlp> bmp has it's own gdbserver 2012-06-20T21:03:15 < BrainDamage> what do you use to bridge it? 2012-06-20T21:03:17 <+Steffanx> On-chip gdbserver :) 2012-06-20T21:03:18 < karlp> which is why I'm not sure how a bmp is better than an stlink. 2012-06-20T21:03:22 < BrainDamage> I mean, it's an usb device 2012-06-20T21:03:26 <+Steffanx> serial 2012-06-20T21:03:28 <+Steffanx> CDC 2012-06-20T21:03:37 <+Steffanx> GDB has built-in stuff for that 2012-06-20T21:03:47 < BrainDamage> I didn't know that 2012-06-20T21:04:03 < Thorn> on-chip gdb server? sounds nice 2012-06-20T21:04:08 < Thorn> (if it works) 2012-06-20T21:04:12 < zyp> it does 2012-06-20T21:04:12 <+Steffanx> it works very well 2012-06-20T21:04:21 < zyp> no middleware needed 2012-06-20T21:04:43 < zyp> just plug it in and start gdb against the serial port instad of tcp port 2012-06-20T21:05:23 <+Steffanx> Just thank gsmcmullin for it, Thorn :) 2012-06-20T21:05:29 < FUZxxl> Steffanx: Have a look at this: https://github.com/texane/stlink/issues/89 2012-06-20T21:05:32 < Thorn> >It currently supports STM32, LM3s and LPC11xx 2012-06-20T21:05:41 < Thorn> wat, no lpc1768/69? 2012-06-20T21:05:50 < FUZxxl> Additionially, I am not quite sure about the legal status of this lib 2012-06-20T21:06:04 -!- jaeckel [~jaeckel@jaeckel.eu] has joined ##stm32 2012-06-20T21:08:22 < zyp> I don't really understand why the texane repo really needs to include examples 2012-06-20T21:08:36 <+Steffanx> ^^ 2012-06-20T21:08:40 < BrainDamage> same 2012-06-20T21:08:51 < BrainDamage> do one thing, and do it well 2012-06-20T21:08:54 < Thorn> also, no swv? 2012-06-20T21:09:03 < zyp> they don't have anything to do with st-link, and would be better off as a seperate repo 2012-06-20T21:09:08 <+Steffanx> There is experimental support Thorn 2012-06-20T21:09:14 < FUZxxl> I don't really understand all of the code in that lib; I decided to have a look at the spec and do that on my own. 2012-06-20T21:09:16 < zyp> Thorn, swv on a seperate endpoint 2012-06-20T21:09:20 < FUZxxl> Which isn't that much of a problem. 2012-06-20T21:09:24 < FUZxxl> My question: 2012-06-20T21:09:25 <+Steffanx> Thorn : https://github.com/gsmcmullin/magictpa 2012-06-20T21:09:41 < zyp> Steffanx, did you try it? 2012-06-20T21:09:45 < FUZxxl> When I compile code, some data might be placed in the .data section. 2012-06-20T21:09:47 <+Steffanx> Not yet 2012-06-20T21:10:04 < FUZxxl> If I flash that onto the chip, the data section gets placed into the ROM. 2012-06-20T21:10:13 < FUZxxl> I probably need to copy it into the RAM. 2012-06-20T21:10:16 <+Steffanx> I have the plugin installed, but actually forgot about it. Until now :) 2012-06-20T21:10:21 < zyp> FUZxxl, no 2012-06-20T21:10:41 < FUZxxl> zyp: Tell me more please. I am new to microcontrollers 2012-06-20T21:10:47 < zyp> oh, wait, I read you wrong 2012-06-20T21:10:52 < zyp> you are completely right 2012-06-20T21:11:04 < FUZxxl> zyp: What I think I need to do is: 2012-06-20T21:11:19 < FUZxxl> * let the linker load the section into the ROM 2012-06-20T21:11:20 < zyp> .data is stored in flash, and then it have to be copied to ram 2012-06-20T21:11:28 < FUZxxl> * my startup code moves it into the RAM 2012-06-20T21:11:46 < zyp> yes 2012-06-20T21:11:52 < FUZxxl> How can I tell GNU ld that all references to .data should be made relative to the effective address after copying? 2012-06-20T21:12:12 < zyp> seperate LMA and VMA 2012-06-20T21:12:15 < FUZxxl> uff 2012-06-20T21:12:25 < FUZxxl> I am not very familiar with this all... 2012-06-20T21:12:30 < FUZxxl> okay. 2012-06-20T21:12:36 < FUZxxl> let me RTFM a moment 2012-06-20T21:12:41 < zyp> http://cgit.jvnv.net/suzumebachi/tree/suzumebachi.ld <- see line 71 2012-06-20T21:12:51 < zyp> compare it to the same for the other sections 2012-06-20T21:12:59 < FUZxxl> okay. 2012-06-20T21:13:13 < zyp> the AT directive says that LMA and VMA are different 2012-06-20T21:13:26 < FUZxxl> For the initial starting script, is there some free script I can use? I would also like to write my own as an excercise 2012-06-20T21:13:50 <+Steffanx> I think you get 'steal' the one from zyp FUZxxl 2012-06-20T21:14:04 < zyp> you can use the one I linked 2012-06-20T21:14:11 < FUZxxl> Steffanx: Does that one work for this board as well? 2012-06-20T21:14:19 < FUZxxl> Is there anything else I need to pay attention to? 2012-06-20T21:14:26 <+Steffanx> Ram and flash size 2012-06-20T21:14:31 < FUZxxl> What about the interrupt vector table? 2012-06-20T21:14:56 < zyp> section names have to match 2012-06-20T21:15:04 -!- jaeckel [~jaeckel@jaeckel.eu] has quit [Ping timeout: 276 seconds] 2012-06-20T21:15:09 < zyp> I put my vector table into .vectors 2012-06-20T21:15:17 < FUZxxl> zyp: The code you linked is a linker script. What about the _start-stub that initialized the code? 2012-06-20T21:15:20 < FUZxxl> zyp: Okay. 2012-06-20T21:15:32 < zyp> http://cgit.jvnv.net/suzumebachi/tree/entry.cpp <- here 2012-06-20T21:16:55 < FUZxxl> zyp: Does that code set up stack pointers and stuff? 2012-06-20T21:17:03 < FUZxxl> It doesn't look so 2012-06-20T21:17:13 < zyp> no need, stack pointer is loaded from vector table at reset 2012-06-20T21:17:21 < FUZxxl> okay 2012-06-20T21:17:37 < FUZxxl> Which file initializes your vectors? 2012-06-20T21:17:49 < zyp> http://cgit.jvnv.net/suzumebachi/tree/hal/interrupt.cpp 2012-06-20T21:19:10 < FUZxxl> okay... 2012-06-20T21:19:32 < FUZxxl> Well, only problem is that I don't really understand C++ :-( 2012-06-20T21:19:38 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving] 2012-06-20T21:20:10 < zyp> then just ignore the C++ specific stuff 2012-06-20T21:20:31 < zyp> that code is just C with some syntactical sugar 2012-06-20T21:20:39 < FUZxxl> yeah... 2012-06-20T21:20:51 < FUZxxl> Do I need a special calling convention for interrupts (I think so) 2012-06-20T21:20:56 < zyp> no. 2012-06-20T21:21:02 < FUZxxl> okay 2012-06-20T21:21:11 < zyp> cortex-m is fully EABI compliant 2012-06-20T21:21:11 < FUZxxl> What are the arguments of an interrupt? 2012-06-20T21:21:26 < zyp> none of course 2012-06-20T21:22:18 < zyp> the hardware will handle pushing of caller-save registers for you, so you don't have to worry about clobbering them 2012-06-20T21:22:22 < FUZxxl> okay 2012-06-20T21:22:27 < Thorn> svcall has arguments iirc, but I don't remember where you find them 2012-06-20T21:22:33 < FUZxxl> okay 2012-06-20T21:22:39 <+dekar> http://www.youtube.com/watch?v=mUi7O3okPEk 2012-06-20T21:25:21 < zyp> Thorn, the argument is encoded into the opcode but ignored by the cpu, so if you need it you'll have to check the old value of pc to find the opcode, then extract the value from the opcode yourself 2012-06-20T21:25:58 < zyp> http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0552a/BABBHFJE.html <- as explained here 2012-06-20T21:27:10 < FUZxxl> zyp: I wonder whether the chip build in the STM32l discovery board actually has that instruction 2012-06-20T21:27:13 <+dekar> zyp, are you talking about software interrupts? Isn't there a more convenient way to do that? I'll probably use them soon as well 2012-06-20T21:27:41 < zyp> dekar, svc is servicecall 2012-06-20T21:27:55 < zyp> FUZxxl, why wouldn't it? 2012-06-20T21:28:01 < FUZxxl> zyp: BTW, what is "suzumebachi" supposed to mean? It looks like it's Japanese 2012-06-20T21:28:04 < FUZxxl> I dunno 2012-06-20T21:28:25 < FUZxxl> I suppose hardware interrupts are calling into that vectors as well? 2012-06-20T21:28:36 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has joined ##stm32 2012-06-20T21:28:55 < zyp> FUZxxl, it's a japanese wasp species, it's the name of my quadrotor project 2012-06-20T21:29:32 < FUZxxl> ah 2012-06-20T21:29:36 < FUZxxl> That makes sense. 2012-06-20T21:29:50 <+dekar> zyp, "As part of their unified assembly language Arm changed the name of the SWI instruction to SVC (Supervisor Call). It's exactly the same instruction, just with a new name." 2012-06-20T21:29:55 <+dekar> wtf? -.-" 2012-06-20T21:30:11 < zyp> I'm thinking about forking out the support-lib/rtos into a seperate project soon, but I haven't found a good name for that yet :P 2012-06-20T21:30:26 < Thorn> bakaneko 2012-06-20T21:30:32 * Thorn hides 2012-06-20T21:30:37 < zyp> dekar, so they essentially changed the mnemonic 2012-06-20T21:30:56 <+dekar> why would they do that? 2012-06-20T21:31:18 <+dekar> I did use SWI on ARMv4 a while ago 2012-06-20T21:31:23 < zyp> didn't you read what you pasted? 2012-06-20T21:31:48 <+dekar> zyp, ofc I did, I still don't think that's a reason to do it 2012-06-20T21:31:58 < FUZxxl> dekar: GNU as accepts both opcodes 2012-06-20T21:32:21 <+dekar> yet it might be confusing people 2012-06-20T21:32:33 < zyp> I guess they at some point had two similar instructions in arm/thumb named swi and svc, so when it got unified they changed the swi one to svc 2012-06-20T21:32:51 < zyp> or something like that 2012-06-20T21:32:52 <+dekar> but SWI was the original one 2012-06-20T21:33:09 < zyp> I don't have in-depth experience with non-cortex stuff 2012-06-20T21:33:15 <+dekar> well w/e 2012-06-20T21:33:34 <+dekar> just didn't make much sense to do that imo 2012-06-20T21:34:37 < FUZxxl> zyp: You mean this one: http://ja.wikipedia.org/wiki/スズメバチ 2012-06-20T21:34:50 < zyp> when stuff don't make sense, you usually don't know all the facts 2012-06-20T21:34:55 < FUZxxl> (My Japanese is extremely bad) 2012-06-20T21:35:09 < zyp> yes, that's the one 2012-06-20T21:35:13 < FUZxxl> okay 2012-06-20T21:35:43 < zyp> http://en.wikipedia.org/wiki/Japanese_giant_hornet <- english article here 2012-06-20T21:35:55 < FUZxxl> okay 2012-06-20T21:36:00 < FUZxxl> Thank you! 2012-06-20T21:36:43 < zyp> it looks rather large and scary, so i thought it was a fitting name after having a few mishaps when I started playing with quadrotors :p 2012-06-20T21:36:51 < FUZxxl> zyp: Hehe 2012-06-20T21:37:06 <+dekar> zyp, as a result you probably can't assemble code containing SVC on older compilers now 2012-06-20T21:37:52 <+dekar> imagine people using an old proprietary compiler they bought like 10 years ago 2012-06-20T21:38:21 < Thorn> if you're using dataflash for datalogging, how do you keep track of where to write the next record without constantly writing the offset into the same page? 2012-06-20T21:38:21 <+dekar> so it sounds to me like they gained little and caused trouble for people on purpose 2012-06-20T21:39:14 < zyp> dekar, bullshit, old assemblers would lack other modern instructions as well, and are just as useless either way 2012-06-20T21:39:56 <+dekar> zyp, what if the target was an ARMv4? I am pretty sure you can still get the ARM7-TDMI for example 2012-06-20T21:41:08 < Thorn> that's what it probably was 2012-06-20T21:41:18 < Thorn> ARM7TDMI is ARMv4 2012-06-20T21:41:35 < zyp> dekar, why would code for ARMv4 contain svc? 2012-06-20T21:42:01 <+dekar> zyp, cause SWI is deprecated? it's AVC now 2012-06-20T21:42:26 <+dekar> imagine different developers working with different compilers on the same project 2012-06-20T21:42:50 <+dekar> I don't say that the problem is uber likely to occur, I just mean it can and probably did happen 2012-06-20T21:43:07 < FUZxxl> dekar: GNU as still accepts the old SWI mnemnoric. I wonder why they should drop support 2012-06-20T21:43:17 -!- jaeckel [~jaeckel@jaeckel.eu] has joined ##stm32 2012-06-20T21:43:20 < zyp> it's not «now» it's «on ARMv7», and that's irrelevant for ARMv4 2012-06-20T21:44:35 <+dekar> FUZxxl, I didn't suggest they would 2012-06-20T21:44:55 < zyp> even if the assembler supports the old mnemonic when assembling for a newer architecture, it's not given that the new mnemonic is supported when assembling for an other architecture 2012-06-20T21:45:22 < zyp> s/other/older/ 2012-06-20T21:46:13 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-20T21:46:15 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-20T21:46:22 <+dekar> oh well, imagine disassembling. So you see SWI in your code and SVC in the disassembled one 2012-06-20T21:47:44 -!- drgreenthumb [~fletch@drupal.org/user/72475/view] has joined ##stm32 2012-06-20T21:47:48 < zyp> then you're disassembling for the wrong architecture. 2012-06-20T21:50:18 -!- jaeckel [~jaeckel@jaeckel.eu] has quit [Ping timeout: 245 seconds] 2012-06-20T21:50:32 <+dekar> zyp, which doesn't matter since the older architecture is a subset of the newer one 2012-06-20T21:51:38 <+dekar> besides that you might use SWI for ARMv7 and then disassemble it to SVC as well 2012-06-20T21:51:45 < karlp> it doesn't 2012-06-20T21:51:53 < karlp> (sorry, was in my scrollback) 2012-06-20T21:52:55 <+dekar> I am not saying the world is ending, I just say that probably has and will in future lead to confusion 2012-06-20T21:53:07 <+dekar> and I wouldn't have done that 2012-06-20T21:53:14 -!- jaeckel [~jaeckel@jaeckel.eu] has joined ##stm32 2012-06-20T21:59:54 < zyp> oh, they thought about that too 2012-06-20T21:59:59 < zyp> «SWI instructions disassemble to SVC, with a comment to say that this was formerly SWI.» 2012-06-20T22:01:08 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has joined ##stm32 2012-06-20T22:03:46 <+dekar> well that's nice I guess 2012-06-20T22:20:28 < karlp> anyone think the pdf tutorial in the texane/stlink repo is at all useful? 2012-06-20T22:34:41 < FUZxxl> karlp: I think it is - but only a little bit 2012-06-20T22:38:41 < karlp> ok then. my first pull request in a while. killing the examples and updating the docs :) 2012-06-20T22:41:12 < BrainDamage> +1 2012-06-20T22:41:46 < karlp> anyone know the gitfu to show commits in one branch that arne't in another? 2012-06-20T22:41:54 < karlp> I thinkmy branch is a little out of sync, 2012-06-20T22:44:18 < BrainDamage> I know how to show the changes on actual files, not amount of commits 2012-06-20T22:44:22 < karlp> yeah, 2012-06-20T22:44:26 < BrainDamage> perhaps try a rebase? 2012-06-20T22:44:38 < karlp> git diff master upstream/master will show me the complete diff 2012-06-20T22:46:16 -!- LawrenceSeattle [~lawrence@66.192.187.106] has joined ##stm32 2012-06-20T22:56:30 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has quit [Ping timeout: 260 seconds] 2012-06-20T23:16:12 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Read error: Operation timed out] 2012-06-20T23:35:11 < karlp> heh, one problem with burning the entire examples directory is that I don't have any good 32L and F0 examples :) --- Day changed Thu Jun 21 2012 2012-06-21T00:07:09 < szczys> karlp: with git you probably want to use diff with the --name-only flag 2012-06-21T00:07:30 < szczys> That will show you which files differ between commits 2012-06-21T00:07:37 < szczys> without including each line of changed code 2012-06-21T00:15:00 < szczys> So I'm trying to use generic startup and linker script from CMSIS 3.0 2012-06-21T00:15:10 < szczys> It works fine with my own super-simple sample code 2012-06-21T00:15:23 < szczys> but I can't get the STM demo code to run 2012-06-21T00:15:32 < szczys> the led comes on but it should be blinking and it's not 2012-06-21T00:16:00 < szczys> I see from the STM startup file that SystemInit() is run by the startup code and that's not happening with the CMSIS code 2012-06-21T00:16:30 < szczys> neither is the function: __libc_init_array 2012-06-21T00:16:44 < szczys> Am I barking up the wrong tree by trying to use these files, or should I keep steaming ahead? 2012-06-21T00:28:36 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 272 seconds] 2012-06-21T00:29:15 <+dekar> szczys, did you get a linker script yet? 2012-06-21T00:29:34 <+dekar> I can give you one licensed under a more permissive license 2012-06-21T00:29:36 < szczys> yes, there's a linker script in the CMSIS 3.0 library 2012-06-21T00:29:47 < szczys> it has a startup script that goes along with it 2012-06-21T00:29:56 <+dekar> kay 2012-06-21T00:30:06 < szczys> https://github.com/szczys/stm32f0-discovery-basic-template/tree/development/Device 2012-06-21T00:30:19 < szczys> But like I said, the demo code for the F0-Discovery board isn't working 2012-06-21T00:30:28 < szczys> and I'm not sure why (or how to find out why) 2012-06-21T00:31:27 <+dekar> szczys, though that linker script references proprietary codesourcery libs, so other toolchains likely won't work 2012-06-21T00:31:58 < szczys> which linker script are you speaking of? 2012-06-21T00:32:06 <+dekar> the one you just linked 2012-06-21T00:32:24 <+dekar> -lcs3 -lcs3unhosted -lcs3micro 2012-06-21T00:32:33 <+dekar> cs = codesourcery 2012-06-21T00:32:42 <+dekar> they don't release the source for those afaik 2012-06-21T00:32:47 < Thorn> what's the point in that cs3 stuff anyway? 2012-06-21T00:33:06 <+dekar> Thorn, it contains newlib stubs I think 2012-06-21T00:33:10 <+dekar> maybe some other stuff 2012-06-21T00:33:24 < Thorn> do they do something you can't do yourself? 2012-06-21T00:33:42 <+dekar> Thorn, probably not ;) 2012-06-21T00:33:52 < szczys> hmm... 2012-06-21T00:33:56 <+dekar> szczys, you might wanna try this one: https://dl.dropbox.com/u/28467113/stm32_linkerscript/TNT.zip 2012-06-21T00:34:15 < Thorn> I remember the LPC standard library relies heavily on cs3 2012-06-21T00:34:16 < szczys> yeah, another guy issued a pull request with a linker that worked for him 2012-06-21T00:34:28 < szczys> but I'm using the CodeSorcery G++ toolchain 2012-06-21T00:34:36 < szczys> and got a libnosys.a error 2012-06-21T00:34:42 < szczys> (which I believe is related to newlib) 2012-06-21T00:34:53 <+dekar> szczys, CS has newlib as well 2012-06-21T00:34:54 < drgreenthumb> heh Thorn I went to look at what CPLD was used in that video project you mentioned yesterday. looks like max2, nice I like Altera. but heh in Russia you can buy CPLDs at Radio Shack?! :o 2012-06-21T00:34:55 < szczys> do you think I should bite the bullet and dump this toolchain for the GNU toolchain? 2012-06-21T00:35:24 <+dekar> szczys, you should be able to use the CS-toolchain with the TNT linker script 2012-06-21T00:35:39 < Thorn> drgreenthumb: yes it was a EPM240. and no Radio Shack in Russia :) 2012-06-21T00:35:46 < szczys> doesn't the startup code have to match the linker script? 2012-06-21T00:36:04 < drgreenthumb> Thorn, heh must be google translate messing with me 2012-06-21T00:36:10 <+dekar> szczys, the startup code shouldn't do much, should it? 2012-06-21T00:36:12 < drgreenthumb> http://translate.google.com/translate?sl=auto&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fmarsohod.org%2Findex.php%2Fprojects%2F174-phframe3&act=url 2012-06-21T00:36:24 < drgreenthumb> oh srt 2012-06-21T00:36:26 < drgreenthumb> sry 2012-06-21T00:36:38 < szczys> looking at TNT.zip... which .ld do you suggest using? 2012-06-21T00:37:09 <+dekar> "EXTERN(__cs3_interrupt_vector_cortex_m)" <-- all of those are codesourcery specific on the script you're using 2012-06-21T00:37:31 <+dekar> szczys, the tnt one includes the others 2012-06-21T00:37:39 < szczys> oh, I see 2012-06-21T00:37:42 <+dekar> well I ripped them out of my project when someone asked me for them 2012-06-21T00:37:56 <+dekar> someone who was reading your tutorial btw 2012-06-21T00:37:59 < szczys> is __Stack_Size basically talking about on-chip RAM? 2012-06-21T00:38:01 <+dekar> a day or two ago 2012-06-21T00:38:02 < drgreenthumb> here Thorn, that's what I meant http://translate.googleusercontent.com/translate_c?act=url&hl=en&ie=UTF8&prev=_t&rurl=translate.google.com&sl=auto&tl=en&twu=1&u=http://marsohod.org/index.php/howtobuy&usg=ALkJrhgpTVEsPuW7OOvJ9ar--UygaRd5yw ... stupid google frames it. "If you are lucky and you live in the beautiful city of Taganrog, you can buy a motherboard rover in a Radio Shack." wat? :) 2012-06-21T00:38:12 <+dekar> szczys, yeah 2012-06-21T00:38:30 < szczys> so I need to go through these files and change the addresses to match this chip, right? 2012-06-21T00:39:09 < Thorn> drgreenthumb: lol @ google translate, it simply says "local electronics store" 2012-06-21T00:39:11 <+dekar> szczys, you probably have to change some things, I am using it for an stm32f1 with 64kb ram, I also use the split linker script to easily change parts when building bootloader/firmware 2012-06-21T00:40:05 < szczys> did you write these? 2012-06-21T00:40:59 <+dekar> szczys, nope, check the header - I found them somewhere 2012-06-21T00:41:12 <+dekar> I think I had their IDE installed 2012-06-21T00:41:21 <+dekar> or somewhere on the web, idk 2012-06-21T00:41:34 <+dekar> I just modified them a bit 2012-06-21T00:41:46 < szczys> do you know what these definitions are for: 2012-06-21T00:41:46 < szczys> FLASHB1 (rx) : ORIGIN = 0x00000000, LENGTH = 0 2012-06-21T00:41:46 < szczys> EXTMEMB0 (rx) : ORIGIN = 0x00000000, LENGTH = 0 2012-06-21T00:42:04 <+dekar> szczys, you can remove those 2012-06-21T00:42:15 <+dekar> their likerscripts contain a lot stuff for other chips 2012-06-21T00:42:15 < szczys> okay, thanks 2012-06-21T00:42:53 <+dekar> szczys, I was the guy who posted the legal hint at hackaday btw 2012-06-21T00:43:02 < szczys> oh, thanks! 2012-06-21T00:43:07 <+dekar> didn't mean to offend you, people here told me I was trolling :/ 2012-06-21T00:43:17 < szczys> no, I disagree 2012-06-21T00:43:26 < szczys> you're not the asshat who put a copyrighted file in that library 2012-06-21T00:43:30 <+dekar> I just have to watch for those things at work and it became a habit :) 2012-06-21T00:43:34 < szczys> I read the license that STM distributed 2012-06-21T00:43:47 < szczys> so it's a big surprise to fine that kind of copyright hidden in a file header 2012-06-21T00:44:01 < szczys> I mean, why would I be looking inside the linker script file if it works? 2012-06-21T00:44:32 <+dekar> szczys, well cause you were using a linker script placed in a subfolder with the name of some IDE you're not using 2012-06-21T00:44:50 <+dekar> but it isn't too obvious 2012-06-21T00:45:15 <+dekar> I guess ST assumed you would use the content of those folders only if you had a license for the specific compiler/IDE/toolchain 2012-06-21T00:45:23 < BrainDamage> dekar: people here tell you that you troll to troll you 2012-06-21T00:45:41 <+dekar> BrainDamage, I feel seriously trolled now :/ 2012-06-21T00:45:46 <+dekar> :P 2012-06-21T00:47:25 * szczys digging through massive reference manual 2012-06-21T00:48:11 <+dekar> szczys, in the sections_ file there is also a ton of "for Cortex LPC devices", you can remove all of that if you care 2012-06-21T00:48:25 < szczys> I was just looking at those 2012-06-21T00:48:40 < szczys> but now I'm trying to figure out how much of this peripheral memory map I need to double-check 2012-06-21T00:49:45 < szczys> this is marked reserverd: PERIPH_BB_BASE = 0x42000000; 2012-06-21T00:49:49 < szczys> so I guess that needs to change 2012-06-21T00:50:26 < Thorn> for a simple linker script all you need to know is rom and flash and their addresses and sizes 2012-06-21T00:50:33 <+dekar> szczys, there are also two lines in the file I patched, those have a comment 2012-06-21T00:50:38 < Thorn> *ram and flash 2012-06-21T00:51:03 < Thorn> flash in stm32 starts at 0x0800 0000, ram always starts at 0x2000 000 2012-06-21T00:51:32 <+dekar> yeah, you need an interrupt vector, .data, .text and that's about it 2012-06-21T00:51:52 < Thorn> also stack and .bss 2012-06-21T00:52:20 <+dekar> right, though the stack is set in the interrupt pointer, isn't it? 2012-06-21T00:52:24 < Thorn> (stack only to check that it doesn't overlap with .data/.bss) 2012-06-21T00:52:36 <+dekar> *interrupt vector 2012-06-21T00:54:36 < Thorn> well standard f1 startup code uses a symbol defined in the linker script to set beginning of stack. so it's important to specify ram size in the linker script 2012-06-21T00:54:40 < szczys> so why to they complicate things with all this other stuff... there must be a reason? 2012-06-21T00:56:07 <+dekar> Thorn, I did actually have a funny effect with that linker script when I activated -fdata-sections. when the .bss section was split up into .bss.subsections the linker script didn't match and place them anymore. as a result the startup code didn't init the bss section 2012-06-21T00:56:58 <+dekar> I think cold booting still worked fine, but calling the firmware from my bootloader went really weird, got into impossible states 2012-06-21T00:57:05 < Thorn> I think you need to have *(.bss .bss.*) rather than simply *(.bss) for this to work 2012-06-21T00:57:13 <+dekar> yeah I did fix it 2012-06-21T00:57:29 <+dekar> just saw my fix when I had a look at the script I linked to szczys 2012-06-21T00:57:38 <+dekar> but it took me a while to find back then :) 2012-06-21T00:58:02 < Thorn> yeah that's not a problem that's pleasant to debug 2012-06-21T00:58:38 < Thorn> what is all this *(.plt) *(.jcr) *(.got.plt) *(.got) *(.shdata) etc. stuff? 2012-06-21T00:59:01 < Thorn> from the script linked by szczys 2012-06-21T00:59:46 <+dekar> lol no idea 2012-06-21T00:59:54 <+dekar> that codesourcery stuff is weird 2012-06-21T01:00:06 <+dekar> I didn't like how they renamed all the interrupt handlers as well 2012-06-21T01:03:18 < Thorn> _end = .; __end = .; because one symbol simply isn't enough apparently 2012-06-21T01:06:24 < szczys> what is the alias region? : 2012-06-21T01:06:43 < szczys> wondering because of this: Peripheral and SRAM base address in the alias region 2012-06-21T01:11:00 <+dekar> szczys, some arm cortex features I think 2012-06-21T01:11:36 < Thorn> rom is aliased, but not peripherals or sram? 2012-06-21T01:11:40 <+dekar> you can for example remap memory to the bit-band region and then set/reset single bits without the load-modify-store 2012-06-21T01:11:55 < szczys> oh, I see 2012-06-21T01:12:02 < szczys> why do we need this memory map in the linker? 2012-06-21T01:12:23 <+dekar> what particular part of the script do you mean? 2012-06-21T01:13:24 < szczys> STM32F10x_COMMON.ld 2012-06-21T01:13:33 < szczys> last half of the file is a big memory map 2012-06-21T01:14:23 <+dekar> It says: /*this allows to compile the ST lib in "non-debug" mode*/ 2012-06-21T01:14:42 <+dekar> I guess the ST libs (probably the old 2.X version) needs that 2012-06-21T01:16:12 <+dekar> szczys, I kinda dislike how the comments at hack a day give ST a hard time for the Atollic license 2012-06-21T01:17:08 <+dekar> ST only bundles Atollic TrueSTUDIO demo projects 2012-06-21T01:17:33 <+dekar> so they're not really involved with that license, they just offer you an example that contained the license 2012-06-21T01:18:13 < szczys> this is a nightmare 2012-06-21T01:18:16 < szczys> I give up 2012-06-21T01:18:23 < szczys> thanks or the help though 2012-06-21T01:19:26 <+dekar> np 2012-06-21T01:36:06 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has joined ##stm32 2012-06-21T01:39:01 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has quit [Changing host] 2012-06-21T01:39:01 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has joined ##stm32 2012-06-21T01:48:29 < dongs> sup bloggers 2012-06-21T01:49:52 < Laurenceb_> http://andybrown.me.uk/wk/2012/06/04/nokia-qvga-tft-lcd-for-the-arduino-mega-graphics-library-part-2-of-2/ 2012-06-21T01:49:57 < Laurenceb_> someone needs to port to stm32 2012-06-21T01:50:12 < dongs> um wouldnt that be effortless 2012-06-21T01:50:47 < dongs> haha but its C++ + templates 2012-06-21T01:50:48 < dongs> holy shit aids 2012-06-21T01:50:55 < dongs> zyp would be all excited 2012-06-21T01:51:15 * Laurenceb_ zzz 2012-06-21T02:00:02 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-21T02:08:35 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-06-21T02:55:47 < zippe> Has anyone fixed the lack of multilib configs in TNT yet? 2012-06-21T02:55:56 < zippe> Because I kinda like my floating points 2012-06-21T02:57:49 < karlp> dekar: ST deserves crap for bundling atollic licensed code in my opinion. 2012-06-21T02:58:13 < karlp> if atollic wasn't prepared to release demo projects free to go in the distribution, 2012-06-21T02:58:19 < karlp> they shouldn't be included in the distribution 2012-06-21T02:58:38 < zippe> And here is why you should not be using the TNT (Linaro-based) toolchain anyway: 2012-06-21T02:58:39 < zippe> https://answers.launchpad.net/gcc-arm-embedded/+question/200472 2012-06-21T03:00:14 < karlp> nice and simple. 2012-06-21T03:06:13 < karlp> there we go, no more examples to cause confusion for anyone in texane/stlink. 2012-06-21T04:06:41 <+dekar> zippe, I have lately been experimenting with a GCC 4.8 snapshot ;) 2012-06-21T04:07:06 <+dekar> besides that TNT generates smaller code than all the other GCC toolchains we have compared it to 2012-06-21T04:09:38 <+dekar> https://answers.launchpad.net/gcc-arm-embedded/+question/196873 2012-06-21T04:10:12 <+dekar> "These results show a poorer code optimization level if compared with a previous release (4.5.2 lite edition that I downloaded from CodeSourcery)" 2012-06-21T04:14:26 -!- drgreenthumb [~fletch@drupal.org/user/72475/view] has quit [Read error: Connection reset by peer] 2012-06-21T05:01:19 -!- LawrenceSeattle [~lawrence@66.192.187.106] has quit [Quit: LawrenceSeattle] 2012-06-21T05:22:29 -!- cjbaird [~cjb@ppp121-44-81-126.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-21T05:35:50 -!- Netsplit *.net <-> *.split quits: @ChanServ 2012-06-21T05:46:00 -!- whitequark [~whitequar@2a00:ab00:1::4464:5550] has joined ##stm32 2012-06-21T05:46:19 -!- whitequark [~whitequar@2a00:ab00:1::4464:5550] has left ##stm32 [] 2012-06-21T05:50:49 -!- Netsplit over, joins: @ChanServ 2012-06-21T05:55:43 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has quit [Ping timeout: 245 seconds] 2012-06-21T05:56:32 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has joined ##stm32 2012-06-21T06:15:38 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has quit [Ping timeout: 240 seconds] 2012-06-21T06:32:08 < dongs> http://i.imgur.com/TmIvo.jpg 2012-06-21T06:33:47 < cjbaird> Stay out of my /g/, dongs. 2012-06-21T06:38:37 < cjbaird> Funny-- after the /drama/ of yesterday, it's likely I'll end up with a free RaspberryPi. The order completion was wrongly sent by the Farnell UK office, in spite of it being a trade-office-pickup with no shipping fee. The Sydney warehouse is assuming that 2012-06-21T06:39:23 < cjbaird> s nothing's going to arrive, so they've reset my order, and I'll get (another?) one when the Australian shipment arrives in a week. 2012-06-21T06:39:57 < cjbaird> Two teeny linux boxen for $15 each. 2012-06-21T06:40:34 < cjbaird> With free shipping for the one from the UK... 2012-06-21T06:45:04 < dongs> would be cool if owning that made you straight.. 2012-06-21T06:51:14 < cjbaird> loli love linux: http://boards.4chan.org/g/res/25639068 2012-06-21T06:54:58 < dongs> While this is not a 100% replacement for a native app, it's a start, and fortunately Apple will support file uploads in iOS 6 which is due out this fall. 2012-06-21T06:55:01 < dongs> haha 2012-06-21T06:55:05 < dongs> faggle browser doesnt support file upload? 2012-06-21T06:55:23 < dongs> makes total sense. 2012-06-21T07:01:17 -!- emeb [~ericb@12.68.180.146] has joined ##stm32 2012-06-21T07:03:29 < zippe> dekar: 4.7 is slated for a release on the GCC-EMBEDDED branch 4q this year, pending testing, etc. I'll wait. 2012-06-21T07:03:33 < dongs> ARMv6-M = M0? 2012-06-21T07:03:44 < zippe> dongs: other way around, yes 2012-06-21T07:04:12 < zippe> dongs: and, Safari on iOS doesn't support uploads because apps don't get to see other apps' files. 2012-06-21T07:05:47 < zippe> Given how much pantie-knotting there has been over address books being stolen, you can see why that might be unpopular 2012-06-21T07:08:20 < dongs> well, the IQ of people using iOS is generally lower so yea 2012-06-21T07:13:40 < cjbaird> Well, the sample size for Windows Mobile is too small to make any inferences from.. 2012-06-21T07:15:50 < GargantuaSauce> http://xn--d-bga.su/gnuu.png 2012-06-21T07:16:13 < dongs> wtf why is this place full of btards 2012-06-21T07:16:38 < GargantuaSauce> maybe you are jumping to conclusions? 2012-06-21T07:16:59 < dongs> no im busy repasting url everywehre 2012-06-21T07:17:55 < GargantuaSauce> don't overwhelm my shitty shared hosting ;_; 2012-06-21T07:21:25 < cjbaird> I'm the _Original_ /b/tard. I invented the word. 4.14pm AEST, 14th Jan 2004. Someone on idlechan had used "/b/astard", I thought -tard was more appropriate and forced-memed it on 4chan. 2012-06-21T07:21:46 < GargantuaSauce> seems legit 2012-06-21T07:22:11 < dongs> a likely scenario. 2012-06-21T09:06:57 -!- emeb [~ericb@12.68.180.146] has quit [Ping timeout: 252 seconds] 2012-06-21T09:37:08 < dongs> http://media.freescale.com/phoenix.zhtml?c=196520&p=irol-newsArticle&ID=1706461&highlight 2012-06-21T09:40:28 -!- drgreenthumb [~fletch@drupal.org/user/72475/view] has joined ##stm32 2012-06-21T10:04:00 < zippe> So, you can have the M0+ from them in what looks like 180ULL, or you could have a regular M0 in 65LP for less power. I know which one I'd choose. 2012-06-21T10:04:35 < zippe> Someone has a bunch of old fab capacity they're desperate to keep cranking. 2012-06-21T10:05:54 < dongs> heh 2012-06-21T10:07:39 < dongs> no, the keyword here is cheap 2012-06-21T10:07:51 < dongs> 65nm isnt gonna be anywhere near price of 180nm. 2012-06-21T10:09:55 < zippe> Depends. I can build a product at 65 (or 45, or 32), but not at 180 2012-06-21T10:10:29 < zippe> Though TBH, now I'm talking about fabbing, not buying someone else's chip, which isn't fair 2012-06-21T10:11:02 < dongs> zippe, this panasonic settopbox im screwing around wiht runs deadbsd. 2012-06-21T10:11:04 < dongs> on AM33 2012-06-21T10:11:14 < dongs> they couldnt have picked more obscure shit combo. 2012-06-21T10:11:25 < zippe> which BSD? netbsd? 2012-06-21T10:11:30 < dongs> FreeBSD apparently 2012-06-21T10:13:07 < zippe> What the hell is an am33? 2012-06-21T10:13:26 < dongs> some panasonic 32bit CPU core 2012-06-21T10:13:29 < dongs> custom shit 2012-06-21T10:14:05 < dongs> from their MN10xxx series SoCs 2012-06-21T10:15:50 < zippe> Interesting. I see some mention of the G20 TV also using the FreeBSD partition number 2012-06-21T10:16:17 < zippe> It's not entirely surprising; I can't see Matsishita's lawyers being very happy about GPLv3 code in the same box as HDCP 2012-06-21T10:16:31 < zippe> So Linux is a dicey proposition at best 2012-06-21T10:16:53 < zippe> And there's always been a fairly strong independent BSD community in Japan 2012-06-21T10:18:21 < zippe> I feel sorry for Perry & co. If they'd been able to keep Wasabi viable, this could have been a happy time. 2012-06-21T10:18:50 < dongs> apparently some Toshiba stuff is even deader *BSD, NetBSD 2012-06-21T10:18:56 < dongs> but at least they dont use obscure cores 2012-06-21T10:19:02 < dongs> I think toshiba is still stuck with mips 2012-06-21T10:19:18 < zippe> Yeah. NetBSD/Mips has been pretty solid for a long time now. 2012-06-21T10:19:33 < zippe> Ever since the old Decstation ports, really. 2012-06-21T10:20:34 < zippe> I assume you're calling them "dead" sarcastically 2012-06-21T10:20:43 < zippe> Since both Net and FreeBSD are very much alive. 2012-06-21T10:20:58 < dongs> Ya know, the writing on the wall, etc. 2012-06-21T10:21:08 < zippe> The 2012-06-21T10:21:18 < zippe> "writing" has been there since the mid-90s, supposedly 2012-06-21T10:21:23 < dongs> http://everything2.com/title/BSD+is+dying 2012-06-21T10:21:29 < dongs> ya 2012-06-21T10:22:03 < zippe> Oh hey, that's old enough it still cites my resignation. 8) 2012-06-21T10:22:26 < dongs> haha 2012-06-21T10:23:44 < dongs> which you in turn cite in your resignation letter (attn shasldot crowd0 2012-06-21T10:29:21 < zippe> Why am I always implementing malloc tracing? Can't we have an allocation standard that tracks ownership? 2012-06-21T10:35:57 < cjbaird> Sony had a line of 4.3BSD 68k/MIPS workstations (NeWS). I had one. 2012-06-21T10:39:41 < cjbaird> As for the viability of NetBSD... They've recently introduce a tiering level for ports. x86/amd/sparc/arm: "there's ten or so people working on code", 68k/ppc: "we think the maintainer is still alive".. http://mail-index.netbsd.org/netbsd-announce/2011/03/30/msg000126.html 2012-06-21T10:49:32 < Thorn> is there any gain in zeroing the stack at startup? I see some startup code for armv4 does it 2012-06-21T10:50:39 < dongs> armcc startup files dont bother zeroin anything 2012-06-21T10:50:54 < dongs> i noticed gcc ones spend a lot of time in startup doing stupid shit that doesnt really matter. 2012-06-21T11:08:36 < dongs> http://www.netbsd.org/ports/bebox/ lol. 2012-06-21T11:10:28 < Thorn> >FTP, AnonCVS 2012-06-21T11:11:02 < dongs> wat 2012-06-21T11:12:33 < Thorn> just like the old internet 2012-06-21T11:14:32 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-21T11:31:16 < dongs> fucking profilic usb>serial drivers 2012-06-21T11:31:33 < dongs> crashes when sending shit at 115200 and actually filling that speed up 2012-06-21T11:31:50 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-06-21T11:56:58 < cjbaird> I knew someone with a dual-cpu Bebox.. 2012-06-21T11:59:05 < cjbaird> FTP is a favourite way for keeping the drooling computer illiterates off your warez sitez. 2012-06-21T12:02:19 < karlp> zippe: how did you infer the silicon process as 180ULL from that press release? 2012-06-21T12:02:35 < karlp> just by knowing th uW/MHz figures for other processors and processes? 2012-06-21T12:09:09 -!- mansfeld [~andrew@robopoly/watson] has quit [Remote host closed the connection] 2012-06-21T12:21:58 <+dekar> dongs, armcc doesn't zero .bss? 2012-06-21T12:23:59 < dongs> i dont see anything of the sort done in startup.s no 2012-06-21T12:27:09 <+dekar> hm I wonder where it happens then 2012-06-21T12:27:33 -!- cjbaird-vt220 [~cjb@ppp121-44-81-126.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-21T12:27:43 < dongs> why doesit need to be zerod? 2012-06-21T12:27:43 -!- cjbaird [~cjb@ppp121-44-81-126.lns20.syd6.internode.on.net] has left ##stm32 ["Konversation terminated!"] 2012-06-21T12:37:21 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has joined ##stm32 2012-06-21T12:39:44 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Ping timeout: 246 seconds] 2012-06-21T12:39:48 < Laurenceb_> http://www.urbandictionary.com/define.php?term=fapanese 2012-06-21T12:44:32 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-06-21T12:49:42 < dongs> old 2012-06-21T12:55:17 -!- mansfeld [~andrew@robopoly/watson] has joined ##stm32 2012-06-21T13:00:48 < karlp> bss needs to be zeroed so spec related things like, "global statics are initialized to zero" work properly. 2012-06-21T13:00:55 < karlp> there's no real need to zero stack though. 2012-06-21T13:02:36 -!- dekar [~dekar@dslb-188-107-082-087.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep] 2012-06-21T13:09:11 < cjbaird-vt220> Security, I'm thinking-- being able to recover stack contents with rogue firmware or whatever. 2012-06-21T13:10:44 < cjbaird-vt220> PGP I believe goes to lengths to keep its keys and such on the 'volatile' stack. An attacker could concevibly reset the machine while a key was being processed, and then grovel through memory to find what it wants. 2012-06-21T13:12:52 < cjbaird-vt220> Practically, it's not a real concern, unless you're into the OpenBSD masturbating monkey circlejerking scene. 2012-06-21T13:22:53 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has joined ##stm32 2012-06-21T13:24:55 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-21T13:26:01 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has quit [Read error: Connection reset by peer] 2012-06-21T13:28:18 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has joined ##stm32 2012-06-21T13:28:19 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 264 seconds] 2012-06-21T13:40:31 < dongs> so basically unless you're zippe (*BSD) or Laurenceb (jerking) 2012-06-21T13:43:10 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Quit: Leaving] 2012-06-21T13:55:39 -!- izua [~izua@86.121.2.101] has joined ##stm32 2012-06-21T13:55:39 -!- izua [~izua@86.121.2.101] has quit [Changing host] 2012-06-21T13:55:39 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-21T13:55:41 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-21T14:08:23 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer] 2012-06-21T14:17:53 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-21T14:17:56 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-21T14:18:18 <+Steffanx> nu 2012-06-21T14:19:58 < dongs> fu 2012-06-21T14:20:09 < dongs> who the fuck would have thought bullshit FPC connectors were polarized 2012-06-21T14:21:17 <+Steffanx> I think it was someone from Japan 2012-06-21T14:21:30 <+Steffanx> And no thanks dongs 2012-06-21T14:41:05 < dongs> http://blog.cloudflare.com/the-bandwidth-of-a-boeing-747-and-its-impact haha 2012-06-21T14:45:28 <+Steffanx> nice article dongs 2012-06-21T14:48:00 < BrainDamage> there's been an old joke that with the new tariffs in canada it's more convienient to ship the ssd drive, and throw it away at destination 2012-06-21T14:48:13 < dongs> i read that somewehre before. 2012-06-21T14:49:03 <+Steffanx> It's a common joke in Trollville 2012-06-21T14:49:40 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-21T15:05:00 < Laurenceb> http://i.imgur.com/nzLmZ.jpg 2012-06-21T15:05:02 < Laurenceb> fail 2012-06-21T15:06:53 < BrainDamage> looks like the led burned trough the plastic 2012-06-21T15:07:03 <+Steffanx> You know what a bigger fail is Laurenceb ? 2012-06-21T15:07:10 <+Steffanx> The other usb port 2012-06-21T15:07:39 <+Steffanx> At least with my macbook pro 2012-06-21T15:07:49 <+Steffanx> It's [display port] [usb] [usb] 2012-06-21T15:08:24 <+Steffanx> but .. most laptop have the usb connectors pretty close together, so with a usb stick like that every laptop has ' issues' 2012-06-21T15:08:50 < BrainDamage> I have an usb pretty close to the power jack too 2012-06-21T15:09:05 < BrainDamage> I simply use a 10cm extension cord 2012-06-21T15:09:30 * Laurenceb is applying for some funding for hardware dev 2012-06-21T15:09:48 < Laurenceb> just reading other applications.... 2012-06-21T15:09:48 <+Steffanx> kickstarter 2012-06-21T15:09:52 < Laurenceb> "The effectiveness of the Nintendo Wii in the 2012-06-21T15:09:52 < Laurenceb> delivery of exercise in falls prevention classes for 2012-06-21T15:09:52 < Laurenceb> older adults: a feasibility study 2012-06-21T15:09:52 < Laurenceb> " 2012-06-21T15:09:59 < Laurenceb> no, goverment thingy 2012-06-21T15:10:27 < Laurenceb> ^made me lol 2012-06-21T15:11:42 -!- cjbaird [~cjb@ppp121-44-81-126.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-21T15:11:48 < Laurenceb> they got £10K O_o 2012-06-21T15:13:51 < Laurenceb> pump priming initiative 2012-06-21T15:25:57 < cjbaird-vt220> Kickstarter smells too ripe. There are single-issue Furry comics that've raised over $100,000. The proposal claimed it needed at least $10,000 to print. Bullshit, printing a standard comic book only costs ~$1,500 for 2000 copies. Anyone who bothers with Kickstarter is missing that working part of the brain that says "don't get involved with scams or anything to do with them". 2012-06-21T15:27:24 < cjbaird-vt220> "But I'm intelligent! I would know when something is a scam~~" --what 99% of everyone who gets scams said at one point... 2012-06-21T15:30:18 <+Steffanx> And interesting project never get released 2012-06-21T15:30:27 <+Steffanx> Like the IsoStick.. still not finished 2012-06-21T15:30:38 <+Steffanx> The openvizsla also looked pretty nice, still not finished 2012-06-21T15:31:07 <+Steffanx> "This project successfully raised its funding goal on December 22, 2010." .. whoa even longer than i thought 2012-06-21T15:31:29 < cjbaird-vt220> The basic idea of Kickstarter sounds good-- but so did eBay's ...but then /humans/ got involved. 2012-06-21T15:31:43 <+Steffanx> I never had trouble with ebay 2012-06-21T15:31:54 <+Steffanx> The local ebay-ish place is worse 2012-06-21T15:32:59 < cjbaird-vt220> I won't use it, but friends were seeing bad sellers for 2 out of every 3 won auctions, and then /they/ gave up on it. 2012-06-21T15:33:23 <+Steffanx> I never enter auctions, i only use the 'buy now' option 2012-06-21T15:34:06 < cjbaird-vt220> Usually for new products as well? 2012-06-21T15:34:38 <+Steffanx> Yep 2012-06-21T15:35:20 <+Steffanx> ( never bought ' real' second hand stuff from ebay ) 2012-06-21T15:35:27 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has quit [Read error: Operation timed out] 2012-06-21T15:36:13 <+Steffanx> -real 2012-06-21T15:36:55 < cjbaird-vt220> ex-gf Charlotte, one of the most vicitimized crimeBay friends, will now only buy stuff with BuyNow from those honest hard-working and customer-orientated Hong Kong-based sellers. :) 2012-06-21T15:38:24 < BrainDamage> the only time I had an issue with fleabay was that a package never arrived, I sent a mail to the seller, and they shipped a replacement for free 2012-06-21T15:38:40 < BrainDamage> this in years, and 100+ auctions 2012-06-21T15:38:48 <+Steffanx> My sarcasm detector should detect something now cjbaird-vt220 ? 2012-06-21T15:39:02 < BrainDamage> err, not auctions, but buy now 2012-06-21T15:40:53 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-21T15:40:57 -!- [7] [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-21T15:41:32 < cjbaird-vt220> Charl's last auction was for some kind of alternative keyboard ("frogpad"?), "New, in box, never used..." Seller wanted an extra $40 for shipping over the listed shipping, ..and it arrives in standard-mail, the device alone in a sticky-taped box, no manuals, software, etc. The Seller of course did the usual scammer "I'll wear you out before you get PayPal to do anything" routine.. 2012-06-21T15:42:41 < cjbaird-vt220> Steffanx: actually, no.. Charl never had any complaints from the HK sellers-- when there was an issue, their email support got straight on it,. 2012-06-21T15:43:35 <+Steffanx> Oh, i actually bought a second hand product once .. :) 2012-06-21T15:43:49 <+Steffanx> A laptop lcd cable 2012-06-21T15:44:17 <+Steffanx> (It turned out the old cable wasn't faulty, but a wrong/non-compatible LCD … oops) 2012-06-21T15:52:29 -!- cjbaird-vt220 [~cjb@ppp121-44-81-126.lns20.syd6.internode.on.net] has quit [Quit: Leaving] 2012-06-21T15:58:48 -!- dekar [~dekar@dslb-188-107-082-087.pools.arcor-ip.net] has joined ##stm32 2012-06-21T15:58:51 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-21T15:59:29 < Laurenceb> awesome 2012-06-21T15:59:44 < Laurenceb> http://www.pletronics.com/ple/articles/view/401 <-is working 2012-06-21T16:00:37 < dongs> thanks 2 me 2012-06-21T16:01:57 < Laurenceb> :D 2012-06-21T16:02:18 < Laurenceb> F4 is running off my clipped sin tcxo 2012-06-21T16:02:34 < Laurenceb> but pcb is rather hacked now 2012-06-21T16:02:47 -!- phantoneD is now known as phantoxeD 2012-06-21T16:03:21 < Laurenceb> had to cut a 7mil trace and solder wire to it 2012-06-21T16:07:08 < Laurenceb> which is a little fiddly 2012-06-21T16:07:57 < dongs> http://www.youtube.com/watch?v=FaH4za2yoFs lool. attn Laurenceb 2012-06-21T16:08:24 < Laurenceb> blocked 2012-06-21T16:08:32 < dongs> bwahahah 2012-06-21T16:08:53 < Laurenceb> http://vimeo.com/20139582 2012-06-21T16:10:10 < dongs> 2:10 is awesome 2012-06-21T16:13:20 <+dekar> http://www.science20.com/squid_day/squid_your_plate_could_inseminate_your_mouth-91085 2012-06-21T16:13:46 <+Steffanx> /join ##stm32-4chan 2012-06-21T16:18:15 <+dekar> XD 2012-06-21T16:22:32 < cjbaird> "I've probably had hundreds of spermatophores ejaculate on my fingers and never felt a sting" ... there's a furfag out there who beats off squid -_- 2012-06-21T16:26:33 <+Steffanx> Silly 'jokes' are silly 2012-06-21T16:40:49 < Laurenceb> http://kernelhacks.blogspot.co.uk/2012/06/arch-linux-on-wm8650-netbook.html 2012-06-21T16:41:14 < dongs> stopped reading after "linux" 2012-06-21T16:41:31 < dongs> http://bcas.tv/paste/results/G2Z01f20.html 2012-06-21T16:41:35 < dongs> here's some Laurenceb-class coding 2012-06-21T16:42:05 <+Steffanx> WTF dongs 2012-06-21T16:42:22 < dongs> i kno rite 2012-06-21T16:42:31 < dongs> actually cookies if you figure out waht hte FUCK that does 2012-06-21T16:45:23 <+Steffanx> I wonder what the input should be 2012-06-21T16:45:41 <+Steffanx> bX .. . a single it? 2012-06-21T16:45:53 < dongs> dunno, gonna grep the sores to see where the fuck its used 2012-06-21T16:46:21 < dongs> Bus\Bus_I2C.h: I_DATA_L_NOP = BIT_4(1,0,0,0), 2012-06-21T16:46:24 <+Steffanx> It just looks like some fancy way to set bits, but … 2012-06-21T16:46:55 < dongs> 22_T.h: layer ^= BIT_3(1,1,1); 2012-06-21T16:47:29 <+Steffanx> Some one who doesn't want to write 0x07 or 7 i guess 2012-06-21T16:47:34 < dongs> yeah.. 2012-06-21T16:50:05 <+Steffanx> You want to share where this code is part of dongs ? 2012-06-21T16:50:12 < dongs> no 2012-06-21T16:50:24 <+Steffanx> Aaah, secret projects 2012-06-21T16:50:45 < BrainDamage> it's a world troll project 2012-06-21T16:50:53 < BrainDamage> flying dick quadcopter 2012-06-21T16:51:06 <+Steffanx> A photo of himself would be enough 2012-06-21T16:51:46 <+Steffanx> :P 2012-06-21T16:52:22 < cjbaird> The results from that preprocessor hack isn't very compiler optimizer friendly.. 2012-06-21T16:52:52 < dongs> i hope it actually ends up just turning into 0x07 2012-06-21T16:52:57 < dongs> and not 2k of asm 2012-06-21T16:53:04 <+Steffanx> :D 2012-06-21T16:53:21 < karlp> surely your mad zkillz armcc will "do the right thing" anyway right? ;) 2012-06-21T16:53:31 < dongs> im not using that C++ filth 2012-06-21T16:53:32 <+Steffanx> Ha karlp 2012-06-21T16:53:32 < cjbaird> "BIT_4(1,1,0,0)" becomes " static_cast((1 )<< 3 | static_cast((1 )<< 2 | static_cast((0 )<< 1 | static_cast((0 )<< 0 ))))" .. and I'd think current GCC would do the Wrong Thing with all that.. 2012-06-21T16:54:12 < cjbaird> Well, maybe not so much with constant values.. 2012-06-21T16:56:00 < cjbaird> BrainDamage: it's been done: http://www.wired.com/gadgetlab/2008/05/grandmaster-fla/ "Kasparov Attacked by Flying Penis-Copter" 2012-06-21T16:56:40 <+Steffanx> I've seen that one before indeed 2012-06-21T16:56:43 < BrainDamage> excellent, that copter looks rather unstable tough 2012-06-21T16:56:57 < BrainDamage> I guess it's truly dongs' work 2012-06-21T16:57:56 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has joined ##stm32 2012-06-21T17:02:15 -!- emeb [~ericb@12.68.180.146] has joined ##stm32 2012-06-21T17:03:23 < Thorn> BIT_3, BIT_4? you've heard of variadic templates, haven't you? 2012-06-21T17:04:09 < dongs> thorn, very few people actually use gcc for production 2012-06-21T17:04:34 <+Steffanx> LOL? 2012-06-21T17:04:56 < dongs> Steffanx: vararg macro trash is some gcc extension 2012-06-21T17:05:02 < Thorn> wat. 2012-06-21T17:05:08 <+Steffanx> tat. 2012-06-21T17:05:09 < Thorn> it's a c++11 feature 2012-06-21T17:05:10 < dongs> wat i just that. 2012-06-21T17:05:38 < Thorn> http://en.wikipedia.org/wiki/Variadic_template 2012-06-21T17:06:03 < dongs> right.. 2012-06-21T17:06:19 < dongs> if nothing ecxept gcc supports that shit, it might as well be not supported 2012-06-21T17:06:38 <+Steffanx> formalized in the C++11 standard. 2012-06-21T17:06:45 < Thorn> clang does, because it supports almost all of c++11 2012-06-21T17:07:08 < Thorn> microsoft will in msvc2011 I believe. etc. 2012-06-21T17:07:20 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has left ##stm32 ["Leaving"] 2012-06-21T17:07:25 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-21T17:07:27 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-21T17:07:29 <+Steffanx> ops 2012-06-21T17:08:15 < Laurenceb> nooo 2012-06-21T17:08:19 < Laurenceb> ban tiem 2012-06-21T17:08:41 <+Steffanx> /ban Laurenceb ? 2012-06-21T17:10:27 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has quit [Ping timeout: 244 seconds] 2012-06-21T17:19:48 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has joined ##stm32 2012-06-21T17:49:52 -!- emeb [~ericb@12.68.180.146] has quit [Quit: Leaving.] 2012-06-21T18:00:45 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has quit [Quit: peabody124] 2012-06-21T18:20:57 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has joined ##stm32 2012-06-21T18:21:52 < zippe> Why would you not just use 0b notation? 2012-06-21T18:22:45 -!- tavish [~tavish@59.177.13.93] has joined ##stm32 2012-06-21T18:22:45 -!- tavish [~tavish@59.177.13.93] has quit [Changing host] 2012-06-21T18:22:45 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-21T18:28:12 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has quit [Quit: peabody124] 2012-06-21T18:32:47 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-21T18:39:52 < cjbaird> Atmel have a new cheap eval board with 64MB DRAM on it.. (AT32UC3A3-XPLD) 2012-06-21T18:43:35 < Thorn> zippe: 0b notation is gcc-only afaik 2012-06-21T18:43:54 < zippe> Thorn: and that's a problem because? 2012-06-21T18:45:08 < Thorn> arduino libraries #define 256 macros B00000000...B11111111 if I'm not mistaken 2012-06-21T18:47:28 < Thorn> apparently clang does support this too (because it tries to be gcc compatible). but keil, iar etc. certainly don't 2012-06-21T18:58:02 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds] 2012-06-21T18:58:04 -!- tavish_ [~tavish@59.177.9.115] has joined ##stm32 2012-06-21T19:03:19 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has joined ##stm32 2012-06-21T19:30:44 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has quit [Quit: peabody124] 2012-06-21T19:32:03 <+Steffanx> but that's AVR32 and not stm32 cjbaird :P 2012-06-21T19:33:21 < cjbaird> Need to keep a close eye on the competition... 2012-06-21T19:34:42 <+Steffanx> is it competition? :) 2012-06-21T19:34:53 < Thorn> lol 2012-06-21T19:44:03 -!- tavish_ [~tavish@59.177.9.115] has quit [Ping timeout: 245 seconds] 2012-06-21T19:57:08 -!- cjbaird [~cjb@ppp121-44-81-126.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-21T19:58:34 -!- tavish [~tavish@59.177.9.115] has joined ##stm32 2012-06-21T19:58:35 -!- tavish [~tavish@59.177.9.115] has quit [Changing host] 2012-06-21T19:58:35 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-21T20:07:43 -!- r0b- [~rob@adsl-76-235-173-31.dsl.klmzmi.sbcglobal.net] has joined ##stm32 2012-06-21T20:12:55 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-06-21T20:15:31 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has joined ##stm32 2012-06-21T20:20:44 -!- jim940 [~jim940@CPE78cd8e7e43b8-CM78cd8e7e43b5.cpe.net.cable.rogers.com] has joined ##stm32 2012-06-21T20:21:02 -!- roxfan [dunno@91.180.9.140] has joined ##stm32 2012-06-21T20:35:12 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has joined ##stm32 2012-06-21T20:36:53 -!- jim940 [~jim940@CPE78cd8e7e43b8-CM78cd8e7e43b5.cpe.net.cable.rogers.com] has left ##stm32 ["Leaving"] 2012-06-21T20:37:04 -!- jim940 [~jim940@CPE78cd8e7e43b8-CM78cd8e7e43b5.cpe.net.cable.rogers.com] has joined ##stm32 2012-06-21T20:40:33 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has quit [Quit: Leaving] 2012-06-21T20:41:08 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has joined ##stm32 2012-06-21T20:41:27 < Rickta59> I thought the more interesting new board was the freescale one 2012-06-21T20:41:34 -!- voodoofish430 [~mtorres@NAT10.pas.idealab.com] has joined ##stm32 2012-06-21T20:41:36 < Rickta59> not really available though 2012-06-21T20:42:03 < Rickta59> http://forum.arm-hq.com/index.php?/topic/45-new-freescale-m0-arm-freedom-development-board-for-13/ 2012-06-21T20:44:23 < karlp> what's that OpenSDA thing? 2012-06-21T20:44:25 < karlp> like an stlink? 2012-06-21T20:44:45 < karlp> "YOu don't have permission to view the attachment" ?! 2012-06-21T20:44:48 < karlp> who are they kidding 2012-06-21T20:45:01 < karlp> they want me to be a registered logged in user to look at their news aggregator? 2012-06-21T20:45:51 < Rickta59> http://eda360insider.wordpress.com/2012/06/19/freescale-starts-sampling-0-49-kinetis-l-microcontrollers-based-on-arm-cortex-m0-processor-core/ 2012-06-21T20:46:42 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-21T20:48:30 -!- jim940 [~jim940@CPE78cd8e7e43b8-CM78cd8e7e43b5.cpe.net.cable.rogers.com] has left ##stm32 ["Leaving"] 2012-06-21T20:48:54 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Read error: Connection reset by peer] 2012-06-21T20:55:28 < karlp> is that arm-hq page your site Rickta59? 2012-06-21T21:00:25 <+Steffanx> He is not part of the moderating team, so ……. karlp 2012-06-21T21:00:31 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-06-21T21:01:13 <+Steffanx> team = a single person, this time 2012-06-21T21:01:26 < r0b-> what ide do you guys suggest for STM32F0 in linux ubuntu 2012-06-21T21:02:21 <+Steffanx> texane stlink 2012-06-21T21:02:23 <+Steffanx> tnt from the topic 2012-06-21T21:02:25 <+Steffanx> and ... 2012-06-21T21:02:45 <+Steffanx> The standard stm32 peripheral lib ( if you do not want to write your own ) 2012-06-21T21:03:06 < r0b-> what about Code Sourcery? 2012-06-21T21:03:42 <+Steffanx> Should work as well 2012-06-21T21:04:04 < r0b-> TNT's .sh install the toolchain? 2012-06-21T21:04:14 <+Steffanx> Yes 2012-06-21T21:04:25 <+Steffanx> in your home dir 2012-06-21T21:04:34 <+Steffanx> You can bug dekar if you have troueble with it :P 2012-06-21T21:05:25 < r0b-> :P 2012-06-21T21:06:08 < karlp> Steffanx: not sure if texlink supports flashing the f0 yet, isn't that still a WIP? 2012-06-21T21:06:30 < karlp> (just get gcc-arm-embedded from launchpad, instead of TNT or codesourcery) 2012-06-21T21:06:31 <+Steffanx> oh, it's not compatible yet? 2012-06-21T21:06:44 < karlp> not sure if szczys has finished his work. 2012-06-21T21:06:54 < karlp> his github commits make it look like it's not ready yet. 2012-06-21T21:07:07 <+Steffanx> dekar is really proud of his TNT, so use TNT :P 2012-06-21T21:07:09 < karlp> not quite sure why it's taking him so long, it's the same flash loader as the f1... 2012-06-21T21:07:18 <+Steffanx> He claims smaller code size etc. :P 2012-06-21T21:08:03 < r0b-> ok 2012-06-21T21:08:04 < r0b-> :P 2012-06-21T21:08:50 <+Steffanx> but they all work, so it doesn't matter what you start with imho 2012-06-21T21:08:56 <+Steffanx> You can always change if you want to 2012-06-21T21:10:28 < r0b-> ill check out TNT 2012-06-21T21:11:39 < r0b-> must i use git to download it? 2012-06-21T21:12:14 <+Steffanx> or save it https://raw.github.com/EliasOenal/TNT/master/toolchain.sh 2012-06-21T21:12:21 < r0b-> thats what i did 2012-06-21T21:12:22 < r0b-> :P 2012-06-21T21:12:30 < r0b-> oui this should be fun 2012-06-21T21:13:35 <+Steffanx> Get some coffee 2012-06-21T21:14:08 -!- roxfan [dunno@91.180.9.140] has left ##stm32 [] 2012-06-21T21:14:55 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving] 2012-06-21T21:17:32 < r0b-> eh 2012-06-21T21:17:53 <+Steffanx> uh? 2012-06-21T21:18:04 < Rickta59> no that isn't my site karlp 2012-06-21T21:18:26 < r0b-> bleh 2012-06-21T21:18:31 < r0b-> Rick told me not to bother so 2012-06-21T21:19:31 < Rickta59> that site was started by the same guy who runs 43oh.com 2012-06-21T21:20:17 < r0b-> idk rick i think you are right 2012-06-21T21:20:44 < r0b-> my biggest thing is being jobless :-( 2012-06-21T21:20:51 < r0b-> and not able to find work 2012-06-21T21:23:35 < Rickta59> karlp I think szczys found openocd and stopped working on the flash side of stlink 2012-06-21T21:24:05 < Rickta59> https://github.com/szczys/stm32f0-discovery-basic-template 2012-06-21T21:25:11 < r0b-> TNT i just write code compile and flash? 2012-06-21T21:26:14 -!- [7] [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-21T21:26:15 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-21T21:38:33 <+dekar> Steffanx, claims… like we didn't test it 2012-06-21T21:40:23 -!- LawrenceSeattle [~lawrence@66.192.187.106] has joined ##stm32 2012-06-21T21:40:42 <+Steffanx> dekar :P 2012-06-21T21:42:18 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has quit [Quit: peabody124] 2012-06-21T22:22:58 < karlp> Steffanx: well, not all toolchains worked. I had lots of trouble with them linking in arm code. some of that was caused by bad link flags, but some tool chains (SAT) didn't work for the same makefile and source that did work with other toolchains 2012-06-21T22:36:11 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has joined ##stm32 2012-06-21T22:54:07 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Ping timeout: 264 seconds] 2012-06-21T23:03:04 < Laurenceb_> is it possible to bypass the hal in chibios? 2012-06-21T23:03:36 < karlp> why wouldn't it be? 2012-06-21T23:05:33 < Laurenceb_> you might screw something up 2012-06-21T23:05:50 < Laurenceb_> i need to use circular dma on spi 2012-06-21T23:06:26 < Laurenceb_> i guess it might be possible ot make use of https://github.com/mabl/ChibiOS/blob/master/os/hal/platforms/STM32F1xx/stm32_dma.c 2012-06-21T23:13:21 -!- GargantuaSauce [~sauce@blk-252-42-151.eastlink.ca] has quit [Quit: Leaving.] 2012-06-21T23:13:39 -!- GargantuaSauce [~sauce@blk-252-42-151.eastlink.ca] has joined ##stm32 2012-06-21T23:14:20 < karlp> or, you could use an OS that's just an OS, with no hal? 2012-06-21T23:14:25 < karlp> ie, just the scheduling parts? 2012-06-21T23:17:45 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-21T23:20:21 < Laurenceb_> the hal is kind of useful 2012-06-21T23:20:26 < Laurenceb_> but its rather limited 2012-06-21T23:20:35 < Laurenceb_> looks like i can copy the adc code 2012-06-21T23:22:38 < Laurenceb_> need a custom init function and a custom interrupt hander hook thingy 2012-06-21T23:23:26 < Laurenceb_> they dont seem to have thought things through with the hal 2012-06-21T23:24:06 < Laurenceb_> its very CS guru, but a little limited in the real world 2012-06-21T23:26:09 < BrainDamage> having to support multiple platforms ususally also restricts your flexibility as well 2012-06-21T23:26:19 < BrainDamage> like not be able to use the full capability of each device 2012-06-21T23:29:48 < karlp> someone here was talking about wanting the gdb server to stay active when gdb detaches. 2012-06-21T23:29:54 < karlp> but what should that do? 2012-06-21T23:30:14 < karlp> if I do "continue; ctrl-c; ctrl-d" to get out of gdb, it sends a "kill" command to the gdbserver. 2012-06-21T23:30:17 < BrainDamage> remain connected to the board and reopen a tcp socket? 2012-06-21T23:30:30 < karlp> should the target continue? or be left halted? 2012-06-21T23:30:48 < BrainDamage> I would say, remain in which state it is 2012-06-21T23:30:49 < karlp> like if I use st-flash write.... it flashes, then the target is reset and continues. 2012-06-21T23:30:53 < karlp> remain in what state? 2012-06-21T23:30:56 < karlp> if I do monitor resume, 2012-06-21T23:31:06 < karlp> so I don't have to ctrl-c the target, and halt it. 2012-06-21T23:31:16 < karlp> when I press ctrl-d, gdb still sends a kill command. 2012-06-21T23:31:54 < BrainDamage> I don't know what monitor does 2012-06-21T23:31:57 < BrainDamage> I know resume 2012-06-21T23:32:20 < karlp> monitor just sends commands to the gdb server directly. 2012-06-21T23:32:31 < karlp> there's no resume command in gdb directly, 2012-06-21T23:32:43 < karlp> basically, monitor resume is like continue, but you stay at a working gdb prompt 2012-06-21T23:33:53 < BrainDamage> I don't understand why gdb itself would want to kill the remote server process 2012-06-21T23:33:59 < BrainDamage> it sounds unnecessary to me 2012-06-21T23:34:18 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has quit [Quit: This computer has gone to sleep] 2012-06-21T23:38:38 < BrainDamage> maybe add a command line toggle that makes the gdbserver ignore kill commands? or is the kill command sent trough kernel signals? --- Day changed Fri Jun 22 2012 2012-06-22T00:18:45 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has joined ##stm32 2012-06-22T00:18:57 < karlp> that's what I'm trying to work out. 2012-06-22T00:19:05 < karlp> sorry, got caught up int he rest of the football. 2012-06-22T00:19:34 < karlp> I have hackishly just wrapped the existing texlink in a while(1) which works, for not having to start it all the time, 2012-06-22T00:19:50 < karlp> and I've got some gdb scripty stuff to load 2012-06-22T00:19:58 < karlp> but I want to have it keep running when I'm finished, 2012-06-22T00:20:09 < karlp> more experimentation will be in order. 2012-06-22T00:20:17 < karlp> anyone want to chime in with how BMP does it? 2012-06-22T00:20:22 < karlp> or any other gdbserver probe? 2012-06-22T00:22:57 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: brb] 2012-06-22T00:46:39 < Laurenceb_> help 2012-06-22T00:46:51 < Laurenceb_> im being pmd by autism support group 2012-06-22T00:46:59 < Laurenceb_> what to do 2012-06-22T00:48:06 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has joined ##stm32 2012-06-22T00:48:53 < gnomad> tell them Autism isn't real. 2012-06-22T00:49:05 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has quit [Changing host] 2012-06-22T00:49:05 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has joined ##stm32 2012-06-22T00:49:09 < Laurenceb_> i think im getting trolled 2012-06-22T00:57:11 < Thorn> tell them that if they actually had autism they would be unable to form a group 2012-06-22T01:32:31 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Ping timeout: 264 seconds] 2012-06-22T01:33:04 < R0b0t1> Will embedded programming get me laid? 2012-06-22T01:33:53 < Laurenceb_> NO 2012-06-22T01:33:59 < R0b0t1> :( 2012-06-22T01:34:39 < Laurenceb_> in fact the opposite is guaranteed 2012-06-22T01:35:04 < R0b0t1> Damn. 2012-06-22T01:35:09 < R0b0t1> This is such an uphill battle. 2012-06-22T01:37:06 < Laurenceb_> face it, you are going to remain a virgin for the rest of your miserable life 2012-06-22T01:39:52 -!- r0b- [~rob@adsl-76-235-173-31.dsl.klmzmi.sbcglobal.net] has left ##stm32 ["Leaving"] 2012-06-22T01:50:17 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 246 seconds] 2012-06-22T02:00:45 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-22T02:03:25 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-06-22T02:05:48 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has quit [Quit: This computer has gone to sleep] 2012-06-22T02:12:45 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has joined ##stm32 2012-06-22T02:22:02 < GargantuaSauce> the key is to make yourself a robotic replacement to make up for the loss of potential companionship 2012-06-22T02:23:07 < gnomad> you mean line this? http://www.youtube.com/watch?v=W3GiEGPm-Ws 2012-06-22T02:25:52 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has joined ##stm32 2012-06-22T02:29:58 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Read error: Connection reset by peer] 2012-06-22T02:30:53 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-06-22T02:34:07 < GargantuaSauce> that'd do in a pinch 2012-06-22T02:40:51 < dongs> Laurenceb: beep 2012-06-22T03:06:40 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-22T03:25:13 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has joined ##stm32 2012-06-22T03:27:46 -!- BrainDamage1 [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has joined ##stm32 2012-06-22T03:27:46 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-244-200.clienti.tiscali.it] has quit [Disconnected by services] 2012-06-22T03:28:44 -!- BrainDamage1 [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has quit [Read error: No route to host] 2012-06-22T03:29:10 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has joined ##stm32 2012-06-22T03:30:09 <+dekar> I tend to prefer unsigned over signed, now I read signed performs better since the undefined overflow allows more compiler optimizations 2012-06-22T03:43:15 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has quit [Read error: Connection reset by peer] 2012-06-22T03:45:07 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has joined ##stm32 2012-06-22T04:21:51 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has quit [Ping timeout: 272 seconds] 2012-06-22T04:45:18 < Rickta59> link to article dekar? 2012-06-22T04:46:13 < szczys> dekar, that is interesting 2012-06-22T04:46:36 < szczys> so if space is not a problem just define everything as signed 2012-06-22T04:46:53 < szczys> and bump up to the next variable size if necessary? 2012-06-22T04:46:57 < BrainDamage> well, you only gain 1 bit with signed vs unsigned 2012-06-22T04:47:14 < BrainDamage> you must be really tight on space to have to resort to it 2012-06-22T04:47:20 < szczys> but he's saying the code is better optimized 2012-06-22T04:47:30 < szczys> so it may run faster 2012-06-22T04:47:33 < szczys> isn't that the point? 2012-06-22T04:47:53 < szczys> I also would be interested in reading this article 2012-06-22T04:48:15 < BrainDamage> having everything signed is the lazy way, not the opposite, so there's no buts, it's a win win situation :p 2012-06-22T04:49:34 < BrainDamage> ( I've seen plenty of bugs due to signed <-> unsigned implicit casting resulting in negative or max(uint) results ) 2012-06-22T04:50:40 <+dekar> Rickta59, szczys http://blog.llvm.org/2011/05/what-every-c-programmer-should-know.html 2012-06-22T04:50:41 < Rickta59> this one? http://stackoverflow.com/questions/410982/is-there-a-difference-in-term-of-performance-between-unsigned-int-and-int-on 2012-06-22T04:51:23 < Rickta59> so is this an llvm only quirk? 2012-06-22T04:51:30 <+dekar> Rickta59, nope 2012-06-22T04:52:31 < Rickta59> thanks .. reading 2012-06-22T04:52:46 < szczys> but you have to use the compiler flag -fwrapv to take advantage of the optimizations 2012-06-22T04:52:52 < Rickta59> interesting ..so are you using llvm? 2012-06-22T04:52:57 <+dekar> I was referencing the part about: "Signed integer overflow" 2012-06-22T04:53:21 <+dekar> Rickta59, it's the default on OSX 2012-06-22T04:54:34 <+dekar> szczys, you got it wrong, it is able to optimize _because_ of the undefined behavior. the flag you mention disables the optimization due the defining the signed overflow 2012-06-22T04:55:23 < szczys> oh yes, I see now 2012-06-22T04:55:25 < szczys> thanks 2012-06-22T04:55:51 < Rickta59> have you compared llvm generated code vs gcc? 2012-06-22T04:55:57 <+dekar> nope 2012-06-22T04:56:07 <+dekar> gcc is usually 10% faster 2012-06-22T04:56:19 <+dekar> code size is usually comparable at -O2 2012-06-22T04:56:20 < Rickta59> how about code size? 2012-06-22T04:56:24 < Rickta59> k 2012-06-22T04:56:59 <+dekar> but there are extreme examples (real life examples) where one or the other has quite extreme speed advantages 2012-06-22T04:57:32 < Rickta59> 3 or 4 years ago I was playing around with actionscript compiled with llvm 2012-06-22T04:57:49 < Rickta59> but in the end it was only bytecode anyway 2012-06-22T04:57:51 <+dekar> gcc has much lower compile speed, though that probably has changed with LTO and Gold 2012-06-22T04:58:14 < dongs> trusting shit written by llvm dudes who're just there to peddle their warez, passing out their misconceptions as facts 2012-06-22T04:58:23 < Rickta59> heh 2012-06-22T04:58:32 < BrainDamage> and then there's dongs 2012-06-22T04:58:44 < Rickta59> not knowing arm asm .. i can't say 2012-06-22T04:58:50 < BrainDamage> ##stm32's authority on compiler behaviour 2012-06-22T04:58:53 < Rickta59> seemed pretty dense and reasonable to me 2012-06-22T04:58:59 < Rickta59> gcc that is 2012-06-22T04:59:48 <+dekar> I don't like GCC too much, had it segfault on me once in a while 2012-06-22T05:00:24 <+dekar> but the results are usually performing quite nice 2012-06-22T05:00:50 < Rickta59> szczys: ... here are some mods i made to your makefile 2012-06-22T05:00:51 < Rickta59> http://pastebin.com/RT8iw8Bt 2012-06-22T05:01:44 < Rickta59> http://pastebin.com/wvFdshrD ... sections_flash.ld 2012-06-22T05:01:54 -!- cjbaird [~cjb@ppp121-44-81-126.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-22T05:02:16 < Rickta59> http://pastebin.com/kguNbReG 2012-06-22T05:02:47 < Rickta59> http://pastebin.com/YcT18duH 2012-06-22T05:03:12 < Rickta59> those ld scripts are all based on the zip file 2012-06-22T05:03:20 < Rickta59> hacked up and lots of good stuff removed 2012-06-22T05:03:56 < Rickta59> /* this call is for some libc initialization stuff that isn't part of some gcc toolchains comment out for now 2012-06-22T05:03:56 < Rickta59> we are doing bare metal stuff with C figure out what you need to do some other way 2012-06-22T05:03:56 < Rickta59> bl __libc_init_array 2012-06-22T05:03:56 < Rickta59> */ 2012-06-22T05:04:05 < Rickta59> and i took that out of the startup_stm32f0xx.s 2012-06-22T05:05:18 < Rickta59> i'm really not sure about the lineage of those original files so I was less than enthusiastic about posting them on github 2012-06-22T05:05:52 <+dekar> Rickta59, about the likerscript I gave you? 2012-06-22T05:05:54 < Rickta59> thanks btw dekar .. those helped me out 2012-06-22T05:06:04 <+dekar> just mail them already 2012-06-22T05:06:08 <+dekar> or download their IDE 2012-06-22T05:06:15 <+dekar> should come with it 2012-06-22T05:06:31 < Rickta59> i wish stm would just generate some ldscripts and be done with it 2012-06-22T05:07:01 <+dekar> Rickta59, for all possible toolchains? 2012-06-22T05:07:13 < Rickta59> just some generic ld scripts for the f0 board 2012-06-22T05:07:18 <+dekar> different linkers want different scrips 2012-06-22T05:07:19 < Rickta59> for a generic gcc 2012-06-22T05:07:43 < Rickta59> i think that one i have should work with most as long as they use the same startup no? 2012-06-22T05:07:53 -!- voodoofish430 [~mtorres@NAT10.pas.idealab.com] has quit [Quit: Leaving.] 2012-06-22T05:07:57 < Rickta59> i tried it with sat and codesourcery 2012-06-22T05:07:59 <+dekar> for example the new GCC linker (Gold) doesn't like the script I gave you 2012-06-22T05:08:09 < Rickta59> : ( 2012-06-22T05:08:13 < Rickta59> yeah .. so they are shite 2012-06-22T05:08:31 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has quit [Ping timeout: 264 seconds] 2012-06-22T05:08:57 < Rickta59> gold is a superset? 2012-06-22T05:09:20 <+dekar> Rickta59, there's no magic involved in linker scripts and startup code, just check which information they share and adjust 2012-06-22T05:09:52 <+dekar> gold is some contribution by google, I think it is supposed to replace LD on long term 2012-06-22T05:10:16 <+dekar> it links like 5 times faster which is quite relevant when using LTO 2012-06-22T05:10:40 < Rickta59> i can't really say that compiling mcu code is slow 2012-06-22T05:10:56 < Rickta59> it isn't like compiling 500k lines of stl template stuff 2012-06-22T05:12:03 <+dekar> Rickta59, my firmware is growing a lot lately, I've added a crypto lib as well as a lua compiler and lua byte code VM 2012-06-22T05:12:18 < Rickta59> does it take more than 2 minutes to compile? 2012-06-22T05:12:32 <+dekar> probably around 1min 2012-06-22T05:12:50 < Rickta59> i've worked on projects that took 30 minutes to compile and link the whole system 2012-06-22T05:13:03 < Rickta59> granted that was 15+ years ago 2012-06-22T05:13:24 < Rickta59> and now my arm is faster than most of the machines i used back then :) 2012-06-22T05:14:01 <+dekar> Rickta59, about the linkerscript. I don't think those have enough threshold of originality to begin with. especially for your stripped version. so it's questionable whether they can actually be copyrighted 2012-06-22T05:14:21 <+dekar> IANAL though, especially not for US law 2012-06-22T05:14:23 < Rickta59> i just left it in 2012-06-22T05:14:45 < Rickta59> i don't really know the right thing to do there .. 2012-06-22T05:14:48 <+dekar> yeah, I just mean it probably isn't too much of a deal anymore - even that scripts heritage 2012-06-22T05:15:09 < Rickta59> i took out more than i added 2012-06-22T05:15:28 < Rickta59> and just adjusted a few lengths 2012-06-22T05:15:41 <+dekar> and removed some sanity checks... 2012-06-22T05:15:52 < Rickta59> i probably should have left in the smarts about the ram and such 2012-06-22T05:16:10 < Rickta59> i was just trying to see how much i could take out to get it to still work 2012-06-22T05:16:33 <+dekar> doesn't the sat project have an LGPL licensed linker script you could steal? 2012-06-22T05:16:48 <+dekar> in case you want to be sure of the origin 2012-06-22T05:17:20 < Rickta59> hmm .. yes there does seem to be some in there .. let me go look at them 2012-06-22T05:17:27 <+dekar> though I just think you should mail raisonance and ask them if you're unsure 2012-06-22T05:18:21 <+dekar> I personally don't like GPL derivates too much 2012-06-22T05:18:39 < cjbaird> I have tiny pi... https://imgur.com/RYBDh 2012-06-22T05:19:45 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has joined ##stm32 2012-06-22T05:20:01 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has quit [Changing host] 2012-06-22T05:20:01 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has joined ##stm32 2012-06-22T05:20:09 <+dekar> I have panda :) https://dl.dropbox.com/u/28467113/panda.jpg 2012-06-22T05:26:32 < BrainDamage> is this a penis size comparison contest? because I've got a webcam and a ruler 2012-06-22T05:27:06 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has joined ##stm32 2012-06-22T05:30:03 <+dekar> BrainDamage, now all you need is a penis 2012-06-22T05:35:09 -!- dekar [~dekar@dslb-188-107-082-087.pools.arcor-ip.net] has quit [Quit: Leaving] 2012-06-22T05:39:15 < dongs> so if i wanna screw around with say HID bootloader, how do I test my firmware when im directly flashing it with jtag? 2012-06-22T05:39:24 < dongs> dont i have to fuck around wiht vector table relocation and shit 2012-06-22T05:49:51 < dongs> how do i convert elf to hex properly 2012-06-22T05:55:45 -!- GargantuaSauce [~sauce@blk-252-42-151.eastlink.ca] has quit [Quit: Leaving.] 2012-06-22T06:04:36 -!- GargantuaSauce [~sauce@blk-252-42-151.eastlink.ca] has joined ##stm32 2012-06-22T06:10:37 < zippe> dongs: seriously? objcopy does all that 2012-06-22T06:10:53 < dongs> seriously to which part 2012-06-22T06:10:57 < dongs> im not using objcopy. 2012-06-22T06:11:04 < zippe> Mmk. 2012-06-22T06:11:17 < zippe> So if you have a bootloader, it's living at the bottom of flash (assuming stm32 here) 2012-06-22T06:11:21 < dongs> right 2012-06-22T06:11:45 < zippe> So in your app startup code, you need to reset the vector base register to point to your vectors. 2012-06-22T06:11:57 < dongs> thats all? 2012-06-22T06:12:01 < zippe> Ya 2012-06-22T06:12:25 < zippe> If you've told your toolchain that you want to be based at some other address, then the .hex output Should Just Work™ 2012-06-22T06:13:05 < zippe> You can do the vector base relocation in the bootloader if you like, but that assumes you have a contract with the app about where your vectors go 2012-06-22T06:13:10 < zippe> That's not always desirable... 2012-06-22T06:13:26 < dongs> what about debugging 2012-06-22T06:13:35 < dongs> when I load my app for debugging, what happens? 2012-06-22T06:14:42 < zippe> What do you mean? 2012-06-22T06:15:17 < zippe> Assuming you have a global array of vectors, and you're using the symbol that points to the array, you can put the vectors anywhere. 2012-06-22T06:15:28 < zippe> So if by "load for debugging" you mean "load to RAM", it'll still work 2012-06-22T06:15:48 < zippe> I don't know what your gooey does when you "load for debugging" 2012-06-22T06:16:07 < dongs> no, of course its in flash 2012-06-22T06:16:29 < zippe> Ok, then I'm not sure what the difference between "load for debugging" and "load for ripping off the customer" might be 2012-06-22T06:16:49 < zippe> I can probably be more specific if you can give me more details 2012-06-22T06:17:06 < zippe> Are you worried about things like the debugger catching interrupts, etc? 2012-06-22T06:17:25 < dongs> im just worried about it working in general 2012-06-22T06:17:29 < dongs> the hardware will start from bootloader right? 2012-06-22T06:17:34 < dongs> then jump to my app address? 2012-06-22T06:18:03 < zippe> Assuming the bootloader works, yes 2012-06-22T06:18:25 < zippe> The usual convention for booloaders on the CM3 is that they pretend that the ROM starts a few K higher than normal 2012-06-22T06:19:03 < zippe> so say you're on an F1 and you fit your bootloader in 2k. Then you link your app as though the ROM started at 0x0800800 2012-06-22T06:19:08 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has quit [Disconnected by services] 2012-06-22T06:19:08 -!- BrainDamage1 [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has joined ##stm32 2012-06-22T06:19:27 < zippe> er, add the appropriate zero where it obviously goes there 2012-06-22T06:19:43 < pepsi_> 00x0800800 2012-06-22T06:20:17 < zippe> That puts the vector table 2k offset from the base of the ROM. The bootloader will usually look at the first two words and pretend it's the CM3 coming out of reset; it'll load the first word into MSP and the second into PC. 2012-06-22T06:20:51 < zippe> At which point your entry function is running, but the vectors still point to the bootloader's handlers. It's your job to fix up the NVIC as soon as you're ready to handle interrupts. 2012-06-22T06:21:06 < dongs> right. 2012-06-22T06:21:16 < dongs> hmmkay 2012-06-22T06:22:20 -!- BrainDamage1 [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has quit [Client Quit] 2012-06-22T06:22:21 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has joined ##stm32 2012-06-22T06:23:16 < dongs> gonna try that shit. 2012-06-22T06:23:18 < zippe> HID is a vile thing to use for a bootloader, btw. 2012-06-22T06:23:23 < dongs> no its not 2012-06-22T06:23:38 < dongs> :) 2012-06-22T06:23:40 < zippe> If I ever meet you on the street in your radiation and panty-laden country, I will probably punch you in the face. 2012-06-22T06:24:07 < zippe> Also, it means that all of us loaded Mac owners will never be able to use your product. 2012-06-22T06:24:18 < dongs> mac doesn't support HID? 2012-06-22T06:24:20 < dongs> thats terrible 2012-06-22T06:24:37 < zippe> The HID stack will assume you are telling the truth, and it will assume you are going to send HID events. 2012-06-22T06:25:02 < zippe> Well, you might want to consider whether you want to preclude the people with money from buying your device. 8) 2012-06-22T06:25:14 < dongs> mac is about as relevant as NetBSD on Acorn 2012-06-22T06:25:18 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has quit [Ping timeout: 245 seconds] 2012-06-22T06:25:21 < dongs> as much as they would like to think otherwise. 2012-06-22T06:25:25 < zippe> Of course, if your plan is to be a financial fiasco, be my guest. 2012-06-22T06:26:11 < dongs> wai so hate 2012-06-22T06:26:45 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has quit [Ping timeout: 248 seconds] 2012-06-22T06:28:17 < zippe> Because you could be a communications class device and not screw anyone. 2012-06-22T06:29:19 < zippe> HID emulation is superlame. It's "oh wah, I can't deal with feeding Windows a .inf file" 2012-06-22T06:29:48 < zippe> Of course, if Windows shipped with a CDC ACM driver in the first place, people would still say "but really, I'm a mouse" 2012-06-22T06:32:23 -!- cjbaird [~cjb@ppp121-44-81-126.lns20.syd6.internode.on.net] has quit [Ping timeout: 245 seconds] 2012-06-22T06:32:25 -!- cjbaird_ [~cjb@ppp121-44-122-165.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-22T06:34:55 -!- cjbaird_ is now known as cjbaird 2012-06-22T06:44:51 < dongs> zippe, its not as simple as giving an inf. 2012-06-22T06:44:58 < dongs> it would need to be signed etc. 2012-06-22T06:47:09 < zippe> The .inf needs to be signed? That's … entertaining. 2012-06-22T06:47:40 < dongs> ya 2012-06-22T06:47:45 < dongs> or else it pops up shitty warning 2012-06-22T06:48:07 < dongs> the fucking tarduino driver isnt signed 2012-06-22T06:48:11 < dongs> so it pops up a huge red warning 2012-06-22T06:49:18 < dongs> itgs not the actual inf that gets signed.. there' sa .cat file that has a listing of all the files 2012-06-22T06:49:22 < dongs> and their hash etc 2012-06-22T06:49:24 < dongs> that gets signed 2012-06-22T06:49:28 < dongs> if its whql, no warning at all 2012-06-22T06:49:41 < dongs> if its self-signed w/verisign sig, its a non-red warning 'do you want to trut company xyz' 2012-06-22T07:16:35 < zippe> I can see how that would be a problem for you 2012-06-22T07:25:23 < dongs> really now, are you being sarcastic? :) 2012-06-22T07:25:34 -!- GargantuaSauce [~sauce@blk-252-42-151.eastlink.ca] has quit [Ping timeout: 245 seconds] 2012-06-22T07:32:38 < zippe> Well, ask yourself, who would trust you? 8) 2012-06-22T07:32:50 < dongs> thats what I thought you meant. 2012-06-22T07:40:06 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has quit [Remote host closed the connection] 2012-06-22T07:42:42 -!- GargantuaSauce [~sauce@blk-252-42-151.eastlink.ca] has joined ##stm32 2012-06-22T07:58:08 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has joined ##stm32 2012-06-22T08:38:59 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has quit [Quit: peabody124] 2012-06-22T09:16:41 < dongs> http://blog.mecheye.net/2012/06/the-linux-graphics-stack/ haha 2012-06-22T09:33:11 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has joined ##stm32 2012-06-22T10:16:41 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has quit [Quit: This computer has gone to sleep] 2012-06-22T10:25:00 -!- dekar [~dekar@dslb-188-107-082-087.pools.arcor-ip.net] has joined ##stm32 2012-06-22T10:25:04 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-22T10:26:12 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has quit [Quit: peabody124] 2012-06-22T10:26:40 <+dekar> zippe, HID abuse works fine on OSX, I don't know why you think it wouldn't 2012-06-22T10:27:36 <+dekar> OSX allows you to access HID devices via their HID api 2012-06-22T10:28:33 <+dekar> also HID doesn't mean "but really, I'm a mouse", the HID device class is so much more than that 2012-06-22T10:29:01 <+dekar> if you'd pretend to be a mouse, then you could only move the pointer and click ;) 2012-06-22T10:36:41 < zippe> dekar: yes, but most "HID" bootloaders don't actually talk HID 2012-06-22T10:37:13 < zippe> (and yes, I am painfully familiar with the HID device class and subclasses...) 2012-06-22T10:38:02 < zippe> most of them want an arbitrary byte stream directed at an endpoint 2012-06-22T10:40:05 < zippe> (most of -> most of the ones I've dealt with) 2012-06-22T10:40:42 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-22T10:40:45 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-22T10:41:47 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has joined ##stm32 2012-06-22T10:43:20 < dongs> Laurenceb_: beep 2012-06-22T10:43:34 < Laurenceb_> sup 2012-06-22T10:43:39 < dongs> Laurenceb_: were you bitching about quat2rpy stuff in OP/gcs code, how its fail 2012-06-22T10:44:05 < dongs> trying to wrap my head around QMatrix4x4 shit and how it translates into GLC_Matrix4x4 2012-06-22T10:44:06 < Laurenceb_> i dont think so 2012-06-22T10:44:22 < dongs> it looks like GLC_ trolls actually put rows where columns are 2012-06-22T10:45:18 < dongs> http://www.glc-lib.net/doc/class_g_l_c___matrix4x4.html#a90ae56a3c4ced5031352f1c20587e02c 2012-06-22T10:45:22 < dongs> the matrix: blah 2012-06-22T10:45:37 < dongs> why the fuck would they do that 2012-06-22T10:46:25 < Laurenceb_> blerg 2012-06-22T10:46:31 < Laurenceb_> not looked at that before 2012-06-22T10:46:34 < dongs> ok 2012-06-22T10:46:45 < dongs> i remember you saying *something* about preview of shit in there 2012-06-22T10:46:55 < dongs> either that uavtalk shit only sent quats or something to that effect 2012-06-22T10:47:17 < dongs> anyhow, i duplicated GLC's quat2rpy() shit but its hilariously broken 2012-06-22T10:47:24 < Laurenceb_> unfortunatly uavtalk sends roll pitch yaw 2012-06-22T10:47:28 < Laurenceb_> and quats 2012-06-22T10:47:34 < Laurenceb_> for some retarded reason 2012-06-22T10:47:58 < dongs> it seems to show stuff in Earth frame, so when i rotate the board 90 degrees in yaw, roll is then shown as pitch 2012-06-22T10:48:05 < Laurenceb_> i use quat2rpy from opanpilot 2012-06-22T10:48:10 < dongs> thats hte lame one 2012-06-22T10:48:10 < Laurenceb_> seems to work 2012-06-22T10:48:13 < dongs> wiht gimbal lock 2012-06-22T10:48:14 < Laurenceb_> why 2012-06-22T10:48:16 < Laurenceb_> oh 2012-06-22T10:48:17 < dongs> the GLC_ one is without gimbal lock 2012-06-22T10:48:23 < Laurenceb_> hmm 2012-06-22T10:48:24 <+dekar> zippe, well okay then, mine talks valid HID and it works fine on windows and osx, on linux on the other hand usb always has those permission issues 2012-06-22T10:48:29 < dongs> QVector GLC_Matrix4x4::toEuler(void) const 2012-06-22T10:48:30 < dongs> this shit 2012-06-22T10:48:35 < Laurenceb_> quaternions dont have gimbal lock 2012-06-22T10:48:39 < dongs> yes 2012-06-22T10:49:05 < Laurenceb_> so how come openpilot quat2rpy can lock 2012-06-22T10:49:08 < Laurenceb_> i dont understand 2012-06-22T10:49:13 < dongs> beccause eulers do 2012-06-22T10:49:20 < dongs> but this code fakes it 2012-06-22T10:49:22 < dongs> to look nice 2012-06-22T10:49:24 < dongs> only for view 2012-06-22T10:49:37 < Laurenceb_> hmmm 2012-06-22T10:49:49 < dongs> it looks ok but because my matrix math shit is "standard" 2012-06-22T10:49:56 < dongs> with 0 1 2 3 \n 4 5 6 7 type matrix 2012-06-22T10:49:57 -!- dekar [~dekar@dslb-188-107-082-087.pools.arcor-ip.net] has quit [Quit: Leaving] 2012-06-22T10:50:18 < dongs> instead of 0 4 whatever shit they have,, i tried to adjust the [ ] offsets but might have fucked something up 2012-06-22T10:52:01 < dongs> when I do this, QMatrix4x4 m0= m1 * m2; 2012-06-22T10:52:06 < dongs> do I need to "identity" m0 2012-06-22T10:52:38 < dongs> http://bcas.tv/paste/results/PYCCEJ43.html im doing multiplication the lame way 2012-06-22T10:54:02 < dongs> chances of me doing it wrong are: pretty high 2012-06-22T10:55:42 < cjbaird> I had basic code for a ?Seddens method somewhere... 2012-06-22T10:56:55 < cjbaird> I shall interuppt my delicious caramel making and attempt to find it.. 2012-06-22T10:58:54 < cjbaird> "Strassen's recursive method" 2012-06-22T10:58:58 < Laurenceb_> and im going to work 2012-06-22T10:59:00 < Laurenceb_> bbl 2012-06-22T11:00:08 < dongs> cjbaird: lol, is that gonna be faster than thsoe nested loops? 2012-06-22T11:00:13 < cjbaird> Found it. Probably too much to bother with, though. 2012-06-22T11:00:31 < dongs> http://en.wikipedia.org/wiki/Strassen_algorithm#Source_code_of_the_Strassen_algorithm_in_C_language 2012-06-22T11:00:34 < dongs> wikipedo has this 2012-06-22T11:00:35 < cjbaird> Probably only for Mats > ~14x14, I think. 2012-06-22T11:01:37 < dongs> well shit. that still doesnt solve my problem of data being fucked, and im not sure if its multiplication or some other part 2012-06-22T11:01:58 < dongs> not having a clue also doesnt help ;d 2012-06-22T11:02:54 < cjbaird> http://kildall.apana.org.au/~cjb/matmult.c .. It was an assignment for comp201 BACK IN THE DAY 2012-06-22T11:03:37 < dongs> SINGULAR MATRIX 2012-06-22T11:04:13 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-06-22T11:04:25 < dongs> saved in my lolcode library 2012-06-22T11:04:53 < cjbaird> "[$Id: matmult.c,v 0.99 1993/04/19 16:20:26 cbaird Exp cbaird $]" .. rofl 2012-06-22T11:04:59 < dongs> lol 2012-06-22T11:15:20 < dongs> oh what the helll 2012-06-22T11:15:24 < dongs> this chinese bootloader sores I found 2012-06-22T11:15:28 < dongs> full of inline asm() 2012-06-22T11:15:37 < dongs> and a bunch of super ugly hax 2012-06-22T11:15:51 < dongs> ((vu32*)NVIC_VectTab_RAM)[i] = ((vu32*)NVIC_VectTab_FLASH)[i]; 2012-06-22T11:15:52 < dongs> ... 2012-06-22T11:15:53 < dongs> wat 2012-06-22T11:16:31 < dongs> and it installs handlers for PendSVC? 2012-06-22T11:16:41 < dongs> maybe i should read the docs instead of looking at retards code 2012-06-22T11:33:43 < zippe> What are you trying to do? 2012-06-22T11:38:09 < dongs> nothing yet. im wondering what THEY are trying to do 2012-06-22T11:38:18 < dongs> hooking up PendSVC handler and doing some weird shit 2012-06-22T11:40:11 < zippe> mmkay. Well, I'll look back tomorrow and see 8) 2012-06-22T11:40:18 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: brb] 2012-06-22T11:41:43 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-22T11:43:18 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [] 2012-06-22T11:43:29 -!- pelrun [~pelrun@60-241-99-33.static.tpgi.com.au] has joined ##stm32 2012-06-22T11:45:25 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has joined ##stm32 2012-06-22T11:53:46 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has quit [Quit: peabody124] 2012-06-22T12:06:45 -!- tavs [~tavish@125.63.110.139] has joined ##stm32 2012-06-22T12:19:32 < tavs> hi! i am using the codesourcery toolchain on ubuntu x86_64 to build a project, it gives me an error "ld: conflicting architecture profiles M/A" "failed to merge target specific data of file ......" ? i can't figure out what's wrong 2012-06-22T12:20:01 < tavs> i have tried whatever I could find on google 2012-06-22T12:31:00 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has joined ##stm32 2012-06-22T12:33:03 < Laurenceb> so i dont understand the quat2rpy issue 2012-06-22T12:33:22 < Laurenceb> i mean you can express a rotation matrix using a quaternion 2012-06-22T12:33:31 < Laurenceb> so why cant you convert to euler angles simply 2012-06-22T12:35:36 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has quit [Client Quit] 2012-06-22T12:36:04 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Read error: Connection reset by peer] 2012-06-22T12:36:16 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-06-22T12:44:00 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-22T12:44:03 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-22T12:45:49 < karlp> tavs: your C/LD flags might be inconsistent? 2012-06-22T12:46:13 < karlp> you can't do -march=armv6-m and -mcpu=cortex-m3 at the same time or something like that? 2012-06-22T12:46:57 < Laurenceb> any idea wtf this does https://github.com/mabl/ChibiOS/blob/master/os/hal/include/adc.h#L188 2012-06-22T12:48:56 < Laurenceb> its calling the end callback 2012-06-22T12:49:02 < tavs> karlp: they are -mthumb -mcpu=cortex-m3 for gcc, as, ld 2012-06-22T12:49:03 < Laurenceb> but where is that defined? 2012-06-22T12:49:13 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-22T12:49:48 < ratatata> nu 2012-06-22T12:50:18 < karlp> oh, you're actually using ld to link? 2012-06-22T12:50:27 < karlp> are you using arm-none-eabi-ld? or ld? 2012-06-22T12:50:42 < karlp> linking with the x86_64 ld will definitely do bad things 2012-06-22T12:51:48 < tavs> karlp: :o that must be it, gcc calls ld, right? it might be using the /usr/bin/ld 2012-06-22T12:52:23 < karlp> what's your makefile looke like? 2012-06-22T12:56:01 < tavs> karlp: no, that wasnt itt, i corrected the PATH, didnt help. just a sec 2012-06-22T12:58:14 < tavs> karlp: http://pastebin.com/VCvngvmu 2012-06-22T13:01:48 < Laurenceb> oh 2012-06-22T13:01:52 < Laurenceb> wtf https://github.com/mabl/ChibiOS/blob/master/testhal/STM32F4xx/ADC/main.c 2012-06-22T13:02:04 < Laurenceb> why the hell do you have to privde the callback 2012-06-22T13:02:11 < Laurenceb> crazyness 2012-06-22T13:04:15 < dongs> > chibios 2012-06-22T13:04:16 < dongs> found your problem 2012-06-22T13:04:24 < karlp> take out the -Ltooldir/gcc/arm../4.6.3/thumb2 2012-06-22T13:04:39 < karlp> let the tools pick it's own libraries based ont he arch/cpu flags. 2012-06-22T13:06:49 < tavs> karlp: ok 2012-06-22T13:06:59 -!- cjbaird [~cjb@ppp121-44-122-165.lns20.syd6.internode.on.net] has quit [Remote host closed the connection] 2012-06-22T13:09:08 < Laurenceb> i just created a dma-fifo type 2012-06-22T13:09:08 < Laurenceb> for circular dma 2012-06-22T13:10:02 -!- cjbaird [~cjb@ppp121-44-122-165.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-22T13:15:44 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has joined ##stm32 2012-06-22T13:24:19 < dongs> found some fap material for Laurenceb http://www.youtube.com/watch?v=RqXm6rrbioo 2012-06-22T13:25:52 < dongs> too beastly for my taste 2012-06-22T13:26:36 < Laurenceb> brb fapping 2012-06-22T13:31:10 < karlp> hehe 2012-06-22T13:31:14 < karlp> hooray for boobies 2012-06-22T13:35:44 < cjbaird> I Kills Your God. Now building TNT on the raspberrypi. 2012-06-22T13:36:15 < cjbaird> Ever notice that all her videos have a distorted aspect ratio to make her tits look bigger? 2012-06-22T13:37:03 < Laurenceb> lmao 2012-06-22T13:37:22 < tavs> karlp: the libc.so is "./arm-none-linux-gnueabi/libc/lib/libc-2.15.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped 2012-06-22T13:37:22 < Laurenceb> why the hell is she on youtube 2012-06-22T13:37:32 < tavs> ". is this ok? 2012-06-22T13:38:04 < Laurenceb> she needs to head back to youporn 2012-06-22T13:38:34 < BrainDamage> tavs: you're using the wrong toolchain 2012-06-22T13:38:56 < BrainDamage> you have to use the the arm-none-eabi, you're using arm-none-linux 2012-06-22T13:39:30 < tavs> :( damnit 2012-06-22T13:40:05 < BrainDamage> the topic has a script to autocompile a toolchain 2012-06-22T13:41:32 < dongs> hmm where is my stm32l discovery board 2012-06-22T13:41:38 < dongs> pretty sure i had that 2012-06-22T13:42:37 < dongs> http://www.st.com/internet/evalboard/product/247169.jsp o wait no i dont have that 2012-06-22T13:42:51 < dongs> that looks pretty hardcore 2012-06-22T13:43:15 < dongs> $250 2012-06-22T13:43:16 < dongs> fffuuu 2012-06-22T13:43:29 < karlp> oh duh, thanks braindamage, I completely missed that. 2012-06-22T13:43:47 < dongs> stm32 wiki? 2012-06-22T13:43:54 < dongs> is it spammed to death yet 2012-06-22T13:45:01 < tavs> thanks karlp, BrainDamage. i would have wasted a few more hours on this. 2012-06-22T13:58:03 < dongs> ther'es no fuckign way to disable google's fucktarded javascript url redirection is there 2012-06-22T13:58:15 < dongs> i can no longer rightclick PDFs to save the shit from front page of google. 2012-06-22T14:00:38 < karlp> nope. 2012-06-22T14:00:41 < karlp> good job google. 2012-06-22T14:01:47 < dongs> annoying as fucking hell 2012-06-22T14:01:54 < dongs> whats worse is they fuck with mouseover 2012-06-22T14:02:03 < dongs> making it look like its a le git url 2012-06-22T14:02:09 < dongs> but it goes to their fucking spam collector link first 2012-06-22T14:02:19 <+Steffanx> spam collector .... 2012-06-22T14:02:36 < dongs> Steffanx: why teh fuck would google care what you clicked when searching for shit. 2012-06-22T14:02:42 < dongs> there's no legitimate reason 2012-06-22T14:02:47 < dongs> it used not to do that, just a few yeras ago. 2012-06-22T14:02:51 < dongs> now it collects your clicks. 2012-06-22T14:02:56 < cjbaird> 2012: browsing with javascript enabled.. -_- 2012-06-22T14:03:19 < dongs> does disableing javascript fix that shit. 2012-06-22T14:03:25 < dongs> google probably depends on that shit now 2012-06-22T14:03:47 <+Steffanx> In 2012 disabling js is .. 2012-06-22T14:03:59 < dongs> https://sites.google.com/site/propellergcc/documentation/feature-set rofl, now propfags can officially . 2012-06-22T14:05:22 <+Steffanx> Which browser does dongs use? 2012-06-22T14:06:14 < dongs> https://chrome.google.com/webstore/detail/geddoclleiomckbhadiaipdggiiccfje 2012-06-22T14:06:15 < dongs> fuck yeah. 2012-06-22T14:06:48 <+Steffanx> Isn't there a plugin/script that removes the google redirection stuff? 2012-06-22T14:06:59 < dongs> hahaa................................. it still goes to google.com/url? shit 2012-06-22T14:07:01 <+Steffanx> For greasemonkey(firefox) there is 2012-06-22T14:07:04 < dongs> even with js off 2012-06-22T14:07:15 < cjbaird> What's fun is a number of Google's services (GMail..) still work with JS disabled/'deliberately broken', ...but without the ads and Adsense spam. \o/ 2012-06-22T14:07:30 < cjbaird> Made gmail useable for me.. 2012-06-22T14:08:29 < dongs> JavaScript must be enabled in order for you to use Gmail in standard view. However, it seems JavaScript is either disabled or not supported by your browser. To use standard view, enable JavaScript by changing your browser options, then try again. 2012-06-22T14:08:29 < dongs> html view isnt too bad though 2012-06-22T14:08:54 < cjbaird> Yeah, the html view I ment to say. 2012-06-22T14:10:39 < dongs> http://i.imgur.com/LJDYv.jpg lol picfags 2012-06-22T14:13:55 <+Steffanx> Something special there dongs ? 2012-06-22T14:14:25 < dongs> besides a shitty 8bitter? no 2012-06-22T14:14:28 <+Steffanx> Except for (using your words) the microshit PIC 2012-06-22T14:15:51 <+Steffanx> http://userscripts.org/scripts/show/29812 best user script ever dongs :) 2012-06-22T14:16:04 <+Steffanx> 2 lines of js 2012-06-22T14:16:13 < dongs> Last update Jul 8, 2008 ... 2012-06-22T14:16:15 < dongs> you think it still wo rks? 2012-06-22T14:16:18 <+Steffanx> And it does exactly what you wants 2012-06-22T14:16:20 <+Steffanx> Yes, just tried it 2012-06-22T14:16:31 < dongs> m[0].innerHTML=m[0].innerHTML.replace(/return rwt/g, "hógyne"); 2012-06-22T14:16:32 < dongs> wat 2012-06-22T14:16:51 <+Steffanx> :P 2012-06-22T14:17:16 < dongs> it does NOT work. 2012-06-22T14:17:23 < dongs> i just fucking tried it. 2012-06-22T14:17:40 <+Steffanx> Hmm 2012-06-22T14:17:44 <+Steffanx> For me it does 2012-06-22T14:17:55 < dongs> I googled UM0424 2012-06-22T14:18:00 < dongs> 1st hit is a pdf 2012-06-22T14:18:07 < dongs> right click, wants to save url.html 2012-06-22T14:18:15 <+Steffanx> oh, oops :) 2012-06-22T14:22:07 < dongs> rcgroups just crashed 2012-06-22T14:22:13 < dongs> Error 102 (net::ERR_CONNECTION_REFUSED): The server refused the connection. 2012-06-22T14:23:15 <+Steffanx> Party 2012-06-22T14:23:24 < dongs> lunix doing what it does best, failing 2012-06-22T14:23:33 <+Steffanx> Time to install IIS 2012-06-22T14:23:38 < dongs> truly. 2012-06-22T14:27:09 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has left ##stm32 ["PONG :sendak.freenode.net"] 2012-06-22T14:32:07 < dongs> still down 2012-06-22T14:32:07 < dongs> lol. 2012-06-22T14:32:13 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 276 seconds] 2012-06-22T14:34:25 <+Steffanx> This one seems to work dongs 2012-06-22T14:34:26 <+Steffanx> https://chrome.google.com/webstore/detail/ccenmflbeofaceccfhhggbagkblihpoh/details 2012-06-22T14:34:37 <+Steffanx> but .. you have to test yourself it EVERYTHING still works 2012-06-22T14:34:48 <+Steffanx> It seems to mess with all google related urls 2012-06-22T14:35:07 <+Steffanx> */all/many 2012-06-22T14:35:50 <+Steffanx> This time it's more than 2 lines of js 2012-06-22T14:36:03 < dongs> http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/USER_MANUAL/CD00158241.pdf 2012-06-22T14:36:06 < dongs> yes 2012-06-22T14:36:09 < dongs> success. 2012-06-22T14:38:57 <+Steffanx> Your welcome 2012-06-22T14:39:04 <+Steffanx> *you're 2012-06-22T14:39:20 <+Steffanx> I'm still asleep 2012-06-22T14:39:58 < dongs> i dont understand... this ST sample code does shit like const uint8_t blah[SOMEDEFINEDSIZE] = { bla bla }; 2012-06-22T14:40:09 < dongs> wh cant I just do blah[] = { foo foo }; 2012-06-22T14:40:35 < dongs> is there some compiler that wouldnt do []? 2012-06-22T14:41:07 <+Steffanx> Probably not 2012-06-22T14:42:27 < dongs> ,.. i can even do sizeof() inside that to fill some shit that needs other array sizes in there 2012-06-22T14:42:29 <+Steffanx> Why you even care? You're ArmCC is perfect isn't it? 2012-06-22T14:42:37 < dongs> exactly :) 2012-06-22T14:42:54 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-06-22T14:57:45 -!- metaxa [metaxa@members.bombshellz.net] has quit [Ping timeout: 252 seconds] 2012-06-22T15:02:34 <+Steffanx> whoa, it's still down dongs 2012-06-22T15:03:27 < Laurenceb> what is? 2012-06-22T15:03:44 <+Steffanx> rcgroups 2012-06-22T15:04:00 < dongs> yes 2012-06-22T15:04:06 < dongs> its lunix 2012-06-22T15:04:08 < dongs> not surprised 2012-06-22T15:04:29 < dongs> for a site making several thousand $ per day, they sure have fucktarded administration 2012-06-22T15:04:39 -!- metaxa [metaxa@members.bombshellz.net] has joined ##stm32 2012-06-22T15:04:48 <+Steffanx> thousand $/day .. with ads? 2012-06-22T15:05:22 < Laurenceb> aids 2012-06-22T15:05:43 < dongs> Steffanx: $1k per day with ads minimum 2012-06-22T15:05:51 < dongs> + site sponsors + spama 2012-06-22T15:05:55 <+Steffanx> Grow up please Laurenceb 2012-06-22T15:06:03 < Laurenceb> i get spam sms from them 2012-06-22T15:06:37 <+Steffanx> You gave them your phone number yourself 2012-06-22T15:06:47 < Laurenceb> hobbyking 2012-06-22T15:06:51 < Laurenceb> - for deliveries 2012-06-22T15:07:03 < Laurenceb> and rcgroups got hold of it 2012-06-22T15:10:00 < dongs> http://www.ebay.co.uk/itm/251019691904 haha 2012-06-22T15:10:03 < dongs> its $6 at HK 2012-06-22T15:14:21 < dongs> hmm... software connection/disconection of usb cable wat 2012-06-22T15:14:34 < dongs> time to look at that evalboard schematics 2012-06-22T15:14:38 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-06-22T15:15:38 < karlp> that's pretty common isn't it? 2012-06-22T15:15:53 < karlp> becuase as soon as you're connected, you're required to be responding to things. 2012-06-22T15:16:07 < dongs> i didnt do that on my board. 2012-06-22T15:16:11 < dongs> im wondering what they're doing exactly 2012-06-22T15:16:16 < dongs> pulling one of D lines? or osmehting 2012-06-22T15:17:58 < Thorn> D+ to 3,3V via 1.5K http://www.beyondlogic.org/usbnutshell/usb2.shtml 2012-06-22T15:18:12 < dongs> i know that. 2012-06-22T15:19:19 < dongs> they have a disconnect pin. 2012-06-22T15:20:25 < dongs> ok. lol thats what they got 2012-06-22T15:20:38 < dongs> a retardedly expensive 2-transistor solution 2012-06-22T15:20:45 < dongs> to pull D+ to 3.3K via resistor 2012-06-22T15:28:25 -!- tavs [~tavish@125.63.110.139] has quit [Quit: leaving] 2012-06-22T15:51:56 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Ping timeout: 246 seconds] 2012-06-22T16:00:21 < dongs> hmm 2012-06-22T16:00:36 < dongs> if my HSE is 12mhz... 2012-06-22T16:00:43 < dongs> i wonder wtf i should use for USBCLKconfig 2012-06-22T16:00:52 < dongs> time to read 2012-06-22T16:02:13 < karlp> doesn't that mean quite simply, "no usb for u" 2012-06-22T16:02:31 < dongs> im pretty sure i saw 12mhz as allowed hse for usb 2012-06-22T16:03:59 <+Steffanx> In your dreams peraps 2012-06-22T16:04:00 <+Steffanx> haps 2012-06-22T16:04:04 < dongs> nope. 2012-06-22T16:09:15 < dongs> at least im getting USB interrupts now 2012-06-22T16:10:15 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has quit [Ping timeout: 256 seconds] 2012-06-22T16:16:56 < dongs> whats HSI running at 2012-06-22T16:17:28 < dongs> hm 8mhz 2012-06-22T16:17:29 < dongs> 'wat 2012-06-22T16:17:45 < dongs> ohic. makes my shit run at 48. no thanks 2012-06-22T16:18:29 -!- LawrenceSeattle [~lawrence@66.192.187.106] has quit [Ping timeout: 245 seconds] 2012-06-22T16:22:28 -!- pelrun [~pelrun@60-241-99-33.static.tpgi.com.au] has quit [Read error: Connection reset by peer] 2012-06-22T16:23:10 -!- pelrun [~pelrun@60-241-99-33.static.tpgi.com.au] has joined ##stm32 2012-06-22T16:24:58 -!- LawrenceSeattle [~lawrence@66.192.187.106] has joined ##stm32 2012-06-22T16:45:11 < Laurenceb> wut 2012-06-22T16:45:17 < Laurenceb> i use 12mhz on F1 2012-06-22T16:45:21 < Laurenceb> and usb works 2012-06-22T16:49:09 < dongs> right 2012-06-22T16:49:25 < dongs> im still getting 'device unrecognized' though 2012-06-22T16:49:27 < dongs> hurm. 2012-06-22T16:49:57 <+Steffanx> windows :P 2012-06-22T16:50:09 <+Steffanx> dududdduum 2012-06-22T17:02:08 <+Steffanx> or whatever the sound is windows makes when the device isn't recognized 2012-06-22T17:05:59 < dongs> haha 2012-06-22T17:06:13 < dongs> Ya i was hearing that all evening today. 2012-06-22T17:07:21 < dongs> hmm i wonder what im missing 2012-06-22T17:24:46 < dongs> Laurenceb: beep 2012-06-22T17:24:52 < Laurenceb> sup 2012-06-22T17:24:55 < dongs> whats your pll setup looks like for 12mhz 2012-06-22T17:25:05 < Laurenceb> i use st periph lib 2012-06-22T17:25:14 < dongs> right 2012-06-22T17:25:17 < Laurenceb> its on github, check my logger project 2012-06-22T17:25:20 < dongs> so you just define HSE_VALUE=1200000 or whatever 2012-06-22T17:25:31 < Laurenceb> yeah, in the makefile 2012-06-22T17:25:59 < dongs> ugh 2012-06-22T17:26:04 < dongs> i remember why I dont often look at your code 2012-06-22T17:32:20 < dongs> looks like 99% standard ST code 2012-06-22T17:32:25 < dongs> i must be missing something really dumb 2012-06-22T17:32:59 < dongs> why do you enable rx AND tx interrupts? 2012-06-22T17:33:04 < dongs> USB_HP_* 2012-06-22T17:33:44 < Laurenceb> https://github.com/Laurenceb/STM32-Logger/blob/master/lib/CMSIS_CM3/system_stm32f10x.c#L188 2012-06-22T17:33:52 < Laurenceb> i call that to set up the clk 2012-06-22T17:34:30 < dongs> i didnt look at that file since i asusmed its default autogen'd stuff 2012-06-22T17:34:42 < dongs> ya and it is 2012-06-22T17:35:00 <+Steffanx> That's autogenerated? 2012-06-22T17:35:11 < dongs> on F2/F4 there's a excel app that does it 2012-06-22T17:35:18 < dongs> I think f1 is simple enough its just included with the shit 2012-06-22T17:35:22 < dongs> cmsis lib 2012-06-22T17:36:50 < dongs> /* note changed for 12mhz external xtal */ 2012-06-22T17:37:42 < Laurenceb> you need to be careful with the interrupt names with codesourcery 2012-06-22T17:38:12 < dongs> i think im getting somewehre 2012-06-22T17:38:30 < dongs> is that the only place you changed in _system? 2012-06-22T17:38:51 < Laurenceb> changed? 2012-06-22T17:38:56 < dongs> yeah....? 2012-06-22T17:38:59 < dongs> you d id that change right 2012-06-22T17:39:13 < Laurenceb> https://github.com/Laurenceb/STM32-Logger/blob/master/lib/CMSIS_CM3/system_stm32f10x.c#L78 2012-06-22T17:39:16 < dongs> https://github.com/Laurenceb/STM32-Logger/blob/master/lib/CMSIS_CM3/system_stm32f10x.c#L884 2012-06-22T17:39:35 < dongs> um no lol 2012-06-22T17:39:36 < Laurenceb> oh, yeah 2012-06-22T17:39:42 < Laurenceb> check the history 2012-06-22T17:39:45 < Laurenceb> no wait 2012-06-22T17:39:51 < Laurenceb> its cloned from another project 2012-06-22T17:39:54 < dongs> lo 2012-06-22T17:39:56 < Laurenceb> so it wont be in the history 2012-06-22T17:40:37 < Laurenceb> yeah i had to change some pll setting to make it work 2012-06-22T17:40:57 -!- tavish [~tavish@120.56.133.155] has joined ##stm32 2012-06-22T17:40:58 -!- tavish [~tavish@120.56.133.155] has quit [Changing host] 2012-06-22T17:40:58 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-22T17:42:14 < dongs> welll 2012-06-22T17:42:25 < dongs> my led blinks slower now :p 2012-06-22T17:43:00 < dongs> what project did it come from 2012-06-22T17:43:04 < dongs> hmm, added 7 months ago 2012-06-22T17:43:17 < dongs> but i guess that pll_blah change is the only one.. 2012-06-22T17:49:19 < dongs> haha 2012-06-22T17:49:29 < dongs> seems i can run this f103 at 120mhz 2012-06-22T17:49:30 < dongs> ?? 2012-06-22T17:49:38 < dongs> i did 12*PLL_10 as a test 2012-06-22T17:49:38 < dongs> heh 2012-06-22T17:51:24 <+Steffanx> dekar made it run up to 128mhz iirc 2012-06-22T17:53:01 < dongs> something is fucked 2012-06-22T17:53:06 < dongs> my 100ms delay ends up being 133ms on scope 2012-06-22T18:00:53 < Laurenceb> wait do you have 12mhz xtal? 2012-06-22T18:01:03 < dongs> of course. 2012-06-22T18:01:13 < Laurenceb> then just rip my system code 2012-06-22T18:01:18 < Laurenceb> as it works 2012-06-22T18:01:27 < dongs> no,your code is from old stdperiphlib 2012-06-22T18:01:29 < dongs> thing is 2012-06-22T18:01:35 < dongs> if I define HSE_VALUE 2012-06-22T18:01:40 < dongs> changing that pll s caler has zero effect 2012-06-22T18:05:25 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has joined ##stm32 2012-06-22T18:06:02 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has joined ##stm32 2012-06-22T18:07:20 < dongs> http://i.imgur.com/Af6F2.png 2012-06-22T18:07:23 < dongs> looks sane? 2012-06-22T18:09:14 < dongs> haha wtf 2012-06-22T18:09:27 < dongs> 33ms period...so 16.5ms out of 100ms delay 2012-06-22T18:09:30 < dongs> i wonder what speed that runs at 2012-06-22T18:09:53 < dongs> led was blinking super fast. 2012-06-22T18:15:55 < zyp> sup 2012-06-22T18:16:13 < dongs> calculate how much I overclocked this shit by :) 2012-06-22T18:16:23 < dongs> i had a led blinking w/delayus(100); 2012-06-22T18:16:30 < dongs> period on scope was 33us 2012-06-22T18:16:42 < dongs> so 100us delay was turning into 16.5us 2012-06-22T18:16:49 < zyp> right 2012-06-22T18:16:51 < dongs> 100us @ 72mhz 2012-06-22T18:17:16 < dongs> i think it needs a proportion or some other advanced math 2012-06-22T18:17:51 < zyp> sounds weird that it would be stable at six times the rated maximum, so I'm betting on measurement error or something 2012-06-22T18:17:58 < dongs> how so 2012-06-22T18:18:08 < dongs> all im doing is while (1) { toggle; delay; } 2012-06-22T18:19:05 < zyp> but it's still stable, right? 2012-06-22T18:19:12 < dongs> well, it blinked stably 2012-06-22T18:19:14 < dongs> if thats what you mean 2012-06-22T18:19:34 < dongs> how much mhz was it? i did a proportion shit but I think i failed cuz i got 11.88 2012-06-22T18:20:41 < zyp> if the delay was turning into 16.67us, it was six times, 2012-06-22T18:20:55 < dongs> o rite 2012-06-22T18:20:58 < dongs> so uh 2012-06-22T18:21:03 < dongs> 432mhz rly? 2012-06-22T18:21:09 <+Steffanx> Sure ... 2012-06-22T18:21:49 < dongs> any other explanation? 2012-06-22T18:21:49 < zyp> I don't believe it, at least not until I've tried it :p 2012-06-22T18:22:09 < zyp> what is the time source for the delay? 2012-06-22T18:22:19 < dongs> cycle counter 2012-06-22T18:22:33 < dongs> as in DWT_CYCCNT 2012-06-22T18:23:06 < zyp> and how does the code for that look? 2012-06-22T18:23:44 < dongs> http://bcas.tv/paste/results/oflprw26.html direct rip from OP, seems to be written by zippe 2012-06-22T18:24:34 < dongs> us_ticks = clocks.SYSCLK_Frequency / 1000000; but that doesn't change after reset, and I was dickin with RCC registers directly via GUI 2012-06-22T18:24:49 < zyp> ah, right 2012-06-22T18:25:13 < zyp> so, do you have the values you put into the RCC registers? 2012-06-22T18:25:26 < dongs> I can repeat it again. 2012-06-22T18:25:46 < dongs> need to fix this dumb build error i got now, sec 2012-06-22T18:30:46 < zyp> according to reference manual, pllmul is a four bit value, giving a max multiplication factor of 17, giving a max speed of 204 MHz with a 12 MHz crystal 2012-06-22T18:30:51 < zyp> for F1. 2012-06-22T18:30:56 < dongs> hmm 2012-06-22T18:31:27 < Laurenceb> hmm chibios is failinbg 2012-06-22T18:31:41 < Laurenceb> trying to compile usb demo 2012-06-22T18:31:48 < Laurenceb> and it cant find all the datatypes 2012-06-22T18:33:19 < Laurenceb> any ideas why not? 2012-06-22T18:33:29 < dongs> which ones is it using 2012-06-22T18:33:31 < dongs> shit like u8? 2012-06-22T18:33:39 < dongs> did you include whats MCO 2012-06-22T18:34:16 < dongs> clock out pin? 2012-06-22T18:34:35 < Laurenceb> no the usb datatypes 2012-06-22T18:34:42 < zyp> dongs, yep 2012-06-22T18:34:47 < Laurenceb> main.c:40:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'SDU1 2012-06-22T18:34:49 < dongs> i should look at that probably... 2012-06-22T18:35:25 < zyp> dongs, yeah, it can be set to output PLL divided by two 2012-06-22T18:36:10 -!- emeb [~ericb@ip72-223-89-137.ph.ph.cox.net] has joined ##stm32 2012-06-22T18:36:30 < dongs> hmm 2012-06-22T18:36:33 < dongs> its not outputting anything 2012-06-22T18:36:49 < zyp> did you set the pin to AF? 2012-06-22T18:36:57 < dongs> i hve to? 2012-06-22T18:37:19 < zyp> probably, it's otherwise a normal GPIO? 2012-06-22T18:38:35 < zippe> dongs: yeah, also set the MCO select bits 2012-06-22T18:38:43 < dongs> did that already 2012-06-22T18:38:46 < dongs> in the gooey 2012-06-22T18:38:47 < zippe> However, what's your PLL config? STM32 PLL is retarded simple 2012-06-22T18:38:58 < zippe> They make it sound all complicated in the doc 2012-06-22T18:39:15 < zippe> But it's really, truly, no-brainly 2012-06-22T18:39:29 < zyp> yeah 2012-06-22T18:40:24 < dongs> well making MCO output SYSCLK gives ma 108mhz sinewave-ish shit on the scope 2012-06-22T18:40:45 < zyp> the PLL input can be either HSE, HSE/2 or HSE/4 (when using HSE), and then that's multiplied 2-17 times 2012-06-22T18:40:56 < dongs> PLL/2 is... some 53mhz-ish lookin hsit 2012-06-22T18:41:34 < Laurenceb> sbrkr.c:(.text+0x12): undefined reference to `_sbrk' 2012-06-22T18:41:35 < Laurenceb> wtf 2012-06-22T18:41:38 < dongs> ahahah 2012-06-22T18:41:40 < dongs> welcome to: GCC 2012-06-22T18:41:57 < zyp> newlib* 2012-06-22T18:42:01 < Laurenceb> whats up with chibios 2012-06-22T18:43:21 < dongs> fuck 2012-06-22T18:43:23 < Laurenceb> the hell 2012-06-22T18:43:32 < zippe> Laurenceb: Turn on the map file. Follow the "why is this used" entries 2012-06-22T18:43:50 < Laurenceb> the thing i dont understand is that the example builds ok 2012-06-22T18:44:34 < dongs> sbrk is usually triggered by shit that calls malloc 2012-06-22T18:44:38 < dongs> i.e. printf() etc 2012-06-22T18:44:58 < dongs> http://i.imgur.com/3muLP.png 2012-06-22T18:45:01 < dongs> MCO @ PLL/2 2012-06-22T18:45:53 < zippe> dongs: you're using periphlib and defining HSE_VALUE? 2012-06-22T18:45:57 < dongs> yes 2012-06-22T18:46:11 < zippe> Did you fix the stuff in *system.c that ignores HSE_VALUE ? 2012-06-22T18:46:34 < zippe> I haven't looked in the most recent drops, but it used to be hardcoded to 8 2012-06-22T18:46:51 < zippe> If you are using a 12MHz rock, your error sounds about right 2012-06-22T18:47:01 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has quit [Quit: peabody124] 2012-06-22T18:47:02 < dongs> * (**) HSE_VALUE is a constant defined in stm32f1xx.h file (default value 2012-06-22T18:47:04 < dongs> * 8 MHz or 25 MHz, depedning on the product used), user has to ensure 2012-06-22T18:47:07 < dongs> * that HSE_VALUE is same as the real frequency of the crystal used. 2012-06-22T18:47:10 < dongs> * Otherwise, this function may have wrong result. 2012-06-22T18:47:12 < zippe> Yes, but look at the actual code 2012-06-22T18:48:04 < dongs> i dont see it doing anything crazy wiht hse-value 2012-06-22T18:48:43 < zippe> Is it actually using it to compute the PLL constants? 2012-06-22T18:49:12 < zippe> Older versions of the library, at least, just hardcoded the M and N values 2012-06-22T18:49:34 < dongs> http://bcas.tv/paste/results/yiGTvk19.html 2012-06-22T18:49:43 -!- cjbaird [~cjb@ppp121-44-122-165.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-22T18:50:47 < zippe> You're on a non-CL device? 2012-06-22T18:50:54 < dongs> right, f103_md 2012-06-22T18:51:22 < zippe> I don't see you setting the pre-divider 2012-06-22T18:51:31 < dongs> which register is it 2012-06-22T18:51:56 < zippe> bit 17 in CFGR 2012-06-22T18:51:57 < dongs> http://bcas.tv/paste/results/oG0Lmw80.html heres hte entire file, its just copypaste 1:1 of latest ST's code 2012-06-22T18:52:05 < zippe> should be set to 1 2012-06-22T18:52:20 < zippe> In fact, it's cleared 2012-06-22T18:52:28 < zippe> Hmm, nvm 2012-06-22T18:52:43 < zippe> They are running the PLL input at 12MHz 2012-06-22T18:52:56 < zippe> Keep forgetting the F10x will go that fast 2012-06-22T18:53:12 < karlp> f100 is the only speed limited one. 2012-06-22T18:54:50 < zippe> karlp: hm? F2/F4 PLL wants 1-2MHz input as well. 2012-06-22T18:55:07 < dongs> well what the hell is going on hmm 2012-06-22T18:55:45 < Laurenceb> oh 2012-06-22T18:55:51 < Laurenceb> its a dodgey makefile nvm 2012-06-22T18:56:19 < zippe> RCC->CFGR &= (uint32_t)((uint32_t)~(RCC_CFGR_PLLSRC | RCC_CFGR_PLLXTPRE | 2012-06-22T18:56:19 < zippe> RCC_CFGR_PLLMULL)); 2012-06-22T18:56:20 < dongs> there's nothing in stm32f10x.h that uses HSE_VALUE acutally 2012-06-22T18:56:24 < zippe> That is some elegant shit right there. 2012-06-22T18:56:38 < dongs> haha 2012-06-22T18:57:34 < zippe> dongs: if you set the MCO to output HSE, and configure the GPIO for fast edges, do you get something sensible? 2012-06-22T18:57:44 < dongs> yes 2012-06-22T18:58:19 < dongs> HSE = i get 12mhz-lookin shit 2012-06-22T18:58:47 < dongs> it looks kinda... fucked but still 12mhz 2012-06-22T18:58:57 < zippe> Ok, and that waveform you linked for pll/2 looks like 72MHz / 2 2012-06-22T18:59:09 < dongs> ya 2012-06-22T18:59:29 < dongs> http://i.imgur.com/ACWVS.png < HSE 2012-06-22T18:59:32 < zippe> And code runs, so I think your PLL config is fine (should have looked at the wave first) 2012-06-22T19:00:09 < zippe> Yeah, you probably have no probe ground? That just looks like it's ringing to shot 2012-06-22T19:00:38 < dongs> youre always right as usual 2012-06-22T19:01:11 < zippe> ha! funniest thing I'll hear all day 2012-06-22T19:02:11 < dongs> so with my current config system_clock = 72... ext_osc = 12mhz, PLL/2 = 36mhz 2012-06-22T19:02:38 < dongs> if im getting USB interrupts, does that mean USB Shit is working? 2012-06-22T19:02:45 < dongs> if it was wrong clock, would I be geting htem? 2012-06-22T19:02:49 < zippe> Probably not 2012-06-22T19:03:38 < zippe> USB prescaler is probably set to /1.5 to get 48MHz from your 72MHz PLL output 2012-06-22T19:03:42 < dongs> right 2012-06-22T19:04:07 < Laurenceb> how much timing error can usb line with? 2012-06-22T19:04:11 < Laurenceb> *live 2012-06-22T19:04:55 < dongs> ok... without the pll * 6 change,, yeah, MCO outputs PLLCLK/2 as 54mhz 2012-06-22T19:05:08 < dongs> wiht PLL * 9 that is 2012-06-22T19:05:42 < dongs> 108mhz for sysclk 2012-06-22T19:06:01 < zippe> Laurenceb: tired brain says maybe 1% or so 2012-06-22T19:06:19 < zippe> dongs: F100 overclocks very nicely 2012-06-22T19:06:25 < zippe> Ran one over 50MHz 2012-06-22T19:06:31 < zippe> got a bit warm... 2012-06-22T19:06:59 < dongs> hmm now my pll/2 is 72mhz 2012-06-22T19:07:03 < Laurenceb> i have 0.14% error 2012-06-22T19:07:05 < dongs> hclk = 144 2012-06-22T19:07:28 < zippe> You can't do USB like that, sadly, not enough bits in the prescaler 2012-06-22T19:08:09 < zippe> Is your delay still hosed? 2012-06-22T19:09:24 < dongs> pll_12 is the max it will go before letting smoke out 2012-06-22T19:09:30 < dongs> so ya 144mhz 2012-06-22T19:09:59 < Laurenceb> "ChibiOS/RT Shell 2012-06-22T19:09:59 < Laurenceb> ch> 2012-06-22T19:09:59 < Laurenceb> " 2012-06-22T19:10:03 < Laurenceb> HELL YEAH 2012-06-22T19:11:29 < dongs> ok well, pll is fine, usbclk seems ot be fine 2012-06-22T19:11:35 < dongs> shit should work. 2012-06-22T19:11:36 < dongs> but its not 2012-06-22T19:15:06 < zippe> How does your delay function work? 2012-06-22T19:15:13 < dongs> its YOUR delay function :) 2012-06-22T19:15:25 < dongs> < dongs> http://bcas.tv/paste/results/oflprw26.html direct rip from OP, seems to be written by zippe 2012-06-22T19:15:57 < zippe> Ah, that one, got ripped up by the OP guys that didn't like my math 2012-06-22T19:16:11 < zippe> what's your us_ticks number? 2012-06-22T19:16:18 < zippe> I would expect 72 2012-06-22T19:16:20 < dongs> us_ticks = clocks.SYSCLK_Frequency / 1000000; 2012-06-22T19:16:22 < dongs> yes 2012-06-22T19:17:37 < dongs> thing is, i was dicking with changing RCC editors while shit was running, and I made that delay go to 16.5us when told to do 100us 2012-06-22T19:17:51 < dongs> er, ignore 'editors' 2012-06-22T19:17:56 < dongs> perhaps replce with'registers' 2012-06-22T19:17:58 < zippe> You are running the code that enables tracing, yes? 2012-06-22T19:18:01 < dongs> but i cant duplicate it agian :( 2012-06-22T19:18:11 < dongs> i shoulda screneshotted the regs 2012-06-22T19:18:16 < dongs> enables tracing? 2012-06-22T19:26:28 < dongs> I get RESET istr on connect.. 2012-06-22T19:35:14 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has joined ##stm32 2012-06-22T19:36:43 < zippe> sorry, got dragged off by a naked woman 2012-06-22T19:36:51 < zippe> You said that screwing with your debugger changed things 2012-06-22T19:37:02 < zippe> Maybe it's dicking with DWT_TRCENA 2012-06-22T19:37:18 < zippe> That timer function depends on the trace-enable bit being set to unlock the cycle counter 2012-06-22T19:37:27 < zippe> (*(volatile unsigned long *)0xe000edfc) |= (1<<24); /* DEMCR |= DEMCR_TRCENA */ 2012-06-22T19:37:28 < zippe> (*(volatile unsigned long *)0xe0001000) |= 1; /* DWT_CTRL |= DWT_CYCCNT_ENA */ 2012-06-22T19:37:28 < zippe> ... 2012-06-22T19:37:28 < zippe> time = (*(volatile unsigned long *)0xe0001004) 2012-06-22T19:37:34 < dongs> oh right 2012-06-22T19:37:37 < dongs> but no 2012-06-22T19:37:40 < dongs> thats not in rcc shit gui 2012-06-22T19:37:43 < zippe> sorry, DMECR_ 2012-06-22T19:37:54 < dongs> yeah, i know. the shit that isn't defined in cm3 2012-06-22T19:38:02 < zippe> No, but your debugger has to set TRCENA before it can do many things 2012-06-22T19:38:06 < dongs> ah 2012-06-22T19:38:08 < zippe> Most of them just set it and leave it 2012-06-22T19:38:15 < zippe> But yours might be re-setting it to be "helpful" 2012-06-22T19:38:19 < dongs> hehe 2012-06-22T19:38:43 < zippe> So it's worth checking that time works right for you with the debugger disconnected 2012-06-22T19:39:32 -!- emeb [~ericb@ip72-223-89-137.ph.ph.cox.net] has quit [Ping timeout: 265 seconds] 2012-06-22T19:41:49 < Rickta59> so i'm playing around trying out different CMSIS examples .. 2012-06-22T19:42:05 < Rickta59> and I find some code that is supposed to output the MCO 2012-06-22T19:42:34 < Rickta59> however the defines don't match up .. I thought the whole point of CMSIS was that you could switch processors and bingo bango it works 2012-06-22T19:42:59 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has quit [Quit: peabody124] 2012-06-22T19:44:04 < dongs> lolwut 2012-06-22T19:44:06 < dongs> it worked 2012-06-22T19:44:15 < zippe> Rickta59: The MCO is not part of the architecture 2012-06-22T19:44:28 < Rickta59> isn;t it part of CMSIS? 2012-06-22T19:44:32 < zippe> No 2012-06-22T19:44:40 < Rickta59> or is that not portable between processors 2012-06-22T19:44:41 < dongs> i'd imagine MCO is st-specific 2012-06-22T19:44:46 < zippe> That's what I said 2012-06-22T19:44:55 < zippe> ARM are very definite about "the architecture" 2012-06-22T19:44:59 < Rickta59> k 2012-06-22T19:45:06 < dongs> ok USB hid works 2012-06-22T19:45:09 < zippe> If you haven't downloaded and read DDI0403C, you should. 2012-06-22T19:45:43 < zippe> Understanding "the architecture" vs. "the implementation" vs. "the SoC" will help you a lot 2012-06-22T19:45:53 < zippe> and now, 280. Joy. 2012-06-22T19:46:00 < Rickta59> so if i'm using an m0 i should be looking at the V6 version of that? 2012-06-22T19:47:52 -!- izua [~izua@86.121.2.101] has joined ##stm32 2012-06-22T19:47:52 -!- izua [~izua@86.121.2.101] has quit [Changing host] 2012-06-22T19:47:52 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-22T19:47:55 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-22T19:49:10 < Rickta59> so the DDI0419C? 2012-06-22T19:51:01 < dongs> ok now i can sleep. 2012-06-22T19:51:55 <+Steffanx> Have fun 2012-06-22T19:54:39 -!- emeb [~ericb@ip72-223-89-137.ph.ph.cox.net] has joined ##stm32 2012-06-22T20:02:05 -!- tavish_ [~tavish@59.177.7.134] has joined ##stm32 2012-06-22T20:04:12 < zyp> good idea 2012-06-22T20:04:17 <+Steffanx> Have fun too 2012-06-22T20:04:17 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 252 seconds] 2012-06-22T20:04:22 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 276 seconds] 2012-06-22T20:42:34 -!- voodoofish430 [~mtorres@NAT10.pas.idealab.com] has joined ##stm32 2012-06-22T21:15:57 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has joined ##stm32 2012-06-22T21:16:37 < Laurenceb_> sup 2012-06-22T21:33:38 < Laurenceb_> lol i seem to have made contact with the laser cutter mafia 2012-06-22T21:33:49 <+Steffanx> uh? 2012-06-22T21:33:57 < Laurenceb_> loads of people ringing me about laser cutting, non of them are in yellow pages/google maps 2012-06-22T21:34:56 < Laurenceb_> there seem to be about 20 "companies" within 10 miles of me 2012-06-22T21:44:54 -!- tavish_ [~tavish@59.177.7.134] has quit [Quit: leaving] 2012-06-22T21:46:49 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2012-06-22T21:48:41 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-22T21:48:44 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-22T21:59:46 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has quit [Quit: Leaving] 2012-06-22T22:26:47 < Laurenceb_> #stm32-chan 2012-06-22T22:27:07 <+Steffanx> You mean 4chan 2012-06-22T22:27:20 < Laurenceb_> 32chan 2012-06-22T22:27:44 <+Steffanx> Laurenceb_ and his jokes, the movie 2012-06-22T23:01:51 < Laurenceb_> https://www.youtube.com/watch?v=oTrWPqS4Kxk 2012-06-22T23:28:25 <+Steffanx> Oops 2012-06-22T23:28:46 <+Steffanx> Nothing is perfect Laurenceb_ 2012-06-22T23:30:09 -!- SuicideFunky [~randy@vps-212-153-70-8.twenty-five.nl] has quit [Ping timeout: 245 seconds] 2012-06-22T23:38:24 -!- mrcan__ [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-06-22T23:41:25 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 248 seconds] --- Day changed Sat Jun 23 2012 2012-06-23T00:35:13 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has joined ##stm32 2012-06-23T00:35:31 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has quit [Changing host] 2012-06-23T00:35:31 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has joined ##stm32 2012-06-23T00:50:10 -!- voodoofish430 [~mtorres@NAT10.pas.idealab.com] has quit [Quit: Leaving.] 2012-06-23T01:11:12 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-06-23T01:11:32 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-23T01:26:51 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has joined ##stm32 2012-06-23T01:43:49 < Rickta59> http://www.youtube.com/watch?v=QuNihdGBu8k 2012-06-23T01:44:16 < Rickta59> oops .. wrong channel 2012-06-23T01:53:20 < Laurenceb_> http://ourduino.wordpress.com/2011/09/25/pycon-uk-2011-odonohoe-bbc-codelab-is-a-hoax/#comments 2012-06-23T01:53:22 < Laurenceb_> wut 2012-06-23T01:53:33 < Laurenceb_> some weird epic dramaz 2012-06-23T01:54:45 <+Steffanx> Isn't that an old blabla blog? 2012-06-23T01:55:12 <+Steffanx> There was also some blabla about on twitter 2012-06-23T01:55:24 < Laurenceb_> blabla? 2012-06-23T01:55:29 <+Steffanx> blabla 2012-06-23T01:55:42 < Laurenceb_> blablablablabla 2012-06-23T01:55:57 <+Steffanx> Yes, blabla 2012-06-23T01:56:03 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has quit [Quit: peabody124] 2012-06-23T01:56:08 <+Steffanx> Like many things on the web 2012-06-23T01:59:31 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has quit [Ping timeout: 255 seconds] 2012-06-23T02:06:31 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has quit [Ping timeout: 272 seconds] 2012-06-23T02:19:39 -!- LawrenceSeattle_ [~lawrence@66.192.187.106] has joined ##stm32 2012-06-23T02:22:54 -!- LawrenceSeattle [~lawrence@66.192.187.106] has quit [Ping timeout: 246 seconds] 2012-06-23T02:22:54 -!- LawrenceSeattle_ is now known as LawrenceSeattle 2012-06-23T02:25:55 -!- LawrenceSeattle [~lawrence@66.192.187.106] has quit [Quit: LawrenceSeattle] 2012-06-23T02:48:02 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2012-06-23T03:07:00 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-23T03:24:25 < zippe> Rickta59: that's the v6-M architecture, yes. Don't confuse v6 and v6-M, they are entirely different things. 2012-06-23T03:26:44 < Thorn> lol STM32 Custm HID 2012-06-23T03:30:19 -!- cjbaird [~cjb@ppp121-44-122-165.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-23T03:35:07 < dongs> loldongs 2012-06-23T03:35:11 < dongs> Thorn: yaman 2012-06-23T03:35:19 < dongs> someone @ ST talks leetspeak 2012-06-23T03:35:34 < dongs> cuz in the descritor it says cust0m (if you read the part of unicode crap) 2012-06-23T03:36:05 < dongs> 2011/09/25 < yes very old 2012-06-23T03:36:50 < Thorn> that usb driver is a HUGE MESS, also about half of it has leaked into the examples 2012-06-23T03:37:03 < dongs> ya it is horrible 2012-06-23T03:37:10 < dongs> what sucks about their sutff is like... 2012-06-23T03:37:14 < dongs> there is no docs of how to actually use it 2012-06-23T03:37:17 < dongs> the usb_lib shit 2012-06-23T03:37:29 < dongs> OK: here's examples, just copypaste more and perpetuate fail 2012-06-23T03:37:43 < dongs> UM0424 or whatever is basically useless. 2012-06-23T03:38:00 < Thorn> however, gdb from the latest codesourcery toolchain correctly prints backtrace even when control in an interrupt handler 2012-06-23T03:38:16 < Thorn> +is 2012-06-23T03:38:26 < dongs> what does it print it as? the code before hitting interrupt? 2012-06-23T03:39:16 < Thorn> something like that 2012-06-23T03:42:56 < Thorn> why are endpoint callbacks called in the driver but everything else like RESET_Callback() etc is dispatched in user code? 2012-06-23T03:43:05 < Thorn> etc. 2012-06-23T03:54:53 -!- cjbaird [~cjb@ppp121-44-122-165.lns20.syd6.internode.on.net] has quit [Ping timeout: 245 seconds] 2012-06-23T03:55:06 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-23T04:01:59 < szczys> okay, this is going to happen. I'm not getting up until I get this SPI running 2012-06-23T04:07:34 < Thorn> SPI? SPI is easy 2012-06-23T04:10:38 < dongs> thorn, why were you dicking with custom hid sample anyway 2012-06-23T04:10:45 < dongs> thats like same shit I finally got running yesterday :) 2012-06-23T04:12:14 < Thorn> * Function Name : EP1_IN_Callback. 2012-06-23T04:12:15 < Thorn> * Description : EP1 IN Callback Routine. 2012-06-23T04:12:33 < Thorn> extremely helpful 2012-06-23T04:12:35 < dongs> yeah. 2012-06-23T04:12:59 < Thorn> you can guess from the program logic that it's called after the transfer is complete 2012-06-23T04:15:27 < Thorn> Write the descriptor through the endpoint <--- WAT 2012-06-23T04:15:58 < Thorn> I want to try hidapi, dekar said it was great. that's why custom hid 2012-06-23T04:17:53 < szczys> Thorn: SPI is easy if you don't us the STM peripheral library 2012-06-23T04:17:57 < szczys> but this library is a MESSS 2012-06-23T04:18:01 < dongs> uh... 2012-06-23T04:18:08 < szczys> finally got through everything and hooked it up... nothing 2012-06-23T04:18:09 < dongs> SPI is fine wiht peripheral library 2012-06-23T04:18:19 < dongs> oyoure doing it wrong 2012-06-23T04:18:27 < szczys> thanks Captain Obvious 2012-06-23T04:18:40 < szczys> but which part is wrong? 2012-06-23T04:18:56 < Thorn> the SPI part. 2012-06-23T04:19:12 < Thorn> I can pastebin some of my code that uses spi 2012-06-23T04:19:30 < szczys> That'd be great 2012-06-23T04:19:35 < szczys> the DMA example seems over complicated 2012-06-23T04:19:52 < szczys> I still think I could get it running in 10 minutes or so if I just wrote the register directly 2012-06-23T04:19:57 < szczys> but whatevs 2012-06-23T04:20:44 < dongs> i was driving a TFT display wiht SPI few months back 2012-06-23T04:20:51 < dongs> wiht like 5 minutes of hacking around 2012-06-23T04:21:01 < szczys> I'm trying to take this code and use hardware SPI instead: 2012-06-23T04:21:03 < szczys> http://pastebin.com/U1jNkXqL 2012-06-23T04:21:22 < szczys> So with the command bit being most significant I figure this is basically just 9-bit spi 2012-06-23T04:21:30 < Thorn> http://pastebin.com/urzD6MUS 2012-06-23T04:21:57 < Thorn> look for nrf_init(), spi_transfer(), spi_transfer_byte() 2012-06-23T04:22:01 < szczys> after I get SPI configured I want to replace the function with this: 2012-06-23T04:22:02 < szczys> uint16_t thisData = (uint16_t)Data; 2012-06-23T04:22:03 < szczys> if (isCmd) thisData |= 1<<8; 2012-06-23T04:22:03 < szczys> SPI_I2S_SendData16(SPIx, thisData); 2012-06-23T04:24:21 < zippe> szczys: I keep telling you, don't use the ST Library 2012-06-23T04:24:29 < szczys> yes, I know 2012-06-23T04:24:36 < szczys> but I want to give it a try anyway and learn for myself 2012-06-23T04:24:37 < dongs> did you scope the bus to see if youre doing it wrong? 2012-06-23T04:24:38 < zippe> If you can GPL your shit, use libopencm3 and beat on the #libopencm3 people to fix it 2012-06-23T04:24:50 < dongs> zippe, i thought cm3 was lgpl now 2012-06-23T04:24:51 < szczys> I don't possess a scope or a logic sniffer 2012-06-23T04:24:57 < szczys> (this makes things a bit harder) 2012-06-23T04:24:58 < dongs> szczys: then youre in the wrong hobby 2012-06-23T04:24:59 < zippe> dongs: yes, sorry 2012-06-23T04:25:02 < szczys> heh 2012-06-23T04:25:09 < zippe> I don't tend to think of the two as separate 2012-06-23T04:25:19 < szczys> scopes and logic sniffers? 2012-06-23T04:25:33 < szczys> I suppose a logic sniffers is the poor-man's scope 2012-06-23T04:25:40 < szczys> it would probably work in this case 2012-06-23T04:25:42 < zippe> szczys: cheap rigol = useful 2012-06-23T04:25:46 < dongs> no 2012-06-23T04:25:52 < dongs> cheap equipment = you'll pay again later. 2012-06-23T04:25:54 < szczys> yeah but a cheap rigol is still going to run around $300 2012-06-23T04:26:02 < Thorn> wat, libopencm3 is GPL? (lgpl is the same in firmware due to the lack of dynamic linking, right?) 2012-06-23T04:26:17 < cjbaird> LGPL3 now 2012-06-23T04:26:20 < dongs> Lpgl is = do whatever teh fuck you want including using in commercial shit 2012-06-23T04:26:22 < szczys> Thorn: thanks for posting that example 2012-06-23T04:26:27 < zippe> dongs: normally I'd agree, but the rigol is good enough that I think it doesn't count 2012-06-23T04:26:32 < szczys> I see I've forgotten to set the mode and perhaps that matters 2012-06-23T04:26:38 < zippe> lgpl = you must ship the source to the library 2012-06-23T04:27:01 < zippe> lgpl3 = some restrictions on what you can do with your system if you link this 2012-06-23T04:27:19 < cjbaird> ..and your mods to the library, but not anything in your code needed to make it work with the library 2012-06-23T04:27:38 < zippe> dongs: we have some truly hardcore gear at work, so I do have something of a benchmark re: the rigol 2012-06-23T04:28:31 < Thorn> I had a solder bridge between clk and miso (or was it mosi?) of a dataflash chip on one of the boards I'm currently hacking. I wonder what I'd do without my rigol. 2012-06-23T04:28:33 < zippe> Until some intern f4rked it up I had a CPCI Tek scope/analyser chassis on the bench in my office 2012-06-23T04:29:11 < zippe> The rigol is so cheap it's basically at the hand tool level 2012-06-23T04:29:48 < zippe> szczys: it'll be the best $300 you ever spend, and that includes ten minutes with the chick in the champagne room 2012-06-23T04:30:55 < szczys> ha! Well, I'm a musician by trade so it's hard to justify that kind of price tag for a hobby 2012-06-23T04:31:15 < szczys> I'm not running SPI_Init() which pretty much explains why this isn't working 2012-06-23T04:31:21 < dongs> lo 2012-06-23T04:31:49 < Thorn> l 2012-06-23T04:32:59 < szczys> nope, still nadda 2012-06-23T04:33:08 < szczys> is it hardware, is it software? 2012-06-23T04:33:18 < szczys> so I should connect my serial data line to MOSI, correct? 2012-06-23T04:33:19 < dongs> seriously, poking in the dark wiht hardware = waste of time 2012-06-23T04:33:31 < szczys> I'm familiar with this, dongs 2012-06-23T04:33:38 < szczys> but I've really got no choice at this point 2012-06-23T04:33:57 < dongs> each time I go to another office where idiots cant afford to get some test equipment and they show me something not working and im like "how hte fuck am I supposed to debug this shit" 2012-06-23T04:34:12 < szczys> sure... but I'm not an office 2012-06-23T04:34:39 < szczys> I promise you, if I do open an office a scope will be my first purchase ;-) 2012-06-23T04:35:14 < Thorn> you have to have a product for that, and you can't make one without tools 2012-06-23T04:35:43 < Thorn> unless you mean a private music teacher's office or something 2012-06-23T04:36:03 < dongs> private blogger 2012-06-23T04:36:14 < szczys> yep, I do both of those things 2012-06-23T04:36:18 < Thorn> I made a USB HID progress bar 2012-06-23T04:36:22 < szczys> plus three other jobs 2012-06-23T04:36:26 < dongs> Thorn: wat? 2012-06-23T04:36:30 < dongs> 'progress bar'? 2012-06-23T04:36:34 < dongs> on PC? 2012-06-23T04:36:36 < Thorn> yes 2012-06-23T04:36:46 < szczys> got a video or post about it? 2012-06-23T04:36:50 < dongs> i stopped yesterday when I got the shit booting 2012-06-23T04:36:52 < dongs> cuz it was 2 am. 2012-06-23T04:37:00 < Thorn> usb hid demonstrator from st has a widget to display an analog value 2012-06-23T04:37:13 < dongs> the customhid shite? 2012-06-23T04:37:35 < Thorn> I'm sending an increasing value in a loop, custom hid had an adc hooked up there 2012-06-23T04:38:11 < Thorn> http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/USER_MANUAL/CD00196932.pdf 2012-06-23T04:38:59 < Thorn> see screenshot on page 5 2012-06-23T04:39:00 < dongs> also ST's retarded fucking website 2012-06-23T04:39:20 < dongs> how hard is it to name shit into something human readable 2012-06-23T04:39:34 < dongs> hell even including document id like UM1234.pdf would make more sense 2012-06-23T04:39:36 < dongs> than a fucking number 2012-06-23T04:40:55 < Thorn> I rename every document I download from st.com 2012-06-23T04:41:10 < dongs> ya... 2012-06-23T04:41:19 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has joined ##stm32 2012-06-23T04:42:40 < szczys> so this is not returning from the SPI_Config() function call 2012-06-23T04:42:58 < dongs> huh 2012-06-23T04:43:03 < dongs> why wouldnt it 2012-06-23T04:43:07 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has quit [Read error: No route to host] 2012-06-23T04:43:25 < szczys> don't know 2012-06-23T04:43:33 < szczys> anyone see what I'm doing wrong? http://pastebin.com/FbhZjrHL 2012-06-23T04:44:00 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has joined ##stm32 2012-06-23T04:44:39 < dongs> http://bcas.tv/paste/results/uDJnim95.html 2012-06-23T04:44:40 < Thorn> RCC_APB2PeriphClockCmd() <----- isn't SPI on APB1? 2012-06-23T04:44:43 < dongs> here's my SPI init 2012-06-23T04:44:47 < dongs> on F4 2012-06-23T04:46:41 < szczys> Thorn: Checking now 2012-06-23T04:47:03 < Thorn> what is the value of SPIx_CLK? 2012-06-23T04:47:13 < zippe> szczys: yeah, which SPI? 2012-06-23T04:47:19 < zippe> SPI1 is on APB2, SPI2+ are on APB1 2012-06-23T04:47:34 < zippe> Once again, screwed by ST's craptastic API 2012-06-23T04:47:43 < dongs> how is that screwed 2012-06-23T04:48:01 < zippe> dongs: why do I have to know which clock control register controls my peripheral? 2012-06-23T04:48:05 < szczys> sorry, let me roll the defines into that pastebin 2012-06-23T04:48:12 < zippe> The API should be "turn the clock for SPI1 on" 2012-06-23T04:48:15 < dongs> zippe, why shouldnt you 2012-06-23T04:48:27 < zippe> dongs: because the library could know it already 2012-06-23T04:48:39 < dongs> as opposed to directly twiddling registers and looking it up anyway? 2012-06-23T04:48:48 < zippe> dongs: exactly 2012-06-23T04:48:54 < szczys> Here it is with the defines as well: http://pastebin.com/ANVM1z4k 2012-06-23T04:49:00 < Thorn> you can easily do RCC_APB1PeriphClockCmd(RCC_APB1Periph_something, ENABLE); 2012-06-23T04:49:04 < zippe> Either give me an API that does something useful, or sod off 2012-06-23T04:49:04 < dongs> why do you keep using retarded ad-filled paste sites 2012-06-23T04:49:19 < Thorn> or rather RCC_APB2PeriphClockCmd(RCC_APB1Periph_something, ENABLE); 2012-06-23T04:49:35 < zippe> Thorn: right, and that does nothing useful 2012-06-23T04:49:38 < dongs> st lib has checks against that 2012-06-23T04:49:42 < szczys> what paste site do you prefer? 2012-06-23T04:49:50 < dongs> thats why they have a IS_APB_BLAH_PERIPHERAL() macro in there 2012-06-23T04:49:50 < zippe> dongs: it doesn't 2012-06-23T04:49:53 < dongs> does too 2012-06-23T04:50:02 < zippe> dongs: there are bit collisions between the registers 2012-06-23T04:50:08 < dongs> assert_param(IS_RCC_AHB_PERIPH(RCC_AHBPeriph)); 2012-06-23T04:50:14 < zippe> dongs: and nobody checks the results or enables assertions 2012-06-23T04:50:14 < dongs> ^ this shit 2012-06-23T04:50:18 < dongs> of course. 2012-06-23T04:50:25 < dongs> but the effort is there. 2012-06-23T04:50:40 < zippe> dongs: you call it effort, I call it stupid 2012-06-23T04:51:11 < zippe> this->turn_on_the_fucking_thing() 2012-06-23T04:51:21 < zippe> Anything conceptually more complex than that = fail. 2012-06-23T04:52:04 < zippe> szczys: stupid question, do you have the clock for GPIOA on? 2012-06-23T04:52:15 < Thorn> that assert may not always trigger, what if numerical values for different clocks are the same 2012-06-23T04:52:26 < zippe> szczys: You are probably going to have to step through the code until you find where it's hanging 2012-06-23T04:52:30 < dongs> Thorn: he already said that 2012-06-23T04:52:57 < Thorn> you need c++ and enums to check that at compile time 2012-06-23T04:53:09 < zippe> Oh, this is awesome. It looks like maybe the mplab compiler has hardcoded builtins for printf and friends. 2012-06-23T04:53:12 < cjbaird> dpaste.org has the least junk and busted html imho 2012-06-23T04:53:25 < dongs> whats wrong wiht bcas.tv/paste 2012-06-23T04:53:34 < szczys> zippe: holy cow! 2012-06-23T04:53:42 < szczys> I had been running this from software 2012-06-23T04:53:49 < szczys> and using the PortC pins 2012-06-23T04:53:57 < szczys> when I moved to PortA I never turned the clock for them on 2012-06-23T04:54:08 < zippe> Heh. See above inre: screwed. 2012-06-23T04:54:19 < szczys> would that make this function hang though? 2012-06-23T04:54:21 < zippe> I would rather shave with a broken beer bottle than use that library 2012-06-23T04:54:30 < zippe> Yes, if you touch a peripheral whose clock is off, you will hang 2012-06-23T04:54:32 < szczys> zippe: liar 2012-06-23T04:54:40 < cjbaird> done that: "shave with a broken beer bottle" 2012-06-23T04:54:40 < szczys> good to know 2012-06-23T04:54:59 < zippe> cjbaird: explains much 2012-06-23T04:56:23 < cjbaird> Necessary skills for someone who is currently building TNT on the raspberrypi. 2012-06-23T04:56:51 < dongs> useless stuff on useless hardware 2012-06-23T04:57:26 -!- emeb [~ericb@ip72-223-89-137.ph.ph.cox.net] has left ##stm32 [] 2012-06-23T04:58:01 < cjbaird> ..and it's just finished installing. STM God: killed. 2012-06-23T04:58:41 < szczys> hmmm... still not working but it's also no longer hanging 2012-06-23T04:59:06 < szczys> I might need to hook up a shift register and see what's coming out of this 2012-06-23T04:59:15 < szczys> that's the super-poor-man's scope 2012-06-23T04:59:57 < zippe> cjbaird: still not a fan of TNT 2012-06-23T05:00:11 < zippe> cjbaird: but if someone fixes the multilibs, maybe. 2012-06-23T05:04:15 < cjbaird> You're waiting on working hardfloat too, I take it. :) 2012-06-23T05:11:29 < dongs> hardfloat works in crossworks, and they use gcc 2012-06-23T05:11:33 < dongs> are you saying closedsores > opensores? 2012-06-23T05:13:05 < zippe> cjbaird: no, I have working hardfloat 2012-06-23T05:13:44 < zippe> cjbaird: But on gcc-4.6.x using the ARM bare-metal toolchain, which is a canned version of the GCC-EMBEDDED branch 2012-06-23T05:14:06 < zippe> TNT is using Linaro, which targets v7A, rather than v7M/v7R 2012-06-23T05:14:20 < zippe> But it's also tracking current 4.7.x 2012-06-23T05:14:38 < zippe> I'd like to see what the tradeoffs are really like. 2012-06-23T05:14:57 < zippe> I'm happy with the codegen stability of the ARM toolchain, but I'm a hopeless tinkerer. 8) 2012-06-23T05:15:32 < zippe> dongs: if someone was going to pay me to do it, I would write the multilib configs 2012-06-23T05:15:54 < zippe> dongs: or I would pass 30% of it plus a couple of beers off to an intern and they could do it 2012-06-23T05:16:11 < zippe> I did it once for SAT, but not making that mistake again 2012-06-23T05:16:20 < zippe> … 2012-06-23T05:16:50 < dongs> oh. 2012-06-23T05:16:53 < dongs> had to read what multilibs is 2012-06-23T05:17:07 < zippe> yeah, so basically if you use anything called *printf* and you compile it with the xc32 compiler from Microchip, count on the compiler emitting a random selection of references to functions in their C library. Even if you disable builtins. 2012-06-23T05:17:11 < dongs> basically same lib built either with soft or hard float 2012-06-23T05:17:13 < dongs> or whatever? 2012-06-23T05:17:21 < zyp> dongs, or for different archs 2012-06-23T05:17:32 < zippe> dongs: It's how gcc handles support for more than one ABI 2012-06-23T05:17:50 < zyp> zippe, or architectures 2012-06-23T05:18:08 < zippe> dongs: rather than having N completely different compilers which are 99% the same, you have one compiler and then there is magic that works out, based on the commandline options, which libraries should be linked. 2012-06-23T05:18:21 < zippe> zyp: or ISA, yes. 2012-06-23T05:22:06 < Thorn> my hid device responds to IN requests to turn leds on/off from the hid demonstrator. it displays "led on/off" on the lcd. 2012-06-23T05:48:29 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Read error: Operation timed out] 2012-06-23T05:50:12 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-23T06:31:51 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has quit [Quit: Ex-Chat] 2012-06-23T06:52:00 < dongs> bitbanding is so exciting 2012-06-23T06:52:19 < dongs> http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dai0179b/CHDJHIDF.html 2012-06-23T06:53:00 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has joined ##stm32 2012-06-23T06:54:12 < dongs> anyone done anything exciting wiht that? 2012-06-23T06:54:19 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has joined ##stm32 2012-06-23T06:54:21 < zippe> No, it stinks 2012-06-23T06:54:31 < dongs> what really. 2012-06-23T06:54:37 < zippe> Most SoC vendors haven't reworked their peripherals to do useful things with single-bit changes 2012-06-23T06:55:20 < dongs> but its useful for gpio! 2012-06-23T06:55:44 < zippe> Better to have set/clear register pairs for GPIO data 2012-06-23T06:55:47 < szczys> I'm still working on this SPI 2012-06-23T06:55:56 < szczys> using a Bus Pirate to sniff the communications 2012-06-23T06:56:01 < szczys> I'm getting the right number of bytes 2012-06-23T06:56:06 < szczys> but they're all 0x00 2012-06-23T06:56:13 < zippe> szczys: OLS probably works with the BP these days 2012-06-23T06:56:18 < szczys> so something's not working right on the MOSI 2012-06-23T06:56:24 < szczys> OLS? 2012-06-23T06:56:35 < zippe> Open Logic Sniffer (client) 2012-06-23T06:56:52 < szczys> oh yes, I think you're right 2012-06-23T07:03:42 < szczys> Are there any obvious reasons I wouldn't be getting data out of the MOSI pin? 2012-06-23T07:06:54 < zippe> GPIO config bad 2012-06-23T07:07:05 < zippe> Not writing to the data register 2012-06-23T07:08:57 < szczys> eh... 2012-06-23T07:09:04 < szczys> looks like my data is bad 2012-06-23T07:09:14 < szczys> I just tried sending 0x01FF and that seems to work 2012-06-23T07:15:49 < szczys> This is strange 2012-06-23T07:16:11 < szczys> I'm getting the data I would expect, except that there are two extra bits at the beginning of the transmission 2012-06-23T07:16:18 < szczys> both 0 2012-06-23T07:16:31 < szczys> so instead of 0x80 2012-06-23T07:16:37 < szczys> the first byte is 0x20 2012-06-23T07:16:46 < szczys> like everything's shifted right by two bytes 2012-06-23T07:21:46 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has joined ##stm32 2012-06-23T07:24:23 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has quit [Changing host] 2012-06-23T07:24:23 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has joined ##stm32 2012-06-23T07:24:23 < dongs> developers developers developers 2012-06-23T08:33:08 * cjbaird used his ch'i to cut acrylic straight with only his own hands... 2012-06-23T08:34:31 < cjbaird> Didn't need the assistance of a Naruto handband either, dongs. 2012-06-23T08:37:23 < cjbaird> She's still a pussy for not boning Hinata. 2012-06-23T08:37:25 < cjbaird> *He's 2012-06-23T08:45:01 < dongs> take ur annimay talk to /privmsg 2012-06-23T08:57:08 < dongs> need to resume haxing this hid shit i suppose 2012-06-23T08:57:12 < dongs> or assemble more panels :( 2012-06-23T08:57:15 < dongs> hmm,, saturday. 2012-06-23T09:02:05 < dongs> so how many of you are gonna start using propeller now that there's gcc for it 2012-06-23T09:04:11 < cjbaird> Call me when there's Gentoo. 2012-06-23T09:08:13 < dongs> propfailer 2012-06-23T09:10:03 < dongs> no interrupts or peripherals 2012-06-23T09:10:10 < dongs> but you can generate NTSC video!!!111111111111oneonelevelen 2012-06-23T09:11:30 < dongs> dont make me canuck all over your face 2012-06-23T09:21:30 < dongs> http://www.kickstarter.com/projects/453951341/sensordrone-the-6th-sense-of-your-smartphoneand-be 2012-06-23T09:21:35 < dongs> more and more idiots are born daily 2012-06-23T09:23:35 < dongs> selling $20 worth of parts for $199? 2012-06-23T09:24:09 < dongs> it works with iTrash? Instant += $299 to price 2012-06-23T09:24:25 < dongs> http://www.oscium.com/products/mixed-signal-oscilloscope-imso-104 or shit like this 2012-06-23T09:24:28 < dongs> leawl 2012-06-23T09:25:24 < zippe> imso? yeah 2012-06-23T09:25:26 < zippe> It's crap 2012-06-23T09:25:30 < dongs> of course its crap 2012-06-23T09:25:37 < zippe> It doesn't have to be crap 2012-06-23T09:25:40 < zippe> But, it is. 2012-06-23T09:25:51 < dongs> its crap because its for itrash. 2012-06-23T09:25:55 < dongs> and beacuse it uyses cypress psoc shit 2012-06-23T09:26:05 < dongs> and because it costs them $5 to make 2012-06-23T09:26:11 < dongs> yet sells for $299 2012-06-23T09:28:22 < zippe> Sticks and stones... 2012-06-23T09:28:23 < zippe> Net Assets 2012-06-23T09:28:23 < zippe> $3,241,483.93 2012-06-23T09:28:29 < dongs> of what 2012-06-23T09:28:38 < dongs> oscium? 2012-06-23T09:29:00 < zippe> Join the dots, sonny. Meanwhile, off to shoot some knees. 2012-06-23T09:30:44 < zippe> Ah now. You could have picked the right horse too. Pity. 2012-06-23T09:30:47 -!- zippe [~Adium@173.11.99.161] has quit [Quit: Leaving.] 2012-06-23T09:31:21 < dongs> shut up 2012-06-23T09:31:23 < dongs> im trying to code 2012-06-23T09:54:11 < dongs> http://www.adafruit.com/images/large/oled12864back_LRG.jpg 2012-06-23T09:54:14 < dongs> holllllllllllllllllly shit 2012-06-23T09:59:18 < dongs> http://www.ebay.com/itm/130495997889 gonna order some of these i think 2012-06-23T09:59:34 < dongs> lets see if they givce me a discunt for 10need to find out to contact them directly without shitbay 2012-06-23T09:59:55 < dongs> i'd use SPI of course. 2012-06-23T09:59:59 < dongs> i2c is for retards. 2012-06-23T10:00:08 < zyp> dongs, did tom improve his soldering? 2012-06-23T10:00:28 < dongs> zyp, no thats adafruit. i wonder if thats her pubic hair in the center. 2012-06-23T10:00:47 < dongs> and I use hte term "her" here loosely. 2012-06-23T10:02:45 < dongs> http://www.wide.hk/products.php?product=0.96-128x64-OLED-LCD-Display-%2810pcs%29-Blue%252bYellow- 2012-06-23T10:02:49 < dongs> haha fuck yea 2012-06-23T10:02:52 < dongs> no need for talking down for discount lol 2012-06-23T10:03:03 < dongs> oh, out of stock wat 2012-06-23T10:04:05 < dongs> avrfreak it, sneeze on a bag of your new free samples 2012-06-23T10:04:11 < dongs> and watch them get blown across half the room 2012-06-23T10:06:22 -!- neuro-sy1 [~neuro@88.241.252.119] has joined ##stm32 2012-06-23T10:06:43 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Ping timeout: 264 seconds] 2012-06-23T10:07:11 -!- neuro-sy1 [~neuro@88.241.252.119] has quit [Client Quit] 2012-06-23T10:07:30 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-23T10:17:41 < pepsi_> whats the "Embedded" gcc compiler for arm? 2012-06-23T10:17:47 < dongs> ? 2012-06-23T10:18:10 < pepsi_> like.. isnt Linaro for bigger ARMs? 2012-06-23T10:18:23 < pepsi_> and then theres another popular build for Cortex M3 type ARMs 2012-06-23T10:18:26 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-23T10:18:26 < pepsi_> i thought 2012-06-23T10:18:41 < dongs> codesourcety? 2012-06-23T10:18:41 < ratatata> nu 2012-06-23T10:18:46 < dongs> -t+r 2012-06-23T10:19:43 < pepsi_> https://launchpad.net/gcc-arm-embedded i think 2012-06-23T10:21:18 < pepsi_> i think im going to target the M3, but im not positive yet 2012-06-23T10:21:24 < pepsi_> st's compiler? huh? 2012-06-23T10:27:04 < zyp> none, it's a cpu, not a mcu 2012-06-23T10:27:13 < dongs> heh 2012-06-23T10:27:30 < dongs> http://www.rcgroups.com/forums/showthread.php?t=1677483 2012-06-23T10:27:53 < dongs> zyp, i will pay you to drive over to this guys house and beat the fuck out of him with pictures. 2012-06-23T10:28:47 < zyp> you're as close as I am 2012-06-23T10:28:58 < dongs> o rite lol 2012-06-23T10:30:06 < dongs> wow hidapi looks awesome 2012-06-23T10:30:08 < dongs> gonan try building it 2012-06-23T10:30:35 < zyp> really? I thought it was open sores 2012-06-23T10:31:36 -!- [1]pelrun [~pelrun@60-241-99-33.static.tpgi.com.au] has joined ##stm32 2012-06-23T10:32:29 -!- pelrun [~pelrun@60-241-99-33.static.tpgi.com.au] has quit [Ping timeout: 246 seconds] 2012-06-23T10:32:30 -!- [1]pelrun is now known as pelrun 2012-06-23T10:33:35 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has quit [Quit: Leaving] 2012-06-23T10:36:24 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has joined ##stm32 2012-06-23T10:36:24 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has quit [Changing host] 2012-06-23T10:36:24 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has joined ##stm32 2012-06-23T10:43:53 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Ping timeout: 244 seconds] 2012-06-23T10:46:17 -!- SuicideFunky [~randy@vps-212-153-70-8.twenty-five.nl] has joined ##stm32 2012-06-23T10:47:08 < dongs> only one problem is its only setup to be used as dll 2012-06-23T10:47:17 < dongs> but thats not a big issue I can fix that easy enough since its only one .c and one .h file 2012-06-23T10:54:42 < cjbaird> dongs: the OP, or the Internet Mister Superhelpful who replied? 2012-06-23T10:55:33 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has joined ##stm32 2012-06-23T10:55:51 < dongs> cjbaird: hm? 2012-06-23T10:55:59 < dongs> oh, the op of course. 2012-06-23T10:56:18 < dongs> i would have replied ipad is for faggots. 2012-06-23T10:59:19 -!- pepsi_ [~jbutera@unaffiliated/jbutera] has quit [Quit: Leaving] 2012-06-23T11:09:43 < dongs> omgz i can read! 2012-06-23T11:24:15 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has quit [Quit: This computer has gone to sleep] 2012-06-23T11:35:54 < dongs> Thorn: hidapi, officially dongs approved 2012-06-23T11:36:20 < dongs> now if I could figure out the rest of this aids 2012-06-23T11:37:10 < Thorn> nice to know. 2012-06-23T11:39:54 < dongs> but I can hid_get_feature_report() which returns some struct from my HID shit which I fit with some info (flash , ram size) and it seems to work 2012-06-23T11:40:01 -!- os-app92 [~ftw@226.200.69.86.rev.sfr.net] has joined ##stm32 2012-06-23T11:43:04 < Thorn> so where is this custom hid example handling feature requests? 2012-06-23T11:43:46 < Thorn> *reports 2012-06-23T11:44:00 < dongs> oh, its not. i hacked it in 2012-06-23T11:44:16 < dongs> http://bcas.tv/paste/results/wFEVpy30.html 2012-06-23T11:44:17 < dongs> this sorta shit 2012-06-23T11:44:30 < dongs> inside CustomHID_Data_Setup 2012-06-23T11:44:37 < dongs> just add a new else if () shit 2012-06-23T11:44:57 < dongs> then shit like 2012-06-23T11:44:58 < dongs> buf[0] = 0x1; res = hid_get_feature_report(handle, buf, sizeof(buf)); 2012-06-23T11:45:08 < dongs> so feature report wiht id #1 2012-06-23T11:45:09 < dongs> or wahtever. 2012-06-23T11:45:17 < dongs> i have no idea really :p 2012-06-23T11:45:43 < dongs> taht code looks mega ugly though... it should probably be really fixed 2012-06-23T11:48:35 < Thorn> lol 2012-06-23T11:49:02 < Thorn> the design of this driver is just horrible 2012-06-23T11:49:31 < Thorn> why does the user have to both define descriptors and send them manually? 2012-06-23T11:50:03 < dongs> did you see HOW the descriptors are defined? 2012-06-23T11:50:06 < dongs> holy fuck 2012-06-23T11:50:13 < dongs> some bullshit hand-size-counted structs 2012-06-23T11:50:21 < dongs> with #defines for length and shit 2012-06-23T11:50:29 < dongs> wtf is this 1996 + lunix 2012-06-23T11:50:46 < Thorn> sizeof() is not Indian enough 2012-06-23T11:52:00 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has quit [Ping timeout: 265 seconds] 2012-06-23T11:52:43 < dongs> oh fuck 2012-06-23T11:52:52 < dongs> #define Type_Recipient (pInformation->USBbmRequestType & (REQUEST_TYPE | RECIPIENT)) 2012-06-23T11:52:56 < dongs> ther'es this shiti n usb_Core.h 2012-06-23T11:53:13 < dongs> but then customhid shit goes and does this 2012-06-23T11:53:13 < dongs> if ((RequestNo == GET_DESCRIPTOR) 2012-06-23T11:53:14 < dongs> && (Type_Recipient == (STANDARD_REQUEST | INTERFACE_RECIPIENT)) 2012-06-23T11:53:20 < dongs> which is basically same shit, without using the #defined stuff 2012-06-23T11:53:49 < dongs> actualyl wait a fucking second did they really call a macro UpperLower case. 2012-06-23T11:54:05 < Thorn> they did 2012-06-23T11:58:06 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-23T11:58:09 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-23T12:00:10 <+Steffanx> 0x48 0x69 2012-06-23T12:01:55 < dongs> wat 2012-06-23T12:02:02 < dongs> better not be 'nu' 2012-06-23T12:02:42 <+Steffanx> That's up to you to find out 2012-06-23T12:04:06 -!- Steffanx is now known as Sparkbot 2012-06-23T12:08:14 -!- Sparkbot is now known as Steffanx 2012-06-23T12:10:16 < Thorn> this driver needs to be rewritten^W taken out and shot. 2012-06-23T12:10:42 <+Steffanx> cltr+W = ? 2012-06-23T12:10:51 <+Steffanx> ctrl 2012-06-23T12:10:52 < Thorn> delete word 2012-06-23T12:12:04 <+Steffanx> emacs? Vim? Nano? 2012-06-23T12:12:40 -!- os-app92 [~ftw@226.200.69.86.rev.sfr.net] has quit [Quit: Hi, I am Franz.] 2012-06-23T12:13:04 < Thorn> emacs & vim iirc 2012-06-23T12:13:22 < dongs> everywehre 2012-06-23T12:13:40 < dongs> also lol @ including nano in that li st 2012-06-23T12:13:51 < dongs> its like going to a lunix user group and screaming "i'm an avid pico user" 2012-06-23T12:14:13 <+Steffanx> Na, I still use nano for some easy things over ssh 2012-06-23T12:14:24 < dongs> you fail it. 2012-06-23T12:14:31 <+Steffanx> As vi is annoying and i'm too lazy to find out why it fails 2012-06-23T12:14:54 <+Steffanx> cursor keys => characters .. fixed it partially, but it still fails sometimes 2012-06-23T12:15:22 <+Steffanx> Anyway, you use notepad.exe so you are not allowed to speak :P 2012-06-23T12:21:30 < dongs> Thorn: whats the plan of action then 2012-06-23T12:21:37 < dongs> is there any clean USB code for stm32 lol 2012-06-23T12:21:54 < dongs> I think libmaple is more or less same shit except they used even older usblib where they used shit like u8/u16 for types 2012-06-23T12:21:58 < dongs> so it fails even more 2012-06-23T12:22:04 < Thorn> libopencm3 has a driver, it's much better but completely undocumented iirc 2012-06-23T12:22:12 < dongs> oh, libopencm3 right 2012-06-23T12:22:13 <+Steffanx> u8/u16 isn't that linux style? 2012-06-23T12:25:21 < dongs> thorn, there's some examples 2012-06-23T12:25:34 < dongs> i.e. libopencm3\examples\stm32\f1\lisa-m\usb_hid 2012-06-23T12:25:57 < dongs> static const u8 hid_report_descriptor[] = { 2012-06-23T12:26:03 < dongs> /* I have no idea what this means. I haven't read the HID spec. */ 2012-06-23T12:26:04 < Thorn> the examples I've seen called usb_poll() or something in a loop 2012-06-23T12:26:04 < dongs> loill 2012-06-23T12:26:30 < Thorn> at least the st driver is fully interrupt driven 2012-06-23T12:27:01 < dongs> while (1) usbd_poll(); 2012-06-23T12:27:03 < dongs> yeah. 2012-06-23T12:27:09 < dongs> looks great 2012-06-23T12:35:56 < dongs> well shit 2012-06-23T12:49:46 < dongs> ugh 2012-06-23T12:49:56 < dongs> usb_prop.c under USER_STANDARD_REQUESTS 2012-06-23T12:49:57 < dongs> so retarded 2012-06-23T12:50:10 < dongs> #define CUSTOMHID_GetConfiguration NOP_Process 2012-06-23T12:50:17 < dongs> why not just ufcking put NOP_Process in the struct??? 2012-06-23T12:50:23 < dongs> instead of having to look in2 places for it 2012-06-23T12:50:35 < dongs> and guess if its a define or a function or wat 2012-06-23T12:50:36 < dongs> rage. 2012-06-23T12:55:08 < Thorn> #define EP2_IN_Callback NOP_Process, etc. 2012-06-23T12:55:23 < Thorn> there're null pointers you know 2012-06-23T12:55:34 < Thorn> if(callbacks[i]) callbacks[i](); 2012-06-23T12:58:03 < dongs> yeah 2012-06-23T13:00:00 < dongs> wait , the fuck 2012-06-23T13:00:04 < dongs> nop_process is empty function 2012-06-23T13:00:15 < dongs> i thoguth it was a #define NULL or somehtign 2012-06-23T13:00:22 < Thorn> lol. 2012-06-23T13:02:49 < Thorn> they probably thought they saved cycles by not having to test function pointers for zero 2012-06-23T13:06:20 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has quit [Ping timeout: 260 seconds] 2012-06-23T13:21:42 < gsmcmullin> The libopencm3 usb implementation can be used interrupt driven. Call usbd_poll() from your isr. 2012-06-23T13:24:19 < cjbaird> I had a go at doing that-- couldn't get systick working.. :/ 2012-06-23T13:33:57 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-23T13:43:20 < gsmcmullin> cjbaird: Are you referring to libopencm3? 2012-06-23T14:05:32 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has joined ##stm32 2012-06-23T14:08:05 < cjbaird> g: yeah. According to my logs, i was asking about it in #libopencm3 on May 9th. 2012-06-23T14:09:38 < cjbaird> I'd attempted to adpart the example F1 code for the F4, didn't have any success. 2012-06-23T14:09:45 < cjbaird> *adapt 2012-06-23T14:14:12 < gsmcmullin> cjbaird: All I've done on the F4 is get the usb cdcacm example working. 2012-06-23T14:22:00 < dongs> fucking gcc. 2012-06-23T14:22:16 < dongs> who the fuck allowed sizeof(struct) inside the struct. 2012-06-23T14:24:02 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-06-23T14:36:33 <+Steffanx> inside dongs ? 2012-06-23T14:37:50 <+Steffanx> *Inside, dongs ? 2012-06-23T15:01:11 < cjbaird> dogs: gb2pascal if you hate forward references and the like 2012-06-23T15:01:46 <+Steffanx> dogs :) 2012-06-23T15:21:16 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 255 seconds] 2012-06-23T15:25:19 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has joined ##stm32 2012-06-23T15:25:19 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has quit [Changing host] 2012-06-23T15:25:19 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has joined ##stm32 2012-06-23T15:25:59 < TheSeven> hm... gdb is once again extraordinarily helpful: 2012-06-23T15:26:01 < TheSeven> Loading section .data, size 0x224 lma 0x10000000 2012-06-23T15:26:01 < TheSeven> Load failed 2012-06-23T15:26:10 < TheSeven> with the arm-none-eabi-gdb built by TNT 2012-06-23T15:26:35 < TheSeven> elf file was built using a different (but also arm eabi) toolchain, could that be the cause? 2012-06-23T15:28:16 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-06-23T15:33:52 < dongs> ok continuing to cleanup usb shit 2012-06-23T15:36:10 < dongs> or fapping... i should ask Laurenceb_ for ideas 2012-06-23T15:39:15 <+Steffanx> Time for a nap mr dongs 2012-06-23T15:55:16 < cjbaird> Aha! I've found what the mysterious 92ohm resistance between GND and 5V is on the BBII: there's a SIP resistance network of 6x 220/330 "550R" resistors between gnd and vcc. 6x || 550R = ~92.. Testing with IR detector... yep, that's where all the power is going through. 2012-06-23T15:56:40 < dongs> BBII? 2012-06-23T15:57:10 < cjbaird> Ferguson BigboardII -- an antique SBC I'm repairing. 2012-06-23T15:57:25 < dongs> H 2012-06-23T15:57:27 < dongs> h 2012-06-23T15:57:29 < dongs> asdfkjdsflkgj 2012-06-23T15:58:29 < cjbaird> https://imgur.com/77amW 2012-06-23T15:58:57 < dongs> loll 2012-06-23T15:59:14 < dongs> nice prototyping area 2012-06-23T15:59:21 < dongs> they should leave that on modern mobos too 2012-06-23T15:59:28 < dongs> incase you wanna breadboard some shit with core i7 2012-06-23T16:00:06 < cjbaird> Going over the schematic has given me even more appreciation for the skillz that Steve Woz had.. The AppleII was a far better designed system than this.. 2012-06-23T16:00:24 < cjbaird> dogs: truth 2012-06-23T16:03:53 < cjbaird> This Z80 board has 105 ICs on it.. The A2 did a better job in 30. 2012-06-23T16:05:15 <+Steffanx> cjbaird as a nickname for dongs ? 2012-06-23T16:05:28 < cjbaird> Apple being Apple, you were of course paying 5 times more.. 2012-06-23T16:06:10 < cjbaird> If we all start calling him that, maybe he'll start yiffing. 2012-06-23T16:07:38 < cjbaird> Woo: X-Ray of an A2: http://www.stockly.com/images2/061228-Apple_II_80kv6ma35ms36SFD-Cut%20Edges.jpg 2012-06-23T16:08:31 <+Steffanx> That's stuff is all ' before my time' :) 2012-06-23T16:08:43 <+Steffanx> *+from 2012-06-23T16:17:14 < cjbaird> I expect the AppleIIe series machines used CAD tools, but the original A2 PCB (and this BBII) was definitely done by hand. Not easy tasks. And even then, the boards that size weren't any cheaper to make than today. 2012-06-23T16:18:28 < dongs> $200 in 1985 money was a lot 2012-06-23T16:18:54 < dongs> You can condense an entire crappleII into a 10x10mm FPGA today 2012-06-23T16:18:59 < dongs> and a bunch of peripherals 2012-06-23T16:19:10 < cjbaird> The BBII bare-board kit, without chips, cost 1985 US$295... 2012-06-23T16:19:11 < dongs> so PCB cost wouldn't be so high :p 2012-06-23T16:19:21 < dongs> ouch 2012-06-23T16:19:33 < dongs> and people complain when china charges $10 for 10 shitty pcbs with silkscreen and mask :) 2012-06-23T16:21:13 <+Steffanx> shitty pcbs?!?!?!?!?!?!?! 2012-06-23T16:21:29 < cjbaird> I recall the original Apple1 PCBs cost 1976 US$75 to make, which the Steves sold with a $50 margin. Fully-build A1 sold for $666 2012-06-23T16:21:59 < dongs> fucking steve, never lost a penny. dumb users just lapped his shit up 2012-06-23T16:22:21 < cjbaird> both sides of the BBII circuit board: http://i.imgur.com/o3BXw.jpg ... /by hand/ 2012-06-23T16:22:23 <+Steffanx> dogs is jealous 2012-06-23T16:24:17 < dongs> Steffanx: are you trying to be funny 2012-06-23T16:24:19 < dongs> becauise youre failing 2012-06-23T16:24:21 < cjbaird> Jack Tramel's standard formula for selling computers was to make them for $N, sell them to dealers for $2N, who then sold them to customers for $4N.. The original C64 model cost ~$150 to make (at first), and it retailed for $599.. 2012-06-23T16:24:55 <+Steffanx> dongs, can't fail when i didn't try to 2012-06-23T16:25:00 <+Steffanx> by funny 2012-06-23T16:25:18 <+Steffanx> The truth etc. 2012-06-23T16:25:22 < cjbaird> take the knot, dogs. 2012-06-23T16:26:01 < dongs> man... hid report descriptor is nasty shit 2012-06-23T16:26:07 < dongs> i wonder if theres some webbased generator for that stuff 2012-06-23T16:26:32 < dongs> http://www.usb.org/developers/hidpage#HID Descriptor Tool 2012-06-23T16:26:33 < dongs> yes! 2012-06-23T16:26:38 <+Steffanx> Maybe the lufa hid stuff makes it easier? 2012-06-23T16:27:02 < dongs> nope, this willw ork 2012-06-23T16:27:05 <+Steffanx> At least, the author of lufa tried to make it a little easier (with macro's and stuff) 2012-06-23T16:27:06 < dongs> windows gui 2012-06-23T16:27:14 < dongs> well i only need to genrate the binary once 2012-06-23T16:27:23 < dongs> its not like its dynamic 2012-06-23T16:27:43 <+Steffanx> It's all up to you 2012-06-23T16:28:12 -!- Tekno [~TeknoJuce@bas1-london15-2925201294.dsl.bell.ca] has joined ##stm32 2012-06-23T16:28:12 -!- Tekno [~TeknoJuce@bas1-london15-2925201294.dsl.bell.ca] has quit [Changing host] 2012-06-23T16:28:12 -!- Tekno [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-23T16:28:52 < dongs> hmm 2012-06-23T16:28:57 < dongs> usage page: VR controls 2012-06-23T16:29:02 < dongs> Consumer Devices 2012-06-23T16:29:07 < dongs> Simulation controls 2012-06-23T16:29:11 < dongs> there, found my category 2012-06-23T16:29:14 < dongs> for teledildonics 2012-06-23T16:29:24 < dongs> shoould be Stimulation controls though. 2012-06-23T16:29:46 <+Steffanx> I can quote you know, but i won't dongs 2012-06-23T16:30:00 < Laurenceb_> chibios makes it easy 2012-06-23T16:30:06 * Laurenceb_ runs away from dongs 2012-06-23T16:30:15 < dongs> makes what easy 2012-06-23T16:30:19 < Laurenceb_> usb 2012-06-23T16:30:39 <+Steffanx> Except for it not supporting stm32f4 2012-06-23T16:30:40 <+Steffanx> iirc 2012-06-23T16:30:47 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 252 seconds] 2012-06-23T16:31:09 < Laurenceb_> CDC and mass storage works 2012-06-23T16:31:44 <+Steffanx> The feature matrix is out of date? 2012-06-23T16:32:56 < Laurenceb_> no 2012-06-23T16:33:08 < Laurenceb_> some stuff isnt "offical" yet 2012-06-23T16:33:17 <+Steffanx> Hmpf, so not useable yet 2012-06-23T16:34:08 < Laurenceb_> works for me 2012-06-23T16:34:24 < dongs> wow this shit is insane 2012-06-23T16:35:07 < Laurenceb_> lufa? 2012-06-23T16:35:15 <+Steffanx> /shit/stuff 2012-06-23T16:35:16 < dongs> no, hid descriptor shit 2012-06-23T16:35:19 < Laurenceb_> i tried to read the source once 2012-06-23T16:35:24 < Laurenceb_> and it was pretty mad 2012-06-23T16:35:29 <+Steffanx> mad? 2012-06-23T16:35:39 <+Steffanx> The code you write is mad Laurenceb_ :P 2012-06-23T16:36:10 < dongs> hahaah 2012-06-23T16:36:12 < dongs> pot, kettle 2012-06-23T16:36:40 <+Steffanx> I just don't share my code, so maybe i'm not allowed to say things like that 2012-06-23T16:36:49 <+Steffanx> either 2012-06-23T16:38:41 < dongs> lol 2012-06-23T16:38:45 < dongs> crarshed hid desctiptor maker :( 2012-06-23T16:38:59 <+Steffanx> This time 'shit' is a good word 2012-06-23T16:44:35 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has joined ##stm32 2012-06-23T16:48:07 < dongs> peabody124: beep 2012-06-23T16:48:46 -!- enots [dimka@freelsd.net] has joined ##stm32 2012-06-23T16:53:42 < Thorn> >Testing with IR detector 2012-06-23T16:53:45 < dongs> agh hid descriptor generation is retarded! 2012-06-23T16:53:47 < BrainDamage> disturbing pic of the day which might explains few things: http://i.imgur.com/wLIZN.gif 2012-06-23T16:53:57 < Thorn> my IR detector often hurts after testing x_x 2012-06-23T16:55:09 < BrainDamage> is your IR detector your finger? 2012-06-23T16:55:23 < dongs> or his schlong 2012-06-23T16:55:24 <+Steffanx> wtf BrainDamage 2012-06-23T16:57:06 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has quit [Quit: peabody124] 2012-06-23T16:57:15 < Thorn> also, USB Complete says that the hid descriptor utility from usb.org has bugs iirc 2012-06-23T16:58:03 < dongs> no wai?? 2012-06-23T16:58:06 < dongs> i already crashed it like 3 times 2012-06-23T16:59:33 < Thorn> yes but it can also generate wrong descriptors (or not accept correct ones, can't remember which) 2012-06-23T17:00:47 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Ping timeout: 272 seconds] 2012-06-23T17:05:46 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-23T17:05:50 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Disconnected by services] 2012-06-23T17:05:53 -!- mode/##stm32 [+v Steffann] by ChanServ 2012-06-23T17:08:06 < Laurenceb_> so you can use a urinal the take shit braindamage? 2012-06-23T17:09:10 -!- mrcan__ [~mrcan@unaffiliated/mrcan] has quit [Read error: Connection reset by peer] 2012-06-23T17:09:28 < BrainDamage> from my experience with public restrooms, there's few users of that device already ... 2012-06-23T17:09:41 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-06-23T17:11:45 < Thorn> there're multiple synthesizable mips and avr cores on the net but no arm cores. is this because ARM hates people who do free arm compatible cores? 2012-06-23T17:11:54 < dongs> yes 2012-06-23T17:12:08 < dongs> well fuck 2012-06-23T17:12:14 < dongs> i make USAGE_PAGE for vendor_defined 2012-06-23T17:12:15 < dongs> save 2012-06-23T17:12:20 < dongs> reload, it turns it into "generic desktop" 2012-06-23T17:12:21 < dongs> poiece of shit 2012-06-23T17:13:38 < dongs> im not actualyl sure waht its supposed to output 2012-06-23T17:13:41 < cjbaird> Thorn: https://en.wikipedia.org/wiki/Amber_%28processor_core%29 ? .. 2012-06-23T17:13:42 < dongs> the data it outputs looks liek shit 2012-06-23T17:13:51 < BrainDamage> Thorn: there's few arm compatible cores on opencores.org 2012-06-23T17:14:04 < dongs> haha armv2 2012-06-23T17:14:31 < Thorn> ARMv2 2012-06-23T17:14:34 < Thorn> right 2012-06-23T17:16:12 < dongs> The topic of this article may not meet Wikipedia's general notability guideline. Please help to establish notability by adding reliable, secondary sources about the topic. If notability cannot be established, the article is likely to be merged, redirected, or deleted. (August 2011) 2012-06-23T17:16:17 < dongs> haha 2012-06-23T17:16:20 < dongs> too leet for wikipedo 2012-06-23T17:16:27 < cjbaird> http://opencores.org/articles,1004822956 "Student's ARM7 clone disappears from Web" 2012-06-23T17:17:30 < cjbaird> ARMv4: https://code.google.com/p/arm-cpu-core/ 2012-06-23T17:20:31 < cjbaird> Wikipedia's general notability guideline: If an WoW-playing fattard hasn't heard of it, it gets deleted. 2012-06-23T17:21:47 < dongs> soudns about right 2012-06-23T17:23:52 < cjbaird> An article about the computer industry in australia: speedy deletion; Zangief Kid: Article Of The Day. 2012-06-23T17:24:51 -!- tavish [~tavish@120.56.135.89] has joined ##stm32 2012-06-23T17:24:51 -!- tavish [~tavish@120.56.135.89] has quit [Changing host] 2012-06-23T17:24:51 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-23T17:24:58 < dongs> who 2012-06-23T17:25:52 < cjbaird> http://knowyourmeme.com/memes/zangief-kid 2012-06-23T17:26:19 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has joined ##stm32 2012-06-23T17:29:15 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has quit [Client Quit] 2012-06-23T17:29:55 <+Steffann> I guess dongs is too long out of the scene nowadays, cjbaird :) 2012-06-23T17:31:02 <+Steffann> And my english sucks ass 2012-06-23T17:36:51 < Tectu> hello folks 2012-06-23T17:38:32 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-23T17:40:10 < dongs> I think you meant hello dongs 2012-06-23T17:40:20 < zyp> hello dongs 2012-06-23T17:40:30 <+Steffann> Hi zyp 2012-06-23T17:41:20 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has joined ##stm32 2012-06-23T17:41:43 < zyp> hi Steffann 2012-06-23T17:42:21 <+Steffann> and Tectu 2012-06-23T17:42:51 <+Steffann> and dongs ofcourse 2012-06-23T17:43:09 < Tectu> how's it going, guys? 2012-06-23T17:43:17 < dongs> raging at hid descriptors 2012-06-23T17:43:19 <+Steffann> Fine 2012-06-23T17:43:23 < zyp> I'm enjoying my vacation 2012-06-23T17:43:31 < Tectu> zyp, sounds good 2012-06-23T17:43:31 <+Steffann> I see 2012-06-23T17:43:43 < zyp> I was bored a bit this morning, so I played a bit with the gps on my F4 board 2012-06-23T17:43:43 <+Steffann> How's it in japland? 2012-06-23T17:43:44 < Tectu> zyp, vacation next monday 2012-06-23T17:44:05 < zyp> and then I got bored with that when I found that it doesn't get lock inside the hotel 2012-06-23T17:44:09 < Tectu> my cnc decided to mill across my hand today... 2012-06-23T17:44:13 < zyp> it gets time, but not lock 2012-06-23T17:44:22 <+Steffann> Sounds nice Tectu 2012-06-23T17:44:32 < zyp> Steffann, it's fine 2012-06-23T17:44:42 < zyp> a bit cooler than I remember it, but that's fine 2012-06-23T17:44:45 < zyp> usually it's too hot 2012-06-23T17:45:00 < dongs> zyp, what kinda animu fgt goes to vacation in tokyo 2012-06-23T17:45:12 < zyp> <- this kind 2012-06-23T17:45:20 <+Steffann> + his friens 2012-06-23T17:45:21 <+Steffann> ds 2012-06-23T17:45:26 < Tectu> Steffann, yeah, getting very nice scar on the back of my hand >.< 2012-06-23T17:45:43 < Tectu> at least it's a straight line and not a circle or something : D 2012-06-23T17:48:58 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has joined ##stm32 2012-06-23T17:53:34 < BrainDamage> zyp: you want at least 4 sats to get a fix 2012-06-23T17:54:28 < Tectu> karlp, you arround, sir? 2012-06-23T17:55:59 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has quit [Quit: peabody124] 2012-06-23T18:04:06 < zyp> BrainDamage, of course 2012-06-23T18:04:27 < zyp> well, I'm in the top floor of the hotel, but I guess there is still too much shit above me 2012-06-23T18:04:34 < BrainDamage> I mean, you can get time from a single sat 2012-06-23T18:04:57 < BrainDamage> which explains why you can get time but no fix 2012-06-23T18:05:21 < zyp> yep 2012-06-23T18:05:41 < zyp> I didn't say that I didn't understand why I got only time 2012-06-23T18:06:12 < Tectu> Steffann, still arround? 2012-06-23T18:06:20 <+Steffann> A little 2012-06-23T18:06:50 < Tectu> going to the netherlands on saturday... how is weather over there in general at this time? 2012-06-23T18:06:55 < Tectu> is it also 33°C like here? 2012-06-23T18:07:04 <+Steffann> No way 2012-06-23T18:07:31 <+Steffann> 20C .. max 2012-06-23T18:07:39 < zyp> it's been in the mid twenties in tokyo lately 2012-06-23T18:08:05 <+Steffann> and it's been a little rainy the last few days 2012-06-23T18:08:10 <+Steffann> they expect less coming week 2012-06-23T18:08:39 < Tectu> Steffann, sounds lovely. I hate everything about 20°C 2012-06-23T18:08:48 < Tectu> and here in switzerland, you have over 30°C all day in summer 2012-06-23T18:08:49 < zyp> was a typhoon here a few days ago 2012-06-23T18:08:53 -!- tavish_ [~tavish@59.177.3.132] has joined ##stm32 2012-06-23T18:09:08 <+Steffann> The summer isn't here yet 2012-06-23T18:10:00 < Tectu> ah 2012-06-23T18:10:11 < Tectu> well, what is the max temperature in that week expected over there? 2012-06-23T18:10:15 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 260 seconds] 2012-06-23T18:10:19 < Tectu> hopefully not over 25°C :D 2012-06-23T18:11:03 <+Steffann> Sunday 15, to ~24 on thursday 2012-06-23T18:11:39 <+Steffann> Learn dutch and visit this page Tectu http://buienradar.nl/ 2012-06-23T18:12:28 < Tectu> no need to learn dutch 2012-06-23T18:12:37 < Tectu> beside understanding works 75% of the time 2012-06-23T18:12:41 < Tectu> understand when speaking, not when reading 2012-06-23T18:12:47 < Tectu> to much vocals in that language 2012-06-23T18:13:25 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has quit [Quit: Leaving.] 2012-06-23T18:14:01 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has joined ##stm32 2012-06-23T18:14:17 <+Steffann> Not more than in English Tectu .. 2012-06-23T18:14:40 < Tectu> how about all these double vocals, sir? 2012-06-23T18:14:52 <+Steffann> double? 2012-06-23T18:14:54 < Tectu> written dutch looks like someone faceroll'd his keyboard 2012-06-23T18:14:58 < Tectu> like oo and aa etc 2012-06-23T18:15:12 <+Steffann> Kaas vs cheese .. don't see the difference :P 2012-06-23T18:15:19 < Tectu> that's not fair, sir :D 2012-06-23T18:15:33 < Tectu> double a and double o is just wrong 2012-06-23T18:16:11 <+Steffann> Or do you mean when you have multiple of them? Kaas => kazen and not kaazen? :) 2012-06-23T18:16:15 < zyp> foo 2012-06-23T18:16:20 <+Steffann> And the fancy z instead of s :) 2012-06-23T18:17:05 <+Steffann> So far your dutch lessons for today, Tectu 2012-06-23T18:17:41 < Tectu> Steffann, well, I am not serious btw, I like to know any language. But dutch just seems to be a troll language :D 2012-06-23T18:17:49 < Tectu> zyp, damn sir, stop doing that, that's not fair :D 2012-06-23T18:17:54 <+Steffann> No way Tectu 2012-06-23T18:17:59 <+Steffann> have you seen finnish Tectu ? 2012-06-23T18:18:10 < Tectu> Steffann, nope 2012-06-23T18:18:14 < Tectu> just swedish 2012-06-23T18:18:28 < Tectu> heard that finnish has a damn hard grammar 2012-06-23T18:18:29 <+Steffann> The only troll language with characters you and i use is Finnish 2012-06-23T18:18:37 < zyp> æøå 2012-06-23T18:18:48 < Tectu> zyp, can you speak finnish? 2012-06-23T18:18:55 -!- tavish [~tavish@120.56.238.161] has joined ##stm32 2012-06-23T18:18:55 -!- tavish [~tavish@120.56.238.161] has quit [Changing host] 2012-06-23T18:18:55 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-23T18:18:58 < zyp> no 2012-06-23T18:19:08 -!- tavish_ [~tavish@59.177.3.132] has quit [Ping timeout: 240 seconds] 2012-06-23T18:19:26 < zyp> oh, but by coincidence, I'm currently sitting next to my finnish friend 2012-06-23T18:19:37 <+Steffann> Not a coincidence 2012-06-23T18:20:02 < BrainDamage> fapping eachother 2012-06-23T18:20:12 < dongs> just needs some Laurenceb_ for completeness 2012-06-23T18:20:14 < Tectu> C is also a troll language 2012-06-23T18:20:15 < Tectu> 24 LCD_DATA_PORT_1->BSRR=((~data & 0xFF) << 16)|(data & 0xFF); 2012-06-23T18:20:15 < Tectu> 25 LCD_DATA_PORT_2->BSRR=((~(data >> 8)& 0xFF)|(data >>8); 2012-06-23T18:21:12 < zyp> huh? 2012-06-23T18:21:36 < Tectu> zyp, same here 2012-06-23T18:21:43 <+Steffann> You are closer to them than Laurenceb_ is, dongs 2012-06-23T18:22:17 < zyp> BrainDamage, I'm sorry to break your theory, but it's a she 2012-06-23T18:22:32 < Laurenceb_> still possible 2012-06-23T18:22:52 < zyp> not with her boyfriend also being in the room. 2012-06-23T18:23:01 < Laurenceb_> still possible 2012-06-23T18:23:06 < Laurenceb_> you just get punched 2012-06-23T18:23:19 < Tectu> zyp, dosen't change anything on BrainDamage's theory ;) 2012-06-23T18:23:26 < Tectu> damn 2012-06-23T18:23:39 < Tectu> Laurenceb_, you're an idiot :) (no personal offense) 2012-06-23T18:23:47 < zyp> I agree :p 2012-06-23T18:24:08 * Laurenceb_ sends flacon punches 2012-06-23T18:26:29 < Tectu> zyp, you have two months of vacation? 2012-06-23T18:26:47 < zyp> no, one 2012-06-23T18:27:08 < Tectu> but you are in tokyo for two weeks now? 2012-06-23T18:27:22 < Laurenceb_> did you meet dongs? 2012-06-23T18:27:38 < zyp> Laurenceb_, no, I went to Kusatsu when he was in Tokyo 2012-06-23T18:27:39 < Tectu> Laurenceb_, noone ever met dongs 2012-06-23T18:27:50 < Laurenceb_> the dongs is a lie 2012-06-23T18:29:08 <+Steffann> You mean passed the turing test Laurenceb_ ? 2012-06-23T18:29:12 <+Steffann> *+dongs 2012-06-23T18:29:29 < Laurenceb_> trolling test 2012-06-23T18:35:21 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has joined ##stm32 2012-06-23T19:12:40 <+Steffann> What has that to do with lies, Laurenceb_ ? 2012-06-23T19:13:00 < Tectu> BrainDamage, arround? 2012-06-23T19:13:18 <+Steffann> -r 2012-06-23T19:13:34 < BrainDamage> my wavefunction is rather localized 2012-06-23T19:14:22 < Laurenceb_> im asquare 2012-06-23T19:14:23 < Tectu> thanks Steffann, (no irony) 2012-06-23T19:14:34 < Tectu> BrainDamage, do you use nvidia chips on your archlinux ? 2012-06-23T19:14:57 <+Steffann> "nvidia fuck you [middle finger]" 2012-06-23T19:14:57 < BrainDamage> yes 2012-06-23T19:15:11 < Tectu> BrainDamage, got some issues too? https://bbs.archlinux.org/viewtopic.php?pid=1120434#p1120434 2012-06-23T19:15:36 < BrainDamage> o_O 2012-06-23T19:15:41 < BrainDamage> no, nothing like that 2012-06-23T19:16:03 <+Steffann> Just use the driver by nvidia Tectu :P 2012-06-23T19:16:07 <+Steffann> *provided by 2012-06-23T19:16:22 < BrainDamage> I use the proprietary driver 2012-06-23T19:16:30 < Tectu> BrainDamage, it's really annoying 2012-06-23T19:16:34 < Tectu> Steffann, you use arch too? 2012-06-23T19:16:36 <+Steffann> Not that reverse engineered crap nouveau 2012-06-23T19:16:38 < BrainDamage> I play 1 game, and I need working 3d acceeration 2012-06-23T19:16:49 <+Steffann> Same here BrainDamage :) 2012-06-23T19:16:55 <+Steffann> Not on arch though 2012-06-23T19:16:59 <+Steffann> Open Suse 2012-06-23T19:20:46 -!- Tectu [tectu@kunsmann.eu] has left ##stm32 ["Leaving"] 2012-06-23T19:20:55 -!- Tectu [tectu@kunsmann.eu] has joined ##stm32 2012-06-23T19:21:03 < Tectu> BrainDamage, how exactly did you install your driver? is it in the repo? 2012-06-23T19:22:01 < BrainDamage> install extra/nvidia extra/nvidia-utils 2012-06-23T19:22:16 < Tectu> works out of the box? 2012-06-23T19:22:41 < BrainDamage> why shouldn't? 2012-06-23T19:22:57 < Tectu> i don't know, I just ask 2012-06-23T19:23:09 < BrainDamage> the only change I did was editing xorg's config to remove that silly splashscreen 2012-06-23T19:23:19 <+Steffann> xorg.conf .. 2012-06-23T19:23:29 < Tectu> BrainDamage, what WM do you use? 2012-06-23T19:23:34 <+Steffann> It's time for: http://xkcd.com/963/ 2012-06-23T19:23:40 < BrainDamage> https://xkcd.com/963/ 2012-06-23T19:23:48 <+Steffann> Hehe BrainDamage 2012-06-23T19:24:06 < BrainDamage> Tectu: gtk-window-decorator with compiz 2012-06-23T19:24:23 < Tectu> why do people need compiz? 2012-06-23T19:24:33 <+Steffann> It's !@$%^&* nice 2012-06-23T19:24:47 < BrainDamage> because I like the actions, I turned off the fancy effects and I got a fast desktop with useful tools 2012-06-23T19:24:54 < Tectu> okay 2012-06-23T19:24:55 < BrainDamage> like both tiling and stacking functionality 2012-06-23T19:24:57 < Tectu> that's an argument 2012-06-23T19:25:03 < Tectu> most people just need fancy animations 2012-06-23T19:25:08 < Tectu> BrainDamage, get awesome ;-) 2012-06-23T19:25:11 < Tectu> or i3 2012-06-23T19:25:17 < Tectu> (i prefer awesome) 2012-06-23T19:28:33 < dongs> lol i refactored USB and broke something 2012-06-23T19:28:37 < dongs> now i get 'device cannot start' 2012-06-23T19:29:04 <+Steffann> déjà vu 2012-06-23T19:29:14 < dongs> and its getting close to 2am 2012-06-23T19:29:18 < dongs> so i think i better sleep agian 2012-06-23T19:29:26 <+Steffann> or get some sake 2012-06-23T19:29:28 <+Steffann> and continue coding 2012-06-23T19:47:30 < dongs> fixed 2012-06-23T19:47:37 < dongs> apparently __packed structs are actually important :d 2012-06-23T19:48:01 < dongs> now to try my hid descriptor 2012-06-23T19:48:14 < dongs> oh, already using it 2012-06-23T19:49:25 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has quit [Read error: Connection reset by peer] 2012-06-23T19:49:29 < dongs> This software release will work on Windows XP SP2 (English version only) with all critical patches installed, Windows Vista with User Access Control disabled, or Windows 7 with User Access Control disabled. This tool requires an Enhanced Host Controller Interface, EHCI. 2012-06-23T19:49:33 < dongs> ???????????? 2012-06-23T19:49:35 < dongs> access control disabled? 2012-06-23T19:49:36 < dongs> the fuck 2012-06-23T19:49:49 <+Steffann> Which tool? 2012-06-23T19:49:54 < dongs> http://www.usb.org/developers/tools/ 2012-06-23T19:49:57 < dongs> some USB 2 device checker shit 2012-06-23T19:49:59 <+Steffann> :S 2012-06-23T19:50:03 < dongs> wlel, fuck that i'm not running it hten 2012-06-23T19:52:50 <+Steffann> Good you listened to my advice this time 2012-06-23T19:53:13 < dongs> http://www.fourwalledcubicle.com/files/LUFA/Doc/110528/html/group___group___h_i_d_parser.html\ 2012-06-23T19:53:16 < dongs> wat 2012-06-23T19:55:49 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has quit [Quit: peabody124] 2012-06-23T19:57:04 <+Steffann> You mean that nice 404 page dongs ? 2012-06-23T19:58:09 < dongs> well you can remove the final \ 2012-06-23T19:59:11 <+Steffann> I know, but ...... 2012-06-23T20:19:09 < Rickta59> if i'm using a cortex-m0 is there any advantage to using -march=arm6s-m vs -march=arm6-m with arm-none-eaib-gcc ? 2012-06-23T20:19:33 < Rickta59> s/arm6/armv6/g 2012-06-23T20:25:57 < dongs> can you repeat that in english without lunix faggotry 2012-06-23T20:26:07 < dongs> im actually interested in the question and hte answers. 2012-06-23T20:26:24 < Rickta59> if i'm using a cortex-m0 is there any advantage to using -march=armv6s-m vs -march=armv6-m with arm-none-eaib-gcc ? 2012-06-23T20:27:21 < dongs> looks ilke s is for hte "OS extension" / privileged application stuff? 2012-06-23T20:27:34 < Rickta59> i see something about it allowing an SVC instruction 2012-06-23T20:27:39 < dongs> right 2012-06-23T20:27:52 < Rickta59> i'm not using any OS so I don't see how that would matter to me 2012-06-23T20:28:42 < Rickta59> do any of the opensource rtos projects use SVC? 2012-06-23T20:29:02 <+Steffann> Probably, yes 2012-06-23T20:30:06 < dongs> coos doesnt it seems. 2012-06-23T20:30:12 < dongs> NOT LEET ENOUGH i guess. 2012-06-23T20:30:47 <+Steffann> l33T 2012-06-23T20:31:00 < dongs> they use PendSV 2012-06-23T20:32:44 < dongs> so far this shitty HID code is 8kbytes compiled 2012-06-23T20:32:49 < dongs> and i dont even have any bootloader capability yet 2012-06-23T20:32:54 < dongs> ... that seems kinda gay. 2012-06-23T20:33:03 <+Steffann> 8kb :S 2012-06-23T20:33:30 < dongs> lemme see what it looks like with cross module optimizations 2012-06-23T20:33:37 < dongs> ok, 5.7k thats better 2012-06-23T20:33:39 < dongs> but still 2012-06-23T20:33:46 < dongs> isnt that a bit large for a bootlol'der 2012-06-23T20:33:52 <+Steffann> And that with your ArmCC compiler?! 2012-06-23T20:33:56 < dongs> yaman. 2012-06-23T20:34:15 <+Steffann> Must be a disappointment 2012-06-23T20:34:17 < dongs> yea 2012-06-23T20:34:22 < dongs> how do you print out shit about elf 2012-06-23T20:34:25 < dongs> bss/text/size etc 2012-06-23T20:34:30 < dongs> i forgot the crap 2012-06-23T20:34:33 < dongs> obj_???? 2012-06-23T20:34:39 <+Steffann> -size 2012-06-23T20:34:46 < dongs> size what 2012-06-23T20:34:59 <+Steffann> arm-eabi-arm-size [file] 2012-06-23T20:35:09 < dongs> oh lulz 2012-06-23T20:35:10 < dongs> k 2012-06-23T20:35:35 < dongs> text data bss dec hex filename 2012-06-23T20:35:35 < dongs> 6108 288 4160 10556 293c hidboot.axf 2012-06-23T20:35:36 < dongs> hmm ok 2012-06-23T20:35:50 < dongs> i just looked at openpilot bootloader size and htey're at 12k 2012-06-23T20:36:43 < Tectu> dafuq is .axf? 2012-06-23T20:36:51 < dongs> axf = elf 2012-06-23T20:37:07 < dongs> ARM eXtended elF i guess or some other proprietary payware vendor trash 2012-06-23T20:37:17 < dongs> 2012-06-23T20:37:27 < Tectu> aye 2012-06-23T20:39:16 <+Steffann> or ARM Executable Format 2012-06-23T20:39:48 -!- dekar [~dekar@dslb-188-107-082-087.pools.arcor-ip.net] has joined ##stm32 2012-06-23T20:39:51 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-23T20:40:11 <+Steffann> Mr dekar 2012-06-23T20:43:39 <+dekar> Steffann, hey 2012-06-23T20:44:36 < dongs> whoa 3am 2012-06-23T20:45:15 <+Steffann> gn 2012-06-23T21:01:23 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has quit [Quit: Leaving] 2012-06-23T21:03:50 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 255 seconds] 2012-06-23T21:04:08 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-23T21:48:35 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has joined ##stm32 2012-06-23T21:49:15 -!- peabody124 [~peabody12@athedsl-304848.home.otenet.gr] has quit [Client Quit] 2012-06-23T21:49:19 < szczys> yay, I got my SPI working! 2012-06-23T21:49:46 < szczys> I had a series of things not going my way... 2012-06-23T21:49:47 < Rickta59> what did it turn out was the causing you issues 2012-06-23T21:50:01 < szczys> I had reversed the polarity of the command bit for the device I"m working with (Doh!) 2012-06-23T21:50:17 < szczys> That and a few of the setup functions which were not jiving 2012-06-23T21:50:18 < Rickta59> CPOL? 2012-06-23T21:50:24 < szczys> no, I had that right 2012-06-23T21:50:33 < szczys> but this is using 9-bit protcol 2012-06-23T21:50:42 < szczys> with the MSB signaling a command 2012-06-23T21:50:45 < Rickta59> that is kind of strange 2012-06-23T21:50:48 < szczys> (versus just plain data) 2012-06-23T21:50:54 < Rickta59> does the hw support non 8 bit spi? 2012-06-23T21:50:57 < szczys> but that command bit is low for a command, and high for data 2012-06-23T21:51:00 < szczys> yes 2012-06-23T21:51:08 < szczys> 4-14 bits I think 2012-06-23T21:51:11 < Rickta59> i mean natively .. or did you have to slice it 2012-06-23T21:51:12 < Rickta59> k 2012-06-23T21:51:13 < szczys> that's why I chose to do this one 2012-06-23T21:51:24 < szczys> since I couldn't do 9-bit hardware SPI with AVR chips 2012-06-23T21:51:38 < Rickta59> some of the 430 chips have 16 bit spi .. kind of handy 2012-06-23T21:51:52 < szczys> anyone know what the NSS signal is used for? 2012-06-23T21:52:05 < szczys> I've read about it in the reference manual, but am confused on how it works 2012-06-23T21:52:16 < szczys> I'd like to use it to drive the CS bit on this SPI device 2012-06-23T21:52:28 < szczys> but that was one of the things preventing thing from working 2012-06-23T21:52:37 < szczys> I ended up just grounding it for now 2012-06-23T21:53:00 < szczys> but I think that's a bad idea, just in case I a comm gets interrupted and has to start over again 2012-06-23T21:53:19 < Rickta59> can't you use any pin to do that if you can't figure out NSS 2012-06-23T21:53:53 < Rickta59> i think NSS is just another name for chip select 2012-06-23T21:54:27 < Rickta59> a quite from my.st.com "The NSS on the STM32 doens't act as a chip select thant can be used to synchronize the data exchange operations. 2012-06-23T21:54:27 < Rickta59> The datasheet isn't clear and already has some errata but still not clear." 2012-06-23T21:54:46 < Rickta59> so maybe you just need to use another GPIO pin for chip select 2012-06-23T21:55:06 < szczys> yeah... I read that post too 2012-06-23T21:55:28 < szczys> but in the datasheet it says something about NSS driving low whenever SPI is enabled... etc. 2012-06-23T21:55:43 < szczys> But maybe it's only used when the chip needs to switch between master and slave 2012-06-23T21:56:10 < szczys> I'd like to have an understanding of *why* I'm not going to be able to use it 2012-06-23T21:57:09 < szczys> further down in the thread it suggests that I drive the pin low manually, then use the TXNE flag interrupt to set it high again 2012-06-23T21:57:33 < Rickta59> once you are talking to the device do you ever let go of it? 2012-06-23T21:57:40 < Rickta59> you are talking to a display? 2012-06-23T21:57:40 < szczys> no 2012-06-23T21:57:45 < szczys> yes, it's a display 2012-06-23T21:58:14 < Rickta59> seems like just using a gpio so you can coordinate when it starts seems reasonable .. where were you reading about the use of that flag? * I' 2012-06-23T21:58:27 < Rickta59> m still trying to figure what data sheets and app notes i need to get 2012-06-23T21:58:27 < szczys> is there any concern that I might get out of sync with the receiver? 2012-06-23T21:58:38 < szczys> and is that what the CS is meant for? Syncing the transmissions? 2012-06-23T21:59:05 < Rickta59> CS is chip select ... it is most useful with you have multiple devices on an SPI bus you want to address 2012-06-23T21:59:18 < Rickta59> so you had an SPI display and also wanted to talk to an SD card 2012-06-23T21:59:31 < szczys> I use the reference manual RM0091 2012-06-23T21:59:33 < Rickta59> you could have them both wired to MISO/MOSI/MCLK 2012-06-23T21:59:47 < Rickta59> but you would have 2 chip select lines .. one for the display .. one for the sdcard 2012-06-23T22:00:01 < szczys> and the datasheet for STM32F05x devices 2012-06-23T22:00:13 < szczys> the datasheet has the pinouts for this chip 2012-06-23T22:00:20 < Rickta59> so to direct data in an out of the display you would drag the chip select low for the display 2012-06-23T22:00:31 < szczys> which is how I figured out which pins could be MSOI, CLK, etc. 2012-06-23T22:00:33 < Rickta59> then send spi command that it knows about 2012-06-23T22:00:46 < Rickta59> and the you could let go and then drag the sd card low 2012-06-23T22:00:51 < Rickta59> and talk to it 2012-06-23T22:01:11 < Rickta59> usually when you do a CS the device will get itself into a know state 2012-06-23T22:01:30 < Rickta59> and when you let go it will ignore MOSI data 2012-06-23T22:01:34 < szczys> right 2012-06-23T22:01:36 < Rickta59> and not produce any data on MISO 2012-06-23T22:01:57 < szczys> this display has no MISO 2012-06-23T22:02:08 < Rickta59> sure .. that seems normal 2012-06-23T22:02:34 < szczys> boy, I just love that SysTick feature 2012-06-23T22:02:42 < szczys> what a fantastically useful thing to have 2012-06-23T22:02:47 < Rickta59> do you know what the doc # for the RM0091 is? 2012-06-23T22:03:03 < szczys> hmmm... no but I can find you a link really quick 2012-06-23T22:03:32 < Rickta59> i'm in linux so it doesn't preview the doc .. and i have downloaded like 20 of them 2012-06-23T22:03:47 < Rickta59> but none of the rm numbers match the filenames 2012-06-23T22:04:07 < Rickta59> i should just rename them 2012-06-23T22:04:12 < szczys> http://www.st.com/internet/mcu/subclass/1588.jsp 2012-06-23T22:04:19 < szczys> click on Resources, then on Reference Manuals 2012-06-23T22:04:44 < szczys> #31936 2012-06-23T22:04:49 < Rickta59> right thanks 2012-06-23T22:04:50 < szczys> (DM00031936) 2012-06-23T22:05:33 < Rickta59> that makes sense .. call rm 91 some other # 2012-06-23T22:06:07 < Rickta59> how fast are you driving the display? 2012-06-23T22:06:18 < Rickta59> this is that color nokia one? 2012-06-23T22:08:28 < szczys> yep 2012-06-23T22:08:38 < szczys> Let's see... I'm using prescaler of 4 2012-06-23T22:08:40 < szczys> so 12 MHz 2012-06-23T22:08:59 < Rickta59> nice, you can pump in a lot of data @ 12MHz 2012-06-23T22:09:49 < Rickta59> page 639 2012-06-23T22:10:06 < Rickta59> they are showing a gpio connected to the slaves CS pin 2012-06-23T22:10:37 < Rickta59> looks like NSS is a slave mode feature not a master 2012-06-23T22:11:30 < szczys> "In master mode, NSS can be used either as output or input. 2012-06-23T22:11:30 < szczys> As an input it can prevent multimaster bus collision, and as an output it can drive a slave 2012-06-23T22:11:30 < szczys> select signal of a single slave. 2012-06-23T22:11:30 < szczys> " 2012-06-23T22:11:39 < Rickta59> yeah i see that .. but 2012-06-23T22:11:58 < Rickta59> later if you want to add another spi device you could already have the right mindset using GPIO 2012-06-23T22:12:16 < Rickta59> but if you only ever have one SPI device on that bus I guess it would be OK 2012-06-23T22:12:52 < szczys> it's no big deal... I just like to learn as I go 2012-06-23T22:13:02 < szczys> and I see no reason why this wouldn't work in this case 2012-06-23T22:13:07 < szczys> Who knows? 2012-06-23T22:13:11 < Rickta59> so did you use HW? NSS 2012-06-23T22:13:20 < szczys> I think I might program the game snake to play on this hardware 2012-06-23T22:13:21 < Rickta59> with output enable 2012-06-23T22:13:34 < Rickta59> SSM=0, SSOE=1 2012-06-23T22:14:01 < szczys> I'm using the libraries, and I think I had it setup correctly for this... not sure 2012-06-23T22:14:07 < Rickta59> k .. 2012-06-23T22:14:24 < Rickta59> you might poke around int he library code to see if it is doing that 2012-06-23T22:15:27 < szczys> yeh... now that I've got it working (with CS tied to ground) I'll give it another go and see what I can come up with. 2012-06-23T22:15:36 < szczys> I would also like to use the watchdog 2012-06-23T22:15:51 < Rickta59> * looking at code .. 2012-06-23T22:15:54 < szczys> since I'm blocking the code while I wait for the TX flag 2012-06-23T22:16:11 < Rickta59> doesn't seem like they use the same define names as the RM91 doc 2012-06-23T22:17:00 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has quit [Ping timeout: 260 seconds] 2012-06-23T22:17:54 < Rickta59> are you using SPI_NSS_Hard? 2012-06-23T22:19:31 < Rickta59> hmm .. library doesn't mention SSOE .. only SSM 2012-06-23T22:20:16 < szczys> SPI_SSOutputCmd() 2012-06-23T22:20:22 < szczys> in the spi.c file 2012-06-23T22:20:45 < Rickta59> k .. 2012-06-23T22:20:54 < Rickta59> i was looking in the spi header not the stm32f0xx.h 2012-06-23T22:21:17 < Rickta59> looks like the default is hw if you use the spi init function 2012-06-23T22:22:05 < Rickta59> Enable or disable the SS output using the SPI_SSOutputCmd() function .. so you are using this? 2012-06-23T22:23:22 < szczys> this is really weird 2012-06-23T22:23:31 < szczys> every other time I press reset the screen works/doesn't work 2012-06-23T22:23:38 < szczys> extremely reliable 2012-06-23T22:23:52 < Rickta59> maybe you are talking to it before it is ready 2012-06-23T22:24:07 < szczys> NSS has nothing to do with it 2012-06-23T22:24:15 < Rickta59> i mean powering off 2012-06-23T22:24:18 < Rickta59> and powering on 2012-06-23T22:24:26 < Rickta59> or are you just pressing reset 2012-06-23T22:24:28 < szczys> power on always works 2012-06-23T22:24:36 < szczys> just pressing reset causes the issue 2012-06-23T22:24:47 < Rickta59> and you have it tied low the NSS pin? 2012-06-23T22:25:18 < Rickta59> tied low as in you aren't toggling it with software 2012-06-23T22:26:21 < Rickta59> seems like you should probably pull it high and then low on reset 2012-06-23T22:30:52 < szczys> ah-ha 2012-06-23T22:30:58 < szczys> there's a reset pin 2012-06-23T22:31:06 < szczys> and this requires reset at the beginning of initialization 2012-06-23T22:31:24 < szczys> with the system clock running at 48 MHz it must be toggling too fast for the display to react to it 2012-06-23T22:31:44 < szczys> (or that skew rate is getting me.... slow pin response vs. fast clock) 2012-06-23T22:32:10 < szczys> I just added a 1ms delay between driving the reset line low, then high again 2012-06-23T22:32:14 < szczys> and that fixed it 2012-06-23T22:32:57 < Rickta59> so are you doing anything more with the template or you are just leaving it the way it is? 2012-06-23T22:36:24 < szczys> I'm still hoping to find (or code) a nice startup/linker pair 2012-06-23T22:36:35 < szczys> do you have any suggestions for additions/changes? 2012-06-23T22:36:37 < Rickta59> that startup code seems like you can use it 2012-06-23T22:36:52 < Rickta59> the copyright is by st not anyone else 2012-06-23T22:37:00 < szczys> true 2012-06-23T22:37:11 < szczys> but I think the linker has to catch all the stuff in the startup code 2012-06-23T22:37:23 < Rickta59> there is actually a lot of extra stuff in there 2012-06-23T22:37:29 < szczys> yep 2012-06-23T22:37:37 < Rickta59> i did comment out one of the calls in the startup code 2012-06-23T22:37:44 < szczys> which one? 2012-06-23T22:37:58 < Rickta59> to some init function my code didn't know about 2012-06-23T22:38:21 < Rickta59> * goes to look 2012-06-23T22:38:28 < Rickta59> __libc_init_arry 2012-06-23T22:38:36 < Rickta59> __libc_init_array 2012-06-23T22:38:39 < szczys> yeah 2012-06-23T22:38:45 < szczys> I had trouble with that one too 2012-06-23T22:38:53 < szczys> what linker are you using? 2012-06-23T22:38:57 < Rickta59> gcc 2012-06-23T22:39:06 < Rickta59> whatever comes with code sourcery 2012-06-23T22:39:10 < szczys> sorry.. what linker script? 2012-06-23T22:39:24 < Rickta59> a hacked version of that tnt thing dekar posted a zip to 2012-06-23T22:39:51 < szczys> oh, I tried to hack that for my own use but no luck... can I see the work you've done? 2012-06-23T22:40:58 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving] 2012-06-23T22:43:46 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-23T22:55:03 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has joined ##stm32 2012-06-23T23:15:54 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-23T23:20:48 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] --- Day changed Sun Jun 24 2012 2012-06-24T00:04:20 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has quit [Ping timeout: 260 seconds] 2012-06-24T00:39:28 <+dekar> szczys, [21:11:30] http://pastebin.com/RT8iw8Bt 2012-06-24T00:39:28 <+dekar> [21:12:23] http://pastebin.com/wvFdshrD ... sections_flash.ld 2012-06-24T00:39:28 <+dekar> [21:12:56] http://pastebin.com/kguNbReG 2012-06-24T00:39:28 <+dekar> [21:13:26] http://pastebin.com/YcT18duH 2012-06-24T00:51:28 <+dekar> Rickta59, you shouldn't need those init functions unless you're doing C++ anyway 2012-06-24T01:07:54 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has joined ##stm32 2012-06-24T01:28:23 < szczys> anyone know what the cli() and sei() equivalents are when working with STM32? 2012-06-24T01:34:06 <+dekar> never heard of those 2012-06-24T01:36:08 < szczys> function that disables global interrupts 2012-06-24T01:36:16 < szczys> the other one enables them 2012-06-24T01:36:23 < szczys> is there an easy function for that? 2012-06-24T01:37:14 -!- upgrdman [~upgrdman@71-92-208-122.static.mtpk.ca.charter.com] has joined ##stm32 2012-06-24T01:37:14 -!- upgrdman [~upgrdman@71-92-208-122.static.mtpk.ca.charter.com] has quit [Changing host] 2012-06-24T01:37:14 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has joined ##stm32 2012-06-24T01:41:15 < szczys> ah... found it. It's in the CMSIS header files: 2012-06-24T01:41:17 < szczys> __disable_irq (void) 2012-06-24T01:41:23 < szczys> __enable_irq (void) 2012-06-24T01:41:32 < szczys> That makes my button debounce work like a charm! 2012-06-24T02:01:57 < upgrdman> timer question: On page 7 of AN4013 (https://www.google.com/search?q=st+an4013) the last section shows 72MHz for TIM_CLK but the equation shows 72*106 ... wtf is the 106 for? 2012-06-24T02:10:09 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has quit [Ping timeout: 245 seconds] 2012-06-24T02:11:00 -!- drgreenthumb [~fletch@drupal.org/user/72475/view] has quit [Quit: Leaving] 2012-06-24T02:11:58 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-06-24T02:15:34 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 245 seconds] 2012-06-24T02:17:11 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has quit [Read error: Connection reset by peer] 2012-06-24T02:20:51 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-06-24T02:23:51 <+dekar> flyback, why would one do that? 2012-06-24T02:24:06 <+dekar> useless exercise 2012-06-24T02:25:30 < Laurenceb_> lol 2012-06-24T02:29:17 <+dekar> I wouldn't want the trouble with reactOS being incompatible to a lot of stuff :/ 2012-06-24T02:31:30 <+dekar> how does serial on x86er work? it doesn't need a driver since bios handles it, right? 2012-06-24T02:31:38 <+dekar> so I guess it should work on reactOS? 2012-06-24T02:36:50 <+dekar> I always use minicom, but it kinda sucks XD 2012-06-24T02:37:45 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has quit [Ping timeout: 260 seconds] 2012-06-24T02:39:11 <+dekar> they should auto detect the baud rate anyway 2012-06-24T02:39:32 <+dekar> I once read about that working pretty well 2012-06-24T03:00:57 < dongs> sup trolls 2012-06-24T03:13:55 -!- mrcan_ [~mrcan@94.235.5.10] has joined ##stm32 2012-06-24T03:13:55 -!- mrcan_ [~mrcan@94.235.5.10] has quit [Changing host] 2012-06-24T03:13:55 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-06-24T03:18:04 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 265 seconds] 2012-06-24T04:24:20 < szczys> Is this the wrong way to clear an I/O pin? 2012-06-24T04:24:21 < szczys> GPIOC->ODR &= ~LCD_CS; 2012-06-24T04:24:37 < szczys> should I be using the BSRR register? 2012-06-24T04:30:32 < dongs> I generally use ODR for toggling wiht ^ 2012-06-24T04:31:08 < dongs> #define digitalHi(p, i) { p->BSRR = i; } 2012-06-24T04:31:08 < dongs> #define digitalLo(p, i) { p->BRR = i; } 2012-06-24T04:31:08 < dongs> #define digitalToggle(p, i) { p->ODR ^= i; } 2012-06-24T04:35:48 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has joined ##stm32 2012-06-24T05:16:01 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-24T05:36:00 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has joined ##stm32 2012-06-24T05:46:00 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-24T05:46:04 -!- [7] [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-24T05:52:35 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Ping timeout: 246 seconds] 2012-06-24T05:59:08 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has quit [Quit: This computer has gone to sleep] 2012-06-24T06:24:19 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has quit [Quit: Quit] 2012-06-24T06:41:41 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has joined ##stm32 2012-06-24T07:01:15 < szczys> wow, using = instead of |= can really mess things up 2012-06-24T07:01:18 < szczys> that took me a long time to find 2012-06-24T07:26:43 -!- drgreenthumb [~fletch@drupal.org/user/72475/view] has joined ##stm32 2012-06-24T07:49:21 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has quit [Ping timeout: 272 seconds] 2012-06-24T07:52:54 < dongs> eh? 2012-06-24T08:13:19 < GargantuaSauce> turns your bitfield into a bit...garden? 2012-06-24T08:13:35 < GargantuaSauce> a bit potted plant 2012-06-24T08:13:41 < dongs> bitfield into a blogfield 2012-06-24T09:32:53 -!- dekar [~dekar@dslb-188-107-082-087.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep] 2012-06-24T09:50:29 < cjbaird> omg, this raspberrypi has been installing gentoo for the past 27 hours, and hasn't crashed.. 2012-06-24T10:03:16 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-24T10:05:42 < dongs> useless OS, on useless hardware 2012-06-24T10:05:44 < dongs> appropriate. 2012-06-24T10:07:57 < blkcat> why would you install gentoo on a raspberry pi... 2012-06-24T10:08:06 < dongs> why woudl you own one in the first place 2012-06-24T10:08:55 < blkcat> i'll probably get one myself, it's hard to argue with the specs at that price. 2012-06-24T10:34:28 < cjbaird> INSTALL GENTOO is a reasonable stress-test for hardware, especially those without oodles of ram (building gcc, g++, glibc.. Noone would trust Windows' virtual-mem system with that..) 2012-06-24T10:43:00 < cjbaird> flyback: worthless. I've had Linksys & etc. NAS and routers whose stock kernel passes that, yet panics easily doing an INSTALL GENTOO. 2012-06-24T10:43:44 < cjbaird> Same for prime95 and friends. 2012-06-24T10:45:22 < cjbaird> Windows user: BuT pRiMe95 Is ThE uLtImAtE sYsTeM tEsT!!111 2012-06-24T10:47:50 < dongs> u guize are so funneh 2012-06-24T11:19:34 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has quit [Quit: This computer has gone to sleep] 2012-06-24T11:34:56 < GargantuaSauce> oh god ive been wrestling with pwm for hours because i forgot that most timers have 16 bit counters and not 32 2012-06-24T11:34:59 < GargantuaSauce> derrrrp 2012-06-24T11:36:31 < GargantuaSauce> fun fact: apparently hobby servos will tolerate their pwm input being inverted 2012-06-24T11:39:11 -!- tavish [~tavish@59.177.7.98] has joined ##stm32 2012-06-24T11:39:11 -!- tavish [~tavish@59.177.7.98] has quit [Changing host] 2012-06-24T11:39:11 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-24T11:47:43 < dongs> GargantuaSauce: lolwatu. 2012-06-24T11:58:08 -!- dekar [~dekar@dslb-188-107-082-087.pools.arcor-ip.net] has joined ##stm32 2012-06-24T11:58:12 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-24T12:00:26 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-24T12:16:22 < Tectu> GargantuaSauce, not all of them 2012-06-24T12:34:55 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 264 seconds] 2012-06-24T12:43:27 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-24T12:57:28 -!- tavish [~tavish@120.59.12.67] has joined ##stm32 2012-06-24T12:57:28 -!- tavish [~tavish@120.59.12.67] has quit [Changing host] 2012-06-24T12:57:28 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-24T13:39:13 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has joined ##stm32 2012-06-24T14:05:31 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has joined ##stm32 2012-06-24T14:43:59 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has quit [Ping timeout: 252 seconds] 2012-06-24T14:53:12 < Laurenceb_> http://zombo.com/ 2012-06-24T14:57:58 < dongs> blogebrity 2012-06-24T15:08:11 < cjbaird> doggy! 2012-06-24T15:15:33 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-24T15:15:36 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-24T15:16:26 <+Steffanx> nu 2012-06-24T15:52:08 < dongs> no u 2012-06-24T15:53:46 < zyp> sup 2012-06-24T15:54:07 < dongs> bloggin 2012-06-24T15:55:18 < zyp> I picked up the L1 discovery today, so now I've got something new to play with when I have time 2012-06-24T15:56:06 < Thorn> is it the one with the lcd? 2012-06-24T15:56:43 < zyp> yep 2012-06-24T15:57:23 <+dekar> cjbaird, so has TNT compiled yet on that raspi? :) 2012-06-24T15:59:44 < Thorn> http://www.eis.mdx.ac.uk/research/PhDArea/saeed/paper1.pdf "It has taken us some time to dare to believe in our own results. It now seems to us ... that what distinguishes the three groups in the first test is their different attitudes to meaninglessness." 2012-06-24T16:00:19 < cjbaird> dekar: yep :) .. It can build working executibles, too.. 2012-06-24T16:01:38 < cjbaird> Thorn: yow, that'll piss a lot of invested interests off.. 2012-06-24T16:02:04 < Tectu> guys, help me shifting! 2012-06-24T16:02:05 < Tectu> I fail at this: when splitting a word into two bytes, where x is a word (uint16_t), i can do x >> 8 to get the higher byte and x & 0xFF to get the lower byte, right? 2012-06-24T16:02:22 < Thorn> right 2012-06-24T16:02:36 < Tectu> okay, now i want to split the word into four nibbles (a nibble is 4 bits) 2012-06-24T16:02:40 < Tectu> and i fail at that o0 2012-06-24T16:02:51 < Tectu> x >> 12 gives the highes nibble, right? 2012-06-24T16:03:17 < Tectu> (x >> 8) & 0x0F does that give the second highest nibble?! 2012-06-24T16:03:34 < Thorn> yes and yes 2012-06-24T16:03:39 < zyp> yes 2012-06-24T16:03:48 < cjbaird> (x >>8 ) & 0xF0 >> 4 2012-06-24T16:03:50 < Tectu> so the third nibble is (x >> 4) & 0x0F 2012-06-24T16:03:59 < Tectu> huch? 2012-06-24T16:04:08 < Tectu> cjbaird, ? 2012-06-24T16:04:15 < cjbaird> waitm half-asleep 2012-06-24T16:04:15 < zyp> basically, (x >> (n * 4)) & 0xf will give the n'th nibble where nibble 0 is the lowest 2012-06-24T16:04:30 < Tectu> ah! 2012-06-24T16:04:32 < Tectu> here we go 2012-06-24T16:04:43 < Tectu> i was searching for some "generic" macro for that 2012-06-24T16:04:46 < Tectu> thank you very much zyp 2012-06-24T16:05:00 < Tectu> damn, now where I see it, it is pretty easy ^^ 2012-06-24T16:05:47 < Thorn> http://www.hackersdelight.org/basics.pdf 2012-06-24T16:07:28 < Tectu> does the compiler optimize shift by zero out? 2012-06-24T16:08:15 < Thorn> if the zero is known at compile time then yes 2012-06-24T16:09:49 < zyp> yes 2012-06-24T16:11:52 < Tectu> i try to write some "generic" function for GPIO bitbanging a 16-bit LCD... therfore i split the 16-bits into four 4 bit groups. Now the user should give the Port for each nibble, and the basepin (offset) of it... why does this not work? http://pastebin.com/vsV8Yaes 2012-06-24T16:12:05 < cjbaird> "Overflow occurred iff c equals the high-order bit of s" .. whoa. When I was writing that 6502 sim, I had to calculate the overflow-status flag at one point (using the straight-forward method), and the GCC optimizer reduced the code into that. I thought something was wrong when I checked the assembly. :I 2012-06-24T16:12:44 < Tectu> this one works: http://pastebin.com/h9bUsdQy 2012-06-24T16:12:51 < Tectu> that is just with two bytes, instead of four nibbles 2012-06-24T16:12:55 < dongs> Tectu: so fucking ugly. why dont you use bitbanding 2012-06-24T16:13:01 < zyp> Tectu, sounds dumb 2012-06-24T16:13:08 < Tectu> zyp, what do you mean? 2012-06-24T16:13:17 < zyp> why 4-bit nibbles? 2012-06-24T16:13:23 < dongs> 4bit niggles 2012-06-24T16:13:35 < zyp> why having subgroups at all? 2012-06-24T16:13:48 < Tectu> the problem is that not every board does have a full 16-bit free port. not even two full 8-bits on the most boards 2012-06-24T16:13:54 < Tectu> so i thought split it in four groups of four :) 2012-06-24T16:14:13 < Tectu> on f4 discovery you don't have even two 8-bit ports 2012-06-24T16:14:18 < Tectu> on the pinheaders 2012-06-24T16:14:27 < zyp> but why four? why not single pins? 2012-06-24T16:14:44 < Thorn> is byte addressing of gpio registers allowed? 2012-06-24T16:14:45 < Tectu> dunno, thought this might be the easiest way to configure for the user of the library 2012-06-24T16:15:07 < Tectu> zyp, writing 32 #defines is stupid too?! 2012-06-24T16:15:19 < Tectu> if you have any other idea, I'd be happy to hear it, of course 2012-06-24T16:16:13 < Tectu> but anyways, why dosen't the thing i pasted work? 2012-06-24T16:16:31 < zyp> well, I'd make some template shit taking a list of all 16 pins, then generating the most efficient code for the chosen pins by grouping pins on same port 2012-06-24T16:16:52 < Tectu> yeah, but that's not the priority atm. 2012-06-24T16:17:07 < Tectu> na c'mon, can't you just tell me why the four lines i wrote up dosen't work=? 2012-06-24T16:17:23 < zyp> haven't even looked at them 2012-06-24T16:17:36 < zyp> ok, I'll check 2012-06-24T16:17:39 < Tectu> thank you :) 2012-06-24T16:17:53 < zyp> because line 7 says 3 and not 4 2012-06-24T16:18:58 < Tectu> lol... 2012-06-24T16:19:26 < Tectu> hmm... 2012-06-24T16:19:56 < zyp> hang on, I spotted another, just checking 2012-06-24T16:19:59 < Tectu> could there by anything else wrong? 2012-06-24T16:20:02 < Tectu> aye 2012-06-24T16:20:41 < zyp> yep, bitshift has higher order of precedence than bitwise or 2012-06-24T16:20:54 < Tectu> aahè 2012-06-24T16:20:58 < zyp> so put parantheses around the or 2012-06-24T16:22:38 < Tectu> around the or? o0 2012-06-24T16:23:01 < Thorn> around the >> << 2012-06-24T16:23:52 < Tectu> I really don't understand where you mean, Thorn 2012-06-24T16:27:46 < Thorn> you have foo = a | b << c; 2012-06-24T16:28:20 < Thorn> or rather for whatever reason foo = (a | b << c); 2012-06-24T16:28:51 < Thorn> you need foo = (a | b) << c; 2012-06-24T16:29:11 < zyp> what Thorn said 2012-06-24T16:31:32 < Tectu> ah yeah, I see 2012-06-24T16:31:38 < Tectu> thank you very much for your help guys! 2012-06-24T16:42:26 -!- pelrun [~pelrun@60-241-99-33.static.tpgi.com.au] has quit [Quit: HydraIRC -> http://www.hydrairc.com <- In tests, 0x09 out of 0x0A l33t h4x0rz prefer it :)] 2012-06-24T16:51:10 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has quit [Ping timeout: 260 seconds] 2012-06-24T16:52:03 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-06-24T17:08:14 < Tectu> zyp, when I have the offset, like #define LCD_DATA_PORT_4_BASE 12 , how can i make a mask like 0xF000 out of that? 2012-06-24T17:08:26 < Tectu> without if else the crap 2012-06-24T17:15:27 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-06-24T17:17:53 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-24T17:21:53 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has joined ##stm32 2012-06-24T17:26:34 < Tectu> with the knowing of base_ping + four bits of course 2012-06-24T17:36:53 < cjbaird> #define MUMBLE_MASK (15 << LCD_DATA_PORT_4_BASE) ? 2012-06-24T17:38:35 < Tectu> 15 ?! 2012-06-24T17:39:38 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 272 seconds] 2012-06-24T17:40:03 < cjbaird> It's just a bit pattern of "1111" that'll be shifted over.. 2012-06-24T17:40:24 < Tectu> ah, that makes sense indeed 2012-06-24T17:40:58 < cjbaird> 1 << 8 = 256; 3 << 8 = 768 (the "11" becomes 256+512) 2012-06-24T17:42:13 < Tectu> so MASK(12) -> 0xF000, MASK(8) -> 0x0F00, MASK(4) -> 0x00F0, MASK(0) -> 0x000F right? 2012-06-24T17:42:21 < Tectu> where #define MASK(a) (15 << a) 2012-06-24T17:43:04 < Tectu> guess that should work, cjbaird ? 2012-06-24T17:48:57 < cjbaird> doggy! (wireless network is probably down...) 2012-06-24T17:49:18 < Tectu> did receive my llast question? 2012-06-24T17:49:25 < Tectu> cjbaird, 2012-06-24T17:49:26 < Tectu> so MASK(12) -> 0xF000, MASK(8) -> 0x0F00, MASK(4) -> 0x00F0, MASK(0) -> 0x000F right? 2012-06-24T17:49:26 < Tectu> where #define MASK(a) (15 << a) 2012-06-24T17:51:05 < cjbaird> Probably some fuckwit in the area playing with those Xbox360 controllers again. 2012-06-24T17:51:55 < cjbaird> https://imgur.com/jGgF1 2012-06-24T17:53:37 < Tectu> do you use zsh? 2012-06-24T17:53:59 < cjbaird> (and before anyone asks, this computer gets its name "brushtail" from the Brushtail Possum that almost killed me back in '94..) 2012-06-24T17:54:33 < cjbaird> That's something in my .bash_profile: declare -x PS1=`echo "\n\[\033[0;3"$SHLVL";40mReady.\033[0m\]\n "` 2012-06-24T17:54:33 < Tectu> ah, just was about to ask :D 2012-06-24T18:01:17 < cjbaird> The original of this system was a 486SX25.. a few days before I bought the system I was cycling down a steep hill at ~70km/h with a taxi behind me (speed record attempt..) at 2am in the morning, and a brushtail possum screamed (sounded just like someone being killed..) causing me to slip and fall onto the bike. The only thing that stopped me falling onto the road and under the taxi was some freakish balancing without using hands 2012-06-24T18:01:18 < cjbaird> or legs.. 2012-06-24T18:02:20 < cjbaird> "Hey, this new NetBSD Unix system will need a hostname... I know, I'll name it in honor of the fucking possum that nearly killed me! :)" 2012-06-24T18:03:02 < Tectu> lol 2012-06-24T18:03:05 < Tectu> nice job, cjbaird 2012-06-24T18:08:05 < cjbaird> I will now spoil that epic tale by mentioning I later got a Furry to draw a mascot for it: https://imgur.com/r1b2O 2012-06-24T18:38:30 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 260 seconds] 2012-06-24T18:43:30 -!- Tekno [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer] 2012-06-24T18:43:46 < cjbaird> Thorn: loving the read of the programming education paper "... 2012-06-24T18:43:52 < cjbaird> because the students ? rightly, in our opinion ? were incensed at the conduct of their teaching and the arrangements for their study, and simply refused to do anything that wasn?t directly beneficial to themselves 2012-06-24T18:44:00 -!- Tekno [~TeknoJuce@bas1-london15-2925201294.dsl.bell.ca] has joined ##stm32 2012-06-24T18:44:00 -!- Tekno [~TeknoJuce@bas1-london15-2925201294.dsl.bell.ca] has quit [Changing host] 2012-06-24T18:44:00 -!- Tekno [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-24T18:51:43 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has quit [Ping timeout: 276 seconds] 2012-06-24T18:53:17 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-06-24T18:53:19 -!- zlog [~zlog@ip68-102-202-1.ks.ok.cox.net] has joined ##stm32 2012-06-24T18:53:35 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Client Quit] 2012-06-24T18:53:57 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-06-24T18:54:09 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has left ##stm32 [] 2012-06-24T18:54:19 < Laurenceb_> dongs would like this http://www.coolcomponents.co.uk/catalog/duinomite-mini-p-958.html 2012-06-24T18:56:03 < cjbaird> PIC32 shit (with a nicely Tivo-ized licenced GCC toolchain..), and it's pushed by the spammer Dontronics. The Magical Open Source Fairies were supposed to go Great Things with it as well. 2012-06-24T18:58:03 -!- Rickta59 [463d49a6@gateway/web/freenode/ip.70.61.73.166] has joined ##stm32 2012-06-24T19:22:01 -!- Rickta59 [463d49a6@gateway/web/freenode/ip.70.61.73.166] has quit [Quit: Page closed] 2012-06-24T19:23:46 -!- monode [56790265@gateway/web/freenode/ip.86.121.2.101] has joined ##stm32 2012-06-24T19:25:51 < monode> does the TIMx_ARR register act as an autoreload register for TIMx_CNT, so - for example, after an update event with ARR set at 512, CNT will become 512, or will the update event occur when CNT changes value to 511? 2012-06-24T19:27:24 < monode> does it act like the TOP value on avr timers being the point where the timer overflows, or does it act like a "bottom" value to be preloaded after the timer resets at 0xFFFF, and will always reset at 0xFFFF? 2012-06-24T19:29:19 < monode> I want to make a simple pulse frequency modulator on a timer, that is, have a high value on a PWM pin for a a fixed number of clocks, and have the pin at LOW for a varying amount of clocks. 2012-06-24T19:31:09 < monode> I think i'm supposed to use CCR as the trip point and ARR for the frequency, but the datasheet isn't very clear on ARR (or I'm not very good at understanding it). I think it's the first version - it acts as a TOP value 2012-06-24T19:32:20 < jpa-> it is top value 2012-06-24T19:33:00 < jpa-> timer freq = clock freq / (PSC + 1) / ARR 2012-06-24T19:33:21 < monode> yeah, was getting ready to paste this "In upcounting mode, the counter counts from 0 to the auto-reload value (content of the TIMx_ARR register), then restarts from 0 and generates a counter overflow event." 2012-06-24T19:33:23 < jpa-> or was it ARR + 1 also 2012-06-24T19:34:51 < monode> oh, it's zero counting, so i assume that if you set ARR+1, you'd get ARR+2 counts. 2012-06-24T20:01:04 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has joined ##stm32 2012-06-24T20:06:15 < jpa-> yep, i mean in the equation for timer freq 2012-06-24T20:22:45 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has joined ##stm32 2012-06-24T20:29:46 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-24T20:45:12 -!- monode [56790265@gateway/web/freenode/ip.86.121.2.101] has quit [Quit: Page closed] 2012-06-24T20:47:59 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-06-24T20:49:51 -!- dekar [~dekar@dslb-188-107-082-087.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep] 2012-06-24T20:50:16 < philpem> could someone please have a look at my SPI driver code? http://pastebin.com/QZ0Y65YJ 2012-06-24T20:50:46 < philpem> if I reduce the prescaler from 128 to 16, it's fine, but if I go any lower I get lockups 2012-06-24T20:51:10 < philpem> usually when it's waiting for RXNE on the last received data block 2012-06-24T20:51:32 < philpem> (lines 90 and 151) 2012-06-24T21:04:49 < zyp> oh, karlp finally killed the texane examples, nice 2012-06-24T21:05:08 <+Steffanx> Free beer for karlp ? 2012-06-24T21:05:19 < zyp> well, a few days ago, but I haven't been following the activity here lately 2012-06-24T21:07:08 < philpem> hmm, looks like SPI_I2S_FLAG_RXNE is getting stuck low :( 2012-06-24T21:11:48 < zyp> so it gets stuck in the loop on line 68? 2012-06-24T21:12:20 < philpem> well, it gets stuck after it's finished sending data 2012-06-24T21:12:30 < philpem> so it sends the "N" bytes it has, reading the response byte every time 2012-06-24T21:13:09 < philpem> then when it tries to get the response to the final byte (which is the byte in the MRF24J40's register) RXNE stays low and it sticks on line 90 or 151 2012-06-24T21:13:17 < zyp> so, where in the code does it get stuck? 2012-06-24T21:13:29 < zyp> are you using a debugger? it tells you exactly where 2012-06-24T21:13:58 < philpem> I am, that's how I know it's getting stuck on line 151. 2012-06-24T21:14:08 < zyp> ah, found your problem 2012-06-24T21:14:24 < zyp> you have a typo on line 151, remove the semicolon. 2012-06-24T21:15:22 < zyp> also, why do you use a loop? when you clear the buffer once, it will remain clear until you start a new transfer and it completes 2012-06-24T21:15:42 < philpem> what I want to do is send two or three SPI bytes to the chip 2012-06-24T21:15:55 < zyp> yes? 2012-06-24T21:16:19 < philpem> for a read operation, the MRF24J04 returns the byte on MISO during the final write. 2012-06-24T21:16:31 < zyp> oh, wait, I misread your code 2012-06-24T21:16:53 < philpem> so for a 2-byte read, that's a 1-byte short address with nothing on MISO, then 0xFF on MOSI, and the response on MISO 2012-06-24T21:17:25 < zyp> your sending/receiving logic are not sane 2012-06-24T21:17:38 < philpem> that's exactly what ST's datasheet says to do 2012-06-24T21:18:14 < philpem> RM0041 page 523 2012-06-24T21:18:18 < zyp> you are sending two bytes of data at the beginning without clearing the read buffer after the first read 2012-06-24T21:18:33 < drgreenthumb> heh philpem I like that little MRF Microchip module, very cool gadget :) I have working code but it's for AVR. 2012-06-24T21:19:58 < philpem> drgreenthumb, yeah, I know :) 2012-06-24T21:20:04 < drgreenthumb> I started using it for debugging. I stick it on a breadboard with a project, and another one connected to USB on my PC and I can do printf() style dump debugging on breadboard without display :) 2012-06-24T21:20:14 < philpem> drgreenthumb, that's a really cool idea... 2012-06-24T21:20:58 < philpem> right now I'm tempted to dump the STM32 kit on ebay and switch to the PIC32. this thing is doing my head in. 2012-06-24T21:21:40 < philpem> used to think Microchip's datasheets were bad, now I'm fairly sure ST's are worse, and the Standard Peripheral Library is an absolute dog. 2012-06-24T21:21:40 < zyp> philpem, http://cgit.jvnv.net/suzumebachi/tree/drivers/l3gd20.h?h=stm32f4 <- here is some working SPI code, 0x01 is RXNE, so every loop is an RXNE wait 2012-06-24T21:22:20 < zyp> init() writes two bytes and discard the read ones 2012-06-24T21:22:51 < zyp> update() writes one byte, discards the read one, then write six dummy 0s to read six bytes 2012-06-24T21:24:06 < zyp> I'm operating directly on registers, but it's easily translated to stdperiphlib 2012-06-24T21:24:42 < philpem> that's considerably different to ST's guidelines :) 2012-06-24T21:25:03 < zyp> how so? 2012-06-24T21:25:13 < BrainDamage> btw, if you don't like stdperiphlib, there's several alternatives 2012-06-24T21:25:42 < zyp> yep 2012-06-24T21:25:58 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-24T21:26:56 < philpem> think I've got it going now. 2012-06-24T21:27:11 < philpem> ST's documentation is outright wrong. 2012-06-24T21:27:40 < zyp> which one is RM0041? L1 2012-06-24T21:27:45 < zyp> ? 2012-06-24T21:27:58 < philpem> STM32F100xx 2012-06-24T21:28:03 < zyp> oh 2012-06-24T21:28:06 < philpem> VL Discovery evkit 2012-06-24T21:28:24 < BrainDamage> the F100 have lot of errats 2012-06-24T21:28:32 < BrainDamage> I think they wrote them hastily 2012-06-24T21:28:40 * philpem sighs 2012-06-24T21:28:44 < zyp> ok, found it 2012-06-24T21:28:48 < zyp> I'll have a look 2012-06-24T21:30:05 < zyp> ah, right 2012-06-24T21:30:24 < zyp> that's probably also valid then 2012-06-24T21:30:51 < philpem> http://pastebin.com/9Tq7qhbY <<=== this one works :) 2012-06-24T21:31:26 < philpem> it's reading the TXMCR register at least 2012-06-24T21:31:39 < zyp> good 2012-06-24T21:31:52 < zyp> you previous code is probably having a time issue 2012-06-24T21:32:07 < philpem> mmm 2012-06-24T21:32:11 < drgreenthumb> philpem, oh heh also btw here's all the registers #defined if you want it :) http://pastebin.com/5VinTEFX 2012-06-24T21:32:15 < zyp> timing* 2012-06-24T21:32:22 < drgreenthumb> that took me like 2 hours :P 2012-06-24T21:32:27 < philpem> works fine when the core is much faster than the SPI, but if the SPI's faster? forget it. 2012-06-24T21:32:34 < philpem> thanks, drgreenthumb ! that'll save me a lot of time :) 2012-06-24T21:32:52 < philpem> now i just need to dig through the data sheet and find the magic values to poke into the registers :) 2012-06-24T21:33:05 < zyp> seems like it's possible to start next transfer before reading out result of the previous one, but you probably have to read it out before the next finishes then 2012-06-24T21:35:09 < zyp> hmm, RM0090 says the same 2012-06-24T21:35:12 < zyp> so yeah 2012-06-24T21:35:25 < zyp> it's correct, you just have to watch your timing 2012-06-24T21:36:01 < philpem> i'm starting to wonder if it's worth merging the STM32F4 SPL code into my codebase and switch to the F4 Discovery 2012-06-24T21:36:09 < zyp> my method may be slower since it may introduce delays between the bytes, but it's not sensitive for timing 2012-06-24T21:37:46 < philpem> somehow I think I can live with inter-byte delays :) 2012-06-24T21:38:29 < philpem> most of this code will be shuffled onto an STM32F4 soon, I'm just doing some tests on the 32VL. 2012-06-24T21:39:27 < philpem> need to figure out how to squeeze half a dozen PWM channels, an audio stream and the RF layer into an F4... thankfully the PWM is for R/C servos, so not very fast. 2012-06-24T21:39:36 < philpem> could probably use SysTick or a timer 2012-06-24T21:40:06 < Thorn> squeeze? 2012-06-24T21:41:11 < Thorn> maybe try using interrupts rather than running everything in a single loop? 2012-06-24T21:41:17 < philpem> probably will. 2012-06-24T21:41:49 < Thorn> stm32f4 is about the fastest microcontroller on earth 2012-06-24T21:42:15 < Thorn> I've yet to see a microcontroller application that would have to be 'squeezed' into it 2012-06-24T21:44:28 < philpem> :) 2012-06-24T21:44:49 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-06-24T21:44:50 < philpem> i'm too used to piddly little 8-bit PICs :) 2012-06-24T21:45:51 < Thorn> and it has hardware pwm timers 2012-06-24T21:46:58 < philpem> DCMI could be handy too... 2012-06-24T21:47:32 < zyp> F4 got a bunch of timer channels usable for pwm 2012-06-24T21:47:58 < zyp> 6 is no problem 2012-06-24T21:48:10 < philpem> oh cool, all the timers (except the two "basic" ones) can do PWM. that's nice. 2012-06-24T21:48:23 < zyp> yep 2012-06-24T21:48:40 < zyp> and each timer has four channels, each capable of a seperate PWM value 2012-06-24T21:48:51 < philpem> DMA-driven D/A... audio out should be easy then :) 2012-06-24T21:49:08 < Thorn> it also has I2S 2012-06-24T21:49:32 < philpem> in which case, a Wolfson WM8731 CODEC should finish things off nicely. 2012-06-24T21:50:01 < Thorn> there's even a codec + headphone amp chip on the discovery board 2012-06-24T21:50:14 < philpem> problem is, the Discovery won't fit where I need it to go. 2012-06-24T21:50:33 < philpem> but would make a nice test platform assuming I write a BSP/HAL and code on top of that 2012-06-24T21:50:41 < zyp> that's the point of it 2012-06-24T21:52:52 < Thorn> reminds me of somebody who was going to sell vending machines with arduinos in them around here 2012-06-24T21:54:43 < drgreenthumb> venduino? :P 2012-06-24T21:54:58 < Thorn> no idea, I hope they failed 2012-06-24T21:55:16 < drgreenthumb> heh that's what I would have named it. first I've heard. 2012-06-24T21:55:40 < drgreenthumb> what a silly idea 2012-06-24T21:56:14 < zyp> how's that sillyer than selling them over a counter? 2012-06-24T21:56:16 < Thorn> ... and probably went to automate industrial processes with their sizable experience... 2012-06-24T21:56:37 < zyp> oh, wait 2012-06-24T21:56:47 < drgreenthumb> nobody buys an arduino over a counter :P 2012-06-24T21:56:50 < zyp> I'm thinkin vending machines to sell arduinos. 2012-06-24T21:56:59 < zyp> not vending machines based on arduinos. 2012-06-24T21:57:02 < BrainDamage> drgreenthumb: apparently radioshack sells them now 2012-06-24T21:57:10 < BrainDamage> so you can buy one over a counter 2012-06-24T21:57:23 < Thorn> no, they wanted to use arduinos to control vending machines 2012-06-24T21:57:23 < zyp> I should probably go to sleep, it's 4AM here in Japan now :p 2012-06-24T21:57:23 < drgreenthumb> BrainDamage, heh that's cool finally something cool (well sorta) at Rat Shack 2012-06-24T21:57:38 < BrainDamage> there's not even radioshack in my country 2012-06-24T21:57:39 < Laurenceb_> hehe a vending machine that sells arduinos 2012-06-24T21:57:42 < drgreenthumb> maybe the'll get Discovery boards next :P 2012-06-24T21:57:56 < Laurenceb_> you could put it next to the used underware machine in japan 2012-06-24T21:58:05 < zyp> I bought a L1 discovery board over a counter today 2012-06-24T21:58:31 < drgreenthumb> jeez where do you guys live? there's like zero electronics / hobby shops around here and it's freaking San Francisco bay :/ 2012-06-24T21:59:15 < Laurenceb_> http://www.disengagegray.com/2010/04/awesomeness-of-japanese-vending.html 2012-06-24T21:59:16 < zippe> drgreenthumb: the interwebs 2012-06-24T21:59:28 < Laurenceb_> drgreenthumb: UK 2012-06-24T21:59:29 < drgreenthumb> zippe, heh well the point was buying things over the counter 2012-06-24T21:59:31 < zyp> I'm in currently in Tokyo, pretty much everything is available somewhere here :p 2012-06-24T21:59:34 < Laurenceb_> we have maplins but it sucks 2012-06-24T21:59:49 < zippe> drgreenthumb: AeroMicro, Hobbytown in Concord are my two regulars 2012-06-24T21:59:53 < Laurenceb_> luckily i work next door to RS components 2012-06-24T21:59:57 < Laurenceb_> so im sorted 2012-06-24T22:00:05 < zippe> drgreenthumb: Everything else from DigiKey, etc. 2012-06-24T22:00:17 < drgreenthumb> concord eh? bleh :P 2012-06-24T22:00:29 < drgreenthumb> I'm in El Cerrito 2012-06-24T22:00:31 -!- dekar [~dekar@dslb-188-107-082-087.pools.arcor-ip.net] has joined ##stm32 2012-06-24T22:00:34 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-24T22:01:08 < drgreenthumb> zippe, there's also HobbyEngineering 2012-06-24T22:01:15 < drgreenthumb> I think he's in South SF now 2012-06-24T22:01:21 < drgreenthumb> used to be Milbrae 2012-06-24T22:01:52 < drgreenthumb> but heh these places are so few and far between. the interwebs normally wins. 2012-06-24T22:03:38 < philpem> Laurenceb, huh, so I'm not the only Brit here :) 2012-06-24T22:03:56 < Laurenceb_> where are you? 2012-06-24T22:03:58 < philpem> and yes, there's a reason Maplin have the somewhat disingenious nickname "crap-lin" 2012-06-24T22:04:03 < Laurenceb_> lol 2012-06-24T22:04:07 < philpem> West Yorkshire area. 2012-06-24T22:04:18 < Laurenceb_> Derby/Nottingham area here 2012-06-24T22:04:18 < philpem> there's one and only one thing they're cheaper than farnell for: F connectors :) 2012-06-24T22:04:25 < philpem> sorry, not F connectors. N connectors. 2012-06-24T22:04:44 < philpem> the big-bugger RF connectors my spectrum analyser uses XD 2012-06-24T22:04:46 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving] 2012-06-24T22:04:53 < Laurenceb_> ah 2012-06-24T22:06:08 < philpem> F-connectors are the cheap junky satellite TV connectors :) 2012-06-24T22:26:35 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-24T22:30:59 < BrainDamage> http://hackaday.com/2012/06/24/using-the-raspi-as-an-ethernet-shield/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+hackaday%2FLgoM+%28Hack+a+Day%29 looool, the "shield" has only 100x the mips of the arduino ... 2012-06-24T22:37:30 < Thorn> could an stm32f4 mix 50 audio samples in tral time? http://electronics.stackexchange.com/questions/34480/chip-board-to-drive-low-latency-audio-sample-playback-and-mixing 2012-06-24T22:45:26 < Tectu> Thorn, what do you need that for? 2012-06-24T22:45:41 < Thorn> not me 2012-06-24T22:46:05 < Tectu> what would be the use for it 2012-06-24T22:49:42 < Thorn> *real time 2012-06-24T22:49:51 < Thorn> x_x 2012-06-24T22:51:50 < BrainDamage> does the dsp get the full clock speed? 2012-06-24T22:51:58 < BrainDamage> if so then very likely 2012-06-24T22:52:08 < jpa-> Thorn: depends really more about if it can get the samples in fast enough 2012-06-24T22:52:10 < BrainDamage> since ixing is basically multiply and accumulate, the dsp would be ideal 2012-06-24T22:52:17 < BrainDamage> yeah, bus bandwith might be a problem 2012-06-24T22:52:39 < BrainDamage> you can even mix them in realtime 2012-06-24T22:53:07 < jpa-> 2 million integer multiply-accumulates per second if no problem for stm32f4 2012-06-24T22:54:22 < jpa-> in fact, the low latency from SD card is probably the trickiest part 2012-06-24T22:55:06 < BrainDamage> you could have multiple SD in parallel on diff spi busses 2012-06-24T22:55:12 < Thorn> yeah, that would depend on how randomly those samples are accessed and whether they can be preloaded 2012-06-24T22:55:15 < BrainDamage> and data being mirrored on each card 2012-06-24T22:55:15 < jpa-> though the first block of each sample should be available in about 100µs.. but if many samples start playing at the same time, the latency grows 2012-06-24T22:55:40 < BrainDamage> also, for 2 GB you could get away with a ram slot 2012-06-24T22:56:09 < jpa-> interfacing dram is not that fun 2012-06-24T22:58:30 < jpa-> 50 samples -> 5ms designed latency should be enough to load all samples in time to start playing them.. 2012-06-24T22:59:01 < jpa-> a raw memory (no filesystem, direct access to blocks) and custom scheduler to decide what blocks have the deadline first :) 2012-06-24T23:01:09 < szczys> here's a strange question for you: 2012-06-24T23:01:15 < Thorn> he'll need 25Mbytes of RAM for his 50 samples anyway 2012-06-24T23:01:40 < Thorn> 2Gb/4000 = 512 Kbytes per sample 2012-06-24T23:01:41 < szczys> I'm using OpenOCD to program my STM32F0-discovery board (it has the st-link version 2 programmer built in) 2012-06-24T23:01:56 < szczys> I have no problem flashing code to it, and can start running it by issuing the "reset" command 2012-06-24T23:02:15 < szczys> but if I the press the reset button the program halts and nothing will happen unless I power cycle 2012-06-24T23:02:24 < zippe> BrainDamage: The M4 doesn't have a "DSP" 2012-06-24T23:02:31 < szczys> once I have power cycled... I can press reset as much as I want and it performs just fine 2012-06-24T23:02:35 < szczys> any idea what's going on here? 2012-06-24T23:02:37 < jpa-> Thorn: they don't need to be fully in ram at once 2012-06-24T23:02:48 < zippe> BrainDamage: It just has a bunch of vector instructions based on VFPv4 2012-06-24T23:03:16 < BrainDamage> aww, I hoped for MAC unit 2012-06-24T23:03:19 < zippe> szczys: I've seen that occasionally; don't use 'reset', use 'run' 2012-06-24T23:04:16 < Thorn> jpa-: if you stream them ffrom flash you might introduce jitter, I think 2012-06-24T23:04:49 < zippe> BrainDamage: it has FMA, FMS 2012-06-24T23:05:28 < zippe> also regular MA, MS 2012-06-24T23:05:36 < szczys> zippe: now that I check, I"m actually using "reset run" 2012-06-24T23:06:04 < zippe> BrainDamage: it's just not a separate "DSP", rather it's just part of the regular ISA 2012-06-24T23:06:27 < zippe> In their bigger chips, ARM have separate pipeline resources for the VFP instructions 2012-06-24T23:06:35 < zippe> I suspect that in the M4 those are shared 2012-06-24T23:06:55 < Laurenceb_> yeah thats how i understand it 2012-06-24T23:08:44 < zippe> No detail in the TRM, of course 2012-06-24T23:15:53 < karlp> philpem: did you see this: https://github.com/karlp/kkstm32_base/tree/master/example/32l_mrf24j40 ? 2012-06-24T23:20:59 < Laurenceb_> anyone here familiar with openoffice? 2012-06-24T23:23:42 < Thorn> I calculate my electronics expenses in oo calc 2012-06-24T23:24:10 < philpem> karlp, that looks useful. thanks. 2012-06-24T23:26:01 < karlp> it needs more love, 2012-06-24T23:26:13 < karlp> but haven't had a lot of free nights for that recently. 2012-06-24T23:26:38 < Laurenceb_> any idea how to force a single cell in a table to spread over all columns 2012-06-24T23:26:54 < Laurenceb_> i want to use it as a title for the table rows that are below it 2012-06-24T23:28:09 < karlp> I want to finish tidying it up to be avr and stm compatible, 2012-06-24T23:29:53 < Laurenceb_> wut 2012-06-24T23:30:00 < Laurenceb_> avr and stm compatible?! 2012-06-24T23:30:30 < karlp> so you just provide a method to do the spi transfer, 2012-06-24T23:30:47 < karlp> instead of building st specific, or avr specific spi code into the RF code itself 2012-06-24T23:31:40 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-24T23:32:08 < Thorn> Laurenceb_: click on the row number, format -> merge cells 2012-06-24T23:32:18 < Laurenceb_> ah yeah 2012-06-24T23:32:22 < Laurenceb_> i just found that 2012-06-24T23:32:25 < Laurenceb_> works --- Day changed Mon Jun 25 2012 2012-06-25T00:18:52 < Tectu> flyback, wtf? you need a single computer just for serial debugger? 2012-06-25T00:19:50 < Tectu> k 2012-06-25T00:21:23 < Tectu> no problem, sir :) 2012-06-25T00:21:28 < Tectu> always happy to help :D 2012-06-25T00:24:21 < Tectu> changing position of 'i' and 's' like a boss 2012-06-25T00:24:47 < Tectu> going to sleep mow 2012-06-25T00:24:48 < Tectu> now 2012-06-25T00:24:50 < Tectu> cee you 2012-06-25T00:26:25 < Thorn> England fails 2012-06-25T00:29:27 < Laurenceb_> i knew that already 2012-06-25T00:29:37 < Laurenceb_> i have the misfortune to live there 2012-06-25T00:31:22 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-06-25T00:32:26 < Laurenceb_> lol why are the england fans all Norwegian 2012-06-25T00:42:46 < BrainDamage> at least you didn't have retarded neighbours that every near missed goal made a huge deal out of it 2012-06-25T00:44:57 < Laurenceb_> hehe 2012-06-25T01:09:33 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-25T01:25:47 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 265 seconds] 2012-06-25T01:46:02 < upgrdman> with the stm32f4, basic timers, the reference manual states the clock source is the "internal clock CK_INT" but i see no reference to what that is. is that the main clock (168MHz if running at max speed) ? 2012-06-25T01:47:08 < dongs> i'd imagine timer clock is ahb/apb clock whatever bus they're on 2012-06-25T01:47:19 < upgrdman> hum 2012-06-25T01:47:21 < upgrdman> ok 2012-06-25T01:50:45 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has quit [Ping timeout: 260 seconds] 2012-06-25T02:35:05 < dongs> oh loop a pic for Laurenceb http://static.rcgroups.net/forums/attachments/3/9/3/1/4/4/a4962015-167-IMAG0363%20%28Medium%29.jpg 2012-06-25T02:35:45 < dongs> er loop=look 2012-06-25T03:27:07 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 245 seconds] 2012-06-25T04:08:09 < upgrdman> anyone know where there is no TIM6_IRQHandler in startup_stm32f4xx.s? the reference manual seems to imply that TIM6 can trigger an interrupt. 2012-06-25T04:11:22 < zippe> upgrdman: Look at the clock tree in the RCC chapter 2012-06-25T04:12:30 < zippe> upgrdman: in particular, if the APB prescaler for the APB bus the timer is on is 1, the clock is the same as the APB clock 2012-06-25T04:12:36 < zippe> upgrdman: otherwise, it is 2x the APB clock 2012-06-25T04:13:01 < upgrdman> what does that have to do with ISRs? 2012-06-25T04:13:19 < zippe> your earlier question about clock sources for the basic timers 2012-06-25T04:13:49 < zippe> re: the interrupt for timer 6, it's shared with the DMA1/2 overrun interrupts; interrupt 54 2012-06-25T04:14:25 < zippe> gah, sorry, DAC1/2 underrun 2012-06-25T04:14:30 < zippe> I have DMA on the brain today 2012-06-25T04:14:54 < upgrdman> ya i figured out the clocks, thanks 2012-06-25T04:15:12 < upgrdman> i tried TIM6_DAC_IRQHandler() but it does not seem to work 2012-06-25T04:15:23 < dongs> ? did you enable it 2012-06-25T04:16:15 < upgrdman> TIM6->DIER |= TIM_DIER_UIE; 2012-06-25T04:16:25 < dongs> ... 2012-06-25T04:16:26 < dongs> in nvic 2012-06-25T04:16:28 < Thorn> wtf. the cortex-m nvic supports up to 240 interrupts. why do they have to share them 2012-06-25T04:16:40 < dongs> Thorn: who the fuck uses DACs anyway 2012-06-25T04:16:44 < upgrdman> hum 2012-06-25T04:16:45 < upgrdman> no 2012-06-25T04:17:02 < upgrdman> wheres the NVIC #defines? they're not in stm32f4xx.h 2012-06-25T04:17:15 < dongs> core_cm3 i believe, or misc.h or so 2012-06-25T04:17:32 < zippe> upgrdman: What are the UDIS and URS bits in CR1? 2012-06-25T04:17:44 < dongs> NVIC_InitTypeDef + NVIC_Init etc. 2012-06-25T04:17:47 < zippe> upgrdman: They should be in CMSIS 2012-06-25T04:17:58 < zippe> upgrdman: but between ST and ARM they missed a bunch 2012-06-25T04:18:09 < zippe> (might be fixed these days) 2012-06-25T04:19:30 < upgrdman> zippe, lets those at reset values 2012-06-25T04:19:32 < upgrdman> left* 2012-06-25T04:22:20 < zippe> So you're expecting an update event on counter rollover? 2012-06-25T04:22:34 < dongs> he didnt enable it in nvic 2012-06-25T04:22:36 < dongs> so of course he'll never get it 2012-06-25T04:24:14 < upgrdman> NVIC->ISER[0] |= 1 << (TIM6_DAC_IRQn); gives a compiler warning 2012-06-25T04:24:34 < zippe> That warning being? 2012-06-25T04:24:36 < upgrdman> main.c:9:2: warning: left shift count >= width of type [enabled by default] 2012-06-25T04:24:54 < zippe> upgrdman: Ok, so that's fairly obvious 2012-06-25T04:25:04 < zippe> 1 is an int, which has 32 bits 2012-06-25T04:25:10 < zippe> You are trying to left-shift it by 54 bits 2012-06-25T04:25:24 < zippe> what did you expect to happen? 2012-06-25T04:25:45 < upgrdman> 1 << 5 sets bit 5... sound like 1 << foo should work 2012-06-25T04:26:16 < szczys> I'm having float problems!: float m = (y2-y1)/(x2-x1); 2012-06-25T04:26:20 < szczys> I put in valid integers 2012-06-25T04:26:22 < Thorn> 1<<5 sets bit 5, 1<<54 sets bit ...? 2012-06-25T04:26:28 < szczys> but I always get m=0 2012-06-25T04:26:40 < zippe> upgrdman: so if there are 32 bits in the word and you want to set bit 54 … what do you expect? 2012-06-25T04:27:06 < zippe> szczys: Are you for real? 2012-06-25T04:27:15 < szczys> I am for real! 2012-06-25T04:27:18 < szczys> what am I missing? 2012-06-25T04:27:19 < upgrdman> well then what do i use? 2012-06-25T04:27:27 < zippe> upgrdman: the documentation 2012-06-25T04:27:45 < upgrdman> im trying 2012-06-25T04:27:46 < zippe> szczys: have you read the C book yet? 2012-06-25T04:27:54 < upgrdman> i have rm0090 open 2012-06-25T04:27:56 < szczys> which C book? 2012-06-25T04:27:57 < upgrdman> but im confused 2012-06-25T04:28:02 < upgrdman> why the fuck do you think im asking for help 2012-06-25T04:28:07 < zippe> upgrdman: DDI0403C 2012-06-25T04:28:19 < zippe> Get it from ARM. Read the section on the NVIC. 2012-06-25T04:28:29 < dongs> what do you expect a 54bit shift to do on a 32bit register? 2012-06-25T04:28:30 < zippe> The ST manual is not helpful here. 2012-06-25T04:28:51 < zippe> szczys: http://publications.gbdirect.co.uk/c_book/ 2012-06-25T04:29:24 < zippe> szczys: But start here; assuming that x1, x2, y1 and y2 are all integers. What do you expect the type of (y2-y1) would be? 2012-06-25T04:29:25 < Thorn> szczys: float m = (6-4)/(7-2); // m is ? 2012-06-25T04:29:47 < dongs> 0 2012-06-25T04:30:27 < szczys> oh... so I need to typecast the assignment? 2012-06-25T04:30:39 < Thorn> ...... 2012-06-25T04:30:39 < zippe> szczys: No, you need to learn how C evaluates expressions. 2012-06-25T04:31:32 < zippe> szczys: You might try section 2.8 in the book I just linked above. 2012-06-25T04:31:46 < szczys> thanks, already there 2012-06-25T04:34:01 < szczys> so I do need to typecase to a float 2012-06-25T04:34:06 < szczys> just one of the operands 2012-06-25T04:34:11 < szczys> so that both are considered floats 2012-06-25T04:34:21 < zippe> Well, it depends on what you're trying to do 2012-06-25T04:34:24 < szczys> otherwise it's just doing integer math right now... got that right? 2012-06-25T04:34:28 < zippe> That's correct 2012-06-25T04:34:53 < zippe> Your're probably suffering due to a loss of precision in the division. But, you should be careful. 2012-06-25T04:35:13 < szczys> yes... the result should be 0.666666666666666666666666666 but I was getting just 0 2012-06-25T04:35:21 < szczys> now it's working, thanks! 2012-06-25T04:35:26 < zippe> ((float)y2 - (float)y1)/((float)x2 - (float)x1) is very different from (float)(y2 - y1)/(x2-x1) 2012-06-25T04:35:29 < Thorn> >0.666666666666666666666666666 2012-06-25T04:35:31 < Thorn> >float 2012-06-25T04:35:41 < Thorn> >single precision float 2012-06-25T04:36:16 < szczys> zippe: I don't see why it would be different. from what you just gave me to read one (float) typecast should 'infect' the others 2012-06-25T04:36:27 < zippe> Heh. 2012-06-25T04:36:43 < zippe> The first example requires two float subtractions, followed by a division 2012-06-25T04:36:49 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has quit [Ping timeout: 245 seconds] 2012-06-25T04:36:49 < szczys> "if either operand is a float, then the other one is converted to float, and that is the type of the result." 2012-06-25T04:36:55 < zippe> The second is two integer subtractions followed by a float division. 2012-06-25T04:37:31 < szczys> but I'm starting with all integers, I just need to end up with a float after the division 2012-06-25T04:37:35 < zippe> No 2012-06-25T04:37:46 < zippe> You need floats *before* the division 2012-06-25T04:38:31 < zippe> Cast operators are unary operators like + and - 2012-06-25T04:38:58 < zippe> (float)(x - y) and ((float)x - (float)y) are different things. 2012-06-25T04:39:28 < szczys> If 'x' and 'y' are both integers to start... why won't the outcome of that be exactly the same number 2012-06-25T04:39:30 < zippe> The first one is "subtract y from x and then cast the result to float". The second is "cast y to float, cast x to float, subtract" 2012-06-25T04:39:44 < szczys> are you say the machine time is different, or the value of the result is different? 2012-06-25T04:39:44 < zippe> You may lose precision if they are large integers 2012-06-25T04:39:58 < zippe> You may waste CPU time if your floating point operations are slow 2012-06-25T04:40:37 < zippe> A 32-bit ieee float only has a 24-bit mantissa 2012-06-25T04:41:18 < zippe> (including the sign bit) 2012-06-25T04:42:44 < szczys> ah-ha! You're talking about what the type 'float' can actually hold 2012-06-25T04:42:45 -!- Oldboy [myircshell@grid.sh3lls.net] has joined ##stm32 2012-06-25T04:42:56 < szczys> but I know I'm working with integers which will all be less that 100 2012-06-25T04:43:09 < zippe> Ok. I did not. 8) 2012-06-25T04:43:18 < szczys> so for my current purposes there's no difference in how I cast the floats, as long as I cast at least 1 2012-06-25T04:43:38 < szczys> but thank you for pointing out the diffence... with my frame of reference I never even had the notion to consider that caveat 2012-06-25T04:45:57 < zippe> NP 2012-06-25T04:46:14 < zippe> You really should read the book 8) 2012-06-25T04:46:34 < zippe> flyback: http://en.wikipedia.org/wiki/Pie_floater 2012-06-25T04:46:38 < zippe> flyback: disagree 2012-06-25T04:48:53 < zippe> Ah bollocks. I didn't realise they had to close the Balfours cart. That sucks. 2012-06-25T04:51:33 < upgrdman> stuff like TIM6->REGISTER uses preprocess directives, so there no way to evaluate those with gdb right? must look up memory address by hand? 2012-06-25T04:51:41 < upgrdman> preprocessor 2012-06-25T04:51:44 < zippe> Correct. 2012-06-25T04:51:47 < upgrdman> ok 2012-06-25T04:51:49 < zippe> Architecture fail 2012-06-25T04:51:58 < dongs> .. more like gdb fail. 2012-06-25T04:52:05 < dongs> i ahve no problem evaluating those in my "GUI" 2012-06-25T04:52:13 < upgrdman> what gui 2012-06-25T04:52:24 < dongs> keil uVision 2012-06-25T04:52:27 < zippe> dongs: … as long as they're only defined once. 2012-06-25T04:52:28 < upgrdman> o 2012-06-25T04:52:43 < dongs> crossworks does it too. 2012-06-25T04:52:49 < dongs> and they use gcc. 2012-06-25T04:52:54 < dongs> they even have nice peripheral view windows 2012-06-25T04:52:56 < upgrdman> im poor and use linux ;) 2012-06-25T04:52:58 < dongs> that shows registers and individual bits. 2012-06-25T04:53:03 < dongs> realtime. 2012-06-25T04:53:05 < dongs> and/or updated. 2012-06-25T04:53:21 < zippe> dongs: not based on parsing the preprocessor defines though 2012-06-25T04:53:29 < dongs> (and caused me some grief while debugigng i2c, because fucking thing kept reading I2C->SR1 and resetting shit. 2012-06-25T04:53:43 < zippe> *snrk* 2012-06-25T04:53:48 < dongs> ^_^ 2012-06-25T04:53:54 < dongs> i was like WAI THIS SHIT NOT WORK>???? 2012-06-25T04:53:59 < dongs> closed i2c viewer window, no problem. 2012-06-25T04:56:42 < dongs> and #1 user of panty vending machines 2012-06-25T04:56:48 < dongs> (which use MCUs too) 2012-06-25T04:58:05 < zippe> First time in .jp I bought a coworker of mine a bunch of stuff from machines like that 2012-06-25T04:58:20 < zippe> This was the guy that would spam the office with random nude pictures all day 2012-06-25T04:58:55 < zippe> He refused it all because his wife might find out … so I had to find a home for vacuum-packed used underwear and bondage nurse pr0n 2012-06-25T04:59:05 -!- GargantuaSauce [~sauce@blk-252-42-151.eastlink.ca] has quit [Quit: Leaving.] 2012-06-25T04:59:39 < zippe> Ok. Time for more arrows to the knee. 2012-06-25T04:59:45 -!- zippe [~Adium@173.11.99.161] has quit [Quit: Leaving.] 2012-06-25T05:01:36 -!- Huitaryan [~Huitaryan@blk-252-42-151.eastlink.ca] has joined ##stm32 2012-06-25T05:16:57 < upgrdman> trying to get an LED on pin D15 to toggle once per second, but the LED never comes on. http://pastebin.com/3mMv7hXn any ideas? 2012-06-25T05:19:13 < dongs> man you really like to make the shit superfuckingcomplicated do you. 2012-06-25T05:20:53 < zyp> GPIO_MODER_MODER15_0 sounds like input mode 2012-06-25T05:21:04 < zyp> try GPIO_MODER_MODER15_1 2012-06-25T05:21:42 < upgrdman> dongs, how could it be any simpler? or was that a joke 2012-06-25T05:22:04 < dongs> upgrdman: its much simpler with stdperiphlib and you dont have to memorize retarded registers/definitions 2012-06-25T05:22:53 < upgrdman> zyp, _0 is correct, but i tried _1 and that did not fix anything 2012-06-25T05:24:22 < zyp> correct how? 2012-06-25T05:25:15 < zyp> if _0 is correct, the name doesn't make sense 2012-06-25T05:26:04 < upgrdman> as in without the timer, i can light up the LED just fine 2012-06-25T05:26:15 < upgrdman> and in other projects the GPIO stuff worked perfect 2012-06-25T05:27:32 < dongs> upgrdman: do you need ot od anything dumb with timer registers to make it autoreload 2012-06-25T05:28:11 < upgrdman> don't think so 2012-06-25T05:28:17 < upgrdman> and i know the ISR is being called 2012-06-25T05:28:42 < upgrdman> if i remove the TIM6->SR = 0; the LED is at half brightness... like 50% duty PWM 2012-06-25T05:31:33 < dongs> are you another one of those dudes that works without a scope or logic analyzer? 2012-06-25T05:32:25 < upgrdman> i have a scope 2012-06-25T05:32:49 < upgrdman> but see no need... its obvious 50%... and it makes sense if the IRQ isn't cleared 2012-06-25T05:33:07 < dongs> why would it make sense if irq isnt cleared 2012-06-25T05:33:17 < upgrdman> it just toggled super fast because the ISR keeps getting called 2012-06-25T05:33:36 < zyp> yes, that makes sense 2012-06-25T05:35:37 < dongs> why do you set SR to zero, isntead of specifically clearing TIM_IT bit? 2012-06-25T05:35:42 < dongs> not that it matters I guess... 2012-06-25T05:36:11 < dongs> see this is why i use stdperiphlib cuz i dont have to guess what the ufck its going to do when i say TIM_ClearITPendingBit 2012-06-25T05:36:34 < upgrdman> i see no TIM_IT in the register map 2012-06-25T05:37:08 < dongs> sorry. TIM_IT_Update or whatever 2012-06-25T05:37:12 < upgrdman> and im not using the STM std periph lib because im using linux, without an ide, and the examples STM provides are often more annoying than just reading rm0090 2012-06-25T05:37:13 < dongs> or i guess that's just be the 1st bit 2012-06-25T05:37:31 < upgrdman> yes, p.466 of rm0090 2012-06-25T05:38:01 < zyp> the only bit, since it's TIM6 2012-06-25T05:38:08 < upgrdman> yes 2012-06-25T05:38:09 < dongs> allrighty then. 2012-06-25T05:38:11 < dongs> shruggin. 2012-06-25T05:38:40 < upgrdman> i just don't know why i would get 50% pwm, but then nothing when i clear the irq 2012-06-25T05:39:25 < zyp> can you check the contents of CR1 for me? 2012-06-25T05:39:33 < upgrdman> sure, one min 2012-06-25T05:39:35 < zyp> is CEN really the only bit set? 2012-06-25T05:40:30 < zyp> because OPM would explain what's happening 2012-06-25T05:42:01 < upgrdman> (gdb) print /t *(unsigned long*) 0x40001000 2012-06-25T05:42:01 < upgrdman> $1 = 1 2012-06-25T05:42:03 < upgrdman> yes 2012-06-25T05:43:31 < zyp> set a breakpoint on the ISR and restart the application 2012-06-25T05:43:57 < upgrdman> do you know how to trigger a restart from within gdb? 2012-06-25T05:44:02 < zyp> run 2012-06-25T05:44:04 < upgrdman> k 2012-06-25T05:44:31 < upgrdman> The "remote" target does not support "run". 2012-06-25T05:44:34 < upgrdman> :) 2012-06-25T05:44:51 < zyp> what kind of debugger hardware do you use? 2012-06-25T05:44:55 -!- [7] [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-25T05:45:00 < upgrdman> continue works, and breaks on the ISR 2012-06-25T05:45:01 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-25T05:46:02 < zyp> if you continue several times, does it keep hitting the ISR? 2012-06-25T05:46:12 < zyp> if it does, does it toggle the LED each time? 2012-06-25T05:47:58 < upgrdman> yes, no, but wtf... hold on while i pastebin 2012-06-25T05:48:54 < upgrdman> http://pastebin.com/YDMBADLn how did it break out of a fucking while(1)!!!?!?!? 2012-06-25T05:49:45 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-25T05:50:09 < zyp> is this compiled with or without optimizations? 2012-06-25T05:51:25 < dongs> > gdb 2012-06-25T05:51:27 < dongs> foudn your problem 2012-06-25T05:51:51 < upgrdman> yes but whats the problem... how is that even possible 2012-06-25T05:52:09 < upgrdman> zyp, o2 iirc... hold on 2012-06-25T05:52:58 < zyp> then you can't trust the line numbers, generated assembly code doesn't necessarily correspond directly to the source 2012-06-25T05:53:30 < upgrdman> yes o2. arm-none-eabi-gcc -g -O2 -mlittle-endian -mthumb -mcpu=cortex-m4 -ffreestanding -nostdlib -Wl,-T,stm32_flash.ld ... 2012-06-25T05:53:56 < zyp> also, did you actually restart after the last flashing? 2012-06-25T05:54:04 < zyp> what kind of debugger hardware do you use? 2012-06-25T05:56:45 < upgrdman> http://pastebin.com/J5Jxz1yF 2012-06-25T05:57:01 < upgrdman> yes. st-link v2 built into the f4disco boards 2012-06-25T05:58:37 < zyp> then use target extended-remote 2012-06-25T05:58:42 < zyp> that will allow you to use run 2012-06-25T05:58:56 -!- sifi [~silas@osuosc/sifi] has joined ##stm32 2012-06-25T06:00:51 < zyp> anyway, it's normal and expected behavior that gdb becomes unresponsive while the target is running 2012-06-25T06:01:15 < zyp> hitting ctrl-c interrupts the target and returns control to gdb 2012-06-25T06:01:46 < upgrdman> unresponsive to a next command? 2012-06-25T06:02:02 < upgrdman> extende-remote let me use run, but the exame same problem happens 2012-06-25T06:02:11 < upgrdman> how is the code breaking out of a while(1) ?? 2012-06-25T06:02:15 < zyp> try using si instead of n 2012-06-25T06:03:52 < upgrdman> ok 2012-06-25T06:03:57 < upgrdman> did the exact same thing 2012-06-25T06:05:38 < upgrdman> http://pastebin.com/297aWxsi 2012-06-25T06:06:43 < zyp> ah, right 2012-06-25T06:07:02 < zyp> so the interrupt is actually getting triggered in the moment you enable it 2012-06-25T06:08:09 < zyp> sounds weird though 2012-06-25T06:10:55 < upgrdman> :( any idea how it would break out of the while loop and get back to line 10 (before the while loop) ? 2012-06-25T06:52:25 < Oldboy> 20 GOTO 10 2012-06-25T07:19:38 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Ping timeout: 240 seconds] 2012-06-25T07:47:52 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has quit [Quit: This computer has gone to sleep] 2012-06-25T07:49:44 -!- lawrenceseattle [~anonymous@c-71-227-186-232.hsd1.wa.comcast.net] has joined ##stm32 2012-06-25T07:55:55 -!- drgreenthumb [~fletch@drupal.org/user/72475/view] has quit [Read error: Connection reset by peer] 2012-06-25T07:58:50 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has joined ##stm32 2012-06-25T08:12:01 -!- Huitaryan [~Huitaryan@blk-252-42-151.eastlink.ca] has quit [Read error: Connection reset by peer] 2012-06-25T08:18:35 -!- GargantuaSauce [~sauce@blk-252-42-151.eastlink.ca] has joined ##stm32 2012-06-25T08:24:09 -!- lawrenceseattle [~anonymous@c-71-227-186-232.hsd1.wa.comcast.net] has quit [Quit: lawrenceseattle] 2012-06-25T08:39:01 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-25T08:41:26 < cjbaird> I've ordered from E14, let me into the elite F0Disco club plz. 2012-06-25T08:41:47 < zyp> :p 2012-06-25T08:42:28 < zyp> I'm hoping the store I bought the L1discovery from yesterday will stock the F0 one before I'm leaving japan 2012-06-25T08:58:17 < cjbaird> I also ordered that AVR32 board with 8MB ram on it. It'll hopefully make for a kickass 16/32bit cpu simulation setup. 2012-06-25T08:59:28 < dongs> shoulda got pic32 instead. 2012-06-25T08:59:31 < dongs> for even more useless. 2012-06-25T09:00:58 < cjbaird> Hello doggy! 2012-06-25T09:02:29 < cjbaird> What I'm really waiting on for is a Lanuchpad-style eval board of the 20-bit MSP430 chips.. 2012-06-25T09:02:52 < pelrun> avr32 bleh 2012-06-25T09:03:11 < cjbaird> (which isn't from Olimex) 2012-06-25T09:03:14 < pelrun> worked with that on a project last year 2012-06-25T09:03:32 < pelrun> vendor libraries are even worse than ST's 2012-06-25T09:03:56 < dongs> BUT you have ATMEL FRAMEWORK 2012-06-25T09:03:58 < pelrun> "oh, you want to use this code with a board that isn't one of our eval boards? fuck off" 2012-06-25T09:04:00 < dongs> and ATMEL STUDIO 6.0 2012-06-25T09:04:31 < pelrun> the whole POINT of an eval board is to help you get to a custom design 2012-06-25T09:04:36 < pelrun> not lock you into it 2012-06-25T09:04:53 < pelrun> big pile of stinky dog poo 2012-06-25T09:05:28 < pelrun> and atmel studio? don't make me laugh 2012-06-25T09:05:40 < dongs> what 2012-06-25T09:06:21 < pelrun> anyway, it's the framework I was complaining about 2012-06-25T09:06:42 < dongs> waht pissed me off is studio6 seems to have all the proper arm c ompilers and debugging setup 2012-06-25T09:06:47 < dongs> but you cant use it with anytthing except avrtrash 2012-06-25T09:06:56 < dongs> thats a big disappointment since vstudio shell is awesome. 2012-06-25T09:07:07 < dongs> evne fucking AVR-ICE shit is just rebranded jlink 2012-06-25T09:07:15 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-06-25T09:07:17 < dongs> and it kept detecting my jlink as avr-ice just wouldnt work with it :p 2012-06-25T09:08:32 < pelrun> heh 2012-06-25T09:09:04 < pelrun> I think atmel's entire business plan is to make money off selling eval boards 2012-06-25T09:09:08 < pelrun> not the actual chips 2012-06-25T09:09:45 < pelrun> at least, that is what the framework project manager seems to have thought 2012-06-25T09:10:33 < pelrun> although I must admit when I finally beat it into submission it did work fairly well 2012-06-25T09:17:53 < Tectu> morning 2012-06-25T09:18:02 < Tectu> dongs, you use atmel stuff? 2012-06-25T09:18:15 < Tectu> the last avr studio i used was the 4.18 2012-06-25T09:18:20 < Tectu> is the new 6 good? 2012-06-25T09:29:34 < dongs> hi 2012-06-25T09:29:42 < dongs> 6 uses visual studio 2010 shell 2012-06-25T09:29:48 < dongs> 4.x was t heir own retarded IDE 2012-06-25T09:29:57 < dongs> I wish more companies would realize that writing iDE from scratch is fucking retarded 2012-06-25T09:30:01 < dongs> and either use vs shell or eclipse 2012-06-25T09:52:50 < blkcat> what 2012-06-25T09:53:31 < Tectu> i am never sure if i shall take char *str; or unsigner char *str; for passing strings to a function 2012-06-25T09:53:43 < Tectu> in general, i don't know if i am supposted to use char or unsigner char for storing C-Strings 2012-06-25T09:53:53 < Tectu> on AVR, i used to use unsigner char* 2012-06-25T09:59:16 < dongs> designer char. 2012-06-25T09:59:20 < dongs> by vogue 2012-06-25T10:01:17 < Tectu> what do you mean, dongs 2012-06-25T10:05:11 < dongs> < Tectu> on AVR, i used to use unsigner char* 2012-06-25T10:05:38 < dongs> it all depends what strings youre passing. 2012-06-25T10:05:46 < dongs> i.e. ascii shit with 7bits, then char works. 2012-06-25T10:06:03 < Tectu> what does not work? 2012-06-25T10:06:17 < pelrun> Tectu, use the c99 types 2012-06-25T10:06:24 < dongs> well, if you have some shit with high bit set it might be lame. 2012-06-25T10:06:27 < pelrun> but plain "char" for strings 2012-06-25T10:06:29 < dongs> yeahm juyst use uint8_t 2012-06-25T10:06:43 < pelrun> dongs: only for non-string 8-bit data 2012-06-25T10:06:52 < Tectu> uint_t types are c99? o0 2012-06-25T10:06:58 < Tectu> i remember using them in c89 all the time 2012-06-25T10:07:08 < pelrun> you end up having to recast for all the damn string functions otherwise 2012-06-25T10:07:20 < pelrun> if "char" is only for text, you don't care if it's native signed or not 2012-06-25T10:07:38 < pelrun> Tectu, they're only typedefs, after all. Just got ratified in c99. 2012-06-25T10:08:36 < Tectu> pelrun, i never saw something interesting in using c99, beside having to declare it everytime 2012-06-25T10:08:52 < Tectu> and things like for(int i = 0....) well... 2012-06-25T10:08:55 < Tectu> don't need it 2012-06-25T10:09:02 < pelrun> you shouldn't have to worry about whether uint16_t is an 'int' or 'short' or whatever on your particular platform, because it's in the compiler instead of a platform-specific header include 2012-06-25T10:09:18 < dongs> right 2012-06-25T10:09:22 < Tectu> right 2012-06-25T10:09:31 < Tectu> so use uint8_t instead of char? o0 2012-06-25T10:09:35 < Tectu> for strings 2012-06-25T10:09:42 < pelrun> no, I said just "char" for strings 2012-06-25T10:09:48 < Tectu> ah 2012-06-25T10:09:51 < Tectu> good 2012-06-25T10:09:53 < Tectu> thanks 2012-06-25T10:10:10 < pelrun> beyond that it's probably good to get out of the habit of mixing and matching the new and old types 2012-06-25T10:10:32 < pelrun> being explicit everywhere doesn't hurt 2012-06-25T10:11:22 < pelrun> especially if you're the poor bastard being asked to port code to a new platform :) 2012-06-25T10:13:53 < Tectu> did someone ever used palWriteGroup() macro from ChibiOS? 2012-06-25T10:14:23 < pelrun> not yet (i'll probably hit chibios fairly soon, now that I'm sticking with stm32) 2012-06-25T10:14:31 < pelrun> hope I don't go splat 2012-06-25T10:17:35 < Tectu> i am working on an offical LCD/Touchpad/GUI library for chibios 2012-06-25T10:17:46 < Tectu> http://chibios.org/dokuwiki/doku.php?id=chibios:community:introduction 2012-06-25T10:17:48 < pelrun> coooool 2012-06-25T10:17:55 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has quit [Read error: Connection reset by peer] 2012-06-25T10:18:16 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has joined ##stm32 2012-06-25T10:19:55 < Tectu> pelrun, feel free to join the project 2012-06-25T10:20:04 < Tectu> pelrun, someone is right know implementing a console 2012-06-25T10:20:11 < Tectu> so you have a terminal on your LCD 2012-06-25T10:20:17 < Tectu> like over USART 2012-06-25T10:25:30 < blkcat> uhhh 2012-06-25T10:27:51 < dongs> http://www.rcgroups.com/forums/showpost.php?p=21988829 2012-06-25T10:32:48 < pelrun> Tectu, heh, wish I had the time 2012-06-25T10:33:27 < pelrun> I tend to use a laptop or my phone over bluetooth for a serial console :) 2012-06-25T10:33:51 < Tectu> pelrun, sounds awesome, is there some real project behind it? 2012-06-25T10:34:04 < pelrun> I'm just talking about in general 2012-06-25T10:34:49 < pelrun> I went a couple of years without an actual ftdi cable, just a serial-bt thingy I got cheap from sparkfun 2012-06-25T10:35:01 < pelrun> not nearly as cheap as they go for from china these days 2012-06-25T10:35:17 < Tectu> pelrun, link? 2012-06-25T10:35:46 < pelrun> http://www.dealextreme.com/p/wireless-bluetooth-rs232-ttl-transceiver-module-80711?item=2 2012-06-25T10:35:55 < pelrun> $6.60 w/ free shipping 2012-06-25T10:36:22 < pelrun> there's another one somewhere on dx that has a 5v converter on a carrier board, but who cares on stm32? :) 2012-06-25T10:36:54 < pelrun> apparently the firmware is rather rudimentary(i.e. shit) on the cheap ones, some guy figured out how to reflash them 2012-06-25T10:37:06 < pelrun> http://byron76.blogspot.com.au/ 2012-06-25T10:37:32 < pelrun> or you could just go to sparkfun and get one of their more expensive dongles that come with reasonable firmware off the bat 2012-06-25T10:40:11 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-06-25T10:41:06 < dongs> wtf 2012-06-25T10:41:11 < dongs> parallel port programmer? 2012-06-25T10:41:14 < dongs> in 2012? 2012-06-25T10:41:21 < dongs> where teh fuck did he find shit wiht parallel port on it 2012-06-25T10:41:26 < dongs> let alone usable from any modern os 2012-06-25T10:51:45 < pelrun> some people use what they know 2012-06-25T10:51:51 < pelrun> even if what they know is crap 2012-06-25T10:52:15 < pelrun> I certainly wouldn't recommend his method 2012-06-25T10:57:25 < dongs> then you'd hve to find an actual device that still uses a floppyt 2012-06-25T10:59:31 < cjbaird> I've got an Amiga500 that's a doorstop because getting working reliable floppies for it is a PITA (..and I don't want to fuck around with diskettes, especially the proprietary format the Ami uses) 2012-06-25T11:11:16 -!- drgreenthumb [~fletch@drupal.org/user/72475/view] has joined ##stm32 2012-06-25T11:16:18 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has joined ##stm32 2012-06-25T11:19:45 -!- dekar [~dekar@dslb-188-107-082-087.pools.arcor-ip.net] has quit [Quit: Leaving] 2012-06-25T12:04:03 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has quit [Quit: This computer has gone to sleep] 2012-06-25T12:05:26 < cjbaird> Someone I know has written a Thumb2-assembler 6502 simulator for the F4Disco: https://github.com/BigEd/a6502 .. It's about 2-3 times faster than my C-only version (cmp. 18MHz sim vs. ~7MHz) 2012-06-25T12:10:48 < Laurenceb_> nice 2012-06-25T12:10:56 < Laurenceb_> can you run a terminal on it? 2012-06-25T12:11:33 < cjbaird> USB CDCACM interface 2012-06-25T12:12:06 < cjbaird> Not a terribly great use of it, I think it busy-waits. 2012-06-25T12:12:51 < Laurenceb_> im currently using the chibios CDC code 2012-06-25T12:13:16 < Laurenceb_> bbl 2012-06-25T12:17:50 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has quit [Ping timeout: 260 seconds] 2012-06-25T12:25:58 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-25T12:34:20 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has joined ##stm32 2012-06-25T12:35:55 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-25T12:38:56 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-06-25T12:48:21 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-25T12:48:47 < dongs> http://a8.sphotos.ak.fbcdn.net/hphotos-ak-ash4/s480x480/482403_10151722754655931_57440670_n.jpg laurenceb worked on this camera 2012-06-25T12:55:44 < cjbaird> The one with the two girls on the bed was better. 2012-06-25T13:02:25 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has joined ##stm32 2012-06-25T14:06:41 < cjbaird> My RaspberryPi is doing unf-unf-unf things to the F4.. 2012-06-25T14:07:30 < karlp> unf? 2012-06-25T14:07:41 < Laurenceb> raping it 2012-06-25T14:17:56 < cjbaird> Bizarrely, st-link is a -lot- faster from the RPi than it was from the Lemote. The F4 must like it getting it from the RPi. :P 2012-06-25T14:18:26 < cjbaird> Transfer rate: 35 KB/sec, 4792 bytes/write ... was a 1/10th of that before 2012-06-25T14:18:31 < dongs> > lemote 2012-06-25T14:18:32 < dongs> lulz. 2012-06-25T14:18:43 < zyp> cjbaird, are you testing with the same image? 2012-06-25T14:18:53 < cjbaird> This is my stm6502 project 2012-06-25T14:18:56 < zyp> oh, and same texane version? 2012-06-25T14:19:03 < dongs> when i was at the retarded office last monday they had stlink 2012-06-25T14:19:08 < dongs> and it was terrible on windows 2012-06-25T14:19:41 < Oldboy> I would like to stab the team that's developing stlink on windows 2012-06-25T14:20:15 < cjbaird> Probably not the same taxane version, as I got it into the RPi via git. .. Hmm, he did add a F2/F4 flashloader a fortnight ago. Probably why. 2012-06-25T14:20:50 < zyp> yeah, I added that 2012-06-25T14:23:07 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has quit [Quit: peabody124] 2012-06-25T14:23:40 < cjbaird> you win a free 10 minute mantouching session. 2012-06-25T14:24:12 < zyp> \o/ 2012-06-25T14:25:17 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has joined ##stm32 2012-06-25T14:35:05 < pelrun> oh, updated stlink? sweet 2012-06-25T14:35:19 < pelrun> will update before I use the F4 again 2012-06-25T14:39:17 < karlp> this is project with no stable release, 2012-06-25T14:39:24 < karlp> so you should pretty much always be using git head :) 2012-06-25T14:45:44 < zyp> karlp, I like that you got rid of the examples 2012-06-25T14:46:25 < zyp> what about the toremove directory? should have killed it as well :p 2012-06-25T14:59:20 < karlp> yeah, it has some usb trace logs that might still prove useful 2012-06-25T14:59:44 < karlp> also, those don't cause me headaches answering questions from people trying to use them :) 2012-06-25T14:59:48 < zyp> like they won't be available in the git history if needed :p 2012-06-25T15:00:00 < karlp> onyl if you remember that they are _in_ the history 2012-06-25T15:00:34 < zyp> if they are to be kept, they should be named something else than toremove :p 2012-06-25T15:00:41 < karlp> indeed. 2012-06-25T15:08:54 < Laurenceb> http://hackaday.com/2012/06/23/red-bull-creation-hardware-bullduino-arrives/ 2012-06-25T15:08:56 < Laurenceb> hahaha 2012-06-25T15:16:30 < dongs> http://i.imgur.com/jIfxm.jpg 2012-06-25T15:16:36 < dongs> lol good job hobbyking 2012-06-25T15:17:07 < cjbaird> Only retards who want to lose their teeth and stomach lining at 40 drink that shit.. 2012-06-25T16:04:05 < Laurenceb> so i was wondering why im the only person in at work today 2012-06-25T16:04:48 < Laurenceb> turns out the one remaining guy who hasnt quit here managed to blow up himself and the boss in some sort of accident involving a chip pan and petrol 2012-06-25T16:05:05 < Laurenceb> they are currently in intensive care 2012-06-25T16:05:12 < Laurenceb> this shit makes no sense 2012-06-25T16:05:55 < dongs> your place sounds awesome 2012-06-25T16:06:29 < Laurenceb> i wonder if they decided to END IT NOW after watching england 2012-06-25T16:06:42 < dongs> im mouting avr-isp connector inside 9x :( 2012-06-25T16:06:44 < dongs> poorme. 2012-06-25T16:06:51 < dongs> i feel so GAY 2012-06-25T16:06:55 < Laurenceb> i think they were drunk 2012-06-25T16:07:12 < Laurenceb> carried burning pan into garage and poured water on it 2012-06-25T16:07:32 < Laurenceb> explosion triggered petrol can detonation 2012-06-25T16:07:48 < Laurenceb> this shit is hilarious 2012-06-25T16:20:14 < Laurenceb> protip: if your chips catch fire, dont take pan into garage, place next to petrol can and pour water on it 2012-06-25T16:25:12 < dongs> i think youplay around wiht a bunch of trolls 2012-06-25T16:28:13 < zyp> dongs, you haven't done a stm32 replacement board yet? 2012-06-25T16:29:41 < Tectu> zyp, are you still in japan? 2012-06-25T16:32:50 < Laurenceb> no hes in your mum 2012-06-25T16:33:34 < dongs> zyp, everytime i open that shit I want to 2012-06-25T16:33:41 < dongs> but hten i feel super gay 2012-06-25T16:35:21 < zyp> Tectu, yep 2012-06-25T16:35:40 < dongs> hes in the land of the rising dong 2012-06-25T16:36:20 < Laurenceb> lawl 2012-06-25T16:38:53 < dongs> zyp, ill do the hardware youll do the coding 2012-06-25T16:40:53 < zyp> I might actually take you up on that, provided that I can find some time to get shit done 2012-06-25T16:42:29 < dongs> Dear Customershere is a very nice news from DJI.All users who bought WKM 2012-06-25T16:42:30 < dongs> View now can upgrade automatically to Single way point which costed 1200 usd 2012-06-25T16:42:30 < dongs> before!you only need to purchase a DJI data radio(2.4G or 900mhz) and you 2012-06-25T16:42:31 < dongs> get cool Single waypoint free of Charge!check this link 2012-06-25T16:42:32 < dongs> haha 2012-06-25T17:08:37 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has joined ##stm32 2012-06-25T17:12:41 < cjbaird> Eh, arm-none-eabi-gcc is trying to use the system as, instead of arm-none-eabi-as... 2012-06-25T17:16:20 < Tectu> cjbaird, impossibru 2012-06-25T17:16:27 < Tectu> cjbaird, makefail? 2012-06-25T17:16:53 < zyp> toolchain fail 2012-06-25T17:18:11 < cjbaird> And this for a toolchain that was working.. 2012-06-25T17:19:27 < zyp> are you sure it's trying to use the system as, and that you're not just misinterpreting some other errors? 2012-06-25T17:19:36 < zyp> pastebin the whole log please 2012-06-25T17:22:28 < cjbaird> http://dpaste.org/VUHaQ/ ... "GNU assembler version 2.21.52 (mipsel-linux-gnu) " at the bottom, mipsel-linux-gnu being the Lemote's system. 2012-06-25T17:25:35 < zyp> you're right 2012-06-25T17:25:45 < zyp> clearly a toolchain fail though 2012-06-25T17:26:00 < zyp> if not there are some env vars interfering 2012-06-25T17:39:01 < Tectu> yes, youtube PM spam 2012-06-25T17:39:03 < Tectu> Have you ever studied or even read about the Religion of Islam from a credible, unbiased source? Don't you owe it to yourself to find the truth about Islam, especially to see if it can help you live a life full of happiness and peace and personal satisfaction? If you decide to do so, it will be the best thing you have ever done... 2012-06-25T17:43:11 * Laurenceb rage 2012-06-25T17:43:20 < Laurenceb> too much information 2012-06-25T17:45:14 < cjbaird> The recent World Atheist Conference in Melbourne had a full-on group of Muslim protestors (with the usual crowds of Sing-song Christian protestors)... which was probably a first for Australia. 2012-06-25T17:49:23 < Laurenceb> i might go 2012-06-25T17:49:35 < Laurenceb> as a gont give a shit either way protestor 2012-06-25T17:49:38 < Laurenceb> *dont 2012-06-25T17:50:12 < Laurenceb> freaking Karma 2012-06-25T17:50:29 < Laurenceb> i was laughing at people incinerating themselves 2012-06-25T17:50:40 < Laurenceb> now ive dropped a soldering iron on my hand 2012-06-25T17:51:30 < zyp> cool 2012-06-25T17:51:42 < Laurenceb> no 2012-06-25T17:51:51 < Laurenceb> 350C 2012-06-25T17:52:21 < zyp> :D 2012-06-25T17:53:31 < Tectu> dropped one between my legs a few years ago 2012-06-25T17:53:45 < Tectu> and i mean _between my legs_ 2012-06-25T17:54:06 * Tectu is lucky bastard 2012-06-25T17:54:50 < Laurenceb> " The recent World Atheist Conference in Melbourn" *World Autistic Conference 2012-06-25T17:54:55 < Laurenceb> FTFY 2012-06-25T17:55:08 < Laurenceb> flyback is invited 2012-06-25T17:58:43 < Laurenceb> what like dongs? 2012-06-25T18:07:39 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-25T18:24:20 -!- emeb [~ericb@ip72-223-89-137.ph.ph.cox.net] has joined ##stm32 2012-06-25T18:55:26 < cjbaird> Laurenceb: no objections there-- my ex girlfriend went to it. :P 2012-06-25T18:55:50 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-25T18:56:10 < ratatata> nu 2012-06-25T18:57:12 < cjbaird> Amusingly, my reasons for dumping her was because she was "making shit up and _believing_ it, like a magical-sky-fairy-believer does"... 2012-06-25T19:00:18 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has quit [Ping timeout: 245 seconds] 2012-06-25T19:07:57 < dongs> haha 2012-06-25T19:11:15 -!- Oldboy [myircshell@grid.sh3lls.net] has quit [Quit: leaving] 2012-06-25T19:16:24 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has joined ##stm32 2012-06-25T19:16:25 -!- R0b0t1 [~dev@64-136-219-55.dyn.everestkc.net] has quit [Changing host] 2012-06-25T19:16:25 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has joined ##stm32 2012-06-25T19:16:52 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has quit [Ping timeout: 255 seconds] 2012-06-25T19:23:31 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 264 seconds] 2012-06-25T19:29:11 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has joined ##stm32 2012-06-25T19:43:23 -!- zippe [~Adium@173.11.99.161] has quit [Quit: Leaving.] 2012-06-25T19:43:40 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-06-25T19:48:53 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-25T19:52:51 < dongs> lol religion 2012-06-25T20:00:34 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 245 seconds] 2012-06-25T20:02:37 -!- tavish [~tavish@120.59.15.218] has joined ##stm32 2012-06-25T20:02:37 -!- tavish [~tavish@120.59.15.218] has quit [Changing host] 2012-06-25T20:02:37 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-25T20:10:12 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-25T20:10:15 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-25T20:11:50 <+Steffanx> nu 2012-06-25T20:56:13 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-06-25T20:59:23 -!- dekar [~dekar@dslb-188-107-082-087.pools.arcor-ip.net] has joined ##stm32 2012-06-25T20:59:24 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-25T21:03:04 -!- voodoofish430 [~mtorres@NAT10.pas.idealab.com] has joined ##stm32 2012-06-25T21:05:13 < Tectu> no 2012-06-25T21:09:02 <+Steffanx> /o/u 2012-06-25T21:09:14 -!- tavish [~tavish@unaffiliated/tavish] has quit [Quit: leaving] 2012-06-25T21:14:14 < Tectu> s/ /s ;) 2012-06-25T21:18:53 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-25T21:22:15 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-06-25T21:26:21 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has joined ##stm32 2012-06-25T21:50:10 -!- lukky513 [~lukky@student.agh.edu.pl] has quit [Read error: Connection reset by peer] 2012-06-25T22:10:28 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has joined ##stm32 2012-06-25T22:14:45 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has quit [Quit: peabody124] 2012-06-25T22:25:03 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-06-25T22:26:24 -!- BrainDamage1 [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has joined ##stm32 2012-06-25T22:26:24 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-238-188.clienti.tiscali.it] has quit [Disconnected by services] 2012-06-25T22:26:58 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has joined ##stm32 2012-06-25T22:27:12 -!- BrainDamage1 [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has quit [Read error: Connection reset by peer] 2012-06-25T22:42:10 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-06-25T23:46:30 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Quit: Leaving.] --- Day changed Tue Jun 26 2012 2012-06-26T00:01:05 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has quit [Quit: This computer has gone to sleep] 2012-06-26T00:02:25 -!- dekar [~dekar@dslb-188-107-082-087.pools.arcor-ip.net] has quit [Ping timeout: 245 seconds] 2012-06-26T00:16:28 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-26T00:25:20 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-26T00:29:38 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has quit [Remote host closed the connection] 2012-06-26T00:36:33 <+Steffanx> Wonder what happens when you replace that with a box with a human :P 2012-06-26T00:36:48 <+Steffanx> Want to try it for me flyback ? 2012-06-26T00:37:07 -!- dekar [~dekar@dslb-188-107-082-087.pools.arcor-ip.net] has joined ##stm32 2012-06-26T00:37:10 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-26T00:37:18 < Tectu> flyback, didn't you already poste that? 2012-06-26T00:37:33 < Tectu> flyback, and i guess the human wouldn't survive, but not quite sure 2012-06-26T00:37:53 <+Steffanx> That's why i asked him to try 2012-06-26T00:38:24 <+Steffanx> It's hot, not cool 2012-06-26T00:38:40 <+Steffanx> Ha 2012-06-26T00:42:09 <+Steffanx> Good night and have fun 2012-06-26T00:50:29 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 272 seconds] 2012-06-26T00:50:31 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has joined ##stm32 2012-06-26T00:58:45 -!- Tekno [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 248 seconds] 2012-06-26T01:01:36 -!- Tekno [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-26T01:18:09 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has quit [Quit: Leaving] 2012-06-26T01:20:59 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has joined ##stm32 2012-06-26T01:21:33 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-06-26T01:28:19 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has quit [Ping timeout: 264 seconds] 2012-06-26T01:28:41 -!- upgrdman [~upgrdman@71-92-208-122.static.mtpk.ca.charter.com] has joined ##stm32 2012-06-26T01:28:41 -!- upgrdman [~upgrdman@71-92-208-122.static.mtpk.ca.charter.com] has quit [Changing host] 2012-06-26T01:28:41 -!- upgrdman [~upgrdman@blender/artist/upgrdman] has joined ##stm32 2012-06-26T01:44:24 -!- Tekno [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Quit: Rebooting...] 2012-06-26T01:45:10 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has quit [Ping timeout: 260 seconds] 2012-06-26T01:49:53 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925201294.dsl.bell.ca] has joined ##stm32 2012-06-26T01:49:54 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925201294.dsl.bell.ca] has quit [Changing host] 2012-06-26T01:49:54 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-26T02:01:26 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer] 2012-06-26T02:09:49 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-26T02:09:50 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has quit [Quit: Leaving.] 2012-06-26T02:09:56 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has joined ##stm32 2012-06-26T02:12:58 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has quit [Remote host closed the connection] 2012-06-26T02:13:10 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has joined ##stm32 2012-06-26T02:43:08 -!- dekar [~dekar@dslb-188-107-082-087.pools.arcor-ip.net] has quit [Quit: Leaving] 2012-06-26T02:59:24 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has joined ##stm32 2012-06-26T03:10:52 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 245 seconds] 2012-06-26T03:15:07 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has quit [Read error: Connection reset by peer] 2012-06-26T03:15:16 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has joined ##stm32 2012-06-26T03:26:40 < upgrdman> what does this mean in the stm32f4 clock tree: http://rcheliguy.com/temp/Screenshot.png ... cut the clock in half if the APBx prescaler is something other than 1? 2012-06-26T04:36:17 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-26T04:45:00 -!- voodoofish430 [~mtorres@NAT10.pas.idealab.com] has quit [Quit: Leaving.] 2012-06-26T04:46:02 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has quit [Quit: Leaving.] 2012-06-26T04:50:00 < dongs> yes, both. 2012-06-26T04:50:01 < dongs> they work. 2012-06-26T04:58:49 < zippe> upgrdman: I explained that yesterday 8) 2012-06-26T04:59:07 < zippe> upgrdman: If the APBx prescaler is 1, the timer clock = the APB clock, otherwise the timer clock = 2x the APB clock 2012-06-26T05:06:27 < upgrdman> o 2012-06-26T05:06:45 < upgrdman> sorry, missed that while trying to fix my other problem, which i fixed too 2012-06-26T05:07:35 < upgrdman> weird thing was the debugger made the problem go away 2012-06-26T05:26:23 -!- emeb [~ericb@ip72-223-89-137.ph.ph.cox.net] has left ##stm32 [] 2012-06-26T05:43:05 < upgrdman> to get my TIM6 ISR to work properly I found that i had to check that TIM6->SR == 0 to see if an update event had occurred. shouldn't the ISR only be called when the event has occurred? 2012-06-26T05:43:53 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-26T05:44:01 -!- [7] [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-26T06:13:28 < dongs> hah, STM32 inside FrSky telemetry LCD 2012-06-26T06:13:31 < dongs> f103c8t6 2012-06-26T06:14:03 < upgrdman> its in a lot of rc stuff 2012-06-26T06:14:17 < upgrdman> theres a 103 in some walkera radios too 2012-06-26T06:14:57 < upgrdman> theres a fucking atmel 2560 in the hitec aurora9 2012-06-26T06:15:25 < dongs> ugh 2012-06-26T06:15:30 < dongs> well hitec sucks anyway. 2012-06-26T06:15:57 < upgrdman> and i've seen atmel 328's in some cheap servos 2012-06-26T06:16:19 < upgrdman> do you know much about timers in the stm32? 2012-06-26T06:16:24 < dongs> yes i use htem 2012-06-26T06:16:35 < upgrdman> to get my TIM6 ISR to work properly I found that i had to check that TIM6->SR == 0 to see if an update event had occurred. shouldn't the ISR only be called when the event has occurred? 2012-06-26T06:17:50 < dongs> 'update' 2012-06-26T06:17:51 < dongs> vs 2012-06-26T06:17:53 < dongs> 'overflow' 2012-06-26T06:17:57 < dongs> update = each timer tick, no? 2012-06-26T06:18:21 < upgrdman> OHHH 2012-06-26T06:18:37 < upgrdman> ISR is called on each update, SR == 0 on each overflow? 2012-06-26T06:22:29 < dongs> i've only once wasted a timer the way you're wasting one, i used it for counting some stuff and blinking a led, and yes, update interrupt would fire each timer tick, i would increment stuff/blink leds, and clear IT_UPDATE or wahtever bit 2012-06-26T06:22:53 < upgrdman> ya, this is just to learn timers. 2012-06-26T06:23:07 < upgrdman> i just use systick for simple timekeeping 2012-06-26T06:26:28 < upgrdman> i suppose there's no way to make the IRQ fire only on overflows? seems kind of wasteful to run an ISR 1281 timers per second (or more) with those 16bit timers 2012-06-26T06:26:48 < upgrdman> times per second* 2012-06-26T06:29:31 < dongs> you can look at TIM_interrupt_sources 2012-06-26T06:29:42 < dongs> maybe something with trigger, I dont know 2012-06-26T06:29:58 < dongs> if you want it slower, use slower prescaler? 2012-06-26T06:30:08 < dongs> agian, usually wasting an entier timer like that doesnt make sense 2012-06-26T06:30:13 < upgrdman> i know 2012-06-26T06:30:58 < upgrdman> this is just so i can figure it out. took me a few hours just to get the damn led to blink. i come from the easy world of the arduino and want to learn the basics now 2012-06-26T06:32:33 < upgrdman> as for the prescaler, i have the main clock PLL'd to 168MHz and the APBx prescaler at 4, so the timers see 84MHz... with the timer prescaler set to 2^16 thats still 1271.74 ticks per second. i could dick with the APB prescaler but would rather not 2012-06-26T06:34:55 < upgrdman> what's the most practical way to do something like blink an LED? use systick to updates a millis global variable and just poll that? 2012-06-26T07:06:02 < zippe> upgrdman: there are lots of ways to do it; depends a lot on the rest of your software architecture 2012-06-26T07:06:20 < zippe> upgrdman: There are heaps of timers; you could use one in PWM mode to blink via a GPIO for example 2012-06-26T07:06:35 < zippe> Or you can build a timer system and implement periodic callouts 2012-06-26T07:07:58 < zippe> I have one system here where systick decrements an array of counters to zero, one count per millisecond 2012-06-26T07:08:10 < zippe> Then I can just poll the counters in my main loop & reset them as necessary 2012-06-26T07:08:43 < zippe> In another one, I have a free-running timer with a compare interrupt set up so I can do deadline timing, independent of the RTOS that uses systick for its lbolt 2012-06-26T07:18:14 < upgrdman> k 2012-06-26T08:28:54 < zippe> stlink v2 = *grumble* 2012-06-26T08:28:55 < zippe> (gdb) x/4x 0x8005473 2012-06-26T08:28:55 < zippe> 0x8005473: 0x7665642f 0x7665642f 0x76656453 0x7665644f 2012-06-26T08:28:55 < zippe> (gdb) x/16b 0x8005473 2012-06-26T08:28:55 < zippe> 0x8005473: 0x2f 0x64 0x65 0x76 0x2f 0x74 0x74 0x79 2012-06-26T08:28:55 < zippe> 0x800547b: 0x53 0x31 0x00 0x43 0x4f 0x4d 0x4d 0x53 2012-06-26T08:42:51 < dongs> more like stdink v2 2012-06-26T08:43:52 < zippe> Well, I wove the dead chicken and updated the firmware 2012-06-26T08:45:15 < zippe> And that still fucks up 2012-06-26T08:46:03 < zippe> But the winders tool works, so it's the texane thing that's busted. 2012-06-26T08:46:08 < zippe> *sigh* 2012-06-26T08:46:39 < zippe> I wonder if I have the patience to flash my BDI3000 up to deal with this 2012-06-26T08:56:48 < zippe> The openocd guys are their usual bundle of fail 2012-06-26T09:09:12 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has quit [Ping timeout: 245 seconds] 2012-06-26T09:23:12 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has joined ##stm32 2012-06-26T09:48:59 < dongs> haha openocd 2012-06-26T09:53:06 < dongs> "hi this library works (fast) but is "non free"" "ok we will write our own fail implementation from scratch then" 2012-06-26T09:54:49 < zyp> which lib? 2012-06-26T09:54:56 < dongs> FTDI 2012-06-26T09:55:12 < dongs> their 'closed sores' bitbang version was like 10x faster than opensores version 2012-06-26T09:55:19 < dongs> but they couldnt use it with openocd cuz shit wasnt free enough 2012-06-26T09:55:21 < dongs> fuckin wankers. 2012-06-26T10:18:04 < zippe> Well now, that's interesting 2012-06-26T10:18:33 < zippe> After far too much farking around, the BDI3000 sees the same bollocks that I get from the stlink/gdb combo 2012-06-26T10:18:49 < zippe> But only if I read memory as words 2012-06-26T10:19:06 < zippe> interestinger and interestinger 2012-06-26T10:19:10 -!- cjbaird_ [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-26T10:19:26 < zippe> dongs: You are confusing several things 2012-06-26T10:19:42 < zippe> dongs: Also, the libftdxx stuff was complete crap 2012-06-26T10:20:02 < zyp> zippe, what's the issue? 2012-06-26T10:20:30 < zyp> ah, right, I see it 2012-06-26T10:20:35 < zippe> STM32F1>md 0x8005473 2012-06-26T10:20:35 < zippe> 08005473 : 0000002f 0000002f 00000053 0000004f /.../...S...O... 2012-06-26T10:20:35 < zippe> STM32F1>mdb 0x8005473 2012-06-26T10:20:35 < zippe> 08005473 : 2f 64 65 76 2f 74 74 79 /dev/tty 2012-06-26T10:20:57 < zyp> it doesn't have anything to do with word alignment? 2012-06-26T10:21:22 < zippe> Yeah, looks like it does 2012-06-26T10:21:42 < zippe> STM32F1>md 0x8005470 2012-06-26T10:21:42 < zippe> 08005470 : 2f00632e 2f766564 53797474 4f430031 .c./dev/ttyS1.CO 2012-06-26T10:21:51 < zyp> and this is happening with completely different debuggers? 2012-06-26T10:21:55 < zippe> Yes 2012-06-26T10:22:05 < zippe> I can forgive that mostly 2012-06-26T10:22:12 < zippe> The killer is that it happens with GDB too 2012-06-26T10:22:22 < zippe> i.e. if it's printing a string 2012-06-26T10:22:26 < zyp> i.e. a bug in the debugger port in the cpu core? 2012-06-26T10:22:37 < zippe> Honestly I'm not sure 2012-06-26T10:23:09 < zyp> could it somehow be intended behavior? 2012-06-26T10:23:38 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has quit [Ping timeout: 245 seconds] 2012-06-26T10:23:40 < zippe> Seems odd that the stlink gdbserver would not handle unaligned memory reads sensibly (e.g. by doing byte accesses) 2012-06-26T10:24:19 < zyp> the official one? 2012-06-26T10:24:22 -!- izua [~izua@86.121.2.213] has joined ##stm32 2012-06-26T10:24:22 -!- izua [~izua@86.121.2.213] has quit [Changing host] 2012-06-26T10:24:22 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-26T10:24:25 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-26T10:25:03 < zyp> I've never used that, but I wouldn't be surprised about the texane stuff failing to handle it sensibly, given the quality of that code 2012-06-26T10:25:22 < zippe> I haven't tried the "official" one 2012-06-26T10:25:30 < zippe> It would be interesting to see if I could run it in a VM I guess 2012-06-26T10:26:55 < zippe> *grumble* Sadly, Abatron have not implemented support for recent gdb / xml register maps, so I can't verify whether they handle gdb accesses correctly 2012-06-26T10:28:15 < zippe> Time to blow this popsicle stand 2012-06-26T10:31:30 < gsmcmullin> zippe: Does blackmagic work? 2012-06-26T10:36:42 -!- Netsplit *.net <-> *.split quits: R0b0t1, szczys 2012-06-26T10:39:27 -!- cjbaird_ is now known as cjbaird 2012-06-26T11:01:07 -!- peabody128 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has joined ##stm32 2012-06-26T11:01:08 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has quit [Read error: Connection reset by peer] 2012-06-26T11:01:09 -!- peabody128 is now known as peabody124 2012-06-26T11:04:55 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has joined ##stm32 2012-06-26T11:05:14 -!- R0b0t1 [~dev@64.136.219.55] has joined ##stm32 2012-06-26T11:05:14 -!- R0b0t1 [~dev@64.136.219.55] has quit [Changing host] 2012-06-26T11:05:14 -!- R0b0t1 [~dev@unaffiliated/r0b0t1] has joined ##stm32 2012-06-26T11:27:46 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has quit [Quit: This computer has gone to sleep] 2012-06-26T11:30:10 < cjbaird> Fark. Even cleaning out the Lemote system and reinstalling summon-arm-toolchain from scratch, and nuking the environment beforehand /still/ has arm-none-eabi-gcc calling the wrong assembler.. :/ 2012-06-26T11:30:39 < Tectu> had some truble with summon 2012-06-26T11:30:44 < Tectu> and i am not the only one 2012-06-26T11:51:46 -!- pelrun [~pelrun@14-202-70-213.static.tpgi.com.au] has joined ##stm32 2012-06-26T11:53:44 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has joined ##stm32 2012-06-26T11:55:07 < Laurenceb_> sup 2012-06-26T11:58:03 * Laurenceb_ has been visiting pyro victims in hospital 2012-06-26T11:58:16 < Tectu> Laurenceb_, why 2012-06-26T11:58:17 < Laurenceb_> *darwin victims 2012-06-26T11:58:40 < Laurenceb_> my firend from work managed to blow up himself and the boss final destination style 2012-06-26T11:59:29 < Tectu> wtf 2012-06-26T11:59:41 < Laurenceb_> something involving chip pans, lots of petrol and a large fuel air explosion in his garage 2012-06-26T12:00:09 < Laurenceb_> also involved darwin 2012-06-26T12:01:41 < Laurenceb_> chip pan was on fire so they took it to the garage, but managed to set fire to a load of stuff in the garage rather than put it out 2012-06-26T12:02:30 < Laurenceb_> this resulted in a petrol can being heated up whilst they tried to put out the fire, when it burst it sprayed hot petrol everywhere 2012-06-26T12:02:34 < Tectu> pic or it didn't happen 2012-06-26T12:03:00 < Laurenceb_> heh - dont know where he lives 2012-06-26T12:03:44 < Tectu> maybe it's on google streetview 2012-06-26T12:03:48 < Laurenceb_> lol 2012-06-26T12:03:54 < Laurenceb_> i dont think its live 2012-06-26T12:08:22 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has quit [Quit: peabody124] 2012-06-26T12:13:10 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has joined ##stm32 2012-06-26T12:17:01 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has quit [Ping timeout: 272 seconds] 2012-06-26T12:20:12 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-26T12:31:51 < Tectu> it is. 2012-06-26T12:31:56 < Tectu> with 4000fps 2012-06-26T12:35:57 < Tectu> so FBI can analyze from which barrel a bullet got shot while the victim is still alive >.< 2012-06-26T12:51:32 -!- pelrun [~pelrun@14-202-70-213.static.tpgi.com.au] has quit [Read error: Connection reset by peer] 2012-06-26T12:51:43 -!- pelrun [~pelrun@14-202-70-213.static.tpgi.com.au] has joined ##stm32 2012-06-26T12:53:19 -!- pelrun_ [~pelrun@14-202-70-213.static.tpgi.com.au] has joined ##stm32 2012-06-26T12:53:19 -!- pelrun [~pelrun@14-202-70-213.static.tpgi.com.au] has quit [Read error: Connection reset by peer] 2012-06-26T12:57:21 -!- peabody124 [~peabody12@ppp-94-66-9-69.home.otenet.gr] has quit [Quit: peabody124] 2012-06-26T13:01:33 -!- pelrun__ [~pelrun@14-202-70-213.static.tpgi.com.au] has joined ##stm32 2012-06-26T13:05:09 -!- pelrun_ [~pelrun@14-202-70-213.static.tpgi.com.au] has quit [Ping timeout: 245 seconds] 2012-06-26T13:20:12 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has joined ##stm32 2012-06-26T13:33:57 < dongs> blogosphere 2012-06-26T13:35:32 < cjbaird> doggosphere 2012-06-26T13:35:46 < dongs> trying too hard. 2012-06-26T13:37:11 < dongs> again fucking nothign done today 2012-06-26T13:37:16 < dongs> i got an assemble job ive been ignoring for a week 2012-06-26T13:37:50 < dongs> http://www.youtube.com/watch?v=Eyw1-Xkgfu8 is this old 2012-06-26T13:45:26 < dongs> http://www.rcgroups.com/forums/showthread.php?t=1677843 2012-06-26T13:45:27 < dongs> lawl 2012-06-26T13:49:44 < cjbaird> Stop laughing at our plastic monies 2012-06-26T13:50:10 < dongs> http://i190.photobucket.com/albums/z143/Dillzio/burnttransmitter.jpg 2012-06-26T14:03:48 -!- pelrun [~pelrun@14-202-70-213.static.tpgi.com.au] has joined ##stm32 2012-06-26T14:05:26 -!- pelrun__ [~pelrun@14-202-70-213.static.tpgi.com.au] has quit [Ping timeout: 255 seconds] 2012-06-26T14:15:47 -!- peabody124 [~peabody12@ppp-94-66-60-5.home.otenet.gr] has joined ##stm32 2012-06-26T14:19:08 < Tectu> dongs, dafuq happened there? 2012-06-26T14:19:48 < dongs> Tectu: i think he poked a hole in it while forcing it in the battery compartment 2012-06-26T14:19:51 < dongs> and it exploded at night 2012-06-26T14:20:26 < Tectu> nix 2012-06-26T14:20:27 < Tectu> nice* 2012-06-26T14:20:32 < Tectu> why does that guy have money on his workbench 2012-06-26T14:20:39 < dongs> ya 2012-06-26T14:21:09 < Tectu> what's that for a currency 2012-06-26T14:21:23 < Tectu> and awesome NE555 breadboard-right-by-hand-when-you-need-it assembly 2012-06-26T14:22:07 < cjbaird> Pity there wasn't a gun on the workbench, like a lot of those photo have. :P 2012-06-26T14:26:07 -!- peabody124 [~peabody12@ppp-94-66-60-5.home.otenet.gr] has quit [Quit: peabody124] 2012-06-26T14:53:38 < Tectu> cjbaird, lol 2012-06-26T14:53:45 < Tectu> it's the money he saves for getting one ;) 2012-06-26T14:55:03 < dongs> so what color 128x64 oleds shodl I get 2012-06-26T14:55:12 < Tectu> white on black 2012-06-26T14:55:17 < Tectu> white on blue* 2012-06-26T14:55:39 < dongs> http://i00.i.aliimg.com/photo/v1/518845242/128X64_OLED.jpg 2012-06-26T14:55:43 < dongs> i dont mind this dual color though 2012-06-26T14:56:43 < cjbaird> You Needs a display like this: http://unicorn.drogon.net/stuff/mk14.jpg 2012-06-26T14:56:54 < dongs> lfao 2012-06-26T14:57:04 < dongs> i had that loong time ago 2012-06-26T14:57:47 < Tectu> na, build one of those into your device: http://www.coolcircuit.com/gadgets/wp-content/uploads/2009/04/the-propeller-clock-from-hdd-motor.thumbnail.jpg 2012-06-26T14:58:11 < dongs> by 'propeller' they mean the parallolx shit? 2012-06-26T14:58:21 < Tectu> no 2012-06-26T14:58:23 < Tectu> propeller clock 2012-06-26T14:58:25 < Tectu> don't you know them? 2012-06-26T14:58:30 < Tectu> a row of LEDs which do spin fast 2012-06-26T14:58:31 < dongs> i dont get out much 2012-06-26T14:58:32 < dongs> right 2012-06-26T14:58:43 < dongs> i think outside of adafruilt blogs its called 'pov clock' 2012-06-26T15:03:24 < Tectu> yeah 2012-06-26T15:06:40 < dongs> http://www.adafruit.com/adablog/wp-content/uploads/2011/12/window-46.jpg 2012-06-26T15:06:40 < dongs> aidsfruit. 2012-06-26T15:15:27 < karlp> zippe: with that gdb x/4x 0xmem vs x/16b 0xmem you pasted a few hours ago, what is that doing wrong? could you file a ticket on stlink with what it should do? 2012-06-26T15:18:34 < karlp> oh, ok, I see a bit more. 2012-06-26T15:18:51 < karlp> still, if you can write it out clearly what it should be doing, it would be nice. 2012-06-26T15:19:04 < karlp> looks like we'll have to put in these register map xml files too 2012-06-26T15:19:08 < karlp> to support newer gdbs 2012-06-26T15:23:35 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 260 seconds] 2012-06-26T15:36:08 < zyp> karlp, I see you are going for a cleanup of issues in texane/stlink? 2012-06-26T15:44:45 < karlp> well, I try on a somewhat regular basis 2012-06-26T15:44:52 < karlp> but no-one ever comes back tot heir own issues, 2012-06-26T15:44:56 < karlp> and texane never closes them either 2012-06-26T15:45:18 < karlp> so it's a bit hard to see what's noise and what's fixed, and what was never an issue and what should be worked on. 2012-06-26T15:45:21 < zyp> that has annoyed me as well 2012-06-26T15:45:48 < zyp> an unmaintained issue tracker is a useless issue tracker 2012-06-26T15:46:12 < karlp> indeed 2012-06-26T15:47:12 < zyp> doesn't github allow for several maintainers of a project? we should get texane to appoint some more since he's not very interested himself 2012-06-26T15:50:20 < karlp> probably a decent suggestion. 2012-06-26T15:51:04 < zyp> I nominate you :p 2012-06-26T16:12:52 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has quit [Read error: Connection reset by peer] 2012-06-26T16:12:58 -!- BrainDamage1 [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has joined ##stm32 2012-06-26T16:19:46 < cjbaird> Hmm. I just noticed that the F4 Discovery board has the imfamous "China Export" mark, rather than the real "CE".. The real trademark has an en-space between the C and E, the China Export one has no space between them. 2012-06-26T16:21:54 < karlp> and? 2012-06-26T16:25:02 < cjbaird> I.P violation on STM's products. lol. 2012-06-26T16:34:26 < Laurenceb> http://www.raspberrypi.org/ 2012-06-26T16:34:31 < Laurenceb> ^lol at boat 2012-06-26T16:52:17 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-26T17:03:59 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has joined ##stm32 2012-06-26T17:04:00 -!- jon1012 [~jon@pha75-14-88-162-134-157.fbx.proxad.net] has quit [Changing host] 2012-06-26T17:04:00 -!- jon1012 [~jon@foresight/developer/jon1012] has joined ##stm32 2012-06-26T17:07:48 < Rickta59> That is a great little project Laurenceb 2012-06-26T17:08:38 < Rickta59> I've thought it would be fun to make an MCU controlled autonomous sailboat that traveled the world 2012-06-26T17:09:02 -!- BrainDamage1 [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has quit [Quit: Leaving.] 2012-06-26T17:09:13 < Rickta59> small model one .. that people could pick up and it add comments about where it was at the moment on some webpage 2012-06-26T17:09:14 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has joined ##stm32 2012-06-26T17:13:46 < Laurenceb> but its going to fail utterly 2012-06-26T17:15:24 < dongs> Our friends at the African Robotics Network (AFRON) are currently running a competition to design a low-cost robot platform. 2012-06-26T17:15:28 < dongs> looooooooooooooooooooool 2012-06-26T17:15:30 < dongs> afrobots 2012-06-26T17:19:39 < dongs> http://bcas.tv/paste/results/iuNhyM90.html haha chinese delay 2012-06-26T17:24:57 -!- emeb [~ericb@ip72-223-89-137.ph.ph.cox.net] has joined ##stm32 2012-06-26T17:30:33 < zyp> wat 2012-06-26T17:31:48 < karlp> nice :) 2012-06-26T17:37:29 < Tectu> looks very functional 2012-06-26T18:05:19 -!- pelrun [~pelrun@14-202-70-213.static.tpgi.com.au] has quit [Ping timeout: 250 seconds] 2012-06-26T18:05:31 -!- dekar [~dekar@212.255.25.195] has joined ##stm32 2012-06-26T18:05:37 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-26T18:35:02 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-26T18:35:11 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-26T18:56:23 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has joined ##stm32 2012-06-26T18:59:50 -!- izua [~izua@86.121.2.213] has joined ##stm32 2012-06-26T18:59:50 -!- izua [~izua@86.121.2.213] has quit [Changing host] 2012-06-26T18:59:50 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-26T18:59:53 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-26T19:05:06 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Read error: Connection reset by peer] 2012-06-26T19:05:44 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-26T19:12:39 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-06-26T19:17:15 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Read error: Connection reset by peer] 2012-06-26T19:17:49 -!- Thorn [~Thorn@78-106-247-110.broadband.corbina.ru] has joined ##stm32 2012-06-26T19:17:49 -!- Thorn [~Thorn@78-106-247-110.broadband.corbina.ru] has quit [Changing host] 2012-06-26T19:17:49 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-06-26T19:18:23 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Read error: Connection reset by peer] 2012-06-26T19:18:50 -!- Thorn [~Thorn@78-106-247-110.broadband.corbina.ru] has joined ##stm32 2012-06-26T19:18:51 -!- Thorn [~Thorn@78-106-247-110.broadband.corbina.ru] has quit [Changing host] 2012-06-26T19:18:51 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-06-26T19:22:44 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Read error: Connection reset by peer] 2012-06-26T19:41:35 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-26T19:41:42 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-26T19:51:02 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-06-26T19:53:14 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32 2012-06-26T19:53:38 < R2COM> ok so out of Samsung Galaxy S III and HTC One S, what would be better option? 2012-06-26T19:54:10 <+Steffanx> none is a option too? 2012-06-26T19:54:13 <+Steffanx> *an 2012-06-26T19:55:47 < R2COM> maybe 2012-06-26T19:56:00 < R2COM> theres also HTX One X with quad core coming out soon 2012-06-26T19:56:36 < R2COM> someone told me here that they are good only for 1 year while the OS is supported 2012-06-26T19:58:04 <+dekar> R2COM, I'd go for the nexus galaxy 2012-06-26T19:58:13 <+Steffanx> isn't that one 15 years old? 2012-06-26T19:58:22 <+dekar> nope 2012-06-26T19:58:38 <+Steffanx> At least ½ year 2012-06-26T19:58:42 <+dekar> it's the latest google phone 2012-06-26T19:58:56 <+dekar> w/e, it will get the android5 update later this year 2012-06-26T19:59:01 < R2COM> nexus galaxy camera is 5MP 2012-06-26T19:59:03 <+dekar> dunno whether other phones will get it 2012-06-26T19:59:03 < R2COM> not 8MP 2012-06-26T19:59:24 < R2COM> im thinking if i get something like that shit, i better get best shit or still use my 9 year old phone 2012-06-26T19:59:24 <+dekar> R2COM, so buy a proper camera then 2012-06-26T19:59:40 < R2COM> well no.. i was just thinking about universal thing 2012-06-26T19:59:45 < blkcat> i'd either wait for the one x or buy the galaxy nexus 2012-06-26T19:59:49 < R2COM> but at least with max specs 2012-06-26T19:59:58 < R2COM> well 2012-06-26T20:00:03 < R2COM> i think im gona wait for ONE X 2012-06-26T20:00:12 <+dekar> R2COM, those cameras usually suck anyway, they're full of noise 2012-06-26T20:00:17 < R2COM> ONE X has quad core and 8MP camera and better battery too 2012-06-26T20:00:46 <+dekar> R2COM, quad core means it _needs_ the bigger battery 2012-06-26T20:01:10 < blkcat> yeah, quad-core isn't really a must-have feature 2012-06-26T20:01:16 < blkcat> then again it *is* an android phone, hah 2012-06-26T20:01:36 < R2COM> what about some APP which was used to utilize 4 cores? 2012-06-26T20:01:43 < R2COM> or Android still wouldnt let it do that? 2012-06-26T20:01:56 <+dekar> R2COM, benchmarks probably use 4 cores 2012-06-26T20:02:05 <+dekar> angry birds will probably not 2012-06-26T20:02:40 < R2COM> well ONE X probably will cost couple hundred with contract 2012-06-26T20:02:48 < R2COM> maybe some more actually 2012-06-26T20:03:38 <+dekar> R2COM, so get it without contract? 2012-06-26T20:03:46 < R2COM> why? 2012-06-26T20:03:49 < R2COM> it costs more then 2012-06-26T20:03:52 <+dekar> cheaper? 2012-06-26T20:04:04 < R2COM> if someone uses phone with some company, it can sell phone much cheaper 2012-06-26T20:04:38 < R2COM> couple hundred is cheaper, without contract unlocked it would cost maybe 500 or something like that 2012-06-26T20:04:48 < blkcat> probably the smartest thing to do is buy the galaxy nexus unlocked from the google play store 2012-06-26T20:04:58 <+dekar> the iPhone contract is like 60€ per month in germany, I think buying an iPhone alone is much cheaper actually 2012-06-26T20:04:59 < blkcat> it's only $400, no contract, and the gsm radio is pentaband so you can use it with basically any carrier 2012-06-26T20:04:59 < R2COM> i see it now 2012-06-26T20:05:00 < R2COM> 400$ 2012-06-26T20:05:12 <+Steffanx> The US and their $ :( 2012-06-26T20:05:22 <+Steffanx> It's at least 400 2012-06-26T20:05:24 <+Steffanx> euro here 2012-06-26T20:05:25 < R2COM> but why pay 400$, when you can wait for ONE X, and pay less? 2012-06-26T20:05:40 < blkcat> because then you're on a contract 2012-06-26T20:05:40 <+dekar> R2COM, so wait? 2012-06-26T20:05:50 < R2COM> whats problem with contract 2012-06-26T20:05:52 < R2COM> its ok 2012-06-26T20:05:53 < blkcat> but seriously like, if you've already made up your mind then why are we still talkinga bout this 2012-06-26T20:05:56 <+dekar> R2COM, wait another 10 or 20 years 2012-06-26T20:06:04 <+dekar> R2COM, android 20 will be much better :) 2012-06-26T20:06:05 <+Steffanx> Wait 30 years! 2012-06-26T20:06:20 <+Steffanx> Android will be out of the market in 2030 :P 2012-06-26T20:06:24 <+dekar> oh right, android 28 with chrome 73 will be really awesome 2012-06-26T20:06:26 <+Steffanx> Windows and iOS it is :P 2012-06-26T20:06:27 <+dekar> I would wait for that 2012-06-26T20:06:29 < R2COM> well because i was trying to choose between two competitors, SIII new one or ONE X, but nexus is not in that class 2012-06-26T20:06:35 < blkcat> yes it is 2012-06-26T20:06:48 < R2COM> hm ok 2012-06-26T20:06:56 < blkcat> advantages to galaxy nexus: it's an official google phone so it'll get updates forever and you can buy it unlocked inexpensively 2012-06-26T20:07:06 <+dekar> R2COM, your phone won't be able to run android 28, so you better wait some more 2012-06-26T20:07:08 < blkcat> rather than getting stuck in a shitty contract that'll make you pay like $2000 over the life of the device 2012-06-26T20:07:29 < R2COM> so you say there wont be difference between 8MP camera and 5MP camera on those phones? 2012-06-26T20:07:41 <+dekar> R2COM, I am pretty sure I explained you the update thing before, if you want updates then buy the google phones 2012-06-26T20:08:08 <+dekar> R2COM, if you want a new phone every other year, then buy a quad core phone from some other vendor 2012-06-26T20:08:25 < R2COM> dekar: oh so it was you telling me that if you get phones from those phone companies, they are good only for 1 year untill updates are out? 2012-06-26T20:08:27 <+dekar> R2COM, those cameras all suck 2012-06-26T20:08:34 < R2COM> ok 2012-06-26T20:08:36 < R2COM> now 2012-06-26T20:08:42 < karlp> I fixed mine, I punched out the little plastic "cover" it had. 2012-06-26T20:08:48 < karlp> the plastic got scratched to shit so fast, 2012-06-26T20:08:49 < R2COM> if i buy from google, wouldnt i again have to update? 2012-06-26T20:08:53 < karlp> it was like permanent instagram. 2012-06-26T20:09:03 < R2COM> i mean... whats the benefit getting nexus then? 2012-06-26T20:09:04 < karlp> knocked out the plastic, now I have much better pictures! 2012-06-26T20:09:07 < blkcat> if you're buying a phone for the camera then you are an idiot, haha 2012-06-26T20:09:08 <+dekar> karlp, you should patent the scratches! 2012-06-26T20:09:09 < blkcat> they're all terrible 2012-06-26T20:09:24 < karlp> no, I should sell the auto scratrching mechanism for 1 billion or something? 2012-06-26T20:09:54 <+dekar> R2COM, there are a few nokia phones with decent cameras, but that's about it 2012-06-26T20:10:18 < R2COM> dekar: but that nexus from google, its updates are not stopped after 1 year? 2012-06-26T20:10:23 < R2COM> or how does that work? 2012-06-26T20:10:59 < blkcat> R2COM: the nexus one was released two and a half years ago and it only recently stopped receiving updates 2012-06-26T20:11:27 < R2COM> then according to what you say, it doesnt make sense buying it now? 2012-06-26T20:11:28 <+dekar> R2COM, you'll probably get updates for 2 years 2012-06-26T20:11:29 < blkcat> the phone industry is moving so quickly that you probably can't expect more longevity than that update-wise, though i imagine the galaxy nexus will be supported a while longer 2012-06-26T20:11:32 < R2COM> oh 2012-06-26T20:11:48 < R2COM> and then if they do another one, they will probably stop doing updates for nexus? 2012-06-26T20:12:01 < blkcat> no 2012-06-26T20:12:02 < blkcat> they won't 2012-06-26T20:12:03 < blkcat> sigh 2012-06-26T20:12:04 <+dekar> R2COM, the last two nexus seem to get updates 2012-06-26T20:12:49 <+dekar> R2COM, so get a nokia n8 2012-06-26T20:13:04 <+dekar> R2COM, it has a decent camera and a real flash (not that LED stuff) 2012-06-26T20:13:50 < R2COM> it runs android too? 2012-06-26T20:14:47 < R2COM> heh 12 MP 2012-06-26T20:15:27 <+dekar> R2COM, nokia doesn't use android lol 2012-06-26T20:15:32 < R2COM> ok 2012-06-26T20:16:48 < blkcat> don't 2012-06-26T20:16:49 < blkcat> buy a phone 2012-06-26T20:16:51 < blkcat> for the camera 2012-06-26T20:16:59 < R2COM> ok 2012-06-26T20:17:01 <+dekar> lol 2012-06-26T20:18:13 < R2COM> basically what you say is, google provides updates for its nexus phones for much longer period than when you get HTC or Samsung from phone companies? 2012-06-26T20:18:18 < blkcat> yes 2012-06-26T20:18:27 < blkcat> you also don't have to put up with their crappy manufacturer skins 2012-06-26T20:18:28 < R2COM> and that you count as main important advantage? 2012-06-26T20:18:37 < blkcat> yes, and the fact that you can get it unlocked inexpensively 2012-06-26T20:18:40 < R2COM> i mean update 2012-06-26T20:18:44 < blkcat> and that it's a pentaband phone so it'll work on almost any gsm network 2012-06-26T20:19:03 < R2COM> i wonder when google makes a better phone then 2012-06-26T20:19:09 < R2COM> since this nexus seems now kinda old 2012-06-26T20:19:14 <+dekar> R2COM, it also has an OMAP4 SoC which is pretty well supported by the linux kernel 2012-06-26T20:19:35 <+dekar> R2COM, you still want a better camera? 2012-06-26T20:19:47 < R2COM> eno just better phone? 2012-06-26T20:19:50 < R2COM> no* 2012-06-26T20:20:00 <+dekar> R2COM, what's bad about the nexus galaxy? 2012-06-26T20:20:20 < R2COM> its not badass enough for 400$ 2012-06-26T20:20:37 <+dekar> badass enough for doing what exactly? 2012-06-26T20:20:47 <+dekar> browsing the web? 2012-06-26T20:20:47 < blkcat> ...the galaxy nexus is like six months old 2012-06-26T20:20:54 <+dekar> watching youtube videos? 2012-06-26T20:20:58 < R2COM> oh really? 6 montsh? 2012-06-26T20:20:59 < R2COM> ok 2012-06-26T20:21:03 < blkcat> its specs are still equal or better to the other top-end phones on the market 2012-06-26T20:21:19 < blkcat> you pay $400 for the privilege of not being fucked over by a two-year contract 2012-06-26T20:21:28 < R2COM> hmm 2012-06-26T20:21:34 <+dekar> R2COM, given that we had the whole talk before, I feel like you have a serious problem making decisions 2012-06-26T20:21:35 < R2COM> oh and its samsung 2012-06-26T20:21:41 < blkcat> dekar: no kidding 2012-06-26T20:21:42 < blkcat> dekar: yikes 2012-06-26T20:22:01 < R2COM> no, i was just exploring some more facts, thats it 2012-06-26T20:22:25 <+Steffanx> that's that 2012-06-26T20:22:53 < R2COM> i see it also has Micro USB, so this phone would also have an opportunity to run custom App which would talk with this USB to other hardware right? 2012-06-26T20:23:00 <+dekar> R2COM, just buy it already, and in 2 or 3 years you buy a new one 2012-06-26T20:23:29 <+dekar> R2COM, they all can do that 2012-06-26T20:23:37 < R2COM> are there free Development Software to do such apps for this phone? 2012-06-26T20:24:14 <+dekar> R2COM, we had the talk before, I told you there is 2012-06-26T20:24:40 <+dekar> R2COM, how about we stop talking about android phones on ##stm32 or I feel the strong need to search for the banhammer 2012-06-26T20:25:02 < blkcat> yeah, this is really a conversation for ##android 2012-06-26T20:25:05 <+dekar> R2COM, you have all the information you need to make an educated decision 2012-06-26T20:25:13 < R2COM> yes. 2012-06-26T20:25:16 < R2COM> thanks. 2012-06-26T20:31:24 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.] 2012-06-26T20:31:57 <+Steffanx> b 2012-06-26T20:31:58 <+Steffanx> bb 2012-06-26T20:32:32 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-06-26T20:49:28 -!- voodoofish430 [~mtorres@NAT10.pas.idealab.com] has joined ##stm32 2012-06-26T21:13:03 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-06-26T21:33:24 -!- dekar [~dekar@212.255.25.195] has quit [Ping timeout: 246 seconds] 2012-06-26T21:34:25 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has joined ##stm32 2012-06-26T21:38:28 -!- dekar [~dekar@212.255.23.231] has joined ##stm32 2012-06-26T21:38:31 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-26T21:43:42 -!- dekar [~dekar@212.255.23.231] has quit [Ping timeout: 250 seconds] 2012-06-26T21:47:15 -!- dekar [~dekar@212.255.21.238] has joined ##stm32 2012-06-26T21:47:19 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-26T22:36:41 -!- peabody124 [~peabody12@ppp-94-66-60-5.home.otenet.gr] has joined ##stm32 2012-06-26T22:50:04 -!- peabody128 [~peabody12@ppp-94-66-60-5.home.otenet.gr] has joined ##stm32 2012-06-26T22:50:05 -!- peabody124 [~peabody12@ppp-94-66-60-5.home.otenet.gr] has quit [Read error: Connection reset by peer] 2012-06-26T22:50:05 -!- peabody128 is now known as peabody124 2012-06-26T22:53:08 -!- lawrenceseattle [~anonymous@66.192.187.106] has joined ##stm32 2012-06-26T23:21:15 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-26T23:44:42 -!- peabody124 [~peabody12@ppp-94-66-60-5.home.otenet.gr] has quit [Quit: peabody124] 2012-06-26T23:53:13 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has quit [Quit: This computer has gone to sleep] --- Day changed Wed Jun 27 2012 2012-06-27T00:21:34 -!- izua [~izua@unaffiliated/izua] has quit [Ping timeout: 272 seconds] 2012-06-27T00:38:36 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-27T00:38:52 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has joined ##stm32 2012-06-27T00:43:03 * Laurenceb_ is going slowly insane 2012-06-27T00:43:19 <+Steffanx> Impossible 2012-06-27T00:44:04 < Laurenceb_> trying to design spectrometer sensors to CE+medical devices directive+ISO10993 2012-06-27T00:44:07 < Laurenceb_> is nuts 2012-06-27T00:44:36 <+Steffanx> it is? 2012-06-27T00:44:47 < Laurenceb_> yes 2012-06-27T00:44:53 <+Steffanx> ok 2012-06-27T00:44:54 < Laurenceb_> im drowning in paperwork and emails 2012-06-27T00:46:01 < Laurenceb_> i need to get this thing wrapped up and flogged for loads of lovely cash 2012-06-27T00:46:08 < Laurenceb_> unfortunately nothing is that simple 2012-06-27T00:48:59 <+Steffanx> Anyway 2012-06-27T00:49:02 <+Steffanx> Sleep well 2012-06-27T00:49:09 < Laurenceb_> cya 2012-06-27T00:54:10 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2012-06-27T00:58:45 -!- lawrenceseattle [~anonymous@66.192.187.106] has quit [Quit: lawrenceseattle] 2012-06-27T00:59:05 -!- lawrenceseattle [~anonymous@66.192.187.106] has joined ##stm32 2012-06-27T01:08:29 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-06-27T01:27:34 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has quit [Read error: Connection reset by peer] 2012-06-27T01:27:44 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has joined ##stm32 2012-06-27T01:28:28 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has quit [Read error: Connection reset by peer] 2012-06-27T01:30:38 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has joined ##stm32 2012-06-27T01:43:19 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has quit [Ping timeout: 264 seconds] 2012-06-27T01:51:01 <+dekar> Laurenceb, CE is easy, just print that China Export logo on it and you're good to go 2012-06-27T02:00:33 < dongs> made in UK anal probes 2012-06-27T02:00:35 < dongs> with CE mark 2012-06-27T02:03:31 < dongs> so like never? 2012-06-27T02:04:36 < dongs> oOOoooOoo my latest hk order has been PRINTED 2012-06-27T02:05:26 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Quit: Rebooting...] 2012-06-27T02:09:21 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-27T02:09:34 < dongs> TeknoJuce: why do you have to reboot your lunix box 2012-06-27T02:09:42 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-27T02:09:58 < dongs> > good < 2012-06-27T02:10:11 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer] 2012-06-27T02:10:21 < dongs> TeknoJuce: why do you have to reboot your lunix box 2012-06-27T02:13:02 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has quit [Quit: This computer has gone to sleep] 2012-06-27T02:34:58 < dongs> http://www.rcgroups.com/forums/showatt.php?attachmentid=3711518&d=1294434584 2012-06-27T02:34:59 < dongs> loll 2012-06-27T02:43:50 < upgrdman> why the hell is it shaped like that 2012-06-27T02:48:08 -!- NonaSuomy is now known as TeknoJuce 2012-06-27T03:01:44 < dongs> not quite star of david but gives me ideas for my next pcb 2012-06-27T03:12:41 < upgrdman> a big veiny dong-shaped pcb? 2012-06-27T03:13:18 < dongs> yaman. 2012-06-27T03:15:54 < upgrdman> lol 2012-06-27T03:17:04 < dongs> http://www.youtube.com/watch?v=ZdHG5-K8E1E&feature=retarded 2012-06-27T03:17:06 < dongs> fix'd it for you 2012-06-27T03:34:37 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 245 seconds] 2012-06-27T03:34:59 < BrainDamage> dongs: http://www.amazon.com/Control-Christian-Marriages-Priesthood-Children/dp/1425992609/ 2012-06-27T03:37:04 < dongs> lfao 2012-06-27T03:44:53 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32 2012-06-27T04:09:32 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.] 2012-06-27T04:38:48 -!- voodoofish430 [~mtorres@NAT10.pas.idealab.com] has quit [Quit: Leaving.] 2012-06-27T04:42:32 -!- emeb [~ericb@ip72-223-89-137.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-27T04:54:46 -!- lawrenceseattle [~anonymous@66.192.187.106] has quit [Quit: lawrenceseattle] 2012-06-27T05:03:37 -!- peabody124 [~peabody12@ppp-94-66-60-5.home.otenet.gr] has joined ##stm32 2012-06-27T05:28:06 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-27T05:32:02 -!- lawrenceseattle [~anonymous@216.243.49.130] has joined ##stm32 2012-06-27T05:34:45 < dongs> lack of blog 2012-06-27T05:35:26 < cjbaird> woof 2012-06-27T05:35:32 < drgreenthumb> heh somehow that amazon link lead me to http://www.amazon.com/Layernet-40711ulator-20112-Woodcutter-Simulator/dp/B0056JCFEY/ref=pd_sim_sbs_b_8 lolwat? 2012-06-27T05:36:06 < drgreenthumb> I'm a lumberjack and I'm okay... 2012-06-27T05:39:32 < cjbaird> There can be more than one butch lumberjack, if that's your thing: it's muliplayer 2012-06-27T05:42:49 -!- [7] [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-27T05:42:55 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-27T05:45:21 < drgreenthumb> mmm multiplayer sawing. even more annoying than actual 2 person sawing :P 2012-06-27T05:50:49 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has joined ##stm32 2012-06-27T05:53:27 < dongs> haha 2012-06-27T05:58:15 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has quit [Ping timeout: 252 seconds] 2012-06-27T06:10:45 < upgrdman> f4 timers: ref man says "Interrupt/DMA generation on the update event: counter overflow" but my ISR is called on every increment, not just overflows/autoreloads... any ideas? 2012-06-27T06:15:20 < zippe> upgrdman: do you have the DMA output enabled? 2012-06-27T06:15:41 < zippe> IIRC you're using T6, are you sure that you're not seeing the DAC underrun interrupt? 2012-06-27T06:15:52 < upgrdman> no dma 2012-06-27T06:16:23 < upgrdman> yes tim6. i didnt turn on the DAC but i will check into that 2012-06-27T06:16:30 < zippe> Are you clearing UIF? 2012-06-27T06:16:51 < upgrdman> yes 2012-06-27T06:17:00 < upgrdman> i'll pastebin my working code 2012-06-27T06:18:37 < upgrdman> http://pastebin.com/SxgfLCSV 2012-06-27T06:18:48 < upgrdman> see the last line of that paste 2012-06-27T06:21:23 < zippe> So the doc for SR says you must not touch the other bits in it 2012-06-27T06:21:36 < zippe> so TIM6->SR &= ~1; 2012-06-27T06:21:55 < zippe> Try setting URS in CR1 as well 2012-06-27T06:22:46 < zippe> Also, if you don't set CEN in CR1, does your handler still get called? 2012-06-27T06:23:15 < zippe> One last one; in your while(1) loop, for extra elite points add volatile __asm__("wfi"); 2012-06-27T06:23:50 < dongs> lol 2012-06-27T06:23:56 < dongs> why not just use the cmsis intrinsic shit 2012-06-27T06:24:01 < dongs> incase someone tries to compile your crap wiht a real compiler 2012-06-27T06:24:07 < dongs> __wfi() or so; or maybe __WFI 2012-06-27T06:24:18 < dongs> zippe, i wonder why armcc doesnt allow inline asm 2012-06-27T06:24:21 < dongs> there must be a real good reason 2012-06-27T06:27:35 < upgrdman> zippe, the asm line gives: main.c:16:12: error: expected identifier or '(' before '__asm__' 2012-06-27T06:28:02 < dongs> do what i said. 2012-06-27T06:28:15 < dongs> __WFI(); 2012-06-27T06:29:00 < zippe> dongs: I asked them once. 2012-06-27T06:29:04 < zippe> dongs: they said "what"? 2012-06-27T06:29:14 < dongs> zippe, not trolling, srs question. 2012-06-27T06:29:21 < zippe> dongs: srs answer 2012-06-27T06:29:43 < zippe> dongs: we were talking real money for a port of armcc to another platform 2012-06-27T06:30:02 < dongs> "what" in this context makes zero sense 2012-06-27T06:30:19 < zippe> dongs: the folks we were talking to had no idea what "inline assembler" meant. 2012-06-27T06:30:40 < zippe> dongs: the concept of inserting text, verbatim, into the token stream going to their assembler had apparently not occurred to them 2012-06-27T06:30:56 < dongs> it supports inline asm on ARM 2012-06-27T06:30:59 < dongs> but not on thumb. 2012-06-27T06:31:12 < dongs> im thinking its due to the fact that 99.9% of the time compiler can do a better job than whatever the user thinks. 2012-06-27T06:31:36 < zippe> dongs: Sure; the issue is when there's no way to express what you want in the source language 2012-06-27T06:31:43 < zippe> case in point : WFI 2012-06-27T06:31:50 < upgrdman> SHIT! i tried 2012-06-27T06:31:53 < upgrdman> __WFI 2012-06-27T06:31:56 < zippe> or any of the CP register accesses 2012-06-27T06:32:08 < zippe> upgrdman: don't worry about it 2012-06-27T06:32:19 < upgrdman> now the red led by the headphone port is lit and stlink wont recognize my board 2012-06-27T06:32:20 < zippe> Go research it; I might have the syntax wrong. 8) 2012-06-27T06:32:38 < dongs> uhoh 2012-06-27T06:32:55 < zippe> upgrdman: which debugger are you using? 2012-06-27T06:33:14 < upgrdman> gdb but im not in the debugger right now 2012-06-27T06:33:21 < zippe> Ok. 2012-06-27T06:33:23 < upgrdman> hold on 2012-06-27T06:33:50 < upgrdman> red led went away 2012-06-27T06:33:55 < upgrdman> but damn, same error 2012-06-27T06:33:58 < upgrdman> 2012-06-26T20:33:21 WARN src/stlink-common.c: unknown chip id! 0 2012-06-27T06:34:06 < zippe> yes, that's "normal" 2012-06-27T06:34:09 < zippe> Unplug the board 2012-06-27T06:34:13 < zippe> Hold down the reset button 2012-06-27T06:34:20 < zippe> plug it in, still holding the reset button 2012-06-27T06:34:30 < zippe> start the stlink utility, still holding the reset button 2012-06-27T06:35:00 < zippe> Unless ST are dirtbags they won't have tied reset to TRST 2012-06-27T06:35:06 < zippe> That should get you back 2012-06-27T06:35:19 < upgrdman> 2012-06-26T20:34:47 WARN src/stlink-common.c: Verification of flash failed at offset: 0 2012-06-27T06:35:22 < zippe> some combination of the stlink tool and the stlink/v2 firmware gets confused occasionally 2012-06-27T06:35:36 < zippe> Uh, what are you trying to do? 2012-06-27T06:35:41 < zippe> re-flash it? 2012-06-27T06:36:07 < upgrdman> yes 2012-06-27T06:36:13 < zippe> by "the stlink utility" I meant their gdb server 2012-06-27T06:36:19 < upgrdman> ok 2012-06-27T06:36:21 < zippe> I think you mean "the flash tool", yes? 2012-06-27T06:36:25 < upgrdman> yes 2012-06-27T06:36:33 < zippe> Ok, so let go of the reset button and try again 2012-06-27T06:36:44 < zippe> The flasher needs the CPU to run, so you can't keep it in reset. 2012-06-27T06:36:54 < zippe> But basic debug access should work even with the CPU reset 2012-06-27T06:37:14 < dongs> can also reflash via uart bootlaoder for usre 2012-06-27T06:37:16 < dongs> sure 2012-06-27T06:37:20 < dongs> or maybe USB's DFU shit if its f4 2012-06-27T06:37:33 < dongs> or at least erase flash 2012-06-27T06:38:09 < zippe> Yeah, it may be as simple as the stlink tool doesn't understand how to get the core out of WFI 2012-06-27T06:38:25 < zippe> I need to fix blackmagic so that it will flash my F100 2012-06-27T06:38:34 < zippe> Then I can put the disco board back into the trash 2012-06-27T06:38:47 < upgrdman> k 2012-06-27T06:39:03 < upgrdman> what do i do after getting stutil and gdb up 2012-06-27T06:39:09 < zippe> Someone at work just gave me an lpc11U36, so I'm still distracted 2012-06-27T06:39:33 < zippe> hit 'c' to make it continue, then hit the reset button 2012-06-27T06:39:38 < zippe> You should stop at the reset vector 2012-06-27T06:40:01 < zippe> If you have recompiled your code, use 'load' to flash it 2012-06-27T06:40:06 < zippe> then 'run' to run i 2012-06-27T06:40:08 < zippe> t 2012-06-27T06:40:22 < upgrdman> Continuing. 2012-06-27T06:40:22 < upgrdman> Program received signal SIGTRAP, Trace/breakpoint trap. 2012-06-27T06:40:22 < upgrdman> 0x080003dc in main () 2012-06-27T06:40:30 < upgrdman> k 2012-06-27T06:42:11 < zippe> After a few dozen load/run cycles, gdb will usually crash 2012-06-27T06:42:19 < zippe> Just restart it and you should be OK 2012-06-27T06:42:46 < upgrdman> if i load, then c 2012-06-27T06:43:01 < upgrdman> i mean 2012-06-27T06:43:04 < upgrdman> load, then run 2012-06-27T06:43:04 < zippe> load / c will be insta-fail 2012-06-27T06:43:40 < upgrdman> load, then run, then ctrl-c i get dropped to: Reset_Handler () at startup_stm32f4xx.s:69 2012-06-27T06:45:09 < upgrdman> ok fixed it 2012-06-27T06:45:17 < upgrdman> now i can flash without gdb 2012-06-27T06:45:29 < upgrdman> so what causes this? random program when flashing? 2012-06-27T06:45:37 < upgrdman> (THANKS by the way!) 2012-06-27T06:45:46 < upgrdman> s/program/problem 2012-06-27T06:46:20 < zippe> Which "this"? 2012-06-27T06:46:37 < zippe> If you mean the "I don't know what chip this is", it's usually just the stlink chain failing somewhere 2012-06-27T06:47:17 < zippe> It screws up the JTAG interface and doesn't reset it properly when it tries to recover 2012-06-27T06:49:22 < upgrdman> yes, ok 2012-06-27T06:49:39 < upgrdman> hum 2012-06-27T06:50:11 < upgrdman> this problem crops back up if i put __WFI(); in my infinite loop... could that be what tripped up my MCU? 2012-06-27T06:51:12 < zippe> It's probably upsetting stlink 2012-06-27T06:57:49 -!- lawrenceseattle [~anonymous@216.243.49.130] has quit [Quit: lawrenceseattle] 2012-06-27T07:03:39 < upgrdman> this same problem happens if i switch to tim7 so i dont think the dac is the problem 2012-06-27T07:25:32 < dongs> sweet. my double usb socket power supply hax works 2012-06-27T08:00:15 -!- lawrenceseattle [~anonymous@216.243.49.130] has joined ##stm32 2012-06-27T08:09:41 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has quit [Quit: Leaving] 2012-06-27T08:14:09 -!- zippe [~Adium@173.11.99.161] has quit [Quit: Leaving.] 2012-06-27T08:24:17 -!- lawrenceseattle [~anonymous@216.243.49.130] has quit [Read error: Connection reset by peer] 2012-06-27T08:24:26 -!- lawrenceseattle [~anonymous@216.243.49.130] has joined ##stm32 2012-06-27T08:42:51 -!- lawrenceseattle_ [~anonymous@66.192.187.106] has joined ##stm32 2012-06-27T08:44:11 -!- peabody128 [~peabody12@ppp-94-66-78-127.home.otenet.gr] has joined ##stm32 2012-06-27T08:44:37 -!- lawrenceseattle [~anonymous@216.243.49.130] has quit [Ping timeout: 246 seconds] 2012-06-27T08:44:37 -!- lawrenceseattle_ is now known as lawrenceseattle 2012-06-27T08:46:19 -!- peabody124 [~peabody12@ppp-94-66-60-5.home.otenet.gr] has quit [Ping timeout: 264 seconds] 2012-06-27T08:46:19 -!- peabody128 is now known as peabody124 2012-06-27T09:06:36 -!- blkcat [~colin@cider.blkcat.net] has quit [Ping timeout: 244 seconds] 2012-06-27T09:18:50 -!- blkcat [~colin@cider.blkcat.net] has joined ##stm32 2012-06-27T09:19:08 -!- blkcat [~colin@cider.blkcat.net] has quit [Remote host closed the connection] 2012-06-27T09:42:40 < dongs> orr, nope it doesnt. 2012-06-27T09:42:44 < dongs> blaming: zyp + Laurenceb 2012-06-27T09:50:00 -!- ntfreak_ [~ntfreak@unaffiliated/ntfreak] has joined ##stm32 2012-06-27T09:53:05 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has quit [Ping timeout: 260 seconds] 2012-06-27T09:54:38 -!- peabody124 [~peabody12@ppp-94-66-78-127.home.otenet.gr] has quit [Ping timeout: 240 seconds] 2012-06-27T10:06:21 -!- Netsplit *.net <-> *.split quits: lawrenceseattle 2012-06-27T10:07:13 -!- Netsplit over, joins: lawrenceseattle 2012-06-27T10:22:49 < Tectu> is this actually shadowing which i did? http://h11.abload.de/img/20120627_0907516ojn3.jpg 2012-06-27T10:22:59 < Tectu> dosen't look similar... http://www.google.ch/imgres?q=linux+console+dialog&um=1&hl=de&client=firefox-a&rls=org.mozilla:en-US:official&biw=1678&bih=942&tbm=isch&tbnid=I1MSMy26dSVo_M:&imgrefurl=http://www.cc-c.de/german/linux/linux-dialog.php&docid=-_qcWXVMMXoilM&imgurl=http://www.cc-c.de/images/computer/dialog.png&w=676&h=507&ei=lrTqT7yAE5LR4QSnp-zJAg&zoom=1&iact=rc&dur=271&sig=110367877552391169515&page=2&tbnh=144&tbnw=190&start=40&ndsp=47&ved=1t:429,r:20,s:40,i 2012-06-27T10:23:00 < Tectu> :259&tx=84&ty=74 2012-06-27T10:23:09 < Tectu> woops, working link: http://www.cc-c.de/images/computer/dialog.png 2012-06-27T10:23:31 < dongs> http://i.imgur.com/QHEQh.jpg finally i can stop failing 2012-06-27T10:23:54 < dongs> Tectu: what the fuck am i looking at. looks like lunix 2012-06-27T10:24:50 < Tectu> why do you keep saying lunix 2012-06-27T10:24:58 < Tectu> lunix is another project 2012-06-27T10:24:59 < Tectu> based on linux 2012-06-27T10:27:35 -!- izua [~izua@86.121.2.213] has joined ##stm32 2012-06-27T10:27:36 -!- izua [~izua@86.121.2.213] has quit [Changing host] 2012-06-27T10:27:36 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-27T10:27:38 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-27T10:29:41 < dongs> Tectu: tehy have something in common 2012-06-27T10:29:47 < dongs> they both fucking suck 2012-06-27T10:29:56 < dongs> so i can use either one 2012-06-27T10:31:41 -!- lawrenceseattle_ [~anonymous@216.243.49.130] has joined ##stm32 2012-06-27T10:31:48 < cjbaird> Lunix was a system for the Commodore 64.. Therefore, couldn't suck. 2012-06-27T10:33:08 -!- lawrenceseattle [~anonymous@66.192.187.106] has quit [Ping timeout: 240 seconds] 2012-06-27T10:33:08 -!- lawrenceseattle_ is now known as lawrenceseattle 2012-06-27T10:40:18 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-27T10:40:37 < pelrun> dammit I've got two exti pending interrupt bits THAT WON'T TURN OFF 2012-06-27T10:40:44 < Tectu> looks better now, eh? http://www.abload.de/img/20120627_0932278c5en.jpg 2012-06-27T10:41:23 < cjbaird> PUSH BUTTON 2012-06-27T10:43:24 < Tectu> no 2012-06-27T10:44:30 < dongs> PRES BUTAN 2012-06-27T10:45:40 < Tectu> no 2012-06-27T10:45:48 < dongs> NO U 2012-06-27T10:46:30 < cjbaird> 4chan memes belong on 4chan, doggie. 2012-06-27T10:47:32 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has joined ##stm32 2012-06-27T10:50:05 < dongs> ??? 2012-06-27T10:50:19 < dongs> i was pressing butans long before 4chan even existed BRO 2012-06-27T10:50:45 -!- dekar [~dekar@212.255.21.238] has quit [Read error: Connection reset by peer] 2012-06-27T10:51:02 < Laurenceb_> #stm32chan 2012-06-27T10:51:19 < dongs> ya he keeps trollin 2012-06-27T10:51:22 -!- dekar [~dekar@212.255.21.238] has joined ##stm32 2012-06-27T10:51:30 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-27T10:55:41 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-06-27T11:01:23 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-06-27T11:22:31 -!- lawrenceseattle [~anonymous@216.243.49.130] has quit [Quit: lawrenceseattle] 2012-06-27T11:28:43 < pelrun> push button 2012-06-27T11:28:46 < pelrun> receive bacon 2012-06-27T11:46:30 < dongs> http://i.imgur.com/Zgu9U.png lol guise 2012-06-27T11:54:48 < cjbaird> What I spent the afternoon doing: https://imgur.com/3iCpH .. (http://boards.4chan.org/ck/res/3700340) 2012-06-27T12:04:27 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer] 2012-06-27T12:04:40 -!- ntfreak_ is now known as ntfreak 2012-06-27T12:15:21 < Thorn> bitbanged sdram x_x http://retromaster.wordpress.com/pic32/interfacing-sdram-to-pic32/ 2012-06-27T12:16:58 < Laurenceb> i love how you post your stuff to 4chan 2012-06-27T12:18:32 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has quit [Quit: This computer has gone to sleep] 2012-06-27T12:28:37 -!- peabody124 [~peabody12@ppp-94-66-78-127.home.otenet.gr] has joined ##stm32 2012-06-27T12:30:33 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-27T12:36:34 < cjbaird> moot's too stupid to make any serious money off the Web2.0-make-gigamonies-off-other-peoples-work-with-a-centralized-website-service thing, so I consider it still a tier above something like Facebook.. 2012-06-27T12:37:10 < karlp> wow, a 4chan link that wasn't dead by the time I clicked it 2012-06-27T12:39:19 < cjbaird> Someone just needs to make a proper GUI interface to Usenet, and 4chan would be dead.. 2012-06-27T12:40:20 -!- peabody124 [~peabody12@ppp-94-66-78-127.home.otenet.gr] has quit [Quit: peabody124] 2012-06-27T12:40:35 < karlp> just because "better" alternatives exist doesn't mean anything automatically dies 2012-06-27T12:41:28 < Laurenceb> trolls trolling trolls 2012-06-27T12:44:23 < cjbaird> alt.tasteless predates /b/ by about 15 years.. It seemed a lot of the early guys on /b/ were Usenet reffos. I certainly was. 2012-06-27T12:46:31 < Laurenceb> and nazis 2012-06-27T12:47:32 < Laurenceb> and pedos 2012-06-27T12:49:49 < cjbaird> hell yeah. alt.sex.stories.teens 2012-06-27T12:50:25 < cjbaird> (and the matching alt.binaries.pictures newgroup..) 2012-06-27T12:53:06 < cjbaird> It was a PITA being the newsmaster of a system that gatewayed Fidonet BBS for the state. "GIMME FULL ABPE FEED PLEASE! I'LL PAY $20 A YEAR!" 2012-06-27T12:54:10 < cjbaird> Those BBS were running off Amigas for some /strange/ reason.. Gee. 2012-06-27T12:58:37 -!- BrainDamage [~BrainDama@78.12.235.38] has joined ##stm32 2012-06-27T13:37:53 < karlp> reffos? == refugee? 2012-06-27T13:41:28 < cjbaird> check 2012-06-27T13:46:06 < Laurenceb> anyone know how i work out charge current termination threshold for lipo cells? 2012-06-27T13:54:12 < karlp> apply power until thing sburn, call it good? 2012-06-27T13:54:33 < cjbaird> ask this guy: http://www.rcgroups.com/forums/showthread.php?t=1677843 2012-06-27T14:00:25 -!- GargantuaSauce [~sauce@blk-252-42-151.eastlink.ca] has quit [Ping timeout: 260 seconds] 2012-06-27T14:03:40 -!- GargantuaSauce [~sauce@blk-252-42-151.eastlink.ca] has joined ##stm32 2012-06-27T14:11:40 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-27T14:19:45 < ratatata> nu 2012-06-27T14:20:39 < Tectu> nu 2012-06-27T14:51:55 -!- dekar [~dekar@212.255.21.238] has quit [Quit: Leaving] 2012-06-27T14:58:31 < Laurenceb> http://newsthump.com/2010/12/17/uk-prison-sex-still-woefully-inadequate-claims-whistleblower-assange/ 2012-06-27T15:47:03 < dongs> http://www.rcgroups.com/forums/showthread.php?t=1679702 2012-06-27T15:47:06 < dongs> are these eurofags for real 2012-06-27T15:51:38 < karlp> what do you mean? 2012-06-27T15:51:58 < karlp> woo, boothbabes 2012-06-27T16:28:21 < Laurenceb> http://www.youtube.com/watch?v=rkEHIv1o7u8 2012-06-27T16:30:48 < dongs> lol 2012-06-27T16:32:03 < dongs> where's the buy now button 2012-06-27T16:32:13 < dongs> paypal ready 2012-06-27T16:32:19 < Laurenceb> custom built by EADS :( 2012-06-27T16:32:36 < dongs> lol? military dudes? 2012-06-27T16:32:40 < Laurenceb> for electric flight manned speed record 2012-06-27T16:32:42 < Laurenceb> yes 2012-06-27T16:32:46 < dongs> fgts 2012-06-27T16:32:55 < Laurenceb> it does 300mph 2012-06-27T16:33:09 < dongs> i wanan see the esc 2012-06-27T16:33:11 < Thorn> lol CO^2 2012-06-27T16:33:13 < dongs> is it > 200A??? 2012-06-27T16:33:17 < Thorn> they fail at chemistry 2012-06-27T16:33:23 < Laurenceb> theres some shots somewhere.. just a sec 2012-06-27T16:33:36 < dongs> and is it all nfet or p/n fet 2012-06-27T16:33:37 < dongs> !! 2012-06-27T16:34:31 < dongs> did you see the circuit i haxed today 2012-06-27T16:34:39 < dongs> 17:46 < dongs> http://i.imgur.com/Zgu9U.png 2012-06-27T16:35:04 < Laurenceb> http://www.e-motor.fr/Moteurs/luciole_engine02.jpg 2012-06-27T16:35:21 < dongs> wtf?? 2012-06-27T16:35:24 < dongs> thats not the same shit 2012-06-27T16:35:27 < Laurenceb> it is 2012-06-27T16:35:31 < dongs> what hte fuck is it then 2012-06-27T16:35:34 < dongs> a turbine? 2012-06-27T16:35:46 < Laurenceb> brushless 2012-06-27T16:35:53 < dongs> o wait, this is like one of the motor pods? 2012-06-27T16:36:00 < dongs> opened up 2012-06-27T16:36:02 < Laurenceb> yes 2012-06-27T16:36:08 < dongs> ok. makes a bit more sense 2012-06-27T16:36:10 < dongs> i see hte hueg + sign 2012-06-27T16:36:11 < dongs> lol 2012-06-27T16:36:50 < Laurenceb> theres a fly on it 2012-06-27T16:37:07 < dongs> I see it 2012-06-27T16:38:36 -!- NonaSuomy [~TeknoJuce@bas1-london15-2925201294.dsl.bell.ca] has joined ##stm32 2012-06-27T16:38:36 -!- NonaSuomy [~TeknoJuce@bas1-london15-2925201294.dsl.bell.ca] has quit [Changing host] 2012-06-27T16:38:36 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-27T16:40:08 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has joined ##stm32 2012-06-27T16:41:13 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 244 seconds] 2012-06-27T16:42:44 < cjbaird> can't unsee now 2012-06-27T16:50:17 < dongs> so any comments on my analog filth 2012-06-27T17:10:23 < Laurenceb> what does it do? 2012-06-27T17:10:51 < dongs> powers all or half the c ircuit depending on wehre power is plugged in 2012-06-27T17:12:44 < Laurenceb> wtf 2012-06-27T17:14:00 < Laurenceb> hmm ok 2012-06-27T17:14:04 < Laurenceb> seems overcomplex 2012-06-27T17:14:11 < dongs> really? the obvious way d idnt work. 2012-06-27T17:14:18 < dongs> i.e. p/n fet 2012-06-27T17:14:28 < dongs> the super obvious with diode is too much voltage drop 2012-06-27T17:15:12 < Laurenceb> why doesn p/n work? 2012-06-27T17:15:21 < dongs> bceause voltage ramps up 2012-06-27T17:15:25 < dongs> its not instant on 2012-06-27T17:15:34 < dongs> it leaks, and ends up turning on nfet and failing. 2012-06-27T17:17:50 < Laurenceb> hmm 2012-06-27T17:17:54 < Laurenceb> you need some resistors 2012-06-27T17:17:58 < dongs> didnt help 2012-06-27T17:18:34 < Laurenceb> http://en.wikipedia.org/wiki/Persistent_genital_arousal_disorder 2012-06-27T17:18:44 < dongs> isnt that priarpism 2012-06-27T17:19:02 < dongs> oh, the femail version. 2012-06-27T17:25:43 < cjbaird> clinks the priapism link, Wikipedia article doesn't have a close-up photo of a cock. WP is no longer what it used to me.. 2012-06-27T17:26:48 < cjbaird> *used to be.. 2012-06-27T17:27:12 < dongs> ya, disappoint. 2012-06-27T17:28:34 < cjbaird> https://en.wikipedia.org/wiki/Virginal_breast_hypertrophy ..used to have an /awesome/ pic of a ~15 year-old with the condition. Don't bother looking, it's gone now. ;_; 2012-06-27T17:32:15 < gnomad> I'm beginning to think that this group is even more random that #43oh... 2012-06-27T17:32:43 < dongs> blame on Laurenceb / cjbaird 2012-06-27T17:33:44 < Laurenceb> and pedos 2012-06-27T17:33:48 < Laurenceb> ^i was right 2012-06-27T17:34:03 < gnomad> personally I don't mind the OT so long as it is tech/geek related... 2012-06-27T17:35:08 < gnomad> but for the rest, I am sure that one of the other 50,000 channels on IRC is more apropriate. 2012-06-27T17:35:18 < Laurenceb> #pedo 2012-06-27T17:35:50 < Laurenceb> usr/share/inkscape/extensions/ps2dxf.sh: line 5: 4450 Segmentation fault pstoedit -f dxf "$1" "${TEMPFILENAME}" > /dev/null 2>&1 2012-06-27T17:35:54 < Laurenceb> in b4 dongs 2012-06-27T17:36:11 < dongs> haha, lunix failing 2012-06-27T17:36:15 < dongs> cuz everythign is a FAIL 2012-06-27T17:42:53 < Laurenceb> yeah inkscape is failing badly 2012-06-27T17:43:54 < dongs> inkkkscape 2012-06-27T17:44:02 < cjbaird> I'm going to laugh rather heartily when that 43oh.com site goes down, and all the code and articles from that community disappear for good.. 2012-06-27T17:44:14 < dongs> waht the fuck is ti 2012-06-27T17:44:42 < dongs> site seems dead 2 me 2012-06-27T17:44:55 < dongs> oh msp430 2012-06-27T17:44:55 < dongs> wtf 2012-06-27T17:45:20 < dongs> haha they have irc 2012-06-27T17:45:23 < dongs> time2troll 2012-06-27T17:45:54 < cjbaird> Good idea. 2012-06-27T17:46:15 < BrainDamage> sometimes I wonder if dongs and Laurenceb are paid to troll 2012-06-27T17:46:26 < dongs> i am 2012-06-27T17:46:28 < dongs> dunnoabout him 2012-06-27T17:46:33 < cjbaird> "Hey guise. I was trying to download the code on 43oh that Google referred to, but it's no longer available.." 2012-06-27T17:47:29 < Laurenceb> why is it going down? 2012-06-27T17:48:37 < cjbaird> I got sick of the channel's constant "WhY dOn'T u ReGiStEr WiTh EvErY wEbSiGhT oN tHe NeT???" whining. Fuck sites that only exist to make money off other people. 2012-06-27T17:51:07 < dongs> are they on feenode? 2012-06-27T17:51:09 < dongs> or OFTC 2012-06-27T17:51:50 < cjbaird> Here, #43oh. 2012-06-27T17:53:15 < dongs> wth 2012-06-27T17:53:20 < dongs> there's more people there than here 2012-06-27T17:55:32 -!- tavish [~tavish@59.177.13.121] has joined ##stm32 2012-06-27T17:55:33 -!- tavish [~tavish@59.177.13.121] has quit [Changing host] 2012-06-27T17:55:33 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-27T17:59:54 < karlp> is the 43oh site run by TI, not "the community" cjbaird? 2012-06-27T18:01:00 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-27T18:04:06 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 255 seconds] 2012-06-27T18:04:20 -!- NonaSuomy [~TeknoJuce@bas1-london15-2925201294.dsl.bell.ca] has joined ##stm32 2012-06-27T18:04:20 -!- NonaSuomy [~TeknoJuce@bas1-london15-2925201294.dsl.bell.ca] has quit [Changing host] 2012-06-27T18:04:20 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-27T18:04:56 < gnomad> 43oh is not run by TI. 2012-06-27T18:04:57 < cjbaird> No, it's site that was set up to be a commercial flog blog by someone no directly involved with TI. The forums are "year 2002 thinking" about trying to tie people to the site, with active discoragement from users using other places (github et.al). Its attitude is way too much like geocaching.com for my liking. 2012-06-27T18:05:36 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 250 seconds] 2012-06-27T18:05:45 < cjbaird> That they've succeeded into 'taking over' the open source MSP430 scene is annoying. 2012-06-27T18:05:47 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925201294.dsl.bell.ca] has joined ##stm32 2012-06-27T18:05:48 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925201294.dsl.bell.ca] has quit [Changing host] 2012-06-27T18:05:48 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-27T18:07:50 < karlp> talks more to msp430 users than anything else 2012-06-27T18:07:57 < karlp> but, same as avrfreaks right? 2012-06-27T18:07:59 < cjbaird> That, and using phpBB for a /technical/ forum is fucking stupid. 2012-06-27T18:08:23 < karlp> why does it matter what forum software they use? 2012-06-27T18:08:31 < cjbaird> avrfreaks was probably the inspiration, but I've never used the sites. 2012-06-27T18:09:21 < cjbaird> phpBB/vBulletin makes for low signal/noise 'chatty' forums. Find me one which doesn't have posting whores... 2012-06-27T18:09:22 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 265 seconds] 2012-06-27T18:10:15 < cjbaird> ..who of course have some 700kB image signature linked from photobucket... 2012-06-27T18:10:21 < dongs> lulz 2012-06-27T18:10:29 < dongs> wahts your definition of a nonchatty forum then 2012-06-27T18:10:29 < karlp> so what, changing forum software instantly makes the users better? 2012-06-27T18:11:00 < cjbaird> It's the whole style/interface of forum. 2012-06-27T18:11:27 < cjbaird> "It's not a technical discussion board, it's a chatline!!11" 2012-06-27T18:11:46 < gnomad> Personally, I hate forums. mailing lists works much better. 2012-06-27T18:12:14 < gnomad> the people who don't like mailing lists are the people too stupid to figure out how to filter their email. 2012-06-27T18:12:56 < gnomad> that's a big part of the reason why mailing lists are so much better -- they are great idiot filters. 2012-06-27T18:13:15 < cjbaird> There was a great talk several years ago at a Linux.conf about /why/ Linux's kernel devs have stuck with the mailing-list forum (+irc) model in the face of phpBB and friends.. The word "sucks" was used a lot, but wasn't the only reason.. 2012-06-27T18:13:39 -!- NonaSuomy [~TeknoJuce@bas1-london15-2925201294.dsl.bell.ca] has joined ##stm32 2012-06-27T18:13:39 -!- NonaSuomy [~TeknoJuce@bas1-london15-2925201294.dsl.bell.ca] has quit [Changing host] 2012-06-27T18:13:39 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-27T18:15:07 < cjbaird> gnomad: that was said at the conference. 2012-06-27T18:16:00 < karlp> I don't mind what the project uses, as long as it uses _one_ interface. 2012-06-27T18:16:16 < karlp> when there's mailing lists _and_ forums, it all goes to shit. 2012-06-27T18:16:27 < cjbaird> true dat 2012-06-27T18:16:44 < karlp> mailing lists are fine as long they have people on them that live in the world where attachments are ok. 2012-06-27T18:17:02 < karlp> this everything must be inlined, everything must be perfectly spaced madness is a pain 2012-06-27T18:17:09 < pelrun> aaargh 2012-06-27T18:17:09 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 255 seconds] 2012-06-27T18:17:23 < pelrun> got to the bottom of a bug that has plagued me for hours 2012-06-27T18:17:32 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925201294.dsl.bell.ca] has joined ##stm32 2012-06-27T18:17:33 -!- TeknoJuce [~TeknoJuce@bas1-london15-2925201294.dsl.bell.ca] has quit [Changing host] 2012-06-27T18:17:33 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-27T18:17:35 < pelrun> in the end I was shoving a 32bit value in an 8bit variable 2012-06-27T18:17:37 < pelrun> :P 2012-06-27T18:17:40 < dongs> gg 2012-06-27T18:17:44 < dongs> i did that few times 2012-06-27T18:17:48 < dongs> something like for() loop 2012-06-27T18:17:51 < dongs> with a uint8_t 2012-06-27T18:17:55 < dongs> looping 16000 times 2012-06-27T18:18:02 < dongs> and i was like wats up with it not working??? 2012-06-27T18:18:09 < pelrun> heh 2012-06-27T18:18:33 < pelrun> oh well, code working now 2012-06-27T18:18:35 < pelrun> can relax 2012-06-27T18:18:43 < pelrun> OH SHIT WE'RE ALL GOING TO DIE ONE DAY 2012-06-27T18:19:01 < cjbaird> Ha, I had that bug last night as well. 2012-06-27T18:19:01 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 250 seconds] 2012-06-27T18:20:07 < pelrun> I'd switched over from doing (1 << x) to storing the bit mask in x 2012-06-27T18:20:15 < pelrun> stupid 2012-06-27T18:22:30 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-27T18:25:53 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 246 seconds] 2012-06-27T18:28:11 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-27T18:28:42 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 265 seconds] 2012-06-27T18:29:59 -!- tavish [~tavish@59.177.13.121] has joined ##stm32 2012-06-27T18:30:00 -!- tavish [~tavish@59.177.13.121] has quit [Changing host] 2012-06-27T18:30:00 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-27T18:31:12 -!- dekar [~dekar@212.255.21.238] has joined ##stm32 2012-06-27T18:31:17 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-27T18:31:27 -!- emeb [~ericb@ip72-223-89-137.ph.ph.cox.net] has joined ##stm32 2012-06-27T18:42:37 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer] 2012-06-27T18:43:03 -!- NonaSuomy [~TeknoJuce@bas1-london15-2925201294.dsl.bell.ca] has joined ##stm32 2012-06-27T18:43:04 -!- NonaSuomy [~TeknoJuce@bas1-london15-2925201294.dsl.bell.ca] has quit [Changing host] 2012-06-27T18:43:04 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-27T19:09:41 -!- peabody124 [~peabody12@ppp-94-66-57-165.home.otenet.gr] has joined ##stm32 2012-06-27T19:10:39 < Rickta59> " with active discoragement from users using other places (github et.al)" .. what does that mean 2012-06-27T19:14:16 < Rickta59> I like the 43oh.com experienc 2012-06-27T19:14:26 < Rickta59> I don't think he is out to make money 2012-06-27T19:14:55 < Rickta59> maybe he is making a small amount of money but that isn't the motivation from what I can tell 2012-06-27T19:15:16 < Rickta59> the site makes it easier to get up and running with electronics 2012-06-27T19:15:40 < Rickta59> community members have got together and done group buys on electronics 2012-06-27T19:15:53 < Rickta59> http://www.43oh.com/forum/viewtopic.php?f=22&t=2163 2012-06-27T19:16:18 < Rickta59> cc2500 rf modules for $1.58 .. because a bunch of people got together and purchased in bulk 2012-06-27T19:16:57 < Rickta59> then someone other member created a pcb for it and did another group buy 2012-06-27T19:17:22 < Rickta59> seems like a good model to me 2012-06-27T19:18:00 -!- peabody124 [~peabody12@ppp-94-66-57-165.home.otenet.gr] has quit [Quit: peabody124] 2012-06-27T19:20:03 < Rickta59> i got 3 pcbs for $4.15 .. and it wasn't from the guy running the site .. just another member organizing it 2012-06-27T19:21:33 < Rickta59> the guy who maintains msp430-gcc goes there and asks questions because he isn't as knowledgeable about electronics as he is about software engineering. No one beats him up and calls him and idiot .. they just answer his questions if they can 2012-06-27T19:51:13 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-27T19:51:15 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-27T19:51:23 <+Steffanx> Nu 2012-06-27T19:51:59 -!- tavish_ [~tavish@59.177.7.190] has joined ##stm32 2012-06-27T19:53:46 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 265 seconds] 2012-06-27T20:01:56 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-06-27T20:22:57 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-06-27T20:32:03 <+Steffanx> dekar wants the new nexus 7? 2012-06-27T20:32:10 <+Steffanx> voor 'only' 199$ ? 2012-06-27T20:32:26 -!- gnomad [~gnomad@c-71-203-29-67.hsd1.fl.comcast.net] has quit [Quit: Leaving] 2012-06-27T20:39:51 -!- izua [~izua@86.121.2.213] has joined ##stm32 2012-06-27T20:39:52 -!- izua [~izua@86.121.2.213] has quit [Changing host] 2012-06-27T20:39:52 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-06-27T20:39:55 -!- mode/##stm32 [+v izua] by ChanServ 2012-06-27T20:53:11 -!- lawrenceseattle [~anonymous@66.192.187.106] has joined ##stm32 2012-06-27T21:07:46 -!- voodoofish430 [~mtorres@NAT10.pas.idealab.com] has joined ##stm32 2012-06-27T21:31:19 -!- tavish_ [~tavish@59.177.7.190] has quit [Quit: leaving] 2012-06-27T21:31:31 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has joined ##stm32 2012-06-27T21:31:32 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has joined ##stm32 2012-06-27T21:33:50 < szczys> what is the virtue of the GPIO locking mechanism on STM32 chips? 2012-06-27T21:38:14 < Rickta59> so you don't mess up the directions of the bits or the configuration 2012-06-27T21:38:49 < szczys> like a safety if you have fragile hardware connected? 2012-06-27T21:39:02 < szczys> so you init the I/O then lock it before starting the program running? 2012-06-27T21:39:22 < jpa-> yeah 2012-06-27T21:39:26 < Rickta59> yeah i think that is how it is supposed to work 2012-06-27T21:39:48 < szczys> okay, didn't know if there was some kind of like consumer product IP security feature that it provided or whatever 2012-06-27T21:40:19 < Rickta59> I think once you lock it you can't change it until you reset 2012-06-27T21:41:21 < szczys> yes, I believe you're right 2012-06-27T21:42:33 < jpa-> some other peripherals have similar safety features 2012-06-27T21:43:13 < jpa-> for example, the timers have a feature to connect hardware "safety stop switch" that puts three-phase motor to brake, and that config can also be locked 2012-06-27T21:43:15 < Rickta59> does the flash subsystem allow you to prevent reads once programmed? jpa-? on the cortex m 2012-06-27T21:43:38 < jpa-> Rickta59: topic 2012-06-27T21:44:02 < Rickta59> thanks 2012-06-27T21:53:42 -!- emeb [~ericb@ip72-223-89-137.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-27T21:54:01 -!- emeb [~ericb@ip72-223-89-137.ph.ph.cox.net] has joined ##stm32 2012-06-27T22:05:08 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 240 seconds] 2012-06-27T22:09:58 <+dekar> Steffanx, nexus 7? 2012-06-27T22:10:01 <+dekar> what's that? 2012-06-27T22:10:21 < Laurenceb_> trolling irl sucks 2012-06-27T22:10:37 < Laurenceb_> i just got scratched in the face when one of my victims raged 2012-06-27T22:11:03 < karlp> what, you want us to feel sorry for you or something? 2012-06-27T22:11:13 <+Steffanx> Some google gadget dekar 2012-06-27T22:11:22 < Laurenceb_> hehe 2012-06-27T22:11:29 <+Steffanx> It's a tablet 2012-06-27T22:11:34 <+dekar> Steffanx, I usually do like the google phones 2012-06-27T22:11:37 <+dekar> oh tablet -.- 2012-06-27T22:11:41 <+dekar> I'll pass then 2012-06-27T22:11:41 < Laurenceb_> id got all the reduced food and was juggling with it 2012-06-27T22:11:52 <+Steffanx> ~$199 2012-06-27T22:11:52 <+dekar> don't like tablets 2012-06-27T22:12:09 < Laurenceb_> me neither 2012-06-27T22:12:11 <+dekar> Steffanx, the microsoft surface ones look epic though 2012-06-27T22:12:19 <+dekar> I like the keyboard cover and stand thing 2012-06-27T22:12:37 <+Steffanx> Use the companies CC dekar 2012-06-27T22:12:42 < drgreenthumb> epic fail maybe. it BSOD'd in the press conference 2012-06-27T22:12:48 < Laurenceb_> heh 2012-06-27T22:13:30 <+dekar> drgreenthumb, I don't care about the OS 2012-06-27T22:13:41 <+dekar> wouldn't want to use windows anyway 2012-06-27T22:14:03 < drgreenthumb> dekar, that could indicate hardware issues. maybe it overheated like an XBox :P 2012-06-27T22:14:11 < BrainDamage> Laurenceb; who did you troll and why? 2012-06-27T22:14:36 < Laurenceb_> id got all the reduced food and was juggling with it in front of the people who were behind me 2012-06-27T22:15:08 <+Steffanx> That's not trolling, that's silly 2012-06-27T22:15:40 < drgreenthumb> it would be trolling if he's wearing socks and sandals. 2012-06-27T22:16:11 < Laurenceb_> well they were trying to push me out of the way so it served them right 2012-06-27T22:16:19 <+dekar> drgreenthumb, well I'd check for issues before buying it 2012-06-27T22:16:40 <+dekar> but I do like the hardware they showed 2012-06-27T22:16:44 < drgreenthumb> dekar, heh exactly. I'll reserve judgement until some reviewers get their hands on it 2012-06-27T22:17:23 <+dekar> and I think it wasn't a bad decision to make the hardware as well as the software 2012-06-27T22:18:49 <+dekar> hmm 199usd… ups display… quadcore 2012-06-27T22:18:58 <+dekar> *ips display 2012-06-27T22:19:05 <+Steffanx> You don't like tablets 2012-06-27T22:19:11 <+dekar> one day I'll kill my macbook, autocorrect sucks 2012-06-27T22:19:24 < drgreenthumb> heh I'd rather just get an allwinner tablet anyways. 2012-06-27T22:19:24 <+Steffanx> Disable that 'shit'? 2012-06-27T22:19:42 <+dekar> Steffanx, too lazy to look up where to disable it 2012-06-27T22:19:52 <+Steffanx> Time to die 2012-06-27T22:19:56 < BrainDamage> does the ups display gets shipped few weeks after the phone arrives? 2012-06-27T22:20:59 <+dekar> BrainDamage, no, but shipping it is unmetered, you can ship that display worldwide for free! 2012-06-27T22:28:27 < Laurenceb_> http://www.downloadmoreram.com/ 2012-06-27T22:34:33 <+Steffanx> You need life.zip first Laurenceb_ 2012-06-27T23:13:31 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has quit [Read error: Connection reset by peer] 2012-06-27T23:15:54 < karlp> hmm, have free time to work on projects, but feeling far too lazy to do it :| 2012-06-27T23:16:06 < karlp> and I've finished the internet :( 2012-06-27T23:24:39 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has joined ##stm32 2012-06-27T23:27:15 < Laurenceb_> do i connect n type substrate to VDD or GND? 2012-06-27T23:30:35 < Laurenceb_> im guessing VDD or i get a load of PN junctions to gnd? 2012-06-27T23:30:39 < Laurenceb_> is that how it works? 2012-06-27T23:32:46 < BrainDamage> I already told you vdd 2012-06-27T23:33:06 < BrainDamage> you want the bulk's pn junctions to NEVER go in direct 2012-06-27T23:33:12 * Laurenceb_ fails at scrollback 2012-06-27T23:33:22 < Laurenceb_> ive screwed this pcb now :( 2012-06-27T23:33:38 < Laurenceb_> going to have to lift a pin and get the copper wire out 2012-06-27T23:34:09 < Laurenceb_> or i could flip the ic 180degrees... 2012-06-27T23:34:30 < Laurenceb_> http://uk.farnell.com/omron-electronic-components/2smpp-02/pressure-sensor-37kpa-1-2-6mm/dp/1858453 2012-06-27T23:34:43 < Laurenceb_> do you think it will work with the drive current reversed? 2012-06-27T23:36:03 < Laurenceb_> im no ic fabrication expert 2012-06-27T23:36:18 < Laurenceb_> im guessing n type substrate with doping or something? 2012-06-27T23:36:50 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-27T23:38:13 < Laurenceb_> my multimeter thinks its a load of resistors 2012-06-27T23:38:26 < BrainDamage> if you reverse bias the PN junction of the bulk a shitload of current will flow trough it 2012-06-27T23:38:40 < BrainDamage> and you risk burning the chip 2012-06-27T23:38:42 < Laurenceb_> sure, i means the ICC and GND pins 2012-06-27T23:38:54 < Laurenceb_> if i flip the ic 180degrees so they are reversed 2012-06-27T23:39:12 < Laurenceb_> if its just doped tracks that are resistive, then it should run fine right? 2012-06-27T23:39:28 < BrainDamage> in that case it might work 2012-06-27T23:39:34 < Laurenceb_> it looks like a neat way to fix the issue 2012-06-27T23:39:49 < BrainDamage> the only issue I have in mind is the metal-semiconductor junctions 2012-06-27T23:39:53 < BrainDamage> at the bonding pads 2012-06-27T23:40:17 < Laurenceb_> but there is one at both pins? 2012-06-27T23:40:18 < BrainDamage> I hope they added ion implantation to make sure it's ohmic and not another diodes 2012-06-27T23:40:58 < BrainDamage> well, depends if they contact doped Si or polysilicon 2012-06-27T23:41:00 < Laurenceb_> multimeter seems to think its ohmic in both directions 2012-06-27T23:41:21 < Laurenceb_> which is ohmic? 2012-06-27T23:41:30 < BrainDamage> poly is ohmic 2012-06-27T23:41:50 < BrainDamage> I'm going to trust your multimeter and tell you to try it 2012-06-27T23:41:53 < BrainDamage> you should be ok 2012-06-27T23:42:07 < Laurenceb_> ok 2012-06-27T23:42:25 < Laurenceb_> the honeywell datasheet says they work in either direction 2012-06-27T23:42:39 < Laurenceb_> and they seem to be similar construction 2012-06-27T23:43:12 < Laurenceb_> ill have a play around tomorrow with my decent hot air station 2012-06-27T23:43:34 < Laurenceb_> need to lift the sensors off 2012-06-27T23:46:04 < Laurenceb_> will leaving the substrate floating give any issues? 2012-06-27T23:46:13 < Laurenceb_> datasheet seems to show it floating 2012-06-27T23:47:48 < Laurenceb_> is it only there to help with EMI here? 2012-06-27T23:47:59 < Laurenceb_> -the substrate pin 2012-06-27T23:50:24 < BrainDamage> mmm, thing is, if you leave it floating, the pn junction will make a more or less global short if by chance it goes to a potential higher than a part of your circuit 2012-06-27T23:50:45 < BrainDamage> as in, any area where the pn-junction is actively polarized, leaks current and is sorta shorted 2012-06-27T23:51:04 < BrainDamage> and you got a potential gradient all the way from vcc to gnd on your chip 2012-06-27T23:51:41 < BrainDamage> ( diodes leak current in forward even if you're less than their active forward drop ) 2012-06-27T23:51:44 < Laurenceb_> surely the current can only leak in one direction? 2012-06-27T23:51:49 < Laurenceb_> ah 2012-06-27T23:52:11 < BrainDamage> just not a lot of current 2012-06-27T23:52:26 < BrainDamage> I guess to get full precision you should bias it 2012-06-27T23:52:36 < Laurenceb_> hmm i see 2012-06-27T23:52:49 < Laurenceb_> yeah smallleakage may screw up a sensitive sensor 2012-06-27T23:53:06 < Laurenceb_> needs a bit of wire still then - to 3v3 2012-06-27T23:53:30 < BrainDamage> btw, even reverse polarized diodes do leak current 2012-06-27T23:53:34 < BrainDamage> but it's generally tiny 2012-06-27T23:53:53 < BrainDamage> ( generation-recombination current ) 2012-06-27T23:53:54 < Laurenceb_> im using a variable LDO with 1.2v reference and a 12K resistor to set the current 2012-06-27T23:53:56 < Laurenceb_> yeah 2012-06-27T23:53:59 < BrainDamage> and that'd be current towards bulk 2012-06-27T23:55:06 < Laurenceb_> odd the Nsub is just floating in the datasheet 2012-06-27T23:55:31 < Laurenceb_> i may dismantle my omron blood pressure sensor and take a look 2012-06-27T23:57:10 < Laurenceb_> as they use the same sensors --- Day changed Thu Jun 28 2012 2012-06-28T00:00:58 -!- izua [~izua@unaffiliated/izua] has quit [Quit: Pull me under] 2012-06-28T00:05:16 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-28T00:42:25 -!- peabody124 [~peabody12@stgt-5f719625.pool.mediaWays.net] has joined ##stm32 2012-06-28T01:09:06 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2012-06-28T01:48:17 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-06-28T01:53:56 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-06-28T01:54:43 < dongs> sup dongs 2012-06-28T02:10:50 -!- BrainDamage [~BrainDama@78.12.235.38] has quit [Quit: Leaving.] 2012-06-28T02:54:53 -!- NonaSuomy is now known as TeknoJuce 2012-06-28T02:55:47 < upgrdman> why does dongs greet himself? 2012-06-28T02:57:00 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-06-28T03:01:33 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [Client Quit] 2012-06-28T03:37:31 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-06-28T03:37:39 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [Client Quit] 2012-06-28T03:41:42 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 245 seconds] 2012-06-28T04:59:50 -!- zippe [~Adium@173.11.99.161] has quit [Quit: Leaving.] 2012-06-28T05:02:20 -!- emeb [~ericb@ip72-223-89-137.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-28T05:05:10 -!- voodoofish430 [~mtorres@NAT10.pas.idealab.com] has quit [Quit: Leaving.] 2012-06-28T05:09:13 -!- lawrenceseattle [~anonymous@66.192.187.106] has quit [Quit: lawrenceseattle] 2012-06-28T05:21:35 -!- peabody128 [~peabody12@stgt-5f7189a6.pool.mediaWays.net] has joined ##stm32 2012-06-28T05:21:44 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-28T05:24:13 -!- ntfreak_ [~ntfreak@unaffiliated/ntfreak] has joined ##stm32 2012-06-28T05:24:53 -!- peabody124 [~peabody12@stgt-5f719625.pool.mediaWays.net] has quit [Ping timeout: 248 seconds] 2012-06-28T05:24:54 -!- peabody128 is now known as peabody124 2012-06-28T05:25:12 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 246 seconds] 2012-06-28T05:27:23 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has quit [Ping timeout: 246 seconds] 2012-06-28T05:45:01 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-28T05:45:09 -!- [7] [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-28T07:36:29 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-28T08:00:25 -!- drgreenthumb [~fletch@drupal.org/user/72475/view] has quit [Read error: Connection reset by peer] 2012-06-28T08:22:11 -!- dfletcher [~fletch@108-196-222-251.lightspeed.sntcca.sbcglobal.net] has joined ##stm32 2012-06-28T08:22:53 -!- dfletcher [~fletch@108-196-222-251.lightspeed.sntcca.sbcglobal.net] has quit [Changing host] 2012-06-28T08:22:53 -!- dfletcher [~fletch@drupal.org/user/72475/view] has joined ##stm32 2012-06-28T08:22:59 -!- dfletcher is now known as drgreenthumb 2012-06-28T08:51:40 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has joined ##stm32 2012-06-28T08:56:59 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has quit [Read error: Operation timed out] 2012-06-28T09:12:13 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has joined ##stm32 2012-06-28T09:22:00 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has quit [Ping timeout: 244 seconds] 2012-06-28T09:50:49 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has joined ##stm32 2012-06-28T10:03:29 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has quit [Ping timeout: 245 seconds] 2012-06-28T10:06:00 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has joined ##stm32 2012-06-28T10:10:25 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has quit [Ping timeout: 246 seconds] 2012-06-28T10:29:31 -!- peabody124 [~peabody12@stgt-5f7189a6.pool.mediaWays.net] has quit [Quit: peabody124] 2012-06-28T10:30:40 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has joined ##stm32 2012-06-28T10:35:51 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has quit [Ping timeout: 265 seconds] 2012-06-28T10:53:00 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has joined ##stm32 2012-06-28T11:04:19 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-06-28T11:13:20 -!- ntfreak_ is now known as ntfreak 2012-06-28T11:17:33 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-06-28T11:21:50 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has joined ##stm32 2012-06-28T11:29:30 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has quit [Ping timeout: 265 seconds] 2012-06-28T11:55:41 < cjbaird> ha: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=584076 ... ""irregardless" is not a word and should not be included in word lists" 2012-06-28T12:30:49 < dongs> staus 2012-06-28T12:32:17 < karlp> blogging 2012-06-28T12:39:36 < Thorn> looks like there're 2 kinds of people: those who are sure that a 2-layer fpga design would never work and those who did it and it worked 2012-06-28T12:42:00 <+dekar> Thorn, I'd guess you can only fan out so many pins of you do that, but besides that I don't see the problem 2012-06-28T12:43:27 < Thorn> well, power network impedance, distributed power-to-gnd capacitance, shielding signal layers from each other, referencing signals to a ground plane, etc. 2012-06-28T12:44:33 < Thorn> however apparently even sdram can work @ 133 MHz in 2 layer designs 2012-06-28T12:58:14 -!- dekar [~dekar@212.255.21.238] has quit [Quit: This computer has gone to sleep] 2012-06-28T13:03:48 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-28T13:03:56 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-28T13:04:24 <+Steffanx> GOOD AFTERNOON 2012-06-28T13:11:13 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-28T13:47:42 < dongs> BLOG 2012-06-28T13:52:36 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has joined ##stm32 2012-06-28T13:54:28 < pelrun> irregardless of it not being a word, I will use it anyway 2012-06-28T13:55:38 <+Steffanx> ok pelrun 2012-06-28T13:55:48 <+Steffanx> zlog 2012-06-28T13:55:48 < zlog> Steffanx: Log stored at http://tom-itx.dyndns.org:81/~tom-itx/irc/logs/%23%23stm32/2012-06-28.html 2012-06-28T13:56:18 < pelrun> hey, that is useful 2012-06-28T13:57:01 <+Steffanx> Yeah, now i know what you talked about :) 2012-06-28T13:58:37 < cjbaird> pelrun: you'll be saying shit like "deplane", "harris-ment", "ketchup", next. 2012-06-28T13:58:47 < pelrun> nope 2012-06-28T13:58:50 < pelrun> I 2012-06-28T13:58:56 < pelrun> I'm no american 2012-06-28T13:59:28 * pelrun shudders 2012-06-28T13:59:45 < pelrun> besides, I only use 'irregardless' in ironic contexts 2012-06-28T13:59:55 < pelrun> to piss off grammar nazis 2012-06-28T14:00:05 < cjbaird> p: complete this sentence: "red, green, and blue, are the three primary ..." 2012-06-28T14:00:36 <+Steffanx> colours 2012-06-28T14:00:45 < pelrun> asshole classifiers 2012-06-28T14:00:56 < pelrun> hey, green isn't a team fortress team colour! 2012-06-28T14:01:04 < cjbaird> Stef: \o/ 2012-06-28T14:01:09 <+Steffanx> pelrun classifies them that way? 2012-06-28T14:01:36 < pelrun> of course they're colours (and only primary in an additive context) I was just being silly 2012-06-28T14:01:39 < Thorn> ... components of an RGB video signal 2012-06-28T14:02:09 < pelrun> colours of unicorn poo 2012-06-28T14:02:39 <+Steffanx> pelrun is really into assholes and related things? 2012-06-28T14:02:53 <+Steffanx> Now i understand why you're here.. for dongs 2012-06-28T14:03:03 < pelrun> Steffanx, ?_? 2012-06-28T14:03:41 <+Steffanx> You don't want to know 2012-06-28T14:04:25 -!- tavs [~tavish@125.63.110.184] has joined ##stm32 2012-06-28T14:54:07 -!- tavs [~tavish@125.63.110.184] has quit [Read error: Connection reset by peer] 2012-06-28T15:30:37 < dongs> lolz 2012-06-28T15:30:40 < dongs> chink fc boards are using my code 2012-06-28T15:30:57 <+Steffanx> wtf is chink fc? 2012-06-28T15:31:02 < dongs> http://www.goodluckbuy.com/kcopter-stm32f103cbt6-flight-control-board-withmpu6050-hmc5883l-chip.html 2012-06-28T15:31:06 < dongs> this shit 2012-06-28T15:31:38 <+Steffanx> How you know it's yours? 2012-06-28T15:31:39 < Laurenceb> pcb layout fail 2012-06-28T15:31:47 < Laurenceb> thats how 2012-06-28T15:31:54 < dongs> Steffanx: peopel bought it, and it has my code on it 2012-06-28T15:31:59 < dongs> same serial console, etc. 2012-06-28T15:32:03 <+Steffanx> Ah :D 2012-06-28T15:32:20 < dongs> http://www.rcgroups.com/forums/showpost.php?p=22018491&postcount=50 lols. 2012-06-28T15:32:28 <+Steffanx> It doesn't look too bad to me laurenceb_ 2012-06-28T15:32:31 <+Steffanx> Yours is worse :P 2012-06-28T15:32:51 < Thorn> put it into your resume as an achievement. "Had a design copied by the Chinese." 2012-06-28T15:32:57 < dongs> lolrite. 2012-06-28T15:33:03 <+Steffanx> Say to him he should update his HTerm dongs :P 2012-06-28T15:35:17 <+Steffanx> What have you done dongs ? 2012-06-28T15:35:25 <+Steffanx> Violated the rules? 2012-06-28T15:35:32 < dongs> nope 2012-06-28T15:35:37 < dongs> i'm a perfect forum citizen 2012-06-28T15:35:48 <+Steffanx> Not according to my sources 2012-06-28T15:37:00 < Thorn> also your friend Thomas O is learning stm32f4 http://electronics.stackexchange.com/questions/34703/stm32-systick-timer-doesnt-run-the-alarm-event 2012-06-28T15:37:19 <+Steffanx> Who's Thomas O? 2012-06-28T15:37:34 < dongs> who 2012-06-28T15:37:35 < dongs> tom66? 2012-06-28T15:37:39 < Laurenceb> goatse guy 2012-06-28T15:37:43 <+Steffanx> Whoa, my screen fails terribly on my screen 2012-06-28T15:37:46 < Laurenceb> thats why there is an O 2012-06-28T15:37:48 <+Steffanx> The background blinks 2012-06-28T15:37:55 <+Steffanx> *on that background 2012-06-28T15:38:04 < Thorn> that 2xdsPIC OSD guy with great soldering techniques 2012-06-28T15:38:13 < Laurenceb> heh 2012-06-28T15:40:16 <+Steffanx> When do you grow up btw Laurenceb? 2012-06-28T15:40:31 < Laurenceb> NEVAR 2012-06-28T15:40:47 <+Steffanx> Was a stupid question, indeed 2012-06-28T16:03:43 -!- pelrun [~pelrun@203-206-187-234.perm.iinet.net.au] has quit [Ping timeout: 264 seconds] 2012-06-28T16:24:11 -!- dekar [~dekar@212.255.21.238] has joined ##stm32 2012-06-28T16:24:19 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-28T17:21:57 -!- dekar [~dekar@212.255.21.238] has quit [Quit: This computer has gone to sleep] 2012-06-28T17:22:45 -!- dekar [~dekar@212.255.21.238] has joined ##stm32 2012-06-28T17:22:50 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-28T17:23:25 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has quit [Remote host closed the connection] 2012-06-28T17:24:03 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-28T17:25:27 -!- dekar [~dekar@212.255.21.238] has quit [Client Quit] 2012-06-28T17:34:29 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-28T17:42:16 -!- dekar [~dekar@212.255.21.238] has joined ##stm32 2012-06-28T17:42:23 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-28T17:43:14 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-28T17:48:38 <+Steffanx> HAPPY CAPSLOCK DAY! 2012-06-28T17:49:37 -!- dekar [~dekar@212.255.21.238] has quit [Quit: This computer has gone to sleep] 2012-06-28T17:55:12 < cjbaird> WHAT PRESENTS DO I GET?? :D 2012-06-28T18:01:17 <+Steffanx> HERE IT IS 2012-06-28T18:02:00 < cjbaird> THANK YOU! 2012-06-28T18:03:32 <+Steffanx> [ ] 2012-06-28T18:03:38 <+Steffanx> [+] 2012-06-28T18:40:56 -!- dekar [~dekar@212.255.21.238] has joined ##stm32 2012-06-28T18:40:59 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-28T18:41:57 -!- emeb [~ericb@ip72-223-89-137.ph.ph.cox.net] has joined ##stm32 2012-06-28T18:46:59 -!- tavish [~tavish@120.56.142.216] has joined ##stm32 2012-06-28T18:46:59 -!- tavish [~tavish@120.56.142.216] has quit [Changing host] 2012-06-28T18:46:59 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-28T19:09:12 -!- dekar [~dekar@212.255.21.238] has quit [Quit: This computer has gone to sleep] 2012-06-28T19:17:40 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-28T19:26:50 -!- peabody124 [~peabody12@stgt-5f7189a6.pool.mediaWays.net] has joined ##stm32 2012-06-28T19:27:05 -!- peabody124 [~peabody12@stgt-5f7189a6.pool.mediaWays.net] has quit [Client Quit] 2012-06-28T19:35:00 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has joined ##stm32 2012-06-28T19:46:43 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-28T20:07:18 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-06-28T20:07:33 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 255 seconds] 2012-06-28T20:16:24 -!- dekar [~dekar@212.255.21.238] has joined ##stm32 2012-06-28T20:16:29 -!- mode/##stm32 [+v dekar] by ChanServ 2012-06-28T20:18:23 -!- voodoofish430 [~mtorres@NAT10.pas.idealab.com] has joined ##stm32 2012-06-28T21:04:48 -!- ChanServ [ChanServ@services.] has quit [shutting down] 2012-06-28T21:05:33 -!- ChanServ [ChanServ@services.] has joined ##stm32 2012-06-28T21:05:33 -!- ServerMode/##stm32 [+o ChanServ] by lindbohm.freenode.net 2012-06-28T21:24:24 -!- jon1012 [~jon@foresight/developer/jon1012] has quit [Quit: Quitte] 2012-06-28T21:53:47 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Read error: Connection reset by peer] 2012-06-28T21:54:07 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-28T22:00:03 < Thorn> stm32f3 announced http://www.st.com/internet/com/press_release/p3304.jsp 2012-06-28T22:01:19 < Tectu> Thorn, yeah, a few days ago 2012-06-28T22:01:22 < Tectu> could be pretty nice 2012-06-28T22:03:36 < BrainDamage> I'd have preferred an l0 2012-06-28T22:07:12 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has quit [Quit: Leaving] 2012-06-28T22:08:32 < Thorn> >secure software data and code execution 2012-06-28T22:08:54 < Thorn> that's not about protection from the Chinese, is it? 2012-06-28T22:11:03 < karlp> l0 is in the literature, so I guess it's just not here yet... 2012-06-28T22:13:05 < Thorn> what ls l0? 2012-06-28T22:13:26 < BrainDamage> L1 with cortex-m0 2012-06-28T22:13:32 < BrainDamage> which means even lower power 2012-06-28T22:13:39 < BrainDamage> and hopefully cheaper 2012-06-28T22:13:46 < Thorn> main mavigation menu: stm32 f1, f2, f0, f4, l1 and f3, in that order. stm is being stm. 2012-06-28T22:13:55 < Thorn> *navigation 2012-06-28T22:18:04 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has joined ##stm32 2012-06-28T22:27:40 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-06-28T22:44:06 <+Steffanx> M4 with DDR3 interface .. FreeScale knows something ST doesn't know 2012-06-28T22:44:29 < Laurenceb_> wut 2012-06-28T22:44:34 < Laurenceb_> surely overkill? 2012-06-28T22:44:54 < Laurenceb_> the freescale M4s have a 16bit adc tho 2012-06-28T22:45:12 < Thorn> stm32f3 does too 2012-06-28T22:45:35 < Laurenceb_> yeah but its unobtainable 2012-06-28T22:45:59 < Laurenceb_> having said that so are the 16bit adc freescale ics :P 2012-06-28T22:46:08 < Thorn> but ddr3 can do up to 1.6Gx16 bits / second, right? what does it have to do with a microcontroller? 2012-06-28T22:46:27 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Read error: Connection reset by peer] 2012-06-28T22:46:55 -!- Thorn [~Thorn@78-106-247-110.broadband.corbina.ru] has joined ##stm32 2012-06-28T22:46:55 -!- Thorn [~Thorn@78-106-247-110.broadband.corbina.ru] has quit [Changing host] 2012-06-28T22:46:55 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-06-28T22:46:57 <+Steffanx> Bye Thorn 2012-06-28T22:46:59 <+Steffanx> Hi Thorn 2012-06-28T22:47:22 <+Steffanx> 200MHz m4 .. 2012-06-28T22:47:32 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 245 seconds] 2012-06-28T22:48:29 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-06-28T22:49:34 < karlp> freescale KL0 looks cool too. 2012-06-28T22:50:29 <+Steffanx> What for karlp ? 2012-06-28T22:51:12 <+Steffanx> I'm a little lost in the low power world, they all claim to have the uc with the lowest power usage 2012-06-28T22:51:50 < Laurenceb_> hehe i know 2012-06-28T22:51:59 < Laurenceb_> stm32 isnt brilliant aiui 2012-06-28T22:52:09 < Laurenceb_> L1 is pretty close to the best tho 2012-06-28T22:52:18 < Laurenceb_> aiui msp430 still wins, just 2012-06-28T22:52:47 < Thorn> energy micro? 2012-06-28T22:52:50 < BrainDamage> msp430 tough is 16 bit 2012-06-28T22:52:54 < BrainDamage> and magnitudes slower 2012-06-28T22:53:07 < Thorn> how about some EFM32 2012-06-28T22:53:35 < BrainDamage> I guess one should look at MIPS/w, or some similar parameter 2012-06-28T22:54:10 <+Steffanx> BrainDamage: /nick one 2012-06-28T22:54:14 < Laurenceb_> yeah 2012-06-28T22:54:47 < BrainDamage> Steffanx: what does that mean? 2012-06-28T22:55:02 <+Steffanx> "I guess one should" <= 'one' :P 2012-06-28T22:55:10 <+Steffanx> You should change your nick in 'one' 2012-06-28T22:55:40 < BrainDamage> ok, then /nick nottoday 2012-06-28T22:55:54 < BrainDamage> I had 3h sleep, an exam, and a denstist appointment 2012-06-28T22:56:32 < BrainDamage> oh, and I've been forced to fast until dinner due to awful scheduling 2012-06-28T22:57:09 <+Steffanx> Forced to 'fast'? What's that? 2012-06-28T22:57:20 <+Steffanx> A 5 minute appointment with your dentist? 2012-06-28T22:57:25 <+Steffanx> *minutes 2012-06-28T22:57:35 <+Steffanx> Oops nvm :P 2012-06-28T22:57:41 <+Steffanx> my english fails terrible 2012-06-28T22:57:49 <+Steffanx> y 2012-06-28T22:58:07 < karlp> freescale KL0 is in a 32pin LQFP, 0.8mm pitch, so easier to solder. 2012-06-28T22:58:15 < Laurenceb_> i didnt understand either 2012-06-28T22:58:15 < karlp> no usb for apps where you don't need that 2012-06-28T22:58:20 < karlp> so should be cheaper 2012-06-28T22:58:22 < Laurenceb_> what core? 2012-06-28T22:58:25 < karlp> m0+ 2012-06-28T22:58:31 < Laurenceb_> boo 2012-06-28T22:58:45 <+Steffanx> fast as in 'don't eat' Laurenceb_ :P 2012-06-28T22:59:05 < Laurenceb_> i know now 2012-06-28T22:59:08 < karlp> smallest lqfp in the kl1 though is 64 :( 2012-06-28T22:59:12 <+Steffanx> i like that 4x4 mm package karlp 2012-06-28T22:59:35 < karlp> but, no discovery board :) 2012-06-28T22:59:36 < Laurenceb_> yeah, annoying that smallest stm32f4 is 64pin 2012-06-28T23:00:03 < Laurenceb_> the 48pin f1 is perfect 2012-06-28T23:00:09 <+Steffanx> 36 pins 2012-06-28T23:00:17 < karlp> hmm, freescale k10 is in <64pin isn' tit? 2012-06-28T23:03:24 <+Steffanx> 32 karlp 2012-06-28T23:03:35 <+Steffanx> So, yes 2012-06-28T23:03:56 < Thorn> wait, those freescale chips with ddr3 are cortex-a5 + cortex-m4? 2012-06-28T23:04:02 < Thorn> that would make sense 2012-06-28T23:04:12 <+Steffanx> Also the m4 only 2012-06-28T23:05:21 < Thorn> Kinetis X? 2012-06-28T23:05:22 < Thorn> wtf. 2012-06-28T23:05:29 <+Steffanx> Yes 2012-06-28T23:05:34 <+Steffanx> It has support for DDR3 2012-06-28T23:05:59 < Thorn> what typical microcontroller user would be able to implement ddr3? 2012-06-28T23:06:46 <+Steffanx> Someone with skills 2012-06-28T23:07:06 < Thorn> and $$$$$$$$$$ for HyperLynx, scopes etc. 2012-06-28T23:09:16 < Laurenceb_> we used ddr3 at my old job 2012-06-28T23:09:24 < Laurenceb_> with M3 softcore on a vertex5 2012-06-28T23:11:08 < Thorn> that's what I'm talking about, fpga designers normally know how to use it and have the tools, but not those who use microcontrollers exclusively 2012-06-28T23:12:16 < Laurenceb_> the M3 softcore was insane 2012-06-28T23:12:22 < Laurenceb_> luckly i didnt deal with it 2012-06-28T23:12:41 < Laurenceb_> one guy was on the phone pretty much all day to arm trying to make it behave 2012-06-28T23:14:02 < karlp> I dind't know they did an m3 softcore 2012-06-28T23:14:16 < karlp> teh m1 is the m0 tweaked for softcores right? 2012-06-28T23:14:49 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 250 seconds] 2012-06-28T23:14:49 < Laurenceb_> i dont know im afraid --- Day changed Fri Jun 29 2012 2012-06-29T00:02:10 < Laurenceb_> /b/ro/b/osapiens 2012-06-29T00:08:26 -!- peabody124 [~peabody12@stgt-5f7189a6.pool.mediaWays.net] has joined ##stm32 2012-06-29T00:08:31 -!- peabody124 [~peabody12@stgt-5f7189a6.pool.mediaWays.net] has quit [Read error: Connection reset by peer] 2012-06-29T00:35:01 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-29T01:53:05 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-06-29T01:56:46 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has joined ##stm32 2012-06-29T02:07:32 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 245 seconds] 2012-06-29T02:11:40 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-06-29T02:13:55 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has quit [Ping timeout: 264 seconds] 2012-06-29T02:51:32 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 246 seconds] 2012-06-29T02:53:37 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-06-29T03:07:32 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 245 seconds] 2012-06-29T03:10:12 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-06-29T04:06:24 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has quit [Quit: Leaving.] 2012-06-29T04:14:50 -!- emeb [~ericb@ip72-223-89-137.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-29T04:23:22 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 245 seconds] 2012-06-29T04:45:42 -!- GargantuaSauce [~sauce@blk-252-42-151.eastlink.ca] has quit [Ping timeout: 264 seconds] 2012-06-29T04:45:42 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 264 seconds] 2012-06-29T04:46:51 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-29T04:47:40 -!- GargantuaSauce [~sauce@blk-252-42-151.eastlink.ca] has joined ##stm32 2012-06-29T05:12:21 < zippe> Thorn: Reason to use mDDR3 is lower power, higher density than SRAM 2012-06-29T05:13:07 < zippe> Thorn: Also lower cost, and depending on the memory controller possibly easier configuration due to auto-tuning rather than hardcoded magic numbers. 2012-06-29T05:13:55 < zippe> By "typical microcontroller user", I think someone is missing something. In particular, confusing "typical microcontroller hobbyist on IRC or forums" for "typical volume microcontroller purchaser" 2012-06-29T05:20:10 < dongs> how the fuck do I rollback a svn revision 2012-06-29T05:20:14 < dongs> fucking retarded trash added shit in / 2012-06-29T05:20:16 < dongs> instead of subdir 2012-06-29T05:24:01 -!- zippe [~Adium@173.11.99.161] has quit [Quit: Leaving.] 2012-06-29T05:43:45 -!- [7] [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-29T05:43:52 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-29T06:22:11 -!- R0b0t1 is now known as iR0b0t1 2012-06-29T06:25:14 < upgrdman> externally clocked timers: what are TIx? I know they're inputs but how do i find out what pin they are or can be 2012-06-29T06:31:08 < dongs> talking about section 5.2.11 in reference manual? 2012-06-29T06:31:40 < dongs> I thought only a couple timers could be clocked externally. 2012-06-29T06:32:06 < dongs> but if talking about general shit (like input capture) 2012-06-29T06:32:13 < dongs> then I'd guess TIx means channel 1,2 3 etc 2012-06-29T06:32:19 < dongs> so it wouldbe shit like TIM1_CHx 2012-06-29T06:32:23 < dongs> in pinout. 2012-06-29T06:38:48 < upgrdman> i guess input capture 2012-06-29T06:39:25 < upgrdman> im using the f4disco board, and the user manual for it has a table of pin numbers and alternate functions 2012-06-29T06:40:12 < upgrdman> but there are at least three pins that can be "TIM2_CH1_ETR" 2012-06-29T06:42:58 < upgrdman> and some of them just say "TIM13_CH1" ... no _ETR ... whats the difference? 2012-06-29T06:43:26 < dongs> possible to use as external trigger stuff I guess. 2012-06-29T06:43:32 < dongs> for advanced timers. 2012-06-29T06:43:40 < dongs> but otherwise just regular capturecompare. 2012-06-29T06:43:43 < dongs> or output. 2012-06-29T06:43:46 < upgrdman> k 2012-06-29T06:48:45 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has joined ##stm32 2012-06-29T07:07:21 < upgrdman> does turning a periph clock off reduce current draw, or is there some other benefit/reason? 2012-06-29T07:07:28 < dongs> yes of course 2012-06-29T07:07:42 < upgrdman> ok, is current draw the only reason? 2012-06-29T07:07:43 < dongs> running peripheral consumes power 2012-06-29T07:07:50 < dongs> also I'd imagine it could be adding more noise 2012-06-29T07:07:55 < dongs> to the rest of hte circuit. 2012-06-29T07:08:00 < upgrdman> ok 2012-06-29T07:14:58 < upgrdman> i finally got around to setting up wake-on-lan. damn bedroom was getting too hot with a workstation and server on 24/7 2012-06-29T07:15:39 < upgrdman> WOL + SSH to shutdown ... why didn't i do this before 2012-06-29T07:24:47 < dongs> > lunix 2012-06-29T07:29:46 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-29T07:39:47 -!- lawrenceseattle [~anonymous@216.243.49.130] has joined ##stm32 2012-06-29T07:45:48 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has quit [Quit: Leaving] 2012-06-29T08:08:38 -!- voodoofish430 [~mtorres@NAT10.pas.idealab.com] has quit [Quit: Leaving.] 2012-06-29T08:49:56 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has quit [Ping timeout: 246 seconds] 2012-06-29T08:55:03 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-29T08:58:22 -!- lawrenceseattle_ [~anonymous@216.243.49.130] has joined ##stm32 2012-06-29T08:58:25 -!- lawrenceseattle [~anonymous@216.243.49.130] has quit [Read error: Connection reset by peer] 2012-06-29T08:58:26 -!- lawrenceseattle_ is now known as lawrenceseattle 2012-06-29T09:36:20 < cjbaird> Yardley Smith/Lisa Simpson is in that too. 2012-06-29T10:20:03 < dongs> http://imgur.com/gallery/Bsdt7 wat 2012-06-29T10:23:28 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32 2012-06-29T10:28:54 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Ping timeout: 245 seconds] 2012-06-29T10:47:54 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32 2012-06-29T10:52:42 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Read error: Operation timed out] 2012-06-29T10:54:31 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32 2012-06-29T11:10:19 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Ping timeout: 246 seconds] 2012-06-29T11:11:18 < dongs> http://a1.sphotos.ak.fbcdn.net/hphotos-ak-prn1/s480x480/559221_10151731700515931_692814417_n.jpg 2012-06-29T11:23:10 < zyp> heh 2012-06-29T11:41:32 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-06-29T11:42:44 -!- lawrenceseattle_ [~anonymous@216.243.49.130] has joined ##stm32 2012-06-29T11:42:46 -!- lawrenceseattle [~anonymous@216.243.49.130] has quit [Read error: Connection reset by peer] 2012-06-29T11:42:46 -!- lawrenceseattle_ is now known as lawrenceseattle 2012-06-29T12:01:20 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [] 2012-06-29T12:05:28 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has joined ##stm32 2012-06-29T12:20:17 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-06-29T12:33:37 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-29T12:50:16 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has quit [Read error: Connection reset by peer] 2012-06-29T12:50:54 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-29T13:07:14 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has joined ##stm32 2012-06-29T13:08:21 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has quit [Remote host closed the connection] 2012-06-29T13:08:58 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-29T13:12:15 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-29T13:12:18 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-29T13:12:29 <+Steffanx> Nu 2012-06-29T13:13:25 < BrainDamage> ν 2012-06-29T13:17:19 <+Steffanx> So Italy will win BrainDamage ? 2012-06-29T13:17:20 <+Steffanx> :P 2012-06-29T13:18:37 < BrainDamage> I don't know shit about football 2012-06-29T13:18:55 < BrainDamage> I only hope for a victory so streets turn into a giant party 2012-06-29T13:18:57 <+Steffanx> No need to know shit 2012-06-29T13:41:50 < zyp> so, any news? 2012-06-29T13:42:21 < zyp> went to shirahama, didn't have the internets for a couple of days 2012-06-29T13:42:59 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 252 seconds] 2012-06-29T13:43:04 < dongs> fun times 2012-06-29T13:43:06 < dongs> japan still sucks shit 2012-06-29T13:43:09 < dongs> but thats not news 2012-06-29T13:44:32 < zyp> no new cool projects or fails or whatever? 2012-06-29T13:44:59 <+Steffanx> Whoa, experienced some withdrawal symptoms zyp ? 2012-06-29T13:45:17 <+Steffanx> I wonder when dongs goes to Israel 2012-06-29T13:45:38 < zyp> Steffanx, yeah, I missed you so much :( 2012-06-29T13:46:12 < dongs> my dicknplace failed for a day but got it back running. 2012-06-29T13:46:13 <+Steffanx> That's nice too, but I actually meant 'no internet' 2012-06-29T13:46:25 < dongs> needed some obscure undocumented calibration that some 80years old dude had to do while farting 2012-06-29T13:46:37 <+Steffanx> dongs has a pick and place machine? 2012-06-29T13:57:50 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-29T14:00:35 < dongs> oh 2012-06-29T14:00:37 < dongs> i have a question 2012-06-29T14:00:49 < dongs> http://i.imgur.com/pD88d.jpg how do I call that 2x4 block there 2012-06-29T14:06:38 < karlp> if I have multiple EXTIs (13,14,15) in the same interrupt, the 15:10 handler, I can still tell them apart from their status bits right? as long as they are different ports? 2012-06-29T14:06:49 < dongs> yes 2012-06-29T14:06:52 < karlp> so I can tell EXTI on PC13 from PC15, but not PC13 from PB13 2012-06-29T14:06:56 < dongs> right 2012-06-29T14:06:58 < karlp> good 2012-06-29T14:06:59 <+Steffanx> molex sl dongs ? 2012-06-29T14:07:05 < karlp> just checking my sanity 2012-06-29T14:07:11 < dongs> you will have exti13 from pc13/pb13/pa13 2012-06-29T14:07:18 < dongs> since there's only ~20-ish lines 2012-06-29T14:07:28 < dongs> Steffanx: i dont know, you tell me 2012-06-29T14:09:17 < dongs> http://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_157421_-1 2012-06-29T14:09:19 < dongs> apparently its this 2012-06-29T14:11:04 < dongs> http://www.digikey.com/scripts/dksearch/dksus.dll?vendor=0&keywords=65043-032LF 2012-06-29T14:11:05 < dongs> and this. 2012-06-29T14:11:05 < dongs> k 2012-06-29T14:11:13 < dongs> not p aying $1.43 for it though 2012-06-29T14:11:14 < dongs> time to ask china 2012-06-29T14:11:57 <+Steffanx> oh, the SL seems to be a little different 2012-06-29T14:48:15 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 252 seconds] 2012-06-29T15:04:06 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-29T15:32:02 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-06-29T15:41:23 < dongs> dixxxxxxxxxxxxxxxxxxx 2012-06-29T15:42:18 <+Steffanx> Whatever 2012-06-29T15:42:20 <+Steffanx> blogging 2012-06-29T15:42:45 < dongs> sup 2012-06-29T15:42:46 < dongs> status 2012-06-29T15:43:20 <+Steffanx> Bored and watching some space thingy getting into space 2012-06-29T15:43:35 <+Steffanx> http://www.ulalaunch.com/site/pages/Webcast.shtml 2012-06-29T15:49:46 < dongs> lemme know when it crashes 2012-06-29T15:50:04 <+Steffanx> No, you should watch yourself 2012-06-29T15:50:08 <+Steffanx> maybe it brings bad luck 2012-06-29T15:50:25 <+Steffanx> Skip that maybe 2012-06-29T16:10:13 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 248 seconds] 2012-06-29T16:16:25 <+Steffanx> No luck for you yet, dongs 2012-06-29T16:21:07 < dongs> sucks. 2012-06-29T16:21:16 < cjbaird> Adobe are launching a satellite into space? 2012-06-29T16:23:26 <+Steffanx> Yeah, to trace illegal copies of photoshop cjbaird 2012-06-29T16:23:50 < dongs> lulz 2012-06-29T16:23:53 < dongs> death ray from space 2012-06-29T16:23:59 < dongs> for hte pirates 2012-06-29T16:25:35 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-29T16:27:52 < cjbaird> And the people running non-consumer computer hardware that's commercial unviable to port software too. 2012-06-29T16:29:15 <+Steffanx> Uh? I wonder who cjbaird is talking about 2012-06-29T16:32:41 -!- phantoxeD [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-29T16:33:01 < dongs> Steffanx: i think lunix users 2012-06-29T16:33:32 < cjbaird> I'd have a nice little explanory image, except imgur has fucked up again.. 2012-06-29T16:33:48 <+Steffanx> What has linux to do with 'non-consumer computer hardware' dongs ? 2012-06-29T16:33:57 < dongs> Steffanx: thats all it runs on properly 2012-06-29T16:34:05 < dongs> since none of the developers can afford anything "consumer friendly" 2012-06-29T16:34:09 < dongs> i.e. normal laptops/desktops 2012-06-29T16:34:11 < cjbaird> NeeBSD, actually. Not that's I'd have the Flash plugin installed if it was. 2012-06-29T16:34:17 < dongs> effort only goes into running it on shit like RMS Lemote 2012-06-29T16:34:57 < cjbaird> Developers can't afford to waste 90% of their sysadmin time running a Windows system they'd use for only 5% of the time.. 2012-06-29T16:35:01 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Read error: Operation timed out] 2012-06-29T16:35:16 <+Steffanx> 'since none of the developers can afford anything "consumer friendly"' Ha 2012-06-29T16:35:20 <+Steffanx> You mean everyone should buy a mac :P 2012-06-29T16:35:26 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 246 seconds] 2012-06-29T16:35:41 -!- phantoneD [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 252 seconds] 2012-06-29T16:36:00 < cjbaird> I actually have one-- just a 1.3GHz PPC G4 iBook, though. Kinda /old/. 2012-06-29T16:37:26 < dongs> i think i got one of G3 or G4 macfag books somewehre. 2012-06-29T16:37:28 < dongs> its garbage, of course. 2012-06-29T16:37:38 < cjbaird> Yep, imgur has gone down like a Furry at Anthrocon.. 2012-06-29T16:37:40 <+Steffanx> ofcourse 2012-06-29T16:38:41 <+Steffanx> Why you bought it in the first place? 2012-06-29T16:38:43 < cjbaird> Mostly the iBook got shelved because of the PPC development flag-day (Tiger?). lol commercial operating systems abandoning support. 2012-06-29T16:38:50 <+Steffanx> Dong wanted to join the macfag gang? 2012-06-29T16:38:52 <+Steffanx> *Dongs 2012-06-29T16:39:19 < cjbaird> I did however split the partition and INSTALL GENTOO. \o/ 2012-06-29T16:39:38 <+Steffanx> HELL 2012-06-29T16:40:53 < cjbaird> Ah, my ex-gf has custody of the iBook's recharger, too. No chance of getting that back. :/ 2012-06-29T16:41:14 <+Steffanx> You and your ex-girlfrends :P 2012-06-29T16:42:07 < cjbaird> I only have 3.. :/ 2012-06-29T16:42:46 <+Steffanx> Ok, but you mention them at least 1 times/week :) 2012-06-29T16:43:01 < cjbaird> Because they keep stealing shit from me. 2012-06-29T16:43:51 < cjbaird> or at least, I keep remembering things that Charl has of mine 2012-06-29T16:49:47 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-29T16:54:13 < Laurenceb> Charl 2012-06-29T16:54:19 < Laurenceb> thats a boys name 2012-06-29T16:55:22 <+Steffanx> +otte isn't 2012-06-29T16:55:34 < Laurenceb> oh 2012-06-29T16:55:46 <+Steffanx> He uses nicknames for his ex-gf's :P 2012-06-29T16:56:30 < cjbaird> Rather, it's her online handle. She has a bit of a complex about being stalked. 2012-06-29T16:58:10 < cjbaird> Or, at least she did... http://au.linkedin.com/pub/charlotte-brogden/31/a24/446 2012-06-29T16:58:58 <+Steffanx> Now we can stalk her at facebook 2012-06-29T16:59:11 <+Steffanx> Laurenceb, that's your speciality 2012-06-29T17:00:07 < Laurenceb> those are some pro skillz 2012-06-29T17:00:13 < Laurenceb> Ms office and excel 2012-06-29T17:00:15 < Laurenceb> hell yeah 2012-06-29T17:01:26 < cjbaird> Flickr is where the stalking is at: https://secure.flickr.com/search/?w=30265340@N00&q=charl .. (that 3rd photo is almost an upskirt of her :P) 2012-06-29T17:06:45 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 248 seconds] 2012-06-29T17:09:44 < Laurenceb> you stalker 2012-06-29T17:15:35 < cjbaird> All it takes is a few Internet cheat codes.. 2012-06-29T17:20:56 < Laurenceb> #1 2012-06-29T17:20:56 < Laurenceb> #2 0x0800e31e in RCC_GetFlagStatus () 2012-06-29T17:20:56 < Laurenceb> #3 0x08008968 in rtc_init () at Util/fat_fs/src/rtc.c:302 2012-06-29T17:20:59 < Laurenceb> ^the hell 2012-06-29T17:21:05 < dongs> Ya? 2012-06-29T17:21:08 < dongs> waht about it 2012-06-29T17:21:10 < Laurenceb> hardware issue with LSE? 2012-06-29T17:21:19 < Laurenceb> it works on my other boards 2012-06-29T17:21:34 < Laurenceb> it hardfaults 2012-06-29T17:21:47 < dongs> fun. 2012-06-29T17:22:21 < Laurenceb> no 2012-06-29T17:23:33 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-29T17:24:51 <+Steffanx> Yes 2012-06-29T17:25:25 < BrainDamage> fun for us, just not you 2012-06-29T17:26:16 < zyp> Laurenceb, you suck at describing problems, a random backtrace tells us nothing 2012-06-29T17:26:26 < dongs> tell us a full blog 2012-06-29T17:26:34 < Laurenceb> i swapped to a new board 2012-06-29T17:26:38 < Laurenceb> now it wont boot 2012-06-29T17:26:44 < dongs> see. 2012-06-29T17:26:46 < dongs> issues elsewheer. 2012-06-29T17:26:55 < Laurenceb> thats the backtrace, it hardfaults trying to start the rtc 2012-06-29T17:27:26 < dongs> what happens if you dont use gcc 2012-06-29T17:27:30 < Laurenceb> lol 2012-06-29T17:27:34 < zyp> but yeah, if it's a board specific problem, you likely failed while assembling it 2012-06-29T17:27:51 < dongs> Laurenceb pulling a tom66 2012-06-29T17:28:02 < dongs> both in UK! 2012-06-29T17:31:22 < dongs> Laurenceb: do you know where basingstoke is 2012-06-29T17:31:37 < dongs> is it like assburger central 2012-06-29T17:31:55 < Laurenceb> lol 2012-06-29T17:33:02 < dongs> Super OSD ($90): Open Source Graphic OSD: Vario, 6xADC, Games, Datalog, Dual Video ( 1 2 3 4 5 ... Last Page) - 686 days old 2012-06-29T17:33:17 < Laurenceb> thehell 2012-06-29T17:33:18 < dongs> Okay, so I've started my internship now - 1 week in it's going well. 2012-06-29T17:33:19 < dongs> I'm working on the OSD right now, but having a little difficulty with programming the dspic. Lifted the PGD pad on the ICSP connector. Looks like some fine soldering is necessary if I can't fix the pad. But all shorts are gone, seems from time to time I get them but a bit of isopropyl and rework and they go away, not sure why they are only just appearing though?! 2012-06-29T17:33:48 < dongs> http://static.rcgroups.net/forums/attachments/3/2/4/0/5/7/a4918699-78-DSCN7695.jpg 2012-06-29T17:33:51 < dongs> last pic 2012-06-29T17:33:52 < Laurenceb> dissassembler is going in a loop 2012-06-29T17:33:56 < dongs> from jun 7 2012-06-29T17:34:08 < Laurenceb> lol 2012-06-29T17:34:46 < dongs> everytime you think you're failing, think about tom66 and you;ll feel better. 2012-06-29T17:34:54 < Laurenceb> bbdc: 6632336d ldrtvs r3, [r2], -sp, ror #6 2012-06-29T17:34:58 < Laurenceb> the hellll 2012-06-29T17:35:04 < Laurenceb> why do i have code there 2012-06-29T17:35:06 < dongs> ror 2012-06-29T17:35:12 < dongs> thats like a japanese lol. 2012-06-29T17:35:37 < Laurenceb> something is badly wrong with my code 2012-06-29T17:35:48 < dongs> try re-indenting it 2012-06-29T17:35:49 < zyp> or your debugging 2012-06-29T17:37:03 < Laurenceb> text data bss dec hex filename 2012-06-29T17:37:03 < Laurenceb> 112840 1688 2384 116912 1c8b0 main.elf 2012-06-29T17:37:06 < Laurenceb> looks ok? 2012-06-29T17:37:20 < dongs> thats a lot of stolen IP 2012-06-29T17:37:27 < dongs> how much of that is your actual code 2012-06-29T17:37:58 < Laurenceb> :P 2012-06-29T17:38:18 < Laurenceb> hmm something is badly screwed 2012-06-29T17:38:42 < Laurenceb> theres a bunch of random crap starting at 0x00000000 2012-06-29T17:38:52 -!- tavish [~tavish@59.177.8.139] has joined ##stm32 2012-06-29T17:38:52 -!- tavish [~tavish@59.177.8.139] has quit [Changing host] 2012-06-29T17:38:52 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-29T17:38:59 < Laurenceb> that sends the dissasembler into a loop 2012-06-29T17:39:07 < dongs> hello ram, meet stack. 2012-06-29T17:39:45 < zyp> Laurenceb, huh? 2012-06-29T17:39:47 < Laurenceb> it could be the tnt code im compiling 2012-06-29T17:39:58 <+Steffanx> Who knows 2012-06-29T17:40:02 < Laurenceb> zyp: arm-none-objdump goes into a loop 2012-06-29T17:40:06 < zyp> 0x0 is aliased to 0x8000000 when booting from flash. 2012-06-29T17:40:09 < Laurenceb> sure 2012-06-29T17:40:17 < Laurenceb> but this is from the elf 2012-06-29T17:40:31 < zyp> uh 2012-06-29T17:40:40 < Laurenceb> it starts at 0x08000000 then goes through ok looking code 2012-06-29T17:40:42 < zyp> then you're looking at irrelevant sections or something 2012-06-29T17:40:49 < Laurenceb> ill grab the elf 2012-06-29T17:42:01 < Laurenceb> http://filebin.ca/6yVDxbfcdFQ/main.elf 2012-06-29T17:42:29 < Laurenceb> wait wtf 2012-06-29T17:42:31 < Laurenceb> its 8MB 2012-06-29T17:42:46 < zyp> of course, why not? 2012-06-29T17:43:23 < Laurenceb> oh yeah that seems to be normal 2012-06-29T17:43:25 < zyp> if you got 100k of actual code, 8M of metadata is not unrealistic 2012-06-29T17:44:12 < zyp> can't see anything wrong, seems sane to me 2012-06-29T17:44:36 < Laurenceb> can you dissassemble? 2012-06-29T17:44:41 < zyp> sure 2012-06-29T17:44:51 < Laurenceb> hmm - how? 2012-06-29T17:45:12 < zyp> arm-none-eabi-objdump -d main.elf of course 2012-06-29T17:45:39 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-06-29T17:45:48 < Laurenceb> doh 2012-06-29T17:46:01 < Laurenceb> i used -D and disassembled the metadata 2012-06-29T17:46:21 < zyp> 16:40:42 < zyp> then you're looking at irrelevant sections or something 2012-06-29T17:48:08 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-06-29T17:48:39 < Laurenceb> 800e31e: 2b01 cmp r3, #1 2012-06-29T17:48:43 < Laurenceb> hardfaults there 2012-06-29T17:48:55 < Laurenceb> but its just a few instructions after it inits the LSE 2012-06-29T17:49:21 < Laurenceb> everything continuity tests fine 2012-06-29T17:49:42 < Laurenceb> on the pcb, the only thing i changed is i removed the 100nF cap on VBackup 2012-06-29T17:50:34 < zyp> no, it can't hardfault there 2012-06-29T17:51:01 < zyp> a compare between a register and a literal can't hardfault. 2012-06-29T17:51:32 < Laurenceb> hmm i think my linker script is causing confusion 2012-06-29T17:51:39 < Laurenceb> its some sort of fault 2012-06-29T17:51:58 < zyp> then find out what's causing it 2012-06-29T17:52:12 < Laurenceb> is there a status register i need to read? 2012-06-29T17:52:18 < zyp> first confirm that it's a hardfault 2012-06-29T17:52:29 < Laurenceb> how? 2012-06-29T17:52:35 < zyp> check contents of psr (xpsr, cpsr, whatever) with info register 2012-06-29T17:52:45 < zyp> lower 9 bits or so are handler number, hardfault is 3 2012-06-29T17:52:53 < zyp> i.e. active ISR 2012-06-29T17:52:55 < Laurenceb> so whats the gdb command? 2012-06-29T17:52:59 <+Steffanx> info reg 2012-06-29T17:53:00 < zyp> info registers 2012-06-29T17:53:03 < Laurenceb> ok 2012-06-29T17:53:06 < Laurenceb> sec 2012-06-29T17:53:10 <+Steffanx> 1 2012-06-29T17:53:11 <+Steffanx> 0 2012-06-29T17:53:50 < zyp> if it's a hardfault, it's likely promoted from some other fault that's disabled, read SCB.CFSR to find the origin of the fault 2012-06-29T17:54:46 < Laurenceb> fps 0xaddeadde 2917051870 2012-06-29T17:54:46 < Laurenceb> cpsr 0x100000f 16777231 2012-06-29T17:55:05 < Laurenceb> so 15? 2012-06-29T17:55:39 < zyp> ah, yes 2012-06-29T17:55:49 < zyp> isn't that systick or something? 2012-06-29T17:56:16 < zyp> yup, 15 is systick 2012-06-29T17:56:31 < zyp> so, you're in your systick ISR 2012-06-29T17:56:52 < Laurenceb> wuutttt 2012-06-29T17:57:12 < Laurenceb> oh i know 2012-06-29T17:57:21 < Laurenceb> wrong ISR name? 2012-06-29T17:57:39 < Laurenceb> so i sends me to the default handler? 2012-06-29T17:58:35 < zyp> how would I know? 2012-06-29T17:58:43 < zyp> oh, wait, I have the elf 2012-06-29T17:59:06 < zyp> yep, systick vector points to default handler 2012-06-29T17:59:50 < zyp> hmm, you don't have any fault handlers at all 2012-06-29T18:00:38 < Laurenceb> i fail 2012-06-29T18:00:43 < Laurenceb> thanks 2012-06-29T18:00:46 < zyp> all vectors 2-15 point to __STM32DefaultExceptionHandler 2012-06-29T18:04:27 < Laurenceb> how can i fix that? 2012-06-29T18:05:15 < Laurenceb> add template irq handlers with a while loop inside? 2012-06-29T18:07:28 < zyp> huh? 2012-06-29T18:07:52 < zyp> the default handler is ok for stuff you don't need. 2012-06-29T18:08:27 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 252 seconds] 2012-06-29T18:10:40 < Laurenceb> yeah but if you can detect hardfault usagefault etc its good 2012-06-29T18:10:51 < Laurenceb> ive added some while loop handlers 2012-06-29T18:14:18 < zyp> other fault handlers than hardfault also have to be implemented, otherwise they will just promote to hardfault 2012-06-29T18:14:31 < zyp> enabled* 2012-06-29T18:14:58 < dongs> this is fucking bizzare 2012-06-29T18:15:04 < dongs> i plug in USB shit into my desktop 2012-06-29T18:15:07 < dongs> andf after like 10 seconds 2012-06-29T18:15:10 < dongs> mouse cursor starts going nuts 2012-06-29T18:15:25 < cjbaird> FBI keylogger, obviously. 2012-06-29T18:15:35 < dongs> totally. stealing my cp 2012-06-29T18:16:42 <+Steffanx> Windows .. 2012-06-29T18:16:48 <+Steffanx> obviously 2012-06-29T18:18:04 < Laurenceb> hehe 2012-06-29T18:18:09 < Laurenceb> ive had that in windows 2012-06-29T18:18:20 < Laurenceb> thinks its a legacy serial mouse 2012-06-29T18:18:34 < Laurenceb> yeah new board is running 2012-06-29T18:18:41 < Laurenceb> thanx for the help 2012-06-29T18:18:43 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 264 seconds] 2012-06-29T18:19:10 < Laurenceb> well apart from one indicator led that seems to be screwed 2012-06-29T18:21:08 -!- tavish [~tavish@59.177.8.139] has joined ##stm32 2012-06-29T18:21:09 -!- tavish [~tavish@59.177.8.139] has quit [Changing host] 2012-06-29T18:21:09 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-29T18:21:43 < dongs> how do i turn that shit off. 2012-06-29T18:23:27 < dongs> its even doing this on XP in vm 2012-06-29T18:23:30 < dongs> wahthte RFUCKDLFJDSFLJSDLKDSJGLKSJ 2012-06-29T18:23:48 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-29T18:25:09 <+Steffanx> Open the hardware manager to see what kind of device it is? 2012-06-29T18:28:11 -!- emeb [~ericb@ip72-223-89-137.ph.ph.cox.net] has joined ##stm32 2012-06-29T18:31:29 < dongs> its ms serial ballpoint. 2012-06-29T18:32:44 <+Steffanx> Fanct 2012-06-29T18:32:45 <+Steffanx> y 2012-06-29T18:32:57 < zyp> ms serial balls? 2012-06-29T18:33:07 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 264 seconds] 2012-06-29T18:33:13 < dongs> baller 2012-06-29T18:33:30 < dongs> http://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/windows-detects-usb-gps-as-serial-ballpoint-please/e0e03b9b-e9ae-4645-8b3c-5754f06ec3b5 2012-06-29T18:33:59 < BrainDamage> ballpoint pen 2012-06-29T18:34:03 <+Steffanx> microsoft fail 2012-06-29T18:35:08 < zyp> cute 2012-06-29T18:35:25 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-06-29T18:37:06 < Laurenceb> wtf 2012-06-29T18:37:12 < Laurenceb> half my leds are dead 2012-06-29T18:37:20 < Laurenceb> overheated? 2012-06-29T18:37:28 <+Steffanx> probably 2012-06-29T18:37:35 < Laurenceb> i hand soldered them 2012-06-29T18:37:35 <+Steffanx> Laurenceb forgot some resistors? 2012-06-29T18:37:39 < dongs> If there isn't anyone at Microsoft old enough to know what a BallPoint mouse is, go looking on the internet. They are only technology from 15-20 years ago! 2012-06-29T18:37:43 < dongs> loool 2012-06-29T18:37:47 < Laurenceb> heh no they have r1K 2012-06-29T18:38:49 < Laurenceb> probably my 350C iron i guess 2012-06-29T18:43:59 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-29T18:46:41 -!- Rickta591 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-29T18:46:51 < zyp> or just bad technique 2012-06-29T18:47:13 < zyp> you're supposed to melt just the solder, not the component itself 2012-06-29T18:51:15 < Thorn> even with my stellar soldering skills I never overheated a smd led 2012-06-29T18:51:45 < Thorn> I don't think it's so easy to do 2012-06-29T18:52:18 < zyp> no it's not 2012-06-29T18:52:21 < dongs> o amn 2012-06-29T18:52:22 < dongs> man 2012-06-29T18:52:27 < dongs> apaprently thisserial baller mouse shit 2012-06-29T18:52:29 < dongs> isnt actually fixable 2012-06-29T18:52:36 < dongs> it triggers on devices @ 9600baud 2012-06-29T18:52:39 < dongs> like 90% of hte time 2012-06-29T18:52:42 < dongs> Fucking shit 2012-06-29T18:52:47 < zyp> cute 2012-06-29T18:53:11 < zyp> I guess you should call the developer of the OS you paid for, and demand that they fix it 2012-06-29T18:53:14 < Thorn> also I always set my iron to 280C 2012-06-29T18:53:45 < zyp> for what kind of solder? 2012-06-29T18:53:52 < zyp> 280 sounds cool 2012-06-29T18:54:06 < dongs> > I've found in the past that if a device presents itself to Windows as a COM port and then starts transmitting automatically as soon as it is connected to the system that it gets seen as a mouse. This is regardless of the data it sends 2012-06-29T18:54:10 < Thorn> leaded of course 2012-06-29T18:54:10 < dongs> lol. 2012-06-29T18:54:25 < zyp> I'm using 360 for leaded 2012-06-29T18:55:05 < Thorn> that's a lot imo 2012-06-29T18:56:01 < zyp> you want enough heat to melt the solder quickly, so you can get the job done in a low amount of time, thus reducing overall component heatup 2012-06-29T18:56:05 < Thorn> maybe my station shows inaccurate temperatures 2012-06-29T18:56:16 < Laurenceb> wow 2012-06-29T18:56:31 < Laurenceb> some kingbright high brightness 0603 leds are very fragile 2012-06-29T18:56:43 < Thorn> my station melts solder pretty much instantly at that temperature 2012-06-29T18:56:44 < Laurenceb> truns out the heat breaks the gold bondwires 2012-06-29T18:56:56 < Laurenceb> i had to solder with 250C iron 2012-06-29T18:57:03 < Laurenceb> and use only a few seconds of heatr 2012-06-29T18:57:03 < zyp> I don't really remember how I got to 360, but that's been a rule of thumb I've used for years 2012-06-29T18:57:37 < zyp> Thorn, yes, but solder doesn't adhere to cold surfaces 2012-06-29T18:58:10 < zyp> have you ever tried to solder something thick with a weak iron? 2012-06-29T18:58:45 < cjbaird> 250 is what I use, albeit for mostly through-hole work, and I have things fluxed and tinned beforehand. Occassionally 280-300 if there's a reason for some heat.. 2012-06-29T18:59:54 < Laurenceb> owww 2012-06-29T19:00:03 < Laurenceb> these things are too bright 2012-06-29T19:00:26 < Laurenceb> blinding with just 4ma 2012-06-29T19:00:46 < zyp> depends on the use 2012-06-29T19:00:46 < cjbaird> Enjoy your remaining eye.. 2012-06-29T19:01:00 < zyp> I like actually being able to see them when outdoors 2012-06-29T19:01:32 < zyp> http://bin.jvnv.net/f/sTW8U.JPG <- I used the same ones here 2012-06-29T19:01:38 < Laurenceb> http://uk.farnell.com/multicomp/ovs-0604/led-0603-super-brt-true-grn/dp/1716771?Ntt=171-6771 2012-06-29T19:01:42 < Laurenceb> using these now 2012-06-29T19:01:51 < dongs> my leds are AWESOMEbright 2012-06-29T19:02:11 < Laurenceb> said the arduino user 2012-06-29T19:02:17 < dongs> http://abusemark.com/store/images/naze32b.jpg 2012-06-29T19:02:21 < dongs> check that shit out 2012-06-29T19:02:31 < dongs> if i make that blink and turn lights in my office off, it lights up the whole room 2012-06-29T19:02:32 < Laurenceb> lol 2012-06-29T19:02:50 < Laurenceb> its poractically burning out the camera 2012-06-29T19:03:10 < zyp> ah, right, I'm using the same ones as dongs 2012-06-29T19:03:21 < Thorn> these are way more cool http://scn.cree.com/products/pdf/LEDlamps/CLPPA-FKB.pdf 2012-06-29T19:03:23 < dongs> ya it looks much better actually looking at it. i could never get a good pic of lighted up leds 2012-06-29T19:03:27 < BrainDamage> Laurenceb and dongs will love this video http://www.ebaumsworld.com/video/watch/995784/ 2012-06-29T19:03:34 < Laurenceb> im at work 2012-06-29T19:03:37 < zyp> but I'm not running that much current 2012-06-29T19:03:42 < Laurenceb> dont want to visit ebaumsworld 2012-06-29T19:03:51 < zyp> dongs, good how? 2012-06-29T19:04:01 < dongs> zyp, showing how fucking bright they are. 2012-06-29T19:04:08 < Laurenceb> my boss is behind me 2012-06-29T19:04:18 < BrainDamage> why are you on irc then 2012-06-29T19:04:26 < dongs> irc looks like wokr 2012-06-29T19:04:48 < zyp> dongs, the simplest trick is to not use flash 2012-06-29T19:05:03 < dongs> zyp, obviously. 2012-06-29T19:05:11 < dongs> i've followed some pro-photofag advice 2012-06-29T19:05:19 < dongs> but even he said its not really possible with leds 2012-06-29T19:05:45 < zyp> well, how do you wnat to show brightness? 2012-06-29T19:06:01 < zyp> a picture can't be brighter than the display it's viewed on 2012-06-29T19:06:08 < dongs> heh, right 2012-06-29T19:06:41 < zyp> your pic is not that bad actually 2012-06-29T19:07:03 < zyp> it shows that they are so bright that the camera failed to get the color of the middle one 2012-06-29T19:07:19 < Thorn> you need two exposures when shooting leds, one with them on and no other light, another with leds off and the rest of the picture exposed correctly 2012-06-29T19:07:46 < Thorn> that's how they did it with large format cameras 50+ years ago 2012-06-29T19:07:57 < zyp> Thorn, or just balance those two 2012-06-29T19:08:04 -!- Rickta591 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 245 seconds] 2012-06-29T19:09:16 < Thorn> in the age of photoshop you can do whatever you want with them 2012-06-29T19:09:19 < zyp> it's easy when you use flash, because then flash will expose the rest of the image, while shutter speed will control the exposure of the leds only 2012-06-29T19:09:38 < zyp> you don't have to resort to photoshop tricks if you know how to use a camera 2012-06-29T19:10:07 -!- Rickta591 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-29T19:10:47 < Laurenceb> tell that to instagram users 2012-06-29T19:11:06 < Thorn> zyp: what's that tiny idc connector on your board? is it jtag? 2012-06-29T19:11:06 < dongs> haha 2012-06-29T19:11:29 < zyp> Thorn, jtag/swd 2012-06-29T19:11:39 < Thorn> what's the p/n? 2012-06-29T19:11:43 < zyp> it's the default cortex debug connector pinout 2012-06-29T19:12:05 < zyp> don't remember, it's from digikey 2012-06-29T19:13:09 < zyp> http://bin.jvnv.net/f/cT7wW.JPG http://bin.jvnv.net/f/nMnwo.JPG <- oh, and both those are taken with lcd backlight on, the difference is shutter speed 2012-06-29T19:13:16 < Thorn> but it's not 0.1" pitch, is it 2012-06-29T19:13:41 < zyp> 0.05" 2012-06-29T19:14:46 < zyp> see http://infocenter.arm.com/help/topic/com.arm.doc.faqs/attached/13634/cortex_debug_connectors.pdf 2012-06-29T19:15:14 < Laurenceb> http://www.mauve.plus.com/washing.png 2012-06-29T19:16:21 -!- Rickta591 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Quit: Leaving.] 2012-06-29T19:16:50 -!- Rickta591 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-29T19:16:53 -!- Rickta591 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has left ##stm32 [] 2012-06-29T19:17:05 -!- Rickta591 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-29T19:17:20 -!- Rickta591 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has left ##stm32 [] 2012-06-29T19:17:48 -!- Rickta591 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-29T19:17:53 -!- Rickta591 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Client Quit] 2012-06-29T19:18:06 < Thorn> >Samtec 0.05” micro connector 2012-06-29T19:18:09 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-29T19:18:10 < Thorn> aha thanks 2012-06-29T19:37:34 < dongs> o hai 2012-06-29T19:39:19 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 245 seconds] 2012-06-29T19:39:31 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-06-29T19:44:58 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-29T19:49:45 -!- tavish_ [~tavish@120.56.131.157] has joined ##stm32 2012-06-29T19:52:50 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 246 seconds] 2012-06-29T20:07:21 < Thorn> looks like I'll have to make some blackmagic probes for myself 2012-06-29T20:08:17 <+Steffanx> Get on on your stlink 2012-06-29T20:09:57 < dongs> just buy ulink clones from china like a man 2012-06-29T20:10:04 < dongs> or jlink 2012-06-29T20:10:06 < dongs> or whatever 2012-06-29T20:10:07 <+Steffanx> or get a real mbp 2012-06-29T20:10:11 <+Steffanx> bmp 2012-06-29T20:10:20 < dongs> <+Steffanx> or get a real mbp 2012-06-29T20:10:24 < dongs> I was about to call you a macfag 2012-06-29T20:10:41 < Thorn> and pirated keil mdk? 2012-06-29T20:11:01 < BrainDamage> Steffanx: do you mean flash on the stlink chips on the discovery boards? 2012-06-29T20:11:12 < BrainDamage> using the swd pins on the bottom? 2012-06-29T20:11:16 < dongs> thorn, even free/aids IDEs can use jlink. 2012-06-29T20:11:23 < dongs> dunno about ulink though. 2012-06-29T20:11:40 <+Steffanx> Yes BrainDamage 2012-06-29T20:12:02 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-29T20:12:05 <+Steffanx> At least is seems gsmcmullin has ported it to the stlink 2012-06-29T20:12:18 < BrainDamage> mmm, I might give a stab on the VL board 2012-06-29T20:12:21 <+Steffanx> dongs try /ctcp steffanx version 2012-06-29T20:12:57 < Thorn> he ported the blackmagic firmware to stlink? 2012-06-29T20:13:08 -!- lawrenceseattle [~anonymous@216.243.49.130] has quit [Quit: lawrenceseattle] 2012-06-29T20:13:31 <+Steffanx> There's some stlink platform stuff in his repo 2012-06-29T20:13:41 < dongs> Steffanx: im not sure i want to. 2012-06-29T20:14:02 <+Steffanx> [19:13:57] -Steffanx- VERSION X-Chat Aqua 0.17.0-rc1 (xchat 2.8.6) Darwin 11.4.0 [x86_64/2.40GHz/SMP] 2012-06-29T20:14:07 < dongs> nasty. 2012-06-29T20:14:17 <+Steffanx> Thorn https://github.com/gsmcmullin/blackmagic/tree/master/src/platforms 2012-06-29T20:15:11 < Thorn> nice 2012-06-29T20:15:41 < dongs> github more like ghettohub 2012-06-29T20:16:10 <+Steffanx> Special version for donga dong dongs 2012-06-29T20:16:12 < Thorn> the idea seems pretty obvious post factum 2012-06-29T20:16:29 < dongs> what are tehy doing? 2012-06-29T20:16:35 < dongs> loading blackmagic firmware on stlink? 2012-06-29T20:16:47 < dongs> but it only works on lunix w/openocd right? 2012-06-29T20:16:51 <+Steffanx> No 2012-06-29T20:16:52 < dongs> so that kinda makes stlink a bit useless. 2012-06-29T20:17:09 <+Steffanx> the bmp is it's own gdb server .. 2012-06-29T20:17:15 < Thorn> dongs: it has builtin openocd 2012-06-29T20:17:18 <+Steffanx> over a virtual serial connection 2012-06-29T20:17:21 < Thorn> so to say 2012-06-29T20:17:46 < dongs> mhmm. 2012-06-29T20:17:59 <+Steffanx> And it works on windows, linux and os x thanks to that 2012-06-29T20:18:49 <+Steffanx> As long as you can run GDB 2012-06-29T20:20:10 < Thorn> real bmp is $75 x_x (and I've no idea about shipping from NZ too) 2012-06-29T20:20:19 < Thorn> I also want several 2012-06-29T20:20:20 <+Steffanx> its 75 now? 2012-06-29T20:20:45 < Thorn> yes, with cables 2012-06-29T20:20:50 <+Steffanx> hmm, it's smaller + 15$ 2012-06-29T20:23:32 <+Steffanx> and a tiny connector 2012-06-29T20:24:44 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 245 seconds] 2012-06-29T20:25:05 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-29T20:30:25 < zippe> Thorn: Shipping from NZ to USA and .eu has been very speedy. We have bought ~10 or so so far 2012-06-29T20:30:43 <+Steffanx> Speedy? From NZ? 2012-06-29T20:30:44 <+Steffanx> No way 2012-06-29T20:30:45 < zippe> Gareth is quite professional to deal with; I wouldn't worry about that. 2012-06-29T20:30:51 <+Steffanx> > month iirc 2012-06-29T20:30:56 <+Steffanx> + Extra tax :( 2012-06-29T20:31:11 < zippe> Steffanx: IIRC it was ~7 days to Zurich 2012-06-29T20:31:26 < zippe> 5 days to California 2012-06-29T20:31:47 <+Steffanx> Lucky you 2012-06-29T20:31:57 < zippe> I have a large pile of JTAG hardware 2012-06-29T20:32:01 <+Steffanx> So you are the 'main' user of it :) 2012-06-29T20:32:40 < zippe> Flyswatter, JTAGkey, RVI, Lauterbach, BDI, STLink, etc. 2012-06-29T20:33:03 <+Steffanx> All for the same purpose 2012-06-29T20:33:07 < zippe> Yes 2012-06-29T20:33:11 < zippe> Which one do I use most? 2012-06-29T20:33:27 <+Steffanx> stlink ofcourse 2012-06-29T20:33:43 < zippe> BM 2012-06-29T20:33:47 <+Steffanx> p 2012-06-29T20:33:53 < zippe> The stlink bridge app is … dodgy 2012-06-29T20:34:30 < zippe> BM is solid, the probe code is simple and easy to hack when you want custom behaviour, Gareth is great on the support front and it mostly Just Works 2012-06-29T20:34:35 <+Steffanx> You can also buy it to support gsmcmullin, Thorn :P 2012-06-29T20:34:56 < Thorn> yea that would be a good thing to do, but. 2012-06-29T20:35:03 <+Steffanx> money? 2012-06-29T20:35:27 < Thorn> I want at least 3 do debug my CAN networks 2012-06-29T20:35:35 < Thorn> s/do/to/ 2012-06-29T20:38:34 <+Steffanx> Then you should get one to flash your stlinks :P 2012-06-29T20:40:18 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-29T20:40:49 -!- upgrdman_ [42a6d414@blender/artist/upgrdman] has joined ##stm32 2012-06-29T20:41:02 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has left ##stm32 [] 2012-06-29T20:42:45 < upgrdman_> regarding external clock sources for timers: is the only different between "mode1: external input pin (TIx)" and "mode2: external trigger input (ETR)" that mode2 has the ability to apply a prescaler? im reading 14.3.3 of RM0090 for the stm32f4 if that makes any difference. 2012-06-29T20:57:38 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-29T20:57:53 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has left ##stm32 [] 2012-06-29T20:58:19 -!- tavish_ [~tavish@120.56.131.157] has quit [Ping timeout: 264 seconds] 2012-06-29T20:58:34 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Quit: Rebooting...] 2012-06-29T20:59:36 -!- upgrdman_ [42a6d414@blender/artist/upgrdman] has quit [Ping timeout: 245 seconds] 2012-06-29T21:09:09 -!- voodoofish430 [~mtorres@NAT10.pas.idealab.com] has joined ##stm32 2012-06-29T21:12:42 -!- BrainDamage1 [~BrainDama@dynamic-adsl-78-12-252-22.clienti.tiscali.it] has joined ##stm32 2012-06-29T21:12:42 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-235-38.clienti.tiscali.it] has quit [Disconnected by services] 2012-06-29T21:30:19 -!- BrainDamage1 [~BrainDama@dynamic-adsl-78-12-252-22.clienti.tiscali.it] has quit [Quit: Leaving.] 2012-06-29T21:30:33 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-252-22.clienti.tiscali.it] has joined ##stm32 2012-06-29T21:45:42 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-29T21:46:39 -!- upgrdman_ [42a6d414@blender/artist/upgrdman] has joined ##stm32 2012-06-29T21:53:14 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Quit: Rebooting...] 2012-06-29T22:16:02 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-29T22:18:43 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has joined ##stm32 2012-06-29T22:44:44 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer] 2012-06-29T22:53:42 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-29T22:59:48 -!- upgrdman_ [42a6d414@blender/artist/upgrdman] has quit [Quit: Page closed] 2012-06-29T23:20:29 -!- os-app92 [~ftw@226.200.69.86.rev.sfr.net] has joined ##stm32 2012-06-29T23:44:53 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer] 2012-06-29T23:48:46 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-06-29T23:50:10 < Laurenceb_> is there an inverted pwm output mode for the normal timers? 2012-06-29T23:50:17 < Laurenceb_> ie timers 2,3,4 on F1 --- Day changed Sat Jun 30 2012 2012-06-30T00:02:21 < Laurenceb_> oh - PWM mode 2 rather than 1 2012-06-30T00:38:00 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2012-06-30T01:01:59 -!- os-app92 [~ftw@226.200.69.86.rev.sfr.net] has quit [Quit: My Mac has gone to sleep.] 2012-06-30T01:29:55 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32 2012-06-30T01:55:47 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-06-30T02:24:36 -!- lawrenceseattle [~anonymous@66.192.187.106] has joined ##stm32 2012-06-30T02:29:53 -!- Rickta59 [463d49a6@gateway/web/freenode/ip.70.61.73.166] has joined ##stm32 2012-06-30T02:43:47 -!- ntfreak_ [~ntfreak@unaffiliated/ntfreak] has joined ##stm32 2012-06-30T02:45:29 -!- ntfreak [~ntfreak@unaffiliated/ntfreak] has quit [Ping timeout: 246 seconds] 2012-06-30T02:50:04 -!- lawrenceseattle [~anonymous@66.192.187.106] has quit [Quit: lawrenceseattle] 2012-06-30T03:47:01 < dongs> status 2012-06-30T03:47:14 < dongs> normaltimers. 2012-06-30T03:47:15 < dongs> yes. 2012-06-30T03:51:11 < R2COM> my recent spartan6 test board http://picpaste.com/IMAG0052-CUorvQOW.JPG 2012-06-30T03:51:53 < R2COM> http://picpaste.com/IMAG0055-j1A4SkV4.JPG 2012-06-30T03:51:58 < Thorn> hopefully its quality is better than that of the picture 2012-06-30T03:56:23 -!- zippe [~Adium@173.11.99.161] has quit [Quit: Leaving.] 2012-06-30T03:58:36 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-252-22.clienti.tiscali.it] has quit [Remote host closed the connection] 2012-06-30T04:04:08 < dongs> jhorfao 2012-06-30T04:04:13 < dongs> how do i taked picture 2012-06-30T04:04:31 < dongs> theres barely any IO out of the spartan 2012-06-30T04:04:33 < dongs> waht are you doing wiht it? 2012-06-30T04:09:59 < dongs> maybe there's stolen IP on that board so he doesnt want to show it in focus 2012-06-30T04:21:09 -!- emeb [~ericb@ip72-223-89-137.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-06-30T04:49:55 -!- voodoofish430 [~mtorres@NAT10.pas.idealab.com] has quit [Quit: Leaving.] 2012-06-30T05:18:00 < dongs> hello dongs 2012-06-30T05:27:40 < R2COM> Thorn: its a test board, so, most stuff works, but there are some issues 2012-06-30T05:27:50 < R2COM> dongs 2012-06-30T05:28:00 < R2COM> its spartan6 talking with sensors 2012-06-30T05:28:40 < R2COM> and microcontroller receiving commands over CAN/UART 2012-06-30T05:28:48 < R2COM> and talking to spartan6 2012-06-30T05:31:11 < R2COM> flyback: what the fuck you talking about 2012-06-30T05:31:30 < R2COM> so throw it in trashcan 2012-06-30T05:33:46 < dongs> you dont have important data. 2012-06-30T05:39:14 -!- TheSeven [~quassel@rockbox/developer/TheSeven] has quit [Disconnected by services] 2012-06-30T05:39:22 -!- [7] [~quassel@rockbox/developer/TheSeven] has joined ##stm32 2012-06-30T06:06:23 -!- Rious [~Rious@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Ping timeout: 252 seconds] 2012-06-30T06:18:27 -!- Rickta59 [463d49a6@gateway/web/freenode/ip.70.61.73.166] has quit [Quit: Page closed] 2012-06-30T06:58:06 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-30T10:19:16 < cjbaird> Today's happiness is buying a new Matrix DVD (first movie only, obviously) ...because my first copy.. has disappeared. :/ 2012-06-30T10:27:39 -!- peabody124 [~peabody12@stgt-5f71be3a.pool.mediaWays.net] has joined ##stm32 2012-06-30T11:07:11 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-30T11:07:14 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-30T11:12:21 -!- tavs [~tavish@120.56.164.207] has joined ##stm32 2012-06-30T11:26:20 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has quit [Remote host closed the connection] 2012-06-30T11:27:38 <+Steffanx> nu 2012-06-30T11:30:09 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-30T11:33:22 -!- lawrenceseattle [~anonymous@216.243.49.130] has joined ##stm32 2012-06-30T11:34:02 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has quit [Remote host closed the connection] 2012-06-30T11:42:50 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-30T11:45:15 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Disconnected by services] 2012-06-30T11:47:51 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-30T11:47:52 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-30T11:48:31 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Client Quit] 2012-06-30T11:48:35 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-30T11:48:51 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-06-30T11:48:54 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-06-30T11:49:14 <+Steffanx> 2012-06-30T11:49:19 < TitanMKD> hi 2012-06-30T11:51:28 < R2COM> hi 2012-06-30T11:51:40 <+Steffanx> Lo 2012-06-30T11:54:59 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has quit [Remote host closed the connection] 2012-06-30T11:57:56 -!- peabody124 [~peabody12@stgt-5f71be3a.pool.mediaWays.net] has quit [Ping timeout: 244 seconds] 2012-06-30T12:04:28 < dongs> ahh 2012-06-30T12:04:30 < dongs> fail averted. 2012-06-30T12:06:25 <+Steffanx> Good boy, dongs 2012-06-30T12:06:29 < dongs> http://i.imgur.com/doAG0.png this does NOT work the way one would expect 2012-06-30T12:08:30 < dongs> luckily single removed component and a jumpwire saves the day. 2012-06-30T12:08:34 < dongs> Laurenceb style 2012-06-30T12:08:35 <+Steffanx> Uhm, what should one expect? 2012-06-30T12:09:03 < dongs> Steffanx: B side plugged in, only B circuit is powered. A side plugged in, A + B circuit is powered. 2012-06-30T12:10:34 < jpa-> so why doesn't it work? 2012-06-30T12:11:24 < dongs> fucking analog shit 2012-06-30T12:11:26 < dongs> is why 2012-06-30T12:11:33 <+Steffanx> ... 2012-06-30T12:12:12 <+Steffanx> And what did you remove and where that Laurenceb-style jumper wire? 2012-06-30T12:12:27 <+Steffanx> +is somewhere 2012-06-30T12:12:33 < dongs> so i dumped the nmos, and wrote some code for the MCU thats powered by A side 2012-06-30T12:12:40 < dongs> to pull ABGATE down on powr up. 2012-06-30T12:14:09 <+Steffanx> How's your ball thingy going jpa- ? 2012-06-30T12:14:21 <+Steffanx> You're so quiet the last few weeks :) 2012-06-30T12:15:15 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-30T12:15:54 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has quit [Quit: Leaving.] 2012-06-30T12:15:55 -!- peabody124 [~peabody12@stgt-5f71be3a.pool.mediaWays.net] has joined ##stm32 2012-06-30T12:16:47 < dongs> k and pcb fixed without having to redo stencil 2012-06-30T12:16:49 < dongs> PRO. 2012-06-30T12:18:10 <+Steffanx> If you say so 2012-06-30T12:22:03 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-06-30T12:23:23 -!- lawrenceseattle [~anonymous@216.243.49.130] has quit [Quit: lawrenceseattle] 2012-06-30T12:28:56 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 244 seconds] 2012-06-30T12:31:00 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has quit [Remote host closed the connection] 2012-06-30T12:32:16 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has joined ##stm32 2012-06-30T12:34:31 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-30T12:45:08 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 240 seconds] 2012-06-30T12:45:49 < jpa-> Steffanx: slowly.. i'm having a summer job so not so much free time 2012-06-30T12:46:26 <+Steffanx> Oh, i think you said something similar before … bad memory 2012-06-30T12:47:38 < jpa-> anyway, i'm having trouble with it not going where i want it to go :) 2012-06-30T12:48:13 < jpa-> because it doesn't spin around the motor axis, but instead around some random axis.. and i don't understand the physics involved 2012-06-30T12:48:54 <+Steffanx> :( 2012-06-30T12:50:08 <+Steffanx> Laurenceb is our physics guy 2012-06-30T12:51:46 < jpa-> i would need to understand how a ball with eccentric weight rolls about 2012-06-30T13:11:45 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-252-22.clienti.tiscali.it] has joined ##stm32 2012-06-30T13:13:29 < tavs> has anyone tried getting SDIO with to work with any stm32f4xx? 2012-06-30T13:13:37 < tavs> with DMA 2012-06-30T13:13:47 < zippe> tavs: SDIO or SDCARD via SPI? 2012-06-30T13:13:52 < tavs> SDIO 2012-06-30T13:13:59 < zippe> Ah, sorry, no. 2012-06-30T13:14:47 < tavs> i was able to get it to work with an f1xx board. but i can't get it to work on stm32f4discovery 2012-06-30T13:15:41 < dongs> worked for me 2012-06-30T13:15:52 < dongs> i was testing dma cause i wanted to see how fast it can go 2012-06-30T13:16:28 < tavs> dongs: do you have soem code you can send me? 2012-06-30T13:16:48 < dongs> i have code that isnt mine that works, yes. icant send my code, but it also works. 2012-06-30T13:16:52 < dongs> sec lemme get a link 2012-06-30T13:17:06 < tavs> ok 2012-06-30T13:17:26 < dongs> http://dl.dropbox.com/u/34019941/images/2011/20111111/20111111_006.png > its pretty fast 2012-06-30T13:17:53 < Thorn> that font. 2012-06-30T13:18:21 <+Steffanx> WTF @ font 2012-06-30T13:18:28 < dongs> tavs: https://skydrive.live.com/?cid=36f4d1230f8a673c&sc=documents&id=36F4D1230F8A673C%213330 2012-06-30T13:18:32 <+Steffanx> What's next Comic Sans? 2012-06-30T13:18:34 < dongs> sdio shit in there, w/fatfs and other trash 2012-06-30T13:18:44 < Thorn> Papyrus 2012-06-30T13:19:08 < tavs> dongs: thanks 2012-06-30T13:19:15 < tavs> that's really good speed 2012-06-30T13:19:29 < tavs> nice font though. 2012-06-30T13:20:17 <+Steffanx> That test includes decoding of the mp3 dongs ? 2012-06-30T13:20:24 < dongs> lol no 2012-06-30T13:20:25 < dongs> just readingi t 2012-06-30T13:20:29 <+Steffanx> Too bad 2012-06-30T13:21:20 <+Steffanx> 21MB/s is pretty impressive ... 2012-06-30T13:22:39 < dongs> agreed 2012-06-30T13:31:55 <+Steffanx> Whoa, DEV-C++ is back alive .. who didn't use that C/C++ editor on windows? 2012-06-30T13:45:43 < Thorn> dongs: why all the caps and an inductor between GND and GND in http://i.imgur.com/doAG0.png? 2012-06-30T13:48:25 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-06-30T13:50:01 <+Steffanx> I was too afraid to ask Thorn :P 2012-06-30T13:54:21 <+Steffanx> Which editor is that btw dongs ? Altium? 2012-06-30T13:54:50 <+Steffanx> No, that one looks different 2012-06-30T13:54:56 < Thorn> that was dick^H^Hptrace 2012-06-30T13:55:04 <+Steffanx> Ah, dicktrace 2012-06-30T13:55:40 <+Steffanx> Oh, I actually used that one but I used the white theme 2012-06-30T13:56:55 < dongs> Thorn: case gnd and shield gnd 2012-06-30T13:57:44 < dongs> some advanced analog zionist filtering tekneeq, stole it from some company that must know what they're doing 2012-06-30T13:59:03 < Thorn> why a series LC circuit? 2012-06-30T13:59:33 < dongs> i dont know, you tell me. i literally grabbed this out of some other device that was massproduction-tested. 2012-06-30T14:00:07 < Thorn> also, where is shield and where is ground? because if 6 and 7 is ground it makes even less sense 2012-06-30T14:00:15 < dongs> 6/7 is shield 2012-06-30T14:00:17 < dongs> as in case 2012-06-30T14:00:24 < dongs> 5 is cable gnd 2012-06-30T14:00:51 -!- tavs [~tavish@120.56.164.207] has quit [Ping timeout: 252 seconds] 2012-06-30T14:01:06 -!- batterystaple [bc1a5cee@gateway/web/freenode/ip.188.26.92.238] has joined ##stm32 2012-06-30T14:02:22 <+Steffanx> dongs trusts other companies "tekneeqs" ? 2012-06-30T14:02:26 < dongs> yes. 2012-06-30T14:02:41 -!- tavs [~tavish@120.59.41.95] has joined ##stm32 2012-06-30T14:03:18 < batterystaple> I am trying to generate a 440Hz, 50% duty cycle wave on timer4 channel3. After studying the examples and various web resources, i wrote this - http://pastebin.com/EWTXipAU - but it doesn't work. 2012-06-30T14:05:19 < dongs> did you actually turn on the timer 2012-06-30T14:05:51 < batterystaple> cr1, bit cen? 2012-06-30T14:05:56 < dongs> guess so 2012-06-30T14:06:50 < batterystaple> i did now, no changes, but no examples seem to require this. 2012-06-30T14:07:11 < dongs> dunno. works for me in stdperiphlib. 2012-06-30T14:07:14 < dongs> this is what, libopencm3? 2012-06-30T14:08:06 < batterystaple> yeah. 2012-06-30T14:08:36 < batterystaple> i like cm3 better because i couldn't get usb working on stdperiph 2012-06-30T14:33:32 -!- Laurenceb_ [~Laurence@host109-157-38-53.range109-157.btcentralplus.com] has joined ##stm32 2012-06-30T14:33:35 < Laurenceb_> sup 2012-06-30T14:56:48 <+Steffanx> Tha sky bro 2012-06-30T14:57:46 < Laurenceb_> i see dongs is in the music business http://i0.kym-cdn.com/photos/images/original/000/074/221/Rape_cd.jpg?1318992465 2012-06-30T14:58:10 <+Steffanx> I think it's more your business 2012-06-30T15:03:16 < dongs> haha 2012-06-30T15:03:19 < dongs> told. 2012-06-30T15:04:52 < batterystaple> turns out i needed timer_set_oc_mode(TIM4, TIM_OC3, TIM_OCM_PWM1); 2012-06-30T15:05:01 < batterystaple> and also timer_enable_counter(TIM4);, as dongs said. 2012-06-30T15:05:14 < Laurenceb_> thats with st periph lib? 2012-06-30T15:05:20 < batterystaple> cm3 2012-06-30T15:12:58 < Laurenceb_> ah 2012-06-30T15:13:05 < Laurenceb_> it looks a bit nicer 2012-06-30T15:13:37 < dongs> by "nicer" you mean "fuckloadmoretypinginlowercase" and "zero docs" 2012-06-30T15:13:43 -!- peabody124 [~peabody12@stgt-5f71be3a.pool.mediaWays.net] has quit [Read error: Connection reset by peer] 2012-06-30T15:13:45 < dongs> then its nice for sure! 2012-06-30T15:13:50 -!- peabody124 [~peabody12@stgt-5f71be3a.pool.mediaWays.net] has joined ##stm32 2012-06-30T15:14:04 < Thorn> http://www.youtube.com/watch?v=daVDrGsaDME 2012-06-30T15:14:05 < Laurenceb_> its slightly more organised i think 2012-06-30T15:14:35 < dongs> The Adobe Flash Player or an HTML5 supported browser is required for video playback. 2012-06-30T15:14:38 < dongs> Get the latest Flash Player 2012-06-30T15:14:41 < dongs> Learn more about upgrading to an HTML5 browser 2012-06-30T15:15:02 < Thorn> you're still using IE dongs? 2012-06-30T15:15:07 < dongs> IE6 2012-06-30T15:15:30 < Thorn> you're the cancer that is killing web then. 2012-06-30T15:15:55 <+Steffanx> LOLOL dongs 2012-06-30T15:16:00 < Thorn> why the hell all my ceramic caps are Y5V 2012-06-30T15:16:34 <+Steffanx> and wtf you use irssi? 2012-06-30T15:16:44 <+Steffanx> on linux 2012-06-30T15:17:46 < dongs> Thorn: why not 2012-06-30T15:17:57 < dongs> Y5V = cheaper than X5/7R 2012-06-30T15:21:40 < tavs> dongs: di you use SPI or SDIO? 2012-06-30T15:21:44 < dongs> SDIO 2012-06-30T15:21:46 < tavs> ok 2012-06-30T15:21:49 < dongs> 4bit mode 2012-06-30T15:21:54 < dongs> THE REAL DEAL 2012-06-30T15:22:06 < tavs> with the stm32f4discovery ? 2012-06-30T15:22:09 < dongs> yes 2012-06-30T15:22:15 < tavs> ok 2012-06-30T15:22:18 < dongs> i dont have pics and i dont feel like digging it out 2012-06-30T15:22:18 * tavs copies 2012-06-30T15:22:25 < dongs> I took some random SD card breakout shit 2012-06-30T15:22:29 < dongs> and wierd it up with breadboard wire headers 2012-06-30T15:22:38 < dongs> looked pretty ghetto 2012-06-30T15:22:47 <+Steffanx> PRO. 2012-06-30T15:22:51 < dongs> ^_^ 2012-06-30T15:23:15 < tavs> i have it wired up and am testing it, but it compiled to SPI by default, and is also getting my sd card as write protected 2012-06-30T15:24:41 < Laurenceb_> fatfs? 2012-06-30T15:25:00 < Laurenceb_> theres some st example code somewhere 2012-06-30T15:25:23 < dongs> the shit i linked him works. 2012-06-30T15:27:43 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-252-22.clienti.tiscali.it] has quit [Quit: Leaving.] 2012-06-30T15:27:57 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-252-22.clienti.tiscali.it] has joined ##stm32 2012-06-30T15:35:34 -!- tavs [~tavish@120.59.41.95] has quit [Quit: leaving] 2012-06-30T16:17:09 -!- peabody124 [~peabody12@stgt-5f71be3a.pool.mediaWays.net] has quit [Ping timeout: 248 seconds] 2012-06-30T16:46:27 -!- os-app92 [~ftw@226.200.69.86.rev.sfr.net] has joined ##stm32 2012-06-30T16:58:09 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-06-30T17:03:17 -!- Oldboy [myircshell@grid.sh3lls.net] has joined ##stm32 2012-06-30T17:19:19 -!- ntfreak_ is now known as ntfreak 2012-06-30T17:53:38 -!- os-app92 [~ftw@226.200.69.86.rev.sfr.net] has quit [Quit: My Mac has gone to sleep.] 2012-06-30T17:58:44 -!- Rickta59 [463d49a6@gateway/web/freenode/ip.70.61.73.166] has joined ##stm32 2012-06-30T18:08:02 < zyp> so, for some reason both my laptop charger and ssd appeared to have died today 2012-06-30T18:09:35 < dongs> cool 2012-06-30T18:09:39 < dongs> apple? 2012-06-30T18:09:44 < dongs> maybe the radiation 2012-06-30T18:10:05 < zyp> radiation as far as osaka? :p 2012-06-30T18:10:47 < zyp> charger was apple, already picked up a replacement for that 2012-06-30T18:11:08 < zyp> and I had an old OS installation on the other drive in the laptop, which booted up fine once I removed the ssd 2012-06-30T18:12:33 < zyp> unsure about the actual status of the ssd, I just observe that the machine refuses to boot anything with the ssd plugged in 2012-06-30T18:14:26 < cjbaird> Just as well, as the TSA would be wanting to go through the SSD's contents when you return. 2012-06-30T18:14:42 < zyp> no, they won't 2012-06-30T18:16:22 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-30T18:16:30 < zyp> I'm not from the US, so I don't have to deal with that shit 2012-06-30T18:18:36 < zyp> oh well, I didn't have anything important on the ssd, so it's no big deal if the contents are lost 2012-06-30T18:19:16 < zyp> and it's still under warranty, so I should get it replaced for free as well 2012-06-30T18:23:58 < cjbaird> We get the "We're Customs! We can look at -everything- coming into the country!" here in Australia.. People get busted for having porn on laptops/phones/memory cards all the time :/, even the stuff that would be legal to bring in if it were on paper.. 2012-06-30T18:26:36 < zyp> so far I've never been stopped in customs when flying home to norway 2012-06-30T18:27:44 <+Steffanx> Norway isn't Australia nor the US :) 2012-06-30T18:27:47 <+Steffanx> They're sick 2012-06-30T18:27:56 < zyp> yeah, I've heard rumors 2012-06-30T18:28:34 <+Steffanx> There's here something on TV about the Australian customs .. sometimes i think "WTF" when I watch that 2012-06-30T18:29:14 < zyp> the only thing I'm afraid of with customs is that they'll hassle me about import tax 2012-06-30T18:31:13 < zyp> the exempt limit is 6000 nok (about $1000) or so, and I've got both laptops and camera shit worth more than that, that I in theory have to prove I didn't buy during my vacation 2012-06-30T18:31:53 <+Steffanx> You can't proof it afterwards? 2012-06-30T18:32:50 < zyp> I don't lug around the receipts stating where and when I bought all the valuable items I'm carrying 2012-06-30T18:33:24 <+Steffanx> I do 2012-06-30T18:33:38 <+Steffanx> in my mailbox as i ordered most of it online 2012-06-30T18:34:10 < zyp> and I don't know how the customs officers would like «well, I bought this lens in Japan in 2008, and I probably have the receipt proving that somewhere at home» 2012-06-30T18:35:03 <+Steffanx> "Guilty until proven otherwise" ? 2012-06-30T18:37:21 < zyp> well, I don't know, as I said I've never been stopped :p 2012-06-30T18:38:38 <+Steffanx> ok, time will tell 2012-06-30T18:38:58 < zyp> I'm probably not going to be stopped this year either :p 2012-06-30T18:39:20 <+Steffanx> Laurenceb_ as master troll should give them a call 2012-06-30T18:39:31 < BrainDamage> in reality he's been stopped multiple times already 2012-06-30T18:39:38 < BrainDamage> but the experience was so traumatic he removed it 2012-06-30T18:39:49 <+Steffanx> Brain Damage 2012-06-30T18:40:41 < zyp> I've been stopped a few times for custom inspections when driving to/from sweden 2012-06-30T18:48:15 < cjbaird> The Australian 'Customs Patrol' shows are shit. The New Zealand Cop/Customs/Ranger shows are the ones that rate here. 2012-06-30T18:51:08 < cjbaird> Fun Fact: Australia never gave a fuck about Steve Irwin when he was alive (Who was of course eulugized into some National Hero[tm] after..) His shows were always ratings bombs; at least once they canceled mid-season. We could tell the guy was /fake/. 2012-06-30T18:54:19 -!- peabody124 [~peabody12@stgt-5f71be3a.pool.mediaWays.net] has joined ##stm32 2012-06-30T19:02:07 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 244 seconds] 2012-06-30T19:05:19 -!- tavish [~tavish@120.56.233.229] has joined ##stm32 2012-06-30T19:05:20 -!- tavish [~tavish@120.56.233.229] has quit [Changing host] 2012-06-30T19:05:20 -!- tavish [~tavish@unaffiliated/tavish] has joined ##stm32 2012-06-30T19:14:15 -!- cjbaird [~cjb@ppp121-44-108-139.lns20.syd6.internode.on.net] has quit [Quit: Konversation terminated!] 2012-06-30T19:21:58 -!- R2COM [~blackops@c-98-230-217-221.hsd1.nm.comcast.net] has joined ##stm32 2012-06-30T19:28:55 -!- peabody124 [~peabody12@stgt-5f71be3a.pool.mediaWays.net] has quit [Ping timeout: 264 seconds] 2012-06-30T19:40:33 < R2COM> i received my stm32f405rgt6 chip, the strange thing is it has two circles on each corner, i am not sure now which one is really PIN1 designator? one circle is a little bigger than another. both are stamped circles. 2012-06-30T19:41:40 < Thorn> the one near pin 1 is the right one 2012-06-30T19:41:57 < R2COM> yes. you are brilliant 2012-06-30T19:42:54 < BrainDamage> look at the datasheet, under packaging section 2012-06-30T19:43:21 < R2COM> datasheet has a drawing, with circle near pin1, but thats it 2012-06-30T19:43:29 < Thorn> if you orient the chip so that markings are upright, pin one should be in the lower left corner 2012-06-30T19:44:21 < BrainDamage> use the print to distinguish top to bottom? 2012-06-30T19:44:21 < R2COM> ok 2012-06-30T19:44:46 < R2COM> thats how it is for stm32f407 chip on discovery board 2012-06-30T19:44:56 < R2COM> so i guess I'll then consider same for this chip 2012-06-30T19:45:24 < R2COM> its just, this chip has another circle, that one is bigger, on top left corner (and text is upright) 2012-06-30T19:45:42 < R2COM> alright 2012-06-30T19:45:51 < Thorn> should be true for all qfp chips 2012-06-30T19:46:21 < Thorn> ... or maybe not. ft2232h has pin 1 in the upper left corner 2012-06-30T19:47:24 < Thorn> same with a cyclone II 2012-06-30T19:48:04 < zyp> there is no general truth there 2012-06-30T19:48:13 -!- tavish_ [~tavish@59.177.7.3] has joined ##stm32 2012-06-30T19:48:38 < zyp> the smaller cirlce is the pin 1 designator 2012-06-30T19:48:43 -!- sifi [~silas@osuosc/sifi] has quit [Read error: Operation timed out] 2012-06-30T19:49:56 -!- tavish [~tavish@unaffiliated/tavish] has quit [Ping timeout: 246 seconds] 2012-06-30T19:50:05 < Thorn> yes, should be the smaller and deeper one 2012-06-30T19:51:25 < zyp> exactly 2012-06-30T19:51:59 < Thorn> so as not to confuse a p&p machine 2012-06-30T20:16:11 -!- BrainDamage [~BrainDama@dynamic-adsl-78-12-252-22.clienti.tiscali.it] has quit [Ping timeout: 246 seconds] 2012-06-30T20:21:26 < Laurenceb_> can gcc work out sqrt at compile time 2012-06-30T20:21:38 < Laurenceb_> say i have #define FOO=sqrt(BAR) 2012-06-30T20:21:42 < Laurenceb_> say i have #define FOO sqrt(BAR) 2012-06-30T20:21:45 < Laurenceb_> even 2012-06-30T20:23:58 -!- BrainDamage [~BrainDama@dynamic-adsl-94-36-252-249.clienti.tiscali.it] has joined ##stm32 2012-06-30T20:29:49 -!- sifi [~silas@69.85.89.117] has joined ##stm32 2012-06-30T20:30:21 -!- sifi is now known as Guest28700 2012-06-30T20:41:27 < zippe> Laurenceb: FP computation at compile time is badly fraught 2012-06-30T20:41:48 < zippe> Laurenceb: e.g. no guarantee that the compile-time FP environment matches the runtime environment 2012-06-30T20:42:21 < zippe> Anyone serious about math would say no. 2012-06-30T20:42:45 -!- szczys [~mike@68-117-130-137.dhcp.mdsn.wi.charter.com] has joined ##stm32 2012-06-30T20:43:31 < Thorn> everybody uses ieee 754 these days, no? 2012-06-30T20:44:57 < Thorn> or did you mean something else? 2012-06-30T21:03:53 < zippe> Hah, so naïve 2012-06-30T21:04:09 < zippe> ieee754 doesn't answer questions like "what is your rounding model?? 2012-06-30T21:21:38 -!- tavish_ [~tavish@59.177.7.3] has quit [Ping timeout: 240 seconds] 2012-06-30T21:24:16 -!- Rickta59 [463d49a6@gateway/web/freenode/ip.70.61.73.166] has quit [Quit: Page closed] 2012-06-30T21:31:51 < Laurenceb_> http://cdn.memegenerator.net/instances/250x250/22679129.jpg 2012-06-30T21:32:03 < Laurenceb_> is all i have to say to that 2012-06-30T21:44:41 < batterystaple> that meme doesn't even make sense 2012-06-30T21:45:11 < Laurenceb_> thats why its relevant to flyback 2012-06-30T21:47:09 < batterystaple> what does even ermahgerd stand for 2012-06-30T21:48:20 < zippe> http://knowyourmeme.com/memes/ermahgerd 2012-06-30T21:51:20 < Thorn> >High Expectations Asian Father (Part of a series on Advice Animals.) 2012-06-30T21:52:51 < batterystaple> ermahgerd is also advice animals 2012-06-30T21:57:26 < Laurenceb_> so much autism on here 2012-06-30T22:12:16 < zippe> Better/worse than manuism? 2012-06-30T22:30:39 < szczys> can anyone tell me what the pound sign points to in assembly language? 2012-06-30T22:30:42 < szczys> for instance: 2012-06-30T22:30:44 < szczys> str r3, [r2, #44] 2012-06-30T22:31:49 < jpa-> immediate 2012-06-30T22:32:09 < jpa-> store r3 to adress r2 + 44 2012-06-30T22:34:18 < szczys> thanks. So: 2012-06-30T22:34:20 < szczys> movs r2, #1 2012-06-30T22:34:27 < szczys> moves from r2 to r3? 2012-06-30T22:34:54 -!- zippe1 [~Adium@173.11.99.161] has joined ##stm32 2012-06-30T22:34:56 -!- zippe [~Adium@173.11.99.161] has quit [Ping timeout: 255 seconds] 2012-06-30T22:49:37 < jpa-> szczys: err.. no? 2012-06-30T22:50:02 < jpa-> it moves '1' to r2 2012-06-30T22:50:44 < Thorn> where did you see r3 in there 2012-06-30T22:51:37 < jpa-> 'immediate' means "plain number" 2012-06-30T23:02:09 < zippe1> szczys: your cite says "store the contents of r3 at address (r2 + 44) 2012-06-30T23:02:44 < zippe1> If you're using C, that's almost certainly a structure or array access 2012-06-30T23:03:16 < zippe1> uint32 foo[]; foo[11] = bar; 2012-06-30T23:03:48 < Thorn> or a local variable access if r2 happens to be a frame pointer 2012-06-30T23:04:01 < zippe1> Frame pointer is r7 in EABI 2012-06-30T23:04:08 < zippe1> So that's not it 2012-06-30T23:04:34 < Thorn> right but the pattern is the same 2012-06-30T23:04:39 < zippe1> Also, gcc is fairly aggressive about tracking the stack pointer, it's very rare for it to emit FP-relative ops 2012-06-30T23:05:02 < zippe1> (in fact, you can tell it not to maintain the FP and get a GPR back with -fomit-frame-pointer) 2012-06-30T23:05:18 < zippe1> FP is mostly just useful for debugging 2012-06-30T23:16:42 -!- Rickta59 [~Rickta59@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-06-30T23:32:58 -!- batterystaple [bc1a5cee@gateway/web/freenode/ip.188.26.92.238] has quit [Quit: Page closed] 2012-06-30T23:46:41 -!- Rickta59 [~Rickta59@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Quit: ChatZilla 0.9.88.2 [Firefox 13.0.1/20120615050910]] --- Log closed Sun Jul 01 00:00:32 2012