--- Log opened Thu Mar 01 00:00:48 2012 2012-03-01T00:11:00 < Thorn> can anyone please take a brief look at this for any stupid mistakes? http://imgur.com/a/l0uNE 2012-03-01T00:12:35 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-01T00:15:16 < Tectu> jpa-, nice, looks helpful 2012-03-01T00:15:24 < Tectu> but do i need a PLL config when i use the HSE? 2012-03-01T00:15:55 < Tectu> PLL is optional, right? 2012-03-01T00:16:57 < Thorn> pll is optional but you aren't going to run anywhere close to full speed without it 2012-03-01T00:17:32 < Tectu> so i go with 8MHz Crystal and 3x PLL to get my 24MHz systemclock? 2012-03-01T00:18:26 < Thorn> yes pretty much 2012-03-01T00:24:02 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-01T00:29:20 -!- peabody124 [~peabody12@c-98-201-177-96.hsd1.tx.comcast.net] has joined ##stm32 2012-03-01T00:31:12 < Tectu> shouldn't this light up the LED on the discovery board, when the stm32 is running propery from HSE and otherwise, nothing happens? 2012-03-01T00:34:28 -!- peabody124 [~peabody12@c-98-201-177-96.hsd1.tx.comcast.net] has quit [Ping timeout: 276 seconds] 2012-03-01T00:55:23 -!- davyJones is now known as Guest80236 2012-03-01T00:55:33 -!- Guest80236 is now known as davyJones- 2012-03-01T00:56:45 * davyJones- hey hey, we're the monke..........*gasp* *argh* *holds_chest* *thud* 2012-03-01T01:13:25 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 248 seconds] 2012-03-01T01:18:48 -!- Randomskk [~adam@paladin.randomskk.net] has joined ##stm32 2012-03-01T01:38:49 -!- Laurenceb_ [~Laurence@host86-174-23-226.range86-174.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-03-01T02:56:11 -!- UnaClocker [~unaclocke@24-113-85-150.wavecable.com] has joined ##stm32 2012-03-01T03:17:00 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 272 seconds] 2012-03-01T03:23:00 < zippe> Tectu: the PLL requires a 1-2MHz input clock 2012-03-01T03:23:18 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-01T03:23:24 < zippe> So you have to prescale by 8, then multiply by 24 to get a 24MHz system clock 2012-03-01T03:24:25 < zippe> ST tried to make it harder to understand PLL setup for the STM32 than it has to be 2012-03-01T03:24:28 < zippe> The rules are really simple 2012-03-01T03:24:50 < zippe> Pick any whole-number-MHz crystal from 4MHz to 24MHz 2012-03-01T03:24:59 < zippe> Prescale to 1MHz. 2012-03-01T03:25:08 < zippe> From there on out, everything is the same for any crystal. 2012-03-01T03:55:03 -!- wattrod [~wattrod@rrcs-67-78-118-6.sw.biz.rr.com] has left ##stm32 [] 2012-03-01T04:10:13 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-01T04:34:54 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 272 seconds] 2012-03-01T04:58:40 -!- wattrod [~wattrod@rrcs-67-78-118-6.sw.biz.rr.com] has joined ##stm32 2012-03-01T05:00:59 < wattrod> any hints if eclipse is failing to debug my code? It returns a cryptic message "Program is not a recognized executable" .. both the gdb program (from Summon) and the gdbserver (from texane-stlink) are in the path... 2012-03-01T05:02:53 < wattrod> I've got a debug configuration set up that specifies both of them 2012-03-01T05:10:30 < zippe> Are you trying to debug the elf output, or something else? 2012-03-01T05:18:12 < wattrod> i'm not sure how to tell, actually ... I was looking for something in eclipse that would tell me what it's trying to have gdb load 2012-03-01T05:19:07 < wattrod> i've tried doing all this manually, btw ... running the SAT build of gdb, connecting to the gdbserver, loading the .elf file, and it works 2012-03-01T05:19:43 < wattrod> but eclipse appears to be really confused 2012-03-01T05:40:35 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-01T05:42:38 < zippe> That is prettymuch par for the course 2012-03-01T05:52:51 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-01T06:03:51 -!- peabody124 [~peabody12@128.249.96.21] has quit [Quit: peabody124] 2012-03-01T06:04:11 < wattrod> sigh ... I can debug with gdb, but I try to avoid it when I can 2012-03-01T06:05:04 < wattrod> (meaning, eclipse does a great job of making it usable) 2012-03-01T06:07:36 -!- UnaClocker [~unaclocke@24-113-85-150.wavecable.com] has quit [Quit: Leaving...] 2012-03-01T06:08:40 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-01T06:13:35 < wattrod> with a name like flyback, you ought to be prepared for surges of high voltage ... ? :-) 2012-03-01T06:31:05 < dongs> lol debugging with gdb 2012-03-01T06:38:08 < wattrod> grr .... 'tis pissing me off. gdb appears to be completely broken; it's stepping, sort of, but it's ignoring breakpoints and following the code in a weird order 2012-03-01T06:38:21 < wattrod> might be a problem with texane-stlink (?) 2012-03-01T06:41:28 < wattrod> still have no idea what eclipse's problem is ... it thinks there are errors in my code (apparently it's having trouble going past 2 nested includes) when the compiler builds it just fine 2012-03-01T06:54:39 < zippe> wattrod: sounds a lot like you have gdb looking at something other than the thing that's flashed 2012-03-01T06:54:42 < zippe> Or you have a bad flash 2012-03-01T06:54:51 < zippe> You should try disassembling a function while connected to the target 2012-03-01T06:55:01 < zippe> Then disconnect and disassemble it again and compare the two 2012-03-01T06:55:12 < zippe> because GDB doesn't actually verify 'load' commands... 2012-03-01T06:55:32 < wattrod> when you do a "load" command, is it supposed to load the symbols as well? 2012-03-01T06:55:34 < zippe> I have had an enormous amount of trouble with it. First thing I do on every platform is write a bootloader 2012-03-01T06:55:49 < zippe> No, 'load' just sends portions of the object file to the target 2012-03-01T06:56:01 < wattrod> I'm finding that I have to use the file command to load the symbols so I can debug 2012-03-01T06:56:09 < wattrod> ah, I guess that explains it 2012-03-01T06:56:25 < zippe> Are you starting gdb with "gdb " ? 2012-03-01T06:56:32 < wattrod> no 2012-03-01T06:56:32 -!- peabody124 [~peabody12@128.249.96.123] has quit [Read error: Connection reset by peer] 2012-03-01T06:56:36 < zippe> You should 2012-03-01T06:56:46 < wattrod> just running it, connecting to the server, and then loading the .elf 2012-03-01T06:56:47 < zippe> Then 'load' with no arguments will DTRT 2012-03-01T06:56:52 < wattrod> ok 2012-03-01T06:56:53 < zippe> Yeah, that's not going to work right 2012-03-01T06:57:07 < zippe> Also, you don't need to quit GDB when you recompile 2012-03-01T06:57:17 < wattrod> interesting 2012-03-01T06:57:19 < zippe> when you 'load' it will notice that the file has changed and reset 2012-03-01T06:57:28 < zippe> er, resync 2012-03-01T06:57:37 < zippe> Also, use 'run' to restart the target 2012-03-01T06:57:45 < zippe> But, again, DO NOT TRUST that load has correctly loaded anything 2012-03-01T06:57:46 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-01T06:57:53 < zippe> It's really sketchy. Use a bootloader. 2012-03-01T06:58:02 < zippe> One that verifies your upload. 2012-03-01T06:58:22 < wattrod> i'm totally new to stm32, in addition to being new to these tools. Not quite at the stage of writing a bootloader yet 2012-03-01T06:58:46 < wattrod> I've done a lot with PIC24 and AVR, but I'm new with arm cortex 2012-03-01T07:08:59 < wattrod> well, it's stepping reasonably now, so I guess that's progress 2012-03-01T07:09:04 < wattrod> it's still ignoring breakpoints though 2012-03-01T07:12:38 < zippe> Depending on which board you're using and what interfaces you have available, there are plenty of options 2012-03-01T07:12:59 < zippe> e.g. the BlackMagic debugger has a UDB DFU bootloader that works well on the F1 devices 2012-03-01T07:13:25 < wattrod> at the moment all I have available are an stlink v1 and a v2 2012-03-01T07:13:43 < wattrod> I keep hearing about the blackmagic ... I'm tempted to get one 2012-03-01T07:16:35 < wattrod> er, holdon, methinks I'm confused (sigh) 2012-03-01T07:17:51 < wattrod> blackmagic debugger != "black magic probe" 2012-03-01T07:18:48 < wattrod> eh, I'm not very bright this evening 2012-03-01T07:18:50 < dongs> protip: purchase an original/clone jlink/ulink and use real tools if you're srs about debugging stuff. 2012-03-01T07:19:22 < wattrod> yeah, I'm just at the point of going back to Keil, so I can actually get work done again 2012-03-01T07:19:52 < wattrod> this was a brief excursion to see if I could do my development in Linux instead of Windows, mainly 2012-03-01T07:20:21 < wattrod> and so far, I'm not doing so well 2012-03-01T07:22:55 -!- peabody124 [~peabody12@128.249.96.123] has quit [Read error: Connection reset by peer] 2012-03-01T07:23:34 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-01T07:41:59 < dongs> a wise decision (to go back). 2012-03-01T07:42:03 < dongs> its kinda liek me and eagle. 2012-03-01T07:42:14 < dongs> i tried to use it to do a real work project and it was a gigantic waste of time. 2012-03-01T07:42:18 < dongs> more than once. 2012-03-01T07:42:22 < dongs> then i stopped trying. 2012-03-01T08:07:59 < wattrod> I feel your pain, literally every day ... we're still stuck with eagle :-( 2012-03-01T08:09:24 < wattrod> oh well, I'm out of here for now ... thanks for the help, zippe 2012-03-01T08:12:04 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-01T08:58:55 < Tectu> [Thu March 01 2012 02:23:00]: zippe (~Adium@173.11.99.161) (##stm32): Tectu: the PLL requires a 1-2MHz input clock 2012-03-01T08:59:12 < Tectu> yes, but i can use a 8MHz crystal, cant ? 2012-03-01T08:59:16 < Tectu> can't I? 2012-03-01T09:04:49 < zippe> Of course 2012-03-01T09:05:04 < zippe> But you have to set the prescaler to divide it down to somewhere between 1-2MHz for the PLL 2012-03-01T09:07:42 < Tectu> okay 2012-03-01T09:07:52 < Tectu> funny that it works now Oo 2012-03-01T09:08:03 < Tectu> afaik i just have PLL x3 and 8MHz crystal 2012-03-01T09:08:17 < Tectu> and USART works 2012-03-01T09:08:22 < Tectu> ... at least some time >.< 2012-03-01T09:09:39 < Tectu> jep, definitly no prescaler: http://pastebin.com/QtJCLNnV 2012-03-01T09:14:31 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-03-01T09:14:45 < ratatata> nu 2012-03-01T09:15:54 < Tectu> morning ratatata 2012-03-01T09:16:54 < ratatata> hi 2012-03-01T09:18:43 < Tectu> what does 'nu' mean? i read it so often in this channel 2012-03-01T09:20:33 < ratatata> nu 2012-03-01T09:20:50 < ratatata> nu means something like yo 2012-03-01T09:21:19 < ratatata> dunno what that mean 2012-03-01T09:21:24 < ratatata> exactly 2012-03-01T09:21:42 < Tectu> ah 2012-03-01T09:21:57 < ratatata> nu 2012-03-01T09:28:54 < Tectu> :D 2012-03-01T09:29:02 < Tectu> ratatata, may you review my USART code? 2012-03-01T09:29:15 < ratatata> sorry 2012-03-01T09:29:18 < ratatata> no 2012-03-01T09:29:28 < ratatata> im late to work 2012-03-01T09:31:24 < Tectu> no problem 2012-03-01T09:31:28 < Tectu> that's why i asked ;) 2012-03-01T09:32:15 < ratatata> ok 2012-03-01T09:35:26 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-03-01T10:02:11 < Tectu> zyp, you arround, sir? 2012-03-01T10:02:16 < zyp> yep 2012-03-01T10:03:10 < Tectu> do you have a few minutes for me, sir? 2012-03-01T10:03:45 < Tectu> zyp, this is my usart.c really basic since I don't work on it for a year. but does that look okay? http://pastebin.com/1JShTVRP 2012-03-01T10:04:32 < zyp> says private paste, so I can't view it 2012-03-01T10:05:10 < Tectu> up, sec 2012-03-01T10:05:40 < Tectu> here you go, zyp: http://pastebin.com/NJGLWm18 2012-03-01T10:07:46 < zyp> Tectu, looks like normal basic usart code, can't see anything wrong 2012-03-01T10:08:24 < jpa-> Tectu: BRR is wrong 2012-03-01T10:08:52 < jpa-> (assuming that fcpu is the CPU freq, i.e. 24 000 000) 2012-03-01T10:09:10 < jpa-> it should be CPU_FREQ / 16 / baudrate 2012-03-01T10:09:44 < Tectu> jpa-, how does that come? 2012-03-01T10:09:46 < Tectu> and morning, jpa- :) 2012-03-01T10:10:06 < zyp> jpa-, no 2012-03-01T10:10:16 < zyp> it's pclk/baudrate 2012-03-01T10:10:27 < jpa-> ahh yeah :/ 2012-03-01T10:10:32 < zyp> and pclk is different between the different usarts 2012-03-01T10:10:38 < jpa-> it ignores the lowest 4 bits 2012-03-01T10:10:59 < zyp> http://cgit.jvnv.net/suzumebachi/tree/hal/usart.h?h=stm32f4 2012-03-01T10:11:26 < jpa-> just got confused of my own code.. it uses round_div() so i have some shifting there 2012-03-01T10:12:06 < Tectu> so mine should work at all? 2012-03-01T10:12:31 < zyp> as long as you call it with the right fcpu value 2012-03-01T10:13:16 < Tectu> and this is my main: http://pastebin.com/uwtSr6PA 2012-03-01T10:13:16 < jpa-> hmm, looking at the datasheet, i really wonder what is the deal with my old code 2012-03-01T10:13:24 < jpa-> USART1->BRR = (round_div(configCPU_CLOCK_HZ, 16 * 115200) << 4) | 1; 2012-03-01T10:13:43 < jpa-> it looks as if i have written it for a totally different chip ,) 2012-03-01T10:13:51 < Tectu> jpa-, in my last post, line 25 2012-03-01T10:14:09 < Tectu> you had there HSIRDY and not HSERDY, i changed that, shouldn't that work with HSERDY and not HSIRDY? 2012-03-01T10:14:52 < jpa-> hmm, "no idea" :) 2012-03-01T10:15:07 < Tectu> okay, how does my main look? shouldn't that work too? 2012-03-01T10:19:15 < zippe> Tectu: which micro? F103? 2012-03-01T10:20:32 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-03-01T10:20:41 < Tectu> no, F100RB 2012-03-01T10:20:46 < Tectu> stm32 discovery thingy 2012-03-01T10:20:56 < Tectu> zippe 2012-03-01T10:21:40 < zippe> Ah, so clocking for the F100 is different 2012-03-01T10:22:03 < Tectu> oh, well 2012-03-01T10:22:22 < zippe> You might want to start by ripping out *all* of your clock setup code 2012-03-01T10:22:30 < zippe> The chip resets running @ 4MHz 2012-03-01T10:22:35 < zippe> Get that working first. 2012-03-01T10:22:51 < Tectu> 4MHz? not 8? 2012-03-01T10:23:11 < zippe> Look at figure 8 in the reference manual 2012-03-01T10:23:28 < zippe> gah 2012-03-01T10:23:34 < zippe> sorry, too much red wine 2012-03-01T10:23:36 < zippe> Yes, 8MHz 2012-03-01T10:23:50 < zippe> Both PCLKs, the CPU clock and the HCLK are all 8MHz after reset 2012-03-01T10:24:03 < Tectu> yes 2012-03-01T10:24:09 < zippe> Ditto FCLK 2012-03-01T10:24:12 < zippe> So make that work first 2012-03-01T10:24:14 < Tectu> so remove all code and go with 8MHz FCPU 2012-03-01T10:24:17 < Tectu> okay 2012-03-01T10:24:23 < zippe> Yes, get your UART driver working like that first. 2012-03-01T10:24:37 < Tectu> i am really confused about cpuclock, hclk and fclk 2012-03-01T10:25:36 < zippe> Ok, what's the question? 2012-03-01T10:26:00 < zippe> On the F100, the answer is easy; "everything runs at 24MHz except for the ADC" 2012-03-01T10:26:28 < Tectu> aye 2012-03-01T10:26:38 < zippe> You can make it run slower, but unless power is critical there is no point 2012-03-01T10:26:47 < Tectu> right 2012-03-01T10:26:55 < zippe> FCLK is the CPU clock 2012-03-01T10:27:04 < zippe> HCLK is the top-level bus clock 2012-03-01T10:27:15 < Tectu> btw, i uncommented all clock code, and i go with 8000000 to usart_init() and nothing happens on my terminal 2012-03-01T10:27:21 < Tectu> i might get my oscilloscope 2012-03-01T10:27:32 < zippe> paste your code somewhere 2012-03-01T10:28:57 < Tectu> here you go zippe http://pastebin.com/hXRZtXNE 2012-03-01T10:29:53 < zippe> I don't see you turning on any of the individual peripheral clocks 2012-03-01T10:30:08 < zippe> The UART is probably still clocked off. 2012-03-01T10:30:27 < Tectu> no, i do that in my usart.c 2012-03-01T10:31:07 < Tectu> zippe, here again, usart.c: http://pastebin.com/QL6NVLjq 2012-03-01T10:31:20 < zippe> Your clock setup code btw, you need to start the HSE, then configure it, then start the PLL, then select it 2012-03-01T10:31:46 < Tectu> what's the configuration after HSE startup? 2012-03-01T10:32:49 < zippe> GPIOA->CRH   |= (0x0BUL << 4);           // Tx (PA9) alt. out push-pull 2012-03-01T10:33:20 < zippe> That looks wrong as well; CRH defaults to 0x44444444 after reset; B | 4 is F 2012-03-01T10:35:37 < Tectu> well 2012-03-01T10:36:38 < zippe> Typical flow is HSE on, setup CFGR, setup FLASH_ACR, setup CFGR2, then start the PLL. Once the PLL is running, switch to it. 2012-03-01T10:36:57 < Tectu> okay, i'll note that, thank you 2012-03-01T10:37:07 < Tectu> zippe, don't see whats wrong with my GPIOA 2012-03-01T10:39:08 < zippe> What value do you expect in CRH after the line I pasted above? 2012-03-01T10:40:36 < zippe> By my reading you're configuring the TX pin open-drain. 2012-03-01T10:41:54 < Tectu> no, 0B = 0011; this is CNF1 = 0 CNF2 = 0 MODE1 = 1 MODE0 = 1 2012-03-01T10:42:05 < Tectu> and this is refering to table 16 2012-03-01T10:42:18 < Tectu> general purpose output push-pull max. output speed 50MHz 2012-03-01T10:42:20 < zippe> 0x0b is 1011 2012-03-01T10:42:33 < zippe> And the register already contains 0x44444444 2012-03-01T10:42:40 < zippe> You are or-ing 0xb0 with that 2012-03-01T10:42:46 < Tectu> right 2012-03-01T10:42:49 < Tectu> 0b* 2012-03-01T10:42:51 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2012-03-01T10:42:59 < zippe> So that gets you 0x444444f4 2012-03-01T10:43:42 < zippe> In output mode (MODE[1:0] > 00): 2012-03-01T10:43:43 < zippe> 00: General purpose output push-pull 2012-03-01T10:43:43 < zippe> 01: General purpose output Open-drain 2012-03-01T10:43:43 < zippe> 10: Alternate function output Push-pull 2012-03-01T10:43:43 < zippe> 11: Alternate function output Open-drain 2012-03-01T10:44:23 < zippe> The UART divider needs to account for the 16x oversample divider 2012-03-01T10:44:35 < zippe> i.e. you want fcpu / (baud * 16) 2012-03-01T10:45:08 < Tectu> wait 2012-03-01T10:45:28 < Tectu> i need to set PA9 to output, push-pull 2012-03-01T10:45:35 < zippe> Yes 2012-03-01T10:45:45 < zippe> I think you are mistaken about how the | operator works 2012-03-01T10:45:49 < Tectu> why not alternate function output? 2012-03-01T10:46:19 < zippe> AF is fine. But you are setting open-drain because you don't clear the bit that is previously set. 2012-03-01T10:46:50 < Tectu> na, wait now. do i NEED to set it to general output or alternate function output? 2012-03-01T10:46:54 < Tectu> i guess secound, right? 2012-03-01T10:48:04 < Tectu> because USART1_TX is alternate function of PA10 2012-03-01T10:48:40 < Tectu> PA9* 2012-03-01T10:48:47 < zippe> Sorry, you're still not following me. 2012-03-01T10:49:18 < zippe> You want cnf9[1:0] to be 0b10 2012-03-01T10:49:28 < zippe> i.e. alternate function output, push-pull 2012-03-01T10:49:44 < zippe> But you are setting cnf9[1:0] to 0b11 2012-03-01T10:49:44 < Tectu> right. 2012-03-01T10:50:01 < Tectu> and thats wrong, you are right 2012-03-01T10:50:29 < zippe> Also, the documentation for the fractional baudrate generator is *horrible* 2012-03-01T10:50:39 < Tectu> so i need to go with GPIOA->CRH |= (0xA << 4); ? 2012-03-01T10:50:40 < zippe> I can't work out, or remember, whether you need to set the divisor to 1 or 0 2012-03-01T10:50:44 < zippe> No 2012-03-01T10:50:46 < Tectu> >.< 2012-03-01T10:51:11 < Tectu> yes, that would be my next question, the 16x oversampling. I don't get it out of the documentation, the baud things is really bad written, imo 2012-03-01T10:51:21 < zippe> You want GPIO->CRH = (GPIO->CRH & ~(0xf << 4)) | 0xb << 4; 2012-03-01T10:51:57 < Tectu> wowowow, can we get trough that step by step? 2012-03-01T10:52:04 < zippe> Sure. 2012-03-01T10:52:12 < Tectu> i am sure i can just go with GPIOA->CRH |= 2012-03-01T10:52:13 < Tectu> right? 2012-03-01T10:52:16 < zippe> You are working on GPIO->CRH[7:4] 2012-03-01T10:52:19 < zippe> No 2012-03-01T10:52:39 < zippe> You have to clear cnf9[0] 2012-03-01T10:52:44 < Tectu> right 2012-03-01T10:52:48 < Tectu> i fully agree to that 2012-03-01T10:52:57 < zippe> The | operator can only be used to set bits. 2012-03-01T10:53:12 < Tectu> and the & to clear 2012-03-01T10:53:32 < zippe> Typically a combination of & and ~ to generate a masking operation 2012-03-01T10:53:51 < zippe> Normally you would write a macro that does this behind the scenes so that your code is tidier 2012-03-01T10:54:06 < Tectu> yes, to that later, please 2012-03-01T10:55:16 < Tectu> & ~(0xf << 4)) 2012-03-01T10:55:19 < Tectu> well 2012-03-01T10:55:33 < Tectu> 0xf = 1111 2012-03-01T10:55:43 < Tectu> <<4 gives 11110000 2012-03-01T10:55:44 < Tectu> right? 2012-03-01T10:56:14 < zippe> yes 2012-03-01T10:56:45 < Tectu> so 0xf0 to keep things simple 2012-03-01T10:56:45 < zippe> Then ~ flips all the bits so that the bits you want to clear are zeroes 2012-03-01T10:56:55 < zippe> 0xffffff0f 2012-03-01T10:57:33 < Tectu> ~11110000 is same as 0x00001111 ? 2012-03-01T10:57:40 < Tectu> aaah, hexa 2012-03-01T10:57:44 < Tectu> fail, sorry 2012-03-01T10:58:07 < Tectu> right, so we have now 0xffffff0f 2012-03-01T10:58:09 < Tectu> i agree 2012-03-01T10:59:02 < Tectu> GPIO->CRH = (GPIO->CRH & ~(0xf << 4)) | 0xb << 4; <--- but there is really no simpler notation for that? 2012-03-01T11:00:54 < zyp> isn't that simple enough? 2012-03-01T11:01:10 < zyp> wrap it up in a func and call it 2012-03-01T11:01:11 < Tectu> you told about a macro? 2012-03-01T11:01:22 < Tectu> you, the other you? are you guys the same? o0 2012-03-01T11:02:12 < zyp> no 2012-03-01T11:02:25 < zyp> I don't like macros, so we can't be the same :) 2012-03-01T11:02:33 < Tectu> hrhr 2012-03-01T11:02:59 < zyp> http://cgit.jvnv.net/suzumebachi/tree/hal/pin.h?h=stm32f4 <- this is how I do this stuff (note: stm32f4, so not exactly the same) 2012-03-01T11:03:52 < Tectu> :S 2012-03-01T11:03:54 < Tectu> holy hell 2012-03-01T11:04:36 < Tectu> zyp, is that actually c++? 2012-03-01T11:04:46 < zyp> yes 2012-03-01T11:04:54 < Tectu> oh 2012-03-01T11:05:00 < Tectu> i am not that familiar with c++ 2012-03-01T11:05:13 < zippe> hah, static constructors ftw 2012-03-01T11:05:32 < zippe> Just have to be sure that you have your clocks set up before you run them 2012-03-01T11:05:40 < zyp> zippe, entire class is intended to be inlined and optimized out 2012-03-01T11:05:57 < zippe> Well, the ctor won't be 2012-03-01T11:06:03 < zyp> sure it will 2012-03-01T11:06:12 < zippe> Or rather, it will be barfed out into the init section 2012-03-01T11:06:19 < Tectu> zippe, how would your macro look like? 2012-03-01T11:06:24 < zippe> Where it will occupy an annoyingly large amount of flasgh 2012-03-01T11:06:26 < zippe> er, flash 2012-03-01T11:06:31 < zyp> zippe, no, see, all the objects are static 2012-03-01T11:06:39 < zyp> so they aren't allocated any memory at all 2012-03-01T11:06:47 < zippe> zyp: you appear to be missing my point 2012-03-01T11:06:52 < zippe> I'm not talking about the objects 2012-03-01T11:06:56 < zippe> I'm talking about the ctor 2012-03-01T11:07:06 < zyp> what about it? 2012-03-01T11:07:07 < zippe> GCC is very bad about parameterising ctors 2012-03-01T11:07:23 < zippe> Look at the .init section of the object you get from compiling that code 2012-03-01T11:07:33 < zyp> oh, I have 2012-03-01T11:08:01 < Thorn> http://www.aristeia.com/c++-in-embedded.html 2012-03-01T11:08:05 < zyp> there is nothing allocated, constructed or anything 2012-03-01T11:08:10 < Tectu> zyp, you don't have a c version of that code, that i can understand that, right? 2012-03-01T11:08:24 < zippe> zyp: you're smoking crack 2012-03-01T11:08:42 < zippe> the ctor will be inlined 14 times in the .init section 2012-03-01T11:08:56 < zyp> why? 2012-03-01T11:09:17 < zippe> Assuming you actually use the Pin objects 2012-03-01T11:09:36 < zippe> Otherwise the compiler is free to throw the entire thing away 2012-03-01T11:09:42 < zyp> exactly 2012-03-01T11:10:05 < zippe> But if you do use any of the pins, you'll get the ctor in the init section of the file 2012-03-01T11:10:15 < zyp> except that when I do, say, PB0.on(); that gets inlined to GPIOB.BSRR = 1; 2012-03-01T11:10:19 < zippe> And if you use the pin in more than one source file, you will get more than one copy of the ctor 2012-03-01T11:10:42 < zippe> Yes, and the .init section of the file that you have that statement in will also get an inlined copy of the PB0 ctor 2012-03-01T11:11:01 < zyp> why would it? what is the ctor doing? 2012-03-01T11:11:21 < zippe> It appears to be making me drunk 2012-03-01T11:11:29 < zippe> Seriously, I should not be vending advice on the internet in this state 2012-03-01T11:11:57 < Tectu> okay, tell me when you have time to get back, zippe ;) 2012-03-01T11:12:09 < zippe> Apparently the squirrels in my brain decided that you were actually configuring the pin in the ctor 2012-03-01T11:12:14 < zippe> *sigh* 2012-03-01T11:12:20 < zyp> since everything can be inlined at compile time, there is no point in actually allocating memory for g and n, and then there is no point in actually executing a ctor at runtime 2012-03-01T11:12:24 < zippe> Yes, it's ok 2012-03-01T11:12:56 < zippe> As soon as I actually put the words you were saying together in a sensible order, I realised I'd completely failed to parse your code 2012-03-01T11:12:56 < Tectu> zippe, so, macro/function is usually used to do that stuff above? 2012-03-01T11:13:10 < zippe> tectu: I would hesitate to take my advice right now 2012-03-01T11:13:13 < zippe> But, in general, yes 2012-03-01T11:13:23 < Tectu> my advice ? 2012-03-01T11:13:25 < zippe> macros are a fine way to hide evil things 2012-03-01T11:13:37 < Tectu> which advice do you mean? 2012-03-01T11:13:44 < zippe> You are asking me for advice 2012-03-01T11:13:49 < Tectu> aah, so, yes 2012-03-01T11:13:56 < zippe> I have not been very coherent, or accurate, as zyp correctly noted 2012-03-01T11:14:16 < Tectu> would you like to tell me how to create that macro? 2012-03-01T11:14:26 < zippe> I plead Parson's Flat and trying to make I2C work 2012-03-01T11:14:38 < zippe> You would start with #define 2012-03-01T11:15:15 < zippe> And then wrap up the math so that you could pass a port number, pin number, and some pre-defined set of tokens that let you select the function and configuration 2012-03-01T11:15:28 < zippe> I think that libopencm3 probably has most of what you want already 2012-03-01T11:16:35 < Tectu> okay, then i guess i do that after USART sending works, ok? 2012-03-01T11:16:59 < Tectu> so, whats with that 16 overdrive now 2012-03-01T11:17:04 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-01T11:17:07 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-01T11:17:07 < Thorn> is this too little ground plane? http://imgur.com/a/l0uNE 2012-03-01T11:17:32 < Tectu> so its USART1->BRR = (fclk / (baud*16)); ? 2012-03-01T11:17:57 < zyp> Thorn, green/blue stuff are vcc? 2012-03-01T11:18:10 < Thorn> yes, 3.3V and 5V resp 2012-03-01T11:18:29 < Thorn> large pours on both sides are gnd 2012-03-01T11:18:52 < Thorn> (except I tried to do a separate pour for the dc/dc converter) 2012-03-01T11:19:08 <+Steffanx> Some parts don't seem to be connected to anything at all.. 2012-03-01T11:19:34 < zyp> why is one vcc to the mcu from one side of the board and one from the other? 2012-03-01T11:19:36 < zyp> vcc/avcc? 2012-03-01T11:20:02 < zyp> also, I don't know if the loop around the board like that is a good idea 2012-03-01T11:20:42 < Thorn> Vcc for the mcu is on the top layer only 2012-03-01T11:21:22 < Thorn> as for the loops, I don't know either, I read about this technique on electronics.stackexchange.com 2012-03-01T11:21:29 < zyp> the decoupling caps under the mcu aren't for the mcu? 2012-03-01T11:21:39 < Thorn> they are for the mcu 2012-03-01T11:22:00 < zyp> so, what's your «top»? pink or orange? 2012-03-01T11:22:03 < Thorn> ah my mistake, mcu vcc is on the bottom 2012-03-01T11:22:14 < zyp> right 2012-03-01T11:22:16 < Thorn> top on the left 2012-03-01T11:22:35 < zyp> so what's up with the long traces from the board edges? 2012-03-01T11:22:46 < zyp> are one vcc and one avcc, or are both different vccs? 2012-03-01T11:22:57 < Thorn> they are +5V and +3.3V 2012-03-01T11:24:05 < zyp> the ones connected to the mcu decoupling caps on the bottom side. 2012-03-01T11:24:32 < zyp> why are they from opposing sides and not just a direct connection? 2012-03-01T11:24:35 < Thorn> it's 3.3V and ground. I routed ground manually before pouring it 2012-03-01T11:24:43 < Thorn> they're the same 2012-03-01T11:24:56 < Thorn> (the ones coming from the opposite sides) 2012-03-01T11:25:00 < zyp> yes 2012-03-01T11:25:21 < zyp> my question is: why the fuck is it coming from the opposite side? 2012-03-01T11:25:42 < Thorn> they're both connected to a top layer pour under the mcu 2012-03-01T11:26:26 < zyp> so why to you have two connections from the edge? 2012-03-01T11:27:05 < Thorn> I've no idea lol, to ensure a low resistance connection 2012-03-01T11:27:10 < Thorn> or something 2012-03-01T11:28:03 < zyp> I would redo the entire vcc net, 2012-03-01T11:28:56 < zyp> routing it as a tree rooted in the 3.3V reg branching out to various components an needed 2012-03-01T11:31:21 < Thorn> I don't think I'll be able to do that well, the regulator is at the edge, I'll break up the ground plane even more that way 2012-03-01T11:32:02 < Thorn> why, because the trace forms a coil that's going to emit EMI? 2012-03-01T11:32:21 < zyp> doesn't matter as long as you stitch the top and bottom ground plane properly together 2012-03-01T11:33:28 < Thorn> and I definitely won't be able to do the same with the 5V net on the top 2012-03-01T11:38:52 < Thorn> how dense the stiching vias should be btw? 2012-03-01T11:39:52 < Thorn> (and sorry for being dense myself, I haven't had mych sleep lately partly because of this thing ;_;) 2012-03-01T11:54:59 -!- Laurenceb_ [~Laurence@host86-174-23-226.range86-174.btcentralplus.com] has joined ##stm32 2012-03-01T12:15:32 < Tectu> does anyone actually use opencm3? 2012-03-01T12:16:12 <+Steffanx> I dont 2012-03-01T12:16:30 < Tectu> is there a reason why someone should` 2012-03-01T12:16:53 <+Steffanx> No 2012-03-01T12:17:20 <+Steffanx> :P 2012-03-01T12:18:01 < Thorn> licensing issues maybe, and better design than the standard library (can't vouch for that, haven't tried it myself) 2012-03-01T12:18:37 <+Steffanx> "and better design than the standard library" .. that's an opinion indeed :P 2012-03-01T12:18:45 <+Steffanx> one of the many opinions 2012-03-01T12:19:53 < Thorn> I have analog signals running parallel to digital ones and using the same ground, does this automatically = adc noise? 2012-03-01T12:20:54 < ziph> Thorn: It depends on the spacing. 2012-03-01T12:21:01 -!- Laurenceb_ [~Laurence@host86-174-23-226.range86-174.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-03-01T12:21:07 < ziph> Thorn: And the length that they are running together. 2012-03-01T12:21:21 < ziph> And the resolution of the ADC. 2012-03-01T12:23:39 < BrainDamage> using the same gnd for digital and analog can warrant adc noise if you get significant digital currents 2012-03-01T12:23:51 < Thorn> and btw, without the manual ground trace on the bottom I'd have several unconnected ground islands 2012-03-01T12:24:14 < Thorn> digital currents hardly, power currents definitely lol 2012-03-01T12:25:39 < BrainDamage> what are you trying to sample? how much resolution do you need? 2012-03-01T12:26:04 < Thorn> when you do e.g. 4 layer designs you normally use the ground layer for everything (power and signals) or do you separate it somehow? 2012-03-01T12:27:19 < Thorn> I'm measuring supply I and U, resolution is preferably >= 10 bits, sampling frequency is probably only a few Hz 2012-03-01T12:58:19 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124] 2012-03-01T13:40:08 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-01T13:58:42 < jpa-> a single ground plane is usually fine.. and 10 bits resolution is quite easy to achieve 2012-03-01T14:01:37 < Tectu> zippe, okay, still no working macro/function >.< 2012-03-01T14:04:59 < Tectu> zippe, may you show me yours? 2012-03-01T14:06:27 < Thorn> I hate having no real idea what I'm doing 2012-03-01T14:06:35 < Tectu> i know that feeling, Thorn :( 2012-03-01T14:07:10 < Thorn> as far as power loops around the perimeter are concerned, the only thing I found is they can pick up outside interference 2012-03-01T14:07:53 < zyp> it's probably not harmful, just looks silly and pointless 2012-03-01T14:07:58 <+Steffanx> Thorn still sure you want those 'floating' planes? 2012-03-01T14:08:17 <+Steffanx> afaik that's not 'best practice' 2012-03-01T14:08:20 < Thorn> although in my case it's probably going to be dc/dc injecting ripple into the 5V net which seems strongly coupled to the 3.3V net 2012-03-01T14:09:20 < Thorn> Steffanx: which ones? the bottom layer has no big islands and the top has area around the dc/dc separated 2012-03-01T14:09:38 < Thorn> and I'm placing stitching vias right now too 2012-03-01T14:09:44 < Thorn> or did you mean something else? 2012-03-01T14:10:25 <+Steffanx> I mean, the island in for example the top left on both side.. not sure if it really matters though 2012-03-01T14:10:29 <+Steffanx> *islands 2012-03-01T14:10:34 <+Steffanx> sides 2012-03-01T14:10:46 <+Steffanx> Arh, i shouldn't do to many things at once :) 2012-03-01T14:11:53 < Thorn> it's connected on the bottom, the brown(?) trace on the bottom pour is my "manual ground" 2012-03-01T14:12:16 < Thorn> btw, found another case of iteadstudio messing with pours, dave jones wasn't the only one 2012-03-01T14:12:50 <+Steffanx> Ofcourse oyu can find some cases 2012-03-01T14:12:56 <+Steffanx> They make 10000000 boards/year? 2012-03-01T14:13:33 < zyp> the ones complaining are the ones getting heard 2012-03-01T14:13:36 < jpa-> i guess it only happens if you try to have 8 mil separation between ground plane and traces 2012-03-01T14:13:45 <+Steffanx> I wonder btw if it's itead OR the board house 2012-03-01T14:14:03 <+Steffanx> seeed and itead seem to use the same 'board house' 2012-03-01T14:14:52 < Thorn> can't say anything here, but I don't think seeed and itead prepare gerbers themselves 2012-03-01T14:15:02 <+Steffanx> At least, that's one someone told me who got it from someone who had a talk with seeed people in china 2012-03-01T14:15:15 <+Steffanx> -one 2012-03-01T14:15:23 <+Steffanx> ARfhn :P 2012-03-01T14:15:37 <+Steffanx> I should stop talking 2012-03-01T14:16:24 < Tectu> someone know this? http://www.ebay.com/itm/STM32-Development-Board-STM32F103VCT6-3-2-TFT-LCD-/260775580114?pt=LH_DefaultDomain_0&hash=item3cb76f91d2 2012-03-01T14:17:10 < Thorn> I have something similar but with a lpc1768 2012-03-01T14:17:51 < Tectu> why is it "so cheap"? 2012-03-01T14:18:55 <+Steffanx> china 2012-03-01T14:19:20 < Tectu> but are they usable? 2012-03-01T14:19:40 < Thorn> definitely (convenience is another matter) 2012-03-01T14:20:22 < Thorn> mine has onboard j-link too 2012-03-01T14:21:35 < Tectu> ok 2012-03-01T14:22:46 < Thorn> I probably need another filter after the dc/dc or at least another ceramic cap 2012-03-01T14:24:01 < Tectu> jpa-, you use in your codes #pragma once is that the same like #ifndef HEADER_H #define HEADER_H .... #endif? 2012-03-01T14:24:09 < jpa-> yeah 2012-03-01T14:38:34 < Tectu> okay guys, i definitly need your help: with the help from zippe today, i figured out how to configure PA9 to use it as USART1_TXD pin. -> GPIOA->CRH = (GPIOA->CRH & ~(0xf << 4)) | 0xb << 4; 2012-03-01T14:38:54 < Tectu> now i need a macro / function for that, because i'll use that more often. 2012-03-01T14:38:59 < Tectu> but i am really stuck with that 2012-03-01T14:40:28 < Thorn> you need a C tutorial 2012-03-01T14:41:03 < jpa-> Tectu: https://svn.kapsi.fi/jpa/dsoquad/logic/gpio.h i use these macros 2012-03-01T14:41:35 < jpa-> used like DECLARE_GPIO(usart1_tx, GPIOA, 9); gpio_usart1_tx_mode(GPIO_AFOUT_10); 2012-03-01T14:41:45 < Tectu> i am allready reading that, jpa- :D 2012-03-01T14:42:11 < Tectu> but well 2012-03-01T14:42:19 < Tectu> everything is so dependend... 2012-03-01T14:42:40 < Tectu> dsoquad? you worked on the dsoquad? 2012-03-01T14:43:25 < jpa-> i've done some custom stuff for it 2012-03-01T14:43:27 <+Steffanx> ugly macro's jpa- :P 2012-03-01T14:43:33 < Tectu> ah 2012-03-01T14:43:34 < jpa-> Steffanx: but beautiful to use! 2012-03-01T14:43:45 < Tectu> well, i'd like some more basic thing... 2012-03-01T14:43:46 <+Steffanx> If you say so 2012-03-01T14:43:50 < Tectu> i don't now, some really easy stuff 2012-03-01T14:44:07 < Tectu> isn't there something simpler? 2012-03-01T14:44:14 < Tectu> maybe just a function, not a macro? 2012-03-01T14:44:42 < jpa-> should be easy enough to write 2012-03-01T14:45:03 < Tectu> wanna help me? :( 2012-03-01T14:45:05 < jpa-> but the stmlib does have stupid functions like that :) 2012-03-01T14:45:13 < Tectu> i don't use any lib 2012-03-01T14:45:16 < Tectu> i am going to build my own 2012-03-01T14:45:24 < Tectu> for education reasons ;-) 2012-03-01T14:45:27 < jpa-> yeah :) 2012-03-01T14:45:32 < Tectu> and as you can see, i'd learn many things just until here :D 2012-03-01T14:45:55 < Tectu> okay, i may ask a little bit more specific: i don't know what i want. 2012-03-01T14:45:56 < Tectu> GPIOA->CRH = (GPIOA->CRH & ~(0xf << 4)) | 0xb << 4; 2012-03-01T14:46:10 < Tectu> with this, i do only set the mode of PA9, nothing else, right? 2012-03-01T14:46:18 < Tectu> i say it's output, alternative output, push,pull 2012-03-01T14:46:22 < Tectu> nothing more, nothing less 2012-03-01T14:46:26 < Tectu> ah, and the max. speed 2012-03-01T14:46:28 < Tectu> right? 2012-03-01T14:47:06 < jpa-> yeah 2012-03-01T14:47:10 < Tectu> so know i want a function, something like void set_gpio(u32 port, u32 pin, u32mode1, u32mode2, u32modeN) 2012-03-01T14:47:16 < jpa-> stripping out code from my gpio.h, you could use something like: http://paste.dy.fi/2Xr 2012-03-01T14:47:20 < jpa-> (but i haven't tested that) 2012-03-01T14:47:23 < Tectu> and to keep things simple, i do some defines, that i can pass only one mode? 2012-03-01T14:47:37 < jpa-> mode1, mode2, what? 2012-03-01T14:48:01 < jpa-> there is only a single mode per pin 2012-03-01T14:48:16 < Tectu> jep, that's what i mean, i just go with one mode, do some pretty #defines, that i can go with: set_gpio(GPIOA, 9, AF|PUSHPULL|50) 2012-03-01T14:49:09 < jpa-> works as long as no-one does AF|INPUT :P 2012-03-01T14:49:19 < Tectu> oh 2012-03-01T14:49:19 < Tectu> right 2012-03-01T14:49:24 < Tectu> how fix that? 2012-03-01T14:49:34 < jpa-> that's why i only have a single define for the whole mode 2012-03-01T14:49:45 < jpa-> (except the open drain.. :) 2012-03-01T14:50:36 < jpa-> besides.. will you then do set_gpio(GPIOA, 1, ...); set_pin(GPIOA, 1, ...); etc. if you want to control a led? what if the led pin changes? 2012-03-01T14:50:44 < Tectu> 0xA... this is AF, PushPull, 50Mhz, right? 2012-03-01T14:51:04 < jpa-> 0xA is 10 is GPIO_AFOUT_2 if i'm correct 2012-03-01T14:51:07 < Tectu> jpa-, what do you mean with 'if the LED pin changes'? 2012-03-01T14:51:12 < Tectu> what the hell is 2 2012-03-01T14:51:15 < jpa-> 2MHZ 2012-03-01T14:51:25 < Tectu> where's the pushpull/drain 2012-03-01T14:51:26 < jpa-> Tectu: if you want to put led on a different pin for some reason 2012-03-01T14:51:32 < Tectu> ah, 0x4444 4444 2012-03-01T14:51:44 < Tectu> jpa-, not that far at the moment 2012-03-01T14:51:48 < Tectu> as i said, let's begin simple :D 2012-03-01T14:51:50 < jpa-> GPIO_AFOUT_2 | GPIO_OPEN_DRAIN in my code.. i don't use open drain that often :P 2012-03-01T14:52:23 < Tectu> int shift = ((pin) & 7) * 4; 2012-03-01T14:52:23 < Tectu> *conf = (*conf & ~(15 << shift)) | (mode << shift); 2012-03-01T14:52:26 < Tectu> how the hell did you get on that? 2012-03-01T14:53:14 < jpa-> well.. :) 2012-03-01T14:53:59 < Tectu> GPIO_TypeDef* port 2012-03-01T14:54:00 < jpa-> ~(15 << shift) is like 0xFFFFFF0FFF for pin 3, so it clears the point in the register 2012-03-01T14:54:34 < jpa-> it is really quite similar to your 14:45:56 < Tectu> GPIOA->CRH = (GPIOA->CRH & ~(0xf << 4)) | 0xb << 4; 2012-03-01T14:54:44 < Tectu> i see it now, jpa- :) 2012-03-01T14:56:21 < Tectu> GPIO_TypeDef* port.... the GPIO_TypeDef struct contains the registers 2012-03-01T14:56:26 < Tectu> like CHR CHL etc 2012-03-01T14:56:41 < Tectu> at least in my stm32f10x.h 2012-03-01T14:56:57 < Tectu> ah, i see :D 2012-03-01T14:57:13 < jpa-> (i really wish GCC had an option to force 32-bit access to hardware registers.. then we could make wonderful things like typedef struct { unsigned pin1: 4; unsigned pin2: 4; ...} gpio_modes_t; and just write GPIOC.modes.pin1 = GPIO_AFOUT_2; ... but alas, GCC emits byte access instructions and crashes the processor if the register is not byte-accessible 2012-03-01T14:57:21 < Tectu> #define GPIOA ((GPIO_TypeDef *) GPIOA_BASE) :) 2012-03-01T14:57:30 < jpa-> yeah :) 2012-03-01T14:57:49 < Tectu> jpa-, so, download GCC source and hack it ;-) 2012-03-01T14:58:00 < jpa-> not the biggest issue in my life :) 2012-03-01T14:59:26 < zyp> sounds dangerous considering this is hardware registers 2012-03-01T14:59:56 < zyp> any read and write should be explicit 2012-03-01T15:00:23 < zyp> having the compiler emit implicit read-modify-write is something I don't want to debug. 2012-03-01T15:00:28 < jpa-> true 2012-03-01T15:00:41 < jpa-> that's probably why it's not done that way 2012-03-01T15:02:01 < zyp> I've seen in some of the examples from st that they read the full 32-bit, store it to a temporary which is a union with a bitmap struct 2012-03-01T15:02:10 < zyp> then they edit the bitmap, before they store back the full 32-bit 2012-03-01T15:02:42 < zyp> I think it was in the stm32f4discovery examples, but I may be mistaken 2012-03-01T15:04:30 < jpa-> hehe, that's waking my inner ugly-macroist.. DO_THING_TO_GPIO(GPIOA, cr.pin1 = FOO; cr.pin8 = BAR;); 2012-03-01T15:08:02 < Tectu> i never got that macro things 2012-03-01T15:08:10 < Tectu> what's better on macros than on functions? 2012-03-01T15:08:13 < Tectu> can you eat them? 2012-03-01T15:09:31 < Thorn> they are always inlined and they're a crude way to generate code at compile time 2012-03-01T15:09:36 < jpa-> you can do fancy stuff, like declare new publicly visible symbols or achieve some "genericness" in C 2012-03-01T15:09:52 < jpa-> but many macros can be implemented as functions 2012-03-01T15:09:55 < Tectu> but afaik there is a very big amount of people who hate them 2012-03-01T15:10:06 < jpa-> sure, they are risky; but so is C itself 2012-03-01T15:10:12 < Tectu> what can't you implement as function? 2012-03-01T15:10:19 < jpa-> Tectu: my gpio.h :P 2012-03-01T15:10:28 < Tectu> lol 2012-03-01T15:10:33 < Tectu> bastard :P 2012-03-01T15:11:06 < jpa-> or #define abs(x) ((x) > 0 ? (x) : -(x)) 2012-03-01T15:12:00 < Tectu> o0 2012-03-01T15:12:02 < Tectu> dafuq 2012-03-01T15:13:04 < Tectu> jpa-, so this would set PC9 to standard output with PushPull and 2MHz? set_gpio_mode(GPIOC, 9, GPIO_OUT_2); 2012-03-01T15:13:21 < jpa-> it should :) 2012-03-01T15:14:09 < Tectu> so i could do afterwards a GPIOC->BSRR |= (1<<9) to light up LED on PC9? 2012-03-01T15:14:24 < Thorn> seeed will hate me for my stitching vias 2012-03-01T15:14:40 < jpa-> Tectu: yeah 2012-03-01T15:14:43 < jpa-> Thorn: they won't 2012-03-01T15:14:44 < Tectu> Thorn, your are developing for seeed? 2012-03-01T15:14:49 < Tectu> jpa-, it dosen't 2012-03-01T15:15:16 < Thorn> I'm using their manufacturing service 2012-03-01T15:15:22 < jpa-> Tectu: too bad :) 2012-03-01T15:15:31 < jpa-> Tectu: (verify that the led is active-high :) 2012-03-01T15:15:31 < Tectu> Thorn, they have a manufacturing service? 2012-03-01T15:15:45 < Thorn> okay, then I'll add another 200 :) 2012-03-01T15:15:48 < Tectu> jpa-, it worked in blinky.c ;-) 2012-03-01T15:15:52 < Tectu> jpa-, i see the problem 2012-03-01T15:15:58 < Tectu> jpa-, propably some GPIOC clock... 2012-03-01T15:16:06 < Thorn> Tectu: http://www.seeedstudio.com/depot/fusion-pcb-service-p-835.html?cPath=185 2012-03-01T15:16:08 < jpa-> Thorn: though i was a bit worried about via count myself also.. only had this many http://koti.kapsi.fi/jpa/stuff/pix/mainboard2.png 2012-03-01T15:16:13 < jpa-> Tectu: ah, yeah 2012-03-01T15:16:17 < jpa-> Tectu: the damn clocks 2012-03-01T15:16:37 < Tectu> jpa-, should i implement that in the set_gpio_mode function? 2012-03-01T15:16:57 < jpa-> Tectu: i wouldn't, but you might :) 2012-03-01T15:17:10 < Tectu> wtf, how cheap are they... 10$ for 10pcs? 2012-03-01T15:17:28 < Tectu> jpa-, so, i'll try to do that algo myself now 2012-03-01T15:17:42 < Tectu> wait... 2012-03-01T15:17:43 < Tectu> no :D 2012-03-01T15:17:49 < Tectu> there's nothing to do. 2012-03-01T15:18:05 < Tectu> Thorn, 50% E-Test? wtf? 2012-03-01T15:18:14 < Thorn> jpa-: you seem to have placed a lot more of them near the crystal or I'm seeing things? 2012-03-01T15:18:15 < Tectu> they only scan the half of your PCB? 2012-03-01T15:18:25 < Thorn> yes the left half 2012-03-01T15:19:12 < jpa-> Thorn: yeah.. not sure if it is useful or not :) 2012-03-01T15:19:44 < jpa-> well, in general more near the higher-activity areas of the board, like big power traces 2012-03-01T15:20:06 < Tectu> jpa-, working now ;-) 2012-03-01T15:20:51 < Thorn> in that case my intuition hasn't failed me, I'm mostly placing them along the edge of the pours where power traces are 2012-03-01T15:22:17 < jpa-> i'm a noob at emc stuff also 2012-03-01T15:29:17 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving] 2012-03-01T15:29:30 < Tectu> jpa-, back to the baud thing... what's now with that *16? 2012-03-01T15:30:34 < Tectu> this is my usart.c at the moment, btw: http://pastebin.com/PeuKtzJ5 2012-03-01T15:31:43 < jpa-> Tectu: that is my confusion, please forget it 2012-03-01T15:31:51 < Tectu> o 2012-03-01T15:31:51 < Tectu> k 2012-03-01T15:31:56 < Tectu> may you take a look to my usart.c? 2012-03-01T15:32:15 < jpa-> i realized this morning that i've read the documentation wrong about a year ago and been copying my faulty code all around :) 2012-03-01T15:32:43 < Tectu> LOL! 2012-03-01T15:32:49 < zyp> ouch :) 2012-03-01T15:32:54 < jpa-> (it works, but it is stupid :) 2012-03-01T15:32:56 < Tectu> so you got always 16x more trunctuated packages? 2012-03-01T15:33:14 < jpa-> no, just a bit inaccurate baudrate 2012-03-01T15:33:26 < Tectu> ah 2012-03-01T15:33:34 < Tectu> okay, something wrong with my usart.c, sir? 2012-03-01T15:34:25 < jpa-> you may want to set GPIOA->BSRR = 1 << 10; so that it is a pull-up and not a pull-down 2012-03-01T15:35:11 < Tectu> anything else? 2012-03-01T15:35:36 < jpa-> and official puts() writes newline after the text! (but that is seldom useful, so no need to imitate libc :) 2012-03-01T15:35:52 < Tectu> okay, to that later 2012-03-01T15:36:02 < Tectu> atm nothing (besids the led ;-)) runs with this main.c http://pastebin.com/4K9zsHab 2012-03-01T15:36:20 < Tectu> no USART output, also scope is silent... 2012-03-01T15:39:59 < jpa-> put a led blink in your while loop 2012-03-01T15:40:10 < jpa-> so you know if it is stuck in an infinite loop somewhere 2012-03-01T15:40:18 < jpa-> (or just use gdb to see where it is going) 2012-03-01T15:41:27 < jpa-> also; no guarantee on set_gpio_mode.. so check what value GPIOA->CRH actually has :) 2012-03-01T15:41:39 < Tectu> how to check? gdb? 2012-03-01T15:42:03 < Tectu> my gdb knowledge is as much as my mother knows about biometric alogrithms 2012-03-01T15:42:12 < Tectu> equals zero... 2012-03-01T15:42:58 < jpa-> p GPIOA->CRH 2012-03-01T15:43:25 < jpa-> (hmm.. mom's usually know something about biometric algorithms (sample size: 1)) 2012-03-01T15:44:03 < jpa-> oh well.. and compile with -gdwarf-2 -g3 if the GPIOA symbol is not found 2012-03-01T15:45:42 < Tectu> jpa-, led is not blinking 2012-03-01T15:46:05 < Tectu> but it does when i uncoment usart_putc line 2012-03-01T15:46:21 < Tectu> -gdwarf-2 -g3 2012-03-01T15:46:23 < Tectu> dafuq. 2012-03-01T15:46:41 < jpa-> then run the code in gdb and then press ctrl-c and type bt to see where it is 2012-03-01T15:46:53 < jpa-> though probably it is in the USART1->SR loop :P 2012-03-01T15:53:26 < Tectu> jpa-, lol, with uncommented usart_putc line, i load the .elf, then 'continue' -> 2012-03-01T15:53:29 < Tectu> Cannot access memory at address 0x77baae35 2012-03-01T15:53:29 < Tectu> Program received signal SIGTRAP, Trace/breakpoint trap. 2012-03-01T15:53:29 < Tectu> 0x1ffff034 in ?? () 2012-03-01T15:54:06 < Tectu> bt also dosen't work, cannot access some memory 2012-03-01T15:54:09 < Tectu> something broken? 2012-03-01T15:54:32 < jpa-> press reset on the board :) 2012-03-01T15:55:34 < Tectu> i did, reset, reload .elf, continue, 2012-03-01T15:55:37 < Tectu> same problem 2012-03-01T15:57:27 < jpa-> after "load", do p $pc 2012-03-01T15:58:45 < Tectu> Cannot access memory at address 0x77baae35 2012-03-01T15:58:45 < Tectu> $1 = (void (*)()) 0x8000000 2012-03-01T16:00:53 < jpa-> something messed up.. 2012-03-01T16:01:25 < jpa-> (just something i've messed up a plenty of times: verify you are running arm-none-eabi-gdb and not the host gdb :) 2012-03-01T16:06:06 < Tectu> jpa-, i am sure it is the arm-none-eabi-gdb ;-) 2012-03-01T16:07:05 < jpa-> your gdbserver may be broken :) 2012-03-01T16:07:13 < Tectu> maybe somethings wrong with my linker script, bcause yesterday, when i tried to go with my usart_puts(), the funnything was: usart_puts("Hello World!\n"); could get compiled, while usart_puts("Hello World!!\n"); and usart_puts("Hello World\n"); gave some alignement errors 2012-03-01T16:09:15 < Tectu> jpa-, this is the linkerscript i am using: http://pastebin.com/yqWXMNjF 2012-03-01T16:09:22 < Tectu> it's that one from gostm32.blogspot.com 2012-03-01T16:17:14 -!- izua [~izua@188.26.167.52] has joined ##stm32 2012-03-01T16:17:14 -!- izua [~izua@188.26.167.52] has quit [Changing host] 2012-03-01T16:17:14 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-03-01T16:17:17 -!- mode/##stm32 [+v izua] by ChanServ 2012-03-01T16:22:41 < Tectu> jpa-, ? 2012-03-01T16:34:31 < jpa-> no obvious problems 2012-03-01T16:36:32 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2012-03-01T16:36:54 < Tectu> grml 2012-03-01T16:36:59 < Tectu> why does stm32 hates me 2012-03-01T16:37:11 < Tectu> i may take a break until evening 2012-03-01T16:37:18 < Tectu> thank you very very much! 2012-03-01T16:37:22 < Tectu> for your help, of cours 2012-03-01T16:37:22 < Tectu> e 2012-03-01T16:43:33 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124] 2012-03-01T16:44:23 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer] 2012-03-01T16:44:32 -!- izua [~izua@188.26.167.52] has joined ##stm32 2012-03-01T16:44:32 -!- izua [~izua@188.26.167.52] has quit [Changing host] 2012-03-01T16:44:32 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-03-01T16:44:35 -!- mode/##stm32 [+v izua] by ChanServ 2012-03-01T16:45:15 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer] 2012-03-01T16:45:27 -!- izua [~izua@188.26.167.52] has joined ##stm32 2012-03-01T16:45:27 -!- izua [~izua@188.26.167.52] has quit [Changing host] 2012-03-01T16:45:27 -!- izua [~izua@unaffiliated/izua] has joined ##stm32 2012-03-01T16:45:28 -!- mode/##stm32 [+v izua] by ChanServ 2012-03-01T16:55:44 -!- izua_ [~izua@188.26.167.52] has joined ##stm32 2012-03-01T16:55:44 -!- izua_ [~izua@188.26.167.52] has quit [Changing host] 2012-03-01T16:55:44 -!- izua_ [~izua@unaffiliated/izua] has joined ##stm32 2012-03-01T16:55:45 -!- mode/##stm32 [+v izua_] by ChanServ 2012-03-01T16:55:45 -!- izua [~izua@unaffiliated/izua] has quit [Read error: Connection reset by peer] 2012-03-01T17:13:58 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-01T17:19:06 < Tectu> guys, i have a quick, again question... 2012-03-01T17:19:16 < Tectu> i am #defining the USART bits 2012-03-01T17:19:22 < Tectu> so, USART_SR_TXE 2012-03-01T17:19:38 < Tectu> this bit, in USART1->SR, is bit index 7, means it is the 8th bit. 2012-03-01T17:20:56 < Tectu> so i go with #define USART_SR_TXE 0x08 2012-03-01T17:21:04 < Tectu> or is that wrong? o0 2012-03-01T17:22:13 < Randomskk> it's perhaps clearer or more common to say "1<<7" 2012-03-01T17:22:33 < Randomskk> which is a bitmask for that bit 2012-03-01T17:22:37 < Randomskk> well 2012-03-01T17:22:39 < Randomskk> or, rather, 7. 2012-03-01T17:22:55 < Randomskk> #define USART_SR_TXE 7 and then 1< (you start counting at 0 for no shift for the first bit) 2012-03-01T17:23:50 < Tectu> Randomskk, but when i want to go with while(!(USART1->SR & USART_SR_TXE)) is 1<<7 working? i mean what if you want to check for bit 0? 1<<0 ? 2012-03-01T17:24:23 < Tectu> in my stm32f10x.h they are defined as #define RCC_CFGR_PLLMULL_2 ((uint32_t)0x00100000) 2012-03-01T17:25:42 < Randomskk> if you are ANDing it with the register, you need the shift 2012-03-01T17:25:49 < Randomskk> but in that case your code should really look like 2012-03-01T17:25:57 < Randomskk> while(!(USART1->SR & 1< (and USART_SR_TXE is defined as 7) 2012-03-01T17:26:17 < Randomskk> (and yes, 1<<0 == 1 which is a bitmask for the first bit) 2012-03-01T17:26:19 < Tectu> okay, but i guess defining as 0x0xxxx is better for me 2012-03-01T17:26:32 < Randomskk> well you can call it 0x07 if you like ;) 2012-03-01T17:26:43 < Randomskk> defining it as a mask instead of a bit position is okay 2012-03-01T17:26:49 < Randomskk> be consistent though :P 2012-03-01T17:26:55 < Tectu> but isn't the 8th bit 0x80? 2012-03-01T17:27:58 < Tectu> how do i get to the (uint32_t)0xblabla) thing from the register map? i mean let's say i want the 3th bit, which is 0,1,2 <-- this one. so i go with 0b100 -> 0x02 2012-03-01T17:27:59 < Tectu> right? 2012-03-01T17:29:26 < Randomskk> yea - or just 1<<(position) 2012-03-01T17:29:36 < Randomskk> where position is counting from 0 2012-03-01T17:29:40 < Tectu> hmm 2012-03-01T17:29:44 < Tectu> so (1<<7) 2012-03-01T17:29:50 < Randomskk> for the eight bit, yea. 2012-03-01T17:30:08 < Randomskk> (which is 128, or 0x80, yea) 2012-03-01T17:30:42 < Tectu> i'll go with (1< is a log easier 2012-03-01T17:30:52 < Tectu> and i can still do & BIT 2012-03-01T17:32:04 < Randomskk> sure 2012-03-01T17:32:18 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-01T17:32:18 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-01T17:32:18 < Tectu> oh, it's fucking working!!!! 2012-03-01T17:32:21 < Tectu> i thank you so much 2012-03-01T17:32:25 < Tectu> Steffanx, found my misstake in USART :d 2012-03-01T17:32:43 < Tectu> #define USART_SR_TXE 0x08 instead of 0x80 2012-03-01T17:32:49 < Randomskk> no problem :P 2012-03-01T17:38:08 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-01T17:44:18 < jpa-> Tectu: huh, why are you defining it yourself? 2012-03-01T17:44:34 < Tectu> not all of them 2012-03-01T17:44:39 < jpa-> but even that one 2012-03-01T17:44:42 < Tectu> but the USART part wasn't in my template 2012-03-01T17:44:56 < Tectu> i have just RCC, PWR and backstuff 2012-03-01T17:44:58 < jpa-> it is in the better stm32f10x.h :P 2012-03-01T17:45:07 < Tectu> >.< 2012-03-01T17:45:27 < Tectu> do you have a real full stm32f10x.h which will throw me from the chair? 2012-03-01T17:46:21 < jpa-> i think the chibios one is the best i know: https://svn.kapsi.fi/jpa/paatti-chibios/chibios/os/hal/platforms/STM32/stm32f10x.h 2012-03-01T17:52:50 < Tectu> jpa-, 8'000 lines??? 2012-03-01T17:58:25 < jpa-> why not? 2012-03-01T17:59:15 < jpa-> it does have a bunch of redundant stuff (like DMA_CCR1_EN, DMA_CCR2_EN, ...), but it works 2012-03-01T18:14:41 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Remote host closed the connection] 2012-03-01T18:16:17 < zyp> I still prefer writing my own :p 2012-03-01T18:16:27 < jpa-> the header file also? :o 2012-03-01T18:16:33 < zyp> yes 2012-03-01T18:16:46 < jpa-> oh well, perfectionists 2012-03-01T18:17:01 < jpa-> i consider it useless busywork :) 2012-03-01T18:17:07 < zyp> I started by having all in a huge file, but now I'm splitting it into independent files 2012-03-01T18:18:22 < zyp> http://cgit.jvnv.net/suzumebachi/tree/hal/usart.h?h=stm32f4 <- like this 2012-03-01T18:21:04 < jpa-> a lot of code for minimal functionality :) 2012-03-01T18:21:46 < zyp> the aim is to have my code support both F1 and F4 with minimal differences 2012-03-01T18:25:05 <+izua_> you do know the memory maps are almost identical, just for this reason, right? 2012-03-01T18:25:30 <+Steffanx> There's no reason for htat 2012-03-01T18:25:45 < jpa-> not apparently exactly 2012-03-01T18:26:58 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-01T18:38:11 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2012-03-01T18:39:06 < dongs> before i waste significantly more time, can dma requeests for SPI and I2S be separate on 4? 2012-03-01T18:39:11 < dongs> 4=f4 2012-03-01T18:44:04 < dongs> k read the manual and it appears to be so 2012-03-01T18:44:06 < dongs> continuing to fail then 2012-03-01T20:15:51 -!- izua_ [~izua@unaffiliated/izua] has quit [Quit: :tiuQ] 2012-03-01T20:48:09 -!- wattrod [~wattrod@rrcs-67-78-118-6.sw.biz.rr.com] has left ##stm32 [] 2012-03-01T20:49:09 -!- wattrod [wattrod@rrcs-67-78-118-6.sw.biz.rr.com] has joined ##stm32 2012-03-01T20:57:23 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-01T20:58:18 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-01T20:58:21 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-01T21:39:28 -!- Laurenceb_ [~Laurence@host86-180-137-177.range86-180.btcentralplus.com] has joined ##stm32 2012-03-01T22:18:19 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-01T23:08:25 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-03-01T23:56:05 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 252 seconds] --- Day changed Fri Mar 02 2012 2012-03-02T00:02:39 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-02T00:02:42 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-02T00:23:38 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 240 seconds] 2012-03-02T00:46:34 -!- Laurenceb_ [~Laurence@host86-180-137-177.range86-180.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-03-02T00:54:21 -!- LeelooMinai [~leeloo@24-52-247-36.cable.teksavvy.com] has quit [Quit: Ex-Chat] 2012-03-02T01:09:55 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has quit [Remote host closed the connection] 2012-03-02T01:09:57 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-02T01:11:31 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-02T01:11:34 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-02T01:13:15 < wattrod> Can anyone answer a basic Keil question? In the project view, you can open the "properties" for any particular file in the project, and there is a checkbox for whether the file should be included in the target build. 2012-03-02T01:13:56 < wattrod> This checkbox has three states (unchecked, black check, grey check), and the file icon has three versions to reflect that selection ... but the three states aren't documented 2012-03-02T01:14:28 < wattrod> any idea how this works? 2012-03-02T02:22:48 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-02T02:42:58 -!- UnaClocker [~unaclocke@24-113-85-150.wavecable.com] has joined ##stm32 2012-03-02T02:50:33 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-02T05:50:14 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-02T05:51:30 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-02T06:01:38 -!- UnaClocker [~unaclocke@24-113-85-150.wavecable.com] has quit [Quit: Leaving...] 2012-03-02T06:21:32 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-02T06:28:51 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-02T09:03:20 < Tectu> morning folks 2012-03-02T09:23:07 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 265 seconds] 2012-03-02T09:30:47 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-02T10:02:32 -!- eroomde [~ed@kraken.habhub.org] has quit [Ping timeout: 272 seconds] 2012-03-02T10:12:33 -!- eroomde [~ed@109.111.222.198] has joined ##stm32 2012-03-02T10:24:30 -!- Laurenceb_ [~Laurence@host86-180-137-177.range86-180.btcentralplus.com] has joined ##stm32 2012-03-02T10:32:23 < Tectu> flyback, seems legit 2012-03-02T10:34:14 < Tectu> why so? 2012-03-02T10:40:10 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [] 2012-03-02T10:59:48 -!- zippe1 [~Adium@173.11.99.161] has joined ##stm32 2012-03-02T10:59:48 -!- zippe [~Adium@173.11.99.161] has quit [Read error: Connection reset by peer] 2012-03-02T11:02:04 -!- Laurenceb_ [~Laurence@host86-180-137-177.range86-180.btcentralplus.com] has quit [Ping timeout: 272 seconds] 2012-03-02T12:00:40 -!- eroomde [~ed@109.111.222.198] has quit [Ping timeout: 260 seconds] 2012-03-02T12:00:58 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 272 seconds] 2012-03-02T12:02:20 -!- eroomde [~ed@kraken.habhub.org] has joined ##stm32 2012-03-02T12:13:37 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-02T12:13:40 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-02T12:14:01 -!- peabody124_ [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-02T12:14:07 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer] 2012-03-02T12:14:07 -!- peabody124_ is now known as peabody124 2012-03-02T12:24:10 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-02T12:39:47 < Laurenceb> does gpio pin speed set the current driving capabilities? 2012-03-02T12:39:56 < Laurenceb> or just the slew rate? 2012-03-02T12:42:31 < jpa-> the current drive stays the same in datasheet irrelevant of the pin mode 2012-03-02T12:46:51 < Laurenceb> ah 2012-03-02T12:46:56 < Laurenceb> so its slew rate? 2012-03-02T12:47:27 < jpa-> yeah 2012-03-02T12:47:42 < jpa-> 2MHz: 125ns rise/fall time 2012-03-02T12:51:52 < Laurenceb> i see now, its in the datasheet 2012-03-02T12:51:54 < Laurenceb> thanks 2012-03-02T12:57:40 < Laurenceb> this is v useful for reducing interference 2012-03-02T13:41:02 < jpa-> yes 2012-03-02T13:42:29 <+Steffanx> So you all got your raspberrypi? :P 2012-03-02T13:42:35 <+Steffanx> ordered 2012-03-02T15:09:26 -!- hackkitten [~jigoku_ai@s529c4932.adsl.wanadoo.nl] has quit [Read error: Connection reset by peer] 2012-03-02T15:09:40 -!- hackkitten [~jigoku_ai@s529c4932.adsl.wanadoo.nl] has joined ##stm32 2012-03-02T15:32:02 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving] 2012-03-02T15:32:27 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-02T15:32:44 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-02T16:29:15 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-03-02T16:56:58 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: Leaving] 2012-03-02T16:57:57 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-02T17:57:48 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-02T17:59:08 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: Leaving] 2012-03-02T18:36:09 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-02T18:52:01 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 260 seconds] 2012-03-02T19:15:44 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-03-02T19:15:44 < TitanMKD> hi 2012-03-02T19:15:50 < jpa-> hi 2012-03-02T19:16:21 < jpa-> Steffanx: i thought they are already out-of-stock 2012-03-02T19:17:22 <+Steffanx> They are 2012-03-02T19:34:39 < TitanMKD> anyone has bought a Raspberry Pi as preorder ? 2012-03-02T19:35:22 <+Steffanx> Nope 2012-03-02T19:37:12 < TitanMKD> anyone know if on STM32F4 Discovery the output mini-jack is stereo ? 2012-03-02T19:37:30 < TitanMKD> or a fake stereo ? 2012-03-02T19:40:05 < zippe1> I believe the codec is stereo 2012-03-02T19:41:38 < TitanMKD> yes i hope too 2012-03-02T19:45:06 <+Steffanx> How's the nfc going TitanMKD ? 2012-03-02T19:46:54 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-02T19:53:14 < TitanMKD> Steffanx the sniffer will be ready soon 2012-03-02T19:53:24 < TitanMKD> at least for ISO14443 TypeA 2012-03-02T19:54:18 < TitanMKD> there's so much power on the STM32F4@168Mhz that I will do frequency detection and automatic TypeA detection Miller Modified or Manchester 2012-03-02T19:54:52 < TitanMKD> and decoding the stuff to output on serial link the final data ;) (including bit swapping) 2012-03-02T19:55:08 < TitanMKD> like on the Proxmark3 but done with STM32F4 ;) 2012-03-02T19:56:36 < TitanMKD> Steffanx i will make a video on youtube to see how that work ;) with a realtime eavesdrop/sniffer in action ;) 2012-03-02T19:57:46 < TitanMKD> with OLS behind to see the realtime and CPU low consumption of the whole process 2012-03-02T20:20:43 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-02T20:22:51 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-03-02T20:31:50 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: Leaving] 2012-03-02T20:43:29 -!- district [district@2607:f2f8:20c0::69] has quit [Read error: Connection reset by peer] 2012-03-02T21:44:43 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-03-02T21:46:22 -!- Laurenceb_ [~Laurence@host86-180-137-177.range86-180.btcentralplus.com] has joined ##stm32 2012-03-02T22:19:30 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-02T22:53:46 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 --- Day changed Sat Mar 03 2012 2012-03-03T01:21:31 -!- dekar [~dekar@2.215.209.191] has joined ##stm32 2012-03-03T01:21:32 -!- mode/##stm32 [+v dekar] by ChanServ 2012-03-03T01:36:22 < Laurenceb_> does register in c force something to be in a register? 2012-03-03T01:36:41 <+dekar> Laurenceb_, doesn't enforce it 2012-03-03T01:36:45 <+dekar> but suggests it 2012-03-03T01:36:55 < Laurenceb_> hmm 2012-03-03T01:37:07 < Laurenceb_> ive got some delay code that uses register 2012-03-03T01:37:35 < Laurenceb_> it causes reserved exception9 2012-03-03T01:37:42 < Laurenceb_> whatever that is 2012-03-03T01:38:19 <+dekar> compiler error? 2012-03-03T01:38:51 <+dekar> I've only used register on x86er before I think, never seriously considered using it 2012-03-03T01:38:52 < Laurenceb_> it runs for a while 2012-03-03T01:38:57 < Laurenceb_> and runs in some cases 2012-03-03T01:39:03 < Laurenceb_> ok 2012-03-03T01:39:05 <+dekar> oh 2012-03-03T01:39:17 <+dekar> that's weird 2012-03-03T01:39:20 < Laurenceb_> it runs for a while when i have all the interrupts running 2012-03-03T01:39:29 < Laurenceb_> with only some interrupts running it ok 2012-03-03T01:39:50 < Laurenceb_> but with all the interrupts it runs for a few hundered iterations the reserved exception9 2012-03-03T01:40:16 <+dekar> do you gain a relevant speedup using it? 2012-03-03T01:40:22 <+dekar> it shouldn't matter that much 2012-03-03T01:40:30 < Laurenceb_> yeah ill try without it 2012-03-03T01:41:00 < zyp> shouldn't matter at all, it's just a hint to the compiler 2012-03-03T01:41:05 < Laurenceb_> hmm 2012-03-03T01:41:17 < zyp> «please keep this variable in a register» 2012-03-03T01:41:18 < Laurenceb_> https://github.com/Laurenceb/STM32-Logger/blob/master/main.c#L118 2012-03-03T01:41:21 < Laurenceb_> fails there 2012-03-03T01:41:27 < Laurenceb_> works if i remove the delay 2012-03-03T01:41:36 < zyp> probably not related. 2012-03-03T01:41:41 < Laurenceb_> and the line113 code runs if i make it error 2012-03-03T01:42:02 < zyp> anyway, have a good night 2012-03-03T01:42:28 < Laurenceb_> cya 2012-03-03T01:42:53 < Laurenceb_> itd help if i know what reserved exception9 is 2012-03-03T01:46:00 <+dekar> never heard of it, what is it? is that a real exception in the interrupt vector or some handler in the C library? 2012-03-03T01:48:38 < Laurenceb_> its a nonexistant handler 2012-03-03T01:48:43 < Laurenceb_> thats why it breaks 2012-03-03T01:49:33 <+dekar> weird 2012-03-03T01:53:14 < Laurenceb_> guess i need to look at the map file, its not in the ref manual 2012-03-03T01:54:17 < Laurenceb_> https://github.com/Laurenceb/STM32-Logger/blob/master/main.map#L1223 2012-03-03T01:54:30 < Laurenceb_> actually, maybe GDB says its in reservedexception9 2012-03-03T01:54:52 < Laurenceb_> but actually its just at 0x0800c3e8 2012-03-03T01:55:07 < Laurenceb_> *but actually its just at 0x0800c3e4 2012-03-03T01:55:15 < Laurenceb_> so its some other error 2012-03-03T01:56:42 < Laurenceb_> this makes a lot more sense, some sort of hardfault 2012-03-03T01:58:39 < Laurenceb_> ill try it tomorrow without register 2012-03-03T01:58:41 * Laurenceb_ zzz 2012-03-03T02:03:35 -!- Laurenceb_ [~Laurence@host86-180-137-177.range86-180.btcentralplus.com] has quit [Ping timeout: 260 seconds] 2012-03-03T02:08:58 < emeb> w00t - stm32f105 board starting to work - http://imagebin.org/201767 2012-03-03T02:09:37 <+dekar> f105 O.o 2012-03-03T02:09:39 <+dekar> I want one 2012-03-03T02:09:44 <+dekar> when was it released? 2012-03-03T02:09:53 < emeb> they've been out a while. 2012-03-03T02:10:13 < emeb> still an M3, but with nicer USB, plus more I/O peripherals. 2012-03-03T02:10:19 <+dekar> oh my bad, I thought stm32f5 2012-03-03T02:10:20 <+dekar> XD 2012-03-03T02:10:27 < emeb> D'oh. 2012-03-03T02:10:38 <+dekar> right, they're connectivity line, aren't they? 2012-03-03T02:10:43 < emeb> yep 2012-03-03T02:10:52 < emeb> wonder what an f5 would have. 2012-03-03T02:11:02 <+dekar> nice board, I gotta learn how to make my own boards one day 2012-03-03T02:11:13 < emeb> It's not too hard. 2012-03-03T02:11:18 <+dekar> though I have this awesome EE guy who does that for me at the company 2012-03-03T02:11:33 < emeb> Hardest part is waiting for the prototype boards to come back from the fab. ;) 2012-03-03T02:12:24 <+dekar> I got my prototype like 2 weeks ago :) 2012-03-03T02:12:28 <+dekar> now waiting for the other 250 2012-03-03T02:12:46 < emeb> fun - what's the application? 2012-03-03T02:13:11 <+dekar> interfacting optical networking transceivers 2012-03-03T02:13:19 <+dekar> *interfacing 2012-03-03T02:13:30 < emeb> what's the data rate? 2012-03-03T02:13:39 <+dekar> i2c mostly :) 2012-03-03T02:13:40 <+dekar> http://dl.dropbox.com/u/28467113/IMG_20120210_182844.jpg 2012-03-03T02:14:09 < emeb> I see some Gbps stuff there - does the STM just manage it? 2012-03-03T02:15:01 <+dekar> that's for my alter fpga board 2012-03-03T02:15:04 <+dekar> *altera 2012-03-03T02:15:39 < emeb> looks nice. 2012-03-03T02:15:42 <+dekar> although we have connected the SFPs RX and TX to the stm32, I'll have yet to try how well that works 2012-03-03T02:15:53 <+dekar> the lower port is XFP 2012-03-03T02:16:20 <+dekar> you can't drive XFP at low datarates, thus the stm32 wasn't an option for that 2012-03-03T02:16:24 <+dekar> but SFP should work 2012-03-03T02:16:42 < emeb> Some hefty inductors there - the optical modules need some odd supplies? 2012-03-03T02:16:59 <+dekar> if it works customers can use it to match ends of fibres by connecting it to both ends 2012-03-03T02:17:26 <+dekar> they do, stuff like -1,8v I think 2012-03-03T02:17:38 < emeb> oh fun. 2012-03-03T02:17:52 <+dekar> but it also was about efficiency since the lasers consume a lot of power 2012-03-03T02:18:00 < emeb> no doubt. 2012-03-03T02:18:20 <+dekar> we'll still probably draw more than 500mA when powering up one of the 80km modules :/ 2012-03-03T02:18:37 < emeb> is that supposed to run from USB? 2012-03-03T02:18:52 <+dekar> yeah :) 2012-03-03T02:19:10 <+dekar> powering up the laser isn't a feature we actively advertise, it's experimental 2012-03-03T02:19:56 < emeb> "Professional driver on closed course. Don't try this at home." 2012-03-03T02:20:20 <+dekar> wear proper eye protection! :D 2012-03-03T02:20:30 <+dekar> IR lasers are nasty 2012-03-03T02:20:41 < emeb> Do not stare into beam with remaining eye. 2012-03-03T02:20:57 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2012-03-03T02:24:09 < emeb> So is this test equipment, not actual end-user comm gear? 2012-03-03T02:25:43 < BrainDamage> re retina burning lasers, not an actual "useful" laser but, http://img822.imageshack.us/img822/5287/lazor.jpg 2012-03-03T02:25:58 <+dekar> we sell it as a device to configure transceiver modules, so for example it allows you to make your HP transceiver compatible to your Cisco switch 2012-03-03T02:26:37 <+dekar> so it helps to come around the vendor lock-in 2012-03-03T02:31:04 < emeb> Oh - so the SFPs are programmable & have some flash in them that you can set up? 2012-03-03T02:36:13 <+dekar> yeah they are 2012-03-03T02:36:24 <+dekar> XFPs and many others as well 2012-03-03T02:36:54 <+dekar> but especially XFPs often require passwords if you want to write them, I hack those :) 2012-03-03T03:10:41 -!- dekar [~dekar@2.215.209.191] has quit [Ping timeout: 252 seconds] 2012-03-03T03:16:01 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 260 seconds] 2012-03-03T03:52:18 -!- UnaClocker [~unaclocke@24-113-85-150.wavecable.com] has joined ##stm32 2012-03-03T05:19:50 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2012-03-03T06:51:56 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-03T06:55:50 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-03T07:06:11 -!- UnaClocker [~unaclocke@24-113-85-150.wavecable.com] has quit [Quit: Leaving...] 2012-03-03T11:12:47 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has quit [Ping timeout: 255 seconds] 2012-03-03T11:14:15 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-03T11:28:53 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124] 2012-03-03T12:07:10 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-03T12:07:13 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-03T13:36:29 -!- Laurenceb_ [~Laurence@host86-180-137-177.range86-180.btcentralplus.com] has joined ##stm32 2012-03-03T14:34:39 -!- Laurenceb__ [~Laurence@host86-129-129-110.range86-129.btcentralplus.com] has joined ##stm32 2012-03-03T14:37:40 -!- Laurenceb_ [~Laurence@host86-180-137-177.range86-180.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-03-03T16:20:28 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-03T17:15:58 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-03T17:45:16 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-03T17:58:55 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-03T18:01:48 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 244 seconds] 2012-03-03T18:02:09 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-03T18:04:10 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-03T18:09:33 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2012-03-03T18:09:51 -!- UnaClocker [~unaclocke@24-113-85-150.wavecable.com] has joined ##stm32 2012-03-03T18:59:08 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 252 seconds] 2012-03-03T19:11:47 < jpa-> gah.. i hate bugs like this 2012-03-03T19:12:08 < jpa-> first application crashes right on boot even though my changes shouldn't affect boot 2012-03-03T19:12:09 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-03T19:12:14 < jpa-> then i fiddle around to debug it 2012-03-03T19:12:19 < jpa-> and then the bug disappears 2012-03-03T19:12:27 < Randomskk> :D my favourite kind of bug 2012-03-03T19:12:37 < Randomskk> almost as good as the bugs that vanish when you add printf statements to help debug them 2012-03-03T19:12:41 < Randomskk> then come back when you take the statements away 2012-03-03T19:12:50 < ziph> It's ok, I'm sure it will be back. ;) 2012-03-03T19:13:25 < Randomskk> oh so I have an stm32f4 with usb wired up and when I put it into bootloader mode, I can see it attempt to enumerate with my pc and then fail 2012-03-03T19:13:31 < Randomskk> it's got an 8mhz resonator so should be okay there I'd think 2012-03-03T19:13:35 < Randomskk> not really sure where to look to debug though 2012-03-03T19:13:41 < Randomskk> don't have a logic analyser that can do usb busses 2012-03-03T19:13:50 < ziph> Is the resonator within spec for USB? 2012-03-03T19:14:00 < Randomskk> possibly not 2012-03-03T19:15:14 < Randomskk> it's 8MHz +/- 0.5% 2012-03-03T19:15:22 < Randomskk> would be pretty amused if that turns out to be the issue 2012-03-03T19:16:17 < ziph> High speed or full speed USB? 2012-03-03T19:16:21 < Randomskk> full speed 2012-03-03T19:16:42 < Randomskk> or, well, it's just using the internal PHY and the system memory bootloader, so 2012-03-03T19:16:48 < Randomskk> should be full speed 2012-03-03T19:17:10 < ziph> Isn't there two PHY's in the F4's, one full and one high? 2012-03-03T19:17:20 < Randomskk> I think there's a MAC for high and a MAC+PHY for full 2012-03-03T19:17:30 < Randomskk> so you need an external PHY for high iirc 2012-03-03T19:17:37 < Randomskk> but I've never really looked into that 2012-03-03T19:18:20 < ziph> There's a high speed PHY in the one I looked into. 2012-03-03T19:18:28 < Randomskk> ah, maybe it's just this one, or I misread the datasheet 2012-03-03T19:18:50 < ziph> STM32F405xx, 407xx, 415xx, 417xx 2012-03-03T19:19:24 < Randomskk> at any rate the USB port is hooked up to PA11/12 which is USB FS DM/DP 2012-03-03T19:19:30 < ziph> Oh, there are two PHY's, but there both full. 2012-03-03T19:19:45 < Randomskk> oh, huh. okay 2012-03-03T19:19:55 < Randomskk> well at any rate this is the oth fs one for the bootloader :P 2012-03-03T19:20:03 < jpa-> hmm, the phantom bug appears to be unaligned access hardfault 2012-03-03T19:26:49 < Randomskk> ziph: hmm if my maths is correct I guess I have 7500ppm and USB tolerance is 2500ppm 2012-03-03T19:26:52 < Randomskk> so, maybe... 2012-03-03T19:27:06 < Randomskk> oh well, the usb wasn't critical anyway so much as a nice-to-have :P 2012-03-03T19:27:09 * Randomskk adds note to r2 fixes 2012-03-03T19:27:53 < ziph> Yeah, I doubt that's the actual problem (the resonator will have that specified over some wide temperature range), but you wouldn't want to ship something with that. 2012-03-03T19:28:02 < Randomskk> yea 2012-03-03T19:28:21 < Randomskk> not sure what the error would look like if that was the issue 2012-03-03T19:29:05 < Randomskk> any other ideas on where to look for debugging? 2012-03-03T19:29:20 < ziph> Windows will practically enumerate a willy if you stick it in the port. 2012-03-03T19:29:56 < ziph> Try USBView to see what descriptors (if any) it managed to pull out. 2012-03-03T19:30:17 < ziph> Otherwise stick some USB code on there an set breakpoints in that to see how far it's actually getting. 2012-03-03T19:31:22 < ziph> Good USB analyzers are only about $500 by the way. :) 2012-03-03T19:32:28 < Randomskk> haven't tried it on windows, I'll give it a play 2012-03-03T19:32:36 < ziph> Oh, what are you using? 2012-03-03T19:32:42 < Randomskk> linux and also os x 2012-03-03T19:32:55 < ziph> OS X USBProber had a log you can enable. 2012-03-03T19:33:04 < ziph> It sometimes has vaguely useful details. 2012-03-03T19:33:14 < Randomskk> cheers, I'll try it 2012-03-03T19:34:48 <+Steffanx> "It sometimes has vaguely useful details." .. enable level 7 and you'll get all the info you want :P 2012-03-03T19:35:04 <+Steffanx> + all kind of other crap you don'tneed 2012-03-03T19:35:26 < ziph> I didn't find it all that useful writing a USB stack. 2012-03-03T19:35:38 < ziph> But if the error is with the descriptors or something it may be of more use. 2012-03-03T19:46:06 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-03T20:01:03 < zyp> oh, didn't know about the usb prober 2012-03-03T20:14:43 <+Steffanx> lol 2012-03-03T20:15:19 <+Steffanx> You have to enable/download the debug version of the kernel ext. .. 2012-03-03T20:15:46 < zyp> it's not that important, I've got access to a proper usb analyzer 2012-03-03T20:16:52 <+Steffanx> Don't say that all the time please :p 2012-03-03T20:17:24 < zyp> in related news: I got enumeration working today 2012-03-03T20:21:48 <+Steffanx> With hacky code? 2012-03-03T20:22:02 < zyp> yes 2012-03-03T20:22:18 < zyp> in the process of cleaning it up now 2012-03-03T20:23:25 < ziph> zyp: What chip? 2012-03-03T20:23:53 < zyp> F4 2012-03-03T20:24:30 < zyp> currently prototyping on the discovery board 2012-03-03T20:24:48 < ziph> In device mode? 2012-03-03T20:25:13 < zyp> yes, I only need device mode, so I'm making a small device mode stack 2012-03-03T20:25:51 < ziph> How do you deal with processing data outside of the endpoint receive/ready ISR's? 2012-03-03T20:26:36 < zyp> I don't, yet 2012-03-03T20:27:17 < zyp> I currently only support control transfers, and service them directly in the ISRs 2012-03-03T20:28:20 < ziph> Yeap. 2012-03-03T20:29:23 < zyp> so far the code is a hardcoded mess, so I need to clean this up before adding more functionality 2012-03-03T20:47:36 -!- kerwood1 [~Marshall@c-76-21-166-25.hsd1.md.comcast.net] has joined ##stm32 2012-03-03T21:50:06 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-03-03T22:31:42 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124] 2012-03-03T22:49:32 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-03T22:57:45 -!- Laurenceb__ [~Laurence@host86-129-129-110.range86-129.btcentralplus.com] has quit [Ping timeout: 260 seconds] 2012-03-03T23:08:59 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-03T23:25:33 -!- Laurenceb_ [~Laurence@host86-129-129-110.range86-129.btcentralplus.com] has joined ##stm32 2012-03-03T23:38:28 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 272 seconds] --- Day changed Sun Mar 04 2012 2012-03-04T00:13:49 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 255 seconds] 2012-03-04T00:14:14 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-04T01:39:28 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-04T01:39:46 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Disconnected by services] 2012-03-04T01:39:51 -!- Tom_L is now known as Tom_itx 2012-03-04T01:41:08 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has quit [Ping timeout: 240 seconds] 2012-03-04T01:44:24 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-04T02:04:14 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-04T02:18:02 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 252 seconds] 2012-03-04T02:31:49 < wattrod> Anyone building boards or devices with SWD only, no full JTAG connector? Any caveats? 2012-03-04T02:51:18 < wattrod> STM does support SWD, in fact the Discovery demo board uses it internally, and provides the 4-pin header (clock, data, and 2 grounds) so you can use it as a programmer for other devices. No JTAG at all. 2012-03-04T02:53:17 < wattrod> We're trying to put together a very small circuit board, and are fighting real-estate problems. Being able to go with a small programming connector would be cool, but I'm a little nervous given how few people talk about it, and there doesn't seem to be a standard connector. 2012-03-04T02:59:58 -!- Laurenceb_ [~Laurence@host86-129-129-110.range86-129.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-03-04T03:48:44 -!- atom1 [~tom@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-04T03:50:40 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-04T04:00:22 < zyp> wattrod, the cortex debug connector is the standard connector for swd 2012-03-04T04:00:53 < Randomskk> the 2x5, optionally in 50mil pitch? 2012-03-04T04:00:57 < zyp> yep 2012-03-04T04:01:00 < Randomskk> but it carries jtag too :P 2012-03-04T04:01:10 < zyp> it does 2012-03-04T04:02:36 < zyp> but swd is implemented on a subset of jtag pins, so it's jtag+swd if everything is connected and swd only if you leave out some 2012-03-04T04:03:17 -!- dekar [~dekar@2.215.209.191] has joined ##stm32 2012-03-04T04:03:20 -!- mode/##stm32 [+v dekar] by ChanServ 2012-03-04T04:32:26 < Randomskk> so I have an stm32f405rgt6, apparently it has 112k+64k+16k(+4k) RAM 2012-03-04T04:33:11 < Randomskk> in my linker script if I set ram to length 128k everything's fine, but if I set it to 129k or higher then it hardfaults trying to -- I think -- copy msp (set to 0x20030000 or similar) into stuff 2012-03-04T04:33:28 < Randomskk> which is the first instruction in my reset handler, so 2012-03-04T04:33:58 < Randomskk> I guess it's hardfaulting trying to access any RAM above 128K, but given as the boundaries are apparently 112, 64, 16 I don't see why 128 would be a cutoff point.. 2012-03-04T04:42:47 < zyp> they aren't located at consecutive addresses 2012-03-04T04:43:45 < Randomskk> aah, found the right memory map to look at 2012-03-04T04:43:49 < zyp> you only have 112+16 located starting from 0x20000000, so hardfault over 128k sounds right 2012-03-04T04:43:51 < Randomskk> so the 16K and the 128K are together 2012-03-04T04:43:52 < Randomskk> yea 2012-03-04T04:44:28 < zyp> 64k is located on cpu data bus only and starts at 0x10000000 2012-03-04T04:44:42 < Randomskk> right, I see it now 2012-03-04T04:44:48 < Randomskk> thanks 2012-03-04T04:45:12 < Randomskk> I was looking at the f4 reference manual not the chip datasheet :X 2012-03-04T04:58:46 <+dekar> how annoying, why did they do this? 2012-03-04T04:59:01 < zyp> do what? 2012-03-04T04:59:14 <+dekar> I guess you could place the stack in one of the other areas at least 2012-03-04T04:59:21 <+dekar> make the memory that fragmented 2012-03-04T04:59:43 < zyp> so that the cpu can access one of the blocks while the other is accessed by dma 2012-03-04T04:59:51 < zyp> it's a feature. 2012-03-04T05:00:29 <+dekar> 16k would have been enough for DMA imo 2012-03-04T05:00:33 <+dekar> :/ 2012-03-04T05:02:06 < Randomskk> is it a thing to tell the linker about? 2012-03-04T05:02:24 < Randomskk> right now I've just got a ram section 128k long, which, well, works 2012-03-04T05:03:10 < zyp> and I have a ram section 20k long, which also works 2012-03-04T05:03:24 < zyp> because I've been to lazy to change my linker script since porting from F1 2012-03-04T05:03:35 < Randomskk> hehe 2012-03-04T05:04:55 < zyp> but I'll fix this later, and make seperate sections for each block, so I can control what gets put where 2012-03-04T05:06:47 <+dekar> yeah well fill one up with .data and use it as stack, then use the biggest chunk as heap I guess 2012-03-04T05:07:28 < zyp> I'll probably put all the thread stacks in the 64k CCM since it's unusable for DMA and there should not be any need for DMA to access stack, use the 16k block for specialized DMA pools and the 112k block for the rest 2012-03-04T05:08:02 <+dekar> sounds reasonable :) 2012-03-04T05:08:19 <+dekar> 64k is so plenty for stacks 2012-03-04T05:08:43 < zyp> yeah, plenty is understating it :p 2012-03-04T05:09:09 <+dekar> I dislike :/ 2012-03-04T05:10:09 <+dekar> didn't someone say they'll make an stm32 with 2mbytes of sram? I hope they don't split it in a bazillion segments 2012-03-04T05:10:45 < zyp> just hook an external SRAM to FSMC and you'll have it in a single segment 2012-03-04T05:11:00 <+dekar> and one waitstate 2012-03-04T05:11:31 < zyp> and segments are nice when you have multiple bus masters 2012-03-04T05:12:31 <+dekar> use the fsmc for that :P 2012-03-04T05:13:54 <+dekar> I don't do much memory IO, thus I don't see the advantage for my project. But I guess it could be handy if you want to make a high IO frame buffer or something like that 2012-03-04T05:14:04 < zyp> I don't get what you are complaining about? the fact that the entire 192k range aren't consecutive? 2012-03-04T05:14:31 <+dekar> I actually don't need much memory anyway, I just think it's ugly 2012-03-04T05:14:54 <+dekar> they could also have added some option to configure it 2012-03-04T05:15:37 <+dekar> I mean you can also remap the ram to address 0 on all stm32s 2012-03-04T05:16:09 <+dekar> on the other hand, an MMU would be nice? :D j/k 2012-03-04T05:18:59 < zyp> I don't really care about the blocks being consecutive or not, what gets me is that I have to ensure that I don't want to use any buffers I put into the CCM for DMA :p 2012-03-04T05:21:17 < zyp> on the other hand it's guaranteed not to be busy for dma, so interrupts never have to wait for dma to finish or interrupt dma to push stuff to stack 2012-03-04T05:47:44 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2012-03-04T06:48:17 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-04T06:53:47 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-04T07:07:50 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-04T07:08:26 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 255 seconds] 2012-03-04T07:18:28 -!- Tom_L is now known as Tom_itx 2012-03-04T07:26:13 -!- atom1 [~tom@ip70-179-150-84.fv.ks.cox.net] has quit [Quit: Leaving] 2012-03-04T07:28:49 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 260 seconds] 2012-03-04T07:30:09 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-03-04T07:41:38 -!- UnaClocker [~unaclocke@24-113-85-150.wavecable.com] has quit [Quit: updating...] 2012-03-04T08:07:26 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-04T08:07:58 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [Client Quit] 2012-03-04T08:15:41 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-04T11:30:42 < ziph> The STM32's don't have an MMU? 2012-03-04T11:32:15 < Tectu> morning folks 2012-03-04T11:32:45 < Tectu> i took a look to the libopencm3 and it dosen't look that bad for me. what do have the most people against it? 2012-03-04T11:34:49 < jpa-> gpl 2012-03-04T11:35:02 < Tectu> ah, i see 2012-03-04T11:35:09 < ziph> Exhibit B: http://www.libopencm3.org/wiki/Documentation 2012-03-04T11:35:54 < Tectu> well, when i build my own library, but take some look to the opencm3 lib how they did it, do i have some law problems when i would use my lib for commercial products then? 2012-03-04T11:36:21 < jpa-> only if your "take a look" involves copying stuff under copyright 2012-03-04T11:36:28 < Tectu> yes, i allready saw that, ziph :D but the in code documentation looks enought for the very clear and readable code 2012-03-04T11:36:31 < jpa-> algorithms are not under copyright, code is 2012-03-04T11:36:37 < jpa-> design may be 2012-03-04T11:36:42 < Tectu> ah, okay 2012-03-04T11:37:00 < Tectu> algorithms never evere are under copyright? (at least under GPL) 2012-03-04T11:37:39 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 245 seconds] 2012-03-04T11:42:04 < jpa-> well, if you are in the USA, it depends on how much you pay your lawyer 2012-03-04T11:44:02 < Tectu> haha :D 2012-03-04T11:46:37 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124] 2012-03-04T11:58:02 -!- sunilg [~chatzilla@59.97.193.17] has joined ##stm32 2012-03-04T13:01:32 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 272 seconds] 2012-03-04T13:19:22 -!- sunilg [~chatzilla@59.97.193.17] has quit [Ping timeout: 255 seconds] 2012-03-04T13:22:39 -!- sunilg [~chatzilla@59.97.193.17] has joined ##stm32 2012-03-04T13:38:15 -!- sunilg [~chatzilla@59.97.193.17] has quit [Ping timeout: 244 seconds] 2012-03-04T13:40:19 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-04T13:42:18 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-04T14:09:42 -!- Laurenceb_ [~Laurence@host86-129-129-110.range86-129.btcentralplus.com] has joined ##stm32 2012-03-04T14:25:08 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-04T14:25:12 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-04T14:51:41 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-04T14:51:43 -!- Laurenceb_ [~Laurence@host86-129-129-110.range86-129.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-03-04T15:00:07 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: Leaving] 2012-03-04T15:08:14 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-04T15:57:06 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-04T16:49:13 < Tectu> jpa-, you life in finnland, right? 2012-03-04T16:52:32 < jpa-> yeah 2012-03-04T16:53:10 < Tectu> so, do you know KorpiKlaani? 2012-03-04T16:54:16 < jpa-> no 2012-03-04T16:54:42 < Tectu> :( 2012-03-04T17:01:21 < zyp> doesn't everybody know each other in finland? 2012-03-04T17:03:28 < Tectu> i guess not 2012-03-04T17:03:32 < Tectu> KopriKlaani is a band, btw 2012-03-04T17:22:14 -!- Thorn__ [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-03-04T17:23:07 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 244 seconds] 2012-03-04T17:34:56 -!- sunilg [~chatzilla@59.97.192.59] has joined ##stm32 2012-03-04T17:43:48 -!- sunilg [~chatzilla@59.97.192.59] has quit [Ping timeout: 245 seconds] 2012-03-04T17:50:02 -!- Thorn__ is now known as Thorn 2012-03-04T18:00:53 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-04T18:30:53 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: Leaving] 2012-03-04T18:53:58 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-03-04T19:03:28 -!- sunilg [~chatzilla@59.97.192.59] has joined ##stm32 2012-03-04T19:40:37 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-04T19:59:18 -!- sunilg [~chatzilla@59.97.192.59] has quit [Ping timeout: 248 seconds] 2012-03-04T20:05:35 -!- sunilg [~chatzilla@59.97.192.59] has joined ##stm32 2012-03-04T20:47:08 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2012-03-04T20:55:55 -!- sunilg [~chatzilla@59.97.192.59] has quit [Ping timeout: 265 seconds] 2012-03-04T21:08:47 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-04T21:10:44 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-04T21:15:29 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124] 2012-03-04T21:17:34 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-04T21:30:28 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: Leaving] 2012-03-04T21:51:58 -!- Laurenceb_ [~Laurence@host86-129-129-110.range86-129.btcentralplus.com] has joined ##stm32 2012-03-04T22:10:17 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-04T22:52:16 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-04T23:58:41 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 --- Day changed Mon Mar 05 2012 2012-03-05T00:01:18 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 245 seconds] 2012-03-05T00:05:55 -!- kerwood1 [~Marshall@c-76-21-166-25.hsd1.md.comcast.net] has left ##stm32 [] 2012-03-05T00:34:29 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 248 seconds] 2012-03-05T00:39:35 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-03-05T01:01:24 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 245 seconds] 2012-03-05T01:14:49 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2012-03-05T01:33:12 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 260 seconds] 2012-03-05T01:49:11 -!- zippe1 [~Adium@173.11.99.161] has quit [Quit: Leaving.] 2012-03-05T02:03:49 -!- Laurenceb_ [~Laurence@host86-129-129-110.range86-129.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-03-05T02:05:11 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer] 2012-03-05T02:06:31 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-05T02:48:58 -!- phantone is now known as phantoxe 2012-03-05T03:04:55 < Tom_itx> 6 mo 2012-03-05T03:22:19 < Randomskk> two or three weeks to EU 2012-03-05T03:22:29 < Randomskk> depends what shipping you picked but six months sounds unusually long 2012-03-05T03:24:48 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-03-05T03:32:28 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-05T03:35:10 < Tom_itx> you got a hot air station already 2012-03-05T03:35:14 < Tom_itx> what more do you need? 2012-03-05T03:46:53 -!- sunilg [~chatzilla@59.97.192.59] has joined ##stm32 2012-03-05T03:51:47 -!- sunilg [~chatzilla@59.97.192.59] has quit [Ping timeout: 244 seconds] 2012-03-05T05:15:59 -!- sunilg [~chatzilla@59.97.192.59] has joined ##stm32 2012-03-05T05:28:34 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-05T05:34:44 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: Leaving] 2012-03-05T05:35:08 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-05T05:36:25 -!- sunilg [~chatzilla@59.97.192.59] has quit [Ping timeout: 260 seconds] 2012-03-05T05:43:57 -!- sunilg [~chatzilla@59.97.192.59] has joined ##stm32 2012-03-05T06:17:36 -!- sunilg [~chatzilla@59.97.192.59] has quit [Ping timeout: 244 seconds] 2012-03-05T07:28:34 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-05T08:08:17 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2012-03-05T08:57:28 -!- sunilg [~chatzilla@59.97.192.59] has joined ##stm32 2012-03-05T09:20:37 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 276 seconds] 2012-03-05T10:13:27 -!- dekar [~dekar@2.215.209.191] has quit [Quit: This computer has gone to sleep] 2012-03-05T10:15:15 -!- sunilg [~chatzilla@59.97.192.59] has quit [Ping timeout: 260 seconds] 2012-03-05T10:15:27 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-03-05T10:31:22 -!- sunilg [~chatzilla@59.97.192.59] has joined ##stm32 2012-03-05T10:59:37 -!- sunilg [~chatzilla@59.97.192.59] has quit [Ping timeout: 260 seconds] 2012-03-05T11:00:31 -!- dekar [~dekar@dslb-088-069-130-220.pools.arcor-ip.net] has joined ##stm32 2012-03-05T11:00:34 -!- mode/##stm32 [+v dekar] by ChanServ 2012-03-05T11:35:40 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-05T12:05:44 -!- Laurenceb_ [~Laurence@host86-129-129-110.range86-129.btcentralplus.com] has joined ##stm32 2012-03-05T13:01:37 -!- Laurenceb_ [~Laurence@host86-129-129-110.range86-129.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-03-05T16:53:34 < zyp> yeah, that's what we laughed about last week 2012-03-05T16:58:39 -!- sunilg [~chatzilla@59.97.192.77] has joined ##stm32 2012-03-05T17:01:15 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has quit [Ping timeout: 244 seconds] 2012-03-05T17:16:12 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has joined ##stm32 2012-03-05T17:21:46 -!- sunilg [~chatzilla@59.97.192.77] has quit [Ping timeout: 252 seconds] 2012-03-05T17:41:49 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has quit [Ping timeout: 245 seconds] 2012-03-05T17:49:03 -!- sunilg [~chatzilla@59.97.192.77] has joined ##stm32 2012-03-05T17:54:51 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has joined ##stm32 2012-03-05T18:02:08 -!- dekar [~dekar@dslb-088-069-130-220.pools.arcor-ip.net] has quit [Ping timeout: 245 seconds] 2012-03-05T18:11:54 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-05T18:15:03 -!- sunilg [~chatzilla@59.97.192.77] has quit [Ping timeout: 252 seconds] 2012-03-05T18:16:57 < emeb> Good morning - I've got an STM32F105 board that uses I2S to talk to a couple of audio DACs. Having a hard time getting I2S data out. 2012-03-05T18:17:14 < emeb> Anyone have experience doing audio on the CL parts? 2012-03-05T18:18:02 < emeb> I got I2S3 to work for a while, but when I tried to turn on I2S2 everything stopped and now I can't get I2S3 going again. 2012-03-05T18:25:46 < jpa-> got a scope? ,) 2012-03-05T18:29:45 < Thorn> are you using any i2c/usart peripherals at the same time? 2012-03-05T18:30:00 < jpa-> do you enable all the clocks? :) 2012-03-05T18:31:00 < Thorn> are you remapping any functions? 2012-03-05T18:35:23 -!- Tekno [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-03-05T18:38:40 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 260 seconds] 2012-03-05T18:43:15 < emeb> jpa-: yeah got a 'scope 2012-03-05T18:43:25 < zyp> scope it 2012-03-05T18:43:38 < emeb> zyp: already done that 2012-03-05T18:43:45 < emeb> Thorn: not using a usart 2012-03-05T18:43:47 < zyp> no clock activity? 2012-03-05T18:43:56 < emeb> zyp: correct 2012-03-05T18:44:06 < emeb> not on MCLK/SCLK/LRCLK 2012-03-05T18:44:23 < emeb> Thorn: not using i2c either 2012-03-05T18:44:59 < emeb> jpa-: enabled clocks for gpio, afio, spi/i2s. 2012-03-05T18:45:49 < emeb> strange thing is that this worked earlier with exact same source code. 2012-03-05T18:46:26 < emeb> basically followed the I2S IRQ example in the Std Periph Lib 2012-03-05T18:47:01 < emeb> just changed the xtal freq and I/O assignment. Also set up IRQ routine to spew continuously. 2012-03-05T18:47:17 < emeb> Seems the I2S peripheral disables clocks when it underflows. 2012-03-05T18:49:09 < emeb> Probably going to have to install Atollic and try realtime debug to figure this out. 2012-03-05T18:49:29 < emeb> (been getting by w/ GCC so far) 2012-03-05T18:50:38 < jpa-> what is realtime debug? 2012-03-05T18:50:43 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124] 2012-03-05T18:50:47 < jpa-> ie. how is it different from gdb? 2012-03-05T18:50:54 < emeb> That's what I mean. 2012-03-05T18:51:08 < emeb> haven't been using debug. Just flashing 2012-03-05T18:51:11 < jpa-> ah :) 2012-03-05T18:51:46 < emeb> do most work on linux then d/l via winxp + stlink utility. 2012-03-05T18:53:11 < jpa-> huh, why not just use stlink from linux and debug using it also? 2012-03-05T18:53:29 < jpa-> like us all :) 2012-03-05T18:53:42 < emeb> got me there. That is what this channel is for... 2012-03-05T18:54:05 < jpa-> https://github.com/karlp/stlink/tree/ that could be a good start 2012-03-05T18:54:13 < emeb> thx 2012-03-05T18:54:33 < emeb> it's been a while since I updated my source 2012-03-05T18:54:58 -!- sunilg [~chatzilla@59.97.192.77] has joined ##stm32 2012-03-05T18:55:54 < emeb> do you use a gui on top of gdb? 2012-03-05T18:56:02 < emeb> (like DDD) 2012-03-05T19:01:35 < jpa-> i don't 2012-03-05T19:01:42 < jpa-> i think someone was trying out eclipse 2012-03-05T19:01:54 < jpa-> dunno how it went 2012-03-05T19:06:38 -!- sunilg [~chatzilla@59.97.192.77] has quit [Ping timeout: 240 seconds] 2012-03-05T19:08:19 -!- dekar [~dekar@2.208.219.60] has joined ##stm32 2012-03-05T19:08:22 -!- mode/##stm32 [+v dekar] by ChanServ 2012-03-05T19:14:31 < emeb> huh. generally a cmd line kinda guy but never got the hang of gdb w/o a gui on it. 2012-03-05T19:17:22 < jpa-> i recently got a hang of windbg even :) 2012-03-05T19:22:34 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-05T19:23:33 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-05T19:23:36 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-05T19:24:46 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 260 seconds] 2012-03-05T19:31:36 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-05T19:39:00 -!- ureif_ [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-05T19:41:24 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 245 seconds] 2012-03-05T19:51:58 <+dekar> did anyone try using llvm-clang to compile for the stm32? 2012-03-05T19:53:39 < jpa-> someone said that a year ago the cortex-m3 support in llvm was not good enough for anything real 2012-03-05T19:53:50 < Thorn> I asked a couple times about arm on their chanel, apparently someone did use it with some success. I never tried though 2012-03-05T19:53:51 <+Steffanx> 'someone said' 2012-03-05T19:54:15 < jpa-> Steffanx: well i'm the source of verifiable facts, as you can see :) 2012-03-05T19:56:24 -!- ureif_ [~eruif@unaffiliated/eruif] has quit [Ping timeout: 245 seconds] 2012-03-05T19:59:17 < zyp> that's the conclusion I also came to when I checked 2012-03-05T19:59:34 < zyp> around a year ago 2012-03-05T19:59:44 < zyp> might be more mature now 2012-03-05T20:04:30 <+dekar> from what I heard llvm-clang is always a cross-compiler, all you need to do is building the c library for the target architecture 2012-03-05T20:04:48 -!- mode/##stm32 [+o Steffanx] by ChanServ 2012-03-05T20:04:48 <+dekar> but I guess GCC still generates the better code 2012-03-05T20:04:55 -!- Steffanx 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) 2012-03-05T20:05:05 -!- mode/##stm32 [-o Steffanx] by ChanServ 2012-03-05T21:02:09 -!- sunilg [~chatzilla@59.97.192.77] has joined ##stm32 2012-03-05T21:25:03 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 245 seconds] 2012-03-05T21:27:52 -!- Laurenceb_ [~Laurence@host86-129-129-110.range86-129.btcentralplus.com] has joined ##stm32 2012-03-05T21:29:39 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-03-05T21:30:10 -!- sunilg [~chatzilla@59.97.192.77] has quit [Ping timeout: 260 seconds] 2012-03-05T21:45:30 <+dekar> the main problem with llvm-clang seems to be, that it can't be used with newlib so far 2012-03-05T21:45:45 <+dekar> but it seems like google patched newlib for llvm-clang 2012-03-05T21:45:48 <+dekar> http://www.chromium.org/nativeclient/pnacl/building-and-testing-portable-native-client 2012-03-05T21:49:39 < Laurenceb_> https://github.com/Laurenceb/STM32-Logger/raw/master/tests/dualchan.png 2012-03-05T21:49:44 < Laurenceb_> pwnage 2012-03-05T21:50:04 <+Steffanx> What's this? 2012-03-05T21:50:07 < Laurenceb_> led spectrometer on my head with two leds 2012-03-05T21:50:15 < Laurenceb_> red isnt connected 2012-03-05T21:50:26 < Laurenceb_> green picks up heartbeat 2012-03-05T21:50:36 <+Steffanx> Nice 2012-03-05T21:50:39 < Thorn> anyone who talks about "the ARM archtecture" needs to be hit in the head with each of the ARM ARMs, of which there're more than one 2012-03-05T21:50:48 < Laurenceb_> and respiration 2012-03-05T21:50:55 < Thorn> what do they mean by "supported architectures: ARM"? 2012-03-05T21:51:14 < Laurenceb_> ive setup the pwm to generate orthogonal frequencies 2012-03-05T21:51:15 <+dekar> lol armv7 probably 2012-03-05T21:51:30 < Laurenceb_> so i can separate them with no crosstalk now 2012-03-05T21:51:44 <+Steffanx> So how are you going to extract the heart beat Laurenceb_ 2012-03-05T21:51:45 < Laurenceb_> so one photodiode on one side of my head and led array on the other 2012-03-05T21:52:04 < Laurenceb_> with ultimately lots of different wavelengths 2012-03-05T21:52:15 < Laurenceb_> and light goes through my skull and brain XD 2012-03-05T21:52:21 <+Steffanx> Uh? 2012-03-05T21:52:32 < Thorn> there're two v7's (v7-M and v7-AR) with variations like v7-M3, v7-M4, v7-M4F. but who cares, right?.. 2012-03-05T21:52:35 <+Steffanx> Super high powered leds? 2012-03-05T21:52:38 < Laurenceb_> yes 2012-03-05T21:52:42 <+Steffanx> Like 300w on your head? 2012-03-05T21:52:43 < Laurenceb_> oh headband 2012-03-05T21:52:47 <+dekar> ARMv7-AR ofc 2012-03-05T21:52:47 < Laurenceb_> not quite 2012-03-05T21:52:56 <+dekar> that's what other google apps require as well 2012-03-05T21:53:03 < Laurenceb_> firing through temple 2012-03-05T21:53:44 < Laurenceb_> short period stuff is heartbeat, longer cycle is respiration 2012-03-05T21:54:01 <+Steffanx> http://en.wikipedia.org/wiki/Photoplethysmogram <= laurenceb_ ? 2012-03-05T21:54:05 < Laurenceb_> yes 2012-03-05T21:54:05 <+Steffanx> That? 2012-03-05T21:54:22 <+dekar> Thorn, actually it reads like they just support the LLVM pseudo architecture, which then would allow compiling it for many architectures 2012-03-05T21:54:25 <+Steffanx> What's the plan with it? 2012-03-05T21:54:31 < Laurenceb_> but with _lots_ of separate wavelengths 2012-03-05T21:54:58 < Laurenceb_> untimately ill have a cuff that inflates on fingers the squeeze the blood out and let it back in 2012-03-05T21:55:15 < Laurenceb_> then you can look at lots of chemistry and check for various conditions 2012-03-05T21:55:22 <+dekar> so much light sounds scary O.o 2012-03-05T21:55:38 <+Steffanx> What is it for laurenceb_, hobby bobby or .. ? 2012-03-05T21:55:55 < Laurenceb_> PhD 2012-03-05T21:55:59 <+Steffanx> Ah 2012-03-05T21:56:49 <+Steffanx> Are you also going to do some dsp on it .. or is it just some visual thing? 2012-03-05T21:57:59 < Laurenceb_> possibly.. ill see 2012-03-05T21:58:13 < Laurenceb_> need to work on hardware for the time being 2012-03-05T22:00:27 < Laurenceb_> i need some flexi-pcb :S 2012-03-05T22:00:56 <+Steffanx> $$$$$$$$ 2012-03-05T22:01:05 < Thorn> I finally submitted my long-suffering pcb to seeed and ordered a stm32f4discovery 2012-03-05T22:01:22 <+Steffanx> Why Laurenceb_ ? 2012-03-05T22:02:26 -!- sunilg [~chatzilla@59.97.192.77] has joined ##stm32 2012-03-05T22:02:52 -!- sunilg [~chatzilla@59.97.192.77] has quit [Client Quit] 2012-03-05T22:03:28 < Laurenceb_> for wrist cuff thingy with the electronics intergrated 2012-03-05T22:04:08 < Laurenceb_> ill try seeed, its going to take a few prototypes to get this right 2012-03-05T22:04:39 <+Steffanx> This guy, Capnkernel, says he can do 0.4mm pcbs for you 2012-03-05T22:04:43 <+Steffanx> Non-flexible though 2012-03-05T22:04:59 <+Steffanx> but it's not very thick :) 2012-03-05T22:05:18 <+Steffanx> (He's in china and #avr) 2012-03-05T22:05:26 < Laurenceb_> hmm 2012-03-05T22:05:32 < Laurenceb_> i can diy flexipcb 2012-03-05T22:05:41 <+Steffanx> Give it a try 2012-03-05T22:05:51 < Laurenceb_> i need to cut it, going to check out a company with a water jet tomorrow 2012-03-05T22:05:58 < Laurenceb_> to see if they can help 2012-03-05T22:12:08 < Laurenceb_> oscillating knife cutters look intriguing 2012-03-05T22:16:57 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 255 seconds] 2012-03-05T22:17:45 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-03-05T22:30:52 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-05T22:45:13 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 260 seconds] 2012-03-05T23:08:38 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-03-05T23:30:27 < Laurenceb_> dekar: yeah health and safety would kick up a shitstorm if they knew some of the stuff i do 2012-03-05T23:30:48 < Laurenceb_> and my locked chemicals cabinet in the back room... 2012-03-05T23:37:39 <+dekar> I once burned myself placing my finger on a lens of a while LED, it got really hot, really fast in the center of my thumb :/ 2012-03-05T23:37:59 <+dekar> it kinda focused through my skin I think 2012-03-05T23:38:31 <+dekar> s/while/white 2012-03-05T23:38:51 <+dekar> the latest GCC breaks the CMSIS libs for the STM32 2012-03-05T23:38:56 <+dekar> the code written by ARM XD 2012-03-05T23:39:11 <+dekar> and actually ARM doesn't seem to know arm assembly 2012-03-05T23:39:14 <+dekar> so sad 2012-03-05T23:39:20 <+dekar> http://sourceware.org/bugzilla/show_bug.cgi?id=13215 2012-03-05T23:51:41 < zyp> I can't believe that's true, surely every employee at ARM knows every detail about every instruction by heart! 2012-03-05T23:52:13 < Randomskk> I hear they have pop quizzes on them near daily 2012-03-05T23:52:27 < Randomskk> and you get fired if you get any of the details wrong or even slightly vague 2012-03-05T23:54:58 < Laurenceb_> haha 2012-03-05T23:55:14 < Laurenceb_> seriously, thumb2 is pretty sweet 2012-03-05T23:55:24 < Laurenceb_> its actually nice :P 2012-03-05T23:59:53 <+Steffanx> Until you have to write it yourself --- Day changed Tue Mar 06 2012 2012-03-06T00:00:15 <+dekar> I wrote a lot thumb2, it's not too bad 2012-03-06T00:00:34 <+dekar> the "if-then-else-else-else" stuff is cool 2012-03-06T00:00:43 <+dekar> ITEEE instruction 2012-03-06T00:00:49 <+Steffanx> C :D 2012-03-06T00:01:03 <+dekar> yeah kinda 2012-03-06T00:01:12 < Laurenceb_> load multiple registers is cool to 2012-03-06T00:01:15 <+dekar> also thumb2 finally has division 2012-03-06T00:01:17 < Laurenceb_> speeds up load a lot 2012-03-06T00:01:27 <+dekar> it's really comfy to write 2012-03-06T00:05:08 <+dekar> wow I like my new toolchain, I compiled the latest Linaro GCC with the latest newlib and set a bunch of size reduction flags 2012-03-06T00:05:22 <+dekar> now using printf adds "only" 15k 2012-03-06T00:05:37 < Laurenceb_> i use a custom printf 2012-03-06T00:05:49 <+dekar> it used to add over 40k using codesourcery 2012-03-06T00:06:28 <+dekar> I guess you could do that, but I plan on porting LUA or some similar scripting language, don't feel like patching all the printf uses 2012-03-06T00:07:40 <+dekar> the latest newlib also made malloc more efficient, changing the smaller allocation size to 128bytes 2012-03-06T00:07:49 <+dekar> *smallest 2012-03-06T00:08:02 <+Steffanx> Isn't lua already ported? 2012-03-06T00:08:31 <+dekar> there is eLua, but it looked weird, I'll probably look into it when I actually port it 2012-03-06T00:08:33 <+Steffanx> Just run the tiny c compiler dekar :) 2012-03-06T00:08:43 <+dekar> they made a small LUI-OS 2012-03-06T00:08:46 <+dekar> *LUA 2012-03-06T00:08:59 <+dekar> it has some rs232 console 2012-03-06T00:09:16 <+dekar> allowing you to write programs on your stm32 2012-03-06T00:09:47 <+dekar> they also wrote libs to control most of the hardware from LUA 2012-03-06T00:10:10 <+dekar> not bad I guess, but I want less and I probably want it smaller 2012-03-06T00:10:30 <+Steffanx> I just wonder what the point of running lua on an stm32 is .. 2012-03-06T00:10:38 <+Steffanx> Fast prototopying? 2012-03-06T00:10:39 <+dekar> I don't see any need to compile the LUA to byte code on the stm32 for example 2012-03-06T00:10:45 <+Steffanx> prototyping 2012-03-06T00:10:49 <+dekar> yeah 2012-03-06T00:11:14 <+dekar> well maybe even more, allowing our application to dynamically run code 2012-03-06T00:11:50 <+dekar> we used to have some XML/JS thing (proprietary) that ran in our desktop application 2012-03-06T00:12:02 <+dekar> and I was asked to make some replacement running inside the actual hw 2012-03-06T00:15:06 <+Steffanx> goond ight 2012-03-06T00:15:25 <+dekar> night 2012-03-06T00:19:54 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2012-03-06T01:57:43 -!- Laurenceb_ [~Laurence@host86-129-129-110.range86-129.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-03-06T04:18:09 -!- peabody124 [~peabody12@128.249.96.21] has quit [Read error: Operation timed out] 2012-03-06T04:46:56 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2012-03-06T04:50:11 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-06T05:15:19 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-06T05:18:10 -!- zippe [~Adium@173.11.99.161] has quit [Client Quit] 2012-03-06T05:20:21 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-06T05:29:29 -!- zippe [~Adium@173.11.99.161] has quit [Ping timeout: 244 seconds] 2012-03-06T05:46:58 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-06T05:53:56 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-06T06:01:33 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-06T06:03:54 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 245 seconds] 2012-03-06T07:19:23 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has left ##stm32 [] 2012-03-06T07:26:41 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-06T07:30:30 -!- Tekno [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer] 2012-03-06T07:30:59 -!- Tekno [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-03-06T08:14:29 < jpa-> dekar: i just use tinyprintf and don't have to patch anything.. it adds only 1kB 2012-03-06T08:15:18 < jpa-> dekar: regarding scripting languages, I've been trying out Pawn and it is quite nice and small (less than 10kB) 2012-03-06T08:15:43 < jpa-> but obviously not as flexible as lua 2012-03-06T08:15:51 < jpa-> no GC etc. 2012-03-06T09:11:39 -!- dekar [~dekar@2.208.219.60] has quit [Quit: This computer has gone to sleep] 2012-03-06T10:10:35 -!- dekar_ [~dekar@dslb-088-069-139-237.pools.arcor-ip.net] has joined ##stm32 2012-03-06T10:10:38 -!- mode/##stm32 [+v dekar_] by ChanServ 2012-03-06T10:21:14 -!- dekar_ [~dekar@dslb-088-069-139-237.pools.arcor-ip.net] has quit [Read error: Connection reset by peer] 2012-03-06T10:22:03 -!- dekar_ [~dekar@dslb-088-069-139-237.pools.arcor-ip.net] has joined ##stm32 2012-03-06T10:22:06 -!- mode/##stm32 [+v dekar_] by ChanServ 2012-03-06T10:47:41 -!- Laurenceb_ [~Laurence@host86-129-129-110.range86-129.btcentralplus.com] has joined ##stm32 2012-03-06T11:03:04 -!- Laurenceb_ [~Laurence@host86-129-129-110.range86-129.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-03-06T11:05:17 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124] 2012-03-06T12:31:45 < Laurenceb> i have a printf function on my github 2012-03-06T12:32:07 < jpa-> is it a good one and with a liberal license? 2012-03-06T12:32:37 < jpa-> i might want to replace the gpl'd tinyprintf with that.. if i ever bother to make something of a representable package out of baselibc 2012-03-06T12:35:51 < Laurenceb> its from pascal stangs avrlib 2012-03-06T12:36:04 < Laurenceb> ive fixed it a bit but its still a mess 2012-03-06T12:36:37 < jpa-> ah apparently gpl also 2012-03-06T12:43:58 < Laurenceb> i dont think it all works :P 2012-03-06T12:44:14 < Laurenceb> his code was really messy - think it was half finished 2012-03-06T12:45:06 < jpa-> probably 2012-03-06T12:45:39 < jpa-> https://github.com/cjlano/tinyprintf this one is quite clean 2012-03-06T12:53:27 < Laurenceb> nice 2012-03-06T12:53:31 < Laurenceb> but no float support 2012-03-06T12:54:28 < jpa-> true, it's only a plus in my books :) 2012-03-06T12:55:31 < zyp> bloat support, amirite 2012-03-06T12:56:11 < Laurenceb> heh 2012-03-06T12:56:12 < BrainDamage> make it optional with ifdefs 2012-03-06T12:56:31 < BrainDamage> then you can decide if you really need that 20kB extra 2012-03-06T12:57:18 < Laurenceb> lulwut 2012-03-06T12:57:24 < Laurenceb> make that 200bytes 2012-03-06T12:57:29 < jpa-> i think many people would be happy with 0.001234 which is quite easy to do.. having automatic conversion to 1.2e-3 adds bloat :) 2012-03-06T12:57:35 < BrainDamage> I'm joking :p 2012-03-06T12:58:11 < jpa-> but just bringing in software float division and integer conversion adds easily 2-5kB, so it should definitely have ifdefs 2012-03-06T13:20:34 -!- dekar_ [~dekar@dslb-088-069-139-237.pools.arcor-ip.net] has quit [Ping timeout: 245 seconds] 2012-03-06T13:42:58 < Thorn> *(*((char **)p))++ = c; 2012-03-06T13:47:52 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 265 seconds] 2012-03-06T14:20:57 -!- Netsplit *.net <-> *.split quits: mansfeld, zlog 2012-03-06T14:23:56 -!- Netsplit over, joins: zlog, mansfeld 2012-03-06T14:38:22 < Laurenceb> wut 2012-03-06T15:18:00 < jaeckel> Thorn++ 2012-03-06T15:18:02 < jaeckel> :D 2012-03-06T15:18:41 < jaeckel> awesome putcp() function 2012-03-06T16:03:00 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-06T16:12:02 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-03-06T16:15:43 -!- Tekno [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 276 seconds] 2012-03-06T16:57:55 -!- dekar_ [~dekar@dslb-088-069-139-237.pools.arcor-ip.net] has joined ##stm32 2012-03-06T16:57:57 -!- mode/##stm32 [+v dekar_] by ChanServ 2012-03-06T17:10:16 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-06T17:16:16 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2012-03-06T18:02:35 -!- dekar_ [~dekar@dslb-088-069-139-237.pools.arcor-ip.net] has quit [Ping timeout: 265 seconds] 2012-03-06T18:52:33 -!- dekar_ [~dekar@2.208.1.112] has joined ##stm32 2012-03-06T18:52:42 -!- mode/##stm32 [+v dekar_] by ChanServ 2012-03-06T19:13:26 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-06T19:13:29 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-06T19:21:54 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124] 2012-03-06T20:01:51 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-06T20:10:53 -!- peabody124 [~peabody12@128.249.96.21] has quit [Remote host closed the connection] 2012-03-06T20:12:40 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-06T20:58:14 -!- dekar_ [~dekar@2.208.1.112] has quit [Quit: Leaving] 2012-03-06T21:42:14 -!- Laurenceb_ [~Laurence@host86-140-224-216.range86-140.btcentralplus.com] has joined ##stm32 2012-03-06T21:42:30 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving] 2012-03-06T21:53:52 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-06T21:53:55 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-06T22:11:17 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-06T22:13:39 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-06T23:14:17 -!- tunilame [~tunilame@197.2.36.33] has joined ##stm32 2012-03-06T23:14:36 -!- tunilame [~tunilame@197.2.36.33] has left ##stm32 [] 2012-03-06T23:44:27 -!- tunilame [~tunilame@197.2.36.33] has joined ##stm32 2012-03-06T23:44:37 -!- tunilame [~tunilame@197.2.36.33] has left ##stm32 [] 2012-03-06T23:52:05 -!- tunilame [~tunilame@197.2.36.33] has joined ##stm32 2012-03-06T23:52:09 < tunilame> Hello 2012-03-06T23:55:10 -!- tunilame [~tunilame@197.2.36.33] has left ##stm32 [] 2012-03-06T23:57:07 -!- tunilame_ [~tunilame@197.2.36.33] has joined ##stm32 2012-03-06T23:57:34 -!- tunilame [~tunilame@197.2.36.33] has joined ##stm32 2012-03-06T23:57:40 -!- tunilame [~tunilame@197.2.36.33] has left ##stm32 [] --- Day changed Wed Mar 07 2012 2012-03-07T00:02:48 -!- tunilame_ [~tunilame@197.2.36.33] has quit [Ping timeout: 244 seconds] 2012-03-07T00:19:19 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 276 seconds] 2012-03-07T00:33:39 -!- zippe [~Adium@173.11.99.161] has quit [Read error: Connection reset by peer] 2012-03-07T00:33:51 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-07T01:19:07 -!- Laurenceb_ [~Laurence@host86-140-224-216.range86-140.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-03-07T01:27:46 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-07T01:31:48 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 272 seconds] 2012-03-07T02:16:13 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 244 seconds] 2012-03-07T02:18:03 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-07T02:19:06 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-07T02:20:59 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [Client Quit] 2012-03-07T03:36:31 -!- peabody124_ [~peabody12@128.249.96.123] has joined ##stm32 2012-03-07T03:37:54 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-07T03:39:06 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 272 seconds] 2012-03-07T03:39:06 -!- peabody124_ is now known as peabody124 2012-03-07T03:41:09 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 255 seconds] 2012-03-07T03:41:59 -!- Tom_L is now known as Tom_itx 2012-03-07T04:06:49 -!- UnaClocker [~unaclocke@24-113-85-150.wavecable.com] has joined ##stm32 2012-03-07T04:25:26 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has quit [Remote host closed the connection] 2012-03-07T04:25:28 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-07T04:27:29 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-07T04:27:42 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-07T05:14:25 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-07T05:28:13 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-03-07T05:52:32 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-07T06:04:38 -!- UnaClocker [~unaclocke@24-113-85-150.wavecable.com] has quit [Quit: Leaving...] 2012-03-07T08:18:33 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-07T08:20:38 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Ping timeout: 240 seconds] 2012-03-07T08:27:32 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: ureif] 2012-03-07T08:29:15 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-07T08:35:50 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-07T09:04:02 -!- NonaSuomy is now known as TeknoJuce 2012-03-07T10:19:48 -!- Laurenceb_ [~Laurence@host86-140-224-216.range86-140.btcentralplus.com] has joined ##stm32 2012-03-07T11:04:07 -!- Laurenceb_ [~Laurence@host86-140-224-216.range86-140.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-03-07T12:49:34 < Thorn> http://www.slideshare.net/olvemaudal/deep-c 2012-03-07T14:55:15 -!- ureif [~eruif@unaffiliated/eruif] has quit [Read error: Connection reset by peer] 2012-03-07T15:11:07 -!- wattrod [wattrod@rrcs-67-78-118-6.sw.biz.rr.com] has quit [Ping timeout: 276 seconds] 2012-03-07T15:47:53 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-07T16:00:11 < Laurenceb> nice link 2012-03-07T16:03:35 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-07T16:19:43 < zyp> oh, nice 2012-03-07T16:20:41 < zyp> I take great pride in my ability to understand what the code I write will be compiled to 2012-03-07T16:21:42 < zyp> some of the exercises in that actually reminds me of the exam in a C++ course I had in uni 2012-03-07T16:22:46 < zyp> was a code snippet with some undefined but valid behavior, multiple choice question, correct answer was «the code will compile and run without error» (but the printed value would just be garbage) 2012-03-07T16:23:17 < zyp> lecturer asked me afterwards if I thought it was a trick question, apparently I was the only one who got it right 2012-03-07T16:27:52 < Thorn> and of course http://blog.llvm.org/2011/05/what-every-c-programmer-should-know.html http://blog.llvm.org/2011/05/what-every-c-programmer-should-know_14.html http://blog.llvm.org/2011/05/what-every-c-programmer-should-know_21.html 2012-03-07T16:29:26 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-07T16:29:36 < Thorn> and http://stackoverflow.com/questions/2958633/gcc-strict-aliasing-and-horror-stories too 2012-03-07T16:31:09 < Thorn> that should be enough to start looking for an Ada compiler lol 2012-03-07T17:14:32 < zyp> because ada doesn't have any undefined behavior? :p 2012-03-07T17:15:06 -!- corecode [~2@0x2c.org] has joined ##stm32 2012-03-07T17:15:11 < corecode> o hi 2012-03-07T17:15:33 < corecode> so, what values for the USB series resistors do I need? 2012-03-07T17:15:57 < zyp> 22 cm 2012-03-07T17:16:24 < corecode> cm? 2012-03-07T17:16:31 < corecode> ohm, i guess? 2012-03-07T17:16:33 < zyp> oh! not c 2012-03-07T17:17:20 < zyp> yes, ohm, I'm just being silly 2012-03-07T17:17:30 < corecode> where is that documented? 2012-03-07T17:17:39 < corecode> certainly not on the datasheet :/ 2012-03-07T17:17:56 < corecode> and the stm32L-discovery schematic has 10 ohm resistors there 2012-03-07T17:19:27 < Thorn> stf202 chip also has 22R series resistors in it 2012-03-07T17:19:31 < Thorn> why are they needed? 2012-03-07T17:19:44 < corecode> in it? 2012-03-07T17:19:57 < corecode> usb specifies some impedance 2012-03-07T17:20:30 < zyp> usb specifies a recommended 44 ohm termination, and half of that is 22 2012-03-07T17:20:56 < Thorn> isn't termination supposed to be in parallel? 2012-03-07T17:21:19 < Laurenceb> hmm good point 2012-03-07T17:21:46 < Laurenceb> well not for driving the lines 2012-03-07T17:22:34 < zyp> stm32f4discovery has 22ohm resistors, so that's what I got for my F4 board 2012-03-07T17:23:18 < zyp> it's what I've used in other usb projects too, so I didn't really check in depth 2012-03-07T17:24:38 < zyp> reference manual says something about «no external components» but I think that refers more to the pullups to indicate speed than the series resistors 2012-03-07T17:24:58 < corecode> yea 2012-03-07T17:25:05 < zyp> and I figure if no resistors were required, they would probably not put any on the discovery board 2012-03-07T17:25:13 < corecode> indeed 2012-03-07T17:25:23 < corecode> however, the schematic for the discovery shows 10R 2012-03-07T17:25:24 < corecode> not 22R 2012-03-07T17:25:35 < zyp> says 22 on the f4discovery schematic. 2012-03-07T17:25:43 < zyp> I just checked 2012-03-07T17:26:49 < corecode> http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_DIAGRAM/SCHEMATICPACK/stm32l-discovery_sch.pdf 2012-03-07T17:26:53 < corecode> that one has 10R 2012-03-07T17:27:12 < zyp> then F1 is probably different 2012-03-07T17:27:28 < zyp> oh, I see that the F1 for swd on the f4discovery board have 0R in series 2012-03-07T17:27:39 < corecode> haha 2012-03-07T17:27:57 < corecode> so stm has no coherent clue about their own USB? 2012-03-07T17:28:17 < zyp> F1 and F2/F4 use different usb peripherals 2012-03-07T17:28:27 < corecode> that's true 2012-03-07T17:28:31 < corecode> i'm using a L1 2012-03-07T17:28:47 < zyp> F1 requires external pullups, F4 has them internally 2012-03-07T17:28:54 < corecode> huh? 2012-03-07T17:28:58 < corecode> really? 2012-03-07T17:29:04 < corecode> L1 doesn't 2012-03-07T17:29:12 < zyp> 1.5k on DP to mark it as a FS device 2012-03-07T17:29:14 < corecode> well, officially the internal pullup is broken 2012-03-07T17:38:05 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-07T17:39:57 < corecode> well this is frustrating 2012-03-07T17:40:05 < corecode> not a single word about how to wire up the usb port 2012-03-07T17:46:02 < Thorn> my Chinese and olimex boards (f103 and f107) all have 22R. stm3210-eval has 0R (f103), stm3210c-eval has 22R (f107) 2012-03-07T17:46:17 < corecode> yea 2012-03-07T17:46:21 < corecode> but i'm using a L1 2012-03-07T17:46:34 < corecode> which seems to have a different usb mac 2012-03-07T17:46:36 < Thorn> never heard of it ;P 2012-03-07T17:47:20 < corecode> STM32L151 2012-03-07T17:47:42 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-07T17:58:45 < emeb> Heh. So it turns out that setting GPIO output mode is important. '00' doesn't work. :) 2012-03-07T18:10:41 < dongs> corecode: then stm32ldiscovery doesnt have usb? 2012-03-07T18:15:34 < corecode> no 2012-03-07T18:15:38 < corecode> oddly enough 2012-03-07T19:04:42 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-07T19:04:44 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-07T19:14:31 -!- zippe [~Adium@173.11.99.161] has quit [Quit: Leaving.] 2012-03-07T19:32:09 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-07T20:51:48 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-07T20:55:00 -!- wattrod [wattrod@rrcs-67-78-118-6.sw.biz.rr.com] has joined ##stm32 2012-03-07T22:06:52 -!- _Shurik_ [~akronberg@64.31.191.194] has joined ##stm32 2012-03-07T22:06:59 < _Shurik_> Hola 2012-03-07T22:07:00 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-07T22:09:26 < _Shurik_> Anyone order Rasberry Pi yet? 2012-03-07T22:10:13 -!- Laurenceb_ [~Laurence@host86-171-4-28.range86-171.btcentralplus.com] has joined ##stm32 2012-03-07T22:15:25 <+Steffanx> Nope 2012-03-07T22:17:30 <+Steffanx> You _Shurik_ ? 2012-03-07T22:20:21 < _Shurik_> Steffanx: no, my friend did. Waiting for his success story 2012-03-07T22:28:22 -!- _Shurik_ [~akronberg@64.31.191.194] has quit [Quit: Leaving.] 2012-03-07T23:52:31 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-03-07T23:52:38 < TitanMKD> hello --- Day changed Thu Mar 08 2012 2012-03-08T00:50:10 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-08T00:52:36 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 252 seconds] 2012-03-08T01:08:34 -!- Laurenceb_ [~Laurence@host86-171-4-28.range86-171.btcentralplus.com] has quit [Ping timeout: 272 seconds] 2012-03-08T01:16:28 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 246 seconds] 2012-03-08T02:27:00 -!- peabody124_ [~peabody12@128.249.96.123] has joined ##stm32 2012-03-08T02:30:22 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 276 seconds] 2012-03-08T02:30:22 -!- peabody124_ is now known as peabody124 2012-03-08T03:42:46 < emeb> w00t - dual I2S ports running buffered DMA @ ~48k from an STM32F105. 4 channel audio here we come... 2012-03-08T03:45:22 < Randomskk> sweet :o what's your source/sink? 2012-03-08T04:05:03 < emeb> Randomskk: This is a synthesizer project - audio is generated in the ARM and goes out to a couple stereo DACs (cs4344). 2012-03-08T04:08:18 < Randomskk> cool 2012-03-08T04:10:53 < emeb> hope so :) 2012-03-08T04:27:15 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-08T05:00:37 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-03-08T05:02:49 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-08T05:16:19 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-08T05:30:11 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-03-08T05:40:59 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-08T06:26:07 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 244 seconds] 2012-03-08T06:34:19 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-08T06:36:20 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-08T07:11:32 -!- flyback-- [~flyback@c-98-219-134-156.hsd1.pa.comcast.net] has joined ##stm32 2012-03-08T09:05:12 -!- zippe [~Adium@173.11.99.161] has quit [Read error: Connection reset by peer] 2012-03-08T09:05:26 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-08T10:04:23 -!- GeorgeJ [~GeorgeJ@unaffiliated/georgej] has left ##stm32 ["Toodles!"] 2012-03-08T11:26:35 -!- Laurenceb_ [~Laurence@host86-171-4-28.range86-171.btcentralplus.com] has joined ##stm32 2012-03-08T12:19:16 -!- Laurenceb_ [~Laurence@host86-171-4-28.range86-171.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-03-08T13:30:14 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-08T13:58:00 -!- ureif_ [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-08T14:00:01 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 276 seconds] 2012-03-08T14:15:16 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-08T14:15:19 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-08T15:01:09 < Tectu> what is 'better'? TrueStudio from Atollic or KEIL? 2012-03-08T15:26:06 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-08T15:26:16 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has quit [Ping timeout: 246 seconds] 2012-03-08T15:26:52 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-08T15:27:11 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 244 seconds] 2012-03-08T15:45:58 -!- ureif_ [~eruif@unaffiliated/eruif] has quit [Ping timeout: 276 seconds] 2012-03-08T16:08:13 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-08T16:16:01 -!- elektrinis [~circuit@82-135-241-134.static.zebra.lt] has joined ##stm32 2012-03-08T16:16:02 < elektrinis> hi 2012-03-08T16:16:15 < elektrinis> anyone working on stm32 and eclipse? 2012-03-08T16:16:33 < elektrinis> I have this discovery board and would like to start blinking leds 2012-03-08T16:16:55 < Tectu> elektrinis, do you understand german? 2012-03-08T16:16:59 < BrainDamage> linux or windows? 2012-03-08T16:17:12 < BrainDamage> on linux: https://github.com/karlp/stlink 2012-03-08T16:17:12 < elektrinis> windows 2012-03-08T16:17:14 < elektrinis> no gernam 2012-03-08T16:17:19 < elektrinis> *german 2012-03-08T16:17:24 < BrainDamage> ok, on windows: grab st-link tool from st 2012-03-08T16:17:42 < elektrinis> have it. 2012-03-08T16:17:51 < elektrinis> v2 2012-03-08T16:18:32 < BrainDamage> http://www.stf12.org/developers/ODeV.html this might help you in setting up eclipse, I didn't try it personally tough 2012-03-08T16:18:56 < BrainDamage> there's a difference tough: you'll use st-link tool instead of openocd 2012-03-08T16:19:40 < elektrinis> I see 2012-03-08T16:20:23 < BrainDamage> future versions of openocd will be able to support the hardware st-link, so you'll be able to use openocd if you wish, but atm the support is experimental 2012-03-08T16:29:21 < elektrinis> m, I'm a bit lost here 2012-03-08T16:29:23 < elektrinis> http://www.st.com/internet/evalboard/product/250863.jsp#SOFTWARE_AND_DEVELOPMENT_TOOLS 2012-03-08T16:29:42 < elektrinis> can't find any kind of software 2012-03-08T16:30:55 <+Steffanx> https://sites.google.com/site/stm32discovery/open-source-development-with-the-stm32-discovery/setting-up-eclipse-for-stm32-discovery-development .. that's for windows 2012-03-08T16:32:41 < BrainDamage> looks like st's site is butched somehow 2012-03-08T16:32:48 < BrainDamage> I cannot switch back to english :/ 2012-03-08T16:32:53 < BrainDamage> and stlink tool disappeared? 2012-03-08T16:33:31 < BrainDamage> the st-link software should be available under design support 2012-03-08T17:06:57 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Quit: Leaving.] 2012-03-08T18:03:49 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-08T18:45:01 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-03-08T18:45:18 < ratatata> nu 2012-03-08T18:59:58 <+Steffanx> nu 2012-03-08T19:00:10 < dongs> fuck, fuckback is back. 2012-03-08T19:01:08 <+Steffanx> When do you have time dongs ? 2012-03-08T19:02:09 <+Steffanx> http://www.urbandictionary.com/define.php?term=flyback 2012-03-08T19:02:10 <+Steffanx> That 2012-03-08T19:02:33 <+Steffanx> Yes, the dictionary is never wrong 2012-03-08T19:03:47 <+Steffanx> Pretty funny to see you didn't change that much in 9 years 2012-03-08T19:04:09 <+Steffanx> Yes 2012-03-08T19:04:16 <+Steffanx> That word was added in 2003 2012-03-08T19:04:21 <+Steffanx> *description 2012-03-08T19:04:49 -!- mode/##stm32 [+o Steffanx] by ChanServ 2012-03-08T19:04:51 * Steffanx has powa :P 2012-03-08T19:05:00 -!- mode/##stm32 [-o Steffanx] by ChanServ 2012-03-08T19:05:04 <+Steffanx> me neither 2012-03-08T19:11:03 <+Steffanx> http://www.raspberrypi.org/archives/781 .. oops 2012-03-08T19:11:21 <+Steffanx> ty china 2012-03-08T19:14:35 <+Steffanx> I wonder if they'll do it by hand 2012-03-08T19:14:49 <+Steffanx> Replacing the jack i mean 2012-03-08T19:21:10 -!- monode [~izua@188.26.167.52] has joined ##stm32 2012-03-08T19:22:55 < dongs> holy shit i lol'd @ <+Steffanx> http://www.urbandictionary.com/define.php?term=flyback 2012-03-08T19:23:49 < dongs> its 100% true though. 2012-03-08T19:24:02 <+Steffanx> Too bad your ip changed flyback 2012-03-08T19:24:29 < dongs> cuz they could have just used the entry from there to keep you preemptively banned from all channels. 2012-03-08T19:25:11 <+Steffanx> :P 2012-03-08T19:25:27 < dongs> amirite? k bedtime 2012-03-08T19:25:49 <+Steffanx> dongs is from the wrong side of the globe? 2012-03-08T19:25:57 <+Steffanx> Ah, yes 2012-03-08T19:26:07 < dongs> 7:26pm Thursday (IST) - Time in Israel 2012-03-08T19:26:09 < dongs> bbl 2012-03-08T20:01:16 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-03-08T20:01:30 < TitanMKD> hi 2012-03-08T20:06:37 -!- monode [~izua@188.26.167.52] has quit [Quit: Obai] 2012-03-08T20:34:10 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-08T21:46:19 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-08T21:52:03 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-08T22:10:41 < Thorn> http://dangerousprototypes.com/2011/12/13/masochists-video-card-on-a-de0-nano-fpga-board/ 2012-03-08T22:17:51 <+Steffanx> uh? 2012-03-08T22:18:54 < Thorn> well the original is certainly more exciting http://dangerousprototypes.com/2011/10/10/7400-competition-entry-masochists-video-card/ 2012-03-08T22:21:46 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-08T23:03:14 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [] 2012-03-08T23:13:37 -!- Laurenceb_ [~Laurence@host86-167-154-104.range86-167.btcentralplus.com] has joined ##stm32 2012-03-08T23:28:59 < zyp> a constant color is not that hard 2012-03-08T23:29:50 < zyp> my first fpga project was a character generator --- Day changed Fri Mar 09 2012 2012-03-09T00:15:00 -!- peabody124 [~peabody12@128.249.96.123] has quit [Remote host closed the connection] 2012-03-09T00:15:15 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-09T00:30:50 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 252 seconds] 2012-03-09T01:11:32 -!- Elledan [~jigoku_ai@s529c4932.adsl.wanadoo.nl] has joined ##stm32 2012-03-09T01:15:08 -!- hackkitten [~jigoku_ai@s529c4932.adsl.wanadoo.nl] has quit [Ping timeout: 240 seconds] 2012-03-09T01:28:55 -!- Laurenceb_ [~Laurence@host86-167-154-104.range86-167.btcentralplus.com] has quit [Ping timeout: 260 seconds] 2012-03-09T01:30:03 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 245 seconds] 2012-03-09T01:33:00 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Ping timeout: 260 seconds] 2012-03-09T01:59:10 -!- Elledan is now known as hackkitten 2012-03-09T03:31:33 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 248 seconds] 2012-03-09T03:33:00 -!- Tom_L is now known as Tom_itx 2012-03-09T03:39:49 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-09T03:42:46 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-09T04:22:23 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-09T04:34:42 -!- ureif_ [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-09T04:35:03 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 245 seconds] 2012-03-09T04:40:28 -!- zippe1 [~Adium@173.11.99.161] has joined ##stm32 2012-03-09T04:42:39 -!- zippe [~Adium@173.11.99.161] has quit [Ping timeout: 245 seconds] 2012-03-09T04:54:22 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-09T04:57:59 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-09T06:36:57 -!- ureif_ [~eruif@unaffiliated/eruif] has left ##stm32 [] 2012-03-09T07:01:25 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-09T07:53:45 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-03-09T08:23:22 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has quit [Ping timeout: 246 seconds] 2012-03-09T08:25:34 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-09T09:03:26 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 252 seconds] 2012-03-09T09:10:39 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-09T09:18:48 < Tectu> mustard sardines? wtf? 2012-03-09T09:22:13 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 276 seconds] 2012-03-09T09:29:42 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-09T10:12:55 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Ping timeout: 246 seconds] 2012-03-09T10:24:26 -!- Laurenceb_ [~Laurence@host86-167-154-104.range86-167.btcentralplus.com] has joined ##stm32 2012-03-09T11:02:16 -!- Laurenceb_ [~Laurence@host86-167-154-104.range86-167.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-03-09T11:41:08 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-09T11:41:11 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-09T14:21:09 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-09T14:50:46 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-03-09T15:07:49 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 255 seconds] 2012-03-09T15:08:54 -!- TitanMKD [~Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-03-09T16:09:17 -!- ureif_ [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-09T16:11:40 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 246 seconds] 2012-03-09T16:42:37 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-09T17:36:37 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-09T18:22:48 -!- dekar [~dekar@2.208.1.112] has joined ##stm32 2012-03-09T18:22:49 -!- mode/##stm32 [+v dekar] by ChanServ 2012-03-09T18:24:51 <+dekar> Steffanx, I compiled nuttx for my futurlec board :) 2012-03-09T18:24:52 <+dekar> http://pastebin.com/gXTSMMfS 2012-03-09T18:25:21 <+dekar> it's a small posix OS 2012-03-09T18:30:14 <+dekar> it has a serious ram problem though, I can call "sleep 100 &" twice till my memory is gone 2012-03-09T18:30:39 <+dekar> but well I can then "kill -9" it to regain memory :D 2012-03-09T18:51:37 <+Steffanx> That's a shell from nuttx dekar ? 2012-03-09T19:15:06 <+dekar> Steffanx, yeah 2012-03-09T19:19:12 <+dekar> the stm32 on the futurlec board only has 20k of ram though 2012-03-09T19:19:25 <+dekar> I guess it's more useful on a bigger one 2012-03-09T19:20:20 <+dekar> it allows dynamic linking against the nuttx libc and you can run applications from mounts (sd card) 2012-03-09T19:27:51 <+Steffanx> nice 2012-03-09T19:28:15 <+Steffanx> Something like the 192k of the stm32f4 would be better 2012-03-09T19:29:30 <+Steffanx> it only runs applications when it can run from RAM i guess dekar ? 2012-03-09T19:29:37 <+Steffanx> *runs from sd 2012-03-09T19:30:50 <+dekar> no, there are several ways to do that, you can also link them into the kernel or place them into some readonly FS you flash to the NOR 2012-03-09T19:31:25 <+Steffanx> Yes, but then .. 2012-03-09T19:33:40 <+dekar> I don't understand what you mean actually. Do you mean that it has to copy applications you run from SD to ram? that's the case yeah 2012-03-09T19:34:13 <+Steffanx> I mean.. an AVR can load the application, but can't run it from an SD card 2012-03-09T19:35:26 -!- dekar_ [~dekar@46.115.18.85] has joined ##stm32 2012-03-09T19:35:26 -!- mode/##stm32 [+v dekar_] by ChanServ 2012-03-09T19:36:41 <+dekar_> well I haven't used the SD card at all so far, but I'd guess it just copies the application to ram before running it 2012-03-09T19:37:27 <+Steffanx> if an AVR could run it form RAM.. :) 2012-03-09T19:38:37 <+dekar_> never used an AVR before, they execute code in ram? 2012-03-09T19:38:49 <+dekar_> sounds like an annoying architecture 2012-03-09T19:38:59 -!- dekar [~dekar@2.208.1.112] has quit [Ping timeout: 260 seconds] 2012-03-09T19:40:14 <+dekar_> *they can't execute code from ram? 2012-03-09T19:41:23 <+dekar_> just googled it, I am glad I never touched AVRs :P 2012-03-09T19:41:38 <+Steffanx> No, who needs that anyway? 2012-03-09T19:41:41 <+dekar_> arm all the way, and mips maybe 2012-03-09T19:42:02 <+Steffanx> AVR's are nice i mean 2012-03-09T19:42:14 <+dekar_> you can't implement epic polymorphic code without executing from ram 2012-03-09T19:42:17 <+Steffanx> Very simple to deal with 2012-03-09T19:42:41 <+Steffanx> *easy 2012-03-09T19:43:53 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-09T19:44:32 < Thorn> I'll need to do an stm32f4 + spartan-3e board and call it "an ARM and a leg" 2012-03-09T19:44:51 <+dekar_> :D 2012-03-09T19:45:45 < Thorn> the only thing I've no idea about is what it's going to do 2012-03-09T19:45:56 < jpa-> cost 2012-03-09T19:45:56 < Thorn> don't want to do a generic dev board 2012-03-09T19:46:38 <+Steffanx> Some real dsp/computer vision Thorn :) 2012-03-09T19:46:40 <+Steffanx> That would be nice 2012-03-09T19:46:43 < Thorn> maybe some audio dsp stuff 2012-03-09T19:47:24 < Thorn> I've read half of the DSP Guide so I won't have any problem implementing that lol 2012-03-09T19:47:48 <+Steffanx> lol 2012-03-09T19:48:11 <+Steffanx> I did that too, but you need some more knowledge about math than i have :P 2012-03-09T19:50:42 < Thorn> I wonder if I'll be able to squeeze two large chips like that into my favorite size, 100x100mm 2012-03-09T19:50:56 <+Steffanx> ofcourse 2012-03-09T19:50:57 < Thorn> with 3 voltages for the spartan 2012-03-09T19:51:07 <+Steffanx> 4 layers :0 2012-03-09T19:51:09 < jpa-> hm, dsp guide does look interesting 2012-03-09T19:51:10 <+Steffanx> :) 2012-03-09T20:02:29 <+Steffanx> http://www.youtube.com/watch?v=FQMO6vjmkyI nice 2012-03-09T20:02:42 <+Steffanx> Not related to this channel 2012-03-09T20:02:46 <+Steffanx> AND sfw 2012-03-09T20:15:22 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-09T20:22:51 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-09T20:34:45 < emeb> Hey - question on stlink's flash utility... 2012-03-09T20:35:11 < emeb> been using it for dev on an STM32F105 part and it fails when the binary is > 10k or so. 2012-03-09T20:35:30 < emeb> any ideas what I'm doing wrong? 2012-03-09T20:35:54 < emeb> I'm using the karlp git version, as of a few days ago. 2012-03-09T21:08:08 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-09T21:08:09 -!- zippe1 [~Adium@173.11.99.161] has quit [Read error: Connection reset by peer] 2012-03-09T21:15:59 -!- Laurenceb_ [~Laurence@host86-167-154-104.range86-167.btcentralplus.com] has joined ##stm32 2012-03-09T21:21:36 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-03-09T21:26:58 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-09T21:52:14 < jpa-> emeb: hmm, i have flashed STM32F105 though gdb with ~36kB images and it has worked fine 2012-03-09T21:52:18 < jpa-> *through 2012-03-09T21:52:27 < jpa-> haven't tried the stand-alone flash utility 2012-03-09T21:52:44 < emeb> jpa-: OK, I'll see how it goes w/ gdb 2012-03-09T21:53:14 < TitanMKD> anyone know how to buy the STM32 Primer for STM32F4 ? 2012-03-09T21:53:20 < TitanMKD> it seems not available ... 2012-03-09T21:53:22 < emeb> I get the feeling that stlink-util gets a bit more love. 2012-03-09T21:55:05 <+Steffanx> uh TitanMKD ? 2012-03-09T21:57:05 <+Steffanx> Can't find much about it when i google on "stm32f4 primer" TitanMKD .. 2012-03-09T21:57:52 < TitanMKD> it's STM3240GPRIMER 2012-03-09T21:58:00 < TitanMKD> http://www.st.com/internet/evalboard/product/217696.jsp 2012-03-09T21:58:32 <+Steffanx> looks expensive 2012-03-09T21:58:37 -!- peabody124_ [~peabody12@128.249.96.123] has joined ##stm32 2012-03-09T21:58:40 < TitanMKD> it cost 139US$ 2012-03-09T21:58:55 <+Steffanx> oh not bad 2012-03-09T21:59:02 < TitanMKD> with LCD Touch Screen and tons of features for developer ... 2012-03-09T21:59:13 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 245 seconds] 2012-03-09T21:59:13 -!- peabody124_ is now known as peabody124 2012-03-09T22:00:09 <+Steffanx> It's probably too new 2012-03-09T22:02:22 < TitanMKD> yes 2012-03-09T22:47:09 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-09T23:00:04 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-03-09T23:11:24 < Laurenceb_> can anyone here test come code for me on stm32f103? 2012-03-09T23:12:16 < Laurenceb_> https://github.com/Laurenceb/STM32-Logger/blob/master/timer.c 2012-03-09T23:12:22 < Laurenceb_> line 101 2012-03-09T23:15:12 < Laurenceb_> i see weird glitches on the pwm when i turn that on 2012-03-09T23:15:31 < Laurenceb_> i cant work out whats happening cant catch it on the scope preperly 2012-03-09T23:16:02 < Laurenceb_> i think the pwm on period is unchanged, but sometimes theres larger off periods on the output 2012-03-09T23:16:28 < Laurenceb_> so sometimes the timer overflows or something... 2012-03-09T23:18:03 < Laurenceb_> hmm ok - i think whats happening is sometimes the timer doesnt overflow at the ARRL value, it continues to 2^16 2012-03-09T23:18:40 < Laurenceb_> but line 102 should guard against that surely?! 2012-03-09T23:21:41 -!- Rickta591 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-03-09T23:25:45 < Laurenceb_> do the counters actually count down? --- Day changed Sat Mar 10 2012 2012-03-10T00:13:24 -!- TitanMKD [~Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-03-10T00:22:10 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-10T00:37:26 -!- dekar__ [~dekar@46.115.21.190] has joined ##stm32 2012-03-10T00:37:43 -!- mode/##stm32 [+v dekar__] by ChanServ 2012-03-10T00:40:45 -!- dekar_ [~dekar@46.115.18.85] has quit [Ping timeout: 252 seconds] 2012-03-10T00:50:16 -!- Rickta591 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Quit: Leaving.] 2012-03-10T01:07:58 < Laurenceb_> anyone here? 2012-03-10T01:33:30 -!- peabody124 [~peabody12@128.249.96.123] has quit [Read error: Connection reset by peer] 2012-03-10T01:33:54 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-10T01:52:24 <+Steffanx> Echo! 2012-03-10T02:01:09 < emeb> so if anyone cares, here's the error from 'flash' when I try to program > 10kB: http://pastebin.ca/2126513 2012-03-10T02:08:22 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 248 seconds] 2012-03-10T02:11:34 -!- Laurenceb_ [~Laurence@host86-167-154-104.range86-167.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-03-10T02:13:03 < emeb> fwiw, loading flash via gdb + st-util does work. Interesting that it appears to chop the binary up into chunks of 2k 2012-03-10T02:18:50 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-03-10T02:34:30 < emeb> Interesting - it's not the fact that the binary is > 10k, it's that it has an odd # of bytes. 2012-03-10T02:52:17 < emeb> tacking on an odd number of dummy bytes fixes it. 2012-03-10T03:05:45 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-10T05:05:55 -!- zippe [~Adium@173.11.99.161] has quit [Read error: Connection reset by peer] 2012-03-10T05:06:38 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-10T05:43:07 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-03-10T06:08:27 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2012-03-10T06:31:31 -!- ureif__ [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-10T06:34:04 -!- ureif_ [~eruif@unaffiliated/eruif] has quit [Ping timeout: 246 seconds] 2012-03-10T06:52:20 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-10T07:00:23 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-10T08:01:33 < wattrod> anyone familiar with waking from sleep (stop mode) ? 2012-03-10T08:02:01 -!- wattrod [wattrod@rrcs-67-78-118-6.sw.biz.rr.com] has left ##stm32 [] 2012-03-10T08:02:17 -!- wattrod [wattrod@rrcs-67-78-118-6.sw.biz.rr.com] has joined ##stm32 2012-03-10T08:03:08 < wattrod> anyone familiar with waking from sleep (stop mode) ? Trying to figure out how to tell when the processor is up and running at full speed 2012-03-10T08:04:18 < wattrod> After waking, I start up the HSE, wait for it to finish, turn on the PLL, wait until it's ready, set the sysclock source to PLL, and wait until RCC_GetSYSCLKSource() returns 0x08 2012-03-10T08:05:24 < wattrod> even then, it's apparently a long way off from running at full speed .. I transmit from the USART even at 4800 baud, and the first 25 or so characters come out as garbage before it cleans up 2012-03-10T11:12:33 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 245 seconds] 2012-03-10T11:18:44 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-10T11:47:38 < dongs> bloggityblog 2012-03-10T11:53:39 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-10T11:53:42 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-10T14:37:25 -!- Laurenceb_ [~Laurence@host86-167-154-104.range86-167.btcentralplus.com] has joined ##stm32 2012-03-10T15:32:47 -!- sunilg [~chatzilla@59.97.195.61] has joined ##stm32 2012-03-10T15:40:53 -!- Netsplit *.net <-> *.split quits: BrainDamage, Tectu 2012-03-10T15:41:05 -!- Tectu_ [tectu@188.40.68.67] has joined ##stm32 2012-03-10T15:44:47 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32 2012-03-10T16:11:26 -!- ureif_ [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-10T16:13:19 -!- ureif__ [~eruif@unaffiliated/eruif] has quit [Ping timeout: 260 seconds] 2012-03-10T16:30:12 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-10T16:45:32 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-03-10T16:48:39 < ratatata> nu 2012-03-10T16:48:53 <+Steffanx> nu 2012-03-10T16:49:35 <+dekar__> nu 2012-03-10T16:51:53 < Randomskk> ν 2012-03-10T16:52:21 <+Steffanx> ^ 2012-03-10T16:55:50 -!- sunilg [~chatzilla@59.97.195.61] has quit [Ping timeout: 244 seconds] 2012-03-10T17:51:44 -!- sunilg [~chatzilla@59.97.195.61] has joined ##stm32 2012-03-10T17:56:00 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-10T18:35:31 -!- Guest47653 [~izua@188.26.167.52] has joined ##stm32 2012-03-10T18:37:13 -!- CheBuzz [~CheBuzz@76.164.192.124] has quit [Quit: Terminated with extreme prejudice - dircproxy 1.2.0] 2012-03-10T18:42:03 -!- ureif_ is now known as eruif 2012-03-10T18:42:27 -!- eruif [~eruif@unaffiliated/eruif] has left ##stm32 [] 2012-03-10T18:43:24 -!- CheBuzz [~CheBuzz@76.164.192.124] has joined ##stm32 2012-03-10T18:44:48 -!- CheBuzz [~CheBuzz@76.164.192.124] has quit [Client Quit] 2012-03-10T18:45:04 -!- CheBuzz [~CheBuzz@76.164.192.124] has joined ##stm32 2012-03-10T18:47:00 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-10T18:54:16 -!- sunilg [~chatzilla@59.97.195.61] has quit [Read error: Connection reset by peer] 2012-03-10T18:58:52 -!- sunilg [~chatzilla@59.97.195.226] has joined ##stm32 2012-03-10T18:59:26 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-10T19:02:35 -!- Tekno [~TeknoJuce@69.158.141.78] has joined ##stm32 2012-03-10T19:02:40 -!- Tekno [~TeknoJuce@69.158.141.78] has quit [Changing host] 2012-03-10T19:02:40 -!- Tekno [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-03-10T19:06:16 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 265 seconds] 2012-03-10T19:34:30 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124] 2012-03-10T19:37:29 -!- sunilg [~chatzilla@59.97.195.226] has quit [Ping timeout: 260 seconds] 2012-03-10T20:00:19 -!- sunilg [~chatzilla@59.97.195.226] has joined ##stm32 2012-03-10T20:05:28 < sunilg> is there any way of getting size of function which has generated fault in fault handler? 2012-03-10T20:06:00 < zyp> size? 2012-03-10T20:06:20 < zyp> how do you measure the size of a function? 2012-03-10T20:06:57 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-10T20:07:21 -!- convolution [convolutio@unaffiliated/convolution] has left ##stm32 [] 2012-03-10T20:08:37 < sunilg> zyp: how to get size of function ? 2012-03-10T20:08:51 < zyp> what are you asking about? 2012-03-10T20:10:15 < sunilg> zyp : I have sum functions which I want to load in RAM. For that I require their size? how can we get it? 2012-03-10T20:10:26 < sunilg> *some 2012-03-10T20:11:20 < zyp> what do you want to achieve by loading it in RAM? 2012-03-10T20:13:23 < sunilg> zyp: I want to load it and execute it in RAM rather than executing in flash.. I have done most of it. But I am facing problem in finding size of function at runtime. 2012-03-10T20:14:12 < zyp> right 2012-03-10T20:14:54 < zyp> first of all, is the code position independent? 2012-03-10T20:15:30 < zyp> secondly, there is no end marker of functions 2012-03-10T20:17:03 < sunilg> We can subtract next function's starting address and current functions starting address. 2012-03-10T20:17:25 < zyp> yes, if you know those 2012-03-10T20:17:32 < zyp> but at runtime you normally don't 2012-03-10T20:18:11 < sunilg> zyp: So, is there any work around like modifying linkerscript in some way? 2012-03-10T20:18:31 < zyp> well, why don't you put the function into ram in the first place? 2012-03-10T20:19:05 < zyp> compile the function for a specific section and add that section to the linker script telling the linker to put the function into ram 2012-03-10T20:20:00 < sunilg> zyp:Is there any way of telling linkerscript to put every function in differrent function? 2012-03-10T20:20:17 < sunilg> *in differrent section? 2012-03-10T20:20:28 < zyp> compiler does that with -ffunction-section 2012-03-10T20:21:28 < sunilg> zyp: sry, But how to use it. On googling I found zero results.. 2012-03-10T20:23:28 -!- peabody124 [~peabody12@128.249.96.123] has quit [Ping timeout: 255 seconds] 2012-03-10T20:23:44 < sunilg> zyp: What is name of the sections generated? 2012-03-10T20:23:56 < zyp> don't remember, read the documentation 2012-03-10T20:24:02 < jpa-> or use objdump -t 2012-03-10T20:24:14 < jpa-> or objdump -h 2012-03-10T20:24:31 < zyp> anyway, what do you want to achieve by having the function execute from ram? 2012-03-10T20:24:40 < jpa-> you could also use something like __attribute__((section(..)) 2012-03-10T20:26:35 < sunilg> Actually we are trying to load code which is bigger than RAM and execute it. 2012-03-10T20:26:52 < sunilg> in ram 2012-03-10T20:28:16 < Thorn> you're doing overlays? 2012-03-10T20:28:44 < sunilg> Thorn: yup 2012-03-10T20:29:18 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-10T20:30:28 < sunilg> zyp: I am getting error arm-none-eabi-ld: vector.o: relocation R_ARM_THM_MOVW_ABS_NC against `i' can not be used when making a shared object; recompile with -fPIC 2012-03-10T20:30:30 < sunilg> vector.o: could not read symbols: Bad value 2012-03-10T20:31:08 < jpa-> you should be using -fPIC anyway if you want position-independent code 2012-03-10T20:31:19 < jnosky> In asm, I usually get the code size by using a local lable at the start and end if the function then subtract the 2 2012-03-10T20:32:10 < jpa-> is running from RAM really that much faster that it is worth it? 2012-03-10T20:32:17 < Thorn> you can do that in the linker script 2012-03-10T20:32:42 < sunilg> Thorn: how? 2012-03-10T20:33:18 <+Steffanx> Magic 2012-03-10T20:34:09 < sunilg> jpa: It is faster. And there are some processors I think that don't support execute from flash. 2012-03-10T20:34:17 < jnosky> In C could you not subtract the following functions address from the function address to which you want the size? 2012-03-10T20:34:32 < jpa-> sunilg: what? cortex-m3 processors that don't execute from flash? o_O 2012-03-10T20:34:34 < Thorn> .section: { __section_start = .; *(.whatever*) __section_end = .; } 2012-03-10T20:34:42 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-03-10T20:35:00 < sunilg> jpa: I am not talking about cortex-m3.. 2012-03-10T20:35:05 < jpa-> sunilg: but even though it is faster, i would expect it to be more useful to have only a few of the most important functions in ram, instead of spending time to load them all the time 2012-03-10T20:35:39 < Thorn> yeah that doesn't sound very realtime friendly 2012-03-10T20:35:52 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: ureif] 2012-03-10T20:36:02 < jpa-> sunilg: well there are also processors that can't execute from ram and processors that don't support position-independent code 2012-03-10T20:36:18 < jpa-> so it's not going to be fully portable anyway :) 2012-03-10T20:36:21 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-03-10T20:36:58 <+Steffanx> Portable code is over rated jpa- 2012-03-10T20:37:22 < jnosky> ahh nmind, I see that was suggested already 2012-03-10T20:38:11 < sunilg> jnosky: how would I get following functions address at runtime? 2012-03-10T20:38:46 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-10T20:39:56 < Thorn> void (*main_addr)(int, char**) = main; 2012-03-10T20:40:21 < Thorn> ptrdiff_t diff = other_addr - main_addr; 2012-03-10T20:41:08 < sunilg> jpa: well I agree with you.. But still It will be usefull for executing code which is bigger than RAM 2012-03-10T20:41:18 < Thorn> void (*main_addr)(int, char**) = &main; that is 2012-03-10T20:41:38 < sunilg> Thorn: I am trying it out.. 2012-03-10T20:42:26 < jpa-> sunilg: but won't loading segments to RAM all the time kill any speed advantage you could have? 2012-03-10T20:42:40 < jpa-> or does your processor really not execute from flash? 2012-03-10T20:45:00 < sunilg> Thorn : wht is other pointer? 2012-03-10T20:45:42 < sunilg> jpa: They will be loaded only once.. Later they will be directly executed.. 2012-03-10T20:45:50 < Thorn> void (*other_addr)() = &function_that_goes_after_main; 2012-03-10T20:46:19 < jpa-> sunilg: if you only load once, they all fit in ram, and you can just put them in ram in the linker script 2012-03-10T20:47:22 < sunilg> jpa: We will then simply swap functions as needed.. 2012-03-10T20:47:55 < jpa-> and that will take time :) 2012-03-10T20:48:17 < sunilg> jpa: ya..:-( 2012-03-10T20:48:28 < jpa-> but yeah, it may be beneficial sometimes, but be sure to first benchmark/calculate it carefully before spending too much time implementing it 2012-03-10T20:49:52 < sunilg> jpa: suerly.. Will let you know the results after trying it out.. 2012-03-10T20:51:00 < sunilg> Thorn: That where the problem lies I have no means of knowing what the other function is at runtime 2012-03-10T20:51:15 < Thorn> exactly lol 2012-03-10T20:51:46 < Thorn> you can force the order with linker scripts if you're really insistent 2012-03-10T20:52:34 < sunilg> Thorn: how? 2012-03-10T20:53:30 -!- Guest47653 is now known as izua__ 2012-03-10T20:53:52 < sunilg> Thorn: I will have to specify before every function attribute section(..) Is there any other way? 2012-03-10T20:54:30 < jpa-> port ld.so :D 2012-03-10T20:55:50 < Thorn> I'm not sure if you can refer to individual symbols in the linker script, but most likely you can 2012-03-10T21:00:36 < sunilg> zippe: If you want we can, how to get completer list of variables to check its values? 2012-03-10T21:00:51 < sunilg> Thorn: 2012-03-10T21:00:57 < Thorn> yes you can: .text: *(.text your_func) *(.text your_func_2) 2012-03-10T21:01:13 < Thorn> .text: { *(.text your_func) *(.text your_func_2) } 2012-03-10T21:04:18 < Thorn> so you can have an ordered list of your functions in your linker script (now that would be quality material for thedailywtf.com) 2012-03-10T21:05:14 < sunilg> Thorn: I will have to do this for every function then... 2012-03-10T21:05:22 < Thorn> exactly 2012-03-10T21:05:37 < Thorn> imagine forgetting one, that would be fun to debug 2012-03-10T21:05:48 < sunilg> Thorn: No other way? 2012-03-10T21:07:05 < Thorn> create several sections each starting at the same address in RAM (>RAM AT>ROM), load them on demand at runtime 2012-03-10T21:07:16 < Thorn> these will be your overlays 2012-03-10T21:09:13 < sunilg> Thorn: ohhh... cool... I will try it out.. Thanks..will let you knw if it works.. 2012-03-10T21:09:49 < jpa-> you could also write a script around objdump -t that parses the output and generates a .c source file with an array of the function sizes :P 2012-03-10T21:10:46 < jpa-> sunilg: one way could be to define a maximum size for a function, and then just always load that much (if you do what Thorn said, the compiler will even warn if you exceed the max size) 2012-03-10T21:12:09 < sunilg> jpa: humnn.. I think I must try both of approaches.. 2012-03-10T21:13:12 < jpa-> you should try neither and just think hard ,) 2012-03-10T21:14:03 < sunilg> jpa: :-) 2012-03-10T21:26:24 < zippe> sunil, you should investigate -ffunction-sections 2012-03-10T21:26:42 < zippe> also -fPIC 2012-03-10T21:26:56 < zippe> You're basically writing an overlay manager 2012-03-10T21:28:13 < zippe> It's up to you to decide how many arenas you locate in RAM 2012-03-10T21:28:50 < zippe> If you only have one, performance for called leaves will be poor 2012-03-10T21:28:55 < jpa-> yays it works http://kapsi.fi/~jpa/stuff/other/fix16_fft.c 2012-03-10T21:29:14 < zippe> You will fare better if you manually group functions into overlay sets and then just thunk between sets 2012-03-10T21:34:48 < sunilg> zippe: ok.. Thanks for input.. I am trying the same rt. nw.. 2012-03-10T21:42:28 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-10T21:44:11 <+dekar__> wow, can't you just attach some external RAM? 2012-03-10T21:46:17 <+dekar__> it just sounds like too much work to me :/ 2012-03-10T21:48:26 < jpa-> indeed 2012-03-10T21:48:40 < jpa-> especially because the gains are small or improbable 2012-03-10T21:49:38 < sunilg> attaching external RAM increases cost... 2012-03-10T21:50:37 < sunilg> and especially MMUless embedded systems are meant for low cost applications acc to me.. 2012-03-10T21:51:05 <+dekar__> okay, how about a small ?C _with_ mmu? 2012-03-10T21:51:12 <+dekar__> there are some 2012-03-10T21:51:19 <+dekar__> then you could do paging to flash 2012-03-10T21:51:42 < zippe> dekar: no pagefault support 2012-03-10T21:51:52 < zippe> dekar: MPU makes demand-paging hard 2012-03-10T21:52:16 < zippe> sunilg: there is *lots* of historical literature on overlay management 2012-03-10T21:52:28 < zippe> sunilg: it's very common in the 8-bit microcontroller world 2012-03-10T21:53:01 < sunilg> zippe: ok.. 2012-03-10T21:53:04 <+dekar__> zippe, I said "_with_ mmu" I didn't suggest using an mpu 2012-03-10T21:55:15 <+dekar__> http://tinyurl.com/7sqpqr7 <-- lol 2012-03-10T21:55:48 <+dekar__> the performance benchmarks don't look too bad actually 2012-03-10T21:56:58 <+dekar__> sunilg, how about a NXP LPC3130? they have an MMU 2012-03-10T21:58:45 < sunilg> dekar_ : I am developing for MMUless like cortex-m3 2012-03-10T21:59:59 <+dekar__> so switching the ?C isn't an option for you? 2012-03-10T22:02:35 <+dekar__> I still don't really get the problem, why isn't executing from flash an option? 2012-03-10T22:03:31 < sunilg> I am trying to develop this as project. I want to develop this so that it can be used by anyone with minor changes.. 2012-03-10T22:04:52 <+dekar__> oh I see 2012-03-10T22:05:06 < Thorn> http://www.state-machine.com/arm/Building_bare-metal_ARM_with_GNU.pdf 2012-03-10T22:05:29 < Thorn> (not for cortex unfortunately) 2012-03-10T22:05:35 < jpa-> sunilg: i don't think many people are interested in loading stuff from processors addressable flash to ram; but if you make it a library that can load C modules from *any* file to ram, it will be more useful 2012-03-10T22:05:54 < jpa-> a minimal elf-file format support for example 2012-03-10T22:07:22 < sunilg> jpa: What do you mean by "any file". Sorry I didn't get what exactly you are telling? 2012-03-10T22:07:43 <+dekar__> a pretty easy way to do something similar would be installing some OS and have several smaller applications, one could then call the next once it is done 2012-03-10T22:08:00 < sunilg> Thorn : I went through that.. 2012-03-10T22:08:03 < jnosky> To get the lengths at run time, how about creating an array in a .S 2012-03-10T22:08:13 < jnosky> .word len0 2012-03-10T22:08:21 < jnosky> .word len2 etc... 2012-03-10T22:08:45 < jpa-> sunilg: so you could load from e.g. SD-card 2012-03-10T22:09:22 < jpa-> sunilg: i know your code is close to doing that, but if you rely on the linker script placing stuff, it will not be so easy 2012-03-10T22:09:41 < sunilg> ya.. That is actually the final aim... But I thought loading from flash first would be better.. 2012-03-10T22:10:03 < jpa-> sunilg: oh well.. the approaches are quite different 2012-03-10T22:10:49 < jpa-> if your aim is to load separately compiled modules, i would recommend just reading the .elf format directly - it already has the function sizes, their locations and even relocation information if you want to support non-PIC code 2012-03-10T22:13:23 < sunilg> jpa: But reading .ELF would be difficult.. 2012-03-10T22:14:00 < sunilg> I tried it once.. But couldn't complete it.. 2012-03-10T22:15:48 < sunilg> jpa: Thank you... I will try these suggestions... It was of great help.. 2012-03-10T22:15:55 < sunilg> :-) 2012-03-10T22:15:57 < jnosky> .word func2-func1; .word func3-func2 etc perhaps would work? 2012-03-10T22:17:19 < sunilg> jnosky: But I will have to write it for every function. I think I will read ELF file and get addresses from there 2012-03-10T22:18:10 < jnosky> Write what? .word? 2012-03-10T22:18:40 < jnosky> Im suggesting a .S file with a globl to the start of the table 2012-03-10T22:19:51 < jnosky> I have done this before, but only using all .asm iirc 2012-03-10T22:20:51 < jnosky> I think I mighta used a function to load to ram, but a function for each routine that needs loading 2012-03-10T22:21:01 < jnosky> from flash to ram 2012-03-10T22:21:12 < jnosky> Then the lengths addresses are knowm from compile time 2012-03-10T22:22:05 < sunilg> jnosky: ok.. I will try that.. 2012-03-10T22:24:42 < jnosky> Come to think of it, if you do it that way, each function wrapper is only a memcpy 2012-03-10T22:24:50 < jnosky> No need for a table at all 2012-03-10T22:26:19 < sunilg> jnosky: What do you mean by "function wrapper is only a memcpy" 2012-03-10T22:29:06 < jnosky> void loadFuncA(void) 2012-03-10T22:29:07 < jnosky> { 2012-03-10T22:29:07 < jnosky> memcpy(RamAddress, &FuncA, &FuncB-&FuncA); 2012-03-10T22:29:07 < jnosky> } 2012-03-10T22:32:16 < sunilg> jnosky: I will need to write this loadfunction for every function in my code.. 2012-03-10T22:34:37 < sunilg> jnosky: since there is no symbol table at runtime there is no way for me to know which is next function unless I store it in some global .s file as you told 2012-03-10T22:37:04 < jnosky> I understand. I was suggesting a way to avoid using a table, by storing the known values from compile time in seperate function 2012-03-10T22:37:26 < jnosky> You could put all those wrappers at the top of yer file say 2012-03-10T22:37:32 < jnosky> Or write a macro 2012-03-10T22:37:53 < jnosky> There is a way around the length problem too, so the function order wont matter 2012-03-10T22:38:01 < jnosky> Im trying to find the code I used to do this 2012-03-10T22:43:01 < sunilg> jnosky: ?? 2012-03-10T22:43:37 < jnosky> ? 2012-03-10T22:44:49 < sunilg> jnosky: did u find the code so tht funcn order wuld not matter? 2012-03-10T22:47:13 < jnosky> Ahh im still looking for it... 2012-03-10T22:54:41 < Laurenceb_> anyone here used analogue watchdog? 2012-03-10T22:55:04 < Laurenceb_> im confused how it works - do you still have to trigger the conversions? 2012-03-10T22:56:48 < jnosky> Cant find it atm, but you could put: 2012-03-10T22:57:10 < jnosky> void funca(void) { 2012-03-10T22:57:17 < jnosky> some code.. 2012-03-10T22:57:19 < jnosky> } 2012-03-10T22:57:21 < jnosky> then 2012-03-10T22:57:22 < jnosky> void codeFunction_END(void) { } 2012-03-10T22:57:34 < jnosky> void funcA_END(void) { } 2012-03-10T22:58:05 < jnosky> sorry bad paste, only one of those _END 2012-03-10T22:58:51 < sunilg> jnosky: It is similar to subtraction from next function 2012-03-10T22:59:11 < jnosky> Yea, but then you dont have to worry about the next functions name really 2012-03-10T22:59:27 < jnosky> hence the ordering 2012-03-10T22:59:54 < jnosky> I dont think those _ENDs will generate any code 2012-03-10T23:00:08 < jnosky> But it gives you a label you can math on 2012-03-10T23:00:10 < sunilg> jnosky: humnnn.... I will try...will let you knw when I implement it.. 2012-03-10T23:00:15 < jpa-> sure they do, a single return instruction 2012-03-10T23:00:35 < jnosky> oh 2012-03-10T23:00:59 < jpa-> but that's not much :) 2012-03-10T23:29:02 < jnosky> Not very portable either :( 2012-03-10T23:29:39 < jnosky> Another method ive used is to .incbin the seperatly compiled binary into a .S file 2012-03-10T23:41:29 < jnosky> Put in a .globl before the .incbin (address), and .set another .globl (len) to hold the length calc result from the second pass 2012-03-10T23:43:06 < jnosky> Whats nice there is you can disassem the .bin, if needed, to see whats really going on if there are problems 2012-03-10T23:44:02 < jnosky> ie: relocation related issues 2012-03-10T23:45:32 -!- sunilg [~chatzilla@59.97.195.226] has quit [Ping timeout: 252 seconds] 2012-03-10T23:49:06 < Laurenceb_> if i use dma to collect three samples from adc, how do i setup a new set of samples? 2012-03-10T23:49:14 < Laurenceb_> do i need to reset the dma at all? 2012-03-10T23:49:22 < Laurenceb_> - ie not circular dma 2012-03-10T23:49:51 < jpa-> if your CNDTR is larger than 3 you can just continue straight away 2012-03-10T23:50:26 < Laurenceb_> whats CNDTR? 2012-03-10T23:50:53 < jpa-> dma channel data count register --- Day changed Sun Mar 11 2012 2012-03-11T00:04:14 < Laurenceb_> but what i want to do it software trigger a conversion group 2012-03-11T00:04:38 < Laurenceb_> then poll the dma later and read when its finished, and set it to convert again 2012-03-11T00:04:51 < Laurenceb_> so i have three samples in the dma 2012-03-11T00:05:27 < Laurenceb_> do i need to touch the dma at all when the next set of samples is triggered? 2012-03-11T00:05:48 < jpa-> if there is still space in the DMA, then you don't have to touch it 2012-03-11T00:06:10 < Laurenceb_> otherwise what do i do? 2012-03-11T00:06:28 < jpa-> otherwise the DMA won't do anything until you reload a value in CNDTR 2012-03-11T00:06:30 < Laurenceb_> - im planning to poll for dma rx completed 2012-03-11T00:06:35 < Laurenceb_> oh i see 2012-03-11T00:06:41 < Laurenceb_> ok i understnad now 2012-03-11T00:06:50 < Laurenceb_> - unless it was circular i guess 2012-03-11T00:06:59 < jpa-> yeah, circular would reload automatically 2012-03-11T00:07:11 < Laurenceb_> wait 2012-03-11T00:07:26 < Laurenceb_> you still get completion flags on circular right? 2012-03-11T00:07:59 < Laurenceb_> in which case i can just poll the flag and reset 2012-03-11T00:08:03 < Laurenceb_> and ADC_SoftwareStartConvCmd(ADC2, ENABLE); 2012-03-11T00:09:34 < jpa-> yeah 2012-03-11T00:09:49 < Laurenceb_> simple 2012-03-11T00:10:15 < Laurenceb_> whats the vrefinternal for? 2012-03-11T00:10:32 < jpa-> where? 2012-03-11T00:11:10 < Laurenceb_> adc input 17 2012-03-11T00:11:25 < jpa-> you can determine VCC using it 2012-03-11T00:11:49 < Laurenceb_> but i thought vcc was 4095 2012-03-11T00:12:32 < Laurenceb_> oh wait - digital supply or something? 2012-03-11T00:14:33 < jpa-> vrefint is always 1.20V 2012-03-11T00:14:53 < jpa-> so you can calculate what is the Vref voltage, and use that to convert the ADC values to volts 2012-03-11T00:16:58 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has quit [Ping timeout: 260 seconds] 2012-03-11T00:18:44 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-11T00:20:49 < Laurenceb_> oh nice 2012-03-11T00:20:56 < Laurenceb_> i didnt know it had that feature 2012-03-11T00:21:33 < Laurenceb_> might be useful for detecting bad stuff on the power rail 2012-03-11T00:21:51 < Laurenceb_> ill probably use analogue watchdog with it 2012-03-11T00:23:15 < Thorn> there's also some kind of brownout detector 2012-03-11T00:23:35 < Laurenceb_> yeah - i dont need that really 2012-03-11T00:24:14 < Laurenceb_> ill use the vrefint to detect bad supply, and a converted channel as part of my three channels to detect low battery 2012-03-11T00:24:29 < Laurenceb_> this is all running at 100hz triggered from systick 2012-03-11T00:24:48 < Laurenceb_> for datalogging 2012-03-11T00:26:55 < Laurenceb_> can also log die temperature :D 2012-03-11T00:50:27 < Laurenceb_> shit no dma on adc2 2012-03-11T00:58:55 < Laurenceb_> i can probably use injected channels i guess 2012-03-11T01:00:57 < Laurenceb_> wtf is the point of the JOFFSET registers? 2012-03-11T01:01:03 < Laurenceb_> saves you like one subtraction 2012-03-11T01:12:44 < Laurenceb_> FlagStatus ADC_GetSoftwareStartInjectedConvCmdStatus(ADC_TypeDef* ADCx) 2012-03-11T01:12:47 < Laurenceb_> pmsl 2012-03-11T01:44:39 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Read error: No route to host] 2012-03-11T01:44:53 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-11T01:44:56 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-11T02:19:21 -!- izua__ [~izua@188.26.167.52] has quit [Ping timeout: 246 seconds] 2012-03-11T02:33:12 -!- peabody124 [~peabody12@128.249.96.123] has quit [Remote host closed the connection] 2012-03-11T02:33:27 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-11T03:01:43 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 245 seconds] 2012-03-11T03:06:04 -!- Laurenceb_ [~Laurence@host86-167-154-104.range86-167.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-03-11T03:12:56 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-11T03:18:30 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds] 2012-03-11T03:30:29 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-11T04:55:22 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2012-03-11T05:12:27 -!- philpem [~philpem@discferret/team-lead] has quit [Remote host closed the connection] 2012-03-11T06:32:02 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-11T06:38:22 < Randomskk> hmm, my USART2 is sitting on TXE==0, it's not clearing for some reason, any thoughts? 2012-03-11T06:38:34 < Randomskk> USART2's clocked and configured and can receive data okay, just won't transmit 2012-03-11T06:38:47 < Randomskk> if I swap the IO pin to GPIO I can drive it high and low no problem 2012-03-11T06:38:56 < Randomskk> and the IO is configured as AF and the AF mux is set to the USART 2012-03-11T06:41:56 -!- izua__ [~izua@188.26.167.52] has joined ##stm32 2012-03-11T06:57:06 -!- sunilg [~chatzilla@59.97.193.150] has joined ##stm32 2012-03-11T06:59:09 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-03-11T07:05:14 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-11T07:19:49 -!- sunilg [~chatzilla@59.97.193.150] has quit [Ping timeout: 255 seconds] 2012-03-11T07:42:22 -!- sunilg [~chatzilla@59.97.193.150] has joined ##stm32 2012-03-11T08:24:02 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124] 2012-03-11T09:00:37 -!- zippe [~Adium@173.11.99.161] has quit [Read error: Connection reset by peer] 2012-03-11T09:00:48 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-11T10:06:14 -!- sunilg [~chatzilla@59.97.193.150] has quit [Ping timeout: 265 seconds] 2012-03-11T10:12:10 -!- peabody124 [~peabody12@c-98-194-207-199.hsd1.tx.comcast.net] has joined ##stm32 2012-03-11T10:20:59 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: ureif] 2012-03-11T10:35:21 -!- sunilg [~chatzilla@59.97.195.130] has joined ##stm32 2012-03-11T10:44:38 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-11T10:44:45 -!- peabody124 [~peabody12@c-98-194-207-199.hsd1.tx.comcast.net] has quit [Ping timeout: 246 seconds] 2012-03-11T10:51:22 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: ureif] 2012-03-11T10:51:35 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2012-03-11T11:14:35 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-11T11:15:56 -!- ureif [~eruif@unaffiliated/eruif] has quit [Client Quit] 2012-03-11T11:16:15 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-11T12:25:11 -!- Laurenceb_ [~Laurence@host86-167-154-104.range86-167.btcentralplus.com] has joined ##stm32 2012-03-11T13:11:18 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 245 seconds] 2012-03-11T13:11:52 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-11T13:50:46 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-11T13:50:48 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-11T14:42:04 -!- sunilg [~chatzilla@59.97.195.130] has quit [Ping timeout: 244 seconds] 2012-03-11T15:44:20 -!- izua__ [~izua@188.26.167.52] has quit [Ping timeout: 246 seconds] 2012-03-11T15:47:28 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-11T15:57:11 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-11T16:12:00 -!- eruif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-11T16:14:32 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 265 seconds] 2012-03-11T16:33:58 < Tectu_> okay, we have a 32bit BSRR (set and reset) register and a 16bit BRR (reset register) why do we have the half of the BSRR register again in a seperate one? 2012-03-11T17:03:41 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 252 seconds] 2012-03-11T17:04:02 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-11T18:39:31 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 246 seconds] 2012-03-11T18:45:53 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-11T19:24:40 < jpa-> Tectu_: because it's useful for me :) 2012-03-11T19:24:59 < jpa-> Tectu_: you can use DMA to write stuff to BSRR, and in that way you can set and reset bits freely 2012-03-11T19:25:31 < jpa-> (though yeah, a bit more difficult to say why have a separate BRR then) 2012-03-11T19:30:15 -!- elektrinis [~circuit@82-135-241-134.static.zebra.lt] has quit [Quit: pokðt] 2012-03-11T19:34:53 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-11T19:45:02 -!- urewen [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-11T19:46:34 -!- urewen is now known as ureif 2012-03-11T19:47:41 -!- eruif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 265 seconds] 2012-03-11T19:59:17 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 265 seconds] 2012-03-11T20:03:13 -!- sunilg [~chatzilla@59.97.195.65] has joined ##stm32 2012-03-11T20:34:18 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-11T20:50:22 -!- ureif [~eruif@unaffiliated/eruif] has left ##stm32 [] 2012-03-11T20:55:04 -!- sunilg [~chatzilla@59.97.195.65] has quit [Ping timeout: 255 seconds] 2012-03-11T21:01:40 -!- izua__ [~izua@188.26.167.52] has joined ##stm32 2012-03-11T21:38:53 < Laurenceb_> grrr pwm glitches 2012-03-11T21:39:09 < Laurenceb_> is it possible ot access timr registers whilst the timer is running? 2012-03-11T21:42:50 < jpa-> yeah, but you probably want to enable the "preload" mode then 2012-03-11T21:43:11 < jpa-> in "preload" mode, any changes you make to the registers take effect at the next time the timer overflows 2012-03-11T21:49:43 < Laurenceb_> but thats what im changing 2012-03-11T21:50:21 < jpa-> changing what? the preload mode? 2012-03-11T21:52:46 < Laurenceb_> https://github.com/Laurenceb/STM32-Logger/blob/master/timer.c#L103 2012-03-11T21:53:06 < Laurenceb_> it works mostly, but sometimes i see glitches 2012-03-11T21:53:18 < Laurenceb_> no pwm on timer1 for a few ms 2012-03-11T21:53:39 < Laurenceb_> trying to work out whats happening - its hard to capture on my crappy scope :S 2012-03-11T21:53:42 < jpa-> heh 2012-03-11T21:53:59 < Laurenceb_> pwm aliases with the sampling 2012-03-11T21:54:02 < jpa-> why not just write to the buffer and in an ISR write to the buffer again after the buffer has taken effect 2012-03-11T21:54:22 < Laurenceb_> yeah 2012-03-11T21:54:30 < Laurenceb_> but id need another isr 2012-03-11T21:54:45 < Laurenceb_> if i cant fix it tomorrow ill try that - dont have hardware with me atm 2012-03-11T21:55:09 < Laurenceb_> it does shift the phase over correctly most of the time 2012-03-11T21:56:08 < Laurenceb_> do the F4 timers run at 168MHz? 2012-03-11T21:56:42 < jpa-> they run at the peripheral clock they are connected to 2012-03-11T21:57:33 < jpa-> if you have time in that ISR, you could also just loop there until the timer update flag is set 2012-03-11T21:59:05 < Laurenceb_> yes, that too 2012-03-11T21:59:23 < Laurenceb_> i was just thinking, with F4 i might be able to use this techjnique on HAM bands 2012-03-11T21:59:37 < Laurenceb_> use multiple timers to do OFDM QAM 2012-03-11T22:00:01 < Laurenceb_> pwm outputs ->opamp adder -> narrow bandpass -> power amp 2012-03-11T22:01:03 < jpa-> opamp adder at >10MHz is tricky to do :P 2012-03-11T22:01:17 < jpa-> but yeah, just other kind of adder and it's a fine idea 2012-03-11T22:01:37 < Laurenceb_> as you can adjust pwm phase on the fly 2012-03-11T22:02:06 < Laurenceb_> of course for radio you only need one output, so you could use the DAC 2012-03-11T22:13:30 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-11T22:13:33 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-11T22:13:38 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-03-11T22:13:46 <+Steffanx> nu 2012-03-11T22:14:11 < jpa-> Steffanx wins \o/ 2012-03-11T22:14:31 <+Steffanx> Yay, 2012-03-11T22:14:34 <+Steffanx> What? 2012-03-11T22:25:58 < jpa-> a hug 2012-03-11T22:32:25 < Laurenceb_> http://www.youtube.com/watch?v=IRT4ShYi8Bw 2012-03-11T22:35:18 < Laurenceb_> http://www.youtube.com/watch?v=BfxxY2OY6TQ 2012-03-11T22:35:40 <+Steffanx> I don't want hugs from you jpa- 2012-03-11T22:36:18 < ratatata> nu 2012-03-11T22:37:03 <+Steffanx> A hug from a man.. a married man, no thanks jpa- :P 2012-03-11T22:42:57 -!- izua__ [~izua@188.26.167.52] has quit [Ping timeout: 246 seconds] 2012-03-11T22:50:42 -!- zippe [~Adium@173.11.99.161] has quit [Read error: Connection reset by peer] 2012-03-11T22:50:56 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-11T23:00:26 -!- zippe [~Adium@173.11.99.161] has quit [Read error: Connection reset by peer] 2012-03-11T23:00:36 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-11T23:09:22 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-11T23:13:01 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 260 seconds] 2012-03-11T23:17:57 -!- phantone is now known as phantoxe 2012-03-11T23:50:04 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving] 2012-03-11T23:50:23 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-11T23:50:24 -!- mode/##stm32 [+v Steffanx] by ChanServ --- Day changed Mon Mar 12 2012 2012-03-12T00:06:02 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-12T00:17:08 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124] 2012-03-12T00:31:26 < philpem> Guys, I'm working on merging the STMicro CMSIS/SPL libs for the various STM32 chips into one library (as in, "make CHIP=stm32f4" gets you spl_stm32f4.a which you then link with your app). there will also be a build system to go with this... can anyone see any value in me putting this on bitbucket or possibly github? 2012-03-12T00:31:40 < philpem> (does anyone even use ST's Standard Peripheral Library and the CMSIS stuff?) 2012-03-12T00:32:07 < philpem> there might even be a python-based 'ld' script generator thrown in for yuks. mainly because I'm getting sick of writing LD scripts...! 2012-03-12T00:33:13 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-12T00:47:32 < zippe> philpem: Plenty of people use the ST libraries, but you may find yourself doing a lot of bugfixing 2012-03-12T00:47:40 < zippe> There is also little or no overlap between them, which is sad. 2012-03-12T00:51:26 < philpem> zippe, I think I can live with the lack of overlap (different platforms using chip-specific peripheral libraries and CMSIS layers); CMSIS seems to be common. 2012-03-12T00:51:49 < philpem> the problem I'm working through at the moment is the make system. ideally i'd like a non-recursive make, but that's looking difficult at the mo 2012-03-12T00:53:30 -!- Laurenceb_ [~Laurence@host86-167-154-104.range86-167.btcentralplus.com] has quit [Ping timeout: 260 seconds] 2012-03-12T00:54:44 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has quit [Ping timeout: 252 seconds] 2012-03-12T00:55:28 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 245 seconds] 2012-03-12T00:57:51 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Quit: Leaving.] 2012-03-12T00:58:22 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-12T00:59:24 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-12T01:07:09 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-03-12T01:22:31 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds] 2012-03-12T02:56:18 < philpem> woohoo! I have the STM32L1xx and STM32F10x SPLs combined and buildable! :) 2012-03-12T02:58:13 < philpem> now I just need to figure out how to turn my "blink the LED" demo into.. um.. a "blat something out of the UART" demo. 2012-03-12T03:08:22 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 276 seconds] 2012-03-12T03:11:05 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32 2012-03-12T03:42:08 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-12T04:01:09 < philpem> anyone still here? good :) 2012-03-12T04:01:22 < philpem> my fork of the Standard Peripherals Library: https://bitbucket.org/philpem/stm32_spl/ 2012-03-12T04:10:52 -!- atom1 [~tom@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-12T04:42:15 -!- atom1 [~tom@ip70-179-150-84.fv.ks.cox.net] has quit [Quit: Leaving] 2012-03-12T04:53:03 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-12T04:54:09 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-12T04:54:59 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-12T05:50:43 -!- sunilg [~chatzilla@59.97.194.161] has joined ##stm32 2012-03-12T06:17:58 -!- sunilg [~chatzilla@59.97.194.161] has quit [Ping timeout: 245 seconds] 2012-03-12T06:42:08 -!- sunilg [~chatzilla@59.97.194.89] has joined ##stm32 2012-03-12T07:34:26 -!- sunilg [~chatzilla@59.97.194.89] has quit [Ping timeout: 272 seconds] 2012-03-12T08:55:30 < Tectu_> jpa-, okay, that with the DMA to BSRR sounds fair for me, but what is the BRR 16bit register for? that was my original question 2012-03-12T08:59:14 -!- sunilg [~chatzilla@59.97.194.89] has joined ##stm32 2012-03-12T09:36:34 -!- sunilg [~chatzilla@59.97.194.89] has quit [Ping timeout: 244 seconds] 2012-03-12T09:43:52 < zyp> Tectu_, F2/F4 doesn't have BRR, only BSRR 2012-03-12T09:45:24 < Tectu_> aye 2012-03-12T09:45:31 < zyp> I would imagine that the purpose of BRR is to have the reset-bits available in the same location as the set-bits in BSRR, so you don't have to shift the bits by 16 to reset 2012-03-12T09:45:32 < Tectu_> so why does F1 have them? 2012-03-12T09:45:57 < Tectu_> yeah, but that's what i am saying. why not only having BSRR and that's all 2012-03-12T09:46:01 < Tectu_> then oyu have all you need 2012-03-12T09:46:53 < zyp> because then you could do BSRR = x to set the bits in x and BRR = x to reset them, instead of BSRR = x << 16 2012-03-12T09:48:01 < zyp> then they probably found that it's useless, because shifts are pretty fast on cortex-m3 due to the inline barrel shifter, and removed BRR from F2 2012-03-12T09:55:55 < Tectu_> aye 2012-03-12T09:55:57 < Tectu_> thank you 2012-03-12T10:30:49 -!- Laurenceb_ [~Laurence@host86-167-154-104.range86-167.btcentralplus.com] has joined ##stm32 2012-03-12T11:02:09 -!- Laurenceb_ [~Laurence@host86-167-154-104.range86-167.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-03-12T11:03:17 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-12T11:33:42 -!- elektrinis [~circuit@82-135-241-134.static.zebra.lt] has joined ##stm32 2012-03-12T11:36:50 -!- circuit [~circuit@82-135-241-134.static.zebra.lt] has joined ##stm32 2012-03-12T11:37:51 -!- elektrinis [~circuit@82-135-241-134.static.zebra.lt] has quit [Ping timeout: 246 seconds] 2012-03-12T11:49:19 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-12T11:53:19 -!- circuit [~circuit@82-135-241-134.static.zebra.lt] has left ##stm32 [] 2012-03-12T11:53:29 -!- elektrinis [~circuit@82-135-241-134.static.zebra.lt] has joined ##stm32 2012-03-12T13:05:49 -!- dekar__ [~dekar@46.115.21.190] has quit [Ping timeout: 244 seconds] 2012-03-12T14:26:57 -!- sunilg [~chatzilla@59.97.194.89] has joined ##stm32 2012-03-12T14:35:52 -!- dekar [~dekar@46.115.21.190] has joined ##stm32 2012-03-12T14:35:53 -!- mode/##stm32 [+v dekar] by ChanServ 2012-03-12T14:42:24 -!- sunilg [~chatzilla@59.97.194.89] has quit [Ping timeout: 255 seconds] 2012-03-12T15:08:20 -!- sunilg [~chatzilla@59.97.194.89] has joined ##stm32 2012-03-12T15:21:41 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-12T15:31:37 -!- sunilg [~chatzilla@59.97.194.89] has quit [Ping timeout: 244 seconds] 2012-03-12T15:41:12 -!- dekar [~dekar@46.115.21.190] has quit [Quit: This computer has gone to sleep] 2012-03-12T16:13:28 -!- izua__ [~izua@188.26.167.52] has joined ##stm32 2012-03-12T16:15:55 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 252 seconds] 2012-03-12T16:38:56 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-12T16:49:23 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-03-12T17:06:48 < izua__> Laurenceb: neat 2012-03-12T17:07:00 < izua__> make it use freetype now :D 2012-03-12T17:07:43 < izua__> also post sources and mp3 decoder and whatnot :D 2012-03-12T17:21:22 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-12T17:29:38 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-12T17:33:16 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-12T18:10:10 -!- sunilg [~chatzilla@59.97.194.89] has joined ##stm32 2012-03-12T18:13:25 < izua__> make 2012-03-12T18:18:42 < emeb> make: *** No targets specified and no makefile found. Stop. 2012-03-12T18:19:19 < BrainDamage> make conversation 2012-03-12T18:29:41 < Thorn> make: *** No rule to make target `conversation'. Stop. 2012-03-12T18:31:33 < ureif> make love (on a Solaris machine) 2012-03-12T18:31:38 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-12T18:31:54 < ureif> make love #on a Solaris machine 2012-03-12T18:32:04 -!- tunilame [~tunilame@197.2.127.103] has joined ##stm32 2012-03-12T18:32:23 < tunilame> hello 2012-03-12T18:33:01 < tunilame> I have a STM32L-Discovery that I'm programming on using Linux Ubuntu 2012-03-12T18:33:30 < tunilame> I already loaded the 32l_dac with success 2012-03-12T18:33:49 < tunilame> but I couldn't (or forget howto) load the 32l_lcd 2012-03-12T18:34:07 < tunilame> I did it before, but I forget the command to execute before loading the 32l_lcd 2012-03-12T18:34:10 < tunilame> anyone can help me? 2012-03-12T18:36:49 -!- izua [~izua@188.26.167.52] has joined ##stm32 2012-03-12T18:37:15 -!- izua is now known as Guest72037 2012-03-12T18:39:50 -!- izua__ [~izua@188.26.167.52] has quit [Ping timeout: 260 seconds] 2012-03-12T18:41:25 -!- Guest72037 [~izua@188.26.167.52] has quit [Ping timeout: 260 seconds] 2012-03-12T18:48:37 < Laurenceb> anyone here used st periph lib with injected conversion? 2012-03-12T18:48:41 < Laurenceb> https://github.com/Laurenceb/STM32-Logger/blob/master/lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_adc.c#L970 2012-03-12T18:48:52 < Laurenceb> line 974 is wrong? 2012-03-12T18:49:06 < Laurenceb> surely Rank + 3 - tmpreg3 2012-03-12T18:49:14 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has left ##stm32 [] 2012-03-12T19:09:28 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-12T19:09:29 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-12T19:09:48 < emeb> I've got an app that uses injected conversion, but I set it up with direct access to the ADC regs, not with the library. 2012-03-12T19:10:22 < zyp> same here 2012-03-12T19:16:23 < emeb> At first I thought injected would be easier since it doesn't require polling or DMA, but writes to regs right in the ADC. 2012-03-12T19:16:50 < emeb> Just set up a new app over the weekend that uses DMA though - pretty simple. 8 channels couldn't be done with injected. 2012-03-12T19:19:23 < zyp> nothing stops you from doing 4 then 4 more :p 2012-03-12T19:19:41 < zyp> but yeah, dma is nice and easy 2012-03-12T19:23:22 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-03-12T20:12:35 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-03-12T20:12:51 < TitanMKD> hi 2012-03-12T20:13:20 < jpa-> hello 2012-03-12T20:15:42 <+Steffanx> nu 2012-03-12T20:34:54 -!- eruif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-12T20:36:09 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-12T20:36:59 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 252 seconds] 2012-03-12T20:48:32 < Tectu_> is my linkerscript depending on my library? 2012-03-12T20:49:08 < Tectu_> i have a STM32F103. when i want to use the stm lib, do i need a stmlib linker script? 2012-03-12T20:50:10 < jpa-> i don't think that st's fwlib has any linker script dependencies 2012-03-12T20:50:25 < Tectu_> jep 2012-03-12T20:50:31 < jpa-> libc's usually do 2012-03-12T20:50:34 < Tectu_> so where do i get a stm32f103 linker script from? 2012-03-12T20:50:59 < jpa-> teh internets :) 2012-03-12T20:51:07 < Tectu_> any recommendations? 2012-03-12T20:51:25 < jpa-> are you going to use a libc? 2012-03-12T20:51:51 < Tectu_> i guess so, since i use the stmlib 2012-03-12T20:53:01 < jpa-> which libc? 2012-03-12T20:54:06 < Tectu_> aw aah 2012-03-12T20:54:24 < Tectu_> i am not able to answer that question?! 2012-03-12T20:54:27 < Tectu_> ah, wait 2012-03-12T20:54:29 < Tectu_> i guess glibc 2012-03-12T20:54:30 < Tectu_> ? 2012-03-12T20:55:10 < jpa-> nope :) 2012-03-12T20:55:27 < jpa-> way too large for stm32f103 2012-03-12T20:56:02 < Tectu_> okay 2012-03-12T20:56:15 < jpa-> many people go with newlib, and there are some example linker scripts with newlib interface code .. but i don't personally like newlib so can't tell more 2012-03-12T20:56:58 < Tectu_> aah, wait, i know now 2012-03-12T20:56:59 < Tectu_> i use newlib 2012-03-12T20:57:54 < jpa-> ok, then you quite much have to use a newlib-compatible linker script 2012-03-12T20:59:29 < jpa-> but i haven't used newlib so i cannot help you more :/ 2012-03-12T20:59:52 < Tectu_> can i use that one i used with the stm32f100 from the discovery? 2012-03-12T21:00:18 < jpa-> sure, just change the memory sizes to match 2012-03-12T21:01:22 < Tectu_> okay 2012-03-12T21:01:32 < Tectu_> and stm32flasher should also work, right? 2012-03-12T21:02:27 -!- sunilg [~chatzilla@59.97.194.89] has quit [Ping timeout: 265 seconds] 2012-03-12T21:03:37 < jpa-> yeah 2012-03-12T21:05:38 < Tectu_> okay 2012-03-12T21:05:47 < Tectu_> just received my stm32f103 board today 2012-03-12T21:13:59 < Tectu_> jpa-, do i have to change other things beside the LENGTH from ROM and RAM? 2012-03-12T21:14:20 < Tectu_> the base adresses etc. are the same from f100 to f103, right? 2012-03-12T21:14:32 < jpa-> yeah, base addresses stay the same 2012-03-12T21:14:42 < Tectu_> okay, i am offline from here 2012-03-12T21:14:45 < Tectu_> thank you and cu 2012-03-12T21:14:48 < jpa-> in some linker scripts the stack pointer is declared separately - it should usually be at the end of ram 2012-03-12T21:15:58 < Tectu_> jpa-, this is my linkerscript: http://pastebin.com/UtceZ4ZS 2012-03-12T21:16:03 < Tectu_> i didn't change the memory sizes yet 2012-03-12T21:16:21 < Tectu_> should this work when i use the stm library? 2012-03-12T21:16:38 -!- tunilame [~tunilame@197.2.127.103] has quit [Ping timeout: 248 seconds] 2012-03-12T21:17:50 < jpa-> probably - atleast if you have proper c runtime initialization (for initializing the .data and .bss sections) 2012-03-12T21:18:52 < Tectu_> okay 2012-03-12T21:19:12 < Tectu_> do you have a sample for the newlib now, which works with the stmlib? 2012-03-12T21:19:46 -!- sunilg [~chatzilla@59.97.194.89] has joined ##stm32 2012-03-12T21:20:29 < jpa-> no, i despise them both :D 2012-03-12T21:20:37 < Tectu_> okay 2012-03-12T21:20:39 < Tectu_> see you :) 2012-03-12T21:20:40 < Tectu_> good eveing 2012-03-12T21:20:42 < jpa-> :) 2012-03-12T21:29:49 -!- elektrinis [~circuit@82-135-241-134.static.zebra.lt] has quit [Ping timeout: 255 seconds] 2012-03-12T21:42:53 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-12T21:44:31 < philpem> Tectu_, does that link script work with newlib? 2012-03-12T21:45:06 * philpem had issues with undefined symbol errors referencing '__end__' 2012-03-12T21:45:15 < jpa-> not for malloc atleast 2012-03-12T21:45:28 < philpem> ah, indeed -- no heap zone. 2012-03-12T21:45:52 < philpem> you'll also need a stub for _sbrk. 2012-03-12T21:46:43 < philpem> the nanoage.co.uk stubs look fairly sane, I'm trying to get UART bringup working atm. 2012-03-12T21:47:21 < philpem> my combined peripheral lib w/ bugfixes is here: https://bitbucket.org/philpem/stm32_spl 2012-03-12T21:47:34 < philpem> toolchain builder is here: https://bitbucket.org/philpem/mktoolchain 2012-03-12T21:47:46 < philpem> and once I get my demo project working, that'll be going on bitbucket too :) 2012-03-12T22:02:58 -!- Laurenceb_ [~Laurence@host86-167-154-104.range86-167.btcentralplus.com] has joined ##stm32 2012-03-12T22:20:01 -!- dekar_ [~dekar@drms-590c5d3b.pool.mediaWays.net] has joined ##stm32 2012-03-12T22:20:01 -!- mode/##stm32 [+v dekar_] by ChanServ 2012-03-12T22:23:50 -!- sunilg [~chatzilla@59.97.194.89] has quit [Ping timeout: 260 seconds] 2012-03-12T22:54:32 -!- dekar__ [~dekar@2002:590c:5d3b:0:a900:8b63:e83:43dd] has joined ##stm32 2012-03-12T22:54:35 -!- mode/##stm32 [+v dekar__] by ChanServ 2012-03-12T22:56:47 -!- dekar_ [~dekar@drms-590c5d3b.pool.mediaWays.net] has quit [Ping timeout: 252 seconds] 2012-03-12T22:57:52 -!- dekar_ [~dekar@drms-590c5d3b.pool.mediaWays.net] has joined ##stm32 2012-03-12T22:57:55 -!- mode/##stm32 [+v dekar_] by ChanServ 2012-03-12T23:00:22 -!- dekar__ [~dekar@2002:590c:5d3b:0:a900:8b63:e83:43dd] has quit [Ping timeout: 272 seconds] 2012-03-12T23:26:45 -!- tunilame [~tunilame@197.0.46.112] has joined ##stm32 2012-03-12T23:28:26 -!- tunilame [~tunilame@197.0.46.112] has left ##stm32 [] 2012-03-12T23:59:44 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 --- Day changed Tue Mar 13 2012 2012-03-13T00:02:29 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 248 seconds] 2012-03-13T00:04:16 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Read error: Operation timed out] 2012-03-13T00:04:56 -!- dekar__ [~dekar@drms-590c5d3b.pool.mediaWays.net] has joined ##stm32 2012-03-13T00:04:59 -!- mode/##stm32 [+v dekar__] by ChanServ 2012-03-13T00:07:39 -!- dekar_ [~dekar@drms-590c5d3b.pool.mediaWays.net] has quit [Ping timeout: 245 seconds] 2012-03-13T00:15:37 -!- phantone is now known as phantoxe 2012-03-13T00:18:50 < Tectu_> philpem, well, it did work for me with newlib and stm32f100 discovery board 2012-03-13T00:18:50 < Tectu_> why? 2012-03-13T00:19:15 -!- Tectu_ is now known as Tectu 2012-03-13T00:19:48 * philpem is tempted to try it.. but without a heap block for sbrk it probably won't work right 2012-03-13T00:24:12 < Tectu> don't know, as i said, worked with f1 discovery board, but well, i couldn't bring the LED to flash on my stm32f103 yet 2012-03-13T00:38:13 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-03-13T00:54:56 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 265 seconds] 2012-03-13T02:15:57 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-03-13T02:16:31 -!- dekar__ [~dekar@drms-590c5d3b.pool.mediaWays.net] has quit [Quit: This computer has gone to sleep] 2012-03-13T02:22:13 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-13T02:25:55 -!- Laurenceb_ [~Laurence@host86-167-154-104.range86-167.btcentralplus.com] has quit [Ping timeout: 260 seconds] 2012-03-13T02:29:59 -!- peabody124 [~peabody12@128.249.96.123] has quit [Read error: Connection reset by peer] 2012-03-13T02:30:05 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-13T02:30:30 -!- izua [~izua@188.26.167.52] has joined ##stm32 2012-03-13T02:30:55 -!- izua is now known as Guest44630 2012-03-13T02:32:30 -!- Guest44630 [~izua@188.26.167.52] has left ##stm32 [] 2012-03-13T02:34:24 -!- peabody124 [~peabody12@128.249.96.123] has quit [Ping timeout: 244 seconds] 2012-03-13T02:54:02 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-13T03:22:37 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has left ##stm32 [] 2012-03-13T03:41:57 -!- dekar [~dekar@46.115.21.190] has joined ##stm32 2012-03-13T03:42:01 -!- mode/##stm32 [+v dekar] by ChanServ 2012-03-13T03:42:05 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-13T03:56:34 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-13T04:23:55 -!- dekar [~dekar@46.115.21.190] has quit [Quit: This computer has gone to sleep] 2012-03-13T04:56:57 -!- sunilg [~chatzilla@59.97.194.89] has joined ##stm32 2012-03-13T05:25:19 -!- sunilg [~chatzilla@59.97.194.89] has quit [Ping timeout: 264 seconds] 2012-03-13T06:19:04 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] --- Log closed Tue Mar 13 08:38:40 2012 --- Log opened Tue Mar 13 08:38:46 2012 2012-03-13T08:38:46 -!- jpa- [jpa@hilla.kapsi.fi] has joined ##stm32 2012-03-13T08:38:46 -!- Irssi: ##stm32: Total of 27 nicks [1 ops, 0 halfops, 0 voices, 26 normal] 2012-03-13T08:39:12 -!- Irssi: Join to ##stm32 was synced in 31 secs 2012-03-13T08:44:13 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-13T09:23:23 -!- sunilg [~chatzilla@59.97.192.126] has joined ##stm32 2012-03-13T09:41:09 -!- peabody124_ [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Remote host closed the connection] 2012-03-13T10:03:41 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-13T10:10:50 -!- sunilg [~chatzilla@59.97.192.126] has quit [Ping timeout: 260 seconds] 2012-03-13T10:12:03 -!- elektrinis [~circuit@82-135-241-134.static.zebra.lt] has joined ##stm32 2012-03-13T10:28:09 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has quit [Ping timeout: 265 seconds] 2012-03-13T10:30:34 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-13T11:00:35 -!- Laurenceb_ [~Laurence@host86-167-154-104.range86-167.btcentralplus.com] has joined ##stm32 2012-03-13T11:22:41 -!- Laurenceb_ [~Laurence@host86-167-154-104.range86-167.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-03-13T11:24:24 -!- dekar_ [~dekar@dslb-088-069-151-174.pools.arcor-ip.net] has joined ##stm32 2012-03-13T11:24:27 -!- mode/##stm32 [+v dekar_] by ChanServ 2012-03-13T11:41:33 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-13T11:41:34 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has quit [Ping timeout: 244 seconds] 2012-03-13T11:49:59 -!- Netsplit *.net <-> *.split quits: jaeckel 2012-03-13T11:53:42 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has joined ##stm32 2012-03-13T11:55:30 -!- Netsplit over, joins: jaeckel 2012-03-13T12:00:04 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-13T12:58:26 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-13T13:46:18 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has quit [Remote host closed the connection] 2012-03-13T13:46:20 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-13T13:48:19 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-13T13:48:28 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-13T14:40:44 -!- circuit [~circuit@82-135-241-134.static.zebra.lt] has joined ##stm32 2012-03-13T14:43:04 -!- elektrinis [~circuit@82-135-241-134.static.zebra.lt] has quit [Ping timeout: 245 seconds] 2012-03-13T15:04:55 -!- sunilg [~chatzilla@58.68.121.26] has joined ##stm32 2012-03-13T15:11:56 -!- sunilg [~chatzilla@58.68.121.26] has quit [Ping timeout: 246 seconds] 2012-03-13T15:13:23 -!- sunilg [~chatzilla@58.68.121.26] has joined ##stm32 2012-03-13T15:37:16 -!- sunilg [~chatzilla@58.68.121.26] has quit [Ping timeout: 244 seconds] 2012-03-13T15:59:32 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-03-13T16:07:40 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-13T16:10:19 -!- sunilg [~chatzilla@58.68.121.26] has joined ##stm32 2012-03-13T16:35:22 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-13T16:40:59 -!- sunilg [~chatzilla@58.68.121.26] has quit [Ping timeout: 245 seconds] 2012-03-13T16:42:01 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-13T16:42:39 -!- eruif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 245 seconds] 2012-03-13T16:45:17 <+dekar_> ERROR: Stack pointer is not within allocated stack 2012-03-13T16:46:00 < jpa-> stack pointer monitoring is lame 2012-03-13T16:46:01 <+dekar_> my bootloader fails to boot up nuttx for some reason 2012-03-13T16:46:25 < jpa-> dekar_: maybe nuttx expects that the stack pointer is automatically initialized from the vector table? 2012-03-13T16:46:34 <+dekar_> that's what I do 2012-03-13T16:46:42 <+dekar_> I use the vector table to set it 2012-03-13T16:46:58 <+dekar_> that's the first byte of the firmware I try to boot 2012-03-13T16:47:12 <+dekar_> second byte is the reset_handler, which I call right after 2012-03-13T16:47:28 < jpa-> s/byte/(d)word/ 2012-03-13T16:47:40 -!- circuit [~circuit@82-135-241-134.static.zebra.lt] has left ##stm32 [] 2012-03-13T16:47:40 <+dekar_> uint32_t :) 2012-03-13T16:47:41 <+dekar_> right 2012-03-13T16:47:44 < jpa-> yeah :) 2012-03-13T16:47:48 -!- elektrinis [~circuit@82-135-241-134.static.zebra.lt] has joined ##stm32 2012-03-13T16:47:49 <+dekar_> that's what I do 2012-03-13T16:48:03 <+dekar_> sp: 20000d88 2012-03-13T16:48:03 <+dekar_> stack base: 08000231 2012-03-13T16:48:03 <+dekar_> stack size: 08000231 2012-03-13T16:48:19 <+dekar_> stack base and size make no sense, that's flash memory 2012-03-13T16:48:27 <+dekar_> sp is probably the value I set it to 2012-03-13T16:50:54 <+dekar_> I first set the vector table (NVIC_SetVectorTable), then the main stack pointer using the CMSIS function and then call the reset handler 2012-03-13T16:51:29 < jpa-> so does the same image work without your bootloader? 2012-03-13T16:52:38 <+dekar_> well I'd have to change the linkerscript for the other flash address 2012-03-13T16:53:01 <+dekar_> I had it running before without bootloader, but I'll try it with again 2012-03-13T16:53:14 <+dekar_> *try it again 2012-03-13T16:59:24 < Thorn> guess what 2012-03-13T17:02:16 < Thorn> 5,000 10K resistors 2012-03-13T17:02:26 < Thorn> (and also rigol and stm32f4discovery) 2012-03-13T17:02:30 <+dekar_> nice, now make some i2c devices :D 2012-03-13T17:02:54 <+dekar_> (they use 10k pull-ups in fast mode ;D) 2012-03-13T17:03:16 < Thorn> don't they need something like 2.2K? 2012-03-13T17:03:38 < Thorn> I've seen an article written by someone with a scope 2012-03-13T17:04:57 < zyp> depends on the bus capacitance 2012-03-13T17:07:00 < Thorn> also expensive sumida inductors and other dc/dc stuff 2012-03-13T17:09:44 <+dekar_> wasn't my bootloader 2012-03-13T17:09:45 <+dekar_> -.- 2012-03-13T17:09:50 <+dekar_> I fucked something up I guess 2012-03-13T17:10:54 < zyp> that's the usual reason 2012-03-13T17:15:00 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-13T17:17:27 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-13T17:46:30 < Thorn> so how do I program this discovery thing under windows? it doesn't have jtag, only this st-link. do I need truestudio or something like that? 2012-03-13T18:03:45 < jpa-> IIRC there was a stand-alone program from ST 2012-03-13T18:03:56 < jpa-> for debugging you need something else, though 2012-03-13T18:04:43 <+dekar_> now everything works, so much ram :D 2012-03-13T18:07:18 -!- dekar_ [~dekar@dslb-088-069-151-174.pools.arcor-ip.net] has left ##stm32 ["Leaving"] 2012-03-13T18:27:01 -!- sunilg [~chatzilla@59.97.192.126] has joined ##stm32 2012-03-13T18:50:01 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-13T18:52:47 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 255 seconds] 2012-03-13T19:02:32 -!- phantone is now known as phantoxe 2012-03-13T19:03:52 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-03-13T19:30:23 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Quit: Leaving.] 2012-03-13T19:35:21 < Tectu> okay, i want to use an example with the stm stdlib. i downloaded the library, i got a makfile, i put all the -I options into the CFLAGS 2012-03-13T19:35:42 < Tectu> but when i compile: undefined reference to `RCC_APB2PeriphClockCmd' and undefined reference to `GPIO_Init' 2012-03-13T19:36:04 -!- elektrinis [~circuit@82-135-241-134.static.zebra.lt] has quit [Quit: pokðt] 2012-03-13T19:36:09 < Tectu> i don't know why. i included stm32f10x_rcc.h and _gpio.h 2012-03-13T19:36:13 < jpa-> you have to include the .c files in your compilation also 2012-03-13T19:36:14 < Tectu> the compiler also dosen't say that he cannot find the files 2012-03-13T19:36:23 < Tectu> any ideas where the problems are? 2012-03-13T19:37:06 < jpa-> "no such symbol" is a header file (C-language definition) missing - "undefined reference" is a .o or .c file (object code) missing 2012-03-13T19:37:18 < Tectu> ah 2012-03-13T19:37:48 < Tectu> but rcc.c and gpio.c are in the same folder as the .h files 2012-03-13T19:38:01 < Tectu> (i took all the .h and .c files from the stmstdlib and but them in one single directory 2012-03-13T19:38:18 < jpa-> but are the .c files listed in your gcc command line? 2012-03-13T19:38:57 < Tectu> i did -I$(LIB) where LIB = /home/tectu/projects/stdlib/lib 2012-03-13T19:39:06 < Tectu> and in the lib directory, there is every .h and .c files 2012-03-13T19:39:29 < jpa-> yes, but you need to list every .c file in your gcc command, otherwise it doesn't compile them 2012-03-13T19:39:41 < Tectu> wtf? 2012-03-13T19:39:44 < jpa-> there is no direct connection between a .h and a .c file even if they have the same name 2012-03-13T19:39:48 < Tectu> seriously? 2012-03-13T19:39:53 < Tectu> ouch 2012-03-13T19:40:04 < jpa-> yes? just like C-programs always work? 2012-03-13T19:40:13 -!- elektrinis [circuit@82-135-241-134.static.zebra.lt] has joined ##stm32 2012-03-13T19:40:51 < jpa-> see e.g. http://mrbook.org/tutorials/make/ and note how it lists all the source files 2012-03-13T19:41:08 < Tectu> i have to list every single .c file in the CFLAGS? 2012-03-13T19:41:25 < Tectu> aaaah sure 2012-03-13T19:41:27 < jpa-> not in CFLAGS 2012-03-13T19:41:27 < Tectu> i always did that 2012-03-13T19:41:35 < Tectu> also on AVRs etc 2012-03-13T19:41:37 < Tectu> yes yes 2012-03-13T19:41:42 < Tectu> i know what you mean ;-) 2012-03-13T19:41:48 < Tectu> sorry, i missunderstood you 2012-03-13T19:42:53 < Tectu> thank you, dinner 2012-03-13T19:44:46 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-03-13T19:46:59 -!- elektrinis [circuit@82-135-241-134.static.zebra.lt] has quit [Ping timeout: 260 seconds] 2012-03-13T20:15:18 < Tectu> jpa-, me again. i got everything to compile now. but i get the same result all the time: no blinking LEDs on my new stm32f103 board.... is it possible, that it fails because of the linker script? 2012-03-13T20:15:33 < Tectu> i still didn't change anything from the stm32f100rb discovery linker script i used 2012-03-13T20:17:05 < Thorn> are you linking with correct startup code? 2012-03-13T20:17:48 < Tectu> Thorn, no starupt code here? i just compile my files and use this linkerscript: http://pastebin.com/yqWXMNjF 2012-03-13T20:18:49 < Thorn> you're using your own startup code? 2012-03-13T20:19:09 < Tectu> what do you mean with startup code? I use the examples from the stmstdlib 2012-03-13T20:19:12 < Tectu> GPIO/IOToggle 2012-03-13T20:21:10 < Thorn> in that case you have no startup, no vector table etc in your image 2012-03-13T20:21:25 < Tectu> ah, i see 2012-03-13T20:22:05 < Tectu> i got some examples with my stm32f103 board, but well, they use KEIL as IDE, and i don't want to use an IDE, just wim 2012-03-13T20:22:06 < Tectu> vim* 2012-03-13T20:22:42 < Thorn> learn makefiles then 2012-03-13T20:22:52 < Tectu> i am trying to do that right now 2012-03-13T20:22:58 < Thorn> you can use objdump and/or readelf to check what's inside your .elf 2012-03-13T20:23:29 < Thorn> I can pastebin one of my makefiles for you, it's far from ideal but at least it works and you can try to understand how 2012-03-13T20:23:56 < Tectu> i would really really like that! 2012-03-13T20:26:56 < Thorn> http://pastebin.com/dEzgmVc9 2012-03-13T20:27:32 < Tectu> thank you very much 2012-03-13T20:32:21 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-13T20:37:34 < Tectu> Thorn, but back to the starupt code... 2012-03-13T20:37:55 < Tectu> that's all the vector definition etc? 2012-03-13T20:38:11 < jpa-> and bss & data initialization 2012-03-13T20:39:22 < jpa-> something like http://paste.dy.fi/TaQ/plain 2012-03-13T20:45:00 < Thorn> stm32f4discovery Vdd jumps visibly when it flashes all 4 leds 2012-03-13T20:45:26 < zyp> «visibly» how? 2012-03-13T20:45:42 < Thorn> on the scope 2012-03-13T20:45:52 < Thorn> something like 10mV 2012-03-13T20:46:01 < zyp> at what point are you measuring? 2012-03-13T20:46:48 < Thorn> Vdd pin on one of the pin headers 2012-03-13T20:47:08 < Tectu> jpa-, thank you for the link. I never saw that before in any tutorial, documentation etc. why does my code work without that? 2012-03-13T20:47:52 < zyp> probably because you haven't written anything depending on global vars being set or cleared yet 2012-03-13T20:48:38 < Thorn> there's also clock setup 2012-03-13T20:48:53 < zyp> .data contains initialized memory that have to be copied from flash, while .bss contains zero-initialized memory 2012-03-13T20:49:27 -!- sunilg [~chatzilla@59.97.192.126] has quit [Ping timeout: 272 seconds] 2012-03-13T20:49:49 < zyp> stm32 boots on the HSI oscillator, and if you don't do anything you'll continue running on that 2012-03-13T20:50:28 < Tectu> jep, that one i knew 2012-03-13T20:51:53 < Thorn> and there's a whole lot of 20-30MHz noise in Vdd 2012-03-13T20:52:18 < Thorn> like 20mVp-p 2012-03-13T20:52:59 < zyp> sounds normal 2012-03-13T20:58:12 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-13T20:58:14 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-13T21:04:45 <+Steffanx> nu 2012-03-13T21:06:16 -!- sunilg [~chatzilla@59.97.192.126] has joined ##stm32 2012-03-13T21:42:03 -!- sunilg [~chatzilla@59.97.192.126] has quit [Ping timeout: 255 seconds] 2012-03-13T21:51:24 -!- Laurenceb_ [~Laurence@host86-179-87-91.range86-179.btcentralplus.com] has joined ##stm32 2012-03-13T22:04:38 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-13T22:08:30 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 265 seconds] 2012-03-13T22:20:34 * Laurenceb_ has an evil idea 2012-03-13T22:20:48 < Laurenceb_> put Raspberry pi linux on a roku2 2012-03-13T22:35:43 < zyp> raspberry pi linux? 2012-03-13T22:36:19 < Thorn> when I try to scope data coming into my MBI5026 chip (74hc595-like) it stops working. how much of a load is a probe? 1M, no? 2012-03-13T22:50:27 < Laurenceb_> use the linux source from raspberry pi 2012-03-13T22:50:39 < Laurenceb_> but nvm - roku already runs linux 2012-03-13T23:04:17 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [] 2012-03-13T23:39:13 -!- Laurenceb_ [~Laurence@host86-179-87-91.range86-179.btcentralplus.com] has quit [Read error: Connection reset by peer] 2012-03-13T23:43:13 -!- peabody124 [~peabody12@128.249.96.123] has quit [Remote host closed the connection] 2012-03-13T23:43:28 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-13T23:44:07 -!- Laurenceb_ [~Laurence@host86-179-87-91.range86-179.btcentralplus.com] has joined ##stm32 --- Day changed Wed Mar 14 2012 2012-03-14T00:02:57 -!- peabody124_ [~peabody12@128.249.96.123] has joined ##stm32 2012-03-14T00:05:47 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 244 seconds] 2012-03-14T00:05:47 -!- peabody124_ is now known as peabody124 2012-03-14T00:07:37 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-14T00:07:53 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-14T00:19:53 -!- peabody124 [~peabody12@128.249.96.123] has quit [Read error: Connection reset by peer] 2012-03-14T00:20:04 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-14T00:49:31 < Laurenceb_> nice 2012-03-14T01:09:02 -!- Laurenceb_ [~Laurence@host86-179-87-91.range86-179.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-03-14T01:30:14 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-14T01:37:14 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-14T02:18:42 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-03-14T02:41:41 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-14T02:46:08 < zippe> flyback: sadly they chose not to use AVR-compatible pinouts 2012-03-14T02:46:39 < zippe> Would have been pretty awesome if they'd swapped a few things around and been pin-compatible with the 328 2012-03-14T03:48:14 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-14T05:22:19 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Read error: Connection reset by peer] 2012-03-14T05:41:27 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 272 seconds] 2012-03-14T05:43:27 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-14T06:05:33 -!- eruif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-14T06:06:46 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-14T06:08:03 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 272 seconds] 2012-03-14T06:13:31 -!- sunilg [~chatzilla@59.97.192.126] has joined ##stm32 2012-03-14T06:27:50 -!- eruif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 252 seconds] 2012-03-14T06:35:35 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-14T06:44:31 -!- sunilg [~chatzilla@59.97.192.126] has quit [Ping timeout: 264 seconds] 2012-03-14T08:19:26 -!- Tekno [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 265 seconds] 2012-03-14T08:20:47 -!- Tekno [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-03-14T08:43:11 -!- Tekno [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer] 2012-03-14T08:43:32 -!- Tekno [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-03-14T08:53:56 -!- sunilg [~chatzilla@59.97.194.192] has joined ##stm32 2012-03-14T09:17:00 -!- Tekno [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer] 2012-03-14T09:25:08 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-03-14T09:33:38 -!- sunilg [~chatzilla@59.97.194.192] has quit [Ping timeout: 240 seconds] 2012-03-14T09:35:33 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-03-14T10:49:18 -!- Laurenceb_ [~Laurence@host86-179-87-91.range86-179.btcentralplus.com] has joined ##stm32 2012-03-14T11:01:50 -!- Laurenceb_ [~Laurence@host86-179-87-91.range86-179.btcentralplus.com] has quit [Ping timeout: 260 seconds] 2012-03-14T12:21:28 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-14T12:54:50 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-14T13:14:32 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Remote host closed the connection] 2012-03-14T13:25:19 -!- sunilg [~chatzilla@59.97.194.192] has joined ##stm32 2012-03-14T13:46:07 < corecode> o hi 2012-03-14T13:46:15 < jpa-> hello 2012-03-14T13:49:52 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has quit [Remote host closed the connection] 2012-03-14T13:50:04 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-14T13:50:38 < corecode> any idea how i could find out what USB series resistors i need for the STM32L1 ICs? 2012-03-14T13:50:44 -!- eruif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-14T13:51:14 < jpa-> 27 ohm, as usual? 2012-03-14T13:51:26 < corecode> but where is that written? 2012-03-14T13:51:52 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 252 seconds] 2012-03-14T13:52:12 < jpa-> not necessarily anywhere else than the reference schematic 2012-03-14T13:52:13 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-14T13:52:20 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-14T13:52:25 < corecode> i didn't find a reference schematic for the L1 line yet 2012-03-14T14:01:07 -!- jnosky [~foo@c-68-39-251-30.hsd1.nj.comcast.net] has quit [] 2012-03-14T14:08:48 < corecode> olimex uses 22R 2012-03-14T14:08:59 < corecode> i guess i can live with that 2012-03-14T14:30:39 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-14T15:40:41 < Tectu> guys, question to the stmlib: in the examples, the interrupt handler are in stm32f10x_it.h/.c but where is the actual vector table? I did it myself this time: http://pastebin.com/DvSAR5DM (at the bottom) 2012-03-14T15:45:01 < Tectu> do you understand, what i mean? 2012-03-14T15:49:39 < zyp> I understand what you mean, but I don't know the answer :p 2012-03-14T15:50:39 < Tectu> why does it work then? :D because when i remove the bottom part, the vector array in my code, nothing happens ;-) 2012-03-14T15:52:05 < zyp> you're using stdlib? and stdlib's linker script? 2012-03-14T15:52:22 < zyp> in that case, nothing actually use your vector array 2012-03-14T15:52:38 < Tectu> i don't use the std linker script, i use my own 2012-03-14T15:52:42 < Tectu> but then i understand 2012-03-14T15:53:12 < Tectu> okay, other question... when i want to put that part into the stm32f10x_it.h, how am i able to get the address to the main()? because it says, obviously, that there is no reference to main 2012-03-14T15:53:18 < zyp> if you're linking in two vector tables, the ones that is placed first will be used 2012-03-14T15:53:38 < Tectu> can i do that without passing the pointer manually? 2012-03-14T15:54:09 < zyp> yes, that's the linker's job 2012-03-14T15:54:35 < Tectu> aw 2012-03-14T15:54:47 < Tectu> i have a very very basic linker script: http://pastebin.com/yqWXMNjF 2012-03-14T15:55:30 -!- wiza69 [~foo@c-68-39-251-30.hsd1.nj.comcast.net] has joined ##stm32 2012-03-14T15:55:48 -!- wiza69 is now known as jnosky 2012-03-14T15:55:53 -!- jnosky [~foo@c-68-39-251-30.hsd1.nj.comcast.net] has quit [Client Quit] 2012-03-14T15:55:54 < Tectu> zyp, how to make that working the easiest way? 2012-03-14T15:56:43 < zyp> first of all, what are you trying to do? 2012-03-14T15:57:07 -!- wiza69 [~foo@c-68-39-251-30.hsd1.nj.comcast.net] has joined ##stm32 2012-03-14T15:57:17 < zyp> are you trying to use stdlib or are you making everything fron scratch? 2012-03-14T15:57:23 -!- wiza69 is now known as jnosky 2012-03-14T15:57:32 < Tectu> zyp, set up a template folder for using afterwards. i got a stm32f103 board, just for education, i want to use the stmlib in first case, and bring every interface etc. to work 2012-03-14T15:57:52 < zyp> then why are you doing your own linker script if you are using stdlib? 2012-03-14T15:58:08 < Tectu> zyp, because 2012-03-14T15:58:08 < Tectu> well 2012-03-14T15:58:11 < Tectu> no idea >.< 2012-03-14T15:58:30 < Tectu> all the .ld files in the stmlib seams to be very specific 2012-03-14T15:58:35 < Tectu> one for ROM, one for RAM etc? 2012-03-14T15:58:35 < zyp> right, there's your problem, fix that first 2012-03-14T15:59:07 < zyp> (find out what you want to do first) 2012-03-14T15:59:36 < Tectu> okay. another question: when i want to use things like memcpy: i did #include but the compiler says, that there is no reference to memcpy. Is that also a linker problem? I have no compiler flags like -ffreestanding or -fno-hosted 2012-03-14T16:01:40 < Tectu> zyp, http://pastebin.com/Myjk5wLS 2012-03-14T16:01:52 < Tectu> it seems to me, that they are very very specific, the linker scripts 2012-03-14T16:02:10 < Tectu> at least that one in the Template folder 2012-03-14T16:02:31 < zyp> very specific how? 2012-03-14T16:04:55 < Tectu> i am not sure which ones i have to take etc. or which one, that's my problem 2012-03-14T16:05:05 < Tectu> i have an stm32f103vet 2012-03-14T16:05:36 < zyp> the linker script is kind of the interface between the code and the hardware, so it have to match both the code and the hardware 2012-03-14T16:09:11 < Tectu> okay, i'll work on that 2012-03-14T16:09:25 < Tectu> do you have an answer to my other quesiton, above, with the memcpy etc? 2012-03-14T16:10:56 < zyp> hang on, I'm at work, so I have to appear as I'm working :p 2012-03-14T16:11:12 < Tectu> hrhr, don't hurry :) 2012-03-14T16:11:42 < zyp> exactly what error do you get? maybe just pastebin entire compiler output 2012-03-14T16:15:19 < Tectu> zyp, http://pastebin.com/7YhgqfH5 2012-03-14T16:15:32 < Tectu> line 4, 5 2012-03-14T16:16:58 < zyp> right, that's the linker giving an error 2012-03-14T16:17:10 < zyp> that means that it can't find the actual implementation of memcpy 2012-03-14T16:17:30 < zyp> i.e. you aren't linking with the library that memcpy is defined in 2012-03-14T16:19:21 < Tectu> so, basicly, my linkerscript dosen't work with the stm lib 2012-03-14T16:19:58 < zyp> no, this is not related to linkerscript 2012-03-14T16:21:21 < Tectu> ah, i was confused 2012-03-14T16:21:26 < Tectu> so, where is the problem? 2012-03-14T16:21:37 < Tectu> i am pretty sure that my archlinux does have a string.h ;-) 2012-03-14T16:21:48 < Tectu> and as i said, it's #include not "string.h" 2012-03-14T16:21:59 < zyp> that's irrelevant 2012-03-14T16:22:04 < Tectu> and my compilerflags are: -c -fno-common -Os -mcpu=cortex-m3 -mthumb 2012-03-14T16:22:10 < Tectu> so no -ffreestanding or something else 2012-03-14T16:22:32 < zyp> when you compile that with arm-eabi-none-gcc, you're using the string.h that's included with the compiler toolchain, not the host system 2012-03-14T16:23:18 < zyp> and the problems is not there, the compiler would complain if string.h were missing, you wouldn't even come to the linking stage 2012-03-14T16:23:49 < zyp> remember that compilation is a multi-stage process 2012-03-14T16:24:15 < zyp> each .c-file are compiled into an .o-file, this is called a translation unit 2012-03-14T16:25:06 < zyp> the .h files tells the compiler which symbols (functions are one kind of symbols) exists in other translation units 2012-03-14T16:25:33 < zyp> so string.h tells you that there exists a symbol memcpy in another translation unit 2012-03-14T16:25:49 < zyp> so the compiler inserts a reference to the memcpy symbol 2012-03-14T16:26:35 < zyp> actually, the .o file is called an object, each translation unit results in an object file 2012-03-14T16:26:50 < Tectu> jep 2012-03-14T16:26:53 < Tectu> i fully agree 2012-03-14T16:27:02 < Tectu> and yes, i use arm-non-eabi-gcc 2012-03-14T16:27:06 < zyp> an object is executable code with unresolved symbols 2012-03-14T16:27:29 < zyp> then the linkers job is to put all the objects together and resolve all symbol references 2012-03-14T16:28:14 < zyp> and when the linker complains that it can't find memcpy, it means that you are not linking with any object file which actually contains the memcpy symbol 2012-03-14T16:28:18 < Tectu> this means i have to give the path to the object from string.c? 2012-03-14T16:28:48 < Tectu> i didn't new that arm-none-eabi-gcc has it's own string.h? i guess it's from newlib, isn't it? 2012-03-14T16:28:58 < zyp> yes 2012-03-14T16:29:38 < zyp> and the definition also comes from newlib 2012-03-14T16:30:12 < zyp> apparently your linker doesn't link with newlib by default, so it looks like you might have to do that yourself 2012-03-14T16:30:30 < Tectu> ./arm-none-eabi/include/sys/string.h 2012-03-14T16:30:30 < Tectu> ./arm-none-eabi/include/string.h 2012-03-14T16:30:41 < Tectu> what's the difference? 2012-03-14T16:31:14 < zyp> forget about the .h files, that's not the problem 2012-03-14T16:31:33 < zyp> the problem is that you're not linking with the .o-file containing memcpy 2012-03-14T16:31:58 < zyp> and the .o file is probably stored in some .a file somewhere 2012-03-14T16:32:08 < zyp> .a files are collections of objects 2012-03-14T16:33:13 < Tectu> aw 2012-03-14T16:33:24 < Tectu> how do i find that out and link it now porperly? 2012-03-14T16:33:28 < Tectu> properly* 2012-03-14T16:33:56 < zyp> I'd tell you if I knew 2012-03-14T16:34:07 < zyp> try -lc 2012-03-14T16:34:22 < zyp> in LIBS or LDFLAGS or whatever you have in your makefile 2012-03-14T16:35:44 < Tectu> -lc arm-none-eabi-ld: cannot find -lc and -Lc: same error as pasted 2012-03-14T16:36:04 < zyp> try -lg 2012-03-14T16:36:45 < zyp> if this does not work, you'll have to check some documentation 2012-03-14T16:37:52 < Tectu> sure that it's no capital 'L'? it says arm-none-eabi-ld: cannot find -lg 2012-03-14T16:38:06 < Tectu> with -Ig or with -Lg it gives the same error about missing reference to memcpy 2012-03-14T16:38:39 < zyp> yes 2012-03-14T16:38:46 < Tectu> okay 2012-03-14T16:38:48 < Tectu> so 2012-03-14T16:38:52 < Tectu> you've no idea? 2012-03-14T16:38:55 < zyp> -l links with libraries and -L specifies where to search for libraries 2012-03-14T16:39:02 < Tectu> aaaah! 2012-03-14T16:39:16 < Tectu> what is c and g for a library? 2012-03-14T16:39:33 < zyp> that would search for libc.a and libg.a, respectively 2012-03-14T16:39:36 < Tectu> isn't there a tool which searches all libraries for a memcpy symbol? 2012-03-14T16:40:05 < zyp> objdump can list the symbols in a library 2012-03-14T16:40:19 < Tectu> does not help, when i don't know which library 2012-03-14T16:40:20 < Tectu> right? 2012-03-14T16:40:58 < zyp> well, first of all you'd want to find where your toolchain stores your libraries, and check which you actually have 2012-03-14T16:41:42 < zyp> it's in some lib folder under the toolchain dir, but I don't remember exactly where 2012-03-14T16:42:30 < Tectu> i have a libgcc.a under my arm-none-eabi-gcc/lib 2012-03-14T16:43:17 < zyp> arm-none-eabi/lib/thumb/v7m 2012-03-14T16:43:29 < zyp> that's the ones that are used for cortex-m3 I think 2012-03-14T16:44:59 < Tectu> /home/tectu/projects/arm/toolchain/arm-none-eabi/lib/thumb/v7 2012-03-14T16:45:01 < Tectu> there is a libc.a 2012-03-14T16:45:14 < zyp> yep, I checked with objdump here 2012-03-14T16:45:18 -!- eruif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 252 seconds] 2012-03-14T16:45:28 < zyp> libc.a contains memcpy.o which contains the memcpy symbol 2012-03-14T16:45:40 < Tectu> but i've also a thumb2 folder, also with a libc.a 2012-03-14T16:45:58 < Tectu> okay, so i have to link /home/tectu/projects/arm/toolchain/arm-none-eabi/lib/thumb/v7/libc.a ? 2012-03-14T16:46:19 < zyp> that sounds about right 2012-03-14T16:46:42 < Tectu> i do that now with -L/home/tectu/projects/arm/toolchain/arm-none-eabi/lib/thumb/v7/libc.a in the LDFLAGS? 2012-03-14T16:46:54 < Tectu> i am never sure where link what with what option, -l or -L 2012-03-14T16:46:57 < zyp> oh, hang on, now I remember why you don't get that by default 2012-03-14T16:47:04 < Tectu> why so? 2012-03-14T16:47:06 < zyp> you have LD = arm-none-eabi-ld 2012-03-14T16:47:09 < Tectu> right 2012-03-14T16:47:23 < zyp> if you use LD = arm-none-eabi-gcc, gcc will then invoke ld with default options 2012-03-14T16:47:39 < Tectu> is that good or bad? any disadvantages? 2012-03-14T16:47:42 < zyp> however, you may have to adjust the LDFLAGS if you do that 2012-03-14T16:47:53 < Tectu> but yes, it compiles without any errors then 2012-03-14T16:48:05 < zyp> nice, then it's probably fine 2012-03-14T16:48:16 < Tectu> probably? ;-) 2012-03-14T16:48:22 < Tectu> i have probably :D 2012-03-14T16:48:42 < zyp> I strive to not tell lies, so I say probably when I'm not 100% sure :) 2012-03-14T16:48:54 < Tectu> i like you 2012-03-14T16:48:56 < Tectu> arg, that* 2012-03-14T16:48:58 < Tectu> ;-) 2012-03-14T16:49:47 < Tectu> btw, to your question from a while before: I know now what i want to do: build my own library from scratch. My purpose is it, to learn how to handle stm32 MCUs now, that i will be able to use them in future projects. I hate it to learn with a deadline 2012-03-14T16:50:28 < zyp> :) 2012-03-14T16:50:50 < Tectu> but i am very afraid 2012-03-14T16:50:52 -!- sunilg [~chatzilla@59.97.194.192] has quit [Ping timeout: 245 seconds] 2012-03-14T16:51:01 < Tectu> at most to the linkerscript thing 2012-03-14T16:51:44 < zyp> linker scripts are very easy 2012-03-14T16:52:26 < zyp> they just says where in memory different sections should be placed 2012-03-14T16:53:26 < zyp> basicly that code should be placed in flash and variables in ram 2012-03-14T16:55:24 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-14T16:56:04 < zyp> so it depends on the amount and location of flash and ram 2012-03-14T16:56:38 < zyp> and then you have initialized variables, the initialization data must be stored in flash 2012-03-14T16:56:46 < Tectu> but i took a look to the scripts in the stmlib 2012-03-14T16:56:54 < Tectu> that is far far far different to mine 2012-03-14T16:57:23 < zyp> and your startup code must load the initialization data from flash to ram, so the linker script has to export symbols that the initialization code can make references to 2012-03-14T16:57:57 < zyp> it's pretty much the same either way, it's just more messy and more other stuff 2012-03-14T16:58:01 < jpa-> many linker scripts have extra stuff that is required to support C++ exceptions (.exidx), malloc (heap_end or sbrk something) and maybe other things 2012-03-14T16:58:16 < zyp> yep 2012-03-14T16:58:33 < zyp> and you also have a seperate section for the vector table to place it first 2012-03-14T16:59:08 < Tectu> hmm 2012-03-14T16:59:22 < Tectu> i just don't know how to write linkerscripts, that's my main problem 2012-03-14T16:59:34 < zyp> it's like most code, it's not hard to write from scratch, but hard to read an already written one with lots of uncommented stuff 2012-03-14T16:59:37 < Tectu> my script is that one from gostm32.blogspot.com. i just put other memorysizes in 2012-03-14T17:00:00 < zyp> so you could just start from the basics and expand it as needed 2012-03-14T17:00:46 < zyp> anyway, I'm done at work for today, so I'm going home, see you later 2012-03-14T17:00:53 < Tectu> see you 2012-03-14T17:01:05 < Tectu> thank you very very much for your great help and very clear explanations, zyp ! 2012-03-14T17:01:55 < Tectu> jpa-, well, the startupcode, is just something like this, nothing more, right? http://pastebin.com/PrGH0LRQ 2012-03-14T17:03:53 < zyp> depends if you are supporting C++ or not 2012-03-14T17:04:07 < zyp> http://cgit.jvnv.net/suzumebachi/tree/entry.cpp <- mine looks like this 2012-03-14T17:04:24 < zyp> http://cgit.jvnv.net/suzumebachi/tree/suzumebachi.ld <- and this is the corresponding linker script 2012-03-14T17:05:26 < Tectu> i don't want to support c++ 2012-03-14T17:05:27 < zyp> (and now I leave) 2012-03-14T17:05:32 < Tectu> thank you, zyp 2012-03-14T17:08:46 -!- sunilg [~chatzilla@59.97.197.251] has joined ##stm32 2012-03-14T17:12:48 < Thorn> uclinux on stm32 http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/APPLICATION_NOTE/CD00242717.pdf 2012-03-14T17:20:40 < Laurenceb> needs external memory 2012-03-14T18:02:40 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-14T18:35:54 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-14T18:41:25 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-14T19:16:31 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-14T19:16:32 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-14T19:21:43 <+Steffanx> nu 2012-03-14T19:22:14 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-14T19:37:25 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has left ##stm32 [] 2012-03-14T19:39:41 -!- sunilg [~chatzilla@59.97.197.251] has quit [Ping timeout: 255 seconds] 2012-03-14T19:42:09 -!- sunilg [~chatzilla@59.97.197.251] has joined ##stm32 2012-03-14T20:00:51 -!- sunilg [~chatzilla@59.97.197.251] has quit [Ping timeout: 252 seconds] 2012-03-14T20:01:38 -!- sunilg [~chatzilla@59.97.193.221] has joined ##stm32 2012-03-14T20:22:45 -!- ziph [~ziph@office.bitplantation.com] has quit [Ping timeout: 248 seconds] 2012-03-14T20:39:09 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: ureif] 2012-03-14T20:50:55 -!- ziph [~ziph@office.bitplantation.com] has joined ##stm32 2012-03-14T21:02:19 < Tectu> zyp, are you there, sir? i have just one quick question to you 2012-03-14T21:02:53 < zyp> I am 2012-03-14T21:03:02 <+Steffanx> Sir :) 2012-03-14T21:03:56 < Tectu> can you please help me... i am still confused about linking a .a library. I wan't to use my libopencm3 library. I know exactly the absolute path to the .a file... how and where do i have to link that? 2012-03-14T21:04:27 < zyp> use -L with the directory then -l with the name of the file without lib and .a 2012-03-14T21:06:07 < Tectu> aah, but at LDFLAGS, right? -L/home/tectu/projects/arm/toolchain/arm-none-eabi/lib/ -lopencm3 2012-03-14T21:06:54 < zyp> something like that 2012-03-14T21:06:59 < Tectu> 'something' ? 2012-03-14T21:07:49 < Thorn> I'm starting to get some signs of life from mpsse 2012-03-14T21:19:09 -!- sunilg [~chatzilla@59.97.193.221] has quit [Read error: Connection timed out] 2012-03-14T21:20:50 -!- sunilg [~chatzilla@59.97.193.221] has joined ##stm32 2012-03-14T21:43:33 -!- Laurenceb_ [~Laurence@host86-179-87-91.range86-179.btcentralplus.com] has joined ##stm32 2012-03-14T21:59:37 -!- sunilg [~chatzilla@59.97.193.221] has quit [Read error: Connection timed out] 2012-03-14T22:00:51 -!- sunilg [~chatzilla@59.97.193.221] has joined ##stm32 2012-03-14T22:23:55 -!- sunilg [~chatzilla@59.97.193.221] has quit [Read error: Connection timed out] 2012-03-14T22:24:51 -!- sunilg [~chatzilla@59.97.193.221] has joined ##stm32 2012-03-14T22:38:42 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [] 2012-03-14T22:45:05 -!- Laurenceb_ [~Laurence@host86-179-87-91.range86-179.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-03-14T22:46:45 -!- sunilg [~chatzilla@59.97.193.221] has quit [Ping timeout: 252 seconds] 2012-03-14T22:58:22 -!- Laurenceb_ [~Laurence@host86-146-188-56.range86-146.btcentralplus.com] has joined ##stm32 2012-03-14T23:00:33 -!- sunilg [~chatzilla@59.97.193.221] has joined ##stm32 2012-03-14T23:06:36 -!- sunilg [~chatzilla@59.97.193.221] has quit [Ping timeout: 244 seconds] 2012-03-14T23:34:15 < philpem> Has anyone had any issues with division with the STM32 and GCC? 2012-03-14T23:34:59 < philpem> GCC generates a call to a function called "__aeabi_uidivmod" for every divide or modulo operation, and that seems to throw some sort of exception when GCC tries to execute it. 2012-03-14T23:36:13 < philpem> GDB reports a load of "undefined instruction" errors in the code for that function, and printf("%d", [any integer]) dies horribly 2012-03-14T23:39:14 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-14T23:43:24 < zyp> sounds like you're not compiling for the right architecture 2012-03-14T23:43:35 < zyp> or linking with libs not compiled for the right architecture 2012-03-14T23:43:52 < zyp> how does your compile and link commands look? 2012-03-14T23:46:23 <+Steffanx> I guess that's hard to tell 2012-03-14T23:49:33 < philpem> right,... the code is ending up in WWDG_IRQHandler 2012-03-14T23:49:59 < philpem> build command: arm-none-eabi-gcc -c -mcpu=cortex-m3 -mthumb -Wall -g -ggdb -DSTM32F10X_MD_VL -DUSE_STDPERIPH_DRIVER -I/home/philpem/dev/stm32/newproj/vendor/ST/STM32-StdPeriph/CMSIS/CM3/CoreSupport -I/home/philpem/dev/stm32/newproj/vendor/ST/STM32-StdPeriph/CMSIS/CM3/DeviceSupport/ST/STM32F10x -I/home/philpem/dev/stm32/newproj/vendor/ST/STM32-StdPeriph/STM32F10x_StdPeriph_Driver/inc -o obj/system_stm32f10x.o src/system_stm32f10x.c 2012-03-14T23:50:52 < philpem> you know what? I'm not going to spam the channel with my full log.. pastebin: http://pastebin.com/X69cA3M9 2012-03-14T23:52:01 < philpem> linker script: http://pastebin.com/kScHkJJh --- Day changed Thu Mar 15 2012 2012-03-15T00:00:54 < zyp> WWDG? did you enable the watchdog? 2012-03-15T00:02:33 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Read error: Operation timed out] 2012-03-15T00:15:56 < philpem> nope 2012-03-15T00:16:01 < philpem> the code leaves the watchdog off 2012-03-15T00:16:31 < philpem> only thing I'm turning on is APB2's GPIOA, GPIOD, AFIO and USART. 2012-03-15T00:16:43 < philpem> then bringing up USART1 2012-03-15T00:17:13 < philpem> printf the CPU UniqueID and amount of available flash... and it's the decimal printf of the flash amount which frags it. 2012-03-15T00:18:18 < philpem> I don't have any vectors set, so any interrupt, exception or whatever is just going to land in a loop (and it seems they all end up in WWDG) 2012-03-15T00:25:38 < zyp> then you should not end up in WWDG_IRQHandler 2012-03-15T00:26:31 < zyp> it's maybe an aliased symbol used for all unhandled interrupts? 2012-03-15T00:26:51 < philpem> it's getting thrown into Hardfault_Handler now I'm pulling in the default "spin on any interrupt" template 2012-03-15T00:27:14 < zyp> do an «info registers» in gdb and check the psr varlue 2012-03-15T00:27:32 < philpem> xpsr 0x1000003 16777219 2012-03-15T00:27:55 < zyp> right 2012-03-15T00:28:03 < zyp> that means it's in ISR 3 2012-03-15T00:28:14 < zyp> which IIRC is hardfault 2012-03-15T00:29:22 < zyp> stack, reset, nmi, hardfault… 2012-03-15T00:29:24 < zyp> right 2012-03-15T00:30:38 < zyp> can you also get the contents of SCB.HFSR? 2012-03-15T00:30:41 < philpem> "hard fault: an error during interrupt processing" 2012-03-15T00:31:01 < zyp> p/x *(uint32_t*)0xE000ED2C 2012-03-15T00:31:17 < philpem> (gdb) p/x *(uint32_t*)0xe000ed2c 2012-03-15T00:31:17 < philpem> $1 = 0x40000000 2012-03-15T00:31:48 < philpem> forced hardfault 2012-03-15T00:31:54 < zyp> yep 2012-03-15T00:32:03 < zyp> then get CFSR 2012-03-15T00:32:27 < philpem> (gdb) p/x *(uint32_t*)0xe000ed28 2012-03-15T00:32:27 < philpem> $2 = 0x10000 2012-03-15T00:32:42 < philpem> undefined instruction 2012-03-15T00:32:45 < zyp> yep 2012-03-15T00:32:58 < philpem> (wow, the ST ref manuals ARE more useful in dead-tree form! XD) 2012-03-15T00:33:23 < zyp> I prefer arm's own documentation 2012-03-15T00:33:24 < philpem> just a shame the 32L-Discovery ref manual series is rather too large to print.. the VL is just right :) 2012-03-15T00:33:31 < zyp> http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0552a/CIHFDJCA.html 2012-03-15T00:34:27 < zyp> «When this bit is set to 1, the PC value stacked for the exception return points to the undefined instruction.» 2012-03-15T00:35:00 < zyp> I suggest you dig that out, do a disassembly of the elf and check what instruction is located at that address 2012-03-15T00:35:30 < philpem> dump the stack then? 2012-03-15T00:35:41 < philpem> "bt f" doesn't produce anything useful... 2012-03-15T00:35:56 < philpem> (gdb) bt f 2012-03-15T00:35:56 < philpem> #0 HardFault_Handler () at src/stm32f10x_it.c:57 2012-03-15T00:35:56 < philpem> No locals. 2012-03-15T00:35:56 < philpem> #1 0xfffffff8 in ?? () 2012-03-15T00:35:56 < philpem> No symbol table info available. 2012-03-15T00:35:58 < philpem> #2 0xfffffff8 in ?? () 2012-03-15T00:36:00 < philpem> No symbol table info available. 2012-03-15T00:36:02 < philpem> Backtrace stopped: previous frame identical to this frame (corrupt stack?) 2012-03-15T00:36:09 < zyp> gdb doesn't handle interrupt returns 2012-03-15T00:36:25 < zyp> and I don't remember the exact offset of pushed address on top of my head 2012-03-15T00:36:46 < zyp> but you find it and do p/x *(uint32_t*)($sp + offset) 2012-03-15T00:37:15 < zyp> or ((uint32_t*)$sp)[word_offset] 2012-03-15T00:38:10 < philpem> (next thing on my implementation list: proper handlers for the fault traps with output via the UART or my SmartSerial debugger) 2012-03-15T00:38:18 < zyp> looks like it's the 6th word on stack 2012-03-15T00:38:45 < philpem> (gdb) p/x *(uint32_t*)($sp+(6*4)) 2012-03-15T00:38:45 < philpem> $5 = 0x8001975 2012-03-15T00:38:55 < zyp> looks like a flash address 2012-03-15T00:39:01 < philpem> (gdb) x/i 0x8001975 2012-03-15T00:39:01 < philpem> 0x8001975 <_vfprintf_r+36>: ldr r4, [sp, #32] 2012-03-15T00:39:31 < zyp> huh? 2012-03-15T00:39:44 < zyp> pastebin the complete disassembly? 2012-03-15T00:41:41 * philpem is stepi-ing... hang on 2012-03-15T00:41:57 < philpem> 0x08002742 <_vfprintf_r+3570>: blx 0x8007134 <__aeabi_uidivmod> 2012-03-15T00:42:22 < zyp> run arm-none-eabi-objdump -d on the elf file 2012-03-15T00:43:25 < philpem> 08007134 <__aeabi_uidivmod>: 2012-03-15T00:43:25 < philpem> 8007134: e3510000 cmp r1, #0 2012-03-15T00:43:25 < philpem> 8007138: 0afffff8 beq 8007120 <__aeabi_uidiv+0xe8> 2012-03-15T00:43:25 < philpem> 800713c: e92d4003 push {r0, r1, lr} 2012-03-15T00:43:25 < philpem> 8007140: ebffffbc bl 8007038 <__aeabi_uidiv> 2012-03-15T00:43:28 < philpem> 8007144: e8bd4006 pop {r1, r2, lr} 2012-03-15T00:43:30 < philpem> 8007148: e0030092 mul r3, r2, r0 2012-03-15T00:43:32 < philpem> 800714c: e0411003 sub r1, r1, r3 2012-03-15T00:43:34 < philpem> 8007150: e12fff1e bx lr 2012-03-15T00:43:44 < philpem> wait, that looks like ARM code, not thumbcode 2012-03-15T00:43:51 < zyp> exactly 2012-03-15T00:44:12 < philpem> wtf is gcc doing linking ARM code in when I've specified -mthumb?! 2012-03-15T00:44:40 < philpem> all the libgcc support functions are ARM code?! 2012-03-15T00:44:41 < zyp> anyway, when did 8001975 become 8007134? 2012-03-15T00:44:55 < zyp> no, toolchain ships with multiple versions of libgcc 2012-03-15T00:44:56 < philpem> I think that's a false start 2012-03-15T00:45:03 < zyp> both arm and thumb 2012-03-15T00:45:07 < philpem> I know it's falling over if I printf("%d") 2012-03-15T00:45:11 < philpem> so I single-stepped printf 2012-03-15T00:45:20 < philpem> until it hit the code which handled %d. 2012-03-15T00:45:44 < zyp> well, either way, you've got arm instructions in your binary 2012-03-15T00:45:44 < philpem> once it hit the divide, I landed in the hardfault handler, so I ran it again and stepi'd at the divide point. 2012-03-15T00:45:49 < zyp> get them out :p 2012-03-15T00:46:42 < philpem> well this is GCC's config: http://pastebin.com/fUBLGp5k 2012-03-15T00:47:02 < philpem> and I've already posted the build lines... it's speccing -mthumb on all the compile and link command lines 2012-03-15T00:47:15 < zyp> yes, they look right 2012-03-15T00:49:51 < zyp> so there is two possibilities, either the library is compiled wrong or the compiler picks the wrong library 2012-03-15T00:49:53 < philpem> well that's interesting. it's coming from libgcc.a 2012-03-15T00:50:12 < philpem> both the thumb and arm versions of that contain ARM code 2012-03-15T00:50:33 < zyp> right, then the thumb version is broken 2012-03-15T00:50:47 < philpem> there's thumb code in both, but a lot of the functions are raw arm code 2012-03-15T00:50:57 < zyp> I can check mine here, exactly which is broken? 2012-03-15T00:52:15 < zyp> hmm, where did you find libgcc? I have no libgcc under my arm-none-eabi toolchain 2012-03-15T00:52:33 < zyp> how did you obtain your toolchain? 2012-03-15T00:52:39 < philpem> custom built. 2012-03-15T00:52:58 < philpem> /opt/toolchains/arm-none-eabi-stm32/lib/gcc/arm-none-eabi/4.6.3/libgcc.a in my case 2012-03-15T00:53:04 < zyp> by hand or a script? 2012-03-15T00:53:07 < philpem> script. 2012-03-15T00:53:48 < philpem> https://bitbucket.org/philpem/mktoolchain/src 2012-03-15T00:53:50 < zyp> then I'd check the script for a possible bug first 2012-03-15T00:55:22 < zyp> I can't see anything there 2012-03-15T00:57:41 < zyp> well, I ought to go to bed now, good luck with tracking the rest of the problem 2012-03-15T00:57:59 < philpem> this is the platform config script: https://bitbucket.org/philpem/mktoolchain/src/4320cdc37e0f/platforms/arm_stm32.platform 2012-03-15T00:58:10 < philpem> and the actual builder shell script: https://bitbucket.org/philpem/mktoolchain/src/4320cdc37e0f/mktoolchain 2012-03-15T00:58:18 < zyp> I saw that, but I can't see anything that screams wrong 2012-03-15T00:58:22 < philpem> ok, zyp, thanks for your help. 2012-03-15T00:58:25 < philpem> yeah, same here :-/ 2012-03-15T00:58:36 < zyp> may be in the compiler package itself 2012-03-15T00:58:42 < zyp> search for related bugreports 2012-03-15T00:59:44 < philpem> oh, apparently it defaults to arm unless you build it for cortex-m3 :-/ 2012-03-15T00:59:46 < philpem> --with-arch=armv7-m --with-mode=thumb --with-float=soft 2012-03-15T01:01:11 < philpem> "use of these options is not very reliable and discouraged" 2012-03-15T01:02:21 < philpem> yuck, apparently gcc needs patching for thumb-only M3 :( 2012-03-15T01:31:49 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-15T01:50:15 -!- Laurenceb_ [~Laurence@host86-146-188-56.range86-146.btcentralplus.com] has quit [Ping timeout: 260 seconds] 2012-03-15T02:19:06 < philpem> WOOHOO! IT WORKS! 2012-03-15T02:19:19 < philpem> Needed two patches from https://github.com/MikeSmith/summon-arm-toolchain/tree/master/patches to get GCC to build in Thumb mode 2012-03-15T02:19:34 < philpem> these are patch-gcc-config-arm-t-arm-elf.diff and patch-libgcc-divide-exceptions.diff 2012-03-15T02:19:48 < philpem> but now I have a Thumb-only toolchain :3 2012-03-15T03:09:07 -!- hackkitten [~jigoku_ai@s529c4932.adsl.wanadoo.nl] has quit [Ping timeout: 252 seconds] 2012-03-15T03:18:46 -!- hackkitten [~jigoku_ai@s529c4932.adsl.wanadoo.nl] has joined ##stm32 2012-03-15T03:36:49 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-15T04:39:35 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-15T04:46:59 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-15T05:29:47 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-03-15T05:33:56 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-15T05:42:14 -!- peabody124 [~peabody12@128.249.96.123] has quit [Ping timeout: 245 seconds] 2012-03-15T06:27:28 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2012-03-15T06:46:16 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-15T07:19:50 -!- wattrod [wattrod@rrcs-67-78-118-6.sw.biz.rr.com] has quit [Ping timeout: 265 seconds] 2012-03-15T07:28:01 -!- wattrod [wattrod@rrcs-67-78-118-6.sw.biz.rr.com] has joined ##stm32 2012-03-15T09:28:12 -!- eruif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-15T09:29:19 -!- sunilg [~chatzilla@59.97.198.253] has joined ##stm32 2012-03-15T09:30:55 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 272 seconds] 2012-03-15T10:08:42 < Tectu> http://pastebin.com/j3P4VXBW 2012-03-15T10:08:47 < Tectu> why do they have so much linker files? 2012-03-15T10:08:56 < Tectu> why do they have a different linker script for differend IDEs? 2012-03-15T10:13:57 < zyp> are they actually different? 2012-03-15T10:14:45 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-03-15T10:18:41 < Tectu> not that much 2012-03-15T10:19:04 < Tectu> i can successfully use the GPIO stuff with the stmlib, but USART dosen't work. Not sure if that's because of the linkerscript or not :( 2012-03-15T10:20:52 < Tectu> script i use: http://pastebin.com/Eq6CzAH8 2012-03-15T10:21:02 < Tectu> this is from the template section from the stmlib itself 2012-03-15T10:21:05 < Tectu> so that should be right 2012-03-15T10:21:11 < Tectu> i just adjustet the memory length 2012-03-15T11:25:31 -!- Rious [~Rious@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Ping timeout: 276 seconds] 2012-03-15T11:29:02 < zyp> linkerscript shouldn't have anything to do with USART 2012-03-15T11:29:53 -!- theos [~theos@unaffiliated/theos] has joined ##stm32 2012-03-15T11:30:08 < theos> hi 2012-03-15T11:30:13 < Tectu> hello theos 2012-03-15T11:30:35 < theos> is it possible to port linux to stm32 boards? 2012-03-15T11:31:05 < theos> i am thinking of buying some 2012-03-15T11:31:34 < Tectu> yes, there is a uCLinux 2012-03-15T11:31:47 < Tectu> stm also has an application note published to that 2012-03-15T11:31:53 < theos> :o 2012-03-15T11:31:56 < Tectu> but it needs external memory etc. 2012-03-15T11:32:10 < Tectu> and in my opinion, linux is only nice on ARMv9 2012-03-15T11:32:17 < theos> thanks i will check that. 2012-03-15T11:32:19 < Tectu> for ARMv7, there is for example FreeRTOS 2012-03-15T11:32:23 < Tectu> but i am not a pro here 2012-03-15T11:32:26 < zyp> there is no ARMv9 2012-03-15T11:32:30 < Tectu> wait, i have the link somewhere 2012-03-15T11:32:45 < Tectu> here you go: http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/APPLICATION_NOTE/CD00242717.pdf 2012-03-15T11:32:52 < theos> armv7 chips support linux 2012-03-15T11:33:06 < theos> thanks 2012-03-15T11:33:06 < zyp> ARMv7 is the latest arm architecture 2012-03-15T11:33:39 < zyp> cortex-a is also v7 2012-03-15T11:33:45 < theos> yup 2012-03-15T11:34:20 < Tectu> aw 2012-03-15T11:34:26 < Tectu> then I remember wrong 2012-03-15T11:34:27 < Tectu> sorry 2012-03-15T11:34:33 < Tectu> but there you go with your PDF about it 2012-03-15T11:34:51 < Tectu> zyp, http://www.arm.com/products/processors/classic/arm9/ 2012-03-15T11:34:55 < Tectu> arm9 != armv9? 2012-03-15T11:34:58 < zyp> correct 2012-03-15T11:35:01 < zyp> ARM9 is ARMv4 2012-03-15T11:35:02 < theos> Tectu thanks :) 2012-03-15T11:35:21 < Tectu> aye 2012-03-15T11:35:28 < Tectu> you're welcome, theos 2012-03-15T11:35:42 < zyp> or v5 2012-03-15T11:35:49 < zyp> some ARM9 are v4 and some are v5 2012-03-15T11:36:08 -!- sunilg [~chatzilla@59.97.198.253] has quit [Ping timeout: 246 seconds] 2012-03-15T11:36:26 < zyp> and ARM11 is v6, and all cortex-es are v7 except M0 which still is v6 2012-03-15T11:36:43 < Tectu> ARMv7 is which ARM then? 2012-03-15T11:36:53 < Tectu> and what's the difference between ARMxx and ARMvXX 2012-03-15T11:37:19 < zyp> ARMxx is family, ARMvxx is architecture version 2012-03-15T11:37:44 < zyp> v7 is cortex 2012-03-15T11:37:50 < Tectu> aah 2012-03-15T11:38:11 < Tectu> ARM Cortex-A8 is also ARMv7 then? 2012-03-15T11:38:17 < zyp> yes 2012-03-15T11:38:36 < zyp> I like the cortex naming scheme, it makes much more sense than the old family names 2012-03-15T11:39:22 < zyp> both cortex-a, cortex-r and cortex-m are ARMv7 (except cortex-m0), so they share the same architecture, but differ in complexity and purpose 2012-03-15T11:39:32 < theos> hmm that pdf is for stm32f10 boards 2012-03-15T11:39:52 < Tectu> theos, right 2012-03-15T11:40:02 < Tectu> theos, where's the problem? 2012-03-15T11:40:15 < theos> Tectu i can only get stm32f4 discovery :/ 2012-03-15T11:40:49 < zyp> stm32f4 doesn't have any extra memory on the board 2012-03-15T11:41:00 < zyp> and the internal memory is probably not enough to run linux 2012-03-15T11:41:04 < theos> hmm 2012-03-15T11:41:12 < zyp> (and even if it were, it would probably be pretty pointless) 2012-03-15T11:42:11 < Tectu> because you have no input/output peripherials?! 2012-03-15T11:42:47 < Tectu> or which is your argument, zyp? 2012-03-15T11:44:00 < theos> that pdf says STM3210E-EVAL board 2012-03-15T11:44:16 -!- Rious [~Rious@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2012-03-15T11:46:49 < Tectu> theos, yes, STM do have their own development boards, and they name it like STM3210X where X is a letter from A to F or something, but not sure about that 2012-03-15T11:47:36 < zyp> Tectu, no, because I don't see any point in linux when the board is barely powerful enough to run linux itself 2012-03-15T11:48:06 < zyp> linux is just a kernel, so it's pretty useless by itself 2012-03-15T11:49:19 < Tectu> right right 2012-03-15T12:02:44 -!- Laurenceb_ [~Laurence@host86-146-188-56.range86-146.btcentralplus.com] has joined ##stm32 2012-03-15T12:07:08 < eruif> Linux on a STM32 ? How do you implement privilege levels ? 2012-03-15T12:15:30 < Tectu> eruif, well, I'd say take a look to uCLinux 2012-03-15T12:15:59 < eruif> Tectu: everything runs as root ? 2012-03-15T12:16:26 < ziph> The STM32 has an MPU doesn't it? 2012-03-15T12:16:33 < zyp> some do 2012-03-15T12:16:45 < ziph> Ah, right. 2012-03-15T12:18:29 -!- Laurenceb_ [~Laurence@host86-146-188-56.range86-146.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-03-15T12:24:36 < Tectu> eruif, i have no idea, that's why i say, take a look to uCLinux, when you really want to know it 2012-03-15T12:24:50 < eruif> Tectu: :) 2012-03-15T12:32:24 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-15T12:32:27 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-15T12:49:47 -!- theos [~theos@unaffiliated/theos] has quit [Ping timeout: 272 seconds] 2012-03-15T12:57:42 -!- theos [~theos@unaffiliated/theos] has joined ##stm32 2012-03-15T12:58:05 -!- theos [~theos@unaffiliated/theos] has quit [Remote host closed the connection] 2012-03-15T12:59:43 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-15T13:34:50 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-15T13:38:23 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 245 seconds] 2012-03-15T13:39:20 -!- eruif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 246 seconds] 2012-03-15T13:39:24 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-15T14:54:53 < Tectu> do i need a reset handler? 2012-03-15T14:55:04 < zyp> what do you mean? 2012-03-15T14:56:33 < zyp> the reset vector indicates the code to run after a reset. i.e. the first code that will run 2012-03-15T14:57:47 < zyp> what do you expect the cpu to execute if you don't tell it to execute something? 2012-03-15T15:00:31 < Tectu> damn i am still stuck in my buildchain... i want to use the stmlib without any IDE. I have problems with the linkerscript and/or the startup code 2012-03-15T15:00:37 < Tectu> i use arm-none-eabi-gcc 2012-03-15T15:00:44 < Tectu> and when i don't define the vectortable myself, it dosen't work 2012-03-15T15:01:39 < Tectu> compiling under KEIL works 2012-03-15T15:04:01 < Tectu> Thorn, you pasted me our Makefile, do you also have a past of your linkerscript? 2012-03-15T15:10:38 -!- sunilg [~chatzilla@59.97.194.182] has joined ##stm32 2012-03-15T15:14:51 < Thorn> I took it from the st peripheral library examples iirc 2012-03-15T15:21:25 < Tectu> okay, thank you 2012-03-15T15:23:19 < Thorn> here is it from the same project http://pastebin.com/eQDXaPNy 2012-03-15T15:24:35 -!- sunilg [~chatzilla@59.97.194.182] has quit [Ping timeout: 260 seconds] 2012-03-15T15:26:43 < Tectu> thank you 2012-03-15T15:27:14 < Tectu> i finally decided to write that stuff on my own. the time i spend to copy&paste things was wasting. this way, i also understand all the things that are happening 2012-03-15T15:47:06 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124] 2012-03-15T15:49:29 < Tectu> -.-' i found my mistake 2012-03-15T15:50:02 <+Steffanx> At least it was your mistake :) 2012-03-15T15:50:09 < Tectu> afk crying 2012-03-15T15:50:12 < Tectu> of course 2012-03-15T15:50:34 < Tectu> there's nothing worse on the world, than a mistake from another person 2012-03-15T15:50:39 < Tectu> you cannot do anything :D 2012-03-15T15:50:44 < Tectu> +=and 2012-03-15T15:52:08 < zyp> nothing to cry about, now you should be happy that you found it and carry on 2012-03-15T15:53:25 <+Steffanx> if(carry == 1) continue; 2012-03-15T16:00:51 < Tectu> re from crying 2012-03-15T16:00:59 < Tectu> ;-) 2012-03-15T16:01:03 < Tectu> thank you, zyp 2012-03-15T16:01:07 < Tectu> that's what i am trying to 2012-03-15T16:03:10 < Tectu> i am just crying because i took also from your time and probably brought you to crying ;) 2012-03-15T16:03:34 <+Steffanx> zyp's time is free 2012-03-15T16:03:51 < zyp> currently my time is paid, I'm at work :p 2012-03-15T16:04:30 <+Steffanx> So it's free for us 2012-03-15T16:04:42 < Tectu> what do you work, guys? 2012-03-15T16:08:31 < zyp> I currently work with lowlevel android stuff 2012-03-15T16:11:00 < Tectu> does that sound interesting? 2012-03-15T16:11:09 <+Steffanx> Yes 2012-03-15T16:11:54 < zyp> it is 2012-03-15T16:12:31 < Tectu> i always liked lowlevel stuf 2012-03-15T16:12:35 < zyp> and I'm on a support team, so I'm doing more debugging than development, which means I get to see lots of interesting stuff 2012-03-15T16:12:44 < Tectu> but it looks like i am not intelligent enought after this thing... 2012-03-15T16:13:40 < Tectu> well, problem was more that the compiler optimized for(; nCount != 0; nCount--); out :P 2012-03-15T16:14:01 < zyp> delay loop? 2012-03-15T16:15:33 < Tectu> right 2012-03-15T16:15:37 < Thorn> I need a 4 channel scope ;( 2012-03-15T16:15:49 < Tectu> Thorn, i have one, 4 channels, 500MH/z 2012-03-15T16:15:51 < Tectu> MHz* 2012-03-15T16:16:06 < Tectu> of course not best one, it's a bit older, but it works very well 2012-03-15T16:16:09 < Tectu> and the menu is awesome 2012-03-15T16:19:38 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-15T16:19:48 * Tectu never had that much fun watching flashing LEDs 2012-03-15T16:23:32 <+Steffanx> You can have mine Thorn .. 2012-03-15T16:23:35 <+Steffanx> it's broken though :P 2012-03-15T16:24:12 < Thorn> ... 2012-03-15T16:24:21 <+Steffanx> My 4 channel scope 2012-03-15T16:30:03 < Tectu> why did you break it, Steffanx ? 2012-03-15T16:30:20 <+Steffanx> You think i did that on purpose? 2012-03-15T16:30:57 <+Steffanx> Soapy water + electronics just isn't a good combination 2012-03-15T16:35:18 < zyp> unless you actually need four analog channels, get a logic analyzer instead 2012-03-15T16:37:22 < Thorn> already have 2 2012-03-15T16:37:43 <+Steffanx> lol? 2012-03-15T16:39:12 < Tectu> wtf? 2012-03-15T16:39:16 < jpa-> soapy water + electronics is a fine combination as long as the device is off :) 2012-03-15T16:40:13 < Thorn> btw there're 2 and 3Gs/s OWON scopes out there, I wonder how they get around US export restrictions (is it what made rigol overclock their ADCs?) 2012-03-15T16:42:44 < Tectu> jpa-, and there are no backupbatteries etc ;-) 2012-03-15T16:45:00 <+Steffanx> It wasn't jpa- and even when it's not off .. 2012-03-15T16:45:07 <+Steffanx> oxidation blablabla? 2012-03-15T16:46:01 < Thorn> btw, I tried my FT2232H at 30MHz in MPSSE mode and the clock signal is all distorted 2012-03-15T16:46:01 <+Steffanx> -not 2012-03-15T16:46:20 < Tectu> but what the hell did you try to do at all, Steffanx ? 2012-03-15T16:46:26 < Thorn> there was a short jumper wire on the pin, nothing else 2012-03-15T16:46:27 < Tectu> clean your scope's PCBs? 2012-03-15T16:46:35 <+Steffanx> No 2012-03-15T16:47:04 <+Steffanx> Experiment with water… which I accidentally spilled over the scope 2012-03-15T16:47:16 <+Steffanx> Don't ask for the details 2012-03-15T16:48:33 < Tectu> i would really enjoy asking for the details 2012-03-15T16:48:41 < Tectu> "experimenting with water" lol? 2012-03-15T16:48:48 < Tectu> is this some kind of sexual meaning? 2012-03-15T16:49:12 < Thorn> water *and* oscilloscope 2012-03-15T16:50:26 <+Steffanx> What do you think Tectu ? 2012-03-15T16:50:40 <+Steffanx> You and your dirty mind 2012-03-15T16:50:59 < Tectu> Steffanx, i am fair to you, i don't think anything, that's better for you, so tell it :D 2012-03-15T16:51:15 <+Steffanx> I won't .. 2012-03-15T16:51:23 < Tectu> embaressing? 2012-03-15T16:51:51 <+Steffanx> No.. accidents happen 2012-03-15T16:53:49 < zyp> I've spilled drinks over my keyboard too many times to count 2012-03-15T16:54:20 < Tectu> strange, that never ever happened to me 2012-03-15T16:54:31 < Tectu> and i always have something to drink arround my keyboard 2012-03-15T16:54:59 < Tectu> the only time something of my computerstuff got wet was, when my girlfriend spitted cola over my notebooks keyboard 2012-03-15T16:55:20 < Tectu> but its a lenovo Thinkpad, so they have a fluiddrain under the keyboard -> nothing happend. it wasn't even sticky, because it was coke zero 2012-03-15T16:55:47 < zyp> I usually unplug the keyboard and rinse it in the sink 2012-03-15T16:55:55 < zyp> then dry it off and plug it back in 2012-03-15T16:56:20 <+Steffanx> Keyboard are cheap 2012-03-15T16:56:22 <+Steffanx> +s 2012-03-15T16:56:31 < Tectu> Steffanx, unless it's a notebook keyboard 2012-03-15T16:56:46 <+Steffanx> Yes, but in zyp's case i'm pretty sure it isn't 2012-03-15T16:56:51 <+Steffanx> a notebook keyboard 2012-03-15T16:56:54 < zyp> notebook keyboards are also cheap 2012-03-15T16:57:06 <+Steffanx> This one isn't :P 2012-03-15T16:57:14 <+Steffanx> Macbook pro ... 2012-03-15T16:57:34 < zyp> I replaced it on my old keyboard after a key got ripped off 2012-03-15T16:57:52 <+Steffanx> Oh, it's not even that expensive on ebay 2012-03-15T16:57:55 -!- eruif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-15T16:59:04 < zyp> oh, and apple keyboards are not that cheap, I think the one I've spilled on would cost more to replace than the laptop keyboard I replaced :p 2012-03-15T16:59:32 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 246 seconds] 2012-03-15T16:59:46 < Tectu> thinkpad keyboards are 50$-80$ 2012-03-15T17:01:09 < zyp> I apparently paid £29 shipped 2012-03-15T17:01:18 < zyp> for that latitude keyboard 2012-03-15T17:02:59 < Tectu> used keyboard? 2012-03-15T17:03:59 < zyp> no, new 2012-03-15T17:06:08 < Tectu> nice 2012-03-15T17:06:12 < Tectu> good for you, sir 2012-03-15T17:06:50 <+Steffanx> Sir :) 2012-03-15T17:08:26 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-15T17:16:02 < Tectu> Steffanx, again? why that 'Sir :)' ? 2012-03-15T17:17:23 <+Steffanx> Why not? 2012-03-15T17:18:24 < Tectu> seems you like that expression 2012-03-15T17:18:47 <+Steffanx> Sure? Why do you think that? 2012-03-15T17:19:26 < Tectu> sarcasm? 2012-03-15T17:19:33 <+Steffanx> Who knows 2012-03-15T17:19:40 <+Steffanx> ? 2012-03-15T17:20:41 < Tectu> probably zyp does 2012-03-15T17:21:08 <+Steffanx> zyp doesn't know everything 2012-03-15T17:21:35 < Tectu> haha, that joke was good 2012-03-15T17:22:12 <+Steffanx> I was very serious this time... 2012-03-15T17:32:41 < Tectu> zyp, there is someone here in the channel, who means that you don't know everything... i don't want to say who 2012-03-15T17:33:10 < zyp> I'll pretend I didn't hear it 2012-03-15T17:33:29 < zyp> I just came home, had to stop by the post office too 2012-03-15T17:33:57 < Tectu> zyp doesn't know everything 2012-03-15T17:34:15 <+Steffanx> " i don't want to say who" 2012-03-15T17:37:41 < Tectu> Steffanx, maybe zyp didn't saw, that i forget to mask your nickname, that he dosen't know who i mean 2012-03-15T17:38:22 <+Steffanx> "that he dosen't know who i mean" .. impossible 2012-03-15T17:38:33 <+Steffanx> According to you he knows everything 2012-03-15T17:39:53 < Tectu> okay, the last one was good 2012-03-15T17:41:39 <+Steffanx> :P 2012-03-15T17:44:49 < Tectu> are there stm32 stams like this one, whithout any other things on it? http://www.embedds.com/wp-content/uploads/2010/05/arm7-game-console-399x300.jpg 2012-03-15T17:46:46 < zyp> you mean the breakout board? 2012-03-15T17:46:55 < zyp> looks like a generic breakout board 2012-03-15T17:50:15 < Tectu> ah, no stamp you can buy, just a 2$ breakoutboard? 2012-03-15T17:50:30 < BrainDamage> you can buy readily made for twice the price: http://www.ebay.com/itm/UET-STM32F103C8T6-48-pin-core-board-/320755086601?pt=LH_DefaultDomain_2&hash=item4aae7e3509 2012-03-15T17:50:32 < zyp> probably 2012-03-15T17:55:33 < Tectu> this one looks interesting: http://www.ebay.com/itm/STM32F103ZE-module-HY-STM32F1xxCore144-Core-Dev-Board-/170724887391?pt=BI_Electrical_Equipment_Tools&hash=item27bfff0b5f 2012-03-15T17:55:43 < Tectu> also this one: http://www.ebay.com/itm/UET-STM32F103ZET6-144-pin-core-board-/251008758074?pt=LH_DefaultDomain_0&hash=item3a7149b13a 2012-03-15T17:56:36 -!- sunilg [~chatzilla@59.97.194.175] has joined ##stm32 2012-03-15T17:56:45 < BrainDamage> for those prices, you can buy a discovery board 2012-03-15T17:56:58 < Tectu> BrainDamage, sure 2012-03-15T17:57:05 < Tectu> see you guys, have to catch the bus 2012-03-15T19:16:02 <+Steffanx> Looks like us only flyback ? 2012-03-15T19:16:27 <+Steffanx> *US 2012-03-15T19:16:50 <+Steffanx> Bummer 2012-03-15T19:18:16 <+Steffanx> Probably not 2012-03-15T19:26:17 -!- sunilg [~chatzilla@59.97.194.175] has quit [Ping timeout: 252 seconds] 2012-03-15T19:39:18 -!- sunilg [~chatzilla@59.97.194.175] has joined ##stm32 2012-03-15T19:52:07 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has quit [Remote host closed the connection] 2012-03-15T19:52:14 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-15T19:54:01 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-15T19:54:05 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-15T20:31:09 -!- sunilg [~chatzilla@59.97.194.175] has quit [Ping timeout: 244 seconds] 2012-03-15T20:34:44 -!- wattrod [wattrod@rrcs-67-78-118-6.sw.biz.rr.com] has quit [] 2012-03-15T20:37:53 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-15T21:01:53 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-15T22:24:54 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-15T22:33:53 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-03-15T22:34:06 < ratatata> nu 2012-03-15T22:36:55 <+Steffanx> nu 2012-03-15T23:05:42 < ratatata> nu 2012-03-15T23:06:31 <+Steffanx> Isn't that another game? 2012-03-15T23:11:11 <+Steffanx> You like to play that with vodka don't you? 2012-03-15T23:15:36 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [] 2012-03-15T23:21:27 -!- Laurenceb__ [~Laurence@host86-173-192-100.range86-173.btcentralplus.com] has joined ##stm32 2012-03-15T23:22:36 -!- Laurenceb__ is now known as Laurenceb_ 2012-03-15T23:25:29 < zyp> I prefer to drink the vodka rather than play with it 2012-03-15T23:29:27 <+Steffanx> I mean, play the game 2012-03-15T23:30:07 <+Steffanx> lost the game => drink vodka 2012-03-15T23:37:10 < zyp> I don't like drinking games, I always win and then I don't get to drink 2012-03-15T23:37:12 < zyp> :p 2012-03-15T23:37:31 <+Steffanx> Sure 2012-03-15T23:38:02 <+Steffanx> I think you don't like it because you don't like to lose 2012-03-15T23:38:33 < zyp> last time I participated in one, people were doing some pattern shit 2012-03-15T23:38:56 <+Steffanx> pattern shit :P 2012-03-15T23:38:57 <+Steffanx> lol 2012-03-15T23:39:15 <+Steffanx> "Look I got a A" 2012-03-15T23:39:29 <+Steffanx> "Ha, I made pi" 2012-03-15T23:39:45 < zyp> I don't remember the rules, but one guy takes the role as a judge and comes up with a pattern that he don't tell 2012-03-15T23:40:01 < zyp> and then people take turns guessing words trying to have them fit with the pattern 2012-03-15T23:40:11 <+Steffanx> yay 2012-03-15T23:40:43 < zyp> and then I figured out the pattern, so I got it right every time 2012-03-15T23:41:45 < zyp> I think it was «words starting with the same letter as your name» he used 2012-03-15T23:42:55 <+Steffanx> You wrote a application to brutefroce it didnt you? 2012-03-15T23:44:11 < zyp> no, I'm just used to figure out stuff from limited information :p 2012-03-15T23:45:01 < zyp> after all, that's what I do for a living, since I'm working with debugging :p 2012-03-15T23:45:06 < BrainDamage> those games should be that you drink when you win, not when you lose 2012-03-15T23:45:17 < BrainDamage> so that the alcohol intake balances the skill 2012-03-15T23:45:32 < zyp> BrainDamage, that's what I've also been considering :p 2012-03-15T23:47:24 < zyp> oh, I remember one time we were playing osu while drinking, a few years ago 2012-03-15T23:47:41 < zyp> we were doing shots between each song 2012-03-15T23:48:53 < zyp> I did fine until the point where I started having problems with balancing on the chair 2012-03-15T23:49:35 <+Steffanx> osu .. 2012-03-15T23:49:57 < zyp> http://osu.ppy.sh/ 2012-03-15T23:50:12 < zyp> it was cool back when I was in first year of uni or so 2012-03-15T23:50:28 <+Steffanx> animé crap :P 2012-03-15T23:50:55 < zyp> no. 2012-03-15T23:51:48 <+Steffanx> not? 2012-03-15T23:52:11 <+Steffanx> OS X Users: 2012-03-15T23:52:11 <+Steffanx> Please see this thread for a semi-working release. 2012-03-15T23:52:12 <+Steffanx> :D --- Day changed Fri Mar 16 2012 2012-03-16T01:25:47 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-03-16T01:44:49 -!- Laurenceb_ [~Laurence@host86-173-192-100.range86-173.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-03-16T01:50:30 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds] 2012-03-16T02:54:31 < dongs> what the hell 2012-03-16T02:57:14 < dongs> ohh, NET. 2012-03-16T02:57:15 < dongs> nice. 2012-03-16T03:29:41 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-16T03:30:34 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-16T03:55:02 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Ping timeout: 245 seconds] 2012-03-16T04:08:53 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32 2012-03-16T04:24:21 -!- sunilg [~chatzilla@59.97.193.127] has joined ##stm32 2012-03-16T04:33:57 -!- sunilg [~chatzilla@59.97.193.127] has quit [Ping timeout: 248 seconds] 2012-03-16T04:57:04 -!- sunilg [~chatzilla@59.97.193.127] has joined ##stm32 2012-03-16T05:17:33 -!- sunilg [~chatzilla@59.97.193.127] has quit [Ping timeout: 245 seconds] 2012-03-16T05:33:19 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-03-16T05:35:35 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-16T05:50:21 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2012-03-16T05:51:09 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-16T06:40:49 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-16T07:07:14 -!- zippe [~Adium@173.11.99.161] has quit [Quit: Leaving.] 2012-03-16T07:07:29 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-16T07:20:46 -!- sunilg [~chatzilla@59.97.195.109] has joined ##stm32 2012-03-16T07:25:47 -!- sunilg [~chatzilla@59.97.195.109] has quit [Ping timeout: 246 seconds] 2012-03-16T07:27:29 -!- sunilg [~chatzilla@59.97.195.109] has joined ##stm32 2012-03-16T07:35:51 -!- sunilg [~chatzilla@59.97.195.109] has quit [Ping timeout: 272 seconds] 2012-03-16T07:58:15 -!- sunilg [~chatzilla@59.97.193.56] has joined ##stm32 2012-03-16T08:06:34 -!- sunilg [~chatzilla@59.97.193.56] has quit [Ping timeout: 260 seconds] 2012-03-16T09:38:52 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-16T11:11:30 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-16T11:11:34 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-16T11:13:32 < Tectu> why the hell are the stmlib linkerscript so big? i am sure they cannot do anything else than a simple 50 row script 2012-03-16T11:14:00 < zyp> what's in it? 2012-03-16T11:14:02 < jpa-> can you put it somewhere so that i can see? 2012-03-16T11:14:32 < Tectu> jep, sec 2012-03-16T11:15:30 < Tectu> http://pastebin.com/LKEXrhEp 2012-03-16T11:16:21 < jpa-> yeah.. it has all kinds of very rarely needed extra stuff 2012-03-16T11:16:50 < Tectu> what does 163 to 169? 2012-03-16T11:16:57 < jpa-> like: support for external memory (available on only some STM32 controllers), support for ARM/thumb interoperation (not available on any STM32 AFAIK? maybe F4?) 2012-03-16T11:17:15 < jpa-> no idea 2012-03-16T11:17:29 < zyp> I'll have a look 2012-03-16T11:18:22 < zyp> I guess it drops unused symbols 2012-03-16T11:18:35 < zyp> or, unused sections, rather 2012-03-16T11:18:53 < zyp> kind of like --gc-sections, except that it's targeted to a specific library 2012-03-16T11:19:00 < zyp> (I guess) 2012-03-16T11:19:49 < Tectu> drops unused symbols, means don't copy the whole library und keeps memory free? 2012-03-16T11:20:11 < zyp> exactly 2012-03-16T11:20:22 < Tectu> isn't that a kind of useful? 2012-03-16T11:20:43 < Tectu> i was always very surprised that flashing with the stmlinkerscript went much faster than with my custom one 2012-03-16T11:21:29 < zyp> I use the --gc-sections flag to the linker to do the same 2012-03-16T11:21:44 < Tectu> okay 2012-03-16T11:21:54 < Tectu> there aren't any disadventages? 2012-03-16T11:22:47 < zyp> depends on what you view as a disadvantage 2012-03-16T11:24:49 < Tectu> dunno, that's why i am asking ;-) 2012-03-16T11:26:51 < Tectu> btw. to the RAM section. what does bss stand for? 2012-03-16T11:27:02 < zyp> it's zero-initialized memory 2012-03-16T11:27:24 < Tectu> yeah, but is that a short from? 2012-03-16T11:27:33 < zyp> I don't remember :p 2012-03-16T11:27:53 < zyp> Block Started by Symbol 2012-03-16T11:27:56 < zyp> http://en.wikipedia.org/wiki/.bss 2012-03-16T11:28:25 < zyp> doesn't mean anything today 2012-03-16T11:29:59 < Tectu> UA-SAP (United Aircraft Symbolic Assembly Program) what the fuck? 2012-03-16T11:32:54 < Tectu> btw, stacksize... i can set that on my own, right? 2012-03-16T11:32:59 < Tectu> example script uses 1024 2012-03-16T11:33:04 < Tectu> thats 1k of ram, right? 2012-03-16T11:33:40 < Tectu> since my stm32f103 has 64kB RAM, i can go to 8k stack? or is there any "rule" behind setting the stack size? 2012-03-16T11:34:27 < zyp> remember that stack grows downwards 2012-03-16T11:34:46 < zyp> so normally you just set stack size to top of your memory 2012-03-16T11:35:15 < zyp> in the bottom you have global variables, then you have the heap growing upwards and the stack growing downwards 2012-03-16T11:35:23 < Tectu> this is my linker script atm: http://pastebin.com/N6Jvc6Sa 2012-03-16T11:35:40 < Tectu> ... and they shouldn't meet in the middle 2012-03-16T11:35:59 < zyp> well, when they do, you're out of memory :p 2012-03-16T11:36:17 < Tectu> i set the stack to the end in line 46, don't i= 2012-03-16T11:36:21 < Tectu> ?* 2012-03-16T11:36:44 < zyp> no, line 45 2012-03-16T11:36:58 < Tectu> sorry, misstyped 2012-03-16T11:37:09 < Tectu> is misstyped even english? xD 2012-03-16T11:37:15 < zyp> mistyped 2012-03-16T11:37:28 < Tectu> ah 2012-03-16T11:38:21 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-16T11:38:24 < Tectu> does that script look okay? 2012-03-16T11:40:56 < zyp> I think so 2012-03-16T11:41:11 < zyp> you have the three important sections 2012-03-16T11:42:03 < zyp> you might want to update the size of ram and flash in the top 2012-03-16T11:42:04 < Tectu> what about this reset handler? http://pastebin.com/8P0aQNyN 2012-03-16T11:42:51 < zyp> also looks ok 2012-03-16T11:43:38 < zyp> I'd throw in an endless loop after the call to main() in case main returns 2012-03-16T11:44:21 < Tectu> shouldn't we go with endlessloop at the end of main instead? 2012-03-16T11:44:25 < Tectu> but okay, i can do that 2012-03-16T11:44:58 < Tectu> when i compile that now, compiler throws error stm32f103.ld:57: undefined symbol `_stack_begin' referenced in expression is that because i don't have any main yet? looks strange to me 2012-03-16T11:45:12 < zyp> no 2012-03-16T11:45:34 < zyp> hmm 2012-03-16T11:47:00 < zyp> oh, right 2012-03-16T11:47:13 < zyp> that's a series of errors, right? 2012-03-16T11:47:17 < Tectu> nope 2012-03-16T11:47:43 < zyp> anyway, the problem is likely because line 45 has stack_end and not _stack_end 2012-03-16T11:47:43 < Tectu> http://pastebin.com/N3Wxk0Jm 2012-03-16T11:48:06 < Tectu> aaah :D 2012-03-16T11:48:08 < Tectu> thank you 2012-03-16T11:52:21 < Tectu> btw, when I don't list all interrupt handlers in my vectors array. that's not a problem right? The array would be smaller of course, but thats not a problem, because just the starting address must be right, after the end of the array, the rest of the code follows 2012-03-16T11:56:31 < zyp> it's not a problem as long as you don't enable vectors that you haven't defined 2012-03-16T11:56:40 < ziph> You usually fill the unused ones with a pointer to an error handling routine just in case one gets fired. 2012-03-16T11:57:01 < ziph> Otherwise you'll get difficult to trace crashes. 2012-03-16T11:57:35 < ziph> Or at least confusing until you realise you're in at a random IP within ISR handling. 2012-03-16T11:57:59 < zyp> ziph, have this actually happened to you? 2012-03-16T11:58:18 < ziph> No, because I always have default handlers. :) 2012-03-16T11:58:31 < Tectu> ziph, IP? 2012-03-16T11:58:41 < ziph> PC sorry. 2012-03-16T11:58:44 < zyp> I mean, I had an unhandled_interrupt-handler, and I've ever only arrived there from a hardfault 2012-03-16T11:58:49 < Tectu> PC? >.< 2012-03-16T11:58:55 < zyp> program counter 2012-03-16T11:58:59 < Tectu> aah, sure 2012-03-16T11:59:01 < ziph> Program counter register/instruction pointer. 2012-03-16T11:59:17 < Tectu> i have another question, but not sure if i can ask it here... a little bit a "RTFM" question, but i don't find it 2012-03-16T12:00:07 < ziph> Go nuts, the bar is fairly low on IRC. ;) 2012-03-16T12:00:58 < Tectu> the stm32f10x.h i used, has definitions like PERIPH_BASE, and from then, AHB2PERIPH_BASE (PERIPH_BASE+offset) and RCC_BASE etc. where exactly are the base adresses in the reference manual? when i go to the rcc section in the reference manual, to the first register (RCC_CR) there is address offset = 0x00 2012-03-16T12:01:08 < Tectu> sure, offset 0x00 from the RCC_Base adress 2012-03-16T12:01:29 < Tectu> but where do i find the RCC_BASE addresse, and where do i find the AHB2PERIPH_BASE address in the Reference Manual? 2012-03-16T12:01:54 < ziph> Doesn't the reference manual just give the absolute address of each register? 2012-03-16T12:02:00 < Tectu> no 2012-03-16T12:02:01 < zyp> no 2012-03-16T12:02:04 < Tectu> at least mine dosent 2012-03-16T12:02:12 < zyp> it gives the relative address in each block 2012-03-16T12:02:17 < ziph> Ah, ok. 2012-03-16T12:02:19 < Tectu> I have RM0008 and it just gives address offset 2012-03-16T12:02:24 < zyp> and then there is a table in the beginning with the absolute address of each block 2012-03-16T12:02:27 < ziph> I mainly use NXP's. 2012-03-16T12:02:47 < zyp> Tectu, look under the register table, there is a link to the table with absolute addrs 2012-03-16T12:03:01 < Tectu> zyp, Figure 1 - register boundry addresses? 2012-03-16T12:03:08 < zyp> yes 2012-03-16T12:03:19 < zyp> that's the one 2012-03-16T12:03:37 < Tectu> 0x4002 1000 - 0x4002 13FF Reset and clock control RCC 2012-03-16T12:03:48 < zyp> yes, so the addr is 0x40021000 2012-03-16T12:03:50 < Tectu> this means RCC_BASE is 0x40021000 ? 2012-03-16T12:03:55 < zyp> correct 2012-03-16T12:04:31 < Tectu> okay, and since it's on the AHB BUS, i can go with #define RCC_BASE (AHBPERIPH_BASE + 0x00021000) ? 2012-03-16T12:04:32 < ziph> Don't you have an editor that can follow declarations? 2012-03-16T12:04:39 < Tectu> ziph, vim 2012-03-16T12:04:47 < Tectu> ziph, is there such a lovley thing? 2012-03-16T12:04:48 < ziph> Got a tags file? 2012-03-16T12:04:52 < Tectu> nope 2012-03-16T12:04:52 < ziph> Yeah. 2012-03-16T12:05:09 < ziph> Get this thing: http://ctags.sourceforge.net/ 2012-03-16T12:05:19 < Tectu> i have ctags installed once, don't remember why 2012-03-16T12:05:23 < Tectu> ah, because of cscope, afaik 2012-03-16T12:05:23 < ziph> Then run it over your own code plus your system include directories. 2012-03-16T12:05:37 < ziph> Then any time you do Ctrl-] over a definition it will jump to it. 2012-03-16T12:05:51 < ziph> And Ctrl-T will go backwards in the stack of followed definitions. 2012-03-16T12:05:51 < Tectu> sounds awesome 2012-03-16T12:05:58 < Tectu> nice 2012-03-16T12:06:06 < ziph> Plus it feeds the tags into Omnicompletion. 2012-03-16T12:06:44 < Tectu> zyp, but in figure 1, there aren't the AHB, APB1 and APB2 addresses 2012-03-16T12:06:58 < zyp> that's needlessly roundabout 2012-03-16T12:07:03 < ziph> If you use Exuberant Ctags iyou'll be able to set up intelligent completion. 2012-03-16T12:07:05 < Tectu> thank you, zip. Do i have to do any additional vim setup, or only enamle ctags support? 2012-03-16T12:07:15 < ziph> Tectu: Mainly just ctags. 2012-03-16T12:07:16 < zyp> anyway, I'm out for lunch 2012-03-16T12:07:29 < Tectu> good luck, zyp 2012-03-16T12:07:31 < ziph> Stick it in your make file so you can do "make tags" occasionally. 2012-03-16T12:07:36 < Tectu> ah 2012-03-16T12:07:47 < Tectu> i'll take a look in a few hours, when i have school ;-) 2012-03-16T12:08:25 < Tectu> thank you for the tip anyways, ziph 2012-03-16T12:08:56 < Tectu> i use vim, but i am not very good at it. i just know how to move, insert, delete etc. i don't know how to jump to a specific line or even know how to move a code section. and i don't know how to search for patterns 2012-03-16T12:09:26 < ziph> Tectu: http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html 2012-03-16T12:10:06 < Tectu> bookmarked :) 2012-03-16T12:11:15 < Tectu> btw, can i do now just #define RCC_BASE 0x40021000 or do i have to do some pointer casts whatever? I saw that the libopencm2 has some macro for that stuff 2012-03-16T12:16:45 < Tectu> ziph ? :) 2012-03-16T12:17:30 < ziph> Tectu: I don't know, the pointers end up being volatile pointers to ints, but the base address might just be an integer. 2012-03-16T12:17:37 < ziph> Get ctags running and you can find out in no time. 2012-03-16T12:18:03 < Tectu> hrhr 2012-03-16T12:18:05 < Tectu> thank you 2012-03-16T12:18:12 < Tectu> afk drilling PCB 2012-03-16T12:18:16 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-16T12:22:23 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Remote host closed the connection] 2012-03-16T12:49:57 < Tectu> zyp, you back, sir? 2012-03-16T12:50:03 < zyp> yep 2012-03-16T12:50:06 < Tectu> I'd have a question 2012-03-16T12:50:07 < Tectu> one more* 2012-03-16T12:50:11 < Tectu> btw, can i do now just #define RCC_BASE 0x40021000 or do i have to do some pointer casts whatever? I saw that the libopencm2 has some macro for that stuff 2012-03-16T12:50:28 < zyp> depends on the rest of your code 2012-03-16T12:50:32 <+Steffanx> :P 2012-03-16T12:51:02 < Tectu> and after i defined RCC_BASE the right way, let's say I want to define RCC_CIR. This register has offset 0x08. So i can go with #define RCC_CIR (RCC_BASE + 0x08) ? 2012-03-16T12:51:10 < Tectu> zyp, can you be more specific >.< 2012-03-16T12:51:25 < Tectu> Steffanx, did you miss the 'sir'? ;-) 2012-03-16T12:51:44 <+Steffanx> Nop 2012-03-16T12:52:34 < zyp> Tectu, no, you can't define RCC_CIR that way. 2012-03-16T12:53:00 < Tectu> why not? and how do i have to 2012-03-16T12:54:51 < zyp> the reasonable way is to make a struct for the entire register block and then make a single pointer to that struct 2012-03-16T12:57:17 < Tectu> so just put the pointer to the struct to RCC_BASE address then? 2012-03-16T12:57:26 < Tectu> but why so? am i not able to do it the "raw" way? 2012-03-16T12:57:33 <+Steffanx> You are .. 2012-03-16T12:57:50 < Tectu> like harddefine all the addresses and then just go with RCC_CR |= 2012-03-16T12:58:00 < zyp> sure you can, but that's stupid :) 2012-03-16T12:58:14 <+Steffanx> Correction: You think it's stupid 2012-03-16T12:58:20 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-16T12:58:26 < Tectu> zyp, it's the ways libopencm3 does it too 2012-03-16T12:58:30 < Tectu> what's stupid about it? 2012-03-16T12:58:33 < zyp> really? 2012-03-16T12:58:54 < Tectu> really yes 2012-03-16T12:59:04 < zyp> hang on, I'm going to verify this 2012-03-16T12:59:24 < Tectu> rcc.h file from libopencm3 zyp : http://pastebin.com/iUAXmQCG 2012-03-16T12:59:39 <+Steffanx> http://libopencm3.git.sourceforge.net/git/gitweb.cgi?p=libopencm3/libopencm3;a=blob_plain;f=include/libopencm3/cm3/common.h;hb=HEAD .. 2012-03-16T12:59:42 < Tectu> and there are no structs in common files etc. 2012-03-16T13:00:38 <+Steffanx> So 'copy' that Tectu :) 2012-03-16T13:00:45 <+Steffanx> #define MMIO32(addr) (*(volatile u32 *)(addr)) 2012-03-16T13:00:52 < Tectu> afk 2012-03-16T13:00:59 <+Steffanx> Not acceptable 2012-03-16T13:01:14 <+Steffanx> You are not allowed to leave 2012-03-16T13:01:15 < zyp> ok, right 2012-03-16T13:01:18 < Tectu> Steffanx, i don't want to just copy it, i want to understand, that's why i asked, why i cannot do RCC_CR = (RCC_BASE + 0x08) 2012-03-16T13:01:23 < zyp> so in other words libopencm32 is stupid 2012-03-16T13:01:30 <+Steffanx> We know that zyp 2012-03-16T13:01:32 < Tectu> zyp, rofl, can you please argument why? afk 2012-03-16T13:01:39 < zyp> yes 2012-03-16T13:02:02 < zyp> can you tell me any advantage of doing it that way? 2012-03-16T13:02:07 <+Steffanx> Nooo 2012-03-16T13:02:16 <+Steffanx> Don't try it that way zyp 2012-03-16T13:03:35 <+Steffanx> They 'taught' me: "Never answer a question with a question" :) 2012-03-16T13:06:15 < zyp> I usually start explanations with questions, to inspire you to think 2012-03-16T13:07:19 < zyp> I argue that defining registers that way is stupid because it has no advantages, and you seem to disagree, so I start by asking you what advantages you can see 2012-03-16T13:07:34 < zyp> and then I'll follow up with the advantages of _not_ doing it that way 2012-03-16T13:10:21 <+Steffanx> The thing is, I didn't say which one was better. I think i prefer the struct way too 2012-03-16T13:11:49 < zyp> the struct way is nice because then you can make a function take a struct pointer to a peripheral register block, and call the same function with multiple instances of the peripheral 2012-03-16T13:12:29 <+Steffanx> Yes, that's the most important advantage 2012-03-16T13:12:36 < zyp> the registers are hierarchical, and therefore it makes sense to make the register definitions hierarchical too 2012-03-16T13:12:55 < zyp> and that's why I argue it's stupid to have a flat register definition 2012-03-16T13:14:10 < Tectu> well 2012-03-16T13:14:10 < Tectu> okay 2012-03-16T13:14:12 < Tectu> re, btw 2012-03-16T13:14:15 <+Steffanx> nu 2012-03-16T13:14:26 < Tectu> i guess i'll just go with the struct way then 2012-03-16T13:14:32 < Tectu> but how do i make that with the offset? 2012-03-16T13:14:52 <+Steffanx> Tectu, you should take a look at zyp git repo 2012-03-16T13:14:52 < Tectu> i guess every register has += 0x08 offset? 2012-03-16T13:15:03 < zyp> no, 4 2012-03-16T13:15:06 < Tectu> so i just put it in an array with uint32_t pointers? 2012-03-16T13:15:15 < zyp> 32 bit is 4 bytes 2012-03-16T13:16:17 <+Steffanx> http://www.naffets.nl/share/a-20120316-121552.png .. left = stm32, right = usb mini connector 2012-03-16T13:16:29 <+Steffanx> Why d- and d+ are crossed?! 2012-03-16T13:16:38 <+Steffanx> Why designed it like that? 2012-03-16T13:16:39 < Tectu> right 2012-03-16T13:16:47 <+Steffanx> *who 2012-03-16T13:16:57 <+Steffanx> Or i'm pekbac-ing 2012-03-16T13:17:02 < ziph> Steffanx: To annoy you. 2012-03-16T13:17:11 < ziph> Steffanx: You can get reversed USB mini connectors. 2012-03-16T13:17:16 < Tectu> wtf? 2012-03-16T13:17:19 < Tectu> seriously? 2012-03-16T13:17:22 < ziph> Yes. 2012-03-16T13:17:34 < Tectu> but with the right way cable connected side? 2012-03-16T13:17:47 < ziph> Yes, the cable is the same, just the pinout is reversed. 2012-03-16T13:18:15 <+Steffanx> With the connectors i have i can't use the 'great' new EAGLE feature 2012-03-16T13:18:51 < Tectu> zyp, well, can you tell me now, why i cannot do RCC_BASE 0x40021000 or whatever and then go wiht RCC_CIR (RCC_BASE + 0x08) 2012-03-16T13:19:15 <+Steffanx> You can Tectu 2012-03-16T13:19:38 < Tectu> Tectu, no, you can't define RCC_CIR that way. 2012-03-16T13:20:41 < jpa-> Tectu: then you must access it like *(volatile uint32_t*)RCC_CIR = 1234; which is a bit stupid :) 2012-03-16T13:21:06 < Tectu> kind of, yes 2012-03-16T13:21:09 < ziph> Steffanx: Can you mount it on the other side of the board? 2012-03-16T13:21:36 <+Steffanx> I can ziph, but i tried to avoid vias in the data lines 2012-03-16T13:21:44 -!- Laurenceb_ [~Laurence@host86-173-192-100.range86-173.btcentralplus.com] has joined ##stm32 2012-03-16T13:22:05 < jpa-> Steffanx: shouldn't you have series resistors anyway? :) 2012-03-16T13:22:45 <+Steffanx> Yes 2012-03-16T13:22:55 < Tectu> jpa-, well, why is it a volatile pointer at all? RCC_CIR is a kind of constant, isn't it? so why read it out new every time? 2012-03-16T13:23:42 <+Steffanx> kind of is not constant enough :P 2012-03-16T13:23:48 < jpa-> Tectu: how is it constant? 2012-03-16T13:24:00 < jpa-> i would expect the contents of RCC_CIR to change quite often 2012-03-16T13:24:01 < zyp> it's volatile because it's a hardware register 2012-03-16T13:24:30 < Tectu> i tought volatile is for the RCC_CIR "value" which is always the same. I mean the address of it, not it's content 2012-03-16T13:24:34 < Tectu> but i understand now 2012-03-16T13:24:44 < Tectu> its when you do a |= on it 2012-03-16T13:24:50 < jpa-> no, it is for whatever the pointer points to 2012-03-16T13:25:07 < jpa-> uint32_t* volatile would be the other way around 2012-03-16T13:25:47 < jpa-> (just like const char* and char* const and const char* const) 2012-03-16T13:26:01 < Tectu> ah 2012-03-16T13:26:12 < Tectu> Steffanx, link to zyps repo? 2012-03-16T13:26:26 < zyp> http://cgit.jvnv.net/suzumebachi/tree/ 2012-03-16T13:26:55 < Tectu> i see cpp 2012-03-16T13:27:01 < zyp> yes, it's C++ 2012-03-16T13:27:16 < Tectu> do you feel cooler with it? ;-) 2012-03-16T13:27:29 < jpa-> his code certainly is beautiful with it :) 2012-03-16T13:27:58 < Tectu> aye 2012-03-16T13:28:04 < Tectu> so, let's go with a struct then 2012-03-16T13:28:21 < ziph> Steffanx: If the vias are right on the package they're just a little bit extra on the discontinuities of the terminating resistor/leads/wirebond. 2012-03-16T13:28:22 < zyp> I prefer C++ to C because it allows me to write cleaner code 2012-03-16T13:28:25 < Tectu> i define the struct, i write all the stuff in the struct, then put the pointer to the struct in RCC_BASE address? 2012-03-16T13:28:38 < zyp> what I do is: static RCC_t& RCC = *(RCC_t*)0x40021000; 2012-03-16T13:29:10 < zyp> to do the same, you would have to do it like this in C: #define RCC (*(RCC_t*)0x40021000) 2012-03-16T13:29:29 < Tectu> wtf 2012-03-16T13:29:32 < zyp> or like this: #define RCC (*(struct RCC_t*)0x40021000) 2012-03-16T13:29:42 < zyp> depending on how RCC_t is defined 2012-03-16T13:29:54 < Tectu> o0 2012-03-16T13:30:05 < zyp> because C doesn't have references 2012-03-16T13:30:15 < zyp> of course, you could make it a pointer aswell 2012-03-16T13:30:24 < Tectu> yeah 2012-03-16T13:30:26 < Tectu> that's what i tought of 2012-03-16T13:30:37 < Tectu> how would we go that way? 2012-03-16T13:30:52 < zyp> static RCC_t* const = (RCC_t*)0x40021000; 2012-03-16T13:30:55 < zyp> I think 2012-03-16T13:31:09 < zyp> doesn't you put const after the * to make a constant pointer? 2012-03-16T13:31:30 < jpa-> yeah, though you probably want a name for the variable also :) 2012-03-16T13:31:38 < zyp> ah, of course :p 2012-03-16T13:31:46 < zyp> static RCC_t* const RCC = (RCC_t*)0x40021000; 2012-03-16T13:32:33 < jpa-> but i think the #define may give better code in C, because C compilers (for some reason that is probably in the standards) don't really take much advantage of something being declared const 2012-03-16T13:33:14 < jpa-> not sure if the static specifier changes that, though 2012-03-16T13:33:58 < ziph> Aliases. 2012-03-16T14:03:44 -!- Laurenceb_ [~Laurence@host86-173-192-100.range86-173.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-03-16T14:15:09 <+Steffanx> jpa- are those resistors in the usb lines really necessary? 2012-03-16T14:15:24 <+Steffanx> All the stm32f4 discovery has is one 0 ohm resistors.. 2012-03-16T14:19:08 <+Steffanx> + pull up 2012-03-16T14:24:03 < corecode> o hi 2012-03-16T14:24:23 < corecode> Steffanx: the usb specs require a certain impedance 2012-03-16T14:24:35 < corecode> Steffanx: i get confused by that as well 2012-03-16T14:24:58 < corecode> somehow i don't like the stm supplied libraries 2012-03-16T14:25:03 < corecode> they seem clumsy 2012-03-16T14:25:45 <+Steffanx> Yep 2012-03-16T14:26:43 < corecode> glad i'm not the only one 2012-03-16T14:27:13 < corecode> i built the first http://mchck.org boards two days ago 2012-03-16T14:27:19 < corecode> still need to get them to blink 2012-03-16T14:28:13 <+Steffanx> Argh.. githubs makes chrome crash all the time 2012-03-16T14:28:14 <+Steffanx> -s 2012-03-16T14:28:19 < corecode> ah? 2012-03-16T14:28:33 < corecode> i'm using chromium 17, works 2012-03-16T14:28:50 <+Steffanx> I just use Chrome 17 2012-03-16T14:28:52 <+Steffanx> on os x 2012-03-16T14:28:54 < corecode> ok 2012-03-16T14:29:06 < corecode> i had crashes with chromium, but i think it was a bad extension 2012-03-16T14:43:33 -!- sunilg [~chatzilla@59.97.197.37] has joined ##stm32 2012-03-16T14:56:26 < Tectu> https://svn.kapsi.fi/jpa/paatti/stm32f10x.h 2012-03-16T14:56:31 < Tectu> what the hell is the __IO thing 2012-03-16T14:56:35 < Tectu> is that a compiler macro? 2012-03-16T15:02:53 <+Steffanx> Find out where it's defined :P 2012-03-16T15:03:55 <+Steffanx> Its from core_cm3.h 2012-03-16T15:03:55 <+Steffanx> #define __IO volatile /*!< defines 'read / write' permissions */ 2012-03-16T15:12:46 < Tectu> ah 2012-03-16T15:12:49 < Tectu> i really should use ctags 2012-03-16T15:13:30 < zyp> 13:15:24 <+Steffanx> All the stm32f4 discovery has is one 0 ohm resistors.. 2012-03-16T15:13:35 < zyp> on the F1 or F4? 2012-03-16T15:13:48 <+Steffanx> Only check the F1 2012-03-16T15:13:48 < zyp> IIRC the F1 for programming have 0 ohm, while the F4 have 22 ohm 2012-03-16T15:14:31 <+Steffanx> Yeah, the f4 has 22ohm 2012-03-16T15:27:15 < Tectu> guys, any ideas to this? This is the default startup file from the stmlib http://pastebin.com/s0eMippz 2012-03-16T15:27:54 < Tectu> something wrong with my way to compile? 2012-03-16T15:27:58 < Tectu> "compile" 2012-03-16T15:44:49 -!- sunilg [~chatzilla@59.97.197.37] has quit [Quit: ChatZilla 0.9.88.1 [Firefox 10.0.2/20120216082320]] 2012-03-16T16:04:06 < zyp> complicate 2012-03-16T16:23:57 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 252 seconds] 2012-03-16T16:28:02 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-03-16T16:38:43 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-16T16:39:32 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Remote host closed the connection] 2012-03-16T16:46:53 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-16T16:56:14 < Laurenceb> 0ohm?! 2012-03-16T16:56:16 < Laurenceb> wtf 2012-03-16T16:58:42 <+Steffanx> 0 ohm 2012-03-16T16:59:49 -!- urief [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-16T17:00:06 < zyp> that's like infinite siemens 2012-03-16T17:00:45 <+Steffanx> 0% 5% :P 2012-03-16T17:00:52 <+Steffanx> *0ohm 5% 2012-03-16T17:01:44 -!- eruif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 244 seconds] 2012-03-16T17:35:24 < Laurenceb> lol 2012-03-16T17:35:30 < Laurenceb> 0 +-5% 2012-03-16T17:35:46 <+Steffanx> ;p 2012-03-16T18:21:55 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Remote host closed the connection] 2012-03-16T18:25:24 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-16T19:04:43 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124] 2012-03-16T19:33:42 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-16T20:27:11 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-16T22:32:33 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-03-16T22:37:16 -!- Laurenceb_ [~Laurence@host86-146-189-78.range86-146.btcentralplus.com] has joined ##stm32 2012-03-16T23:25:03 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-16T23:38:21 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 --- Day changed Sat Mar 17 2012 2012-03-17T00:09:58 < emeb> TMI 2012-03-17T00:25:24 <+Steffanx> nu 2012-03-17T00:29:31 < Laurenceb_> fapfap 2012-03-17T00:29:51 <+Steffanx> You are an expert in that Laurenceb_? 2012-03-17T00:29:58 <+Steffanx> Nah, no i don't want to know 2012-03-17T00:31:55 < Laurenceb_> flyback is learning atm 2012-03-17T00:41:02 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 252 seconds] 2012-03-17T01:37:50 < corecode> flyback: what announcement? 2012-03-17T01:39:42 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 252 seconds] 2012-03-17T02:04:58 -!- Netsplit *.net <-> *.split quits: Rickta59 2012-03-17T02:06:28 -!- Netsplit over, joins: Rickta59 2012-03-17T02:13:49 -!- Laurenceb_ [~Laurence@host86-146-189-78.range86-146.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-03-17T04:04:03 < emeb> They've had M0 parts in tssop20/28 for a while - the LPC111x series. 2012-03-17T04:04:28 < emeb> Qty pricing on those is ~$1.50 though. 2012-03-17T04:18:48 < emeb> Yep. STM32F100 not too far off of that - only $2 in qty100. 2012-03-17T04:19:05 < emeb> and it's got a lot more going for it than the LPC111x parts... 2012-03-17T04:27:04 < emeb> DIP. Meh. LQFP is fine for DIY 2012-03-17T04:46:28 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-17T06:20:09 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-17T06:21:01 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [Client Quit] 2012-03-17T06:21:21 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-17T06:30:09 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-17T07:51:31 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Read error: Connection reset by peer] 2012-03-17T08:48:17 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-17T09:08:08 -!- randysavage is now known as flybacl 2012-03-17T10:13:53 < ziph> flyback: What m0's are 49c? 2012-03-17T10:15:31 < ziph> Ta. 2012-03-17T10:24:10 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-03-17T10:36:45 -!- justitguy [~justitla@cpe-76-169-33-142.socal.res.rr.com] has joined ##stm32 2012-03-17T10:54:32 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-17T11:46:13 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [Ping timeout: 272 seconds] 2012-03-17T12:18:28 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-17T12:18:31 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-17T13:04:20 -!- Laurenceb_ [~Laurence@host86-146-189-78.range86-146.btcentralplus.com] has joined ##stm32 2012-03-17T14:46:13 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-03-17T14:49:35 < ratatata> nu 2012-03-17T14:49:42 <+Steffanx> nu 2012-03-17T14:55:38 <+Steffanx> When I don't use the vbus from USB .. can i leave it unconnected ? 2012-03-17T15:19:24 < Laurenceb_> you need to detect it 2012-03-17T15:19:26 < zyp> use? 2012-03-17T15:22:33 -!- Elledan [~jigoku_ai@s529c4932.adsl.wanadoo.nl] has joined ##stm32 2012-03-17T15:24:19 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 265 seconds] 2012-03-17T15:24:22 -!- hackkitten [~jigoku_ai@s529c4932.adsl.wanadoo.nl] has quit [Ping timeout: 252 seconds] 2012-03-17T15:28:55 <+Steffanx> As in .. i don't need 5v from the usb port zyp 2012-03-17T15:29:26 < zyp> so you're making a self-powered device 2012-03-17T15:29:29 <+Steffanx> Yes 2012-03-17T15:29:44 < zyp> you still need vbus detection 2012-03-17T15:30:00 < zyp> and that's all the vbus gpio pin is used for 2012-03-17T15:33:01 < zyp> actually, at least in the OTG controllers you can turn off vbus sensing 2012-03-17T15:33:31 < zyp> but that makes more sense to do for a bus-powered device, since then you know you have vbus, since it's powered 2012-03-17T15:34:07 <+Steffanx> ok, so vbus too pa9 it is :P 2012-03-17T15:34:28 < Tectu> how can i output a float, when i have a working USART_SendString() ? just go with itoa or another libc function? 2012-03-17T15:34:35 < Tectu> hello, btw ;) 2012-03-17T15:35:16 < zyp> Steffanx, which chip are you targeting? 2012-03-17T15:35:28 <+Steffanx> 103 2012-03-17T15:35:38 <+Steffanx> cx 2012-03-17T15:37:15 <+Steffanx> I'd like to give my oven controller a usb connection 2012-03-17T15:37:20 <+Steffanx> Not sure if i'll ever use it 2012-03-17T15:37:25 <+Steffanx> but over-engineering is good 2012-03-17T15:37:39 <+Steffanx> It'll have bluetooth too 2012-03-17T15:38:18 <+Steffanx> Everything needs ethernet or usb these days 2012-03-17T15:38:24 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-17T15:38:49 < Tectu> your oven? 2012-03-17T15:38:52 < Tectu> you mean your kitchen oven? 2012-03-17T15:38:59 <+Steffanx> toaster oven.. for reflowing 2012-03-17T15:39:08 <+Steffanx> reflow soldering 2012-03-17T15:39:31 < Tectu> ah 2012-03-17T15:39:40 < Tectu> what the hell does such a thing needs usb for 2012-03-17T15:39:44 < BrainDamage> because everything is better for bluetooth 2012-03-17T15:39:59 <+Steffanx> Tectu, read the temperature.. profiles etc. :) 2012-03-17T15:40:04 < BrainDamage> reflow oven having pc interface is useful to load profiles 2012-03-17T15:40:11 < BrainDamage> so you can reuse it for various stuff 2012-03-17T15:40:25 < BrainDamage> you could even use it as thermoscillator for a PCR :p 2012-03-17T15:41:33 < Tectu> PCR? 2012-03-17T15:41:59 < zyp> one day I'm bored I'll have a go at hacking the firmware of my oven 2012-03-17T15:42:02 < BrainDamage> polymerase chain reaction, a dna chunk copying mechanism 2012-03-17T15:42:12 < Tectu> lol. 2012-03-17T15:42:28 <+Steffanx> I don't have any plans for that .. 2012-03-17T15:42:31 < BrainDamage> it's the first step if you want to sequence dna 2012-03-17T15:42:41 < BrainDamage> you take a sample, and copy it many times 2012-03-17T15:42:53 <+Steffanx> BrainDamage is into that? 2012-03-17T15:43:16 < BrainDamage> no, but one of my friends is 2012-03-17T15:43:40 < zyp> I just tend to assemble the dna by hand with tweezers 2012-03-17T15:43:54 < BrainDamage> and I'm making a small oven controller actually atm for reflow, and he asked if he could reuse it for that 2012-03-17T15:44:19 < BrainDamage> and as long as I can provide the right gradients, and stable nough temps, you actually can 2012-03-17T15:47:03 < Tectu> nice 2012-03-17T15:47:25 < Tectu> so your friend can bake girlfriends? 2012-03-17T15:47:36 <+Steffanx> He can clone them 2012-03-17T15:48:21 < Tectu> he can create them, since he can modify the DNA, can't he? 2012-03-17T15:49:41 < Tectu> well 2012-03-17T15:49:42 < zyp> doesn't sound as funny when you realize that clones also have to grow up 2012-03-17T15:49:52 < zyp> unless you're a pedophile :p 2012-03-17T15:50:47 <+Steffanx> You and your dirty mind 2012-03-17T15:51:31 < zyp> hey, it's not me talking about cloning girlfriends 2012-03-17T15:53:29 < Tom_itx> clone them in different phases so you can skip the pms one 2012-03-17T15:58:02 <+Steffanx> llol 2012-03-17T15:58:35 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-17T16:02:27 < BrainDamage> it doesn't copy a whole dna strand 2012-03-17T16:02:31 < BrainDamage> it copies chunks of it 2012-03-17T16:02:57 < BrainDamage> and it doesn't exchange a cell's dna with that :p 2012-03-17T16:04:26 <+Steffanx> Just chain them 2012-03-17T16:09:56 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-17T16:35:37 < Tectu> the examples to my board... they use printf() for USART.... they have a #ifdef __GNUC___ -> this means, it should work without any IDE, just with vim and arm-none-eabi-gcc too, right? http://pastebin.com/K9rrNu9F 2012-03-17T16:35:46 < Tectu> i am just confused about the linker thing they talk about 2012-03-17T16:35:57 < Tectu> Tom_itx, rofl! 2012-03-17T16:55:20 < dongs> putchat_prototype. 2012-03-17T16:55:28 < dongs> fuckin gcc. 2012-03-17T16:56:02 <+Steffanx> gcc never fucks 2012-03-17T16:56:04 < Tectu> dongs, sorry? 2012-03-17T16:56:40 < Tectu> so anyone know how to solve the problem? 2012-03-17T16:58:45 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-17T17:01:09 -!- eruif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-17T17:04:09 -!- urief [~eruif@unaffiliated/eruif] has quit [Ping timeout: 272 seconds] 2012-03-17T17:34:39 -!- Elledan is now known as hackkitten 2012-03-17T17:40:08 < Laurenceb_> anyone know a source of cheap flexipcb prototypes? 2012-03-17T17:41:05 <+Steffanx> pass 2012-03-17T17:41:45 < zyp> I know gold phoenix does flex, but I don't know how cheap they will do prototypes 2012-03-17T17:44:19 < Tectu> Laurenceb, take a look to leiton.de 2012-03-17T17:44:22 < Tectu> awesome company 2012-03-17T17:44:24 < Tectu> love 'em 2012-03-17T17:45:19 < Laurenceb_> how much? 2012-03-17T17:45:26 < Laurenceb_> do they charge 2012-03-17T17:46:36 < Laurenceb_> oh they have online quote 2012-03-17T17:46:39 < Laurenceb_> nice, but too bad 2012-03-17T17:47:51 < Laurenceb_> lol price is fixed at 297euros 2012-03-17T17:48:00 < Laurenceb_> i can add more stuff and it does change 2012-03-17T17:48:04 < Laurenceb_> *doesnt 2012-03-17T17:48:30 < Laurenceb_> looks like its their minimum per order 2012-03-17T17:50:10 < Laurenceb_> presumably they can do cutting 2012-03-17T17:52:17 < jpa-> maybe there is flexpcb material you could etch yourself? 2012-03-17T17:55:59 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-17T17:56:22 < Laurenceb_> there is 2012-03-17T17:56:51 < Laurenceb_> im tempted, but i need some fairly complex cutting and about 20 boards 2012-03-17T17:57:10 < jpa-> get a slave :) 2012-03-17T17:57:14 < Laurenceb_> this is work stuff - we paid £6K for 10 boards from the last supplier 2012-03-17T17:57:36 < Laurenceb_> ~£10 per board from Leiton is nothing 2012-03-17T18:04:48 < Laurenceb_> ill probably just get some off ebay 2012-03-17T18:05:01 < Laurenceb_> looks like the online quote is for square boards 2012-03-17T18:05:13 < Laurenceb_> might as well try with scissors+scalple 2012-03-17T18:08:40 < Laurenceb_> Punching (soft tooling) standard possible 2012-03-17T18:08:51 < Laurenceb_> if i knew what that meant... 2012-03-17T18:11:12 < jpa-> it means that they can punch you if your board doesn't please them 2012-03-17T18:12:11 < Laurenceb_> lol 2012-03-17T18:13:04 < Laurenceb_> i guess ill email 2012-03-17T18:13:17 < Laurenceb_> if they mean oscillating knife cutter thats good 2012-03-17T18:13:56 < Laurenceb_> my board needs internal cutouts and stuff 2012-03-17T18:13:56 < justitguy> Hi all. Anyone using the Atollic tool chain with STM32F2xx and STM32F4xx chipsets? 2012-03-17T18:17:15 < justitguy> What? Is Atollic a dirty word? LOL 2012-03-17T18:19:43 < Laurenceb_> yes 2012-03-17T18:20:14 < justitguy> Hi Laurenceb_, yes Atollic is a dirty word? 2012-03-17T18:20:27 < Laurenceb_> it is 2012-03-17T18:20:55 < justitguy> Oh, sorry. Well, I use the cross compilation tools on Linux for ARM too. That better? 2012-03-17T18:21:40 < justitguy> I do like an IDE that integrates the debugger with the source though. Any suggestions? 2012-03-17T18:24:47 <+Steffanx> I didn't try it yet, but it should be possible to integrate the stlink-tool from texane in eclipse 2012-03-17T18:25:03 <+Steffanx> That's sort of how Atollic works 2012-03-17T18:25:16 <+Steffanx> They wrote their own gdb-server though 2012-03-17T18:28:02 < BrainDamage> once the ide's gdb can attach to a remote target, it can also interact with stlink 2012-03-17T18:29:59 < justitguy> Will look into that. I have a number to tools that I have integrated with Eclipse framework. 2012-03-17T18:30:08 < justitguy> BTW, why is Atollic a dirty word? 2012-03-17T18:31:38 <+Steffanx> Just ignore him :P 2012-03-17T18:34:12 < justitguy> I am a died in the wool Linux guy, but coworkers are not. So, a toolchain that runs on Windows and Linux is my ideal option. I've used the Atollic stuff for a while on a number of STM32 projects. One warning though, be sure your STM32 libs are current. I spent a month trying to get USART3 running when the supplied library was faulty. 2012-03-17T18:35:03 <+Steffanx> Hehe 2012-03-17T18:36:23 < justitguy> no laughing matter. I have been writing C for 25 years, contribute to many Open Source projects and this nearly drove me into a wall! Haha! It was ONE BIT in a define that was wrong. 2012-03-17T18:38:16 <+Steffanx> :D 2012-03-17T18:38:21 < justitguy> I literally had to review every line in the source libs to find the problem. Was wanting to give up but I am stubborn 2012-03-17T18:38:33 <+Steffanx> That's a "laughing matter" 2012-03-17T18:38:44 < justitguy> Only now, it wasn't then. 2012-03-17T18:40:22 < justitguy> :-| 2012-03-17T18:41:24 < justitguy> Anyway, anyone working on anything interesting? Like porting lwIP to STM32F207 or something like that? 2012-03-17T18:41:53 < emeb> Just put up a page for a little STM32F105 + audio DACs project: http://ebrombaugh.studionebula.com/synth/stm32_4chl/index.html 2012-03-17T18:42:23 < justitguy> Great, will check it out. 2012-03-17T18:43:35 < justitguy> emeb, you do this? 2012-03-17T18:43:39 < emeb> Yep 2012-03-17T18:44:31 < justitguy> looks nice. I have lots of STM chips in many flavors so might be fun to build this. 2012-03-17T18:45:23 < emeb> It's pretty simple. Bare boards can be purchased from BatchPCB. 2012-03-17T18:46:10 < emeb> Main thing I wanted this for was to prove that I could drive two I2S DACs simultaneously. 2012-03-17T18:46:34 < emeb> But I threw USB on there for giggles - might be able to make some sort of audio gizmo with it. 2012-03-17T18:48:04 < justitguy> I was just going to ask about that. I would consider adding a NAND flash too. Have lots and have ported YAFFS and run USB. While not an IPod, it could be fun. 2012-03-17T18:48:34 < justitguy> Are you using DMA? 2012-03-17T18:48:53 < emeb> Yes - for both I2S ports and for the ADC. 2012-03-17T18:49:22 -!- TitanMKD [~Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-03-17T18:49:23 < justitguy> Thought you might be required to do that. Is the USB operative at all yet? 2012-03-17T18:49:34 < emeb> No - haven't fooled with USB yet. 2012-03-17T18:51:50 < jpa-> justitguy: how much ram does yaffs need to work reasonably? 2012-03-17T18:52:21 < justitguy> How much code space to you have left? I might want to go up to a larger footprint part, add NAND, TFT LCD, ethernet and file system. Could be the beginning of a nice networked music player system. 2012-03-17T18:52:42 < emeb> Looks like SPI1 is available on pins 20-23 which are brought out on J7, so you could wire up a spi flash part. 2012-03-17T18:53:14 < emeb> I'm only using about 10K of code space for the test app I've got running now. 2012-03-17T18:53:32 < emeb> and a fair chunk of that is lookup tables for the audio processing. 2012-03-17T18:53:52 < justitguy> jpa, About 2 bytes per flash row + multiple page buffers. I built a board with 8M 10 nS Ram, so I am fine running an 8GB part. 2012-03-17T18:54:02 < emeb> Yeah - if you went to a '107 part with ethernet then that might work. 2012-03-17T18:54:53 < justitguy> emeb, would prefer to use parallel NAND flash - I have lots of 8GB (1 GByte) parts, and that is a fair amount of storage. 2012-03-17T18:55:33 < justitguy> emeb, I was thinking the same, the '107 would be perfect. Have a number of 144 pin '207 parts too, so might opt to use them. 2012-03-17T18:57:09 < emeb> for parallel flash though you'd want a part with lots of GPIO or the full external memory bus - that rules out the 105/107 parts. 2012-03-17T18:57:24 < justitguy> I am currently writing VHDL for a Lattice 2880 to support SDRAM. 2012-03-17T18:57:48 < emeb> Cool. Wish the F4 series had a DRAM controller. 2012-03-17T18:58:29 < emeb> I've got an app for floating pt+DSP that needs access to lots of temp storage. 2012-03-17T18:58:38 < zyp> at the point you need DRAM you probably want something more capable than a cortex-m-core 2012-03-17T18:59:03 < justitguy> Yes, me too. Could use PSRAM but cannot handle the BGA packages at home. Can have them wave soldered at the office but don't like to mix business w/pleasure. 2012-03-17T18:59:51 < justitguy> zyp, in general I agree. However, for some applications you simply need lots of RAM - example is a cache system for a combo SLC/MLC Flash file system. 2012-03-17T19:00:13 < emeb> zyp: depends - some audio fx can easily use > 32MB but don't really have complex I/O requirements. 2012-03-17T19:00:13 < justitguy> Not a speed issue, just the need to have a large cache. 2012-03-17T19:00:37 < justitguy> Yep, emeb, my point exactly. 2012-03-17T19:01:29 < emeb> And, interestingly, both Freescale and NXP have Cortex-M parts coming out with SDRAM controllers. 2012-03-17T19:01:47 < justitguy> I have 128 MB running now. Of course, I have a "bank select" register as the STM external space has a limit on address bits. 2012-03-17T19:01:51 < justitguy> Yes, I saw that. 2012-03-17T19:02:08 < justitguy> Aren't they Cortex-M4? 2012-03-17T19:03:14 < emeb> I believe so. 2012-03-17T19:04:06 < justitguy> Like the NXP parts, but I have not taken the plunge to buy and use them yet. Best thing is the ARM architecture is the same on all comparable parts, so high level code is the very portable. Just the low level stuff is device dependent. 2012-03-17T19:04:48 < justitguy> If I move to NXP I really would like an MMU. Think these new parts have? 2012-03-17T19:06:05 < emeb> Don't see mention of it: http://www.nxp.com/products/microcontrollers/cortex_m4/lpc4300/ 2012-03-17T19:06:43 < justitguy> emeb, the more I look at your design the more intregued I am. I have built lots of streaming audio servers on Linux platforms and it might be really interesting to build a networked sound system. At this point, wired. But wireless would be fun. 2012-03-17T19:08:06 < emeb> justitguy: Cool. There's really nothing special about this board - basically just hooking some I2S DACs up. 2012-03-17T19:08:17 < justitguy> Nice part I think. Like off loading I/O to separate controller. 2012-03-17T19:08:37 < emeb> yeah - the M0 is a nice touch. 2012-03-17T19:09:26 < justitguy> I understand that emeb, just thinking ... smoke coming out of ears ... Have the resources to make PCBs and have access to a reflow oven ... makes me want more time to tinker. 2012-03-17T19:09:51 < emeb> Understood - time is the limiting resource here too. 2012-03-17T19:10:29 < TitanMKD> LPC4300 seems amazing the problem is NXP like only big company and their politic is awfull (no sample ....) 2012-03-17T19:10:52 < justitguy> Yes, it can be a bitch to stop working on something only to need to go to the office. :-( 2012-03-17T19:11:28 < emeb> TitanMKD: Yeah - would be nice if they had cheap devkits a-la Discovery board. 2012-03-17T19:11:40 < justitguy> Yes, but none of these chips are expensive. And I see, some LQFP packages are available. Makes it easier to work on when not a commercial effort. 2012-03-17T19:11:43 < TitanMKD> in addition LPC4300 full datasheet does not exist 2012-03-17T19:11:57 < TitanMKD> if you look on STM32 or TI products full datasheet are available 2012-03-17T19:12:30 < TitanMKD> emeb yes NXP don't care of guy like us and they do not product any cheep devkit ... 2012-03-17T19:12:56 < justitguy> I am fortunate, happen to have the ability to get NXP to sample me. We buy soooo much from distribution that if I ask a distributer for a part and they think it might be used in production they drool and deliver samples the next day. 2012-03-17T19:13:13 < emeb> justitguy: nice position to be in. 2012-03-17T19:13:29 < TitanMKD> justitguy and ask documentation too ;) you need to sign NDA for everything with them !! 2012-03-17T19:13:43 < TitanMKD> justitguy I ask things and they just do not reply to Email 2012-03-17T19:13:46 < justitguy> Can get full datasheets too. I will look into this. Maybe build a dev board. I sign NDAs all the time. Not a problem. 2012-03-17T19:14:27 < TitanMKD> justitguy it is just crazy to sign NDA for technology like ARM M4 µC where it's free on TI or ST web site ... 2012-03-17T19:14:57 < emeb> IMHO - wide distribution of inexpensive dev/demo boards is the smartest thing STM has done so far. 2012-03-17T19:15:18 < TitanMKD> justitguy the only good things with NXP is their ship are less expensive than STM32 for example ;) 2012-03-17T19:15:25 < TitanMKD> chip 2012-03-17T19:15:50 < TitanMKD> STM32F4 is something like 16US$ !!! if you bought few chip 2012-03-17T19:15:59 < TitanMKD> the cost of evalboard is 20US$ !! 2012-03-17T19:16:27 < justitguy> You don't need to write in blood Titan. With ARM, you get a standard cpu. But, manufacturers are free to put cross point switches and peripherals in. Also any proprietary I/O is okay too. 2012-03-17T19:16:28 < Thorn> is this not a full datasheet? http://www.nxp.com/documents/data_sheet/LPC4350_30_20_10.pdf 2012-03-17T19:17:11 < justitguy> Thorn, looks rather complete. Not a programmer's guide but a good start. 2012-03-17T19:17:29 < Thorn> http://www.nxp.com/documents/user_manual/UM10503.pdf 2012-03-17T19:17:43 < zyp> reference manual is also open, I've looked through it before 2012-03-17T19:17:51 < TitanMKD> Thorn look http://www.nxp.com/documents/data_sheet/LPC4350_30_20_10.pdf 2012-03-17T19:17:55 < TitanMKD> it is just a DATASHEET 2012-03-17T19:18:07 < TitanMKD> nothing about software stuff like DMA and each peripheral 2012-03-17T19:18:31 < Thorn> my second link is the user manual 2012-03-17T19:18:32 < justitguy> Titan, look at second link. 2012-03-17T19:18:53 < justitguy> Looks rather like a complete UM to me. 2012-03-17T19:18:58 < TitanMKD> IIRC it was really incomplete 2012-03-17T19:19:01 < TitanMKD> let me check again ;) 2012-03-17T19:19:37 < Thorn> maybe that's because the chips are new and full documentation was only completed recently? 2012-03-17T19:19:53 < Thorn> that UM still says "preliminary" 2012-03-17T19:20:11 < Thorn> I've enver heard about NXP requiring NDAs for their ARM MCUs 2012-03-17T19:20:17 < justitguy> I am convinced. I will ask for samples next week. See a dev kit. I buy LOTS of parts so can probably get a "loaner" dev board too. 2012-03-17T19:20:35 < justitguy> Thorn, who cares? Just execute the silly thing and let life go on. 2012-03-17T19:20:57 < justitguy> I will keep you posted. 2012-03-17T19:23:27 < TitanMKD> Thorn and where are the source example ;) 2012-03-17T19:23:58 < TitanMKD> Thorn like STM32 ;) even if there api is far from perfect they give examples for each peripheral ... 2012-03-17T19:24:29 < justitguy> Thorn, when you are using new anything, expect "preliminary" from everyone. Do you need someone to chew your food for you? No, well then stop expecting the manufacturer to write your code and design your board too. 2012-03-17T19:25:08 < justitguy> Otherwise, get the manual, study it. Take what you already? know and go on. That is the fun of it. 2012-03-17T19:26:21 < justitguy> emeb, I agree about STM and inexpensive dev kits. Like what Apple did years ago. Put Apple computers in classrooms all over the world. 2012-03-17T19:27:23 < justitguy> Just Apple blew it when the first MACs were proprietary and development of applications was very difficult and the development library was $2500. 2012-03-17T19:28:27 < justitguy> sorry Thorn, comment was really for Titan. 2012-03-17T19:29:10 < justitguy> Got so excited for a minute I lost track of the thread ... :-} 2012-03-17T19:29:15 < Thorn> they have a cmsis+peripheral library with examples like ST does, it's even structured similarly 2012-03-17T19:29:25 < TitanMKD> justitguy for my personal project I do not want to do all ;) 2012-03-17T19:30:07 < TitanMKD> justitguy when I have choice I prefer to wait for new STM32 dual core or new TI M4 ARM dual core ;) 2012-03-17T19:30:48 < justitguy> Titan, of course, you want API libs and have every right to expect them. But, you cannot ask the manufacturer to write all the code. 2012-03-17T19:30:55 < justitguy> Even ST doesn't do that. 2012-03-17T19:31:32 < TitanMKD> justitguy ST have done lot of stuff for their STM32 ;) even if i prefer to use chibios for driver ... 2012-03-17T19:32:06 < jpa-> nxp's have a nicer usb library 2012-03-17T19:32:27 < justitguy> jpa that would be good. The ST lib is a bit lacking. 2012-03-17T19:32:28 < Thorn> they have a nicer everything library, e.g. I2C 2012-03-17T19:32:48 < justitguy> Okay, I am sold. I am getting some of these next week. 2012-03-17T19:32:48 < Thorn> it probably has to do with hardware being nicer to work with too 2012-03-17T19:33:20 < justitguy> Then of course, we need a new topic. ##nxp-arm ? 2012-03-17T19:33:25 < TitanMKD> jpa- and all is under NDA ;) 2012-03-17T19:33:40 < jpa-> TitanMKD: yeah, it has some very nasty license limitations IIRC 2012-03-17T19:33:53 < TitanMKD> like for TI in old years 2012-03-17T19:33:58 < TitanMKD> now TI is more OpenSource 2012-03-17T19:34:03 < jpa-> though so do ST's libraries, but they suck so nobody cares :) 2012-03-17T19:34:58 < justitguy> Titan stop complaining. I have not yet read the license limitations, but trust that NEC will not tie up anybody against pressure for sales. 2012-03-17T19:35:22 < justitguy> Sales at NXP will ALWAYS rule the day. 2012-03-17T19:35:29 < TitanMKD> justitguy I complain about open source project ;) 2012-03-17T19:36:02 < justitguy> Why? If I write something that is worthy of reuse, why not credit me for it? 2012-03-17T19:36:28 < TitanMKD> it is just under NDA the project could be never open source ;) 2012-03-17T19:36:48 < TitanMKD> it's only for commercial closed project 2012-03-17T19:37:01 < TitanMKD> like NXP driver on Android which are binary lib IIRC ... 2012-03-17T19:37:38 < justitguy> So what? If you are planning a commercial product, you can be happy. You are free to share code with others if non-commercial. 2012-03-17T19:37:39 < TitanMKD> like their Mifare One NFC chip which was very closed and now reversed with major failure !! 2012-03-17T19:38:21 < justitguy> Are you talking about Mifare prox? 2012-03-17T19:38:30 < TitanMKD> justitguy you cannot share code when you sign NDA about it, I already signed such c*** 1 time and you can be sued if you give info .. 2012-03-17T19:38:53 < TitanMKD> justitguy yes it is an example of NXP politic ;) 2012-03-17T19:39:55 < zyp> I don't see how this is specific to NXP 2012-03-17T19:40:14 < TitanMKD> zyp yes tons of other company do that 2012-03-17T19:40:16 < zyp> you'll find NDA stuff at pretty much every vendor 2012-03-17T19:40:20 < justitguy> Oh, I am nervous now ... somebody might find out I am helping a couple of friends on personal projects and I can be taken to court? I shudder, I quake and I piss my pants. Don't be silly. If you are doing a commercial project you probably want the protection. If not, you think NXP is monitoring your FTP server? 2012-03-17T19:40:29 < jpa-> many manufacturers also add stupid clauses like "you can use this code only with our devices".. then you cannot license the whole bunch under gpl if you want to be completely compliant :) 2012-03-17T19:40:50 < justitguy> jpa, most of the code in question would not run on another chip anyway. 2012-03-17T19:41:17 < TitanMKD> jpa- yes like ti on their Stellaris code ;) 2012-03-17T19:41:18 < jpa-> justitguy: indeed, so why have that clause? 2012-03-17T19:41:40 < zyp> because they can, why not? 2012-03-17T19:41:46 < justitguy> ARM code IS BY DEFINITION portable. It is the peripheral driver code that is proprietary. I know I cannot put a Jaguar engine in a Toyota. So what? 2012-03-17T19:42:27 < zyp> it's likely not even ARM code, I'd guess you are talking about C code 2012-03-17T19:42:35 < zyp> what of that is ARM-specific? 2012-03-17T19:42:54 < jpa-> justitguy: well, if one has a company and would like to use GPL code and ST's lib in their product; they can't, because either party could sue 2012-03-17T19:44:02 < justitguy> Nothing and just because it is written in C does not matter. You are missing the point. A manufacturer adds their own peripherals to an ARM. That is proprietary. They would guard against some other company duplicating their chip and using their developed drivers. 2012-03-17T19:44:38 < justitguy> Well written applications know absolutely nothing about the hardware. That is the ARM portable code. 2012-03-17T19:44:50 < jpa-> yet developing the drivers doesn't seem much work compared to duplicating the chip - which itself would be either difficult or illegal 2012-03-17T19:45:03 < justitguy> The hardware abstraction layer can be proprietary and so what? 2012-03-17T19:45:12 < jpa-> it sucks for the user 2012-03-17T19:45:33 < justitguy> A driver for an ST USB device would only work on an ST chip. Same with NXP, so what is the problem? 2012-03-17T19:45:44 < zyp> justitguy, no, that's not true 2012-03-17T19:46:00 < zyp> ST USB are actually synopsys USB IP 2012-03-17T19:46:09 < zyp> so that's independent from ST 2012-03-17T19:46:59 < justitguy> I synthesize RTL all the time with synopsys tools (for FPGAs and ASICs). I understand how this works. 2012-03-17T19:47:13 < justitguy> The code for the USB alone is portable. 2012-03-17T19:47:30 < justitguy> The code to have the crosspoint switching on the busses is not portable. 2012-03-17T19:48:08 < justitguy> So, I cannot take code designed to run on an STM32F107 and drop it on a NXP device and expect it to run. 2012-03-17T19:48:25 < justitguy> Parts will, of course. But not the IO 2012-03-17T19:48:36 < justitguy> Probably not the memory. 2012-03-17T19:48:41 < zyp> sure you could, if it were using the same USB IP, you'd just have to change the IO reg base addr 2012-03-17T19:51:40 < justitguy> zyp, I do this for a living. I see your problem. You confuse the ARM with the PSOC peripherals. I will give you binary for any arbitrary ARM based chip. Heck, I will give you source. You show me, that just by changing a base register or two, you can run it. I will make a very substantial wager on this. 2012-03-17T19:52:08 < zyp> justitguy, don't be stupid 2012-03-17T19:52:33 < jpa-> it was a quite big *if*, sure, but if some other manufacturer is using the same USB module, i don't see why it shouldn't be portable? 2012-03-17T19:53:05 < zyp> I also work with embedded systems for a living, so don't try acting like you're in a position where you know more about this than me by default 2012-03-17T19:53:23 < justitguy> The USB only code will work. But, you must get the device configured on the bus, setup the dma channels etc. 2012-03-17T19:53:36 < justitguy> I am not zyp. 2012-03-17T19:56:04 < justitguy> jpa, the upper layer driver will work. It is the chip specific stuff that changes. Well written code will have that abstraction layer and that changes chip by chip. 2012-03-17T19:58:09 < zyp> now I wish I tested that code that I got from a coworker 2012-03-17T19:58:55 < zyp> you see, one of my coworkers is an USB guru, and I was talking about me writing a small stack for the F4, which is based on synopsys IP 2012-03-17T19:59:42 < zyp> and this guy has a fair bit of experience with the synopsys IP, he even have a complete standalone demo stack 2012-03-17T19:59:52 < justitguy> I am not setting myself up as a know-it-all zyp. I architect systems for one of the most demanding customers in the world - happens to be a gov security agency. I encounter portability issues and guard layers with a shotgun over my knee. LOL 2012-03-17T20:00:05 < justitguy> zyp, good he sounds like a good resource for you. 2012-03-17T20:00:28 < zyp> «you can compile this for a pc and just provide stubs to read and write the IO registers over uart or something» 2012-03-17T20:00:58 < justitguy> Exactly. That is the abstraction layer. Without it, nothing works. That is device specific. 2012-03-17T20:01:41 < zyp> well, duh, on a normal soc the abstraction layer would simply be the base address of the IO space of the IP 2012-03-17T20:02:29 < justitguy> And all the IO pins would be setup per the device. The DMA configured for Tx and Rx? I know it is not. 2012-03-17T20:02:55 < zyp> I don't disagree about that 2012-03-17T20:03:04 < zyp> but that doesn't invalidate my argument 2012-03-17T20:04:26 < justitguy> We port code all the time. We write abstraction layers for different devices. The upper level code does not change. But, I stand by my original statement. You cannot take a binary for an ST chip and expect it to work on a NXP chip. Even with source, you would do much more than change a few base registers. 2012-03-17T20:05:19 < jpa-> yet you don't have to throw away all of the lower level 2012-03-17T20:05:31 < jpa-> except if there are boring license clauses that force you to 2012-03-17T20:05:41 < zyp> justitguy, you didn't say binary, you said driver, which is a software module 2012-03-17T20:05:52 < justitguy> When a manufacturer writes a library to support the abstraction layer, that is often proprietary. So who cares? 2012-03-17T20:05:58 < justitguy> No, I said system. 2012-03-17T20:06:20 < zyp> 18:45:33 < justitguy> A driver for an ST USB device would only work on an ST chip. Same with NXP, so what is the problem? 2012-03-17T20:06:27 < zyp> I read «driver» 2012-03-17T20:07:01 < jpa-> justitguy: i would rather have it non-propietary, so i care 2012-03-17T20:07:26 < justitguy> Well that could be zyp if the driver is poorly crafted. If however you use a model where the device specific stuff is is abstracted you get portable upper level code. 2012-03-17T20:07:47 < zyp> exactly 2012-03-17T20:08:14 < justitguy> The abstraction requires more than changing a few base register addresses. 2012-03-17T20:08:17 < zyp> and there multiple layers, so you get different levels of «upper level code» 2012-03-17T20:09:06 < zyp> some gpio settings are trivial compared to the task of writing a full USB IP driver 2012-03-17T20:10:58 < justitguy> Even so, peripherial configuration, interrupts, dma are all proprietary to the chip set. So porting code is not as simple as changing a few base regs. Well written USB drivers are probably about 80% portable. 2012-03-17T20:11:19 < zyp> my argument is that a substantial part of the code is able to be ported to other SoCs containing the same IP, so it makes sense for the SoC vendors to protect their investment in example code from being used on competitor's SoCs 2012-03-17T20:12:19 < justitguy> Example code is just that, an example, a model. Most of it is full of good ideas but not production code. What you take from the examples is ideas not code. 2012-03-17T20:12:41 < zyp> I agree 2012-03-17T20:13:35 < zyp> but if you're not using example code, why does the license terms even matter? 2012-03-17T20:14:29 < justitguy> What is licensed is not the example. What is licensed is the low level code supplied by the manufacturer to make the abstraction layer easier to code. 2012-03-17T20:16:00 < justitguy> Who wants to pour over the register assignments? Not me. I want to rely upon the manufacturer to do some of this for me. How they do it is proprietary. Not the only way to get the job done, but certainly beats developing your own. 2012-03-17T20:17:13 < justitguy> The manufacturer, being the more experienced entity, deserves to have IP protection. 2012-03-17T20:18:22 < justitguy> And, don't forget that across some ARM SoCs there exist a LOT of similarities. They do not want their IP running some other manufacturers chip. 2012-03-17T20:20:47 < jpa-> if the low-level code is not portable, it shouldn't require any protection and they should instead release it freely to benefit their customers 2012-03-17T20:21:02 < justitguy> It is free to use on THEIR chips. 2012-03-17T20:24:20 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-17T20:24:38 < justitguy> This is the difference between, for example, a new college grad and his "C" code vs an experienced programmer who must produce code that is supportable. Not all manufacturers libraries are well written. 2012-03-17T20:25:28 < justitguy> So, if the manufacturer writes good libraries, he does not want them running on similar chip sets not his own. 2012-03-17T20:26:41 < justitguy> I can look at support libs for lots of SoCs. Lots of similarities. Some really bad code in some - looks like the new guy's first try. Others really tight. 2012-03-17T20:27:21 < justitguy> I can even see how to port the low level code to other chips. But, why port bad code? 2012-03-17T20:28:14 < zyp> who do you work for? 2012-03-17T20:28:16 < justitguy> That is properly the proprietary part. I don't have a problem with a manufacturer spending lots of money on his libraries and getting paid by chip sales. 2012-03-17T20:28:38 < justitguy> One of the largest gov agencies in security. 2012-03-17T20:28:47 < zippe> In the USA there is actually also an issue with a vendor producing code and giving it away when it's used to help a competitor's sales 2012-03-17T20:28:48 < jpa-> if the license of the good code allowed porting, it would benefit the community as a whole and make embedded development easier; but no, of course companies always just think about "don't let anyone steal our precious intellectual *property*!" 2012-03-17T20:29:18 < zippe> Specifically, the interpretation of Sarbanes-Oxley can be bent to permit shareholder lawsuits in that case 2012-03-17T20:29:45 < justitguy> jpa, if you wrote a great piece of code, you would resent it if someone else took it and charged money for it. 2012-03-17T20:30:12 < jpa-> not really, if i got plenty 2012-03-17T20:30:14 < justitguy> SO only applies to publically traded companies in the US. Has nothing to do with this. 2012-03-17T20:30:31 < jpa-> ST and NXP are not publically traded in the US? 2012-03-17T20:30:57 < justitguy> jpa, I said "STOLE" if you didn't understand it. You write the code. I take it and sell it. I pay you nothing. Is that not theft? 2012-03-17T20:31:09 < zippe> justitguy: No, it's not 2012-03-17T20:31:32 < jpa-> justitguy: and yet, i don't mind if i have plenty of money 2012-03-17T20:32:01 < justitguy> jpa did not release the code under public license. He retains all rights. Selling his code is theft, plain and simple. 2012-03-17T20:32:08 < zippe> justitguy: theft is the removal of a thing 2012-03-17T20:32:16 < justitguy> NO it is not! 2012-03-17T20:32:20 < zippe> to steal the code means that you have deprived him of it 2012-03-17T20:32:28 < zippe> Copying something is not stealing it 2012-03-17T20:32:37 < jpa-> justitguy: yes, we should follow the laws - but jpa should release his code under public license 2012-03-17T20:32:40 < zippe> Regardless of what the RIAA/MPAA want you to think 2012-03-17T20:33:29 < jpa-> whether it is called theft or not is irrelevant (except for lobbying purposes), it is unlawful anyway 2012-03-17T20:33:32 < justitguy> To steal in this context is depriving him of the monetary reward which is his right as he did not make the code public. So, indeed it is theft. 2012-03-17T20:33:50 < zippe> Again, that is not theft 2012-03-17T20:34:04 < zippe> And a monetary reward is not a right 2012-03-17T20:34:04 < jpa-> justitguy: i didn't say anyone should "steal" code; i said that the companies should be smart enough to release it publicly so that it doesn't have to be "stolen" 2012-03-17T20:34:40 < zippe> jpa: there is a nonzero cost to releasing code in a useful fashion 2012-03-17T20:34:52 < zippe> And the entitlement complex that the reipients tend to have makes it worse 2012-03-17T20:34:56 < justitguy> jpa, you sound like a communist. Everything developed should be free to all. After all, they have more money than I and I deserve it even if I did not earn it. 2012-03-17T20:35:29 < zippe> justitguy: you sound like an American that doesn't comprehend socialism 2012-03-17T20:36:03 < zippe> for a 101, start with "to each according to his needs, from each according to his abilities" 2012-03-17T20:36:11 < jpa-> justitguy: i would release everything i ever make to the public if my employer would let me; and that is even though i know the people who use it would probably have much more money than i have 2012-03-17T20:36:11 < justitguy> Look, it I develop a better mouse trap why do you have the right to reproduce it and not pay me for my time, effort and monies spent in such development? 2012-03-17T20:36:22 < justitguy> Yes, karl. 2012-03-17T20:36:49 < zippe> justitguy: because you are deluded if you think that your mousetrap was developed without your benefiting in a substantial way from all the contributions that we have collectively made 2012-03-17T20:36:58 < justitguy> You don't own it if you developed it for your company. 2012-03-17T20:37:00 < zippe> Your real contribution is incremental 2012-03-17T20:37:32 < jpa-> justitguy: i know, and yet for some products it would actually benefit the company to release the publicly 2012-03-17T20:37:36 < zippe> And by not turning that contribution over to society, you are *stealing* it (your definition) from everyone from whom you withold it 2012-03-17T20:37:38 < justitguy> zippe, so what. If it was worth you taking and reproducing, why should I not be paid for even my incremental improvement? 2012-03-17T20:38:02 < zippe> justitguy: in the socialist sense, you are paid 2012-03-17T20:38:21 < justitguy> zippe, you are not going to site Marx and convince me that theft is a good thing for a society. 2012-03-17T20:38:24 < zippe> Your problem is just the usual myopia; you're not looking at the system as a whole 2012-03-17T20:38:25 < jpa-> justitguy: did you pay for the people who 2000 years prior invented the first mouse trap? how long should you be allowed to retain your rights? 2012-03-17T20:38:49 < zippe> justitguy: you're failing to see that claiming a proprietary right is theft from socieft 2012-03-17T20:38:57 < zippe> society, even. 2012-03-17T20:39:35 < justitguy> Of course the rights pass to the public in time. Here in the US patents expire. Designs become obsolete because someone invents a better mouse trap. That is good. 2012-03-17T20:39:46 < zippe> In the capitalist system, society tries to compensate for that theft by forcing you to pay for a large portion of the benefits you receive 2012-03-17T20:39:54 < jpa-> justitguy: my point of view is that projects like GCC and Linux and all the other great open source projects have done the world much more good than if they were propietary - and therefore, i want to spend my time working on such things, even if it means less money for myself 2012-03-17T20:40:38 < justitguy> I absolutely agree jpa. They are by definition Open Source. I contribute all the time. I use some of the great stuff. 2012-03-17T20:41:31 < justitguy> I also spend considerable monies (mine not gov) on projects that have commercial value. I have $100K plus in a project not including thousands of hours of my time. 2012-03-17T20:41:38 < jpa-> so i just wish the companies like ST and NXP would see the benefit in this model instead of trying to guard their libraries that are not really that much of an investment anyway 2012-03-17T20:41:47 < justitguy> It is NOT Open Source! 2012-03-17T20:42:19 < jpa-> but it should be 2012-03-17T20:42:34 < justitguy> jpa, what? 2012-03-17T20:42:45 < justitguy> I spend my money for your benefit? 2012-03-17T20:43:01 < justitguy> Who are you? 2012-03-17T20:43:08 < justitguy> Why am I obliged to do that? 2012-03-17T20:43:22 < jpa-> ehheh, i thought you were replying to me :) 2012-03-17T20:43:35 < zippe> justitguy: because the alternative is that fairness dictates we not let you use any of the stuff that we contributed to society 2012-03-17T20:43:39 < jpa-> i don't care about your projects - they are probably not even useful to me anyway 2012-03-17T20:43:53 < zippe> Things like power, running water, roads, medical research, you name it 2012-03-17T20:44:35 < justitguy> Probably not jpa, but can run power stations and distribution grids. Control water purification and recycling, certainly be used for medical research. 2012-03-17T20:45:07 < zippe> The problem with your average cubicle capitalist is that you never look at the big picture. And my coffee is here, so I need to go back to making billions. Tata. 2012-03-17T20:45:37 < jpa-> i'm not even trying to argue that every project ever should be open source - but there are many commercial projects that would actually benefit from more liberal license terms 2012-03-17T20:46:11 < justitguy> I am not getting into a pissing contest zippe about who contributes more. But I probably have more lines in public domain than you will ever get past code review. 2012-03-17T20:46:19 < jpa-> justitguy: btw, are you trying to make money for yourself or just the people who own the company? 2012-03-17T20:46:51 < justitguy> jpa, that is a relief. I am trying to make money for myself, not the company. That is why I am investing MY money and time. 2012-03-17T20:46:53 < jpa-> justitguy: you know, you have a habit where your first sentence contradicts the second one.. "i'm not trying to say that i'm better than you - but i am anyway" 2012-03-17T20:48:23 < justitguy> Maybe just a bit more realistic jpa. I don't expect to go to to the office and work for the privilege of making money for the company or you. I go there because I am paid for my work. What I do there belongs to the company. 2012-03-17T20:49:00 < justitguy> When I spend my money on a commercial project, it may benefit others. But, I deserve to be compensated for my efforts. 2012-03-17T20:49:38 < jpa-> justitguy: being realistic doesn't mean that we must accept the reality as it is. I think it is worth trying to change it into a better direction, even if that means a bit less money for someone 2012-03-17T20:50:18 < justitguy> I happen to believe that there is enough to go around to everyone. 2012-03-17T20:50:31 < jpa-> if there is enough, why do you need more? 2012-03-17T20:50:58 < justitguy> But, I do not feel that I should be told how much, where and how I spend it or anything else. Who judges that? 2012-03-17T20:51:33 < justitguy> Would you be the next money tzar jpa. You tell me how much I can earn and where I can spend it? 2012-03-17T20:51:54 < justitguy> How I must spend it. How much or how little is proper for me? 2012-03-17T20:52:19 < jpa-> i don't mean that anyone should tell you that - you should be sensible enough to decide fairly yourself 2012-03-17T20:54:10 < justitguy> But by implication you would jpa. You say "even if it means a lit less money for someone". How would you arrange that? 2012-03-17T20:54:36 < justitguy> A government agency that decides what is fair and proper? 2012-03-17T20:56:07 < justitguy> You unfairly I think, think I am some rich capitalist out to exploit the world. I spend more (of my own personal money) on scholarships each year than most GM execs get in a year - before taxes. 2012-03-17T20:56:43 < justitguy> I support families all over the world, totally. Only they must go to school not sit at home looking for their next check. 2012-03-17T20:57:58 < justitguy> I do not believe that United Way or the US government has a more hands on approach. No Gulf Stream jets and lavish "fund raising dinners". 2012-03-17T20:58:54 < justitguy> I personally know every single one and visit often. I help with homework online. I give a lot of my personal time to help others who are willing to work for a chance to improve themselves. 2012-03-17T20:59:15 < justitguy> I only ask that they do it for others when they are able. Nothing more. Very simple. 2012-03-17T21:01:00 < justitguy> Yes, I make money. I am good at it. I give away more than I keep. Still, I am very comfortable. What have any of the people here done but say, "It should be free, it would help people". Who here has even volunteered an hour of their time to help a kid who cannot read in school? 2012-03-17T21:01:53 <+Steffanx> Monologues are nice :P 2012-03-17T21:01:56 < justitguy> The problem in America today is that people think it should all be free. Nothing is free. Everything comes at some cost. Usually not money. 2012-03-17T21:03:04 < justitguy> Yes, Steffanx they are. Love to hear people tell me how selfish I am ... LOL 2012-03-17T21:05:24 < jpa-> justitguy: i didn't mean to say you are selfish (maybe you were referring to zippe instead?) 2012-03-17T21:05:37 < jpa-> justitguy: but anyway, i think you are a bit too proud about yourself :) 2012-03-17T21:06:37 < justitguy> Well, I am proud of what I do. Usually I don't get so riled. But I detest the zippes of the world who think that by breathing they are entitled to whatever they want. 2012-03-17T21:07:12 < justitguy> Without work or effort. They just are entitled because they want it. 2012-03-17T21:07:56 < jpa-> justitguy: he didn't claim he was entitled to anything - he just made the point that the world could be better if more people were selfish (and he probably wasn't even referring to you specifically - there definitely are a lot of selfish people around) 2012-03-17T21:08:07 < jpa-> *not selfish 2012-03-17T21:08:16 < justitguy> sorry jpa, I don't usually blast so much. Few people know what I do. Were it not for the anonomity neither would you. 2012-03-17T21:08:37 <+Steffanx> justitguy you are from the US, aren't you? 2012-03-17T21:08:50 * Steffanx didn't read the conversation :P 2012-03-17T21:09:31 < justitguy> I agree jpa. But I hear that a lot. Then I ask "what have you given freely to another in time or effort not expecting a reward". Never has anyone said they have done anything. 2012-03-17T21:09:48 < jpa-> because they don't like to brag 2012-03-17T21:09:49 < justitguy> Steffanx, right now I am in the U 2012-03-17T21:10:03 < jpa-> bragging makes a person sound like an idiot, a bit like you above 2012-03-17T21:10:05 < justitguy> Oops, US. Am 1/2 French 1/2 German. 2012-03-17T21:10:15 <+Steffanx> Poor you :P 2012-03-17T21:10:42 < justitguy> I agree jpa. I am the first to admit I can be an idiot. 2012-03-17T21:10:55 < justitguy> And you Steffanx, where are you? 2012-03-17T21:11:02 <+Steffanx> The Netherlands 2012-03-17T21:11:07 < jpa-> justitguy: i guess your self-contradicting lines were a bit provocative :) 2012-03-17T21:11:13 <+Steffanx> I think that's your french part justitguy :P 2012-03-17T21:11:22 < justitguy> Probably. 2012-03-17T21:11:34 < justitguy> I am wont to provoke conversations. 2012-03-17T21:11:51 < jpa-> Steffanx: make me a sandwich 2012-03-17T21:11:54 < justitguy> Then is when I really see who is talk and who is action. 2012-03-17T21:11:58 < justitguy> LOL 2012-03-17T21:12:12 <+Steffanx> Uhm, the time too eat was a few hours ago.. 2012-03-17T21:12:17 <+Steffanx> to 2012-03-17T21:12:26 < jpa-> i didn't eat back then 2012-03-17T21:12:45 < justitguy> Unless you are in Italy Stef. Then it is about time or an hour past. 2012-03-17T21:12:50 <+Steffanx> Make your wife do it jpa- 2012-03-17T21:12:54 <+Steffanx> You married for a reason i guess? 2012-03-17T21:13:13 < jpa-> she left for work 2012-03-17T21:13:21 < justitguy> Who is that addressed to Steff? 2012-03-17T21:13:27 <+Steffanx> jpa- 2012-03-17T21:13:35 <+Steffanx> I'm from the netherlands justitguy .. 2012-03-17T21:13:43 <+Steffanx> We eat around 17.30 here .. 2012-03-17T21:14:13 <+Steffanx> Uhm, i meant 5.30pm 2012-03-17T21:14:25 < justitguy> Understand that. Too early for me. I love to eat dinner between 20:00 and 23:00. I am then awake for hours after that. 2012-03-17T21:15:11 < zyp> I left for a shower, what happened after I left? 2012-03-17T21:15:16 <+Steffanx> Nothing 2012-03-17T21:15:29 < jpa-> zyp: some monologues and small-scale irc fights, nothing important :) 2012-03-17T21:15:30 < justitguy> I love food and can sit a while at a good table. That's why I like western europe so much. Less rush. 2012-03-17T21:15:31 < zyp> except some full pages of text 2012-03-17T21:15:32 < zyp> :p 2012-03-17T21:15:59 < jpa-> zyp: and an unusual end of actually achieving some kind of a mutual understanding with the enemy ,) 2012-03-17T21:16:13 < justitguy> Okay, okay, gimmie a break. I am sorry guys. :-! 2012-03-17T21:16:45 < jpa-> justitguy: nah, irc-fights are fun - no hard feelings :P 2012-03-17T21:17:36 < justitguy> Oh, dearest enemy mine. I don't think we are so philosophically different. Different methods perhaps ... 2012-03-17T21:17:47 < jpa-> and different background 2012-03-17T21:17:56 < justitguy> Yes, admitedly that too. 2012-03-17T21:18:46 < justitguy> BTW, jpa where are you? 2012-03-17T21:18:48 < jpa-> finland 2012-03-17T21:19:03 <+Steffanx> The country with the loooong words 2012-03-17T21:19:34 <+Steffanx> Where normal languages need 3 characters, they at least need 15 2012-03-17T21:19:49 < justitguy> sounds like german Steff. 2012-03-17T21:19:58 <+Steffanx> Noo 2012-03-17T21:20:03 < jpa-> viisitoista ei ole vielä kovinkaan pitkä sana 2012-03-17T21:20:06 <+Steffanx> Finnish is worse 2012-03-17T21:20:35 < jpa-> but we have 2- and 3-letter words also! 2012-03-17T21:20:37 < justitguy> I have never seen such long words. Really, so it takes until you are 5 years old to get a complete sentence out? LOL 2012-03-17T21:21:22 <+Steffanx> Finnish people talk very fast justitguy :P 2012-03-17T21:21:44 < justitguy> Ah, that must work! Just being silly now ... 2012-03-17T21:22:28 < justitguy> I have a neighbor who is the chef for the Finnish embasy here. Sweet woman with great kids. 2012-03-17T21:23:25 < justitguy> Also, if I remember correctly, it takes a couple of years to get a full driving license? The best cross country drivers are from there. 2012-03-17T21:23:39 < justitguy> Practice all the time on ice and snow roads. 2012-03-17T21:24:26 <+Steffanx> Here it just takes ~1.500 euro 2012-03-17T21:24:30 <+Steffanx> *1,500 2012-03-17T21:24:35 < justitguy> Of course, they have STM32 based co pilots. Just to stay on topic. 2012-03-17T21:25:09 < jpa-> well.. the couple of years thing is just so that you have to take one more driving lesson after 1-2 years 2012-03-17T21:25:17 < jpa-> some kind of "recap" thing 2012-03-17T21:25:19 <+Steffanx> Hereby it's allowed to talk about non-stm32 related things 2012-03-17T21:26:07 < justitguy> That is a good thing I think. We have lots of really bad drivers in the US. Wish we had a similar system. 2012-03-17T21:26:48 <+Steffanx> And you have to be at least 18 jpa- ? 2012-03-17T21:26:56 < jpa-> Steffanx: sure 2012-03-17T21:27:01 < jpa-> driving school by winter is very annoying.. can't see the road marks, can't even see all the signs 2012-03-17T21:27:39 < justitguy> That would be a bit scary. You must stay on a road that you cannot see. 2012-03-17T21:28:02 < jpa-> well that is not so difficult 2012-03-17T21:28:09 < jpa-> the ditches are visible anyway 2012-03-17T21:28:29 < jpa-> but knowing when to switch lanes and where the pedestrian crossings are is a bit annoying 2012-03-17T21:28:38 <+Steffanx> And at least you can only make a mistake once.. 2012-03-17T21:28:54 < jpa-> Steffanx: oh, it's not deadly to drive to the ditch 2012-03-17T21:29:04 <+Steffanx> Too bad 2012-03-17T21:29:06 < justitguy> Yes, what was that thump ... ? 2012-03-17T21:29:24 < justitguy> A pedestrian or a ditch? 2012-03-17T21:30:15 < jpa-> the thing with the pedestrian crossings is that there are some rules about how you must stop there if a car is parked next to it, even if there is no pedestrian coming - a sensible rule but difficult to follow by winter 2012-03-17T21:30:53 < justitguy> Try to drive in rome some time. Now, that is really crazy. You can see the signs and the lanes but nobody follows any rules. Like gladiator games. 2012-03-17T21:31:45 < BrainDamage> it's not that bad 2012-03-17T21:32:08 < justitguy> Or some parts of asia are the same. Driving in the Philippines for instance, is when two lanes are used as four or five and people fight for 3 meters of space. 2012-03-17T21:32:34 < justitguy> BrainDamage, no I agree. But the first time I drove there it was a bit of a challenge. 2012-03-17T21:32:52 < BrainDamage> there's a lot of traffic, and there's a lot of assholes 2012-03-17T21:33:10 < BrainDamage> like people who don't use direction lights, etc 2012-03-17T21:33:12 < justitguy> No, actually it was frightening. I did not understand the traditions ... and the gestures of course. LOL 2012-03-17T21:33:19 < BrainDamage> .. what? 2012-03-17T21:33:57 < BrainDamage> I think you visited in a movie, people don't communicate with over exagerated gestures here 2012-03-17T21:34:18 <+Steffanx> i guess BrainDamage is used to it 2012-03-17T21:34:40 < justitguy> Everyone was just going this way and that. It just seemed so BD. I was a new driver then and I was a bit overwhelmed. 2012-03-17T21:35:10 < BrainDamage> mmm no? several people who visited me from foreign countries actually told me they were surprised there was no such thing here 2012-03-17T21:35:24 <+Steffanx> lies 2012-03-17T21:35:29 < justitguy> I was only 17 my first time driving in Rome. I had only been driving a year. 2012-03-17T21:35:36 < justitguy> BD, no such thing as what? 2012-03-17T21:36:44 < BrainDamage> over exagerated gestures 2012-03-17T21:37:12 < BrainDamage> btw, here when you're 17, you cannot even get a license 2012-03-17T21:37:15 < BrainDamage> you need to be 18 2012-03-17T21:37:27 < BrainDamage> altough you can also legally drink then 2012-03-17T21:37:55 < justitguy> I am not Italian. Had an international license and could drive, or I did anyway. 2012-03-17T21:38:06 < BrainDamage> yeah, I got that 2012-03-17T21:38:11 < BrainDamage> I agree that big cities' traffic here is super stressful, I avoid myself when I can 2012-03-17T21:39:44 < justitguy> BD, I think that when you are in a very loud concert you don't hear anything loud. Same for foreigners visiting Italy. We see more gesturing than we see at home. You just don't "hear" it is all. 2012-03-17T21:39:59 <+Steffanx> (what is BD ?) :) 2012-03-17T21:40:24 < justitguy> BrainDamage, just l o n g to type. 2012-03-17T21:40:31 <+Steffanx> No tab-completion? 2012-03-17T21:40:33 <+Steffanx> *nick 2012-03-17T21:41:08 < justitguy> yes, but sometimes when I am running a virtual machine, tab is missed. I don't use it often. 2012-03-17T21:41:20 <+Steffanx> ok .. 2012-03-17T21:41:34 < justitguy> Actually, forgot about it. Bad on me. 2012-03-17T21:43:05 < justitguy> Steffanx, now it is working. Most VMs are idle now, that probably explains why this machine is capturing controls. Sometimes c is even worth a few hits. 2012-03-17T21:43:08 < BrainDamage> I actually have "BD" highlighting me too, since use this nick in the very few videogames I play and everyone shortens my nick like that 2012-03-17T21:43:55 < justitguy> Good, see I am psychic too as well as very shy and modest. :~} 2012-03-17T21:46:03 < jpa-> BrainDamage: so how did you get your brain damage? 2012-03-17T21:46:30 <+Steffanx> Too many videogames 2012-03-17T21:47:32 < justitguy> See, I have been contending for years that videogames will be the ruin of the world! 2012-03-17T21:47:47 < justitguy> So very much brain damage ... LOL 2012-03-17T21:48:30 < justitguy> BrainDamage, glad it is not from a car accident though. 2012-03-17T21:49:25 < BrainDamage> I never said I have brain damage, I am brain damage 2012-03-17T21:49:42 <+Steffanx> Same thing 2012-03-17T21:49:44 < justitguy> Ah, you are the perpetrator then. Good for you. 2012-03-17T21:50:07 < justitguy> A video game maker ??? 2012-03-17T21:50:23 * jpa- successfully prepared a meal of spaghetti and minced meat steaks 2012-03-17T21:50:38 <+Steffanx> That no sandwich 2012-03-17T21:50:42 <+Steffanx> That's 2012-03-17T21:51:03 < BrainDamage> you can always enclose in 2 bread pieces 2012-03-17T21:51:04 < justitguy> jpa, sounds interesting. What kind of bread to you put that on? 2012-03-17T21:51:37 < jpa-> none? 2012-03-17T21:51:52 <+Steffanx> spaghetti sandwich :D 2012-03-17T21:52:24 < jpa-> http://1.bp.blogspot.com/_u91Rmascp2o/SJ5C90wptJI/AAAAAAAACYA/T1_wrKxr9a0/s400/spagmeatballs.JPG something like that except the meat balls would be flat :D 2012-03-17T21:53:03 < justitguy> Looks good jpa. Now I am hungry. 2012-03-17T21:53:27 <+Steffanx> mcdonalds time? 2012-03-17T21:53:37 <+Steffanx> Like a real American 2012-03-17T21:53:51 < justitguy> A little past lunch time here. Need to raid the kitchen and see what I can put together. NO, hate McDonalds! 2012-03-17T21:54:08 <+Steffanx> bratwurst 2012-03-17T21:54:20 < justitguy> I don't do fast food. Prefer to make something or go to a good restaurant. 2012-03-17T21:54:51 <+Steffanx> bratwust isn't fastfood isit? 2012-03-17T21:55:07 < jpa-> i used to be ok with mcdonalds & similar burgers.. then i went to this one place that had some very good burgers and now mcdonalds food seems like crap :) 2012-03-17T21:55:15 < justitguy> Maybe that is the French in me. No, but sounds good. Maybe with sour kraut and a dark ale. 2012-03-17T21:56:30 < justitguy> Yes, a good burger is not found at McDs or other fast food chains. Recently had a gourmet burger with Kobi beef that I still can remember/taste. Not a burger ... an experience! 2012-03-17T21:57:44 < justitguy> I really love good food! If not careful it would show too. But, I refuse to be an obese American. 2012-03-17T21:58:30 <+Steffanx> :P 2012-03-17T21:59:46 < justitguy> Steffanx, why the tongue out? 2012-03-17T22:00:06 < jpa-> drooling for your food 2012-03-17T22:00:20 < BrainDamage> or on your food 2012-03-17T22:00:46 < justitguy> Ah, okay me too. Now I am famished. 2012-03-17T22:00:49 < jpa-> oh. better be careful 2012-03-17T22:01:01 <+Steffanx> " I refuse to be an obese American." <= 2012-03-17T22:01:16 < BrainDamage> you can always change nationality 2012-03-17T22:01:29 < BrainDamage> you could be an obese french for instance 2012-03-17T22:01:40 < BrainDamage> or something more uncommon, say, obese ethiopian 2012-03-17T22:01:49 < justitguy> Steffanx, I know. I would eat rich food all the time and it would start to show. Then would have to buy new clothes. 2012-03-17T22:02:01 < justitguy> LOL, no fat ethipians ... 2012-03-17T22:02:14 < justitguy> Ethiopians, I mean. 2012-03-17T22:03:17 < justitguy> So, yes maybe I will eventually be a fat frenchman - NOT! 2012-03-17T22:03:52 < justitguy> Now, off to see what I can whip up for lunch ... 2012-03-17T22:04:03 < jpa-> i'm a bit worried because i have been losing weight recently and i'm quite thin to begin with 2012-03-17T22:04:19 < justitguy> jpa, maybe you should get checked. 2012-03-17T22:05:02 < BrainDamage> or just eat some supercaloric stuff 2012-03-17T22:05:12 < jpa-> maybe, but on the other hand it may be just normal fluctuation 2012-03-17T22:05:35 < BrainDamage> you could start submerging your food in a pile of sugar 2012-03-17T22:05:53 < justitguy> BrainDamage, now that is just cruel! 2012-03-17T22:06:05 < jpa-> since my wife got a job with varying shifts, our meal times have been quite irregular 2012-03-17T22:06:27 <+Steffanx> I guess someone gave your fat too me jpa- 2012-03-17T22:06:33 <+Steffanx> :( 2012-03-17T22:06:58 < jpa-> Steffanx: oh but you are not fat in my dreams :) 2012-03-17T22:07:46 <+Steffanx> I'm not fat, but i could loose some weight :) 2012-03-17T22:07:52 <+Steffanx> lose loose wahtever 2012-03-17T22:09:57 <+Steffanx> I'm a lazy ass you know .. ) 2012-03-17T22:10:36 < jpa-> i've been biking to school/work all winter, it's a nice way to get some basic exercise despite being lazy :) 2012-03-17T22:10:51 <+Steffanx> motor bike :P 2012-03-17T22:11:24 < jpa-> those are cheating :): 2012-03-17T22:11:29 <+Steffanx> 22km is a little too far for me 2012-03-17T22:11:36 <+Steffanx> and 22km back 2012-03-17T22:11:46 < jpa-> true, i have only 2km 2012-03-17T22:13:33 <+Steffanx> I did that daily.. to school 2012-03-17T22:13:37 <+Steffanx> but that was 5 years ago :P 2012-03-17T22:13:38 < jpa-> i'm not crazy enough to climb the stairs to 12th floor, even though that would definitely be good exercise 2012-03-17T22:15:29 <+Steffanx> Not crazy enough?!?!?!?! 2012-03-17T22:15:46 < jpa-> ?!? 2012-03-17T22:17:33 < justitguy> jpa-, tried to join you for spaghetti and meat but I scorched the pasta water and had to make an omlet with sun dried tomatoes, black forest ham, mushrooms and cheese. 2012-03-17T22:17:58 < jpa-> scorched the *water*? :D 2012-03-17T22:18:11 <+Steffanx> LOL 2012-03-17T22:18:14 < justitguy> yes, it takes real talent to do that. 2012-03-17T22:18:28 < jpa-> i see why you have such a self-esteem :) 2012-03-17T22:18:56 < justitguy> Yes, you see right thru me. 2012-03-17T22:19:44 < justitguy> I do make a decent omlet though. Just never mastered Italian. 2012-03-17T22:20:25 < jpa-> for some reason i'm not a big fan of omelets.. they make me feel sick if i eat enough to fill my stomach 2012-03-17T22:20:39 < jpa-> could be all the eggs :P 2012-03-17T22:21:14 < justitguy> I am not planning to eat that much. I have some really really good chocolate cake for later. I will save some room for that! 2012-03-17T22:21:43 <+Steffanx> FAT yankie 2012-03-17T22:22:07 < justitguy> My omlets have lots of things in them. More ingredients than eggs, so not a big problem. 2012-03-17T22:22:43 < jpa-> i wish i had some cake.. for example the one that was on my mother's birthday last weekend.. but she didn't give any to take home because she said it would get messed up in a package :F 2012-03-17T22:23:02 <+Steffanx> lol 2012-03-17T22:23:07 <+Steffanx> She knows her son 2012-03-17T22:23:47 < justitguy> I really like to cook. I entertained last night and made a double chocolate cake with pecans that is terrific. I will send you some jpa. 2012-03-17T22:24:28 < jpa-> thanks :) 2012-03-17T22:24:34 <+Steffanx> Make me some apple cake 2012-03-17T22:24:49 < justitguy> Can do, sweet or tart? 2012-03-17T22:25:11 < jpa-> i would like to cook more cakes.. but due to the irregular meal times i would end up eating just cake and then get headache from all the sugar :D 2012-03-17T22:25:41 < jpa-> after a few bad headaches i have decided that the cakes aren't worth it :) 2012-03-17T22:26:21 <+Steffanx> Weird guy 2012-03-17T22:26:24 < justitguy> me too. I love to make things but I always make too much. I will give away most of the cake cause I only really like a little bit. I would rather have other non-sugar food. 2012-03-17T22:27:15 <+Steffanx> I only get headaches from too much sleep 2012-03-17T22:27:20 <+Steffanx> lucky me 2012-03-17T22:27:52 < justitguy> Well simple, play more video games with BrainDamage stay awake late! 2012-03-17T22:28:24 <+Steffanx> What do you think i do right now? 2012-03-17T22:28:28 < justitguy> Of course, you will forget how to tie your shoes, but no matter, man was not born with shoes anyway. 2012-03-17T22:28:38 <+Steffanx> Except for the with BD part 2012-03-17T22:28:43 < jpa-> Steffanx: ten o' clock is not late :) 2012-03-17T22:29:25 <+Steffanx> Uh? 2012-03-17T22:29:29 <+Steffanx> I didn't say it was 2012-03-17T22:29:55 <+Steffanx> is 2012-03-17T22:30:38 < jpa-> ok :) 2012-03-17T22:31:26 < jpa-> hmph.. should do some homework 2012-03-17T22:31:47 <+Steffanx> No 2012-03-17T22:31:50 <+Steffanx> Math? 2012-03-17T22:31:51 < justitguy> jpa-, you are a student then. What are you studying? 2012-03-17T22:32:15 < jpa-> justitguy: "various things".. my major is digital technology though 2012-03-17T22:32:28 < jpa-> Steffanx: rf things 2012-03-17T22:32:45 <+Steffanx> things 2012-03-17T22:32:46 < jpa-> http://kapsi.fi/~jpa/stuff/other/wk2.2.pdf 2012-03-17T22:33:12 < justitguy> I really think RF is black magic. When studying engineering I was always in awe of the good analog RF guys. 2012-03-17T22:33:51 < jpa-> yeah.. i'm trying to learn some RF basics even though i aren't going to study the full RF curriculum 2012-03-17T22:34:18 <+Steffanx> "Prove …. blabla bla lb" i HATE that 2012-03-17T22:34:36 < justitguy> Just looked at your homework. Brings back bad memories. 2012-03-17T22:34:37 < BrainDamage> rf is not that hard 2012-03-17T22:35:19 <+Steffanx> The other exercises are just "use the correct formula" 2012-03-17T22:35:26 < jpa-> many things are quite easy when studying them in university.. trying to learn it yourself from wikipedia is difficult :P 2012-03-17T22:35:26 <+Steffanx> s 2012-03-17T22:35:29 < justitguy> BrainDamage, perhaps not if you have a magic wand. I watch our people struggle with it daily. 2012-03-17T22:35:41 <+Steffanx> BrainDamage is into physics isn't it? 2012-03-17T22:35:54 < jpa-> Steffanx: yet the 'prove' things are not hard like proving something in maths 2012-03-17T22:36:06 < BrainDamage> no, I am an EE, altough I quite enjoy physics 2012-03-17T22:36:16 < BrainDamage> ( student ) 2012-03-17T22:36:20 < jpa-> Steffanx: in this exercise it is just placing the stuff in the differential equation and calculating it through (symbolically) 2012-03-17T22:36:22 < BrainDamage> in fact, I do regret not having picked physics 2012-03-17T22:36:24 <+Steffanx> master? phd? 2012-03-17T22:36:30 <+Steffanx> bachelor? 2012-03-17T22:36:40 < BrainDamage> gonna start my master thesis soon 2012-03-17T22:36:43 < justitguy> Happen to be EE and do also wish I had studied more physics. 2012-03-17T22:37:00 <+Steffanx> same here 2012-03-17T22:37:27 <+Steffanx> and math 2012-03-17T22:37:32 <+Steffanx> My math sucks 2012-03-17T22:37:38 < justitguy> I had a physics professor that wore huge boots because he was afraid he would slip through the holes in matter. Perhaps that influenced my decision? 2012-03-17T22:38:00 <+Steffanx> Nah, that's funny :) 2012-03-17T22:38:38 < jpa-> i love the courses that are packed full of stuff.. like the mathematics for positioning course that had everything from quaternions to kalman filters 2012-03-17T22:38:40 < justitguy> Really did have a prof that did that. He was tenured at Stanford so I thought all Physicists were a bit touched. 2012-03-17T22:39:21 < justitguy> Am playing with kalman filters now jpa. Using them in my other hobby. I build tri and quad copters for fun. 2012-03-17T22:40:34 < justitguy> So, for inertial navigation they do a good job of filtering X-Y-Z data streams with velocity inputs and gyros. 2012-03-17T22:41:18 < jpa-> i wish i had more time to play around with stuff.. would make them so much easier to remember 2012-03-17T22:41:41 <+Steffanx> You have enough time 2012-03-17T22:41:48 <+Steffanx> You just don't spend it the right way 2012-03-17T22:41:49 < jpa-> but i always end up doing stuff like writing a matrix library first :D 2012-03-17T22:42:00 < jpa-> Steffanx: yeah yeah pebkac 2012-03-17T22:42:08 <+Steffanx> pebkec 2012-03-17T22:42:13 < justitguy> Yes, it does help. I have the same problem. Never seem to have enough time for all the things that interest me. 2012-03-17T22:42:33 < justitguy> But actually using theory in practice reinforces the concepts. 2012-03-17T22:43:26 < jpa-> yeah.. though it was very interesting writing the QR decomposition; now i understand better the difference between inv() and \ 2012-03-17T22:44:53 < justitguy> Sounds like you love to learn just to learn. Keep that always. I think a day when I don't learn something new is a wasted day. 2012-03-17T22:45:24 < justitguy> But, I am wierd remember? 2012-03-17T22:46:01 < jpa-> i think the people who don't want to learn things are weird :) 2012-03-17T22:47:30 < justitguy> Well, that is most of the world. They take news in sound bytes. Education from reading fast food menus. 2012-03-17T22:48:06 < jpa-> yeah, and it confuses me 2012-03-17T22:48:36 < jpa-> other thing that very much confuses me is the purpose of life - i'm often having trouble justifying all the difficulties in life when i don't have any clear goal 2012-03-17T22:49:07 < justitguy> Few people actually delight in solving problems for them selves. Quick out-of-the-box fixes for everything of course, packaged neatly and available for viewing pleasure or download. 2012-03-17T22:49:56 -!- TitanMKD [~Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-03-17T22:49:59 < justitguy> That is the dilemma age old jpa. An answer does not exist but for you. Having a goal helps. 2012-03-17T22:51:07 < jpa-> it seems that way when observing the general public, but on the other hand when i think about my family and grandparents etc, they all have been quite active in learning things 2012-03-17T22:51:50 < justitguy> Actually, just getting up in the morning and looking forward to accomplishing something can be very rewarding. Whatever you end up doing, be the best at it and be proud of what you have done. The best thing in live is having a job that is a passion, then it is not a job. 2012-03-17T22:52:31 < justitguy> jpa, your grandparents and mine too, had a different outlook on life I think. 2012-03-17T22:52:43 < justitguy> They did not look for packaged solutions, they created them. 2012-03-17T22:53:16 < jpa-> in my job the trouble is that the quality of the products is not that great, even though they do sell - and i don't think there is much benefit beyond making money for the owners of the company 2012-03-17T22:53:37 < jpa-> hard to take pride in that so it's down to whatever i manage to do in my free time 2012-03-17T22:54:44 < justitguy> I understand that dilemma. But, in the mean time, you must eat. So, keep the love to learn, master something and get yourself in a position to change the quality -- or do it yourself. 2012-03-17T22:54:57 < justitguy> In your own business. 2012-03-17T22:55:13 < jpa-> yeah, or just switch companies 2012-03-17T22:55:34 < jpa-> the place has been getting better and better during the years, but it's still not great 2012-03-17T22:56:42 < justitguy> That too. But, at least here in the US, there are more applicants for tech jobs than jobs themselves. So, if you are really on top of the heap, you will have no trouble changing jobs. Just don't make a habbit of seeing the grass greener in another pasture. 2012-03-17T22:57:23 < jpa-> at first it was all some crappy labview consulting job.. now they make atleast somewhat proper applications in C# (it's not just the language, but rather that labview is not really suited to the ~50kline sized applications they develop) 2012-03-17T22:59:17 < justitguy> I consult for a company in the US that has been in business for 30 years. Back when they first started they shook the world with product innovations. Today, they produce the same old stuff and don't spend money to develop new products, or when they do, they short change the process and are content to release garbage. Trust me, I know the pain you describe. 2012-03-17T23:00:10 < justitguy> They too sell systems for ~50 - 500K. Lots of garbage but they do sell some. 2012-03-17T23:00:16 < jpa-> yeah, it's unbelievable how much garbage gets sold.. but i guess mediocre is better than none 2012-03-17T23:01:05 < justitguy> Perhaps, it certainly would appear to be true. But, I really do fight hard to release only well tested error free (as much as possible) stuff. 2012-03-17T23:01:38 < justitguy> I am often called an elitist, but I don't want my name on garbage. 2012-03-17T23:03:20 < justitguy> They will ignore compiler warnings because "that never happens in real life" for instance. Then later, they call me in to fix their created problems. They do pay for the solutions (and they should) but it is hard to look see shit and not be revolted by the stink. 2012-03-17T23:06:37 < jpa-> this company is still growing quite fast (it's some 10 years old); it's very hard to keep up on everything when i'm only part-time employed - it's always surprising when you suddenly see them using python instead of visual basic and doing some quite smart things with it also - and yet the overall quality is not that great because apparently it is not so important to thenm 2012-03-17T23:07:33 < justitguy> Well, someone is driving innovation there. Perhaps you are not so alone in your wanting to improve things. 2012-03-17T23:08:01 -!- hackkitten [~jigoku_ai@s529c4932.adsl.wanadoo.nl] has quit [Read error: Connection reset by peer] 2012-03-17T23:08:47 -!- hackkitten [~jigoku_ai@s529c4932.adsl.wanadoo.nl] has joined ##stm32 2012-03-17T23:08:53 <+Steffanx> DAg 2012-03-17T23:09:06 < jpa-> yeah, it probably just takes time.. the founders of the company weren't that great developers but more of the visionary kind; changing the initial "engineering mood" is slow 2012-03-17T23:09:57 < jpa-> justitguy: i think it is fun to dive deep into some (even shitty) code to find some specific bug.. a bit like an adventure :) 2012-03-17T23:10:11 <+Steffanx> Quality is never important is it? 2012-03-17T23:10:15 < jpa-> but i agree that sometimes the things you see are so bad it is hard to stand 2012-03-17T23:10:47 < jpa-> Steffanx: irony is in that the company works in the quality assurance field :D 2012-03-17T23:11:43 < justitguy> I see that too. Good ideas but no understanding of how to create excellent solutions. Worse, they think themselves great architects and engineers. 2012-03-17T23:12:56 < justitguy> Actually, I don't much like looking at someone elses code for bugs unless written by a good developer. Then it is fun. But lots of times the code is so badly crafted you find more errors waiting to be bugs. 2012-03-17T23:13:35 <+Steffanx> I write bugs too, not code 2012-03-17T23:14:13 < justitguy> The cascading effect of fixing one bug turns into a killing field where there are so many bugs that the code should just be exterminated. 2012-03-17T23:14:55 < jpa-> i just go deep, find the exact reason for the single bug and find out how to fix it without disturbing the overall structure... but that only works for the bugs that are repeatable 2012-03-17T23:15:33 <+Steffanx> Some bugs never show up thanks to another bug jpa- :) 2012-03-17T23:15:37 < justitguy> Steffanx, funny. When I was just writing my first program (in 1963 and I was 13) I proudly announced that I would never have a problem if I could just get it to compile. It was Fortran and I was stupid. 2012-03-17T23:15:49 < justitguy> Yes, non repeatable bugs are really nasty. 2012-03-17T23:16:39 <+Steffanx> Ah you are the grandpa of the channel :D 2012-03-17T23:17:12 < jpa-> i managed to make a really nasty bug last summer.. finally traced it down last month; lines 28 and 29 are in wrong order :F http://paste.dy.fi/pkN 2012-03-17T23:17:18 < jpa-> it caused a crash every few weeks 2012-03-17T23:18:01 <+Steffanx> C# and m_ prefixes .. :( 2012-03-17T23:18:07 < jpa-> (oh well, a hang) 2012-03-17T23:18:39 < justitguy> Yes, I was afraid you would realize that. That is probably why I am so rigid in demanding really well written code. The stuff I work on is really fast, involves many embedded systems and we have multiple architectures and protocols to support. 2012-03-17T23:18:52 < jpa-> Steffanx: we have discussed it and everyone thought it is important to tell apart local and member variables :) 2012-03-17T23:21:36 < justitguy> The bugs I see rarely can be reproduced on a regular basis so are terrible to shoot. I don't look at much application code, but woe unto me if the underlying support code has a bug. 2012-03-17T23:22:35 < justitguy> I don't know C# well. So no comment, I leave that for people who would know. 2012-03-17T23:22:46 < jpa-> crash dumps are nice.. i should write down what i have cobbled together for making crash dumps on stm32 2012-03-17T23:23:27 < justitguy> I am a "C" junkie and assembler when needed. I only work on OS level stuff generally. 2012-03-17T23:23:41 < justitguy> I would be curious to see what you have written jpa 2012-03-17T23:24:27 < jpa-> well, the issue is that i have just cobbled something together when i needed to debug things (when i couldn't use a debugger) 2012-03-17T23:25:02 < jpa-> it's very ugly and mostly just saves the registers in a static structure and writes 0x20000000 onwards to a file.. and then a few gdb commands in a script to load it up 2012-03-17T23:25:20 < justitguy> Unfortunately now, I don't get as much hands on as I would like. I have about 25 people on my team, all really good and I spend more and more time in meetings with them than actually writing code. That's why I consult outside and do my own things. 2012-03-17T23:25:32 < jpa-> but i think it could be more generally useful if i cleaned it up 2012-03-17T23:25:46 < justitguy> Where is the file jpa? 2012-03-17T23:26:42 < jpa-> https://svn.kapsi.fi/jpa/dsoquad/pawn/debug.c https://svn.kapsi.fi/jpa/dsoquad/pawn/gdb_debug_memory_dump.txt 2012-03-17T23:29:02 < justitguy> I see what you have done. And if the bug is in the low level file system? I am actually asking not where is the code, but where is the output file from the dump? What physical device? 2012-03-17T23:29:51 < jpa-> ah, sd card in this case 2012-03-17T23:29:58 < justitguy> I do understand the idea though. Could be really useful so long as you are not debugging the file system itself. 2012-03-17T23:30:03 < jpa-> in another device it is uploaded by gprs :) 2012-03-17T23:30:28 < justitguy> I understand what you are doing. Nice, I can see how it could be really useful. 2012-03-17T23:30:52 < jpa-> yeah - it is not a magic bullet but often the filesystem is quite reliable if you use existing code :P 2012-03-17T23:31:18 < justitguy> Generally though, when I have a bug, it is in the lower layers (file system, network stack, etc..). So of limited use when working there. 2012-03-17T23:31:55 < jpa-> one could have preallocated sectors for storing the dump, in order to make it foolproof 2012-03-17T23:32:27 < justitguy> Yes, I have a "BIOS" that I move everywhere that is usually quite reliable. Yes, I see it. Good idea. 2012-03-17T23:33:39 < jpa-> it's a simple concept but it's still a bit rough around the edges.. especially capturing the stack and registers coherently could use some work, even though it quite much always works (compilers won't give any guarantees about what they will do to the stack, so it might be worth it to have some special handling for it, such as using a separate stack when dumping the memory) 2012-03-17T23:34:27 < jpa-> and gdb's simulator is not that great ; i only need it to write out a backtrace, but to do that i need to call "run", and that hangs until i manually press ctrl-c :D 2012-03-17T23:35:15 < justitguy> Yes, if you look at the ARM literature, you will see the various stack frames. A structure for each type is a good idea. And if possible, yes a separate stack (perhaps always reserved) is a good idea. 2012-03-17T23:35:48 < jpa-> yeah, always reserved carries a penalty though.. especially as things like filesystem tend to need quite much stack space 2012-03-17T23:38:00 < jpa-> a practical list of the real-world causes for hardfaults would be useful also.. it is not exactly obvious what causes an exception entry stacking error etc :P 2012-03-17T23:38:14 < justitguy> Yes, but when you can, always a good idea. If you only reserve the space when debugging, you can mitigate much of the cost. The larger STMs have 64K + storage and giving up a little is not too painful I suspect. The filesystems dont need much over 16K anyway. 2012-03-17T23:38:37 < jpa-> yeah 2012-03-17T23:39:26 < justitguy> Actually I often debug on larger cores and back port to smaller STM devices for just this reason. Within the families, code portability is excellent, so not a problem doing that. 2012-03-17T23:39:28 < jpa-> i've been working on custom stuff for the dso quad lately.. unfortunately it only has 48k ram, and the more i can leave for signal buffers the better 2012-03-17T23:39:50 < justitguy> Which STM device? 2012-03-17T23:39:58 < jpa-> it is stm32f103vct6 2012-03-17T23:41:11 < justitguy> you can debug on stm32f103z series, more ram. Then backport to the smaller device. 2012-03-17T23:42:14 < justitguy> One thing about the STM family, you can buy the largest dev boards (look at ebay) for very little money. 2012-03-17T23:42:21 < jpa-> yeah, but i don't feel like replacing the chip (it's a commercially manufactured device :) 2012-03-17T23:42:48 < justitguy> Just take one from the line, have the chip changed. Use it for development only. 2012-03-17T23:43:14 < jpa-> note that this is just homebrew for hobby 2012-03-17T23:43:53 < justitguy> Then all the better. If you are using the TQFP package and you are handy with a soldering iron it is pretty easy 2012-03-17T23:44:15 < jpa-> i've yet to master desoldering a TQFP 2012-03-17T23:44:56 < jpa-> i can do it with an oven or hot air gun, but it's quite difficult with just a soldering iron and without messing up other stuff on the board 2012-03-17T23:45:57 < jpa-> fortunately for a hobby it doesn't matter much that reusing the stack is somewhat unreliable; just means that if i wish to make some useful debugging tutorial about the technique i should first perfect it 2012-03-17T23:45:58 < justitguy> Then, you may loose the chip. But not to worry, ST will send you a sample for free. So, just plan to sacrifice the chip. Take a dremmel and cut the chip out and then use solder wick to pickup the remaining leads. You can work from the "inside" where the chip body was. 2012-03-17T23:47:07 < justitguy> If you have trouble ordering a sample or two, just use your part-time job company and be a "design engineer" there. 2012-03-17T23:47:26 < jpa-> yeah and the STM32F1 chips are cheap anyway 2012-03-17T23:47:55 < jpa-> cutting the wires should work but i guess i'm happier with software methods for now :P 2012-03-17T23:48:01 < justitguy> Exactly. Under $10 US here. But, ST is really good at sampling small quantities. 2012-03-17T23:48:16 < justitguy> Okay, just a thought. 2012-03-17T23:48:32 < jpa-> (besides, if i were replacing it, i might go for F4 for the processing power.. though then my code would nolonger be useful for anyone else :) 2012-03-17T23:49:14 < jpa-> it's annoying that the device has a reasonably powerful FPGA but i can't afford the synthesis tools for it (synopsys) 2012-03-17T23:49:15 < justitguy> NO, look at the power supply and decoupling requirements. You would have to modify the board a bit. Not radical, but not drop in replacements. 2012-03-17T23:49:33 < jpa-> yeah, that may be true 2012-03-17T23:49:52 < justitguy> I know it to be true jpa. Not many changes but important ones. 2012-03-17T23:50:14 < justitguy> What FPGA is it? 2012-03-17T23:50:26 < jpa-> siliconblue 2012-03-17T23:50:50 < justitguy> Don't know that particular one. What company? 2012-03-17T23:50:56 < jpa-> siliconblue is the company 2012-03-17T23:51:34 < justitguy> That is Lattice Semiconductor ...now 2012-03-17T23:51:39 < jpa-> they have some stuff about 30 day evaluation license on their webpage, but apparently it is only if you buy the dev board 2012-03-17T23:51:57 < jpa-> huh, so it is 2012-03-17T23:52:10 < justitguy> So, the Lattice tool chain may work. That you can use for free. 2012-03-17T23:52:28 < jpa-> huh, and they have free toolchain now too :o 2012-03-17T23:53:09 < justitguy> Yes, and a decent one. Lattice often adds aquisition's chips to the mix. You might want to check on this. 2012-03-17T23:53:41 < justitguy> Do you write VHDL or Verilog? 2012-03-17T23:54:27 < jpa-> vhdl so far, but the original fpga logic is in verilog so i have already learned some by reading it 2012-03-17T23:54:52 < justitguy> Good, you have the source. The Lattice toolchain supports both. 2012-03-17T23:55:07 < jpa-> i will check it, thanks for noting it! i haven't checked the page that often :) 2012-03-17T23:55:25 < justitguy> I prefer VHDL only because I learned it first. But I write Verilog when I must. 2012-03-17T23:56:01 < jpa-> yeah, they are not that different 2012-03-17T23:56:18 < justitguy> The Lattice chain also supports schematic entry if you know your parts. And, you can create components in VHDL and Verilog and use them in a schematic. 2012-03-17T23:56:19 < jpa-> vhdl seems to have more boilerplate but also more stucture in it 2012-03-17T23:57:55 < justitguy> I also use System-C which allows me to take C code, identify speed dependant code and generate RTL for FPGAs. 2012-03-17T23:58:49 < justitguy> I can link the C code to the FPGA and build SoCs with larger devices which are tailored to my application. 2012-03-17T23:59:24 < jpa-> i have mixed feelings about the RTL generating systems.. the labview fpga plugin works quite well but it just feels too high-level for me :P --- Day changed Sun Mar 18 2012 2012-03-18T00:00:37 < justitguy> I know the feeling. Which is exactly why for instance, I don't write embedded stuff in C++. I don't get confused by pointers etc., and I like to be closer to the metal. 2012-03-18T00:01:27 < jpa-> i like c++ for some tasks, because of the object-orientedness 2012-03-18T00:02:36 < jpa-> i wrote a system where instead of having a framebuffer (that i don't have RAM for) or drawing pixel-by-pixel (which is slow), i have a C++ classes for different kinds of drawables, such as text and lines, and then render them scanline at a time 2012-03-18T00:02:52 < jpa-> of course it would be doable in C also but not as neatly 2012-03-18T00:03:26 < justitguy> I have always thought of objects when writing code. If you looked at my code you would see much of that style. 2012-03-18T00:04:05 < justitguy> Yes, I understand the temptation, but I would still do it in C. Old school I guess. 2012-03-18T00:05:38 < justitguy> I would never have thought to write graphics apps pixel by pixel. But instead would build a line (or more) and dispatch the write to a DMA controller. 2012-03-18T00:06:22 < jpa-> yeah.. but doing line by line is more difficult to do with clear code 2012-03-18T00:07:18 < jpa-> because you need some kind of list to hold the stuff to render, and then handle managing the list etc. 2012-03-18T00:07:28 < jpa-> c++ vectors are quite useful :) 2012-03-18T00:07:36 < justitguy> Sure, but probably faster if well architected. Hard to beat DMA for offloading and the C++ libs don't generally support that architecture. 2012-03-18T00:07:59 < jpa-> yeah, it is a lot faster 2012-03-18T00:08:19 < justitguy> I had long ago build vector libs, which I reuse over and over. And the API is callable from C or C++. 2012-03-18T00:09:15 < jpa-> in my c++ code the dma transfer usually takes longer than rendering the next line, which is quite nice 2012-03-18T00:09:56 < justitguy> Not sure I understand. your C++ lib uses DMA? 2012-03-18T00:10:44 < jpa-> the C++ stuff just writes pixels into a row in memory, and then the code calls DMA to write out that row while rendering the next line to a second buffer 2012-03-18T00:11:43 < jpa-> c++ here just provides a pre-made vector implementation and also nice baseclass-subclass way to encapsulate the different screen objects that i have 2012-03-18T00:13:32 < justitguy> Ah, I get it. I actually built my Vector lib to support callbacks from the DMA channel - line by line - and the input is only a set of vectors. That way, my application only has to worry about keeping the vector buffer up to date. 2012-03-18T00:14:28 < justitguy> The lib is fast enough to keep the DMA channel busy almost all the time so I can easily run 60 FPS in VGA. 2012-03-18T00:14:45 < jpa-> are we talking about vectors like "lines on the screen" or as "dynamic arrays" - because i'm talking about the latter one :) 2012-03-18T00:15:56 < justitguy> Dynamic set of vectors updated as required by the app. Double buffered (or more) if wanted. 2012-03-18T00:16:46 < justitguy> Clipping, anti aliasing etc., done by vector by vector control structure. 2012-03-18T00:17:04 < jpa-> so your vectors are like straight line segments on the screen? 2012-03-18T00:18:03 < justitguy> No they are vectors in two or three dimentional space. 2012-03-18T00:19:08 < justitguy> For example, truetype is a vector based method of drawing characters. The vectors can be scaled and rotated. But any shape can be drawn. 2012-03-18T00:19:09 < jpa-> ok.. i'm working only in 2D, but i also have more complex objects that are rendered on the fly.. so that if I want a grid, I don't have to generate 100 line segments 2012-03-18T00:19:28 < jpa-> so beziers or csplines? 2012-03-18T00:19:35 < justitguy> Either. 2012-03-18T00:21:14 < justitguy> The vector and each of them are described in a structure. You can chain vectors together and create any shape anywhere in space (at least the 3D space we know). 2012-03-18T00:21:37 < jpa-> yeah, i know the concept 2012-03-18T00:22:35 < jpa-> but when processing power is more limited, it is faster to draw e.g. text with a bitmap font directly instead of composing it out of curves 2012-03-18T00:22:49 < justitguy> I have a little 7.3" TFT running on a STM32F103 board that is amazing. 2012-03-18T00:23:13 < justitguy> Yes, but optimized, you can do quite a bit on a 90 DMips machine. 2012-03-18T00:23:32 < jpa-> sure, if that is all you need to do :) 2012-03-18T00:24:17 < jpa-> but when doing this kind of "direct drawing" operations, it means that you end up with a multitude of different object types so having some polymorphism in the language helps managing it 2012-03-18T00:24:28 < justitguy> Yes, it is. I have no problem dedicating a $8.00 part for that. 2012-03-18T00:24:51 < jpa-> yeah :) 2012-03-18T00:25:39 < justitguy> That is why the NXP chip looks interesting. A separate processor just for really good graphics would be interesting. 2012-03-18T00:25:42 < jpa-> i have been wanting to do something like that on a FPGA for a while.. but on the other hand, i don't have any use for such at the moment 2012-03-18T00:26:41 < justitguy> It is far from real work. But, in today's world sexy looking stuff sells - even if it does not work well ... hahaha! 2012-03-18T00:27:47 < justitguy> Years ago a man named Marshall McCluen (name is probably misspelled) wrote a book titled "The medium IS the message". Apple understands that really well. 2012-03-18T00:27:52 < jpa-> hmm, i still have some chocolate porridge left from this morning in the fridge! yum :) 2012-03-18T00:28:59 < jpa-> after getting familiar with itunes, i have somehow been disillusioned about the quality of apple products.. even though they have never been a good fit for me, it's been nice to think that there is still some quality in this world :P 2012-03-18T00:29:11 < justitguy> I'd actually love to do this in an FPGA. Right now, no time for that as I would insist on doing it perfectly and ... while I am at it I think I will add a few features ... 2012-03-18T00:29:43 < justitguy> That would keep me from working on one of my flying toys. Choices, choices and still more choices. 2012-03-18T00:30:09 < justitguy> Maybe that is why I love to cook. Instant gratification. 2012-03-18T00:30:52 < justitguy> No, not just that. I love good food too. :P 2012-03-18T00:31:27 < jpa-> yeah, i wish all projects could be like whipping something up on arduino or similar, just 1-5 hours and it's complete and usable 2012-03-18T00:32:18 < justitguy> But you cannot argue that the Apple products look good and generally work as advertised. I have not played with Ardino, you suggest them for afternoon diversions? 2012-03-18T00:33:17 < jpa-> i haven't used it myself either (should buy a few once i have some extra money), but it looks very easy :P 2012-03-18T00:33:52 < jpa-> even though STM32 discovery is easy also, it still means constantly checking out the reference manual 2012-03-18T00:34:15 < justitguy> jpa-, you would not be happy with simple stuff long. Quickly, I think, I would want more and run out of resources ... go back to ARM and start a long project. 2012-03-18T00:34:19 < jpa-> (of course arduino is also a bit limiting in regards to how much you can do) 2012-03-18T00:34:25 < jpa-> yes :) 2012-03-18T00:34:41 < jpa-> but i wish complex things could be done in small increments, somehow 2012-03-18T00:35:04 < jpa-> instead of working many weeks before getting any usable results 2012-03-18T00:35:31 < jpa-> scrums are a bit like that, but it gives just the concept and not the technological means 2012-03-18T00:36:06 < jpa-> it would need good enough tools to abstract out concepts and immediately test the abstractions 2012-03-18T00:36:37 < justitguy> I gave some engineering friends discovery boards for Christmas one year. Only one really used it and fell in love with the ARM. Others were too lazy. One even gave it away cause "it was too complicated". 2012-03-18T00:38:39 < justitguy> I try hard to make portable libraries. When I was a kid I had an "erector set". I like not to have to reinvent components all the time so I spend a lot of effort to make things I can reuse. This way, I can often bring in debugged solutions and save lots of time and effort. 2012-03-18T00:38:46 < jpa-> i've been thinking about getting my wife an arduino.. she's been quite happy with some simpler electronics kits and she is also interested in programming, but i'm not sure what kind of hardware would allow doing something interesting with the board 2012-03-18T00:40:17 < jpa-> yeah - lately i've been spending quite much effort on making code that is reusable for other people also; it's funny how one library that i developed last year has already been used by over 10 people and i haven't bothered to put it into use myself yet :D 2012-03-18T00:40:48 < justitguy> Maybe consider one of the little robot boards with controller. She can play around with different sensors and the projects can be simple or complex. Her choice. 2012-03-18T00:41:14 < jpa-> (though that fact has caused some design faults to remain hidden a bit too long.. it's too easy to shrug off the confusion of other people) 2012-03-18T00:41:20 < jpa-> indeed 2012-03-18T00:41:40 < justitguy> I am thinking of the "Stamp" kits. They have a cute little three wheel robot kits and it comes with IR sensors, etc.. Lots of fun actually. 2012-03-18T00:42:46 < justitguy> They are programmed in a basic dialect, but have enough room for some interesting applications. And they have a serial port you can attach to wireless too ... 2012-03-18T00:42:54 < jpa-> yeah, though, i would have lego mindstorms in the closet also - but i don't think she is that interested anyway 2012-03-18T00:44:24 < jpa-> it was an awesome kit when i was young :) 2012-03-18T00:44:42 < justitguy> Then I cannot be much help. I don't know her skill level or interests. 2012-03-18T00:45:12 < justitguy> I would have robbed a store for one of those when I was young! Not really, but I might have been tempted! 2012-03-18T00:46:27 < jpa-> it was fun making all kinds of things such as flashing a led and subtracting light sensor values to detect reflection from wall.. 2012-03-18T00:46:56 < justitguy> Actually, when I was younger I would find jobs in my neighborhood so I could buy things like the Lego Mindstorm. If my parents would not buy it for me, I would shovel snow, mow lawns whatever. Believe me, I shoveled lots of snow and mowed lots of lawns! 2012-03-18T00:47:05 < jpa-> i wish i would have come up with the "balancing bot" thing - now i'm too old to be interested in building such anymore :P 2012-03-18T00:48:06 < justitguy> No but I do like to get tri and quad copters to balance (hover) and stay put in wind etc.. That is not so easy as people think and there is a lot of engineering in the solution. 2012-03-18T00:48:45 < jpa-> yeah; looks like many people are doing quad copters nowadays :) 2012-03-18T00:50:20 < justitguy> Yes, quite a few. My next will be stealth and support gps and initerial navigation. I want to put enough smarts in it to fly a mission independently and return. I know the government is doing this, but I would love to do my own. 2012-03-18T00:50:25 < jpa-> if i remember correctly, lego mindstorms and visual basic 6 were two expensive things that i got as presents quite easily - i guess my parents understood the value in them 2012-03-18T00:51:01 < jpa-> wouldn't the 15 minute flight time limit the missions quite much? 2012-03-18T00:52:31 < justitguy> Yes, it could. But, I was thinking of a battery pack that was like a magazine on a gun. The copter would be smart to find a "refueling" depot exchange battery packs and continue. 2012-03-18T00:52:50 < justitguy> I did not say really practical, just fun. 2012-03-18T00:53:06 < jpa-> yeah :) 2012-03-18T00:53:34 < justitguy> But, I am learning how to fabricate carbon fibre parts and the flight time can be increased with less mass. 2012-03-18T00:54:16 < jpa-> making glass fiber stuff was quite fun - it's surprising how strong it becomes 2012-03-18T00:56:29 < justitguy> Yes, and very light. Stronger than equivalent mass aluminum or steel and not so hard to work with. Just takes practice. 2012-03-18T00:58:32 < jpa-> yeah, and a suitable workspace 2012-03-18T00:59:16 < justitguy> I just got four 28 gm brushless motors that can produce almost 700 gm thrust. That is a two kilo payload. Keep the mass down and I calculate 23 minutes of flight time with 1.35 kilo total mass with a 2800 mAH 30C battery pack. Battery pack is most of the load. Darn it, where are my dylithium crystals Scotty? 2012-03-18T01:00:08 < justitguy> Sorry, you probably don't know the reference. Star Trek. dylithium crystals were the power source for the starships. 2012-03-18T01:00:13 < jpa-> this building is nice in that it has a hobby room the residents can use for all kinds of stuff, but it's too bad that the key must be borrowed separately and it is often difficult to get hold of the guy keeping the key 2012-03-18T01:00:30 < justitguy> Well, copy the key ... 2012-03-18T01:00:34 < jpa-> i understand it anyway, even though i'm more of the stargate & zero-point module generation :P 2012-03-18T01:01:00 < jpa-> nah, it's one of those "patented keys" that they won't copy without the permit from the key owner 2012-03-18T01:01:41 < justitguy> Talk to the building management. You can probably get them agree. Give them security guarantee of your first born or something. 2012-03-18T01:01:49 < justitguy> LOL 2012-03-18T01:02:28 < jpa-> yeah, i guess the issue is that they don't want to invest in an electronic lock so that they could easily hand out keycards or something 2012-03-18T01:02:50 < jpa-> but we won't be living here much longer anyway, maybe a year if that 2012-03-18T01:03:33 < justitguy> Too bad you are not in the US. I have lots of them and the hardware too. I would give you a set for access to your work room from time to time. 2012-03-18T01:03:50 < jpa-> :P 2012-03-18T01:05:32 < justitguy> One of the building maintenance people at the office had a load of stuff no longer deemed secure by the NSA. I talked him out of lots of the "obsolete" stuff in exchange for a toy helicopter for his son at Christmas. 2012-03-18T01:06:40 < justitguy> Trust me, this stuff would keep out all but the most dedicated terrorist. Probably cost several thousand per door to buy. Now, just so much junk. 2012-03-18T01:07:24 < jpa-> yeah, i wish it was easier to recycle the stuff 2012-03-18T01:08:05 < jpa-> but especially when there is programming software, keycards and PC drivers involved, it all outdates very quickly and also requires an expert to reuse it 2012-03-18T01:08:53 < justitguy> Me too. I have seriously thought about buying a building just so I could install and use it! No PCs in these systems, are proprietary systems. Just happen to have the code base for them though. 2012-03-18T01:10:12 < justitguy> They are controlled by Freescale cores and are mil spec. Rather nice design. Flashable too. 2012-03-18T01:10:56 < justitguy> Not really serious about the building purchase, but would like to use them somehow. 2012-03-18T01:11:26 < jpa-> :) 2012-03-18T01:11:51 < justitguy> I just could not let them go into a shreader ... 2012-03-18T01:13:15 < justitguy> I really love well designed stuff. I would not put classic paintings into a fire either. :) 2012-03-18T01:13:38 < jpa-> hmph.. something is wrong with one of my apps, but it doesn't happen on my device; i tried to have a timer interrupt dumping some info, but it is not triggering for them even though it is set at the highest priority and triggers fine for me :F 2012-03-18T01:14:01 < jpa-> as soon as it enables the DMA transfer, nothing happens anymore 2012-03-18T01:14:45 < justitguy> You are running identical code I assume? 2012-03-18T01:14:51 < jpa-> of course 2012-03-18T01:14:56 < justitguy> With the same workload? 2012-03-18T01:15:07 < jpa-> yes, it happens immediately when the code starts 2012-03-18T01:15:36 < jpa-> and also the hardware should be the same, but i cannot be absolutely sure even though the revision number is the same 2012-03-18T01:15:42 < justitguy> Your board works, theirs does not. Both boards identical too? 2012-03-18T01:16:35 < jpa-> their was bought earlier, so there might be some hardware difference.. but i don't even have any hypothesis about what could be the issue 2012-03-18T01:17:08 < justitguy> STM based system? 2012-03-18T01:17:11 < jpa-> yeah 2012-03-18T01:17:16 < jpa-> it's on the dso quad 2012-03-18T01:17:29 < jpa-> i tried adding debug code at the end of the DMA TCIF.. it never gets there, maybe i should put it at the beginning next 2012-03-18T01:17:43 < jpa-> it seems that it is stuck in some interrupt but i don't understand where 2012-03-18T01:18:05 < jpa-> (and the high-priority debug interrupt should have pre-empted any other interrupt anyway) 2012-03-18T01:19:11 < justitguy> Did it ever work on the other board or is this problem new? 2012-03-18T01:19:34 < jpa-> never worked 2012-03-18T01:20:14 < jpa-> other parts work if i disable the dma transfer from FSMC 2012-03-18T01:20:48 < justitguy> Ah, are the STM chips the same revision? 2012-03-18T01:22:10 < justitguy> I have personally never used the DSO boards (perhaps one day). But I would check the errata list for the STM chip and see if the chip has that bug reported and later fixed. 2012-03-18T01:22:11 < jpa-> i don't know - i guess i should write some code to check that 2012-03-18T01:23:39 < justitguy> Probably a good start. I would look for errata on that though. 2012-03-18T01:26:00 < justitguy> Do you have access to another DSO where you can run the code to test? 2012-03-18T01:27:21 < jpa-> nope 2012-03-18T01:27:48 < jpa-> well, i can get the guy (or actually there are many people with the problem) to run test code 2012-03-18T01:28:06 < justitguy> just looking at the '103 errata and revision sheet. There are some fixes to timer problems. 2012-03-18T01:28:41 < justitguy> What timer number? 2012-03-18T01:28:43 < jpa-> hmm, let's see 2012-03-18T01:28:44 < jpa-> TIM1 2012-03-18T01:29:12 < justitguy> You using the comparison feature? 2012-03-18T01:29:46 < jpa-> yes 2012-03-18T01:30:57 < justitguy> I see mention of revisions there. July 08 in my copy for a start. 2012-03-18T01:31:21 < justitguy> I do not have complete rev history. Check support forum too. 2012-03-18T01:33:52 < jpa-> hmm, in the errata i see the timer issues but they don't seem relevant for my case 2012-03-18T01:34:20 < zyp> what's the problem? 2012-03-18T01:36:10 < justitguy> I am just scanning. I only have a list but looks like advanced control was modified. 2012-03-18T01:36:31 < jpa-> as soon as i enable TIM1, which in turn clocks the DMA, my code seems to stop executing 2012-03-18T01:36:31 < justitguy> for TIM1 and TIM8 2012-03-18T01:37:17 < jpa-> i can't use debugger, but i've been adding some debug prints.. it never gets to the next line the main code, but also doesn't seem to go into the DMA interrupt handler 2012-03-18T01:37:33 < justitguy> And other DSO boards with the same code exhibit the same problem? 2012-03-18T01:38:17 < zyp> 00:18:05 < jpa-> (and the high-priority debug interrupt should have pre-empted any other interrupt anyway) 2012-03-18T01:38:24 < zyp> depends on the priority grouping 2012-03-18T01:39:19 < jpa-> zyp: yeah, but it is alone in the highest pre-empt group 2012-03-18T01:39:39 < jpa-> justitguy: yeah there are three people with the exact same symptoms 2012-03-18T01:39:39 < zyp> if it's not hardfaulting :) 2012-03-18T01:40:07 < jpa-> zyp: my hardfault should show a message 2012-03-18T01:40:11 < justitguy> All with older revision boards? 2012-03-18T01:40:22 < zyp> what prohibits you from using a debugger? 2012-03-18T01:40:37 < jpa-> zyp: the stupid chinese guys decided to use the SWD pins for something else 2012-03-18T01:40:44 < justitguy> zyp, his board does not exhibit the problem. 2012-03-18T01:40:48 < zyp> ah, right 2012-03-18T01:41:38 < zyp> so this is a problem occuring on only some board revisions, with the same code? 2012-03-18T01:41:43 < justitguy> jpa, do people with later revision boards run the code without problem? 2012-03-18T01:41:46 < jpa-> but i just noticed that i had some left-over UsageFault handler that was just while(1); ... it would definitely explain the hang, but when i tried to manually produce usage fault by jumping to an unaligned address, it went to hardfault instead 2012-03-18T01:41:56 < jpa-> justitguy: it does work for some people 2012-03-18T01:42:07 < jpa-> i haven't surveyed the revisions yet :) 2012-03-18T01:42:12 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 252 seconds] 2012-03-18T01:42:29 < justitguy> It really sounds like a revision problem. Most likely of the '103 chip. 2012-03-18T01:42:43 < zyp> reproducability is 100% on the affected boards? 2012-03-18T01:43:00 < justitguy> Perhaps, you can use a different timer as a work around? 2012-03-18T01:43:23 < jpa-> zyp: yes 2012-03-18T01:43:34 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-18T01:44:07 < zyp> then I would advise you to get an overview over which revisions are affected and which are not, and check the differences 2012-03-18T01:44:11 < jpa-> justitguy: i could, but i must first find out whether it is actually the timer or the DMA or the FSMC 2012-03-18T01:45:18 < justitguy> I understand jpa. But, if you must support the failing boards and the fix works, all good. So long, of course, as you don't tie anything to pins ... 2012-03-18T01:46:29 < jpa-> yeah i only need it to drive the DMA 2012-03-18T01:47:01 < justitguy> And, it does not sound like you are using external IO here. So perhaps, if a different timer does not exhibit the problem the problem can be resolved. I know it sounds like I am sweeping the bug under the carpet, but as you are not the manufacturer you don't have many options. 2012-03-18T01:47:23 < zyp> justitguy, working around problems is not as fun as actually locating them :p 2012-03-18T01:47:35 < justitguy> Were this my bug, I too would want to know why it is a problem. 2012-03-18T01:48:14 < zyp> I would like to know out of normal curiosity 2012-03-18T01:49:17 < justitguy> Thanks zyp, but ultimately you must deliver a solution that works for everyone. True the discovery is fun, but solution is more important. Fix first, look for why later would be my choice. Just don't forget to find out the reason. 2012-03-18T01:49:19 < zyp> that's why I love my job, because that's kind of what I currently do for a living 2012-03-18T01:50:39 < justitguy> Much better if you control the whole process. But I think jpa has released software to the community to run on a third party board. He has limited ability to control the process. 2012-03-18T01:51:15 < justitguy> jpa-, unless I am mistaken? 2012-03-18T01:52:33 < justitguy> zyp, I would like to know too. That way, I would know how to deal with a similar issue if it came along later. 2012-03-18T01:53:05 < jpa-> well, yeah; i can control the software but not the hardware 2012-03-18T01:53:13 < justitguy> Exactly 2012-03-18T01:53:39 < justitguy> And if you can deliver a fix and avoid the problem in the future, you win. 2012-03-18T01:54:02 < zyp> but how can you do that without knowing the cause of the problem? 2012-03-18T01:54:08 < justitguy> Of course, I do not suggest you not find out why the difference exists. 2012-03-18T01:54:15 < zyp> «oh, it disappeared» is not a proper fix. 2012-03-18T01:55:06 < zyp> at least my customers at work won't accept that :p 2012-03-18T01:55:21 < justitguy> No zyp, I am not saying that. If however another timer does not exhibit this problem -- for all users -- then this problem is logically related to this timer and the revision level of the '103. 2012-03-18T01:55:27 < justitguy> Nor would mine zyp. 2012-03-18T01:55:40 < jpa-> "The REV_ID bits in the DBGMCU_IDCODE register show the revision code of the device" "The DBGMCU_IDCODE and DBGMCU_CR debug registers are accessible only in debug mode (not accessible by the user software)." 2012-03-18T01:55:42 < jpa-> crap :) 2012-03-18T01:55:52 < justitguy> But, they will not tolerate a failure. 2012-03-18T01:56:40 < justitguy> I know jpa. That's why I question your ability to get a good analysis. You don't have the failing DSOs in hand and you cannot get the information by software. 2012-03-18T01:57:16 < justitguy> You cannot expect everyone to be willing to open the device up and look at the chipset to see the info you might need. 2012-03-18T01:57:28 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2012-03-18T01:57:35 < jpa-> yeah 2012-03-18T01:58:53 < zyp> I've used the «use a logic analyzer to check if the signals are corrupt on the board or if they are corrupted after they enter the chip» several times before :p 2012-03-18T01:59:18 < justitguy> So while I agree with zyp and I would not tolerate this problem were I the producer of the board, I must argue that your "customer" come first. 2012-03-18T01:59:44 < justitguy> zyp, don't you understand that these boards are all over the place. jpa cannot do this. 2012-03-18T01:59:59 < justitguy> And zyp, this is not an external signal. 2012-03-18T01:59:59 < zyp> in my case the customer is often the producer of the board 2012-03-18T02:00:26 < zyp> and no, I know that, it was a digression 2012-03-18T02:00:55 < zyp> and getting hold of one failing unit requires no more than a single user with a failing unit being willing to ship you his 2012-03-18T02:01:04 < jpa-> in this case fortunately i even have the option of just saying "no can do, fortunately it works for some people" :P 2012-03-18T02:01:27 < jpa-> but i really want to be able to debug this :P 2012-03-18T02:01:46 < justitguy> zyp, jpa is not a VAR. His hands are rather tied. 2012-03-18T02:02:15 < justitguy> Don't blame you jpa. I would like to know for other reasons if this could be a problem related to rev of the '103 2012-03-18T02:02:31 < zyp> VAR? 2012-03-18T02:02:38 < justitguy> Value Added Retailer 2012-03-18T02:02:50 < zyp> what has that to do with anything? 2012-03-18T02:02:58 < Tom_itx> opposite of OEM 2012-03-18T02:03:15 < jpa-> yeah, but it is not out of the question that someone might want to mail his unit to me for testing - yet i would have to open it to hook up the SWD pins 2012-03-18T02:03:22 < zyp> jpa-, exactly 2012-03-18T02:03:44 < justitguy> zyp, he did not sell the DSO with his software so he could ask for the board back. He might be lucky and have someone willing to work with him. 2012-03-18T02:03:58 < zyp> justitguy, yes, asking is free 2012-03-18T02:04:09 < jpa-> i realized however that the bootloader running on the devices is not upgradable - it is possible that they have a different version of the bootloader than i do 2012-03-18T02:04:21 < jpa-> and because the bootloader initializes the hardware, it might do something funky 2012-03-18T02:04:29 < zyp> oh 2012-03-18T02:04:47 < zyp> why does the bootloader initialize hardware? 2012-03-18T02:04:59 < jpa-> well it needs to be able to receive a flash image over USB 2012-03-18T02:05:03 < justitguy> Tom_itx, more like another entity introduced into the supply chain. Not really the opposite of the OEM. 2012-03-18T02:05:08 < jpa-> so it has to do some initialization 2012-03-18T02:05:15 < zyp> yes, but why isn't it reinitialized after booting? 2012-03-18T02:05:19 < jpa-> it is 2012-03-18T02:05:44 < jpa-> but maybe i have forgotten to initialize.. something; i really don't think i have, but just maybe 2012-03-18T02:06:04 < jpa-> or maybe it enables some crazy IRQ i haven't implemented.. but even that should just cause a hardfault 2012-03-18T02:06:44 < justitguy> jpa, is your code the only code used on the DSO, or in addition to other code already installed? 2012-03-18T02:07:10 < zyp> I would imagine it's his own branch of a common code base 2012-03-18T02:07:12 < jpa-> justitguy: it has a BIOS, which we all have the same version of - that has all the LCD routines etc. 2012-03-18T02:07:35 < jpa-> the bootloader runs before my code, and my code just calls the BIOS 2012-03-18T02:08:04 < justitguy> Ah, so perhaps you are reliant on initialization in the BIOS that is done on later manufactured boards and not done on earlier revisions. 2012-03-18T02:08:11 < jpa-> maybe 2012-03-18T02:09:09 < jpa-> i think i could get an image of the failing bootloader by reading the flash, and then flash it on my own device and see what it does 2012-03-18T02:10:09 < justitguy> Yes, excellent idea. You will see quickly if the BIOS is the difference. Best of all, you could probably walk someone thru the process and have them email you the file. 2012-03-18T02:10:28 < jpa-> yeah the process should be quite simple 2012-03-18T02:11:22 < justitguy> Yes indeed. That would probably be much easier than getting a stranger to send you his DSO. 2012-03-18T02:11:29 < jpa-> but i guess i'll take one more iteration in this bisection first.. now to see if the IRQ routine runs at all, and also got rid of some bad error handlers 2012-03-18T02:11:50 < jpa-> it will not however help if the problem is with the chip revision 2012-03-18T02:12:13 < justitguy> I get that, I was thinking a simple divide-and-conquer approach. 2012-03-18T02:12:21 < jpa-> yeah 2012-03-18T02:12:34 < jpa-> the only way to track this kind of things down anyway 2012-03-18T02:12:44 < justitguy> Damn, power failure here. On battery. 2012-03-18T02:12:53 < justitguy> Alarms all over the place. 2012-03-18T02:13:50 < justitguy> I only have about 30 minutes of battery power, so not sure what will happen. And I have lots of really heavy loads. 2012-03-18T02:14:41 < justitguy> My servers are on battery but will shut down gracefully. But I will loose my DS3 soon. 2012-03-18T02:16:01 < justitguy> Ah, silence at last! 2012-03-18T02:16:23 < jpa-> :) 2012-03-18T02:16:53 < zyp> hooray, then we'll get rid of you! 2012-03-18T02:16:53 < zyp> :D 2012-03-18T02:16:59 < justitguy> Well jpa, sounds like you have a plan for solving the problem. 2012-03-18T02:17:25 < jpa-> yeah, thanks, i have a few steps more to try :) 2012-03-18T02:17:56 < jpa-> i still have no real theory on what could be the issue, but hopefully i can isolate it well enough that i can either reproduce it or make a guess 2012-03-18T02:18:29 < justitguy> Good luck with that. Hard when you are just the programmer and don't have access to the vast knowledge and resources of others. 2012-03-18T02:19:49 < justitguy> Somehow, I know you will do a workman like job solving the problem. You have a good sense of how to track down the problem. 2012-03-18T02:20:02 < jpa-> it's hard when fool-proof code has a bug :P 2012-03-18T02:21:07 < justitguy> We are professionals, we don't write code with bugs :-) 2012-03-18T02:22:17 < justitguy> It is just the compiler that misunderstands what we intend. 2012-03-18T02:23:02 < jpa-> yeah or the hardware that has an error 2012-03-18T02:27:23 < justitguy> Actually that little DSO looks like a handy tool. Not useful for a bench (far too slow) but for field work could come in handy. 2012-03-18T02:29:31 < zyp> yeah, I've considered getting one myself 2012-03-18T02:30:55 < justitguy> Just looking at the site. Notice that there is a warning about matching software to hardware version. Maybe have the failure reporting people tell you the version (from the splash screen). 2012-03-18T02:32:57 < zyp> didn't he say he already did that? 2012-03-18T02:33:25 < justitguy> I use a 4 channel 1 G storage on home projects. That works pretty well for my high speed stuff. But 100 M would never show me my communications channels. 2012-03-18T02:33:49 < justitguy> He said they were earlier versions zyp. He did not indicate if he had tracked to specific revisions. 2012-03-18T02:35:02 < jpa-> i said they were bought earlier 2012-03-18T02:35:08 < jpa-> the actual version numbers are identical 2012-03-18T02:35:32 < jpa-> but i'm not so sure if they have updated the version number every time 2012-03-18T02:35:58 < justitguy> Ah, okay. But the later versions (by number) work with your code then? 2012-03-18T02:36:55 < jpa-> there are no later versions, as far as the version numbers are concerned it seems that no-one has hardware version earlier than 2.60 (2.50 was a beta run only, so there were like 100 of them total) 2012-03-18T02:37:42 < justitguy> And not all revision 2.60 boards behave the same way? 2012-03-18T02:37:53 < jpa-> indeed 2012-03-18T02:38:20 < justitguy> Ouch, sounds like the 2.60 should have rolled to 2.61 or something like that. Sucks. 2012-03-18T02:38:35 < jpa-> it is possible that they have made some change in production, the bootloader has changed or they have got a new batch of STM32F103 with a different revision 2012-03-18T02:39:15 < jpa-> or maybe it is some very strange thing like clocking issue (i.e. different units have slightly different crystal frequency and different race conditions? a bit far fetched :) 2012-03-18T02:40:25 < justitguy> Well the divide and conquer approach still seems the most rational. I agree, a bit far fetched. The chip is a synchronous device so the clock should not cause this as there is no external interaction with regard to this bug. 2012-03-18T02:41:20 < jpa-> true 2012-03-18T02:41:30 < justitguy> I am curious why you mention the bootloader? 2012-03-18T02:42:19 < jpa-> because i realized earlier during the conversation that i haven't checked if the bootloader code is the same, and because it runs before my code it might set some hardware register that i'm not aware of 2012-03-18T02:43:51 < jpa-> it shouldn't affect the execution otherwise, but it may get the hardware into some unexpected state 2012-03-18T02:44:43 < justitguy> Once programmed, it should not come into play, in theory anyway. So you postulate that the bootloader, even if not updating the user code, could be initializing some piece of hardware and differently depending upon the bootloader version? 2012-03-18T02:45:16 < zyp> justitguy, I assume that this is a soft-bootloader which always runs 2012-03-18T02:45:17 < jpa-> it could - it draws the boot logo so it definitely does something :P 2012-03-18T02:45:44 < zyp> because the hard-bootloader in 103 doesn't support usb 2012-03-18T02:45:48 < jpa-> yeah, it always runs, then it checks the buttons to see if any are pressed (holding down a button triggers the bootloader) 2012-03-18T02:46:17 < jpa-> oh yeah, and the bootloader also writes the FPGA image to the FPGA on boot 2012-03-18T02:47:19 < justitguy> I think I understand what you are saying, you are not talking about the DFU loader, but the secondary boot loader? 2012-03-18T02:47:42 < jpa-> yeah, it's a custom bootloader the manufacturer has made for this device 2012-03-18T02:48:22 < jpa-> but, sleep time for me now :) 2012-03-18T02:48:28 < jpa-> thanks for all the hints :) 2012-03-18T02:48:42 < justitguy> Then there is a possibility that the secondary boot loader could indeed be initializing hardware. 2012-03-18T02:49:00 < justitguy> jpa, good luck to you on this. 2012-03-18T02:49:14 < zyp> of course it does, otherwise it could not do stuff like draw on the screen :p 2012-03-18T02:50:12 < justitguy> That is generally not a bootloader function zyp. Call it BIOS if you want, but not a bootloader. 2012-03-18T02:50:48 < zyp> but it's done by the bootloader. 2012-03-18T02:53:43 < justitguy> Okay zyp, I bow to your years of experience. 2012-03-18T02:54:42 < zyp> stop being sarcastic, to be honest I'd guess you have more years of experience than me :) 2012-03-18T02:59:45 < justitguy> Only a few decades I would think. But, I now understand that what I have taught at MIT and Stanford is all wrong. I have been using the wrong terms like some beginner all the time. 2012-03-18T03:00:07 -!- Laurenceb_ [~Laurence@host86-146-189-78.range86-146.btcentralplus.com] has quit [Ping timeout: 272 seconds] 2012-03-18T03:00:29 < justitguy> I hide my head in shame ... 2012-03-18T03:01:46 < justitguy> Well, at least I can still cook. I have guests coming for dinner so best get busy getting ready. 2012-03-18T03:01:55 -!- justitguy [~justitla@cpe-76-169-33-142.socal.res.rr.com] has left ##stm32 ["Leaving"] 2012-03-18T03:02:54 < Randomskk> wow 2012-03-18T03:03:09 < Randomskk> I hope his dinner guests appreciate him as much as I just did 2012-03-18T03:05:43 < zyp> he has that kind of attitude that comes across as annoying regardless of if what he says is right or not 2012-03-18T03:07:10 < zyp> at least that's how I perceived him 2012-03-18T03:08:28 -!- wbs_ [~wbs@cpe-76-169-33-142.socal.res.rr.com] has joined ##stm32 2012-03-18T03:29:03 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-18T03:45:45 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-18T04:33:04 -!- peabody124 [~peabody12@128.249.96.21] has quit [Quit: peabody124] 2012-03-18T05:10:43 < zippe> As an academic, it's important for him to be right 2012-03-18T05:10:49 < zippe> Otherwise he has no reason to exist 2012-03-18T05:10:54 < zippe> Them as can, do. 2012-03-18T05:11:44 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-18T05:46:00 < Tom_itx> you're just jealous you're not as smart as him 2012-03-18T05:46:29 < Tom_itx> or as smart as he thinks he is? 2012-03-18T06:09:01 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-18T06:14:25 < wbs_> Hi all, anyone doing anything interesting with the STM32 ARMs lately? 2012-03-18T06:16:47 < wbs_> Or am I in the wrong time zone for this room? 2012-03-18T06:29:33 < dongs> is there any way to detect frequency of external crystal automatically to configure stuff? 2012-03-18T06:29:47 < dongs> wbs_: im doing flyingthings with them. 2012-03-18T06:33:34 < wbs_> me too. Playing with tri and quad copters ... fun 2012-03-18T06:34:36 < wbs_> dongs, are you designing the electronics too? 2012-03-18T06:35:08 < dongs> yes. 2012-03-18T06:35:53 < wbs_> Cool. What are you using for gyro and accellerometers? 2012-03-18T06:36:05 < dongs> nothing intersting though, just datasheet material. http://code.google.com/p/afrodevices/wiki/AfroFlight32 + http://afrodevices.googlecode.com/files/naze32_rev1.pdf 2012-03-18T06:36:14 < dongs> mpu3k/6k and adxl345 2012-03-18T06:37:22 < wbs_> You are further ahead than I am. You design this board? 2012-03-18T06:37:27 < dongs> yeah. 2012-03-18T06:38:17 < wbs_> Very nice! Have you considered incorporating ESCs too? To save weight? 2012-03-18T06:38:49 < dongs> how would that save weight? :) plus if one esc blows, what about the sensors + 3 other escs? 2012-03-18T06:39:12 < dongs> i just buy shit from HK and reflash with fastpwm firmware, if it blows, oh well, $8 gone replace with new. 2012-03-18T06:40:11 < wbs_> Wow, only $8 for an ESC? What kind of current are we talking? No, I just want light weight daughterboards for ESC. No need for multiple BECs. 2012-03-18T06:40:29 < dongs> http://www.hobbyking.com/hobbyking/store/__15205__Hobby_King_30A_ESC_3A_UBEC.html shit liek this, its $8.something 2012-03-18T06:40:41 < dongs> http://www.hobbyking.com/hobbyking/store/__15202__Hobby_King_20A_ESC_3A_UBEC.html or this 2012-03-18T06:41:13 < dongs> yeah i suppose youc an shave off some weight if you desolder 7805's off them 2012-03-18T06:41:14 < dongs> but shrug 2012-03-18T06:41:39 < dongs> though most of my stuff im flyign wiht ESC32 > http://diydrones.com/profiles/blogs/autoquad-esc32-v1r5 2012-03-18T06:42:05 < dongs> (also stm32 based heh) 2012-03-18T06:42:53 < wbs_> So I see. These ESCs are only $8? 2012-03-18T06:43:05 < dongs> hobbykingjunk? yes. 2012-03-18T06:43:13 < dongs> 20A is only $6.something. 2012-03-18T06:43:21 < dongs> absolutely no need to make your own at that price point. 2012-03-18T06:43:25 < dongs> if it breaks, toss it. 2012-03-18T06:44:14 < wbs_> I really want something reliable and I would like to keep the mass down and increase flight time. The other STM ESCs as daughterboards liike interesting. 2012-03-18T06:45:07 < wbs_> As I want to implement inertial navigation with gps correction, I would like to save mass for more electronics. 2012-03-18T06:45:26 < wbs_> Not to mention telemetry and real time video. 2012-03-18T06:46:01 < dongs> i just flyaround + crash, navigation+gps is super boring. 2012-03-18T06:46:12 < dongs> i mean where's the fun flying if it flies for y ou 2012-03-18T06:47:27 < wbs_> Agree on most things. But I want to remove my head and use it as the autopilot. Then I really am flying. :-} 2012-03-18T06:48:15 < wbs_> I have built lots of rc planes, fly copters too. Would like to see if I could create an autonomous flying machine. 2012-03-18T06:49:16 < wbs_> Anyway how is the software on your board? Suitable for tri and quad? 2012-03-18T06:50:33 < dongs> yes, the sores is -> http://code.google.com/p/afrodevices/source/browse/#svn%2Ftrunk%2Fbaseflight 2012-03-18T06:50:51 < dongs> works with bi/tri/quadx/p/hexa/etc whatever. i mean its all just mixer stuff, could be made to work wiht whatever. 2012-03-18T06:51:48 < dongs> i just finished adding a nice telnet interface to it so i could change stuff while changing stuff. yo dawg. 2012-03-18T06:52:29 < wbs_> I am interested. Where can I buy a board to play with? 2012-03-18T06:53:25 < dongs> dont wanna solder yourself? blank pcbs are free :) 2012-03-18T06:54:02 < wbs_> Wow, I can handle free. And I can solder. 2012-03-18T06:55:34 < dongs> anyway, http://bit.ly/FPmib6 has them, or you can drop your info to info@hikarisoft.com and I'll throw a couple blank pcbs your way. 2012-03-18T06:57:27 < wbs_> very much appreciated. I will drop you an email. 2012-03-18T06:59:18 < dongs> code autodetects all the stuff, so if you dont have some sensor just dont bother soldering it, and it still works 2012-03-18T06:59:22 < dongs> only gyro is needed to fly, really. 2012-03-18T07:01:01 < wbs_> Nice, but I would use the accellerometer and add inertial nav. Just for the fun of it. 2012-03-18T07:02:32 < wbs_> This looks like a good basis for starting ... Besides, it looks perfect for a little indoor quad to keep my cat amused. 2012-03-18T07:04:51 < wbs_> Maybe add audio to play with his head ... Woof Woof. BTW, are the passives 0805? Hard to tell from the pictures. 2012-03-18T07:04:58 < dongs> hell no 0603 2012-03-18T07:05:05 < dongs> its 36x36mm 2012-03-18T07:05:09 < dongs> (entire pcb) 2012-03-18T07:06:09 < wbs_> Tiny, I could not seem to see the scale from the pic. Now I will look for some tiny motors and maybe build a hex. 2012-03-18T07:06:58 < wbs_> I am getting pretty good at forming with carbon fibre so I think a stealth looking craft would be really fun ... 2012-03-18T07:08:42 < dongs> nice, you mean like mold + epoxy? 2012-03-18T07:09:24 < wbs_> Exactly like that. 2012-03-18T07:10:16 < wbs_> Use carbon fibre cloth and light weight aluminum frame. 2012-03-18T07:13:56 < wbs_> I am thinking about a quad or hex about 60 cm across. The mold I am thinking I could make with wire mesh and plaster coated with wax. Cheap and easy to fab. I am not looking for production quantities so if I can only make a few shells, I would be happy. 2012-03-18T07:15:49 < wbs_> I live in a high rise building and I can see doing a little night flying ... can you imagine seeing a UFO outside your window with a some high brightness LEDs shining on you? 2012-03-18T07:22:39 < dongs> heh 2012-03-18T07:22:51 < dongs> i cant see worth a shit (and really bad 3d perception) so night flying is a no-no for me 2012-03-18T07:22:55 < dongs> stuff goes out of focus immediately 2012-03-18T07:23:58 < dongs> http://www.rcgroups.com/forums/showthread.php?t=1519094 this guy did a prety good job with composites :D 2012-03-18T07:26:07 < wbs_> Sorry to hear that. I see his design. I was actually thinking a flying saucer shape and making the frame an aluminum X but he is doing some nice fabs. 2012-03-18T07:27:10 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-18T07:29:17 < dongs> ;d 2012-03-18T07:29:21 < wbs_> These http://montorc.com/ipower4006Q.aspx look promising for the project. A bit pricey but about the right size for placement in a saucer. May think a hex and a little bigger though. 2012-03-18T07:29:55 < dongs> ripoff. 2012-03-18T07:30:17 < wbs_> I will look for others that are pancake thin. 2012-03-18T07:30:18 < dongs> http://www.rctimer.com/index.php?gOo=goods_details.dwt&goodsid=575&productname= 2012-03-18T07:30:41 < wbs_> Thanks! Perfect. 2012-03-18T07:32:40 < wbs_> And not too heavy either. 2012-03-18T07:37:40 < wbs_> I really am wanting to keep mass down as much as possible. I'd love to get long flight times. 2012-03-18T07:39:06 < wbs_> And/or carry a nice camera and transmitter for RT video. 2012-03-18T07:43:01 < wbs_> dongs where are you located (country)? 2012-03-18T07:44:06 < dongs> japan (lol) 2012-03-18T07:44:36 < dongs> supposedly with those wide motors you can use higher V batts (like 4s, 5s etc) and larger props 2012-03-18T07:47:08 < wbs_> Yes as KVM goes down prop size increases. But also noise increases. I think I would like to find a higher RPM / V so props are smaller and overall size of hex or quad is kept small. 2012-03-18T07:47:56 < wbs_> And I would balance the hell out of everything to keep noise down. 2012-03-18T08:00:24 < wbs_> Dongs, are you using kalman filtering on gyro / accelerometer system? Have not looked at the code yet. 2012-03-18T08:04:31 < dongs> nah. it should be, but all the non-hardware specfic code is port of multiwii (8bit junk) to stm32. now that the hardware layer is more or less stable, things can start to be improved. 2012-03-18T08:05:34 < dongs> im looking at using mpu6000's dmp stuff which will output quaternions for attitude 2012-03-18T08:07:59 < wbs_> Will look at that. 2012-03-18T08:14:11 < wbs_> Curious dongs, you english is very good. Are you Japanese? If so, where did you learn English? 2012-03-18T08:15:55 < dongs> on the internet, everyone is an expert 2012-03-18T08:17:08 < wbs_> Haha, You did not learn english on the net. So you are native english speaker? 2012-03-18T08:32:04 < wbs_> Just sent you my address dongs. Thanks in advance for the boards. 2012-03-18T08:33:27 < dongs> yeah just got it. i'll put it in todays mail queue. airmail to u.s. should be a week or so. 2012-03-18T08:34:14 < wbs_> Thanks again. 2012-03-18T08:36:14 < wbs_> You happen to have links to good priced DX7 transmitters / receivers? 2012-03-18T08:36:50 < dongs> no, i use $50 t urnigy9x instead w/frsky modules. 2012-03-18T08:36:59 < dongs> why have 7 channels for $400 when you can have 8/9 for $50? 2012-03-18T08:37:08 < dongs> er , turnigy9x 2012-03-18T08:37:14 < dongs> also branded as imax9x, eurgle 9x, etc etc 2012-03-18T08:38:27 < wbs_> I would use the transmitter for other things that could benefit from 7 channels, that is why I was thinking the DX7. But, I will look for the Turnigy ones. Can't not like the price. 2012-03-18T08:38:53 < dongs> with frsky you also have telemetry link back 2012-03-18T08:38:57 < dongs> i think at 9600 baud or so. 2012-03-18T08:39:03 < dongs> and like 2km range on default antennas. 2012-03-18T08:39:06 < dongs> cant really go wrong wiht that. 2012-03-18T08:39:18 < dongs> 9x + frsky tx module/rx is still ~$100 shipped. 2012-03-18T08:39:21 < dongs> vs whatever dx7 wants. 2012-03-18T08:41:29 < wbs_> Looking on EBay now. Not finding there, happen to remember a link? 2012-03-18T08:42:14 < wbs_> I like the range and telemetry link back. Would be nice to have RT flight info. 2012-03-18T08:42:18 < dongs> http://www.hobbyking.com/hobbyking/store/uh_viewItem.asp?idProduct=8992 + http://www.hobbyking.com/hobbyking/store/uh_viewItem.asp?idProduct=14349 2012-03-18T08:42:40 < dongs> 9x has been backorder for a while, so you will probably have to look for it somewhere locally. 2012-03-18T08:43:06 < dongs> wait no, wrong link for frsky stuff 2012-03-18T08:43:34 < dongs> http://www.hobbyking.com/hobbyking/store/uh_viewItem.asp?idProduct=14355 2012-03-18T08:43:37 < dongs> correct one. 2012-03-18T08:44:38 < wbs_> I have had terrible luck with hobbyking. Even stock items and large $ orders have taken a month to six weeks. Hate that. 2012-03-18T08:45:11 < wbs_> But for the price, I can order now and be happy this summer. 2012-03-18T08:47:05 < wbs_> I won't have the CF shell that fast anyway, so no problem with this type of thing. 2012-03-18T08:47:26 < dongs> they only scrweed me once and i have 40-something orders with them. 2012-03-18T08:48:59 < wbs_> I only have only ordered from three times. One was fast delivery. Another took 5 weeks, the last almost 7 weeks. Nothing was showing backordered. 2012-03-18T08:49:48 < dongs> that sucks. I guess it depends on phase of hte moon and star alignment. 2012-03-18T08:50:08 < wbs_> Yep, but I will order tonight and see what happens. 2012-03-18T08:51:07 < dongs> people have taken frsky stuff 20km out with wifi amps and antennas. 2012-03-18T08:51:18 < dongs> pretty impressive for 2.4ghz. 2012-03-18T08:52:15 < wbs_> Hope the stars align ... I have amps for 2.4 GHz and with telemetry feedback, I would learn to be confident of out of sight flights. 2012-03-18T08:53:41 < wbs_> I might put a cell phone module with GPS in for insurance though. If I lost connectivity at least I could locate the copter within 20 meters. 2012-03-18T08:54:20 < dongs> ya, delayextreme has some great cheap solutions for that 2012-03-18T08:54:33 < dongs> small/light too, if you dont wanna waste a phone 2012-03-18T08:56:49 < wbs_> I actually have some GSM modules with GPS ... barebones. So I am set. I don't need 2 hour talk time, just a quick broadcast so I don't need a heavy battery. 2012-03-18T08:58:08 < wbs_> These are Telit modules and weigh almost nothing. 2012-03-18T08:59:22 < wbs_> But that does give me ideas about a talking UFO. LOL People could have a convo with a real live english speaking alien. LOL 2012-03-18T08:59:41 < dongs> haha 2012-03-18T09:04:10 < wbs_> You never said, you are a native english speaker, right? Or you studied in the US? 2012-03-18T09:04:56 < wbs_> Bad assumption on my part, you did not say you were Japanese, just that you were in Japan. 2012-03-18T09:12:11 < wbs_> Anyway, you are +15 hours from PST and I am an early riser, so sleep time for me. Enjoyed chatting with you dongs, I look forward to more if you want. I will certainly keep you posted on my UFO. 2012-03-18T09:13:45 < wbs_> Thanks again for the PC boards. 2012-03-18T09:36:02 < dongs> :D im around, just idle 2012-03-18T09:36:10 < dongs> had work to do. 2012-03-18T09:44:46 < wbs_> Was just going back in time in this forum. I think I know the justitguy. He is no academic, though he does lecture from time to time. If it is who I think he is a very highly regarded scientist who has worked for NASA, Lawrence Labs, CERN and lots of other places. Guy is sometimes adversarial but is a very smart guy! I would listen to him. Just accept that he can be a bit of a pain, but he really knows his shit. 2012-03-18T09:45:30 < wbs_> Anyway, now really time to get some sleep. Night dongs. 2012-03-18T09:46:56 < dongs> http://www.timingtm.com/uploads/9E50C419-78A5-477E-A7A2-C503F04DFEE5.jpg another neat stm32 proj 2012-03-18T09:47:28 < wbs_> You are the devil dongs. What is this? 2012-03-18T09:48:17 < dongs> unsure 2012-03-18T09:48:19 < dongs> friend linked 2012-03-18T09:48:40 < dongs> http://www.timingtm.com/uploads/CD3CA11C-0A60-4F55-B5F7-49C11B7A3457.jpg 2012-03-18T09:49:18 < dongs> stm32 + ST gyro/mag/accel 2012-03-18T09:50:43 < wbs_> Wow, cute adult toy. A zigbee 2.4G radio on a tiny quad. What fun. I want one! You are the late night infomercial dongs, I cannot resist spending money when I am tired. LOL 2012-03-18T09:51:47 < wbs_> Don't see the battery pack though. Wonder where / what it is. 2012-03-18T09:51:55 < dongs> 1S lipo under the thing. 2012-03-18T09:52:06 < dongs> tehre's also some escs under the arms too. 2012-03-18T09:52:21 < dongs> http://www.hobbyking.com/hobbyking/store/__17639__2_4Ghz_SuperMicro_Systems_Brushless_ESC_3_5A.html i suspect these 2012-03-18T09:53:21 < wbs_> Really cute toy! Are the boards / kits available? 2012-03-18T09:53:38 < dongs> no i dont htin kso. i dont think it even flies yet. the guy just had it made today. 2012-03-18T09:54:40 < wbs_> Wow, cutting edge. But the controller looks commercial or the guy has access to a fab house. I don't think I would want to use BGA devices on home projects. 2012-03-18T09:54:52 < dongs> no bga there. 2012-03-18T09:54:58 < dongs> qfn + usual lga stuff for accel 2012-03-18T09:55:04 < dongs> not anymore complex than whats on my board. 2012-03-18T09:55:48 < wbs_> Sure? Hard to tell from photos. 2012-03-18T09:55:55 < dongs> very sure 2012-03-18T09:56:01 < dongs> STM32F103T8U6 2012-03-18T09:56:06 < dongs> 36vqfn 2012-03-18T09:56:15 < dongs> the rest is lga/qfn 2012-03-18T09:56:45 < wbs_> Ok, on closer look you are right. Just had to really look to see. 2012-03-18T09:59:53 < wbs_> Not a two layer board though. So not a casual evening project. 2012-03-18T10:00:57 < dongs> 4 layer is too easy to route. 2012-03-18T10:01:53 < wbs_> I have done them but not not in one evening. My footprint library for Eagle would need updating too. 2012-03-18T10:16:35 < wbs_> Dongs, if you happen to know the board maker, drop me a line please. 2012-03-18T11:09:47 < Tectu> hello guys 2012-03-18T12:07:37 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-18T12:48:03 -!- Laurenceb_ [~Laurence@host86-146-189-78.range86-146.btcentralplus.com] has joined ##stm32 2012-03-18T14:30:08 < Tectu> okay, zyp, sir? 2012-03-18T15:08:53 -!- urief [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-18T15:09:19 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-18T15:09:19 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-18T15:09:19 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 252 seconds] 2012-03-18T15:13:09 -!- tunebird [~andrew@web130.webfaction.com] has joined ##stm32 2012-03-18T15:19:19 -!- Netsplit *.net <-> *.split quits: eruif, mansfeld 2012-03-18T15:27:50 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-18T15:36:29 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-18T17:04:29 -!- urief [~eruif@unaffiliated/eruif] has quit [Ping timeout: 246 seconds] 2012-03-18T17:22:21 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-18T17:25:26 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-18T17:31:32 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Read error: Connection reset by peer] 2012-03-18T17:57:17 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has quit [Read error: Connection reset by peer] 2012-03-18T17:57:20 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-18T17:59:07 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-18T17:59:10 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-18T18:09:35 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-18T18:15:45 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-18T18:40:52 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 245 seconds] 2012-03-18T20:10:18 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-18T20:10:21 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-18T20:12:13 -!- zippe [~Adium@173.11.99.161] has quit [Read error: Connection reset by peer] 2012-03-18T20:12:56 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-18T20:16:11 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer] 2012-03-18T20:16:42 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-18T20:49:52 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: ureif] 2012-03-18T21:07:44 < jpa-> lala 2012-03-18T21:14:54 <+Steffanx> nu 2012-03-18T21:20:03 < Laurenceb_> ni 2012-03-18T21:20:19 < Laurenceb_> ni 2012-03-18T21:22:08 <+Steffanx> nu 2012-03-18T21:22:18 <+Steffanx> ratatatata style 2012-03-18T22:08:29 < jpa-> too bad justitguy is not here tonight - he was so much more fun than Steffanx :) 2012-03-18T22:09:03 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2012-03-18T22:12:20 < jpa-> and now there isn't even steffanx :( 2012-03-18T22:13:34 < zyp> :p 2012-03-18T22:14:10 < zyp> well, I'm here, but I'm busy dealing with usb issues on F4 2012-03-18T22:14:35 < hackkitten> what kinda issues? 2012-03-18T22:14:51 < zyp> looks like the tx fifo is locking up 2012-03-18T22:15:53 < zyp> http://bin.jvnv.net/f/0cSXf.png <- I'm doing a couple of requests every second for two and a half minute, and suddenly I just get garbage 2012-03-18T22:16:05 < zyp> works perfectly up to that point 2012-03-18T22:16:42 < zyp> so I plugged it out and in again, and I still just get garbage 2012-03-18T22:17:34 < jpa-> so it's fixated on sending 97 95 and D7 95? 2012-03-18T22:18:01 < zyp> yes 2012-03-18T22:18:34 < zyp> the first time it should only send a single byte 2012-03-18T22:18:55 < zyp> and after replugging it should send the 8 first bytes of the descriptor 2012-03-18T22:19:47 < jpa-> but apparently it still gets the CRC right? 2012-03-18T22:21:06 < zyp> yes 2012-03-18T22:28:13 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-03-18T22:43:08 -!- zippe [~Adium@173.11.99.161] has quit [Read error: Connection reset by peer] 2012-03-18T22:43:19 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-18T23:33:43 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-18T23:36:49 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 245 seconds] --- Day changed Mon Mar 19 2012 2012-03-19T00:00:44 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-19T00:08:59 -!- phantone is now known as phantoxe 2012-03-19T00:32:15 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-19T00:52:33 -!- mrcan [~mrcan@88.242.196.122] has joined ##stm32 2012-03-19T01:15:16 < ratatata> ieskau draugu 2012-03-19T01:31:39 -!- wbs_ [~wbs@cpe-76-169-33-142.socal.res.rr.com] has quit [Quit: Leaving] 2012-03-19T01:33:39 -!- justitguy [~justitguy@cpe-76-169-33-142.socal.res.rr.com] has joined ##stm32 2012-03-19T01:39:56 < justitguy> Good morning / evening. Is the contingent from Finland awake? 2012-03-19T01:40:54 < jpa-> i'm an unforeseen event? 2012-03-19T01:41:25 < justitguy> Hola jpa. How are you doing this fine morning? 2012-03-19T01:41:50 < jpa-> pondering about going to sleep, actually :) 2012-03-19T01:42:27 < justitguy> That's why my question. I know it is about ~ 01:42 there I think. 2012-03-19T01:43:09 < jpa-> yep 2012-03-19T01:44:54 < justitguy> If you work in the morning and your boss cares if you are actually awake, you probably should be sleeping. 2012-03-19T01:45:01 < justitguy> :) 2012-03-19T01:45:50 < jpa-> just school tomorrow :) 2012-03-19T01:47:08 < justitguy> Well, you can sleep thru the lectures. Probably given by boring academic anyway. ;) 2012-03-19T01:47:27 < jpa-> :P 2012-03-19T01:49:25 < justitguy> Ok, you are the guy that likes to "prove that ..." 2012-03-19T01:49:42 < justitguy> School work, homework ... 2012-03-19T01:50:59 < jpa-> of course :) 2012-03-19T01:51:56 < justitguy> Anyway, I know you love to learn new things. So, perhaps you should be awake ;) 2012-03-19T01:52:31 < jpa-> don't worry, i'm old enough to set my own bed times :) 2012-03-19T01:52:59 < justitguy> No worries, I am not your daddy ... (well I may be a bit older). LOL 2012-03-19T01:58:10 < justitguy> Looks like Steffanx has already retired ... think this place will be dead for a few hours. 2012-03-19T02:00:40 < justitguy> No good arguements about ownership of IP etc :( 2012-03-19T02:01:21 < jpa-> yeah it's quite late for europe :) 2012-03-19T02:02:24 < justitguy> Yes, I had guests from Italy over last night. We ate late (their choice) but I was afraid everyone was going to fall asleep with their faces on their plates. 2012-03-19T02:09:41 < jpa-> but yeah, good night :) 2012-03-19T02:11:09 < justitguy> Good night jpa. 2012-03-19T02:31:21 -!- mrmcan [~mrmcan@88.242.196.122] has joined ##stm32 2012-03-19T02:31:28 -!- mrmcan [~mrmcan@88.242.196.122] has quit [Remote host closed the connection] 2012-03-19T02:32:27 -!- amcik [~amcik@88.242.196.122] has joined ##stm32 2012-03-19T02:32:45 -!- amcik [~amcik@88.242.196.122] has quit [Remote host closed the connection] 2012-03-19T02:34:46 -!- Laurenceb_ [~Laurence@host86-146-189-78.range86-146.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-03-19T02:44:26 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-19T02:53:17 -!- mrcan [~mrcan@88.242.196.122] has quit [Quit: Leaving] 2012-03-19T03:01:18 -!- mrcan [~mrcan@88.246.219.31] has joined ##stm32 2012-03-19T03:14:22 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 246 seconds] 2012-03-19T03:24:07 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Ping timeout: 264 seconds] 2012-03-19T03:50:56 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2012-03-19T04:24:06 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Read error: Connection reset by peer] 2012-03-19T04:24:53 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-19T04:35:52 -!- mrcan [~mrcan@88.246.219.31] has quit [Quit: Leaving] 2012-03-19T04:36:48 -!- mrcan [~mrcan@88.246.219.31] has joined ##stm32 2012-03-19T04:54:30 -!- mrcan [~mrcan@88.246.219.31] has quit [Changing host] 2012-03-19T04:54:30 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-19T05:29:47 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Ping timeout: 272 seconds] 2012-03-19T05:33:53 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-19T07:15:07 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-19T07:33:33 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-19T08:16:11 -!- ureif is now known as justanordinarybl 2012-03-19T09:08:16 -!- justanordinarybl is now known as ureif 2012-03-19T09:45:39 < jpa-> morning 2012-03-19T11:19:11 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [] 2012-03-19T12:25:08 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-19T14:14:13 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 248 seconds] 2012-03-19T14:23:05 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-19T15:17:16 -!- Laurenceb_ [~Laurence@host86-146-189-78.range86-146.btcentralplus.com] has joined ##stm32 2012-03-19T15:20:43 < jpa-> justitguy: heh - i got the full flash image from a guy with the bug, and on my device it works perfectly fine 2012-03-19T15:20:57 < jpa-> so there has to be a hardware difference, and most probably it is in the processor itself 2012-03-19T15:21:03 < jpa-> back to reading errata then :) 2012-03-19T15:21:41 < justitguy> I suspected exactly that, but hoped it was not that. If possible, perhaps the manufacturer will give you more info? 2012-03-19T15:22:23 < justitguy> Like, the rev levels of the older '103 chips 2012-03-19T15:23:03 < jpa-> i hope that the ST's documents contain all the bugs.. i have it isolated pretty well so it should be possible to identify it if i just think hard about the consequenses of each errata item 2012-03-19T15:23:30 < jpa-> i also asked the guys with & without the bug to post purchase dates, to see if there is a correlation 2012-03-19T15:23:48 < jpa-> the community is more active than the manufacturer :P 2012-03-19T15:24:21 < justitguy> As it is most likely a '103 issue, I would try using another timer. A quick read of the erratas seemed to mention TIM1 often. 2012-03-19T15:24:32 < jpa-> hmm, maybe i'll open mine up to see what is the *new* revision 2012-03-19T15:24:52 < jpa-> interested to see the guts anyway :P 2012-03-19T15:25:24 < justitguy> I do that with stuff all the time. Always curious to see how well??? something is made. 2012-03-19T15:26:04 < jpa-> yeah, the build quality of the case atleast is surprisingly good, compared to the quality of official software 2012-03-19T15:27:21 < justitguy> It's all about the visuals ... does not matter it it works, just must look pretty. ;) 2012-03-19T15:29:56 < jpa-> heh, someone has written "OK" with a pencil on the chip, i guess it is allright then ,) 2012-03-19T15:30:21 < zyp> QC stickers are overrated :p 2012-03-19T15:32:45 < jpa-> "STM32F103 VCT6 Y" "HPACZ 93 KOR HP 116" 2012-03-19T15:34:22 < justitguy> You might want to search ST for reading the code - factory, batch etc.. Unfortunately you cannot read version etc in software for the failing units. 2012-03-19T15:35:13 < justitguy> U certainly will get funny looks if you ask customers to open their DSOs. :( 2012-03-19T15:35:30 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Quit: Leaving] 2012-03-19T15:36:27 < jpa-> yeah :P 2012-03-19T15:36:36 < jpa-> but i think someone might actually be interested enough 2012-03-19T15:37:23 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-19T15:37:57 < justitguy> I would try using another timer on yours (you have plenty) and see if that is a work around. "Customers" need a fix first, so long as it is well tested. 2012-03-19T15:38:05 < justitguy> Yes, but what could they do about it? 2012-03-19T15:39:09 < justitguy> Curious is one thing, but a unit that does not function correctly is just a pretty bobble. But, you know that. 2012-03-19T15:41:52 < jpa-> the problem with switching timers is that they are tied to specific DMA channels, and I have to mind overlaps with USB and LCD dma channels 2012-03-19T15:42:08 < jpa-> but probably there is one i can use, just have to check everything 2012-03-19T15:44:00 < justitguy> Yea, likely you can find one. My guess is the FPGA uses a couple of DMA channels ... ? 2012-03-19T15:44:29 < justitguy> Do you happen to have schematic of the DSO? 2012-03-19T15:44:32 < zyp> is there an fpga in there? 2012-03-19T15:44:40 < jpa-> zyp: yes 2012-03-19T15:44:42 < jpa-> justitguy: yes 2012-03-19T15:45:29 < justitguy> That will speed thing up ... look for connections to timer pins (watch alternate mapping). 2012-03-19T15:46:08 < jpa-> yeah, it's not really that difficult, just takes time to look things up :) 2012-03-19T15:46:25 < jpa-> http://kapsi.fi/~jpa/stuff/pix/DSC_0155.JPG not too bad build quality.. the soldering of the connectors is a bit funny though 2012-03-19T15:50:26 < justitguy> Yea, looks like the usb connectors were attaced with a blow torch and LOTS of solder. 2012-03-19T15:50:56 < justitguy> Or are they probe connectors? 2012-03-19T15:51:09 < jpa-> yeah, MMCX for probes 2012-03-19T15:51:24 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2012-03-19T15:51:55 < jpa-> they aren't soldered at all at the other end, so not very good load bearing.. 2012-03-19T15:54:15 < justitguy> You have copies of the "old" and "new "boot" 2012-03-19T15:54:32 < justitguy> Oops, old and new boot code? 2012-03-19T15:54:35 < jpa-> yes, though apparently there were no changes 2012-03-19T15:57:51 < justitguy> Actually dislike calling code which can be called by a user "boot" code. Custom says we call that "BIOS" or something else. Was confused by the terminology earlier. Perhaps I am 2012-03-19T15:58:02 < justitguy> old school or something. :) 2012-03-19T16:00:12 < zyp> who said it could be called by user? 2012-03-19T16:01:28 < jpa-> justitguy: problem is that this device has both "BIOS" *and* "bootloader" 2012-03-19T16:01:57 < justitguy> Yes, and all in one module everyone wants to call "bootloader"? 2012-03-19T16:02:00 < jpa-> and both of them do a part of hardware initialization; for example, bootloader initializes the FPGA while the BIOS initializes the USB 2012-03-19T16:02:08 < jpa-> no, in two different modules 2012-03-19T16:02:24 < jpa-> the bios is upgradable using the bootloader; the bootloader cannot be easily upgraded 2012-03-19T16:03:14 < justitguy> So the bootloader is really the FPGA init code. 2012-03-19T16:03:35 < jpa-> yeah, mostly that when booting normally 2012-03-19T16:04:11 < jpa-> when you turn on power while holding down a button, the bootloader takes control & initializes everything necessary to load a new flash image through USB - but that is not normal boot anyway 2012-03-19T16:05:35 < jpa-> (btw, i found it surprising that the FPGA is in a TQFP package - that would be totally usable for hobbyists also, no need to solder BGA or anything) 2012-03-19T16:07:49 < justitguy> Yea, a number of FPGAs are available in TQFP packages. Using a Lattice 2880 LUT device in a 144-pin TQFP for prototyping. Will use BGA in production, but much easier to probe TQFP. 2012-03-19T16:08:20 < justitguy> Altera has some too. 2012-03-19T16:16:22 < jpa-> ah, i think what it is: "Multimaster access on the FSMC memory map 2012-03-19T16:16:51 < jpa-> because that is exactly what i'm doing, access to FSMC from both DMA1 and DMA2 2012-03-19T16:17:33 < jpa-> and it is marked fixed in Rev Y, which is what I have 2012-03-19T16:18:37 < justitguy> I thought probably the FPGA controls aquisition. Guessing the FPGA has on board SRAM perhaps in a dual-port configuration. Decouples data sampling clock from '103. 2012-03-19T16:19:06 < justitguy> Pretty classic technique. A kind of hardware FIFO. 2012-03-19T16:19:14 < jpa-> yes, that is exactly what it does 2012-03-19T16:19:19 < jpa-> a bit badly though :) 2012-03-19T16:21:50 < justitguy> If you want to have some fun, look on Ebay. You can find FPGAs (like ALTERA which uses serial flash for init) in TQFP package with pin breakout. Lots of fun to play with. 2012-03-19T16:22:49 < justitguy> Sometimes, when I am feeling like a goof, I will design little pipelined processors and such, code the VHDL and play with my "proprietary" machine. 2012-03-19T16:22:57 < jpa-> yeah, i actually have altera DE2 demo board to play with :P 2012-03-19T16:23:39 < zyp> I wrote glue code yesterday to give xilinx ise direct jtag access through gpio pins on stm32 2012-03-19T16:24:34 < zyp> http://bin.jvnv.net/f/qHoay.JPG <- hooked up a cpld to test with 2012-03-19T16:26:05 < justitguy> zyp, looks like an interesting project. 2012-03-19T16:26:44 < zyp> it's nice to be able to reprogram the cpld without any roundabout steps 2012-03-19T16:28:39 < zyp> on the mcu side it's implemented as a single usb control transfer handler, so leaving in the functionality comes at practically no cost 2012-03-19T16:29:15 < justitguy> Yes, if you get your code perfected, you can use the JTAG chaining features and start programming multiple devices. When you get good with CPLDs, you can actually write VHDL or Verilog for FPGAs and really get headaches. :) 2012-03-19T16:29:52 < justitguy> There are so many resources in FPGAs and so few IO pins, you can go a bit nuts. 2012-03-19T16:30:30 < zyp> I have played around with FPGAs before 2012-03-19T16:31:17 < zyp> but for this project I just need a cheap CPLD to add some flexibility 2012-03-19T16:32:08 < justitguy> Few people do much with CPLDs anymore. In fact a lot of manufacturers are obsoleting their lines and only making FPGAs. Today, for the same cost, you get 4 - 12X LUTS and very much faster devices. 2012-03-19T16:32:22 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124] 2012-03-19T16:32:58 < zyp> so, what's the cheapest fpga available today, in single quantity? 2012-03-19T16:33:41 < justitguy> That's like asking what is the cheapest car. Depends upon the complexity of the design you want to synthesize. 2012-03-19T16:34:26 < zyp> no, I'm asking about the absolute cheapest available. 2012-03-19T16:34:49 < zyp> for designs of pretty much no complexity 2012-03-19T16:35:42 < justitguy> A few dollars then. You can look at distribution channels and lines. Also, you need to know the difference in designs. Some FPGAs use internal flash for configuration, some external serial flash. 2012-03-19T16:36:08 < zyp> right 2012-03-19T16:36:38 < zyp> so a cpld is still the right choice for me, because I'm now using a ~$1 device which is non-volatile 2012-03-19T16:36:59 < zyp> (xc9536xl) 2012-03-19T16:37:10 < justitguy> jpa has a device that looks to be configured via an external device. Though I do not know the blue line, my guess is that it uses a serial flash (or SPI) interface for configuration. 2012-03-19T16:37:26 < justitguy> Just don't use it in production. Will be obsolete soon. 2012-03-19T16:37:44 < zyp> I'm not producin anything, just for hobby stuff 2012-03-19T16:38:04 < jpa-> justitguy: actually the STM32 will configure the FPGA through SPI bus 2012-03-19T16:38:23 < jpa-> (and the FPGA binary is stored in STM32's flash) 2012-03-19T16:38:27 < justitguy> jpa, I think I said exactly that? 2012-03-19T16:38:43 < jpa-> justitguy: sure, just elaborating :) 2012-03-19T16:39:31 < jpa-> zyp: huh, xc9536xl sure is cheap - maybe i'll actually buy some, looks great for some very simple tasks (like replacing a bit of discrete logic) 2012-03-19T16:39:46 < justitguy> jpa, Actually, for the DSO that is probably a good design tradeoff. 2012-03-19T16:40:56 < zyp> jpa-, that's just it 2012-03-19T16:41:27 < justitguy> zyp, that is one use. But, you really are not using the device. Lots of more interesting things to do with CPLDs and FPGAs. Just really know the rules when building systems. Easy to have the syntyesis process build something unintended by forgetting a line or two of VHDL or Verilog. 2012-03-19T16:41:44 < zyp> jpa-, I'm using it mainly to get more IO reconfigurability than what alternate functions on the stm32 does provide 2012-03-19T16:42:09 < zyp> justitguy, dude, I said I've played with FPGAs too 2012-03-19T16:43:23 < zyp> I have a xilinx s3eboard stored away somewhere 2012-03-19T16:44:07 < jpa-> justitguy is just so excited to teach us "young guys" that he forgets we also may know something already ,) 2012-03-19T16:44:26 < zyp> :) 2012-03-19T16:44:47 < zyp> jpa-, how «young» are you, by the way? 2012-03-19T16:45:01 < jpa-> zyp: 23 if i remember correctly 2012-03-19T16:45:43 < zyp> oh, right 2012-03-19T16:45:53 < zyp> then I guess I'm a year or so older than you ;) 2012-03-19T16:46:37 < jpa-> time to start teaching! 2012-03-19T16:47:03 < jpa-> i can teach only Steffanx, but he doesn't seem too keen to adopt my life lessons :( 2012-03-19T16:47:10 < zyp> I'll wait until you ask about something that I know 2012-03-19T16:47:15 < zyp> ;) 2012-03-19T16:48:51 < jpa-> :) 2012-03-19T16:50:07 < zyp> I think it's 4-5 years since I bought the fpga kit now 2012-03-19T16:50:26 < zyp> it's been a few years since last time I played with it too 2012-03-19T16:52:09 < zyp> we did some stuff in uni two years ago, so I guess that's the last time I touched HDL 2012-03-19T16:53:36 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-19T16:54:22 < justitguy> zyp, thought you were here to school us? 2012-03-19T16:55:40 < zyp> I'm not naive enough to think that I know everything, but I can have some pretty strong opinions on the things I do know ;) 2012-03-19T16:56:16 < zyp> or things that I think I do know ;) 2012-03-19T16:56:41 < justitguy> Probably the latter is the position to take. :) 2012-03-19T16:56:59 -!- mrcan_ [~mrcan@212.156.178.209] has joined ##stm32 2012-03-19T16:57:00 -!- mrcan_ [~mrcan@212.156.178.209] has quit [Changing host] 2012-03-19T16:57:00 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-19T16:57:39 -!- mrcan__ [~mrcan@212.156.178.209] has joined ##stm32 2012-03-19T16:57:44 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 246 seconds] 2012-03-19T16:57:51 -!- mrcan__ [~mrcan@212.156.178.209] has quit [Changing host] 2012-03-19T16:57:51 -!- mrcan__ [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-19T16:59:32 < justitguy> Don't want to sound snotty, but I get 20 somethings interviewing all the time. They all think they know more than they do. We hire some, the smart ones listen and learn ... the others get angry at "our stupidity" and quit. 2012-03-19T17:00:32 -!- mrcan__ is now known as mrcan 2012-03-19T17:00:56 < zyp> I tend to shut up and just listen whenever I'm in a conversation with people knowing more about the subject than me 2012-03-19T17:01:09 < zyp> so I'm kind of the silent guy at work 2012-03-19T17:05:51 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has quit [Quit: Leaving] 2012-03-19T17:06:33 < jpa-> justitguy: unfortunately it is not just the young guys who fall to that trap :) 2012-03-19T17:06:50 < zyp> agreed 2012-03-19T17:07:43 < zyp> there is not a strict correlation between age and knowledge 2012-03-19T17:08:05 < zyp> or age and perceived own knowledge 2012-03-19T17:08:22 < jpa-> the interactions between old ways vs. new ways and what i know vs. what others know are always complex 2012-03-19T17:08:43 < BrainDamage> let's imply correlation implies causation and let's say that knowledge produces produces aging 2012-03-19T17:09:15 < zyp> do note that I didn't sit idle for the 24 years I've lived so far 2012-03-19T17:09:22 < zyp> ;) 2012-03-19T17:09:22 < jpa-> i have learned though that it is very dangerous to estimate the knowledge of others by the overlap of their knowledge with your knowledge 2012-03-19T17:10:37 < jpa-> yet sometimes i run into people who should by all means be very knowledgeable considering their merits & position; and yet cannot pinpoint exactly where is their excellence 2012-03-19T17:11:57 < BrainDamage> social engineering knowledge! 2012-03-19T17:23:20 < justitguy> Interesting observation jpa. 2012-03-19T17:24:48 < justitguy> jpa, but you are correct. The people I most respect are the ones who do really know a lot, but know enough to know what they don't know. 2012-03-19T17:25:02 < justitguy> Hence, they know nothing. 2012-03-19T17:28:04 < justitguy> jpa, you talking about the engineering at your company? 2012-03-19T17:51:14 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-19T17:53:35 < jpa-> justitguy: well, it's been similar in also other jobs i've been in 2012-03-19T18:01:17 < justitguy> Yep, mediocre sometimes is the norm. 2012-03-19T18:05:02 < jpa-> it would be very useful to be able to quickly and accurately rate someone else's knowledge :) 2012-03-19T18:06:48 < zyp> not really, unless it were 0 2012-03-19T18:07:32 < jpa-> or inf 2012-03-19T18:07:38 < zyp> knowledge is like a vector with a lot of dimensions, expressing it as a scalar doesn't make sense unless it's 0 :) 2012-03-19T18:08:49 < jpa-> sure, but i didn't expect a scalar output anyway 2012-03-19T18:09:19 < justitguy> Impossible task, like asking what is truth. 2012-03-19T18:09:24 < jpa-> though even having just the norm would help :P 2012-03-19T18:38:35 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-19T18:56:45 -!- mrcan is now known as mrcan-afk 2012-03-19T19:58:54 -!- mrcan-afk is now known as mrcan 2012-03-19T20:10:02 < jpa-> i wonder if the "extra flash" (e.g. 512kB in a 256kB part) on some stm32's is somehow faulty, or if they just sell higher capacity devices with different code 2012-03-19T20:13:52 -!- ureif [~eruif@unaffiliated/eruif] has quit [Read error: Connection reset by peer] 2012-03-19T20:29:16 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-03-19T20:29:19 < neuro-sys> \o/ 2012-03-19T20:29:34 < jpa-> |o| 2012-03-19T20:29:51 < justitguy> jpa, if the part number says 256K, I would only use 256K. Often manufacturers mark parts in manufacturing depending upon test results. 2012-03-19T20:30:15 < jpa-> justitguy: yeah, figured as much :) 2012-03-19T20:30:38 < justitguy> The same silicon is often used and QC determines part number. Just like Flash parts. 2012-03-19T20:30:40 < jpa-> just feels so tempting when there is 256kB of almost-usable memory sitting idle :P 2012-03-19T20:31:31 < justitguy> Well, on the '103 series, you do not have the ECC hardware. So, while you could maybe use the memory, you could not depend on it. 2012-03-19T20:32:04 < justitguy> Even so, any ECC hardware is dedicated to external NAND flash. 2012-03-19T20:33:10 < justitguy> But, you could do software ECC and use for data storage. Not sure it is worth the work though. 2012-03-19T20:36:20 < justitguy> Certainly never a good idea to rely on this. So let the part be the part. You do not know what would work anymore than you know how to universally fix the problem you have on the DSO. 2012-03-19T20:53:00 < justitguy> jpa, not a blast of your ability. You deserve respect for the quality of work or "workmanship" I think you strive to maintain. 2012-03-19T21:03:43 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-19T21:17:06 < jpa-> gah, this DMA bug is really nasty 2012-03-19T21:17:19 < jpa-> or FSMC bug, whatever 2012-03-19T21:21:36 < justitguy> jpa, you have isolated this to a DMA bug? 2012-03-19T21:22:08 < jpa-> not 100% confirmed yet 2012-03-19T21:22:14 < jpa-> but symptoms match to "Multimaster access on the FSMC memory map 2012-03-19T21:22:31 < jpa-> in the errata 2012-03-19T21:23:10 < justitguy> You are on it I see. Get back to work ... :) 2012-03-19T21:23:37 < jpa-> waiting for someone to test a new version :P 2012-03-19T21:24:21 < jpa-> i've made a partial workaround, but it is a bit difficult and i'm not sure if my approach is sound - I absolutely need to use DMA to read from the FPGA, but I try to use the same DMA controller to also write to LCD, which should in theory serialize all the accesses 2012-03-19T21:25:11 < justitguy> Are you sharing the DMA channel? 2012-03-19T21:25:13 < jpa-> nope 2012-03-19T21:25:35 < jpa-> just the DMA1, previously i was doing accesses from DMA1 and DMA2 both, and sometimes also from CPU 2012-03-19T21:26:06 < jpa-> now i've converted the CPU accesses to stupid DMA requests that only write a single byte 2012-03-19T21:26:19 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Quit: Leaving] 2012-03-19T21:26:30 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-19T21:27:51 < justitguy> I guess I am stupid again. So you do share the DMA with the LCD? 2012-03-19T21:29:31 < jpa-> well.. to explain the whole picture: both the LCD and FPGA are connected to the same data bus, driven by FSMC. I have a circular DMA1 Channel 4 transfer that moves data from FPGA to RAM, continuously. 2012-03-19T21:30:21 < jpa-> when I draw to the LCD, I must first write the coordinates with a GPIO signal "Command/Data" set high, and then write the data with C/D low. 2012-03-19T21:31:02 < jpa-> so previously i was writing to the LCD from DMA2 and CPU, and the accesses could occur at the same time the DMA1 transfer is doing its thing - and that would cause a crash 2012-03-19T21:32:13 < jpa-> now I do everything using DMA1, Channel 4 as previously for FPGA and Channel 2 for LCD. Because the DMA controller can only server one request at a time, I hope that no crashes will occur 2012-03-19T21:32:53 < justitguy> Sure, the bus is common to all by the nature of the device. Maybe just simple to add a semifore to the "devices" and schedule the LCD update last. 2012-03-19T21:33:20 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-19T21:33:21 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-19T21:34:08 < jpa-> no way to use interlock, as the FPGA transfer must really run all the time so that i don't miss any edges (i may be able to get rid of this if i ever get around to fix the chinese interpretation of a FIFO, but that's a larger task) 2012-03-19T21:34:18 <+Steffanx> nu 2012-03-19T21:34:32 < jpa-> hello Steffanx 2012-03-19T21:35:02 < justitguy> Steffanax, we have been missing you for hours, where have you been? 2012-03-19T21:36:24 < justitguy> Jpa and I started the party without you. No fun you know :) 2012-03-19T21:36:24 <+Steffanx> * Steffanx 2012-03-19T21:36:52 < justitguy> Sorry Stefffanaxx .. 2012-03-19T21:37:24 < jpa-> hmm, Steffanax is a nice nick :) 2012-03-19T21:37:41 < jpa-> easier to pronounce than Steffanx 2012-03-19T21:38:11 <+Steffanx> Sure ok petterinia :P 2012-03-19T21:38:22 < justitguy> jpa, I think you can use a semifore for the delay in the DMA transfer from the FPGA. I assume the FPGA is double buffered and can burst transfers. 2012-03-19T21:38:41 < jpa-> justitguy: no it is not :D 2012-03-19T21:38:58 < justitguy> Oh merde. 2012-03-19T21:38:59 < jpa-> the chinese FPGA code really sucks and basically i'm just bypassing it alltogether 2012-03-19T21:39:09 <+Steffanx> What is jpa- doing? 2012-03-19T21:39:10 <+Steffanx> zlog 2012-03-19T21:39:10 < zlog> Steffanx: Log stored at http://tom-itx.dyndns.org:81/~tom-itx/irc/logs/%23%23stm32/2012-03-19.html 2012-03-19T21:39:18 < jpa-> Steffanx: just this dso quad stuff again 2012-03-19T21:39:24 < jpa-> Steffanx: got hit by a CPU bug 2012-03-19T21:39:39 <+Steffanx> cpu bug.. fancy 2012-03-19T21:39:44 < justitguy> he is staying with me Steffanx ... we are having a terrific time. 2012-03-19T21:40:06 < justitguy> We would invite you, but you would be late as always. LOL 2012-03-19T21:40:30 < jpa-> but now i'll go to sleep :) 2012-03-19T21:40:41 < jpa-> have fun, justitsguy and Steffanax 2012-03-19T21:40:41 <+Steffanx> Time to get my powa? 2012-03-19T21:40:43 < justitguy> jpa, worn out already? 2012-03-19T21:40:45 <+Steffanx> Sleep now? 2012-03-19T21:40:49 <+Steffanx> It's ~20.40 :S 2012-03-19T21:40:55 < jpa-> 21.40 here :P 2012-03-19T21:41:01 <+Steffanx> Still too early 2012-03-19T21:41:10 <+Steffanx> I never sleep before 23.00 2012-03-19T21:41:17 < justitguy> Steffanx, he is really good. You should invite him sometime. 2012-03-19T21:41:19 < jpa-> but i got a bit too little sleep last night, because justitguy wouldn't let me go to sleep early enough 2012-03-19T21:41:37 <+Steffanx> Just try /kick justitguy next time 2012-03-19T21:41:44 < jpa-> no ops :) 2012-03-19T21:41:47 < justitguy> I know jpa, I am insatiable. 2012-03-19T21:41:59 < justitguy> But, you had a good time ... 2012-03-19T21:42:09 -!- mode/##stm32 [+o Steffanx] by ChanServ 2012-03-19T21:42:19 -!- mode/##stm32 [+v jpa-] by Steffanx 2012-03-19T21:42:20 <@Steffanx> :P 2012-03-19T21:42:27 -!- mode/##stm32 [-o Steffanx] by ChanServ 2012-03-19T21:42:48 <+Steffanx> gn 2012-03-19T21:42:50 < justitguy> Steffanx, you are a bit of a jealous lover it seems ... nasty boy. 2012-03-19T21:43:33 <+Steffanx> Says the old guy 2012-03-19T21:43:41 < justitguy> Anyway, jpa is fixing a problem. He is making a solution and I think he will succeed. 2012-03-19T21:44:16 < justitguy> Yea, Steffanx he appreciates age and experience and the ability to pay for dinner ... LOL 2012-03-19T21:45:05 <+Steffanx> Hmm, /me doesn't what to know where this conversation ends 2012-03-19T21:46:06 < justitguy> Not your business Steffanx, good night jpa ... hehehe. Tomorrow soon enough? Hehehe 2012-03-19T21:52:43 < justitguy> jpa, do you need a sandwich before bed ... or maybe spaghetti and flat meat balls? 2012-03-19T21:55:12 < justitguy> LOL? 2012-03-19T21:55:37 <+Steffanx> He went to bed, you remember? 2012-03-19T21:56:37 < zyp> shouldn't you go with him then? 2012-03-19T21:56:38 < zyp> :) 2012-03-19T21:57:22 <+Steffanx> zyp zyp …. don't try to project your fantasies on us 2012-03-19T21:58:23 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has quit [Remote host closed the connection] 2012-03-19T21:58:29 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-19T21:58:52 < justitguy> zyp is a bit twisted, just ignore his envy and we will enjoy jpa together ... :) 2012-03-19T21:59:30 < zyp> no fair, ganging up on me like that :( 2012-03-19T21:59:38 * Steffanx mutes himself.. this is going nowhere 2012-03-19T21:59:41 < justitguy> You deserve it. 2012-03-19T21:59:54 < zyp> what have I done now? 2012-03-19T22:00:34 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-19T22:00:39 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-19T22:02:16 < justitguy> Nothing zyp, nothing at all. We are just very selfish ... LOL 2012-03-19T22:02:28 <+Steffanx> Can't you have a nice talk with someone more of your age justitguy ? 2012-03-19T22:02:33 <+Steffanx> like flyback 2012-03-19T22:02:45 <+Steffanx> I think he'll enjoy it 2012-03-19T22:04:22 < justitguy> I do talk nice Steffanx. Sorry if you think I do not. 2012-03-19T22:06:02 < justitguy> Steffanx, when I am tired I get silly and I am wont to be ascerbic. So, zyp, if I have offended you I sincerely am sorry. 2012-03-19T22:06:11 <+Steffanx> lol 2012-03-19T22:06:16 <+Steffanx> Time for a nap 2012-03-19T22:06:28 <+Steffanx> Old people do that sometimes 2012-03-19T22:07:16 < zyp> justitguy, I'm a viking, I don't take offence :p 2012-03-19T22:07:35 < justitguy> Go take your nap Steffanx. I am not that tired that I could not able to kick ass. 2012-03-19T22:07:48 < justitguy> Thanx zyp. 2012-03-19T22:07:51 <+Steffanx> "when I am tired I get silly" ^^ 2012-03-19T22:09:00 < justitguy> I am tired by nonsense and not able to produce results by the minute. That is what I am paid to do. So perhaps, substitute tired with guilty ... 2012-03-19T22:09:55 < justitguy> LOL 2012-03-19T22:21:18 < justitguy> Steffanx, I am just thinking, would jpa benefit by "flushing" the DMA buffer (rewrite the control regs) to effectively flush the buffer? 2012-03-19T22:21:28 <+Steffanx> I don't know 2012-03-19T22:22:44 < justitguy> Just a thought on my part. He is asleep now and I would like to offer him a suggestion when he awakes. 2012-03-19T22:24:10 < justitguy> At least, I appreciate it when others give me a place to look ... sometimes it is really difficult to find the problem and I always welcome ideas for solutions. 2012-03-19T22:26:42 < justitguy> I am sure jpa would as well. So suggestions to solve problems would always be welcomed (I would hope) on this channel. 2012-03-19T23:43:01 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 --- Day changed Tue Mar 20 2012 2012-03-20T00:27:28 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2012-03-20T01:01:13 * Laurenceb_ tried to resist urge to troll 2012-03-20T01:04:38 < Laurenceb_> flyback is such a failure you cant really troll him 2012-03-20T01:11:35 -!- Laurenceb_ [~Laurence@host86-146-189-78.range86-146.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-03-20T02:37:43 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-03-20T03:15:23 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-20T03:37:39 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 245 seconds] 2012-03-20T04:44:38 < justitguy> So many actual software people that had been here before now will not join. This is a channel now for political arguements, spammers and people who are certainlh not interested in the STM32 plaform. 2012-03-20T04:45:33 < Tom_itx> there is no real channel leadership here 2012-03-20T04:45:48 < Tom_itx> therein lies the problem 2012-03-20T04:46:11 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-20T05:05:16 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-20T05:18:25 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-20T05:18:39 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-20T06:22:26 < peabody124> i have a strange situation with an F4 where it will get into a state where it just doesn't want to boot. i can takl to it via swd and the pc=0 . normally if i leave it and try the next day it works fine. this is using st-link. has anyone seen anything like this/ 2012-03-20T06:36:59 -!- ureif [~eruif@unaffiliated/eruif] has quit [Read error: Connection reset by peer] 2012-03-20T07:37:58 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-20T07:38:39 < zippe> peabody124: I have, but usually I'm not that patient and I'll reset it with boot0 pulled high, then JTAG in over the bootloader. 2012-03-20T08:20:37 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-03-20T08:37:36 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-20T09:25:20 <+jpa-> justitguy: it is now confirmed that the bug is the FSMC errata :) 2012-03-20T09:26:22 <+jpa-> justitguy: and people were surprisingly eager to open up their devices, even though I merely hinted at the possibility - units shipped after september have revision Y, while older units have revision Z 2012-03-20T09:28:26 < zyp> :) 2012-03-20T09:28:36 < zyp> what does the errata say? 2012-03-20T09:29:32 <+jpa-> that if any two of DMA1, DMA2 and the CPU access the FSMC at the same time on revision Z, it crashes :) 2012-03-20T09:30:26 <+jpa-> (actually a hardfault, but unfortunately my hardfault handler will also access the FSMC, causing a double-hardfault lockup) 2012-03-20T09:30:39 < zyp> ah, i.e. a problem with arbitration in the crossbar switch 2012-03-20T09:31:06 <+jpa-> yeah, has to be something like that 2012-03-20T09:31:27 <+jpa-> funny enough that it detects it instead of just corrupting data 2012-03-20T12:04:08 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-20T12:54:52 -!- Laurenceb_ [~Laurence@host86-146-189-78.range86-146.btcentralplus.com] has joined ##stm32 2012-03-20T13:01:23 -!- Laurenceb_ [~Laurence@host86-146-189-78.range86-146.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-03-20T14:30:36 -!- Rickta591 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-03-20T14:30:57 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 240 seconds] 2012-03-20T14:31:38 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 240 seconds] 2012-03-20T14:32:07 -!- Thorn__ [~Thorn@128-73-141-237.broadband.corbina.ru] has joined ##stm32 2012-03-20T14:32:08 -!- Thorn__ [~Thorn@128-73-141-237.broadband.corbina.ru] has quit [Changing host] 2012-03-20T14:32:08 -!- Thorn__ [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-03-20T14:32:24 -!- Thorn__ is now known as Thorn 2012-03-20T15:00:52 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has quit [Ping timeout: 245 seconds] 2012-03-20T15:05:26 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has joined ##stm32 2012-03-20T16:58:07 < justitguy> I will have to look at my '103s to see if I could run into that bug jpa. 2012-03-20T17:03:22 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-20T17:04:51 < peabody124> zippe: interesting you see that too. have you any guess what it is? possibly something not getting reset properly in the debug hardware? 2012-03-20T17:05:47 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has quit [Ping timeout: 244 seconds] 2012-03-20T17:06:17 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 245 seconds] 2012-03-20T17:10:39 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-20T17:15:26 <+jpa-> peabody124: karlp has said that the stlink linux tool needs some manual reset button presses with the F4 2012-03-20T17:21:36 < justitguy> jpa, did you happen to see if all '103 devices suffer from this bug or only this particular one? 2012-03-20T17:22:20 < justitguy> meaning all flavors of the '103? 2012-03-20T17:36:27 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-20T17:41:41 <+jpa-> justitguy: i think it is all flavors 2012-03-20T17:41:53 <+jpa-> the errata is titled 'STM32F10xxx silicon limitations 2012-03-20T17:42:29 < justitguy> Oh, not a good thing. Now I really need to check all my '103s and see rev level. 2012-03-20T17:42:48 < justitguy> Thanks for the info. 2012-03-20T17:43:04 <+jpa-> the FSMC bug and something about SPI2 slave mode are the ones that have been fixed in the later revisions 2012-03-20T17:43:18 < justitguy> Good to know. 2012-03-20T17:43:23 <+jpa-> in a certain way, they are worse than the others because they may randomly pop up based on CPU revision :D 2012-03-20T17:43:40 < justitguy> Yes, the hardest kind of bug to shoot. 2012-03-20T17:44:27 <+jpa-> never say hardest, i'm sure the world has some way to make it harder :) 2012-03-20T17:44:49 < justitguy> Yes, then one of the hardest. :| 2012-03-20T17:50:02 < emeb> Heisenbug! 2012-03-20T17:54:22 < peabody124> jpa: isn't the reset button the f4discovery board only going to the DUT and not the STLink itself. i was seeing this persistently even if i power cycled both my board and the discovery board 2012-03-20T18:02:47 < Randomskk> anyone have any ideas why my I2C1 SCL line would stay low as soon as I configure the pin to AF, OD, set the AF MUX to I2C1? 2012-03-20T18:02:58 < Randomskk> SDA goes to 3v3 correctly, both pins go to 3v3 when I hold reset or don't config them 2012-03-20T18:03:13 < Randomskk> it's as though the i2c peripheral is holding the pin low, or something else is and the i2c isn't getting a chance to touch it 2012-03-20T18:09:42 < emeb> Randomskk: do you have a pullup resistor on the line? 2012-03-20T18:09:43 < zyp> what if you try pulling it high as a gpio? 2012-03-20T18:10:18 < zyp> gpio OD, set high 2012-03-20T18:10:19 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has quit [Ping timeout: 264 seconds] 2012-03-20T18:12:26 < Randomskk> emeb: yea, 4k7, which is why it goes high when I hold the part in reset 2012-03-20T18:12:43 < Randomskk> zyp: trying that now 2012-03-20T18:13:12 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-20T18:13:45 < Randomskk> zyp: that works, it goes high 2012-03-20T18:14:45 < zyp> then you can conclude that the I2C-peripheral is pulling it low and start looking into why it would do that 2012-03-20T18:15:02 <+jpa-> peabody124: ah well, then it is something different - what karlp said was just about resetting the target processor 2012-03-20T18:15:46 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-20T18:16:52 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-20T18:21:51 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 255 seconds] 2012-03-20T18:55:59 < peabody124> but this weirdness survives a power reset 2012-03-20T18:56:04 < peabody124> hell, it survies 10 minutes without power 2012-03-20T18:59:33 -!- whitequark [~whitequar@2a00:ab00:1::4464:5550] has joined ##stm32 2012-03-20T18:59:41 -!- whitequark [~whitequar@2a00:ab00:1::4464:5550] has left ##stm32 [] 2012-03-20T18:59:46 <+jpa-> peabody124: does it survive also a boot of your computer? :) 2012-03-20T19:02:34 -!- jnosky [~foo@c-68-39-251-30.hsd1.nj.comcast.net] has quit [Ping timeout: 252 seconds] 2012-03-20T19:03:41 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-20T19:22:56 < Thorn> why the hell did st install a microusb connector on f4discovery? couldn't they use another mini one? 2012-03-20T19:25:42 < BrainDamage> perhaps because they tought people would be too stupid to distinguish otherwise? 2012-03-20T19:27:00 < Thorn> Ive been afraid that might be the reason 2012-03-20T19:32:06 < zyp> because it's an A connector and mini-A is deprecated 2012-03-20T19:37:24 < Thorn> it's called micro A, not micro AB? (it's OTG isn't it) 2012-03-20T19:37:41 < zyp> well, AB 2012-03-20T19:39:57 < zyp> either way, the fact is that the mini variant is deprecated 2012-03-20T19:40:07 < Tom_itx> is not 2012-03-20T19:40:29 < Tom_itx> maybe for phones 2012-03-20T19:40:51 < zyp> http://www.usb.org/developers/Deprecation_Announcement_052507.pdf 2012-03-20T19:43:10 < Tom_itx> wouldncha know it 2012-03-20T19:46:57 < zyp> how many mini-A ports have you even seen? 2012-03-20T19:47:05 < Tom_itx> 0 2012-03-20T19:47:36 < zyp> I have one, the radio in my car can read mp3s from umass through one 2012-03-20T19:48:12 < Tom_itx> a is male and b is female right? 2012-03-20T19:48:20 < zyp> no 2012-03-20T19:48:33 * Tom_itx is confused now 2012-03-20T19:48:37 < zyp> A is host and B is device 2012-03-20T19:48:43 < Thorn> are there usb flash drives with mini connectors? 2012-03-20T19:48:52 < zyp> OTG devices have AB connectors 2012-03-20T19:49:07 < zyp> Thorn, no, but it came with mini-A to A adapter cable 2012-03-20T19:49:07 < BrainDamage> take the large USB connectors, the old ones 2012-03-20T19:49:15 < BrainDamage> the rectangle is A, the square is B 2012-03-20T19:49:26 < Tom_itx> i get that 2012-03-20T19:49:32 < zyp> BrainDamage, yes, and both exists in male and female variants 2012-03-20T19:50:01 < Tom_itx> i think most devices agree on what i said though 2012-03-20T19:50:06 < zyp> on the micro connectors two of the corners of a B connector is cut 2012-03-20T19:50:39 < zyp> so a B plug will fit in an A/AB receptacle, but an A plug won't fit in a B receptacle 2012-03-20T19:50:43 < Tom_itx> i think the connector is too fragile 2012-03-20T19:51:09 < zyp> which? 2012-03-20T19:51:17 < Tom_itx> micro 2012-03-20T19:51:20 < BrainDamage> I don't like micro connectors, they were supposed to be more mechanically reliable 2012-03-20T19:51:37 < BrainDamage> but 2/2 of the devices I have with micro, have connection issues 2012-03-20T19:51:42 < BrainDamage> while all my mini are fine 2012-03-20T19:52:05 < zyp> the difference between mini and micro connector is that in mini it's the receptacle that wears out but in micro it's the plug on the cable 2012-03-20T19:52:30 < zyp> and that's nice because cables are cheaper to replace 2012-03-20T19:52:38 < zyp> than entire devices 2012-03-20T19:52:41 < BrainDamage> the wear happended way faster here tough :/ 2012-03-20T19:52:59 < BrainDamage> as in, I don't have yet one device with weared socket 2012-03-20T19:53:10 < BrainDamage> for mini 2012-03-20T19:53:15 < BrainDamage> but I do with micro 2012-03-20T19:53:21 < BrainDamage> I guess I'll try replacing cables 2012-03-20T19:53:45 < zyp> me neither, but I don't have a mini device that I'm plugging in and out up to several times daily 2012-03-20T19:54:15 < BrainDamage> my phone is a mini, It needs recharge daily or more often 2012-03-20T19:54:23 < BrainDamage> ( yes, it's a dumbphone ) 2012-03-20T19:54:24 < zyp> and my phone is a micro 2012-03-20T19:54:53 < zyp> I'm charging it pretty much daily, still not worn out 2012-03-20T19:55:30 < Thorn> http://www.connecticc.com/images/connectorgroup2.jpg ftw 2012-03-20T19:55:55 < zyp> yeah, let me use that as a charging connector on my phone! 2012-03-20T19:56:39 < Thorn> Apple product designers would like a word with you. 2012-03-20T19:56:56 < zyp> I don't own an iphone :) 2012-03-20T19:58:38 < Thorn> these ones are fine too http://www.flickr.com/photos/mnwire/5806112558/ 2012-03-20T20:04:00 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-20T20:09:11 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Quit: Leaving] 2012-03-20T20:09:20 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-20T20:20:37 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-20T20:37:23 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-20T21:01:00 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-20T21:01:03 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-20T21:05:13 <+Steffanx> nu 2012-03-20T21:06:48 < BrainDamage> psi 2012-03-20T21:07:22 -!- Rickta591 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has left ##stm32 [] 2012-03-20T21:09:04 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-03-20T21:59:45 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds] 2012-03-20T22:15:22 -!- Laurenceb_ [~Laurence@host86-146-189-78.range86-146.btcentralplus.com] has joined ##stm32 2012-03-20T22:18:49 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-20T22:21:05 <+jpa-> laa 2012-03-20T22:21:13 <+jpa-> Laurenceb_: is your pwm syncing? :P 2012-03-20T22:25:26 < Laurenceb_> yes thanks 2012-03-20T22:25:31 < Laurenceb_> working nicely 2012-03-20T22:25:40 < Laurenceb_> got three leds working now 2012-03-20T22:25:54 < Laurenceb_> but i got distracted by doppler chirp oct 2012-03-20T22:26:42 < Laurenceb_> i want to grab an array of lasers and use doppler chirp oct to do combined 3d imaging, doppler and spectrometry 2012-03-20T22:26:50 < Laurenceb_> thats probably slightly mad 2012-03-20T22:27:31 <+jpa-> don't worry, i'm sure you'll manage it by the end of the month 2012-03-20T22:27:33 < Laurenceb_> i can however use chirped optical coherence to find my path lengths and build a proper spectrometer 2012-03-20T22:27:35 < Laurenceb_> lol 2012-03-20T22:27:53 < Laurenceb_> which aiui has never been done before like this 2012-03-20T22:28:17 < Laurenceb_> http://redlum.xohp.pagesperso-orange.fr/laser/modeanalysis.html 2012-03-20T22:28:20 < Laurenceb_> ^totally epic 2012-03-20T22:29:02 < Laurenceb_> if i can use those results to build a swept frequency laser... 2012-03-20T22:30:10 <+jpa-> i hope you are doing it by varying the current, not the temperature :) 2012-03-20T22:30:19 < Laurenceb_> yeah :P 2012-03-20T22:31:03 < Laurenceb_> i got my pressure cuff working, but i need to mount some more leds on it to do spectrometery on the blood 2012-03-20T22:31:13 < Laurenceb_> atm it only has 2x660nm 2012-03-20T22:32:35 < Laurenceb_> http://i.imgur.com/MWT2v.png 2012-03-20T22:32:52 < Laurenceb_> my pressure controller is slightly unstable 2012-03-20T22:34:30 < Laurenceb_> - pressure cuff squeezes out blood then lets it return so you can do some interesting spectrometery 2012-03-20T22:35:00 <+jpa-> and who are you testing this on? some poor assistant? 2012-03-20T22:35:50 <+jpa-> btw. what do you actually study? chemistry? biology? signal processing? measurement technology? 2012-03-20T22:36:42 < Laurenceb_> biomedical engineering 2012-03-20T22:36:53 < Laurenceb_> thats taped to the back of my hand 2012-03-20T22:37:10 < Laurenceb_> totally breaking university ethics policies but *shrug* 2012-03-20T22:39:43 < Laurenceb_> its interesting what you can see - the linear ramp at the end is the capillaries refilling, and the offset is veins 2012-03-20T22:40:34 <+jpa-> the noise is the only thing i can recognize in that graph :) 2012-03-20T22:41:00 < Laurenceb_> you can see a small heartbeat signal just above the noise 2012-03-20T22:41:22 <+jpa-> hm, yeah; didn't notice the timescale 2012-03-20T22:41:52 <+jpa-> what is the spike on the rising edge of red curve? just a glitch? 2012-03-20T22:44:40 < Laurenceb_> i think its from the pressure overshooting 2012-03-20T22:45:05 < Laurenceb_> the pressure sensor is low pass filtered to remove the noise from the pump, thats what destabilises the PID control 2012-03-20T22:46:03 < Laurenceb_> so theres a general upward trend, then as pressure is applied it 'instantly' forces the blood out of the veins, then empties the capillaries over ~1.5s 2012-03-20T22:46:57 <+jpa-> you should have two pressure sensors, one before the lowpass and one after :) 2012-03-20T22:47:15 < Laurenceb_> lowpass is in software 2012-03-20T22:47:23 <+jpa-> ah 2012-03-20T22:47:23 < Laurenceb_> i sample at a few hundered hz 2012-03-20T22:47:30 < Laurenceb_> then here i used bessel 2012-03-20T22:47:43 < Laurenceb_> raised cosine seems to give reduced lag 2012-03-20T22:50:02 < corecode> hi 2012-03-20T22:50:24 < corecode> where do i find linker scripts for the stm32? 2012-03-20T22:50:38 < corecode> doesn't seem like the stm32 libs contain anything like that 2012-03-20T22:51:23 < zyp> should be bundled with the startup code 2012-03-20T22:51:28 < zyp> since it's startup code specific 2012-03-20T22:52:00 <+jpa-> yeah 2012-03-20T22:52:01 < corecode> right 2012-03-20T22:52:08 <+jpa-> though it seems many people write their own startup code 2012-03-20T22:52:10 < corecode> so it should be in the lib 2012-03-20T22:52:13 < Laurenceb_> http://i.imgur.com/v95Kj.jpg <- finished hardware 2012-03-20T22:52:27 < Laurenceb_> corecode: i use the lanchon stuff 2012-03-20T22:52:28 <+jpa-> corecode: it is also toolchain specific 2012-03-20T22:52:36 < corecode> yea 2012-03-20T22:52:43 <+jpa-> so what do you use? 2012-03-20T22:52:44 < corecode> i thought about writing my own 2012-03-20T22:52:57 < corecode> because the st supplied stuff is bad 2012-03-20T22:53:05 < corecode> well, ugly 2012-03-20T22:53:05 < zyp> that's what I did 2012-03-20T22:53:17 < corecode> zyp: are you sharing this somewhere? 2012-03-20T22:53:27 < zyp> http://cgit.jvnv.net/suzumebachi/tree/ 2012-03-20T22:53:31 <+jpa-> Laurenceb_: that is a nice looking small pump, or is it a valve? 2012-03-20T22:53:32 < Laurenceb_> https://github.com/adamgreig/STM32_SkeletonProject 2012-03-20T22:53:42 < corecode> Laurenceb_: i like the furned transistor 2012-03-20T22:53:51 < Laurenceb_> jpa-: diaphragm pump from parker 2012-03-20T22:54:09 < Laurenceb_> yeah theres always one mistake on every pcb :/ 2012-03-20T22:54:15 < Randomskk> corecode: maybe also investigate libopencm3, which comes with linker scripts 2012-03-20T22:54:22 < Randomskk> and make files and a decent peripheral library 2012-03-20T22:54:31 <+jpa-> corecode: here is my take (one of them anyway) https://svn.kapsi.fi/jpa/paatti/stm32.ld and startup code https://svn.kapsi.fi/jpa/paatti/interrupt_vectors.c 2012-03-20T22:54:51 < corecode> Randomskk: ah ok. 2012-03-20T22:55:05 < corecode> Randomskk: opencm3 didn't look too good either, somehow 2012-03-20T22:55:08 < Randomskk> https://github.com/adamgreig/STM32_SkeletonProject/blob/master/stm32.ld has debugging and some other bits and pieces 2012-03-20T22:55:18 < Randomskk> corecode: I really like libopencm3 right now, it's worth a try at least 2012-03-20T22:55:18 < corecode> but i didn't have a close look, so i might be totally off 2012-03-20T22:55:21 < Randomskk> it does seem to work :P 2012-03-20T22:55:35 < Randomskk> but if not, either of those stm32.ld linked above will probably work out 2012-03-20T22:55:53 < Randomskk> (for F1x devices the STM32_SkeletonProject on github that Laurenceb_ linked to does everything you need) 2012-03-20T22:56:04 < corecode> i'm using L1 2012-03-20T22:56:05 < Randomskk> (but is a little bit old now I think, there might be a newer version of ST's std peripheral library) 2012-03-20T22:56:18 < Randomskk> might need to modify a bit then, I don't know 2012-03-20T22:56:19 < Laurenceb_> there are also some typos in the lanchon stuff 2012-03-20T22:56:22 < corecode> yea what's that with the debugging? 2012-03-20T22:56:28 < Laurenceb_> some of the interrupt names are wrong 2012-03-20T22:57:15 < Laurenceb_> usb and adc interrupt names needed correcting on my f103 2012-03-20T23:14:37 < corecode> does anybody of you have some feedback for http://mchck.org ? 2012-03-20T23:15:00 < corecode> i'll try to contact some manufacturers soon to see what price this can be produced at 2012-03-20T23:15:40 < corecode> but essentially this is ment to be a simple arm development platform for the electronics/hacking comunity 2012-03-20T23:17:20 <+jpa-> corecode: i hope the voltage regulator is low-power so that it doesn't make sleep mode useless 2012-03-20T23:17:34 < corecode> that's a good point 2012-03-20T23:17:50 < corecode> sec 2012-03-20T23:18:23 < corecode> it is a micrel 5205 2012-03-20T23:18:26 < corecode> or generic copy 2012-03-20T23:19:46 <+jpa-> ~100µA apparently 2012-03-20T23:19:49 < corecode> http://datasheet.octopart.com/MIC5205-5.0YM5-TR-Micrel-datasheet-3438.pdf 2012-03-20T23:19:52 < corecode> gnd pin current? 2012-03-20T23:19:55 <+jpa-> yeah 2012-03-20T23:19:56 < corecode> 80ish yea 2012-03-20T23:19:59 <+jpa-> not terribly good but not too bad either 2012-03-20T23:20:11 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-20T23:20:23 < corecode> got to cut some corners to arrive at $5 2012-03-20T23:20:25 < corecode> :/ 2012-03-20T23:20:28 <+jpa-> yeah 2012-03-20T23:20:39 <+jpa-> better than arduino anyway, unless they have improved lately 2012-03-20T23:20:49 <+jpa-> IIRC it was 1mA sleep current at some point, which is ridiculous 2012-03-20T23:21:07 < corecode> oh. uA 2012-03-20T23:21:10 < corecode> that's a lot, yea 2012-03-20T23:21:25 < corecode> well, if you run off a cr2032 you don't need the regulator 2012-03-20T23:21:50 < corecode> for a lipo you do 2012-03-20T23:22:06 < corecode> thanks for that feedback 2012-03-20T23:22:31 < corecode> i wonder whether there are better LDOs 2012-03-20T23:22:37 < corecode> ideally with the same footprint of course 2012-03-20T23:25:22 <+jpa-> i've been happy with XC6217B302MR which is 5µA 2012-03-20T23:25:56 <+jpa-> still quite much to be paired up with STM32L of course, but for the really low power uses one can simply skip the regulator 2012-03-20T23:26:38 <+jpa-> ah, and it 6V input max - not suitable for your purpose 2012-03-20T23:28:50 <+jpa-> but yeah - overall it looks great; drop me a line when you get into production, i might order a few :P 2012-03-20T23:56:46 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Remote host closed the connection] 2012-03-20T23:57:03 < corecode> thanks for having a look 2012-03-20T23:57:16 < corecode> i can send you some kits now with some preproduction protoboards 2012-03-20T23:57:19 < corecode> if you're interested 2012-03-20T23:57:49 < corecode> that's a quite expensive regulator --- Day changed Wed Mar 21 2012 2012-03-21T00:01:02 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-21T00:01:40 < corecode> jpa-: if you can let GO floating you can use it in place of the micrel 2012-03-21T00:14:12 < corecode> jpa-: the cheap ones are all around 80-100uA 2012-03-21T00:14:20 < corecode> don't need to use the micrel 2012-03-21T00:15:36 < corecode> http://www.diodes.com/datasheets/ZXCL260.pdf 2012-03-21T00:15:41 < corecode> that seems good as well 2012-03-21T00:15:51 < corecode> 25uA 2012-03-21T00:16:13 < corecode> but input voltage is meh 2012-03-21T00:17:40 < corecode> jpa-: you think 16V is too high as a target for input voltage? 2012-03-21T00:18:05 < zyp> 12V and some extra room? 2012-03-21T00:18:07 < zyp> sounds fine 2012-03-21T00:18:10 < corecode> yea 2012-03-21T00:18:13 < corecode> that was the idea 2012-03-21T00:18:44 < corecode> i guess you could just replace the LDO if you have some special low power needs 2012-03-21T00:23:38 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-21T00:25:59 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 246 seconds] 2012-03-21T00:26:35 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-21T00:28:26 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 246 seconds] 2012-03-21T00:32:30 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: ureif] 2012-03-21T00:55:39 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-21T01:03:00 < philpem> corecode, I've used the ZXCL330, it's a nice little LDO. 2012-03-21T01:32:43 < Rickta59> anyone here a gcc linker script wizard? I'm trying to figure out if you can have non-contiguous sections of ram without having to tag variables with an attribute 2012-03-21T01:33:32 -!- Laurenceb_ [~Laurence@host86-146-189-78.range86-146.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-03-21T01:33:55 < Rickta59> i can do what i want if i create a custom section for variable but I'd rather have the linker do the hard work of efficiently packing the ram for me 2012-03-21T02:22:06 -!- hackkitten [~jigoku_ai@s529c4932.adsl.wanadoo.nl] has quit [Read error: No route to host] 2012-03-21T02:35:18 -!- hackkitten [~jigoku_ai@s529c4932.adsl.wanadoo.nl] has joined ##stm32 2012-03-21T02:36:07 -!- zippe [~Adium@173.11.99.161] has quit [Read error: Connection reset by peer] 2012-03-21T02:36:23 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-21T03:03:58 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-21T03:17:35 -!- peabody124_ [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-21T03:17:36 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer] 2012-03-21T03:17:36 -!- peabody124_ is now known as peabody124 2012-03-21T03:37:58 -!- karlp [~karl@palmtree.beeroclock.net] has quit [Ping timeout: 276 seconds] 2012-03-21T03:38:12 -!- karlp [~karl@palmtree.beeroclock.net] has joined ##stm32 2012-03-21T03:44:28 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 276 seconds] 2012-03-21T03:53:17 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has left ##stm32 [] 2012-03-21T03:54:45 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-21T06:14:10 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-21T07:37:57 -!- zippe [~Adium@173.11.99.161] has quit [Read error: Connection reset by peer] 2012-03-21T07:38:09 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-21T08:02:03 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-03-21T08:35:38 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-21T09:16:09 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-21T09:16:53 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-21T09:50:01 <+jpa-> corecode: 16V input voltage is great 2012-03-21T09:52:20 <+jpa-> Rickta59: manual says "The linker does not shuffle sections to fit into the available regions, but does move the requested sections into the correct regions and issue errors when the regions become too full." so it may not work very well.. 2012-03-21T09:53:50 < ziph> You could write a preprocessor to do the assignment and tag objects into sections. 2012-03-21T09:54:40 < ziph> Or switch to (shudder) IAR, which can do region filling. 2012-03-21T09:58:48 < zyp> if you have non-contiguous sections of ram they are likely different in other aspects as well, so in practice you would likely want to control what goes where anyway 2012-03-21T09:59:08 < ziph> Not necessarily. 2012-03-21T09:59:39 < ziph> I've done something like [---------------XXX----------------XXX-----------------XXXX------------] where XXX was reserved for ISR's and the ---'s were allocated to normal code. 2012-03-21T10:00:31 < ziph> The linker would fit the normal code in the gaps between the ISR's. 2012-03-21T10:00:52 < zyp> but that's still a single section of ram 2012-03-21T10:01:05 < zyp> from a hardware aspect 2012-03-21T10:01:14 < zyp> so my argument doesn't apply 2012-03-21T10:01:16 < zyp> :p 2012-03-21T10:01:46 < ziph> You're defending ld's lack of a feature, right? 2012-03-21T10:01:59 < zyp> no, not at all 2012-03-21T10:02:24 < zyp> I'm just doubting the usefulness of said feature 2012-03-21T10:03:54 <+jpa-> yeah.. probably not the most common feature to need 2012-03-21T10:04:06 < ziph> There's chips with identical sections of RAM that you wouldn't want structures to span either. (or they're just non-contiguous). 2012-03-21T10:30:11 -!- tunebird is now known as mansfeld 2012-03-21T10:30:12 -!- mansfeld [~andrew@web130.webfaction.com] has quit [Changing host] 2012-03-21T10:30:12 -!- mansfeld [~andrew@robopoly/watson] has joined ##stm32 2012-03-21T10:36:37 < zyp> when splitting data and bss across multiple regions you'll have to care about that in initialization code aswell, it's not just about «find me some memory somewhere» 2012-03-21T10:38:31 < zyp> and then you have at least one stack which is pretty dynamic in size, possibly several if you have multithreading, and possibly a heap 2012-03-21T10:39:29 < ziph> IAR does it just fine. 2012-03-21T10:40:06 < zyp> sure, I don't doubt that 2012-03-21T10:40:35 <+jpa-> it's easier to do when you don't have everyone writing their own startup code :P 2012-03-21T10:41:28 < ziph> The times I've used it the standard init has been fine. 2012-03-21T10:41:31 < zyp> well, you either have to _generate_ the startup code, or generate a list of segments to be initialized that the startup code can iterate 2012-03-21T10:45:48 < zyp> the latter part is certainly feasible, that's pretty much what the segment header in ELF is 2012-03-21T10:51:46 < ziph> How would the init code get hold of that? 2012-03-21T10:53:28 < zyp> you'd have to put that in flash, just like the constructor list 2012-03-21T12:11:19 < corecode> do you need some special linker magic to create a boot loader image? 2012-03-21T12:11:56 < corecode> i think at some time the boot loader needs to switch the mapping bits so that it can launch the application 2012-03-21T12:12:05 < corecode> and for that it probably will have to relocate itself 2012-03-21T12:20:24 < zyp> what do you mean? 2012-03-21T12:22:55 <+jpa-> corecode: what mapping bits do you refer to? 2012-03-21T12:22:57 < zyp> usually both bootloader and application executes in place from flash and application doesn't expect anything to be in place in memory, so bootloader doesn't have to care about how application might use memory 2012-03-21T12:23:14 <+jpa-> the BOOT0 mapping stuff doesn't apply to custom bootloaders 2012-03-21T12:24:21 < Thorn> except you should probably plae the bootloader at th end of the flash so it doesn't overwrite itself with the application lol 2012-03-21T12:25:07 < zyp> or in the beginning and increase the start addr of the application 2012-03-21T12:25:27 <+jpa-> in any case, you probably need a jump at the beginning of the flash in order to get into the loader.. so might as well place it in the beginning and start the application code at 0x8001000 2012-03-21T12:25:51 < zyp> exactly 2012-03-21T12:25:57 < Thorn> that's not as transparent 2012-03-21T12:26:19 < zyp> sure it is 2012-03-21T12:26:41 < zyp> you have to have the reset vector in beginning of flash pointing to bootloader, so you might as well have entire bootloader there 2012-03-21T12:27:38 < ziph> I think he was thinking of something like GRUB. 2012-03-21T12:27:59 <+jpa-> GRUB on stm32? ,) 2012-03-21T12:28:03 < zyp> :) 2012-03-21T12:28:20 < zyp> I'm thinking about the maple bootloader 2012-03-21T12:28:31 < ziph> It does runtime relocations? 2012-03-21T12:28:41 < zyp> no, it sits in the beginning of the flash and requires you to link your application starting after the bootloader 2012-03-21T12:29:51 <+jpa-> ziph: i would assume that corecode's question is related to this what he posted yesterday http://mchck.org so i think zyp is closer to the truth :) 2012-03-21T12:30:35 < ziph> corecode: i think at some time the boot loader needs to switch the mapping bits so that it can launch the application 2012-03-21T12:30:36 < ziph> [6:12pm] corecode: and for that it probably will have to relocate itself 2012-03-21T12:30:46 < ziph> wrt that 2012-03-21T12:32:08 < Thorn> the only mapping I can think of is location of the vector table 2012-03-21T12:32:40 <+jpa-> oh, i just wish there was a way to ask corecode for more details :) 2012-03-21T12:34:00 < ziph> Or just let go of the need to be right. :) 2012-03-21T12:34:28 < Tectu> did someone here successfully use printf() without an IDE? just vim, arm-none-eabi-gcc and make? 2012-03-21T12:34:51 <+jpa-> Tectu: sure, who didn't? :) 2012-03-21T12:35:26 <+jpa-> i recommend tinyprintf if you don't want all the bloat of newlib 2012-03-21T12:35:54 < Tectu> jpa-, i don't bring it to work :D 2012-03-21T12:35:59 < ziph> Or write your own if you have specific needs. 2012-03-21T12:36:02 < Tectu> is tinyprintf some newlib stuff? 2012-03-21T12:36:32 < Tectu> ziph, my need is to have a printf() like syntax without wasting 30kB of memory, becauase i don't need 5.3%f 2012-03-21T12:36:57 < ziph> If you just need %d and %s you can write your own fairly quickly. 2012-03-21T12:37:05 <+jpa-> no, tinyprintf is this https://github.com/cjlano/tinyprintf 2012-03-21T12:37:17 < zyp> once in a time I wrote my own printf 2012-03-21T12:37:25 < corecode> sorry, had to reboot 2012-03-21T12:37:42 < corecode> there are bits that select which FLASH is mapped to address 0 2012-03-21T12:37:47 < zyp> I hear that's a common problem on windows 2012-03-21T12:37:54 < zyp> . 2012-03-21T12:37:55 < zyp> :p 2012-03-21T12:38:04 <+jpa-> here is another http://www.menie.org/georges/embedded/#printf 2012-03-21T12:38:06 < corecode> and that setting comes from the boot pins by default 2012-03-21T12:38:18 < zyp> corecode, yes, that is correct 2012-03-21T12:38:28 < corecode> zyp: if you saw my desktop... certainly no windows 2012-03-21T12:38:45 < corecode> zyp: so if the bootloader wants to load the application, it will have to change these bits 2012-03-21T12:38:55 < zyp> why? 2012-03-21T12:39:07 < corecode> because the application assumes to be at address 0, no? 2012-03-21T12:39:18 <+jpa-> depends on how the application was compiled 2012-03-21T12:39:28 <+jpa-> my applications always assume to be at 0x8000000 2012-03-21T12:39:30 < zyp> mine assumes to be at 8000000 2012-03-21T12:39:35 < corecode> ah 2012-03-21T12:39:39 < Tectu> jpa-, which one do you recommend now? 2012-03-21T12:39:41 < corecode> and then you relocate the vector table? 2012-03-21T12:40:07 < zyp> you probably should 2012-03-21T12:40:18 < corecode> however, this way i will definitely need a different linker script for the boot loader 2012-03-21T12:40:23 < zyp> so far I expect vector table to be correct by default 2012-03-21T12:40:47 < zyp> did you miss what was said while you were rebooting? 2012-03-21T12:40:47 < corecode> zyp: what do you mean by correct by default? 2012-03-21T12:40:54 < corecode> let me reread 2012-03-21T12:40:55 < zyp> 11:23:14 <+jpa-> the BOOT0 mapping stuff doesn't apply to custom bootloaders 2012-03-21T12:41:36 <+jpa-> Tectu: i have used the first one with success 2012-03-21T12:41:43 <+jpa-> Tectu: but it is GPL 2012-03-21T12:41:52 < corecode> ah no 2012-03-21T12:41:53 < corecode> i 2012-03-21T12:42:01 < corecode> i'm thinking about changing the factory bootloader 2012-03-21T12:42:09 < corecode> called "system flash" 2012-03-21T12:42:15 <+jpa-> umm.. i don't think you can change it? 2012-03-21T12:42:23 < corecode> on the L you can 2012-03-21T12:42:25 < corecode> it seems 2012-03-21T12:42:26 <+jpa-> oh 2012-03-21T12:42:59 < Tectu> jpa-, no problem with GPL 2012-03-21T12:43:00 <+jpa-> then just link it at the 0x1FFF whatever is the system memory - no need to relocate anything in runtime 2012-03-21T12:43:28 <+jpa-> the reset vector will be read from 0x0000 and everything else from the actual location which doesn't change even if the mapping changes 2012-03-21T12:43:51 <+jpa-> because the mapping only affects the 0x0000 space 2012-03-21T12:44:26 < Tectu> jpa-, in stmlib examples, they just overwrite the __io_putchar() function 2012-03-21T12:44:53 < corecode> jpa-: ah i see 2012-03-21T12:45:04 < corecode> jpa-: that will require a different linker script then, but i guess that's okay 2012-03-21T12:45:23 < corecode> thanks 2012-03-21T12:45:29 <+jpa-> corecode: well only needs a change of the base address 2012-03-21T12:46:45 <+jpa-> Tectu: and with tinyprintf you just do void putchar(void *state, char c); init_printf(NULL, &putchar); (state can be used to pass some extra info to the putchar if you happen to need it) 2012-03-21T12:47:00 <+jpa-> it's all in the printf.h comments 2012-03-21T12:47:56 < corecode> jpa-: yes, and possibly size 2012-03-21T12:48:14 <+jpa-> if you want snprintf etc, i have some simple wrappers here https://svn.kapsi.fi/jpa/paatti/baselibc/src/tinyprintf.c 2012-03-21T12:48:17 <+jpa-> corecode: yeah 2012-03-21T12:48:53 < corecode> yea, running the app from 0x800000 makes sense then 2012-03-21T12:49:48 <+jpa-> by running from 0x8000000 it works equally fine with/without bootloader :) 2012-03-21T12:49:58 < corecode> right 2012-03-21T12:54:03 < Thorn> that's what I meant by transparency 2012-03-21T12:54:50 < Tectu> jpa-, thank you 2012-03-21T12:54:56 < Tectu> jpa-, btw. know this one? http://www.firefly-power.de/ARM/printf.html 2012-03-21T12:56:31 < jaeckel> jpa-: you already knew https://github.com/cjlano/tinyprintf ? 2012-03-21T12:57:40 < Tectu> jaeckel, yes, he know that one, he postet that a few lines above 2012-03-21T12:58:10 < jaeckel> Tectu: it's not about the implementation, it's about the availability on github 2012-03-21T12:58:37 < Tectu> ah, sorry then 2012-03-21T12:58:42 < jaeckel> no problem :) 2012-03-21T12:59:40 < jaeckel> 2 advantages: 1) you can watch it there and add it as a submodule to your normal project 2) "fork-edit-pullrequest" possibility 2012-03-21T13:00:13 <+jpa-> jaeckel: hmm i posted exactly that link, i don't know what more there is to know? 2012-03-21T13:00:35 <+jpa-> (besides, i also have commits into that repo :) 2012-03-21T13:00:35 < BrainDamage> the first is not github only, it's a git functionality 2012-03-21T13:00:46 < jaeckel> ah lol 2012-03-21T13:01:02 < jaeckel> I haven't seen the post of the link some minutes ago 2012-03-21T13:01:47 < jaeckel> sorry for that 2012-03-21T13:01:49 <+jpa-> np :P 2012-03-21T13:02:34 <+jpa-> but yeah, the reasons you said were why i posted the github link and not the sparetimelabs one :P 2012-03-21T13:05:22 < jaeckel> hmm I see that the https://svn.kapsi.fi/jpa/paatti/baselibc/src/tinyprintf.c version is slightly modified... with a nice modification! why haven't you pushed this upstream yet? 2012-03-21T13:06:58 <+jpa-> because i'm not sure how generally useful it would be 2012-03-21T13:07:29 <+jpa-> i should anyway somehow pack up and document & license check the whole baselibc folder - but haven't bothered 2012-03-21T13:09:15 < jaeckel> BrainDamage: sure is the 1. a git functionality, but as there is already a repository at github, it's also a little bit a github functionality *g* 2012-03-21T13:28:02 < corecode> what's the opinion on newlib? 2012-03-21T13:33:01 < Thorn> opinion: newlib is not for microcontrollers (maybe except simple stuff like strcpy(), memmove() etc) 2012-03-21T13:34:28 <+jpa-> Thorn: i have quite the opposite opinion: newlib is only if you need very complex stuff, like reasonable posix compatibility, float printf, errno, etc. 2012-03-21T13:35:11 < zyp> I agree with jpa- 2012-03-21T13:38:09 <+jpa-> i guess that with newlib and some high-end 1MB flash STM32, you could expect to compile e.g. cpython (not the limited python on chip) 2012-03-21T13:39:56 < Laurenceb> plot(detected) 2012-03-21T13:41:25 <+jpa-> error: `detected' undefined near line 1 column 6 2012-03-21T13:42:14 < Laurenceb> woops wrong window 2012-03-21T13:42:46 <+jpa-> don't worry, we are just as fine as your matlab prompt 2012-03-21T13:45:20 < corecode> then i wonder why summon-arm-toolchain is compiling newlib 2012-03-21T13:46:59 <+jpa-> because it's the only libc that is neatly packaged and widely recognized 2012-03-21T15:31:04 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-21T15:40:54 < Rickta59> so my question wasn't about ARM really .. I just figured that people in here would might have dealt with multiple chunks of memory 2012-03-21T15:41:03 < Rickta59> this is actually on an msp430 fram chip 2012-03-21T15:41:36 < Rickta59> the chip allows you to use fram as memory .. but there is some real sram so I'd like to have it allocate in either without me having to do anything 2012-03-21T15:41:55 <+jpa-> so is the fram just as fast as the sram? 2012-03-21T15:42:19 < Rickta59> it can run at the same speed as the mcu up to 8Mhz 2012-03-21T15:42:35 < Rickta59> and actually the timing gets weird if you run faster than that 2012-03-21T15:43:00 < Rickta59> so at < 8MHz it is the same as sram .. 2012-03-21T15:43:39 < Rickta59> https://gist.github.com/2142824 2012-03-21T15:44:48 < Rickta59> but in reality .. * realized this after messing with it a while * It would be simpler to just define chunks of memory using 2012-03-21T15:45:07 < Rickta59> __attribute__((section(".text"))) char foo1[512]; .. 2012-03-21T15:45:17 < Rickta59> then just casting a pointer to the memory and using it 2012-03-21T15:45:41 < Rickta59> then I don't have to play with the ldscript at all 2012-03-21T15:47:53 < zyp> Rickta59, you don't really get the benefit of the fram if you don't distinguish between fram and sram then 2012-03-21T15:48:17 < Rickta59> true 2012-03-21T15:48:50 < zyp> by the way, how is it? 2012-03-21T15:48:58 < Rickta59> but I wasn't interested so much in its retention capability as I was in the ability to increase my ram 2012-03-21T15:49:13 < zyp> I bought one of those cheap msp430 fram kits last year, but I never found time to play with it 2012-03-21T15:49:35 < Rickta59> hmm .. for the money the stm32 boards are a better deal 2012-03-21T15:49:39 < zyp> so I still have it somewhere in the sealed package 2012-03-21T15:49:46 < Rickta59> they are faster have more memory .. 2012-03-21T15:49:59 < zyp> I'm thinking specifically about the fram 2012-03-21T15:50:14 -!- Irssi: ##stm32: Total of 31 nicks [1 ops, 0 halfops, 1 voices, 29 normal] 2012-03-21T15:50:22 < Rickta59> it is pretty easy to get it out of sorts if you are using open source tools 2012-03-21T15:50:57 < Rickta59> i have a program I run when it gets confused that uses BSL to erase it and start over 2012-03-21T15:51:49 < Rickta59> I'm guessing that the wolverine series will kill the current version of fram chips 2012-03-21T15:52:11 < Rickta59> they current ones never seemed to be available at any of the major places 2012-03-21T15:52:32 < zyp> I'm only thinking about the movie series when you mention wolverine 2012-03-21T15:53:02 < Rickta59> http://www.electronicsweekly.com/blogs/low-power-design/2012/02/msp430-clones-explore-limits-of-mcu-power.html 2012-03-21T15:53:38 < Rickta59> we will see supposed to be out in June 2012-03-21T15:54:52 < Rickta59> like you I haven't done much with it 2012-03-21T15:55:32 < zyp> I'm not really interested in learning another architecture, I'd rather learn ARM good 2012-03-21T15:55:34 < Rickta59> i grabbed it because they were advertising it as a 430 that ran @ 24Mhz .. then I realized that you really didn't get that speed 2012-03-21T15:55:49 < Rickta59> arm seems like the wiser choice 2012-03-21T15:56:01 < zyp> I bought the FRAM kit as I were about to get into STM32 2012-03-21T15:56:47 < Rickta59> i've spent a year learning the 430 and I like a lot of things about ... and dislike a lot of things about it 2012-03-21T15:57:15 < Rickta59> i have a couple of the different stm32 boards and need to spend some time learning them 2012-03-21T15:57:31 < zyp> if you want to elaborate on what you like and dislike, I'm listening 2012-03-21T15:58:01 * jaeckel too 2012-03-21T15:58:10 < Rickta59> hmm .. the architecture is quite simple .. programming in asm is pretty easy .. gcc seems to be finally catching up as a useful tool 2012-03-21T15:58:28 < Rickta59> timers are easy to use .. adc also 2012-03-21T15:58:41 < Rickta59> .. the internal dco .. not so much 2012-03-21T15:58:46 < zyp> a compiler guy I knows once commented that the msp430 instruction set is a pain to write a compiler for 2012-03-21T15:58:47 < Rickta59> it is a modulated by design 2012-03-21T15:58:57 < Rickta59> so it bounces all around 2012-03-21T15:59:46 < Rickta59> the low end chips 'g' series don't let you use a HF XTAL 2012-03-21T16:00:30 < Rickta59> so your only option is to use a watch crystal .. and the low end chips don't have way to use that as a reference clock for the DCO 2012-03-21T16:00:46 < Rickta59> * i'm mainly talking about the cheap chips .. the G series 2012-03-21T16:01:17 < Rickta59> because they are 3 compilers every piece of code looks like a frankenstein thing 2012-03-21T16:01:29 < Rickta59> IAR / CCS / GCC are the common ones 2012-03-21T16:01:37 < Rickta59> so commercial people will code in IAR 2012-03-21T16:01:47 < Rickta59> and release stuff that only works with IAR .. 2012-03-21T16:02:32 < Rickta59> that had some really cheap radios for the chip 2012-03-21T16:03:06 < Rickta59> but the sample code is all IAR .. and most people use CCS ( Code Composer Studio ) because that is a TI product and that is what most examples are written in 2012-03-21T16:03:18 < Rickta59> so porting over to CCS is a pain 2012-03-21T16:03:47 < Rickta59> and then getting any of that to run with gcc depends on how many of the proprietary features of IAR were used 2012-03-21T16:04:08 < Rickta59> the launch pad .. amazing gear for $4.30 2012-03-21T16:04:15 < Rickta59> includes a hw debugger/programmer 2012-03-21T16:04:31 < Rickta59> i can't think of any other mcu that can get you going for that price 2012-03-21T16:04:44 < Rickta59> and it isn't likeyou are limited to just the low end chips with it .. 2012-03-21T16:05:12 < Rickta59> i got a higher end chips msp430f5529 .. 128k flash / 10 k ram .. usb support .. 2012-03-21T16:05:17 < Rickta59> it is like $6 2012-03-21T16:05:27 < Rickta59> i can program and debug that with the $4.30 launchpad 2012-03-21T16:05:50 < Rickta59> but the free tools don't support that much memory yet 2012-03-21T16:06:22 < Thorn> does the $4.30 board work as a jtag debugger for all msp430 chips? (and what software you need for debugging?) 2012-03-21T16:06:32 < BrainDamage> it uses spy by wire 2012-03-21T16:06:38 < Rickta59> yeah most of them .. any of the chips that support 2 wire jtag 2012-03-21T16:06:43 < Rickta59> right which is SBW 2012-03-21T16:06:53 < zyp> doesn't sound that different from the situation with stm32 and discovery boards 2012-03-21T16:06:54 < Rickta59> some of the older chips don't have SBW 2012-03-21T16:07:09 < Rickta59> $4.30 is the cost including shipping 2012-03-21T16:07:10 < BrainDamage> yes, stm32 is pretty much identical using stlink and swd 2012-03-21T16:07:23 < BrainDamage> but board costs 10$ for a VL 2012-03-21T16:07:28 < Rickta59> so yeah the stm boards are also a deal 2012-03-21T16:07:35 < BrainDamage> but you have no memory limit on the free tools 2012-03-21T16:07:42 < zyp> $10 or $4.30 is no biggie 2012-03-21T16:07:48 < zyp> it's basically free either way 2012-03-21T16:07:52 < Rickta59> yep 2012-03-21T16:08:01 < Rickta59> so the down side is software really .. 2012-03-21T16:08:18 < Rickta59> ti ships crap examples and "developer packages" 2012-03-21T16:08:33 < Rickta59> i've been struggling to get the usb developers package to work with gcc 2012-03-21T16:08:41 < BrainDamage> to be fair, st's libraries are universally reckognized as awful 2012-03-21T16:08:55 < zyp> what I like about arm is the ubiquity 2012-03-21T16:08:56 < Rickta59> it is a mismash of IAR and CCS 2012-03-21T16:09:25 < zyp> learn the architecture once, and you're good to go on a lot of different vendors' stuff 2012-03-21T16:09:30 < Thorn> cortex-m is (probably) much more complicated but more universal, from m0 to m4f and dual core 2012-03-21T16:09:52 < Rickta59> i haven't spent enough time with ARM to understand what is common and what is specific to each company 2012-03-21T16:10:20 < zyp> Rickta59, cpu is common, most peripherals are different 2012-03-21T16:10:21 < BrainDamage> generally it's the periferials which are specific of an inplementation 2012-03-21T16:10:27 < Rickta59> so can i write code for an stm32 that would actually have a chance of running on a similar chips from TI? 2012-03-21T16:10:41 < zyp> you'll need to have peripheral specific drivers 2012-03-21T16:10:56 < zyp> but it can all be compiled by the same compiler 2012-03-21T16:11:01 < BrainDamage> some RTOS / libs give you an HW abstraction 2012-03-21T16:11:16 < Rickta59> so i don't see that any different than writing code in C .. your windows code isn't likely to work with your linux computer even though they are both C 2012-03-21T16:11:19 < BrainDamage> which actually makes that possible with virtually no code change 2012-03-21T16:11:50 < zyp> Rickta59, windows code runs surprisingly good under wine nowadays 2012-03-21T16:11:51 < Rickta59> i guess that is what I like about these small mcus 2012-03-21T16:12:02 < Rickta59> no os .. just me and some port pins 2012-03-21T16:12:22 < Rickta59> * i've been doing software for 30+ years 2012-03-21T16:13:03 < Rickta59> so the simplicity of the 430 is what keeps me going back there 2012-03-21T16:13:08 < zyp> I've soon been doing (paid) software for one year :p 2012-03-21T16:13:22 < Rickta59> but I can see the advantage of these stm32 arm chips 2012-03-21T16:13:33 < zyp> I guess I've played around with it as a hobby for ten years or so 2012-03-21T16:13:45 < BrainDamage> stm32 chips are quite cheap as well for the power they mount 2012-03-21T16:13:56 < zyp> true 2012-03-21T16:14:07 < zyp> and from what I hear nxp have even cheaper arm chips 2012-03-21T16:14:28 < Rickta59> why do the TI ARM dev boards cost so much more? 2012-03-21T16:14:36 < zyp> which kind? 2012-03-21T16:14:49 < Rickta59> any of the stellaris ones 2012-03-21T16:15:16 < zyp> oh, I was thinking of kinetis, that's freescale 2012-03-21T16:15:56 < zyp> well, I haven't looked at that 2012-03-21T16:16:29 < zyp> maybe to not kill msp430's market segment 2012-03-21T16:16:37 < Thorn> I wanted to do a breakout with a stm32, lpc17, stellaris, kinetis and efm on it :) 2012-03-21T16:16:43 < zyp> you don't really want to compete with yourself 2012-03-21T16:16:51 < Rickta59> https://estore.ti.com/Product3.aspx?ProductId=1886 2012-03-21T16:17:12 < BrainDamage> it seems to me the msp430 target userbase includes a large fraction of hobbysts 2012-03-21T16:17:26 < BrainDamage> much like aduino made the fortune of atmel 2012-03-21T16:17:39 < Rickta59> if you read the ti forums .. there seem to be a lot of people using them in real products 2012-03-21T16:17:54 < Rickta59> if you read 43oh.com they are all hobby people 2012-03-21T16:18:18 < Rickta59> i think the price of the launchpad got people interested 2012-03-21T16:18:32 < Rickta59> but then they realized it wasn't an arduino and never do anything with it 2012-03-21T16:18:35 < Thorn> I've seem a msp430 chip targeted at power meters for example 2012-03-21T16:18:47 < Thorn> *seen 2012-03-21T16:18:50 < Rickta59> power grid stuff is big 2012-03-21T16:18:59 < Rickta59> lcd display driving 2012-03-21T16:19:12 < BrainDamage> msp430 for me is basically low power, low cost, low mips 2012-03-21T16:19:29 < Rickta59> that is its best use yes 2012-03-21T16:19:35 < Thorn> yes I don't recall any cortex chips with segmented lcd drivers 2012-03-21T16:19:51 < Rickta59> fluke uses them in their meters 2012-03-21T16:20:03 < BrainDamage> vs say, a stm32l which is low power, high cost ( relative to msp430 ), and high mips ( again relative ) 2012-03-21T16:20:26 < Thorn> fire/security alarms require low power mcus for battery powered detectors too 2012-03-21T16:20:42 < Rickta59> medical devices are also one place it fits 2012-03-21T16:21:11 < Rickta59> they seem to be making a push into low power rf sensors 2012-03-21T16:22:04 < BrainDamage> the stm32w was a big disappointment to me wrt dev boards 2012-03-21T16:22:12 < Rickta59> w is? 2012-03-21T16:22:22 < BrainDamage> I espected another discovery-like, but min is like 40$ for few buttons 2012-03-21T16:22:38 < zyp> isn't that the proprietary radio shit? 2012-03-21T16:22:38 < BrainDamage> it's a stm32 with a radio ( wireless ) builtin 2012-03-21T16:22:57 < Rickta59> ah 2012-03-21T16:22:59 < BrainDamage> yes, it implements zigbee and few other protocols 2012-03-21T16:23:05 < Thorn> is stm32w a zigbee node or just some transciever? 2012-03-21T16:23:12 < Thorn> aha I see 2012-03-21T16:23:13 < Rickta59> the TI C2500 stuff can be had cheaply 2012-03-21T16:23:26 < zyp> Thorn, that would depend on the software 2012-03-21T16:24:18 < zyp> I might be looking into replacing the zigbee link to my quadrotor later if zigbee doesn't prove reliable and responsive enough 2012-03-21T16:25:58 < zyp> I don't want to run seperate links for control and telemetry, so I want something that's reliable and responsive enough for control while still allowing transport of arbitrary message frames in both directions 2012-03-21T16:26:40 < BrainDamage> I'm toying with those nRF based mini radio modules 2012-03-21T16:26:49 < BrainDamage> I have to say I'm quite pleased 2012-03-21T16:27:12 < BrainDamage> CDMA @ 500kBps is not bad at all 2012-03-21T16:27:18 < BrainDamage> for ~2$ 2012-03-21T16:27:30 < Rickta59> great for sending temperature reading 2012-03-21T16:28:00 < BrainDamage> I'm tinking to take one of those modules, cut the antenna trace and solder an impedance matching circuit, and solder a sma connector 2012-03-21T16:29:29 < Thorn> BrainDamage: these ones? http://www.nordicsemi.com/jpn/Products/2.4GHz-RF 2012-03-21T16:30:16 < zyp> I used nRF24AP2 for a project when I were in uni 2012-03-21T16:30:18 < BrainDamage> yuppers 2012-03-21T16:30:32 < Rickta59> link to the $2 version ? 2012-03-21T16:30:40 < zyp> ANT is horrible shit and I hope I never have to touch it again 2012-03-21T16:30:42 < BrainDamage> ebay 2012-03-21T16:30:46 < Thorn> though they don't have any modules, must be 3rd party 2012-03-21T16:31:40 < BrainDamage> ebay has plenty of chinese sellers which sell a near 1:1 copy of the demo circuit in the datasheet 2012-03-21T16:31:48 < BrainDamage> the chips interface trough spi 2012-03-21T16:32:10 < Thorn> qfn only is not particularly nice 2012-03-21T16:32:16 < zyp> why rework modules when you just can make a new board and put the chip on? 2012-03-21T16:32:21 < zyp> qfn is not that bad. 2012-03-21T16:32:59 < zyp> anyway, commuting home from work, see you later 2012-03-21T16:33:00 < BrainDamage> because it'd actually cost me more 2012-03-21T16:33:08 < BrainDamage> plus laziness 2012-03-21T16:34:44 < BrainDamage> there are sma equipped modules, on ebay even, but 12$ is not what they're worth 2012-03-21T16:36:22 < BrainDamage> btw Rickta59, in the case you didn't know, this site might be useful to you: http://tideals.com/ 2012-03-21T16:36:36 < Rickta59> thanks : ) 2012-03-21T16:36:47 < Rickta59> i have bought a few things that way 2012-03-21T16:36:55 < Rickta59> fram board $15 2012-03-21T16:49:18 < Rickta59> I just got a couple of these http://www.aliexpress.com/store/605000/210711378-525916173/transcevier-module-CC2500-distance-50-60-meters.html 2012-03-21T16:49:47 < Rickta59> on my list of things to get working 2012-03-21T16:50:25 < Rickta59> probably similar to that nordic device 2012-03-21T18:11:02 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-21T18:54:42 < Thorn> do all f4discovery boards lack RTC oscillators or is it just me being unlucky? 2012-03-21T18:56:05 < Thorn> (and 2 capacitors too) 2012-03-21T19:00:44 < zyp> yep 2012-03-21T19:00:57 < zyp> probably supposed to be user supplied if desired 2012-03-21T19:01:10 < zyp> so just get one and solder it on 2012-03-21T19:01:35 < Thorn> and 0402 caps 2012-03-21T19:02:01 < zyp> looks like 0603 pads to me 2012-03-21T19:02:32 < zyp> yep, it's 0603 2012-03-21T19:02:34 < Thorn> ah right, some 0402 parts are nearby 2012-03-21T19:02:40 < zyp> yeah 2012-03-21T19:06:10 < Thorn> good thing they didn't make the f4 chip itself user supplied, it's also pretty expensive 2012-03-21T19:15:48 < dongs> user-supplied-clue 2012-03-21T19:15:57 < dongs> hey zyp, i asked here a wahile ago but maybe you know 2012-03-21T19:16:08 < dongs> anyway to detect attached crystal on F1? 2012-03-21T19:16:18 < dongs> i.e. automatically configure shit based whether its 8/12/16mhz 2012-03-21T19:16:53 < dongs> i was thinking 8/16 way could be set some watchdog and run pll as if it was a8mhz crystal, with 16 it would surely lock up or something but that seems a bit ghetto 2012-03-21T19:18:41 < Thorn> you can try using the rtc to count some HSE dependent events (timer interrupts?) within a "real-time" interval (10ms or whatever) 2012-03-21T19:19:00 < Thorn> (just an idea) 2012-03-21T19:19:03 < dongs> that would require a rtc crystal 2012-03-21T19:19:08 < dongs> and i dont have 10 seconds to wait for this 2012-03-21T19:19:28 < Thorn> of course you need a reference to measure against 2012-03-21T19:19:42 < dongs> well, thats the easy way. 2012-03-21T19:20:22 < zyp> dongs, I think I did answer you 2012-03-21T19:20:25 < dongs> oh? 2012-03-21T19:20:40 < dongs> my scrollback doesnt go that far 2012-03-21T19:20:51 < dongs> was it something more involved than "youre nuts"? 2012-03-21T19:21:03 < zyp> you always have HSI (8 MHz internal) 2012-03-21T19:21:08 < dongs> ok 2012-03-21T19:21:24 < zyp> can't you just run one timer off HSE and one off HSI and compare them? 2012-03-21T19:21:31 < dongs> can I? 2012-03-21T19:21:57 < zyp> I'm not sure, check timer input config 2012-03-21T19:22:30 < zyp> and IIRC there should also be a 40khz LSI for RTC that you can use when you don't have LSE 2012-03-21T19:23:34 < dongs> http://www.youtube.com/watch?v=5YJvI6PQ9pQ watching 2012-03-21T19:24:01 < dongs> ok thanks, ill poke aroudn with that idea 2012-03-21T19:24:17 < dongs> its just im lazy and i thought it would be nice if I could not care about the value of crystal that gets mounted 2012-03-21T19:24:33 < dongs> like just throw some crystals on a board and it just works. 2012-03-21T19:24:51 < Thorn> that sounds more work than not being lazy lol 2012-03-21T19:25:04 < Thorn> +like 2012-03-21T19:25:12 < dongs> incorrect 2012-03-21T19:25:17 < dongs> its only one-time investment in work 2012-03-21T19:25:21 < dongs> and then lazy all the way 2012-03-21T19:25:24 < dongs> this is how i roll 2012-03-21T19:25:44 <+jpa-> and the 40kHz LSI is going to be quite inaccurate 2012-03-21T19:25:51 <+jpa-> like several minutes per day 2012-03-21T19:26:12 <+jpa-> ah 2012-03-21T19:26:16 < dongs> if i end up using that I will likely not spend more than 1 second using it. 2012-03-21T19:26:20 <+jpa-> never mind, i didn't read the whole backlog 2012-03-21T19:26:37 <+jpa-> yeah, the LSI should be perfectly fine for detecting the accuracy of the external crystal 2012-03-21T19:26:39 < dongs> i hpoe it stays accurate for at least a second 2012-03-21T19:27:22 < dongs> Calibrating delay loop.............................. xxx lolomips. 2012-03-21T19:27:27 < dongs> k sleep 2012-03-21T19:30:32 < Thorn> I doubt you can run one timer from HSE and another from HSI 2012-03-21T19:31:23 < Thorn> at the same time 2012-03-21T19:32:43 <+jpa-> you could if you looped it back from the main clock output :P 2012-03-21T19:33:02 < zyp> that might be, but you can for sure rune one from HSE and one from LSI at the same time 2012-03-21T19:33:10 <+jpa-> yeah 2012-03-21T19:34:06 < Thorn> if one of them is RTS then certainly :) 2012-03-21T19:34:23 < Thorn> *RTC 2012-03-21T19:40:33 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-21T20:26:13 <+jpa-> justitguy: i assume your bezier-rendering library is not publicly available? 2012-03-21T20:39:30 -!- izua [~izua@188.27.188.208] has joined ##stm32 2012-03-21T20:39:32 -!- izua is now known as Guest43969 2012-03-21T20:39:52 -!- Guest43969 is now known as izua__ 2012-03-21T20:51:30 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-21T20:58:33 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-21T22:09:35 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 252 seconds] 2012-03-21T22:19:33 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [] 2012-03-21T22:42:48 -!- zippe [~Adium@173.11.99.161] has quit [Read error: Connection reset by peer] 2012-03-21T22:43:28 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-21T22:44:51 -!- Laurenceb_ [~Laurence@host86-146-189-78.range86-146.btcentralplus.com] has joined ##stm32 2012-03-21T22:54:42 < zyp> http://www.blacksphere.co.nz/main/blackmagic <- did anyone here have any experiences with this? 2012-03-21T23:00:08 -!- izua__ [~izua@188.27.188.208] has quit [Ping timeout: 246 seconds] 2012-03-21T23:10:56 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 --- Day changed Thu Mar 22 2012 2012-03-22T00:22:43 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-22T00:22:56 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-22T01:16:59 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-03-22T01:17:30 < TitanMKD> hi 2012-03-22T01:18:28 < zyp> hi 2012-03-22T01:19:05 -!- Laurenceb_ [~Laurence@host86-146-189-78.range86-146.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-03-22T01:19:35 <+Steffanx> nu 2012-03-22T01:19:37 < TitanMKD> I just finished my NFC sniffer and it works like a charm ;) 2012-03-22T01:19:45 < zyp> nice 2012-03-22T01:19:52 < TitanMKD> thanks to STM32F4 Discovery and my TRF7970A ;) 2012-03-22T01:20:21 < zyp> I just finished my first F4 based board and are now porting code from discovery to it 2012-03-22T01:21:27 < TitanMKD> I plan maybe to build a full card including TRF7970A+STM32F4, but I need to found a place where STM32F4 cost less than 16US$ !! 2012-03-22T01:21:44 < TitanMKD> the price is just crazy 2012-03-22T01:22:14 < TitanMKD> for same price I have the STM32F4 Discovery board ! 2012-03-22T01:22:50 < zyp> I paid $14.40 for the F4 on my board 2012-03-22T01:22:58 < zyp> doesn't seem that unreasonable to me 2012-03-22T01:23:00 <+Steffanx> http://octopart.com/partsearch#search/requestData&q=STM32F407vg .. arrow and/or verical 2012-03-22T01:23:31 < TitanMKD> zyp it should be 8US$ ;) 2012-03-22T01:23:59 < TitanMKD> Steffanx thanks for the price comparator 2012-03-22T01:24:14 < zyp> on a ~$100 board, $6 in difference dosn't matter much to me 2012-03-22T01:24:21 < zyp> doesn't 2012-03-22T01:24:35 <+Steffanx> You don't care about money at all :p 2012-03-22T01:24:36 < TitanMKD> for me it is i plan to build a full board for less than 40US$ 2012-03-22T01:24:45 < zyp> Steffanx, well, no 2012-03-22T01:25:00 < zyp> I even bought parts for three $100 boards even though I only need one 2012-03-22T01:25:06 < TitanMKD> and I will build maximum 10 board at start ;) 2012-03-22T01:25:57 < zyp> Steffanx, that's the nice part about having a job 2012-03-22T01:26:02 < zyp> I can actually afford shit 2012-03-22T01:26:25 <+Steffanx> Time to get your own house, a wife and children :P 2012-03-22T01:26:39 < Tom_itx> but you usually don't get time to spend it 2012-03-22T01:27:04 < zyp> pff, I don't need much time to spend money. 2012-03-22T01:27:12 < Tom_itx> heh 2012-03-22T01:27:29 <+Steffanx> The casino is close to you? 2012-03-22T01:27:44 < Tom_itx> i could easily spend a half mil without batting an eye 2012-03-22T01:27:47 < zyp> no, but the internet is :p 2012-03-22T01:27:52 < Tom_itx> if i had it to spend 2012-03-22T01:28:35 < Tom_itx> mmm the lottery is up to 240 mil, maybe i should get a ticket 2012-03-22T01:28:47 <+Steffanx> 240 :S 2012-03-22T01:28:50 < TitanMKD> see you later bye 2012-03-22T01:28:55 < Tom_itx> heh 2012-03-22T01:28:56 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-03-22T01:29:06 < Tom_itx> Steffanx, last week it was only 171 2012-03-22T01:29:19 <+Steffanx> Why they don't make 480 people happy with 500k or even more people 2012-03-22T01:29:21 < Tom_itx> ppl go nuts when it starts growing like that 2012-03-22T01:29:27 <+Steffanx> with some money 2012-03-22T01:29:45 < Tom_itx> well the taxes would take probably 60% of it 2012-03-22T01:30:18 < Tom_itx> but with the leftover cash i could set up a nice little shop 2012-03-22T01:30:34 < zyp> I'm aiming to buy a house as soon as I can afford it 2012-03-22T01:31:00 <+Steffanx> Isn't a house the worst thing you can buy atm? 2012-03-22T01:31:08 < Tom_itx> not here 2012-03-22T01:31:13 < Tom_itx> the market is near rock bottom 2012-03-22T01:31:30 < Tom_itx> if you have good credit 2012-03-22T01:31:37 < zyp> I'm not saying I'll buy it now, I have almost no savings :p 2012-03-22T01:31:39 < Tom_itx> it would probably be a good time 2012-03-22T01:31:53 < zyp> and I need a bit to pay the… 2012-03-22T01:32:00 <+Steffanx> Houses are too expensive anyway 2012-03-22T01:32:05 < zyp> what do you call the part you have to pay yourself? 2012-03-22T01:32:07 <+Steffanx> Here at least 2012-03-22T01:32:45 < Tom_itx> zyp, what do you mean? 2012-03-22T01:32:49 < zyp> in Norway you have to pay at least 10% out of pocket, you only get a loan of up to 90% of value 2012-03-22T01:32:58 < zyp> what do you call the 10% in english? :p 2012-03-22T01:32:59 < Tom_itx> oh downpayment? 2012-03-22T01:33:41 < zyp> sounds right 2012-03-22T01:33:49 < Tom_itx> is Fjorden a common name there? 2012-03-22T01:34:07 < zyp> what kind of name? 2012-03-22T01:34:10 < Tom_itx> last 2012-03-22T01:34:23 < zyp> it means «the fjord» 2012-03-22T01:34:38 < zyp> and I've never heard about anyone being named that 2012-03-22T01:34:59 <+Steffanx> Anyway, me is going to look for a nice house in dreamland 2012-03-22T01:35:01 < zyp> but all kinds of weird names exist 2012-03-22T01:35:29 < Tom_itx> just curious 2012-03-22T01:35:34 < Tom_itx> i met someone from norway today 2012-03-22T01:35:36 < zyp> I knew a guy with the surname «Hesten» which means «the horse» 2012-03-22T01:35:50 < Tom_itx> didn't know if it was a common name or not 2012-03-22T01:36:02 < Tom_itx> we have quite a few 'common' names here 2012-03-22T01:36:16 < Tom_itx> like smith, jones, johnson etc 2012-03-22T01:36:18 <+Steffanx> Your last name isn't on of them is it? 2012-03-22T01:36:30 < Tom_itx> nope 2012-03-22T01:36:33 < zyp> a lot of common surnames here ends with -sen 2012-03-22T01:36:53 < zyp> same meaning as the -son in johnson 2012-03-22T01:38:20 <+Steffanx> So your grand grand grand grand grand grand father was called Erik? 2012-03-22T01:38:33 < zyp> I would assume so 2012-03-22T01:38:36 <+Steffanx> Erik the viking 2012-03-22T01:39:47 < Tom_itx> i've been doing an ancestry search last few days is the interest in names all the sudden 2012-03-22T01:40:10 < Tom_itx> haven't gotten that far yet 2012-03-22T01:41:47 <+Steffanx> gn 2012-03-22T01:42:04 < Tom_itx> already? 2012-03-22T01:44:17 < zyp> my mothers father were doing a lot of ancestry research when he was alive 2012-03-22T01:45:02 < zyp> so I can trace that side of my ancestry back pretty far now, but Eriksen comes from the other side 2012-03-22T01:46:24 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 250 seconds] 2012-03-22T01:50:20 < Tom_itx> one branch is back to the 1600's 2012-03-22T03:02:22 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-22T03:31:23 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 246 seconds] 2012-03-22T04:05:32 < justitguy> TitanMKD, how many boards are you planning to make? BTW, exactly which stm32f4xx chip? 2012-03-22T04:09:42 < justitguy> jpa-, Did you find a work-around or fix for the bug? 2012-03-22T05:44:21 -!- fox_ [~fox@188.55.34.202] has joined ##stm32 2012-03-22T06:20:52 -!- fox_ [~fox@188.55.34.202] has quit [Ping timeout: 276 seconds] 2012-03-22T06:26:55 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 260 seconds] 2012-03-22T06:33:54 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-22T07:48:21 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-22T08:02:48 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-22T08:43:25 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 260 seconds] 2012-03-22T09:11:01 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-03-22T10:40:15 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-22T11:20:00 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-22T11:20:00 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-22T12:36:05 <+jpa-> justitguy: yeah the DMA workaround worked 2012-03-22T12:36:24 <+jpa-> slightly slow but not terribly so 2012-03-22T12:59:43 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-03-22T12:59:59 < ratatata> nu 2012-03-22T13:00:14 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-22T13:04:21 < zyp> what language are «nu» actually? 2012-03-22T13:11:18 <+jpa-> pokemon 2012-03-22T13:29:20 -!- Laurenceb_ [~Laurence@host86-146-189-78.range86-146.btcentralplus.com] has joined ##stm32 2012-03-22T13:48:47 -!- Laurenceb_ [~Laurence@host86-146-189-78.range86-146.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-03-22T13:58:50 <+Steffanx> .lt zyp ... 2012-03-22T14:08:00 < dongs> wat 2012-03-22T14:12:07 < dongs> does swo work on stm32#? 2012-03-22T14:12:38 < dongs> ah, it does. and i didnt connect it. dongs. 2012-03-22T14:13:32 < dongs> lol, wasted for led 2012-03-22T14:13:32 < dongs> sigh 2012-03-22T15:09:08 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Remote host closed the connection] 2012-03-22T15:16:51 < jaeckel> has someone an advice or tool how to visualize the ouput of a gcc mapfile? 2012-03-22T15:17:27 < zyp> read the file and use your imagination! 2012-03-22T15:18:02 < jaeckel> hrhr 2012-03-22T15:18:45 < zyp> well, what do you want to visualize? 2012-03-22T15:19:45 < jaeckel> code sizes 2012-03-22T15:19:54 < jaeckel> static memory sizes 2012-03-22T15:19:58 < jaeckel> all per module 2012-03-22T15:20:53 < jaeckel> well static mem is bss, i know 2012-03-22T15:21:31 < jaeckel> but would be nice to have a view "module x uses nKb ram and nKb for code 2012-03-22T15:22:30 < zyp> what's a module? 2012-03-22T15:22:50 < jaeckel> one .c file... 2012-03-22T15:22:57 < zyp> i.e. a translation unit 2012-03-22T15:22:58 < jaeckel> that generates an object file 2012-03-22T15:23:15 < zyp> you could run arm-none-eabi-size on each .o file to get that info 2012-03-22T15:23:39 < zyp> but since that runs before linking it will also count sections that are garbage collected later 2012-03-22T15:25:52 < jaeckel> mh, if the compiler chose to inline code, is that part of the code also counted twice? 2012-03-22T15:43:21 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-22T16:25:21 < ziph> jaeckel: Each inline will increase the code size, but usually by much less than the non-inlined function size. 2012-03-22T16:26:05 < ziph> jaeckel: And by the time things are in an .o file inlines look just like regular code (unless you look in the debug symbols, which -size wouldn't). 2012-03-22T16:26:44 < jaeckel> ok thanks, that's what I thought too. 2012-03-22T16:28:00 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-22T17:12:16 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-22T17:15:24 -!- avernos [~avernos@unaffiliated/avernos] has joined ##stm32 2012-03-22T17:16:57 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-22T17:19:29 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 246 seconds] 2012-03-22T17:35:00 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-22T17:37:41 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 246 seconds] 2012-03-22T17:46:53 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-22T17:47:54 < zyp> does anybody happen to know how to choose which PHY (internal/external) to use on OTG_HS? 2012-03-22T17:48:03 < zyp> because I can't seem to find the setting 2012-03-22T17:57:10 -!- mrcan__ [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-22T18:00:02 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 252 seconds] 2012-03-22T18:13:44 < zyp> for some reason OTG_FS have a PHYSEL bit in GUSBCFG which is readonly since OTG_FS doesn't have connection for external PHY 2012-03-22T18:14:00 < zyp> but that bit is listed as reserved on OTG_HS where it would make sense to have it. 2012-03-22T18:15:23 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-22T18:16:52 -!- mrcan__ [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 244 seconds] 2012-03-22T18:31:20 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has quit [Read error: Connection reset by peer] 2012-03-22T18:35:59 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-22T18:40:42 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-22T18:54:28 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Quit: Leaving] 2012-03-22T18:54:36 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-22T18:58:18 < zyp> datasheet says internal phy on OTG_HS is AF10 while stm32f4discovery code configures it to AF12 2012-03-22T19:00:02 < zyp> and neither seems to «just work» for me 2012-03-22T19:03:17 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-22T19:16:09 < zyp> example code also sets the physel bit, that shouldn't exist according to documentation 2012-03-22T19:23:19 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-03-22T19:54:02 -!- elektrinis [circuit@82-135-241-134.static.zebra.lt] has joined ##stm32 2012-03-22T20:47:01 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-22T21:15:25 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-03-22T21:15:36 < TitanMKD> hi 2012-03-22T21:18:39 <+Steffanx> lo 2012-03-22T22:09:12 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 245 seconds] 2012-03-22T22:14:27 -!- Laurenceb_ [~Laurence@host86-146-189-78.range86-146.btcentralplus.com] has joined ##stm32 2012-03-22T22:25:48 -!- phantoxeT [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-22T22:50:53 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-22T22:51:10 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-22T22:51:22 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-22T22:57:33 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-22T22:57:34 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-22T23:04:05 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-22T23:05:06 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-22T23:14:19 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-22T23:19:24 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-22T23:19:55 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-22T23:21:58 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-22T23:35:43 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-22T23:38:10 -!- theAdib [~adib@dslb-088-074-168-083.pools.arcor-ip.net] has joined ##stm32 2012-03-22T23:38:10 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-22T23:44:01 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-22T23:44:18 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-22T23:59:42 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 --- Day changed Fri Mar 23 2012 2012-03-23T00:04:02 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-23T00:10:04 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-23T00:12:06 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-23T00:15:05 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-23T00:16:14 -!- Tectu [tectu@188.40.68.67] has quit [Ping timeout: 252 seconds] 2012-03-23T00:18:08 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-23T00:20:08 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-23T00:20:10 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-23T00:21:15 < TitanMKD> bye 2012-03-23T00:21:32 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-03-23T00:22:40 -!- Tectu [tectu@188.40.68.67] has joined ##stm32 2012-03-23T00:31:26 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-23T00:42:38 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-23T00:43:52 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-23T00:43:56 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-23T00:48:49 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-23T00:55:53 -!- theAdib [~adib@dslb-088-074-168-083.pools.arcor-ip.net] has quit [Quit: Ex-Chat] 2012-03-23T01:04:55 < corecode> hi 2012-03-23T01:05:16 < corecode> could it be that ST gives more RAM to devices than they say in their brochure? 2012-03-23T01:05:30 < corecode> i have a STM32L151C8T6 here 2012-03-23T01:05:49 < corecode> and (1) i'm having a hard time finding a specification about how much RAM it has 2012-03-23T01:06:17 < corecode> and (2) the data that the st-link utility reports differs from what is written in the sales brochure 2012-03-23T01:06:23 < zyp> did you try actually reading the datasheet? 2012-03-23T01:06:27 < corecode> yes 2012-03-23T01:06:32 < corecode> both of them 2012-03-23T01:06:37 < corecode> there are only ranges 2012-03-23T01:06:40 < corecode> up to... lalala 2012-03-23T01:06:42 < zyp> ok, hang on, let me try it 2012-03-23T01:07:48 < corecode> http://www.st.com/internet/com/SALES_AND_MARKETING_RESOURCES/MARKETING_COMMUNICATION/MARKETING_BROCHURE/brulp.pdf 2012-03-23T01:07:55 < corecode> that one talks about the ram size 2012-03-23T01:08:33 < Randomskk> it's 10kB 2012-03-23T01:08:35 < zyp> I said datasheet, not marketing shit 2012-03-23T01:08:40 < zyp> and yes, it's 10k 2012-03-23T01:09:26 < zyp> the 8 in L151C8 means 64k flash, and datasheet says that 64k flash variants have 10k ram 2012-03-23T01:09:48 < Randomskk> incidentally is http://www.st.com/internet/mcu/product/248831.jsp mostly japanese for anyone else? 2012-03-23T01:09:52 < zyp> http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00277537.pdf <- oh, and this is the datasheet 2012-03-23T01:09:54 < Randomskk> or maybe chinese, I'm not entirely sure 2012-03-23T01:10:17 < zyp> yep 2012-03-23T01:10:19 < zyp> it's chinese 2012-03-23T01:10:21 < Randomskk> weird 2012-03-23T01:10:43 < corecode> yea same here 2012-03-23T01:10:50 < corecode> https://code.google.com/p/nute/source/list <- what could this be? 2012-03-23T01:10:54 < corecode> they're using stm32 2012-03-23T01:11:07 < corecode> zyp: how come the st-link tool reports 16kb then? 2012-03-23T01:11:09 < corecode> oddness 2012-03-23T01:11:27 < zyp> 128k flash variant have 16k ram 2012-03-23T01:11:58 < zyp> maybe you got a 128k flash core which didn't pass QC as 128k and got sold as 64k 2012-03-23T01:12:18 < zyp> or maybe st-link doesn't identify the chip correctly 2012-03-23T01:13:17 < zyp> either way, the datasheet specifies what you have paid for and which is safe to use 2012-03-23T01:13:31 < zyp> the precense of the last 6k is undefined 2012-03-23T01:16:19 < corecode> odd 2012-03-23T01:16:29 < Randomskk> you could always test it 2012-03-23T01:16:34 < Randomskk> but yea, I certainly wouldn't trust it 2012-03-23T01:16:47 < corecode> where did you find the 10k statement? 2012-03-23T01:23:45 < zyp> the pdf I linked. 2012-03-23T01:24:05 < zyp> table on page 10 2012-03-23T01:25:25 < zyp> and page 105 on how to interpret the name 2012-03-23T01:25:26 < Laurenceb_> i think they broke the javascript 2012-03-23T01:25:35 < Laurenceb_> on st website its all chinese for me too 2012-03-23T01:25:49 < zyp> yeah, I noticed it myself earlier today 2012-03-23T01:29:10 <+Steffanx> I don't think it has anything to do with that 2012-03-23T01:29:17 <+Steffanx> with js Laurenceb_ 2012-03-23T01:41:18 -!- mrcan is now known as mcan-afk 2012-03-23T01:47:55 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2012-03-23T02:03:52 -!- Laurenceb_ [~Laurence@host86-146-189-78.range86-146.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-03-23T02:24:07 -!- mcan-afk [~mrcan@unaffiliated/mrcan] has quit [Read error: Connection reset by peer] 2012-03-23T02:26:36 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-23T02:54:58 -!- avernos_ [~avernos@111.192.243.186] has joined ##stm32 2012-03-23T02:57:57 -!- avernos [~avernos@unaffiliated/avernos] has quit [Ping timeout: 248 seconds] 2012-03-23T03:18:51 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-23T04:38:34 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-23T04:57:39 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 245 seconds] 2012-03-23T04:58:31 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-23T04:58:59 -!- peabody124 [~peabody12@128.249.96.123] has quit [Client Quit] 2012-03-23T05:00:05 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 248 seconds] 2012-03-23T05:30:51 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-23T05:31:31 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2012-03-23T05:45:43 -!- phantoxeT [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-23T06:40:28 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-23T07:04:28 -!- eruif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-23T07:07:25 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 276 seconds] 2012-03-23T07:34:25 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-23T07:40:06 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-23T07:41:07 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-23T07:45:02 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-23T07:46:21 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-23T07:50:21 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-23T07:51:23 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-23T07:55:23 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-23T07:55:28 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-23T08:00:34 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-23T08:05:39 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-23T08:06:12 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-23T08:07:42 -!- Tekno [~TeknoJuce@69.158.141.78] has joined ##stm32 2012-03-23T08:07:51 -!- Tekno [~TeknoJuce@69.158.141.78] has quit [Changing host] 2012-03-23T08:07:51 -!- Tekno [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-03-23T08:07:51 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-23T08:09:58 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 252 seconds] 2012-03-23T08:11:09 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-23T09:23:45 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-23T09:47:57 < Tectu> morning 2012-03-23T09:50:36 < zyp> morning 2012-03-23T10:03:45 -!- Tekno [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 252 seconds] 2012-03-23T10:06:51 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-03-23T10:13:40 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124] 2012-03-23T11:08:48 -!- Laurenceb_ [~Laurence@host86-146-189-78.range86-146.btcentralplus.com] has joined ##stm32 2012-03-23T11:20:32 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-23T11:20:48 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-23T11:20:56 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-23T11:24:49 -!- Laurenceb_ [~Laurence@host86-146-189-78.range86-146.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-03-23T11:27:29 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-23T11:27:38 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-23T11:32:27 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-23T11:32:39 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-23T11:37:36 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-23T11:37:49 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-23T11:42:59 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-23T11:43:10 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-23T11:47:55 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-23T11:48:00 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-23T12:43:06 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-23T14:00:36 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-23T14:01:25 -!- eruif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 248 seconds] 2012-03-23T14:17:36 -!- avernos_ [~avernos@111.192.243.186] has quit [Quit: Ex-Chat] 2012-03-23T15:11:19 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2012-03-23T15:38:20 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124] 2012-03-23T16:06:05 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-23T16:54:01 -!- theAdib [~adib@dslb-088-074-153-014.pools.arcor-ip.net] has joined ##stm32 2012-03-23T17:02:26 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has left ##stm32 [] 2012-03-23T17:05:09 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-03-23T17:12:21 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 248 seconds] 2012-03-23T17:14:42 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-23T17:14:45 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-23T17:43:38 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-23T17:57:13 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-23T18:51:00 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-23T19:02:01 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 252 seconds] 2012-03-23T19:04:50 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-03-23T19:11:14 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-23T19:55:07 -!- mrcan_ [~mrcan@88.242.197.77] has joined ##stm32 2012-03-23T19:55:08 -!- mrcan_ [~mrcan@88.242.197.77] has quit [Changing host] 2012-03-23T19:55:08 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-23T19:58:38 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 246 seconds] 2012-03-23T20:20:39 -!- theAdib [~adib@dslb-088-074-153-014.pools.arcor-ip.net] has quit [Quit: Ex-Chat] 2012-03-23T20:24:55 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-23T20:25:47 -!- ben1066 [~quassel@unaffiliated/ben1066] has joined ##stm32 2012-03-23T20:26:39 < ben1066> what's the reccomended programmer for stm32? 2012-03-23T20:27:11 < BrainDamage> jtag works pretty well 2012-03-23T20:27:38 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-03-23T20:28:11 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-03-23T20:28:21 < ben1066> anything specific? I have a windows host. 2012-03-23T20:28:41 < BrainDamage> st-link is not the best, but works decently 2012-03-23T20:28:47 < BrainDamage> the one on discovery boards 2012-03-23T20:28:53 < BrainDamage> it uses swd 2012-03-23T20:29:01 < BrainDamage> which still works ok 2012-03-23T20:29:02 < ben1066> is there anything that isnt limited to just stm32, eg if I wanted to use nxp also 2012-03-23T20:29:40 < BrainDamage> get something like versaloon 2012-03-23T20:31:20 < Thorn> I use olimex arm-usb-ocd-h + openocd 2012-03-23T20:31:41 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-23T20:31:47 < Thorn> I haven't opened it but it's basically ft2232h and little more 2012-03-23T20:32:14 < ben1066> so just an ft2232h eval board would be enough? 2012-03-23T20:33:31 < Thorn> probably, if you write your own openocd config for it 2012-03-23T20:36:08 < ben1066> i take it i need another programmer to program the stlink as an openocd compatible... 2012-03-23T20:36:35 < Thorn> actually the config contains "ft2232_layout olimex-jtag" so if you match ftdi pins to jtag functions if should work 2012-03-23T20:45:57 < Thorn> here's an example (with a DLP ft1232h board) http://www.randomprojects.org/wiki/DLP-USB1232H_and_OpenOCD_based_JTAG_adapter 2012-03-23T20:46:18 < Thorn> (wtf is ft1232h?) 2012-03-23T20:53:19 < Thorn> it's most definitely a ft2232h 2012-03-23T20:57:37 -!- elektrinis [circuit@82-135-241-134.static.zebra.lt] has quit [Ping timeout: 246 seconds] 2012-03-23T21:38:50 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2012-03-23T21:47:53 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-23T21:49:28 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Disconnected by services] 2012-03-23T21:49:34 -!- Tom_L is now known as Tom_itx 2012-03-23T22:10:33 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-03-23T22:15:33 -!- Laurenceb_ [~Laurence@host86-173-192-6.range86-173.btcentralplus.com] has joined ##stm32 2012-03-23T22:21:12 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-03-23T22:29:18 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-23T22:29:22 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-23T22:30:04 <+Steffanx> nu 2012-03-23T22:30:39 <+jpa-> hii Steffanx 2012-03-23T23:02:49 < ben1066> One day Ill actually get one of the designs made... 2012-03-23T23:25:17 < ben1066> Hmm, anyone got an example of using the stm32 rtc for time, it seems to me to just be a clock, unlike the ds* ones which give you formatted time 2012-03-23T23:30:34 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-23T23:35:48 < Thorn> standard peripheral library contains a couple of examples 2012-03-23T23:35:59 < ben1066> ah ok 2012-03-23T23:36:16 < ben1066> Still deciding if I should use arm or avr, and if arm what one, its between nxp and stm32 2012-03-23T23:36:23 < ben1066> stm32 have built in rtc though :) 2012-03-23T23:37:39 < Thorn> I believe NXP chips (and others) do too 2012-03-23T23:37:48 < ben1066> Their low end ones dont 2012-03-23T23:37:58 < ben1066> The lowest end STM32 I can find does 2012-03-23T23:38:49 < Thorn> probably because nxp's low end chips are cortex-m0 2012-03-23T23:38:57 < ben1066> They are indeed 2012-03-23T23:39:10 < ben1066> Which is ARMv6-m over ARMv7-m also yes? 2012-03-23T23:41:55 < Thorn> right, the instruction set is different 2012-03-23T23:42:16 < ben1066> which im guessing is inferior, it has a smaller number :P 2012-03-23T23:42:17 < Laurenceb_> last time i tried nxp it was a mess 2012-03-23T23:42:24 < Laurenceb_> even more of a mess than stm32 :P 2012-03-23T23:42:31 < Laurenceb_> but that was a couple of years ago 2012-03-23T23:42:31 < Thorn> (more precisely, m0 supports a subset of instructions that m3 does) 2012-03-23T23:44:42 < Thorn> lots of new cortex-m books on amazon btw 2012-03-23T23:47:06 < ben1066> anything I should be interested in particular 2012-03-23T23:48:01 < ben1066> Does anyone here bother keeping check on what they have 2012-03-23T23:48:07 < ben1066> Or do they just try and find it :P 2012-03-23T23:48:07 < Thorn> well, I was speaking in general 2012-03-23T23:48:19 < ben1066> ah ok 2012-03-23T23:48:29 < ben1066> I wondered if you had any ideas 2012-03-23T23:48:37 < ben1066> anything that is worthwhile :P 2012-03-23T23:48:53 < Thorn> ARM ARM is always a good idea lol 2012-03-23T23:49:07 < ben1066> I have the digital copy of that :P 2012-03-23T23:50:29 <+jpa-> ben1066: this may be useful https://svn.kapsi.fi/jpa/paatti-chibios/rtc.c 2012-03-23T23:51:13 <+jpa-> (mainly rtc_increment) 2012-03-23T23:51:21 < ben1066> Yea 2012-03-23T23:51:26 < ben1066> its somewhat helpful 2012-03-23T23:56:19 < Laurenceb_> i have rtc working with fatfs 2012-03-23T23:56:59 < Thorn> I use ds1337+ 2012-03-23T23:57:52 < Laurenceb_> wut 2012-03-23T23:57:57 < Laurenceb_> get with the times man 2012-03-23T23:58:07 < Laurenceb_> most micros have rtc built in 2012-03-23T23:58:09 < Thorn> *ds1337u+ 2012-03-23T23:58:10 < Laurenceb_> even avr 2012-03-23T23:58:21 < Thorn> what avr 2012-03-23T23:58:30 < Thorn> I haven't touched avr for a year now 2012-03-23T23:58:34 < Laurenceb_> hehe 2012-03-23T23:59:03 * Laurenceb_ lolling 2012-03-23T23:59:04 < Laurenceb_> http://www.google.com/url?sa=t&rct=j&q=total%20heamoglobin%20ppg&source=web&cd=5&ved=0CEUQFjAE&url=http%3A%2F%2Fdigbib.ubka.uni-karlsruhe.de%2Fvolltexte%2Fdocuments%2F1738466&ei=ZfFsT8TEN8e_0QWx5_DYBg&usg=AFQjCNFlt4vOo1LfW1naUlAeFpBV-Ln5tw&cad=rja 2012-03-23T23:59:16 < Laurenceb_> "I dedicate this thesis to,,, my Father, my Mother, all my family, 2012-03-23T23:59:16 < Laurenceb_> soul of 25 January Egyptain revolution martyrs 2012-03-23T23:59:16 < Laurenceb_> " --- Day changed Sat Mar 24 2012 2012-03-24T00:01:02 < Thorn> "I dedicate this thesis to 3 commas, ..." or maybe 3 empty strings? or 2 commas? 2012-03-24T00:02:45 < ben1066> i havent moved to arm due to the fact its so rediculous 2012-03-24T00:03:02 < ben1066> There is no real manafacutre supported programmer debugger as there is with avr/pic 2012-03-24T00:03:06 < ben1066> nor is there ides 2012-03-24T00:03:21 < Laurenceb_> eclipse 2012-03-24T00:03:26 < ben1066> I hate eclipse 2012-03-24T00:03:29 < ben1066> And Will never use it 2012-03-24T00:03:29 < Laurenceb_> and texane with the stm32discovery 2012-03-24T00:03:34 < Laurenceb_> i use gedit 2012-03-24T00:03:46 < ben1066> Im on windows and generally use visual studio 2012-03-24T00:04:33 < Laurenceb_> ewww 2012-03-24T00:04:40 < Laurenceb_> winblows 2012-03-24T00:05:03 < Thorn> is msvs much better than eclipse? 2012-03-24T00:05:12 < ben1066> In my opinion yes 2012-03-24T00:05:17 <+jpa-> any time 2012-03-24T00:05:20 < Thorn> btw I've seen people use qt creator for embedded development 2012-03-24T00:05:24 < ben1066> The "intellisense" is better, although its a crappy name 2012-03-24T00:05:43 < ben1066> It just feels nicer, although VS11 is all metroy, still to be won over by it :S 2012-03-24T00:06:21 < ben1066> Thorn: Qt creator seems an odd choice 2012-03-24T00:06:32 < ben1066> I mean, I can use VS however I cant do anything more than compiling 2012-03-24T00:06:42 < ben1066> To do debugging you have to pay 100$ for wingdb :S 2012-03-24T00:07:29 < Thorn> wow 2012-03-24T00:07:42 < Thorn> qt creator supports gdb out of the box 2012-03-24T00:07:59 < ben1066> VS isnt designed for it, its designed for microsoft's toolchain 2012-03-24T00:08:00 < ben1066> Not GCC 2012-03-24T00:08:06 < Thorn> I think you can use cross-gdb with it too 2012-03-24T00:08:16 < ben1066> You can use GCC with a makefile project 2012-03-24T00:08:17 < ben1066> thats it 2012-03-24T00:08:29 < Thorn> which would enable you to debug arm targets in qt creator 2012-03-24T00:08:39 < ben1066> oh right 2012-03-24T00:08:40 < ben1066> with Qt 2012-03-24T00:08:43 < Laurenceb_> maybe you could use atmel studio6 2012-03-24T00:08:45 < ben1066> Ive never used Qt Creator 2012-03-24T00:08:59 < ben1066> Laurenceb_: I was thinking that, it uses a full GCC toolchain... 2012-03-24T00:09:20 < Thorn> I believe the lack of "one true IDE" is a strength of the ARM platform 2012-03-24T00:09:29 < ben1066> the worst IDE ive had to use are those for HDL though, they look like they havent changed since the 1990s... 2012-03-24T00:10:19 < ben1066> Thorn: whys that a good thing, I prefer to have the ability to ask questions when something doesnt work instead of being told it's unsupported... 2012-03-24T00:10:20 < Thorn> again you can use any good peogrammer's editor with makefiles for HDL, though makefiles are going to get ugly 2012-03-24T00:10:36 < ben1066> Never tried 2012-03-24T00:10:40 < ben1066> Dont really plan on doing so 2012-03-24T00:10:47 < ben1066> Its comfusing enough as it is :P 2012-03-24T00:11:07 < ben1066> I dont see how people do proper development without an ide though, autocomplete and such is so helpful 2012-03-24T00:11:11 < Thorn> ben1066: who'd tell you it's "unsupported" if you build your own development environment? 2012-03-24T00:11:37 < ben1066> Thorn: That's what I don't like, I like being able to just use something without having that hassle 2012-03-24T00:11:47 < ben1066> Eg AVR Studio, Visual Studio, Quartus 2012-03-24T00:11:54 < Laurenceb_> i just use gedit 2012-03-24T00:11:58 < Laurenceb_> and terminal window 2012-03-24T00:12:19 < ben1066> When doing windows developement I dont end up needing to use a terminal, it all just works nicely 2012-03-24T00:12:25 < Thorn> ben1066: /join #arduino lol 2012-03-24T00:12:34 < ben1066> Nothing else ive found is that straight forward :P 2012-03-24T00:12:34 < ben1066> And no, the arduino IDE is silly :P 2012-03-24T00:12:52 < ben1066> + AVR Studio doesnt require a load of faff to get working correctly 2012-03-24T00:12:59 < ben1066> Neither does Quartus 2012-03-24T00:13:04 < ben1066> But its still crap :p 2012-03-24T00:13:05 < Thorn> okay, Keil, IAR, Atollic, etc. 2012-03-24T00:13:26 < ben1066> Keil costs silly money 2012-03-24T00:13:32 < ben1066> not so sure about the other 2 2012-03-24T00:14:21 < ben1066> IAR needs a quote so thats gonna cost a lot 2012-03-24T00:14:32 < Thorn> they all do (CooCox IDE is free iirc and there's some $100 IDE). most are built around the same gcc toolchain 2012-03-24T00:14:46 < Thorn> except the really expensive ones 2012-03-24T00:15:02 < ben1066> If I were to pay for any itd be Keil since its pretty much ARMs toolchain 2012-03-24T00:15:46 < Thorn> I don't think anyone here uses $$$ tools (except maybe for work) 2012-03-24T00:17:14 < Thorn> the point is you can build a comfortable environment for yourself from what's available for free (and a cheap jtag/swd adapter) 2012-03-24T00:17:28 < ben1066> What is CooCox built upon...it looks a bit eclipsey 2012-03-24T00:18:07 < Thorn> I'd say 2/3 of all embedded IDEs are built on top of eclipse lol 2012-03-24T00:18:37 < ben1066> See thats my problem >_> 2012-03-24T00:18:53 < ben1066> i hate eclipse, eclipse hates me 2012-03-24T00:19:30 < Thorn> which is not ARM specific at all, e.g. for TI DSPs, Nios etc eclipse is the only thing available iirc 2012-03-24T00:19:34 < ben1066> AVR studio supports atmels ARMs.... 2012-03-24T00:20:01 < ben1066> I wonder if it could be coersed into supporting others 2012-03-24T00:20:05 < ben1066> since atmels are pretty pricey 2012-03-24T00:20:38 < Thorn> look at what jtag adapters it supports 2012-03-24T00:21:17 < ben1066> Blah, JTAGICE SAM-ICE AVR ONE and Dragon 2012-03-24T00:21:39 < Thorn> that's how they do vendor lock-in 2012-03-24T00:23:15 < ben1066> damn it 2012-03-24T00:23:26 < ben1066> And i want to make only a clock :P 2012-03-24T00:24:09 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-24T00:24:40 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has quit [Remote host closed the connection] 2012-03-24T00:24:43 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-24T00:26:48 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-24T00:26:54 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-24T00:27:16 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 246 seconds] 2012-03-24T00:32:22 -!- mrcan_ is now known as mcan 2012-03-24T00:38:48 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has quit [Read error: Connection reset by peer] 2012-03-24T00:46:09 -!- gsmcmullin [~gareth@122-62-149-197.jetstream.xtra.co.nz] has joined ##stm32 2012-03-24T01:41:18 -!- justitguy_ [~justitguy@cpe-76-169-33-142.socal.res.rr.com] has joined ##stm32 2012-03-24T01:55:20 -!- Netsplit *.net <-> *.split quits: zippe, justitguy, CheBuzz 2012-03-24T02:06:08 -!- Laurenceb_ [~Laurence@host86-173-192-6.range86-173.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-03-24T02:19:10 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-24T02:44:38 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 246 seconds] 2012-03-24T03:34:02 -!- phantone is now known as phantoxe 2012-03-24T03:57:09 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-24T04:19:29 -!- avernos [~avernos@111.192.243.186] has joined ##stm32 2012-03-24T04:19:29 -!- avernos [~avernos@111.192.243.186] has quit [Changing host] 2012-03-24T04:19:29 -!- avernos [~avernos@unaffiliated/avernos] has joined ##stm32 2012-03-24T04:33:01 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: ureif] 2012-03-24T04:57:59 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-24T05:00:01 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-24T05:18:40 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-24T05:31:20 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-24T05:35:04 < ziph> You finally got an AVR+LED to blink? 2012-03-24T07:15:06 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-24T07:16:13 < dongs> haha 2012-03-24T07:16:22 < dongs> knowing flyback, he probably just got an AVR. 2012-03-24T09:24:37 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has quit [Ping timeout: 245 seconds] 2012-03-24T09:26:09 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 244 seconds] 2012-03-24T10:17:15 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-24T10:19:19 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-24T11:51:51 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-24T11:51:55 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-24T13:05:31 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-24T13:26:31 -!- circuit [~circuit@82-135-241-134.static.zebra.lt] has joined ##stm32 2012-03-24T13:36:13 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-24T13:49:21 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-24T14:16:22 -!- circuit [~circuit@82-135-241-134.static.zebra.lt] has left ##stm32 [] 2012-03-24T14:16:31 -!- elektrinis [~circuit@82-135-241-134.static.zebra.lt] has joined ##stm32 2012-03-24T15:36:15 -!- mcan [~mrcan@unaffiliated/mrcan] has quit [Quit: Leaving] 2012-03-24T15:36:23 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-24T15:55:23 -!- izua__ [~izua@188.26.167.242] has joined ##stm32 2012-03-24T16:16:40 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-24T16:47:02 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: /o\] 2012-03-24T17:43:02 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-24T17:52:04 < zyp> do anybody here have any experience with the OTG_HS peripheral in F2/F4? 2012-03-24T17:52:36 < zyp> I have a piece of code working nicely on the OTG_FS peripheral, but I'm having a hard time getting it to work on OTG_HS 2012-03-24T17:55:14 < philpem> doesn't OTG_HS need an external PHY chip? 2012-03-24T17:56:43 < zyp> only for HS mode, it has an internal PHY capable of FS 2012-03-24T18:01:39 < zyp> I guess it's the PHY selection I'm having problems with, therefore I'm asking if anybody have got it working 2012-03-24T18:25:08 -!- izua__ [~izua@188.26.167.242] has quit [Quit: Obai] 2012-03-24T18:35:22 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-24T19:07:55 -!- theAdib [~adib@dslb-088-074-147-114.pools.arcor-ip.net] has joined ##stm32 2012-03-24T19:39:43 -!- elektrinis [~circuit@82-135-241-134.static.zebra.lt] has quit [Ping timeout: 264 seconds] 2012-03-24T19:54:20 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-24T20:41:31 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 272 seconds] 2012-03-24T20:51:02 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-03-24T21:01:55 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-03-24T21:42:15 -!- zippe [~Adium@173.11.99.161] has quit [Read error: Connection reset by peer] 2012-03-24T21:42:25 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-24T22:00:08 -!- Laurenceb_ [~Laurence@host86-173-192-6.range86-173.btcentralplus.com] has joined ##stm32 2012-03-24T22:03:00 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Ping timeout: 260 seconds] 2012-03-24T22:16:13 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-03-24T22:32:13 < Thorn> holy crap $66 XDS510 http://www.aliexpress.com/product-fm/537335731-Free-Shipping-USB-2-0-JTAG-TMS320-XDS510-TI-DSP-Emulator-Programmer-3-CD-support-CCS3-wholesalers.html 2012-03-24T22:38:55 < zyp> what's that? cloned jtag dongle? 2012-03-24T22:39:28 < Thorn> yes, original http://www.spectrumdigital.com/product_info.php?products_id=29 2012-03-24T22:39:51 < Thorn> I haven't seen clones <$300 till now 2012-03-24T22:40:37 < Thorn> that's the only thing that supports midrange / high end TI DSPs 2012-03-24T22:40:55 < zyp> sounds nive 2012-03-24T22:40:57 < zyp> nice 2012-03-24T22:41:03 < zyp> if you're into TI DSPs 2012-03-24T22:41:19 < Thorn> I wonder if it actually worrks lol 2012-03-24T22:42:14 < Thorn> there's another catch, you need to pay $$$ for the Code Composer Studio to work with X510, while the lesser XDS100 acts like a free license dongle for it 2012-03-24T22:43:12 < Thorn> (although I heard their license protection is not very strong) 2012-03-24T22:47:58 < Thorn> btw generic arm adapters with similar capabilities (realtime trace) like j-trace etc start with $2000 or so iirc, and there're no clones 2012-03-24T22:53:20 < Laurenceb_> whats the point of the Ti DSPs now anyway 2012-03-24T22:53:26 < Laurenceb_> whats the max clk speed? 2012-03-24T22:55:02 < Thorn> well e.g. this one seems pretty fast http://www.ti.com/product/tms320c6672 2012-03-24T22:55:32 < Laurenceb_> ok thats fast :P 2012-03-24T22:55:56 < Laurenceb_> who needs an FPGA then XD 2012-03-24T22:58:34 < Laurenceb_> i was going to say you can get some very fast arm cortex stuff, but not that good 2012-03-24T22:59:36 < zyp> TI also have some DSPs with an additional cortex core 2012-03-24T22:59:44 < Thorn> they also have cortex+c6 chips http://www.ti.com/lsds/ti/dsp/platform/c6-integra/c6a816x_device.page?paramCriteria=no 2012-03-24T22:59:50 < Thorn> right 2012-03-24T23:00:09 < Thorn> and same for mcus, cortex-m+c28 2012-03-24T23:00:20 < zyp> yes, I was thinking of the latter 2012-03-24T23:02:23 < Thorn> c28 chips supposedly have pwm with picosecond resolution 2012-03-24T23:03:01 < Thorn> (or at least sub-nanosecond) 2012-03-24T23:08:59 < Thorn> but c28 need 1.8+3.3V power and have a whole lot of power pins (like 30 in a 100-pin package) 2012-03-24T23:09:54 < Thorn> compared to ~10 in a similar package stm32 2012-03-24T23:10:06 < Thorn> (power+gnd) 2012-03-24T23:17:38 < justitguy_> Thorn, are you prepared to write or port code to this chip? Only ask as I see/hear lots of people talking about specs who are not prepared/competent to use them. No disrespect intended. 2012-03-24T23:19:28 < Thorn> which chip? lost of very different ones vere mentioned :) 2012-03-24T23:19:39 < Thorn> sure in any case it's a whole new architecture to learn 2012-03-24T23:20:23 < Thorn> and if we're talking about a "signal mcu" cortex-m4f may well be what one needs 2012-03-24T23:22:05 < Thorn> still it's fun to explore something new (and not too expensive as it turns out, there're relatively cheap boards and jtag clones on aliexpress) 2012-03-24T23:25:01 < justitguy_> Does not matter much, but I see lots of people wanting to assert 'A' is more powerful/useful than 'B' but 'B' is better than 'A' because the datasheet says so. I only ask if, when there is so much on the silicone today, how much you really master if you keep jumping onto one topic (chip) then another without really mastering any one of them. If just for curiosity/learning cool. But, what will you do with the understanding? An 2012-03-24T23:25:01 < justitguy_> application? 2012-03-24T23:26:41 < justitguy_> The beauty of the ARM is the ornathonogal design. All ARM V7 cores are identical for instance. Peripherals do change but not the core or they would not be ARM. 2012-03-24T23:28:32 < Thorn> as an aside, there're lots of things in these ARM cores that are "IMPLEMENTATION DEFINED", such as support for bit banding etc 2012-03-24T23:28:48 < justitguy_> Yes, so? 2012-03-24T23:28:50 < Thorn> so you could in theory run into a cortex-m3 that doesn;t have bit banding 2012-03-24T23:29:10 < Thorn> with existing code that relies on it 2012-03-24T23:29:39 < justitguy_> Yes, but if a competent programmer is involved (not just a user who wants only canned solutions), not a problem. 2012-03-24T23:31:35 < Thorn> but you're reigh, to actually do something you need to be application oriented and choose things that work best for you and for your application 2012-03-24T23:35:12 < Thorn> *right 2012-03-24T23:35:37 < Thorn> looks like I do need some sleep from time to time 2012-03-24T23:39:43 < justitguy_> It may or may not be "application" dependent as only a well designed "system" not application would ever know the difference. That is why I posed the question in the first place. Are you a truely knowledgable developer or just someone wanting to debate 2012-03-24T23:40:18 < justitguy_> Guess you must sleep Thorn, have a good rest. 2012-03-24T23:44:39 < Thorn> yes good night --- Day changed Sun Mar 25 2012 2012-03-25T00:46:35 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 246 seconds] 2012-03-25T00:47:15 -!- theAdib [~adib@dslb-088-074-147-114.pools.arcor-ip.net] has quit [Remote host closed the connection] 2012-03-25T02:11:38 -!- Laurenceb_ [~Laurence@host86-173-192-6.range86-173.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-03-25T02:12:12 -!- atom1 [~tom@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-25T02:22:29 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 246 seconds] 2012-03-25T02:26:41 -!- atom1 [~tom@ip70-179-150-84.fv.ks.cox.net] has quit [Quit: Leaving] 2012-03-25T04:05:49 -!- atom1 [~tom@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-25T04:06:41 -!- atom1 [~tom@ip70-179-150-84.fv.ks.cox.net] has quit [Client Quit] 2012-03-25T04:12:48 -!- Tom_itx is now known as Tom_L 2012-03-25T04:13:01 -!- Tom_L is now known as Tom_itx 2012-03-25T04:14:32 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-25T04:25:57 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: ureif] 2012-03-25T04:26:39 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-25T04:42:00 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-25T05:05:40 -!- atom1 [~tom@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-25T05:09:51 -!- Tom_itx is now known as Tom_L 2012-03-25T05:10:04 -!- Tom_L is now known as Tom_itx 2012-03-25T07:07:16 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-25T07:34:13 -!- atom1 [~tom@ip70-179-150-84.fv.ks.cox.net] has quit [Quit: Leaving] 2012-03-25T07:54:46 -!- mrcan is now known as mcan-afk 2012-03-25T08:41:26 < ziph> flyback: We kinda just take that without saying. 2012-03-25T08:51:05 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 260 seconds] 2012-03-25T09:23:52 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-25T09:31:35 -!- eruif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-25T09:31:55 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 260 seconds] 2012-03-25T09:41:32 -!- eruif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 246 seconds] 2012-03-25T09:50:37 < dongs> great. now there's zippe, ziph, zyp and zlog here. 2012-03-25T09:51:08 -!- ziph is now known as zyippelog 2012-03-25T09:51:20 < zyippelog> How about this one? 2012-03-25T09:51:30 < dongs> sounds even gayer 2012-03-25T09:51:54 < zyippelog> In contrast to a collection of male penises? :) 2012-03-25T09:52:00 -!- zyippelog is now known as ziph 2012-03-25T09:56:20 < Thorn> >male penises 2012-03-25T09:56:39 < ziph> Thorn: Hmm? 2012-03-25T09:57:05 < Thorn> are there any non-male ones? 2012-03-25T09:57:14 < ziph> Yes. 2012-03-25T09:57:31 < Thorn> no I don't want to know 2012-03-25T09:58:11 < ziph> Stay off street corners in ban neighborhoods late at night then. ;) 2012-03-25T09:58:21 < ziph> bad neighborhoods rather 2012-03-25T10:56:56 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-25T11:25:43 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: ureif] 2012-03-25T11:30:32 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-25T12:11:57 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-25T13:16:36 -!- Laurenceb_ [~Laurence@host86-173-192-6.range86-173.btcentralplus.com] has joined ##stm32 2012-03-25T14:54:53 -!- theAdib [~adib@dslb-088-074-138-106.pools.arcor-ip.net] has joined ##stm32 2012-03-25T16:05:27 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-25T16:31:01 -!- mcan-afk [~mrcan@unaffiliated/mrcan] has quit [Quit: Leaving] 2012-03-25T16:31:09 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-25T16:42:03 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: ureif] 2012-03-25T17:34:09 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-25T18:52:06 -!- atom1 [~tom@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-25T19:58:07 -!- atom1 [~tom@ip70-179-150-84.fv.ks.cox.net] has quit [Quit: Leaving] 2012-03-25T20:18:19 -!- izua [~izua@188.26.167.242] has joined ##stm32 2012-03-25T20:18:45 -!- izua is now known as Guest45580 2012-03-25T20:19:37 -!- Guest45580 is now known as izua__ 2012-03-25T20:40:53 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-25T21:24:45 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Read error: Connection reset by peer] 2012-03-25T21:26:18 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-25T21:39:47 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-25T21:39:50 -!- mode/##stm32 [+v Steffanx] by ChanServ --- Day changed Mon Mar 26 2012 2012-03-26T00:09:35 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-26T00:11:54 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Disconnected by services] 2012-03-26T00:11:56 -!- phantone is now known as phantoxe 2012-03-26T00:41:56 -!- zippe [~Adium@173.11.99.161] has quit [Read error: Connection reset by peer] 2012-03-26T00:42:35 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-26T00:58:58 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 276 seconds] 2012-03-26T01:18:29 -!- Laurenceb_ [~Laurence@host86-173-192-6.range86-173.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-03-26T02:02:07 -!- theAdib [~adib@dslb-088-074-138-106.pools.arcor-ip.net] has quit [Quit: Ex-Chat] 2012-03-26T02:14:34 -!- izua__ [~izua@188.26.167.242] has quit [Quit: Obai] 2012-03-26T02:18:55 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-26T02:19:36 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [Client Quit] 2012-03-26T03:00:57 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-26T03:01:40 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [Client Quit] 2012-03-26T03:04:59 < corecode> hi 2012-03-26T03:05:44 < corecode> from my loader, can i trigger a reset that will run everything from the application flash (get the app reset handler from the isr table)? 2012-03-26T03:05:53 < corecode> or will i have to do that all manually? 2012-03-26T03:20:19 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-26T03:28:06 -!- avernos [~avernos@unaffiliated/avernos] has quit [Read error: No route to host] 2012-03-26T03:38:10 -!- avernos [~avernos@111.192.243.186] has joined ##stm32 2012-03-26T03:38:10 -!- avernos [~avernos@111.192.243.186] has quit [Changing host] 2012-03-26T03:38:10 -!- avernos [~avernos@unaffiliated/avernos] has joined ##stm32 2012-03-26T04:13:31 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-26T04:13:49 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-26T04:14:01 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Client Quit] 2012-03-26T04:14:19 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-26T04:14:46 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Client Quit] 2012-03-26T04:15:05 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-26T04:57:29 -!- atom1 [~tom@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-26T05:15:11 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-26T05:31:24 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-26T05:36:01 -!- atom1 [~tom@ip70-179-150-84.fv.ks.cox.net] has quit [Quit: Leaving] 2012-03-26T05:58:00 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-26T08:51:23 <+jpa-> corecode: i think it has to be done manually 2012-03-26T10:42:01 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: ureif] 2012-03-26T11:31:28 -!- elektrinis [~circuit@82-135-241-134.static.zebra.lt] has joined ##stm32 2012-03-26T11:52:55 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-26T12:14:36 -!- Laurenceb_ [~Laurence@host86-173-192-6.range86-173.btcentralplus.com] has joined ##stm32 2012-03-26T12:19:31 -!- Laurenceb_ [~Laurence@host86-173-192-6.range86-173.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-03-26T12:24:17 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-26T12:52:48 -!- dreamon_ [~chatzilla@59.98.37.16] has joined ##stm32 2012-03-26T12:52:52 < corecode> oh wow 2012-03-26T12:53:31 < corecode> somehow i can't program the system flash 2012-03-26T12:53:39 < corecode> system memory, they call it 2012-03-26T12:53:56 < dreamon_> I have added some code in virtual com port and I want to enable MemManagementhandler fault. How can this be done? It always goes in OTG_FS_IRQn fault handler. 2012-03-26T13:06:37 <+jpa-> corecode: expected as much :) 2012-03-26T13:07:00 < corecode> but all the data sheets list it elaborately as flash 2012-03-26T13:07:46 < corecode> i quite much like the nuc1xx more than the stm32lxx 2012-03-26T13:08:12 < corecode> just that it has fewer features 2012-03-26T13:08:14 < corecode> and costs more 2012-03-26T13:08:43 < corecode> i mean, why would they elaborately talk about system memory flash 2012-03-26T13:08:48 < corecode> if you can't change it 2012-03-26T13:14:58 < zyp> probably because it's flash 2012-03-26T13:15:25 < corecode> yea, and never mention it anywhere that this is flash, but can't be written to? 2012-03-26T13:15:36 < corecode> what good is a stupid usart bootloader 2012-03-26T13:17:24 <+jpa-> it's quite nice when everything else fails 2012-03-26T13:17:43 <+jpa-> but just put your own bootloader in the writable flash 2012-03-26T13:18:03 < dreamon_> how to enable interrupt handler in CMSIS ? 2012-03-26T13:18:26 < corecode> my problem is that the default boot loader is stuck 2012-03-26T13:18:33 < corecode> and never transfers control to the application 2012-03-26T13:20:02 < zyp> on the board I recently did I hardwired the boot pins low to disable internal bootloader 2012-03-26T13:20:24 < zyp> then I got second thoughts about that, considering that the F4 bootloader actually supports USB 2012-03-26T13:20:39 <+jpa-> corecode: it's not stuck, it is supposed to do that - just tie BT0 down if you want to boot to application 2012-03-26T13:21:18 < zyp> but then I checked the documentation and realized that it only supports OTG_FS port, not OTG_HS 2012-03-26T13:21:29 < zyp> and F405 isn't supposed to have OTG_FS 2012-03-26T13:23:56 < zyp> I also kind of wonder why F405 doesn't have OTG_FS 2012-03-26T13:24:36 < zyp> the documentation is inconsistent, as if it originally were supposed to have it, but then got removed 2012-03-26T13:24:41 <+jpa-> hmm.. but shouldn't a high-speed port support full-speed also? 2012-03-26T13:25:09 < zyp> yep, I'm using OTG_HS with the built in FS-PHY now 2012-03-26T13:25:25 < corecode> yea bollocks 2012-03-26T13:25:37 < corecode> i think i'll trash these stm32l 2012-03-26T13:25:41 < corecode> that's of no use 2012-03-26T13:25:52 <+jpa-> corecode: :D 2012-03-26T13:25:54 < corecode> now i have 50 boards i can't use 2012-03-26T13:26:03 <+jpa-> corecode: why can't you just tie BT0 down? 2012-03-26T13:26:25 < corecode> because they are too ignorant to spell it out directly that the system memory might be flash, but can't be written to 2012-03-26T13:26:27 < zyp> I checked the OTG_FS register area in my F405s, and it seems to be present and sane 2012-03-26T13:26:40 < corecode> jpa-: because the pin is pulled up on the board 2012-03-26T13:26:56 < corecode> well i might 2012-03-26T13:26:59 <+jpa-> no way to hack it? 2012-03-26T13:27:01 < corecode> but still 2012-03-26T13:27:15 < corecode> this clearly tells me that i can't trust st docs 2012-03-26T13:27:26 < corecode> if i have to read all 2000 pages to find one single thing 2012-03-26T13:28:29 < zyp> agreed 2012-03-26T13:28:48 < zyp> the chapters on usb are also bad 2012-03-26T13:29:56 < corecode> what's the objective of making the system memory flash, but you can't write to it? 2012-03-26T13:30:09 < corecode> that makes no sense at all 2012-03-26T13:30:27 < zyp> so you can't brick it by trashing the bootloader? 2012-03-26T13:30:50 < corecode> no, you can use the jtag to unbrick it 2012-03-26T13:30:57 <+jpa-> i haven't read the STM32L docs, but i haven't seen any suggestion of it being flash or writable 2012-03-26T13:31:06 < corecode> well 2012-03-26T13:31:20 < corecode> as soon as you read it, you'll see that they talk about it being flash 2012-03-26T13:31:27 < corecode> with that-and-that memory organisation, etc. 2012-03-26T13:33:35 < zyp> I don't see why flash in any way would imply user writable 2012-03-26T13:33:37 <+jpa-> true 2012-03-26T13:33:43 <+jpa-> it says it's part of the flash module 2012-03-26T13:33:53 < corecode> but why? 2012-03-26T13:34:02 < corecode> why prevent writing? 2012-03-26T13:34:43 < corecode> why say there are 4KB loader flash? who the fuck cares if it is 500MB if you can't write to it 2012-03-26T13:34:59 < corecode> maybe it is a factory option? 2012-03-26T13:35:59 <+jpa-> there are some small suggestions to the fact such as "the WRPERR flag is set when the software tries to write to .. a write protected page .. a System memory page .." 2012-03-26T13:36:06 < corecode> yea 2012-03-26T13:36:15 < corecode> that's what i mean by reading 2000 pages 2012-03-26T13:36:45 < corecode> why not talk about it when you mention that it is flash? 2012-03-26T13:36:58 < corecode> atrocious documentation 2012-03-26T13:37:46 <+jpa-> well you're the first person who i have seen who thought that system bootloader would be writable :) 2012-03-26T13:38:02 < corecode> because the L series is the first to say it is flash 2012-03-26T13:38:10 < corecode> the other ones call it ROM, IIRC 2012-03-26T13:44:08 < zyp> jpa-, I guess it would depend on the background you have 2012-03-26T13:44:19 < zyp> on AVR system bootloader is indeed writable 2012-03-26T13:44:32 <+jpa-> huh, didn't know that 2012-03-26T13:44:40 < zyp> it's part of the main flash 2012-03-26T13:44:49 <+jpa-> but i'm pretty sure Steffanx would rate it pebkec :P 2012-03-26T13:46:12 < corecode> a data sheet, as technical literature, should be as clear as possible 2012-03-26T13:46:53 < corecode> not a treasure hunt for the bit of information 2012-03-26T13:46:56 <+jpa-> hehe, like the example code should be working and the system library should be well designed? :) 2012-03-26T13:47:03 < corecode> yes 2012-03-26T13:47:11 <+jpa-> i wish that too :,( 2012-03-26T13:47:14 < corecode> of course they should! 2012-03-26T13:47:14 < Thorn> avr has factory programmed bootloader? 2012-03-26T13:47:30 < corecode> the NUC1xx series has a programmable boot loader as well 2012-03-26T13:47:44 < corecode> and in general much better tools 2012-03-26T13:47:53 < corecode> and libraries 2012-03-26T13:49:56 < zyp> Thorn, at least some of the usb ones do 2012-03-26T13:50:11 < zyp> I've used ATmega32U4, and it came factory programmed with a DFU bootloader 2012-03-26T13:51:05 < Thorn> I see 2012-03-26T14:03:24 < dreamon_> I want to enable MemoryManagement fault handler in USB-FS-Vcom code. It uses CMSIS. How can I do that? 2012-03-26T14:04:43 < dreamon_> It always goes in other handler.. 2012-03-26T14:11:33 < corecode> meh, something is wrong. 2012-03-26T14:12:00 < corecode> i get a PGAERR and WRPERR even when writing to the program memory 2012-03-26T14:12:09 < corecode> but somehow it winds up there properly anyways 2012-03-26T14:19:42 < corecode> bah. 2012-03-26T14:19:46 < corecode> write protected 2012-03-26T14:19:53 < corecode> and getting a programming alignment error 2012-03-26T14:21:57 -!- dreamon_ [~chatzilla@59.98.37.16] has quit [Ping timeout: 248 seconds] 2012-03-26T14:28:11 -!- mrcan_ [~mrcan@95.14.226.180] has joined ##stm32 2012-03-26T14:28:12 -!- mrcan_ [~mrcan@95.14.226.180] has quit [Changing host] 2012-03-26T14:28:12 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-26T14:30:32 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 246 seconds] 2012-03-26T14:33:19 -!- izua [~izua@188.26.167.242] has joined ##stm32 2012-03-26T14:33:45 -!- izua is now known as Guest26475 2012-03-26T14:35:02 -!- Guest26475 is now known as izua__ 2012-03-26T14:35:19 < izua__> http://9gag.com/gag/3538305 2012-03-26T14:36:36 -!- mrcan_ is now known as mrcan 2012-03-26T15:32:16 < corecode> is it normal that i read back all 0s for the gpio registers via stlink? 2012-03-26T15:33:02 <+jpa-> did you turn on the GPIO clock? 2012-03-26T15:33:20 < corecode> I used GPIO_Init 2012-03-26T15:33:28 < corecode> do i need to do more? 2012-03-26T15:35:47 < corecode> i didn't read anything about a gpio clock 2012-03-26T15:36:35 < corecode> i mean, it could entirely be a read-back problem with stlink 2012-03-26T15:36:44 < izua__> every peripheral has a clock, which is disabled by default. 2012-03-26T15:37:15 < izua__> does the port passed as an argument to GPIO_Init work (ie, do you see good values on it) ? 2012-03-26T15:37:30 < corecode> it reads back all 0s 2012-03-26T15:37:33 < corecode> the registers 2012-03-26T15:39:14 < corecode> ah, i see 2012-03-26T15:39:18 < corecode> perfect datasheet again 2012-03-26T15:39:29 < corecode> no word about a clock in the gpio section 2012-03-26T15:40:01 < zyp> of course not, it's mentioned in the clock section. 2012-03-26T15:40:37 < zyp> all peripherals have their clocks gated, so that's nothing that's specific to a given peripheral 2012-03-26T16:06:50 -!- izua__ [~izua@188.26.167.242] has quit [Quit: Obai] 2012-03-26T16:11:41 < corecode> yeeey 2012-03-26T16:11:44 < corecode> finally it blinks 2012-03-26T16:32:56 < Tectu> congratulations :) 2012-03-26T16:33:05 < corecode> thanks 2012-03-26T17:03:25 -!- atom1 [~tom@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-26T17:13:31 -!- atom1 [~tom@ip70-179-150-84.fv.ks.cox.net] has quit [Quit: Leaving] 2012-03-26T18:04:57 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-26T18:05:26 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Read error: Connection reset by peer] 2012-03-26T18:06:05 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-26T18:11:13 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has quit [Ping timeout: 246 seconds] 2012-03-26T18:12:27 < Thorn> I take it SWD doesn't support chaining, does it? 2012-03-26T18:15:24 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-26T18:21:10 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has joined ##stm32 2012-03-26T18:26:11 < Thorn> "Serial Wire protocol version 2 extends the Serial Wire protocol by the addition of multi-drop capability. Multi-drop capability allows more than one Serial Wire interface to share the same connection to a debugger host." 2012-03-26T18:29:23 -!- izua [~izua@188.26.167.242] has joined ##stm32 2012-03-26T18:29:36 -!- izua is now known as izua__ 2012-03-26T18:30:40 < Laurenceb> sweet 2012-03-26T18:30:48 < Laurenceb> now its as good as jtag 2012-03-26T18:31:15 < Thorn> not quite, there's no target discovery 2012-03-26T18:31:40 < Thorn> the debugger will need to scream every target ID it knows into the bus 2012-03-26T18:31:57 < Thorn> (and I wonder what happens if there're two identical chips there) 2012-03-26T18:35:53 -!- izua__ [~izua@188.26.167.242] has quit [Ping timeout: 246 seconds] 2012-03-26T18:39:57 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-26T18:40:37 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 246 seconds] 2012-03-26T18:47:47 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-26T18:48:18 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-26T18:53:47 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Remote host closed the connection] 2012-03-26T19:00:57 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-26T19:33:33 -!- izua [~izua@188.26.167.242] has joined ##stm32 2012-03-26T19:33:39 -!- eruif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-26T19:33:59 -!- izua is now known as Guest10991 2012-03-26T19:35:38 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 240 seconds] 2012-03-26T20:20:02 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-26T20:22:23 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-26T20:29:22 < Thorn> yet another family http://www.silabs.com/products/mcu/Pages/32-Bit-Microcontrollers.aspx 2012-03-26T20:30:03 < zyp> yep, it's the one with full IO crossbar 2012-03-26T20:30:06 < zyp> sounds interesting 2012-03-26T20:32:53 < Thorn> core specs aren't too impressive but I guess that's not the selling point 2012-03-26T20:33:32 -!- Tekno [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-03-26T20:36:17 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 246 seconds] 2012-03-26T20:43:45 -!- izua_ [~izua@79.115.170.121] has joined ##stm32 2012-03-26T20:44:11 -!- izua_ is now known as Guest38902 2012-03-26T20:46:42 -!- Guest10991 [~izua@188.26.167.242] has quit [Ping timeout: 252 seconds] 2012-03-26T21:31:33 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-26T21:33:24 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-26T21:33:28 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-26T21:46:05 -!- Laurenceb_ [~Laurence@host86-173-192-6.range86-173.btcentralplus.com] has joined ##stm32 2012-03-26T21:53:13 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-26T22:00:14 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-03-26T22:18:12 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-26T22:24:05 -!- eruif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 246 seconds] 2012-03-26T22:26:17 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-26T22:29:33 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-26T22:30:50 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-26T23:08:40 < TitanMKD> Thorn the best is Bus Blaster v2.x 2012-03-26T23:08:55 < TitanMKD> Thorn it's FT2232H+CPLD and well supported 2012-03-26T23:20:01 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-26T23:28:29 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-26T23:30:17 < Thorn> it needs to have the cpld reflashed to e.g. switch from jtag to swd? 2012-03-26T23:31:10 < TitanMKD> never tested SWD 2012-03-26T23:37:35 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-26T23:50:07 -!- philpem__ [~philpem@188-222-201-97.zone13.bethere.co.uk] has joined ##stm32 2012-03-26T23:51:37 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 252 seconds] --- Day changed Tue Mar 27 2012 2012-03-27T00:03:40 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-03-27T00:10:46 -!- philpem__ [~philpem@188-222-201-97.zone13.bethere.co.uk] has quit [Changing host] 2012-03-27T00:10:46 -!- philpem__ [~philpem@discferret/team-lead] has joined ##stm32 2012-03-27T00:17:22 -!- philpem__ [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-27T00:19:21 -!- philpem__ [~philpem@188-222-201-97.zone13.bethere.co.uk] has joined ##stm32 2012-03-27T00:23:19 -!- philpem__ [~philpem@188-222-201-97.zone13.bethere.co.uk] has quit [Client Quit] 2012-03-27T00:36:38 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-03-27T00:40:45 < TitanMKD> bye 2012-03-27T00:40:51 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-03-27T01:17:10 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 260 seconds] 2012-03-27T01:30:59 -!- Laurenceb_ [~Laurence@host86-173-192-6.range86-173.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-03-27T02:02:53 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-03-27T02:04:14 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 246 seconds] 2012-03-27T02:05:31 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-27T02:27:05 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: /o\] 2012-03-27T03:07:25 -!- mrcan_ [~mrcan@88.245.72.254] has joined ##stm32 2012-03-27T03:07:25 -!- mrcan_ [~mrcan@88.245.72.254] has quit [Changing host] 2012-03-27T03:07:26 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-27T03:07:28 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Read error: Connection reset by peer] 2012-03-27T03:08:03 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has quit [Read error: Connection reset by peer] 2012-03-27T03:09:33 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-27T03:26:36 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-27T03:32:15 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-27T03:35:15 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 246 seconds] 2012-03-27T04:12:53 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 248 seconds] 2012-03-27T04:16:54 < dongs> um, I can configure systick prescaler right? to make it run realslow? 2012-03-27T04:16:59 < dongs> (on f1) 2012-03-27T04:38:11 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-27T04:41:24 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-27T05:00:39 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-27T05:02:23 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 246 seconds] 2012-03-27T05:10:24 -!- Guest38902 [~izua@79.115.170.121] has quit [Read error: Connection reset by peer] 2012-03-27T05:30:53 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-27T06:15:59 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-27T07:19:25 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 246 seconds] 2012-03-27T07:37:26 < dongs> anyone? 2012-03-27T07:54:54 -!- Evie [~null@205.233.35.25] has joined ##stm32 2012-03-27T07:57:46 -!- dekar [~dekar@dslb-084-059-147-249.pools.arcor-ip.net] has joined ##stm32 2012-03-27T07:57:56 -!- mode/##stm32 [+v dekar] by ChanServ 2012-03-27T08:14:14 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-27T08:40:09 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-27T09:41:22 < zyp> dongs, so what's real slow? 2012-03-27T09:53:44 <+jpa-> hmm i don't think there is a systick prescaler? 2012-03-27T10:11:20 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: ureif] 2012-03-27T10:28:22 -!- dekar [~dekar@dslb-084-059-147-249.pools.arcor-ip.net] has quit [Ping timeout: 245 seconds] 2012-03-27T10:39:12 < zyp> no, doesn't look that way 2012-03-27T10:47:40 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-27T10:59:47 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-27T11:02:53 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 246 seconds] 2012-03-27T11:02:59 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-27T11:14:05 < justitguy_> Hi dongs, the SYSTICK does not have a prescale register, you could use a timer, or in software, program a divider/counter and call your "slow" function based on that. 2012-03-27T11:47:07 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Ping timeout: 245 seconds] 2012-03-27T11:55:38 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32 2012-03-27T12:11:45 < dongs> yeah 2012-03-27T12:11:49 < dongs> thats still lame. 2012-03-27T12:12:06 < dongs> the other way wastes a timer. i'll just continue my systick + cycle counter stuff then 2012-03-27T12:12:09 < dongs> if it aint broke, dont fix it. 2012-03-27T12:12:16 < dongs> that doesnt waste any timers. 2012-03-27T12:15:19 < zyp> so you want to make a systick with a several second interval? 2012-03-27T12:15:41 < Randomskk> window watchdog would be one hacky option :P 2012-03-27T12:28:56 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-27T12:50:10 -!- izua [~izua@79.115.170.121] has joined ##stm32 2012-03-27T12:50:35 -!- izua is now known as Guest99215 2012-03-27T13:30:11 <+jpa-> dongs: IMO wasting the systick is worse than wasting a timer :P 2012-03-27T13:37:34 < dongs> jpa-: how so. 2012-03-27T13:38:00 < dongs> define "wasting", its only used for time keeping now 2012-03-27T13:39:12 <+jpa-> well if you want to run an RTOS in the future, it'll want to use systick for itself 2012-03-27T14:06:31 < Laurenceb> you can prescale systick by 8 2012-03-27T14:08:42 < zyp> on full speed on F4 that will still give you a max period of less than one second 2012-03-27T14:16:14 -!- Guest99215 [~izua@79.115.170.121] has quit [Read error: Connection reset by peer] 2012-03-27T14:21:59 -!- dekar [~dekar@dslb-084-059-147-249.pools.arcor-ip.net] has joined ##stm32 2012-03-27T14:22:02 -!- mode/##stm32 [+v dekar] by ChanServ 2012-03-27T14:38:33 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Remote host closed the connection] 2012-03-27T14:51:07 < jaeckel> can someone of you recommend a tool to draw block diagrams like that one http://i.imgur.com/KOdNI.png ? 2012-03-27T14:51:45 <+dekar> for which OS? 2012-03-27T14:52:10 <+dekar> I would suggest DIA or KiCAD 2012-03-27T14:56:45 <+dekar> jaeckel, I have done things like that with DIA: http://dl.dropbox.com/u/28467113/dia.png 2012-03-27T14:57:08 <+dekar> it is pretty generic for any kind of diagrams 2012-03-27T14:57:39 <+dekar> but it doesn't contain any logic for EE, so it won't "understand" what you're doing or what a pin is 2012-03-27T14:59:30 < jaeckel> ok, cool 2012-03-27T14:59:38 < jaeckel> no, it doesn't requie any logic 2012-03-27T14:59:42 < jaeckel> require 2012-03-27T15:02:02 <+dekar> jaeckel, also check the DIA library for additional shapes: http://dia-installer.de/shapes/index.html.en 2012-03-27T15:08:55 < jaeckel> ok, thanks 2012-03-27T15:09:05 < jaeckel> having a look 2012-03-27T15:12:15 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 265 seconds] 2012-03-27T15:12:52 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has quit [Ping timeout: 244 seconds] 2012-03-27T15:14:29 < jaeckel> hmm 2012-03-27T15:15:05 < jaeckel> dia is also missing the feature I don't have in the other tools I have 2012-03-27T15:15:40 < jaeckel> to be able to add the "buswidth" to an arrow 2012-03-27T15:15:49 < jaeckel> --\--> 2012-03-27T15:16:37 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-27T15:30:15 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-27T16:10:21 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-27T16:30:07 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-27T16:38:48 <+dekar> well just define a new DIA shape for that 2012-03-27T17:04:26 -!- dekar [~dekar@dslb-084-059-147-249.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep] 2012-03-27T17:07:17 -!- dekar [~dekar@dslb-084-059-147-249.pools.arcor-ip.net] has joined ##stm32 2012-03-27T17:07:21 -!- mode/##stm32 [+v dekar] by ChanServ 2012-03-27T17:09:27 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-27T17:09:48 -!- dekar [~dekar@dslb-084-059-147-249.pools.arcor-ip.net] has quit [Client Quit] 2012-03-27T17:10:11 -!- dongs [1000@l212168.ppp.asahi-net.or.jp] has quit [Ping timeout: 265 seconds] 2012-03-27T17:10:43 -!- dongs [1000@l212168.ppp.asahi-net.or.jp] has joined ##stm32 2012-03-27T17:49:05 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-27T17:58:44 < justitguy_> dongs, before receipt of the copter blanks I have been buying parts. Find the MPU-3050 is not in standard distributers list, so in looking further, I went to manufacturer's site. Yes, I can buy direct. However, curious why you did not use the MPU-6050 as it incorporates accelerometer? 2012-03-27T17:59:46 < dongs> they're pin compatible. 2012-03-27T18:00:13 < dongs> and my code supports both. 2012-03-27T18:02:28 < dongs> i've made some boards with just mpu6k on it and it works. 2012-03-27T18:02:59 < zyp> according to Laurenceb the accelerometer in mpu6k is pretty shitty 2012-03-27T18:03:16 < dongs> shrug 2012-03-27T18:03:20 < dongs> that's why i got awesome adxl345 there too. 2012-03-27T18:03:33 < zyp> but that's what Laurenceb says about anything, so I don't know 2012-03-27T18:03:38 < dongs> right 2012-03-27T18:03:45 < dongs> like that new bosch acc/mag i just linked 2012-03-27T18:03:49 < dongs> "oh looks intersting" 2012-03-27T18:03:50 < dongs> "but its shit" 2012-03-27T18:03:54 < zyp> :p 2012-03-27T18:06:48 < justitguy_> Yea, well I ordered some of each. Will let you know. 2012-03-27T18:11:16 < zyp> reminds me that I have to get this lsm stuff tested 2012-03-27T18:12:27 < justitguy_> dongs, I have used SYNAPSE 2.4G 802.15 (zigbee "like") modules with very impressive range > 500m. I am really thinking of using an mpu6k device in a "glove" for the control system input. What a cool way to control tilt, roll and yaw with accel to handle rate of change. Like the "reposition mouse problem" you might close the fist to indicate "no input" and open hand to indicate "input valid". 2012-03-27T18:13:48 < justitguy_> I could use one synapse for transmitter other for receiver. No need to use RC transmitter/receiver and then decode individual channels in the STM32. 2012-03-27T18:14:25 * jpa- steals justitguy_'s drone 2012-03-27T18:15:30 < justitguy_> Look at the link: http://www.synapse-wireless.com/?mainID=3&subID=5&type=product&prodID=5 2012-03-27T18:15:54 < justitguy_> I have built some really interesting devices with these modules and they are not expensive. 2012-03-27T18:18:24 < zyp> it's not really as cool as it sounds 2012-03-27T18:19:38 < justitguy_> jpa, you are welcome to "steal" the idea. The DSO you already have might also be another interesting controller. 2012-03-27T18:20:17 < zyp> justitguy_, http://bin.jvnv.net/f/mdVxb.JPG <- I built this thing last year which will basically allow you to do what you're talking about 2012-03-27T18:20:29 < zyp> except the range 2012-03-27T18:20:34 <+jpa-> justitguy_: no i don't have time to implement the idea, i just steal your device 2012-03-27T18:22:35 < justitguy_> zyp, what is it? Looks like a board with SD card USB i'face etc. No wireless communications, do you fly it by loading it in your potato gun? LOL 2012-03-27T18:22:51 < zyp> huh? 2012-03-27T18:22:59 < dongs> i dont think that one is flying. 2012-03-27T18:23:03 < zyp> can't you see the antenna? 2012-03-27T18:23:17 < dongs> pro/ee pcb antenna hax 2012-03-27T18:23:32 < justitguy_> Ah, pc antenna, what freq / protocol? 2012-03-27T18:23:34 < dongs> zyp: didnt you basically short the shit to gnd by using that loop 2012-03-27T18:23:49 < dongs> TWICE even. 2012-03-27T18:24:02 < zyp> sure 2012-03-27T18:24:03 < dongs> like "one short isnt enough, im gonna short it TWICE. 2012-03-27T18:24:07 < zyp> it's supposed to be like that 2012-03-27T18:24:15 <+jpa-> dongs: RF is fun thing :) 2012-03-27T18:24:33 <+jpa-> dongs: you can short something in one end, and if the length is correct, it looks like an open wire in the other end 2012-03-27T18:24:36 < dongs> zyp: i took apart a frsky micro receiver, its single chip heh CC2510F16 2012-03-27T18:24:39 < zyp> justitguy_, it's a 2.4GHz antenna, connected to a nRF24AP2 2012-03-27T18:24:45 < dongs> apparently a CC2500 rf core + 8051 + usb + ??? 2012-03-27T18:25:58 < dongs> some of their rx use stm8, some stm32... 2012-03-27T18:26:04 < dongs> some even msp430 2012-03-27T18:26:17 < justitguy_> The radiation is planar with that type of design. I don't think it would be stable in flight (except perhaps level). If you roll or pitch the platform you run a serious risk of loosing connectivity. 2012-03-27T18:26:54 < justitguy_> zyp, have accel and gyro on this? 2012-03-27T18:26:59 < zyp> yes 2012-03-27T18:27:08 < dongs> i see adxl345 in corner 2012-03-27T18:27:09 < zyp> and the unpopulated pads are for magnetometer 2012-03-27T18:27:12 < zyp> dongs, yes 2012-03-27T18:27:23 < dongs> 5843? 2012-03-27T18:27:38 < zyp> yep, didn't get hold of enough to populate all boards 2012-03-27T18:27:43 < dongs> right. 2012-03-27T18:28:01 < dongs> shit was expensive as hell then honeywell fucked themselves by releaseinf 5883 for <$2/ea 2012-03-27T18:28:23 < dongs> so nobody would buy 5843 anymore. 2012-03-27T18:29:15 < justitguy_> Ah, might be a start. What is that on the underside? Battery? 2012-03-27T18:29:25 < zyp> justitguy_, yep 2012-03-27T18:30:18 < zyp> dongs, when we checked we found that 5843 were EOL and 5883 didn't seem to be available until after we needed it, so we still designed the board for 5843 and got some rest stock from somewhere 2012-03-27T18:30:57 < dongs> yeah 2012-03-27T18:31:10 -!- izua [~izua@79.115.170.121] has joined ##stm32 2012-03-27T18:31:10 < justitguy_> The basic design is a start. Don't need/want SD and USB. Would replace with connectors to servos/motors. 2012-03-27T18:31:35 < dongs> you dont want that design anyway. its using tarduino 2012-03-27T18:31:36 -!- izua is now known as Guest19696 2012-03-27T18:31:48 < zyp> justitguy_, then you end up with something like what I'm currently working on 2012-03-27T18:31:58 < zyp> http://bin.jvnv.net/f/sTW8U.JPG 2012-03-27T18:32:38 < zyp> there you have your connectors and socket for long range zigbee module 2012-03-27T18:32:48 < justitguy_> zyp, you know that nothing new is ever invented today. Just as the patent office director said around 1900, "no need for this office anymore, everything has already been invented". 2012-03-27T18:32:49 < justitguy_> LOL 2012-03-27T18:33:02 < zyp> sure 2012-03-27T18:33:13 < zyp> dongs is already selling shit similar to what I'm making 2012-03-27T18:33:28 < justitguy_> I know about dongs project. 2012-03-27T18:33:31 < dongs> zyp: he already has a panel of 6blank pcbs of that shit on the way to him. 2012-03-27T18:33:43 < dongs> good luck soldering it. 2012-03-27T18:33:47 < zyp> :) 2012-03-27T18:33:53 < dongs> zyp: i dont see your rework 2012-03-27T18:33:58 < dongs> i thought you said you misconnected somethign 2012-03-27T18:34:03 < dongs> ad0 or osmeshit 2012-03-27T18:34:08 < zyp> yep 2012-03-27T18:34:27 < justitguy_> Not a problem. I have girls in the shop who could solder spider webs and pass inspection. 2012-03-27T18:34:56 < zyp> dongs, it's on the chip right of the gps, on the other side 2012-03-27T18:35:18 < dongs> the brighter blob next to 3 vias? 2012-03-27T18:35:52 < zyp> wrong side 2012-03-27T18:36:07 < zyp> it's on the side facing the caps, so you won't see it 2012-03-27T18:36:13 < dongs> oh ok. 2012-03-27T18:36:27 < zyp> and I think I took the photo before i reworked it 2012-03-27T18:37:50 < dongs> did you connect SWO to your stuff? 2012-03-27T18:37:56 < zyp> yep 2012-03-27T18:38:09 < dongs> i didn't, and kinda bummed 2012-03-27T18:38:17 < dongs> apparently cant use logicc analyzer shit in keil without it. 2012-03-27T18:38:36 < dongs> even though it can inspect vars/memory while shit is running. dunno why it would need swo/trace to do same thing graphically. 2012-03-27T18:38:57 < dongs> stm studio can display graphs of running vars but only via stlink. 2012-03-27T18:38:59 < dongs> annoying. 2012-03-27T18:39:33 < zyp> that's why I said I'll first reserve all jtags pins and rather reclaim them later if needed 2012-03-27T18:40:00 < zyp> they weren't, so now I can use both jtag and swd+swo 2012-03-27T18:40:00 < justitguy_> dongs, I use Truestudio. Atollic's project management sucks but the debugger is handy. 2012-03-27T18:40:19 < dongs> ewwclipse. 2012-03-27T18:40:45 < dongs> the ide might be nice but knowing it runs gdb.exe to do all the dirty work is just ... ew 2012-03-27T18:41:02 < BrainDamage> why? gdb works 2012-03-27T18:41:04 < justitguy_> dongs, I am a linux guy, eclipse is fine on that platform. 2012-03-27T18:41:06 < dongs> does it? 2012-03-27T18:41:21 < BrainDamage> yes it does, it just has a very unfriendly interface 2012-03-27T18:41:25 < dongs> i think im goin to sleep, this conversation can't improve at this point. 2012-03-27T18:41:34 < zyp> I think it's the other way around, gdb is nice but eclipse is shit. 2012-03-27T18:41:36 < BrainDamage> I don't like eclipse 2012-03-27T18:41:37 <+jpa-> gdb has a most friendly interface 2012-03-27T18:41:43 < justitguy_> good night dongs. Looking forward to the panel. 2012-03-27T18:41:57 < justitguy_> Thanx again. 2012-03-27T18:42:00 < zyp> and this is pretty worthless discussing 2012-03-27T18:42:01 < dongs> <+jpa-> gdb has a most friendly interface out of all lunix apps 2012-03-27T18:42:03 < dongs> fix'd it for you 2012-03-27T18:42:39 <+jpa-> dongs: compare it to windbg (sorry i haven't used any embedded debuggers worth their name) 2012-03-27T18:43:19 < BrainDamage> windbg as in the python debugger? 2012-03-27T18:43:29 <+jpa-> BrainDamage: windbg as in the windows debugger 2012-03-27T18:43:41 < dongs> haha, python " debugger " 2012-03-27T18:43:45 <+jpa-> the one you need to use when visual studio is not enough :) 2012-03-27T18:43:53 < dongs> ok really gone now before I feel like stabbing people over the internet 2012-03-27T18:44:10 < BrainDamage> ah, the python one was winpdb 2012-03-27T18:44:24 < justitguy_> Hahaha, o yea su me. 2012-03-27T18:44:32 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-27T18:44:46 < zyp> I got a lauterbach jtag thing (for trace32) sitting around on my desk at work, but I haven't had a reason to try it out yet 2012-03-27T18:45:37 < zyp> it's supposedly some really expensive stuff, so I wonder how it compares to other stuff I've been using 2012-03-27T18:47:50 < zyp> I mean, you know it's expensive when the cable between the debugger and the target needs it's own license in addition to the license on the debugger 2012-03-27T18:58:05 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-27T18:58:09 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-27T19:49:47 -!- preludelinux_lap [~preludeli@50-82-50-145.client.mchsi.com] has joined ##stm32 2012-03-27T20:01:44 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-27T20:37:15 -!- Guest19696 [~izua@79.115.170.121] has quit [Read error: Connection reset by peer] 2012-03-27T21:08:37 -!- elektrinis [~circuit@82-135-241-134.static.zebra.lt] has quit [Quit: pokðt] 2012-03-27T21:36:33 -!- Laurenceb_ [~Laurence@host86-180-138-68.range86-180.btcentralplus.com] has joined ##stm32 2012-03-27T21:53:57 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-27T22:52:32 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-27T23:18:34 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-03-27T23:19:53 < TitanMKD> hi --- Day changed Wed Mar 28 2012 2012-03-28T00:11:29 -!- mrcan_ is now known as mrcan 2012-03-28T00:12:34 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving] 2012-03-28T00:16:16 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-28T00:16:19 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-28T00:40:36 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Remote host closed the connection] 2012-03-28T00:41:12 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-28T00:41:13 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-28T00:54:51 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Remote host closed the connection] 2012-03-28T01:02:33 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-28T01:02:35 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-28T01:17:32 -!- _abc_ [~user@unaffiliated/ccbbaa] has joined ##stm32 2012-03-28T01:17:43 < _abc_> heh jpa- small world 2012-03-28T01:17:58 <+Steffanx> You wish 2012-03-28T01:18:26 <+Steffanx> I can't even get to work in two steps 2012-03-28T01:18:28 < _abc_> Hello, I am new here. I acquired a stm32vl discovery kit, and I am stumped as to the official toolchains. I am in the process of installing the gnu toolchain, but, is there really no point and click toolchain for windows? 2012-03-28T01:18:36 <+Steffanx> So … big world 2012-03-28T01:18:53 < _abc_> :) 2012-03-28T01:19:27 <+Steffanx> There is.. 2012-03-28T01:20:43 <+Steffanx> http://www.yagarto.de/#download or isn't that point and clickish enough? 2012-03-28T01:21:40 < _abc_> lol Steffanx ++ 2012-03-28T01:21:58 <+Steffanx> There are more, but i can't remember the name 2012-03-28T01:22:12 <+Steffanx> s 2012-03-28T01:22:47 < _abc_> I saw the others, scary install stuff... 2012-03-28T01:23:02 <+Steffanx> Windows = scary :P 2012-03-28T01:23:13 < _abc_> Anyway does the yagarto based project also have a built in debugger? I mean a simulator debugger (software only simulation) ? 2012-03-28T01:23:30 <+Steffanx> No 2012-03-28T01:24:51 < TitanMKD> bye 2012-03-28T01:25:02 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-03-28T01:34:55 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 264 seconds] 2012-03-28T02:04:46 -!- Laurenceb_ [~Laurence@host86-180-138-68.range86-180.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-03-28T02:04:46 -!- philpem [~philpem@discferret/team-lead] has quit [Read error: Connection reset by peer] 2012-03-28T02:05:10 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-28T03:35:43 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-28T03:59:56 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-28T04:02:21 -!- _abc_ [~user@unaffiliated/ccbbaa] has quit [Read error: Operation timed out] 2012-03-28T04:27:08 -!- izua [~izua@79.115.170.121] has joined ##stm32 2012-03-28T04:27:30 -!- peabody124 [~peabody12@128.249.96.21] has quit [Read error: Operation timed out] 2012-03-28T04:27:34 -!- izua is now known as Guest35030 2012-03-28T04:35:14 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: ureif] 2012-03-28T04:40:26 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-28T04:53:31 -!- atom1 [~tom@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-28T04:53:53 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 246 seconds] 2012-03-28T05:01:48 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Read error: Connection reset by peer] 2012-03-28T05:03:03 -!- Guest35030 [~izua@79.115.170.121] has quit [Read error: Connection reset by peer] 2012-03-28T05:34:03 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-28T05:54:04 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-28T05:54:14 -!- atom1 [~tom@ip70-179-150-84.fv.ks.cox.net] has quit [Quit: Leaving] 2012-03-28T05:54:36 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-28T06:31:18 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-28T06:32:35 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-28T07:32:49 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-28T07:34:03 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-28T08:11:02 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Remote host closed the connection] 2012-03-28T08:14:47 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 246 seconds] 2012-03-28T08:20:59 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-28T09:36:03 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: ureif] 2012-03-28T10:03:00 -!- zippe1 [~Adium@173.11.99.161] has joined ##stm32 2012-03-28T10:03:18 -!- zippe [~Adium@173.11.99.161] has quit [Read error: Connection reset by peer] 2012-03-28T10:12:36 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-28T11:13:49 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 246 seconds] 2012-03-28T11:26:46 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-28T12:34:49 -!- Laurenceb_ [~Laurence@host86-180-138-68.range86-180.btcentralplus.com] has joined ##stm32 2012-03-28T12:52:31 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 252 seconds] 2012-03-28T13:01:05 -!- Laurenceb_ [~Laurence@host86-180-138-68.range86-180.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-03-28T13:58:02 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-28T14:03:47 < Tectu> does anyone here know the free linux IDE 'Geany'? 2012-03-28T14:11:54 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-28T15:22:35 < dongs> only free if your time is worthless. 2012-03-28T15:26:38 < jaeckel> looks sweet 2012-03-28T15:30:30 < dongs> Geany is a text editor using the GTK2 toolkit with basic features of an integrated development environment. 2012-03-28T15:30:32 < zyp> I know a coworker is using that, but I haven't tried it myself 2012-03-28T15:30:33 < dongs> ha ha. 2012-03-28T15:30:38 < dongs> lemme kno when you can step throug hsome arm code with that. 2012-03-28T15:48:52 < Thorn> I'm looking at leaflabs oak, they did a 8-layer board with 4 signal layers and 4 planes (3 grounds), I wonder why they're doing that, is it much better than 6 layers (1 ground)? 2012-03-28T15:49:36 < Thorn> it's a spartan-3/stm32f1/sram board, so signals >50...100Mhz are unlikely 2012-03-28T15:53:46 < zyp> which layers are the planes on? 2012-03-28T15:55:20 < dongs> what a waste. 2012-03-28T15:55:25 -!- izua [~izua@79.115.170.121] has joined ##stm32 2012-03-28T15:55:45 < Thorn> looks like signal, plane, plane, signal, signal, plane, plane, signal 2012-03-28T15:55:51 -!- izua is now known as Guest80052 2012-03-28T15:57:02 < Thorn> wouldn't you alternate planes and signal layers in that case for shielding? 2012-03-28T16:34:01 < ziph> Thorn: Putting the planes together gives you interplane capacitance on the supplies. 2012-03-28T16:34:31 < ziph> Thorn: And in that particular stack up you try to put high speed signals on the inner layers. 2012-03-28T16:35:23 < Thorn> why inner? they have no plane between them 2012-03-28T16:35:59 < ziph> To minimise radiation. 2012-03-28T16:38:42 < Thorn> I see 2012-03-28T16:39:18 < Thorn> but they used inner layers to break out to pin headers 2012-03-28T16:39:43 < Thorn> SRAM and mcu/fpga connections are mostly on outer layers 2012-03-28T16:43:27 < Thorn> btw, no bga there, only qfp 2012-03-28T16:44:51 < ziph> They probably did it to get the two supply layers for the Spartan with distributed capacitance. 2012-03-28T16:45:23 < ziph> (The core voltage plus the IO) 2012-03-28T16:48:29 < Thorn> I wonder how essential that would be, e.g. OLS with a similar fpga uses a 2 layer pcb 2012-03-28T16:49:01 < Thorn> maybe that's because OLS developers knew that their fpga power consumption is going to be low? 2012-03-28T17:07:47 -!- Guest80052 [~izua@79.115.170.121] has quit [Read error: Connection reset by peer] 2012-03-28T17:21:07 < ziph> Thorn: Two layers for an FPGA is silly. 2012-03-28T17:25:02 < dongs> one layer should be enough for everybody 2012-03-28T17:25:11 < dongs> what is all this multilayer nonsense 2012-03-28T17:39:25 -!- dekar [~dekar@dslb-084-059-147-249.pools.arcor-ip.net] has joined ##stm32 2012-03-28T17:39:29 -!- mode/##stm32 [+v dekar] by ChanServ 2012-03-28T17:42:25 <+dekar> 8bit AVR emulating an ARM and booting linux: http://vimeo.com/39286771 2012-03-28T17:42:44 <+dekar> takes several hours ;) 2012-03-28T17:42:59 <+dekar> I still wonder how it works, I though AVRs couldn't execute from ram O.o 2012-03-28T17:43:33 <+dekar> oh well I guess it just interprets ARM opcodes anyway 2012-03-28T17:44:22 < dongs> your time would have been better spent emulating AVR on ARM. 2012-03-28T17:45:57 <+dekar> it must waste so many cycles just to do 32bit math -.-" 2012-03-28T17:46:20 <+dekar> and he didn't even use ?CLinux, thus it even emulates an MMU 2012-03-28T17:47:12 <+jpa-> that is actually a quite neat hack 2012-03-28T17:47:30 <+jpa-> not very useful but very interesting and fun 2012-03-28T17:47:47 < Thorn> he filmed the complete linux boot? 2012-03-28T17:48:16 <+dekar> yeah takes ages 2012-03-28T17:48:27 <+jpa-> "The effective emulated CPU speed is about 6.5KHz" lovely :) 2012-03-28T17:51:22 < Thorn> he should have done a cortex-m compatible fpga core instead 2012-03-28T17:52:04 <+jpa-> wouldn't have been as cool :) 2012-03-28T17:52:10 <+dekar> agree 2012-03-28T17:53:02 <+jpa-> only 10ksloc, quite nice 2012-03-28T17:54:29 <+dekar> meh, he pretends to have proven linux is able to run on a less than 32bit architecture without MMU, but actually the only thing he did prove was turing completeness IMO 2012-03-28T17:54:52 <+dekar> it still runs on an ARM, just a virtual one 2012-03-28T17:56:56 <+jpa-> well, as far as turing completeness goes, spending some time it would be possible to compile all that stuff inside linux kernel and get rid of most of the intermediate layer 2012-03-28T17:57:09 <+jpa-> of course because AVR can't execute from ram it would still have to be interpreted 2012-03-28T17:57:46 <+dekar> AVR sounds weird 2012-03-28T17:57:56 <+dekar> I don't get why they did that 2012-03-28T17:58:12 <+jpa-> did what? 2012-03-28T17:58:31 <+dekar> the program counter can't address ram thing 2012-03-28T17:58:39 <+jpa-> simpler hardware 2012-03-28T17:58:58 <+dekar> but even for the AVR32? or doesn't that one have the limitation? 2012-03-28T17:59:34 <+dekar> AVR8 kinda makes sense, you can't address much memory using 8 bits anyway :/ 2012-03-28T18:00:40 <+jpa-> it seems that AVR32 can execute from ram 2012-03-28T18:01:53 <+dekar> ah okay, never had one so I didn't know that 2012-03-28T18:02:12 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-28T18:02:14 <+dekar> well I actually have two of them lying around I think? haven't used them though :P 2012-03-28T18:02:56 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Client Quit] 2012-03-28T18:02:58 <+jpa-> yeah.. i don't know much about them either but google suggested that 2012-03-28T18:03:05 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-28T18:03:20 <+jpa-> all these pic32 and avr32 architectures seem a bit dull.. just go with cortex-m3 already ,) 2012-03-28T18:03:52 < dongs> agreed. nobody serious uses that stuff anyway so it doesnt matter 2012-03-28T18:04:05 <+dekar> pic32 is widely used, isn't it? 2012-03-28T18:04:17 < dongs> it is? 2012-03-28T18:05:01 <+dekar> I often hear people mentioning it, the EE guy at our company for example mentioned using PICs for several products 2012-03-28T18:05:30 <+dekar> I have never touched them, but I felt like they were huge 2012-03-28T18:06:22 <+jpa-> not so widely AFAIK 2012-03-28T18:06:33 <+jpa-> PICs are common, but PIC32 not so much 2012-03-28T18:06:49 < dongs> what's everyone's favorite SOT23 top/bottom pads spacing? 2mm or 2.2mm? 2012-03-28T18:06:52 < ureif> PICs are common for historical reasons. 2012-03-28T18:07:01 < ureif> There's no reason to use a PIC for a new design. 2012-03-28T18:07:09 < dongs> or avr 2012-03-28T18:07:09 <+jpa-> PICs aren't that bad, even though AVR is better 2012-03-28T18:07:19 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 264 seconds] 2012-03-28T18:07:28 <+jpa-> and with prices like this, either is a bit obsolete for hobbyist use 2012-03-28T18:07:36 < dongs> even if you dont *need* 32bit there are better 8bit processors with better peripherals. 2012-03-28T18:07:39 < dongs> like stm8. 2012-03-28T18:07:48 <+jpa-> software support matters also 2012-03-28T18:07:51 <+dekar> what architecture is stm8? 2012-03-28T18:07:52 <+jpa-> avr-libc is excellent 2012-03-28T18:08:11 < dongs> dekar: some obscure ST shit. harvard arch, 3 registers, etc. 2012-03-28T18:08:18 <+dekar> neat :/ 2012-03-28T18:08:36 < dongs> cisc, 16bit memory addressing... i think registers are 16bit too. 2012-03-28T18:08:44 < dongs> but it has almost same peripherals as stm32 2012-03-28T18:08:49 < dongs> stm8l has DMA, too. 2012-03-28T18:09:01 <+dekar> no GCC I assume? 2012-03-28T18:09:14 <+jpa-> 8051 is also still going strong :) 2012-03-28T18:09:23 < dongs> doubt it. i use some freeware french compiler that expires every year and i need to re-beg a license. 2012-03-28T18:09:25 <+dekar> I'll stick with architectures I can compile my own toolchain for 2012-03-28T18:10:20 <+dekar> using the linaro gcc 4.6 with newlib1.20 atm :) 2012-03-28T18:11:29 <+dekar> when I started using malloc I couldn't stand the codesourcery toolchain anymore, it has far too big memory pages 2012-03-28T18:11:31 < Thorn> what os? 2012-03-28T18:11:36 <+dekar> OSX 2012-03-28T18:11:40 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-28T18:12:33 < Thorn> last time I tried linaro toolchain I was unable to compile it on windows 2012-03-28T18:13:06 <+jpa-> dekar: newlib has that malloc() stupidity 2012-03-28T18:13:41 <+jpa-> no point doing "memory pages" on an architecture without MMU 2012-03-28T18:14:12 <+dekar> it's fast, scales in O(1) 2012-03-28T18:14:52 <+jpa-> dekar: how is it faster than just marking the whole heap space for malloc() at boot? 2012-03-28T18:15:00 <+dekar> well keeping track of the biggest chunk is probably slower than O(1) 2012-03-28T18:15:24 <+dekar> jpa-, oh you mean sbrk, yeah that's useless 2012-03-28T18:15:28 <+jpa-> yeah 2012-03-28T18:15:54 <+jpa-> malloc is slow anyway.. memory pools are the way to go for fast allocations 2012-03-28T18:16:15 <+jpa-> for other stuff i use a modded klibc's malloc which doesn't need any sbrk 2012-03-28T18:16:27 <+dekar> I wouldn't use it for my code anyway, but I started porting some libs 2012-03-28T18:17:33 <+dekar> Thorn, how do you do that on windows? in cygwin? 2012-03-28T18:17:42 < Thorn> yes 2012-03-28T18:17:42 <+dekar> I have never used GCC on windows 2012-03-28T18:17:58 <+dekar> you can try my shell script if you want 2012-03-28T18:18:38 < Thorn> would be nice, at least it should work on linux 2012-03-28T18:20:17 <+dekar> http://dl.dropbox.com/u/28467113/toolchain.sh 2012-03-28T18:21:28 <+dekar> get rid of the OSX stuff then, I had to define CC to prevent it from using llvm-gcc which OSX normally uses 2012-03-28T18:21:33 < Thorn> okay, thanks 2012-03-28T18:21:58 <+dekar> as well as the darwin stuff which is for macports 2012-03-28T18:22:26 < Thorn> they use llvm by default now? interesting 2012-03-28T18:22:44 <+dekar> yeah but llvm-gcc, not llvm-clang I think 2012-03-28T18:22:57 <+dekar> I had weird errors, made me recompile my toolchain like 3 times -.-" 2012-03-28T18:23:12 <+dekar> GCC did compile, but got me segfaults and the like 2012-03-28T18:24:42 <+dekar> the script expects binutils in the folder "binutils-2.22", gcc in "gcc-linaro-4.6-2012.02" and so on - you gotta read the script 2012-03-28T18:24:57 <+dekar> it really isn't pretty ;) 2012-03-28T18:26:52 < Thorn> should be much cleaner than the codesourcery build script lol 2012-03-28T18:27:54 <+dekar> totally, iirc theirs contained the home path of their build PC hardcoded -.-" 2012-03-28T18:28:20 <+dekar> I intended to blog mine some day, but I was too lazy to clean it up so far 2012-03-28T18:28:48 <+dekar> I guess I could upload it to github if you guys want to add to it as well 2012-03-28T18:29:20 < Thorn> that could be useful 2012-03-28T18:30:29 <+dekar> the resulting toolchain really is pretty nice, my firmware lost 2kb (had 12kb) when I switched from codesourcery 2012-03-28T18:30:50 < Thorn> hmmm 2012-03-28T18:34:06 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-28T18:35:13 <+dekar> so how do we name it? :) 2012-03-28T18:58:08 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Read error: Connection reset by peer] 2012-03-28T18:58:28 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-28T19:19:54 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-28T19:19:57 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-28T19:31:37 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Read error: Connection reset by peer] 2012-03-28T19:32:24 <+dekar> https://github.com/EliasOenal/TNT 2012-03-28T19:32:51 <+dekar> TNT for Thumb2 Newlib Toolchain :D 2012-03-28T19:32:58 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-28T19:33:01 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-28T19:33:17 <+dekar> Steffanx, you just missed my link 2012-03-28T19:33:20 <+dekar> https://github.com/EliasOenal/TNT 2012-03-28T19:33:42 <+dekar> my toolchain script, in case you wanna try it 2012-03-28T19:34:24 <+Steffanx> Not today .. have to figure out if my macbook is broken/buggy or the new screen i bought 2012-03-28T19:34:40 <+dekar> external display? 2012-03-28T19:34:45 <+Steffanx> Yes 2012-03-28T19:34:49 <+jpa-> Steffanx: your macbook finally figured out that you are not gay and therefore stopped working 2012-03-28T19:34:58 <+Steffanx> jpa- stfu :) 2012-03-28T19:35:09 <+dekar> he's just envious :P 2012-03-28T19:36:05 <+jpa-> Steffanx: pebkec 2012-03-28T19:36:40 <+dekar> I still like my 2010 macbook better than my 2011 lenovo which was broken for like 70% of the 6 months I had it 2012-03-28T19:37:04 <+dekar> and the premium upgrade IPS display had burn in 2012-03-28T19:37:11 <+dekar> so horrible 2012-03-28T19:37:15 -!- _abc_ [~user@unaffiliated/ccbbaa] has joined ##stm32 2012-03-28T19:38:15 <+Steffanx> Not really jpa- 2012-03-28T19:38:36 <+jpa-> Steffanx: always every time pebkec 2012-03-28T19:38:47 <+Steffanx> Not this time 2012-03-28T19:38:59 <+jpa-> yes 2012-03-28T19:39:08 <+jpa-> and do my homework also 2012-03-28T19:39:17 <+Steffanx> I didn't ask my macbook to black out the screen all the time 2012-03-28T19:39:38 <+Steffanx> + some distortion all the time (on different locations) 2012-03-28T19:39:59 <+dekar> at least it didn't come like that 2012-03-28T19:40:23 <+dekar> it is probably 4 years old and thus reached the end of life for apple products 2012-03-28T19:40:37 <+Steffanx> When I move a file to my desktop you see it on different locations .. aka videocard trouble? 2012-03-28T19:41:43 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 252 seconds] 2012-03-28T19:42:23 <+dekar> sounds like it 2012-03-28T19:42:43 <+dekar> same for the internal display? 2012-03-28T19:43:37 <+Steffanx> No 2012-03-28T19:44:11 < _abc_> erm has anyone here had trouble building openocd on Debian? 2012-03-28T19:44:21 < _abc_> I can't build it, using summon-arm-toolchain 2012-03-28T19:44:30 < _abc_> It balks on usb.h related problems 2012-03-28T19:44:35 <+dekar> I did successfully build it on debian about a year ago 2012-03-28T19:44:42 < _abc_> Who is screwing the linux kernel includes around all the time anyway? 2012-03-28T19:44:57 <+dekar> that was before 0.5.0 though 2012-03-28T19:44:58 < _abc_> I 've been compiling things since 1996 or so and it has never been this broken. 2012-03-28T19:46:50 <+dekar> I stay away from linux for now cause of those horrible power management regressions. On 2.6.37 I had like 6W idle consumption on my x220, with 3.1 it was like 20W. 2012-03-28T19:47:04 -!- jaeckel [~jaeckel@jaeckel.eu] has left ##stm32 [] 2012-03-28T19:47:33 <+dekar> still using debian in a VM once in a while, but I can do most things on OSX as well 2012-03-28T19:55:30 <+Steffanx> e 2012-03-28T19:57:00 <+dekar> f 2012-03-28T19:57:23 <+Steffanx> I can record the 'distortion' as well.. any ideas? 2012-03-28T19:57:27 <+Steffanx> (me is not into pc hw) 2012-03-28T19:58:19 <+dekar> record using software? 2012-03-28T19:58:29 <+Steffanx> Yes 2012-03-28T19:58:44 <+dekar> did you try closing the lid? (should disable the internal display) 2012-03-28T19:58:50 <+Steffanx> Yes 2012-03-28T19:58:55 <+dekar> same problem? 2012-03-28T19:58:59 <+Steffanx> Yes :( 2012-03-28T19:59:13 <+dekar> did you try a low resolution? 2012-03-28T19:59:34 <+Steffanx> Yes, that sort of seems to 'fix' it 2012-03-28T19:59:52 <+Steffanx> ok not really :P 2012-03-28T20:00:45 <+Steffanx> It looks similar to this: http://www.youtube.com/watch?v=OsvCV49d8b4 2012-03-28T20:01:19 <+dekar> I would guess GPU memory problems 2012-03-28T20:01:47 <+dekar> but really looks like a hardware issue 2012-03-28T20:02:01 <+dekar> did you close the lid while trying low resolution? 2012-03-28T20:02:50 <+Steffanx> both 2012-03-28T20:03:23 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-28T20:03:27 <+Steffanx> There's less distortion/artifacts when i lower the resolution though 2012-03-28T20:04:39 <+dekar> I would have assumed if you use the same resolution as the internal one and turn the internal one off, then it would use the same memory regions and thus don't show any problems 2012-03-28T20:04:49 <+dekar> but now I am out of ideas ;) 2012-03-28T20:08:59 <+dekar> does your macbook have dual GPU? 2012-03-28T20:09:15 <+dekar> like an intel as well as an ati one? 2012-03-28T20:09:26 <+Steffanx> Yes, intel and nvidia 2012-03-28T20:10:07 <+dekar> "Control Panel > Energy Saver > Graphics" and change it to performance 2012-03-28T20:10:51 <+dekar> maybe just one GPU is broken :P 2012-03-28T20:11:11 <+Steffanx> External displays only work with the 'high performance' one 2012-03-28T20:11:17 <+dekar> oh 2012-03-28T20:11:32 <+Steffanx> Intresting.. 2012-03-28T20:11:53 <+Steffanx> The external monitor was my main screen.. now i made the internal one my main screen again 2012-03-28T20:11:58 <+Steffanx> And it seems to be over 2012-03-28T20:12:09 <+Steffanx> the blacking out + distortion/artifacts 2012-03-28T20:12:13 <+dekar> O.o 2012-03-28T20:12:33 <+dekar> what if you change it back, do they return? 2012-03-28T20:13:04 <+Steffanx> I don't think the screen is the problem.. 2012-03-28T20:13:17 <+Steffanx> As I can record the problem(s) with software 2012-03-28T20:13:19 <+dekar> it surely isn't the screen 2012-03-28T20:13:21 <+Steffanx> So Apple .. 2012-03-28T20:13:22 <+dekar> yeah 2012-03-28T20:13:27 <+Steffanx> But it's from 2010 2012-03-28T20:13:46 <+dekar> hm so it should last 2 more years 2012-03-28T20:13:47 < _abc_> drivers occasionally have misunderstandings about GPIO bits and interrupt coda handling and such 2012-03-28T20:14:21 < _abc_> But it is possible that you have a hw problem, likely in the cable connecting the display to the board, or near it (it moves a lot) 2012-03-28T20:14:27 <+Steffanx> Apple isn't that good when it comes to warranty dekar ... 2012-03-28T20:15:00 <+Steffanx> http://support.apple.com/kb/TS4088?viewlocale=en_US .. there are some issues with this one, but doesn't look related 2012-03-28T20:15:13 <+dekar> those core duo macs were supported for 4 years, and those 2008 MacBooks will be dropped with mountain lion - so they drop your hardware after four years :P 2012-03-28T20:16:04 <+dekar> I have a mid2010 macbook as well, and mine works fine btw 2012-03-28T20:16:20 <+dekar> latest lion update 2012-03-28T20:16:29 <+Steffanx> It gets 100c when you use handbrake to convert videos as well? :P 2012-03-28T20:16:33 <+Steffanx> 100c == wtf 2012-03-28T20:16:39 <+Steffanx> the cpu 2012-03-28T20:16:41 <+dekar> all modern laptops do that 2012-03-28T20:16:48 <+dekar> my lenovo x220 as well 2012-03-28T20:16:55 <+Steffanx> Nah, even my last one didn't do that 2012-03-28T20:17:01 <+Steffanx> it was like ~70c 24/7 2012-03-28T20:17:03 < zyp> it's a laptop, it has limited cooling capabilities 2012-03-28T20:17:19 <+dekar> the higher the temp, the more efficient the cooling 2012-03-28T20:17:32 <+Steffanx> *previous 2012-03-28T20:17:40 <+Steffanx> lol dekar 2012-03-28T20:17:43 <+dekar> intel even suggests overclocking them till they reach 100?C 2012-03-28T20:17:47 <+Steffanx> limited as in unlimited zyp ? 2012-03-28T20:17:53 <+dekar> that's the turbo boost stuff 2012-03-28T20:18:17 < zyp> Steffanx, limited as in little room for heatsinks 2012-03-28T20:18:57 <+dekar> the macbook air does that all the time, it runs in turbo boost mode at like 3ghz till it reaches 100?C and then clocks down to 1,7ghz or something 2012-03-28T20:19:00 <+Steffanx> Anyway, having the dock + menu on my external monitor makes i buggy 2012-03-28T20:19:09 < zyp> so the thermal resistance is rather high, and thus will the difference in temperature between core and ambient be rather high at full power 2012-03-28T20:19:39 <+dekar> Steffanx, I usually close the lid and only use the external, didn't have any bugs about a week ago 2012-03-28T20:19:48 <+dekar> I guess yours has a hardware fault :/ 2012-03-28T20:20:03 < zyp> obviously a hardware fault 2012-03-28T20:21:01 <+dekar> since we got that sorted? try my toolchain :D 2012-03-28T20:21:33 <+Steffanx> No, I want to know what's wrong :p 2012-03-28T20:21:51 <+Steffanx> and why it only happens when the dock is on my external screen 2012-03-28T20:21:52 <+dekar> you don't do that for apple products, you buy a new one 2012-03-28T20:22:23 <+Steffanx> No way 2012-03-28T20:22:31 <+dekar> I read they charge you 600? for display replacement 2012-03-28T20:22:34 <+Steffanx> Only people who get one from their boss do that 2012-03-28T20:22:35 <+dekar> -.-" 2012-03-28T20:26:49 <+Steffanx> :P 2012-03-28T20:27:00 <+dekar> Steffanx, the case for the PCB I showed off before: http://dl.dropbox.com/u/28467113/free_flexBox_V2_transceiver-programmer_sfp-xfp.jpg 2012-03-28T20:27:18 <+Steffanx> I see a mac mini clone :p 2012-03-28T20:27:22 <+Steffanx> or apple tv :p 2012-03-28T20:27:24 <+dekar> I don't like the black too much, but the aluminum is cool :) 2012-03-28T20:27:28 <+Steffanx> or flexbox :0 2012-03-28T20:27:29 <+dekar> yeah totally 2012-03-28T20:27:30 -!- preludelinux_lap [~preludeli@50-82-50-145.client.mchsi.com] has quit [Quit: Ex-Chat] 2012-03-28T20:27:42 <+Steffanx> 99x for free* ? 2012-03-28T20:28:01 <+dekar> yep, you must order stuff though 2012-03-28T20:28:17 <+dekar> so order like a 1m multimode fibre-cable 2012-03-28T20:28:23 <+Steffanx> :D 2012-03-28T20:28:28 <+Steffanx> 1k? 2012-03-28T20:28:28 <+dekar> probably a few euros :) 2012-03-28T20:28:56 < zyp> I've got a box full of multimode cables 2012-03-28T20:29:09 <+Steffanx> Waow :0 2012-03-28T20:29:12 <+Steffanx> :) 2012-03-28T20:29:21 <+dekar> once the 99 are gone it'll be 1500? for the basic version 2012-03-28T20:29:35 < zyp> needed a few once, found a nice looking lot at ebay 2012-03-28T20:29:45 < zyp> then counted 40 cables once I received the box 2012-03-28T20:30:23 < zyp> I have just short of 100 sfp transceivers too 2012-03-28T20:30:53 <+dekar> I feel like you wanna order some SFP at flexOptix :) 2012-03-28T20:30:57 < zyp> and a lot of other shit filling up my storage rooms :p 2012-03-28T20:32:24 <+dekar> Steffanx, old flexBox or new one? http://www.flexoptix.net/media/tmp/startseite_banner_flexbox.jpg 2012-03-28T20:32:32 <+dekar> I actually liked the white one 2012-03-28T20:32:46 < zyp> btw, what are we talking about? 2012-03-28T20:33:04 < zyp> what's this flexbox? 2012-03-28T20:33:05 <+Steffanx> FlexBox! 2012-03-28T20:33:15 <+dekar> it's an usb gadget to reprogram SFP/XFP transceivers 2012-03-28T20:33:26 < zyp> reprogram? 2012-03-28T20:33:33 <+dekar> like making your cisco switch talk to your HP transceivers 2012-03-28T20:33:34 < zyp> the eeprom in those? 2012-03-28T20:33:37 <+dekar> yeah 2012-03-28T20:33:38 < zyp> oh, right 2012-03-28T20:33:54 <+dekar> even more than that 2012-03-28T20:34:05 <+dekar> for some we dump and patch the internal firmware 2012-03-28T20:34:18 < zyp> I could use that, my extreme networks switch don't want to talk to my transceivers :p 2012-03-28T20:34:37 <+dekar> so apply for a free flex box V2 next month 2012-03-28T20:35:01 < zyp> what's the catch? :p 2012-03-28T20:35:10 <+dekar> we do charge for every use, but it's usually just a few euros, depends on the transceiver 2012-03-28T20:35:30 <+dekar> well or dollars or whatever you like 2012-03-28T20:35:58 <+dekar> oh the catch for the free one? you have to order anything from our shop and give us feedback since the V2 is a new product 2012-03-28T20:36:01 <+dekar> that's it I think 2012-03-28T20:36:02 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-03-28T20:36:07 < TitanMKD> hi 2012-03-28T20:36:10 <+dekar> hey 2012-03-28T20:36:25 < zyp> I don't really think I need it though 2012-03-28T20:36:35 < zyp> will just be more crap eating up room :p 2012-03-28T20:36:45 <+dekar> zyp, yeah thanks 2012-03-28T20:36:51 <+dekar> you can also send in your transceivers 2012-03-28T20:37:25 < zyp> you can strike the «crap» part, what I meant is that I don't really need it :p 2012-03-28T20:37:32 <+dekar> zyp, it's an awesome stm32 device with blue PWM LEDs! 2012-03-28T20:38:10 <+Steffanx> blue 2012-03-28T20:38:25 <+dekar> but seriously, if your transceivers aren't extreme enough - we can help you with that! (pun intended) 2012-03-28T20:38:34 < Thorn> orange leds ftw 2012-03-28T20:39:02 <+dekar> I guess we should have gotten RGB :) 2012-03-28T20:39:14 < zyp> dekar, it's a 100 Mb/s switch with Gb SFP uplinks, I don't really think I'll use it for anything 2012-03-28T20:39:22 <+dekar> I see 2012-03-28T20:39:45 < zyp> http://bin.jvnv.net/f/kiu9j.JPG <- found a pic of it 2012-03-28T20:39:58 <+dekar> I like the extreme color :) 2012-03-28T20:40:20 < zyp> yeah, it looks so extreme 2012-03-28T20:40:23 < zyp> :p 2012-03-28T20:41:05 < zyp> http://bin.jvnv.net/f/rxFpC.JPG <- oh, and here is my awesome server rack 2012-03-28T20:41:22 <+dekar> haha awesome 2012-03-28T20:42:10 < zyp> I turned it off when I left for christmas vacation, has stayed off since 2012-03-28T20:42:28 < zyp> it contains some terabytes of data that I've hoarded but don't really need 2012-03-28T20:43:12 <+dekar> my servers (at work) http://dl.dropbox.com/u/28467113/2009-11-27%2018.43.01.jpg 2012-03-28T20:43:22 <+dekar> their rack: http://dl.dropbox.com/u/28467113/2009-12-15%2011.45.11.jpg 2012-03-28T20:43:41 <+dekar> I am hoarding way too much stuff as well 2012-03-28T20:44:27 <+dekar> what's the stone stuff to the left in your image? 2012-03-28T20:45:02 <+dekar> oh, that's a flexbox1 array at the top of the servers in the rack XD 2012-03-28T20:45:25 <+dekar> brute forcing passwords for expensive XFPs 2012-03-28T20:45:32 < zyp> the stone is ground 2012-03-28T20:45:49 <+dekar> do you live in a cave? :D 2012-03-28T20:45:57 < zyp> for some reason people didn't remove it when they built the house 2012-03-28T20:46:03 < zyp> or rather 2012-03-28T20:46:22 <+dekar> weird, but decorative :) 2012-03-28T20:46:37 < zyp> the room I've got the servers in were apparently reclaimed for storage room some time after the house were built 2012-03-28T20:47:04 < zyp> the door to that room has clear signs of not being there originally :p 2012-03-28T20:47:26 < zyp> I'm renting a basement 2012-03-28T20:47:40 < zyp> and that room is nice and cool year round 2012-03-28T20:48:18 <+dekar> sounds like someone played with dynamite, and then realized "now that there's this huge hole, we could add a door and make a room of it!" 2012-03-28T20:48:31 < zyp> I like that explanation :D 2012-03-28T20:48:58 <+dekar> but cool is awesome, I hate the sun heating up my room -.-" 2012-03-28T20:49:19 <+dekar> I guess your room tends to get really cold during winter though 2012-03-28T20:49:29 <+dekar> does it have windows? 2012-03-28T20:49:51 < zyp> which room? 2012-03-28T20:49:59 <+dekar> the server one 2012-03-28T20:50:10 < zyp> no 2012-03-28T20:50:41 < zyp> as I said, it weren't originally a room, it was part of the fundament of the house 2012-03-28T20:50:48 <+Steffanx> rocks in your basement zyp ? ! How nice :) 2012-03-28T20:51:00 < zyp> Steffanx, yeah, it rocks 2012-03-28T20:51:14 <+Steffanx> With rocks 2012-03-28T20:51:30 <+dekar> yet your SFP aren't extreme enough :P 2012-03-28T20:51:47 < zyp> I use to joke about being able to go mountaineering even in bad weather :p 2012-03-28T20:52:05 <+dekar> hehe, so epic :) 2012-03-28T20:52:33 < zyp> I didn't have as much room for stuff where I used to live before 2012-03-28T20:52:35 < zyp> http://bin.jvnv.net/f/7JNeQ.jpg 2012-03-28T20:53:02 <+dekar> that's about what I do 2012-03-28T20:53:07 < zyp> disk array didn't like being up there, it used to complain about the temperature 2012-03-28T20:53:33 <+dekar> have them spin down 2012-03-28T20:53:53 <+dekar> mine have no cooling problem, but I always have them spin down 2012-03-28T20:54:12 <+dekar> some people say it makes them die faster, I don't think so 2012-03-28T20:54:22 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-28T20:54:45 <+dekar> Steffanx, the 1tb hdd I had in my macbook recently died, I'll never buy samsung again :/ 2012-03-28T20:55:08 <+dekar> oh wait, there aren't any samsung HDDs anymore anyway :D 2012-03-28T20:55:59 < zyp> I'm only buying seagate disks 2012-03-28T20:56:22 < zyp> as a result, I've only had a seagate disk die :p 2012-03-28T20:59:33 <+dekar> I'll only buy "Hitachi Deskstar 5K3000 HDS5C3030ALA630" from now on 2012-03-28T20:59:43 <+dekar> http://blog.backblaze.com/2011/07/20/petabytes-on-a-budget-v2-0revealing-more-secrets/ 2012-03-28T20:59:50 <+dekar> they say they're the best 2012-03-28T21:00:03 <+Steffanx> Good luck with that one in 2060 2012-03-28T21:00:30 < Thorn> is it too great a sin to use a portion of the power layer for signal traces in a 4-layer pcb? 2012-03-28T21:00:59 < zyp> I think I've bought nine ST31500341AS 2012-03-28T21:01:10 <+dekar> Thorn, do 6 layers :D 2012-03-28T21:01:19 < zyp> and so far one have died and one is still a cold spare 2012-03-28T21:01:50 < Thorn> 6 layers is more expensive 2012-03-28T21:01:50 < zyp> Thorn, nah, it's okay 2012-03-28T21:02:16 <+dekar> dunno, all I know is that the flexbox2 had 6 layers as well 2012-03-28T21:02:30 <+dekar> but somehow no one but me cared about cost anyway 2012-03-28T21:02:38 < zyp> every signal via uses a portion of the power layer for the signal :p 2012-03-28T21:02:46 < Thorn> what stackup? power & ground in the middle? 2012-03-28T21:02:55 < TitanMKD> Anyone know if ST will produce soon a Dual Cortex ARM (with M0 and M4) ? 2012-03-28T21:02:57 <+dekar> my stm32 was like 6? and the frickin' case was 50? I think XD 2012-03-28T21:03:15 < zyp> TitanMKD, they haven't said anything 2012-03-28T21:03:37 < TitanMKD> zyp because for serious stuff it's really required 2012-03-28T21:03:39 < Thorn> TitanMKD: not in 2012 afaik. they're planning a 2Mb flash F4 2012-03-28T21:03:52 <+dekar> TitanMKD, you mean like the OMAP? with one Cortex A and several Cortex M? 2012-03-28T21:03:55 < zyp> dekar, which charset are you using, your currency symbols shows up as question marks here? 2012-03-28T21:04:07 <+dekar> I have no idea tbh 2012-03-28T21:04:14 < zyp> dekar, I'm guessing like LPC4300 2012-03-28T21:04:50 < Thorn> so how many layer do I *need* for a fpga with 3 voltages (not bga)? 2012-03-28T21:04:52 <+Steffanx> I'll be bach 2012-03-28T21:04:56 < Thorn> +s 2012-03-28T21:04:56 <+dekar> none selected O.o 2012-03-28T21:04:58 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving] 2012-03-28T21:05:02 < zyp> Thorn, 1 2012-03-28T21:05:20 -!- dekar [~dekar@dslb-084-059-147-249.pools.arcor-ip.net] has quit [Quit: Leaving] 2012-03-28T21:05:24 -!- dekar [~dekar@dslb-084-059-147-249.pools.arcor-ip.net] has joined ##stm32 2012-03-28T21:05:28 -!- mode/##stm32 [+v dekar] by ChanServ 2012-03-28T21:05:36 <+dekar> öüä :D 2012-03-28T21:05:37 < Thorn> who told me a few hours earlier that 2 layers is silly? 2012-03-28T21:05:40 <+dekar> does it work now? 2012-03-28T21:05:44 < TitanMKD> dekar no like LPC4300 2012-03-28T21:05:56 < TitanMKD> dekar OMAP are too big ;) 2012-03-28T21:06:10 < Thorn> it was ziph actually 2012-03-28T21:06:13 < TitanMKD> too big and too complex for my needs ;) 2012-03-28T21:06:15 < zyp> TitanMKD, what is it really required for? 2012-03-28T21:06:40 < TitanMKD> zyp for hard realtime purpose ;) 2012-03-28T21:06:52 <+dekar> oh, didn't know there were dual core micros besides the parallax ones 2012-03-28T21:07:07 < TitanMKD> zyp M0 can be used to driver Display and user input and M4 is used to do hard realtime behind ... 2012-03-28T21:07:15 <+dekar> I guess it's obvious I am no EE guy :) 2012-03-28T21:07:31 < zyp> TitanMKD, and what part of that can't you realize with two seperate micros? 2012-03-28T21:07:47 < Thorn> dekar: TI makes some wacky ones such as C-M3 + C28xx 2012-03-28T21:07:50 < TitanMKD> zyp because today with only 1 core you cannot do the both at same time and you need output to a PC ... 2012-03-28T21:08:15 < zyp> TitanMKD, but if you use two micros, you get two cores. 2012-03-28T21:08:29 < TitanMKD> zyp 2 micro cost more and sharing data is more complex and take more space on board ... 2012-03-28T21:08:32 <+dekar> two cores can't do stuff at the same time as well, I think there is some law in physics stating everything happens sequential anyway 2012-03-28T21:08:58 < TitanMKD> dekar when you do separate task they can 2012-03-28T21:09:04 < zyp> TitanMKD, you can't say anything about cost of a product that doesn't exist. 2012-03-28T21:09:08 < TitanMKD> dekar and i need to do them in // 2012-03-28T21:09:24 < TitanMKD> zyp LPC4300 exist it's 10US$ for 1 unit 2012-03-28T21:09:37 < zyp> and? 2012-03-28T21:09:50 < TitanMKD> zyp but i'm waiting the next version with embedded flash .. 2012-03-28T21:10:16 < TitanMKD> it's why I ask if ST plan to do the same 2012-03-28T21:10:22 <+jpa-> dekar: for hard realtime, doing stuff in parallel is better even if the cores are a bit slower 2012-03-28T21:10:55 < TitanMKD> yes hard realtime with a LCD screen is just not possible with a single core even if it run at 800Mhz ;) 2012-03-28T21:11:10 < TitanMKD> it must be done in // 2012-03-28T21:11:32 <+dekar> TitanMKD, http://en.wikipedia.org/wiki/Relativity_of_simultaneity 2012-03-28T21:11:36 < zyp> I talked to an ARM guy I know once, he claimed that LPC4300 didn't have much advantage over two discrete MCUs 2012-03-28T21:11:46 <+dekar> I think that's it, it basically states nothing really happens in parallel 2012-03-28T21:11:50 < TitanMKD> even if interrupt are very fast on ARM it's not enough when you have deadline of 8us or less 2012-03-28T21:11:52 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-28T21:11:56 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-28T21:12:20 <+dekar> I am just trolling btw :P 2012-03-28T21:12:38 < zyp> M0 only runs v6-M code, so you don't really want to share code between the M0 and the M4 core in it 2012-03-28T21:12:58 < TitanMKD> Thorn C28xx suxx they do not support 8bits data ;) 2012-03-28T21:13:26 < zyp> so you pretty much end up using them as seperate MCUs 2012-03-28T21:13:37 < TitanMKD> Thorn only 16 or 32bits it really suxx when you interface external stuff like SDCard where you need to pack/unpack stuff all the time for nothing 2012-03-28T21:13:52 <+jpa-> zyp: don't they have shared ram? 2012-03-28T21:13:54 < Thorn> but internal bus must be faster than whatever you can hack up to communicate between 2 chips that don't have LVDS or slave mode EMC etc 2012-03-28T21:14:57 -!- dekar_ [~dekar@dslb-084-059-147-249.pools.arcor-ip.net] has joined ##stm32 2012-03-28T21:15:00 -!- mode/##stm32 [+v dekar_] by ChanServ 2012-03-28T21:15:01 < zyp> jpa-, they do, but for performance reasons you probably want each to primarily use it's own AHB slave so they don't interfere with each other's performance 2012-03-28T21:15:10 < TitanMKD> the most interesting in dual core is area for shared data managed by hardware 2012-03-28T21:15:31 < zyp> other than DMA style of operation 2012-03-28T21:15:54 -!- dekar [~dekar@dslb-084-059-147-249.pools.arcor-ip.net] has quit [Read error: Connection reset by peer] 2012-03-28T21:16:17 <+jpa-> zyp: sure, but still a lot more useful than two separate MCUs 2012-03-28T21:17:19 <+jpa-> next step up would of course be to do the hard-realtime stuff on an FPGA.. but not every task is easily adapted to FPGA 2012-03-28T21:17:21 < zyp> (I just have to say, I'm playing the devil's advocate here) 2012-03-28T21:18:06 < TitanMKD> jpa- yes also a 3 core will be really a must 2 ARM + 1 FPGA ;) 2012-03-28T21:19:17 < zyp> I too can see the advantages of LPC4300, but I also see the disadvantages 2012-03-28T21:19:32 < TitanMKD> zyp have you see the amazing QPSI 2012-03-28T21:19:34 < zyp> it's certainly no magic bullet 2012-03-28T21:19:37 < zyp> QPSI? 2012-03-28T21:19:42 < TitanMKD> yes quad SPI ;) 2012-03-28T21:19:49 < zyp> what quad spi? 2012-03-28T21:19:50 < TitanMKD> you can boot on a Quad SPI flash 2012-03-28T21:20:00 < zyp> and? 2012-03-28T21:20:26 < TitanMKD> it's cheap 2012-03-28T21:20:40 < TitanMKD> and very fast 40MB/s 2012-03-28T21:20:52 < zyp> I don't follow, what has QSPI anything to do with the current discussion? 2012-03-28T21:20:59 < TitanMKD> hehe yes ;) 2012-03-28T21:31:31 -!- zippe1 [~Adium@173.11.99.161] has quit [Read error: Connection reset by peer] 2012-03-28T21:31:41 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-28T21:39:55 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-28T21:55:32 -!- ratatata [~nu@88-222-70-216.meganet.lt] has joined ##stm32 2012-03-28T21:57:13 < ratatata> nu 2012-03-28T22:05:15 <+Steffanx> nu 2012-03-28T22:05:27 -!- Laurenceb_ [~Laurence@host86-180-138-68.range86-180.btcentralplus.com] has joined ##stm32 2012-03-28T22:10:01 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving] 2012-03-28T22:13:46 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-28T22:13:49 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-28T22:14:09 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Remote host closed the connection] 2012-03-28T22:14:26 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-28T22:14:29 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-28T22:17:21 -!- zippe1 [~Adium@173.11.99.161] has joined ##stm32 2012-03-28T22:17:24 -!- zippe [~Adium@173.11.99.161] has quit [Read error: Connection reset by peer] 2012-03-28T22:20:41 -!- izua [~izua@79.115.170.121] has joined ##stm32 2012-03-28T22:21:08 -!- izua is now known as Guest89741 2012-03-28T22:27:27 < Thorn> are there any cortex-a chips in qfp btw? 2012-03-28T22:32:11 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-28T22:32:12 -!- zippe1 [~Adium@173.11.99.161] has quit [Read error: Connection reset by peer] 2012-03-28T22:37:01 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-28T22:37:09 < Laurenceb_> http://marcoalici.files.wordpress.com/2012/03/raspberry-pi-case_06a.jpg 2012-03-28T22:37:11 < Laurenceb_> lol 2012-03-28T22:37:14 < Laurenceb_> connector fail 2012-03-28T22:38:54 <+jpa-> cute :P 2012-03-28T22:48:46 < emeb> Anyone ever tried FreeRTOS on STM32? 2012-03-28T22:49:25 <+jpa-> i have 2012-03-28T22:50:03 <+jpa-> worked fine but i went with chibios because i wanted all kinds of nice IO drivers 2012-03-28T22:50:36 < Thorn> I'm using freertos 2012-03-28T22:51:53 -!- avernos [~avernos@unaffiliated/avernos] has quit [Ping timeout: 246 seconds] 2012-03-28T22:52:42 < emeb> Considering an 'F407 project that might benefit from that. 2012-03-28T22:54:57 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 252 seconds] 2012-03-28T22:59:13 < Thorn> they do have a demo now http://www.freertos.org/index.html?http://www.freertos.org/FreeRTOS-for-STM32F4xx-Cortex-M4F-IAR.html 2012-03-28T23:05:22 -!- avernos [~avernos@unaffiliated/avernos] has joined ##stm32 2012-03-28T23:06:14 -!- jaeckel [~jaeckel@jaeckel.eu] has joined ##stm32 2012-03-28T23:31:54 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-03-28T23:39:50 -!- ratatata [~nu@88-222-70-216.meganet.lt] has quit [Ping timeout: 246 seconds] --- Day changed Thu Mar 29 2012 2012-03-29T00:44:04 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds] 2012-03-29T00:46:32 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-29T00:47:08 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [Client Quit] 2012-03-29T00:51:42 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-29T01:44:22 -!- Laurenceb_ [~Laurence@host86-180-138-68.range86-180.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-03-29T02:00:51 -!- zippe [~Adium@173.11.99.161] has quit [Ping timeout: 252 seconds] 2012-03-29T02:02:50 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-29T02:14:16 -!- zippe1 [~Adium@173.11.99.161] has joined ##stm32 2012-03-29T02:14:23 -!- zippe [~Adium@173.11.99.161] has quit [Read error: Connection reset by peer] 2012-03-29T02:20:21 -!- zippe1 [~Adium@173.11.99.161] has quit [Ping timeout: 272 seconds] 2012-03-29T02:21:07 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-29T02:26:43 -!- atom1 [~tom@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-29T02:30:59 -!- zippe [~Adium@173.11.99.161] has quit [Ping timeout: 245 seconds] 2012-03-29T02:52:37 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-29T03:13:55 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 264 seconds] 2012-03-29T03:23:31 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-29T04:06:10 < dongs> feertos 2012-03-29T04:43:28 -!- _abc_ [~user@unaffiliated/ccbbaa] has quit [Ping timeout: 244 seconds] 2012-03-29T04:46:25 -!- atom1 [~tom@ip70-179-150-84.fv.ks.cox.net] has quit [Quit: Leaving] 2012-03-29T04:55:51 -!- hackkitten [~jigoku_ai@s529c4932.adsl.wanadoo.nl] has quit [Read error: Operation timed out] 2012-03-29T05:02:19 < justitguy_> dongs, the board panel arrived today -- ahead of the some of the parts but okay. Thanks 2012-03-29T05:09:31 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-29T05:19:17 -!- Guest89741 [~izua@79.115.170.121] has quit [Read error: Connection reset by peer] 2012-03-29T06:34:04 -!- ureif is now known as electronics-pers 2012-03-29T06:36:16 -!- electronics-pers is now known as electronics-frog 2012-03-29T06:37:07 -!- electronics-frog [~eruif@unaffiliated/eruif] has left ##stm32 [] 2012-03-29T07:16:03 -!- hackkitten [~jigoku_ai@s529c4932.adsl.wanadoo.nl] has joined ##stm32 2012-03-29T07:35:22 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has left ##stm32 [] 2012-03-29T09:37:14 -!- philpem [~philpem@discferret/team-lead] has quit [Remote host closed the connection] 2012-03-29T11:10:42 -!- dekar_ [~dekar@dslb-084-059-147-249.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep] 2012-03-29T11:32:58 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 245 seconds] 2012-03-29T11:55:22 -!- dekar [~dekar@dslb-084-059-147-249.pools.arcor-ip.net] has joined ##stm32 2012-03-29T11:55:25 -!- mode/##stm32 [+v dekar] by ChanServ 2012-03-29T11:57:26 -!- dekar [~dekar@dslb-084-059-147-249.pools.arcor-ip.net] has quit [Client Quit] 2012-03-29T12:03:38 -!- _abc_ [~user@unaffiliated/ccbbaa] has joined ##stm32 2012-03-29T12:57:04 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-29T12:57:08 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-29T13:30:56 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-29T13:35:14 -!- _abc_ [~user@unaffiliated/ccbbaa] has quit [Ping timeout: 260 seconds] 2012-03-29T13:48:54 <+jpa-> Linus comments on the Linux on AVR thingy: http://i.imgur.com/dM5ed.png 2012-03-29T13:49:26 < zyp> haha 2012-03-29T13:56:57 < dongs> lawl 2012-03-29T13:59:29 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-29T14:01:37 < Tectu> LOL 2012-03-29T14:01:41 < Tectu> thats our linus 2012-03-29T14:03:12 < Thorn> no, seriously, this is as cool as it is silly and useless 2012-03-29T14:33:38 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-29T14:49:20 -!- izua [~izua@79.115.170.121] has joined ##stm32 2012-03-29T14:49:23 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has quit [Remote host closed the connection] 2012-03-29T14:49:38 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-29T14:49:46 -!- izua is now known as Guest56755 2012-03-29T14:52:58 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-29T14:53:20 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has joined ##stm32 2012-03-29T16:20:06 <+Steffanx> Have a link to that project jpa- ? 2012-03-29T16:20:23 <+Steffanx> oh nvm 2012-03-29T16:20:25 <+Steffanx> found it 2012-03-29T16:25:10 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-29T16:25:29 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Disconnected by services] 2012-03-29T16:25:31 -!- phantone is now known as phantoxe 2012-03-29T16:40:31 -!- Guest56755 [~izua@79.115.170.121] has quit [Read error: Connection reset by peer] 2012-03-29T17:10:03 < Laurenceb> now if someone could find a toaster with a suitable 8 bit micro 2012-03-29T17:10:11 < Laurenceb> you really could run linux on a toaster 2012-03-29T17:35:03 < zyp> my reflow toaster have a 32 bit micro, does that count? 2012-03-29T17:35:20 <+Steffanx> Yes 2012-03-29T17:38:17 < Thorn> zyp: install a cortex-a in it 2012-03-29T17:39:23 <+Steffanx> No, an emulator :P 2012-03-29T17:41:51 < Thorn> an fpga board that runs an avr core that runs an arm emulator that runs linux that runs virtualbox that runs windows 7 that runs the android emulator that runs a pdp-11 emulator that runs the control program 2012-03-29T17:47:13 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-03-29T17:49:25 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-03-29T17:50:47 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 252 seconds] 2012-03-29T17:51:01 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-29T17:52:21 -!- Tekno [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 252 seconds] 2012-03-29T18:25:52 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-29T18:58:51 < Laurenceb> you can run uclinux on stm32 2012-03-29T19:00:51 < BrainDamage> that's too sane 2012-03-29T19:22:12 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-29T19:22:39 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Read error: Connection reset by peer] 2012-03-29T19:22:39 -!- zlog [~zlog@ip70-179-150-84.fv.ks.cox.net] has quit [Read error: Connection reset by peer] 2012-03-29T19:24:36 -!- izua [~izua@79.115.170.121] has joined ##stm32 2012-03-29T19:25:02 -!- izua is now known as Guest36073 2012-03-29T19:29:53 -!- zlog [~zlog@ip24-255-188-203.ks.ks.cox.net] has joined ##stm32 2012-03-29T19:30:28 -!- peabody124 [~peabody12@c-98-194-201-181.hsd1.tx.comcast.net] has joined ##stm32 2012-03-29T19:37:52 -!- peabody124 [~peabody12@c-98-194-201-181.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-29T19:48:38 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 240 seconds] 2012-03-29T19:52:12 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-29T19:54:40 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-29T19:56:43 -!- _abc_ [~user@unaffiliated/ccbbaa] has joined ##stm32 2012-03-29T19:57:54 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-29T19:59:45 -!- Guest36073 [~izua@79.115.170.121] has quit [Quit: Obai] 2012-03-29T20:00:03 -!- izua_ [~izua@79.115.170.121] has joined ##stm32 2012-03-29T20:00:29 -!- izua_ is now known as Guest77710 2012-03-29T20:01:50 -!- peabody124 [~peabody12@128.249.96.123] has quit [Client Quit] 2012-03-29T20:07:42 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-29T20:18:56 -!- dekar [~dekar@drms-4d015bf1.pool.mediaWays.net] has joined ##stm32 2012-03-29T20:18:59 -!- mode/##stm32 [+v dekar] by ChanServ 2012-03-29T20:53:40 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-29T21:10:10 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving] 2012-03-29T21:12:45 -!- meloun [~meloun@188-194-179-152-dynip.superkabel.de] has joined ##stm32 2012-03-29T21:38:27 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has joined ##stm32 2012-03-29T21:38:39 < TitanMKD> hi 2012-03-29T21:39:15 -!- Laurenceb_ [~Laurence@host86-171-203-109.range86-171.btcentralplus.com] has joined ##stm32 2012-03-29T21:39:46 < TitanMKD> haha i have no luck STM32F4 cannot let work SPI2_RX_DMA_STREAM at same time as USART3_TX_DMA_STREAM 2012-03-29T21:39:56 < TitanMKD> they share the same DMA Stream !! 2012-03-29T21:40:13 < Laurenceb_> lol 2012-03-29T21:40:23 < Laurenceb_> i thought they had fixed this fail from F1 series 2012-03-29T21:40:32 < TitanMKD> it's a design fail ;) 2012-03-29T21:40:37 <+jpa-> well there has to be some overlap always 2012-03-29T21:40:58 <+jpa-> 2 SPI's and 3 USARTs in one application is quite a lot 2012-03-29T21:41:00 < TitanMKD> but they could have lot of unused channel 2012-03-29T21:41:05 < TitanMKD> to avoid such conflict 2012-03-29T21:41:38 < TitanMKD> jpa- i already use 2 SPI and 1 UART and the 2nd cannot be used because of DMA sharing problem ;) 2012-03-29T21:41:48 < TitanMKD> and DMA is required !! 2012-03-29T21:42:06 < TitanMKD> it is to send in background NFC sniffed data ;) 2012-03-29T21:42:16 <+jpa-> quite fast data transfer if DMA is of such importance 2012-03-29T21:42:24 <+jpa-> interrupts aren't that bad at e.g. 115kbps 2012-03-29T21:42:39 <+jpa-> (assuming you are running at 72MHz or more) 2012-03-29T21:43:17 < TitanMKD> 1 SPI dedicated for SPI NFC chipset, an other SPI as Slave+DMA+Circular+DoubleBuffer dedicated for as sampler and 1 USART for PC communication to configure the NFC chipset and the 2nd USART to display NFC data decoded in ASCII ;) 2012-03-29T21:44:08 <+jpa-> and you display this data so fast that you need DMA for it? 2012-03-29T21:44:19 <+jpa-> just use interrupts :) 2012-03-29T21:44:23 < TitanMKD> i need DMA to do not waste time 2012-03-29T21:44:31 < TitanMKD> i have only 6us ;) 2012-03-29T21:44:40 < TitanMKD> between each NFC symbol 2012-03-29T21:45:09 <+jpa-> 6us is quite doable 2012-03-29T21:45:10 < TitanMKD> so time to write USART DATA i will loose my 6us ;) 2012-03-29T21:45:27 < TitanMKD> and i need this time to do other computation 2012-03-29T21:45:37 < TitanMKD> it's why DMA is a requirement 2012-03-29T21:45:45 <+jpa-> writing USART in interrupt will probably take like 40 clock cycles.. so less than 1us 2012-03-29T21:46:21 < TitanMKD> there will be lot of interrupt for nothing and i can miss my deadline 2012-03-29T21:46:43 < TitanMKD> especially if i configure the USART @3MBPS ;) 2012-03-29T21:47:09 < TitanMKD> because i plan to do output exactly as same as Proxmark3 2012-03-29T21:47:27 < TitanMKD> so it's 24byte/Symbol => 8us in worst case 2012-03-29T21:47:28 <+jpa-> indeed - but the configuration usart probably doesn't need that much speed? so maybe you can use that for high-speed and the non-DMA one for config? 2012-03-29T21:47:40 <+jpa-> or is the board already made 2012-03-29T21:47:51 < TitanMKD> I could also use an other USART 2012-03-29T21:48:12 < TitanMKD> but on STM32F4 Discovery it's used for embedded components ... 2012-03-29T21:48:33 <+jpa-> another way is to drive a DMA channel with timer; it works fine but you have to calculate the time carefully based on baudrate 2012-03-29T21:48:47 <+jpa-> then you can use any free DMA channel 2012-03-29T21:49:31 < TitanMKD> yes DMA linked to peripheral are just too restrictive 2012-03-29T21:51:06 <+jpa-> writing to USART with DMA is a bit annoying anyway 2012-03-29T21:51:24 <+jpa-> it's not easy to use it as a FIFO 2012-03-29T21:51:41 <+jpa-> instead you must have all the stuff to transmit in a buffer before starting the DMA, unless you go through crazy tricks 2012-03-29T21:58:43 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-29T22:14:40 < TitanMKD> jpa- it's exactly what i do a double buffer 2012-03-29T22:15:01 < TitanMKD> jpa- and i use DMA interrupt for end of physical transfer to swap the buffer and so on ... 2012-03-29T22:15:02 <+jpa-> TitanMKD: for transmission? what if you transmit faster than you generate data? 2012-03-29T22:15:39 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Read error: Connection reset by peer] 2012-03-29T22:15:56 < TitanMKD> jpa- it must not it's why it's hard realtime ;) 2012-03-29T22:16:15 < TitanMKD> jpa- i check it with logic analyzer to ensure realtime is in deadline 2012-03-29T22:16:57 < TitanMKD> jpa- it's exactly the same for the SPI sniffer it's a round rubin and if you loose a sample it's LOST 2012-03-29T22:17:23 < TitanMKD> but like that you have inredible high preformance without using any interrupt 2012-03-29T22:17:47 <+jpa-> TitanMKD: of course, but do you always transmit exactly e.g. 300 000 bytes per second, never less than that even if there is nothing happening? 2012-03-29T22:18:36 < TitanMKD> in fact i transmit only when there's enough data 2012-03-29T22:19:05 <+jpa-> yeah.. so a lot of manual swapping of DMA buffers 2012-03-29T22:19:34 <+jpa-> and turning off the DMA and turning it back on when new buffer comes etc. 2012-03-29T22:19:38 < TitanMKD> it's very fast just a check in the loop 2012-03-29T22:19:46 < TitanMKD> yes 2012-03-29T22:20:05 < TitanMKD> but DMA are already configured and to start the transfer it's only something like 4 registers to write 2012-03-29T22:20:19 <+jpa-> sure it is very fast, but quite convoluted code for doubtful benefit - it's much easier to get it 100% correct using just the transmit interrupt 2012-03-29T22:20:35 < TitanMKD> but yes it need at least to have about 10 data else the benefit of DMA is not vbery good 2012-03-29T22:21:02 <+jpa-> it is very easy to have race conditions e.g. when you queue a new buffer and the previous DMA transfer completes at the same time 2012-03-29T22:22:17 < TitanMKD> not really if buffer is big enough and with a double buffer you work always on a different buffer 2012-03-29T22:24:16 < TitanMKD> anyway all must be staticlly computed to have enough buffer for worst case 2012-03-29T22:25:08 < TitanMKD> and input shall be always lower than output to warranty such race conditions will never happen 2012-03-29T22:25:34 < TitanMKD> lower in term of speed kb/s 2012-03-29T22:25:47 < TitanMKD> or size like you want 2012-03-29T22:33:40 -!- obnauticus [~obnauticu@ece-156-12.dhcp.ecn.purdue.edu] has joined ##stm32 2012-03-29T22:34:13 < obnauticus> I am trying to get started working with the STM32F4 Discovery board but am having problems getting a working IDE in the Windows envrionment. Does anyone here have any suggestions/tutorials/information on getting a working IDE up and running> 2012-03-29T22:35:01 < TitanMKD> obnauticus yes look on Chibios website 2012-03-29T22:35:14 < obnauticus> TitanMKD should I use chibios? 2012-03-29T22:35:15 < obnauticus> or... 2012-03-29T22:35:17 < TitanMKD> with Eclipse Indigo + Yagarto 2012-03-29T22:35:25 < obnauticus> I have eclipse indigo... 2012-03-29T22:35:32 < TitanMKD> obnauticus just look their link on how to 2012-03-29T22:35:34 < obnauticus> on the chibios site they said i needed a JTAG adapter 2012-03-29T22:35:52 < TitanMKD> no there's a link for embedded STLink2 2012-03-29T22:35:58 < obnauticus> ah 2012-03-29T22:35:59 < obnauticus> I didn't see that 2012-03-29T22:36:06 < obnauticus> although I also have a JTAG adapter. 2012-03-29T22:36:30 < TitanMKD> anyway you can do the both 2012-03-29T22:36:35 < obnauticus> yeah 2012-03-29T22:37:02 -!- obnauticus [~obnauticu@ece-156-12.dhcp.ecn.purdue.edu] has quit [Changing host] 2012-03-29T22:37:02 -!- obnauticus [~obnauticu@unaffiliated/obnauticus] has joined ##stm32 2012-03-29T22:39:30 < TitanMKD> obnauticus look this http://www.chibios.org/dokuwiki/doku.php?id=chibios:guides:stlink_eclipse 2012-03-29T22:40:54 < obnauticus> well...I already have eclipse indigo setup. According to this guide that is 2012-03-29T22:44:46 < TitanMKD> also chibios now support USb CDC with STM32F4 ;) 2012-03-29T22:44:57 < TitanMKD> in addition to all driver 2012-03-29T22:47:59 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-29T22:51:25 < obnauticus> TitanMKD It's telling me cs-make isn't in PATH 2012-03-29T22:51:36 < obnauticus> which package even includes cs-make in that tutorial 2012-03-29T22:51:37 < obnauticus> lol 2012-03-29T22:51:49 < TitanMKD> quote internal make 2012-03-29T22:52:01 < TitanMKD> or use a make you have with cygwin/mingw like you whish 2012-03-29T22:52:31 < obnauticus> internal make? 2012-03-29T22:53:08 < obnauticus> eh this system should have cygwin anway, I'll install it and use that 2012-03-29T22:54:11 < TitanMKD> yes IIRC there's an internal make in Eclipse 2012-03-29T22:55:12 < obnauticus> eh, i'd rather not 2012-03-29T22:55:12 < obnauticus> lol 2012-03-29T22:55:43 < obnauticus> although, yeah i guess it doesn't really matter a great deal. 2012-03-29T22:59:43 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 244 seconds] 2012-03-29T23:00:57 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-03-29T23:02:17 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-29T23:28:21 < obnauticus> TitanMKD, so I have make in my PATH now 2012-03-29T23:28:33 < obnauticus> how do I configure eclipse to use make installed by cygwin 2012-03-29T23:28:39 * obnauticus is not farmilliar with eclipse 2012-03-29T23:34:22 < obnauticus> nevermind, it's just the eclipse path variable i need to change. 2012-03-29T23:34:52 < TitanMKD> add make in your path 2012-03-29T23:34:57 < TitanMKD> and relaunch eclipse 2012-03-29T23:39:26 < obnauticus> TitanMKD the project keeps looking for cs-make (i.e., running `cs-make all` ) 2012-03-29T23:42:42 < TitanMKD> have you installed GNU ARM Eclipse Plug-in. ? 2012-03-29T23:43:18 < obnauticus> Yes. 2012-03-29T23:43:28 < obnauticus> At least I'm pretty sure I have. 2012-03-29T23:44:03 < obnauticus> TitanMKD I knwo I followed a guide that walked me through insatlling the plugin 2012-03-29T23:44:15 < TitanMKD> In your project properties you should choose Tool Chain Editor => Current Builder ARM YAgarto ... 2012-03-29T23:44:25 < TitanMKD> or the one you have installed for ARM 2012-03-29T23:45:04 < obnauticus> TitanMKD current toolchain: Cross GCC 2012-03-29T23:45:18 < obnauticus> oh, I need to change the builder. 2012-03-29T23:45:34 < obnauticus> Current builder: ARM Yagarto Windows GNU Make builder 2012-03-29T23:47:14 < TitanMKD> yes change it 2012-03-29T23:47:21 < TitanMKD> it's wrote in tutorial ;) 2012-03-29T23:47:29 < obnauticus> errrr, it is? 2012-03-29T23:47:34 < obnauticus> lemme see, I think I've fucked other stuff up then.. 2012-03-29T23:47:49 < TitanMKD> try it with chibios ;) 2012-03-29T23:47:58 < obnauticus> No, it's not in the tutorial. 2012-03-29T23:48:25 < TitanMKD> just import chibios project ARMCM4-STM32F407-DISCOVERY 2012-03-29T23:49:10 < obnauticus> alright, I'll download it 2012-03-29T23:49:43 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-29T23:49:44 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-29T23:50:48 < obnauticus> TitanMKD what do you mean immport that project? I'm...confused. 2012-03-29T23:51:02 < obnauticus> I know how to import projects, but what are you talking about specifically 2012-03-29T23:58:37 -!- meloun [~meloun@188-194-179-152-dynip.superkabel.de] has left ##stm32 [] 2012-03-29T23:59:40 < TitanMKD> obnauticus just import project as makefile 2012-03-29T23:59:55 < TitanMKD> like example chibios\trunk\testhal\STM32F4xx\USB_CDC --- Day changed Fri Mar 30 2012 2012-03-30T00:00:22 < TitanMKD> Import... -> C/C++ -> Existing Code as Makefile Project 2012-03-30T00:02:29 < obnauticus> TitanMKD alright, I successfully imported testhal\STM32F4xx\ADC 2012-03-30T00:03:08 < TitanMKD> or the best 2012-03-30T00:03:08 < TitanMKD> chibios\trunk\demos\ARMCM4-STM32F407-DISCOVERY 2012-03-30T00:03:15 < TitanMKD> it use accelerometer ... 2012-03-30T00:03:34 < obnauticus> So the toolchain I should be using is ARM Windows GCC (Yagarto), correct? 2012-03-30T00:05:29 < obnauticus> TitanMKD it still will not build for whateve reason, although it does find the compiler binaries, etc. 2012-03-30T00:05:52 < obnauticus> there are a bunch of unresolved symbols. 2012-03-30T00:06:37 < obnauticus> What must I add to the PATH in order to resolve those symbols? 2012-03-30T00:07:16 < TitanMKD> yes ARM Windows GCC Yagarto 2012-03-30T00:07:34 < TitanMKD> no there is a hint for unresolved suymbols ;) 2012-03-30T00:07:40 < TitanMKD> when build is sucessful 2012-03-30T00:08:04 -!- peabody124 [~peabody12@128.249.96.123] has quit [Read error: Connection reset by peer] 2012-03-30T00:08:07 < TitanMKD> just right click on project -> Index -> Rebuild 2012-03-30T00:08:17 < TitanMKD> because the index is buggy sometimes 2012-03-30T00:08:31 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-30T00:08:39 < obnauticus> TitanMKD I did that, there are still unresolved symbols. 2012-03-30T00:09:45 < TitanMKD> do you see the ch.elf ? 2012-03-30T00:09:49 < TitanMKD> in Binaries 2012-03-30T00:10:04 < TitanMKD> the log shall be 2012-03-30T00:10:05 < TitanMKD> Linking build/ch.elf 2012-03-30T00:10:05 < TitanMKD> Creating build/ch.hex 2012-03-30T00:10:05 < TitanMKD> Creating build/ch.bin 2012-03-30T00:10:05 < TitanMKD> Creating build/ch.dmp 2012-03-30T00:10:05 < TitanMKD> Done 2012-03-30T00:10:16 < TitanMKD> with no error of course 2012-03-30T00:10:20 < TitanMKD> only some warnings 2012-03-30T00:10:29 < obnauticus> I have 2012-03-30T00:10:30 < obnauticus> make all 2012-03-30T00:10:30 < obnauticus> v 2012-03-30T00:10:31 < TitanMKD> like that 2012-03-30T00:10:31 < TitanMKD> main.c:109:1: warning: no return statement in function returning non-void [-Wreturn-type] 2012-03-30T00:10:31 < obnauticus> make: *** No rule to make target `|', needed by `build/obj/crt0.o'. Stop. 2012-03-30T00:11:02 < TitanMKD> try with ADC example 2012-03-30T00:11:05 < TitanMKD> it build fine 2012-03-30T00:11:17 < TitanMKD> the latest USB_CDC fail because it's a work in progress 2012-03-30T00:11:24 -!- peabody124 [~peabody12@128.249.96.123] has quit [Client Quit] 2012-03-30T00:11:35 < obnauticus> I got that error when compiling the demo. 2012-03-30T00:11:55 < obnauticus> same problem with the ADC. 2012-03-30T00:13:27 < obnauticus> So...the build is not successful, maybe I'm using the incorrect compiler? 2012-03-30T00:13:54 < TitanMKD> it's your make which suxx ;) 2012-03-30T00:14:03 < TitanMKD> go in Properties 2012-03-30T00:14:10 < obnauticus> k 2012-03-30T00:14:26 < TitanMKD> C/C++ Build 2012-03-30T00:14:34 < TitanMKD> Builder Settings 2012-03-30T00:14:49 < TitanMKD> does Use default build commands is quoted and Build command is make ? 2012-03-30T00:15:02 < obnauticus> I selected "Use default build command" 2012-03-30T00:15:12 < obnauticus> Should I tell it to use "make" 2012-03-30T00:15:54 < TitanMKD> yes 2012-03-30T00:16:01 < obnauticus> done. 2012-03-30T00:16:07 < TitanMKD> and in your path it's better to use MSYS in fact ;) 2012-03-30T00:16:23 < obnauticus> but that should work? 2012-03-30T00:16:32 < obnauticus> same error. 2012-03-30T00:16:39 < TitanMKD> msys\1.0\bin 2012-03-30T00:16:46 < TitanMKD> instead of cygwin 2012-03-30T00:17:05 < obnauticus> How do I do that? 2012-03-30T00:17:16 < TitanMKD> search on internet MSYS Mingw 2012-03-30T00:17:43 < TitanMKD> because IIRC cygwin make ahve issues with chibios makefiles 2012-03-30T00:17:51 < obnauticus> shiiit 2012-03-30T00:17:51 < TitanMKD> especially the dependencies 2012-03-30T00:18:03 < TitanMKD> else you need to remove dependencies by hand 2012-03-30T00:18:21 < obnauticus> installing now 2012-03-30T00:18:44 < TitanMKD> and remove cygwin from your path ;) 2012-03-30T00:18:54 < TitanMKD> to avoid it use make of cygwin instead of msys 2012-03-30T00:19:27 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-30T00:19:38 < obnauticus> Where do I edit the PATH variable within eclipse again? 2012-03-30T00:20:04 < TitanMKD> no you should add in windows ENV path 2012-03-30T00:20:07 < obnauticus> ah ok 2012-03-30T00:20:19 < TitanMKD> never in eclipse else you need to do it for each project ... 2012-03-30T00:21:19 < obnauticus> doesn't look like it was in PATH 2012-03-30T00:23:43 < obnauticus> TitanMKD I think I may have set PATH from within eclipse 2012-03-30T00:23:51 < obnauticus> so I don't know if it is working 2012-03-30T00:23:53 < obnauticus> err 2012-03-30T00:23:57 < obnauticus> well, it's using the old make 2012-03-30T00:24:14 < TitanMKD> remove path from eclipse and set it in windows ENV 2012-03-30T00:24:18 < TitanMKD> and relaunch eclipse 2012-03-30T00:24:35 < obnauticus> Where is PATH set in Eclipse? 2012-03-30T00:25:45 < TitanMKD> i don't know if you do not have set it manually it's ok 2012-03-30T00:26:07 < TitanMKD> check the old cygwin path and remove it 2012-03-30T00:26:18 < TitanMKD> it's added automatically in Windows ENV IIRC 2012-03-30T00:26:19 < obnauticus> I just need to know where it's set because I could have set it previously. 2012-03-30T00:27:13 < obnauticus> Well, make runs from the command line so it has to be in PATH 2012-03-30T00:27:17 < obnauticus> ...however i don't see it 2012-03-30T00:27:39 < obnauticus> hmm, i think i may know what the problem is 2012-03-30T00:28:31 < obnauticus> yup found it 2012-03-30T00:28:42 < obnauticus> I installed it with UnixUtils 2012-03-30T00:29:21 < obnauticus> http://pastebin.com/DSasA0hV 2012-03-30T00:30:43 < TitanMKD> ok 2012-03-30T00:32:26 < obnauticus> TitanMKD I thought I included that? 2012-03-30T00:32:37 < TitanMKD> i must go 2012-03-30T00:32:51 < obnauticus> :( 2012-03-30T00:33:16 < TitanMKD> else you can use TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0 2012-03-30T00:33:24 < TitanMKD> all is included 2012-03-30T00:35:07 < obnauticus> Thanks for the help though! 2012-03-30T00:35:21 < TitanMKD> bye 2012-03-30T00:35:23 -!- TitanMKD [Titan@chl26-1-88-183-104-56.fbx.proxad.net] has quit [] 2012-03-30T00:36:08 -!- obnauticus [~obnauticu@unaffiliated/obnauticus] has quit [] 2012-03-30T00:59:11 -!- _abc_ [~user@unaffiliated/ccbbaa] has quit [Ping timeout: 246 seconds] 2012-03-30T00:59:16 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 276 seconds] 2012-03-30T01:18:41 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-03-30T01:30:28 -!- Laurenceb_ [~Laurence@host86-171-203-109.range86-171.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-03-30T01:37:04 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-30T01:43:45 -!- ben1066 [~quassel@unaffiliated/ben1066] has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.] 2012-03-30T01:44:23 -!- ben1066 [~quassel@host81-153-89-174.range81-153.btcentralplus.com] has joined ##stm32 2012-03-30T01:45:20 -!- ben1066 [~quassel@host81-153-89-174.range81-153.btcentralplus.com] has quit [Remote host closed the connection] 2012-03-30T01:45:26 -!- ben1066 [~quassel@host81-153-89-174.range81-153.btcentralplus.com] has joined ##stm32 2012-03-30T02:43:55 -!- dekar [~dekar@drms-4d015bf1.pool.mediaWays.net] has quit [Ping timeout: 276 seconds] 2012-03-30T02:50:51 -!- dekar [~dekar@2.213.105.176] has joined ##stm32 2012-03-30T02:50:52 -!- mode/##stm32 [+v dekar] by ChanServ 2012-03-30T03:16:37 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-30T03:19:12 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 245 seconds] 2012-03-30T03:35:37 -!- Guest77710 [~izua@79.115.170.121] has quit [Quit: Obai] 2012-03-30T03:38:44 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-30T04:00:20 -!- dekar [~dekar@2.213.105.176] has quit [Quit: This computer has gone to sleep] 2012-03-30T04:37:38 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 240 seconds] 2012-03-30T05:19:01 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-30T05:47:53 -!- obnauticus [~obnauticu@74-92-190-174-Illinois.hfc.comcastbusiness.net] has joined ##stm32 2012-03-30T05:47:57 -!- obnauticus [~obnauticu@74-92-190-174-Illinois.hfc.comcastbusiness.net] has quit [Changing host] 2012-03-30T05:47:57 -!- obnauticus [~obnauticu@unaffiliated/obnauticus] has joined ##stm32 2012-03-30T06:20:26 -!- NonaSuomy is now known as TeknoJuce 2012-03-30T08:11:16 -!- avernos [~avernos@unaffiliated/avernos] has quit [Ping timeout: 260 seconds] 2012-03-30T08:11:36 -!- avernos [~avernos@unaffiliated/avernos] has joined ##stm32 2012-03-30T08:50:28 -!- obnauticus [~obnauticu@unaffiliated/obnauticus] has quit [] 2012-03-30T09:03:52 -!- _abc_ [~user@unaffiliated/ccbbaa] has joined ##stm32 2012-03-30T09:21:16 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-30T09:23:44 -!- Netsplit *.net <-> *.split quits: karlp, zippe, hackkitten, Laurenceb 2012-03-30T10:57:37 -!- hackkitten [~jigoku_ai@s529c4932.adsl.wanadoo.nl] has joined ##stm32 2012-03-30T10:57:37 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-30T10:57:37 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has joined ##stm32 2012-03-30T10:57:37 -!- karlp [~karl@palmtree.beeroclock.net] has joined ##stm32 2012-03-30T11:24:12 -!- dekar [~dekar@studpool-wlan-74-152.fs.fbi.h-da.de] has joined ##stm32 2012-03-30T11:24:16 -!- mode/##stm32 [+v dekar] by ChanServ 2012-03-30T12:43:43 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-03-30T12:51:50 -!- dekar [~dekar@studpool-wlan-74-152.fs.fbi.h-da.de] has quit [Quit: This computer has gone to sleep] 2012-03-30T12:58:16 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-30T13:17:25 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 248 seconds] 2012-03-30T13:18:11 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-30T13:59:21 -!- avernos [~avernos@unaffiliated/avernos] has quit [Ping timeout: 244 seconds] 2012-03-30T14:00:41 -!- avernos [~avernos@222.128.151.2] has joined ##stm32 2012-03-30T14:00:41 -!- avernos [~avernos@222.128.151.2] has quit [Changing host] 2012-03-30T14:00:41 -!- avernos [~avernos@unaffiliated/avernos] has joined ##stm32 2012-03-30T14:24:08 -!- eruif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-30T14:25:04 -!- ureif [~eruif@unaffiliated/eruif] has quit [Ping timeout: 260 seconds] 2012-03-30T15:15:33 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-30T15:15:34 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-30T15:31:12 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-30T15:31:15 -!- mode/##stm32 [+v Steffann] by ChanServ 2012-03-30T15:32:11 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 252 seconds] 2012-03-30T15:34:07 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-30T15:52:23 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer] 2012-03-30T15:54:58 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-30T15:55:01 < Tectu> i am sure someone here knows about google's go? 2012-03-30T15:55:17 <+Steffann> I know it exists 2012-03-30T15:55:36 < Tectu> it does have ARM support 2012-03-30T15:58:53 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Client Quit] 2012-03-30T16:21:42 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-03-30T16:34:42 <+Steffann> Bleh, mail from farnell.. I can order a rpi, but i need credit card for that 2012-03-30T16:36:17 < Tectu> Steffann, need some help? 2012-03-30T16:36:32 <+Steffann> Help? 2012-03-30T16:37:07 < dongs> why the fuck would anyone want rapeberrypi 2012-03-30T16:37:20 < Tectu> Steffann, well, i guess you don't have a card? 2012-03-30T16:37:41 <+Steffann> No i don't have one :( 2012-03-30T16:37:53 < dongs> dont worry, they wont ship until august 2012-03-30T16:37:57 < Tectu> Steffann, well, I could probably order one to your address or something 2012-03-30T16:37:58 < dongs> or possible never, if they fail CE testing 2012-03-30T16:38:17 <+Steffann> august .. who told you that? 2012-03-30T16:38:22 < BrainDamage> dongs: to replace my nas 2012-03-30T16:38:27 < dongs> BrainDamage: lollllllllll. 2012-03-30T16:38:35 < Tectu> dongs, what the hell is your problem? 2012-03-30T16:38:43 < BrainDamage> he lols at everyone's answer 2012-03-30T16:38:47 < BrainDamage> without justification 2012-03-30T16:39:27 < Tectu> is he one of the actual genius minded brainies or more a kiddy? (to be rude) 2012-03-30T16:39:30 < dongs> my nas is 4x 4U boxes with 20 drives in each, 3ware sas raid and sas expanders. running windows 2008 server. 2012-03-30T16:39:35 <+Steffann> Just curious, are you really japanese or is your server just in japan? 2012-03-30T16:39:41 <+Steffann> @ dongs 2012-03-30T16:39:45 < dongs> why the hell would I replace that with some $20 piece of shit that can barely maintain 10meg/sec over network 2012-03-30T16:39:56 < BrainDamage> dongs: why would I need that crap in my home? 2012-03-30T16:40:17 < Tectu> dongs, you don't have to, BrainDamage want to use it for himself. he dosen't try to replace your stuff 2012-03-30T16:40:38 < BrainDamage> exactly 2012-03-30T16:40:41 <+Steffann> Maybe I should just get myself a credit card 2012-03-30T16:40:46 <+Steffann> I guess it's time for it 2012-03-30T16:40:57 < BrainDamage> he also assumes his needs are the same as everyone else's 2012-03-30T16:41:16 < BrainDamage> I wouldn't even have the space for a rack around here 2012-03-30T16:41:23 < Tectu> Steffann, well, as i said, i am able to help, if you want to. i don't have any problems with that. and you don't have any risks 2012-03-30T16:41:43 <+Steffann> I don't care about the risks, it's just i never needed one :) 2012-03-30T16:41:43 < BrainDamage> so allow me to reply "loooooolllllllll" 2012-03-30T16:41:45 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-30T16:41:57 < BrainDamage> Steffann: do they allow prepaid credit cards? 2012-03-30T16:42:15 <+Steffann> VISA, AMEX or Mastercard 2012-03-30T16:42:21 <+Steffann> No idea if prepaid is supported 2012-03-30T16:42:28 -!- peabody124 [~peabody12@128.249.96.123] has quit [Client Quit] 2012-03-30T16:42:32 < BrainDamage> my prepaid is VISA 2012-03-30T16:42:33 < Tectu> no, farnell does not support them, BrainDamage 2012-03-30T16:42:36 < Tectu> at least here 2012-03-30T16:42:51 < Tectu> BrainDamage, ah, you don't mean the paysafe cards... sorry. 2012-03-30T16:43:00 <+Steffann> Just curious, are you really japanese or is your server just in japan? Tectu ? 2012-03-30T16:43:04 <+Steffann> * dongs 2012-03-30T16:43:19 < Tectu> Steffann, i guess you won't get an answer ;) 2012-03-30T16:43:26 <+Steffann> I WANT an answer 2012-03-30T16:43:36 < Thorn> 42 2012-03-30T16:43:40 < Tectu> lol'd 2012-03-30T16:43:44 <+Steffann> I mean I NEED an answer 2012-03-30T16:47:37 < dongs> you need an answer about as much as you need rapeberrypi 2012-03-30T16:50:32 <+Steffann> Indeed, I should ignore people like you 2012-03-30T16:50:41 <+Steffann> Done 2012-03-30T16:50:49 < dongs> ah, the opensource way of chat. 2012-03-30T16:50:56 < dongs> ignore those you don't agree with. 2012-03-30T16:51:04 < dongs> thats why there are 1000 different "distros" 2012-03-30T16:51:10 < dongs> all of which are fucking broken 2012-03-30T16:51:23 < dongs> because the morons cant fuckign agree on a single standard. 2012-03-30T16:52:23 < Thorn> where's the fun in that when everybody can be an architect? 2012-03-30T16:54:19 < Tectu> dongs, just from my point of view, you are the one who has a problem with other people's ideas and minds 2012-03-30T16:54:28 < dongs> not true 2012-03-30T16:57:41 -!- izua [~izua@79.115.170.121] has joined ##stm32 2012-03-30T16:58:07 -!- izua is now known as Guest97573 2012-03-30T16:58:34 <+Steffann> Ha mr Guest97573 2012-03-30T16:58:48 < Guest97573> hello Steffann54632 2012-03-30T16:59:17 -!- Steffann is now known as Steffanx 2012-03-30T16:59:20 < Guest97573> i should really find the freenode password i'm pretty sure i scribbled down somwhere 2012-03-30T16:59:33 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-30T16:59:39 -!- Guest97573 is now known as izua__ 2012-03-30T17:00:22 < Tectu> izua__, or you may conntact the right people to reset yours 2012-03-30T17:00:39 < izua__> that too. 2012-03-30T17:01:17 <+Steffanx> Can't you request a new one? 2012-03-30T17:01:20 < Thorn> such as mr. nickserv 2012-03-30T17:02:28 <+Steffanx> oh you have to ask in #freenode 2012-03-30T17:02:38 <+Steffanx> Why nickserv can't do that :S 2012-03-30T17:02:55 < Thorn> it can't? 2012-03-30T17:03:08 <+Steffanx> "What do I do if I forget my password? If you forget your password, but still have access to the email account that is associated with the IRC account, staff can send a password reset email. Simply ask in #freenode or PM a staff member to have the email sent. " 2012-03-30T17:03:28 < izua__> yeah, that's also the problem :P 2012-03-30T17:03:55 < izua__> it doesn't matter, i can paste bash.org here and give useless advice with or without being identd 2012-03-30T17:04:09 <+Steffanx> Uh? 2012-03-30T17:04:16 < izua__> but i can't rageban people.. so.. there's that. 2012-03-30T17:05:14 < Thorn> good 2012-03-30T17:05:42 < Thorn> I'm a co-owner of a jabber conference. the other owner ragebanned all the interesting people in it 2012-03-30T17:06:23 < Thorn> well actually some left before he could do that 2012-03-30T17:07:50 <+Steffanx> I can do that for you izua__ 2012-03-30T17:08:51 < izua__> neat! 2012-03-30T17:08:56 < izua__> i'll remember that next time you annoy me :P 2012-03-30T17:09:09 -!- mode/##stm32 [+o Steffanx] by ChanServ 2012-03-30T17:09:09 <@Steffanx> :D 2012-03-30T17:09:15 -!- mode/##stm32 [-o Steffanx] by ChanServ 2012-03-30T17:09:18 < izua__> Thorn: that sounds harsh. ragebanning is fun and all, but not when there's serious stuff involved 2012-03-30T17:09:57 < izua__> gunboat diplomacy ftw 2012-03-30T17:10:16 < Thorn> that guy does too much booze and c++, often simultaneously 2012-03-30T17:11:12 < izua__> chanserv? 2012-03-30T17:11:15 < izua__> nah, he's cool 2012-03-30T17:23:15 -!- gebi [~gebi@hacker-39.realraum.at] has joined ##stm32 2012-03-30T17:23:22 < gebi> hi all :) 2012-03-30T17:23:49 <+Steffanx> Lo 2012-03-30T17:27:23 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2012-03-30T17:37:54 < gebi> i've downloaded an elua release for the stm32f4discovery as .hex file, any idea how i can get that hex file on my board? 2012-03-30T17:40:44 < Thorn> http://www.st.com/internet/evalboard/product/251168.jsp -> design support -> STM32 ST-LINK utility 2012-03-30T17:41:57 < gebi> i've downloaded the stlink util from github to use it on linux 2012-03-30T17:42:32 -!- Thorn__ [80498da9@gateway/web/freenode/ip.128.73.141.169] has joined ##stm32 2012-03-30T17:45:19 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-30T17:51:07 -!- peabody124 [~peabody12@128.249.96.123] has quit [Remote host closed the connection] 2012-03-30T17:51:24 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-30T17:55:01 < BrainDamage> read the pdf there 2012-03-30T17:55:05 < BrainDamage> it explains you how 2012-03-30T17:58:14 < gebi> ah nice st-link consolen tool already works for reading sram and flash 2012-03-30T17:59:02 < gebi> BrainDamage: i've read the pdf but i don't have any windows around and no gui stlink, i'm using the consolen stlink tool for linux 2012-03-30T17:59:33 < BrainDamage> what pdf did you read? the pdf I mean is the one in the st-link console tool for linux 2012-03-30T17:59:37 < BrainDamage> in the docs folder 2012-03-30T18:00:51 < gebi> aaah, thx, ok reading 2012-03-30T18:05:24 -!- dekar [~dekar@dslb-084-059-147-249.pools.arcor-ip.net] has joined ##stm32 2012-03-30T18:05:25 -!- mode/##stm32 [+v dekar] by ChanServ 2012-03-30T18:07:31 < gebi> BrainDamage: ah ok got it, it just seems the st-flash ignores the size argument as i tried with 4096 but i read the whole 1M anyway 2012-03-30T18:10:12 < izua__> http://thenextweb.com/insider/2012/03/30/sopa-is-all-fun-and-games-until-nbc-rips-off-apples-artwork/ 2012-03-30T18:19:04 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-30T18:23:54 -!- _abc_ [~user@unaffiliated/ccbbaa] has quit [Ping timeout: 245 seconds] 2012-03-30T18:36:04 < gebi> hm ok converted the ihex file to binary with objcopy, lets hope it works :) 2012-03-30T18:38:20 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-30T18:39:43 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 264 seconds] 2012-03-30T18:41:31 -!- zlog [~zlog@ip24-255-188-203.ks.ks.cox.net] has quit [Ping timeout: 264 seconds] 2012-03-30T18:43:15 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 260 seconds] 2012-03-30T18:46:03 -!- zlog [~zlog@ip24-255-188-203.ks.ks.cox.net] has joined ##stm32 2012-03-30T18:51:56 -!- izua__ [~izua@79.115.170.121] has quit [Ping timeout: 246 seconds] 2012-03-30T18:55:51 -!- eruif [~eruif@unaffiliated/eruif] has quit [Quit: eruif] 2012-03-30T19:07:41 -!- izua [~izua@188.26.164.49] has joined ##stm32 2012-03-30T19:08:07 -!- izua is now known as Guest87424 2012-03-30T19:12:50 < Guest87424> shit 2012-03-30T19:12:54 < Guest87424> i think someone pissed of thor 2012-03-30T19:13:00 < Guest87424> there's like a rainbow and a thunderstorm to the east 2012-03-30T19:13:10 < Guest87424> and hail and snow to the west 2012-03-30T19:22:00 <+Steffanx> oooooh 2012-03-30T19:31:58 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has quit [Quit: Leaving.] 2012-03-30T20:01:19 -!- _abc_ [~user@unaffiliated/ccbbaa] has joined ##stm32 2012-03-30T20:02:28 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-30T20:05:09 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-30T20:06:43 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32 2012-03-30T20:36:17 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-30T20:38:50 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-30T20:43:58 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: ureif] 2012-03-30T21:33:55 -!- Laurenceb_ [~Laurence@host86-140-224-25.range86-140.btcentralplus.com] has joined ##stm32 2012-03-30T22:06:35 -!- gebi [~gebi@hacker-39.realraum.at] has quit [Ping timeout: 260 seconds] 2012-03-30T22:23:44 -!- peabody124_ [~peabody12@128.249.96.123] has joined ##stm32 2012-03-30T22:24:12 -!- peabody124_ [~peabody12@128.249.96.123] has quit [Read error: Connection reset by peer] 2012-03-30T22:27:30 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 252 seconds] 2012-03-30T22:51:05 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-30T23:31:15 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-30T23:31:18 -!- mode/##stm32 [+v Steffann] by ChanServ 2012-03-30T23:34:20 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds] 2012-03-30T23:44:42 -!- Laurenceb__ [~Laurence@host109-157-88-81.range109-157.btcentralplus.com] has joined ##stm32 2012-03-30T23:48:10 -!- Laurenceb_ [~Laurence@host86-140-224-25.range86-140.btcentralplus.com] has quit [Ping timeout: 276 seconds] 2012-03-30T23:48:32 -!- Laurenceb__ is now known as Laurenceb_ --- Day changed Sat Mar 31 2012 2012-03-31T00:01:20 -!- Laurenceb_ [~Laurence@host109-157-88-81.range109-157.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-03-31T00:11:30 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-03-31T00:24:51 -!- mrcan [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-31T01:14:54 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds] 2012-03-31T01:42:19 -!- Laurenceb_ [~Laurence@host86-177-56-31.range86-177.btcentralplus.com] has joined ##stm32 2012-03-31T02:05:35 -!- Laurenceb_ [~Laurence@host86-177-56-31.range86-177.btcentralplus.com] has quit [Ping timeout: 246 seconds] 2012-03-31T02:07:19 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2012-03-31T02:13:45 -!- peabody124 [~peabody12@128.249.96.123] has quit [Remote host closed the connection] 2012-03-31T02:14:01 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-31T02:26:01 -!- dekar_ [~dekar@dslb-084-059-147-249.pools.arcor-ip.net] has joined ##stm32 2012-03-31T02:26:01 -!- mode/##stm32 [+v dekar_] by ChanServ 2012-03-31T02:26:11 -!- dekar [~dekar@dslb-084-059-147-249.pools.arcor-ip.net] has quit [Read error: Connection reset by peer] 2012-03-31T03:00:34 -!- _abc_ [~user@unaffiliated/ccbbaa] has quit [Ping timeout: 245 seconds] 2012-03-31T03:18:27 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-31T03:22:19 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 264 seconds] 2012-03-31T03:42:20 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has joined ##stm32 2012-03-31T03:56:14 -!- philpem [~philpem@discferret/team-lead] has quit [Ping timeout: 244 seconds] 2012-03-31T04:29:36 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [] 2012-03-31T04:31:23 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-31T04:31:30 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [Client Quit] 2012-03-31T04:59:48 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-31T05:01:17 -!- mrcan [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 246 seconds] 2012-03-31T05:47:06 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2012-03-31T06:34:02 -!- mrcan_ is now known as mrcan-afk 2012-03-31T06:50:21 -!- ureif [~eruif@unaffiliated/eruif] has joined ##stm32 2012-03-31T08:39:02 -!- _abc_ [~user@unaffiliated/ccbbaa] has joined ##stm32 2012-03-31T09:08:00 -!- izua [~izua@188.26.167.112] has joined ##stm32 2012-03-31T09:08:25 -!- izua is now known as Guest91694 2012-03-31T09:10:29 -!- Guest87424 [~izua@188.26.164.49] has quit [Ping timeout: 246 seconds] 2012-03-31T09:27:52 -!- ureif [~eruif@unaffiliated/eruif] has quit [Quit: ureif] 2012-03-31T09:31:05 -!- _abc_ [~user@unaffiliated/ccbbaa] has quit [Ping timeout: 260 seconds] 2012-03-31T10:14:46 -!- dekar_ [~dekar@dslb-084-059-147-249.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep] 2012-03-31T10:15:35 -!- ziph [~ziph@office.bitplantation.com] has quit [Remote host closed the connection] 2012-03-31T10:16:43 -!- ziph [~ziph@office.bitplantation.com] has joined ##stm32 2012-03-31T12:22:37 -!- Guest91694 [~izua@188.26.167.112] has quit [Ping timeout: 250 seconds] 2012-03-31T13:19:41 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2012-03-31T13:39:12 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-31T13:39:15 -!- mode/##stm32 [+v Steffann] by ChanServ 2012-03-31T13:48:31 <+Steffann> nu 2012-03-31T13:49:02 < zyp> morn 2012-03-31T14:19:08 -!- dekar [~dekar@dslb-178-004-170-234.pools.arcor-ip.net] has joined ##stm32 2012-03-31T14:19:11 -!- mode/##stm32 [+v dekar] by ChanServ 2012-03-31T14:19:25 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving] 2012-03-31T14:19:48 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-31T14:19:51 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-31T14:26:35 -!- dekar [~dekar@dslb-178-004-170-234.pools.arcor-ip.net] has quit [Quit: This computer has gone to sleep] 2012-03-31T15:13:01 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has quit [Quit: |] 2012-03-31T15:13:25 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2012-03-31T16:33:08 -!- izua [~izua@188.26.167.112] has joined ##stm32 2012-03-31T16:33:35 -!- izua is now known as Guest72093 2012-03-31T16:49:48 -!- peabody124 [~peabody12@c-98-201-56-63.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2012-03-31T17:31:56 -!- neuro-sys [~neuro@unaffiliated/neurosys/x-283974] has joined ##stm32 2012-03-31T17:58:05 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-31T17:58:08 -!- mode/##stm32 [+v Steffann] by ChanServ 2012-03-31T17:58:08 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Read error: Connection reset by peer] 2012-03-31T18:27:56 -!- Thorn__ [80498da9@gateway/web/freenode/ip.128.73.141.169] has quit [Ping timeout: 245 seconds] 2012-03-31T18:50:19 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Remote host closed the connection] 2012-03-31T18:56:15 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer] 2012-03-31T18:56:44 -!- TeknoJuce [~TeknoJuce@69.158.141.78] has joined ##stm32 2012-03-31T18:56:44 -!- TeknoJuce [~TeknoJuce@69.158.141.78] has quit [Changing host] 2012-03-31T18:56:44 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2012-03-31T19:06:13 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has quit [Ping timeout: 252 seconds] 2012-03-31T19:08:31 -!- emeb [~ericb@ip72-223-81-94.ph.ph.cox.net] has joined ##stm32 2012-03-31T19:12:45 -!- Rickta59 [~kimballr@rrcs-70-61-73-166.midsouth.biz.rr.com] has joined ##stm32 2012-03-31T19:32:26 -!- Guest72093 [~izua@188.26.167.112] has quit [Ping timeout: 246 seconds] 2012-03-31T19:53:19 -!- izua [~izua@188.26.167.112] has joined ##stm32 2012-03-31T19:53:45 -!- izua is now known as Guest28662 2012-03-31T20:00:20 -!- mrcan_ [~mrcan@unaffiliated/mrcan] has joined ##stm32 2012-03-31T20:01:16 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-31T20:01:19 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-31T20:03:04 -!- mrcan-afk [~mrcan@unaffiliated/mrcan] has quit [Ping timeout: 245 seconds] 2012-03-31T20:24:40 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving] 2012-03-31T20:31:14 -!- _abc_ [~user@unaffiliated/ccbbaa] has joined ##stm32 2012-03-31T20:35:11 -!- ben1066 [~quassel@host81-153-89-174.range81-153.btcentralplus.com] has quit [Quit: No Ping reply in 180 seconds.] 2012-03-31T20:35:16 -!- ben1066_ [~quassel@host81-153-89-174.range81-153.btcentralplus.com] has joined ##stm32 2012-03-31T21:17:10 -!- zippe [~Adium@173.11.99.161] has quit [Quit: Leaving.] 2012-03-31T21:36:43 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-31T22:14:55 -!- zippe [~Adium@173.11.99.161] has quit [Quit: Leaving.] 2012-03-31T22:15:08 -!- zippe [~Adium@173.11.99.161] has joined ##stm32 2012-03-31T22:21:01 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2012-03-31T22:24:43 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 264 seconds] 2012-03-31T22:58:57 -!- dekar [~dekar@dslb-084-059-147-249.pools.arcor-ip.net] has joined ##stm32 2012-03-31T22:59:00 -!- mode/##stm32 [+v dekar] by ChanServ 2012-03-31T23:10:26 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2012-03-31T23:18:03 -!- Laurenceb_ [~Laurence@host86-177-209-150.range86-177.btcentralplus.com] has joined ##stm32 2012-03-31T23:40:07 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Read error: Connection reset by peer] 2012-03-31T23:40:29 -!- Thorn [~Thorn@128-73-141-169.broadband.corbina.ru] has joined ##stm32 2012-03-31T23:40:30 -!- Thorn [~Thorn@128-73-141-169.broadband.corbina.ru] has quit [Changing host] 2012-03-31T23:40:30 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2012-03-31T23:52:18 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2012-03-31T23:52:22 -!- mode/##stm32 [+v Steffanx] by ChanServ 2012-03-31T23:57:12 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Client Quit] --- Log closed Sun Apr 01 00:00:34 2012