--- Log opened Tue Nov 01 00:00:21 2011 2011-11-01T00:39:55 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds] 2011-11-01T01:14:18 -!- zhanx_laptop [~john@cpe-24-59-152-200.twcny.res.rr.com] has joined ##stm32 2011-11-01T02:05:44 < zhanx_laptop> having issues making the demo's on ubuntu anyone got ideas? 2011-11-01T02:06:04 < zhanx_laptop> make says there is nothing to do 2011-11-01T02:06:31 < karlp> which demos? 2011-11-01T02:06:44 < zhanx_laptop> the stm32f4 discovery ones 2011-11-01T02:07:12 < karlp> what compiler are you using? 2011-11-01T02:07:15 < zhanx_laptop> i got board commo etc but they are not compiling with my generic makefile 2011-11-01T02:07:33 < karlp> board commo? 2011-11-01T02:07:38 < karlp> your own makefile? 2011-11-01T02:07:47 < karlp> that doesn't sound like the demos, that sounds like your code :) 2011-11-01T02:07:49 < zhanx_laptop> summon-arm-toolchain with gcc 2011-11-01T02:08:39 < zhanx_laptop> gcc CONFIG_STM32F4_DISCOVERY=1 main.c fails 2011-11-01T02:08:58 < zhanx_laptop> think i need to update my paths first 2011-11-01T02:09:07 < karlp> which demos are these? 2011-11-01T02:09:14 < zhanx_laptop> the st ones 2011-11-01T02:09:24 < zhanx_laptop> let me update my path and try again 2011-11-01T02:09:35 < BrainDamage> gcc by default calls the native x86 compiler 2011-11-01T02:09:47 < BrainDamage> you might want something like arm-none-eabi-gcc 2011-11-01T02:10:39 < zhanx_laptop> k 2011-11-01T02:10:51 < zhanx_laptop> arm-none-eabi-gcc i will try 2011-11-01T02:11:13 < BrainDamage> also, that env var, sounds like something you'd pass to a makefile, not gcc 2011-11-01T02:11:30 < zhanx_laptop> k 2011-11-01T02:11:35 < zhanx_laptop> fails also 2011-11-01T02:11:38 < karlp> what is the link to these demo's, and this makefile you're using? 2011-11-01T02:12:00 < zhanx_laptop> i skipped the makefile on the last command 2011-11-01T02:12:17 < zhanx_laptop> arm-none-eabi-gcc 2011-11-01T02:12:19 < zhanx_laptop> err 2011-11-01T02:12:23 < zhanx_laptop> arm-none-eabi-gcc main.c 2011-11-01T02:12:33 < zhanx_laptop> will paste bin the error message 2011-11-01T02:12:42 < karlp> where did you get this makefile from? 2011-11-01T02:12:57 < zhanx_laptop> i made it 2011-11-01T02:13:04 < zhanx_laptop> very very basic 2011-11-01T02:13:22 < karlp> perhaps too basic? ;) 2011-11-01T02:13:36 < zhanx_laptop> http://pastebin.com/EB3jBNRx , thinking i need to add a few more lines to my path 2011-11-01T02:13:46 < zhanx_laptop> as it finds one file now 2011-11-01T02:14:29 < karlp> you probably need a few -I parameters 2011-11-01T02:14:56 < karlp> also, some of the stm32 download examples won't compile unedited with gcc, they have attributes and pragmas for other compilers 2011-11-01T02:15:38 < zhanx_laptop> k 2011-11-01T02:19:49 < zhanx_laptop> this is the last thing i need to get going in order to compile my code and upload etc 2011-11-01T02:23:54 < zhanx_laptop> searching for thw lib that contains RCC_AHB1Periph_GPIOD and i should be good 2011-11-01T02:29:29 < zhanx_laptop> hmm i cant get an empty file to compile either 2011-11-01T02:30:23 < karlp> can you build the examples in https://github.com/texane/stlink ? 2011-11-01T02:30:31 < karlp> that has blink examples for f4, with makefiles 2011-11-01T02:30:44 < zhanx_laptop> will try 2011-11-01T02:31:46 < zhanx_laptop> main.c:86:2: error: #error "Architecture must be defined!" 2011-11-01T02:32:15 < karlp> make CONFIG_STM32F4_DISCOVERY=1 .... 2011-11-01T02:32:36 < zhanx_laptop> k 2011-11-01T02:32:57 < zhanx_laptop> yep i can make tht 2011-11-01T02:35:45 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 258 seconds] 2011-11-01T02:35:55 < zhanx_laptop> ok my makefile was lacking after reading that one 2011-11-01T02:52:47 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has joined ##stm32 2011-11-01T03:17:21 -!- zhanx_laptop [~john@cpe-24-59-152-200.twcny.res.rr.com] has quit [Remote host closed the connection] 2011-11-01T03:18:38 -!- zhanx_laptop [~john@cpe-24-59-152-200.twcny.res.rr.com] has joined ##stm32 2011-11-01T04:48:34 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has quit [] 2011-11-01T04:56:03 -!- zhanx_laptop [~john@cpe-24-59-152-200.twcny.res.rr.com] has quit [Ping timeout: 258 seconds] 2011-11-01T09:56:24 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-01T14:07:41 -!- zhanx_laptop [~john@cpe-24-59-152-200.twcny.res.rr.com] has joined ##stm32 2011-11-01T15:21:47 -!- zhanx_laptop [~john@cpe-24-59-152-200.twcny.res.rr.com] has quit [Ping timeout: 256 seconds] 2011-11-01T16:41:35 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has joined ##stm32 2011-11-01T16:44:38 < Laurenceb> https://github.com/willdonnelly/pirate-swd 2011-11-01T16:57:02 < karlp> heh, more duplicated effort :) 2011-11-01T16:57:30 < karlp> there's a guy who wrote the scsi pass through that the VL board needs, but he did it for an STM8, 2011-11-01T16:57:42 < karlp> almost identical, but no-one talked to each other, as usual :) 2011-11-01T16:59:07 < karlp> he even apparently developed this to program it from linux, which was already supported back in march from stlink. 2011-11-01T17:00:35 < karlp> looks like some useful stuff though. 2011-11-01T17:03:27 < karlp> oh no, my bad, he did this in 2010, not 2011 2011-11-01T18:21:24 -!- CheBuzz [~CheBuzz@76.164.192.124] has quit [Excess Flood] 2011-11-01T18:21:46 -!- CheBuzz [~CheBuzz@76.164.192.124] has joined ##stm32 2011-11-01T19:07:38 <@jpa-> karlp: well, doing swd using bus pirate is useful if you don't own a stlink board :) 2011-11-01T19:08:19 <@jpa-> (though they are so cheap that not exactly worth the effort) 2011-11-01T19:58:16 < karlp> true, the swd work is useful, 2011-11-01T19:58:27 < karlp> it should get slurped into openocd, 2011-11-01T19:58:37 < karlp> so it can be used with a buspirate, or anythign else though, 2011-11-01T19:58:43 < karlp> openocd has a buspirate backend iirc 2011-11-01T20:08:22 < BrainDamage> can't openocd get a stlink driver now that there's some code available around? 2011-11-01T20:08:30 < karlp> sure, 2011-11-01T20:08:51 < karlp> but I haven't gotten far enough in my own development to start submitting patches yet :) 2011-11-01T20:09:03 < karlp> I wasn't using openocd before, so it's not number one on my list of things to do :) 2011-11-01T20:09:28 < BrainDamage> understandable 2011-11-01T20:09:29 < karlp> but the girlfriend just left town with work for a week, so there should be a few hacking nights this week :) 2011-11-01T20:15:56 -!- _Shurik_ [~alex@64.88.170.43] has joined ##stm32 2011-11-01T20:16:12 < _Shurik_> Oh how cool, I was looking for stm32 channel :) Hola all 2011-11-01T20:16:38 < karlp> hola 2011-11-01T20:56:18 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-01T20:56:18 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-01T21:17:31 < karlp> man, I can not work out a quirks mode to get this VL board to attach peacefully. 2011-11-01T21:18:45 <@jpa-> they never do :) 2011-11-01T21:19:04 < karlp> well, I was hoping that there would be acombination of quirks that would work :) 2011-11-01T21:19:13 < karlp> was trying them out over dinner :) 2011-11-01T21:19:19 <@jpa-> mine spams dmesg for the first 30 seconds after attaching, giving 100% cpu usage :) 2011-11-01T21:19:25 < karlp> only 30sec? 2011-11-01T21:19:28 < karlp> hah, lucky you 2011-11-01T21:20:05 < karlp> I get no cpu, but it's more like 3-5 minutes 2011-11-01T21:22:37 -!- _Shurik_ [~alex@64.88.170.43] has left ##stm32 [] 2011-11-01T21:29:16 -!- Rious [~csamuelso@50.17.240.121] has joined ##stm32 2011-11-01T21:32:30 <+Steffanx> Oh I have the problem in a vm too karlp 2011-11-01T21:33:03 < karlp> hang on, which problem? 2011-11-01T21:33:17 <+Steffanx> That great stm32vl discovery + linux 2011-11-01T21:33:19 <+Steffanx> + os x won't boot with the stm32vl discovery 2011-11-01T21:33:24 <+Steffanx> connected 2011-11-01T21:33:28 < karlp> oh yeah, my linux doesn't boot with the vl connected 2011-11-01T21:33:43 <+Steffanx> Here the bootloader doesn't like it i think 2011-11-01T21:33:44 < karlp> it normally eventually settles down, but it's a DOG compared to the 32L 2011-11-01T21:34:02 < karlp> and presumably the F4 too, I believe it has the same stlinkv2 as the 32L 2011-11-01T21:34:02 <+Steffanx> I think the bootloader tries to do something with the fake mass storage device 2011-11-01T21:34:19 < karlp> yeah, it robably tries to work out whethe rit's a bootable driver 2011-11-01T21:34:22 <+Steffanx> Both st-link/v2 not? 2011-11-01T21:34:31 < karlp> 32L and F4, yeah, I believe so 2011-11-01T21:34:49 <+Steffanx> We need a fw update for the stm32vl 2011-11-01T21:34:56 < karlp> hah 2011-11-01T21:35:18 < karlp> would be nice, I'm sure the stlink can be put in dfu mode... 2011-11-01T21:35:36 <+Steffanx> Yeah, you have to use windows though 2011-11-01T21:35:55 <+Steffanx> The st-link utility has the tool for it 2011-11-01T21:36:13 < karlp> I'd be ok with that, 2011-11-01T21:36:23 < karlp> finding a windows machine long enough to do a fw upgrade is one thing, 2011-11-01T21:36:30 < karlp> having to use windows to use it at all is a different matter 2011-11-01T21:36:56 <+Steffanx> I have a vm for things like that 2011-11-01T21:42:55 -!- Laurenceb_ [~Laurence@host109-157-38-126.range109-157.btcentralplus.com] has joined ##stm32 2011-11-01T21:44:03 < BrainDamage> I've seen some people that actually put the versaloon firmware on the vl 2011-11-01T21:44:30 < BrainDamage> which makes it openocd compatible too 2011-11-01T21:44:38 < Laurenceb_> does stm32 have a lockbit? 2011-11-01T21:44:54 < Laurenceb_> im wondering it its possible to grab the firmware off stm32discovery 2011-11-01T21:44:56 < karlp> on which, the stm32 that is the stlink, or on the "demo" part itself? 2011-11-01T21:45:02 < Laurenceb_> to get st-link v2 firmware 2011-11-01T21:45:18 < BrainDamage> the stlink part 2011-11-01T21:45:20 < Laurenceb_> has anyone tried? 2011-11-01T21:45:22 < Laurenceb_> yes 2011-11-01T21:45:49 < karlp> how were they doing that? 2011-11-01T21:45:49 < BrainDamage> there was the thread http://www.versaloon.com/bbs/viewtopic.php?f=2&t=17&sid=6910fa04143bf8349a8fd15d6937ccbc 2011-11-01T21:45:57 < karlp> takk 2011-11-01T21:46:18 < BrainDamage> see also http://takenapart.com/?p=82 2011-11-01T21:46:24 < BrainDamage> which is much more clear 2011-11-01T21:46:57 < karlp> ahh, yeah, heðs using a working stlink to program via leads on the donor's swd pins 2011-11-01T21:47:19 < BrainDamage> yuppers 2011-11-01T21:47:20 < Laurenceb_> how come there are only two jumpers? 2011-11-01T21:47:27 < Laurenceb_> what happens to the reset wire? 2011-11-01T21:47:33 < karlp> swd doesn't need the reset 2011-11-01T21:47:37 < Laurenceb_> oh 2011-11-01T21:47:54 < Laurenceb_> cool 2011-11-01T21:48:20 < Laurenceb_> my stm32F4 discovery should arrive tomorrow 2011-11-01T21:48:27 < karlp> the "SWD" header on the stlinkv2 boards has 6 pins, and includes a reset and a reserved, but I've programmed a VL board via SWD from a 32L board with just three wires, (SWD, SWCK and ground) plus power 2011-11-01T21:48:27 < BrainDamage> I've got a standalone stlink here before I could grab my hands on a discovery vl 2011-11-01T21:48:31 < BrainDamage> now I wish I didn't :/ 2011-11-01T21:48:43 < Laurenceb_> RS have them in the UK 2011-11-01T21:48:48 < Laurenceb_> £12 2011-11-01T21:48:59 < Laurenceb_> +vat and postage and everything :( 2011-11-01T21:49:00 < BrainDamage> does it have sane shipping costs? I'm in italy 2011-11-01T21:49:16 < Laurenceb_> dont know.. they do international shipping 2011-11-01T21:49:45 < BrainDamage> every US-based store charges me with courier -> 20$+ shipping :/ 2011-11-01T21:49:59 < karlp> I only order them if work has an order going out 2011-11-01T21:50:11 < karlp> mosuer/farnell/rs/digikey all have silly shipping 2011-11-01T21:50:24 < BrainDamage> I'm a poor student 2011-11-01T21:50:35 < BrainDamage> no workplace I can piggyback with 2011-11-01T21:51:08 < karlp> local hackerspaces sometimes do group orders? 2011-11-01T21:51:36 < BrainDamage> what hackerspace? 2011-11-01T21:51:40 < karlp> hehe 2011-11-01T21:52:01 < BrainDamage> the only hackerspaces here are interested with software 2011-11-01T21:52:15 < BrainDamage> at least, all the hackerspaces I could find on the internet 2011-11-01T21:54:51 < Laurenceb_> my local hackspace seems to be a homeless charity 2011-11-01T21:55:23 < Laurenceb_> but they did have a talk by RMS - sadly before i discovered about it 2011-11-01T21:55:28 < Laurenceb_> or i could have trolled him 2011-11-01T21:55:43 < BrainDamage> I missed a RMS talk in my univ few weeks ago 2011-11-01T21:55:51 < BrainDamage> was planning to troll as well 2011-11-01T21:56:24 < Laurenceb_> talk about parrots :P 2011-11-01T21:56:34 < Laurenceb_> https://secure.mysociety.org/admin/lists/pipermail/developers-public/2011-October/007647.html 2011-11-01T21:56:37 < BrainDamage> the vm, or the animal? 2011-11-01T21:57:28 < Laurenceb_> animal - its in that link.. somewhere 2011-11-01T22:17:10 <@jpa-> yay, more stm32 programming fun for me http://essentialscrap.com/dsoquad/ 2011-11-01T22:17:48 <+Steffanx> What do you program? 2011-11-01T22:19:24 <@jpa-> silly software for cute devices, you? 2011-11-01T22:21:40 <+Steffanx> cute software for silly devices 2011-11-01T22:22:05 <@jpa-> great :) 2011-11-01T22:24:19 < BrainDamage> I'm into silly ideas for idioctic hardware 2011-11-01T22:32:38 < Thorn> one can imagine cute software for an android phone, but what exactly is cute firmware for a mcu? 2011-11-01T22:36:03 <@jpa-> i think this is cute software for cute device: http://www.patrickmccabemakes.com/PatrickMccabeMakes/Nano.html 2011-11-01T22:38:06 < Thorn> nice 2011-11-01T22:56:28 -!- _Shurik_ [~alex@64.88.170.43] has joined ##stm32 2011-11-01T23:01:04 -!- hakkavelin [~hakkaveli@fire-out.ru.is] has joined ##stm32 2011-11-01T23:02:48 -!- hakkavelin [~hakkaveli@fire-out.ru.is] has quit [Client Quit] 2011-11-01T23:40:59 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds] 2011-11-01T23:49:08 < karlp> what usb PID does the stm32F4 board turn up as? 2011-11-01T23:49:24 < karlp> 3748, like the 32L? --- Day changed Wed Nov 02 2011 2011-11-02T00:39:41 -!- Rious [~csamuelso@50.17.240.121] has quit [Excess Flood] 2011-11-02T00:40:12 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-02T00:40:25 -!- csamuelson is now known as Rious 2011-11-02T00:45:41 < Laurenceb_> do hardware fault handlers need to be enabled in the NVIC? 2011-11-02T01:21:52 -!- Laurenceb_ [~Laurence@host109-157-38-126.range109-157.btcentralplus.com] has quit [Ping timeout: 248 seconds] 2011-11-02T02:22:07 < grummund> are Olimex using a fake USB Vendor ID ? 2011-11-02T02:23:25 < grummund> ARM-USB-OCD VID:15ba PID:0003 2011-11-02T02:23:39 < grummund> ARM-USB-TINY VID:15ba PID:0004 2011-11-02T02:37:11 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has quit [] 2011-11-02T02:55:28 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-02T04:56:45 < Tom_itx> what is versaloon? 2011-11-02T04:57:37 -!- atom1 [~tom@ip68-102-109-205.ks.ok.cox.net] has joined ##stm32 2011-11-02T04:58:01 < atom1> http://www.stf12.org/developers/odev-linux.html#widget6 2011-11-02T04:58:08 < atom1> i'm attempting to set this up 2011-11-02T05:10:27 < zhanx> tom use my link 2011-11-02T05:12:21 < Tom_itx> i grabbed G++ 2011-11-02T05:26:42 -!- atom1 [~tom@ip68-102-109-205.ks.ok.cox.net] has quit [Quit: Leaving] 2011-11-02T05:31:31 < Tom_itx> i wonder if FLIP or DFU programmer would work as a downloader 2011-11-02T05:36:30 < zhanx> dfu does 2011-11-02T05:36:43 < zhanx> dont ask me how 2011-11-02T05:39:26 < Tom_itx> spi? 2011-11-02T05:52:45 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has left ##stm32 [] 2011-11-02T07:18:46 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-02T07:19:07 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Ping timeout: 260 seconds] 2011-11-02T07:24:00 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has quit [Quit: OOOOOO Whats that....] 2011-11-02T09:22:52 -!- CheBuzz [~CheBuzz@76.164.192.124] has quit [Ping timeout: 260 seconds] 2011-11-02T09:25:20 -!- CheBuzz [~CheBuzz@76.164.192.124] has joined ##stm32 2011-11-02T09:57:13 -!- damaty [~kvirc@l49-77-109.cn.ru] has joined ##stm32 2011-11-02T10:24:28 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 252 seconds] 2011-11-02T11:20:26 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-02T11:31:15 -!- CheBuzz [~CheBuzz@76.164.192.124] has quit [Excess Flood] 2011-11-02T11:31:34 -!- CheBuzz [~CheBuzz@76.164.192.124] has joined ##stm32 2011-11-02T11:33:42 -!- Laurenceb_ [~Laurence@host109-157-38-126.range109-157.btcentralplus.com] has joined ##stm32 2011-11-02T11:36:38 < karlp> versaloon wants to blacklist cdc-acm outright? 2011-11-02T11:36:45 < karlp> that's pretty severe installation instructions 2011-11-02T12:10:00 -!- Laurenceb_ [~Laurence@host109-157-38-126.range109-157.btcentralplus.com] has quit [Ping timeout: 240 seconds] 2011-11-02T12:28:23 -!- Netsplit *.net <-> *.split quits: erik-k, Thorn 2011-11-02T12:28:29 -!- Netsplit *.net <-> *.split quits: @ChanServ, ziph, _Shurik_, CheBuzz, Laurenceb, karlp, csamuelson 2011-11-02T12:32:30 -!- CheBuzz [~CheBuzz@76.164.192.124] has joined ##stm32 2011-11-02T12:32:30 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-02T12:32:30 -!- _Shurik_ [~alex@64.88.170.43] has joined ##stm32 2011-11-02T12:32:30 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has joined ##stm32 2011-11-02T12:33:12 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-02T12:33:13 -!- erik-k [~erik-k@71-34-249-33.eugn.qwest.net] has joined ##stm32 2011-11-02T12:33:38 -!- karlp [~karl@palmtree.beeroclock.net] has joined ##stm32 2011-11-02T12:51:25 -!- ziph [~ziph@office.bitplantation.com] has joined ##stm32 2011-11-02T12:51:36 -!- ChanServ [ChanServ@services.] has joined ##stm32 2011-11-02T12:51:36 -!- ServerMode/##stm32 [+o ChanServ] by kornbluth.freenode.net 2011-11-02T13:39:36 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-02T16:15:11 -!- Kevin` [~kevin@rrcs-67-53-242-181.west.biz.rr.com] has quit [Read error: Connection reset by peer] 2011-11-02T16:20:54 -!- Kevin` [~kevin@rrcs-67-53-242-181.west.biz.rr.com] has joined ##stm32 2011-11-02T16:24:51 -!- Kevin` [~kevin@rrcs-67-53-242-181.west.biz.rr.com] has quit [Read error: Connection reset by peer] 2011-11-02T16:25:54 -!- Kevin` [~kevin@router.kwzs.be] has joined ##stm32 2011-11-02T16:25:57 -!- damaty [~kvirc@l49-77-109.cn.ru] has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/] 2011-11-02T18:17:51 < grummund> Anyone done anything with stm32 and USB ? 2011-11-02T18:18:36 < grummund> ..or tried to build the code from UM0424 ? 2011-11-02T18:19:20 < _Shurik_> I haven't gotten to that yet 2011-11-02T18:19:46 < _Shurik_> But I have a dev board with stm32f103rbt6 on it 2011-11-02T18:19:52 < _Shurik_> that should have USB support 2011-11-02T18:19:54 < karlp> not enough days in the week fo rme yet :( 2011-11-02T18:21:12 < Laurenceb> i need SWD working 2011-11-02T18:21:36 < Laurenceb> arduino RF22 code is just blocking forever 2011-11-02T18:23:16 <@jpa-> schedule a timer interrupt and print the PC in the interrupt :) 2011-11-02T18:23:28 < Laurenceb> hmm nice one 2011-11-02T18:23:34 < Laurenceb> i ran out of pins 2011-11-02T18:23:51 < Laurenceb> so the SWD pin is used for the nIRQ 2011-11-02T18:24:02 < Laurenceb> from Si4432 2011-11-02T18:24:05 <@jpa-> i wonder if there is any simple to use GDB stub for stm32 yet 2011-11-02T18:24:18 <@jpa-> i saw a mention somewhere of creating one, but no code included 2011-11-02T18:24:38 < Laurenceb> GDB works for stm32 aiui 2011-11-02T18:24:42 < Laurenceb> with SWD 2011-11-02T18:24:57 < karlp> yeah 2011-11-02T18:25:00 < grummund> and JTAG with openOCD 2011-11-02T18:25:11 < Laurenceb> just not with mine 2011-11-02T18:25:17 < Laurenceb> as theres not enough pins XD 2011-11-02T18:25:18 < karlp> are you on windows or linux/mac? 2011-11-02T18:25:24 < Laurenceb> ubuntu :P 2011-11-02T18:25:31 < Laurenceb> of course 2011-11-02T18:25:34 <@jpa-> sure, with SWD 2011-11-02T18:25:42 < karlp> I was using gdbserver from stlink with an SWD lead over to a different board 2011-11-02T18:25:45 < karlp> workd fine. 2011-11-02T18:25:45 <@jpa-> but i want to debug over gprs :) 2011-11-02T18:25:50 < Laurenceb> lmao 2011-11-02T18:26:16 < Laurenceb> i debug with junk dna encoded in sperm 2011-11-02T18:34:31 < grummund> no-one played with USB yet then? 2011-11-02T18:34:57 <@jpa-> i have usb working on stm32, but i didn't code it :) 2011-11-02T18:35:08 <@jpa-> "it came with the firmware" :D 2011-11-02T18:35:22 < grummund> what firmware? 2011-11-02T18:35:31 <@jpa-> dso quad 2011-11-02T18:35:38 < grummund> ah ;) 2011-11-02T18:35:45 <@jpa-> i think it uses stm's fwlib quite directly 2011-11-02T18:37:07 * grummund attempting to build the demo code from UM0424 2011-11-02T18:44:08 < Thorn> I just soldered my first stm32 2011-11-02T18:44:25 < Thorn> board looks like shit but works 2011-11-02T18:46:31 <@jpa-> i'm gonna solder my first one this weekend.. but i have proper boards :) http://koti.kapsi.fi/jpa/stuff/pix/PA250089.JPG 2011-11-02T18:47:29 < Thorn> I've got these http://iteadstudio.com/store/index.php?main_page=product_info&cPath=19_21&products_id=297 2011-11-02T18:48:03 < Thorn> unfortunately having manufactured boards doesn't stop my solder job from looking like shit 2011-11-02T18:48:28 < grummund> what technique did you use for soldering? 2011-11-02T18:49:24 < Thorn> technique? I wouldn't call it that 2011-11-02T18:50:17 < grummund> i've yet to try my hand at a fine pitch lqfp 2011-11-02T18:51:28 < Thorn> 1. put flux on the pads. 2. tin them. discover lots of shorts. 3. drag wick over pads. break two. 4. put them somewhat in place with tweezers. 5. take stm32, put flux on the pins. 6. position (most difficult part). 7. apply solder. 8. use wick for 10-15 minutes until no shorts remain 2011-11-02T18:52:18 < grummund> why tin the pads? 2011-11-02T18:52:37 < Thorn> dunno. it says so in step 2 2011-11-02T18:53:29 <@jpa-> i usually 1. put tin on one pad 2. put the chip in place and solder that one pin in place 3. check alignment 4. apply flux and solder all the pins 2011-11-02T18:53:51 < grummund> http://store.curiousinventor.com/guides/Surface_Mount_Soldering/101 2011-11-02T18:54:08 < Thorn> yes, it's important to solder 2 opposite corners first. forgot that 2011-11-02T18:54:40 < Thorn> Dave Jones had a video tutorial too (including how to break off pads) 2011-11-02T18:54:59 < grummund> but he's annoying :P 2011-11-02T18:55:59 < Thorn> I wish he did more actual tutorials. the rare ones that he does are quite useful 2011-11-02T18:57:19 < grummund> the curiousinventor video is quite good, if you haven't seen it already... 2011-11-02T18:57:48 < Thorn> the chip itself looks more or less well (it wouldn't work otherwise, not much room for error). but 0805 resistors/capacitors are awful 2011-11-02T18:58:21 < karlp> solder tweezers are awesome for those 2011-11-02T18:58:34 < karlp> tin pads, pick up part with hot tweezers, put down, donw. 2011-11-02T18:58:52 < Thorn> also hot air or a reflow oven 2011-11-02T18:59:27 < Thorn> $$$$$ 2011-11-02T18:59:49 < karlp> someone here had a nice link to using a garden fork to hold down parts while you soldered them 2011-11-02T18:59:59 < karlp> looked like it worked rpetty well, especially for things like resistors and caps 2011-11-02T19:07:19 < Thorn> that video is indeed quite good, thanks 2011-11-02T19:11:04 < Thorn> one good thing about soldering your own boards is being able to use whatever led colors you want. 2011-11-02T19:42:39 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-02T19:42:42 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-02T19:46:28 < Tom_itx> ok so nix on the eclipse install. what's the popular tool chain of choice here then? 2011-11-02T19:47:02 < Tom_itx> mind you i'm running the live cd install of ubuntu 10.04 for emc which is a realtime ver 2011-11-02T19:47:23 < BrainDamage> makefiles work ok for me 2011-11-02T19:47:30 < Tom_itx> got a good one? 2011-11-02T19:47:56 < Tom_itx> i got the windows tools but i wanted to get it working on ubuntu 2011-11-02T19:48:02 < Tom_itx> i have stlink working i think 2011-11-02T19:48:34 <+Steffanx> You think :P 2011-11-02T19:49:27 < Tom_itx> http://tom-itx.dyndns.org:81/~webpage/rue/stlink_output.txt 2011-11-02T20:31:54 -!- _Shurik_ [~alex@64.88.170.43] has left ##stm32 [] 2011-11-02T20:34:57 < Thorn> jpa-: where did you order those boards btw? 2011-11-02T20:36:09 <+Steffanx> He's n the US => sample 2011-11-02T20:37:11 < Thorn> iteadstudio? (looks like there're 10 of them) 2011-11-02T20:37:23 <+Steffanx> Oh, jpa- sorry 2011-11-02T20:37:28 <+Steffanx> I didn't see that nick 2011-11-02T20:39:02 < Thorn> and what pattern did you use for the stm? (diptrace has several qfp100 and qfp64 patterns) 2011-11-02T20:46:08 < karlp> Tom_itx: that looks like stlink is working, 2011-11-02T20:46:53 <@jpa-> Thorn: seeedstudio 2011-11-02T20:47:07 <+Steffanx> Can i see your board somewhere jpa- ? 2011-11-02T20:47:22 <@jpa-> http://koti.kapsi.fi/jpa/stuff/pix/PA250089.JPG 2011-11-02T20:47:37 <@jpa-> not soldered yet, there is probably some horrible mistake 2011-11-02T20:47:57 <+Steffanx> Which chip? 2011-11-02T20:48:09 <@jpa-> stm32f103something :) 2011-11-02T20:48:14 <+Steffanx> Or i should read the log 2011-11-02T20:48:17 <+Steffanx> zlog 2011-11-02T20:48:17 < zlog> Steffanx: Log stored at http://tom-itx.dyndns.org:81/~tom-itx/irc/logs/%23%23stm32/2011-11-02.html 2011-11-02T20:48:28 <@jpa-> not much in log i guess 2011-11-02T20:53:08 < Thorn> I'm currently trying to finish an ft2232-based dual rs-232/485/CAN converter 2011-11-02T20:53:15 <+Steffanx> Now? How did Thorn know about your board? 2011-11-02T20:53:17 <+Steffanx> *Not 2011-11-02T20:54:18 < Thorn> <@jpa-> i'm gonna solder my first one this weekend.. but i have proper boards :) http://koti.kapsi.fi/jpa/stuff/pix/PA250089.JPG 2011-11-02T21:42:49 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving] 2011-11-02T21:53:05 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-02T21:53:07 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-02T22:09:06 -!- Laurenceb_ [~Laurence@host109-157-38-126.range109-157.btcentralplus.com] has joined ##stm32 2011-11-02T22:09:25 * Laurenceb_ has F4discovery working 2011-11-02T22:09:36 < BrainDamage> under linux? 2011-11-02T22:10:16 < CheBuzz> Yes, check out stlink 2011-11-02T22:10:24 < Laurenceb_> its just flashing like a christmas tree atm XD 2011-11-02T22:10:34 < Laurenceb_> too many flashing leds 2011-11-02T22:10:44 < CheBuzz> It's purtee 2011-11-02T22:11:03 <+Steffanx> Christmas tree Laurenceb .. come on 2011-11-02T22:11:16 <+Steffanx> Be patient 2011-11-02T22:11:41 < CheBuzz> If you want to use stlink with the F4 however, you need to use jnosky's repo until his changes get merged into texane's: https://github.com/texane/stlink/network 2011-11-02T22:11:53 < BrainDamage> CheBuzz: I'm using stlink for the vl 2011-11-02T22:11:59 < BrainDamage> I wanted to know about the f4 2011-11-02T22:12:08 < CheBuzz> Yes, I am using stlink for the F4 2011-11-02T22:12:20 < Laurenceb_> im busy with other projects - will try later with the stlink 2011-11-02T22:12:26 <+Steffanx> st-link from texane sucks for the VL :P 2011-11-02T22:12:28 < Laurenceb_> discovery just arrived 2011-11-02T22:14:15 < CheBuzz> It's slow for me, but it works. Flashing a 4kb chunk takes about 5 seconds, so if you are flashing a large file very often, you'll be pulling out hair before too long. 2011-11-02T22:15:05 <+Steffanx> And it doesn't support os x CheBuzz :P 2011-11-02T22:15:22 <+Steffanx> And indeed, i HATE it when i have to wait :P 2011-11-02T22:15:30 < Laurenceb_> K bytes ? 2011-11-02T22:15:31 < CheBuzz> That I can't say. But BrainDamage asked about Linux so that's what I was referring to. 2011-11-02T22:15:40 < Laurenceb_> hmm thats quite slow 2011-11-02T22:15:49 <+Steffanx> I can CheBuzz 2011-11-02T22:16:03 < CheBuzz> Yes it is. 2011-11-02T22:17:09 < CheBuzz> Is there a better alternative? 2011-11-02T22:17:22 < karlp> everything for the VL sucks 2011-11-02T22:17:29 <+Steffanx> Reflash the st-link fw with the versaloon firmware 2011-11-02T22:18:01 < karlp> stlinks flashing perf could probably be vastly improved by some reading of the flash programming manuals 2011-11-02T22:18:11 < CheBuzz> Are you referring to the SW running on the F103CB chip? 2011-11-02T22:18:22 < BrainDamage> yes, you can reflash the F103 chip 2011-11-02T22:18:27 <+Steffanx> Yeah 2011-11-02T22:18:43 < CheBuzz> But then would I need a versaloon programmer? 2011-11-02T22:18:53 <+Steffanx> You need another st-link/programmer 2011-11-02T22:19:19 <+Steffanx> So you just replace the original fw of that f103 with other one :) 2011-11-02T22:19:48 <+Steffanx> It's irreversible afaik 2011-11-02T22:19:55 < CheBuzz> I have an FT2232-based JTAG board. 2011-11-02T22:20:01 < BrainDamage> versaloon, unlike stlink, it's supported by openocd 2011-11-02T22:20:14 < Tom_itx> jpa- you can always go to that directory and get previous days logs 2011-11-02T22:20:15 <+Steffanx> You need swd CheBuzz 2011-11-02T22:20:56 <+Steffanx> Had some time to read the license/blablalba documents from cdiweb yet Tom_itx ? :) 2011-11-02T22:20:56 < karlp> or, wait a while (whoe knows when) and stlink will be supported by openocd as well 2011-11-02T22:21:10 < CheBuzz> But honestly it's probably too much work. stlink may be slow, but it's fine for my purposes as I am just using the F4 Discovery to begin the software dev process while I wait for my prototype PCBs to come in. 2011-11-02T22:21:11 < karlp> probably starting with stlinkv2 though, because no-one likes working with the stlink v1 2011-11-02T22:21:14 <@jpa-> Tom_itx: but if i haven't explained much about the board at all, it won't be in any log :) 2011-11-02T22:21:23 < Tom_itx> nope sure won't 2011-11-02T22:21:47 <+Steffanx> :( 2011-11-02T22:21:57 < Tom_itx> so start talkin :) 2011-11-02T22:22:17 <+Steffanx> Start talking about what? 2011-11-02T22:22:42 <@jpa-> Steffanx's personal life 2011-11-02T22:22:52 < Laurenceb_> can you grab the stlink firmware image off the stm32f103 on the F4discover board? 2011-11-02T22:22:53 < Tom_itx> rather boreing 2011-11-02T22:22:58 * Steffanx 2011-11-02T22:22:58 < Laurenceb_> or is it locked 2011-11-02T22:23:04 <+Steffanx> ^^ that's it jpa- 2011-11-02T22:23:11 <+Steffanx> I'm not married too young :P 2011-11-02T22:24:03 < Tom_itx> jpa- you make those? 2011-11-02T22:26:15 <@jpa-> yeah, my first board i ordered from factory :) 2011-11-02T22:26:34 < Tom_itx> where did you order from? 2011-11-02T22:26:50 <@jpa-> seeed 2011-11-02T22:27:09 < Tom_itx> their quality is fair 2011-11-02T22:27:35 <@jpa-> yeah, the 0.3mm vias are great 2011-11-02T22:27:58 <+Steffanx> seeed isn't that bad :) 2011-11-02T22:28:15 < Tom_itx> not as bad as that other place 2011-11-02T22:28:22 < Tom_itx> itead or whatever 2011-11-02T22:28:24 <+Steffanx> itead? 2011-11-02T22:28:34 <+Steffanx> Don't they use the same manufacturer? 2011-11-02T22:29:01 <@jpa-> i think they are the same 2011-11-02T22:29:13 <@jpa-> the specs are the same, the price is the same 2011-11-02T22:29:16 < Tom_itx> i dunno but the quality control isn't as good 2011-11-02T22:29:42 <+Steffanx> I prefer seeed .. at least the website looks 1000 times more professional 2011-11-02T22:30:12 <+Steffanx> *imho 2011-11-02T22:30:21 < Tom_itx> so apparently i have the right ver of stlink for the F4? 2011-11-02T22:30:44 <+Steffanx> The F4 has version 2 2011-11-02T22:30:48 <+Steffanx> Which is the 'best' 2011-11-02T22:31:15 < Tom_itx> from texane or other? 2011-11-02T22:31:48 <+Steffanx> I think there went something wrong in our conversation 2011-11-02T22:32:02 < Tom_itx> there did? 2011-11-02T22:32:23 < karlp> allegedly you can't flash with the standard texane version 2011-11-02T22:32:26 < karlp> you can only run from sram 2011-11-02T22:32:29 <+Steffanx> The ST-LINK is the programmer part of the discovery board. That Texane ST-LINKS is just a utility to talk with that part 2011-11-02T22:32:32 < Tom_itx> i was asking about this one : https://github.com/texane/stlink/network 2011-11-02T22:33:06 <+Steffanx> They should change the name of that tool imho :P 2011-11-02T22:33:11 <+Steffanx> st-linktool or something like that 2011-11-02T22:33:13 < Tom_itx> i need to install ubuntu again and start afresh i think 2011-11-02T22:33:21 <+Steffanx> Why? 2011-11-02T22:34:01 < Tom_itx> i might switch to the ssd, haven't decided just yet 2011-11-02T22:34:05 < karlp> Steffanx: or, just kill the tool, if the device gets supported in openocd, it has no further purpose right? 2011-11-02T22:34:23 < Tom_itx> is it supported there yet? 2011-11-02T22:34:27 < karlp> nope :) 2011-11-02T22:34:32 < karlp> one day (tm) 2011-11-02T22:34:36 <+Steffanx> Are there plans for it ? 2011-11-02T22:34:38 < Tom_itx> 0.5.0? 2011-11-02T22:34:39 < karlp> sure! 2011-11-02T22:34:42 <+Steffanx> as sin REAL plans 2011-11-02T22:34:46 <+Steffanx> *in 2011-11-02T22:34:52 < karlp> it's something I'd like to do, yes. 2011-11-02T22:34:54 <+Steffanx> More than just 'ideas' 2011-11-02T22:34:55 < Tom_itx> or is that not an official release 2011-11-02T22:35:02 < karlp> I have no started on it. 2011-11-02T22:35:16 <+Steffanx> Most of my projects end there…. in the 'i have an idea'-phase :P 2011-11-02T22:35:17 < karlp> I was planning on trying to get the VL boards to work better first, ie, on macosx 2011-11-02T22:35:44 < karlp> but given how much that irritates me, and that I can use teh stlinkv2 to program the VL board anyway if I really want, I'm not sure how much I care. 2011-11-02T22:35:57 < Tom_itx> karlp what compiler toolchain do you use? 2011-11-02T22:36:16 <+Steffanx> codesourcery :) 2011-11-02T22:36:26 < karlp> codesourcery lite 2011-11-02T22:36:29 < Tom_itx> i got that g++ from them, is that it? 2011-11-02T22:36:35 < karlp> yep 2011-11-02T22:36:51 < Tom_itx> apparently it didn't install properly or something 2011-11-02T22:36:52 <+Steffanx> I used eclipse, just because i'm lazy :P 2011-11-02T22:36:53 < karlp> I also installed it all from scratch on another computer last night, using the summon-arm-toolchain, and it also worked just fine 2011-11-02T22:37:06 < Tom_itx> Steffanx how do you get eclipse to see it? 2011-11-02T22:37:22 < Tom_itx> got a link for that one? 2011-11-02T22:37:27 <+Steffanx> I used a tutorial (which is actually meant for windows) 2011-11-02T22:37:49 < Tom_itx> i started one and it said to add stuff to the blacklist 2011-11-02T22:37:57 < Tom_itx> which makes me wonder 2011-11-02T22:38:12 <+Steffanx> blacklist :S 2011-11-02T22:38:36 <+Steffanx> My 'stuff' is based on this https://sites.google.com/site/stm32discovery/open-source-development-with-the-stm32-discovery/setting-up-eclipse-for-stm32-discovery-development 2011-11-02T22:38:41 < karlp> yeah, that odev one looked really dodgy 2011-11-02T22:38:49 < karlp> blacksing _ALL_ cdc-acm devices 2011-11-02T22:38:55 < Tom_itx> i think i'll pass on it for now 2011-11-02T22:39:36 <+Steffanx> lol karlp ? 2011-11-02T22:39:38 <+Steffanx> :S 2011-11-02T22:40:49 < Tom_itx> i think i'll go thru that later Steffanx 2011-11-02T22:41:06 <+Steffanx> Good luck 2011-11-02T22:41:15 < Tom_itx> did you get it to work? 2011-11-02T22:41:20 <+Steffanx> i'm not sure if that linker file works for the f4 .. 2011-11-02T22:41:33 <+Steffanx> And what you have to change to compile for the f4 2011-11-02T22:42:18 < Tom_itx> so another wasted evening? 2011-11-02T22:42:31 <+Steffanx> I guess so 2011-11-02T22:43:16 < CheBuzz> Tom_itx: libopencm3 is working on the F4 Discovery if you are looking for toolsets. 2011-11-02T22:43:20 <+Steffanx> It took me a while to make it functional, just because i forgot to read one important thing 2011-11-02T22:43:34 < Tom_itx> CheBuzz, link? 2011-11-02T22:43:59 < Tom_itx> Steffanx you forgot to read the directions? 2011-11-02T22:44:02 < CheBuzz> http://sourceforge.net/projects/libopencm3/ 2011-11-02T22:44:14 <+Steffanx> Something that's more clear now Tom_itx 2011-11-02T22:44:18 <+Steffanx> A Eclipse bug related thing 2011-11-02T22:44:37 < Tom_itx> i crashed that before i ever used it 2011-11-02T22:44:42 < Tom_itx> i'm not impressed 2011-11-02T22:44:55 <+Steffanx> An very old version? 2011-11-02T22:45:06 < Tom_itx> i don't think so 2011-11-02T22:45:07 <+Steffanx> -n 2011-11-02T22:45:14 <+Steffanx> Then it was a pebkac :P 2011-11-02T22:45:26 < Tom_itx> i don't think so 2011-11-02T22:45:31 <+Steffanx> Ok 2011-11-02T22:46:08 < Tom_itx> indigo 2011-11-02T22:46:12 < Tom_itx> is that the wrong one? 2011-11-02T22:47:11 < Tom_itx> 2011 09 16 2011-11-02T22:52:14 < karlp> indeigo is probably a good choice 2011-11-02T22:52:22 < karlp> it's the latest 2011-11-02T22:56:11 < Tom_itx> so how many in here have the discovery board and how many have something else? 2011-11-02T22:56:49 * grummund has the Olimex H103 board 2011-11-02T22:57:15 * Steffanx has no board 2011-11-02T22:57:25 <+Steffanx> Except the stm32vl discovery 2011-11-02T23:02:03 < karlp> I have a VL and an L discovery board 2011-11-02T23:08:58 < Thorn> this iteadstusio board has a pin header block between the mcu and max3232, you can connect one of 2 uarts to the rs-232 port and also do loopback. nice idea 2011-11-02T23:22:53 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [] 2011-11-02T23:45:55 < grummund> anyone know how to download attachments on posts in the my.st.com forums? 2011-11-02T23:46:12 < karlp> perhaps you have to be registereed user? 2011-11-02T23:46:19 < karlp> what post? 2011-11-02T23:46:33 < grummund> https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex%5Fmx%5Fstm32%2Fstdio%20via%20USB%20virtual%20COM%20port&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=9224 2011-11-02T23:46:50 < grummund> i am registered and logged in 2011-11-02T23:53:48 < karlp> I don't see any attachments anywhere 2011-11-02T23:54:00 < karlp> there's a comment from 8/8 saying it's missing too 2011-11-02T23:56:06 <+Steffanx> That st forum is weird 2011-11-02T23:56:21 <+Steffanx> And most of the time not very helpfull 2011-11-02T23:56:27 < grummund> ah... looking at the timestamps i wonder if the forum post database has been migrated at some point and the attachments lost in the process 2011-11-02T23:57:03 <+Steffanx> Yes, that too 2011-11-02T23:57:24 <+Steffanx> I've read a few times about a migration --- Day changed Thu Nov 03 2011 2011-11-03T00:16:33 < Tom_itx> where does ST hide all their friggin files/ 2011-11-03T00:16:34 < Tom_itx> ? 2011-11-03T00:16:52 < Tom_itx> http://www.st.com/stonline/products/support/micro/files/um0892.zip 2011-11-03T00:17:04 < Tom_itx> http://www.st.com/stonline/products/support/micro/files/stm32f10x_stdperiph_lib.zip 2011-11-03T00:17:09 < Tom_itx> to be specific 2011-11-03T00:17:28 < karlp> you means these? http://www.st.com/stonline/stappl/resourceSelector/app?page=resourceSelector&doctype=FIRMWARE&ClassID=1734 2011-11-03T00:25:28 < Tom_itx> gawd their site is pathetic 2011-11-03T00:52:41 <+Steffanx> You just have to learn how to use it Tom_itx 2011-11-03T00:52:55 < Tom_itx> it kills this poor little pc 2011-11-03T00:53:15 <+Steffanx> sudo apt-get betterpc ? 2011-11-03T00:53:17 <+Steffanx> :P 2011-11-03T00:53:19 <+Steffanx> *install 2011-11-03T00:53:45 < Tom_itx> i am on the other one now 2011-11-03T00:54:24 <+Steffanx> no itx? 2011-11-03T00:54:46 < Tom_itx> not for that 2011-11-03T00:55:14 <+Steffanx> Then your nick is a lie :P 2011-11-03T00:55:37 < Tom_itx> how so? 2011-11-03T00:55:40 < Tom_itx> i am who i am 2011-11-03T00:55:56 <+Steffanx> You are, your nick isn't 2011-11-03T00:56:07 < Tom_itx> is so 2011-11-03T00:56:11 < Tom_itx> this is itx 2011-11-03T00:56:33 -!- atom1 [~tom@ip68-102-109-205.ks.ok.cox.net] has joined ##stm32 2011-11-03T00:56:37 < atom1> this is atom1 2011-11-03T00:56:50 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-03T00:56:58 < Tom_L> this it Tom_L 2011-11-03T00:57:03 <+Steffanx> Time to end this useless conversation :) 2011-11-03T00:57:04 < Tom_itx> need more? 2011-11-03T00:57:12 < Tom_itx> agree 2011-11-03T00:58:25 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has left ##stm32 [] 2011-11-03T00:58:32 -!- atom1 [~tom@ip68-102-109-205.ks.ok.cox.net] has left ##stm32 ["Leaving"] 2011-11-03T00:59:45 < Tom_itx> Steffanx 2011-11-03T00:59:59 <+Steffanx> . 2011-11-03T01:00:04 < Tom_itx> what's the difference between helios and indigo? 2011-11-03T01:00:16 <+Steffanx> Uhm? 2011-11-03T01:00:20 <+Steffanx> I've really no idea 2011-11-03T01:00:21 < Tom_itx> eclipse 2011-11-03T01:01:08 <+Steffanx> indigo just seems to be the most recent version 2011-11-03T01:08:45 < Tom_itx> snow is on the way 2011-11-03T01:08:58 < Tom_itx> it was 70f yesterday 2011-11-03T01:08:58 <+Steffanx> To me? 2011-11-03T01:09:03 -!- Laurenceb_ [~Laurence@host109-157-38-126.range109-157.btcentralplus.com] has quit [Ping timeout: 248 seconds] 2011-11-03T01:10:10 <+Steffanx> zzzz 2011-11-03T01:11:49 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-03T01:13:18 -!- zlog [~zlog@ip68-102-109-205.ks.ok.cox.net] has quit [Ping timeout: 245 seconds] 2011-11-03T01:13:26 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 260 seconds] 2011-11-03T01:13:37 -!- Tom_L is now known as Tom_itx 2011-11-03T01:14:39 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 252 seconds] 2011-11-03T01:15:32 -!- zlog [~zlog@ip68-102-109-205.ks.ok.cox.net] has joined ##stm32 2011-11-03T02:08:43 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has joined ##stm32 2011-11-03T02:44:34 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has joined ##stm32 2011-11-03T02:45:36 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has quit [] 2011-11-03T05:52:28 < karlp> whee I can read stlink version info from the VL board without sg-utils now :) 2011-11-03T05:52:52 < karlp> now, I should get into bed! 2011-11-03T07:49:17 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-03T10:32:55 -!- Laurenceb_ [~Laurence@host109-157-38-126.range109-157.btcentralplus.com] has joined ##stm32 2011-11-03T10:40:04 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-03T10:40:07 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-03T11:04:15 -!- Laurenceb_ [~Laurence@host109-157-38-126.range109-157.btcentralplus.com] has quit [Ping timeout: 248 seconds] 2011-11-03T12:24:01 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Quit: ZNC - http://znc.sourceforge.net] 2011-11-03T12:25:45 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32 2011-11-03T12:39:42 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Read error: Connection reset by peer] 2011-11-03T12:54:35 < Laurenceb> are all thumb2 instructions signle cycle? 2011-11-03T13:10:44 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-03T14:36:05 < grummund> ok, objective for the day - get the ST example USB code to at least *build* 2011-11-03T17:38:14 -!- _Shurik_ [~alex@64.88.170.43] has joined ##stm32 2011-11-03T19:14:44 < Tom_itx> grummund take good notes 2011-11-03T19:15:10 < grummund> heh. it now compiles but no link 2011-11-03T19:15:51 * grummund side-tracked to bug hunting in emacs itself ;-/ 2011-11-03T19:23:09 < Laurenceb> RMS says there are NO bugs 2011-11-03T19:31:25 < Thorn> are there any cm3 based opensource projects that use i2s? 2011-11-03T19:31:47 < Thorn> (or not cm3 based for that matter) 2011-11-03T19:34:53 <+Steffanx> is i2c really that hard? 2011-11-03T19:35:50 < Thorn> I2S not I2C 2011-11-03T19:36:32 <+Steffanx> oeps 2011-11-03T19:36:38 <+Steffanx> me can't read very well sometimes 2011-11-03T19:38:30 < Thorn> I've got this codec http://www.ti.com/product/tlv320aic3101 2011-11-03T19:48:20 <+Steffanx> What are you going to do with it? 2011-11-03T19:49:09 < Thorn> no idea yet 2011-11-03T19:49:29 < Thorn> is it normal for an embedded project to have a file called chucknorris.c? 2011-11-03T19:49:58 < Thorn> http://code.google.com/p/arm-webradio/source/browse/trunk/src/chucknorris.c 2011-11-03T19:51:53 <+Steffanx> Ofcourse 2011-11-03T19:53:24 < karlp> jenkins has a chuck norris, bruce schnier and a "girls" plugin 2011-11-03T19:53:38 < karlp> but yeah, not so embedded. 2011-11-03T19:59:12 <+Steffanx> That last one is silly karlp 2011-11-03T20:00:17 <@jpa-> Laurenceb: atleast division is multi-cycle 2011-11-03T20:22:27 < Thorn> http://www.arm.com/about/newsroom/arm-discloses-technical-details-of-the-next-version-of-the-arm-architecture.php 2011-11-03T20:35:10 <+Steffanx> Something for the very far featyre 2011-11-03T20:35:13 <+Steffanx> ure 2011-11-03T20:44:14 < karlp> is that the v8 64 bit stuff? 2011-11-03T20:48:24 <+Steffanx> yeah 2011-11-03T21:38:48 -!- Laurenceb_ [~Laurence@host109-157-38-126.range109-157.btcentralplus.com] has joined ##stm32 2011-11-03T21:54:57 < Thorn> http://www.ebay.com/itm/ws/eBayISAPI.dll?ViewItem&item=220619908411 2011-11-03T21:55:49 <+Steffanx> F103, SRAM :( 2011-11-03T21:56:10 <+Steffanx> I prefer this one Thorn http://www.ebay.com/itm/STM32F207ZG-module-HY-STM32F2xxCore144-Core-Dev-Board-/170707449711?pt=LH_DefaultDomain_0&hash=item27bef4f76f 2011-11-03T21:56:44 <+Steffanx> It's cheaper, also SRAM, but a F2 :) 2011-11-03T21:57:53 < Laurenceb_> could that run linux? 2011-11-03T21:58:12 <+Steffanx> uclinux perhaps? 2011-11-03T21:58:54 <+Steffanx> I want a raspberry pi :) 2011-11-03T21:58:59 <+Steffanx> That one CAN run linux very well 2011-11-03T22:00:00 < Thorn> how come that cortex-a chips are advertised as starting from $5 but most boards are well beyond $100? 2011-11-03T22:00:16 <+Steffanx> SRAM is expensive? 2011-11-03T22:00:21 <+Steffanx> The board too? 2011-11-03T22:00:24 <+Steffanx> Profit? 2011-11-03T22:00:56 < Thorn> I'm 99.9% sure they use sdram. also boards are probably 4 layer 2011-11-03T22:01:10 <+Steffanx> Oh, i can't read again sorry 2011-11-03T22:01:21 <+Steffanx> cortex-a really sells for $5?! 2011-11-03T22:01:43 < Thorn> TI press releases keep repeating that 2011-11-03T22:01:50 < karlp> how do people think that double pin rows like that are breadboardable? 2011-11-03T22:01:56 <+Steffanx> Press releases :) 2011-11-03T22:02:02 < karlp> perf board perhaps 2011-11-03T22:02:02 <+Steffanx> When oyu buy 100.000? 2011-11-03T22:02:11 <+Steffanx> I HATE that too karlp 2011-11-03T22:02:26 < karlp> it's completely useless 2011-11-03T22:02:41 < karlp> it's one of the few times when arduino style sockets are more useful than the pin headers 2011-11-03T22:03:08 < Thorn> many boards come with no headers installed 2011-11-03T22:04:50 < karlp> mouser sells A8s, from freescale, but they're 35€ and up in singles 2011-11-03T22:06:23 < Laurenceb_> yeah im really annoyed my F4discovery is populated 2011-11-03T22:06:37 < Laurenceb_> double pin headers :( 2011-11-03T22:15:29 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has joined ##stm32 2011-11-03T23:04:11 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2011-11-03T23:10:40 < NonaSuomy> karlp, A: no monies B: no tools from any of them? 2011-11-03T23:17:40 < Laurenceb_> GDB working 2011-11-03T23:18:01 < Laurenceb_> XD 2011-11-03T23:21:21 < karlp> NonaSuomy: what? 2011-11-03T23:22:06 < NonaSuomy> TeknoJuce: it comes up from time to time, but I think the common answer is one of a) how much money do you have, and b) do you have any existing tools from any of them? 2011-11-03T23:33:54 < karlp> how long ago was that? what were you asking? 2011-11-03T23:35:00 < NonaSuomy> aeons ago\ 2011-11-03T23:35:27 < NonaSuomy> whats the most n00b friendly tool chain for stm32f4 development toolchains: 2011-11-03T23:35:27 < NonaSuomy> – IAR Embedded Workbench® for ARM (EWARM) by IAR Systems 2011-11-03T23:35:27 < NonaSuomy> – Microcontroller Development Kit for ARM (MDK-ARM) by Keil™ 2011-11-03T23:35:28 < NonaSuomy> – TrueSTUDIO® by Atollic 2011-11-03T23:35:30 < NonaSuomy> – TASKING VX-toolset for ARM Cortex by Altium 2011-11-03T23:36:29 < Laurenceb_> lol 2011-11-03T23:36:30 < Thorn> MDK-ARM is >$6K is it not? 2011-11-03T23:36:34 < Laurenceb_> if you are rich 2011-11-03T23:37:29 < NonaSuomy> dont get why any company would make a kit to compete with arduino and make it so convoluted and pricey to piss around with 2011-11-03T23:38:42 < Thorn> what kit is that? 2011-11-03T23:39:50 < NonaSuomy> stm32f4 2011-11-03T23:40:23 < Thorn> it's a microcontroller family, not a kit 2011-11-03T23:40:45 < NonaSuomy> stm32f4-discovery 2011-11-03T23:41:20 < NonaSuomy> discovery of the pain in your wallet apparently 2011-11-03T23:41:22 < Thorn> I really doubt it's competing with arduino 2011-11-03T23:41:41 < Tom_itx> maybe it's me but i find setting up the tools to be a pita 2011-11-03T23:42:13 < NonaSuomy> when something has a name like that seems to me like thats what they are doing 2011-11-03T23:42:13 < Tom_itx> but then i haven't tried the ones they recomended yet either 2011-11-03T23:42:36 < Thorn> I heard good things about crossworks ($150 non-commercial license) though never tried it myself 2011-11-03T23:42:38 < Tom_itx> stm32f4-Mystery 2011-11-03T23:42:40 < NonaSuomy> they should have called it stm32f4-electronicengineering 2011-11-03T23:43:24 < NonaSuomy> I have two of these now and can't do anything with them 2011-11-03T23:43:46 < NonaSuomy> the page was all butterfly's and rainbows 2011-11-03T23:43:59 < NonaSuomy> to me that doesnt screen non-n00b friendly 2011-11-03T23:44:16 < NonaSuomy> scream 2011-11-03T23:46:48 < NonaSuomy> Quote from page "The STM32F4DISCOVERY helps you to discover the STM32F4 high-performance features and to develop your applications easily. It includes everything required for beginners and experienced users to get started quickly. " 2011-11-03T23:47:11 < NonaSuomy> it included nothing but the board 2011-11-03T23:48:47 < grummund> send it back for a refund 2011-11-03T23:49:17 < NonaSuomy> i want to use it though just dont know how when alls they did was list those tools that are fortunes 2011-11-03T23:50:44 < NonaSuomy> it didnt even include any usb cables which it requires both a mini usb and a micro usb to utilize it 2011-11-03T23:50:45 < Thorn> well makefiles work too, and the actual toolchain is free 2011-11-03T23:52:27 < NonaSuomy> where do you get the ST-Link/V2 driver 2011-11-03T23:52:51 < karlp> if you're on windows, like they expected everyone to be, there's a stlink tool on their website that can flash things 2011-11-03T23:52:59 < karlp> they link to promo versions of the windows tools 2011-11-03T23:53:08 < karlp> you only need one usb mini cable 2011-11-03T23:53:11 < NonaSuomy> I plug it in and it askes for that, but when I read the documentation it says you need to download one of those expensive packages 2011-11-03T23:53:25 < karlp> and if you don't have a usb mini lying around, what have you been doing with the last 10 years? 2011-11-03T23:54:05 < NonaSuomy> it has mini on the left side and micro on the right side 2011-11-03T23:54:15 < karlp> right, but only one of them is for programming and power 2011-11-03T23:54:22 < karlp> the other is because it's a USB OTG device. 2011-11-03T23:55:10 < NonaSuomy> so do you know a link to get the driver for the mini st-link/v2 driver? yet to find it on there site 2011-11-03T23:56:28 < NonaSuomy> as when I plug in the mini cable it fails to install the driver for the embedded st-link/v2 2011-11-03T23:58:25 < karlp> http://www.st.com/internet/com/SOFTWARE_RESOURCES/TOOL/DEVICE_PROGRAMMER/um0892.zip 2011-11-03T23:58:48 < NonaSuomy> Page Not Found - 404 Server error 2011-11-03T23:59:02 < karlp> http://www.st.com/internet/evalboard/product/219866.jsp 2011-11-03T23:59:13 < karlp> you might want the drivers downt he bottom --- Day changed Fri Nov 04 2011 2011-11-04T00:00:53 < NonaSuomy> hmm windows xp that might have bad news written all over it 2011-11-04T00:01:12 * karlp shrugs 2011-11-04T00:01:15 < NonaSuomy> wonder if that /v2 might be different 2011-11-04T00:01:17 < karlp> I'm not on windows 2011-11-04T00:02:04 < Laurenceb_> ive just got F4discovery working on ubuntu 2011-11-04T00:02:11 < Laurenceb_> with SWD 2011-11-04T00:02:35 < karlp> f4 on linux should work ok. 2011-11-04T00:02:40 < Laurenceb_> it does 2011-11-04T00:03:00 < karlp> how are you connected again? directly to the SWD pins on PA13 and 14 or something? 2011-11-04T00:03:12 < Thorn> Laurenceb_: what hardware/software do you use for swd? 2011-11-04T00:03:22 < Laurenceb_> just the board 2011-11-04T00:03:40 < karlp> yeah, the onboard stlinkv2 should work just fine with texane's stlink on ubuntu 2011-11-04T00:03:42 < Laurenceb_> im using the texane code from github, then GDB from codesourcery and nemiver 2011-11-04T00:03:56 < karlp> some people are saying there's problems with flashing though 2011-11-04T00:04:06 < Laurenceb_> havent tried yet 2011-11-04T00:04:19 < Laurenceb_> wait.. i never setup the correct GDB in nemiver 2011-11-04T00:04:20 < Laurenceb_> odd 2011-11-04T00:05:24 < Laurenceb_> yeah its using standard gdb 2011-11-04T00:05:39 < karlp> standard gdb, as in arm-none-eabi-gdb? 2011-11-04T00:07:37 < grummund> /usr/lib/gcc/arm-elf/4.5.2/../../../../arm-elf/bin/ld: error: ../../Libraries/CMSIS/CM3/DeviceSupport/ST/STM32F10x/startup/TrueSTUDIO/startup_stm32f10x_md.o uses hardware FP, whereas vcomdemo.elf uses software FP 2011-11-04T00:07:38 < Laurenceb_> /usr/bin/gdb 2011-11-04T00:08:03 < Laurenceb_> ill need to set that up if im to do proper debugging 2011-11-04T00:08:07 < karlp> /usr/bin/gdb won't work with the gdbserver provided in stlink. 2011-11-04T00:08:33 * grummund has seen this error before but can't remember what the probem is 2011-11-04T00:08:47 < karlp> grummund: wrong arch targets? 2011-11-04T00:08:55 < NonaSuomy> so if I run a ubuntu build it will pick up the st-link right away? 2011-11-04T00:09:01 < NonaSuomy> over mini usb? 2011-11-04T00:09:35 < Laurenceb_> hmm wtf 2011-11-04T00:09:47 < Laurenceb_> its certainly working 2011-11-04T00:09:58 -!- district [district@2607:f2f8:20c0::69] has joined ##stm32 2011-11-04T00:10:02 < Laurenceb_> but i can see /usr/bin/gdb has been started by nemiver 2011-11-04T00:10:04 < karlp> odd. 2011-11-04T00:10:22 < Laurenceb_> doesnt look like i can configure which gdb 2011-11-04T00:10:29 < karlp> perhaps your usr/bin/gdb has some magical multiarch stuff mine oesn't have 2011-11-04T00:10:40 < Laurenceb_> atm im just mucking about with the registers and stuff 2011-11-04T00:10:45 < grummund> karlp: something like that 2011-11-04T00:10:46 < Laurenceb_> havent tried reflashing it 2011-11-04T00:10:52 < Laurenceb_> its working fine 2011-11-04T00:10:56 < karlp> if I try and use normal gdb it goes pearshaped trying to read the arm.elf file and expected x86 registers 2011-11-04T00:11:07 < karlp> so you can load things like the blink.elf and run from SRAM? 2011-11-04T00:11:14 < Laurenceb_> hmm but some of my register names are wrong 2011-11-04T00:11:20 < Laurenceb_> havent tried 2011-11-04T00:11:28 < NonaSuomy> aye theres the windows 7 driver http://www.st.com/internet/evalboard/product/251168.jsp 2011-11-04T00:11:32 < Laurenceb_> its definately thinking its x86 i think 2011-11-04T00:12:02 < Laurenceb_> doesnt look like nemiver has an option to configure which gdb :( 2011-11-04T00:12:36 < BrainDamage> edit -> preferences -> debugger -> gdb binart 2011-11-04T00:19:47 < grummund> you need a matching gdb for the toolchain 2011-11-04T00:28:54 < NonaSuomy> STMicroelectronics STLink dongle Ready to use 2011-11-04T00:29:34 < Tom_itx> they made a board for hackers and gave it away to us but what they failed to realize was most of the hackers use linux 2011-11-04T00:30:29 < Tom_itx> at least when motorola sent me an eval board i got a CD AND serial cable with it 2011-11-04T00:30:39 < Tom_itx> i kept the cable and tossed the rest 2011-11-04T00:30:53 < Tom_itx> i didn't even get a cable to keep with this 2011-11-04T00:31:02 < Laurenceb_> oh dear 2011-11-04T00:31:20 < Laurenceb_> ubuntu dependency hell 2011-11-04T00:31:30 < Laurenceb_> i cant upgrade nemiver 2011-11-04T00:31:35 < Tom_itx> Laurenceb do you have a working toolchain? 2011-11-04T00:32:25 < Laurenceb_> yes 2011-11-04T00:32:37 < Laurenceb_> codesourcery - nice and simple 2011-11-04T00:32:39 < Tom_itx> you should post what you did somewhere 2011-11-04T00:32:48 < Laurenceb_> linker scripts and stuff are epic pita 2011-11-04T00:32:52 < Tom_itx> from Mentor Graphics? 2011-11-04T00:32:59 < Laurenceb_> its on my github - search for Laurenceb 2011-11-04T00:33:00 < Laurenceb_> yes 2011-11-04T00:33:20 < Tom_itx> i installed that 2011-11-04T00:33:29 * karlp grumbles about stupid stupid usb mass storage 2011-11-04T00:33:46 < Tom_itx> good thing christmas is coming up soon 2011-11-04T00:33:57 < Tom_itx> i can at least hang it on the tree and watch the leds blink 2011-11-04T00:34:14 <+Steffanx> :P 2011-11-04T00:34:22 < Laurenceb_> haha 2011-11-04T00:34:26 <+Steffanx> Get a tree with a usb port Tom_itx 2011-11-04T00:34:32 < Laurenceb_> yeah theres _way_ too many flashing leds 2011-11-04T00:34:48 < grummund> lol Tom_itx 2011-11-04T00:34:59 < Laurenceb_> looks like and arduinogasm 2011-11-04T00:35:30 < Tom_itx> i haven't given up, just noting frustration with an introductory tool 2011-11-04T00:35:42 * grummund spent days getting the toolchain to run, no reason it should be easier for anyone else :P 2011-11-04T00:35:52 < Laurenceb_> when i was an undergrad my uni put flashing blue leds all over the front entrance :( 2011-11-04T00:35:58 <+Steffanx> :) 2011-11-04T00:36:09 < grummund> Tom_itx: which toolchain do you have? 2011-11-04T00:36:15 <+Steffanx> Poor you Laurenceb 2011-11-04T00:36:17 < Tom_itx> several :) 2011-11-04T00:36:34 < Tom_itx> grummund, i downloaded the Mentor Graphics and installed it 2011-11-04T00:36:45 < Tom_itx> and was trying to interface it with eclipse 2011-11-04T00:36:51 < karlp> I think it's more that the rest of the tools, like the linker scripts and stdlibs, are no-where near as easy to use, unified and well documented as say, avr-libc 2011-11-04T00:37:24 < Tom_itx> https://sites.google.com/site/stm32discovery/open-source-development-with-the-stm32-discovery/setting-up-eclipse-for-stm32-discovery-development 2011-11-04T00:37:31 < Tom_itx> grummund using that as a somewhat guide 2011-11-04T00:37:49 < grummund> Tom_itx: what IDE do you use for avr? 2011-11-04T00:37:53 < Laurenceb_> just install codesourcery 2011-11-04T00:38:01 < Laurenceb_> then grab my github and try making 2011-11-04T00:38:05 < Tom_itx> grummund, i use notepad 2011-11-04T00:38:06 < Tom_itx> and make 2011-11-04T00:38:12 < grummund> use that then 2011-11-04T00:38:15 < Tom_itx> but i don't have a good make for this yet 2011-11-04T00:38:21 < BrainDamage> under arch, I just installed the gnu arm eabi, and gave me gcc 4.6 2011-11-04T00:38:31 < Tom_itx> and studio for debugging once in a great while 2011-11-04T00:38:34 < BrainDamage> err, arm eab none 2011-11-04T00:38:35 < BrainDamage> sorry 2011-11-04T00:38:42 < BrainDamage> the gnu one is for targeting linux 2011-11-04T00:40:22 < karlp> hmm, I thought I was making progress. Yesterday I could only send a single request to the stlinkv1 on the VL board, before having to unplug and replug. 2011-11-04T00:40:30 < karlp> Now I can send more, but only "version" and "status" 2011-11-04T00:40:39 <+Steffanx> Waow! 2011-11-04T00:40:40 < BrainDamage> your code? 2011-11-04T00:40:40 < karlp> any attempt to leave DFU mode just fails. 2011-11-04T00:41:17 < karlp> this is trying to remove the sg-utils dependency from stlink, so it works on OSX as well. 2011-11-04T00:41:23 < karlp> giving me some headaches :| 2011-11-04T00:41:58 < karlp> doesn't help that I didn't write the original code, so I don't know where some of the magic is coming from. 2011-11-04T00:42:13 < grummund> Tom_itx: so you have sample code, but no Makefile? 2011-11-04T00:42:23 < Tom_itx> i have their sample code 2011-11-04T00:42:29 < Tom_itx> i'm sure they have makefiles 2011-11-04T00:42:46 < Tom_itx> but likely set up for windows tools 2011-11-04T00:43:08 < NonaSuomy> 18:35:43 : Connected via SWD. 2011-11-04T00:43:08 < NonaSuomy> 18:35:43 : Device ID:0x411 2011-11-04T00:43:08 < NonaSuomy> 18:35:43 : Device family :STM32F4xx 2011-11-04T00:46:58 < karlp> oh, hmm. I wonder if it's because I told usb-storage to ignore the device 2011-11-04T00:47:00 < karlp> blah 2011-11-04T00:47:31 < Tom_itx> anybody use summon-arm-toolchain? 2011-11-04T00:49:10 < karlp> yeah, 2011-11-04T00:49:13 < karlp> worked just fine for me 2011-11-04T00:49:16 < karlp> takes a while though 2011-11-04T00:49:49 < Tom_itx> show me one that doesn't 2011-11-04T00:49:51 < Tom_itx> :) 2011-11-04T00:49:58 < grummund> anyone have an idea why this is failing to link? - http://pastebin.com/TWXsDKhh 2011-11-04T00:51:00 < Laurenceb_> off to insight i go 2011-11-04T00:51:32 < Laurenceb_> no way nemiver to work 2011-11-04T00:52:06 <+Steffanx> "uses hardware FP, whereas vcomdemo.elf uses software FP" I had that problem too and i've no idea to fix it grummund 2011-11-04T00:54:59 < karlp> grummund: try "gcc" -dumpspecs, and look at th eline for multilib_defaults: 2011-11-04T00:56:00 < grummund> Steffanx: did you use -nostartfiles, it fixed the error for me before. 2011-11-04T01:00:43 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has quit [Read error: Connection reset by peer] 2011-11-04T01:00:56 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has joined ##stm32 2011-11-04T01:02:57 < grummund> ~$ arm-elf-gcc -dumpspecs | grep -A2 multilib_defaults 2011-11-04T01:02:57 < grummund> *multilib_defaults: 2011-11-04T01:03:01 < grummund> marm mlittle-endian msoft-float mno-thumb-interwork fno-leading-underscore 2011-11-04T01:05:17 < karlp> yeah, same as mine. 2011-11-04T01:05:22 < grummund> btw, the same toolchain and makefile worked ok for a simple led blinker 2011-11-04T01:05:22 * karlp shrugs 2011-11-04T01:05:38 < karlp> I was reading something just recently about how the hard/soft float stuff all played together 2011-11-04T01:05:44 < karlp> code sourcery faq item I think? 2011-11-04T01:06:22 <+Steffanx> http://www.youtube.com/watch?v=VzNzylF33HM (shameless offtopic link :P ) 2011-11-04T01:07:11 * grummund suspects the problem is it's trying to link with glibc instead of newlib 2011-11-04T01:07:23 < karlp> thanks Steffanx :) 2011-11-04T01:07:32 < karlp> ooooh yeah. 2011-11-04T01:10:06 < karlp> grummund: this is the page I was reading, but it seems to imply that if you have a "recent" gcc, with proper EABI, this should "just work" 2011-11-04T01:10:09 < karlp> http://wiki.debian.org/ArmEabiPort 2011-11-04T01:11:30 < karlp> Steffanx: who is this blue shirt long hair girl? 2011-11-04T01:11:42 < karlp> all the videos are so short! 2011-11-04T01:14:05 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 240 seconds] 2011-11-04T01:23:45 < grummund> fantastic, i was using startup.s from truestudio to match the linker script from truestudio, but it seems i need startup.s from gcc_ride7 2011-11-04T01:24:04 < grummund> so now it compiles *and* links :) 2011-11-04T01:24:18 < grummund> mission accomplished (for today) 2011-11-04T01:27:53 < karlp> and the channel learns :) 2011-11-04T01:31:03 < karlp> also, hooray! http://pastebin.com/Cr0nGffZ 2011-11-04T01:31:07 < karlp> progress! 2011-11-04T01:32:04 < Laurenceb_> hmm insight is a a version of gdb 2011-11-04T01:32:08 < Laurenceb_> very annoying 2011-11-04T01:40:26 -!- phantone [~destroy@a95-92-92-79.cpe.netcabo.pt] has joined ##stm32 2011-11-04T01:43:24 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has quit [Ping timeout: 240 seconds] 2011-11-04T01:55:27 < Laurenceb_> oh hell yeah 2011-11-04T01:55:30 < Laurenceb_> https://launchpad.net/~gezakovacs/+archive/nemiver 2011-11-04T01:55:39 < Laurenceb_> that worked on ubuntu 10.04LTS 2011-11-04T01:55:52 < Laurenceb_> nemiver is working now with correct gdb 2011-11-04T01:58:38 < Laurenceb_> yeah registers are sane nowq 2011-11-04T01:59:38 < Laurenceb_> i spent ages trying ddd and insight 2011-11-04T01:59:47 < Laurenceb_> this is best by far 2011-11-04T02:07:23 < karlp> was probably bugs in the old v0.7 that was on 10.04. 2011-11-04T02:07:31 < karlp> that actually looks pretty, I might try that out :) 2011-11-04T02:08:44 < Laurenceb_> got 0.8.2 working now 2011-11-04T02:08:49 < Laurenceb_> ram dump works XD 2011-11-04T02:09:20 < Laurenceb_> im not sure if load executable or core file will work 2011-11-04T02:09:44 < Laurenceb_> i need to know what the do first 2011-11-04T02:11:20 < Tom_itx> is that debugger? 2011-11-04T02:12:30 < Laurenceb_> yes 2011-11-04T02:12:36 < BrainDamage> gdb interface 2011-11-04T02:12:40 < karlp> Laurenceb_: you should be able to just "tar ext :4242" 2011-11-04T02:12:44 < karlp> then load blah.elf 2011-11-04T02:12:57 < Laurenceb_> i should probably make some .bins i know wont fry anything on the board 2011-11-04T02:12:59 < karlp> _if_ the linker maps were set up properly, the gdbserver knows what to do. 2011-11-04T02:13:11 < karlp> there's some nice safe ones in the stlink/examples directory :) 2011-11-04T02:13:16 < karlp> they run from sram by default :) 2011-11-04T02:14:21 < Laurenceb_> for F4 board? 2011-11-04T02:15:04 < karlp> I hope so, but I don't have an f4 board 2011-11-04T02:15:21 < karlp> given that people were complainint that it doesn't write to flash for F4 anyway, it should be safe :) 2011-11-04T02:15:21 < Laurenceb_> i dont think i should try this XD 2011-11-04T02:15:38 < karlp> blink does, 2011-11-04T02:15:42 < Laurenceb_> well serial it is then 2011-11-04T02:15:42 < karlp> that's the example I've used the most 2011-11-04T02:15:54 < karlp> serial? 2011-11-04T02:16:02 < Laurenceb_> o.bin in /blink? 2011-11-04T02:16:06 < Laurenceb_> serial bootloader 2011-11-04T02:16:10 < karlp> no, run make 2011-11-04T02:16:12 < Laurenceb_> theres python code for that 2011-11-04T02:16:13 < karlp> you should get a blink.elf 2011-11-04T02:16:27 < karlp> o.bin ha sbeen removed in my tree at least 2011-11-04T02:16:30 < Laurenceb_> not sure i have the F4 toolchain setup yet 2011-11-04T02:16:53 < karlp> it's the same 2011-11-04T02:17:27 < Laurenceb_> arm-none-eabi-gcc -g -O2 -mlittle-endian -mthumb -ffreestanding -nostdlib -nostdinc -Wl,-Ttext,0x20000000 -Wl,-e,0x20000000 main.c -o blink.elf 2011-11-04T02:17:27 < Laurenceb_> main.c:86:2: error: #error "Architecture must be defined!" 2011-11-04T02:17:37 < Laurenceb_> odd 2011-11-04T02:17:38 < karlp> I don't suppose anyone here knows how to make netbeans ctrl-click through function pointers? 2011-11-04T02:17:49 < karlp> make CONFIG_STM32F4_BLAH or something 2011-11-04T02:17:53 < karlp> the names are in the makefile 2011-11-04T02:18:06 < karlp> in my tree I just let you press "make" and it builds all three, as they are so simple 2011-11-04T02:18:25 < Laurenceb_> oh 2011-11-04T02:19:14 < Tom_itx> ok time for opinions. which is better for windows? IAR or Keil? 2011-11-04T02:21:06 < Laurenceb_> how do i pass the arguments to make? 2011-11-04T02:21:27 < BrainDamage> edit the makefile 2011-11-04T02:21:37 < BrainDamage> or the makefile variables? 2011-11-04T02:21:45 < Laurenceb_> CONFIG_STM32F4_DISCOVERY needs to be defined 2011-11-04T02:21:47 < BrainDamage> then just make variable=1 2011-11-04T02:21:51 < Laurenceb_> but i suck at makefiles 2011-11-04T02:21:53 < Laurenceb_> ok 2011-11-04T02:21:57 < BrainDamage> make CONFIG_STM32F4_DISCOVERY=1 2011-11-04T02:22:34 < Laurenceb_> main.c:1:0: error: bad value (cortex-m4) for -mcpu= switch 2011-11-04T02:22:44 < Laurenceb_> i think i need to upgrade codesourcery 2011-11-04T02:23:04 < Laurenceb_> its does support M4, but i have an version thats over a year old 2011-11-04T02:23:19 < BrainDamage> since I assume you're using linux 2011-11-04T02:23:31 < BrainDamage> why not just use summon arm toolchain? 2011-11-04T02:23:36 < BrainDamage> just let it grind for a while 2011-11-04T02:24:25 < Laurenceb_> isnt that different to codesourcery? 2011-11-04T02:24:34 < Laurenceb_> codesourcery has a nice math lib 2011-11-04T02:24:46 < BrainDamage> yes, it's normal gcc 2011-11-04T02:24:57 < BrainDamage> with minimal patches 2011-11-04T02:25:28 < Laurenceb_> hmm 2011-11-04T02:26:21 < Laurenceb_> i dont want to screw up my F1 projects 2011-11-04T02:26:30 < Laurenceb_> well here goes... 2011-11-04T02:28:14 < Laurenceb_> blerg its not simple 2011-11-04T02:28:23 < Laurenceb_> im going to sleep and try this tomorrow :P 2011-11-04T02:28:26 < Tom_itx> well document it 2011-11-04T02:28:41 * Laurenceb_ zzz 2011-11-04T02:28:42 < Tom_itx> i downloaded the files 2011-11-04T02:28:48 < Tom_itx> but i'm sitting on em 2011-11-04T02:33:19 -!- Laurenceb_ [~Laurence@host109-157-38-126.range109-157.btcentralplus.com] has quit [Ping timeout: 248 seconds] 2011-11-04T02:41:21 -!- phantone [~destroy@a95-92-92-79.cpe.netcabo.pt] has quit [] 2011-11-04T02:44:37 -!- Thorn__ [~Thorn@93-81-4-188.broadband.corbina.ru] has joined ##stm32 2011-11-04T02:44:37 -!- Thorn__ [~Thorn@93-81-4-188.broadband.corbina.ru] has quit [Changing host] 2011-11-04T02:44:38 -!- Thorn__ [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-04T02:45:04 < karlp> sweet, writemem32 works now too 2011-11-04T02:46:02 < karlp> seriously, for clean linux/debian, summon-arm-toolchain "just works" 2011-11-04T02:46:21 < Tom_itx> got a good makefile for it? 2011-11-04T02:46:33 < karlp> depends what you want to do :) 2011-11-04T02:46:49 < karlp> I've only got the code in the stlink examples. 2011-11-04T02:46:57 < karlp> I'm assuming you're looking for more :) 2011-11-04T02:47:09 < Tom_itx> i've got the st examples 2011-11-04T02:47:31 < karlp> depending on how old they were, lots of them are miserable to try and compile with gcc 2011-11-04T02:47:39 < karlp> some of their newer examples seem to actually support gcc 2011-11-04T02:47:40 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 252 seconds] 2011-11-04T02:48:03 < karlp> and that's completely unsubstantiated gross generalistions. 2011-11-04T02:48:11 < karlp> my english teacher would be disgusted 2011-11-04T02:48:27 < Tom_itx> but you're Au anyway 2011-11-04T02:49:17 < karlp> I was talking about my claims on ST code :) 2011-11-04T02:51:26 < BrainDamage> why why why stlink v1 has to be so shitty 2011-11-04T02:52:24 < BrainDamage> it's 3 mins it's plugged, and no /dev/sg* yet :/ 2011-11-04T03:08:52 < karlp> not any more! 2011-11-04T03:09:00 < karlp> give me three minutes to cleean up the debugging 2011-11-04T03:09:05 < karlp> I just finished testing it out 2011-11-04T03:09:17 < karlp> you can now just add a quirk to usb-storage to completely ignore it, 2011-11-04T03:09:23 < karlp> and it plugs and goes beautifully now 2011-11-04T03:09:49 < karlp> https://github.com/karlp/stlink/tree/killsg if you're really impatient 2011-11-04T03:10:10 < karlp> otherwise another half hour or so and I'll finish tidying up the documentation and debug output 2011-11-04T03:10:23 < BrainDamage> it started now 2011-11-04T03:10:38 < BrainDamage> I reloaded usb storage module with the quirk 2011-11-04T03:11:38 < karlp> which quirk? 2011-11-04T03:11:57 < BrainDamage> the one suggested in the stlink repo page 2011-11-04T03:12:07 < BrainDamage> also, I'm afraid I crippled my board Could not write register "orig_eax"; remote failure reply 'E00' 2011-11-04T03:12:19 < karlp> that's from using a x86 gbd 2011-11-04T03:12:25 < karlp> there's no eax on arm 2011-11-04T03:12:48 < karlp> common mistake, and the docs need to make that reallllly loud and clear 2011-11-04T03:12:54 < BrainDamage> oh crap 2011-11-04T03:13:01 < BrainDamage> I know I need to use the arm on 2011-11-04T03:13:08 < BrainDamage> I just autocomplete-failed 2011-11-04T03:20:58 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-04T03:24:08 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 244 seconds] 2011-11-04T03:24:20 -!- Tom_L is now known as Tom_itx 2011-11-04T03:58:40 -!- AaronM [~Aaron@adsl-74-226-73-245.mem.bellsouth.net] has joined ##stm32 2011-11-04T03:58:40 -!- AaronM [~Aaron@adsl-74-226-73-245.mem.bellsouth.net] has quit [Changing host] 2011-11-04T03:58:40 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has joined ##stm32 2011-11-04T04:18:41 < BrainDamage> mmm, trying to flash the examples in stlink 2011-11-04T04:18:46 < BrainDamage> sorry, flash to ram 2011-11-04T04:19:00 < BrainDamage> (gdb) load blink.elf 2011-11-04T04:19:00 < BrainDamage> Loading section .text, size 0x40 lma 0x20000000 2011-11-04T04:19:01 < BrainDamage> Start address 0x20000000, load size 64 2011-11-04T04:19:01 < BrainDamage> Cannot access memory at address 0xfffffffe 2011-11-04T04:23:46 < karlp> what board? 2011-11-04T04:23:50 < karlp> which stlink? 2011-11-04T04:24:43 < BrainDamage> vl32 discovery, v1 2011-11-04T04:25:19 < BrainDamage> I accidentally wiped my whole flash tough, did that cripple it? 2011-11-04T04:25:52 < karlp> shouldn't 2011-11-04T04:26:53 < BrainDamage> make CONFIG_STM32VL_DISCOVERY=1 2011-11-04T04:26:53 < BrainDamage> arm-none-eabi-gcc -g -O2 -mlittle-endian -mthumb -mcpu=cortex-m3 -DCONFIG_STM32VL_DISCOVERY=1 -ffreestanding -nostdlib -nostdinc -Wl,-Ttext,0x20000000 -Wl,-e,0x20000000 main.c -o blink.elf 2011-11-04T04:26:53 < BrainDamage> arm-none-eabi-objcopy -O binary blink.elf blink.bin 2011-11-04T04:27:24 < BrainDamage> arm-none-eabi-gdb 2011-11-04T04:27:39 < BrainDamage> (gdb) target extended localhost:4242 2011-11-04T04:27:39 < BrainDamage> Remote debugging using localhost:4242 2011-11-04T04:27:39 < BrainDamage> 0xfffffffe in ?? () 2011-11-04T04:27:58 < BrainDamage> (gdb) load blink.elf 2011-11-04T04:27:58 < BrainDamage> Loading section .text, size 0x40 lma 0x20000000 2011-11-04T04:27:58 < BrainDamage> Start address 0x20000000, load size 64 2011-11-04T04:27:58 < BrainDamage> Cannot access memory at address 0xfffffffe 2011-11-04T04:27:59 < BrainDamage> :/ 2011-11-04T04:28:28 < karlp> hmm, you're still using the current texane code, with sg-utils. 2011-11-04T04:28:49 < karlp> nearly finished with the docs :) 2011-11-04T04:28:53 < BrainDamage> yup 2011-11-04T04:29:05 < BrainDamage> I tried both latest & an old version 2011-11-04T04:29:22 < karlp> https://github.com/karlp/stlink/tree/killsg ? 2011-11-04T04:29:36 < karlp> that's the current latest and greatest for VL boards 2011-11-04T04:29:43 < karlp> for L and F4, texane should be fine 2011-11-04T04:30:39 -!- zlog [~zlog@ip68-102-109-205.ks.ok.cox.net] has quit [Ping timeout: 248 seconds] 2011-11-04T04:31:31 < BrainDamage> k, I'll give it a stab 2011-11-04T04:32:09 < karlp> ok, 2011-11-04T04:32:24 < karlp> as of 2 minutes ago, https://github.com/karlp/stlink (my master) has the latest and greatest for VL boards 2011-11-04T04:32:39 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 260 seconds] 2011-11-04T04:32:47 < karlp> with an updated README, updated modprobe.conf files, updated udev.rules files, and an updated tutorial.pdf 2011-11-04T04:34:45 < BrainDamage> kk 2011-11-04T04:35:06 -!- zlog [~zlog@ip68-102-109-205.ks.ok.cox.net] has joined ##stm32 2011-11-04T04:35:14 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-04T04:35:55 -!- zlog [~zlog@ip68-102-109-205.ks.ok.cox.net] has quit [Remote host closed the connection] 2011-11-04T04:36:14 -!- zlog [~zlog@ip68-102-109-205.ks.ok.cox.net] has joined ##stm32 2011-11-04T04:41:37 < BrainDamage> ok, after I installed udev rules, unless I pass -1, it doesn't reckognize it's a v1 2011-11-04T04:42:44 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has quit [Quit: Quit] 2011-11-04T04:42:45 < BrainDamage> loading the code loads, running runs, blinking doesn't :/ 2011-11-04T04:42:52 < BrainDamage> (gdb) load blink.elf 2011-11-04T04:42:52 < BrainDamage> Loading section .text, size 0x40 lma 0x20000000 2011-11-04T04:42:52 < BrainDamage> Start address 0x20000000, load size 64 2011-11-04T04:42:52 < BrainDamage> Transfer rate: 831 bytes/sec, 64 bytes/write. 2011-11-04T04:42:52 < BrainDamage> (gdb) continue 2011-11-04T04:42:53 < BrainDamage> Continuing. 2011-11-04T04:43:51 < BrainDamage> returning tag keeps incrasing in st-link 2011-11-04T04:44:01 < BrainDamage> and stlink led flashes 2011-11-04T04:44:07 < BrainDamage> but not the other chip's 2011-11-04T04:44:53 < BrainDamage> mmm, the quartz in the F101 looks a bit wobbly, is it same there, or has it been damaged? 2011-11-04T04:45:06 * karlp shrugs 2011-11-04T04:46:00 < BrainDamage> thanks for the help so far btw 2011-11-04T04:46:33 < karlp> I haven't done much of actual help :) 2011-11-04T04:47:12 < BrainDamage> can you tell me if the quartz on the F101 rocks back & forth visibly there if you touch with your finger? :p 2011-11-04T04:48:04 < karlp> on the "discovery" portion of the board you mean? yeah 2011-11-04T04:48:08 < karlp> it's mounted high, and it wobbles 2011-11-04T04:48:45 < BrainDamage> ok, so it's not a mechanical failure here :/ 2011-11-04T04:51:55 < karlp> ok, time fo rme to have been in bed. 2011-11-04T04:53:49 < BrainDamage> good night 2011-11-04T04:53:54 < BrainDamage> one thing: 2011-11-04T04:54:07 < BrainDamage> please add the force v1 functionality to the flash utility too 2011-11-04T04:54:18 < BrainDamage> since it seems to fail to reckognize it's a v1 as well 2011-11-04T04:55:28 < karlp> yeah, I want to just get rid of that separate file anyway 2011-11-04T04:55:37 < karlp> just make it an different optiot to st-util 2011-11-04T04:57:01 < karlp> so st-util [-1] for gdb server, and st-util [-1] -W filename | -R
[-L lenght] 2011-11-04T04:57:11 < BrainDamage> works for me 2011-11-04T04:57:33 < karlp> one less set of things to build, and have duplicate detection stuff and flash memory mapping 2011-11-04T04:57:41 < Tom_itx> will stlink save hex from the board to file? 2011-11-04T04:57:53 < karlp> it saves a binary at the moment, 2011-11-04T04:58:04 < karlp> not sure much about what restrictions it has 2011-11-04T04:58:05 < Tom_itx> what about IAR or Keil? 2011-11-04T04:58:13 < karlp> to be honest I haven't looked at the flash stuff much 2011-11-04T04:58:33 < karlp> I wanted to get them working, (the VL board was annoying me) 2011-11-04T04:58:35 < Tom_itx> i wanted to save the demo hex before i screw something up 2011-11-04T04:58:56 < karlp> my next plans are to be able to _rebuild_ the "demo" code, from the example code provided by ST, 2011-11-04T04:59:10 < karlp> to run in SRAM, to verify that I can rebuild all their examples 2011-11-04T04:59:19 < karlp> when that works I'll be more inclined to look at flash stuff 2011-11-04T04:59:29 < Tom_itx> mkay 2011-11-04T04:59:49 < karlp> anyway, I've learnt far more about scsi pass through and usb mass storage this week than I ever really wanted to know, and it's far far too late at night (again) 2011-11-04T05:00:15 < karlp> I would be interested to hear how anyone goes with my code on VL boards though. (SRAM only) 2011-11-04T05:00:18 * karlp wav4es 2011-11-04T05:00:39 < BrainDamage> good night 2011-11-04T05:00:43 < Tom_itx> later 2011-11-04T05:48:58 -!- ziph [~ziph@office.bitplantation.com] has quit [Quit: ziph] 2011-11-04T08:52:49 -!- Thorn__ is now known as Thorn 2011-11-04T11:20:09 -!- Laurenceb_ [~Laurence@host109-157-38-126.range109-157.btcentralplus.com] has joined ##stm32 2011-11-04T12:01:14 < Thorn> ARM should have published a single reference manual for all v7 architectures. it would be called ARM-v7A/R/M ARM. 2011-11-04T12:16:15 -!- Laurenceb_ [~Laurence@host109-157-38-126.range109-157.btcentralplus.com] has quit [Ping timeout: 248 seconds] 2011-11-04T12:17:29 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-04T12:17:32 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-04T14:07:02 < karlp> woops, overslept 2011-11-04T14:07:43 <+Steffanx> No boss who complains? 2011-11-04T14:10:02 < Thorn> http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=IMX53QSB cortex-a8, 1Gb RAM, sata 2011-11-04T14:11:55 < karlp> well, I said I was going to have some things done by this afternoon in time for beer and pizza and darts, 2011-11-04T14:11:56 < Laurenceb> does codesourcery have its own math lib? 2011-11-04T14:12:01 < karlp> but now it's going to be close :) 2011-11-04T14:12:11 < karlp> and I still wanted to look at funny things on the web 2011-11-04T14:15:49 <+Steffanx> Whoa, only 149$ Thorn :) 2011-11-04T14:16:25 < Thorn> that's close to beagleboard-xm 2011-11-04T14:16:39 <+Steffanx> And pandaboard 2011-11-04T14:16:59 <+Steffanx> The pandaboard has a multi-core though 2011-11-04T14:17:20 < Thorn> I think this one has better peripherals 2011-11-04T14:17:35 < Laurenceb> pedoboard 2011-11-04T14:17:51 <+Steffanx> Even hdmi 2011-11-04T14:19:07 < Thorn> the freescale i.mx family is interesting in general 2011-11-04T14:19:27 < Thorn> there's also a nvidia tegra dev kit but its price is not humane 2011-11-04T14:19:43 <+Steffanx> Uhm Laurenceb ?! 2011-11-04T14:21:16 < Laurenceb> its the new version of bearboard 2011-11-04T14:30:25 < BrainDamage> not to be sold to the over 12 2011-11-04T14:31:50 < Thorn> ah, I get it. it's the internal code name for arduino 2011-11-04T15:00:59 < Thorn> http://www.actel.com/products/smartfusion/default.aspx 2011-11-04T15:53:40 < district> the markup on those freescale boards is ridiculous in europe :( 2011-11-04T15:54:19 < district> also, why does that lcd cost $350?! 2011-11-04T15:54:55 <+Steffanx> Oh, 149$ without the LCD 2011-11-04T15:55:21 < district> yeah 2011-11-04T15:55:30 <+Steffanx> Pff, that makes it less interesting 2011-11-04T15:55:34 < district> exactly :( 2011-11-04T15:55:51 <+Steffanx> Marketing :9 2011-11-04T15:56:13 < district> LCDs are just ridiculously expensive unless you get them from china on ebay 2011-11-04T15:56:23 < district> (ones that have proper data sheets) 2011-11-04T15:56:56 <+Steffanx> The PSP LCD's are nice and pretty cheap 2011-11-04T15:57:03 < district> they have specs? 2011-11-04T15:57:10 < district> i'm sure i considered that before but was put off for some reason 2011-11-04T15:57:44 <+Steffanx> The screen resolution is quite low 2011-11-04T15:57:59 <+Steffanx> 480 x 272 full colour 2011-11-04T15:58:06 < district> oh, yeah :/ 2011-11-04T15:58:41 < Thorn> it's got hdmi & lvds 2011-11-04T15:59:28 < district> sure but like you said earlier, it's not really any different to a beagleboard xm in price and specs 2011-11-04T15:59:48 < district> and presumably no dsp either, which is good fun 2011-11-04T16:01:02 < Thorn> beagleboard has some quirks like ethernet connected via usb 2011-11-04T16:03:08 < district> hmmm, what's that "hdmi card" version? 2011-11-04T16:03:15 < district> (the $49 one) 2011-11-04T16:04:25 < district> oh is that just an add-on? 2011-11-04T16:05:30 < district> ... yep :( 2011-11-04T16:06:06 < Thorn> ah correct, it's got vga onboard 2011-11-04T16:07:11 < district> i am quite tempted by the starter kit though 2011-11-04T16:10:44 < district> urgh, spi/i2c is on the hdmi card 2011-11-04T16:30:57 <+Steffanx> That new beaglebone looks nice 2011-11-04T16:31:05 < district> yeah it's tiny 2011-11-04T16:31:06 <+Steffanx> As in .. small :) 2011-11-04T16:37:22 < Laurenceb> RAGE 2011-11-04T16:37:28 < Laurenceb> F4discovery wont flash 2011-11-04T16:37:37 < Laurenceb> stlink is broken 2011-11-04T16:39:36 < district> isn't that a known problem? 2011-11-04T16:39:58 <+Steffanx> No? 2011-11-04T16:40:48 < district> https://github.com/texane/stlink/issues/12 2011-11-04T16:41:40 <+Steffanx> Argh, they should change the name of that tool 2011-11-04T16:41:49 <+Steffanx> The st-link is the programmer, NOT that tool :) 2011-11-04T16:41:57 < district> haha, indeed 2011-11-04T16:42:11 <+Steffanx> Laurenceb meant the tool? 2011-11-04T16:42:19 < district> i'm guessing so 2011-11-04T16:42:24 < Laurenceb> yes 2011-11-04T16:42:26 < Laurenceb> sorry 2011-11-04T16:45:07 < Laurenceb> looks like its been fixed 2011-11-04T16:45:14 < Laurenceb> but in a fork somewhere... 2011-11-04T16:45:18 < Laurenceb> maybe 2011-11-04T16:45:51 < Laurenceb> "as soon as I get blink flash working, I will push" 2011-11-04T16:45:55 < Laurenceb> grr hurry up 2011-11-04T16:51:49 < karlp> one guy "fixed" 2011-11-04T16:51:55 < karlp> but he included 100000000 other changes 2011-11-04T16:52:11 < Laurenceb> i cant even get sram to work 2011-11-04T16:52:17 < Laurenceb> do i need to remove a jumper? 2011-11-04T16:52:30 < Laurenceb> what doe sPPI do? 2011-11-04T16:53:20 < karlp> it should be a matter of git clone...; make; ./gdbserver/st-util; [separate window] arm-none-eabi-gdb; tar ext :4242; load blink.elf;continue 2011-11-04T16:53:35 < Laurenceb> SHOULD 2011-11-04T16:53:42 < karlp> there's quite a few people reporting that that works, for SRAM for f4 2011-11-04T16:53:50 < karlp> flash I know people are having issues with. 2011-11-04T16:53:55 < Laurenceb> (gdb) load blink.elf 2011-11-04T16:53:55 < Laurenceb> Loading section .text, size 0x3c lma 0x20000000 2011-11-04T16:53:56 < Laurenceb> Load failed 2011-11-04T16:54:17 < karlp> and you made a blink for the f4? 2011-11-04T16:55:27 < Laurenceb> yes 2011-11-04T16:55:40 < karlp> load failed is something I've never even seen before. 2011-11-04T16:55:57 < karlp> I don't know if anything shows up on the console where the gdbserver is running? 2011-11-04T16:56:08 < Laurenceb> nothing in there 2011-11-04T16:56:57 < karlp> you could try my version, https://github.com/karlp/stlink and run the gdbserver with "st-util -2 -v" instead of the fake dummy arguments needed in texanes 2011-11-04T16:57:06 < karlp> it should show more debug output on the gdbserver side 2011-11-04T16:58:00 < karlp> I have no real idea why you get load failed and no-one else does. but if loading sram doesn't work, you have bigger problems than flashing :| 2011-11-04T16:58:14 < Laurenceb> yeah 2011-11-04T16:58:18 < Laurenceb> thanks 2011-11-04T16:59:07 < karlp> Steffanx: though, you are on osx with a VL board right? 2011-11-04T16:59:51 < karlp> I'd love it if you could try my version from github. I removed the sg-utils dependencies that aren't on osx, and it works nicely on linux still, but I don't have an OSX machine around to check it on. 2011-11-04T17:00:22 < karlp> anyway, I need to get back to work for a little while. no time to play right now :) 2011-11-04T17:01:03 < Laurenceb> ok trying 2011-11-04T17:01:11 < Laurenceb> do i need to change anything in udev? 2011-11-04T17:01:19 < karlp> shouldn't, not for an F4 board 2011-11-04T17:01:22 < Laurenceb> ok 2011-11-04T17:01:28 < Laurenceb> test works so far :P 2011-11-04T17:01:37 < karlp> for 32L and F4, my version only really changes the command line option parsing and the logging 2011-11-04T17:01:58 < karlp> Steffanx: suggest a new name! 2011-11-04T17:02:54 < karlp> tfkastl 2011-11-04T17:03:05 < karlp> tool formerly known as s t link? 2011-11-04T17:03:13 < karlp> tf-kastle! 2011-11-04T17:03:27 < Laurenceb> nice 2011-11-04T17:03:36 < karlp> the fabulous kastle 2011-11-04T17:03:38 < Laurenceb> ok the failure is in gdb 2011-11-04T17:03:47 < Laurenceb> it doesnt like my elf 2011-11-04T17:04:00 < Laurenceb> theres no comms to the stlink 2011-11-04T17:04:05 < Laurenceb> before it fails 2011-11-04T17:07:48 < karlp> I'm sorry to hear that, but I am someone relieved at the same time :) 2011-11-04T17:08:17 < Laurenceb> (gdb) load blink_F4.elf 2011-11-04T17:08:17 < Laurenceb> Loading section .text, size 0x3c lma 0x20000000 2011-11-04T17:08:17 < Laurenceb> Load failed 2011-11-04T17:08:28 < Laurenceb> from your example 2011-11-04T17:15:21 < Laurenceb> https://github.com/texane/stlink/issues/10 2011-11-04T17:15:29 < Laurenceb> but i am using the correct gdb :( 2011-11-04T17:16:39 < Laurenceb> https://github.com/texane/stlink/pull/11 2011-11-04T17:16:47 < Laurenceb> ^so that should work :( 2011-11-04T17:19:39 < karlp> ok, something's twisted with your toolchain then. 2011-11-04T17:19:42 < karlp> yeah, it should, 2011-11-04T17:20:12 < karlp> can you put blink_F4.elf somewhere for me? 2011-11-04T17:20:22 < karlp> I probably won't get to look at it for a few hours, 2011-11-04T17:20:43 < Laurenceb> its from your example 2011-11-04T17:20:50 < karlp> yeah, but you made it :) 2011-11-04T17:20:50 < Laurenceb> im guessing its an issue with gdb 2011-11-04T17:20:59 < karlp> it's made from my _sources_ 2011-11-04T17:21:06 < Laurenceb> GNU gdb (Sourcery G++ Lite 2011.03-42) 7.2.50.20100908-cvs 2011-11-04T17:23:24 < Laurenceb> http://www.filedump.net/index.php?pic=blinkf4elf1320420193.jpg 2011-11-04T17:24:44 < Laurenceb> thanks for helping 2011-11-04T17:27:11 <+Steffanx> What's that Laurenceb ? 2011-11-04T17:56:16 < Laurenceb> the elf 2011-11-04T18:00:02 < karlp> if it's not too much trouble, could you please upload the VL or 32L blink.elf too? 2011-11-04T18:00:11 < karlp> they _should_ be directly runnable on my boards 2011-11-04T18:15:42 < Laurenceb> http://www.filedump.net/index.php?pic=blink32lelf1320423336.jpg 2011-11-04T18:15:48 < Laurenceb> sorry was AFK 2011-11-04T18:16:12 <+Steffanx> afaik Laurenceb ? 2011-11-04T18:16:24 <+Steffanx> *again 2011-11-04T18:16:46 < Laurenceb> huh 2011-11-04T18:16:54 < Laurenceb> im back now 2011-11-04T18:16:56 <+Steffanx> That link you spam 2011-11-04T18:17:33 < Laurenceb> huh its not working 2011-11-04T18:18:01 <+Steffanx> Huh? What's not working 2011-11-04T18:18:12 < Laurenceb> filedump 2011-11-04T18:18:16 < Laurenceb> where can is tick an elf 2011-11-04T18:18:27 < Laurenceb> *stick 2011-11-04T18:18:41 <+Steffanx> pastebin.com? 2011-11-04T18:18:50 < Laurenceb> thats ascii 2011-11-04T18:18:56 <+Steffanx> Who cares :P 2011-11-04T18:19:07 <+Steffanx> Some here are pro's 2011-11-04T18:19:27 <+Steffanx> click on that dropbox link, register your account and drop it there? :) 2011-11-04T18:20:07 < karlp> no, it works, but you have to view source to get the real link to the file 2011-11-04T18:20:53 <+Steffanx> oh lol 2011-11-04T18:21:05 < karlp> filedump doens't know how to render the elf as a jpg 2011-11-04T18:21:08 < Laurenceb> yeah 2011-11-04T18:21:10 < karlp> so you don't get the image with it's link 2011-11-04T18:21:18 < karlp> http://www.filedump.net/dumped/blink32lelf1320423336.jpg 2011-11-04T18:21:51 < Laurenceb> yeah then just change to elf 2011-11-04T18:22:01 < Laurenceb> it wont let me upload elf 2011-11-04T18:22:29 < karlp> but it is still using filename rather than mimetype detection :) 2011-11-04T18:22:42 < karlp> so it's almost like they want/know that people will be hiding things there 2011-11-04T18:27:06 < Laurenceb> http://pastebin.com/kd2Vqh2H 2011-11-04T18:49:56 < Laurenceb> any luck with that elf? 2011-11-04T18:51:13 < Laurenceb> oh maybe my linker is wrong 2011-11-04T18:52:09 * Laurenceb _. off 2011-11-04T19:00:41 < Thorn> my f103 apparently hangs when I try to initialize uart4 the same way I do for usart1...3 2011-11-04T19:18:48 < karlp> still at work sorry :) 2011-11-04T19:19:19 < karlp> but that's a good amount of info, I'll see what I can find later on. 2011-11-04T19:32:52 -!- zhanx [~zhanx@cpe-24-59-152-200.twcny.res.rr.com] has quit [] 2011-11-04T19:49:31 <+Steffanx> Why the non-bga packages are so large? 2011-11-04T19:49:37 <+Steffanx> 6x6mm :( 2011-11-04T20:18:50 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Read error: Connection reset by peer] 2011-11-04T20:26:26 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-04T20:33:44 < Thorn> I just found that if you link without -mthumb the program fails (-mcpu=cortex-m3 does not seem to be required but .elf size is different with it). these options aren't documented in the gnu ld manual 2011-11-04T20:35:33 < Thorn> (the link command does not compile anything, only objects are passed to it) 2011-11-04T20:40:08 < Tom_itx> what does mthumb switch do? 2011-11-04T20:40:58 <+Steffanx> The thumb instruction set i guess 2011-11-04T20:41:23 < Tom_itx> still doesn't mean much to me 2011-11-04T20:41:35 < Tom_itx> so much to do, so little time 2011-11-04T20:41:57 < Tom_itx> i installed iar yesterday finally 2011-11-04T20:42:05 < Thorn> http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html , selects thumb code generation. but that's a compiler switch 2011-11-04T20:42:43 < Tom_itx> is thumb a subset of arm or something? 2011-11-04T20:43:27 -!- NonaSuomy [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Ping timeout: 248 seconds] 2011-11-04T20:43:39 < Thorn> no, a different instruction set 2011-11-04T20:44:01 < Thorn> cortex-m only supports thumb2 so this switch is always required 2011-11-04T20:45:24 < Thorn> what's the channel for the gnu toolchain? #gcc? #workingset? 2011-11-04T20:47:06 -!- TeknoJuce [~TeknoJuce@69.158.165.77] has joined ##stm32 2011-11-04T20:47:06 -!- TeknoJuce [~TeknoJuce@69.158.165.77] has quit [Changing host] 2011-11-04T20:47:06 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has joined ##stm32 2011-11-04T20:47:21 -!- Laurenceb_ [~Laurence@host109-157-38-126.range109-157.btcentralplus.com] has joined ##stm32 2011-11-04T20:50:58 < Laurenceb_> hi 2011-11-04T20:51:08 < Laurenceb_> karlp: back 2011-11-04T20:59:00 < Thorn> I see blx vs. bl in calls to c library functions like memset (it crashed on memset call in freertos) 2011-11-04T20:59:42 < Thorn> looks like blx calls with even addresses are the problem 2011-11-04T21:03:49 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 244 seconds] 2011-11-04T21:05:21 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32 2011-11-04T21:13:18 < Laurenceb_> do i need -DDEBUG in my makefile to debug 2011-11-04T21:22:26 < Thorn> I don't think the stm library uses that anywhere 2011-11-04T21:22:37 < Laurenceb_> ok 2011-11-04T21:22:45 < Laurenceb_> doesnt help me anyway :( 2011-11-04T21:22:52 < Laurenceb_> load still fails 2011-11-04T21:23:33 < Laurenceb_> im not going to get anywhere without some more info on what went wrong 2011-11-04T21:24:09 <@jpa-> heh, stlink caused kernel panic :) 2011-11-04T21:24:13 <+Steffanx> Waow 2011-11-04T21:24:25 < Laurenceb_> lol 2011-11-04T21:24:34 < Laurenceb_> well at least mine isnt that bad 2011-11-04T21:24:41 <+Steffanx> Is there anyone who doesn't have problems with the st-link/st toolchain/st-whatever?! 2011-11-04T21:24:51 <@jpa-> though i had some really old version :) 2011-11-04T21:24:54 <+Steffanx> *st toolchain = gcc 2011-11-04T21:25:01 <@jpa-> Steffanx: not on this channel :) 2011-11-04T21:25:12 <+Steffanx> That's ….. silly :) 2011-11-04T21:25:39 <@jpa-> it worked until now (until ubuntu upgrade, probably) 2011-11-04T21:26:06 < Thorn> that's why I avoid discovery boards 2011-11-04T21:26:35 <@jpa-> what computer stuff *doesn't* give you problems sometimes? :D 2011-11-04T21:26:45 <+Steffanx> http://www.naffets.nl/share/a-20111104-202552.png my STM32F103TB has 128kB Flash and 20kB RAM. So it's a Medium i guess? 2011-11-04T21:27:02 <+Steffanx> medium-density 2011-11-04T21:27:45 <+Steffanx> I want to use the 'pinout' no. 36 so it should have 2x SPI and 2 x i2c . Why-o-why i only see 1 spi in the datasheet?! 2011-11-04T21:27:57 < Laurenceb_> has anyone here got sram write to work on stm32F4discovery? 2011-11-04T21:28:09 < Laurenceb_> if so, which version of GDB? 2011-11-04T21:28:18 < Laurenceb_> im wondering if i have the wrong version 2011-11-04T21:28:45 <+Steffanx> Hmm, it also has only 1 i2c interface 2011-11-04T21:28:54 < Thorn> Steffanx: http://pastebin.com/DDBpPLUU 2011-11-04T21:30:11 <+Steffanx> Yeah, so medium density 2011-11-04T21:31:00 <+Steffanx> There's an SPI2, but not for the VFQFPN36 package 2011-11-04T21:31:13 <+Steffanx> So that table is wrong imo 2011-11-04T21:31:46 <+Steffanx> Oh, i found a better table, which seems to be correct 2011-11-04T21:32:45 <+Steffanx> You guys think it would be a good idea to use an gyro+accelerometer+wireless module on the same SPI-peripheral? 2011-11-04T21:32:53 <+Steffanx> *an = a 2011-11-04T21:33:06 <+Steffanx> (it's for a quadrocopter) 2011-11-04T21:34:03 < BrainDamage> I'd split wireless on a sep bus 2011-11-04T21:34:08 < BrainDamage> to have reliable data rate 2011-11-04T21:34:09 <+Steffanx> impossible :) 2011-11-04T21:34:24 <+Steffanx> Only 1 SPI-peripheral 2011-11-04T21:34:33 < karlp> Laurenceb_: your 32L blink file is a different size to mine, but still works on my 32L board :( 2011-11-04T21:34:43 < Laurenceb_> hmm weird 2011-11-04T21:34:44 < Thorn> calculate time required for data access cycles, add up, multiply by number of accesses per second. if you get >1 second, it's a bad sign. 2011-11-04T21:34:49 < BrainDamage> don't you need to guarantee some hard response time? 2011-11-04T21:34:57 < karlp> one tick, let me give you my F4 file, see if that works... 2011-11-04T21:34:59 < BrainDamage> like due to gusts, etc? 2011-11-04T21:35:08 < BrainDamage> to my knowledge, quadrotors are inherently unstable 2011-11-04T21:35:11 < Laurenceb_> thanks 2011-11-04T21:35:13 < BrainDamage> so you need hard realtime 2011-11-04T21:35:25 <+Steffanx> Yes BrainDamage 2011-11-04T21:36:10 < BrainDamage> you'll need a pretty decent communication scheduling then 2011-11-04T21:36:11 <@jpa-> Steffanx: can you interrupt wireless transfers at any time? 2011-11-04T21:36:31 <@jpa-> (i mean, interrupt the spi comm to wireless module?) 2011-11-04T21:36:35 < karlp> http://palmtree.beeroclock.net/~karlp/stlink_elf_samples.tar.bz2 2011-11-04T21:36:40 <+Steffanx> I think that's not a good idea jpa- 2011-11-04T21:36:50 < Laurenceb_> thanks 2011-11-04T21:36:51 < karlp> Laurenceb_: see if the F4.elf in that from me works. (it also includes yours) 2011-11-04T21:36:54 < Laurenceb_> just testing 2011-11-04T21:37:01 < karlp> it's just the same code, but rebuilt on my machine. 2011-11-04T21:37:33 <@jpa-> Steffanx: ok, then you either need to specify upper limit for length of wireless comm and only do it at specific times (i.e. right after reading gyro & accelerometer) 2011-11-04T21:37:50 <@jpa-> -either 2011-11-04T21:38:30 <+Steffanx> Perhaps i should get one that's a little bigger, or move the gyro+accelemeter the i2c bus, but i wonder if that changes something 2011-11-04T21:38:57 < Laurenceb_> karlp: fails 2011-11-04T21:39:03 < BrainDamage> are the bus totally independent? 2011-11-04T21:39:04 < karlp> Laurenceb_: same way? 2011-11-04T21:39:15 < karlp> the obj-dump of the two elfs are different: http://palmtree.beeroclock.net/~karlp/objdump.diffs.problems.txt 2011-11-04T21:39:15 < Laurenceb_> yes, identical 2011-11-04T21:39:17 < BrainDamage> as in, the registers will fill by themselves trough hw controls/microcode? 2011-11-04T21:39:29 < karlp> something's weird with your toolchain. You only have the F4 board right? 2011-11-04T21:39:42 < Laurenceb_> yes 2011-11-04T21:39:47 < Laurenceb_> im using codesourcery 2011-11-04T21:40:17 < Laurenceb_> patched gcc 4.5.2 2011-11-04T21:40:37 <+Steffanx> BrainDamage, the spi probably is 2011-11-04T21:40:41 < Laurenceb_> looks like thats not the problem 2011-11-04T21:40:47 <+Steffanx> I never used i2c before 2011-11-04T21:40:49 < Laurenceb_> as your code gives same issue 2011-11-04T21:40:54 <+Steffanx> I always use spi when i can 2011-11-04T21:40:59 -!- _Shurik_ [~alex@64.88.170.43] has left ##stm32 [] 2011-11-04T21:41:05 < karlp> yeah, but that takes out my ides :) 2011-11-04T21:41:09 -!- _Shurik_ [~alex@64.88.170.43] has joined ##stm32 2011-11-04T21:41:15 < karlp> I was sort of hoping that your elf wouldn't work on my board :) 2011-11-04T21:41:17 < Laurenceb_> do i need to configure stlink at all? 2011-11-04T21:41:22 < karlp> which would point to your toolchain 2011-11-04T21:41:25 < karlp> I've never had to. 2011-11-04T21:41:32 < karlp> if you ahve the udev rules, or use sudo to run it, 2011-11-04T21:41:39 <+Steffanx> I can get me a 48 pin f103, but that one is 7x7mm and not 6x6 2011-11-04T21:41:46 <+Steffanx> And my space is VERY limited 2011-11-04T21:41:47 < karlp> but it shoudl complain very very quickly when it tries to open the usb device if that was a problem 2011-11-04T21:42:20 < Laurenceb_> <_abc_> okay so you need to also load some arguments into stlink before you start gdb 2011-11-04T21:42:20 < Laurenceb_> <_abc_> because apparently some things can't go through the gdb link 2011-11-04T21:42:20 < Laurenceb_> <_abc_> such as hw platform, cpu type, clock freq. and a few more 2011-11-04T21:42:27 < Laurenceb_> ^is he talking nonsense? 2011-11-04T21:43:11 < karlp> yeah, my gcc is the same: arm-none-eabi-gcc (Sourcery G++ Lite 2011.03-42) 4.5. 2011-11-04T21:43:34 < karlp> but, remember, I've never tried on an F4 :) 2011-11-04T21:43:43 < karlp> perhaps both of us have invalid toolchains for F4 :) 2011-11-04T21:43:53 <+Steffanx> BrainDamage, I really have NO experience with building quadrocopters, so it's more a trial and error 2011-11-04T21:44:01 < Tom_itx> it would be nice to find one that actually worked 2011-11-04T21:44:03 < Laurenceb_> is there a way to get more info from gdb? 2011-11-04T21:44:15 < BrainDamage> Steffanx: make sure you got foam padding on the test ground :p 2011-11-04T21:44:17 <+Steffanx> The windows IDE's work Tom_itx 2011-11-04T21:44:31 < Laurenceb_> doesnt let me know _why_ it failed 2011-11-04T21:44:32 < BrainDamage> inherently unstable can mean power dive into soil 2011-11-04T21:44:33 <+Steffanx> it's not a quadrocopter btw, it's a tricopter :) 2011-11-04T21:44:42 <+Steffanx> And a very small one 2011-11-04T21:44:58 < Tom_itx> Steffanx, i want to be able to save hex back to file 2011-11-04T21:44:59 < BrainDamage> how to dump ram from gdb? 2011-11-04T21:45:11 < Tom_itx> avr does it with no questions 2011-11-04T21:45:26 < BrainDamage> I want to verify wtf is going on on my stm32, and why id doesn't blink :/ 2011-11-04T21:45:36 <+Steffanx> What do you mean Tom_itx ? You want to read what's on the target right now? 2011-11-04T21:45:41 < Tom_itx> yes 2011-11-04T21:45:53 <+Steffanx> If yes, that's VERY easy with the st-link utility from st 2011-11-04T21:45:57 <+Steffanx> it's windows only though 2011-11-04T21:46:00 < karlp> Steffanx: if the wireless module has an IRC line, and you run at a decent SPI rate, I wouldn't be concerned about running them all on the same spi bus. 2011-11-04T21:46:11 < karlp> as long as they're all fast :) 2011-11-04T21:46:13 < Tom_itx> Steffanx got a link to the actual file? 2011-11-04T21:46:17 < Thorn> for a hardware control loop you need a control algorithm that's faster than the hardware time constant or you'll get oscillations. or something like that. that's what almost happened on apollo 11 landing 2011-11-04T21:47:02 <+Steffanx> http://www.st.com/internet/com/SOFTWARE_RESOURCES/TOOL/DEVICE_PROGRAMMER/stm32_st-link_utility.zip not sure if that's the right one for the stm32f4 discovery Tom_itx 2011-11-04T21:47:08 < BrainDamage> yes, you'll get a system caled not minimal phase 2011-11-04T21:47:09 < Thorn> I imagine that with very low mass that time constant is going to be really low 2011-11-04T21:47:17 < BrainDamage> the delay will really screw you off 2011-11-04T21:47:31 < Tom_itx> F4 needs v2 driver i think 2011-11-04T21:47:37 <+Steffanx> Thorn, that'll probably my problem. The tri-copter is tiny :) 2011-11-04T21:47:49 <+Steffanx> As in .. 5x5 cm or something like that 2011-11-04T21:47:51 < karlp> Tom_itx: well, mine _does_ work for 32L and VL 2011-11-04T21:47:58 <+Steffanx> I still don't even know if it can fly :) 2011-11-04T21:48:03 < Laurenceb_> so i need to swap a jumper to enable running for SRAM? 2011-11-04T21:48:11 < Laurenceb_> - cant see how thatd be the issue tho 2011-11-04T21:48:14 <+Steffanx> I probably have to do some tests with some board first 2011-11-04T21:48:19 <+Steffanx> *boards 2011-11-04T21:48:27 < Tom_itx> Steffanx, is that available for linux or is that what all this fuss is about? 2011-11-04T21:48:29 < karlp> Laurenceb_: I have not had to change any jumpers anywhere, and I didn't have to load anything in anywhere else. (on the 32L and 32VL) 2011-11-04T21:48:38 < Laurenceb_> ok 2011-11-04T21:48:41 <+Steffanx> That tool is windows only Tom_itx 2011-11-04T21:49:02 < Tom_itx> so wtf are all these others called 'stlink' about then? 2011-11-04T21:49:03 < BrainDamage> any idea how to dump ram using gdb? 2011-11-04T21:49:08 <+Steffanx> st-link from texane is that buggy windows version 2011-11-04T21:49:24 < Tom_itx> so don't use that one 2011-11-04T21:49:28 <+Steffanx> I know that should change the name 2011-11-04T21:49:38 < Tom_itx> it's damn confusing for sure 2011-11-04T21:49:47 <+Steffanx> ST-link/v1 and v2 = the programmer 2011-11-04T21:49:56 < Tom_itx> then you get several variatons of that for linux and who can keep track 2011-11-04T21:50:00 < Laurenceb_> karlp: so how come i can load to flash 2011-11-04T21:50:01 < karlp> Steffanx: what do you think of tfkastle? (tool formerly known as stlinke) 2011-11-04T21:50:04 < BrainDamage> programmer and debugger 2011-11-04T21:50:13 < Tom_itx> stinkylinky 2011-11-04T21:50:19 <+Steffanx> hehe Tom_itx 2011-11-04T21:50:22 < karlp> Tom_itx: :) 2011-11-04T21:50:24 < karlp> that's good too 2011-11-04T21:50:26 < Laurenceb_> it just gives an stlink error after a while due to the way F4 flash isnt supported yet 2011-11-04T21:50:28 < BrainDamage> it's both the name of thehardware software that interface with the stm32 2011-11-04T21:50:35 < karlp> Laurenceb_: you can load to flash with what elf? 2011-11-04T21:50:36 < BrainDamage> so it can get a little confusing 2011-11-04T21:50:38 <+Steffanx> Call it knilts 2011-11-04T21:50:39 < Laurenceb_> but gdb loads the elf and start trying to flash it 2011-11-04T21:50:41 < Laurenceb_> yes 2011-11-04T21:50:46 < Laurenceb_> only it doesnt complete 2011-11-04T21:50:50 <+Steffanx> stlink in reverse :) 2011-11-04T21:50:55 < BrainDamage> stink 2011-11-04T21:51:01 < Laurenceb_> as st-link need modifying to work on F4 flash 2011-11-04T21:51:02 <+Steffanx> No knilts 2011-11-04T21:51:11 < karlp> stinkfree 2011-11-04T21:51:29 < karlp> BrainDamage: what board do you have again? 2011-11-04T21:51:29 <+Steffanx> So how can i force Texane to change the name? 2011-11-04T21:51:37 < BrainDamage> karlp: 32vldiscovery 2011-11-04T21:51:40 < Laurenceb_> karlp: so my point is, gdb loads the elf and starts sending it to stlink for flashing 2011-11-04T21:51:44 < Tom_itx> ban him from earth until he does 2011-11-04T21:51:48 < Laurenceb_> but that never happens if its in sram 2011-11-04T21:52:05 < Laurenceb_> so its got to be something to do with that 2011-11-04T21:52:07 < BrainDamage> I load the .elf in ram ok 2011-11-04T21:52:12 < BrainDamage> send continue 2011-11-04T21:52:21 < BrainDamage> stlink keeps receiving data 2011-11-04T21:52:25 <+Steffanx> I'll ban you with him Tom_itx :) 2011-11-04T21:52:29 < BrainDamage> but the stlink does nothing 2011-11-04T21:52:35 < Tom_itx> tell him it's a violation of the free trade act, copywright laws, patent laws etc and you have a damn expensive lawyer sitting there to pounce on him if he doesn't 2011-11-04T21:52:36 < karlp> BrainDamage: (gdb) dump mem blah 0x20000000 0x20001000 2011-11-04T21:52:48 < karlp> will dump memory to a file 2011-11-04T21:52:52 <+Steffanx> No there is an easier way 2011-11-04T21:52:55 < BrainDamage> k, thanks 2011-11-04T21:52:59 < Laurenceb_> hang on 2011-11-04T21:53:01 <+Steffanx> karlp, force texane to join this channel 2011-11-04T21:53:06 < Laurenceb_> i load gdb, kill then load 2011-11-04T21:53:12 < karlp> he's really not very keen on things it seems 2011-11-04T21:53:14 < Laurenceb_> iis that ok 2011-11-04T21:53:17 < karlp> I've gotten occasional emails from him 2011-11-04T21:53:22 < karlp> not much else. 2011-11-04T21:53:27 <+Steffanx> So he can see where it goes wrong when you use st-link for both the tool and the programmer 2011-11-04T21:53:41 < karlp> oh, I can just change the name in my fork :) 2011-11-04T21:53:49 < karlp> but we have to come up with a nice one first :) 2011-11-04T21:55:01 < karlp> BrainDamage: so you fire up arm-gdb, connect to sth st-util's gdbserver, and load blink.elf, 2011-11-04T21:55:04 < karlp> and it succeeds? 2011-11-04T21:55:18 < karlp> you type continue, and it appears to be off and running, but never blinks anything? 2011-11-04T21:55:19 < BrainDamage> karlp: ObsessiveCompulsiveDebugger 2011-11-04T21:55:31 < BrainDamage> karlp: correct 2011-11-04T21:55:46 < karlp> are you running latest texane, or my fork? 2011-11-04T21:56:21 < karlp> ie, is it still slow and awkward and lots of kernel messages about resetting the scsi crap? 2011-11-04T21:56:22 <+Steffanx> btw karlp the rf module has an irq line 2011-11-04T21:56:26 <+Steffanx> and runs at max 8mhz 2011-11-04T21:56:37 <+Steffanx> So that shouldn't be a real problem i guess? 2011-11-04T21:56:40 < karlp> probably not. 2011-11-04T21:56:54 < karlp> the wifi's going to be less of a problem than readin ghte gyro's fast enough anyway isn't it? 2011-11-04T21:57:04 < karlp> I'd still want to run it at full speed :) 2011-11-04T21:57:10 < BrainDamage> running your fork atm, master from yesterday's night 2011-11-04T21:57:13 <+Steffanx> It's nordic-stuff btw, no wifi :) 2011-11-04T21:57:27 < BrainDamage> no, it's sufficiently fast now 2011-11-04T21:57:34 < karlp> except it still doesn't blink :) 2011-11-04T21:57:40 < BrainDamage> correct 2011-11-04T21:58:11 < karlp> can you run the gdbserver with -v -1, and pastebin the entire log it spits out for me please, from start, to after you pressed continue? 2011-11-04T21:58:12 < BrainDamage> the ram's content looks like garbage 2011-11-04T21:58:23 < BrainDamage> sure, one moment 2011-11-04T21:59:02 <+Steffanx> The output rate of the accelerometer is only 1kHz anyway 2011-11-04T21:59:22 < karlp> Steffanx: ? well, then, sharing SPI isn't going to be a problem :) 2011-11-04T21:59:27 <+Steffanx> I guess not 2011-11-04T21:59:31 < karlp> unless you're trying to send live video over the wireless or something :) 2011-11-04T21:59:36 <+Steffanx> No, not really 2011-11-04T21:59:51 <+Steffanx> It's only used to control the copter 2011-11-04T21:59:52 < karlp> (mind you, this is in my absolute, "not a robot person" hand waving advice) 2011-11-04T22:00:51 <+Steffanx> I'm not an expert either :) 2011-11-04T22:00:58 <+Steffanx> Trial and error ftw :) 2011-11-04T22:01:07 < karlp> Steffanx: you should see infinitely scrolling "core status: running" and "Actually sent: 31, returning tag: XXX" 2011-11-04T22:01:13 < karlp> where XXX is continually incrementing 2011-11-04T22:01:30 <+Steffanx> You mean BrainDamage ? 2011-11-04T22:01:31 < BrainDamage> I think you meant me, and yes 2011-11-04T22:01:38 < BrainDamage> I told you last night as well 2011-11-04T22:01:44 < BrainDamage> but I guess you were half asleep 2011-11-04T22:01:54 < karlp> probably :| 2011-11-04T22:01:56 < karlp> sorry, 2011-11-04T22:01:59 < BrainDamage> np 2011-11-04T22:02:00 < BrainDamage> http://www.mediafire.com/?c744jtcylr4f9r1 2011-11-04T22:02:12 < BrainDamage> sorry for the crappy file host 2011-11-04T22:02:23 <+Steffanx> dropbox :) 2011-11-04T22:02:24 < karlp> no worries 2011-11-04T22:03:27 <+Steffanx> I know what we should do instead of messing with this 2011-11-04T22:03:32 <+Steffanx> Reverse engineer the bootloader 2011-11-04T22:03:44 <+Steffanx> So we can reflash it with the versaloon fw 2011-11-04T22:03:53 <+Steffanx> All problems solved 2011-11-04T22:04:04 < karlp> the bootloader, or the app on the stlink portion? 2011-11-04T22:04:29 < karlp> given how many other people it seems to be working for, or we just work out why it doesn't work for anyone on this channel :) 2011-11-04T22:04:32 <+Steffanx> Both karlp 2011-11-04T22:05:32 <+Steffanx> Now you need another programmer to flash the st-link with new fw 2011-11-04T22:05:43 <+Steffanx> It would be nice if we could use the bootloader of the st-link 2011-11-04T22:07:12 < karlp> well, I've successfully used the SWD connector on the 32L board, wired up to the SWD pins on the 32VL board, 2011-11-04T22:07:33 < karlp> and then used "stinkylinkynoblinky" to program into SRAM on the VL board 2011-11-04T22:12:02 < karlp> BrainDamage: your main_sp is busted, 2011-11-04T22:12:06 < karlp> mine points to sram, 2011-11-04T22:12:14 < karlp> yours points to 0xfffffffc 2011-11-04T22:12:36 < karlp> r13, r14 and r15 2011-11-04T22:12:47 < karlp> before you load anything, just when you connect 2011-11-04T22:13:10 < karlp> when you do tar ext :4242, some of the debug output is a register dump 2011-11-04T22:14:00 < karlp> hmm. you said you'd managed to flash this before right? 2011-11-04T22:14:16 < karlp> I wonder if mine works, because the _original_ firmware set up the stack pointer properly at some point, 2011-11-04T22:14:22 < karlp> and I've only loaded into sram 2011-11-04T22:14:35 < karlp> it's quite possible that there's a linker script step missing that sets this up? 2011-11-04T22:15:20 < BrainDamage> mmm 2011-11-04T22:15:23 < karlp> (line 252 in your file) 2011-11-04T22:15:45 < Laurenceb_> karlp: the examples in stlink, where are hte linker scripts? 2011-11-04T22:15:54 < Laurenceb_> or is it all in the makefile 2011-11-04T22:15:59 < karlp> well, from what I was told, to run from sram, all you needed was what was in the makefile 2011-11-04T22:16:05 < karlp> but I'm not a linker script master 2011-11-04T22:16:14 < karlp> I saw my lights blink, and was happy and joyful :) 2011-11-04T22:16:32 < Laurenceb_> heh 2011-11-04T22:16:33 < BrainDamage> the linker contains the memory offsets for the binaries 2011-11-04T22:16:39 < Laurenceb_> ah 2011-11-04T22:16:50 < Laurenceb_> i thing my elf is screwed 2011-11-04T22:17:09 < Laurenceb_> when i swap from 0x08000000 to 0x20000000 2011-11-04T22:17:26 < Laurenceb_> as gdb just gives an error straight away 2011-11-04T22:17:45 < BrainDamage> those are the start addresses of the ram & flash 2011-11-04T22:17:49 < Laurenceb_> instead of talking to the gdbserver as it does with 0x08... 2011-11-04T22:17:51 < Laurenceb_> i know 2011-11-04T22:19:51 < karlp> gdbserver has a memory map built in 2011-11-04T22:20:04 < Laurenceb_> oh 2011-11-04T22:20:29 < Laurenceb_> but yeah its got to be gdb 2011-11-04T22:20:35 < karlp> following this: http://sourceware.org/gdb/gdb-memory-map.dtd 2011-11-04T22:20:47 < Laurenceb_> as with your stlink in verbose mode there was nothing 2011-11-04T22:21:00 < karlp> blinkynolinky makes one of them, based on the chip and core ids 2011-11-04T22:21:01 < Laurenceb_> i loaded the elf and it failed 2011-11-04T22:21:09 < Laurenceb_> nothing was sent to gdbserver 2011-11-04T22:22:44 < Laurenceb_> hmm error in arm-none-eabi-objcopy? 2011-11-04T22:24:12 < Laurenceb_> maybe i should try something other than codesourcery 2011-11-04T22:24:24 < Laurenceb_> or... find someone who has something else to make an elf for me 2011-11-04T22:26:00 < BrainDamage> blinky example for F4 board? 2011-11-04T22:27:49 < BrainDamage> Laurenceb_: try http://www.mediafire.com/?xmg11j7hk11nxan ? 2011-11-04T22:28:01 -!- Irssi: ##stm32: Total of 20 nicks [2 ops, 0 halfops, 1 voices, 17 normal] 2011-11-04T22:29:57 < karlp> BrainDamage: can you perhaps try this: https://github.com/karlp/stlink/tree/ldscripts_test/example/blink 2011-11-04T22:30:03 < Laurenceb_> that yours? 2011-11-04T22:30:11 < Laurenceb_> hehe pronysite 2011-11-04T22:30:16 < karlp> the link script there might set up the stack pointer? 2011-11-04T22:30:32 * karlp shrugs 2011-11-04T22:30:34 < karlp> just a guess. 2011-11-04T22:30:37 < karlp> I'm off to the pub 2011-11-04T22:30:41 < Laurenceb_> ill try this elf 2011-11-04T22:30:42 < karlp> have fun! 2011-11-04T22:30:49 < Laurenceb_> enjoy yourself too XD 2011-11-04T22:30:59 < Laurenceb_> sounds like a warzone round here 2011-11-04T22:31:08 < Laurenceb_> fireworks everywhere 2011-11-04T22:31:18 < BrainDamage> thanks for the help & have fun 2011-11-04T22:31:26 < BrainDamage> here it's just rain, rain & rain 2011-11-04T22:31:40 < karlp> christmas beer is going on tap in 29 minutes 2011-11-04T22:31:40 < BrainDamage> oh, and flood pre-emergency status 2011-11-04T22:31:48 < BrainDamage> I'll stay indoor I think :p 2011-11-04T22:33:25 < Laurenceb_> grr failed 2011-11-04T22:33:35 < Laurenceb_> did you make that with codesourcery? 2011-11-04T22:34:05 < BrainDamage> nope, gcc 4.6 2011-11-04T22:34:11 < BrainDamage> native 2011-11-04T22:34:19 < Laurenceb_> hmm ok thanks 2011-11-04T22:34:27 < Laurenceb_> this is even more perplexing 2011-11-04T22:35:44 < Laurenceb_> is there a way to snoop on localhost traffic? 2011-11-04T22:36:18 < BrainDamage> wireshark? 2011-11-04T22:37:05 <+Steffanx> Can wireshark 'snoop' local traffic 2011-11-04T22:37:21 <+Steffanx> It couldn't when i tried to do that.. a long time ago 2011-11-04T22:37:48 < Thorn> if you're on linux you have a loopback interface 2011-11-04T22:37:58 < Thorn> try sniffing that 2011-11-04T22:38:18 < Laurenceb_> how? 2011-11-04T22:38:24 < Laurenceb_> and yeah im on linux 2011-11-04T22:39:05 < BrainDamage> http://wiki.wireshark.org/CaptureSetup/NetworkMedia 2011-11-04T22:39:11 < Thorn> tcpdump -i lo iirc 2011-11-04T22:39:16 < BrainDamage> it's lo interface 2011-11-04T22:39:24 < Laurenceb_> ok 2011-11-04T22:39:53 < Laurenceb_> do i need the port number? 2011-11-04T22:40:14 < BrainDamage> it helps 2011-11-04T22:40:30 < BrainDamage> will let you filter the tons of data that you're not interested in 2011-11-04T22:40:44 < Laurenceb_> tcpdump -i lo:4242 or something? 2011-11-04T22:40:55 < Thorn> no 2011-11-04T22:41:12 < BrainDamage> -I stands for interface 2011-11-04T22:41:19 < Laurenceb_> i see 2011-11-04T22:41:22 < BrainDamage> it'll be another command, check the manpage 2011-11-04T22:41:39 < Thorn> tcpdump -i lo 'tcp port xxx' 2011-11-04T22:41:49 < Laurenceb_> ah 2011-11-04T22:41:58 < Thorn> or 'ip port xxx' etc 2011-11-04T22:42:04 < Thorn> there's a filter language 2011-11-04T22:42:08 < Laurenceb_> rgith 2011-11-04T22:42:12 < Laurenceb_> ok trying... 2011-11-04T22:46:34 < Laurenceb_> ah there is an exchange with the stlink 2011-11-04T22:46:41 < Laurenceb_> so the stlink is breaking 2011-11-04T22:49:13 < Laurenceb_> http://pastebin.com/ZrxykUSy 2011-11-04T22:55:52 < Laurenceb_> dunno what im looking at 2011-11-04T22:56:26 < Thorn> save the capture in a file and look at it with wireshark 2011-11-04T22:56:40 < Thorn> or simply use wireshark to do the capture 2011-11-04T23:03:29 < Laurenceb_> wireshark needs to connect to eth0 2011-11-04T23:05:49 < Laurenceb_> i dont see how this is useful 2011-11-04T23:08:02 < Laurenceb_> oh it can show usb 2011-11-04T23:08:22 < Laurenceb_> thats useful - so theres so usb traffic when the load elf fails 2011-11-04T23:08:30 < Laurenceb_> s/so/no 2011-11-04T23:31:21 < Laurenceb_> set *(int *)0x20000000=1 2011-11-04T23:31:21 < Laurenceb_> Sending packet: $Hg0#df...putpkt: Junk: 2011-11-04T23:31:21 < Laurenceb_> Ack 2011-11-04T23:31:21 < Laurenceb_> Packet received: 2011-11-04T23:31:21 < Laurenceb_> Cannot access memory at address 0x20000000 2011-11-04T23:31:29 < Laurenceb_> ^think ive worked out what the issue is 2011-11-04T23:34:05 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has joined ##stm32 2011-11-04T23:34:23 -!- markamber [43b0d0cb@pdpc/supporter/student/markamber] has joined ##stm32 2011-11-04T23:36:07 < markamber> Anyone here who knows how to program the stm32f4discovery? I would like to modify the default audio playback program to play three different files, depending on what (external, not user) button is pressed and one all stop button. this is for a play at my school where they need the actors to cue the sound effects for a door (creak, doorbell, slam) so it will only play once and stop 2011-11-04T23:37:03 < markamber> this is my first experiance with the stm, but I have programmed arduinios, and much bigger robots and wrote a little computer game, so I have an idea on how to make modifications to code, just not the way to use the stm 2011-11-04T23:37:09 < markamber> or is there a better place to ask this? 2011-11-04T23:37:44 < Laurenceb_> hahahaha 2011-11-04T23:37:57 < Laurenceb_> now if you were reading the scollback.... 2011-11-04T23:38:11 < markamber> ? 2011-11-04T23:38:13 < Laurenceb_> can you get what ive been trying to do for the past day 2011-11-04T23:38:17 < Laurenceb_> :P 2011-11-04T23:38:22 < markamber> enlighten me 2011-11-04T23:38:42 < Laurenceb_> how to program the stm32f4discovery 2011-11-04T23:38:44 < Laurenceb_> ^that 2011-11-04T23:38:56 < Laurenceb_> XD 2011-11-04T23:39:12 < markamber> ok, so has anyone helped you? or is this place dead 2011-11-04T23:39:20 < Laurenceb_> no its very much alive 2011-11-04T23:39:27 < Laurenceb_> unlike my stm32F4discovery 2011-11-04T23:39:45 < Laurenceb_> are you on linux/osx or windows? 2011-11-04T23:39:46 < markamber> alive with two people cluless on how to program the stm32 2011-11-04T23:39:53 < Laurenceb_> heh 2011-11-04T23:39:55 < markamber> all three, right now windows 2011-11-04T23:40:04 < markamber> I have linux here and a mac at home 2011-11-04T23:40:11 < Laurenceb_> cool 2011-11-04T23:40:14 < Laurenceb_> ubuntu? 2011-11-04T23:40:21 < Laurenceb_> i can get you as far as ive got 2011-11-04T23:40:27 < markamber> I have that (among others) 2011-11-04T23:40:37 < markamber> I have put the sample program on the device 2011-11-04T23:40:38 < Laurenceb_> ok, which version? 2011-11-04T23:40:44 < Laurenceb_> really?! 2011-11-04T23:40:52 < markamber> the not newest 2011-11-04T23:40:53 < Laurenceb_> ok youve got further than me 2011-11-04T23:40:57 < Tom_itx> using what? 2011-11-04T23:40:58 < Laurenceb_> oh 2011-11-04T23:40:58 < markamber> but I am on windows 2011-11-04T23:41:04 < Laurenceb_> wait 2011-11-04T23:41:11 < Laurenceb_> have you programmed an F4? 2011-11-04T23:41:18 < markamber> no 2011-11-04T23:41:25 < markamber> just put the default stuff on it 2011-11-04T23:41:36 < Laurenceb_> its already on 2011-11-04T23:41:40 < Laurenceb_> what do you mean 2011-11-04T23:41:59 < Laurenceb_> have you reflashe dit 2011-11-04T23:42:20 < markamber> or are you talking about programming as in a pic programmer or programming as in making it blink counter clockwise instead of clockwise programming (like with a text editor) 2011-11-04T23:42:22 < markamber> the latter I have not done 2011-11-04T23:42:30 < Tom_itx> you can supposedly do that with IAR or StM32 Stlink 2011-11-04T23:42:36 < markamber> do you know of any other community, because there must be tons of people using these 2011-11-04T23:42:49 < Laurenceb_> i dont know of another irc 2011-11-04T23:42:52 < markamber> not like arduino, but still at least several more 2011-11-04T23:43:07 < markamber> maybe the people at arduinio know where to go 2011-11-04T23:43:10 < Laurenceb_> well ive got SWD working 2011-11-04T23:43:13 < Laurenceb_> in ubuntu 2011-11-04T23:43:16 < Tom_itx> so you loaded the default hex demo file on the board? 2011-11-04T23:43:19 < Laurenceb_> but i cant write to sram 2011-11-04T23:43:21 < Tom_itx> using windows tools 2011-11-04T23:43:47 < _Shurik_> I've used J-Link with STM32F103 board. Works great 2011-11-04T23:43:52 < markamber> if you use windows just get attolic truestudio lite for stm32, it is free and works right of of the box 2011-11-04T23:44:24 < Tom_itx> what about IAR or Keil? 2011-11-04T23:44:32 < markamber> I am not a fan of doing what is easiest most of the time though, but this is just too confusing to start with, I need something simple 2011-11-04T23:44:35 < markamber> they cost money 2011-11-04T23:44:46 < Tom_itx> not the ones i downloaded 2011-11-04T23:44:56 < Laurenceb_> markamber: SWD works in linux 2011-11-04T23:45:08 < Laurenceb_> but i cant write to sram for some reason 2011-11-04T23:45:17 < Laurenceb_> and flash writing is broken 2011-11-04T23:45:24 < Tom_itx> i just wonder how well they work before i try them 2011-11-04T23:45:52 < markamber> simple question, can anyone here make an led blink when you press an external button on an stm32f4discovery, or any stm32, and can I see that code, I think if I see that I will have everything I will need to make what I want work 2011-11-04T23:46:18 < Laurenceb_> its pretty easy 2011-11-04T23:46:27 < Laurenceb_> i dont have any simple examples, sorry 2011-11-04T23:46:46 < Laurenceb_> st have good examples of the basics 2011-11-04T23:46:46 < markamber> how do I read a button on a certain input then 2011-11-04T23:46:56 < Tom_itx> look at the demo 2011-11-04T23:46:59 < Laurenceb_> using the GPIO stuff in the ST perif lib 2011-11-04T23:47:03 < Laurenceb_> yeah read a demo 2011-11-04T23:47:05 < Tom_itx> to see how they invoke the demo button 2011-11-04T23:47:08 < markamber> what demo, what file? 2011-11-04T23:47:25 < markamber> and are they using a user button or a button attached to one of the leads 2011-11-04T23:47:34 < Laurenceb_> st have a load of demos as zip files on their site 2011-11-04T23:47:43 < markamber> I have that too 2011-11-04T23:48:00 < markamber> I am pretty sure I have every demo, there are like 100 of them 2011-11-04T23:49:01 < Tom_itx> stm32f4-discovery_FW_V1.0.1 2011-11-04T23:49:08 < Tom_itx> should have it 2011-11-04T23:49:27 < markamber> what is the file, do you know? 2011-11-04T23:49:37 < Tom_itx> i'm looking 2011-11-04T23:49:43 < markamber> I have that -> -^ 2011-11-04T23:49:51 < markamber> thanks Tom_itx 2011-11-04T23:50:22 < markamber> Tom_itx: have you ever programmed an stm32? 2011-11-04T23:50:26 < Tom_itx> i'm not sure where they put the demo exactly but it's there 2011-11-04T23:50:30 < Tom_itx> nope 2011-11-04T23:50:35 < Tom_itx> i'm about to 2011-11-04T23:50:36 < markamber> has anyone? 2011-11-04T23:50:45 < Tom_itx> it's sitting here with st-link attached to it 2011-11-04T23:50:54 < Laurenceb_> does the stlink code have some sort of memory write prevention built in? 2011-11-04T23:51:07 < Laurenceb_> theres nothing on the usb according to wireshark 2011-11-04T23:51:19 < markamber> I just need to find some trace of documentation on how to write code for these things, there is no simple I want something to happen on a button press how to's 2011-11-04T23:51:21 < Tom_itx> i didn't wanna screw up the demo on it though without being able to save it 2011-11-04T23:51:24 < Laurenceb_> yet stlink gives an error on write attempts to SRAM 2011-11-04T23:52:09 < Tom_itx> markamber, look in the iotoggle dir 2011-11-04T23:52:17 < markamber> I just want to know how to read the state of a button (one that is not on the board) and use it in an if statement, I could also use some help with the audio playback, but the whole button thing would be a perfect start 2011-11-04T23:53:32 < markamber> if they would only put a readme in the project! 2011-11-04T23:54:08 < Tom_itx> ok, look in libraries/STM32F4xx_StdPeriph_Driver/src 2011-11-04T23:54:12 < Tom_itx> for gpio 2011-11-04T23:54:45 < markamber> so how would I hook up the button, sorry, I am just really new to this platform 2011-11-04T23:54:53 < Tom_itx> me too 2011-11-04T23:55:10 < Tom_itx> but i've been fighting linux instead of reading about the damn chip 2011-11-04T23:56:13 < Tom_itx> if you load the project in iar or something it will bring in all the sourcefiles then you can see what you've got 2011-11-04T23:56:38 < Tom_itx> then i'm gonna look for a 'main' and see what they're up to 2011-11-04T23:59:22 < Tom_itx> under Project/Demonstration may be the loaded demo 2011-11-04T23:59:22 < Laurenceb_> markamber: id be interested to know how you get on with SWD --- Day changed Sat Nov 05 2011 2011-11-05T00:00:43 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-05T00:00:55 < Tom_L> STM_EVAL_PBInit(BUTTON_USER, BUTTON_MODE_EXTI); 2011-11-05T00:01:03 < Tom_L> STM_EVAL_LEDInit(LED4); 2011-11-05T00:01:12 < Tom_L> STM_EVAL_LEDOn(LED4); 2011-11-05T00:01:35 < Tom_itx> in main.c of project/demonstration 2011-11-05T00:02:31 < Tom_itx> that should map the button and an led 2011-11-05T00:02:41 < Tom_itx> dump all the rest 2011-11-05T00:02:41 < Tom_itx> include the header 2011-11-05T00:03:07 < markamber> I do not want a button, I want a pull down or pull up button setup 2011-11-05T00:03:50 < Laurenceb_> so does anyone here have an F4discovery running with linux? 2011-11-05T00:03:55 < Tom_itx> set up a gpio with a button and map it with the gpio functions 2011-11-05T00:04:12 < Tom_itx> be careful, some io won't source/sink an led 2011-11-05T00:04:42 < markamber> Tom_itx: how does that work 2011-11-05T00:04:53 < markamber> I am completely new to all of this 2011-11-05T00:05:05 < Tom_itx> well i'm 5 min into it :) 2011-11-05T00:05:26 < Tom_itx> just look thru their demo a bit 2011-11-05T00:05:43 < Tom_itx> i'm sure you don't have to use their libs but they would make it simpler 2011-11-05T00:11:42 < Tom_itx> has anyone seen any other demo beside the accelerometer demo? 2011-11-05T00:14:08 < Tom_itx> i don't see where they exit that one and continue with the rest 2011-11-05T00:14:13 < Tom_itx> what triggers the accelerometer demo exit 2011-11-05T00:15:47 < Tom_itx> i don't have the micro usb plug so i can't see the whole thing 2011-11-05T00:20:09 -!- _Shurik_ [~alex@64.88.170.43] has quit [Quit: Leaving.] 2011-11-05T00:22:11 < markamber> GPIO_ReadInputDataBit 2011-11-05T00:22:14 < markamber> ^^ 2011-11-05T00:24:21 < Laurenceb_> karlp: ping 2011-11-05T00:26:25 < Tom_itx> that hex looks a little small to me 2011-11-05T00:26:43 < Tom_itx> oh nm 2011-11-05T00:26:48 < Tom_itx> read that wrong 2011-11-05T00:27:02 < Tom_itx> ok, iar builds it just fine 2011-11-05T00:28:57 < Tom_itx> and loads fine 2011-11-05T00:49:56 < Laurenceb_> hmm atommic free edition has a stlink gdbserver for windows 2011-11-05T00:57:13 < Tom_itx> iar is free 2011-11-05T00:57:21 < Tom_itx> the one i got is anyway 2011-11-05T00:58:00 < Tom_itx> then all the project files are in the EWARM directories 2011-11-05T00:58:25 < Tom_itx> until someone comes up with a solid linux solution... 2011-11-05T01:07:48 -!- markamber [43b0d0cb@pdpc/supporter/student/markamber] has quit [Ping timeout: 265 seconds] 2011-11-05T01:13:52 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 260 seconds] 2011-11-05T01:17:04 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2011-11-05T01:18:38 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-05T01:21:01 -!- zlog [~zlog@ip68-102-109-205.ks.ok.cox.net] has quit [Ping timeout: 240 seconds] 2011-11-05T01:21:42 -!- zlog [~zlog@ip68-102-109-205.ks.ok.cox.net] has joined ##stm32 2011-11-05T01:29:38 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has quit [Quit: OOOOOO Whats that....] 2011-11-05T02:23:45 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 252 seconds] 2011-11-05T02:43:59 -!- Laurenceb_ [~Laurence@host109-157-38-126.range109-157.btcentralplus.com] has quit [Ping timeout: 248 seconds] 2011-11-05T03:36:49 -!- yardleydobon [~jthomson@adsl-72-152-179-238.asm.bellsouth.net] has joined ##stm32 2011-11-05T04:39:40 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-05T04:41:11 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Disconnected by services] 2011-11-05T04:41:31 -!- Tom_L is now known as Tom_itx 2011-11-05T05:19:11 < grummund> Anyone else using OpenOCD to flash from the command line (or even Makefile) ? 2011-11-05T05:20:23 < grummund> do you use a config file, or a shell script to pass args, or both? 2011-11-05T05:49:11 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2011-11-05T05:50:55 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-05T05:52:23 -!- zlog [~zlog@ip68-102-109-205.ks.ok.cox.net] has quit [Ping timeout: 252 seconds] 2011-11-05T06:00:15 -!- zlog [~zlog@ip68-102-109-205.ks.ok.cox.net] has joined ##stm32 2011-11-05T06:30:53 -!- yardleydobon [~jthomson@adsl-72-152-179-238.asm.bellsouth.net] has quit [Ping timeout: 252 seconds] 2011-11-05T06:31:26 -!- yardleydobon [~jthomson@adsl-72-152-186-243.asm.bellsouth.net] has joined ##stm32 2011-11-05T06:36:34 < grummund> http://forum.sparkfun.com/viewtopic.php?f=18&t=30406 2011-11-05T06:57:46 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has quit [] 2011-11-05T09:51:15 < Thorn> grummund: I have a makefile rule and use a config file for openocd 2011-11-05T10:05:57 < Thorn> write_image is better than write_bank, it will put everything at the right address automatically 2011-11-05T11:47:55 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-05T11:47:58 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-05T12:34:09 < karlp> Laurenceb: ping after 3 hours? that is not sufficient pub time! 2011-11-05T13:09:37 < grummund> Thorn: thanks. so basicaly use write_bank for ihex format and write_image for bin format (?) 2011-11-05T13:10:09 < Thorn> I use write_image with .elf 2011-11-05T13:11:41 < Thorn> bin does not store any information about addresses but hex does IIRC 2011-11-05T13:12:28 < Thorn> you should check the openocd guide, it's all explained there 2011-11-05T13:16:01 < grummund> i didn't see much about the difference between write_bank and write_image 2011-11-05T13:16:27 < grummund> anyway, write_image does work for me so it's kinda academic 2011-11-05T13:22:37 < grummund> ok, to answer my own question... yep, use write_bank for ihex format and write_image for bin format. 2011-11-05T13:37:26 -!- Laurenceb_ [~Laurence@host109-157-38-126.range109-157.btcentralplus.com] has joined ##stm32 2011-11-05T13:42:36 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 240 seconds] 2011-11-05T13:47:53 -!- yardleydobon [~jthomson@adsl-72-152-186-243.asm.bellsouth.net] has quit [Read error: Operation timed out] 2011-11-05T13:50:22 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-05T14:05:06 < Laurenceb_> karlp: ping 2011-11-05T14:07:07 * Steffanx proxies karlp pong back to Laurenceb 2011-11-05T14:07:17 <+Steffanx> *karlp's 2011-11-05T14:07:40 < karlp> hehe 2011-11-05T14:07:52 < karlp> I'm here, but I'm not really doing any geeky stuff today 2011-11-05T14:08:03 < Laurenceb_> hi 2011-11-05T14:08:04 < karlp> about to do the dishs and get out of the house for some fresh air 2011-11-05T14:08:06 <+Steffanx> Hmm, where's dekar nowadays? 2011-11-05T14:08:20 <+Steffanx> How's it in iceland today karlp ? 2011-11-05T14:08:22 < Laurenceb_> ive discovered why i cant use SWD to SRAM 2011-11-05T14:09:01 < karlp> Steffanx: window test says lovely! 7C, blue skies with scattered little fluffies 2011-11-05T14:09:10 < Laurenceb_> set *(int *)0x20000000=1 2011-11-05T14:09:10 < Laurenceb_> Sending packet: $Hg0#df...putpkt: Junk: 2011-11-05T14:09:10 < Laurenceb_> Ack 2011-11-05T14:09:10 < Laurenceb_> Packet received: 2011-11-05T14:09:10 < Laurenceb_> Cannot access memory at address 0x20000000 2011-11-05T14:09:16 < karlp> Laurenceb_: and? 2011-11-05T14:09:38 < Laurenceb_> but i dont know whats causing that 2011-11-05T14:09:51 < karlp> Laurenceb_: I was actually thinking a little earlier, 2011-11-05T14:10:05 < karlp> in the stinklybliknly package, there's a "test_usb.c" file 2011-11-05T14:10:12 < Laurenceb_> yeah i ran it 2011-11-05T14:10:18 < Laurenceb_> it seems to work 100% 2011-11-05T14:10:40 < karlp> so, you looked at the code, and let it run the pieces that you care about? 2011-11-05T14:10:53 < karlp> those are not just "make, run, it's good" pieces of code 2011-11-05T14:10:55 < Laurenceb_> i dont think it tested sram write 2011-11-05T14:11:13 < karlp> so... make it test sram write 2011-11-05T14:12:14 < Laurenceb_> *** stlink_write_mem32 *** 2011-11-05T14:12:14 < Laurenceb_> *** stlink_write_mem32 *** 2011-11-05T14:12:22 < Laurenceb_> oh.. does that mean ti failed? 2011-11-05T14:12:42 < Laurenceb_> everything else has some debug hex underneath 2011-11-05T14:13:01 < Laurenceb_> same for write_mem8 2011-11-05T14:13:04 < Laurenceb_> how odd 2011-11-05T14:13:32 <+Steffanx> Laurenceb .. install windows :P 2011-11-05T14:13:37 < Laurenceb_> heh 2011-11-05T14:13:39 < karlp> those aren't really designed to have useful output, 2011-11-05T14:13:53 < karlp> they were/are tests that you need to know what they were trying to do 2011-11-05T14:13:54 < karlp> https://github.com/karlp/stlink/blob/master/src/test_sg.c#L160 2011-11-05T14:14:18 < karlp> copy that section into test-usb, and see if it dumps out the memory pattern from mark_buf 2011-11-05T14:14:55 < karlp> I mean, this guy: http://cu.rious.org/make/stm32f4-discovery-board-with-linux/ has it working. at least as far as blinking, which you seem to have problems doing. 2011-11-05T14:17:16 < Laurenceb_> stlink_write_mem32(sl,0x200000a8,4); 2011-11-05T14:17:16 < Laurenceb_> stlink_read_mem32(sl,0x200000a8, 4); 2011-11-05T14:17:21 < Laurenceb_> ^can i just do that? 2011-11-05T14:18:58 < Laurenceb_> oh wait 2011-11-05T14:18:59 < Laurenceb_> *** stlink_read_mem32 *** 2011-11-05T14:18:59 < Laurenceb_> data_len = 4 0x4 2011-11-05T14:18:59 < Laurenceb_> 67 45 23 01 2011-11-05T14:19:04 < Laurenceb_> that means it owrks 2011-11-05T14:19:24 < Laurenceb_> ok.. so thats kind of good 2011-11-05T14:19:35 < Laurenceb_> it means my gdbserver isnt talking properly to gdb 2011-11-05T14:19:37 < Laurenceb_> bbl 2011-11-05T15:34:58 < Laurenceb_> ok this makes no sense 2011-11-05T15:35:05 < Laurenceb_> maybe its my version of gdb 2011-11-05T15:35:23 < BrainDamage> Laurenceb_: try another gdb? 2011-11-05T15:35:32 < BrainDamage> try the summon arm toolchain one 2011-11-05T15:36:09 < Laurenceb_> yeah 2011-11-05T15:38:56 < Laurenceb_> massive download time 2011-11-05T15:41:51 < Tom_itx> morning boys and girls 2011-11-05T15:41:58 <+Steffanx> Girls? 2011-11-05T15:42:08 < Tom_itx> i'm not sexist 2011-11-05T15:42:32 <+Steffanx> Me neither, but I just wonder if that girls part is relevant 2011-11-05T15:42:33 < BrainDamage> there are no boys & girls on irc, only aliens 2011-11-05T15:45:08 < Laurenceb_> theres no girls on irc 2011-11-05T15:45:27 < Laurenceb_> a few ladyboys 2011-11-05T15:45:30 < Laurenceb_> thats all 2011-11-05T15:47:16 < Laurenceb_> where is openocd-master? 2011-11-05T15:47:28 < Laurenceb_> fatal: destination path 'openocd-master' already exists and is not an empty directory. 2011-11-05T16:05:16 < Laurenceb_> nvm 2011-11-05T16:15:48 < Laurenceb_> wow mega installation :P 2011-11-05T16:24:54 < grummund> ok, i *think* i have CDC virtual com port running on stm32 2011-11-05T16:26:05 < grummund> WinXP recognises the USB device, but lists it with a yellow '!' in device manager 2011-11-05T16:29:27 < Laurenceb_> nice 2011-11-05T16:29:46 < Laurenceb_> you know you can do that with maple 2011-11-05T16:29:49 < Laurenceb_> :P 2011-11-05T16:31:25 < grummund> no i didn't 2011-11-05T16:32:33 < grummund> And neither do i know what/who maple is, altough i've heard it/her mentioned in Arduino context. 2011-11-05T16:34:24 <+Steffanx> stm32 based adruino indeed 2011-11-05T16:34:30 <+Steffanx> Or arduino-ish board 2011-11-05T16:36:18 < Laurenceb_> still fails :( 2011-11-05T16:36:31 < Laurenceb_> Loading section .text, size 0x40 lma 0x20000000 2011-11-05T16:36:31 < Laurenceb_> Load failed 2011-11-05T16:36:39 < Laurenceb_> with new gdb 2011-11-05T16:40:26 < Laurenceb_> set *(int*)0x20000000=1 2011-11-05T16:40:26 < Laurenceb_> Cannot access memory at address 0x20000000 2011-11-05T16:40:28 < Laurenceb_> RAGE 2011-11-05T16:40:52 < grummund> heh. problems like that are *so* annoying 2011-11-05T16:41:51 < Laurenceb_> ive been trying to make it work for 2 days 2011-11-05T16:42:06 < Laurenceb_> just installed summon arm-toolchain, but its unchanged 2011-11-05T16:42:07 <+Steffanx> Only 2 days? 2011-11-05T16:42:07 < grummund> what board/mcu do you have? 2011-11-05T16:42:14 < Laurenceb_> stm32F4discovery 2011-11-05T16:42:28 < Laurenceb_> using the built in SWD 2011-11-05T16:42:44 < Laurenceb_> sram should work fine 2011-11-05T16:42:52 < Laurenceb_> but i cant make it work :( 2011-11-05T16:43:06 < grummund> does it work at all in any context?? 2011-11-05T16:43:14 < Laurenceb_> i can connect 2011-11-05T16:43:30 < Laurenceb_> halt, dump sram and flash, disassemble and debug with that and stuff 2011-11-05T16:43:49 < Laurenceb_> and i can write to flash, only it fails due to the wrong registers 2011-11-05T16:44:01 < Laurenceb_> thats going to be fixed soon aiui - theres a patch on the way 2011-11-05T16:44:16 < Laurenceb_> i can write to sram using st-link directly 2011-11-05T16:44:31 < Laurenceb_> just not via gdb server, i get an error back from st-link 2011-11-05T16:44:44 < Laurenceb_> i thought it was due to an older gdb version in codesourcery 2011-11-05T16:44:52 < Laurenceb_> but now ive upgraded gdb, its unchanged 2011-11-05T16:48:36 < Laurenceb_> seems from playing around with wireshark that st-link sends back an error on sram write attempt over the gdbserver 2011-11-05T16:55:19 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has joined ##stm32 2011-11-05T16:59:18 < Laurenceb_> Sending packet: $Hg0#df...putpkt: Junk: 2011-11-05T16:59:18 < Laurenceb_> Ack 2011-11-05T16:59:18 < Laurenceb_> Packet received: Fucked 2011-11-05T16:59:41 < Laurenceb_> ok so that solves that one 2011-11-05T16:59:52 <@jpa-> http://koti.kapsi.fi/jpa/stuff/pix/SANY0015.JPG the nice thing about smd patchwork is that no-one sees the ugliness with bare eye :) 2011-11-05T17:00:26 <+Steffanx> Sure? 2011-11-05T17:01:39 < Laurenceb_> i added a handler to st-link if it doesnt know what the packet is 2011-11-05T17:03:09 < Laurenceb_> so.. gdb is sending packet header Hg0 2011-11-05T17:03:18 < Laurenceb_> which apparently other people dont see 2011-11-05T17:08:09 < grummund> Hg == mercury? 2011-11-05T17:08:12 < Laurenceb_> no 2011-11-05T17:08:24 < Laurenceb_> it means gdb thinks the target is multithreaded 2011-11-05T17:08:32 < Laurenceb_> Hg=apply g on the current thread 2011-11-05T17:08:39 < Laurenceb_> st-link doesnt support that 2011-11-05T17:09:05 < Laurenceb_> so the packet handler gives an error 2011-11-05T17:09:20 < Laurenceb_> presumably theres a config thing for gdb to turn off multithreading 2011-11-05T17:34:47 < Laurenceb_> hmm it doesnt would if i strip the H out :( 2011-11-05T17:43:18 < Laurenceb_> i added some code to strip out a leading H 2011-11-05T17:52:06 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Read error: Connection reset by peer] 2011-11-05T17:52:27 -!- Thorn [~Thorn@93-81-4-71.broadband.corbina.ru] has joined ##stm32 2011-11-05T17:52:28 -!- Thorn [~Thorn@93-81-4-71.broadband.corbina.ru] has quit [Changing host] 2011-11-05T17:52:28 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-05T17:53:09 <+Steffanx> You like your monologue Laurenceb_ ? 2011-11-05T18:18:20 < karlp> it's nice to read back over it :) 2011-11-05T19:10:09 <@jpa-> i wonder if there would be any way to pass debug messages (printf) directly through SWD 2011-11-05T19:10:24 <@jpa-> atleast polling some memory location should work 2011-11-05T19:11:04 < karlp> there should 2011-11-05T19:11:09 < karlp> the debug trace mechanism 2011-11-05T19:11:18 < karlp> but I haven't read enough yet to know how to use it 2011-11-05T19:11:36 < karlp> also, I'm starving. what's for dinner? 2011-11-05T19:11:59 <@jpa-> thingies filled with either minced meat or mushrooms 2011-11-05T19:12:10 <@jpa-> and milk pudding for dessert 2011-11-05T19:12:16 < karlp> milk pudding? 2011-11-05T19:12:28 < karlp> thingies filled is a good idea though 2011-11-05T19:12:49 < BrainDamage> mushrooms, definetly mushrooms 2011-11-05T19:12:59 < karlp> hmm. I think mushrooms will require leaving the house 2011-11-05T19:13:48 <@jpa-> http://mediaserver-2.vuodatus.net/g/3/33501/1242375122_img-d41d8cd98f00b204e9800998ecf8427e.jpg milk pudding looks somewhat like that 2011-11-05T19:14:42 < karlp> what's in it? 2011-11-05T19:14:47 < karlp> is it like custard? 2011-11-05T19:15:23 < BrainDamage> got chicken? perhaps curry chicken? 2011-11-05T19:15:29 <@jpa-> not like custard 2011-11-05T19:16:08 <@jpa-> milk and maize flour (and sugar) 2011-11-05T19:16:50 <@jpa-> potato flour works too 2011-11-05T20:36:28 < Laurenceb_> back 2011-11-05T20:36:34 * Laurenceb_ gave up and went out XD 2011-11-05T20:37:19 < Laurenceb_> so i added some code to strip out leading H from the packets 2011-11-05T20:37:25 < Laurenceb_> and it works and reads out the registers 2011-11-05T20:37:31 < Laurenceb_> but then fails 2011-11-05T20:38:21 < Laurenceb_> (gdb) set *(int*)0x20000000=1 2011-11-05T20:38:21 < Laurenceb_> Sending packet: $Hg0#df...putpkt: Junk: 2011-11-05T20:38:21 < Laurenceb_> Ack Packet received: 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800c0020ffffffff2c420008 Cannot access memory at address 0x20000000 2011-11-05T20:38:53 < Laurenceb_> which makes even less sense - gdb asks to read registers, registers read, gdb fails 2011-11-05T20:39:36 <+Steffanx> Still messing around Laurenceb_ ? 2011-11-05T20:40:12 < Laurenceb_> yes 2011-11-05T20:40:42 < Thorn> there's ITM_SendChar() to print via the trace facility 2011-11-05T20:41:24 <+Steffanx> You still need a client which understand it no? 2011-11-05T20:43:04 < Thorn> I think openocd does have support. another thing is whether it's going to work via jtag or not (data trace is only available via swd) 2011-11-05T20:43:46 <+Steffanx> I only use swd :) 2011-11-05T20:44:04 < Thorn> there even was an example in cmsis docs how to determine if a debugger is connected 2011-11-05T20:44:50 < Thorn> something like void HardFault_Handler() { if(debufgger) breakpoint(); else while(1);; } 2011-11-05T20:46:18 < Thorn> I'm considering a j-link clone for swd support & stable gdbserver 2011-11-05T20:52:27 < Thorn> btw I implemented no-debounce keypad scanning. it ended up having two stages of debouncing :) 2011-11-05T21:25:15 < Laurenceb_> i think something is wrong with the way gdb is behaving 2011-11-05T21:25:38 < Laurenceb_> if i load an elf that has .text starting in flash, the first packet sent by gdb is flasherase 2011-11-05T21:25:59 < Laurenceb_> but if .text is in sram, it sends register read then fails 2011-11-05T21:26:05 < Laurenceb_> surely thats not right 2011-11-05T21:28:08 < Laurenceb_> http://pastebin.com/0424ggPn 2011-11-05T21:29:55 < Thorn> line 56 2011-11-05T21:30:12 < Thorn> it receives no reply? 2011-11-05T21:30:55 < Laurenceb_> correct 2011-11-05T21:31:02 < Laurenceb_> as Hg isnt supported 2011-11-05T21:31:23 < Laurenceb_> but if i modify the packet parser so it correctly replies with the registers, it makes no difference 2011-11-05T21:32:06 < Thorn> i.e. it receives the reply and saly "Load failed"? 2011-11-05T21:32:16 < Laurenceb_> yes 2011-11-05T21:32:51 < Laurenceb_> maybe i should make it say "OK" :P 2011-11-05T21:33:12 < Thorn> time to read relevant parts of gdb and/or step them through with gdb 2011-11-05T21:33:30 < Laurenceb_> lol 2011-11-05T21:33:38 < Laurenceb_> yo dawg, i heard you like gdb 2011-11-05T21:34:09 < Laurenceb_> etc 2011-11-05T21:34:36 < Laurenceb_> im going to make stlink say 'OK' XD 2011-11-05T21:36:17 < Laurenceb_> lol it still fails 2011-11-05T22:24:50 -!- Xamusk [~X@186.221.10.157] has joined ##stm32 2011-11-05T22:24:54 < Laurenceb_> yo 2011-11-05T22:24:56 < Xamusk> ya 2011-11-05T22:24:59 < Laurenceb_> which stm32? 2011-11-05T22:25:08 < Xamusk> F103RET6 2011-11-05T22:25:16 < Laurenceb_> at - im trying F4 2011-11-05T22:25:27 < Xamusk> damn 2011-11-05T22:25:35 < Laurenceb_> do you use st-link? 2011-11-05T22:25:35 < Xamusk> I only have dreams about F4 2011-11-05T22:25:38 < Xamusk> nope 2011-11-05T22:25:48 < Xamusk> guruplug jtag board 2011-11-05T22:25:53 < Laurenceb_> set debug remote 1 2011-11-05T22:25:56 < Laurenceb_> then try 2011-11-05T22:26:10 < Xamusk> openocd works fine 2011-11-05T22:26:18 < Laurenceb_> in gdb 2011-11-05T22:26:26 -!- c0ded00d [405b7e42@gateway/web/freenode/ip.64.91.126.66] has joined ##stm32 2011-11-05T22:26:34 < Laurenceb_> it will show packets exchanged with openocd 2011-11-05T22:26:35 < Xamusk> actually, from my tests, I found that only the continue command gives problems 2011-11-05T22:26:48 < Laurenceb_> i dont really know, sorry 2011-11-05T22:27:43 < c0ded00d> gdb->openocd->target ? 2011-11-05T22:28:33 < Xamusk> strange 2011-11-05T22:28:47 < c0ded00d> are people seeing my messages? 2011-11-05T22:29:03 < Xamusk> c0ded00d, looks like 2011-11-05T22:29:24 < c0ded00d> ok cool. I am just trying to understand the how you are using GDB with your STM board 2011-11-05T22:29:48 < c0ded00d> Connecting via RSP to OpenOCD, JTAG to dev board? 2011-11-05T22:29:56 < Xamusk> c0ded00d, my intention is to use eclipseŽs debugging, but IŽm trying variations in the command line 2011-11-05T22:30:28 < Xamusk> line: target remote localhost:3333 2011-11-05T22:30:31 < c0ded00d> OK I saw this message where GDB was trying to send an XML file to the target with the memory map information 2011-11-05T22:30:50 < c0ded00d> actually was it the other way around? 2011-11-05T22:32:35 < Laurenceb_> karlp: i think i know whats causing my issue 2011-11-05T22:32:48 < Laurenceb_> gdb has misread/interpreted to memory map 2011-11-05T22:32:55 < Laurenceb_> it thinks sram is rom 2011-11-05T22:33:10 < Xamusk> I think I got another workaround 2011-11-05T22:33:13 < c0ded00d> thats what I thought 2011-11-05T22:33:23 < Xamusk> set remotetimeout 10000 2011-11-05T22:33:28 < Xamusk> this got me working 2011-11-05T22:33:58 < c0ded00d> What STM part are you all using? 2011-11-05T22:34:34 < Xamusk> STM32F103RET6 2011-11-05T22:39:37 < c0ded00d> In this case I would agree with Laurenceb_. I have dealt with the RSP timeout issue in the past. This might have to do with how long it is taking to load the target with the executable image. Looks like it might be timing out 2011-11-05T22:48:00 < Xamusk> it is 2011-11-05T22:48:26 < Xamusk> however, I have tried that previously and it didnŽt work... must have been a combination of factors 2011-11-05T22:48:56 < Xamusk> it worked with programs up to around 40KB, but not after that 2011-11-05T22:59:58 < c0ded00d> oh change the XML file 2011-11-05T23:32:41 < Xamusk> I just hate those HardFaults 2011-11-05T23:36:50 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has joined ##stm32 2011-11-05T23:39:15 -!- Xamusk [~X@186.221.10.157] has quit [Read error: Connection reset by peer] 2011-11-05T23:39:38 -!- Xamusk [~X@186.221.10.157] has joined ##stm32 2011-11-05T23:44:28 < Thorn> why didn't ARM make accessing address 0 throw a fault? that would catch null pointers 2011-11-05T23:48:06 <@jpa-> i guess address space allocation is left to chip makers 2011-11-05T23:48:52 < Thorn> address 0 contains initial sp value and address 4 the reset handler, the cpu reads those on startup 2011-11-05T23:49:05 < Thorn> I don't think these can be changed 2011-11-05T23:50:24 < Thorn> e.g. flash in stm32 is at 0x800000 but is still mapped to 0, probably for these reasons 2011-11-05T23:51:23 < Thorn> they could shift those locations by 4 bytes and make addresses 0...3 generate a fault 2011-11-05T23:53:15 <@jpa-> or just put it at 0x10000 or something, it is not such uncommon to access foobar[i] where foobar is 0 2011-11-05T23:53:46 <@jpa-> with MPU you can probably achieve that 2011-11-05T23:53:58 < Thorn> 4Gb is a huge amount for cortex-m so why not 2011-11-05T23:54:17 < Thorn> with MMU you certainly can, not sure about MPU though 2011-11-05T23:57:58 < Thorn> ok I've got keypad and display working. time to make a calculator lol --- Day changed Sun Nov 06 2011 2011-11-06T00:00:07 < Thorn> or better yet do a universal printf() that can print to a uart, display etc 2011-11-06T00:00:24 <@jpa-> tinyprintf <3 2011-11-06T00:02:24 < Thorn> it's lgpl and the code is not that clean. I'm using a different implementation from http://www.menie.org/georges/embedded/printf-stdarg.html and looking at yet another one 2011-11-06T00:02:41 < Thorn> because that one is also lgpl 2011-11-06T00:03:53 < Thorn> FSF clearly didn't think about embedded developers 2011-11-06T00:04:49 -!- c0ded00d [405b7e42@gateway/web/freenode/ip.64.91.126.66] has quit [Ping timeout: 265 seconds] 2011-11-06T00:12:36 < Thorn> this contains a printf implementation which takes a pointer to a putchar function http://speleotrove.com/tollos/index.html 2011-11-06T00:14:17 < Thorn> (and is reentrant) 2011-11-06T00:32:29 < grummund> yay. stm32f103 running as usb-serial CDC device @ 921600 baud... 2011-11-06T00:32:38 < grummund> loopback data, works. \o/ 2011-11-06T00:33:02 < Thorn> using stm driver? 2011-11-06T00:33:41 < grummund> it started working with the ST windows driver for unknown reason 2011-11-06T00:34:09 < grummund> but then i wrote an .inf file for the windows usbser.sys driver and that works too :) 2011-11-06T00:34:38 <+Steffanx> Free beer for us grummund ? 2011-11-06T00:34:41 < Thorn> I wonder how stm CDC would work under linux 2011-11-06T00:35:19 < grummund> should work, why wouldn't it? 2011-11-06T00:35:44 < grummund> yes, virtual beer is on me. 2011-11-06T00:35:53 <+Steffanx> Not all OS's stick to the right specs .. 2011-11-06T00:36:11 <+Steffanx> Windows or linux is probably one of them with some small differences.. 2011-11-06T00:36:15 < Xamusk> though Linux usually does 2011-11-06T00:36:21 <+Steffanx> Not always : 2011-11-06T00:36:22 <+Steffanx> :) 2011-11-06T00:36:40 < Xamusk> not always is better than usually not 2011-11-06T00:36:54 <+Steffanx> I (always) hear abcminiuser aka dean aka father of lufa complain about it 2011-11-06T00:37:14 < Xamusk> and even better than šcreates new specs just so OSes with the right ones wonŽt interoperateš 2011-11-06T00:37:18 < grummund> Thorn: if you have a stm32f10x dev board with USB port it would not be difficult to try it 2011-11-06T00:37:35 <+Steffanx> You don't have linux grummund ? 2011-11-06T00:37:57 < grummund> i do but my main desktop is WinXP 2011-11-06T00:38:03 <+Steffanx> vm's ftw :) 2011-11-06T00:38:05 < Xamusk> yeah, IŽve also seen the page about the Maple bootloader say that no OS is equal talking about USB 2011-11-06T00:38:57 < Thorn> I've got 3, but one is 107, one is being used for a prototype and I didn't bother installing a usb connector on the 3rd one yet :) 2011-11-06T00:39:35 < Thorn> (and it's also growing a forest of wires) 2011-11-06T00:39:50 < Thorn> I've got parts and a pcb for one more though... 2011-11-06T00:39:52 < grummund> i had to short out a transistor on the Olimex H103 to enable USB 2011-11-06T00:39:59 <+Steffanx> :S 2011-11-06T00:40:18 < grummund> (just a heads up in case anyone else has that board) 2011-11-06T00:40:28 <+Steffanx> Nope 2011-11-06T00:42:10 < grummund> the link is barely visible by eye, i hope i remember it's there :P 2011-11-06T00:43:38 < Laurenceb_> holy shit 2011-11-06T00:43:40 < Laurenceb_> its working 2011-11-06T00:44:16 < grummund> success is contagious ;) 2011-11-06T00:44:17 < Laurenceb_> gdb, then halt with ctrl-c, then load, then continue 2011-11-06T00:44:53 * grummund hands Laurenceb_ a virtual beer 2011-11-06T00:45:37 < Thorn> I often see transistorts on the D+ line in dev boards. looks like they're for pulling it up with a 1.5K resistor 2011-11-06T00:45:50 < Laurenceb_> thanks XD 2011-11-06T00:45:55 < Laurenceb_> i dont know why 2011-11-06T00:46:07 < Laurenceb_> halt, kill, load, run 2011-11-06T00:46:12 < Thorn> that's what I always do when I need to debug an openocd target with gdb 2011-11-06T00:46:14 < Laurenceb_> is what i was trying before 2011-11-06T00:46:22 < Laurenceb_> guess that doesnt work with sram or something 2011-11-06T00:48:46 < Thorn> a usb example (from a lpc1768 board) http://i.imgur.com/ElLvs.jpg 2011-11-06T00:50:01 < Laurenceb_> is that for suspend or something? 2011-11-06T00:50:41 < Thorn> I wish I knew. a pullup on D+ selects usb speed iirc 2011-11-06T00:51:13 < Thorn> http://www.beyondlogic.org/usbnutshell/usb2.shtml#SpeedIdentification 2011-11-06T00:51:31 < grummund> looks like it's for connect/disconnect 2011-11-06T00:51:48 < Laurenceb_> yeah i think so 2011-11-06T00:51:52 < Laurenceb_> theres also a way to do suspend like that 2011-11-06T00:51:52 < Laurenceb_> i forget :( 2011-11-06T00:52:06 < grummund> on the Olimex it's controlled from a gpio line marked "DISC" 2011-11-06T00:52:35 <+Steffanx> Poor you 2011-11-06T00:52:36 < Thorn> so what does it do? 2011-11-06T00:52:37 < grummund> and on Thorn's circuit there's a jumper marked USB_CONNECT 2011-11-06T00:52:52 < grummund> good question 2011-11-06T00:53:13 < Thorn> a jumper and a gpio pin 2011-11-06T00:53:46 < grummund> yeah, so in effect the same... one marked "disconnect" the other "connect" 2011-11-06T00:54:07 < Thorn> all the transistor seems to do is collect a pullup (R101) 2011-11-06T00:54:13 < Thorn> *connect 2011-11-06T00:54:44 < grummund> presumably the host controller senses that 2011-11-06T00:55:48 < Thorn> yes, that's explained in the link I gave. but that's speed identification, why call it "connect"/"disconnect" 2011-11-06T00:57:38 < grummund> ah so it should only be asserted once the uC is ready to connect 2011-11-06T00:57:54 < Thorn> "For example Philips Semiconductor has a SoftConnectTM technology. When first connected to the bus, this allows the microcontroller to initialise the USB function device before it enables the pull up speed identification resistor, indicating a device is attached to the bus." 2011-11-06T00:57:59 < Thorn> that's why 2011-11-06T00:58:16 < grummund> i was paraphrasing :P 2011-11-06T00:58:31 < Thorn> so it's not just speed identification, it's a "device present" signal too 2011-11-06T00:58:57 < Thorn> yeah I found that simultaneosly :) 2011-11-06T00:59:36 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 240 seconds] 2011-11-06T01:00:19 < Thorn> that guide is great, I wish it explained device classes too 2011-11-06T01:00:33 < Thorn> need a book on usb 2011-11-06T01:01:49 * grummund wonders if the ST-3210B eval board has a switched pullup too... 2011-11-06T01:02:24 < grummund> since the demo firmware doesn't configure any gpio to deal with that 2011-11-06T01:02:45 < grummund> which is why i shunted the transistor 2011-11-06T01:16:29 < Thorn> these little iteadstudio boards simply have jumpers there however 2011-11-06T01:25:57 < Thorn> I fail to see any pullups in the STM-P107 board from olimex though. maybe USB OTG doesn't need them? 2011-11-06T01:32:05 -!- Laurenceb_ [~Laurence@host109-157-38-126.range109-157.btcentralplus.com] has quit [Ping timeout: 240 seconds] 2011-11-06T01:36:16 -!- AaronM [~Aaron@adsl-74-226-73-245.mem.bellsouth.net] has joined ##stm32 2011-11-06T01:36:16 -!- AaronM [~Aaron@adsl-74-226-73-245.mem.bellsouth.net] has quit [Changing host] 2011-11-06T01:36:16 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has joined ##stm32 2011-11-06T01:47:59 < grummund> neither does the H107 2011-11-06T01:51:37 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has quit [Quit: Quit] 2011-11-06T02:01:53 -!- Xamusk [~X@186.221.10.157] has quit [Ping timeout: 244 seconds] 2011-11-06T02:02:39 -!- yardleydobon [~jthomson@adsl-72-152-186-243.asm.bellsouth.net] has joined ##stm32 2011-11-06T02:04:53 < Thorn> STM3210E-EVAL does have a usb disconnect pin http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/USER_MANUAL/CD00178166.pdf page 32 2011-11-06T02:10:22 < grummund> STM3210B-EVAL has it too, either gpio controlled or forced on via a jumper 2011-11-06T02:21:04 < Thorn> Philips Semiconductor can now sue everybody for using their SoftConnect(tm) technology 2011-11-06T02:28:55 < yardleydobon> I'm getting started with an SMT32VLDiscovery in Linux. I can download Demo.bin and GPIOToggle.bin to flash, but they won't run until I unplug the board. After running stlink-download the COM LED stays lit. I've tried the reset button and the reset command. Is there something I can do to reset it without unplugging it? 2011-11-06T02:34:51 < Thorn> that probably means the chip stays in reset after programming, but I've never used discovery boards or st-link so can't help you 2011-11-06T02:51:18 < Thorn> here's a possible workaround http://marc.info/?l=linux-usb&m=121459435621262&w=2 2011-11-06T02:56:03 < yardleydobon> i just figured it out. 2011-11-06T02:56:24 < yardleydobon> i ran the status command and it said ARM status is 0x0081: halted. 2011-11-06T02:56:32 < yardleydobon> then i saw there was a run command 2011-11-06T02:56:46 < Tom_itx> in st-link there is 2011-11-06T02:56:51 < yardleydobon> i used. it started running. 2011-11-06T03:21:20 < Thorn> http://www.bunniestudios.com/blog/?p=1863 2011-11-06T03:25:51 -!- yardleydobon [~jthomson@adsl-72-152-186-243.asm.bellsouth.net] has left ##stm32 [] 2011-11-06T03:26:39 -!- yardleydobon [~jthomson@adsl-72-152-186-243.asm.bellsouth.net] has joined ##stm32 2011-11-06T03:53:10 -!- Xamusk [~X@186.221.10.157] has joined ##stm32 2011-11-06T04:07:11 -!- Xamusk [~X@186.221.10.157] has quit [Ping timeout: 248 seconds] 2011-11-06T04:57:25 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-06T05:01:13 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 256 seconds] 2011-11-06T05:02:34 -!- Tom_L is now known as Tom_itx 2011-11-06T05:38:55 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 248 seconds] 2011-11-06T05:39:49 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has quit [] 2011-11-06T05:45:05 -!- zlog [~zlog@ip68-102-109-205.ks.ok.cox.net] has quit [Ping timeout: 258 seconds] 2011-11-06T05:45:37 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-06T05:48:30 -!- zlog [~zlog@ip68-102-109-205.ks.ok.cox.net] has joined ##stm32 2011-11-06T06:12:52 -!- monode [4f73b9fc@gateway/web/freenode/ip.79.115.185.252] has joined ##stm32 2011-11-06T06:13:33 -!- monode [4f73b9fc@gateway/web/freenode/ip.79.115.185.252] has left ##stm32 [] 2011-11-06T07:40:56 -!- yardleydobon [~jthomson@adsl-72-152-186-243.asm.bellsouth.net] has left ##stm32 [] 2011-11-06T13:33:24 -!- Laurenceb_ [~Laurence@host109-157-38-126.range109-157.btcentralplus.com] has joined ##stm32 2011-11-06T14:42:05 < Thorn> who said i2c was easy? 2011-11-06T14:42:13 < Thorn> on stm32, it's certainly not 2011-11-06T14:43:05 < Thorn> I barely managed to make it NAK the last received byte, and that's for 3 byte transfers. 1 and 2 byte transfers are apparently special 2011-11-06T15:13:49 < Laurenceb_> i have example code on github 2011-11-06T15:18:50 < karlp> Laurenceb_: good news! great to hear you got it working! 2011-11-06T15:19:07 < karlp> did you have to change any more code? or just the H thing for gdb? 2011-11-06T15:19:07 < Laurenceb_> yeah thanks 2011-11-06T15:19:10 < Laurenceb_> kind of working 2011-11-06T15:19:20 < Laurenceb_> the elf someone sent me works 2011-11-06T15:19:23 < karlp> do you have your changes anywhere? 2011-11-06T15:19:27 < Laurenceb_> no 2011-11-06T15:19:42 < Laurenceb_> i didnt make any changes, it only works with halt load continue 2011-11-06T15:19:51 < Laurenceb_> im not sure if thats right for sram? 2011-11-06T15:20:01 * karlp shrugs 2011-11-06T15:20:07 < Laurenceb_> previously i tried kill, but after kill you cant access ram 2011-11-06T15:20:20 < Laurenceb_> it seems to be gdb that blocks access 2011-11-06T15:20:46 < Laurenceb_> anyway, if i try loading my elf files now, it doesnt change the program counter to 0x20000000 2011-11-06T15:22:21 < Laurenceb_> hmm even with debugging off 2011-11-06T15:25:18 < Laurenceb_> the hell 2011-11-06T15:25:29 < Laurenceb_> ok it runs, but only with optimiesed code 2011-11-06T15:25:36 < Laurenceb_> *optimiesed 2011-11-06T15:25:44 < Laurenceb_> arg *optimised 2011-11-06T15:26:23 < Laurenceb_> unoptimised code with -g doesnt change the program counter 2011-11-06T15:26:38 < Laurenceb_> so it continues from flash, but usually breaks due to the corrupted sram 2011-11-06T15:27:39 < Laurenceb_> im very confused... but debugging is supposed to work with gcc with optimisation enabled? 2011-11-06T15:28:05 < Laurenceb_> at least... to an extent 2011-11-06T15:28:17 < Laurenceb_> monologue++ :P ill bbl 2011-11-06T15:56:25 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has joined ##stm32 2011-11-06T16:02:34 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has quit [] 2011-11-06T17:43:18 -!- karlp [~karl@palmtree.beeroclock.net] has quit [Ping timeout: 245 seconds] 2011-11-06T17:44:12 -!- karlp [~karl@palmtree.beeroclock.net] has joined ##stm32 2011-11-06T19:23:24 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-06T19:23:25 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-06T20:02:50 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has joined ##stm32 2011-11-06T21:04:16 < Thorn> looks like I did manage to implement polled i2c transfer for all cases (basically what the lpc17xx library provides out of the box) 2011-11-06T21:29:39 < Laurenceb_> Thorn: look for me on github 2011-11-06T21:29:50 < Laurenceb_> i have interrupt and polled i2c 2011-11-06T21:30:11 < Thorn> yeah I've seen the i2c code in dactyl (interrupt only though) 2011-11-06T21:36:30 < Thorn> found polled version 2011-11-06T21:40:02 < Thorn> my version handles the 1 byte receive case, but no timeouts yet 2011-11-06T21:40:32 < Laurenceb_> cool 2011-11-06T21:41:25 < Thorn> I also found an stm app note on i2c implementation, and there's that CPAL library too 2011-11-06T21:41:47 < Laurenceb_> CPAL? 2011-11-06T21:41:48 < Thorn> apparently people are having problems with i2c 2011-11-06T21:41:50 < Thorn> http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/APPLICATION_NOTE/CD00209826.pdf 2011-11-06T21:41:56 < Laurenceb_> interesting 2011-11-06T21:42:03 < Thorn> cpal = "common peripheral access library" iirc 2011-11-06T21:42:08 < Laurenceb_> ok 2011-11-06T21:42:15 < Laurenceb_> from st? 2011-11-06T21:42:40 < Thorn> it's UM1029 2011-11-06T21:42:42 < Laurenceb_> yeah aiui the only outstanding problems occur if you take ages to service the isr 2011-11-06T21:42:48 < Laurenceb_> i see 2011-11-06T21:42:52 < Thorn> yes, from ST 2011-11-06T21:43:12 < Laurenceb_> there seems to have been some confusion caused by multiple datasheet revisions 2011-11-06T21:43:33 < Laurenceb_> latest datasheet pretty much describes the i2c as it functions aiui 2011-11-06T21:43:54 <+Steffanx> aiui? 2011-11-06T21:44:17 < Laurenceb_> as i understand it 2011-11-06T21:44:18 <+Steffanx> Oh nvm 2011-11-06T21:44:26 <+Steffanx> I googled it :) 2011-11-06T21:45:29 < Thorn> what datasheet are you referring to? 2011-11-06T21:45:42 < Thorn> rm0008 or actual device datasheet? 2011-11-06T21:51:01 < Thorn> btw both ICs I'm using for testing have the same slave address. thankfully they have some address select pins 2011-11-06T22:02:38 < Thorn> i2c has its own website http://www.i2c-bus.org/ --- Day changed Mon Nov 07 2011 2011-11-07T00:06:20 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-07T00:06:54 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-07T00:06:59 -!- csamuelson is now known as Rious 2011-11-07T00:07:53 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving] 2011-11-07T00:08:16 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-07T00:08:19 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-07T00:15:14 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-07T00:16:56 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-07T00:40:20 < Laurenceb_> http://i.imgur.com/R9i43.png 2011-11-07T00:40:22 < Laurenceb_> works 2011-11-07T00:40:29 < Laurenceb_> F4 debugging 2011-11-07T00:43:02 -!- phantone [~destroy@a95-92-92-79.cpe.netcabo.pt] has joined ##stm32 2011-11-07T00:46:35 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has quit [Ping timeout: 276 seconds] 2011-11-07T00:55:15 -!- phantone is now known as phantoxe 2011-11-07T01:05:55 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 255 seconds] 2011-11-07T01:21:19 -!- Laurenceb_ [~Laurence@host109-157-38-126.range109-157.btcentralplus.com] has quit [Ping timeout: 248 seconds] 2011-11-07T02:23:06 -!- csamuelson is now known as Rious 2011-11-07T03:02:35 -!- Xamusk [~X@186.221.10.157] has joined ##stm32 2011-11-07T03:03:59 < Xamusk> IŽm transferring ADC values through DMA, but for some reason itŽs going around 19% slower than it should 2011-11-07T03:06:54 < Xamusk> from my calculations, I should be getting 54KHz, but IŽm getting 44KHz, for 3 Dual ADC samples, with the ADCs running at 55.5 cycles per conversion 2011-11-07T03:08:21 < Xamusk> any ideas on where the problem might be? 2011-11-07T03:33:08 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-07T03:34:04 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-07T03:36:36 < Xamusk> ok... gonna try more tomorrow 2011-11-07T03:38:18 -!- Xamusk [~X@186.221.10.157] has quit [Quit: Leaving] 2011-11-07T03:54:51 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has quit [] 2011-11-07T03:55:56 -!- AaronM [~Aaron@adsl-74-226-73-245.mem.bellsouth.net] has joined ##stm32 2011-11-07T03:55:56 -!- AaronM [~Aaron@adsl-74-226-73-245.mem.bellsouth.net] has quit [Changing host] 2011-11-07T03:55:56 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has joined ##stm32 2011-11-07T03:58:54 < grummund> hmm, if Xamusk shows up again perhaps someone can mention to check the PLL clock multiplier config. 2011-11-07T03:59:23 < grummund> system clock that is 2011-11-07T04:22:30 < karlp> Laurenceb: yay! glad it's finally working! 2011-11-07T04:23:08 < karlp> please, if there's any code that you had to poke/break/improve, let me add it into my tree at least. (or make your own fork and commit it there :) 2011-11-07T04:30:55 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-07T04:32:35 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-07T05:19:46 -!- CheBuzz [~CheBuzz@76.164.192.124] has quit [Excess Flood] 2011-11-07T05:20:08 -!- CheBuzz [~CheBuzz@76.164.192.124] has joined ##stm32 2011-11-07T05:26:54 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-07T05:27:36 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-07T05:31:35 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has quit [Remote host closed the connection] 2011-11-07T07:11:30 -!- cjbaird [~cjb@ppp121-45-166-126.lns20.syd6.internode.on.net] has joined ##stm32 2011-11-07T07:46:29 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has quit [Ping timeout: 240 seconds] 2011-11-07T08:50:35 -!- Thorn__ [~Thorn@93-81-4-47.broadband.corbina.ru] has joined ##stm32 2011-11-07T08:50:36 -!- Thorn__ [~Thorn@93-81-4-47.broadband.corbina.ru] has quit [Changing host] 2011-11-07T08:50:36 -!- Thorn__ [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-07T08:54:00 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 260 seconds] 2011-11-07T08:54:20 -!- Thorn__ is now known as Thorn 2011-11-07T09:51:04 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Read error: Connection reset by peer] 2011-11-07T10:21:53 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-07T13:32:55 -!- Thorn__ [~Thorn@93-81-4-47.broadband.corbina.ru] has joined ##stm32 2011-11-07T13:32:55 -!- Thorn__ [~Thorn@93-81-4-47.broadband.corbina.ru] has quit [Changing host] 2011-11-07T13:32:55 -!- Thorn__ [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-07T13:33:18 -!- Netsplit *.net <-> *.split quits: BrainDamage, district, Thorn 2011-11-07T13:37:46 -!- Netsplit over, joins: district 2011-11-07T13:45:47 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32 2011-11-07T14:44:35 -!- Thorn__ [~Thorn@unaffiliated/thorn] has quit [Read error: Connection reset by peer] 2011-11-07T15:14:41 -!- cjbaird [~cjb@ppp121-45-166-126.lns20.syd6.internode.on.net] has quit [Remote host closed the connection] 2011-11-07T15:20:20 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-07T16:11:07 -!- Netsplit *.net <-> *.split quits: biot, BrainDamage 2011-11-07T16:13:33 -!- Kevin` [~kevin@router.kwzs.be] has quit [Ping timeout: 258 seconds] 2011-11-07T16:17:26 -!- biot [~bert@kiutl.biot.com] has joined ##stm32 2011-11-07T16:20:17 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32 2011-11-07T16:28:46 -!- zlog [~zlog@ip68-102-109-205.ks.ok.cox.net] has quit [Read error: Operation timed out] 2011-11-07T16:29:29 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 252 seconds] 2011-11-07T16:33:36 -!- zlog [~zlog@ip68-102-109-205.ks.ok.cox.net] has joined ##stm32 2011-11-07T16:34:20 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has quit [Ping timeout: 258 seconds] 2011-11-07T16:35:08 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has joined ##stm32 2011-11-07T18:20:19 -!- Xamusk [~X@200.20.218.11] has joined ##stm32 2011-11-07T18:20:22 < Xamusk> hi 2011-11-07T18:20:53 < Xamusk> IŽm having a strange problem where my DMA reads (from ADC) are getting around 19% slower than it should 2011-11-07T18:21:07 < Xamusk> in a STM32F103RET6 2011-11-07T18:22:07 < Xamusk> IŽm running @72MHz, with Dual sampling of 6 ADC channels (3 DMA positions), 55.5 cycles/sample 2011-11-07T18:22:38 < Xamusk> ADC divisor is 8 2011-11-07T18:24:00 < Xamusk> by my calculations, I should get 72M/8/55.5/3 = 54K interrupt calls, but IŽm getting only 44K 2011-11-07T18:25:49 < Xamusk> any ideas? 2011-11-07T18:26:31 < grummund> Xamusk: is the system clock PLL configured correctly? 2011-11-07T18:27:05 < Xamusk> grummund, yes... I tested with something like the GPIO_Toggle example from ST, and got 18MHz on output as it should 2011-11-07T18:27:13 < grummund> ok 2011-11-07T18:27:15 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-07T18:27:50 < Xamusk> or at least as the example says it should... anyway, I also have a led based on SysTick, and I get what I should 2011-11-07T18:28:55 < grummund> i've not used DMA or ADC, sorry 2011-11-07T18:29:03 < Xamusk> ok 2011-11-07T18:32:41 < Xamusk> the strange part is that the relation is broken, a little less than 19%... if it was an integer relation I could have some suspects, but not for that 2011-11-07T18:33:37 < Xamusk> I set the DMA IRQ as high-priority and made it as fast as possible, with just the pin toggling 2011-11-07T18:33:43 < grummund> since it is slower than you expect could it be some samples are "missed" ? 2011-11-07T18:37:07 < Xamusk> itŽs possible, but I donŽt know whatŽs doing it 2011-11-07T18:37:14 < Xamusk> and itŽs pretty regular 2011-11-07T18:37:46 < Xamusk> if one out of two samples were missed, IŽd guess the speed would be 50% of what it should, not 81% 2011-11-07T18:39:01 < grummund> can you have tha ADC generate an interrupt on each sample? then toggle a pin in an ISR for that. 2011-11-07T18:39:45 < Xamusk> IŽm doing that for the DMA transfer complete... IŽll try to enable that for the ADC 2011-11-07T18:40:12 < grummund> would be useful to see that they tie up 2011-11-07T18:40:38 < Xamusk> indeed 2011-11-07T18:41:11 < grummund> also to view that on a scope it should be clear if it's genuinly running slower or just skipping samples 2011-11-07T18:51:44 < Xamusk> grummund, actually, IŽm seeing most of it in the scope 2011-11-07T18:51:59 < Xamusk> which gave me the figure of 44kHz 2011-11-07T18:52:28 < Xamusk> but now I did your suggestion, and got a most interesting, if not weird, result 2011-11-07T18:54:02 < Xamusk> matching each of the DMA cycles there are two peaks for the ADC (there should be 3) and they are 840ns apart (should have been 6.16us) 2011-11-07T18:55:24 < Xamusk> IŽd expect a regular interval between the end-of-conversion 2011-11-07T19:01:45 < Xamusk> ok... got rid of the second peak... it was because the ADC1 also uses the same interrupt vector as ADC2 2011-11-07T19:02:24 < Xamusk> but IŽm still getting 44kHz 2011-11-07T19:03:02 < grummund> if it's stable at that frequency it suggests the config is wrong 2011-11-07T19:04:28 < grummund> is the ADC setup straightforwad? i could perhaps try it here... 2011-11-07T19:14:21 <@jpa-> Xamusk: so your sample time is 55.5 cycles? isn't the total conversion time then 69.5 cycles? 2011-11-07T19:14:37 < Xamusk> 69.5? 2011-11-07T19:15:07 <@jpa-> the conversion time is 14 cycles 2011-11-07T19:16:57 <@jpa-> check 11.3.6 Timing diagram in the reference manual 2011-11-07T19:17:12 < Xamusk> damn 2011-11-07T19:17:21 < Xamusk> I totally forgot about the 12.5+ cycles 2011-11-07T19:17:30 < Xamusk> 14 cycles is for 1.5 cycle conversion 2011-11-07T19:18:13 <@jpa-> ah, yeah 2011-11-07T19:18:30 < Xamusk> jpa-, damn, you totally killed the issue! 2011-11-07T19:18:35 <@jpa-> sorry 2011-11-07T19:18:49 < Xamusk> jpa-, that was a compliment :-) 2011-11-07T19:19:15 <@jpa-> stop, stop, it's not my fault! 2011-11-07T19:19:18 * jpa- runs away 2011-11-07T19:20:44 < Xamusk> 1-55.5/(55.5+12.5)=19% !!! 2011-11-07T19:20:57 < Xamusk> just what I was looking for 2011-11-07T19:21:17 < Xamusk> damn that hidden page 216 2011-11-07T19:21:55 < Xamusk> gonna annotate the code to remember that 2011-11-07T19:22:03 < Thorn> if all else fails, rtfm. 2011-11-07T19:23:26 < Xamusk> yeah 2011-11-07T19:24:00 < Xamusk> and I did quite some reading, but somehow must have skipped that, even though I clearly remember reading that page almost 2 years ago 2011-11-07T19:34:35 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-07T19:34:38 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-07T19:46:47 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has left ##stm32 ["Leaving"] 2011-11-07T19:47:11 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-07T19:47:14 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-07T19:53:42 < Thorn> btw, my i2c hung during the night, so look like I do need error handling 2011-11-07T19:55:27 <+Steffanx> :D 2011-11-07T19:55:30 <+Steffanx> Poor Thorn 2011-11-07T19:57:06 <+Steffanx> Someone in NYC is a little bored: http://www.emergencystream.com/video_streams/NY/NYC4.html 2011-11-07T20:34:45 -!- Xamusk [~X@200.20.218.11] has quit [Ping timeout: 260 seconds] 2011-11-07T21:15:25 -!- _Shurik_ [~alex@99-120-247-177.lightspeed.tukrga.sbcglobal.net] has joined ##stm32 2011-11-07T21:51:54 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has joined ##stm32 2011-11-07T22:23:28 < Thorn> how do I debug 2 devices at the same time? I'm implementing rs-485 and the debug adapter is already buried under one of the devices 2011-11-07T22:25:05 <+Steffanx> Ah second debugger :) 2011-11-07T22:26:43 < Thorn> that would be nice 2011-11-07T22:27:26 <+Steffanx> I once debugged something by trial and error :) 2011-11-07T22:27:34 <+Steffanx> No LED's no printf/uart :) 2011-11-07T22:27:46 <+Steffanx> It was a communication with w5100 ethernet module 2011-11-07T22:28:05 <+Steffanx> Once i got the ethernet part sort of functional i used the ethernet connection to debug itself :) 2011-11-07T22:29:44 <+Steffanx> You can debug apps pretty well with some led's and/or uart interface Thorn .. 2011-11-07T22:29:48 < Thorn> that's more or less how I started with microcontrollers (avr, no jtag, no la (but with uart available)). after implementing 1-wire in the blind it was pretty obvious I need both of those 2011-11-07T22:29:54 <+Steffanx> The fancy way 2011-11-07T22:30:43 < Thorn> I'll need to setup some kind of bootloader first though 2011-11-07T22:31:19 < Thorn> an rs-485 bootloader would be ideal but it kinda requires working rs-485 comms 2011-11-07T22:31:47 <+Steffanx> It sucks when 2 parts of a project depend on each other 2011-11-07T22:32:07 <+Steffanx> Especially when it's a wireless connection, that makes things even worse 2011-11-07T22:37:49 * Laurenceb_ is annoyed by stlink 2011-11-07T22:38:02 < Laurenceb_> async mode works in gdb 2011-11-07T22:38:15 < Laurenceb_> but stlink forces halt 2011-11-07T22:38:55 < Laurenceb_> http://i.imgur.com/R9i43.png 2011-11-07T22:39:06 <+Steffanx> Laurenceb_ i won't say it again 2011-11-07T22:39:29 <+Steffanx> PLEASE use another name for that st-link tool (or just use stlink tool) :P 2011-11-07T22:39:36 < Laurenceb_> lol 2011-11-07T22:40:12 <+Steffanx> Where's dekar nowadays? 2011-11-07T22:40:41 <+Steffanx> Oh, he seems to be online 2011-11-07T22:43:46 < Thorn> AN3429 STM32 proprietary code protection overview 2011-11-07T22:43:51 < Thorn> anyone read that? 2011-11-07T22:44:01 <+Steffanx> nop 2011-11-07T22:44:11 < Thorn> http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/APPLICATION_NOTE/DM00033344.pdf 2011-11-07T22:44:43 <+Steffanx> There's nothing to read :) 2011-11-07T22:45:30 < Thorn> wth, 1 page? 2011-11-07T22:46:26 <+Steffanx> For more details about the complete solution, please contact your local ST sales 2011-11-07T22:46:27 <+Steffanx> representative. 2011-11-07T22:46:27 <+Steffanx> Ha 2011-11-07T22:49:51 <+Steffanx> I wonder who my 'local st sales' is 2011-11-07T22:51:35 <+Steffanx> I can't find anything about it on the web :( 2011-11-07T22:52:13 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has joined ##stm32 2011-11-07T22:54:11 <+Steffanx> Thorn, everyone here should send an email to their local st sales. :) 2011-11-07T22:55:42 -!- quitte [~quitte@tplink.ghb.hs-furtwangen.de] has joined ##stm32 2011-11-07T22:55:45 <+Steffanx> Hmm, no email address 2011-11-07T22:55:47 < Thorn> http://www.st.com/stonline/address/offices/europe.htm ? 2011-11-07T22:56:09 <+Steffanx> That's not the page i have in front of me 2011-11-07T22:57:12 < quitte> hi. why are there two registers to reset GPIO bits? the second pair of bytes of BSRR and the first pair of BRR? 2011-11-07T22:57:46 <+Steffanx> To make your life easier sometimes? 2011-11-07T22:59:10 < quitte> that's very thoughtful of st. still wondering what situation that could possibly be. 2011-11-07T22:59:57 <+Steffanx> I used it a few times, not sure that situation was though 2011-11-07T23:10:03 < Thorn> BSRR is for setting bits, BRR for resetting (at least that's how the standard library appears to use them). upper half of BSRR is handy if you want to do both at the same time 2011-11-07T23:11:59 < quitte> Thorn: so it might be for historical reasons? BRR became obsolete when BSRR was extended to have reset,too? 2011-11-07T23:14:47 < Thorn> I believe STM32 peripherals were adopted from STM8, at least to some extent. but STM8 has no BRR or BSRR, only IDR and ODR 2011-11-07T23:17:58 < Laurenceb_> nice 2011-11-07T23:18:06 < Laurenceb_> latest codesourcery produces smaller code 2011-11-07T23:18:15 <+Steffanx> Latest? 2011-11-07T23:18:20 <+Steffanx> !google codesourcery 2011-11-07T23:18:29 <+Steffanx> Still not bot 2011-11-07T23:18:41 < Thorn> how late is that? 2011-11-07T23:18:54 < Thorn> and how free? 2011-11-07T23:18:59 <+Steffanx> Lite 2011.03-42 .. 2011-11-07T23:22:20 < Thorn> so has anybody tried building mainline gcc 4.6 for arm? 2011-11-07T23:22:50 <+Steffanx> So what is the latest version Laurenceb_ ? 2011-11-07T23:23:48 < Laurenceb_> Thorn: yes 2011-11-07T23:23:53 < Laurenceb_> i built it yesterday 2011-11-07T23:23:54 < BrainDamage> Thorn: arm-none-eabi-gcc --version 2011-11-07T23:23:55 < BrainDamage> arm-none-eabi-gcc (GCC) 4.6.1 2011-11-07T23:23:55 < BrainDamage> Copyright (C) 2011 Free Software Foundation, Inc. 2011-11-07T23:23:55 < BrainDamage> This is free software; see the source for copying conditions. There is NO 2011-11-07T23:23:55 < BrainDamage> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 2011-11-07T23:24:12 <+Steffanx> How hard was it to built that BrainDamage ? 2011-11-07T23:24:13 < Laurenceb_> havnt tried it on my main project yet 2011-11-07T23:24:30 < Laurenceb_> Steffanx: summon-arm-toolchain 2011-11-07T23:24:40 <+Steffanx> !google summon-arm-toolchain 2011-11-07T23:24:43 < BrainDamage> Steffanx: I use arch, it was a no-brainer, yaourt -S arm-none-eabi-gcc :p 2011-11-07T23:24:47 < BrainDamage> yeah, use that 2011-11-07T23:24:50 < BrainDamage> it's in a git repo 2011-11-07T23:24:53 <+Steffanx> Ah, BrainDamage 2011-11-07T23:24:57 <+Steffanx> That's not fair 2011-11-07T23:25:15 < BrainDamage> summon arm toolchain will do just as good 2011-11-07T23:25:59 <+Steffanx> Yay, my terminal in OS X still has it's one-click crash button :) 2011-11-07T23:26:32 < Thorn> will that work under windows? 2011-11-07T23:26:43 <+Steffanx> cygwin? 2011-11-07T23:27:07 <+Steffanx> THE RESULTING TOOLCHAIN IS FOR BARE BONE ARM PROCESSOR SOFTWARE. NOT FOR USE 2011-11-07T23:27:07 <+Steffanx> WITH GLIBC OR THE LINUX KERNEL. DO NOT EVEN BOTHER TO ASK FOR THAT! 2011-11-07T23:27:07 < Thorn> need to try 2011-11-07T23:27:08 <+Steffanx> Yay? 2011-11-07T23:28:00 < Thorn> couldn't they implement a command line option to switch ABIs? 2011-11-07T23:29:13 < Thorn> any idea how 4.6 compares with codesourcery in terms of code quality? 2011-11-07T23:30:24 < Laurenceb_> dunno 2011-11-07T23:30:34 < Laurenceb_> im sticking with latest codesourcery for my autopilot 2011-11-07T23:30:43 < Laurenceb_> as it has good math libs 2011-11-07T23:31:24 < BrainDamage> what do you mean with good math libs? 2011-11-07T23:31:33 < Thorn> 4.6 should support hard FP though 2011-11-07T23:31:34 < BrainDamage> what does it have more/less than normal gcc's ? 2011-11-07T23:32:53 < Thorn> it's got proprietary startup code called CS3 and newlib. not sure about the rest 2011-11-07T23:57:41 < Thorn> there's also linaro gcc --- Day changed Tue Nov 08 2011 2011-11-08T00:01:07 < Thorn> which is even advertised on http://arm.com/community/software-enablement/linux.php 2011-11-08T00:24:45 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds] 2011-11-08T00:27:53 < karlp> Laurenceb_: do you have any changes to slinkylink you could share? 2011-11-08T00:29:28 < Laurenceb_> nope 2011-11-08T00:29:33 < Laurenceb_> i fail :P 2011-11-08T00:29:41 < Laurenceb_> it was all down to how i was using gdb 2011-11-08T00:29:55 < Laurenceb_> needed to use halt, load, continue 2011-11-08T00:29:58 < Thorn> summon-arm-toolchain summons some pretty old versions 2011-11-08T00:30:01 < Laurenceb_> to run from sram 2011-11-08T00:30:32 < Thorn> such as gcc-linaro-4.5-2011.02 2011-11-08T00:31:49 < karlp> Laurenceb_: so, you run arm-none-eagbi-gdb, then what commands next? 2011-11-08T00:32:05 < karlp> I'd like to update the docs with some suggestions for people that need more than what I do 2011-11-08T00:32:39 < Laurenceb_> ctrl-c, load (elf file), continue 2011-11-08T00:32:51 < Laurenceb_> after tar ext localhost:4242 2011-11-08T00:33:15 < Laurenceb_> but if i try no optimisation, the program conter isnt reset to 0x20000000 2011-11-08T00:33:34 < Laurenceb_> although the program doesn load to sram 2011-11-08T00:33:49 < Laurenceb_> i dont understand why the PC isnt reset correctly 2011-11-08T00:34:46 < Laurenceb_> unfortunately the nemiver gui uses halt-load-run, and so will only work with flash 2011-11-08T00:35:07 < Laurenceb_> ive got ddd working, but the motif graphics are horrible 2011-11-08T00:35:08 < karlp> yeah, that' sall I do, gdb, tar ext :4242, load elf, continue 2011-11-08T00:35:17 < Laurenceb_> cool 2011-11-08T00:35:23 < karlp> what tool were you using that was doing something else? 2011-11-08T00:35:31 < Laurenceb_> nemiver 2011-11-08T00:35:36 < karlp> I've been using gdb from the command line, to have one less thing to have to get workign :) 2011-11-08T00:35:40 < Laurenceb_> heh 2011-11-08T00:36:06 < Laurenceb_> i cant access sram after a kill in gdb 2011-11-08T00:36:14 < Laurenceb_> thats what was causing the issues 2011-11-08T00:36:47 < karlp> ahh, I've been working on restructuring and things, so my sanity tests only extended as farr as, "clean, rebuild, load into sram, see it restarted again ==> good" 2011-11-08T00:37:00 < karlp> so, on that picture you sent, what's the red line in the graph? 2011-11-08T00:37:08 < Laurenceb_> an integer 2011-11-08T00:37:23 < Laurenceb_> ddd has a view variable history tool 2011-11-08T00:37:33 < karlp> ahh, interesting. 2011-11-08T00:37:48 < Laurenceb_> rowley crossworks actually does that properly 2011-11-08T00:37:59 < karlp> so, should that line hve been linear? 2011-11-08T00:38:04 < Laurenceb_> yes 2011-11-08T00:38:22 < Laurenceb_> in rowley you can set the data record rate in Hz 2011-11-08T00:38:23 < karlp> so, is that something that slinkylink is doing badly? or what's causing that? 2011-11-08T00:38:38 < Laurenceb_> well... 2011-11-08T00:38:59 < Laurenceb_> gdb in async mode should allow reading of variables without halting 2011-11-08T00:39:08 < Laurenceb_> i didnt know that yesterday :P 2011-11-08T00:39:11 < Laurenceb_> just trying now 2011-11-08T00:40:01 < Laurenceb_> ok gdb is now behaving 2011-11-08T00:40:20 < Laurenceb_> but ddd only updates the variable on mouseover on the code viewer 2011-11-08T00:40:29 < Laurenceb_> and stlink halts the core itself 2011-11-08T00:40:46 < Laurenceb_> ill pastebin 2011-11-08T00:41:15 < karlp> if you want stlink to do something else in those things, write it all up and stick it as a ticket on texane's github. 2011-11-08T00:41:21 < karlp> I'll try and follow it there 2011-11-08T00:41:25 < Laurenceb_> http://pastebin.com/LiHxSL60 2011-11-08T00:41:35 < Laurenceb_> ^thats 1 mouseover event in ddd 2011-11-08T00:43:02 < Laurenceb_> yeah 2011-11-08T00:43:38 < Laurenceb_> looks like that core halt is done by stlink 2011-11-08T00:47:01 < karlp> which halt? 2011-11-08T00:47:50 < karlp> also, for things like the std periph driver, CMSIS core_cm3.* and so on, is there already a really nicely packaged up version that supports "lots" of the stm32 chips? 2011-11-08T00:48:10 < karlp> or does everyone build them themselves? 2011-11-08T00:48:43 < Laurenceb_> tbh ive only used the stm32f103 version so far 2011-11-08T00:49:01 < Laurenceb_> hmm interesting - looks like gdb requested the halt 2011-11-08T00:49:36 < BrainDamage> btw, can anyone give me the flash full dump please? 2011-11-08T00:49:39 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2011-11-08T00:49:43 < BrainDamage> of stm32vldiscovery 2011-11-08T00:49:57 < BrainDamage> I want to see if it fixes somehow my bad start pointer problem 2011-11-08T00:50:05 < Laurenceb_> i only have an F4, sorry 2011-11-08T00:50:12 < karlp> yeah, I can try that 2011-11-08T00:50:16 < karlp> give me a minute or two 2011-11-08T00:51:23 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-08T00:52:53 -!- zlog_ [~zlog@ip68-102-109-205.ks.ok.cox.net] has joined ##stm32 2011-11-08T00:53:04 -!- _Shurik_ [~alex@99-120-247-177.lightspeed.tukrga.sbcglobal.net] has left ##stm32 [] 2011-11-08T00:54:10 < karlp> hmm, or not. this silly flash util isn't reading anything from flash 2011-11-08T00:54:38 < Laurenceb_> Sending packet: $c#63...putpkt: Junk: 2011-11-08T00:54:39 < Laurenceb_> Ack 2011-11-08T00:54:47 -!- zlog [~zlog@ip68-102-109-205.ks.ok.cox.net] has quit [Ping timeout: 276 seconds] 2011-11-08T00:54:51 < Laurenceb_> ^from gdb to the gdbserver each time i mouseover 2011-11-08T01:02:40 < Laurenceb_> actually that makes no sense - its just getting Ack 2011-11-08T01:03:52 < Laurenceb_> it was reading back the variable 2011-11-08T01:06:40 < BrainDamage> karlp: does stlink-download work for you? you could use that 2011-11-08T01:22:25 -!- zlog_ [~zlog@ip68-102-109-205.ks.ok.cox.net] has quit [Remote host closed the connection] 2011-11-08T01:22:42 -!- zlog [~zlog@ip68-102-109-205.ks.ok.cox.net] has joined ##stm32 2011-11-08T01:33:59 < karlp> what's stlink-download? 2011-11-08T01:35:39 < BrainDamage> karlp: https://code.google.com/p/arm-utilities/wiki/STLinkDownload 2011-11-08T01:40:01 < karlp> oh, again, more duplicate work :) 2011-11-08T01:40:08 < karlp> last time I looked at that project, it didn't support stlinkv2 2011-11-08T01:40:22 < karlp> heh 2011-11-08T01:42:38 < karlp> oh. no. I can't use that. 2011-11-08T01:42:53 < karlp> I've turned off usb-storage for ths stlink v1. it's my way (libusb raw) o rthe highway 2011-11-08T01:43:32 < BrainDamage> as in, I'd have to take the highway, go physically there and modprobe sg ? 2011-11-08T01:43:44 < BrainDamage> or just swap my board with yours 2011-11-08T01:43:46 < karlp> hehe. 2011-11-08T01:43:49 < karlp> no, I'll get to thisl. 2011-11-08T01:43:59 < karlp> what I'm working on right now is being able to build the vl demo code. 2011-11-08T01:44:01 < karlp> then flash it, 2011-11-08T01:44:07 < karlp> make sure I can rebuild the working sutff 2011-11-08T01:44:09 < karlp> then I can break it. 2011-11-08T01:44:15 < karlp> see if I get the same problem as you 2011-11-08T01:44:53 < karlp> just running into compiler errors with the demo code: http://pastebin.com/iE0ZLBsB :) 2011-11-08T01:45:49 < Thorn> the mystery of the Canadian compiler is solved http://en.wikipedia.org/wiki/Cross_compiler#Canadian_Cross 2011-11-08T01:55:15 < karlp> so, anyone know why the stdperiph driver for the 32l1xx doesn't have assert_param() in it, but the VL stdperiph does? 2011-11-08T01:55:42 < karlp> hmm, no, it's in the 32l code too. 2011-11-08T01:55:47 < karlp> stupid linking 2011-11-08T01:58:19 < grummund> it's a macro 2011-11-08T02:00:19 < grummund> stm32l1xx_conf.h 2011-11-08T02:01:46 < karlp> yeah, seems the stm32f10x doesn't have that. 2011-11-08T02:01:51 < karlp> it does now :) 2011-11-08T02:02:11 < grummund> it does 2011-11-08T02:02:24 < karlp> not in the version I just downloaded :| 2011-11-08T02:02:36 < grummund> stm32f10x_conf.h 2011-11-08T02:02:51 < grummund> it should be with the project (not the library itself) 2011-11-08T02:03:01 < karlp> yeah, but in the L code, it's defined in the cmsis device support package itself 2011-11-08T02:03:20 < karlp> if I hve it in the project, I can't get it to link. 2011-11-08T02:03:44 < karlp> is SystemCoreClock also meant to be in the _conf file? 2011-11-08T02:04:50 < grummund> system_stm32f10x.[ch] 2011-11-08T02:06:51 < karlp> and those should always be per project? 2011-11-08T02:06:59 < karlp> and not in a stdperiph library? 2011-11-08T02:10:57 < grummund> i think the system_stm32f10x.c is per project because it needs to be edited for the correct clock config gto match the hardware 2011-11-08T02:12:53 < karlp> makes sense. 2011-11-08T02:16:31 < karlp> so, if assert_param is in the _conf.h file, which is included in main, shouldn't that turn ups as a symbol in main.o somewhere? so that all the library code that needs it can find it? 2011-11-08T02:16:58 < grummund> no cos it's a macro 2011-11-08T02:17:53 < karlp> so, the library files have to be _compiled_ at the same time? I can't just premake a lib_stdperiph.a then? 2011-11-08T02:18:50 < grummund> you could make a library object but it would be specific to whatever compile-time definitions you had 2011-11-08T02:19:38 < karlp> so there's really no point in even trying. and I should have a predictable directory structure, and compile the std-periph stuff each time? 2011-11-08T02:20:08 < grummund> personally i gave up on maintaining ST's directory structure 2011-11-08T02:20:09 < karlp> and not try and make some magic -lstm_stdperiph_$(PART_NAME) 2011-11-08T02:20:45 < grummund> well it needs to be done and you could lead the way :P 2011-11-08T02:20:52 < karlp> hehe 2011-11-08T02:21:21 < karlp> well, if things like assert_param won't work at all, then it doesn't sound like there's muhc point 2011-11-08T02:21:34 < karlp> I thought this was going to be relatively straightforward :) 2011-11-08T02:21:52 < grummund> you'd need separate libs for with/without assert enabled 2011-11-08T02:24:11 < karlp> ok. I'm going to make libs with NO assert right now. 2011-11-08T02:26:47 < grummund> the stdperiph code indirectly #include's stm32f10x_conf.h so technically it is a dependency 2011-11-08T02:26:56 < karlp> ok, well, that compiles and runs from sram. 2011-11-08T02:27:00 < karlp> that's kinda nice. 2011-11-08T02:27:15 < grummund> i.e. if stm32f10x_conf.h is edited then the lib.a should be rebuilt 2011-11-08T02:27:32 < grummund> even though stm32f10x_conf.h is a project file 2011-11-08T02:28:02 < karlp> do these conf files ever have any more in them than this "use full assert" stuff? 2011-11-08T02:30:31 < grummund> not much it seems 2011-11-08T02:42:10 < karlp> BrainDamage: yep, I can confirm. I tried flashing something (which failed) 2011-11-08T02:42:22 < karlp> and now running from sram doesn't set up the stack poitner propler,y so blink doesn't work. :) 2011-11-08T02:42:37 < BrainDamage> ah thanks 2011-11-08T02:42:57 < karlp> I don't have a factory flash image for you yet, 2011-11-08T02:43:01 < karlp> but now I can work on that 2011-11-08T02:43:18 < BrainDamage> at least now I can see some light at the tunnel's end 2011-11-08T02:43:33 < BrainDamage> and I'll remember to check twice before wiping a memory sector :s 2011-11-08T02:45:07 < karlp> hmm, what's the gdb command to edit a reigster again? 2011-11-08T02:45:51 < BrainDamage> set 2011-11-08T02:46:06 < BrainDamage> set $blah=0 2011-11-08T02:49:38 < karlp> so, shouldn't p $main_sp work? 2011-11-08T02:50:09 < BrainDamage> honesntly, I did not think of that 2011-11-08T02:50:21 < BrainDamage> >_> 2011-11-08T02:50:45 * BrainDamage gets his dunce cap 2011-11-08T02:50:57 < karlp> well, I'm only trying it for the first time 2011-11-08T02:52:47 < BrainDamage> what should be the correct address for the blinky example? 2011-11-08T02:54:03 < karlp> not sure, but set $sp= blah isn't working for me anyway 2011-11-08T02:58:19 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has joined ##stm32 2011-11-08T02:59:51 -!- Xamusk [~X@186.221.10.157] has joined ##stm32 2011-11-08T03:25:22 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has quit [] 2011-11-08T03:37:28 -!- CheBuzz [~CheBuzz@76.164.192.124] has quit [Excess Flood] 2011-11-08T03:37:51 -!- CheBuzz [~CheBuzz@76.164.192.124] has joined ##stm32 2011-11-08T03:50:10 -!- Xamusk [~X@186.221.10.157] has quit [Ping timeout: 255 seconds] 2011-11-08T11:44:07 -!- Xamusk [~X@200.20.218.11] has joined ##stm32 2011-11-08T11:54:15 -!- Xamusk [~X@200.20.218.11] has quit [Ping timeout: 260 seconds] 2011-11-08T12:25:24 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has left ##stm32 ["PART ##electronics :PART #highaltitude :PART #dANN :PART ##not-physics :PART ##physics :PONG :leguin.freenode.net"] 2011-11-08T12:29:23 -!- happylife [~happylife@212.92.145.7] has joined ##stm32 2011-11-08T12:34:24 -!- happylife is now known as vpopov 2011-11-08T12:37:30 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32 2011-11-08T13:01:29 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has quit [Ping timeout: 260 seconds] 2011-11-08T13:27:53 -!- theAdib [~adib@dslb-088-074-190-182.pools.arcor-ip.net] has joined ##stm32 2011-11-08T15:20:01 -!- quitte [~quitte@tplink.ghb.hs-furtwangen.de] has quit [Quit: leaving] 2011-11-08T15:57:44 < Thorn> fyi, latest revision of rm0008 is 14 (I had rev. 13) 2011-11-08T16:11:14 < karlp> and changing references to programming manuals. 2011-11-08T16:11:26 < karlp> looks like they're trying to unify the manuals a little bit across the F line? 2011-11-08T16:58:54 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Excess Flood] 2011-11-08T17:00:48 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32 2011-11-08T19:06:42 -!- Kevin` [~kevin@router.kwzs.be] has joined ##stm32 2011-11-08T19:08:43 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-08T19:08:46 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-08T20:45:24 -!- Netsplit *.net <-> *.split quits: CheBuzz 2011-11-08T20:46:41 -!- Netsplit over, joins: CheBuzz 2011-11-08T20:48:58 < karlp> so, seeing as I've had a bit of trouble with following those documents too: http://palmtree.beeroclock.net/~karlp/stm32_datasheet_overview_chart.html 2011-11-08T20:49:07 < karlp> it's a bit ugly. openoffice's export is terrible 2011-11-08T20:55:17 < Thorn> this channel needs a wiki 2011-11-08T20:56:19 < Thorn> I can host a dokuwiki (or a mediawiki but I hate it) 2011-11-08T20:56:29 < karlp> a wiki wouldn't be a bad idea :) 2011-11-08T20:56:46 < karlp> there's a bunch of scattered piles of information around the web, but it's horribly organised and hard to find what's current 2011-11-08T20:58:10 <+Steffanx> Wiki .. wiki's suck imho Thorn 2011-11-08T20:58:16 < Thorn> I already have a private wiki with a lot of information on cm3 and stm32, at least some parts should be useful 2011-11-08T20:58:27 < Thorn> Steffanx: what's the alternative? 2011-11-08T20:58:28 <+Steffanx> wikipedia is ok-ish, but most other wiki's suck 2011-11-08T20:58:38 <+Steffanx> A good organized wiki :P 2011-11-08T20:58:57 < karlp> which is really just basically dependent on one or two or three people actively maintaining it 2011-11-08T20:59:06 < Thorn> well, a wiki as by definition a website edited by its users 2011-11-08T20:59:14 < Thorn> *is 2011-11-08T21:00:14 < Thorn> only thing that's needed is a domain 2011-11-08T21:01:19 < karlp> I can offer beeroclock.net or ekta.is or tweak.net.au, but none of them are particularly obvious :) 2011-11-08T21:02:32 < Thorn> .co.cc names are free but they have a bad reputation 2011-11-08T21:02:38 <+Steffanx> .tk ftw! 2011-11-08T21:03:48 < Thorn> stm32.tk is taken 2011-11-08T21:04:25 <+Steffanx> tk has a bad reputation too 2011-11-08T21:05:33 < BrainDamage> .info domain 2011-11-08T21:06:36 <+Steffanx> Is stm32 a trademark from st? 2011-11-08T21:06:56 < BrainDamage> very likely 2011-11-08T21:07:10 < Thorn> most likely, cortex is too 2011-11-08T21:07:15 < BrainDamage> the question is if our usage would fall under fair use policies or not 2011-11-08T21:07:46 <+Steffanx> Cortex is just an ARM tm 2011-11-08T21:08:19 <+Steffanx> http://www.st.com/internet/com/common/terms_of_use.jsp that don't list it, but that doesn't say anything 2011-11-08T21:08:49 < Thorn> arm-cortex.tk is free 2011-11-08T21:09:06 <+Steffanx> Yeah, but arm + cortex and tk ?! 2011-11-08T21:09:44 <+Steffanx> I'll pay for the .info domain if someone comes up with a good one :) 2011-11-08T21:09:48 <+Steffanx> Hosting is not my thing :) 2011-11-08T21:11:03 < Thorn> I have a linode so hosting is not a problem 2011-11-08T21:11:35 <+Steffanx> stm32wiki.info or is that too stm32 specific? 2011-11-08T21:12:04 < karlp> ok, here's the "final" version for now, with the f1x part datasheets http://palmtree.beeroclock.net/~karlp/stm32_datasheet_map.html 2011-11-08T21:12:26 <+Steffanx> Pleas write the html yourself karlp :P 2011-11-08T21:12:31 < karlp> eventually 2011-11-08T21:12:33 < karlp> I hate writing tables 2011-11-08T21:12:42 < Thorn> I wouldn't be too specific with the domain name 2011-11-08T21:12:43 <+Steffanx> That's so easy 2011-11-08T21:12:44 < karlp> especially all the column span stuff :) 2011-11-08T21:12:50 < karlp> then... there's the data :) 2011-11-08T21:12:54 < karlp> you can do it! 2011-11-08T21:12:58 < Thorn> something referring to cortex-m or cortex in general would be better imo 2011-11-08T21:13:09 <+Steffanx> cortex IS a trademark :( 2011-11-08T21:13:17 <+Steffanx> I don't want to mess with that 2011-11-08T21:14:08 <+Steffanx> Anyway, the domain doesn't really matter yet 2011-11-08T21:16:01 < Thorn> can there be problems with a community wiki that uses that trademark as a name? 2011-11-08T21:16:29 <+Steffanx> Probably.. 2011-11-08T21:18:48 <+Steffanx> Anyway, your great friend left yet BrainDamage ? 2011-11-08T21:19:03 < BrainDamage> sorry? 2011-11-08T21:19:08 <+Steffanx> Berlusconi :) 2011-11-08T21:19:24 < BrainDamage> not yet, there's quite some turmoil atm 2011-11-08T21:19:30 < BrainDamage> because of the elections that'd follow 2011-11-08T21:19:43 < BrainDamage> basically, everyone wants to reform the electoral law in their advantage .. 2011-11-08T21:20:00 <+Steffanx> Hmm, ofcourse 2011-11-08T21:20:20 < BrainDamage> current law advantages berlusconi greatly 2011-11-08T21:20:31 < BrainDamage> ( he made it himself ofc ) 2011-11-08T21:20:34 <+Steffanx> Why politics is such a game?! :( 2011-11-08T21:21:12 < BrainDamage> living here I long learned that politics is a drama that is only very loosely related to a state's welfare .. 2011-11-08T21:21:55 <+Steffanx> No there's something else related to a state's welfare :) 2011-11-08T21:22:15 <+Steffanx> Amount of 25-30 year old people who still live with that parents :P 2011-11-08T21:22:19 < karlp> ok. fooood then linker scripts and startup things. 2011-11-08T21:22:52 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has joined ##stm32 2011-11-08T23:00:59 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 256 seconds] 2011-11-08T23:05:04 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has joined ##stm32 2011-11-08T23:05:49 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-08T23:35:20 < karlp> bleh 2011-11-08T23:35:42 < karlp> I'm not sure if it's my linker scripts of if the VL flash writing code has never been right? 2011-11-08T23:35:59 < karlp> that can't be right though, can it? 2011-11-08T23:45:13 <+Steffanx> It can 2011-11-08T23:45:23 <+Steffanx> Everything is possible, until it's proven otherwise 2011-11-08T23:45:45 < karlp> hmmm. 2011-11-08T23:46:38 < karlp> I was under the impression that the write flash stuff was working, for the VL board, and I was only working with the change from scsi pass through to libusb 2011-11-08T23:46:59 < karlp> I could verify with the ram all writing, 2011-11-08T23:47:10 < karlp> but writing to flash seems to never write the first block. 2011-11-08T23:51:45 <+Steffanx> :D 2011-11-08T23:52:06 < Tom_itx> :O 2011-11-08T23:53:50 <+Steffanx> Tom_itx ! 2011-11-08T23:54:45 < karlp> bleh. Do I try and flash garbage onto my L board, see which one is busted? 2011-11-08T23:55:25 < karlp> has anyone got any sort of known working binary for the VL board that they can flash with any tool at all that they can vouch for? 2011-11-08T23:55:36 < karlp> then I can do one thing at a time... 2011-11-08T23:56:33 <+Steffanx> There's no binary online somewhere? 2011-11-08T23:56:50 <+Steffanx> Oh VL 2011-11-08T23:57:03 <+Steffanx> That's an st-link/v1 not? 2011-11-08T23:57:46 <+Steffanx> I have a 'some sort' of working binary 2011-11-08T23:57:51 <+Steffanx> It's only useless without additional hw 2011-11-08T23:58:15 < BrainDamage> it's a v1 2011-11-08T23:58:24 <+Steffanx> Oh, not it's not really made for the VL board, but for similar chip that's on the VL 2011-11-08T23:58:31 <+Steffanx> *no 2011-11-08T23:58:59 < BrainDamage> I was unable to flash using any tool :/ 2011-11-08T23:59:14 < BrainDamage> but I can vouch that flash erase works excellent >_> --- Day changed Wed Nov 09 2011 2011-11-09T00:09:24 <+Steffanx> BrainDamage windows :) 2011-11-09T00:09:31 <+Steffanx> st-link utility 2011-11-09T00:10:20 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving] 2011-11-09T00:10:40 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-09T00:10:41 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-09T00:11:30 < BrainDamage> Steffanx: now I can tell you that "my friend" will resign, officially 2011-11-09T00:12:06 <+Steffanx> Finally? :) 2011-11-09T00:12:28 < BrainDamage> about time I guess 2011-11-09T00:13:17 <+Steffanx> The question is.. does it really help 2011-11-09T00:13:28 <+Steffanx> Or does he just make place of the next f*cker? 2011-11-09T00:14:42 < BrainDamage> he'll get blame for everything wrong including world starvation, and nothing will really change 2011-11-09T00:15:06 <+Steffanx> Like always 2011-11-09T00:15:27 < BrainDamage> all parties steal and collude, he just happened to be the most blatant 2011-11-09T00:31:13 -!- theAdib [~adib@dslb-088-074-190-182.pools.arcor-ip.net] has quit [Quit: Ex-Chat] 2011-11-09T01:41:00 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds] 2011-11-09T02:09:19 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has quit [Ping timeout: 248 seconds] 2011-11-09T03:06:23 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-09T03:07:52 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-09T03:08:09 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-09T03:09:55 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-09T03:27:20 -!- Thorn__3 [~Thorn@93-81-4-2.broadband.corbina.ru] has joined ##stm32 2011-11-09T03:30:30 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 260 seconds] 2011-11-09T03:40:22 -!- Thorn__3 [~Thorn@93-81-4-2.broadband.corbina.ru] has quit [] 2011-11-09T03:50:33 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-09T03:54:08 -!- CheBuzz [~CheBuzz@76.164.192.124] has quit [Quit: I shouldn't really be here - dircproxy 1.2.0] 2011-11-09T04:11:51 -!- CheBuzz [~CheBuzz@76.164.192.124] has joined ##stm32 2011-11-09T04:12:05 -!- CheBuzz [~CheBuzz@76.164.192.124] has quit [Excess Flood] 2011-11-09T04:18:51 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has quit [] 2011-11-09T04:24:57 -!- CheBuzz [~CheBuzz@76.164.192.124] has joined ##stm32 2011-11-09T05:28:40 -!- Kevin` [~kevin@router.kwzs.be] has quit [Ping timeout: 260 seconds] 2011-11-09T05:28:47 -!- Kevin` [~kevin@router.kwzs.be] has joined ##stm32 2011-11-09T05:44:02 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-09T05:44:59 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-09T05:50:47 -!- csamuelson is now known as Rious 2011-11-09T09:33:16 -!- Eartaker is now known as Eartaker-AFK 2011-11-09T10:27:07 -!- TeknoJuce [~TeknoJuce@xbmc/staff/TeknoJuce] has quit [Read error: Connection reset by peer] 2011-11-09T10:42:12 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has joined ##stm32 2011-11-09T11:02:54 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has quit [Ping timeout: 240 seconds] 2011-11-09T11:03:58 -!- Eartaker-AFK [~Eartaker@unaffiliated/eartaker] has quit [Ping timeout: 255 seconds] 2011-11-09T11:22:53 -!- mansfeld [~andrew@robopoly/watson] has joined ##stm32 2011-11-09T12:10:41 -!- theAdib [~adib@dslb-088-074-158-137.pools.arcor-ip.net] has joined ##stm32 2011-11-09T12:34:23 -!- theAdib [~adib@dslb-088-074-158-137.pools.arcor-ip.net] has quit [Quit: Ex-Chat] 2011-11-09T12:55:43 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 248 seconds] 2011-11-09T13:39:57 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-09T15:12:21 < Laurenceb> can anyone help me with SWD? 2011-11-09T15:13:15 < Laurenceb> http://pastebin.com/ahDLgPrr 2011-11-09T15:13:17 < Laurenceb> ^the hell 2011-11-09T15:21:08 < karlp> are you experimenting with having a startup script? 2011-11-09T15:21:17 < karlp> I am too, without an awful lot of luck 2011-11-09T15:21:22 < karlp> and sorry, no idea on what you're getting 2011-11-09T15:21:54 < Laurenceb> im just trying the stlink blink demo on my stm32f103 board 2011-11-09T15:21:58 < Laurenceb> stlink connects 2011-11-09T15:22:17 < Laurenceb> but when i first started, program counter was at 0xfffffffff 2011-11-09T15:22:30 < Laurenceb> now its stuck around 0x60xxxxxx 2011-11-09T15:22:39 < Laurenceb> it seemed to flash ok 2011-11-09T15:23:01 < Laurenceb> if i power cycle its goes back to either 0xff... or 0x60... 2011-11-09T15:23:26 < Laurenceb> odd as the processor is alive according to stlink 2011-11-09T15:24:14 < karlp> as best I can tell, the examples/blink/ elfs have no way of setting up the startup stuff properly 2011-11-09T15:24:28 < karlp> and will currently never work, unless a valid app in flash sets them up properly first. 2011-11-09T15:24:42 < karlp> at least, that's my understanding based on why various things don't work when they are expected to 2011-11-09T15:25:01 < Laurenceb> ohhhhhhhh 2011-11-09T15:25:07 < Laurenceb> suddenly it makes sense 2011-11-09T15:25:16 < Laurenceb> i thought the code was _way_ too simple 2011-11-09T15:25:30 < Laurenceb> ok ill hack something together with stlib 2011-11-09T15:25:33 < karlp> however, this is why, I often said, "works for me" 2011-11-09T15:25:38 < karlp> but I was only ever running in ram 2011-11-09T15:25:42 < karlp> and had the original demo in flash 2011-11-09T15:25:50 < Laurenceb> it least my processor is alive :P 2011-11-09T15:25:51 < karlp> so I could load code into sram, and it would work 2011-11-09T15:25:55 < Laurenceb> hmm 2011-11-09T15:26:06 < Laurenceb> ill try an led flash example with stperif lib 2011-11-09T15:26:08 < karlp> now that I've flashed with some garbage, 2011-11-09T15:26:11 < karlp> it doesn't work :) 2011-11-09T15:26:13 < Laurenceb> and the proper startup code 2011-11-09T15:26:14 < karlp> at least on the VL board 2011-11-09T15:26:26 < karlp> but yeah, there needs to be proper startup code somewhere 2011-11-09T15:26:34 < karlp> that's what I'm working on my "libwork" branch on github 2011-11-09T15:43:29 <@jpa-> Laurenceb: that is a crappy start address 2011-11-09T15:44:06 <@jpa-> use -e something parameter with the linker 2011-11-09T15:45:28 <@jpa-> https://svn.kapsi.fi/jpa/paatti/interrupt_vectors.c __Init_Data is my crappy startup code :P 2011-11-09T15:46:32 <@jpa-> this should work, too http://gostm32.blogspot.com/2010/09/blinky-ii.html 2011-11-09T15:51:14 < Laurenceb> load ../../../CRT/main.elf 2011-11-09T15:51:14 < Laurenceb> Loading section .text, size 0x960 lma 0x8000000 2011-11-09T15:51:14 < Laurenceb> Loading section .data, size 0x18 lma 0x8000960 2011-11-09T15:51:14 < Laurenceb> Error finishing flash operation 2011-11-09T15:51:28 < Laurenceb> i rewrote useing std lib and startup code etc 2011-11-09T15:51:37 < Laurenceb> from my other prject 2011-11-09T15:53:45 < Laurenceb> hell yeah - it works with karlp's code 2011-11-09T15:54:09 < Laurenceb> so epic 2011-11-09T15:55:55 < karlp> jpa-: you should link to more of this, including: http://kapsi.fi/~jpa/stuff/other/stm32f10x_headers.zip from your home page 2011-11-09T15:56:14 < karlp> Laurenceb: run that by me again? what have you got going now? 2011-11-09T15:56:14 < Laurenceb> karlp: that flash error only occurs with the texane code 2011-11-09T15:56:28 < Laurenceb> your code works now i added the startup libs 2011-11-09T15:56:34 < Laurenceb> in my makefile 2011-11-09T15:56:44 < karlp> you're using master of my github, and you added startup, and it programs _flash_ and runs properly? 2011-11-09T15:56:47 < karlp> on what platform? 2011-11-09T15:56:51 < karlp> with what stlink hardware? 2011-11-09T15:56:51 -!- dekar_ [~dekar@95.143.165.210] has joined ##stm32 2011-11-09T15:56:53 < Laurenceb> stm32f103 2011-11-09T15:56:58 < karlp> your own board? 2011-11-09T15:57:01 < Laurenceb> my own board 2011-11-09T15:57:02 < Laurenceb> yes 2011-11-09T15:57:08 < karlp> which stlink hardware? v1 or v2? 2011-11-09T15:57:15 < Laurenceb> v2 2011-11-09T15:57:20 < karlp> schweeet 2011-11-09T15:57:24 < Laurenceb> XD 2011-11-09T15:57:31 < Laurenceb> leds blinking away :P 2011-11-09T15:57:38 < karlp> can you pretty please put your makefiles and startup stuff somewhere for me please? 2011-11-09T15:57:47 < Laurenceb> already on my github 2011-11-09T15:57:53 < Laurenceb> laurenceb/Dactyl 2011-11-09T15:58:54 < karlp> last commit was 13 hours ago? 2011-11-09T15:59:22 < karlp> I mean the code after, "I rewrote using stdlib and startup code" stuff? 2011-11-09T16:03:30 < karlp> where did you get these from? https://github.com/Laurenceb/Dactyl/tree/master/lib/CMSIS_CM3/startup/gcc 2011-11-09T16:05:30 <@jpa-> karlp: what, i have such a zip file? o_O 2011-11-09T16:07:49 < karlp> you commented here: http://gostm32.blogspot.com/2010/09/inside-blinkyc.html 2011-11-09T16:08:16 <@jpa-> oh 2011-11-09T16:08:22 < Laurenceb> karlp: from Randmoskk on github 2011-11-09T16:08:33 <@jpa-> i couldn't even remember :) 2011-11-09T16:08:34 < Laurenceb> he accumulated the various bits of code 2011-11-09T16:08:59 < Laurenceb> *Randomskk 2011-11-09T16:10:21 < Laurenceb> http://pastebin.com/cD5RXjpC 2011-11-09T16:10:27 < Laurenceb> thats blinky code 2011-11-09T16:10:48 < BrainDamage> what was the program counter register name? 2011-11-09T16:11:14 < BrainDamage> I want to try linking setting up the right address 2011-11-09T16:11:25 < karlp> I like the look of the lanchon multipiece linker scripts 2011-11-09T16:11:43 < karlp> that have all the sections defined in one thing, and then just include or two different pieces for ram/rom and mem sizes 2011-11-09T16:13:46 <@jpa-> BrainDamage: $pc in gdb 2011-11-09T16:14:12 < BrainDamage> thanks 2011-11-09T16:24:30 -!- dekar_ [~dekar@95.143.165.210] has quit [Quit: dekar_] 2011-11-09T16:53:17 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-09T16:54:41 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-09T17:02:18 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-09T17:02:41 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-09T17:26:55 -!- csamuelson is now known as Rious 2011-11-09T17:32:24 < karlp> Laurenceb: with that pastbin code, where is SystemInit? that's not your dactyl code is it? 2011-11-09T17:33:42 < karlp> which of the code in your github dactyl repo was used to build that? 2011-11-09T18:05:35 < Laurenceb> somewhere in the lib 2011-11-09T18:05:52 < Laurenceb> its been a while sorry - use grep 2011-11-09T18:48:41 < karlp> but, didn't you say you only just got it working today? you didn't have to change anything to make it work this afternoon? 2011-11-09T19:16:50 < Laurenceb> that was another board 2011-11-09T19:17:03 < Laurenceb> i was trying the example code from texane before 2011-11-09T19:25:26 < karlp> so, it was the dactyl code, as it is on github, that you got running on your own board, with stlink v2 hardware, and my version of the stlink software? 2011-11-09T19:26:45 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-09T19:26:48 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-09T20:15:04 <@jpa-> hmm, my stlink doesn't want to write to flash on stm32f105 :( 2011-11-09T20:15:22 <@jpa-> x 0x8000000 just gives 0xFFFFFFFF nevermind what i try to load 2011-11-09T20:16:54 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Read error: No route to host] 2011-11-09T20:17:43 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-09T20:17:44 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-09T20:38:17 <@jpa-> ha, karlp's version works :) 2011-11-09T20:38:39 <+Steffanx> karlp's version of what? 2011-11-09T20:39:25 <@jpa-> stlink 2011-11-09T20:39:44 <@jpa-> with stm32f105, with which the texane stlink wouldn't write to flash 2011-11-09T20:39:44 <+Steffanx> tool 2011-11-09T20:43:52 <@jpa-> ah well, can't actually execute it but atleast it wrote something :) 2011-11-09T20:44:09 <+Steffanx> I give you another try jpa- 2011-11-09T20:44:12 <+Steffanx> karlp's version of what? 2011-11-09T20:45:01 <@jpa-> your butt 2011-11-09T20:45:08 <+Steffanx> No 2011-11-09T20:45:24 <+Steffanx> You have to say "the st-link tool" 2011-11-09T20:45:26 <+Steffanx> So: 2011-11-09T20:45:28 <+Steffanx> karlp's version of what? 2011-11-09T20:48:12 <@jpa-> oh crap, kernel panic again :( 2011-11-09T20:48:35 <+Steffanx> I think the st-link tool did that 2011-11-09T20:50:30 <+Steffanx> I think it's a punishment jpa- 2011-11-09T20:51:04 <@jpa-> yes it did 2011-11-09T20:51:32 <@jpa-> but remember who has the ops; in *my* channel we talk about "stlink" ,) 2011-11-09T20:51:36 <+Steffanx> You refused to say "st-link tool" so you got punished 2011-11-09T20:51:55 <+Steffanx> stlink = the programmer :) 2011-11-09T20:52:45 < BrainDamage> should I get popcorn? 2011-11-09T20:53:05 <+Steffanx> You want popcorn? 2011-11-09T20:53:36 < BrainDamage> it's a non-optional social convention when enjoying a show 2011-11-09T20:53:55 < BrainDamage> so it's not if I want, I have to 2011-11-09T21:08:09 <@jpa-> karlp: hmm, any idea why my gdb doesn't get the register values right from your st-util? in the st-util debug output the registers are correct, but in gdb e.g. p $r0 gives garbage 2011-11-09T21:12:01 < karlp> no idea? 2011-11-09T21:12:15 < karlp> laurencb might know, he has been looking at the gdb interface 2011-11-09T21:12:28 < karlp> that stuff was done by some other guy, I've never looked at gdb remote much ... 2011-11-09T21:13:59 <@jpa-> well, do you know if the current version on github works for somebody? 2011-11-09T21:14:51 < karlp> I can do register reads ok on mine 2011-11-09T21:14:54 < karlp> I'm working on flashing 2011-11-09T21:15:21 < karlp> tonight I was going to try and use the stlinkv2 to reprogram my VL board using the SWD from the stlinkv2 on the 32L board. 2011-11-09T21:15:45 < karlp> but I'm about to have dinner, and have guests over, so I'm not sure if it will get there tonight... 2011-11-09T21:16:02 < karlp> well, laurenceb said it was working for him finally this afternoon right? 2011-11-09T21:28:49 <@jpa-> i'm not sure what he got working, but his problems seemed similar to what i have now (pc reading totally wrong) 2011-11-09T21:40:29 <+Steffanx> +1 for jpa- :) 2011-11-09T21:40:59 <@jpa-> for what? for calling it "stlink"? :) 2011-11-09T21:41:38 <+Steffanx> No you didn't that's why 2011-11-09T21:42:28 < BrainDamage> call it "stink" 2011-11-09T21:42:43 <+Steffanx> st-util :) 2011-11-09T21:45:02 < karlp> st-util is the name of the binary, I've been leaning towards slinky or slinkylink 2011-11-09T21:45:32 < BrainDamage> can you rename the flash tool btw? 2011-11-09T21:45:42 < BrainDamage> here I rename it to st-flash because atm it's too generic 2011-11-09T21:45:43 < karlp> I'm in the process of rmeoving it completely, 2011-11-09T21:45:55 < karlp> but I need to make sure things work, before I just change names :) 2011-11-09T21:56:31 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-09T21:56:32 -!- mode/##stm32 [+v Steffann] by ChanServ 2011-11-09T22:00:04 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 258 seconds] 2011-11-09T22:10:23 -!- _Shurik_ [~alex@99-120-247-177.lightspeed.tukrga.sbcglobal.net] has joined ##stm32 2011-11-09T22:12:20 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving] 2011-11-09T22:12:35 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-09T22:12:38 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-09T22:14:22 < Thorn> any idea if taskYIELD_FROM_ISR() is required on stm32 and where I can find an implementation (and do I need it at all)? (freertos) 2011-11-09T22:33:41 < karlp> jpa-: so you're seeing the right values in the debug output from st-utils, but "p $r1" doesn't work in arm-none-eabi-gdb after tar ext :4242 ? 2011-11-09T22:34:33 < karlp> I see that too, 2011-11-09T22:50:08 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has joined ##stm32 2011-11-09T22:59:45 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has joined ##stm32 2011-11-09T23:00:20 < Thorn> btw, i2c only works if I2C_DeInit() is called before initialization. I wonder if it's documented anywhere 2011-11-09T23:02:55 < Laurenceb_> heh 2011-11-09T23:03:05 < Laurenceb_> i think theres some sort of internal state machine 2011-11-09T23:03:39 < Thorn> otherwise there's a single pulse on both SDA and SCK simultaneously that doesn't look lile a start or anything and that's it 2011-11-09T23:04:39 < Thorn> code hangs waiting for I2C_EVENT_MASTER_MODE_SELECT 2011-11-09T23:04:56 <+Steffanx> Time to stop using that stm32 peripheral lib Thorn ? 2011-11-09T23:06:37 < Thorn> it doesn't appear to do anything wrong, I read the manual and looked through the library code 2011-11-09T23:07:29 * Laurenceb_ checks his code 2011-11-09T23:08:28 < Laurenceb_> https://github.com/Laurenceb/Dactyl/blob/master/Archived/i2c.c 2011-11-09T23:09:00 < Laurenceb_> I2C_GenerateSTART( I2C1, ENABLE ); 2011-11-09T23:09:00 < Laurenceb_> while(!I2C_CheckEvent(I2C1, I2C_EVENT_MASTER_MODE_SELECT)) { 2011-11-09T23:09:28 < Laurenceb_> i dont deinit 2011-11-09T23:09:34 < Laurenceb_> but that works for me 2011-11-09T23:09:48 < Thorn> that's pretty much exactly what I have, including initialization. but it doesn't work for me without deinit 2011-11-09T23:10:38 < Laurenceb_> which processor? 2011-11-09T23:11:21 < Thorn> this is my code (timeouts not yet implemented) http://pastebin.com/GTEqph0T 2011-11-09T23:11:28 < Thorn> f103vc 2011-11-09T23:11:45 < Laurenceb_> hmm 2011-11-09T23:11:50 < Laurenceb_> im using 103 too 2011-11-09T23:11:57 < Laurenceb_> you remeber to clk it? 2011-11-09T23:12:21 < Laurenceb_> yeah 2011-11-09T23:13:03 < Thorn> it does work with the deinit 2011-11-09T23:13:35 < Laurenceb_> hangs at line 83? 2011-11-09T23:13:43 < Thorn> indents are broken in pastebin as usual 2011-11-09T23:13:48 < Laurenceb_> heh 2011-11-09T23:13:52 < Thorn> that's right 2011-11-09T23:14:34 < Laurenceb_> how odd 2011-11-09T23:14:48 < Laurenceb_> I2C_StructInit(&I2C_InitStructure); <- i never use that 2011-11-09T23:15:27 < Thorn> that doesn't seem to have any effect 2011-11-09T23:15:36 < Laurenceb_> also i init then enable 2011-11-09T23:15:54 < Laurenceb_> you do it the other way around 2011-11-09T23:16:13 < Thorn> hmm that's probably an error, testing 2011-11-09T23:16:17 < Laurenceb_> loading registers one at a time whilst its running might screw it 2011-11-09T23:17:18 < Thorn> exchanged init with enable, commented out deinit, blank LCD again 2011-11-09T23:17:55 < Laurenceb_> odd 2011-11-09T23:18:07 < Laurenceb_> maybe its different stm32 revisions 2011-11-09T23:18:09 < Thorn> uncommented deinit, lcd displays stuff 2011-11-09T23:18:30 < Laurenceb_> does it work once after power on? 2011-11-09T23:18:34 < Thorn> I found that deinit hint on a forum, it wasn't explained in any way 2011-11-09T23:18:45 < Laurenceb_> then fails on reset? 2011-11-09T23:19:04 < Thorn> nope 2011-11-09T23:19:13 < Laurenceb_> ok thats just weird 2011-11-09T23:19:20 < Laurenceb_> maybe my processor is newer 2011-11-09T23:19:24 < Thorn> completely agree 2011-11-09T23:19:40 < Laurenceb_> as it should be deinit on power on reset 2011-11-09T23:20:10 < Laurenceb_> maybe you could test my interrupt driven code? 2011-11-09T23:20:29 < Thorn> deinit "resets i2c controller registers to their power-on values" as documented 2011-11-09T23:20:30 < Laurenceb_> #openpilot couldnt get interrupt driven i2c working properly 2011-11-09T23:20:34 < Laurenceb_> lol 2011-11-09T23:20:41 < Laurenceb_> but i managed ok... 2011-11-09T23:21:05 < Laurenceb_> im wondering if my stm32f103 from farnell are newer revisions or something 2011-11-09T23:21:14 < Laurenceb_> as i havent had any issues with i2c XD 2011-11-09T23:21:39 < Thorn> you can query chip revision, I wrote some code for that 2011-11-09T23:22:09 < Laurenceb_> i dont have my hardware setup 2011-11-09T23:22:45 < Thorn> http://pastebin.com/Xbt6iWGT 2011-11-09T23:23:48 < Thorn> there aren't many revisions at all (although need to recheck the table in rm0008 rev. 14, I think something was changed there) 2011-11-09T23:24:29 < karlp> chip revision is even in the chip decode... 2011-11-09T23:24:49 < karlp> it should be in slinkylink's debug output somewhere 2011-11-09T23:24:54 < Laurenceb_> it is 2011-11-09T23:25:04 < Laurenceb_> but i dont have it setup - its at work 2011-11-09T23:25:39 < karlp> so, blinkyII, that jpa linked to, writes flash ok via SWD from a stlink2 device, 2011-11-09T23:25:50 < karlp> but it doesn't actually blink anything :| 2011-11-09T23:26:02 < Laurenceb_> im guessing a hardware fault corrupts the registers at power on 2011-11-09T23:26:16 < karlp> I'm over it for tonight, it's been the last two nights fully solid. 2011-11-09T23:26:18 < Laurenceb_> wheres the code? 2011-11-09T23:26:28 < Thorn> I'll try interrupt driven i2c as soon as I get around to it 2011-11-09T23:27:20 < Laurenceb_> you can set priorities for the different i2c 'jobs' and completion tasks 2011-11-09T23:27:30 * Laurenceb_ is very proud of his i2c interrupt code :P 2011-11-09T23:28:23 < Laurenceb_> e.g. EXTI ISR from a data ready pin requests a task, and the task completion task sets a thread running to process the data 2011-11-09T23:28:35 < Thorn> I looked at it a couple days ago, it seems quite useful 2011-11-09T23:28:46 < Laurenceb_> it makes i2c practical even tho its so slow 2011-11-09T23:29:48 < Thorn> I'll probably use freertos tasks & queues though :) 2011-11-09T23:30:10 < Thorn> even though I don't particularly love freertos 2011-11-09T23:31:48 < Thorn> but the usage of tasks that receive information from ISRs via queues makes code sequential 2011-11-09T23:32:51 < Thorn> as opposed to lots of callbacks (a classical problem in asyncronous code) 2011-11-09T23:33:54 < Laurenceb_> yeah 2011-11-09T23:34:06 < Laurenceb_> im actually using a software generated interrupt 2011-11-09T23:34:15 < Laurenceb_> and group priorities 2011-11-09T23:34:26 < Laurenceb_> to get a form of multitasking 2011-11-09T23:37:18 < Thorn> I haven't yet found any books or other sources that deal with using interrupt priorities in detail 2011-11-09T23:37:34 < Thorn> although the topic seems quite important 2011-11-09T23:39:39 < Laurenceb_> yeah took me a while to figure out 2011-11-09T23:40:01 < Laurenceb_> found some comments in the st perif lib code, and some ref manuals on the arm site 2011-11-09T23:40:24 < Laurenceb_> look at my interrupts.c 2011-11-09T23:43:26 < Thorn> setting them up is not as much a problem as actually using them (figuring out which priorities to assign, etc) 2011-11-09T23:46:22 < Thorn> one problem in freertos is you can't use short-running tasks that are only started when needed, I believe that's basically what you implemented 2011-11-09T23:50:25 < Thorn> btw, a similar design is described in some detail here http://www.amazon.com/Apollo-Guidance-Computer-Architecture-Exploration/dp/1441908765/ --- Day changed Thu Nov 10 2011 2011-11-10T00:26:09 < Laurenceb_> http://games.slashdot.org/comments.pl?sid=2517322&cid=38002456 2011-11-10T00:26:16 < Laurenceb_> interesting 2011-11-10T00:28:03 <+Steffanx> Not worth a discussion 2011-11-10T00:30:04 <+Steffanx> Replace "angry bird " by anything else 'useless' and you have the same discussion 2011-11-10T00:30:13 <+Steffanx> So it's useless discussion :) 2011-11-10T00:30:17 < Laurenceb_> heh 2011-11-10T00:30:25 <+Steffanx> Or I could say "Have fun Laurenceb_ " 2011-11-10T00:30:29 < Laurenceb_> wow i have to get that book XD 2011-11-10T00:30:54 -!- _Shurik_ [~alex@99-120-247-177.lightspeed.tukrga.sbcglobal.net] has quit [Quit: Leaving.] 2011-11-10T00:31:12 <+Steffanx> You should also get that free book about versioning systems Laurenceb_ 2011-11-10T00:31:12 < Laurenceb_> of course with mems sensors theres no gymbal lock 2011-11-10T00:31:21 <+Steffanx> Free paper version 2011-11-10T00:31:28 < Laurenceb_> oh nice 2011-11-10T00:31:42 < Laurenceb_> where from 2011-11-10T00:32:22 <+Steffanx> http://book.sourcegear.com/vcbe/request_book 2011-11-10T00:32:38 <+Steffanx> I read on several different forums you really get the book 2011-11-10T00:33:53 < Laurenceb_> nice 2011-11-10T00:34:21 < Laurenceb_> i now have 10 different arm boards on my desk XD 2011-11-10T00:34:27 <+Steffanx> 10 ?! 2011-11-10T00:36:07 < karlp> jpa-: that blinkyii project? I can write it to flash, and I can read it back out, and they are identical, but it never blinks...? 2011-11-10T00:36:28 < Laurenceb_> arduino maple and olimexino, F4 discovery, df3120, stm32vl discovery, gumstix, commercial xscale board im developing, similar stm32 version, dactyl autopilot, openpilot autopilot 2011-11-10T00:36:51 < Laurenceb_> im armed 2011-11-10T00:36:57 * karlp groans :) 2011-11-10T00:37:18 <+Steffanx> Send me at least 2 of them 2011-11-10T00:37:31 <+Steffanx> Your xscale board for example 2011-11-10T00:37:37 < Laurenceb_> its commercial 2011-11-10T00:37:44 <+Steffanx> I want a sample 2011-11-10T00:38:07 <+Steffanx> THAT's commercial :) 2011-11-10T00:38:13 < Laurenceb_> http://www.monicahealthcare.com/ 2011-11-10T00:38:21 < Laurenceb_> i make boards for that company 2011-11-10T00:38:38 <+Steffanx> Nice 2011-11-10T00:38:40 < Laurenceb_> the graphics looks ewww 2011-11-10T00:38:50 <+Steffanx> It's acceptable 2011-11-10T00:39:30 < Laurenceb_> i mean the stomache with electrodes.. looks like something out of a zombie film 2011-11-10T00:40:05 < Laurenceb_> but yeah ive persuaded them to let me redo ancient Xscale board with stm32 :P 2011-11-10T00:41:08 <+Steffanx> f4? 2011-11-10T00:41:27 < Laurenceb_> not yet.. maybe in future 2011-11-10T00:41:56 <+Steffanx> The question is.. do i trust something from your hands? :P 2011-11-10T00:43:14 < Laurenceb_> lol production stuff is never assembled by hand 2011-11-10T00:43:49 <+Steffanx> The code is 2011-11-10T00:43:56 < Laurenceb_> and anyone can write cleaner code than the firmware for that thing O_o 2011-11-10T00:44:05 <+Steffanx> :D 2011-11-10T00:44:23 <+Steffanx> Yeah, sometimes I REALLY surprised how things can work in this world 2011-11-10T00:45:01 <+Steffanx> Some companies could be so much for effective with some skilled programers 2011-11-10T00:45:03 <+Steffanx> *programmers 2011-11-10T00:45:43 < Laurenceb_> its mostly loads of 32bit hex values for different registers and their contents 2011-11-10T00:46:03 < Laurenceb_> then someone went through all the source pressing tab randomly 2011-11-10T00:46:48 <+Steffanx> stack overflow? :) 2011-11-10T00:46:50 < Laurenceb_> and theres some funny functions like an auto-destruct 2011-11-10T00:47:05 < Laurenceb_> that fries loads of the electronics if you dont have a valid license 2011-11-10T00:47:12 <+Steffanx> wtf 2011-11-10T00:47:48 < Laurenceb_> if you dont update your license and try to download... 2011-11-10T00:47:58 <+Steffanx> That sucks 2011-11-10T00:48:13 <+Steffanx> Why?! 2011-11-10T00:48:20 < karlp> MONEH! 2011-11-10T00:48:28 < karlp> this is not software 2011-11-10T00:48:34 < karlp> this sounds like american medicine! 2011-11-10T00:48:35 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 260 seconds] 2011-11-10T00:48:52 <+Steffanx> Yeah but come one.. a self destruct is so stupid imho 2011-11-10T00:48:53 < Laurenceb_> heh 2011-11-10T00:48:56 <+Steffanx> *on 2011-11-10T00:49:17 < Laurenceb_> screws up the analogue front end then overvoltages the core with the pmu 2011-11-10T00:49:53 <+Steffanx> Why they can't just erase the cpu? 2011-11-10T00:50:10 < Laurenceb_> cuz it might be possible to ressurect 2011-11-10T00:50:19 < Laurenceb_> e.g. jtag port on the side 2011-11-10T00:50:27 <+Steffanx> True, but how many really do that? 2011-11-10T00:50:45 < Laurenceb_> i tihkn they went a little excessive XD 2011-11-10T00:50:48 <+Steffanx> Next time when someone buys it they will bypass everything 2011-11-10T00:51:09 <+Steffanx> And makes the self-destruct less effective or even in-effective :) 2011-11-10T00:51:41 <+Steffanx> Shouldn't be that hard to reverse engineer that part 2011-11-10T00:51:45 < Laurenceb_> thats one place where stm32 could be improved 2011-11-10T00:51:54 < Laurenceb_> if it have v_core input 2011-11-10T00:51:58 < Laurenceb_> *had 2011-11-10T00:52:09 < Laurenceb_> then you could use a switching regulator 2011-11-10T00:52:12 < Laurenceb_> down to 1.8v 2011-11-10T00:52:42 <+Steffanx> Anyway, if the chinese want to clone something, nothing will stop them :) 2011-11-10T00:52:47 <+Steffanx> *when 2011-11-10T00:54:27 <+Steffanx> Have a good night :) 2011-11-10T00:55:44 < Laurenceb_> cya 2011-11-10T01:00:29 < BrainDamage> Laurenceb_: input voltage already goes down to 2V 2011-11-10T01:01:00 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds] 2011-11-10T01:02:08 < Laurenceb_> yeah but if you want 3.3v io 2011-11-10T01:02:58 < BrainDamage> wouldn't you need 3.3V already then? 2011-11-10T01:03:29 < BrainDamage> I mean, I wouldn't see the advantage of providing 1.8V 2011-11-10T01:03:50 < BrainDamage> since you'd have core supplied, but no IO 2011-11-10T01:06:40 -!- district is now known as orangemoed 2011-11-10T01:09:28 -!- orangemoed is now known as district 2011-11-10T01:19:29 -!- vpopov [~happylife@212.92.145.7] has quit [Ping timeout: 258 seconds] 2011-11-10T01:21:21 < Laurenceb_> core consumes quite a lot of current 2011-11-10T01:21:46 < Laurenceb_> so if you can switch down 2011-11-10T01:21:52 < Laurenceb_> you use less 3.3v current 2011-11-10T01:28:14 -!- happylife [~happylife@212.92.145.7] has joined ##stm32 2011-11-10T01:40:30 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has quit [Ping timeout: 240 seconds] 2011-11-10T03:17:22 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-10T03:18:51 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-10T03:38:23 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has quit [] 2011-11-10T04:03:10 -!- Eartaker-AFK [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has joined ##stm32 2011-11-10T04:16:30 -!- Eartaker-AFK [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has quit [Quit: OOOOOO Whats that....] 2011-11-10T04:16:49 -!- Eartaker [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has joined ##stm32 2011-11-10T04:16:50 -!- Eartaker [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has quit [Changing host] 2011-11-10T04:16:50 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has joined ##stm32 2011-11-10T05:27:11 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has quit [Ping timeout: 248 seconds] 2011-11-10T05:29:13 -!- Eartaker [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has joined ##stm32 2011-11-10T05:29:13 -!- Eartaker [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has quit [Changing host] 2011-11-10T05:29:13 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has joined ##stm32 2011-11-10T07:26:49 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-10T07:27:25 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-10T08:00:42 <@jpa-> karlp: heh, with my f1 i have the register bug which stops me from using gdb, but as the program is correctly in flash it works when i start the controller without debugger connected 2011-11-10T08:01:01 <@jpa-> (actually, most of the time cont works too, but sometimes it has the wrong PC address 2011-11-10T10:48:08 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-10T11:26:32 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-10T11:26:32 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-10T11:36:24 < karlp> jpa-: thanks, I guess :) 2011-11-10T11:37:30 < karlp> I think I'm going to try installing crossworks or atollic, make sure I can get a few good binaries, test against reading out flash at least. 2011-11-10T11:38:08 < karlp> I let myself get totally distracted by loading in a blink example into sram only, with no startup, and thinking everything was fine. 2011-11-10T11:38:35 <+Steffanx> :D 2011-11-10T11:39:16 * karlp shakes a fist, "My time will come!" 2011-11-10T12:50:13 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has joined ##stm32 2011-11-10T13:01:18 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has quit [Ping timeout: 240 seconds] 2011-11-10T15:46:38 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-10T15:46:41 -!- mode/##stm32 [+v Steffann] by ChanServ 2011-11-10T15:49:11 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 258 seconds] 2011-11-10T16:03:02 -!- Ear [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has joined ##stm32 2011-11-10T16:06:08 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has quit [Ping timeout: 258 seconds] 2011-11-10T16:16:06 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has quit [Read error: Connection reset by peer] 2011-11-10T16:24:58 -!- zlog [~zlog@ip68-102-109-205.ks.ok.cox.net] has quit [Ping timeout: 245 seconds] 2011-11-10T16:26:38 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 245 seconds] 2011-11-10T16:29:56 -!- zlog [~zlog@ip68-102-109-205.ks.ok.cox.net] has joined ##stm32 2011-11-10T16:43:56 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-10T16:45:36 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-10T17:19:16 -!- zlog [~zlog@ip68-102-109-205.ks.ok.cox.net] has quit [Read error: Connection reset by peer] 2011-11-10T17:24:44 -!- zlog [~zlog@ip68-102-110-69.ks.ok.cox.net] has joined ##stm32 2011-11-10T17:27:41 -!- |Marco| [~source@248.79-160-186.customer.lyse.net] has joined ##stm32 2011-11-10T17:34:26 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has joined ##stm32 2011-11-10T17:34:40 * Laurenceb cant get bootloader working with bluetooth :( 2011-11-10T17:34:49 < Laurenceb> it inits the stm32 2011-11-10T17:35:05 < Laurenceb> then timesout waiting for bootloader version reply 2011-11-10T17:35:23 <+Steffann> poor you 2011-11-10T17:41:08 -!- _Shurik_ [~alex@99-120-247-177.lightspeed.tukrga.sbcglobal.net] has joined ##stm32 2011-11-10T17:41:29 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-10T17:42:07 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-10T17:42:13 -!- csamuelson is now known as Rious 2011-11-10T17:43:19 < Laurenceb> hmm its almost like by bluetooth is stripping out characters 2011-11-10T17:43:24 < Laurenceb> oh wait.. 2011-11-10T17:43:26 < Laurenceb> it will 2011-11-10T17:43:30 <+Steffann> hum? 2011-11-10T17:43:37 * Laurenceb forgets how to setup bluetooth in binary mode 2011-11-10T18:05:54 < Laurenceb> wow bluetooth is annoying 2011-11-10T18:06:06 <+Steffann> Why?> 2011-11-10T18:06:11 < Laurenceb> Can't connect RFCOMM socket: Device or resource busy 2011-11-10T18:06:30 <+Steffann> You OS is screwing with you 2011-11-10T18:06:51 <+Steffann> your 2011-11-10T18:08:18 < Laurenceb> sudo rfcomm release 3 --raw 2011-11-10T18:08:18 < Laurenceb> Can't release device: No such device 2011-11-10T18:08:26 < Laurenceb> the hell 2011-11-10T18:13:12 < karlp> bluetooth sucks 2011-11-10T18:13:25 < Laurenceb> you think 2011-11-10T18:13:51 < Thorn> what doesn't? 2011-11-10T18:13:52 < Laurenceb> /dev/rfcomm3 doesnt even exist 2011-11-10T18:14:26 < Laurenceb> i think i can make flash over bluetooth work 2011-11-10T18:14:33 < Laurenceb> but i cant make bluetooth work :( 2011-11-10T18:16:34 < Laurenceb> /etc/init.d/bluetooth start 2011-11-10T18:16:34 < Laurenceb> laurence@laurence-desktop:~$ /etc/init.d/bluetooth status 2011-11-10T18:16:34 < Laurenceb> * bluetooth is not running 2011-11-10T18:16:37 < Laurenceb> WTF 2011-11-10T18:23:07 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-10T18:27:59 <+Steffann> reboot! :P 2011-11-10T18:28:15 <+Steffann> You crashed it Laurenceb 2011-11-10T18:28:39 < Laurenceb> but i just rebooted :( 2011-11-10T18:38:25 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has quit [Remote host closed the connection] 2011-11-10T18:42:01 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has joined ##stm32 2011-11-10T18:42:08 < Laurenceb> rebooted, same error :( 2011-11-10T18:43:08 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has quit [Remote host closed the connection] 2011-11-10T18:55:30 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has joined ##stm32 2011-11-10T18:55:36 < Laurenceb> ok it connects now 2011-11-10T18:55:45 < Laurenceb> but stm32loader is breaking 2011-11-10T18:55:54 < Laurenceb> seems its losing non ascii characters still 2011-11-10T18:56:04 < Laurenceb> im opening the rfcomm por tin binary mode 2011-11-10T18:56:19 < Laurenceb> then stm32loader uses pyserial 2011-11-10T19:01:57 -!- ziph [~ziph@office.bitplantation.com] has joined ##stm32 2011-11-10T20:31:43 -!- Steffann is now known as Steffanx 2011-11-10T20:34:21 -!- Thorn__ [~Thorn@93-81-4-115.broadband.corbina.ru] has joined ##stm32 2011-11-10T20:34:21 -!- Thorn__ [~Thorn@93-81-4-115.broadband.corbina.ru] has quit [Changing host] 2011-11-10T20:34:21 -!- Thorn__ [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-10T20:37:32 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 258 seconds] 2011-11-10T21:15:07 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2011-11-10T21:16:36 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-10T21:18:40 -!- zlog [~zlog@ip68-102-110-69.ks.ok.cox.net] has quit [Ping timeout: 255 seconds] 2011-11-10T21:21:29 -!- zlog [~zlog@ip68-102-110-69.ks.ok.cox.net] has joined ##stm32 2011-11-10T21:22:49 -!- zlog_ [~zlog@ip68-102-110-69.ks.ok.cox.net] has joined ##stm32 2011-11-10T21:23:52 -!- zlog [~zlog@ip68-102-110-69.ks.ok.cox.net] has quit [Remote host closed the connection] 2011-11-10T21:24:06 -!- zlog_ [~zlog@ip68-102-110-69.ks.ok.cox.net] has quit [Remote host closed the connection] 2011-11-10T21:24:25 -!- zlog [~zlog@ip68-102-110-69.ks.ok.cox.net] has joined ##stm32 2011-11-10T21:41:19 <@jpa-> yay fixed the stlink bug :) 2011-11-10T21:41:41 <+Steffanx> Let's try that one again jpa- 2011-11-10T21:41:53 <@jpa-> yay fixed the st bug 2011-11-10T21:42:01 <+Steffanx> :) 2011-11-10T21:42:30 <+Steffanx> Still not 100% ok, but you're getting closer right word 2011-11-10T21:42:32 <@jpa-> Steffanx: so what did you do last night? 2011-11-10T21:42:38 <+Steffanx> Sleep? 2011-11-10T21:42:53 <+Steffanx> You? 2011-11-10T21:42:59 <@jpa-> sleep :) 2011-11-10T21:43:07 <+Steffanx> ok great 2011-11-10T21:43:37 <+Steffanx> Shower time, so bb 2011-11-10T21:49:19 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has joined ##stm32 2011-11-10T21:49:21 < Laurenceb_> hi 2011-11-10T21:49:34 < Laurenceb_> couldnt get bluetooth bootloader to work 2011-11-10T21:49:58 < Laurenceb_> i tested with some loopback code and all 8 bit characters passed through the link ok 2011-11-10T21:51:45 < Laurenceb_> the stm32 acks the first packet, but then its dead 2011-11-10T21:53:01 -!- Ear [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has quit [Quit: OOOOOO Whats that....] 2011-11-10T21:53:14 <@jpa-> you need a logic analyzer :) 2011-11-10T21:53:24 -!- Eartaker [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has joined ##stm32 2011-11-10T21:53:24 -!- Eartaker [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has quit [Changing host] 2011-11-10T21:53:24 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has joined ##stm32 2011-11-10T21:53:50 < Laurenceb_> havent got the kit setup now, but i scoped the bluetooth rx with a digital storage scope 2011-11-10T21:54:03 < Laurenceb_> nothing from the stm32 after the first ack 2011-11-10T21:54:29 < Laurenceb_> need to take a closer look at the bluetooth tx to see if the data actually makes it through 2011-11-10T21:54:48 < Laurenceb_> i tried playing around with latency options in the bluetooth config, but no luck there 2011-11-10T21:54:55 < Laurenceb_> actually... not at the pc side 2011-11-10T21:55:14 < Laurenceb_> it might be packetising the transmitted data in a weird way 2011-11-10T21:55:42 < Laurenceb_> but bluetooth on ubuntu is so glitchy 2011-11-10T21:55:48 < Laurenceb_> had to reboot 4 times 2011-11-10T21:57:09 <@jpa-> bluetooth on ubuntu works well for me :) 2011-11-10T21:59:32 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 256 seconds] 2011-11-10T22:01:11 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32 2011-11-10T22:18:17 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has joined ##stm32 2011-11-10T22:38:23 <+Steffanx> Is it a serial usb module Laurenceb? 2011-11-10T22:38:38 <+Steffanx> *usb = bluetooth :) 2011-11-10T22:39:22 < Laurenceb_> yes 2011-11-10T23:48:01 -!- _Shurik_ [~alex@99-120-247-177.lightspeed.tukrga.sbcglobal.net] has quit [Quit: Leaving.] --- Day changed Fri Nov 11 2011 2011-11-11T00:10:33 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2011-11-11T00:11:58 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-11T00:13:03 -!- zlog [~zlog@ip68-102-110-69.ks.ok.cox.net] has quit [Ping timeout: 248 seconds] 2011-11-11T00:17:56 -!- zlog [~zlog@ip68-102-110-69.ks.ok.cox.net] has joined ##stm32 2011-11-11T00:46:21 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Quit: ZNC - http://znc.sourceforge.net] 2011-11-11T00:47:55 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32 2011-11-11T01:22:12 -!- Thorn__ [~Thorn@unaffiliated/thorn] has quit [] 2011-11-11T01:46:09 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds] 2011-11-11T01:48:59 < karlp> jpa-: what did you fix? 2011-11-11T04:22:28 -!- phantone [~destroy@a95-92-92-79.cpe.netcabo.pt] has joined ##stm32 2011-11-11T04:22:40 -!- phantone [~destroy@a95-92-92-79.cpe.netcabo.pt] has quit [Client Quit] 2011-11-11T04:26:35 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has quit [Ping timeout: 276 seconds] 2011-11-11T07:59:19 <@jpa-> karlp: this https://github.com/karlp/stlink/pull/1 2011-11-11T08:18:49 < ziph> Have I got it right that all one has to do on an M3 to have an interrupt preempt another is to raise it to a higher priority group? 2011-11-11T08:46:02 < erik-k> I seem to have a rather, eh, crippling problem... all the float-input routines (*scanf, atod/atof, strtod, ...) fail to compile with some bs library error: 2011-11-11T08:46:13 < erik-k> /home/erik-k/stm_development/lib/gcc/arm-none-eabi/4.4.5/../../../../arm-none-eabi/lib/thumb/libg.a(lib_a-syscalls.o): In function `_sbrk': 2011-11-11T08:46:15 < erik-k> syscalls.c:(.text._sbrk+0x30): undefined reference to `end' 2011-11-11T08:50:46 <@jpa-> erik-k: have you implemented _sbrk, malloc? 2011-11-11T08:51:07 < erik-k> ... no. 2011-11-11T08:51:14 <@jpa-> you need to :) 2011-11-11T08:51:21 <@jpa-> _sbrk is what gives them memory :) 2011-11-11T08:51:44 <@jpa-> unless your malloc() magically works without it 2011-11-11T08:51:50 < erik-k> http://files.sharenator.com/fuuuuuuuuuuuuuuuuu2_RE_David_Cameron-s386x294-59750.jpg 2011-11-11T08:52:24 < erik-k> And when did a dumb atof start requiring memory allocation? 2011-11-11T09:06:24 * erik-k sighs and outlines an atof that doesn't require memory allocation 2011-11-11T09:29:11 <@jpa-> the newlib atof implementation uses bigints for parsing 2011-11-11T09:32:58 < erik-k> Why? float will just overflow on anything > 1e37 and double on anything > 1e303 and long double on anything > 1e2000 anyway 2011-11-11T09:40:16 <@jpa-> don't ask me - maybe it has something to do with rounding or numeric stability or something 2011-11-11T09:41:43 <@jpa-> there is no big enough integer type to hold it, and adding small increments to floats causes problems (like if you take in every number, multiply float x by 10, add number to x) 2011-11-11T09:42:28 <@jpa-> you'll get an answer that is close but not exactly correct :) 2011-11-11T11:31:45 < karlp> jpa-: fix looks good! sorry, I was a bit burnt out last night, feeling a bit fresher today :) will try and get that pulled in later today or tonight. I suspect that's been broken since the stlinkv2 support got merged in. 2011-11-11T11:31:57 * karlp really needs to work out some way of automatically testing some of this stuff 2011-11-11T12:10:24 < ziph> karlp: Floating point arithmetic? 2011-11-11T12:11:07 < karlp> no sorry, st-link software stuff 2011-11-11T12:14:16 < ziph> Oh, no idea then, I actually use NXP's. ;) 2011-11-11T12:14:47 < karlp> well, in theory, you'll be able to use an STM discovery board with the SWD headers to program and debug your NXP too :) 2011-11-11T12:14:53 < karlp> though I haven't tried it of course :) 2011-11-11T12:15:07 < karlp> and it's certainly not the focus, and I can basically guarantee that it won't work yet :) 2011-11-11T12:15:33 < ziph> I'm sure that would violate the licence terms STM uses. ;) 2011-11-11T12:15:45 < karlp> probably :) 2011-11-11T12:16:00 < karlp> the discovery boards aren't meant to be used for anything real. 2011-11-11T12:16:35 < karlp> anyway, I'm going to try and work hard this morning, finish my projects, and then sneak off and do stlink stuff this afternoon 2011-11-11T12:18:23 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has quit [Ping timeout: 248 seconds] 2011-11-11T13:14:47 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-11T13:53:37 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-11T13:53:41 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-11T14:35:45 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Remote host closed the connection] 2011-11-11T14:37:19 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32 2011-11-11T14:50:12 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 240 seconds] 2011-11-11T16:17:14 < Laurenceb> ok wtf 2011-11-11T16:17:33 < Laurenceb> my stm32 never responds to the 0x00 command 2011-11-11T16:17:41 < Laurenceb> in usart1 bootloade rmode 2011-11-11T16:26:23 < Laurenceb> maybe its rfi 2011-11-11T16:28:56 < Laurenceb> the stm32 sends out the ack packet 2011-11-11T16:29:03 < Laurenceb> then no longer responds 2011-11-11T16:33:45 < Laurenceb> lowering tx power doesnt help :-/ 2011-11-11T16:34:03 < ziph> tx power? 2011-11-11T16:35:35 < Laurenceb> of my bluetooth module 2011-11-11T16:35:46 < Laurenceb> im wondering if its maybe version of the stm32 2011-11-11T16:35:53 < Laurenceb> and the bllotloader has changed 2011-11-11T16:36:12 < ziph> Maybe. 2011-11-11T16:36:14 < Laurenceb> as if i skip to eraseflash i get a NACK 2011-11-11T16:36:46 < ziph> I wasted a bunch of time recently on a codec that had two models that were supposedly functionally exactly the same but had different default register values. :) 2011-11-11T16:38:38 < Tom_itx> documented? 2011-11-11T16:41:28 < Laurenceb> oh 2011-11-11T16:41:35 < Laurenceb> i think parity might not be working 2011-11-11T16:41:42 < Laurenceb> need to check some more 2011-11-11T16:41:54 < Laurenceb> oh 2011-11-11T16:42:06 < Laurenceb> yeah i need to enable it on my bluetooth config 2011-11-11T16:56:02 < Laurenceb> hell yeah 2011-11-11T16:56:03 < Laurenceb> works 2011-11-11T17:05:04 < karlp> bootloading over serial on bluetooth? 2011-11-11T17:06:36 < Laurenceb> yes 2011-11-11T17:07:11 < Laurenceb> i can just run make upload and it runs 2011-11-11T17:10:19 < Laurenceb> how does the stm32 chip id work? 2011-11-11T17:10:38 < Laurenceb> 0x04 0x10 is my chip id 2011-11-11T17:11:38 < karlp> it's on a specific page of the RM0008 or something 2011-11-11T17:11:46 < karlp> I can't remember off the top of my head. 2011-11-11T17:12:09 < karlp> you can look near the top of gdbserver.c and also in st-common.c 2011-11-11T17:13:05 < Laurenceb> ill search in the manual 2011-11-11T17:18:43 < Laurenceb> hmm ref manual doesnt say how its encoded 2011-11-11T17:18:57 < Laurenceb> apparently you can work out data of manufacture and stuff from it 2011-11-11T17:19:22 < Laurenceb> date of manufacture, silicon revision, batch number, wafer position x,y, iirc 2011-11-11T17:19:54 < karlp> hmm, I haven't read that, but the RM does talk about reserved bits 2011-11-11T17:21:08 < Laurenceb> theres got to be interesting things they could do 2011-11-11T17:21:19 < Laurenceb> identification of couterfits 2011-11-11T17:21:24 < Laurenceb> and stuff like that 2011-11-11T17:33:23 < karlp> so, I did a git pull, and because i had local changes, it's made it a merge, rather than just including the upstream changes and mine on top, 2011-11-11T17:33:31 < karlp> what I wanted was probably to rebase mine on top? 2011-11-11T17:33:35 * karlp wonders how to fix it now. 2011-11-11T17:33:42 < Laurenceb> i think you can force 2011-11-11T17:35:39 * karlp curses 2011-11-11T17:35:44 < karlp> now it's just thrown away my change 2011-11-11T17:35:49 < karlp> sometimes I love it so much 2011-11-11T17:35:57 < karlp> sometimes it just makes such a mess 2011-11-11T17:36:01 < BrainDamage> karlp: yes, you should've rebased 2011-11-11T17:36:23 < karlp> I wanted to get one commit entry from jpa, not his, a merge of shis into mine, and another merge of my github into my local 2011-11-11T17:39:27 <@jpa-> haha :) 2011-11-11T17:39:42 < BrainDamage> http://img443.imageshack.us/img443/5238/35821e.jpg 2011-11-11T17:39:49 <@jpa-> isn't merge what you wanted? 2011-11-11T17:39:51 < karlp> thanks for that jpa :) 2011-11-11T17:39:54 < BrainDamage> lol ops 2011-11-11T17:39:56 < BrainDamage> wrong link 2011-11-11T17:40:03 < BrainDamage> NSFW even 2011-11-11T17:40:04 < karlp> hehe 2011-11-11T17:40:09 < karlp> as I just found out, at work .) 2011-11-11T17:40:33 <@jpa-> BrainDamage: your girlfriend? 2011-11-11T17:40:44 < BrainDamage> I wish :p 2011-11-11T17:41:26 < karlp> jpa-: not sure, I probably could have added your github as a remote locally, cherry picked the single commit into my master, and then repushed to github, 2011-11-11T17:41:36 < karlp> but not sure how that would have show up in githubs network and pull requests 2011-11-11T17:41:38 < BrainDamage> karlp: sfw, and git related https://imgur.com/RelqV 2011-11-11T17:41:42 < karlp> anyway, not it looks ok. 2011-11-11T17:42:09 <@jpa-> karlp: hmm, why not just accept the pull request and then pull from your repo? 2011-11-11T17:42:15 < karlp> I did. 2011-11-11T17:42:25 < karlp> but I had another commit ahead on my local master 2011-11-11T17:42:49 <@jpa-> and it merges them.. shouldn't merge mean that it keeps edits from both branches 2011-11-11T17:42:52 < karlp> doing accept pull, then pull from github to my local gave me yoru commit, a merge of your branch into my github master, and _another_ merge of github into local 2011-11-11T17:43:18 < karlp> then I tried some reset --hard trickery, and rboke it 2011-11-11T17:43:23 < karlp> never mind, it's all ok now. 2011-11-11T17:43:38 < karlp> BrainDamage: that's a nice graph :) 2011-11-11T17:43:43 < karlp> I'll keep that 2011-11-11T17:44:22 < BrainDamage> I like the lynch mob part 2011-11-11T17:44:44 < karlp> yeah :) 2011-11-11T17:44:54 < karlp> ok, must finish what I started, it's 3:44! 2011-11-11T17:45:01 < karlp> not allowed to play with stlink yet 2011-11-11T18:14:44 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-11T18:14:47 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-11T19:51:34 <@jpa-> i wonder what this message is: KARL - should read back as 0x03, not 60 02 00 00 2011-11-11T19:51:45 <@jpa-> though it works fine now :) 2011-11-11T20:02:27 < karlp> yeah, I've been meaning to get back to that 2011-11-11T20:02:45 < karlp> I was reading in one of the cortex manuals, and as far as I could tell, it should be reading back as 3 2011-11-11T20:03:02 < karlp> however, 60 02 00 00 is "right" and better than what it was doing when I added that 2011-11-11T20:03:19 < karlp> ok, home time. 2011-11-11T20:33:50 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has joined ##stm32 2011-11-11T22:22:23 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has joined ##stm32 2011-11-11T22:23:30 -!- AaronM [~Aaron@adsl-74-226-73-245.mem.bellsouth.net] has joined ##stm32 2011-11-11T22:23:30 -!- AaronM [~Aaron@adsl-74-226-73-245.mem.bellsouth.net] has quit [Changing host] 2011-11-11T22:23:30 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has joined ##stm32 2011-11-11T22:50:44 -!- happylife [~happylife@212.92.145.7] has quit [Ping timeout: 258 seconds] 2011-11-11T22:52:51 -!- happylife [~happylife@212.92.145.7] has joined ##stm32 2011-11-11T22:59:07 < karlp> so, eabi means I should be able to build an elf on linux, and program it from windows right? 2011-11-11T23:20:23 <@jpa-> umm, yeah, but that has nothing to do with eabi 2011-11-11T23:30:51 < karlp> I thought it was eabi that said that objects from different tools should be interchangeable 2011-11-11T23:30:58 < karlp> I guess by the time it's an elf, that' sover? 2011-11-11T23:35:23 <@jpa-> elf is just a container 2011-11-11T23:35:40 <@jpa-> but if you are just writing flash, there is nothing about interoperability about code 2011-11-11T23:35:58 <@jpa-> eabi would matter if you were compiling half of the program with IAR and another half with GCC 2011-11-11T23:39:48 < Thorn> karlp: you're cross-compiling. it doesn't matter at all what your host system is as long as your compiler runs on it at all 2011-11-11T23:40:25 < karlp> I was mor ecurious about elf, I know that ihex or srec, once built can be copied at will on other machines, 2011-11-11T23:40:41 < karlp> I was more curious if arm-xxx-objcopy would work equally well on any system 2011-11-11T23:40:51 < Thorn> I don't see why not 2011-11-11T23:41:02 < karlp> I didn't think so, but I've had my sanity tested a bit recently :) 2011-11-11T23:44:23 < Thorn> well you can take e.g. a linux binary and copy it to a windows system, you can't run it there but it's not going to get mangled or anything. it's just a binary file --- Day changed Sat Nov 12 2011 2011-11-12T00:02:53 < karlp> hmm. interesting. the blinkyii samples that jpa pointed me to, and my own compilations of the factory demo code don't make the lightts blink even when programming with the windows st link utility 2011-11-12T00:03:15 < karlp> next up, the libopencm3 demos and atollic when it finishes downloading... 2011-11-12T00:04:16 <@jpa-> which board are you using 2011-11-12T00:08:56 < karlp> this is on the VL board 2011-11-12T00:09:09 < karlp> want to get it working atleast once before I get back onto the 32L board 2011-11-12T00:09:14 < karlp> even though that's personally more interesting 2011-11-12T00:10:52 < karlp> hmm, the stlink utility read the binary back out, and it's identical to the readout done via the slinkylinky software 2011-11-12T00:38:00 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds] 2011-11-12T00:38:24 < karlp> if atollic is based on eclipse, does anyone know why it's windows only? 2011-11-12T01:11:20 < karlp> ok, well hooray? I finally have an elf that blinks again! 2011-11-12T01:13:52 < karlp> whee, even better, now I have a binary that I actually _compiled_ on linux, that flashes with stlink's windows utility 2011-11-12T01:14:12 < karlp> _now_ I can get back to flashing with slinkylink 2011-11-12T01:14:47 < karlp> finally. 2011-11-12T01:16:48 < BrainDamage> perhaps sniff the traffic while flashing? 2011-11-12T01:17:13 < karlp> oh, or just go back over the diffs :) I probably broke it somewhere refactoring before 2011-11-12T01:17:27 < karlp> at least now I know that I have working binary examples to try flashing finally 2011-11-12T01:17:41 < BrainDamage> did you change anything, or the original worked? 2011-11-12T01:17:45 < karlp> before I wasn't entirely sure 2011-11-12T01:17:45 <@jpa-> karlp: hmm.. i'm happily flashing stuff with your st-util :) 2011-11-12T01:17:54 < karlp> jpa-: with my master? 2011-11-12T01:18:02 < karlp> to a VL or a stlink2? 2011-11-12T01:18:21 <@jpa-> using a VL board (stlink1), to stm32f105 2011-11-12T01:18:38 < karlp> are you using gdb and the elf, or the flash thing? 2011-11-12T01:19:03 <@jpa-> and yeah, your master 2011-11-12T01:19:08 <@jpa-> gdb and elf 2011-11-12T01:19:54 <@jpa-> and i'm also debugging successfully 2011-11-12T01:20:04 < karlp> bah humbug 2011-11-12T01:20:10 < karlp> I wonder what's different in mine then? 2011-11-12T01:20:23 < karlp> well, that's good to hear at least :) 2011-11-12T01:20:38 <@jpa-> be sure to do make distclean, your make clean rule caught me a few times 2011-11-12T01:20:59 <@jpa-> (it doesn't clean the gdbserver, and the gdbserver doesn't rebuild when stlink library changes) 2011-11-12T01:21:27 < karlp> yeah, not mine, it's caught me a few times too :| 2011-11-12T01:21:32 < karlp> I just get write error, count == 32 2011-11-12T01:21:32 < karlp> run_flash_loader(0x8000000) == -1 2011-11-12T01:21:49 < karlp> it's worked occasionally, but I haven't worked out what's not getting reset properly 2011-11-12T01:22:34 <@jpa-> for me it works quite reliably, albeit a bit slowly 2011-11-12T01:22:47 < karlp> yeah, it only does 40 word pages 2011-11-12T01:22:56 < karlp> the write buffer should probably be expanded substantially. 2011-11-12T01:24:07 < karlp> ahh, I think I know what it is. 2011-11-12T01:24:29 < karlp> my local master probably includes some of the untested chagnes from texane I picked up without fully looking over 2011-11-12T01:25:30 < karlp> yep 2011-11-12T01:25:32 < karlp> fixed 2011-11-12T01:25:40 < karlp> ok, excellent. 2011-11-12T01:25:47 < karlp> now I know what bits need to be reviewed/thrown out 2011-11-12T01:25:59 < karlp> the recent top of tree from texane breaks 32VL support. 2011-11-12T01:26:35 < karlp> ok. beer time, I'll look at that later. thanks for those _very_ useful datapoints jpa :) 2011-11-12T01:26:51 <@jpa-> :) 2011-11-12T01:27:22 < karlp> schweet 2011-11-12T01:28:37 < karlp> yeah, via stlink2 and stlink1 2011-11-12T01:29:02 < karlp> note to self. do NOT push my local master anywhere! 2011-11-12T01:50:15 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-12T01:51:26 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-12T02:04:21 < Laurenceb_> rage 2011-11-12T02:04:31 < Laurenceb_> my usart dma code doesnt work 2011-11-12T02:06:01 < Laurenceb_> https://github.com/Laurenceb/Dactyl/blob/master/usart.c 2011-11-12T02:06:06 < Laurenceb_> usart2 works nicely 2011-11-12T02:13:29 < Thorn> have you seen that usart/dma appnote? 2011-11-12T02:13:41 < Thorn> (I haven't gotten around to it yet) 2011-11-12T02:21:03 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has quit [Ping timeout: 248 seconds] 2011-11-12T04:12:23 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-12T04:13:26 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-12T05:34:13 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has quit [] 2011-11-12T06:48:15 -!- ziph [~ziph@office.bitplantation.com] has quit [Ping timeout: 248 seconds] 2011-11-12T07:39:24 < erik-k> My stm32h107 board seems to consume an anomalously large current (220mA) compared to the statements in the device datasheet (ca 70mA running full-bore)... Does this input current indicate something is seriously wrong? 2011-11-12T07:39:55 < erik-k> There are a few other things attached (max232, LEDs on devboard) but their consumption is small 2011-11-12T09:20:43 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has quit [Remote host closed the connection] 2011-11-12T09:52:06 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-12T09:52:09 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-12T11:46:49 <@jpa-> erik-k: what if you hold the reset button down? how much is the current? 2011-11-12T11:47:42 < erik-k> jpa-: It's currently sitting in a lab several miles away... 2011-11-12T11:48:09 < erik-k> I've seen the current pop up a few mA when I connect rs232 2011-11-12T11:49:06 <@jpa-> i'm just thinking along the lines that the reset will force all pins to high-z and stop the processor, so if there is still high current then it is physical short-circuit 2011-11-12T11:49:20 <@jpa-> otherwise you are just driving current into USB_FAULT probably ,) 2011-11-12T11:53:18 * erik-k looks into USB_FAULT 2011-11-12T11:54:56 <@jpa-> though i don't know why that would be active 2011-11-12T11:55:06 <@jpa-> not much other conflicts you could make on that board 2011-11-12T11:57:56 < erik-k> Nothing happens on usb_fault if I've configured PE15 as GPIO output though, right? 2011-11-12T11:59:33 < erik-k> unless... oh shit, that usb power chip... 2011-11-12T12:00:02 < erik-k> -_- 2011-11-12T12:02:25 < erik-k> This is a problem because my external 5V regulator [because I need access to the "HV" supply for other power which the breakout board doesn't give] is an soic8 that handles 200mA poorly when there's more than a fraction of a volt across it for obvious reasons 2011-11-12T12:06:17 < Thorn> what's that st205 anyway and what for? I've only seen those in olimiex boards 2011-11-12T12:06:25 * erik-k notes this means moving functionality elsewhere... probably from E12-15 to E0-3 2011-11-12T12:11:07 <@jpa-> it should be inactive though unless you are drawing overcurrent from usb 2011-11-12T12:37:03 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has joined ##stm32 2011-11-12T14:29:39 -!- ahra [4f73b9fc@gateway/web/freenode/ip.79.115.185.252] has joined ##stm32 2011-11-12T15:27:27 < Laurenceb_> grrr my tx dma is still now working 2011-11-12T15:27:36 < Laurenceb_> has anyone got usart tx dma to work? 2011-11-12T16:00:39 <@jpa-> i have got adc dma to work ,) 2011-11-12T16:00:54 < Laurenceb_> ive got rx dma with a ring buffer to work 2011-11-12T16:01:05 < Laurenceb_> but simple tx buffer of a character array doesnt 2011-11-12T16:02:44 <+Steffanx> me too jpa- 2011-11-12T16:02:56 <+Steffanx> adc dma is EASY 2011-11-12T16:03:06 < Laurenceb_> i need to get that running soon XD 2011-11-12T16:08:17 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has joined ##stm32 2011-11-12T17:07:00 -!- phantone [~destroy@a95-92-92-79.cpe.netcabo.pt] has joined ##stm32 2011-11-12T17:09:33 -!- phantoxe [~destroy@a95-92-92-79.cpe.netcabo.pt] has quit [Ping timeout: 245 seconds] 2011-11-12T18:02:14 -!- ahra [4f73b9fc@gateway/web/freenode/ip.79.115.185.252] has quit [Ping timeout: 265 seconds] 2011-11-12T18:34:08 -!- vpopov [~happylife@46.251.84.160] has joined ##stm32 2011-11-12T18:35:37 -!- vpopov [~happylife@46.251.84.160] has quit [Read error: Connection reset by peer] 2011-11-12T18:35:55 -!- vpopov [~happylife@46.251.84.160] has joined ##stm32 2011-11-12T18:38:22 -!- vpopov [~happylife@46.251.84.160] has quit [Read error: Connection reset by peer] 2011-11-12T18:38:35 -!- vpopov [~happylife@46.251.84.160] has joined ##stm32 2011-11-12T19:19:30 -!- vpopov [~happylife@46.251.84.160] has quit [Quit: Leaving] 2011-11-12T19:19:42 -!- vpopov [~happylife@46.251.84.160] has joined ##stm32 2011-11-12T19:58:54 -!- vpopov [~happylife@46.251.84.160] has quit [Read error: Connection reset by peer] 2011-11-12T20:14:29 -!- vpopov [~happylife@46.251.84.160] has joined ##stm32 2011-11-12T22:41:13 -!- Xamusk [~X@186.221.10.157] has joined ##stm32 --- Day changed Sun Nov 13 2011 2011-11-13T00:14:55 -!- Xamusk [~X@186.221.10.157] has quit [Ping timeout: 260 seconds] 2011-11-13T00:38:19 -!- Xamusk [~X@186.221.10.157] has joined ##stm32 2011-11-13T01:20:13 < Laurenceb_> does the dma complete flag need to be cleared in software? 2011-11-13T01:20:19 < Laurenceb_> ref manual seems to say yes 2011-11-13T01:20:49 <+Steffanx> Then it's yes 2011-11-13T01:22:32 < Laurenceb_> i cant find it in any example code 2011-11-13T01:22:38 < Laurenceb_> the fatfs spi code doesnt do it 2011-11-13T01:22:52 < Laurenceb_> but my usart code always completes instantly 2011-11-13T01:27:51 <@jpa-> all my code has DMA1->IFCR = DMA_IFCR_CGIF2; 2011-11-13T01:27:57 <@jpa-> including my fatfs spi code 2011-11-13T01:28:08 <@jpa-> i can't remember how much of it i modified, but it is there 2011-11-13T01:28:27 <+Steffanx> I also don't remember I clear the flag 2011-11-13T01:28:39 <+Steffanx> that 2011-11-13T01:28:45 <+Steffanx> but who am i? :) 2011-11-13T01:30:08 <@jpa-> Steffanx: so what have you been doing all weekend? 2011-11-13T01:30:26 <+Steffanx> Weekend is not over yet :) 2011-11-13T01:30:50 < Tom_itx> what have you done so far? 2011-11-13T01:31:11 <+Steffanx> Actually i didn't do much at all 2011-11-13T01:31:22 <@jpa-> i've done just homework 2011-11-13T01:31:30 <@jpa-> and broke one pressure sensor 2011-11-13T01:31:31 <+Steffanx> Homework.. i don't have that anymore 2011-11-13T01:31:46 < Tom_itx> i have lots of home work 2011-11-13T01:31:53 < Tom_itx> not the kind you're thinking of though 2011-11-13T01:31:55 <+Steffanx> I only did a small design on my clone of Tom_itx toaster oven 2011-11-13T01:32:15 <+Steffanx> And I read something about how to work with triacs etc. .. i've never done that 2011-11-13T01:32:21 < Tom_itx> Steffanx, figure easy to use plugs for it too 2011-11-13T01:32:33 <+Steffanx> plugs? 2011-11-13T01:32:35 < Tom_itx> i think you need to use your arm to control the oven 2011-11-13T01:32:51 <+Steffanx> plugs? 2011-11-13T01:32:53 < Tom_itx> may be pushing it's ability 2011-11-13T01:32:58 <@jpa-> i've done it once, but triacs had not prepared themselves to work with me 2011-11-13T01:33:10 < Tom_itx> i put plugs on mine for the serial lcd, the triac board etc 2011-11-13T01:33:33 <+Steffanx> Oh, i'll do that, but that'll be separate boards 2011-11-13T01:34:00 < Tom_itx> are you doing a serial board for the lcd too? 2011-11-13T01:34:09 <+Steffanx> Not sure yet 2011-11-13T01:34:17 < Tom_itx> holler if you want it 2011-11-13T01:34:56 <+Steffanx> Nah, I like to do things myself/my way 2011-11-13T01:37:31 < Tom_itx> it's a backplane design, plug it right in the back of either a 2x8 or 1x16 2011-11-13T01:38:12 < Tom_itx> http://tom-itx.dyndns.org:81/~webpage/toaster_oven/serial_lcd_brd.png 2011-11-13T01:38:20 <+Steffanx> For hobby projects i try to design most of it myself.. especially the software 2011-11-13T01:41:43 <@jpa-> reinventing lcd control is not worth it :) 2011-11-13T01:41:54 <+Steffanx> It is :0 2011-11-13T01:41:56 <+Steffanx> :) 2011-11-13T01:44:21 * Tom_itx gives Steffanx a wall to bang his head against 2011-11-13T01:44:41 * jpa- gives Steffanx a comforting hug and plenty of other interesting stuff to do 2011-11-13T01:44:43 <+Steffanx> Why o why? 2011-11-13T01:45:02 <+Steffanx> I never wrote a serial lcd control :) 2011-11-13T01:46:07 <+Steffanx> Anyway.. it's 0.46AM => sleepy 2011-11-13T01:48:50 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 260 seconds] 2011-11-13T01:52:16 < Xamusk> whatŽs wrong with reinventing lcd control? 2011-11-13T01:52:39 < Xamusk> IŽve done my own lib for the atmega... got quite smaller than most other libs 2011-11-13T01:53:40 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-13T01:53:41 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 258 seconds] 2011-11-13T02:03:42 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 240 seconds] 2011-11-13T02:04:14 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-13T02:13:56 -!- vpopov [~happylife@46.251.84.160] has quit [Read error: No route to host] 2011-11-13T03:23:27 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has quit [Ping timeout: 248 seconds] 2011-11-13T05:07:05 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-13T05:07:25 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Disconnected by services] 2011-11-13T05:07:30 -!- Tom_L is now known as Tom_itx 2011-11-13T05:09:57 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Client Quit] 2011-11-13T05:10:48 -!- zlog [~zlog@ip68-102-110-69.ks.ok.cox.net] has quit [Remote host closed the connection] 2011-11-13T05:12:12 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-13T05:12:41 -!- zlog [~zlog@ip68-102-110-69.ks.ok.cox.net] has joined ##stm32 2011-11-13T05:42:52 -!- phantone [~destroy@a95-92-92-79.cpe.netcabo.pt] has quit [] 2011-11-13T06:27:05 -!- Xamusk [~X@186.221.10.157] has quit [Ping timeout: 260 seconds] 2011-11-13T09:44:21 -!- BadDwarf [~BadDwharf@02797120.bb.sky.com] has joined ##stm32 2011-11-13T09:44:44 < BadDwarf> hi.. is this a channel for discussing stm32 uc's ? 2011-11-13T09:47:01 * BadDwarf was wondering how to combiner Timer input capture with Timer slave mode reset, so the timer val is captured to the capture register, AND the timer reset to zero.. 2011-11-13T11:46:01 <@jpa-> yes 2011-11-13T12:28:24 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 276 seconds] 2011-11-13T12:28:39 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32 2011-11-13T12:37:48 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 240 seconds] 2011-11-13T12:38:57 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32 2011-11-13T13:01:39 < BadDwarf> =) 2011-11-13T13:54:20 <@jpa-> BadDwarf: i'm not sure if you can combine them or not, but you could just store the previous capture value and subtract it from the next one 2011-11-13T13:54:38 <@jpa-> if you do the subtraction using uint16_t, it will also work correctly in wraparound cases 2011-11-13T14:07:47 -!- vpopov [~happylife@46.251.84.160] has joined ##stm32 2011-11-13T15:25:00 -!- Netsplit *.net <-> *.split quits: district, BadDwarf, vpopov, BrainDamage, grummund, Kevin`, Eartaker, biot, Laurenceb, zlog, (+10 more, use /NETSPLIT to show all of them) 2011-11-13T15:25:34 -!- Netsplit over, joins: Kevin`, |Marco|, grummund, Thorn, vpopov, Tom_itx, zlog 2011-11-13T15:25:46 -!- Netsplit over, joins: CheBuzz 2011-11-13T15:27:23 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-13T15:27:23 -!- BadDwarf [~BadDwharf@02797120.bb.sky.com] has joined ##stm32 2011-11-13T15:27:23 -!- ChanServ [ChanServ@services.] has joined ##stm32 2011-11-13T15:27:23 -!- ServerMode/##stm32 [+o ChanServ] by kornbluth.freenode.net 2011-11-13T15:28:16 -!- happylife [~happylife@212.92.145.7] has joined ##stm32 2011-11-13T15:28:16 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has joined ##stm32 2011-11-13T15:28:16 -!- district [district@2607:f2f8:20c0::69] has joined ##stm32 2011-11-13T15:28:16 -!- karlp [~karl@palmtree.beeroclock.net] has joined ##stm32 2011-11-13T15:28:16 -!- erik-k [~erik-k@71-34-249-33.eugn.qwest.net] has joined ##stm32 2011-11-13T15:28:20 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has joined ##stm32 2011-11-13T15:28:20 -!- mansfeld [~andrew@robopoly/watson] has joined ##stm32 2011-11-13T15:30:32 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32 2011-11-13T15:30:32 -!- biot [~bert@kiutl.biot.com] has joined ##stm32 2011-11-13T15:37:11 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has joined ##stm32 2011-11-13T15:44:42 -!- Netsplit *.net <-> *.split quits: district, Eartaker, mansfeld, karlp, erik-k, BadDwarf, csamuelson, Laurenceb, happylife, @ChanServ --- Log closed Sun Nov 13 15:44:57 2011 --- Log opened Sun Nov 13 15:45:03 2011 2011-11-13T15:45:03 -!- jpa- [jpa@xob.kapsi.fi] has joined ##stm32 2011-11-13T15:45:03 -!- Irssi: ##stm32: Total of 12 nicks [0 ops, 0 halfops, 0 voices, 12 normal] 2011-11-13T15:45:35 -!- Irssi: Join to ##stm32 was synced in 36 secs 2011-11-13T15:47:53 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-13T15:47:53 -!- BadDwarf [~BadDwharf@02797120.bb.sky.com] has joined ##stm32 2011-11-13T15:47:53 -!- ChanServ [ChanServ@services.] has joined ##stm32 2011-11-13T15:47:53 -!- happylife [~happylife@212.92.145.7] has joined ##stm32 2011-11-13T15:47:53 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has joined ##stm32 2011-11-13T15:47:53 -!- district [district@2607:f2f8:20c0::69] has joined ##stm32 2011-11-13T15:47:53 -!- karlp [~karl@palmtree.beeroclock.net] has joined ##stm32 2011-11-13T15:47:53 -!- erik-k [~erik-k@71-34-249-33.eugn.qwest.net] has joined ##stm32 2011-11-13T15:47:53 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has joined ##stm32 2011-11-13T15:47:53 -!- mansfeld [~andrew@robopoly/watson] has joined ##stm32 2011-11-13T15:47:53 -!- ServerMode/##stm32 [+o ChanServ] by gibson.freenode.net 2011-11-13T15:49:12 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 245 seconds] 2011-11-13T16:00:45 < jpa-> noooooooooooo 2011-11-13T16:00:47 < jpa-> my ops! 2011-11-13T16:09:46 < BadDwarf> jpa-: aye.. I could do the subtraction.. trying everything I can to save cycles here.. if the timer can reset itself that might shave a little more off.. 2011-11-13T16:11:26 < BadDwarf> trying to read the mfm pulse stream coming from a (low density) floppy drive.. avg pulse widths should be 4us, 6us, and 8us.. but the disks are OLD, and the data is kinda blurry.. so the 4 can sometimes be anywhere from 3 to 5.. which makes guessing if its a 4 or a 6 a bit hard.. 2011-11-13T16:12:34 < BadDwarf> so the more I can get from timers & dma, the more time I have to do analysis on the data before I run out of ram.. (or alternatively, the more time I have to flush the data to external storage.. ) .. 1 track is up to 56k pulses.. which is a struggle on a 20k ram device 2011-11-13T16:42:09 < jpa-> use dma 2011-11-13T16:49:51 -!- Xamusk [~X@186.221.10.157] has joined ##stm32 2011-11-13T17:02:50 < BadDwarf> I'm using dma for some.. open to suggestions for the rest.. so far I've got the dma request handling moving the captured timer val into my array.. (now with the value resetting after each cap too).. 2011-11-13T17:03:24 < jpa-> yeah, well, that's about it :P 2011-11-13T17:03:29 < BadDwarf> I'm just playing with an sdcard on SPI, will play with dma to see if I can write a decent block from my array straight to it 2011-11-13T17:04:22 < BadDwarf> suspect the write speed of the card may end up being the limiting factor.. hopefully it'll delay less when writing a bunch from my array, than I need to fill the next bunch ;p 2011-11-13T17:21:55 < BadDwarf> well.. I can write 16k out.. in umm.. 1.1 seconds.. ouch.. I think I have about 16ms to achieve that =) 2011-11-13T17:40:58 * BadDwarf wonders if spamming data into a FM25256 might be quicker 2011-11-13T17:44:12 < Xamusk> BadDwarf, the FatFs library supports some DMA usage 2011-11-13T17:44:47 < BadDwarf> I might have a look.. I'm trapped in maple api land tho, so would likely end up rewriting 2011-11-13T17:45:42 < jpa-> multiple block writing to SD cards is faster 2011-11-13T17:50:49 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2011-11-13T17:51:28 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-13T17:54:41 < Xamusk> by the way, does anyone know of a good time64_t library with millisecond support? 2011-11-13T17:55:23 < Tom_itx> still lookin ehh? 2011-11-13T17:56:05 < Xamusk> yeah 2011-11-13T17:56:28 < Xamusk> I got something with c++0xŽs chrono lib, but I found some weird bugs 2011-11-13T17:56:52 < Xamusk> and I still would have to see how to handle it in an OS-less environment 2011-11-13T17:57:57 < Xamusk> and everything I found pointed to using time_t to make a string representation, but time_t is 32-bit 2011-11-13T17:59:08 < Xamusk> I even though about hacking into the stdlib, but that would be a lot of trouble 2011-11-13T18:00:01 < Xamusk> specially since I need to pass this info to a PC 2011-11-13T20:53:17 < Xamusk> ok... I think I got some middle ground 2011-11-13T20:57:14 < Xamusk> now I can stop running in circles for the last two days 2011-11-13T21:09:03 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-13T21:10:45 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-13T21:46:29 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-13T21:46:32 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-13T23:12:30 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-13T23:13:22 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-13T23:14:32 -!- csamuelson is now known as Rious 2011-11-13T23:15:35 -!- BadDwarf [~BadDwharf@02797120.bb.sky.com] has quit [Ping timeout: 276 seconds] 2011-11-13T23:56:34 -!- vpopov [~happylife@46.251.84.160] has quit [Read error: Operation timed out] --- Day changed Mon Nov 14 2011 2011-11-14T00:36:10 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2011-11-14T00:53:39 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-14T00:55:22 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-14T00:59:42 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-14T01:00:00 -!- phantone is now known as phantoxe 2011-11-14T01:09:42 < Thorn> stm32f4 chip available in farnell, 11.95...18.66 euro for single chip 2011-11-14T01:10:17 < Thorn> *chips (6 of them in lqfp) 2011-11-14T01:11:17 < Thorn> 50 of each in stock 2011-11-14T01:13:29 < Laurenceb_> RS have had them for a while 2011-11-14T01:14:12 < Laurenceb_> oh wow way cheaper 2011-11-14T01:15:14 < Tom_itx> what's the full number? 2011-11-14T01:15:21 < Tom_itx> mouser has plenty it appears 2011-11-14T01:15:56 < Tom_itx> 407? 2011-11-14T01:16:13 < Thorn> 405, 407, 415, 417 2011-11-14T01:16:21 < Tom_itx> gh gt? 2011-11-14T01:16:32 < Tom_itx> igh vgt igt 2011-11-14T01:16:33 < Tom_itx> ? 2011-11-14T01:16:40 < Tom_itx> rgt 2011-11-14T01:17:15 < Thorn> biggest one is 417IGT 2011-11-14T01:17:25 < Laurenceb_> heh that owns atmage 2011-11-14T01:17:28 < Tom_itx> http://www.mouser.com/ProductDetail/STMicroelectronics/STM32F407ZGT6/?qs=sGAEpiMZZMv%2fbGM7XKYHK7QfohTALIZU 2011-11-14T01:17:41 < karlp> 32bit is not the future, it's already here 2011-11-14T01:17:50 < Laurenceb_> http://uk.farnell.com/atmel/atmega2561-16au/8bit-mcu-256k-flash-5v-smd-2561/dp/1288332 2011-11-14T01:17:52 < Laurenceb_> fail 2011-11-14T01:20:15 < karlp> what's the difference between the 2560 and the 2561? 2011-11-14T01:20:36 < karlp> oh, ther eit is 2011-11-14T01:20:43 < karlp> less uarts, less adcs, less pwm channels 2011-11-14T01:20:55 < Tom_itx> probably there but not wired 2011-11-14T01:21:47 < Thorn> table 4 for in this document is really funny http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/ERRATA_SHEET/CD00197763.pdf 2011-11-14T01:22:25 < Thorn> out of 2.5 pages of bugs, 2 are fixed in rev. Y 2011-11-14T01:22:27 < karlp> speaking of weird silicon issues, does anyone here have much experience with teh F2s? they don't seem to have flash size register?! 2011-11-14T01:24:06 < karlp> hehe, that is funny 2011-11-14T01:24:33 < Thorn> btw in the stm32f4 errata, only a wrong IDCODE is marked as "will be fixed in the next revision" 2011-11-14T01:24:58 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32 2011-11-14T01:25:17 < Thorn> and while it's twice as short as the one I linked to, it was only released in September 2011-11-14T01:39:31 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-14T01:40:55 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-14T01:48:16 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has quit [Ping timeout: 240 seconds] 2011-11-14T02:45:39 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has quit [Quit: OOOOOO Whats that....] 2011-11-14T02:53:09 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has joined ##stm32 2011-11-14T03:05:50 -!- Ear [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has joined ##stm32 2011-11-14T03:09:11 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has quit [Ping timeout: 252 seconds] 2011-11-14T03:11:10 -!- Ear [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has quit [Quit: OOOOOO Whats that....] 2011-11-14T03:11:27 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has joined ##stm32 2011-11-14T03:33:28 < karlp> heh, fun continues. I fixed writing flash in my private branch, but now seem to have somehow borken support for the v1 hardware. 2011-11-14T03:33:31 * karlp chuckles 2011-11-14T03:55:43 < karlp> ah no, I just broke gdbserver 2011-11-14T04:03:08 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-14T04:03:57 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-14T04:13:48 -!- csamuelson is now known as Rious 2011-11-14T05:20:30 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2011-11-14T06:18:16 < karlp> jpa-: could you give this branch a bit of a play please? https://github.com/karlp/stlink/tree/libwork2 2011-11-14T06:18:51 < karlp> I don't want to break the master yet. If you have a working flashable file for a 32L board, that would be great 2011-11-14T06:19:18 < karlp> I've got to spend some time getting some 32L demos working for myself now, to make sure things work on those boards too. 2011-11-14T06:19:34 < karlp> the flash programming pieces are still a bit to rigid and make bad assumptions :( 2011-11-14T06:19:48 < karlp> also, man, I should have been in bed hours and hours ago :( 2011-11-14T06:22:52 < karlp> Rious: have you got working F4 flashing with your github top of tree? 2011-11-14T06:23:35 < Rious> karlp: yes, I just pulled in the latest from texans and jnosky 2011-11-14T06:23:51 < karlp> ok, because some of their changes broke the VL code 2011-11-14T06:23:56 < karlp> so I'v ebeen avoiding merging it 2011-11-14T06:23:58 < Rious> I tried it with Lion and Ubuntu 2011-11-14T06:24:17 < karlp> jnosky's code has some really really messy commits that makes it a bit hard to see what bits to try and pull in. 2011-11-14T06:24:50 < karlp> are you using gdb-server to load an elf? or the command line flash tool? 2011-11-14T06:24:53 < Rious> I hadn't looked through the code but I did notice that the change counts were large 2011-11-14T06:25:21 < karlp> I want to make sure f4 works, but I don't have one here yet :) 2011-11-14T06:25:36 < Rious> on Lion gdb worked fine to load flash, on Ubuntu, gdb would look like it worked, but it wouldn't have written to flash 2011-11-14T06:25:54 < karlp> hmm, interesting. 2011-11-14T06:25:54 < Rious> the flash util worked on both Lion and Ubuntu 2011-11-14T06:26:01 < karlp> do you have any other boards? or just the F4? 2011-11-14T06:26:18 < Rious> just the F4, I've got an extra one if you're interested 2011-11-14T06:27:48 < karlp> I am, but now that they're back in stock most places, I'll probably just get one with the next order at work. 2011-11-14T06:28:54 < karlp> well, I'm going to try and update my examples and bits to work on the 32L board this week, then try and browse jnosky's bits and pieces and try and pull in the minimum 2011-11-14T06:29:00 < karlp> but bed calls! 2011-11-14T06:29:01 < karlp> ttyl 2011-11-14T06:29:54 < Rious> ttyl 2011-11-14T07:09:15 -!- BadDwarf [~BadDwharf@02797120.bb.sky.com] has joined ##stm32 2011-11-14T07:17:35 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has quit [Quit: OOOOOO Whats that....] 2011-11-14T07:18:02 -!- Eartaker [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has joined ##stm32 2011-11-14T07:18:02 -!- Eartaker [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has quit [Changing host] 2011-11-14T07:18:02 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has joined ##stm32 2011-11-14T08:01:48 -!- BadDwarf [~BadDwharf@02797120.bb.sky.com] has quit [Ping timeout: 240 seconds] 2011-11-14T08:56:49 < jpa-> karlp: works fine, tested using the stlink1 on VL discovery, programmed both the stm32f100 on vl discovery and my own board fine 2011-11-14T09:24:52 -!- BadDwarf [~BadDwharf@02797120.bb.sky.com] has joined ##stm32 2011-11-14T13:21:15 < karlp> excellent, thanks. 2011-11-14T13:21:47 < karlp> should be faster to start up too. though probably not much faster to program 2011-11-14T13:45:00 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Ping timeout: 240 seconds] 2011-11-14T13:46:20 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32 2011-11-14T13:48:52 -!- dekar [~dekar@95.143.165.210] has joined ##stm32 2011-11-14T13:49:16 < dekar> soo many people O.o 2011-11-14T13:49:46 < dekar> zlog, free Z80? 2011-11-14T13:49:46 < zlog> dekar: Log stored at http://tom-itx.dyndns.org:81/~tom-itx/irc/logs/%23%23stm32/2011-11-14.html 2011-11-14T13:51:07 < dekar> is there some non volatile memory on the stm32 which I could use to store 2 bits? 2011-11-14T13:51:25 < dekar> I could use the flash ofc, but it seems to be overkill given that I have to delete whole pages etc 2011-11-14T13:51:38 < karlp> the option bytes have 2 bytes for user data 2011-11-14T13:53:36 < dekar> those to set flash permissions? I don't know whether I want to abuse them :/ 2011-11-14T13:54:44 < karlp> reread the docs :) there's two bytes explicitly labelled for user NV storage :) 2011-11-14T13:55:00 < karlp> also, there's some docs on eeprom emulation, which might do what you want 2011-11-14T13:56:18 < dekar> Ah I feel like I want to use those bytes then :) 2011-11-14T14:19:59 < dekar> Those are unaligned bits? -.-" 2011-11-14T14:20:04 < dekar> c'mon st 2011-11-14T14:25:23 < dekar> karlp, I'll use the flash, got that working already. Thanks nonetheless 2011-11-14T14:26:29 < grummund> dekar: there is "backup ram" area which maintains storage even in shutdown, if that helps. 2011-11-14T14:26:36 < grummund> 10 bytes iirc 2011-11-14T14:53:22 < Laurenceb> you can write to flash too 2011-11-14T14:53:34 < Laurenceb> but its not eeprom - the writes are more limited 2011-11-14T15:23:54 < karlp> Rious: how slow is it to program the F4 baord with the current stlink? 2011-11-14T15:24:36 < karlp> it sends 32bits at a time through the debugger, whilethe F1 and L1 flashing uses an sram loader, 2011-11-14T15:24:48 < karlp> I'm wondering how much of a different it really makes 2011-11-14T15:30:41 < jpa-> karlp: not sure about startup, but programming is not any faster 2011-11-14T15:30:55 < jpa-> though it gives more debug info if not using -v0 :D 2011-11-14T15:31:38 < karlp> oh, mor ein some places, less in others. you're on the top of the libwork2 branch right? 2011-11-14T15:31:48 < karlp> that should be a lot less output by default, with no -v flags 2011-11-14T15:32:32 < karlp> jpa-: probably only the first startup is faster. it doesn't have the wait a second, disconnect, wait five seconds, reconnect that used to be needed when it was still mass storage 2011-11-14T15:32:40 < jpa-> oh 2011-11-14T15:33:18 < jpa-> with no -v switches, i'm now getting a lot of this: http://paste.dy.fi/3au/plain 2011-11-14T15:33:31 < karlp> well, yeah :) 2011-11-14T15:33:44 < karlp> that's better than hundreds of pages of readmem32 writemem32 2011-11-14T15:34:10 < karlp> you think that's stilltoo noisy? 2011-11-14T15:34:28 < Laurenceb> is f4 working yet? 2011-11-14T15:34:45 < karlp> yeah, Rious and jnosky and co have it working with texane top of tree 2011-11-14T15:34:51 < karlp> but they broke VL 2011-11-14T15:34:58 < jpa-> hmm.. well i guess i've always had -v0 before then :D 2011-11-14T15:34:58 < karlp> I'm in the process of putting the two together again. 2011-11-14T15:35:10 < karlp> jpa-: :) 2011-11-14T15:35:10 < Laurenceb> cool 2011-11-14T15:35:27 < Laurenceb> karlp: texane doesnt work on my stm32f103 board 2011-11-14T15:35:31 < karlp> A lot of the stuff in current texane top of tree is a bit kludged together, 2011-11-14T15:35:33 < Laurenceb> your code works fine tho 2011-11-14T15:35:45 < karlp> yeah, as best I can tell, the hacks that got merged in for F4 totally broke F1, 2011-11-14T15:35:51 < Laurenceb> lol 2011-11-14T15:35:51 < karlp> and probably broke L1 as well. 2011-11-14T15:36:03 < karlp> good news, they do actually work for F4 :) 2011-11-14T15:36:18 < karlp> two halfs make a whole eventually 2011-11-14T15:36:20 < Laurenceb> heh 2011-11-14T15:38:40 < karlp> hmm, I should be doing my day job, but they FORGOT TO RESTOCK THE COFFEE 2011-11-14T15:38:50 < karlp> how am I expected to work on monday without coffee? 2011-11-14T15:39:38 < jpa-> your job is to restock the coffee 2011-11-14T15:39:59 * karlp grins 2011-11-14T15:40:09 < BrainDamage> wire a stm32 to the pantry so it checks leftover levels, and automatically orders more 2011-11-14T15:41:04 < jpa-> wire a stm32 to your brain so that it stimulates the same areas as coffee 2011-11-14T15:41:29 < jpa-> then hope that you don't have too many brain cells for 2 DAC channels to interface 2011-11-14T15:43:36 < Rious> karlp: it takes a bit, I'll time it with the discovery demo 2011-11-14T15:44:03 < Rious> I also got gdb writing to work, I just needed to update my toolchain 2011-11-14T15:47:41 < karlp> I have some doubts that the gdb writing is as solid as it should be. as best I can tell, gdb asks st-util to write each section separately. 2011-11-14T15:47:47 < karlp> and teh tool erases the pages necessary 2011-11-14T15:48:00 < Laurenceb> hehe theres a load of prisoners cleaning my street 2011-11-14T15:48:04 < karlp> so for adjoining sections, in the same page, I have my doubts that it works properly. 2011-11-14T15:48:09 < Laurenceb> crazy 2011-11-14T15:48:15 < karlp> but that can be dealt with later. :) 2011-11-14T15:48:21 < jpa-> eek :D 2011-11-14T15:48:36 < karlp> the flash tool from the command line just writes it as one big block 2011-11-14T15:48:40 < Laurenceb> david cameron comes up with some crazy stuff 2011-11-14T15:49:16 < Laurenceb> if they gave them some decent tools they'd be able to do some work 2011-11-14T15:49:37 < Laurenceb> but i guess thats not the point - guess im supposed to get rotten fruit now 2011-11-14T15:55:59 < Rious> karlp: That sounds right, it writes at 920 bytes/sec for me, and definitely breaks the write into sections 2011-11-14T15:58:15 < Rious> The flash util seems to take just as long and also write in sections 2011-11-14T15:58:28 < Laurenceb> 1KB here 2011-11-14T15:58:46 < Laurenceb> a bit slow :( 2011-11-14T15:58:59 < Laurenceb> serial loader is several times faster 2011-11-14T16:04:14 -!- dekar [~dekar@95.143.165.210] has quit [Quit: dekar] 2011-11-14T16:05:47 < karlp> flash util should write one binary, it doesn't break up the sections from the elf like gdb seems to, is what i mean at least. 2011-11-14T16:06:51 < Rious> understood, that seems to be true, just breaks up flash sections 2011-11-14T16:07:01 < jpa-> i should check if it actually writes wrong currently 2011-11-14T16:07:12 < jpa-> but my dev board is 3 meters away 2011-11-14T16:07:27 < karlp> jpa-: only via gdb, flash from the command line just writes the binary to the address. 2011-11-14T16:07:44 < jpa-> i don't use your flash from command line, i use gdb :) 2011-11-14T16:07:48 < karlp> :) 2011-11-14T16:07:54 < karlp> because gdb lets you debug! 2011-11-14T16:08:04 < karlp> otherwise you mighta s well use the serial bootloader 2011-11-14T16:08:15 < jpa-> indeed 2011-11-14T16:09:06 < karlp> at least for now, it should be possible to make it much faster 2011-11-14T16:09:19 < karlp> but, reliability first 2011-11-14T16:09:54 < jpa-> no, speed first! 2011-11-14T16:10:12 < jpa-> i don't care if i have to debug programmer bugs for 2 weeks, as long as it happens fast! ,) 2011-11-14T16:15:58 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-14T16:17:23 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-14T16:27:07 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Remote host closed the connection] 2011-11-14T16:29:50 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32 2011-11-14T16:34:34 < jpa-> karlp: surprisingly, even though it writes in parts, the results in flash are correct 2011-11-14T16:34:42 < jpa-> assuming this is not magically a block boundary: Loading section .data, size 0x18 lma 0x80060ec 2011-11-14T16:46:22 -!- csamuelson is now known as Rioius 2011-11-14T16:46:25 -!- Rioius is now known as Rious 2011-11-14T17:11:16 < karlp> jpa-: thanks for testing that. 2011-11-14T17:11:54 < karlp> I was afraid that the page erase before each write would trample a previously written block. 2011-11-14T17:12:09 < jpa-> yeah, i would have expected so also 2011-11-14T17:12:34 < karlp> which, probably actually means that somethign else is wrong :) 2011-11-14T17:58:48 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-14T17:59:58 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-14T18:06:26 < Laurenceb> go can init a port with a mask of multiple bits right? 2011-11-14T18:06:40 < Laurenceb> and only the selected pins will be initialised? 2011-11-14T18:07:31 < jpa-> go? 2011-11-14T18:11:38 < Laurenceb> nvm 2011-11-14T18:11:54 < Laurenceb> gpio is powered down in standby :( 2011-11-14T18:28:39 < jpa-> how long do i have to wait after enabling a bit in APB2ENR until I can access the peripheral? 2011-11-14T18:33:14 -!- Xamusk [~X@186.221.10.157] has quit [Ping timeout: 252 seconds] 2011-11-14T18:38:28 < Laurenceb> what the hell 2011-11-14T18:38:40 < Laurenceb> im running my stm32 on 3v and nrst is at 0.5v 2011-11-14T18:38:55 < Laurenceb> is the brownout detector running by default? 2011-11-14T18:57:39 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-14T18:58:27 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-14T19:20:58 -!- Xamusk [~X@186.221.10.157] has joined ##stm32 2011-11-14T20:19:21 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-14T20:19:23 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-14T20:40:56 -!- dekar [~dekar@drms-4d014418.pool.mediaWays.net] has joined ##stm32 2011-11-14T21:11:42 -!- zlog [~zlog@ip68-102-110-69.ks.ok.cox.net] has quit [Ping timeout: 245 seconds] 2011-11-14T21:12:47 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 248 seconds] 2011-11-14T21:15:34 -!- zlog [~zlog@ip68-102-110-69.ks.ok.cox.net] has joined ##stm32 2011-11-14T21:38:29 <+Steffanx> He, dekar is back alive 2011-11-14T21:49:58 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has joined ##stm32 2011-11-14T22:02:01 -!- csamuelson is now known as Rious 2011-11-14T22:14:06 < Laurenceb_> anyone here used standby mode? 2011-11-14T22:14:16 < Laurenceb_> im seeing really weird behaviour 2011-11-14T23:09:29 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-14T23:43:09 < Laurenceb_> http://rowley.zendesk.com/entries/20571611-stm32f-standby-jtag-problem 2011-11-14T23:43:10 < Laurenceb_> rage 2011-11-14T23:43:14 < Laurenceb_> thats my issue 2011-11-14T23:57:27 < karlp> ouch, that sounds ugly 2011-11-14T23:57:28 -!- BadDwarf [~BadDwharf@02797120.bb.sky.com] has quit [Ping timeout: 240 seconds] --- Day changed Tue Nov 15 2011 2011-11-15T00:01:07 <+Steffanx> I only had some problems with swd and the standby mode Laurenceb 2011-11-15T00:01:18 <+Steffanx> So I didn't use it :) 2011-11-15T00:34:10 < Laurenceb_> it might be that have a pull up not a pull down on the WKUP pin 2011-11-15T00:34:32 < Laurenceb_> that woulds explain why i boots up if i increase VDD from 3 to 3.3v 2011-11-15T00:34:35 < Laurenceb_> *it 2011-11-15T00:35:00 < Laurenceb_> but i still cant explain why the stm32 is effectively dead after a power on reset 2011-11-15T00:35:21 < Laurenceb_> i have to cycle VDD from 3.3v to 3v then 3.3v to make it work 2011-11-15T00:35:44 < Laurenceb_> and theres a weird oscillating signal from 500mv to 1.2v on the WKUP pin 2011-11-15T00:36:02 < Laurenceb_> JTAG is nonresponsive when it goes into "weird mode" 2011-11-15T00:36:07 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2011-11-15T00:36:48 < Laurenceb_> i can get it running correctly sometimes, and it goes it standby correctly then 2011-11-15T00:40:31 < Laurenceb_> thing i really cant get me head around - pressing reset button doesnt do anything 2011-11-15T00:40:37 < Laurenceb_> processor is still dead 2011-11-15T00:41:45 < Laurenceb_> http://i.imgur.com/1fc9o.png 2011-11-15T00:42:02 < Laurenceb_> thats my schematic - theres been a few hacks since then XD 2011-11-15T00:46:16 < Laurenceb_> uses two power supply sources - 3.3v smps or 3v ldo 2011-11-15T00:56:32 -!- Wiza69 [~foo@c-68-39-251-30.hsd1.nj.comcast.net] has joined ##stm32 2011-11-15T00:56:58 < Wiza69> Heya Karlp 2011-11-15T00:57:04 < Wiza69> Im jnosky 2011-11-15T00:57:39 -!- Wiza69 [~foo@c-68-39-251-30.hsd1.nj.comcast.net] has quit [Client Quit] 2011-11-15T00:58:20 < karlp> he 2011-11-15T00:58:22 < karlp> too late 2011-11-15T00:58:24 < karlp> doh 2011-11-15T01:00:04 -!- jnosky [~foo@c-68-39-251-30.hsd1.nj.comcast.net] has joined ##stm32 2011-11-15T01:00:08 < karlp> hello again 2011-11-15T01:00:14 < karlp> sorry, I just missed you :) 2011-11-15T01:00:45 < jnosky> Ahh had a bit of trubls 2011-11-15T01:01:15 < jnosky> So I tried to be careful to leave the other boards alone when I added F4 support 2011-11-15T01:01:22 < karlp> yeah, I don't think it was you per se. 2011-11-15T01:01:39 < karlp> texane merged a bunch of stuff, and it got broken. 2011-11-15T01:01:40 < jnosky> Mostly I just left the old code as is and made mine conditional on the chipid 2011-11-15T01:01:59 < jnosky> The old code was using coreid 2011-11-15T01:02:01 < karlp> yeah, I've spent a bit of time the last couple of days going over it, and I think I've seen all the bits youadded now, 2011-11-15T01:02:07 < karlp> yeah, coreid was never going to be very portable 2011-11-15T01:02:21 < jnosky> But the f4 and the l are both the same coreid 2011-11-15T01:02:40 < karlp> the way the gdbserver was using the chip ids, was right, but it needed to be pulled into the core library, not only in the gdb server stuff 2011-11-15T01:02:56 < jnosky> I didnt know all the other chipids, so i left those as coreid still 2011-11-15T01:03:13 < jnosky> The mentality being dont touch the others "working" stuff 2011-11-15T01:03:16 < karlp> yeah, I'm trying to put together a list of what's actually been tested with what :) 2011-11-15T01:03:51 < jnosky> The common code really ought to have some function to get all the flash params 2011-11-15T01:04:00 < jnosky> The flash utility is using #defines 2011-11-15T01:04:08 < jnosky> and the server uses the xml 2011-11-15T01:04:23 < karlp> yeah, that's what I've nearly finished in my branch 2011-11-15T01:04:29 < karlp> just not with all your tweaks for the F4 yet. 2011-11-15T01:04:50 < karlp> I've nto asked texane to merge it yet, because I know people are using it as is for the F4 2011-11-15T01:05:24 < jnosky> All I did really was add a chipid to sl 2011-11-15T01:05:33 < jnosky> and made a bunch of code conditional on that 2011-11-15T01:05:54 < karlp> things like is_flash_locked, that have if/elses for chipids, I'd rather see those parameters added to the chip_params, so each utility method can just use the right params pulle out of the chip params struct 2011-11-15T01:06:08 < jnosky> All I have is the f4, thats what prompted me to fix all that 2011-11-15T01:06:15 < karlp> good good. 2011-11-15T01:06:24 < karlp> I only have the 32VL and 32L boards :) 2011-11-15T01:06:46 < karlp> we'll get it worked out, I just wanted you to have a look a twhat was going on for the other boards in the background :) 2011-11-15T01:07:06 < karlp> I know that the F4's sector programming was never going to be quite the same 2011-11-15T01:07:21 < karlp> there's still plenty of tidying up to do, and testing with more targets yet. 2011-11-15T01:07:41 < jnosky> OK well im pretty well satisfied so far in how it all works for the f4 functional wise 2011-11-15T01:07:46 < karlp> excellent. 2011-11-15T01:07:51 < jnosky> Ive tested the full range of flash space 2011-11-15T01:07:59 < karlp> loading elfs to sram and flash are all good, debugging? 2011-11-15T01:08:07 < karlp> breakpoints and all that? 2011-11-15T01:08:20 < jnosky> and created a big elf to test the gdbservers ability to load it 2011-11-15T01:09:01 < karlp> you're on windows right? 2011-11-15T01:09:10 < jnosky> (not that I have a big ass project file, i just did a .incbin to the startup code ;) 2011-11-15T01:09:34 < jnosky> I like to use eclipse for all my cross dev stuff 2011-11-15T01:09:54 < jnosky> So I get the full src debugging experience with the st-util 2011-11-15T01:09:55 < karlp> you're just using this demo? https://github.com/texane/stlink/tree/master/example/stm32f4/Projects/discovery_demo 2011-11-15T01:10:41 < jnosky> mainly ive been playing with IO_Toggle to get my environment all set up 2011-11-15T01:11:01 < jnosky> But I did manage to get the make file made for the discovery demo 2011-11-15T01:11:07 < jnosky> and gdb loaded it 2011-11-15T01:11:20 < karlp> ok. sweet. 2011-11-15T01:11:24 < jnosky> It seems to work, but im waiting for my usb otg cable 2011-11-15T01:11:34 < jnosky> The lights flash like they should 2011-11-15T01:11:43 < jnosky> and the mems seems to work, so I assume its all good 2011-11-15T01:11:57 < karlp> I'm hoping to get an F4 here in the next few weeks, but I'm going to try and mergeyour code into mine first. 2011-11-15T01:12:09 < karlp> it sounds like you don't have many other things left to do for F4 support now? 2011-11-15T01:12:17 < jnosky> That make file was a motherfucker 2011-11-15T01:12:26 < jnosky> You cant find them in the stm stuff 2011-11-15T01:12:34 < jnosky> They want you to use the big 3 2011-11-15T01:12:39 < karlp> yeah, tell me about it. 2011-11-15T01:12:50 < karlp> I'm struggling with startup files for the 32L board 2011-11-15T01:13:07 < karlp> have you been using other STM32 chips before this? 2011-11-15T01:13:41 < jnosky> No, ive used the LPC2148 2011-11-15T01:14:28 < jnosky> I got those startup files from the big 3 releases 2011-11-15T01:14:40 < jnosky> Than I just hadda figure out how to make the make 2011-11-15T01:14:55 < jnosky> I *think* I got it right ;) 2011-11-15T01:15:03 < karlp> does anyone here have any good open source startup files for any of these platforms? 2011-11-15T01:15:17 < karlp> how's the F4 after using the arm7tdmi? 2011-11-15T01:15:44 < jnosky> Well its a lot different thats fer sure ;) 2011-11-15T01:15:56 < jnosky> Damn this chip has peripherals up the ass 2011-11-15T01:16:19 < jnosky> I read "world fastest uC" 2011-11-15T01:16:24 < jnosky> That got me interested ;) 2011-11-15T01:17:16 < jnosky> I think the attolic is what I used for startups 2011-11-15T01:17:59 < jnosky> The biggest issue was this variable page thing business 2011-11-15T01:18:07 < jnosky> It didnt fit well into the existing code 2011-11-15T01:18:53 < karlp> yeah, it's what, 4 pages of 16k, one of 64, and the rest 128k or somethign silly? 2011-11-15T01:18:59 < jnosky> lol yup 2011-11-15T01:19:01 < karlp> it is however, almost identical to the F2, 2011-11-15T01:19:17 < karlp> hwoever, there's no F2 discovery board, and no-one has ever mentioned using this with an F2 2011-11-15T01:19:25 < karlp> so... it never got worked on :) 2011-11-15T01:19:37 < karlp> it's been influx a lot recently. 2011-11-15T01:19:48 < jnosky> Whats an L vs VL -> f# wise? 2011-11-15T01:19:57 < karlp> we'd just started to get it working with the stlinkv2 hardware, when the F4 got announced 2011-11-15T01:20:01 < karlp> and a lot of stuff went up in the air 2011-11-15T01:20:01 < jnosky> Thats confusing as hell 2011-11-15T01:20:06 < karlp> VL is f100 2011-11-15T01:20:13 < karlp> L is the energylite, 2011-11-15T01:20:18 < karlp> it's like somewhere between an F1 and an F2, 2011-11-15T01:20:26 < karlp> with a different flash programming manual 2011-11-15T01:21:01 < jnosky> Yet the L has same chip id as the f4 2011-11-15T01:21:09 < karlp> well, F4 has a broken chip id :) 2011-11-15T01:21:41 < jnosky> Yea and heres another gem I found 2011-11-15T01:21:44 < jnosky> https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/DispForm.aspx?ID=19227 2011-11-15T01:22:03 < jnosky> I couldnt understand why i couldnt get the flash size right 2011-11-15T01:22:23 < karlp> yycuk, that's not on the errata sheet 2011-11-15T01:22:23 < jnosky> I finally found it in rm90 2011-11-15T01:22:32 < jnosky> The xml was right! 2011-11-15T01:22:41 < jnosky> I thought the reg was wrong 2011-11-15T01:23:00 < jnosky> So I have no idea where it really is still 2011-11-15T01:23:36 < jnosky> So I had to harcode that in the server 2011-11-15T01:24:12 < jnosky> So does your device work with whats on texane right now? 2011-11-15T01:24:19 < karlp> no, not at all. 2011-11-15T01:24:25 < karlp> current texane top of tree works for F4 only, 2011-11-15T01:24:34 < karlp> might work for L1 and F2, but no information 2011-11-15T01:24:39 < jnosky> Did it work before I stepped on all that code? 2011-11-15T01:24:50 < karlp> I have an L1 board, but I don't have any decent code that I can verify it works with yet 2011-11-15T01:24:57 < karlp> not sure. 2011-11-15T01:25:18 < karlp> I was in the process of ripping out the old nasty scsi pass through stuff that didnt work on macOS and windows, 2011-11-15T01:25:18 < jnosky> You have what hw again? 2011-11-15T01:25:26 < karlp> at about the same time as the F4 stuff started landing 2011-11-15T01:25:32 < karlp> so mine's not even really compatible anymore 2011-11-15T01:25:42 < jnosky> got mine for free :) 2011-11-15T01:25:47 < karlp> I have a VL discovery board, (F1) and a 32L discovery board (L1) 2011-11-15T01:25:51 < karlp> yeah, you and everyone else 2011-11-15T01:25:59 < karlp> I don't live in north america :) 2011-11-15T01:26:26 < karlp> I'm just trying to work out the best way to whip git to leave you name on all these commits :) 2011-11-15T01:26:47 < karlp> but they've diverged a fair bit, I wasn't expecting so much more work to come in :) 2011-11-15T01:28:12 < jnosky> Im very very new to github 2011-11-15T01:28:33 < jnosky> My first pull request was a reall mess for texane, but he needed my code in there, so he stuck it out 2011-11-15T01:28:38 < karlp> yeah, i saw 2011-11-15T01:28:56 < karlp> I was, umm, ignoring it for a while, and hoping it would all get better :) 2011-11-15T01:29:09 < jnosky> After the merge I started over, and recloned from him 2011-11-15T01:29:20 < jnosky> Last few commits I think went fine 2011-11-15T01:29:22 < karlp> yeah, your recent ones are whole lot eastier to follow 2011-11-15T01:29:44 < jnosky> Well there was soo much todo to get all the f4 stuff in, I was all over the place 2011-11-15T01:29:51 < karlp> yeah, no problems 2011-11-15T01:29:53 < karlp> totally understand 2011-11-15T01:29:55 < jnosky> But the code is really not that big 2011-11-15T01:30:07 < jnosky> So I understand the whole thing pretty well now 2011-11-15T01:30:18 < karlp> no, the examples can be distracting at time, they're much bigger than the rest of the code 2011-11-15T01:30:21 < karlp> good good. 2011-11-15T01:30:23 < jnosky> If you like, when yours is working, I could pull it into mine 2011-11-15T01:30:30 < karlp> mine's working now. 2011-11-15T01:30:38 < karlp> you can pull the libwork2 branch in if you want, 2011-11-15T01:30:57 < karlp> or at least, have a play with it, 2011-11-15T01:31:14 < karlp> but that's what I'm doing right now, pulling your latest stuff in, and putting it together again. 2011-11-15T01:31:28 < karlp> well, right now I'm gossipping 2011-11-15T01:31:34 < karlp> but soon (tm) 2011-11-15T01:34:05 < jnosky> the gdbserver code shouldnt have hurt you 2011-11-15T01:34:09 < karlp> no, it was in the core. 2011-11-15T01:34:16 < jnosky> I basically just added the f4 template 2011-11-15T01:34:28 < jnosky> Im looking at it now 2011-11-15T01:34:40 < karlp> I think it was other stuff that texane was playing around with at the same time that just came in all together 2011-11-15T01:36:16 < jnosky> no, it was in the core. 2011-11-15T01:36:30 < jnosky> You mean common.c ? 2011-11-15T01:36:34 < karlp> yeah, 2011-11-15T01:37:23 < karlp> I think it was https://github.com/karlp/stlink/blob/libwork2/src/stlink-common.c#L1274 2011-11-15T01:37:31 < karlp> that had been changed to "step" instead of run for some reason. 2011-11-15T01:38:19 < jnosky> I put the chipid into the sl structure 2011-11-15T01:38:37 < karlp> yeah, I'd done that too 2011-11-15T01:38:52 < karlp> it's all good, it shouldn't be much for me to get this all in one palce again :) 2011-11-15T01:39:04 < jnosky> int stlink_load_device_params(stlink_t *sl) 2011-11-15T01:39:13 < jnosky> I like that one, its just was thinking 2011-11-15T01:39:21 < jnosky> what I was thinkin too 2011-11-15T01:39:23 < karlp> yeah, that's what I want to pull yoru stuff into 2011-11-15T01:39:29 < karlp> set up the flash reg params there 2011-11-15T01:39:36 < karlp> get it all out of each individual method 2011-11-15T01:39:52 < karlp> just read as much as we can when the device is opened in the first place 2011-11-15T01:40:04 < jnosky> The pagesize was the big cluster fuck about the whole thing 2011-11-15T01:40:23 < jnosky> All the other code assumed it never changed 2011-11-15T01:40:43 < jnosky> So what I did was just let it get filled like it used to be 2011-11-15T01:40:44 < karlp> which is why I desparately wanted to get it from gdb-server into the common code 2011-11-15T01:41:06 < jnosky> The stlink_claculate_pagesize 2011-11-15T01:41:12 < jnosky> is called here and there 2011-11-15T01:41:30 < jnosky> It returns the pre filled static number, unless its an f4 2011-11-15T01:42:06 < jnosky> So that sub, refills the sl-pagesize for f4 2011-11-15T01:42:15 < jnosky> or just leaves it alone if its not 2011-11-15T01:42:48 < jnosky> I dont know what to do about the xml in the server 2011-11-15T01:42:59 < jnosky> That was too far different from what I needed 2011-11-15T01:43:09 < karlp> unfortunately, that's what gdb needs apparently 2011-11-15T01:43:11 < karlp> so too bad 2011-11-15T01:43:17 < jnosky> It dont matter really tho 2011-11-15T01:43:29 < jnosky> The pc has tons of codespace 2011-11-15T01:43:31 < karlp> or at least, someone with far far more knowledge of gdb remote protocols needs to work on it. 2011-11-15T01:43:38 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-15T01:43:45 < jnosky> So a seperate xml, for the device was the least painful by far 2011-11-15T01:44:00 < jnosky> No i fixed it it worked 2011-11-15T01:44:04 < jnosky> I was shitting tho 2011-11-15T01:44:14 < jnosky> Cause I thought the gdb wasnt gonna like this 2011-11-15T01:44:26 < jnosky> multiple definations of flash 2011-11-15T01:45:03 < jnosky> So I simply tried making multiple block sizes based on the address 2011-11-15T01:45:09 < jnosky> and it worked! 2011-11-15T01:48:11 < jnosky> So these other hw versions flash by a loader in ram it seems? 2011-11-15T01:48:42 < karlp> yeah, not really sure if it's important or not though 2011-11-15T01:49:46 < karlp> might be able to increase performance that way. 2011-11-15T01:49:52 < karlp> might not make much difference. 2011-11-15T01:50:03 < karlp> leaving it as is until we have all of them working first 2011-11-15T01:51:26 < jnosky> Flashing is super slow 2011-11-15T01:51:45 < jnosky> There is a limit on how many 0 pits nay be burned per write 2011-11-15T01:52:10 < karlp> yeah, based on voltage 2011-11-15T01:52:11 < karlp> hooray 2011-11-15T01:52:22 < karlp> good luck being able to work that out from the programmer in software :( 2011-11-15T01:52:29 < jnosky> I suspect the usb is the cuplrit tho really 2011-11-15T01:52:47 < jnosky> Each 32 bit write I think is chewing up a packet 2011-11-15T01:52:58 < jnosky> And since usb is host controlled 2011-11-15T01:53:10 < jnosky> that happens prolly once per msec 2011-11-15T01:53:25 < karlp> currently, yes. 2011-11-15T01:53:41 < jnosky> Reading is way fast tho 2011-11-15T01:53:41 < karlp> a ram loader should get around that 2011-11-15T01:53:54 < karlp> yeah, the usb commands let us read/write more than one word at at ime 2011-11-15T01:53:58 < karlp> so it should get faster over time 2011-11-15T01:55:07 < jnosky> I had this problem on the lpc2148 too 2011-11-15T01:55:23 < jnosky> Not for the environemt setup, but a general thruput issue 2011-11-15T01:55:40 < jnosky> Making the packets as large as possible helped a great deal 2011-11-15T01:56:21 < jnosky> I didnt want to open that can of worms here tho :) 2011-11-15T01:56:32 < karlp> not yet :) 2011-11-15T01:56:39 < jnosky> I just wanted to be able to load and debug the demos in elcipse 2011-11-15T01:56:45 < jnosky> Im a sucker for an ide 2011-11-15T01:56:55 < jnosky> visual studio debugger is hard to beat 2011-11-15T01:57:05 < jnosky> eclipse comes as close as I can to that 2011-11-15T01:57:26 < jnosky> Clicking on a src line to set a break is really the key 2011-11-15T01:57:48 < jnosky> I use eclipse for ppc too 2011-11-15T01:58:08 < karlp> heh, I've never actually managed to get the demos to build. 2011-11-15T01:58:16 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has quit [Ping timeout: 240 seconds] 2011-11-15T01:58:33 < jnosky> Those demos are for specific devices 2011-11-15T01:58:41 < jnosky> Im not sure which ones 2011-11-15T01:58:52 < jnosky> But they arent even close for the f4 2011-11-15T01:58:55 < karlp> no, I mean, the demo code downloadable from ST, for the devices I have 2011-11-15T01:59:05 < karlp> I've not managed to get them compiled and flashed (yet) 2011-11-15T01:59:53 < jnosky> Ahh ic, the 2 i uploaded are from the st srcs 2011-11-15T02:00:09 < jnosky> They basically needed startup code and make files 2011-11-15T02:00:21 < karlp> yeah, and startup code is somethign I was sorely lacking 2011-11-15T02:00:45 < karlp> anyway, I'm going to hack for a bit, 2011-11-15T02:00:48 < jnosky> Werent there any .S files in the srcs they provide? 2011-11-15T02:01:05 < karlp> I'll probably send you some code later this week to try out, see how it goes. 2011-11-15T02:01:19 < jnosky> In the toolchain project templates I found em 2011-11-15T02:01:26 < jnosky> but no makes 2011-11-15T02:02:05 < jnosky> Sure ill be happy to test out some stuff 2011-11-15T02:02:16 < jnosky> I was starting to think I was the only one interested 2011-11-15T02:02:22 < karlp> oh no, plenty :) 2011-11-15T02:02:46 < karlp> csamuelson, who tweaked your patches to work on linux is here sometimes too, 2011-11-15T02:02:58 < karlp> and laurencb who just left has been using this a lot to. 2011-11-15T02:04:46 < jnosky> ahh well good, I was waiting for some feedback 2011-11-15T02:06:39 < phantoxe> hey 2011-11-15T02:06:47 < phantoxe> what are you talking about? 2011-11-15T02:08:10 < jnosky> I added f4 support to stlink 2011-11-15T02:09:23 < jnosky> talkin about the impact on other versions of the discovery boards, and how to merge it all 2011-11-15T02:12:44 -!- Xamuzk [~X@186.221.10.157] has joined ##stm32 2011-11-15T02:13:30 < Rious> jnosky: I am very interested in the stm32f4 discovery board working 2011-11-15T02:15:03 < jnosky> Rious texane merged my last commits today, it seems to be all working fine for me and my f4 2011-11-15T02:15:23 < jnosky> for <> f4 I just dont know, I dont have that hw 2011-11-15T02:15:32 < Rious> jnosky: I'm the one karlp referred to as csamuelson 2011-11-15T02:15:48 -!- Xamusk [~X@186.221.10.157] has quit [Ping timeout: 240 seconds] 2011-11-15T02:15:54 < Rious> are you developing on Mac or Win? 2011-11-15T02:15:57 < jnosky> ahh I saw you on texane :) 2011-11-15T02:16:38 < jnosky> Im slightly embarrassed to admit win ;) 2011-11-15T02:16:57 < Rious> yes, thank you for getting the stm32f4 flash stuff to work 2011-11-15T02:17:19 < Rious> I'll do what I can to keep it working w/ Linux and the Mac 2011-11-15T02:17:39 < jnosky> Ahh yer welcome, im glad to hear from someone else it worked for 2011-11-15T02:18:04 < Rious> I was shocked that the discovery demo would compile so easily w/ gcc 2011-11-15T02:20:39 < jnosky> Ive done some cross dev for the lpc2148 under eclipse, so I wanted to set up the same basic environment for the freebe board i got 2011-11-15T02:21:15 < jnosky> truestudio woulda been cheating ;) 2011-11-15T02:21:18 < Rious> I've done quite a bit of AVR dev, and some MSP430, hadn't done any ARM, mostly because of cost 2011-11-15T02:22:23 < jnosky> I basically use the lpc to animate my hacks, since pcs no longer have lpt ports really 2011-11-15T02:23:09 < jnosky> I like how this chip may be a device as well as a host 2011-11-15T02:24:33 < Rious> yes, that is very cool, I also like the DAC 2011-11-15T02:26:53 < jnosky> Now that I have the basic framework setup, I should be able to at least build the other examples 2011-11-15T02:28:29 < jnosky> Have you tried debugging the discovery demo yet under the gdbserver? 2011-11-15T02:31:22 < karlp> Rious: texane actually had a bit to do with that I think, he doesn't talk much, but he knows someone at ST 2011-11-15T02:31:41 < karlp> they were initially very surprised at how many linux/gcc people were using the discovery boards 2011-11-15T02:31:58 < karlp> and they had to readjust how they were doing thigns, which is why the f4 is apparently the easiest 2011-11-15T02:32:04 < karlp> also, why they fixed the broken stlinkv1 hardware 2011-11-15T02:32:55 < Rious> I'm glad to hear that there are companies that pay attention to that sort of thing 2011-11-15T02:38:40 < karlp> well, only when they got yelled at :) 2011-11-15T02:38:46 < karlp> and it's still far from perfect 2011-11-15T02:39:05 < karlp> texane's words were, "they were rather surprised, and are taking it as a learning experience" 2011-11-15T02:39:53 < karlp> jnosky: the array of devics that is in gdbserver in main, with the flash regs and chipids and so on, did you have to change anything there? or just in the xml templates? 2011-11-15T02:40:01 < karlp> you only touched the f4 entry right? 2011-11-15T02:59:34 < karlp> jnosky: Rious jpa- could you try out this branch please? https://github.com/karlp/stlink/tree/future_f1plusf4 2011-11-15T02:59:47 < karlp> it works on my F1 board, and should work on the F4 boards too, 2011-11-15T03:01:14 < karlp> Showing 201 changed files with 98,721 additions and 184 deletions. 2011-11-15T03:01:19 < karlp> hehe, what could possibly go wrong there 2011-11-15T03:03:25 -!- Xamuzk [~X@186.221.10.157] has quit [Ping timeout: 260 seconds] 2011-11-15T03:04:32 < BrainDamage> btw, what's the status about the flashing utility & vl boards? 2011-11-15T03:05:10 < karlp> my top of tree should work just fine 2011-11-15T03:05:16 < karlp> it's working for jpa and I 2011-11-15T03:05:26 < karlp> we're maybe a day or two away from getting it all merged back together again 2011-11-15T03:05:53 < karlp> if jnosky/rious confirm that that branch I just pushed works for them on F4, we can get that pulled into master, and it's all on ebig happy family again :) 2011-11-15T03:06:12 < karlp> current top of _texane_ tree does NOT work for VL boards 2011-11-15T03:06:17 < Rious> I'll try it out tonight 2011-11-15T03:06:30 < karlp> you in north america? 2011-11-15T03:06:36 < karlp> might be a good cue for me to get to bed then. 2011-11-15T03:08:17 < Rious> Yes, Central Standard Time 2011-11-15T03:10:56 < Tom_itx> central where? 2011-11-15T03:13:27 -!- Xamuzk [~X@186.221.10.157] has joined ##stm32 2011-11-15T03:14:31 < Rious> Nashville, TN 2011-11-15T03:14:50 < Tom_itx> ahh 2011-11-15T03:14:53 < Tom_itx> Ks here 2011-11-15T03:59:06 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2011-11-15T04:05:31 < jnosky> karl I stepped out 2011-11-15T04:06:26 < jnosky> I didnt change the xml I think, except for the f4, then I aborted that plan and made a seperate template just for f4 2011-11-15T04:06:33 < jnosky> Then I just strcpy it 2011-11-15T04:07:40 < jnosky> karl so then you have have fetched upstream and merged from texane? 2011-11-15T04:20:16 < karlp> yep 2011-11-15T04:20:28 < karlp> that branch should ahve all of your changes, and all of mine, and all of all the things 2011-11-15T04:24:57 < jnosky> As I said im a git noob, so what would be the preffered wourse of action? 2011-11-15T04:25:04 < jnosky> course 2011-11-15T04:25:45 < karlp> umm, an easy way of doign it is to clone my repo completely new, 2011-11-15T04:25:54 < karlp> make sure to checkout the right branch 2011-11-15T04:25:56 < karlp> and test it out 2011-11-15T04:25:57 < jnosky> Thats what I was thinkin 2011-11-15T04:26:12 < karlp> you can also do git remote add karl-gh http://asdfasdf 2011-11-15T04:26:17 < karlp> then git fetch karl-gh 2011-11-15T04:26:33 < karlp> and git checkout -b mytest karl-gh/future_f1plus_f4 2011-11-15T04:26:56 < karlp> which will giv eyou a branch in your own local repo that tracks my branch 2011-11-15T05:08:13 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-15T05:09:05 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-15T05:18:52 -!- csamuelson is now known as Rious 2011-11-15T05:20:37 < Rious> karlp: I just tried loading code to my stm32f4 disco board flash via gdb and got an error 2011-11-15T05:21:08 < Rious> what info can I send you to help? 2011-11-15T05:45:19 < jnosky> Rious was it a timeout? 2011-11-15T05:45:43 < Rious> C 2011-11-15T05:45:48 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-15T05:47:06 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-15T05:47:13 < Rious> http://pastebin.com/Pajc9F2W 2011-11-15T05:47:23 < Rious> output from stlink 2011-11-15T05:48:16 < Rious> http://pastebin.com/09n3wZGH 2011-11-15T05:48:21 < Rious> output from gdb 2011-11-15T05:49:12 < jnosky> yea it locks up 2011-11-15T05:49:33 < jnosky> the server locked up, then gdb locked up 2011-11-15T05:49:43 < jnosky> You see my texane fork? 2011-11-15T05:50:14 < jnosky> https://github.com/jnosky/stlink/blob/master/src/stlink-common.c 2011-11-15T05:50:28 < Rious> yes, I was testing this from karlp's future_f1plus_f4 2011-11-15T05:50:37 < jnosky> Ya me too 2011-11-15T05:50:49 < jnosky> goto that url ^ 2011-11-15T05:50:57 < Rious> there 2011-11-15T05:50:58 < jnosky> line 1350 2011-11-15T05:51:11 < jnosky> See my comment on 1351 2011-11-15T05:51:22 < jnosky> Thats not addressed in his code 2011-11-15T05:51:32 < jnosky> So put that #if(0) in there 2011-11-15T05:51:39 < jnosky> and life will be good :) 2011-11-15T05:52:12 < Rious> thanks 2011-11-15T05:52:22 < jnosky> np 2011-11-15T05:52:49 < jnosky> Just saw the exact same thing like 5 mins ago 2011-11-15T06:23:01 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-15T06:24:06 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-15T06:24:14 -!- csamuelson is now known as Rious 2011-11-15T06:26:56 -!- Xamuzk [~X@186.221.10.157] has quit [Ping timeout: 244 seconds] 2011-11-15T07:23:58 -!- BadDwarf [~BadDwharf@02797120.bb.sky.com] has joined ##stm32 2011-11-15T07:32:02 -!- BadDwarf [~BadDwharf@02797120.bb.sky.com] has quit [Ping timeout: 252 seconds] 2011-11-15T09:00:43 -!- dekar [~dekar@drms-4d014418.pool.mediaWays.net] has quit [Quit: This computer has gone to sleep] 2011-11-15T09:10:13 -!- BadDwarf [~BadDwharf@02797120.bb.sky.com] has joined ##stm32 2011-11-15T11:08:27 -!- Ear [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has joined ##stm32 2011-11-15T11:08:31 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has quit [Read error: Connection reset by peer] 2011-11-15T11:20:49 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 256 seconds] 2011-11-15T11:21:09 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32 2011-11-15T11:53:49 < karlp> jnosky: right, my bad, the merge lines were hard to read there, and that verification step works for the other devices 2011-11-15T11:54:36 < karlp> I'll break it out to a separate (probably optional) verification step, so that it can be skipped on F4's for now. 2011-11-15T11:55:02 < karlp> does it work once you ifdef out that verification? 2011-11-15T11:55:12 < karlp> (I presume you're all in bed now) 2011-11-15T12:26:57 < karlp> so, anyone have any info on whether ST will release an stm32W discovery board? 2011-11-15T12:32:29 -!- dekar [~dekar@95.143.165.210] has joined ##stm32 2011-11-15T15:06:10 -!- dekar [~dekar@95.143.165.210] has quit [Quit: This computer has gone to sleep] 2011-11-15T17:22:01 < mansfeld> hi there 2011-11-15T17:22:16 < jpa-> hi here 2011-11-15T17:22:16 < mansfeld> has anyone here used the simplemac library for the stm32w? 2011-11-15T17:41:37 < karlp> not I, but I'd love to hear how you find the stm32w 2011-11-15T17:42:38 < mansfeld> I'll be sure to let you know once I get this damn library to compile :] 2011-11-15T17:44:18 < mansfeld> it seems like a really nice chip though, I'm just a little confused by the lack of documentation (where are the RF registers described? I can't get the source code and there's no mention of them in the datasheet...) 2011-11-15T17:50:06 < Laurenceb> :S 2011-11-15T17:50:21 < karlp> are you talking about UM0893? the STM32W108xx Simple MAC library from ST? 2011-11-15T18:01:30 < mansfeld> yes karlp 2011-11-15T18:25:01 -!- BadDorf [BD@nat/ibm/x-fkntnjatcdlcwhrk] has joined ##stm32 2011-11-15T18:27:18 < BadDorf> hi.. I know I can do DMA from timer capture to memory, and from memory to SPI tx, and the datasheet mentions dma from peripheral to peripheral.. could I do DMA straight from timer capture to SPI (tx) ? what are the restrictions ? do I have to make sure the timer channel is on the same dma channel as the chosen spi tx ? not sure how the dma channel -> peripheral table applies in peripheral to peripheral 2011-11-15T18:29:29 < jpa-> the dma channel matters only for the dma trigger source 2011-11-15T18:29:51 < jpa-> you can do that if you know that your spi is always faster than the timer 2011-11-15T18:32:12 < BadDorf> it should be, the spi tx is going to an spi fram that writes at spi bus speed, and the timer should trigger at most every 1us or so (normal 4us min) 2011-11-15T18:32:36 < BadDorf> and, thanks for the info on the dma chan table =) 2011-11-15T18:34:26 < BadDorf> sounds like I can just tweak my existing dma from input capture to mem, to point at the spi tx instead =) (and do a little pre-setup to put the fram into write data mode.. ) then enable the timer, wait till the dma completes (set max transfers to the fram size), at which point I've got an fram full of capture data.. this could be pure awesome on a stick ;p 2011-11-15T18:34:47 < jpa-> :) 2011-11-15T18:34:49 < BadDorf> scary when the hardware does almost all the work ! 2011-11-15T18:37:15 < jpa-> indeed, and does it behind your back! 2011-11-15T18:37:50 < BadDorf> aye.. at this rate I may actually have the time to process the fram data back & push it down to the sdcard =) 2011-11-15T18:37:54 < jpa-> mind your word sizes though.. iirc the dma unit has some support to do 16bit -> 8bit conversion which you'll probably need 2011-11-15T18:38:09 < BadDorf> sort of.. I only want 8bit resolution on the timer anyways 2011-11-15T18:39:10 < BadDorf> I'm capturing mfm data from a floppy drive, so the timer vals represent time between pulses.. they _should_ be 4us, 6us, and 8us, but the drive is a physical thing with a lump of plastic spinning at 300rpm, and the media is OLLLD.. so they come back a lot fuzzier than that 2011-11-15T18:39:55 < jpa-> did you get it to reset? 2011-11-15T18:40:00 < BadDorf> yup thanks 2011-11-15T18:40:04 < jpa-> nice :) 2011-11-15T18:40:31 < BadDorf> so basically using dma & the timer, I've got a self filling data source representing a tracks worth of pulse widths.. 2011-11-15T18:40:40 < BadDorf> which is just .. insane =) 2011-11-15T18:42:10 < BadDorf> shame the dma can't do bit offset transfers ;-) then I could use it to realign the data afterward too 2011-11-15T18:42:36 < BadDorf> but I suspect I'm thinking far too fondly of the blitter in the amiga =) 2011-11-15T19:46:59 < jnosky> Yep karl it seems to work with that if(0) 2011-11-15T19:47:19 < jnosky> I have not verified with test patterns, but it looks like it worked 2011-11-15T19:47:35 < jnosky> I have not verified by debugging either 2011-11-15T19:48:25 < jnosky> Yknow whats odd is, when I "load IOToggle.elf" after flash the target doesnt reset, ie: it doesnt run right unless I remove power 2011-11-15T19:48:45 < jnosky> It mighta been that way with my code too, I gotta look into that 2011-11-15T20:49:28 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-15T20:49:31 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-15T20:52:26 < Rious> jnosky: I just had that with the newest code, but w/ the discovery_demo 2011-11-15T20:55:44 < Rious> stlink also got a libusb timeout http://pastebin.com/fAGfkeG0 2011-11-15T21:01:00 < Rious> I tried the same thing w/ gdb and got the same error: http://pastebin.com/x4BsnY9a 2011-11-15T21:02:29 < karlp> jnosky: I had that with _some_ of my code, but not others, 2011-11-15T21:02:36 < karlp> nto sure if's a linking problem or not? 2011-11-15T21:02:49 < karlp> I have one elf that loads, and then I can type "cont" and it starts 2011-11-15T21:03:00 < karlp> with others, continue says, "can't access memory at blah", 2011-11-15T21:03:23 < karlp> bu "kill" then "run" will start it properly. 2011-11-15T21:03:56 < karlp> if the #if 0 bits works, I'll add them now and ask texane to pull them. 2011-11-15T21:04:02 < Rious> when I got the error with gdb, I was able to continue without issue 2011-11-15T21:07:07 < jnosky> Rious you had the timeout with the #if(0) in there? 2011-11-15T21:11:27 < karlp> that timeout looks like the rx buffer ran out of ram? like without the #if 0 2011-11-15T21:15:25 < BrainDamage> btw karlp, your master is still unable to flash to my vl board :/ 2011-11-15T21:15:27 < BrainDamage> http://pastebin.com/nPw7fa0Y 2011-11-15T21:15:54 < BrainDamage> and the best part is that it leaves it in a limbo state that doesn't respond to anything unless unplugged 2011-11-15T21:15:57 < Rious> jnosky / karlp: let me check 2011-11-15T21:18:03 < Rious> no, I did not have the #if 2011-11-15T21:19:23 < Rious> I ran it out of the wrong branch, I just added the #if(0), testing now 2011-11-15T21:19:40 < Rious> it worked just fine, thanks 2011-11-15T21:34:44 < karlp> mmap failed?! 2011-11-15T21:34:59 < karlp> are you sure the file's readable? it works for jpa and I 2011-11-15T21:35:44 < BrainDamage> it is readble 2011-11-15T21:35:54 < BrainDamage> cloud@cloud-laptop blink]$ ls -l 2011-11-15T21:35:54 < BrainDamage> totale 36 2011-11-15T21:35:54 < BrainDamage> -rw-r--r-- 1 cloud users 4096 4 nov 20.53 blah 2011-11-15T21:35:54 < BrainDamage> -rwxr-xr-x 1 cloud users 34896 15 nov 20.11 blink_32L.elf 2011-11-15T21:35:54 < BrainDamage> -rwxr-xr-x 1 cloud users 34900 15 nov 20.11 blink_32VL.elf 2011-11-15T21:35:55 < BrainDamage> -rwxr-xr-x 1 cloud users 34900 15 nov 20.11 blink_F4.elf 2011-11-15T21:35:55 < BrainDamage> -rw-r--r-- 1 cloud users 2202 14 nov 14.25 main.c 2011-11-15T21:35:56 < BrainDamage> -rw-r--r-- 1 cloud users 787 14 nov 14.25 Makefile 2011-11-15T21:35:56 < BrainDamage> [cloud@cloud-laptop blink]$ whoami 2011-11-15T21:35:57 < BrainDamage> cloud 2011-11-15T21:36:28 -!- Xamuzk [~X@186.221.10.157] has joined ##stm32 2011-11-15T21:37:24 < jpa-> BrainDamage: do you have the modprobe-file in place? 2011-11-15T21:37:33 < BrainDamage> yup 2011-11-15T21:37:48 < BrainDamage> I can also access the stlink trough gdbserver ok 2011-11-15T21:37:49 < karlp> so you no longer have any /dev/sg stuff for this? 2011-11-15T21:38:36 < BrainDamage> [cloud@cloud-laptop blink]$ ls /dev/ | grep sg 2011-11-15T21:38:37 < BrainDamage> bsg 2011-11-15T21:38:37 < BrainDamage> kmsg 2011-11-15T21:42:02 < jpa-> ah, btw, i have not used st-flash, just gdbserver 2011-11-15T21:52:36 < karlp> ok, I can write with the flash util too, I don't get that mmap failure, but I do agree that it doesn't disconnect properly. I have to unplug and replug to get it to start running again. pressing the reset button doesn't work. 2011-11-15T21:59:53 < karlp> jnosky/Rious, I've pushed the merge fix to github, I pulled the verification out altogether. 2011-11-15T22:00:35 < karlp> Rious: when you're in "my master" can you do a git branch -av to show me what commit you're up to? 2011-11-15T22:01:26 < Rious> karlp: I only have your future_f1plusf4 pulled in currently 2011-11-15T22:02:24 < karlp> ok, but yeah, it should have worked for your vl board 2011-11-15T22:02:31 < karlp> I've never seen that mmap problem before 2011-11-15T22:03:47 < Rious> karlp: I think you're meaning to refer to BrainDamage, he is the one w/ the mmap problem 2011-11-15T22:03:54 < karlp> oh, doh 2011-11-15T22:03:55 < karlp> sorry 2011-11-15T22:03:57 < karlp> yeah 2011-11-15T22:04:05 < BrainDamage> sorry, I was alt-tabbed 2011-11-15T22:04:32 < karlp> but rious, the #ifdef'd fixed version is now in the future_f1plusf4 :) 2011-11-15T22:05:18 < BrainDamage> http://pastebin.com/dEy750sh 2011-11-15T22:06:25 < karlp> BrainDamage: hmm :( yeah, that shoudl work properly. 2011-11-15T22:06:44 < BrainDamage> should I strace flashing utility? 2011-11-15T22:07:04 < karlp> oh, hang on, are you using src/stlink/flash write blah blink.elf 0x08000000 ? 2011-11-15T22:07:13 < karlp> the flash tool expects it to be a binary, not an elf 2011-11-15T22:07:37 < karlp> arm-none-eabi -O binary input.elf output.bin 2011-11-15T22:07:40 < BrainDamage> oh 2011-11-15T22:07:45 < BrainDamage> ok, I'll strip the elf 2011-11-15T22:07:57 < karlp> I wouldn't have expected it to fail at mmap though? 2011-11-15T22:08:03 < karlp> I just would have expected it to write garbage 2011-11-15T22:10:49 < Rious> karlp: your branch worked fine for me on the f4 board 2011-11-15T22:11:01 -!- quitte [~quitte@tplink.ghb.hs-furtwangen.de] has joined ##stm32 2011-11-15T22:11:55 < karlp> excellent. 2011-11-15T22:32:07 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has joined ##stm32 2011-11-15T22:43:44 -!- Xamuzk is now known as Xamusk 2011-11-15T22:46:19 < karlp> ok, your regularly scheduled broadcasts from the top of texane's tree are now resuming. 2011-11-15T22:46:31 < karlp> hopefully we can avoid all this jumbo merging now :) 2011-11-15T22:47:06 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-15T23:00:45 < Laurenceb_> wohoo 2011-11-15T23:00:49 < Laurenceb_> standby works 2011-11-15T23:01:10 < karlp> what did you have to change? 2011-11-15T23:01:16 < Laurenceb_> i had tied VDDA to my analogue supply - it was going down to 0v 2011-11-15T23:01:19 < karlp> is this is jtag thing you had yesterday? 2011-11-15T23:01:28 < Laurenceb_> turns out stm32 wont boot if that happens 2011-11-15T23:01:29 < Laurenceb_> yes 2011-11-15T23:02:05 < karlp> what should you have it connected to? 2011-11-15T23:02:09 < Laurenceb_> VDD 2011-11-15T23:02:17 < Laurenceb_> which is annoying 2011-11-15T23:02:20 < karlp> and what was it connected to? 2011-11-15T23:02:28 < Laurenceb_> seperate analogue supply 2011-11-15T23:02:36 < karlp> it's just separate pin so you can put more special filtering on it right? 2011-11-15T23:02:37 < Laurenceb_> they cant use seperately switched rails 2011-11-15T23:02:41 < Laurenceb_> yes 2011-11-15T23:02:42 < karlp> it's still meant to be the same? 2011-11-15T23:02:45 < karlp> yeah, ok. 2011-11-15T23:02:50 < Laurenceb_> within a few tens of mv 2011-11-15T23:02:56 < karlp> do some micros let that be a completely arbitrary supply? 2011-11-15T23:03:04 < Laurenceb_> avr does iirc 2011-11-15T23:03:07 < Laurenceb_> ? 2011-11-15T23:03:11 < karlp> the L1 lets you have a separate one, for somewhere too iirc. 2011-11-15T23:03:15 < karlp> not sure, I've never needed it. 2011-11-15T23:03:34 < Laurenceb_> iirc avr has an internal switch on the micro 2011-11-15T23:03:37 < Tom_itx> yeah avr does 2011-11-15T23:03:53 < Tom_itx> or internal ref 2011-11-15T23:03:56 < Laurenceb_> this sucks a lot for me 2011-11-15T23:04:10 < Laurenceb_> as all my EGC frontend hardware is now on a sperate rail 2011-11-15T23:04:20 < Laurenceb_> from VDDA 2011-11-15T23:04:42 < Laurenceb_> so the front end can be turned off in standby mode 2011-11-15T23:05:03 < Laurenceb_> - its a commercial medical datalogger im working on 2011-11-15T23:07:00 < Laurenceb_> i dont see why the WKUP hardware couldnt have been made to run off VBAT 2011-11-15T23:07:08 < Laurenceb_> that would solve these issues 2011-11-15T23:08:25 < Laurenceb_> then use one of the VBAT domain pins as the WKUP 2011-11-15T23:16:26 < Laurenceb_> karlp: so you live in iceland huh? 2011-11-15T23:17:30 < Laurenceb_> i hate to think what the temperature is there now 2011-11-15T23:19:41 < BrainDamage> I'd love to visit iceland 2011-11-15T23:20:02 < Laurenceb_> in summer XD 2011-11-15T23:32:36 < jnosky> So how exactly does the server reset the target after a flash? 2011-11-15T23:32:44 < jnosky> A jump thru the reset vecotor isnt hard enuf it seems 2011-11-15T23:33:39 < jnosky> When you first load an app, like IO_toggle it will continue, assuming IOToggle was already flashed 2011-11-15T23:33:58 < jnosky> So then if you load say the demo, it will get stuck in startup code 2011-11-15T23:34:15 < jnosky> Then you have to POR 2011-11-15T23:34:24 < jnosky> after that you can load and cont on the demo 2011-11-15T23:34:57 < jnosky> Its like the reset isnt a hard reset, and the peripheral bus is jammed up maybe 2011-11-15T23:40:42 < jnosky> in my mind, when I load IOToggle.elf, it should cont or run 2011-11-15T23:41:04 < jnosky> and from the same session, I should then be able to load the discovery demo, and run that 2011-11-15T23:41:11 < jnosky> without removing power at all 2011-11-15T23:44:45 < jnosky> without regard to what was previously flashed... 2011-11-15T23:45:20 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds] 2011-11-15T23:52:01 < Xamusk> has anyone here ever found a good protobuf implementation for STM32? 2011-11-15T23:52:35 < Xamusk> IŽm trying to use it, but so far, even without using it already gives me 81KB of cruft 2011-11-15T23:53:55 < Xamusk> even the -gc-sections trick isnŽt working 2011-11-15T23:56:23 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-15T23:56:25 -!- mode/##stm32 [+v Steffanx] by ChanServ --- Day changed Wed Nov 16 2011 2011-11-16T00:00:06 < jnosky> ahh well the rest button fixes it 2011-11-16T00:54:08 -!- BadDwarf [~BadDwharf@02797120.bb.sky.com] has quit [Ping timeout: 248 seconds] 2011-11-16T00:55:56 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 252 seconds] 2011-11-16T01:16:45 < karlp> Laurenceb_: yes, I'm in iceland. it's 11C right now, which is maybe a little warmer than normal, but not reall out of range. 2011-11-16T01:16:51 < karlp> it does't really get very cold here 2011-11-16T01:16:58 < Laurenceb_> lmao 2011-11-16T01:17:00 < karlp> new york city is far colder in winter 2011-11-16T01:17:02 < Laurenceb_> 7C here in uk 2011-11-16T01:17:09 < karlp> hehe 2011-11-16T01:17:19 < Laurenceb_> was -22C in my workshop last winter :S 2011-11-16T01:17:32 < Laurenceb_> had to deice my monitor 2011-11-16T01:17:54 < karlp> hehe 2011-11-16T01:17:55 < Laurenceb_> so everyone speaks english over there? 2011-11-16T01:18:46 < karlp> jnosky: not sure, I have an elf that I made with the atollic tools, that loads, continues and works no problems, and then if I load one of the other ones, like from the libopencm3 demos, it loads, and I can kill and run, but not continue. 2011-11-16T01:19:01 < karlp> Laurenceb_: most people, I'm actually a native english speaker, and still learning icelandic :) 2011-11-16T01:20:00 < Laurenceb_> yeah i stumbled across your website :P 2011-11-16T01:21:13 < Laurenceb_> i might go next summer then 2011-11-16T01:21:15 < karlp> tweak or ekta? 2011-11-16T01:21:24 < karlp> give me call if you do, we can meet up 2011-11-16T01:21:56 < Laurenceb_> ok 2011-11-16T02:15:11 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has quit [Ping timeout: 248 seconds] 2011-11-16T02:33:43 < BrainDamage> karlp: still up? 2011-11-16T02:35:00 < karlp> yep 2011-11-16T02:35:20 < karlp> brewing, not finished yet :) 2011-11-16T02:36:33 < BrainDamage> I tried again now, flashing worked 2011-11-16T02:36:38 < BrainDamage> thanks for your help 2011-11-16T02:37:02 < BrainDamage> ( after having stripped the elf to a bin container ofc ) 2011-11-16T02:39:40 < BrainDamage> sorry for being an idiot, but I don't grasp well how the toolchain works here 2011-11-16T02:40:06 < BrainDamage> when I flash the blink example, the program will be in a diff memory address 2011-11-16T02:40:20 < BrainDamage> does the stm32 also looks there at boot to see if there's anything to run? 2011-11-16T02:40:43 < BrainDamage> if so, why doesn't it still blink? :/ 2011-11-16T02:50:51 < grummund> presumably if you were using the debugger to run code from ram then the debugger would take care it 2011-11-16T02:51:48 < BrainDamage> not using the debugger 2011-11-16T02:52:22 < grummund> i may have misunderstood the question 2011-11-16T02:54:01 < BrainDamage> ok, I want to run _anything_ on the board, I accidentally wiped flash in the past, so gdb loading to ram doesn't work because after you do, all registers have screwed pointers 2011-11-16T02:54:30 < BrainDamage> I'd have to reflash part of the orig firmware to get that functionality back 2011-11-16T02:54:50 < BrainDamage> so I'm trying to run at least from flash 2011-11-16T02:55:09 < grummund> um, what's that then... a bootloader? 2011-11-16T02:55:46 * grummund uses JTAG to flash, and never attempted to run from ram. 2011-11-16T02:55:49 < BrainDamage> so I proceeded to change the memory offset in the blink example from 0x2000000 to 0x8000000, strip the elf to bin, and flashed 2011-11-16T02:56:34 < grummund> what board is this? 2011-11-16T02:56:43 < BrainDamage> 32vl discovery 2011-11-16T02:57:02 < grummund> ok, so that has the onboard programmer (i think) 2011-11-16T02:57:18 < BrainDamage> yup, st-link, version 1 2011-11-16T02:57:53 < grummund> the stm32 boots according to the logic level on two boot pins 2011-11-16T02:58:43 < grummund> not sure what you mean by changing the memory offset though 2011-11-16T02:59:13 < BrainDamage> elf containers contains absolute memory address to my knowledge 2011-11-16T02:59:37 < BrainDamage> aka where to put the beginning of the program 2011-11-16T03:00:29 < grummund> where do you set this memory offset? 2011-11-16T03:01:17 < BrainDamage> compiler 2011-11-16T03:01:25 < BrainDamage> err, linker 2011-11-16T03:01:59 < grummund> i'm still not clear what you mean... as a command line option? 2011-11-16T03:02:59 -!- Ear [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has quit [Quit: OOOOOO Whats that....] 2011-11-16T03:03:18 -!- Eartaker [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has joined ##stm32 2011-11-16T03:03:18 -!- Eartaker [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has quit [Changing host] 2011-11-16T03:03:18 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has joined ##stm32 2011-11-16T03:03:30 < BrainDamage> yes 2011-11-16T03:03:39 < karlp> BrainDamage: get this: http://libopencm3.org/wiki/Downloads 2011-11-16T03:03:49 < karlp> even if you don't want the libraries, 2011-11-16T03:03:56 < karlp> it has examples for the VL board, and they all work 2011-11-16T03:04:04 < karlp> very much unlike the examples in stlink :) 2011-11-16T03:04:25 < BrainDamage> thanks :) 2011-11-16T03:04:39 < karlp> we've made flashing work, now I need help getting some good qualitystartup files and linker scripts 2011-11-16T03:05:26 < grummund> i used ones from ST's stdperiph distribution 2011-11-16T03:05:39 < karlp> yeah, I haven't managed to compile anything tha tworks from stdperiph yet. 2011-11-16T03:05:48 < grummund> i have ;) 2011-11-16T03:05:52 < karlp> sorry, I can compile and link, but I'm doing somethign wrong still with startup and linking :) 2011-11-16T03:06:05 < karlp> :P 2011-11-16T03:06:09 < grummund> yes it took a few days to get it 2011-11-16T03:06:11 < BrainDamage> /usr/lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/lib/thumb/libc.a(lib_a-syscalls.o): In function `_write': 2011-11-16T03:06:11 < BrainDamage> /tmp/yaourt-tmp-cloud2/aur-cross-arm-none-eabi-newlib/src/build/arm-none-eabi/thumb/newlib/libc/sys/arm/../../../../../../../newlib-1.19.0/newlib/libc/sys/arm/syscalls.c:335: multiple definition of `_write' 2011-11-16T03:06:20 * BrainDamage sighs 2011-11-16T03:06:27 < BrainDamage> what commit are you on karlp? 2011-11-16T03:07:07 < karlp> grummund: well, I'm hoping now that some kind soul can put together some nice generic reliable libre pieces for me :) 2011-11-16T03:07:10 < karlp> BrainDamage: 6ce8d61 stm32f4-discovery/miniblink: Fix board name 2011-11-16T03:07:41 < karlp> the fancy blink and miniblink examples as of that commit work with current top of texane's tree :) 2011-11-16T03:07:47 < grummund> stdperiph is not lib friendly the way ST have structured it 2011-11-16T03:08:21 < grummund> needs to be recompiled depending on the hardware setup (specifically clock), so not easy to have a generic lib 2011-11-16T03:08:37 < karlp> grummund: I think I've done the right thing as far as making it generic except for the system clock and startup file, in https://github.com/texane/stlink/tree/master/example/libs_stm/src 2011-11-16T03:08:42 < karlp> locally I have the F4 as well, 2011-11-16T03:08:57 < karlp> but to behonest, it was more just compiler make file wankery 2011-11-16T03:09:00 < karlp> the proof is in the pudding 2011-11-16T03:09:06 < karlp> and so far the pudding is uncooked 2011-11-16T03:09:23 < karlp> oh, and generic, with assert compiled out 2011-11-16T03:09:26 < grummund> tbh, i'd rather use my own Makefile :P 2011-11-16T03:09:49 < BrainDamage> karlp: sorry, should've specified about opencm3 2011-11-16T03:09:52 < karlp> do you just pick and choose individual files from the stdperiph into the makefile? 2011-11-16T03:10:15 < karlp> BrainDamage: 6ce8d61 stm32f4-discovery/miniblink: is a git commit in the opencm3 repo 2011-11-16T03:10:22 < BrainDamage> oh 2011-11-16T03:10:26 < karlp> full commit: 6ce8d610976e79f5c6649d16638b6c1daf45c887 2011-11-16T03:10:34 < karlp> friday nov 11. 2011-11-16T03:10:37 < grummund> yes i link only with the files needed, i don't attempt to build a generic lib 2011-11-16T03:10:44 < BrainDamage> ok, thanks 2011-11-16T03:11:00 < karlp> grummund: it seems to be popular, and functional to do it that way, but just seems to rub me the wrong way :) 2011-11-16T03:11:13 < karlp> I need to let it go I think. 2011-11-16T03:11:33 < BrainDamage> ok, something definetly broken here, I still get the error anyway :7 2011-11-16T03:11:39 < karlp> BrainDamage: :( 2011-11-16T03:12:17 < grummund> with the benefit of experience :P i can say it's possible to waste an awful amount of time trying to build generic solutions ... 2011-11-16T03:12:32 < BrainDamage> xkcd time? 2011-11-16T03:12:55 < grummund> better to get some projects under the belt first, then go back and revisit how things could be structured to be more efficient 2011-11-16T03:12:59 < karlp> grummund: hehe, you're probably right, 2011-11-16T03:13:07 < karlp> and yeah, that's really what it's time for. 2011-11-16T03:13:11 < BrainDamage> grummund: https://www.xkcd.com/974/ 2011-11-16T03:13:22 < karlp> I've spent so much time on the progamming side, effectively zero actually doing anything 2011-11-16T03:13:49 < grummund> heh. yeah 2011-11-16T03:14:07 < BrainDamage> karlp: hey, you managed to get stlink v1 to work decently 2011-11-16T03:14:12 < grummund> problem is trying to find solutions before you realised what the problems are ;) 2011-11-16T03:14:18 < karlp> I am a little bit proud of that BrainDamage :) 2011-11-16T03:14:30 < BrainDamage> that's the opposite of not actually doing anything 2011-11-16T03:14:31 < karlp> grummund: yeah, and I'm really not at the stage to be trying to write generic stm32 libraries 2011-11-16T03:15:10 < karlp> so, I reckon next is getting 802.15.4 interfaced, 2011-11-16T03:16:12 < karlp> must try and ignore remaining inefficiences in stlink code for now :) 2011-11-16T03:16:37 < grummund> anyway if you need linker script and startup code, i can say it's possible to do just with what ST provided in stdperiph.zip 2011-11-16T03:16:38 < BrainDamage> easy: sed away all the TODO and FIXME :p 2011-11-16T03:17:26 * karlp gigles 2011-11-16T03:17:40 < karlp> grummund: yeah, I need to go through what they provided more carefully, see which bits really do what 2011-11-16T03:18:00 < karlp> I think I'm going to start with trying to get the actual example packages to compile and run again 2011-11-16T03:18:11 < karlp> like, the actual factory demo code for the L1 board 2011-11-16T03:18:32 < grummund> i made a simple blinky if you need it 2011-11-16T03:18:40 < karlp> for l1? 2011-11-16T03:18:50 < karlp> sure, yes please! 2011-11-16T03:19:05 < grummund> well it's for F103 2011-11-16T03:19:14 < karlp> oh, I have those 2011-11-16T03:19:28 < grummund> what's different about L1 then? 2011-11-16T03:19:49 < karlp> it's more like an F2, it has different setups and things, 2011-11-16T03:19:56 < karlp> it shouldn't really be that difficult 2011-11-16T03:20:10 < karlp> I just need to sit down one night and look at _that_ and not _otherstuff_ 2011-11-16T03:20:25 < grummund> doesn't stdperiph deal with the differences? 2011-11-16T03:20:49 < karlp> probably, if I look closely enough :) 2011-11-16T03:21:12 < grummund> perhaps i need to get a L board and see 2011-11-16T03:23:51 < karlp> it's groovy 2011-11-16T03:23:59 < karlp> it has a touch slider/buttons, and an LCD :) 2011-11-16T03:24:03 < karlp> you know you wan tone :) 2011-11-16T03:24:09 < karlp> it's actually the one that interested me the most 2011-11-16T03:24:17 < karlp> I'm into low power stuff. 2011-11-16T03:24:28 < grummund> same here 2011-11-16T03:24:46 < karlp> I only got a VL board when I started working on this, and work was sending an order out, so I through one in for a few dollars 2011-11-16T03:24:54 < grummund> is there only the one STM32L1xx board to choose from? 2011-11-16T03:25:02 < karlp> yeah, 2011-11-16T03:25:07 < karlp> well, in the discovery series 2011-11-16T03:25:21 < karlp> who knows in the rest of their development kit lineup 2011-11-16T03:25:36 < karlp> http://www.st.com/internet/evalboard/product/250990.jsp 2011-11-16T03:26:13 < karlp> I got that, and then found out that a) stlink didn't support it, (it was the first stlinkv2 device) and b) that meant I was on serial bootloaders only 2011-11-16T03:26:21 < karlp> so it sat on the shelf for a few months 2011-11-16T03:28:21 < grummund> presumbaly its possible to hook up JTAG 2011-11-16T03:28:50 < karlp> probably 2011-11-16T03:28:55 < karlp> but this was my first arm board 2011-11-16T03:29:02 < karlp> and first board with jtag of any sort 2011-11-16T03:29:30 < karlp> so when I saw, "ultra low power, built in debugger, useable for other devices, bargain price" I snapped it up and decided it was time 2011-11-16T03:30:19 < grummund> so stlink is what exactly?... some windows PC software that hooks up to the secondary IC on that board? 2011-11-16T03:30:31 < BrainDamage> it's an hardware debugger chip 2011-11-16T03:30:51 < BrainDamage> + the software, yes 2011-11-16T03:30:52 < grummund> the chip itself is "stlink" 2011-11-16T03:30:56 < grummund> ? 2011-11-16T03:31:01 < BrainDamage> the firmware in it 2011-11-16T03:31:14 < BrainDamage> the chip is a regular stm32 2011-11-16T03:31:18 < grummund> ok and how does it interface with the stm32 2011-11-16T03:31:31 < grummund> sorry, i've only ever used jtag so far 2011-11-16T03:31:43 < BrainDamage> can use JTAG or SWD for stm32 2011-11-16T03:31:47 < BrainDamage> and SWAG for stm8 2011-11-16T03:32:02 < BrainDamage> the discovery boards use SWD 2011-11-16T03:32:28 < BrainDamage> there's a standalone version of stlink that lets you use all 3 2011-11-16T03:32:47 < grummund> ok, so those SWD pins are for programming a another target board (?) 2011-11-16T03:32:54 < BrainDamage> yes 2011-11-16T03:33:11 < BrainDamage> there's jumpers that let you detach the stlink from the target uC 2011-11-16T03:33:20 < grummund> and the PC interfaces via USB, presumably using "stlink" protocal 2011-11-16T03:33:58 < BrainDamage> yes, the stlink protocol is where the trouble starts 2011-11-16T03:34:30 < BrainDamage> karlp knows this way better than me, but for what I grasped, they hardcoded usb mass storage responses 2011-11-16T03:34:46 < BrainDamage> making it look like a 30 MB flash drive that serves 3 files with few kB 2011-11-16T03:35:09 < BrainDamage> execept the hardcoded responses are wrong and not spec compliant 2011-11-16T03:35:20 < BrainDamage> on windows, it works ok 2011-11-16T03:35:30 < BrainDamage> on linux: it plays quite some bullshit 2011-11-16T03:36:00 < BrainDamage> so you need to actually insert exception in mass storage module to ignore it 2011-11-16T03:36:59 < grummund> i see 2011-11-16T03:37:08 < karlp> stlinkv1 and stlinkv2 are hardware chunks, connected to a host pc via USB, that allow you to to SWD debugging of stm32 targets 2011-11-16T03:37:34 < karlp> on the discovery series of boards, part of the board is an stlink, and part is the "discovery" play part 2011-11-16T03:37:47 < karlp> it's this: http://www.st.com/internet/evalboard/product/219866.jsp 2011-11-16T03:37:51 < karlp> but built onto th eboard 2011-11-16T03:38:09 < karlp> should do jtag too, depends how you wire it I believe 2011-11-16T03:38:17 < BrainDamage> yes 2011-11-16T03:38:33 < BrainDamage> SWD just takes the least amount of wires 2011-11-16T03:38:37 < BrainDamage> that's why they used it :p 2011-11-16T03:38:38 < grummund> i guess SWD is same in concept to dW for Atmel AVR 2011-11-16T03:38:49 < karlp> swd is an arm thing, but yeah, less wires 2011-11-16T03:39:12 < grummund> so what's this firmware you accidentally wiped BrainDamage ? 2011-11-16T03:39:16 < grummund> bootloader? 2011-11-16T03:39:22 < karlp> no, the default factory image 2011-11-16T03:39:31 < BrainDamage> the image in the stm32 target chip 2011-11-16T03:39:34 < BrainDamage> not the st-link 2011-11-16T03:39:42 < karlp> and, because we/me are idiouts, the "example" code in the stlink software package, doesn't actually run 2011-11-16T03:39:49 < karlp> it doesn't include the startup code, 2011-11-16T03:39:52 < grummund> does SWD rely on that? 2011-11-16T03:40:03 < karlp> so if you had the factory image still on flash, whcih set up vectors and things, 2011-11-16T03:40:09 < karlp> you could load the "example" into sram and run it 2011-11-16T03:40:28 < karlp> but after you burnt anything else at all to flash, the "examples" became very very UN examplish 2011-11-16T03:40:38 < karlp> no permanent damage, 2011-11-16T03:40:47 < karlp> just needed a working image to flash again. 2011-11-16T03:40:59 < karlp> and for me/us to fix the examples to actually be useful 2011-11-16T03:41:17 < BrainDamage> bleh, it turns out my gcc toolchain has a bug :/ 2011-11-16T03:41:38 < karlp> you have not had a good week or two with this have you BrainDamage? 2011-11-16T03:42:01 < BrainDamage> well, I didn't give it full attention to be honest 2011-11-16T03:42:03 < grummund> karlp: that should just mean linking with the supplied startup code 2011-11-16T03:42:20 < BrainDamage> but it's been frustrating, yes 2011-11-16T03:42:22 < karlp> it should, yues 2011-11-16T03:42:42 < karlp> but it was only last night I finally got the F4 support merged back together with the F1 support, 2011-11-16T03:42:55 < karlp> I'm now "finished" with the stlink software part, and can play with that sort of thing. 2011-11-16T03:43:28 < BrainDamage> will you ask texane to merge the fork now? 2011-11-16T03:43:36 < BrainDamage> btw, my gcc: 9 aur/cross-arm-none-eabi-gcc 4.6.1-1 [installed] (12) 2011-11-16T03:43:36 < BrainDamage> The GNU Compiler Collection - Cross compiler for ARM target 2011-11-16T03:43:43 < karlp> oh yeah, so for more confusion, "stlink" is also the name of both a) the st provided utility that talks to this debugger hardware (windows only) and also b) the linux/macosx package that we've been rattling on about for the last few weeks. 2011-11-16T03:43:50 < karlp> BrainDamage: it's merged into texane as of a few hours now 2011-11-16T03:44:06 < grummund> BrainDamage: what was the gcc bug? 2011-11-16T03:44:20 < BrainDamage> it's in the lib 2011-11-16T03:44:53 < BrainDamage> speaking of which, I have a fun fun lib bug in stl 2011-11-16T03:45:25 < BrainDamage> http://codepad.org/noRrMoqn 2011-11-16T03:45:33 < BrainDamage> it's just my unlucky day 2011-11-16T03:45:58 < BrainDamage> that's an unrelated bug, I found yesterday 2011-11-16T03:46:13 < BrainDamage> apparently, libc really hates me 2011-11-16T03:46:29 < grummund> i'm using newlib 2011-11-16T03:46:43 < BrainDamage> that previous was libc on linux 2011-11-16T03:46:59 < BrainDamage> and newlib for the arm, gives me the error I pasted few pages ago 2011-11-16T03:47:03 < BrainDamage> sec 2011-11-16T03:47:29 < BrainDamage> /usr/lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/lib/thumb/libc.a(lib_a-syscalls.o): In function `_write': 2011-11-16T03:47:29 < BrainDamage> /tmp/yaourt-tmp-cloud2/aur-cross-arm-none-eabi-newlib/src/build/arm-none-eabi/thumb/newlib/libc/sys/arm/../../../../../../../newlib-1.19.0/newlib/libc/sys/arm/syscalls.c:335: multiple definition of `_write' 2011-11-16T03:48:10 < BrainDamage> "it's shit like this" ... 2011-11-16T03:48:33 < karlp> what arm toolchain are you using? 2011-11-16T03:48:42 < BrainDamage> arch's 2011-11-16T03:48:58 < BrainDamage> I'll run summon arm toolchain tomorrow 2011-11-16T03:49:07 < BrainDamage> because I'm out of patience atm 2011-11-16T03:49:13 < BrainDamage> I just have to rant 2011-11-16T03:59:23 < BrainDamage> oh sacred flying spaghetti monster, it's working 2011-11-16T03:59:28 < BrainDamage> it's fucking working 2011-11-16T03:59:49 < BrainDamage> I fixed the bug myself, it was trivial 2011-11-16T04:00:03 < BrainDamage> karlp: thanks for your help and for the stlink software 2011-11-16T04:00:22 < karlp> you're extremely welcome :) 2011-11-16T04:00:29 < karlp> also, congratulations :) 2011-11-16T04:00:33 < jnosky> Brain you cant just change the linker address and expect it to run from flash 2011-11-16T04:00:48 < karlp> so you're using arch linux's built in arm toolchain? and what examples? 2011-11-16T04:01:19 < karlp> also, sweet, the 32l_dac example really works. I can even watch the dac output slowly go up with a multimeter 2011-11-16T04:01:28 < BrainDamage> libopencm3's 2011-11-16T04:01:33 < karlp> excellent 2011-11-16T04:01:41 < karlp> yeah, their VL examples work 2011-11-16T04:01:54 < karlp> so what was wrong? 2011-11-16T04:02:22 < BrainDamage> just an overloaded method 2011-11-16T04:02:43 < BrainDamage> fixed it, compiles fine 2011-11-16T04:03:09 < BrainDamage> now my board is finally flashing like an xmas tree 2011-11-16T04:03:49 < karlp> whee 2011-11-16T04:04:29 < BrainDamage> btw, I'd reiterate the suggestion to temp rename the flash utility to st-flash 2011-11-16T04:04:45 < BrainDamage> at least until you get to finish the unification 2011-11-16T04:05:04 < karlp> I think I'm going to leave it until I just make it an option to st-util. 2011-11-16T04:05:09 < karlp> but, as they say, patches are welcome :) 2011-11-16T04:05:52 < BrainDamage> ok, I guess now that it works, I can actually make that tiny effort 2011-11-16T04:06:06 < BrainDamage> even if to say thanks a bit 2011-11-16T04:07:32 < jnosky> Braindamage are you sating its working from flash now? 2011-11-16T04:07:51 < BrainDamage> yes, but I'm flashing a totally different example 2011-11-16T04:08:03 < karlp> even better! moaaahh working code! 2011-11-16T04:08:17 < karlp> moaaah in the army of functional embedded soldiers! 2011-11-16T04:08:32 < jnosky> At first I thought that changing the linker address would allow ram examples to run from flash 2011-11-16T04:08:40 < jnosky> But thats not the case at all 2011-11-16T04:09:37 < karlp> yeah, apparently we all thought that, or at least, lots of us 2011-11-16T04:09:48 < karlp> we were spectacularly wrong :) 2011-11-16T04:10:08 < jnosky> well that readme makes ya think thats all ya need todo 2011-11-16T04:10:21 < karlp> I'm editing readmes as we speak :) 2011-11-16T04:10:26 < karlp> which one in particular? 2011-11-16T04:10:32 < karlp> the makefile commentary did say that, 2011-11-16T04:10:41 < karlp> I wasn't aware of any readme that said that too? 2011-11-16T04:10:49 < BrainDamage> the makefile in the example 2011-11-16T04:11:04 < BrainDamage> there's one commented section with shifted address 2011-11-16T04:11:35 < BrainDamage> # to run from SRAM 2011-11-16T04:11:35 < BrainDamage> DEF_CFLAGS+=-Wl,-Ttext,0x20000000 -Wl,-e,0x20000000 2011-11-16T04:11:36 < BrainDamage> # to write to flash then run 2011-11-16T04:11:36 < BrainDamage> # DEF_CFLAGS+=-Wl,-Ttext,0x08000000 -Wl,-e,0x08000000 2011-11-16T04:11:37 < karlp> the blink one? 2011-11-16T04:11:41 < BrainDamage> yup 2011-11-16T04:11:41 < grummund> the linker script should take care of locating the code to flash 2011-11-16T04:11:49 < karlp> the blink one is probably the most busted example in the whole tree :( 2011-11-16T04:12:02 < BrainDamage> but that's like busting hello world :/ 2011-11-16T04:12:09 < karlp> yeah, tell me about it 2011-11-16T04:12:23 < karlp> that led me down many a dead end. (it wasn't me! honest!) 2011-11-16T04:12:30 < jnosky> The stlink doc pdf 2011-11-16T04:12:49 < BrainDamage> weee, I'm actually already pwing the led 2011-11-16T04:12:51 < jnosky> Ya the linker script takes care of flashing allright 2011-11-16T04:13:35 < jnosky> But what dont tell you is that in order to bring up the blinker you need startupcode, and vectors 2011-11-16T04:14:06 < jnosky> It reads like you just change the target address, and let the good times roll from flash 2011-11-16T04:14:25 < BrainDamage> yeah, I figured this mysef the hard way 2011-11-16T04:14:46 < BrainDamage> esp after I wiped the flash, and noticed the load to ram stopped working as well 2011-11-16T04:15:54 < jnosky> Ya cause there no init code after you did that 2011-11-16T04:16:01 < grummund> there's a snippet of c code you can paste into your main.c to workaround missing startup code 2011-11-16T04:21:11 < jnosky> HooHoo I just a cloned a failing hdd using the "freezer trick" :) 2011-11-16T04:21:19 < karlp> the what? 2011-11-16T04:21:24 < karlp> grummund: what's thsi magic snippet? 2011-11-16T04:22:04 < jnosky> Ya put the hdd in the freezer for a few hours, than ghost or DD it as soon as you take it out 2011-11-16T04:22:26 < grummund> unsigned int * myvectors[4] 2011-11-16T04:22:26 < grummund> __attribute__ ((section("vectors")))= { (unsigned int *)0x20000800, // stack pointer (unsigned int *)main, // code entry point (unsigned int *)nmi_handler, // NMI handler (not really) (unsigned int *)hardfault_handler // hard fault handler (let's hope not) 2011-11-16T04:22:27 < jnosky> The theory is that it shrinks some tolerances 2011-11-16T04:22:30 < grummund> }; 2011-11-16T04:22:56 < grummund> hmm, sorry that didn't paste well 2011-11-16T04:25:17 < grummund> http://pastebin.com/ugKdccK1 2011-11-16T04:26:15 < jnosky> Oh thats handy, thanks 2011-11-16T04:28:28 < grummund> forgot the declaration for main() - http://pastebin.com/rKUKJnnr 2011-11-16T04:30:10 < jnosky> But you still need a linker script to set vectors addr no? 2011-11-16T04:30:22 < grummund> yes 2011-11-16T04:31:39 < grummund> http://pastebin.com/RUrAu2EW 2011-11-16T04:34:17 < jnosky> Thanks :) 2011-11-16T04:37:05 < grummund> in fact... 2011-11-16T04:37:53 < Thorn> (unsigned int *)main - will this address have 1 added to it? 2011-11-16T04:38:32 < grummund> http://pastebin.com/3wQWyMD2 2011-11-16T04:39:08 < grummund> interesting point Thorn, but it worked so probably yes ;) 2011-11-16T04:39:44 < Thorn> (unsigned int *)0x20000800 -- must not have +1, (unsigned int *)main - must have +1. does it work out? 2011-11-16T04:40:15 < Thorn> I wish this were documented somewhere 2011-11-16T04:41:02 < Tom_itx> it is now 2011-11-16T04:41:23 < Thorn> (otoh, last 2 bits of SP are always 0 so first one isn't critical) 2011-11-16T04:42:26 < grummund> i just re-tested that and the LED is blinking, so yes it works. :) 2011-11-16T04:46:23 < Thorn> Tom_itx: you mean the gcc/ld behavior regarding ARM/Thumb modes and function addresses is documented? 2011-11-16T04:47:03 < grummund> he means he has a bot here recording everything you say 2011-11-16T04:48:57 < Tom_itx> http://www.embeddedrelated.com/usenet/embedded/show/96927-1.php 2011-11-16T04:49:03 < Tom_itx> dunno if that's relevant 2011-11-16T04:50:39 < Tom_itx> still haven't taken mine 'out of the box' yet 2011-11-16T04:52:34 < karlp> lhmm. I wonder what happened to my lcd? the leds are blinking, but the lcd doesn't seem to work with this demo. 2011-11-16T04:58:47 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2011-11-16T05:02:23 < Thorn> my Universal Serial Interface is almost done http://i.imgur.com/BAX80.jpg 2011-11-16T05:04:39 < Thorn> should be usable as a debugger too 2011-11-16T05:04:54 < Thorn> if it works at all lol 2011-11-16T05:05:22 < karlp> is that USB2xxxxx? 2011-11-16T05:05:30 < karlp> somewhat like a buspirate? 2011-11-16T05:05:44 < karlp> but with more transceivers in hardware? 2011-11-16T05:06:11 < karlp> oh yeah, youðve got all the level translators and transceivers on board 2011-11-16T05:06:30 < BrainDamage> u6 & u4 being max 232? 2011-11-16T05:06:40 < Thorn> right 2011-11-16T05:06:51 < karlp> what are you going to do with this creature? 2011-11-16T05:07:07 < Thorn> this chip has 2 independent channels, you can use one for rs-232 and another for jtag for example 2011-11-16T05:08:24 < Thorn> well if I manage to lay it out I'll order PCBs and hope they arrive before the new year holidays (and will work once assembled) 2011-11-16T05:08:58 < Thorn> then I'll sell 1000 of these and get rich of course 2011-11-16T05:10:26 < Tom_itx> what cad package is that? 2011-11-16T05:10:34 < Thorn> diptrace 2011-11-16T05:10:51 < Tom_itx> too bad you didn't use eagle 2011-11-16T05:11:02 < karlp> it's like a busblaster with a few transceiver chips hanging off the end. 2011-11-16T05:11:16 < karlp> it's based on that highspeed dual channel usb chip thingy 2011-11-16T05:11:41 < Tom_itx> Thorn have you done much board layout? 2011-11-16T05:12:08 < Thorn> it's going to be the first real one :) 2011-11-16T05:12:20 < Tom_itx> also have you looked at the hammer stuff? 2011-11-16T05:12:51 < Thorn> there's this board with eagle project available http://www.seeedstudio.com/depot/ft2232h-usb-20-hispeed-breakout-board-p-737.html 2011-11-16T05:12:58 < Thorn> what hammer stuff? 2011-11-16T05:13:01 < karlp> the tin can tools hammer? 2011-11-16T05:13:04 < Tom_itx> yes 2011-11-16T05:13:22 < Tom_itx> he hangs out in edev i think 2011-11-16T05:14:54 < karlp> it's starting to look a little expensive compared to things like this though: http://www.8devices.com/product/3/wi-fi-4-things/specs 2011-11-16T05:15:10 < Thorn> $22 for this? http://www.tincantools.com/product.php?productid=16156&cat=0&page=1&featured 2011-11-16T05:21:59 < Tom_itx> ha 2011-11-16T05:22:31 -!- Xamuzk [~X@186.221.10.157] has joined ##stm32 2011-11-16T05:23:21 < Thorn> for $149 you can have beagleboard-xm or even pandaboard 2011-11-16T05:23:35 < Tom_itx> maybe i should have taken his offer at the time. 2011-11-16T05:23:41 < BrainDamage> pandaboard is like santa 2011-11-16T05:23:42 < Tom_itx> i could have had one for free 2011-11-16T05:23:49 < Tom_itx> the kit i think 2011-11-16T05:23:52 < BrainDamage> everyone talks about it, nobody has soon one 2011-11-16T05:24:05 < BrainDamage> beaglebone is interesting too 2011-11-16T05:24:06 < Tom_itx> i know a couple that have em 2011-11-16T05:24:29 < Tom_itx> dave hylands has one i'm pretty sure 2011-11-16T05:24:38 < Tom_itx> he or his brother 2011-11-16T05:25:57 -!- Xamusk [~X@186.221.10.157] has quit [Ping timeout: 252 seconds] 2011-11-16T05:33:22 < Thorn> what's the limitation of eagle freeware edition? 100x80mm? I'm not sure I can fit this one in 100x100mm 2011-11-16T05:33:34 < Tom_itx> euro size card 2011-11-16T05:33:42 < Tom_itx> i forget 2011-11-16T05:33:51 < Tom_itx> maybe 100 x 160mm? 2011-11-16T05:34:01 < Tom_itx> that may be the student size 2011-11-16T05:34:06 < Thorn> http://www.cadsoftusa.com/downloads/freeware/ 2011-11-16T05:34:43 < Tom_itx> i still use 4.16 2011-11-16T05:38:15 -!- Xamuzk [~X@186.221.10.157] has quit [Ping timeout: 260 seconds] 2011-11-16T05:41:22 < Thorn> why aren't there any low cost trace (TPIU) adapters for cortex-m? it appears that a cheap fpga + some ram can do the trick (the data is manchester encoded, 50 or 66 or so MHz) 2011-11-16T05:41:42 < Thorn> the cheapest adapter that can do that is $1700 2011-11-16T05:52:11 < Tom_itx> that's a fairly good size board for a smt design 2011-11-16T05:52:16 < Tom_itx> you can't fit it in that? 2011-11-16T05:56:18 < Thorn> I tried auto placement (without fixing connectors first), it fits components into a ~100x100mm square 2011-11-16T05:56:34 < Tom_itx> auto placement? 2011-11-16T05:56:37 < Tom_itx> with eagle? 2011-11-16T05:56:39 < Thorn> haven't really tried placing manually yet though 2011-11-16T05:56:45 < Thorn> diptrace 2011-11-16T05:56:47 < Tom_itx> oh 2011-11-16T05:56:53 < Tom_itx> i'd never do that 2011-11-16T05:57:02 < Tom_itx> none of them are very efficient at it 2011-11-16T05:57:08 < Tom_itx> or auto routing either 2011-11-16T05:58:48 < Thorn> it does some crazy things but I think it can be used for estimating area to some degree 2011-11-16T05:59:57 < Tom_itx> i used to autoroute just to get an idea then manually route 2011-11-16T06:00:16 < Tom_itx> but i haven't done anything that complicated yet 2011-11-16T06:00:40 < Tom_itx> what's diptrace cost? 2011-11-16T06:00:57 < Thorn> I use a free version 2011-11-16T06:01:06 < Tom_itx> what limitations? 2011-11-16T06:01:28 < Thorn> 1000 pins 2011-11-16T06:02:25 < Thorn> you can't get that from their website though (only a 500 pin free version there) 2011-11-16T06:02:43 < Tom_itx> where then? 2011-11-16T06:02:49 < Tom_itx> student? 2011-11-16T06:06:25 < Thorn> the company is founded by Russians, they gave away a 1000 pin key on some Russian forum years ago, it still works. you have to enter "for non-commercial use" in Russian in the registration dialog using a keyboard (copy/paste doesn't work I believe :) for the key to work 2011-11-16T06:07:17 < Tom_itx> oh 2011-11-16T06:09:17 < Thorn> the tactics seemed to work, no cracks or keygens are available to date :) 2011-11-16T06:11:25 < Thorn> (my project uses 367 pins) 2011-11-16T06:30:17 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has quit [Excess Flood] 2011-11-16T06:31:22 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-16T07:12:24 -!- BadDwarf [~BadDwharf@02797120.bb.sky.com] has joined ##stm32 2011-11-16T07:15:27 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has quit [Ping timeout: 248 seconds] 2011-11-16T07:47:20 -!- BadDwarf [~BadDwharf@02797120.bb.sky.com] has quit [Ping timeout: 252 seconds] 2011-11-16T07:54:52 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has joined ##stm32 2011-11-16T09:33:07 -!- BadDwarf [~BadDwharf@02797120.bb.sky.com] has joined ##stm32 2011-11-16T10:59:27 -!- BadDwarf [~BadDwharf@02797120.bb.sky.com] has quit [Ping timeout: 248 seconds] 2011-11-16T11:22:10 -!- dekar [~dekar@95.143.165.210] has joined ##stm32 2011-11-16T11:48:03 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has joined ##stm32 2011-11-16T12:16:16 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has quit [Ping timeout: 240 seconds] 2011-11-16T12:21:44 < karlp> jnosky: have you seen anything like this? https://github.com/texane/stlink/issues/30 2011-11-16T14:27:19 -!- dekar [~dekar@95.143.165.210] has quit [Quit: This computer has gone to sleep] 2011-11-16T15:00:02 -!- dekar [~dekar@95.143.165.210] has joined ##stm32 2011-11-16T15:44:17 -!- Netsplit *.net <-> *.split quits: dekar, Rious, Laurenceb, mansfeld 2011-11-16T15:44:26 -!- Netsplit *.net <-> *.split quits: district, jnosky, Eartaker, CheBuzz, Tom_itx, karlp, erik-k, biot, happylife, @ChanServ, (+1 more, use /NETSPLIT to show all of them) 2011-11-16T15:44:28 -!- Netsplit *.net <-> *.split quits: BadDorf 2011-11-16T15:44:28 -!- Netsplit *.net <-> *.split quits: zlog, |Marco|, Kevin` 2011-11-16T15:44:36 -!- Netsplit *.net <-> *.split quits: quitte, BrainDamage, Thorn 2011-11-16T15:48:39 -!- Netsplit over, joins: @ChanServ, happylife, Eartaker, grummund, BrainDamage, Thorn, |Marco|, Kevin`, district, erik-k (+12 more) --- Log closed Wed Nov 16 16:28:45 2011 --- Log opened Wed Nov 16 16:28:52 2011 2011-11-16T16:28:52 -!- jpa-_ [jpa@xob.kapsi.fi] has joined ##stm32 2011-11-16T16:28:52 -!- Irssi: ##stm32: Total of 24 nicks [1 ops, 0 halfops, 0 voices, 23 normal] 2011-11-16T16:29:17 < jpa-_> nooooooo, my ops again! 2011-11-16T16:29:33 -!- Irssi: Join to ##stm32 was synced in 45 secs 2011-11-16T16:33:40 -!- Netsplit *.net <-> *.split quits: jpa- 2011-11-16T16:49:30 < jnosky> Heya karl 2011-11-16T16:49:51 < jnosky> No ove not seen that problem, i responded with a cupl suggestions 2011-11-16T16:50:07 < jnosky> Ive got a small request tho 2011-11-16T16:50:12 < jnosky> On ugly logger 2011-11-16T16:50:42 < jnosky> Maybe eliminate the date time stamps, to try to fit each entry to 80 chars 2011-11-16T16:51:04 < jnosky> Most terminals are 80 chars, and the logging is well.. ugly :) 2011-11-16T18:04:23 -!- dekar [~dekar@95.143.165.210] has quit [Ping timeout: 244 seconds] 2011-11-16T19:01:10 < karlp> sure :) 2011-11-16T19:01:33 < karlp> I've often used the timestamps for watching how long thins are, and correlating two different windws 2011-11-16T19:01:39 < karlp> but it's less useful when you're not in debug 2011-11-16T19:17:42 < jnosky> Well even if they were on a serate line i think it would be better or only for DBG messages maybe 2011-11-16T19:17:58 < jnosky> Im just anal about the format of things on the screen 2011-11-16T19:18:24 < jnosky> It hurts my eyes when info flows onto the next line, I cant just scan down col 0 with my eyes 2011-11-16T19:31:10 -!- theAdib [~adib@dslb-088-074-174-223.pools.arcor-ip.net] has joined ##stm32 2011-11-16T19:49:01 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-16T19:49:01 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-16T19:50:10 -!- quitte [~quitte@tplink.ghb.hs-furtwangen.de] has quit [Ping timeout: 252 seconds] 2011-11-16T20:52:15 -!- dekar [~dekar@drms-590c5b11.pool.mediaWays.net] has joined ##stm32 2011-11-16T20:53:19 < dekar> Steffanx, got my altera board today :D 2011-11-16T20:53:26 < dekar> customs was like 180? XD 2011-11-16T20:53:34 < Tom_itx> crap 2011-11-16T20:53:47 < Tom_itx> i should go into the custom's business 2011-11-16T20:54:44 <+Steffanx> That 1@#$%ˆ& expensive board dekar ? 2011-11-16T20:54:54 < dekar> it was the cheap one actually 2011-11-16T20:55:02 < dekar> just $1300 2011-11-16T20:55:16 < dekar> I don't think any cheaper was an option 2011-11-16T20:55:26 < dekar> they simply couldn't handle 10G 2011-11-16T20:56:03 < dekar> looks like a small graphics card :) 2011-11-16T20:57:25 < dekar> I guess I'll start learning VHDL next week 2011-11-16T20:58:38 < Tom_itx> http://tutor.awce.com/ 2011-11-16T20:58:51 < Tom_itx> i've gone thru a few of his examples 2011-11-16T21:02:14 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has joined ##stm32 2011-11-16T21:12:14 < Laurenceb_> how long does the PLL take to lock? 2011-11-16T21:12:51 <+Steffanx> 5 minutes 2011-11-16T21:14:35 -!- Xamuzk [~X@186.221.10.157] has joined ##stm32 2011-11-16T21:17:18 -!- BadDwarf [~BadDwharf@02797120.bb.sky.com] has joined ##stm32 2011-11-16T21:18:17 < Laurenceb_> lol 2011-11-16T21:20:50 <+Steffanx> Yeah, I could've said "i don't know" too, but 5 minutes sounds better 2011-11-16T21:21:55 -!- You're now known as jpa- 2011-11-16T21:22:40 < Laurenceb_> cant find it in the datasheet 2011-11-16T21:23:41 < jpa-> Laurenceb_: electrical characteristics -> operating conditions -> PLL characteristics -> lock time = 350µs 2011-11-16T21:23:56 < Laurenceb_> ah ok course 2011-11-16T21:24:07 < Laurenceb_> its in the characteristics 2011-11-16T21:24:15 < Laurenceb_> odd 2011-11-16T21:24:28 < Laurenceb_> i sample an io pin at power up and its always zero 2011-11-16T21:24:46 < Laurenceb_> im pretty sure the pin rises faster than that 2011-11-16T21:24:58 < Tom_itx> yeah that sure belongs in electrical characteristics 2011-11-16T21:27:00 < jpa-> faster than what? 2011-11-16T21:27:12 < jpa-> the PLL lock time is a maximum, not a minimum 2011-11-16T21:27:28 < jpa-> it may lock in 1µs if it wants to 2011-11-16T21:27:47 < jpa-> does a delay help? 2011-11-16T21:28:28 < Laurenceb_> oh 2011-11-16T21:28:36 < Laurenceb_> i think so - need to do more tests 2011-11-16T21:28:51 < Laurenceb_> yeah the pin takes a few us to stabilise 2011-11-16T21:28:56 < Tom_itx> there's no flag for it? 2011-11-16T21:29:08 < Laurenceb_> flag for what? 2011-11-16T21:29:17 < Tom_itx> indicating when the pll is locked 2011-11-16T21:29:24 < Laurenceb_> yes 2011-11-16T21:29:39 < Laurenceb_> i use the perif lib code - init with pll at 72mhz, then read the pin 2011-11-16T21:30:01 < Laurenceb_> guess ill have to put a short delay in there 2011-11-16T21:45:35 <+Steffanx> or just a while(!xxxxx) ? 2011-11-16T21:50:05 -!- whitequark [~whitequar@whitequark.static.corbina.ru] has joined ##stm32 2011-11-16T21:50:32 < whitequark> greetings 2011-11-16T21:51:09 <+Steffanx> Hello 2011-11-16T21:52:28 < karlp> hello there... 2011-11-16T21:52:55 <+Steffanx> No, here 2011-11-16T21:53:03 < whitequark> why the hate? 2011-11-16T21:53:13 < karlp> Steffanx just likes it like that 2011-11-16T21:53:24 <+Steffanx> Hate? 2011-11-16T21:53:25 < karlp> welcome aboard :) 2011-11-16T21:55:13 < whitequark> duh, log server is 404'ing 2011-11-16T21:55:28 < whitequark> if you allow me, I'd let my bot in. Just wrote it at the morning. http://irclog.whitequark.org/ 2011-11-16T21:55:29 < Tom_itx> huh? 2011-11-16T21:55:32 < whitequark> well 2011-11-16T21:55:38 < whitequark> I've clicked on the link 2011-11-16T21:55:44 < whitequark> Not Found 2011-11-16T21:55:44 < whitequark> The requested URL /~tom-itx/irc/logs/zlog/2011-11-16.html was not found on this server. 2011-11-16T21:55:52 < Tom_itx> zlog 2011-11-16T21:55:53 < zlog> Tom_itx: Log stored at http://tom-itx.dyndns.org:81/~tom-itx/irc/logs/%23%23stm32/2011-11-16.html 2011-11-16T21:55:55 < Tom_itx> try that one 2011-11-16T21:56:06 < whitequark> ah 2011-11-16T21:56:08 < whitequark> this one works 2011-11-16T21:56:30 < Tom_itx> he should update the link 2011-11-16T21:56:44 < whitequark> no search :/ 2011-11-16T21:57:17 < karlp> search is for people who don't religiously read scrollback every morning ;) 2011-11-16T21:57:31 <+Steffanx> Hmm, I guess i'm not one of them 2011-11-16T21:57:48 <+Steffanx> * those religiously scrolling poeple i mean 2011-11-16T21:57:58 < Tom_itx> maybe i should put all the joins / parts and server messages back in it for you 2011-11-16T22:28:21 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-16T22:35:56 -!- _Shurik_ [~alex@99-120-247-177.lightspeed.tukrga.sbcglobal.net] has joined ##stm32 --- Day changed Thu Nov 17 2011 2011-11-17T00:30:51 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2011-11-17T00:42:40 -!- theAdib [~adib@dslb-088-074-174-223.pools.arcor-ip.net] has quit [Quit: Ex-Chat] 2011-11-17T01:09:15 -!- quitte [~quitte@tplink.ghb.hs-furtwangen.de] has joined ##stm32 2011-11-17T01:20:16 -!- _Shurik_ [~alex@99-120-247-177.lightspeed.tukrga.sbcglobal.net] has left ##stm32 [] 2011-11-17T01:55:22 < Tom_itx> http://tinyfabland.blogspot.com/2011/11/more-stm32f4.html 2011-11-17T01:56:21 < Tom_itx> did texane update his stlink? 2011-11-17T02:21:52 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has quit [Ping timeout: 240 seconds] 2011-11-17T02:37:34 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [] 2011-11-17T04:29:01 -!- Xamuzk [~X@186.221.10.157] has quit [Ping timeout: 240 seconds] 2011-11-17T04:37:06 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2011-11-17T04:54:05 < karlp> Tom_itx: don't you read the scrollback?! 2011-11-17T04:54:28 < Tom_itx> not here 2011-11-17T04:54:38 < Tom_itx> i may have it working 2011-11-17T04:54:41 < Tom_itx> i'm not sure 2011-11-17T04:54:43 < Tom_itx> yet 2011-11-17T04:55:11 < karlp> hehe 2011-11-17T04:55:17 < karlp> that's actually a really vague blog post 2011-11-17T04:55:24 < Tom_itx> i know 2011-11-17T04:55:34 < karlp> but yes, current texane master is the best possible code 2011-11-17T04:55:34 < Tom_itx> but i know him 2011-11-17T04:55:40 < Tom_itx> ok 2011-11-17T04:55:56 < karlp> F4 support, and F1 and L1 support, on both stlinkv1 and stlinkv2 hardware 2011-11-17T04:55:58 < Tom_itx> and summon-arm-toolchain 2011-11-17T04:56:06 < Tom_itx> is what i have 2011-11-17T04:56:08 < karlp> without any of the crazy usb-storage quirks 2011-11-17T04:56:16 < karlp> yep, I'm using summon arm toolchain too 2011-11-17T04:56:38 < Tom_itx> but i have yet to load a blink 2011-11-17T04:57:01 < karlp> yeah, however, /examples/blink is a terribly broken example. :( 2011-11-17T04:57:34 < Tom_itx> stlink example? 2011-11-17T04:57:35 * BrainDamage can vouch for that 2011-11-17T04:58:08 < karlp> if they're targetting the F4, Rious and jnosky vouch for the examples in the F4 directory: https://github.com/texane/stlink/tree/master/example/stm32f4 2011-11-17T04:58:37 < Tom_itx> i think that's what i have 2011-11-17T04:59:33 < Rious> both the discovery_demo and IO example work 2011-11-17T04:59:48 < karlp> ^^^ listen to him, he has an F4 :) 2011-11-17T05:00:17 < Tom_itx> i just loaded the latest stlink.git and it had samples with it 2011-11-17T05:00:21 < Tom_itx> is that it? 2011-11-17T05:02:02 < Rious> yes, example/stm32f4/Projects/ 2011-11-17T05:02:34 < Rious> in order to compile the discovery_demo, you'll first need to compile example/stm32f4/STM32F4xx_StdPeriph_Driver/ 2011-11-17T05:02:54 < Tom_itx> i think i did that already 2011-11-17T05:03:10 < Tom_itx> i've got a bin file for the demo 2011-11-17T05:04:05 < Tom_itx> does it take a while to load? 2011-11-17T05:04:43 < Tom_itx> i'm getting stuff back like: 2011-11-17T05:04:43 < Tom_itx> 2011-11-16T20:50:21 DEBUG src/stlink-common.c: *** stlink_read_mem32 *** 2011-11-17T05:04:43 < Tom_itx> 2011-11-16T20:50:21 DEBUG src/stlink-common.c: *** stlink_write_mem32 4 bytes to 0x8007280 2011-11-17T05:07:08 < karlp> it's about 1k/sec, so not super super fast 2011-11-17T05:08:05 < Tom_itx> ok 2011-11-17T05:08:21 < Tom_itx> i'm spoiled i guess 2011-11-17T05:08:39 < Tom_itx> that code seems to flash the leds slower than the original 2011-11-17T05:09:15 < karlp> if it's still running in the gdb, I do agree that some of the gdb status reporting seems to slow things down 2011-11-17T05:09:29 < Tom_itx> this is all new to me 2011-11-17T05:09:31 < karlp> quitting and power cycling seems to go back to normal 2011-11-17T05:09:35 < karlp> new to me too :) 2011-11-17T05:09:51 < Tom_itx> i unplugged it and tried it again 2011-11-17T05:09:54 < Tom_itx> same 2011-11-17T05:10:04 < karlp> there's definitely something wrong with the way stlink disconnects, it doesn't always seem to leave things in predictable states 2011-11-17T05:10:10 < Tom_itx> i'm used to avr etc 2011-11-17T05:10:21 < Tom_itx> how do you cleanly close the listen window? 2011-11-17T05:10:32 < Tom_itx> i'm using 3 terminals 2011-11-17T05:10:51 < Rious> Tom_itx: I think the discovery_demo code does make the lights flash more slowly 2011-11-17T05:11:13 < Tom_itx> ok well it must be working then 2011-11-17T05:11:37 < Tom_itx> i was using the ubuntu from the emc live cd install so i was missing a shit load of stuff 2011-11-17T05:12:21 < BrainDamage> why would you develop on a hard realtime machine? 2011-11-17T05:12:49 < Tom_itx> it's the only linux box i've got beside my server which has no keyboard or monitor on it 2011-11-17T05:13:30 < Tom_itx> i've got iar on windows installed 2011-11-17T05:13:46 < Tom_itx> just to try that as well 2011-11-17T05:14:31 < Tom_itx> i'm not real sure what i'm gonna do with this anyway 2011-11-17T05:14:59 < Tom_itx> just depends if i fall in love with arm or not i suppsoe 2011-11-17T05:15:00 < Tom_itx> suppose 2011-11-17T05:15:26 < karlp> well, yeah, there's sure no avr-libc yet :) 2011-11-17T05:16:01 < Tom_itx> the have some lib stuff with the examples but i haven't looked at em yet 2011-11-17T05:16:07 < Tom_itx> not sure what those are 2011-11-17T05:19:42 < Tom_itx> what's the IO_Toggle demo do? 2011-11-17T05:24:06 < Tom_itx> the original demo runs normal 2011-11-17T05:24:06 < Tom_itx> i just loaded it 2011-11-17T05:24:18 < Tom_itx> wonder why his is slower 2011-11-17T05:28:50 * karlp whistles at the passing cats...... 2011-11-17T05:28:51 < karlp> no clue, 2011-11-17T05:28:55 < karlp> time for bed :) 2011-11-17T05:29:22 < Tom_itx> where are you again? 2011-11-17T05:31:54 < karlp> iceland, UTC 2011-11-17T05:31:58 < karlp> it's.... late.... 2011-11-17T05:32:14 < Tom_itx> ahh ok 2011-11-17T05:32:34 < karlp> here, bed time music: http://www.youtube.com/watch?v=pDUF8ObFG_o&feature=related 2011-11-17T05:33:30 -!- atom1 [~tom@ip68-102-110-69.ks.ok.cox.net] has joined ##stm32 2011-11-17T05:43:19 -!- atom1 [~tom@ip68-102-110-69.ks.ok.cox.net] has quit [Quit: Leaving] 2011-11-17T06:25:57 -!- Xamuzk [~X@186.221.10.157] has joined ##stm32 2011-11-17T06:30:59 -!- Xamuzk [~X@186.221.10.157] has quit [Ping timeout: 276 seconds] 2011-11-17T09:21:52 -!- dekar [~dekar@drms-590c5b11.pool.mediaWays.net] has quit [Ping timeout: 240 seconds] 2011-11-17T10:39:56 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-17T10:39:59 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-17T11:10:17 -!- Xamusk [~X@200.20.218.11] has joined ##stm32 2011-11-17T11:16:17 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-17T11:16:21 -!- dekar_ [~dekar@drms-4d01518f.pool.mediaWays.net] has joined ##stm32 2011-11-17T12:04:45 <+Steffanx> Morning 2011-11-17T12:05:32 < jpa-> hello 2011-11-17T12:05:37 < jpa-> it's noon already 2011-11-17T12:05:38 < grummund> morning! 2011-11-17T12:05:54 <+Steffanx> Not yet jpa- 2011-11-17T12:25:04 -!- Kevin` [~kevin@router.kwzs.be] has quit [Ping timeout: 240 seconds] 2011-11-17T12:27:33 -!- Kevin` [~kevin@67.52.47.65] has joined ##stm32 2011-11-17T12:45:58 < karlp> not at all yet 2011-11-17T12:47:01 < dekar_> 11:46 am here 2011-11-17T12:47:41 < dekar_> but well, just woke up so morning is ok in my book :) 2011-11-17T12:47:46 < karlp> timezones are a pain 2011-11-17T12:47:52 < karlp> we should all be like china 2011-11-17T12:48:19 < dekar_> we should use nuclear fusion to make our own suns :) 2011-11-17T12:50:09 <+Steffanx> Or just use 'UGT' 2011-11-17T12:50:14 <+Steffanx> Aka universal greeting time 2011-11-17T12:53:52 < jpa-> you mean SHCOT? 2011-11-17T12:54:08 < jpa-> aka Steffanx's HomeCity Observatory Time 2011-11-17T12:54:36 <+Steffanx> No, UGT 2011-11-17T12:55:15 <+Steffanx> http://www.total-knowledge.com/~ilya/mips/ugt.html :) 2011-11-17T12:56:10 < Laurenceb> does the EXTI have to have a certain slew rate to trigger? 2011-11-17T12:56:28 < jpa-> doubtful 2011-11-17T13:15:18 < Laurenceb> hmm 2011-11-17T13:15:25 < Laurenceb> its not triggering 2011-11-17T13:21:06 <+Steffanx> pebkac :P 2011-11-17T13:25:34 < Laurenceb> im using 5v on the pin 2011-11-17T13:25:40 < Laurenceb> dont know if that changes anything 2011-11-17T13:30:06 < Laurenceb> hmm B2 is 5v tolerant 2011-11-17T13:30:10 < Laurenceb> this makes no sense 2011-11-17T13:30:32 <+Steffanx> Should be a problem 2011-11-17T13:33:38 < Laurenceb> http://pastebin.com/m2intSCF 2011-11-17T13:35:36 < Laurenceb> exti2 wont trigger, yet it is enabled 2011-11-17T13:35:41 < Laurenceb> i can check with jtag 2011-11-17T13:43:10 < Laurenceb> reading the gpio works 2011-11-17T13:43:32 < Laurenceb> and exti0 works 2011-11-17T13:44:50 <+Steffanx> And the pin is set as input etc? 2011-11-17T13:45:45 < Laurenceb> yes 2011-11-17T13:45:53 < Laurenceb> i can read it 2011-11-17T13:46:22 -!- tech2077 [~matthew@adsl-76-247-250-64.dsl.hstntx.sbcglobal.net] has joined ##stm32 2011-11-17T13:50:00 < Laurenceb> maybe EXTI2 is disabled for some reason 2011-11-17T14:06:20 < Laurenceb> nope i cant make sense of this 2011-11-17T14:27:03 -!- jaeckel [~jaeckel@unaffiliated/jaeckel] has joined ##stm32 2011-11-17T14:56:38 < Laurenceb> is there a perif clk for the EXTI? 2011-11-17T15:05:40 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2011-11-17T15:07:08 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-17T15:07:52 -!- zlog [~zlog@ip68-102-110-69.ks.ok.cox.net] has quit [Ping timeout: 240 seconds] 2011-11-17T15:09:07 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Read error: Connection reset by peer] 2011-11-17T15:09:29 -!- Thorn [~Thorn@93-81-4-115.broadband.corbina.ru] has joined ##stm32 2011-11-17T15:09:29 -!- Thorn [~Thorn@93-81-4-115.broadband.corbina.ru] has quit [Changing host] 2011-11-17T15:09:29 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-17T15:10:06 -!- zlog [~zlog@ip68-102-110-69.ks.ok.cox.net] has joined ##stm32 2011-11-17T16:09:56 -!- Xamusk [~X@200.20.218.11] has quit [Ping timeout: 252 seconds] 2011-11-17T17:51:38 < jnosky> http://www.hitex.com/fileadmin/pdf/insiders-guides/stm32/isg-stm32-v18d-scr.pdf 2011-11-17T18:01:26 -!- Xamusk [~X@200.20.218.11] has joined ##stm32 2011-11-17T18:03:48 -!- Xamuzk [~X@200.20.218.11] has joined ##stm32 2011-11-17T18:04:04 -!- Xamusk [~X@200.20.218.11] has quit [Read error: Connection reset by peer] 2011-11-17T20:32:47 -!- Xamuzk [~X@200.20.218.11] has quit [Ping timeout: 248 seconds] 2011-11-17T21:13:22 -!- Netsplit *.net <-> *.split quits: CheBuzz, BadDorf 2011-11-17T21:13:45 -!- Netsplit over, joins: CheBuzz 2011-11-17T21:13:45 -!- BadDorf [BD@nat/ibm/x-jrlwqrcoztthulpm] has joined ##stm32 2011-11-17T21:34:43 -!- dekar_ [~dekar@drms-4d01518f.pool.mediaWays.net] has quit [Quit: This computer has gone to sleep] 2011-11-17T21:41:20 < jnosky> Anyone got any leads on ANY example code for F4 usb? 2011-11-17T21:41:40 < jnosky> The only thing I can find is the discovery demo 2011-11-17T21:41:50 < BrainDamage> checked the one in libopencm3? 2011-11-17T21:42:54 <+Steffanx> jnosky : STM32F4 DSP and standard peripherals library, including 82 examples for 26 different peripherals and template project for 5 different IDEs 2011-11-17T21:43:02 <+Steffanx> http://www.st.com/internet/com/SOFTWARE_RESOURCES/SW_COMPONENT/FIRMWARE/stm32f4_dsp_stdperiph_lib.zip .. 2011-11-17T21:43:06 <+Steffanx> Should be it ? 2011-11-17T21:43:14 < jnosky> ^That one has zero examples for usb ! 2011-11-17T21:43:17 <+Steffanx> oh, usb 2011-11-17T21:43:37 <+Steffanx> nvm :) 2011-11-17T21:43:44 < jnosky> Think the libopencm3 might support f4? 2011-11-17T21:43:50 < BrainDamage> it does 2011-11-17T21:43:56 < jnosky> Thanks any steff 2011-11-17T21:44:00 < jnosky> way 2011-11-17T21:44:06 < BrainDamage> - ST STM32F1 series - ST STM32F2 series - ST STM32F4 series 2011-11-17T21:44:56 <+Steffanx> The stm32F1/2 usb examples don't work for the f4? 2011-11-17T21:45:09 < jnosky> Well I think they wont 2011-11-17T21:45:20 < jnosky> All the includes etc are for f1 2011-11-17T21:45:30 < jnosky> Lots of conditional code for f1 devices 2011-11-17T21:45:41 < jnosky> And not linked against f4 lib 2011-11-17T21:46:10 < jnosky> Judging by all the issues getting stlink to run on f4..... 2011-11-17T21:46:45 < jnosky> I think its bizzare they (stm) dont give any examples, they give examples for every other peripheral 2011-11-17T21:46:53 <+Steffanx> You're on linux? 2011-11-17T21:48:09 < jnosky> Well I built all the stuff with cygwin, and did all the f4 mods for stlink so I could dev under eclipse/win 2011-11-17T21:49:25 <+Steffanx> You could have used the stuff from TruStudio too (I did that for my stm32f1-dev) 2011-11-17T21:49:35 <+Steffanx> *TrueStudio 2011-11-17T21:50:25 < jnosky> I no longer have problems building for the f4 2011-11-17T21:50:32 < jnosky> Ive just got nuthing to build 2011-11-17T21:51:15 <+Steffanx> Hmm, the stm32f1 usb example should sort of work on the stm32f4 2011-11-17T21:51:57 <+Steffanx> They state the usb stuff of the F2 is fully compatible with the F1 2011-11-17T21:52:10 <+Steffanx> They also claim the f4 is software compatible with the f2 2011-11-17T21:52:19 <+Steffanx> So F4 = F1 ? 2011-11-17T21:54:00 < jnosky> Oh it is? 2011-11-17T21:54:08 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Remote host closed the connection] 2011-11-17T21:54:15 <+Steffanx> Hmm, This is about USB OTG FS though 2011-11-17T21:54:37 -!- Thorn [~Thorn@93-81-4-115.broadband.corbina.ru] has joined ##stm32 2011-11-17T21:54:37 -!- Thorn [~Thorn@93-81-4-115.broadband.corbina.ru] has quit [Changing host] 2011-11-17T21:54:37 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-17T21:54:38 < jnosky> Ya there is a device lib called that 2011-11-17T21:54:50 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Read error: Connection reset by peer] 2011-11-17T21:54:56 < jnosky> STM32_USB-FS-Device_Lib 2011-11-17T21:55:20 < jnosky> Its not one of the the three USB libs they released for f4 2011-11-17T21:56:29 < jnosky> Theres tons of these: 2011-11-17T21:56:30 < jnosky> #ifdef STM32F10X_CL 2011-11-17T21:58:02 < jnosky> and 2011-11-17T21:58:03 < jnosky> #ifdef STM32L1XX_MD 2011-11-17T21:58:03 < jnosky> #include "stm32l1xx.h" 2011-11-17T21:58:03 < jnosky> #else 2011-11-17T21:58:03 < jnosky> #include "stm32f10x.h" 2011-11-17T21:58:03 < jnosky> #endif /* STM32L1XX_MD */ 2011-11-17T22:00:44 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-17T22:11:07 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 258 seconds] 2011-11-17T22:11:29 -!- Thorn [~Thorn@93-81-4-115.broadband.corbina.ru] has joined ##stm32 2011-11-17T22:11:29 -!- Thorn [~Thorn@93-81-4-115.broadband.corbina.ru] has quit [Changing host] 2011-11-17T22:11:29 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-17T22:12:02 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Client Quit] 2011-11-17T22:12:33 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-17T22:17:07 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has joined ##stm32 2011-11-17T22:17:08 < Laurenceb_> hi 2011-11-17T22:17:16 < Laurenceb_> anyone here got an f103 setup? 2011-11-17T22:17:47 <+Steffanx> I think anyone here has a f103 setup, i sjust don't know who :) 2011-11-17T22:18:52 < Laurenceb_> was wondering if anyone could make EXTI2 trigger off B.2 2011-11-17T22:18:55 <+Steffanx> izua and dekar have a f103 board iirc, but they are not here :) 2011-11-17T22:20:32 < Laurenceb_> im pretty sure it wont work for me 2011-11-17T22:20:48 < Laurenceb_> if i change the gpio and exti config to another port it works 2011-11-17T22:21:17 < Laurenceb_> portb,pin2 is the BOOT1 pin, im not sure if that matters 2011-11-17T22:21:23 < Laurenceb_> i can use gpio ok 2011-11-17T22:21:45 < Thorn> I have a 103 running atm 2011-11-17T22:25:01 < Laurenceb_> can you try runnign some code, just a sec 2011-11-17T22:27:18 < Laurenceb_> http://pastebin.com/nks7faxt 2011-11-17T22:27:50 < Laurenceb_> the EXTI2 config code and EXTI2, can you make it run? 2011-11-17T22:27:59 < Laurenceb_> GPIO has to be configured as input 2011-11-17T22:28:12 < Laurenceb_> line 38 to 50 2011-11-17T22:28:57 < Laurenceb_> it fails to trigger the isr for me, but only off B.2 2011-11-17T22:29:33 -!- Xamuzk [~X@186.221.10.157] has joined ##stm32 2011-11-17T22:31:12 < Thorn> I need tweezers for that 2011-11-17T22:33:24 < jnosky> arrrgh! http://libopencm3.org/wiki/Status 2011-11-17T22:33:30 * grummund also has f103 2011-11-17T22:33:59 -!- Xamuzk [~X@186.221.10.157] has quit [Ping timeout: 260 seconds] 2011-11-17T22:34:11 < Laurenceb_> jnosky: fail 2011-11-17T22:34:41 < BrainDamage> jnosky: TODO means the page is not updated, not that the repo doesn't contain files 2011-11-17T22:34:45 < BrainDamage> you're assuming too much 2011-11-17T22:34:49 < BrainDamage> [cloud@cloud-laptop stm32f4-discovery]$ ls 2011-11-17T22:34:49 < BrainDamage> button fancyblink miniblink usart 2011-11-17T22:35:43 < Thorn> ok it's running. I need a wire 2011-11-17T22:36:06 < BrainDamage> rip apart your pc power cord 2011-11-17T22:36:32 < Laurenceb_> oh you need the init NVIC lines - further up 2011-11-17T22:36:37 < Laurenceb_> sorry didnt think of that 2011-11-17T22:37:24 < Thorn> one touch of GND to PB2 -> 326 interrupts 2011-11-17T22:37:38 < Laurenceb_> wut 2011-11-17T22:37:40 < Laurenceb_> ok thanks 2011-11-17T22:37:56 < Laurenceb_> something is screwed 2011-11-17T22:38:03 < Laurenceb_> maybe i managed to fry it.. somehow 2011-11-17T22:38:08 < Thorn> interrupt counter doesn't update otherwise 2011-11-17T22:38:20 < Laurenceb_> i did try to boot it with VDDA unconnected 2011-11-17T22:38:29 < Laurenceb_> it went a bit mental 2011-11-17T22:38:30 < jnosky> button fancyblink miniblink usart 2011-11-17T22:38:33 < jnosky> saw that 2011-11-17T22:38:34 < Thorn> I had to remove the BOOT1 jumper though (the tweezers part) 2011-11-17T22:38:43 < Laurenceb_> yeah 2011-11-17T22:38:43 < jnosky> I can already blink the leds ;) 2011-11-17T22:39:02 < Laurenceb_> Thorn: ok thanks - looks like hardware failure somewhere 2011-11-17T22:39:20 < Laurenceb_> ive abused this stm32 a bit - might have fried some of the GPIO hardware 2011-11-17T22:39:24 < Thorn> does B2 work otherwise? both input & output? 2011-11-17T22:40:01 < Laurenceb_> yes 2011-11-17T22:40:13 < Laurenceb_> hmm i connected it to USB without the battery applied 2011-11-17T22:40:29 < Laurenceb_> that means i had ~5V on B.2 with 0v on VDD 2011-11-17T22:40:45 < Laurenceb_> absolute max on 5v tolerant pins is VDD+4V 2011-11-17T22:41:00 < Laurenceb_> maybe that damaged the pin 2011-11-17T22:43:30 < Laurenceb_> ill have to poll it from the main loop for the time being 2011-11-17T22:43:38 < Thorn> I'd think it wouldn't work at all if damaged 2011-11-17T22:43:59 < Laurenceb_> you didnt do any weird config stuff did you? 2011-11-17T22:44:06 < Laurenceb_> just set the pin as input floating? 2011-11-17T22:44:15 < Thorn> I set it as IPU 2011-11-17T22:44:24 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-17T22:44:35 < Thorn> since the triger is set to falling edge 2011-11-17T22:45:23 < Laurenceb_> yeah 2011-11-17T22:45:38 < Laurenceb_> hmm i can only think its a hardware failure 2011-11-17T22:46:08 < Laurenceb_> and i probably exceeded absolute max on that pin by plugging in usb with no battery connected 2011-11-17T22:47:26 < Laurenceb_> which shouldnt have happened - too many things wrong on my pcb 2011-11-17T22:47:46 < Laurenceb_> anyway, thanks for the help 2011-11-17T22:49:13 < Thorn> try measuring resistance from that pin to vcc and gnd or something 2011-11-17T22:49:46 < Laurenceb_> yeah ok 2011-11-17T22:49:50 < Thorn> if it works as a normal gpio but not as an EXTI source it's strange 2011-11-17T22:50:13 < Laurenceb_> well ive hacked a resistor between it and USB now 2011-11-17T22:50:23 < Laurenceb_> and it goes to 5V and 0v 2011-11-17T22:53:14 < Laurenceb_> through 10K 2011-11-17T23:06:05 < Laurenceb_> are there any USB examples for the stm32f1 anywhere? 2011-11-17T23:06:49 < Thorn> there're some appnotes 2011-11-17T23:07:35 < Laurenceb_> i can find the USB-FS-Device_Driver 2011-11-17T23:07:41 < Laurenceb_> cant work it out :P 2011-11-17T23:07:42 < Thorn> CDC, VCP and something else (mass storage?) too 2011-11-17T23:07:59 < Laurenceb_> yeah i want to impliment mass storage 2011-11-17T23:08:05 < Laurenceb_> should probably just google 2011-11-17T23:08:08 < Thorn> there's an audio player demo for f4 2011-11-17T23:08:30 < Thorn> I've seen a whole book on mass storage somewhere 2011-11-17T23:10:10 < Laurenceb_> lol 2011-11-17T23:10:23 < Laurenceb_> the fact it takes a whole book is bad 2011-11-17T23:20:21 < Laurenceb_> https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex_mx_stm32%2FUSB%20Mass%20Storage%20with%20SPI%20Flash%20Storage&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=463 2011-11-17T23:20:25 < Laurenceb_> eeeeek sorry 2011-11-17T23:22:04 < Thorn> flash needs error correction codes doesn't it 2011-11-17T23:22:47 < Thorn> can you implement those efficiently on a microcontroller? 2011-11-17T23:25:22 < Laurenceb_> oh wow 2011-11-17T23:25:24 < Laurenceb_> http://www.st.com/stonline/stappl/resourceSelector/app?page=resourceSelector&doctype=FIRMWARE&SubClassID=1169 2011-11-17T23:25:29 < Laurenceb_> they have tons of stuff 2011-11-17T23:25:38 < Laurenceb_> i just grabbed what i found on github :P 2011-11-17T23:26:12 < Laurenceb_> lol i probably could have saved myself a few weeks work with the advanced i2c examples 2011-11-17T23:32:06 < jnosky> The f4 has the ecc gen in hardware 2011-11-17T23:47:56 < Laurenceb_> sweet - theres a USB- uSD mass storage example 2011-11-17T23:47:58 < Laurenceb_> epic 2011-11-17T23:48:20 < Laurenceb_> just combine that with FatFS and instant datalogger 2011-11-17T23:53:49 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has quit [Ping timeout: 240 seconds] 2011-11-17T23:55:45 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has joined ##stm32 --- Day changed Fri Nov 18 2011 2011-11-18T00:00:44 < grummund> UM0424 presumably 2011-11-18T00:04:19 < Laurenceb_> their SD driver doesnt use DMA :( 2011-11-18T00:04:28 < Laurenceb_> - the spi version of it 2011-11-18T00:10:27 -!- BadDwarf [~BadDwharf@02797120.bb.sky.com] has quit [Ping timeout: 245 seconds] 2011-11-18T00:12:29 < whitequark> is there a not braindead libc for stm32's? the one I've seen (something recommended by ST) was bloated beyond any reason and looked like it was written by bad unix developer in late 80's 2011-11-18T00:13:01 < whitequark> google says there are newlib and libopenstm32. If someone has used any of them, I'd like to hear about experience 2011-11-18T00:13:55 < Thorn> newlib is included with codesourcery 2011-11-18T00:14:16 < Thorn> I used strcmp from it :) 2011-11-18T00:14:54 < whitequark> I have written my own. It's quite painful to define a register and miss a field or misplace a bit, through 2011-11-18T00:15:06 < Thorn> there're also some very lightweight implementations of printf() that don't use mlalloc() out there 2011-11-18T00:15:41 < Laurenceb_> ive got one on my github 2011-11-18T00:15:52 < Laurenceb_> from pascal stang, with a lot of mads by me 2011-11-18T00:15:59 < Laurenceb_> **mods 2011-11-18T00:16:03 < whitequark> my one is https://github.com/whitequark/libstm32 2011-11-18T00:16:12 < whitequark> Laurenceb_: can you post a link? 2011-11-18T00:16:21 < Laurenceb_> printf function 2011-11-18T00:16:36 < whitequark> фр 2011-11-18T00:16:38 < whitequark> *ah 2011-11-18T00:17:17 -!- dekar [~dekar@drms-4d01518f.pool.mediaWays.net] has joined ##stm32 2011-11-18T00:17:18 < Laurenceb_> https://github.com/Laurenceb/Dactyl/blob/master/Util/rprintf.c 2011-11-18T00:18:19 < whitequark> this is what I call a "sane" and "convenient" definition: https://github.com/whitequark/libstm32/blob/master/include/stm32/rcc.h 2011-11-18T00:20:10 < BrainDamage> whitequark: libstm32 is now called libopencm3 2011-11-18T00:20:44 < whitequark> BrainDamage: that's my own libstm32 :D 2011-11-18T00:20:55 < BrainDamage> ah 2011-11-18T00:21:52 < BrainDamage> you might want a different name then :p 2011-11-18T00:22:22 < Laurenceb_> my printf suffers some classic errors in float print XD 2011-11-18T00:22:26 < whitequark> BrainDamage: I'd rather ditch it completely. I don't have resources to maintain a libc 2011-11-18T00:22:33 < Laurenceb_> 0.3 is 0.2999999999999999999 2011-11-18T00:22:57 < Laurenceb_> but way smaller than standard printf 2011-11-18T00:23:00 < whitequark> Laurenceb_: that's not an error (nor the bug) in the printf. 2011-11-18T00:23:39 < Laurenceb_> well there are techniques ot stop that happening 2011-11-18T00:23:46 < Laurenceb_> but i didnt bother XD 2011-11-18T00:24:47 < Laurenceb_> try on your pc with gcc and you wont see reoccurring 9 2011-11-18T00:25:00 < whitequark> they're doing it wrong. FPU isn't guilty of people prefering some random "round" numbers, and thankfully it doesn't even know about decimal arithmetics. 2011-11-18T00:25:17 < Laurenceb_> i know 2011-11-18T00:25:25 < whitequark> And if glibc displays 0.3 instead, they may hide some serious bugs. 2011-11-18T00:25:43 < Laurenceb_> for sane purposes of noisy data that error is irrelevant 2011-11-18T00:26:00 < whitequark> ok... 2011-11-18T00:26:26 < whitequark> then don't ask why in some comparsion 0.3 is not equal to 0.3 or whatever. 2011-11-18T00:26:38 < whitequark> the rounding should be explicit. 2011-11-18T00:26:49 < Laurenceb_> heh feel free to offer a correction XD 2011-11-18T00:27:37 < whitequark> glibc does not even considers most bugs as requiring a fix. do you think they'll listen to me? 2011-11-18T00:27:50 < whitequark> * glibc maintainers does not even consider 2011-11-18T00:29:38 < whitequark> hm, I like the overall look of libopencm3 2011-11-18T00:30:02 < whitequark> but I wonder why they don't inline one-liners 2011-11-18T00:30:16 < whitequark> does gcc do that? 2011-11-18T00:33:40 < Laurenceb_> sorry i thought you were talking about my printf 2011-11-18T00:34:22 < Laurenceb_> https://github.com/Laurenceb/Dactyl/blob/master/Util/rprintf.c#L207 <- probably very flawed 2011-11-18T00:36:44 < whitequark> oh. 2011-11-18T00:54:56 -!- tech2077 [~matthew@adsl-76-247-250-64.dsl.hstntx.sbcglobal.net] has quit [Quit: Leaving] 2011-11-18T01:28:01 < Laurenceb_> http://uk.farnell.com/stmicroelectronics/stm32f4discovery/board-eval-stm32f4-discovery/dp/2009276 2011-11-18T01:28:10 < Laurenceb_> cheaper than RS (if you are in the UK) 2011-11-18T01:46:45 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2011-11-18T01:55:52 -!- Laurenceb_ [~Laurence@host86-178-235-137.range86-178.btcentralplus.com] has quit [Ping timeout: 240 seconds] 2011-11-18T02:00:48 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Read error: Connection reset by peer] 2011-11-18T02:01:04 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-18T02:01:07 -!- whitequark [~whitequar@whitequark.static.corbina.ru] has quit [Ping timeout: 258 seconds] 2011-11-18T02:29:11 -!- whitequark [~whitequar@2002:1fba:61b3::1] has joined ##stm32 2011-11-18T02:43:27 < Thorn> my stm32-controlled fpga-based 7-segment dislay is working 2011-11-18T02:49:45 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [] 2011-11-18T03:52:14 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2011-11-18T07:01:34 -!- BadDwarf [~BadDwharf@02797120.bb.sky.com] has joined ##stm32 2011-11-18T07:21:09 -!- BadDwarf [~BadDwharf@02797120.bb.sky.com] has quit [Read error: Connection reset by peer] 2011-11-18T07:22:44 -!- BadDwarf [~BadDwharf@02797120.bb.sky.com] has joined ##stm32 2011-11-18T07:39:38 < jpa-> that is sure a lot of hardware to drive a 7-segment display :) 2011-11-18T08:22:08 * grummund wonders if the stm32 drives the fpga, or the other way around... 2011-11-18T09:17:38 -!- dekar_ [~dekar@drms-590c5b11.pool.mediaWays.net] has joined ##stm32 2011-11-18T09:21:11 -!- dekar [~dekar@drms-4d01518f.pool.mediaWays.net] has quit [Ping timeout: 258 seconds] 2011-11-18T09:35:01 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has quit [Ping timeout: 240 seconds] 2011-11-18T10:24:37 -!- whitequark [~whitequar@2002:1fba:61b3::1] has quit [Ping timeout: 240 seconds] 2011-11-18T10:25:31 -!- whitequark [~whitequar@2002:1fba:61b3::1] has joined ##stm32 2011-11-18T11:41:39 * Tom_itx wonders what the 7-segment display _was_ in the previous life 2011-11-18T11:48:33 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-18T11:48:36 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-18T12:14:37 -!- biot [~bert@kiutl.biot.com] has quit [Ping timeout: 240 seconds] 2011-11-18T12:16:09 -!- biot [~bert@kiutl.biot.com] has joined ##stm32 2011-11-18T12:53:41 -!- BadDwarf [~BadDwharf@02797120.bb.sky.com] has quit [Quit: Leaving] 2011-11-18T13:16:13 * erik-k tries to again understand that printf and atof actually won't work on his stm unless he writes an entire bloody MMU. 2011-11-18T13:21:17 <+Steffanx> huh? 2011-11-18T13:22:04 < erik-k> That's what I was told when I posted the error I got with _sbrk 2011-11-18T13:22:20 < erik-k> That I need to write malloc 2011-11-18T13:22:49 < erik-k> (error shows up iff atof, strtod, printf, etc are used) 2011-11-18T13:23:09 < karlp> malloc is not really an mmu 2011-11-18T13:24:15 <+Steffanx> It's only ~15 lines of code erik-k 2011-11-18T13:25:13 <+Steffanx> https://sites.google.com/site/stm32discovery/open-source-development-with-the-stm32-discovery/getting-newlib-to-work-with-stm32-and-code-sourcery-lite-eabi never tried it though 2011-11-18T13:27:08 < erik-k> ... 2011-11-18T13:27:24 <+Steffanx> …. 2011-11-18T13:27:36 < erik-k> And this is not already done long ago? 2011-11-18T13:27:59 < karlp> yep, by hundreds of thousands of people, who all have their idea of the perfect look of a wheel 2011-11-18T13:29:26 <+Steffanx> How is it going with your stlink-tool karlp ? 2011-11-18T13:29:26 < erik-k> -_- 2011-11-18T13:29:39 < karlp> not mine, "ours" 2011-11-18T13:29:53 < karlp> it's now working well for people on F1, f4, L1 2011-11-18T13:29:59 < karlp> on windows, linux and macosx 2011-11-18T13:30:01 <+Steffanx> Waow :) 2011-11-18T13:30:12 < karlp> various tweaks people would like, ie, the name :) 2011-11-18T13:30:24 < karlp> and docs still need some updating, but it's good. 2011-11-18T13:30:26 <+Steffanx> Where can i find it? 2011-11-18T13:30:32 < karlp> texane master is uptodate 2011-11-18T13:31:10 < karlp> Rious and jnosky here are the guys using it on OSX if you have any newer problems :) 2011-11-18T13:31:58 <+Steffanx> So the readme isn't up to date anymore? 2011-11-18T13:32:17 <+Steffanx> "If you are targetting F1 devices, with either stlinkv1 or v2 hardware, you _need_ to use karlp's libwork2 branch. " 2011-11-18T13:34:33 < karlp> merged in one patch too soon :) 2011-11-18T13:34:57 < karlp> it was very messy for a few days, as all the branches came together again 2011-11-18T13:36:17 < karlp> I've got some cleanup in my repo, but it's not functional stuff, it's things like removing that notice again, updating the list of known tested devices, making the logging more uniform and controllable, 2011-11-18T13:36:21 < karlp> nothing functional 2011-11-18T13:45:09 <+Steffanx> I suck so hard at this.. compiling stuff :P 2011-11-18T13:45:58 <+Steffanx> Especially when it doesn't work very well 2011-11-18T13:46:19 < karlp> it should be, git clone.... make. 2011-11-18T13:46:35 <+Steffanx> Yeah, I have libusb1.0 but it can't find it 2011-11-18T13:46:45 <+Steffanx> The header files 2011-11-18T13:47:02 < karlp> on debina, it's apt-get install libusb1.0-0-dev 2011-11-18T13:47:12 < karlp> no idea for OSX, 2011-11-18T13:48:04 <+Steffanx> GCC doesn't look in "/opt/local/include/". I added it to the GCC flags, but i've no idea if that's the right way 2011-11-18T13:49:17 <+Steffanx> I mean.. i have to edit all make files for that 2011-11-18T13:53:51 <+Steffanx> Hmpf why karlp ? 2011-11-18T13:54:51 <+Steffanx> It's in the dir 'gdbserver' the files are called 'gdb-XX' and it builds as 'st-util' :) 2011-11-18T13:55:01 -!- whitequark [~whitequar@2002:1fba:61b3::1] has quit [Ping timeout: 240 seconds] 2011-11-18T13:55:07 -!- whitequark [~whitequar@2002:1fba:61b3::1] has joined ##stm32 2011-11-18T13:58:27 < karlp> I can't help you very well to make sure that the libusb headers are in system paths for your system's gcc :) 2011-11-18T13:59:00 <+Steffanx> I just changed the make files, it compiles now 2011-11-18T14:01:41 <+Steffanx> Hmm, I can't open the device "another process has device opened for exclusive access" :S 2011-11-18T14:03:38 < karlp> do you have something else using the stlink hardware? 2011-11-18T14:03:53 < karlp> does OSX need configs to let non-root users grab usb ports? are you root? 2011-11-18T14:04:08 < karlp> for OSX specifics, you're going to need to ask one of the OSX guys I'm afraid 2011-11-18T14:04:08 <+Steffanx> Nothing should be using it 2011-11-18T14:08:44 <+Steffanx> Some driver probably claims it because it's a mass storage device-ish thing 2011-11-18T14:14:17 <+Steffanx> How nice 2011-11-18T14:15:52 <+Steffanx> I can unload the usb masstorage class driver, but that needs a reboot. And it's not something i really want to do 2011-11-18T14:34:05 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Read error: No route to host] 2011-11-18T14:35:00 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-18T14:35:03 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-18T14:42:02 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Read error: No route to host] 2011-11-18T14:55:01 < erik-k> Alright, it seems "all" I need to do is find out what value to give it for END in the linker. 2011-11-18T14:55:59 < erik-k> Is END relative to beginning of RAM or memory map? 2011-11-18T15:24:38 < karlp> you will want to provide the address of the end of ram 2011-11-18T15:24:48 < karlp> so that the stack can grown downwards 2011-11-18T15:24:55 < Laurenceb> the END of the WORLD 2011-11-18T15:38:48 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-18T15:38:51 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-18T15:44:08 -!- Xamusk [~X@200.20.218.11] has joined ##stm32 2011-11-18T16:01:50 -!- Xamusk [~X@200.20.218.11] has quit [Ping timeout: 244 seconds] 2011-11-18T16:45:40 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-18T17:51:09 < dekar_> karlp, OSX allows non-root users to access USB, at least for HID 2011-11-18T17:51:25 < dekar_> I am only using HID cause of Windows anyway 2011-11-18T17:58:03 -!- Xamusk [~X@186.221.10.157] has joined ##stm32 2011-11-18T18:02:35 -!- Xamusk [~X@186.221.10.157] has quit [Ping timeout: 252 seconds] 2011-11-18T18:15:52 < karlp> dekar_: do you know if there's some mechanism like modprobe black lists that would let steffanx turn off usb-storage for a certain vid/pid? 2011-11-18T18:16:20 < karlp> Steffanx: the old code used to have a delay of 5-7 seconds, to allow time for the OS to detach the usb-storage drivers before reattaching 2011-11-18T18:16:52 < karlp> on linux, as we don't use usb-storage for stlinkv1 anymore, there's just a modprobe rule to disable mass-storage, so the device can be detached and reattached immediately 2011-11-18T18:17:04 < karlp> it may be that on osx, the wait needs to be there? 2011-11-18T18:27:02 < Laurenceb> usbd_msc_core.h 2011-11-18T18:27:10 < Laurenceb> ^any idea where that should be? 2011-11-18T18:59:08 < grummund> Laurenceb: which project is that from and which mcu do you have?# 2011-11-18T19:16:24 < Laurenceb> ST example 2011-11-18T19:16:37 < Laurenceb> ive got it now - they wrote a new USB library 2011-11-18T19:32:00 <+Steffanx> karlp there's a method do unload a driver, but that doesn't seem to work for mass storage 2011-11-18T19:32:23 <+Steffanx> And i don't want to 'permanently' disable it 2011-11-18T19:32:58 < grummund> Laurenceb: which example? i'm playing with USB on F103 mcu, just so curious... 2011-11-18T19:33:25 < Laurenceb> http://www.st.com/internet/com/SOFTWARE_RESOURCES/SW_COMPONENT/FIRMWARE/stm32_f105-07_f2xx_usb-host-device_lib.zip 2011-11-18T19:35:22 < grummund> ok, explains why i don't have that file 2011-11-18T19:37:49 < karlp> Steffanx: you probably want to permanently disable mass storage for the stlink v1 usb VID and PID 2011-11-18T19:38:04 < karlp> unless you _realllly_ want to see that drive pop up with the three url shortcuts on it. 2011-11-18T19:38:29 <+Steffanx> I don't see that karlp :) 2011-11-18T19:38:42 <+Steffanx> os x doesn't really understands what do with it 2011-11-18T19:38:44 < karlp> well, that's the only reason you would want usb-storage enabled for the stlink v1 pid 2011-11-18T19:38:45 <+Steffanx> *knows 2011-11-18T19:38:59 <+Steffanx> I don't know if and how you disable it for a single device 2011-11-18T19:39:02 < karlp> and letting OSX even try and work out what to do with it is just unproductive :) 2011-11-18T19:39:08 < karlp> yeah, ask Rious and jnosky :) 2011-11-18T19:39:15 < karlp> I don't know either :) 2011-11-18T19:39:22 <+Steffanx> Rious and jnosky :) 2011-11-18T19:39:42 < karlp> it's weekend time here, and I'm going home! 2011-11-18T19:40:06 <+Steffanx> Hey, you're not work-a-holic? 2011-11-18T20:00:55 < Laurenceb> Util/USB/usb_bsp.c:94:3: warning: implicit declaration of function 'RCC_OTGFSCLKConfig' 2011-11-18T20:00:59 < Laurenceb> what the hell ST 2011-11-18T20:01:11 < Laurenceb> been all day trying to compile their example mass storage 2011-11-18T20:02:36 <+Steffanx> poor you 2011-11-18T20:14:49 < Thorn> OTG is only in f105/107 no? 2011-11-18T20:16:14 < Laurenceb> but its in the header file 2011-11-18T20:16:16 < Laurenceb> oh 2011-11-18T20:16:53 < grummund> Laurenceb: which mcu do you have? 2011-11-18T20:17:11 < Laurenceb> f103 2011-11-18T20:17:21 < Laurenceb> damn im screwed 2011-11-18T20:17:24 < grummund> then you're wasting your time with that :-/ 2011-11-18T20:17:44 < Laurenceb> :( 2011-11-18T20:17:52 < grummund> try UM0424 2011-11-18T20:17:59 < grummund> like i mentioned yesterday :P 2011-11-18T20:19:20 < Laurenceb> sigh 2011-11-18T20:19:28 < Laurenceb> wasted my time with this 2011-11-18T20:20:09 < Laurenceb> oh well im off 2011-11-18T20:20:23 < Laurenceb> will work on this next week, probably all of next week at thsi rate :( 2011-11-18T20:21:21 < Laurenceb> where the hell can i download it? 2011-11-18T20:21:47 < grummund> on the st site under resources for the F103 2011-11-18T20:22:59 < grummund> CD00158241.pdf and um0424.zip 2011-11-18T20:24:21 < Laurenceb> ah 2011-11-18T20:24:44 < Laurenceb> ive gtg, cya 2011-11-18T20:55:10 < jpa-> i wonder how fast the dma reacts.. like if i have a timer to trigger a read from IO port, what is the maximum latency? 2011-11-18T20:55:56 -!- Xamusk [~X@186.221.10.157] has joined ##stm32 2011-11-18T20:59:46 < jpa-> hmm.. in fact, i would need a DMA sequence to every 8 cycles: 1) write 1 to IO port 2) read port 3) write 0 to IO port 4) read port 2011-11-18T23:13:57 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-18T23:43:46 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-18T23:44:28 <+Steffanx> Can you use DMA to read/write from ports jpa- ? 2011-11-18T23:44:36 <+Steffanx> You just give the address to the port? 2011-11-18T23:45:15 <+Steffanx> * Uhm, read the port using the address 2011-11-18T23:45:20 <+Steffanx> and dma 2011-11-18T23:46:26 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 244 seconds] 2011-11-18T23:55:51 -!- vpopov [~happylife@dyn-50-92.dzer.fttbee.kis.ru] has joined ##stm32 2011-11-18T23:59:05 -!- phantone is now known as phantoxe --- Day changed Sat Nov 19 2011 2011-11-19T00:59:58 -!- vpopov [~happylife@dyn-50-92.dzer.fttbee.kis.ru] has quit [Read error: No route to host] 2011-11-19T01:56:07 < erik-k> Did some more digging into my _sbrk problem... it's not about _sbrk, I need to define the 'end' symbol so it know where malloc can begin 2011-11-19T01:56:36 < erik-k> But is that absolute memory address, or relative to start of ram? 2011-11-19T02:25:52 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has joined ##stm32 2011-11-19T03:10:01 -!- Xamusk [~X@186.221.10.157] has quit [Read error: Operation timed out] 2011-11-19T03:26:47 -!- TechIsCool [d1a657bc@gateway/web/freenode/ip.209.166.87.188] has joined ##stm32 2011-11-19T03:26:53 < TechIsCool> anyone in here? 2011-11-19T03:39:01 < jnosky> Ahh I had that .end problem before 2011-11-19T03:39:18 < jnosky> With the lpc2148, and maybe it was newlib 2011-11-19T03:39:29 < jnosky> You just gotta put that in the linker script 2011-11-19T03:45:09 < erik-k> jnosky: PROVIDE(end = .);? That exactly? 2011-11-19T03:45:44 < erik-k> Thought it needed an actual end-of-static-variable-storage address 2011-11-19T03:55:26 * erik-k really needs to resolve this, because this is going nowhere without a working atof and printf, it's just too much of a PITA 2011-11-19T04:41:08 < erik-k> Anyone? 2011-11-19T05:09:45 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2011-11-19T05:10:49 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-19T05:10:52 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-19T05:15:26 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2011-11-19T05:16:22 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-19T05:16:25 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-19T05:18:49 -!- AaronM [~Aaron@adsl-74-226-119-171.mem.bellsouth.net] has joined ##stm32 2011-11-19T05:18:49 -!- AaronM [~Aaron@adsl-74-226-119-171.mem.bellsouth.net] has quit [Changing host] 2011-11-19T05:18:49 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has joined ##stm32 2011-11-19T05:25:02 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 245 seconds] 2011-11-19T05:25:54 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-19T05:25:56 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-19T05:30:56 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2011-11-19T05:32:13 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-19T05:32:16 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-19T05:36:40 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds] 2011-11-19T05:37:45 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-19T05:37:48 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-19T05:43:52 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2011-11-19T05:45:41 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-19T05:45:44 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-19T05:51:37 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2011-11-19T05:52:43 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-19T05:52:46 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-19T06:08:04 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2011-11-19T06:10:05 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-19T06:11:18 -!- zlog_ [~zlog@ip68-102-110-69.ks.ok.cox.net] has joined ##stm32 2011-11-19T06:11:45 -!- zlog [~zlog@ip68-102-110-69.ks.ok.cox.net] has quit [Ping timeout: 260 seconds] 2011-11-19T06:12:21 -!- zlog_ [~zlog@ip68-102-110-69.ks.ok.cox.net] has quit [Remote host closed the connection] 2011-11-19T06:12:41 -!- zlog [~zlog@ip68-102-110-69.ks.ok.cox.net] has joined ##stm32 2011-11-19T06:23:42 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has quit [Quit: Quit] 2011-11-19T06:25:51 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2011-11-19T06:25:52 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 245 seconds] 2011-11-19T06:27:29 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-19T06:27:32 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-19T07:21:15 -!- TechIsCool [d1a657bc@gateway/web/freenode/ip.209.166.87.188] has quit [Ping timeout: 265 seconds] 2011-11-19T07:42:35 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has quit [Quit: OOOOOO Whats that....] 2011-11-19T09:00:37 -!- TechIsCool [d1a657bc@gateway/web/freenode/ip.209.166.87.188] has joined ##stm32 2011-11-19T09:01:45 < TechIsCool> I need some help with my SysTick_Config I am getting confused and don't understand I am trying to output a 10us interupt and can't get it to work properly can anyone help I am on the stm32f4 2011-11-19T09:42:52 -!- TechIsCool [d1a657bc@gateway/web/freenode/ip.209.166.87.188] has quit [Ping timeout: 265 seconds] 2011-11-19T10:34:04 -!- Xunil [~xunil@paxil.xunil.net] has joined ##stm32 2011-11-19T11:06:06 -!- vpopov [~happylife@dyn-50-92.dzer.fttbee.kis.ru] has joined ##stm32 2011-11-19T12:44:11 < grummund> 10us is pretty fast, are you sure? 2011-11-19T12:45:58 <+Steffanx> He's not here :) 2011-11-19T12:49:06 < grummund> well are you sure? :P 2011-11-19T12:49:21 <+Steffanx> Yeah I am 2011-11-19T12:49:37 < grummund> that's all right then 2011-11-19T12:49:38 < jpa-> 42 minutes is pretty fast 2011-11-19T12:49:39 <+Steffanx> A tick very 1600 cycles is doable 2011-11-19T12:50:05 < jpa-> your processor runs at 160MHz? :o 2011-11-19T12:50:15 <+Steffanx> The stm32f4 does ? 2011-11-19T12:50:24 <+Steffanx> *can 2011-11-19T12:50:31 < jpa-> well i don't have one 2011-11-19T12:50:37 < jpa-> my cpu runs at 72 MHz tops 2011-11-19T12:50:43 < jpa-> in reality it runs at 24MHz. 2011-11-19T12:50:44 <+Steffanx> Overclock it to 128 2011-11-19T12:50:51 <+Steffanx> dekar_ did that 2011-11-19T12:51:37 < grummund> i did something like that by accident 2011-11-19T12:51:47 <+Steffanx> :) 2011-11-19T12:52:16 < grummund> 12MHz crystal fitted but ST code defaults to 8MHz crystal 2011-11-19T12:52:32 <+Steffanx> Hehe 2011-11-19T13:30:09 -!- vpopov [~happylife@dyn-50-92.dzer.fttbee.kis.ru] has quit [Read error: Connection reset by peer] 2011-11-19T13:34:06 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has joined ##stm32 2011-11-19T14:15:24 < grummund> i've been doing some reading on embedded linux and arrived at the conclusion that "elf" vs. "eabi" debate is only relevant for targeting a system with Linux. 2011-11-19T14:15:55 < jpa-> "elf" is a horrible way to define an ABI 2011-11-19T14:15:58 < grummund> for bare metal hardware "elf" vs. "eabi" is irrelevant, it seems. 2011-11-19T14:16:15 < jpa-> "eabi" is atleast a standard :) 2011-11-19T14:16:46 < grummund> hmm, well i'm using elf and it works... 2011-11-19T14:17:36 < grummund> does it not all arrive at the same binary once linked/stripped and flashed to the device? 2011-11-19T14:18:31 < jpa-> not necessarily 2011-11-19T14:18:37 < jpa-> eabi defines some stack alignment rules 2011-11-19T14:18:50 < jpa-> but it all only matters if you want to use some pre-compiled libraries 2011-11-19T14:19:20 < grummund> yes. e.g. with an OS 2011-11-19T14:20:25 < grummund> for a project compiled all from source and to a single binary blob, it makes no difference, right? 2011-11-19T14:20:48 < grummund> well that's as much as i understand :P 2011-11-19T14:20:58 < jpa-> yeah 2011-11-19T14:21:03 <+Steffanx> http://imgs.xkcd.com/comics/standards.png 2011-11-19T14:21:18 < jpa-> i don't know if ST has any binary libraries 2011-11-19T14:22:43 < grummund> Steffanx, :D 2011-11-19T15:41:46 <+Steffanx> Silence 2011-11-19T16:21:59 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-19T17:21:49 < jnosky> Erik 2011-11-19T17:21:51 < jnosky> . = ALIGN(4); /* advance location counter to the next 32-bit boundary */ 2011-11-19T17:21:51 < jnosky> _bss_end = . ; /* define a global symbol marking the end of the .bss section */ 2011-11-19T17:21:51 < jnosky> } 2011-11-19T17:21:51 < jnosky> _end = .; /* define a global symbol marking the end of application RAM */ 2011-11-19T17:21:51 < jnosky> end = .; /* define a global symbol marking the end of application RAM */ 2011-11-19T17:22:46 < jnosky> I just put those ;ast two lines at the end of the .lds 2011-11-19T19:09:17 -!- TechIsCool [c6e4d095@gateway/web/freenode/ip.198.228.208.149] has joined ##stm32 2011-11-19T19:12:10 -!- TechIsCool [c6e4d095@gateway/web/freenode/ip.198.228.208.149] has quit [Client Quit] 2011-11-19T20:36:30 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-19T20:39:04 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 240 seconds] 2011-11-19T21:25:25 < Xunil> morning... 2011-11-19T21:25:40 < jpa-> evening 2011-11-19T21:25:55 < Xunil> don't suppose anyone has the gcc arm toolchain compiled for x86_64 linux, do they? i've got a tar file of the toolchain but it's built for i386 2011-11-19T21:26:09 < Xunil> everything works except gdb, which wants ncurses, yada yada... turns into a pain in the neck. 2011-11-19T21:26:29 < Xunil> i'm trying to port a Forth implementation - Riscy Pygness - to the STM32F4 Discovery board. 2011-11-19T21:26:35 < jpa-> if you need just gdb, it shouldn't be much work to compile 2011-11-19T21:26:39 < BrainDamage> I've built it myself no problem 2011-11-19T21:27:00 < BrainDamage> but it's shared linked, I hightly doubt it'll work for you 2011-11-19T21:27:06 < Xunil> nod, ok 2011-11-19T21:27:11 < BrainDamage> unless you got arch as well, and a recent set of libs 2011-11-19T21:27:14 < Xunil> i'll just build it... not that big of a deal, as yous ay 2011-11-19T21:30:23 < Laurenceb_> argggg 2011-11-19T21:30:30 < Laurenceb_> why is USB so complex 2011-11-19T21:30:57 < jpa-> so that it would fit in a nutshell 2011-11-19T21:31:06 < Laurenceb_> lol 2011-11-19T21:31:19 < Laurenceb_> who suggested i use UM0424 yesterday? 2011-11-19T21:35:45 < jpa-> grummund: 2011-11-19T21:43:15 < Laurenceb_> oh yeah 2011-11-19T21:49:02 < whitequark> BrainDamage: LD_LIBRARY_PATH works just fine if applied wisely 2011-11-19T21:49:56 < BrainDamage> but I'd have to send him my libc 2011-11-19T21:50:07 < BrainDamage> and whatever else it uses 2011-11-19T22:09:33 < Laurenceb_> -I/ should allow me to #include files from that folder right? 2011-11-19T22:10:39 < jpa-> yes 2011-11-19T22:11:47 < Tom_itx> Laurenceb bluetooth is worse than usb 2011-11-19T22:12:38 < Tom_itx> i've heard LUFA has been ported to ARM but i don't know where the work is 2011-11-19T22:13:35 < Tom_itx> http://www.fourwalledcubicle.com/LUFA.php 2011-11-19T22:13:41 < Tom_itx> is the AVR original version 2011-11-19T22:14:02 <+Steffanx> nxp Tom_itx 2011-11-19T22:14:35 < Tom_itx> commercial or other? 2011-11-19T22:14:58 <+Steffanx> The LUFA port you're talkign about 2011-11-19T22:15:14 < Tom_itx> ok, i wasn't sure 2011-11-19T22:15:30 <+Steffanx> nxlpUSBlib 2011-11-19T22:15:33 <+Steffanx> -l 2011-11-19T22:15:45 < Tom_itx> are ARM variants completely different in reg structure? 2011-11-19T22:16:06 <+Steffanx> You're not allowed to port the nxpUSBLib to another arm 2011-11-19T22:16:13 <+Steffanx> iirc 2011-11-19T22:16:47 < Laurenceb_> im trying to compile um4024 2011-11-19T22:16:51 < Tom_itx> would that be like... criminal.. like sending samples to someone? 2011-11-19T22:17:11 <+Steffanx> It's not criminal .. they probably paid Dean to get such a license Tom_itx 2011-11-19T22:17:22 < Tom_itx> i'm sure 2011-11-19T22:17:33 < Tom_itx> then they're not that willing to share the source 2011-11-19T22:17:55 <+Steffanx> The source is open, you can't use it on non-nxp ARM's 2011-11-19T22:18:12 < Tom_itx> doesn't sound so open to me then 2011-11-19T22:18:30 < jpa-> indeed 2011-11-19T22:18:44 < Tom_itx> lunch. bbl 2011-11-19T22:19:37 < Laurenceb_> ther conf file has gone 2011-11-19T22:19:46 < Laurenceb_> i dont understand 2011-11-19T22:19:57 < Laurenceb_> : error: 'GPIO_InitTypeDef' undeclared 2011-11-19T22:20:17 < Laurenceb_> presumably as i need to include gpio support in the perif conf file 2011-11-19T22:20:21 < Laurenceb_> but there isnt one 2011-11-19T22:20:22 < Laurenceb_> wtf 2011-11-19T22:20:55 < Laurenceb_> has anyone tried to compile um0424? 2011-11-19T22:23:52 < Laurenceb_> omg this is horrific 2011-11-19T22:24:10 < Laurenceb_> has anyone actually tried to make a sane USB mass storage device yet? 2011-11-19T22:29:45 < grummund> it built for me but i dodn't try testing it 2011-11-19T22:29:55 < grummund> CDC usb-serial worked though 2011-11-19T22:30:20 < Laurenceb_> with gcc? 2011-11-19T22:30:28 < Laurenceb_> do you have your makefile pls? 2011-11-19T22:31:16 < Laurenceb_> did you write one from scratch? 2011-11-19T22:31:27 < Laurenceb_> im trying to write one atm but the linking is all weird 2011-11-19T22:31:30 < grummund> what toolchain do you have? 2011-11-19T22:31:35 < Laurenceb_> relative to my other projects 2011-11-19T22:31:39 < Laurenceb_> codesourcery g++ 2011-11-19T22:31:58 < grummund> ok, does that make an elf file or what? 2011-11-19T22:32:13 < grummund> i mean how does it arrive at the final binary to be flashed to the device? 2011-11-19T22:32:15 < Laurenceb_> yes 2011-11-19T22:32:22 < Laurenceb_> elf yes 2011-11-19T22:32:41 < Laurenceb_> did you make a makefile? 2011-11-19T22:32:59 < grummund> so you build an elf file and use objcopy to extract the binary image to be flashed? 2011-11-19T22:33:06 < Laurenceb_> hopefully yes 2011-11-19T22:33:10 < Laurenceb_> atm i cant compile 2011-11-19T22:33:15 < Laurenceb_> as i need a makefile 2011-11-19T22:33:26 < grummund> sure but i need to understand your toolchain 2011-11-19T22:33:38 < Laurenceb_> its basically plain gcc 2011-11-19T22:33:43 < grummund> it makes an elf file though? 2011-11-19T22:33:49 < Laurenceb_> just vanilla gcc with some patches 2011-11-19T22:33:51 < Laurenceb_> yes 2011-11-19T22:33:56 < Laurenceb_> on ubuntu 2011-11-19T22:34:09 < grummund> and then use objcopy to derive a .bin file 2011-11-19T22:34:13 < Laurenceb_> yeah 2011-11-19T22:34:21 < Laurenceb_> but i can handle all that 2011-11-19T22:34:34 < Laurenceb_> its the includes and startup file and things thats confusing me 2011-11-19T22:34:50 < grummund> what is the toolchain prefix? 2011-11-19T22:34:58 < Laurenceb_> looks like it will only work if i compile usb and perif as seperate libraries then link to them 2011-11-19T22:35:03 < grummund> arm-eabi-none-* or what? 2011-11-19T22:35:11 < Laurenceb_> just a sec ill link my makefile - its broken 2011-11-19T22:35:41 < Laurenceb_> http://pastebin.com/YwKvCAsX 2011-11-19T22:36:23 < Laurenceb_> atm i get src/fsmc_nand.c:43:3: error: 'GPIO_InitTypeDef' undeclared 2011-11-19T22:36:33 < Laurenceb_> as its not seeing the gpio headers 2011-11-19T22:36:47 < Laurenceb_> evcen tho they are included from the conf file in ./inc 2011-11-19T22:37:04 < Laurenceb_> maybe i need to define a target board or something 2011-11-19T22:37:10 < Laurenceb_> and its not my makefile 2011-11-19T22:37:43 < grummund> try that - http://pastebin.com/EHwpnZK2 2011-11-19T22:38:46 < Laurenceb_> eeeek 2011-11-19T22:38:52 < Laurenceb_> did you use a tool for that?! 2011-11-19T22:39:03 < grummund> no 2011-11-19T22:39:29 < grummund> rm -rf STM32_USB-FS-Device_Lib_V3.3.0 2011-11-19T22:39:34 < grummund> unzip -q um0424.zip 2011-11-19T22:39:40 < grummund> P=Mass_Storage; make -f $(pwd)/Makefile.$P -C STM32_USB-FS-Device_Lib_V3.3.0/Project/$P 2011-11-19T22:40:21 < grummund> save that pastebin as Makefile.Mass_Storage and then run the above 2011-11-19T22:48:00 < Laurenceb_> bbl cooking 2011-11-19T22:52:21 < grummund> thanks? 2011-11-19T22:54:45 <+Steffanx> He cooks for you grummund 2011-11-19T22:56:04 < grummund> ah 2011-11-19T23:01:07 < Laurenceb_> heh i sould if i could 2011-11-19T23:01:12 < Laurenceb_> yeah it works 2011-11-19T23:01:18 < Laurenceb_> amazing, thanks XD 2011-11-19T23:02:54 < Laurenceb_> all the linking makes my brain hurt :P 2011-11-19T23:03:12 < grummund> let's hope it runs :p 2011-11-19T23:03:20 < Laurenceb_> heh dont have the hardware here 2011-11-19T23:03:28 < Laurenceb_> i was just using the eval board file 2011-11-19T23:03:51 < Laurenceb_> will have to rewrite it to work with my hardware, but at least i can make it compile now 2011-11-19T23:04:42 < Laurenceb_> ultimately i want to swap the ST spi<->SD code for the FatFS code 2011-11-19T23:04:49 < Laurenceb_> as that uses DMA 2011-11-19T23:10:19 < Laurenceb_> ok, thanks - bbl 2011-11-19T23:11:17 < grummund> Laurenceb_: can you do me a favour? 2011-11-19T23:11:17 <+Steffanx> Have a nice diner 2011-11-19T23:21:00 < grummund> arm-elf-objdump -s Mass_Storage.elf | grep -A17 isr_vector 2011-11-19T23:21:12 < grummund> Laurenceb_: can you paste the output of ^^ 2011-11-19T23:30:01 < Tom_itx> anybody have a link to the f4 data sheet? 2011-11-19T23:30:45 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-19T23:40:45 < Tom_itx> mmm the reference manual must be the main one 2011-11-19T23:40:47 < Tom_itx> it's 13M 2011-11-19T23:41:59 < grummund> if it's anything like the F103 there are 3 main docs you need 2011-11-19T23:42:54 < grummund> datasheet, programmers manual, reference manual. 2011-11-19T23:43:06 < grummund> oh, and firmware manual (stdperiph). 2011-11-19T23:43:36 < Tom_itx> i think i found them 2011-11-19T23:43:43 < Tom_itx> which one has the registers in it? 2011-11-19T23:43:51 < Tom_itx> is there a register summary like avr has? 2011-11-19T23:45:28 < grummund> generally the RM 2011-11-19T23:46:18 < grummund> although you may find it easier to use their firmware library (stdperiph) 2011-11-19T23:46:26 < grummund> than direct register access 2011-11-19T23:48:16 < Tom_itx> i was looking at those a bit 2011-11-19T23:59:18 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [] --- Day changed Sun Nov 20 2011 2011-11-20T00:30:11 -!- TechIsCool [d1a657bc@gateway/web/freenode/ip.209.166.87.188] has joined ##stm32 2011-11-20T00:47:47 < TechIsCool> I am back still have the same question. How do I figure out timing on the stm32f4 discovery I can't seem to get it to work correctly 2011-11-20T00:56:23 < grummund> can you get 100ms systick to work? 2011-11-20T00:57:03 < TechIsCool> I have no scope so I can't confirm when I set the tick to supposibly 10ms and then multiple buy 100 to get a second it seems like it is running slow by maybe 300ms 2011-11-20T00:57:36 < TechIsCool> here is what I am setting it as if (SysTick_Config(SystemCoreClock / 100)) { /* Capture error */ while (1); } 2011-11-20T00:58:05 < TechIsCool> uint32_t SystemCoreClock = 168000000; 2011-11-20T01:03:50 < TechIsCool> all I really am trying to get out of the clock is 10us interrupt but could not figure it out and since I have no scope its easier to work in longer times and then go smaller 2011-11-20T01:04:15 < Laurenceb_> grummond: ok just a sec 2011-11-20T01:04:21 < Laurenceb_> was away sorry 2011-11-20T01:05:48 < TechIsCool> well welcome back 2011-11-20T01:12:22 < Laurenceb_> http://pastebin.com/G0rrd3t6 2011-11-20T01:12:34 < Laurenceb_> lots of Q.. odd 2011-11-20T01:12:43 < TechIsCool> what is that 2011-11-20T01:12:44 < TechIsCool> lol 2011-11-20T01:12:48 < TechIsCool> sorry noob 2011-11-20T01:13:25 < TechIsCool> actually all of my Q's are lower case not sure the difference 2011-11-20T01:13:44 < grummund> Laurenceb_: thanks. and arm-none-eabi-gcc --version ? 2011-11-20T01:14:10 < Laurenceb_> 4.5.2 2011-11-20T01:14:19 < Laurenceb_> from codesourcery - latest version 2011-11-20T01:14:24 < Laurenceb_> why? 2011-11-20T01:14:36 < grummund> my gcc is buggy i think 2011-11-20T01:14:49 < grummund> that output is the ISR vector table 2011-11-20T01:15:00 < grummund> mine needed hacking to work but yours is ok 2011-11-20T01:15:01 < Laurenceb_> hmm - vanilla gcc? 2011-11-20T01:15:10 < grummund> same source code, same makefile. 2011-11-20T01:15:17 < Laurenceb_> yeah i just grabbed the binary from mentor graphics 2011-11-20T01:15:35 < Laurenceb_> hardware is at work so i cant test 2011-11-20T01:15:46 < grummund> 4.5.2 here too 2011-11-20T01:15:59 < Laurenceb_> im going to chill out and watch some tv, its saturday night ffs XD 2011-11-20T01:16:06 < grummund> g'night 2011-11-20T01:17:02 < TechIsCool> hey grummund can you help me? 2011-11-20T01:17:55 < grummund> if it's quick... i'm off soon. 2011-11-20T01:18:23 < TechIsCool> alright how do I get a 1us interupt on the systemtick 2011-11-20T01:18:45 < grummund> that's blindingly fast, why do you want to do that? 2011-11-20T01:19:08 < TechIsCool> well I am trying to use it as a delay and I need microseconds 2011-11-20T01:19:21 < TechIsCool> should I be using a TIM? 2011-11-20T01:19:29 < grummund> ah... wel don't :P 2011-11-20T01:20:02 < grummund> For uS delay probably use a timed loop, but maybe ST have something in the library already. 2011-11-20T01:20:26 < TechIsCool> that's what I thought but I have yet to come across anything like it 2011-11-20T01:23:14 < grummund> the compiler generates a shit load of code even for an empty interrupt handler, and you want to run that a million times per second? :P 2011-11-20T01:24:09 < TechIsCool> all I am trying to do is turn a general i/o on for 10uS and then off 2011-11-20T01:25:59 < grummund> continuously? 2011-11-20T01:26:11 < TechIsCool> no 2011-11-20T01:26:34 < TechIsCool> GPIO_WriteBit(GPIOE, GPIO_Pin_4, 0); delayMicroseconds(2); //Output should be ~ 20uS long GPIO_WriteBit(GPIOE, GPIO_Pin_4, 1); delayMicroseconds(1); //Output should be ~ 10uS long GPIO_WriteBit(GPIOE, GPIO_Pin_4, 0); 2011-11-20T01:27:03 < grummund> what's this... high speed morse code? :P 2011-11-20T01:27:44 < TechIsCool> nope its for driving a GE led light string 2011-11-20T01:27:45 < TechIsCool> http://pastebin.com/Ek2vFWqJ 2011-11-20T01:28:02 < grummund> anyway, you might look at timers... (not systick though), and don't expect to generate 1us interrupts for counting. 2011-11-20T01:28:15 < TechIsCool> alright thanks for the help 2011-11-20T01:28:31 < grummund> right, i'm off... bye. 2011-11-20T01:28:36 < TechIsCool> see yah 2011-11-20T01:28:37 * grummund afk 2011-11-20T01:29:37 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2011-11-20T02:04:31 -!- TechIsCool [d1a657bc@gateway/web/freenode/ip.209.166.87.188] has quit [Ping timeout: 265 seconds] 2011-11-20T02:38:48 -!- TechIsCool [d1a657bc@gateway/web/freenode/ip.209.166.87.188] has joined ##stm32 2011-11-20T02:43:28 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has quit [Ping timeout: 240 seconds] 2011-11-20T02:43:42 < TechIsCool> does anyone know how many nop's it takes to get 1uS on the stm32f4 with a clock speed of 168Mhz? 2011-11-20T04:26:23 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-20T04:29:52 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 240 seconds] 2011-11-20T04:36:40 < karlp> so.... You took clock speed, and assumed one instruction per clock, but your expectations where't meant? 2011-11-20T04:37:43 < karlp> I mean, I are you asking because you don't feell like trying, or becauase upi dodn't feel like half way 2011-11-20T04:50:47 -!- TechIsCool [d1a657bc@gateway/web/freenode/ip.209.166.87.188] has quit [Ping timeout: 265 seconds] 2011-11-20T06:05:08 < dekar_> nop shouldn't take more than one cycle 2011-11-20T06:18:16 -!- zlog [~zlog@ip68-102-110-69.ks.ok.cox.net] has quit [Remote host closed the connection] 2011-11-20T06:20:20 -!- zlog [~zlog@ip68-102-110-69.ks.ok.cox.net] has joined ##stm32 2011-11-20T06:27:55 -!- zlog [~zlog@ip68-102-110-69.ks.ok.cox.net] has quit [Remote host closed the connection] 2011-11-20T06:28:13 -!- zlog [~zlog@ip68-102-110-69.ks.ok.cox.net] has joined ##stm32 2011-11-20T07:20:51 < Xunil> hooray! got stlink working, loaded my changes to this forth implementation, and it flashed the dev board LED like it was supposed to 2011-11-20T07:21:00 < Xunil> now to lash up a serial connection. 2011-11-20T07:28:28 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2011-11-20T07:55:21 -!- zlog [~zlog@ip68-102-110-69.ks.ok.cox.net] has quit [Remote host closed the connection] 2011-11-20T07:55:34 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2011-11-20T07:56:56 -!- zlog [~zlog@ip68-102-110-69.ks.ok.cox.net] has joined ##stm32 2011-11-20T07:57:03 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-20T08:37:42 -!- dekar_ [~dekar@drms-590c5b11.pool.mediaWays.net] has quit [Quit: This computer has gone to sleep] 2011-11-20T10:07:25 -!- zlog [~zlog@ip68-102-110-69.ks.ok.cox.net] has quit [Ping timeout: 244 seconds] 2011-11-20T10:08:45 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 260 seconds] 2011-11-20T10:18:45 -!- vpopov [~happylife@dyn-37-70.dzer.fttbee.kis.ru] has joined ##stm32 2011-11-20T11:34:05 -!- vpopov [~happylife@dyn-37-70.dzer.fttbee.kis.ru] has quit [Ping timeout: 252 seconds] 2011-11-20T11:38:34 -!- quitte [~quitte@tplink.ghb.hs-furtwangen.de] has quit [Quit: Lost terminal] 2011-11-20T11:49:13 -!- vpopov [~happylife@dyn-56-47.dzer.fttbee.kis.ru] has joined ##stm32 2011-11-20T11:55:16 -!- happylife [~happylife@212.92.145.7] has quit [Ping timeout: 258 seconds] 2011-11-20T11:57:41 -!- happylife [~happylife@212.92.145.7] has joined ##stm32 2011-11-20T13:26:09 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has joined ##stm32 2011-11-20T15:36:20 -!- Netsplit *.net <-> *.split quits: Laurenceb, Xunil, mansfeld 2011-11-20T15:36:25 -!- Netsplit *.net <-> *.split quits: erik-k 2011-11-20T15:36:29 -!- AK6L [~xunil@paxil.xunil.net] has joined ##stm32 2011-11-20T15:36:30 -!- mansfeld [~andrew@web130.webfaction.com] has joined ##stm32 2011-11-20T15:36:31 -!- mansfeld [~andrew@web130.webfaction.com] has quit [Changing host] 2011-11-20T15:36:31 -!- mansfeld [~andrew@robopoly/watson] has joined ##stm32 2011-11-20T15:36:38 -!- Netsplit over, joins: erik-k 2011-11-20T15:36:44 -!- Netsplit over, joins: Laurenceb 2011-11-20T15:46:52 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-20T15:50:37 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-20T15:51:26 -!- zlog [~zlog@ip68-102-105-167.ks.ok.cox.net] has joined ##stm32 2011-11-20T16:51:04 -!- vpopov [~happylife@dyn-56-47.dzer.fttbee.kis.ru] has quit [Ping timeout: 240 seconds] 2011-11-20T17:40:32 -!- Thorn_ [~Thorn@93-81-4-115.broadband.corbina.ru] has joined ##stm32 2011-11-20T17:40:34 -!- Thorn_ [~Thorn@93-81-4-115.broadband.corbina.ru] has quit [Changing host] 2011-11-20T17:40:34 -!- Thorn_ [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-20T17:43:13 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 252 seconds] 2011-11-20T18:23:44 -!- vpopov [~happylife@dyn-56-47.dzer.fttbee.kis.ru] has joined ##stm32 2011-11-20T18:54:52 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-20T18:54:55 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-20T18:59:45 -!- AK6L is now known as Xunil 2011-11-20T19:31:21 -!- Thorn_ is now known as Thorn 2011-11-20T20:13:15 <+Steffanx> Whoa, this channel is way to busy nowadays 2011-11-20T20:14:09 -!- Irssi: ##stm32: Total of 27 nicks [1 ops, 0 halfops, 1 voices, 25 normal] 2011-11-20T20:14:14 < jpa-> time to steal some firmware 2011-11-20T20:14:33 <+Steffanx> You left this channel? 2011-11-20T20:14:42 < jpa-> freenode crashed 2011-11-20T20:14:51 <+Steffanx> Poor you 2011-11-20T20:14:55 < jpa-> indeed 2011-11-20T20:15:07 < jpa-> i've cried for 7 days 2011-11-20T20:15:49 <+Steffanx> Yeah, izua is 'last seen' 3 weeks ago 2011-11-20T20:16:35 < Thorn> I did the layout for my pcb http://imgur.com/a/ZoegE 2011-11-20T20:17:14 <+Steffanx> What is it? 2011-11-20T20:17:33 < Thorn> Universal Serial Interface(tm) 2011-11-20T20:18:29 <+Steffanx> Just curious, why you waste so 'much' energy @ D6 and D8 :) 2011-11-20T20:18:38 <+Steffanx> Can't you use 3.3V for those led's too? 2011-11-20T20:20:03 < Thorn> TXCAN/RXCAN lines are 5V and I've no idea how these transistors will like having base above collector 2011-11-20T20:20:28 <+Steffanx> Oh 2011-11-20T20:20:36 < Thorn> if it's ever going to be above collector that is... 2011-11-20T20:21:10 < Thorn> oh wait it will 2011-11-20T20:21:22 <+Steffanx> And no protection on the USB data lines? 2011-11-20T20:22:13 <+Steffanx> And non-45 degrees lines are ugly imho .. but that's just my opinion :P 2011-11-20T20:23:25 < Tom_itx> oh lord 2011-11-20T20:23:35 <+Steffanx> Where? 2011-11-20T20:23:45 < Tom_itx> Steffanx straighten that guy out would ya? 2011-11-20T20:23:53 <+Steffanx> Time to go to church Tom_itx ? 2011-11-20T20:25:29 < jpa-> Thorn: a NPN transistor will never have base over 0.7V 2011-11-20T20:25:42 <+Steffanx> I could never make a PCB with non-45 degree angles 2011-11-20T20:26:01 <+Steffanx> Is that called perfectionism ? 2011-11-20T20:26:25 < Thorn> this thing is usb 2.0, I don't know what protection is available (and I want this board to arrive before the end of the year when the postal service is overloaded) 2011-11-20T20:26:42 <+Steffanx> Ask Tom_itx about that 2011-11-20T20:26:55 <+Steffanx> I never made a usb board WITH projection. He did 2011-11-20T20:27:31 <+Steffanx> Going to order it from seeed Thorn ? 2011-11-20T20:27:40 < Thorn> yes 2011-11-20T20:28:56 <+Steffanx> What did you use to draw this Thorn ? KiCAD? 2011-11-20T20:28:57 < Thorn> so I'm sorry but no time to make the traces pretty :) 2011-11-20T20:29:02 < Thorn> diptrace 2011-11-20T20:29:05 <+Steffanx> Hmm 2011-11-20T20:29:35 <+Steffanx> I sort of like Diptrace but it lacks so many standard components 2011-11-20T20:30:08 < Thorn> I had to make components for almost everything, hopefully no errors there 2011-11-20T20:30:45 <+Steffanx> The 3D view is nice, but the components from 3dcentralsomething never work 2011-11-20T20:31:02 <+Steffanx> 3dcontentcentral.com :) 2011-11-20T20:33:06 < Thorn> looks like I can delete the 5v trace to those leds and connect them to the 3.3V bus instead (and add a decoupling cap for the rs-485 IC and fix a couple other mistakes too...) 2011-11-20T20:33:26 <+Steffanx> :) 2011-11-20T20:34:12 < Thorn> btw, what about the top layer pour? bottom layer will be poured with ground but all the development boards that I own have top layer poured too 2011-11-20T20:34:32 <+Steffanx> Don't ask me about that :P 2011-11-20T20:34:34 < Thorn> looks like the top pour is also connected to ground 2011-11-20T20:34:41 <+Steffanx> Not VCC? 2011-11-20T20:35:01 < Thorn> Vcc is separate (wide traces) 2011-11-20T20:35:35 < Thorn> I've got an unsildered cyclone breakout board where it all is easy to see 2011-11-20T20:35:45 < Thorn> *unsoldered 2011-11-20T20:37:15 <+Steffanx> Tom_itx went to church? 2011-11-20T20:38:48 < Thorn> http://www.toporouter.com/scr/scr2.jpg 2011-11-20T20:39:16 <+Steffanx> Help? :) 2011-11-20T20:39:45 < Thorn> ^^ nice traces there 2011-11-20T20:49:21 < Thorn> looks like I may need PNP transistors for those LEDs as CAN txd/rxd lines may be high in the idle state 2011-11-20T21:04:28 < grummund> wow. which CAD package is that? 2011-11-20T21:04:51 <+Steffanx> paint grummund 2011-11-20T21:04:52 <+Steffanx> ms paint 2011-11-20T21:05:02 < Thorn> diptrace 2011-11-20T21:05:07 <+Steffanx> 4 layers in paint :) 2011-11-20T21:05:29 < Laurenceb_> do USB devices have to support Hardware suspend? 2011-11-20T21:06:16 < Thorn> I seem to recall that if usb traffic stops for some time the device has to lower its power consumption 2011-11-20T21:58:56 < jpa-> Laurenceb_: if they want to be standards compliant 2011-11-20T21:59:40 < Laurenceb_> yeah but does it have to support the pull up resistor thingy 2011-11-20T21:59:56 < Laurenceb_> hang on.. if it goes into suspend how does it come out? 2011-11-20T22:01:13 < Thorn> http://www.beyondlogic.org/usbnutshell/usb2.shtml Entering Suspend Mode 2011-11-20T22:02:24 < Laurenceb_> thanks 2011-11-20T22:03:20 < Laurenceb_> In order to maintain connected to a suspended hub or host, the device must still provide power to its pull up speed selection resistors during suspend 2011-11-20T22:03:28 < Laurenceb_> oh - so thats just for disconnect 2011-11-20T22:04:03 < Laurenceb_> trying to understand the stm3210b eval schematic - im porting the mass storage firmware to my hardware 2011-11-20T23:01:21 < Laurenceb_> grummond: my bin file is huge 2011-11-20T23:01:28 < Laurenceb_> for the mass storage example 2011-11-20T23:01:35 < Laurenceb_> its 128MB, WTF?! 2011-11-20T23:31:59 < grummund> that happened to me too... hmm, what was the problem? 2011-11-20T23:33:03 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [] 2011-11-20T23:51:50 < Laurenceb_> did it work for you? 2011-11-20T23:51:54 < Laurenceb_> this is odd 2011-11-20T23:52:12 < grummund> yeah it builds huge here too. but i've seen this before 2011-11-20T23:54:23 < Laurenceb_> hmm but it doesnt seem to be different to my other makefile 2011-11-20T23:54:28 < Laurenceb_> the elf is ok --- Day changed Mon Nov 21 2011 2011-11-21T00:04:44 < grummund> LINKER_SCRIPT = -T../Device_Firmware_Upgrade/binary_template/TrueSTUDIO/STM3210B-EVAL/stm32_flash.ld 2011-11-21T00:05:30 < grummund> Laurenceb_: edit that line in the Makefile and try again from scratch 2011-11-21T00:07:36 < Laurenceb_> yeah works for me, thanks 2011-11-21T00:08:03 < Laurenceb_> presumably the extra space was just zeros 2011-11-21T00:09:46 < Laurenceb_> im tempted to try and rebuild the project with my old makefile and linker scripts 2011-11-21T00:11:10 < Laurenceb_> as i already have my board setup 2011-11-21T00:17:14 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2011-11-21T00:19:03 < grummund> does the image run as it is? ...and detected as usb mass-storage? 2011-11-21T00:31:14 < Laurenceb_> hardware is at work 2011-11-21T00:31:26 < Laurenceb_> and anyway need to port it over to my hardware 2011-11-21T00:32:20 < Laurenceb_> https://github.com/Laurenceb/Dactyl/blob/master/makefile 2011-11-21T00:32:26 < Laurenceb_> thats my provious makefile 2011-11-21T00:33:09 < grummund> ok. i was just curious if it worked as is... all i did is make it build. 2011-11-21T00:33:19 < Laurenceb_> just added the size thingy... 2011-11-21T00:33:34 < Laurenceb_> yeah i dont think anyone had a 3210b eval board :P 2011-11-21T00:33:38 < Laurenceb_> you dont do you? 2011-11-21T00:34:40 < grummund> i did once but not now 2011-11-21T00:34:42 < Laurenceb_> im using it for a medical datalogger thingy - for my PhD work :D 2011-11-21T00:34:49 < Laurenceb_> but yeah its a custom pcb 2011-11-21T00:35:14 < grummund> the HID demo worked on my Olimex board without modification 2011-11-21T00:35:19 < Laurenceb_> cool 2011-11-21T00:35:28 < grummund> as did the CDC usb-serial demo 2011-11-21T00:35:32 < Laurenceb_> ooh i have a olimexino with usb and uSD 2011-11-21T00:35:51 < grummund> try it and see... ;) 2011-11-21T00:35:55 < Laurenceb_> yeah ive got the usb-serial working on it atm 2011-11-21T00:36:06 < Laurenceb_> im going to bed in a few minutes 2011-11-21T00:36:19 < Laurenceb_> you used an olimexino? 2011-11-21T00:37:06 < Laurenceb_> https://github.com/Laurenceb/Dactyl/blob/master/makefile#L161 <- how can i add size to all? 2011-11-21T00:37:46 < grummund> no i've got an H103 but the Olimexino looks good 2011-11-21T00:38:39 < Laurenceb_> yeah its cheap 2011-11-21T00:39:15 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-21T00:39:33 < Laurenceb_> can i add a rule to make size as part of all or something? 2011-11-21T00:39:48 < Laurenceb_> or would i have to redo it with the targets thing you used? 2011-11-21T00:39:53 * Laurenceb_ sucks at makefiles 2011-11-21T00:40:17 < grummund> if $(PROJECT).size is listed as one of TARGETS it should do it 2011-11-21T00:40:34 < Laurenceb_> ok.. 2011-11-21T00:40:49 < Laurenceb_> makefiles are even more perplexing the more i learn :P 2011-11-21T00:41:03 < grummund> yeah :P 2011-11-21T00:41:42 < grummund> thing to realise is a makefile is a rule set, not a script. 2011-11-21T00:41:46 < Laurenceb_> yeah 2011-11-21T00:42:32 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 245 seconds] 2011-11-21T00:47:07 < Laurenceb_> make: Circular size <- all dependency dropped. 2011-11-21T00:47:08 < Laurenceb_> lol 2011-11-21T00:47:28 < grummund> you broke it :p 2011-11-21T00:48:27 < Laurenceb_> circular loop :P 2011-11-21T00:48:29 < Laurenceb_> size: @echo "Size:" 2011-11-21T00:48:30 < Laurenceb_> $(SIZE) $(MAIN_OUT) $@ 2011-11-21T00:48:30 < Laurenceb_> @$(CAT) $@ 2011-11-21T00:48:34 < Laurenceb_> changed it to that 2011-11-21T00:48:48 < Laurenceb_> but i get makefile:162: *** multiple target patterns. Stop. 2011-11-21T00:50:54 < grummund> what is MAIN_OUT ? 2011-11-21T00:52:43 < Laurenceb_> everything 2011-11-21T00:53:38 < grummund> why did you change that? 2011-11-21T00:54:01 < Laurenceb_> it used to have all at the top 2011-11-21T00:54:08 < Laurenceb_> size: all 2011-11-21T00:54:39 < grummund> oh, this is your makefile? 2011-11-21T00:54:52 < grummund> not the one i pastebin'd yesterday 2011-11-21T00:54:57 < Laurenceb_> yes 2011-11-21T00:56:03 < Laurenceb_> what is $PROJECT? 2011-11-21T00:56:15 < Laurenceb_> what is $(PROJECT)? 2011-11-21T00:56:17 < grummund> so what does $MAIN_OUT resolve to? 2011-11-21T00:56:43 < Laurenceb_> line 80 2011-11-21T00:57:45 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2011-11-21T00:57:53 < grummund> size: $(MAIN_OUT) 2011-11-21T00:57:55 < grummund> $(SIZE) $(MAIN_OUT) 2011-11-21T00:58:09 < grummund> .PHONY: size 2011-11-21T00:58:39 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-21T00:59:45 < Laurenceb_> in that order? 2011-11-21T01:00:06 < grummund> i would put .PHONY first 2011-11-21T01:01:16 < grummund> but i'm not sure it matters 2011-11-21T01:02:08 < Laurenceb_> now i can do make size as before 2011-11-21T01:02:52 < Laurenceb_> but i cant run make and it runs size 2011-11-21T01:03:33 < grummund> it defaults to the first target defined in the makefile 2011-11-21T01:04:36 < Laurenceb_> ah i see, works now 2011-11-21T01:04:37 < Laurenceb_> thanks 2011-11-21T01:04:51 < Laurenceb_> i know a little bit more on how makefiles work :P 2011-11-21T01:04:55 * Laurenceb_ zzzz 2011-11-21T01:04:56 < Laurenceb_> cya 2011-11-21T01:06:03 < grummund> adios 2011-11-21T01:09:28 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has quit [Ping timeout: 240 seconds] 2011-11-21T02:54:37 < grummund> Laurenceb: that Makefile edit to fix the huge .bin file size is wrong. 2011-11-21T02:55:42 < grummund> restore the Makefile, with: 2011-11-21T02:55:46 < grummund> LINKER_SCRIPT = -T./TrueSTUDIO/STM3210B-EVAL/stm32_flash.ld 2011-11-21T02:56:09 < grummund> and instead edit the linker script itself: 2011-11-21T02:56:31 < grummund> change 2011-11-21T02:56:32 < grummund> .ARM.attributes 0 : { *(.ARM.attributes) } 2011-11-21T02:56:33 < grummund> to 2011-11-21T02:56:41 < grummund> .ARM.attributes : { *(.ARM.attributes) } > FLASH 2011-11-21T03:55:17 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2011-11-21T04:29:12 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-21T04:29:15 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-21T05:38:23 -!- vpopov [~happylife@dyn-56-47.dzer.fttbee.kis.ru] has quit [Ping timeout: 248 seconds] 2011-11-21T05:48:25 -!- Eartaker [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has joined ##stm32 2011-11-21T05:48:25 -!- Eartaker [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has quit [Changing host] 2011-11-21T05:48:25 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has joined ##stm32 2011-11-21T08:06:22 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2011-11-21T08:28:48 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-21T11:20:01 -!- Thorn__ [~Thorn@93-81-4-120.broadband.corbina.ru] has joined ##stm32 2011-11-21T11:20:01 -!- Thorn__ [~Thorn@93-81-4-120.broadband.corbina.ru] has quit [Changing host] 2011-11-21T11:20:01 -!- Thorn__ [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-21T11:21:19 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 248 seconds] 2011-11-21T11:30:17 -!- Thorn__ is now known as Thorn 2011-11-21T11:35:02 -!- happylife [~happylife@212.92.145.7] has quit [Quit: So long] 2011-11-21T11:37:33 -!- happylife [~happylife@212.92.145.7] has joined ##stm32 2011-11-21T11:48:20 -!- CheBuzz [~CheBuzz@76.164.192.124] has quit [Excess Flood] 2011-11-21T11:48:42 -!- CheBuzz [~CheBuzz@76.164.192.124] has joined ##stm32 2011-11-21T13:21:22 < erik-k> Fucking hell, where do I put "PROVIDE( end = . );" to make minor things like "printf" work? 2011-11-21T13:24:43 < Thorn> dot means current address so you probably place it where you want the symbol to point to 2011-11-21T13:24:57 < Thorn> or something like that 2011-11-21T13:29:29 < erik-k> Okay, following some other cortex .ld and putting it between .bss and ._usrstack 2011-11-21T13:29:56 < Thorn> what's that, something required by malloc()? 2011-11-21T13:30:12 < erik-k> Otherwise _sbrk fails with "undefined symbol" on .end 2011-11-21T13:30:13 < Thorn> I use a uC-friendly printf implementation instead 2011-11-21T13:30:33 < erik-k> It's not just printf, but absurdly atof requires it too 2011-11-21T13:31:56 < jpa-> newlib is annoying :F 2011-11-21T13:32:52 < erik-k> I'm not even going to ask how this linker file knows "._usrstack" means "the stack" when it appears exactly once 2011-11-21T13:37:03 < Thorn> why nobody actually writes a true microcontroller frieldly libc (with broken compatibility where required)? I've even seen the beginnings of STL/iostreams-like library for microcontrollers somewhere, but not the C library 2011-11-21T13:39:33 < Laurenceb> printf sucks 2011-11-21T13:39:41 < Laurenceb> use rprintf from pascal stang or something 2011-11-21T13:39:47 < BadDorf> might as well port a jvm to it ;p 2011-11-21T13:40:18 < erik-k> Now McRae's linker.ld has me completely lost 2011-11-21T13:40:48 < erik-k> How the hell can it possibly know where the stack goes or what "_usrstack" is when that name appears exactly once, anywhere, in any directory? 2011-11-21T13:41:03 < erik-k> .stack I'll believe, but not ._usrstack 2011-11-21T13:43:43 < Thorn> this kind of stuff should be defined in the linker script I believe. as a minimum you need a symbol for beginning of stack+1 so the startup code can place its value into address 0. but with malloc/sbrk you might need a symbol for the begigging of the stack too so it doesn't overwrite the stack (not sure about that) 2011-11-21T13:46:43 < erik-k> Oy. 2011-11-21T13:46:58 < erik-k> Which way does stack grow again? 2011-11-21T13:47:03 < Thorn> down 2011-11-21T13:47:17 < erik-k> okay, so just dumping it at the end of ram is good. 2011-11-21T13:47:17 < Laurenceb> on all architectures? 2011-11-21T13:47:19 < Thorn> heap grows up so it should start right after .bss 2011-11-21T13:47:38 < erik-k> And so I should put end = . right after the .bss then? 2011-11-21T13:47:46 < Thorn> (or .data, not sure which goes first) 2011-11-21T13:48:04 < erik-k> Which... makes that ._usrstack thing some stupid leftover from McRae's other projects 2011-11-21T13:49:53 < erik-k> Right, so, stack at end of ram, heap at end of bss, so when it goes and fucks up this time it's not the heap walking all over everything then... 2011-11-21T13:55:06 < karlp> Laurenceb: no, not on all, but often. new archs tend to follow it now, so that people stay (relatively) sane 2011-11-21T13:55:25 < Laurenceb> i see 2011-11-21T13:55:36 < jpa-> Thorn: indeed; i ended up using klibc for my libc needs, but it doesn't have atof 2011-11-21T13:56:13 < Thorn> my linker script has end and _end at the end of .bss 2011-11-21T13:57:02 < Thorn> if it's correct, then it marks the start of heap 2011-11-21T13:57:33 < Thorn> http://embdev.net/topic/129161 2011-11-21T13:58:58 < Thorn> never heard about klibc, looks interesting 2011-11-21T13:59:23 < jpa-> http://essentialscrap.com/boat/libraries.html i called my fork baselibc :P 2011-11-21T13:59:24 < karlp> yet another gpl library 2011-11-21T13:59:47 < jpa-> i think there was some "public domain libc" under development, but it was quite incomplete when i last checked 2011-11-21T14:04:57 < karlp> what's the main advantage of protobufs vs a shared header file with struct definitions? 2011-11-21T14:05:13 < karlp> is it so you don't have to have C on the other side? 2011-11-21T14:13:47 < jpa-> struct definitions are hugely platform dependent 2011-11-21T14:14:11 < jpa-> but yeah, platform and programming language portability mostly 2011-11-21T15:39:15 < Laurenceb> any idea what usb-bot is about? 2011-11-21T15:39:20 < Laurenceb> in um0402 2011-11-21T15:39:25 < Laurenceb> i think its scsi? 2011-11-21T15:40:56 < Laurenceb> trying to delete it all from my project 2011-11-21T15:41:53 < Laurenceb> i dont know what im doing :( 2011-11-21T15:42:02 < Laurenceb> presumably scsi mass storage? 2011-11-21T15:43:28 < Laurenceb> oh it uses scsi 2011-11-21T15:43:30 < Laurenceb> doh 2011-11-21T15:55:15 < Laurenceb> expected specifier-qualifier-list before '__IO' 2011-11-21T15:55:21 < Laurenceb> where is that defined? 2011-11-21T15:56:31 < Thorn> I thibk it's from cmsis,defined as volatile 2011-11-21T15:59:54 < Laurenceb> yeah got it now 2011-11-21T16:00:01 < Laurenceb> hmm just linker errors now 2011-11-21T16:00:10 < Laurenceb> ported all the USB code to my hardware 2011-11-21T16:00:51 < Laurenceb> hmm undefined references 2011-11-21T16:14:05 < Laurenceb> wohoo compiles 2011-11-21T16:53:28 < karlp> but... does it work? :) 2011-11-21T17:44:05 < Laurenceb> heh 2011-11-21T17:44:14 < Laurenceb> i need to do some rework on the board first 2011-11-21T17:44:38 < Laurenceb> i didnt realise usb mass storage used scsi before 2011-11-21T17:48:26 < Laurenceb> this datalogger board is a huge mess now - about 10 wire links 2011-11-21T17:51:10 < Thorn> is it because of scsi? :) 2011-11-21T17:52:34 < Laurenceb> nope - i screwed up the bluetooth 2011-11-21T17:52:56 -!- emeb [~ericb@ip72-223-86-178.ph.ph.cox.net] has joined ##stm32 2011-11-21T17:53:00 < Laurenceb> is there a proper protocol for setting real time clock over usb? 2011-11-21T17:53:48 < Thorn> there was an app note on this topic but over tcp/ip 2011-11-21T17:53:49 < jpa-> doubtful 2011-11-21T17:54:45 < Thorn> is your datalogger a commercial project? 2011-11-21T18:00:54 < Laurenceb> yeas 2011-11-21T18:06:47 < jnosky> @erik-k https://sites.google.com/site/stm32discovery/open-source-development-with-the-stm32-discovery/getting-newlib-to-work-with-stm32-and-code-sourcery-lite-eabi 2011-11-21T18:07:28 < jnosky> I added all those stubs but printf doesnt work for me still 2011-11-21T18:07:39 < jnosky> It now links without complaints 2011-11-21T18:07:48 < jnosky> But for some reason, it hard faults 2011-11-21T18:08:26 < jnosky> When I debug, I see the call to printf, but the code it goes to has invalid instructions 2011-11-21T18:08:56 < jpa-> make sure that you are linking to the thumb2 version of newlib 2011-11-21T18:09:22 < jpa-> in particular, you need to define -mthumb also on the linker command line, not only when compiling 2011-11-21T18:15:32 < jnosky> accroding to the debugger, the routine being called is __printf_from_thumb 2011-11-21T18:18:22 < Thorn> that's an interworking stub isn't it? 2011-11-21T18:27:48 < jnosky> tbh I dont really understand how the newlib works 2011-11-21T18:27:56 < jnosky> I get why the stubs are needed 2011-11-21T18:28:08 -!- vpopov [~happylife@dyn-56-47.dzer.fttbee.kis.ru] has joined ##stm32 2011-11-21T18:28:19 < jnosky> But I dont know how the compiler knows where to get the newlib from 2011-11-21T18:28:20 < Thorn> not on cortex-m 2011-11-21T18:28:34 < Thorn> it does not support ARM mode 2011-11-21T18:29:04 < jnosky> The first few opcodes of the printf call are valid 2011-11-21T18:29:17 < jnosky> looks like picks up pointer to string 2011-11-21T18:29:25 < jnosky> Then a BX pc 2011-11-21T18:29:27 < jnosky> nop 2011-11-21T18:29:41 < jnosky> then a bne or something like that, this is where it fails 2011-11-21T18:30:18 < jnosky> What doesnt support arm mode thorn? was that @ me? 2011-11-21T18:30:29 < Thorn> yes 2011-11-21T18:34:02 < jnosky> Whats ARM mode? 2011-11-21T18:34:17 < jnosky> You mean thumb mode? I thought M4 does both 2011-11-21T18:35:04 < Thorn> cortex-m only supports thumb-2 2011-11-21T18:35:06 < karlp> m3 doesn't support arm mode at least, and not thumb either actually, only thumb2 2011-11-21T18:43:48 < jnosky> When I summom arm toolchain doesnt that grab newlib and configure the compiler to use it? 2011-11-21T18:44:50 < jnosky> Oh ok, not thumb but thumb-2, m4 does both, iirc to get best of both, code size wise 2011-11-21T18:45:10 < jnosky> Thats prolly the bne flag its testing, to see if thumb-2 code or not 2011-11-21T18:45:32 < jnosky> But either target of the branch is invalid code... 2011-11-21T18:45:45 < jnosky> Thats where it hard faults 2011-11-21T18:46:46 < jnosky> I added a real small printf.c and it worked, But I still wanna know why newlib aint 2011-11-21T18:47:26 < jnosky> At this point im not sure if its a bad lds or a newlib config problem 2011-11-21T18:47:44 < jnosky> I think the lds is ok, since thats what true studio uses 2011-11-21T18:54:49 < karlp> where lds is a linker script? 2011-11-21T18:59:01 < jnosky> yes sorry I meant ld 2011-11-21T19:00:38 < jnosky> I didnt override any settings for summon arm toolchain, if that matters 2011-11-21T19:01:16 < jnosky> How do I know where the compiler pulls newlib from I wonder? 2011-11-21T19:01:36 < jnosky> I had previously set up arm7tdmi 2011-11-21T19:02:13 < jnosky> But I *think* those are seperate toolchains, ie newlib was configured for that when I built the crosstools 2011-11-21T19:03:26 < jnosky> One thing for sure: __printf_from_thumb is where it chokes 2011-11-21T19:04:24 < jpa-> that does sound like an interworking stub, i don't think there should be one on cortex-m3 2011-11-21T19:05:22 < Thorn> it's perfectly reasonable for a cortex-m to fail trying to execute ARM code 2011-11-21T19:05:56 < jpa-> been there done that 2011-11-21T19:08:26 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-21T19:08:28 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-21T19:18:36 < jnosky> http://msdn.microsoft.com/en-us/library/ms253941(v=vs.90).aspx 2011-11-21T19:18:45 < jnosky> I do see that BX business there 2011-11-21T19:19:25 <+Steffanx> jnosky you are one of those guys who helped with the stlink v1 on os x? 2011-11-21T19:25:42 < jnosky> No I was the guy who fixed stlink to work with the F4 2011-11-21T19:26:26 <+Steffanx> Hmm, karlp said it was you :P 2011-11-21T19:26:35 <+Steffanx> Then i have to find that other guy he mentioned :) 2011-11-21T19:26:37 <+Steffanx> Thanks anyway 2011-11-21T19:26:44 <+Steffanx> Rious you there? 2011-11-21T19:51:52 < karlp> well, those guys are using stlink on osx, 2011-11-21T19:52:46 <+Steffanx> Yeah, but that's the v2 .. which doesn't use that buggy usb mass storage shit 2011-11-21T19:52:48 < karlp> it's mostly going to come down to whether you can tell OSX to ignore the device and stop trying to use usb mass storage on it I think. 2011-11-21T20:20:06 < emeb> jnosky: thanks for getting the F4 working. 2011-11-21T20:22:07 < jnosky> emeb, yer welcome :) 2011-11-21T20:22:37 < jnosky> Im now working on getting a few of the demos working on F4 2011-11-21T20:22:48 < jnosky> The usb, there are no working examples 2011-11-21T20:23:21 < jnosky> Ive started with the CDC, virtual serial port, and I got the device detected and the serial.sys to load so far 2011-11-21T20:23:38 < jnosky> Just gotta link it to the uart now 2011-11-21T20:23:41 < emeb> Cool. I'm just using my own blinky code, playing with getting the fpu working. 2011-11-21T20:23:47 < Thorn> I'm thinking about designing a f4 demo board... or should I wait for my first one to arrive? :) 2011-11-21T20:25:05 < jnosky> I put a working flash blinker on stlink 2011-11-21T20:25:18 < emeb> Thorn: what do you need that's not on the Discovery board? 2011-11-21T20:25:25 < jnosky> That and the discovery demo 2011-11-21T20:25:36 * emeb would like an audio input codec 2011-11-21T20:25:42 < emeb> and a huge SRAM 2011-11-21T20:25:47 < Thorn> JTAG 2011-11-21T20:26:05 < emeb> JTAG is good... 2011-11-21T20:26:13 <+Steffanx> I want a huge SDRAM emeb 2011-11-21T20:26:33 < Thorn> ARGH diptrace can't edit text objects 2011-11-21T20:26:34 < emeb> Steffanx: yep - that would be good - if the STM32F4xx supported SDRAM 2011-11-21T20:26:39 <+Steffanx> Yeah :P 2011-11-21T20:26:54 * emeb is wondering if it's worth building an FPGA SDRAM controller 2011-11-21T20:27:21 < Thorn> I believe half a meg of SRAM ($2.5?) is enough for an rtos playground 2011-11-21T20:27:30 < jnosky> I wonder if you could use gpio dma somehow to do a psuedo dram interface 2011-11-21T20:27:36 < Thorn> opencores has several sdram controllers 2011-11-21T20:28:11 <+Steffanx> Just get yourself a lpc cortex-m3 with sdram controller :P 2011-11-21T20:28:18 <+Steffanx> IF you can get them though :P 2011-11-21T20:28:30 <+Steffanx> or cortex-m4.. 2011-11-21T20:28:57 < emeb> Looks like Freescale has a new Cortex-M4 family coming with SDRAM in the external memory controller 2011-11-21T20:29:05 < Thorn> LPC have a small availability problem 2011-11-21T20:30:07 < Thorn> btw, does f4discovery have ethernet? 2011-11-21T20:30:15 < emeb> nope 2011-11-21T20:31:09 < emeb> just SWD debug, USB OTG, stereo audio out, mono mic in, accelerometer, button, 4 LEDs & GPIO 2011-11-21T20:31:12 < Thorn> I have a few PHYs and magjacks 2011-11-21T20:31:13 < jnosky> The chip does iirc, but no phy 2011-11-21T20:32:56 < Thorn> all that's left is routing some 50MHz and 100MHz signals 2011-11-21T20:33:28 < karlp> Thorn: what do you get with jtag that you don't get with SWD? 2011-11-21T20:33:38 < emeb> more pins 2011-11-21T20:34:04 < Thorn> openocd, olimex debugger 2011-11-21T20:34:45 < karlp> openocd is getting swd too right? 2011-11-21T20:34:48 < Rious> Steffanx: sorry I missed you earlier, I've got all of the older stm32 discovery boards on order from Mouser, but right now I've only got the stm32f4 to play w/ on os x 2011-11-21T20:34:52 < karlp> just not with your debugger hardware then I guess :) 2011-11-21T20:35:12 <+Steffanx> Ah, so you didn't try the older one yet Rious :( 2011-11-21T20:37:55 < Rious> Steffanx: no, but I should receive the boards this week 2011-11-21T20:52:58 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has joined ##stm32 2011-11-21T21:08:27 -!- dekar [~dekar@drms-590ed1ec.pool.mediaWays.net] has joined ##stm32 2011-11-21T21:10:04 < Thorn> 100x72mm 2011-11-21T21:11:07 <+Steffanx> ? 2011-11-21T21:11:34 < Thorn> my final board size 2011-11-21T21:12:40 <+Steffanx> oh :) 2011-11-21T21:18:01 < jpa-> $25 then :) 2011-11-21T21:18:28 < Thorn> $33 with shipping 2011-11-21T21:18:49 <+Steffanx> 33? 2011-11-21T21:20:04 < Thorn> $33.00 2011-11-21T21:20:42 < jpa-> true 2011-11-21T21:20:54 <+Steffanx> Yeah, but 33 :S 2011-11-21T21:21:48 < BrainDamage> 33.3periodic 2011-11-21T21:21:52 < jpa-> what about that? 2011-11-21T21:21:56 < BrainDamage> you need to pay for every decimal 2011-11-21T21:22:54 < jpa-> it better converge! 2011-11-21T22:08:22 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 260 seconds] 2011-11-21T22:09:25 -!- zlog [~zlog@ip68-102-105-167.ks.ok.cox.net] has quit [Ping timeout: 260 seconds] 2011-11-21T22:12:48 -!- zlog [~zlog@ip68-102-105-167.ks.ok.cox.net] has joined ##stm32 2011-11-21T22:39:48 -!- vpopov [~happylife@dyn-56-47.dzer.fttbee.kis.ru] has quit [Ping timeout: 276 seconds] 2011-11-21T22:43:34 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-21T23:26:14 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 --- Day changed Tue Nov 22 2011 2011-11-22T00:27:11 < grummund> Laurenceb: did you see my message about edit to the linker script? 2011-11-22T00:29:39 <+Steffanx> Did you see it grummund ? 2011-11-22T00:29:49 < Laurenceb_> yes 2011-11-22T00:29:58 < Laurenceb_> but i havent tried it 2011-11-22T00:30:12 < Laurenceb_> i moved all the eval board code to my other project folders 2011-11-22T00:30:22 < Laurenceb_> got it working with my origional makefile now 2011-11-22T00:30:43 < Laurenceb_> the one i was adding size to last night 2011-11-22T00:32:09 < Laurenceb_> my uber nerdy friend just got 3 stitches on his face 2011-11-22T00:32:24 < BrainDamage> says the guy on irc 2011-11-22T00:32:28 < Laurenceb_> lol 2011-11-22T00:32:44 < Laurenceb_> he went out to a night club and got totally pissed 2011-11-22T00:33:06 < Laurenceb_> then hit on some hot girl and went back to her house 2011-11-22T00:33:26 < Laurenceb_> where she smashed him into a wall and stabbed him in the face 2011-11-22T00:33:38 < Laurenceb_> its hilarious 2011-11-22T00:33:48 < BrainDamage> out of sheer crazyness? 2011-11-22T00:33:54 < Laurenceb_> epic fail at getting laid 2011-11-22T00:33:55 < Laurenceb_> yes 2011-11-22T00:34:45 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2011-11-22T00:34:56 < Laurenceb_> its got to be the most epic way to fail at getting laid - try it on with a phyco girl 2011-11-22T00:35:36 < Laurenceb_> BrainDamage: i may be on irc but im not in a guild 2011-11-22T00:35:36 < BrainDamage> mildly NSFW http://www.youtube.com/watch?v=pgxyIkfNQUQ 2011-11-22T00:36:31 < Laurenceb_> lol 2011-11-22T01:19:04 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has quit [Ping timeout: 240 seconds] 2011-11-22T01:26:54 < dekar> do you guys use asserts for microcontroller firmwares? or any kind of testing? 2011-11-22T01:27:42 < dekar> I think it's hard to do, how would I test flashing a firmware? by actually flashing it? XD 2011-11-22T02:36:30 -!- dekar [~dekar@drms-590ed1ec.pool.mediaWays.net] has quit [Quit: This computer has gone to sleep] 2011-11-22T03:02:16 -!- emeb [~ericb@ip72-223-86-178.ph.ph.cox.net] has quit [Quit: Leaving.] 2011-11-22T03:18:49 -!- CheBuzz [~CheBuzz@76.164.192.124] has quit [Excess Flood] 2011-11-22T03:19:09 -!- CheBuzz [~CheBuzz@76.164.192.124] has joined ##stm32 2011-11-22T03:22:42 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has quit [Quit: OOOOOO Whats that....] 2011-11-22T03:30:02 < jnosky> I figured out my problem, the LIBRARY_PATH was pulling in thumb not thumb2 2011-11-22T03:36:33 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2011-11-22T05:13:12 < jnosky> Here is the rub, the make file has -mthumb 2011-11-22T05:13:47 < jnosky> I think thats why when I try to link in newlib, it uses the thumb code lib 2011-11-22T05:15:05 < jnosky> There is no -thumb2 option 2011-11-22T05:15:56 < jnosky> So I guess when gcc compiles standard code, and it sees mcpu=cortex-m4 or cortex-m3 it genertaes thumb2 instructions 2011-11-22T05:16:39 < jnosky> BUT when it invokes the linker, and the linker sees -mthumb, it selects the wrong stdlib 2011-11-22T05:17:00 < jnosky> ie: its using the newlib for thumb 2011-11-22T05:17:57 < jnosky> I got around it by using -L/...../arm-none-eabi/lib/thumb2 2011-11-22T05:19:40 < jnosky> Its the only explanation I can come up with, where gcc generates thumb2 opcodes, yet stdlib is using plain thumb 2011-11-22T05:20:25 < jnosky> Am I the only one to actually try to use newlib for thumb2? 2011-11-22T05:21:22 < jnosky> Prolly those pay per view compilers, force thumb2 for newlib, since they dont give you any make files 2011-11-22T05:25:35 < jnosky> You cant omit -mthumb, or you get errors that "target cpu does not support arm mode" 2011-11-22T05:26:18 < jnosky> So you need it in to generate thumb2 code, but leaving it in causes the linker to select the thumb librarires 2011-11-22T05:27:04 < jnosky> for stdlibs 2011-11-22T06:36:27 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has joined ##stm32 2011-11-22T08:07:15 -!- CheBuzz [~CheBuzz@76.164.192.124] has quit [Excess Flood] 2011-11-22T08:07:35 -!- CheBuzz [~CheBuzz@76.164.192.124] has joined ##stm32 2011-11-22T10:36:30 < karlp> that sounds particularly unfun :| 2011-11-22T10:36:46 < karlp> and what were the symptoms again? hardfaults when you try to use any library code? 2011-11-22T10:49:17 < Thorn> I had faults on calling library functions, problem was linking without -mthumb (codesourcery) 2011-11-22T12:40:23 * BadDorf learns that to read data from spi, you have to write data.. doh.. 2011-11-22T13:02:02 < jpa-> always :) 2011-11-22T13:03:54 -!- happylife [~happylife@212.92.145.7] has quit [Quit: So long] 2011-11-22T13:07:58 < Laurenceb> anyone know what stm32reservedsception9 is about? 2011-11-22T13:52:38 < Laurenceb> hmm looks like USB interrupts are missing 2011-11-22T13:58:21 < Laurenceb> it configs the usb then goes into the wait for usb connect loop 2011-11-22T13:58:33 < Laurenceb> and then gets the exception immediately 2011-11-22T13:58:49 < Laurenceb> but the interrupts never trigger a breakpoint 2011-11-22T14:05:17 < Laurenceb> RAGE 2011-11-22T14:06:47 -!- dekar_ [~dekar@95.143.165.210] has joined ##stm32 2011-11-22T15:11:08 < jpa-> Laurenceb: if you are inside an exception handler, interrupts are probably disabled 2011-11-22T15:11:19 < Laurenceb> yeah 2011-11-22T15:12:54 < Laurenceb> this makes no sense 2011-11-22T15:51:04 -!- dekar__ [~dekar@95.143.165.210] has joined ##stm32 2011-11-22T15:51:13 -!- dekar_ [~dekar@95.143.165.210] has quit [Read error: Connection reset by peer] 2011-11-22T15:53:42 -!- dekar_ [~dekar@95.143.165.210] has joined ##stm32 2011-11-22T15:57:12 -!- dekar__ [~dekar@95.143.165.210] has quit [Ping timeout: 276 seconds] 2011-11-22T15:57:45 -!- dekar__ [~dekar@95.143.165.210] has joined ##stm32 2011-11-22T15:59:12 -!- dekar__ [~dekar@95.143.165.210] has quit [Client Quit] 2011-11-22T16:03:35 -!- dekar_ [~dekar@95.143.165.210] has quit [Read error: Connection reset by peer] 2011-11-22T16:04:03 -!- dekar_ [~dekar@95.143.165.210] has joined ##stm32 2011-11-22T16:04:12 -!- dekar_ [~dekar@95.143.165.210] has quit [Client Quit] 2011-11-22T16:28:45 < Laurenceb> grummond: ping 2011-11-22T17:10:04 < jnosky> karlp, yep hard faults on any use of newlib 2011-11-22T17:11:34 < jpa-> i use newlib with thumb2 just fine 2011-11-22T17:12:32 < jpa-> with -mcpu=cortex-m3 -mthumb it should pick thumb2 libraries 2011-11-22T17:13:12 < jpa-> though i must admit that i have some remaining hardfault problems with libgcc when trying to use 64bit division, haven't bothered to find out the reason yet 2011-11-22T17:15:12 -!- emeb [~ericb@ip72-223-86-178.ph.ph.cox.net] has joined ##stm32 2011-11-22T17:25:38 -!- dekar_ [~dekar@95.143.165.210] has joined ##stm32 2011-11-22T17:28:13 < grummund> pong 2011-11-22T17:28:45 * jpa- takes out his pong paddle 2011-11-22T17:29:56 < dekar_> my fpga is giving me a hard time 2011-11-22T17:30:13 < dekar_> I am trying to run some selftest program, but somehow you have to compile it first 2011-11-22T17:57:33 < Laurenceb> ok ive got mass storage appearing on the usb bus 2011-11-22T17:57:47 < Laurenceb> i might need a uSD card to test mass storage XD 2011-11-22T18:04:55 < dekar_> Laurenceb, http://dl.dropbox.com/u/28467113/Screen%20Shot%202011-11-22%20at%204.59.35%20PM.png 2011-11-22T18:05:08 < dekar_> that's what you get for paying $1300 for a devboard 2011-11-22T18:05:15 < dekar_> java errors on selftest 2011-11-22T18:05:39 < Laurenceb> heh 2011-11-22T18:06:12 < dekar_> now I don't know whether the multi gigabit transceivers are broken or the software 2011-11-22T18:07:40 < karlp> hehe, someone made a very amateur mistake about locales :) 2011-11-22T18:08:12 < dekar_> I hate locales 2011-11-22T18:08:25 < karlp> they can be somewhat frustrating 2011-11-22T18:08:43 < karlp> partly because there's not many ways for the developer to work out what locale the user actually wants. 2011-11-22T18:09:10 < karlp> on windows, you mighe be better off changing the system locale to get this tool working, 2011-11-22T18:09:15 < dekar_> I once gave a 10k$ bid on ebay cause I used the european comma for cents which then got interpreted as thousands 2011-11-22T18:10:02 < karlp> I can't remember anymore how much notice windows jvms pay to which setting 2011-11-22T18:10:17 < karlp> there's probably a -D flag you can use to set the locale. 2011-11-22T18:10:19 * karlp shrugs 2011-11-22T18:11:25 < dekar_> I guess I'll try that -.-" 2011-11-22T18:11:29 < dekar_> so annoying 2011-11-22T18:12:22 < Thorn> $1300 for a cyclone? 2011-11-22T18:12:49 < dekar_> ya 2011-11-22T18:13:00 < dekar_> http://www.altera.com/products/devkits/altera/kit-cyclone-iv-gx.html 2011-11-22T18:13:12 < dekar_> I want to use it for 10G 2011-11-22T18:13:32 < dekar_> if I manage to work with those transceivers 2011-11-22T18:16:45 < Thorn> seems that nobody has heard anything about that fpga (but a 10 times smaller one is 20 euro in farnell) 2011-11-22T18:17:04 < dekar_> java.lang.NumberFormatException: For input string: "1136,1910" 2011-11-22T18:17:12 < dekar_> that's my memory throughtput 2011-11-22T18:17:39 < dekar_> sometimes it's even negative 2011-11-22T18:17:52 < dekar_> I'll try it on my linux machine later I guess 2011-11-22T18:17:57 < Thorn> what's your clock frequency? 2011-11-22T18:18:07 < dekar_> the FPGA clock? no idea 2011-11-22T18:18:15 < dekar_> that's some test I am running, not my code 2011-11-22T18:19:07 < dekar_> Thorn, the GX series is pretty expensive cause of the 3.125Gbit/s transceivers 2011-11-22T18:19:13 < dekar_> it has eight of those 2011-11-22T18:30:16 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 240 seconds] 2011-11-22T18:40:53 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-22T18:41:01 < dekar_> gtg, bbl 2011-11-22T18:45:35 -!- dekar_ [~dekar@95.143.165.210] has quit [Ping timeout: 248 seconds] 2011-11-22T18:52:02 < Laurenceb> grummond: ping 2011-11-22T18:57:50 < Laurenceb> mass storage still not working :( 2011-11-22T18:58:04 < Laurenceb> looks like im getting continuous usb interrupts 2011-11-22T18:58:15 < karlp> like, once every ms? 2011-11-22T18:58:21 < karlp> or really continuous? 2011-11-22T18:59:10 < Laurenceb> completely continuous 2011-11-22T18:59:16 < Laurenceb> no spare cycles 2011-11-22T18:59:38 < Laurenceb> rx interrupts 2011-11-22T19:02:53 < Laurenceb> need to find a windows machine to try on 2011-11-22T19:04:55 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-22T19:04:55 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-22T19:05:53 < jnosky> with -mcpu=cortex-m3 -mthumb it should pick thumb2 libraries 2011-11-22T19:06:15 < jnosky> ^^You used summon arm toolchain with defaults? 2011-11-22T19:07:14 < jnosky> When I compile with -v I see it including thumb/v7 2011-11-22T19:09:20 < jpa-> i use codesourcery 2011-11-22T19:17:21 < jnosky> Ahh so you dont use a real make file 2011-11-22T19:24:48 < karlp> well, codesourcery lite is just a toolchain... 2011-11-22T19:25:07 < jpa-> jnosky: uh, yes i do 2011-11-22T19:25:40 < Laurenceb> karlp: i only get RX interrupts, and they continue with the usb unplugged 2011-11-22T19:25:48 < Laurenceb> its as if the interrupt is never cleared 2011-11-22T19:25:50 < jpa-> https://svn.kapsi.fi/jpa/dsoquad/freq/Makefile that is one where i use the newlib libm 2011-11-22T19:40:00 -!- dekar_ [~dekar@drms-590cf2f5.pool.mediaWays.net] has joined ##stm32 2011-11-22T19:49:03 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 248 seconds] 2011-11-22T19:49:57 -!- zlog [~zlog@ip68-102-105-167.ks.ok.cox.net] has quit [Read error: Operation timed out] 2011-11-22T19:50:08 < jnosky> Ahh well some of those toolchains dont use a make file 2011-11-22T19:50:18 < jnosky> They seem to create a virtual make on the fly 2011-11-22T19:50:42 < jpa-> well yeah, if you use some IDE 2011-11-22T19:50:56 < jpa-> i just don't like building my own gcc (even with a script that sometimes works) 2011-11-22T19:50:57 < jnosky> thanks jpa, ill see what happens there 2011-11-22T19:51:29 < jnosky> I think its a gcc bug, it took me all day to find out the wrong libc was being used 2011-11-22T19:52:43 < grummund> you can often peek inside the commercial IDE project files... often XML based... and you see the gcc options there. 2011-11-22T19:53:24 -!- zlog [~zlog@ip68-102-105-167.ks.ok.cox.net] has joined ##stm32 2011-11-22T20:00:11 < jnosky> jpa whats this for? 2011-11-22T20:00:11 < jnosky> -mthumb-interwork 2011-11-22T20:00:24 < jnosky> The m3 doesnt support arm mode does it? 2011-11-22T20:00:40 < Thorn> -mno-thumb-interwork 2011-11-22T20:00:56 < jpa-> you mean -mno-thumb-interwork? i'm not sure if that is really necessary 2011-11-22T20:01:07 < jpa-> i just don't want any unnecessary interworking code 2011-11-22T20:01:15 < Thorn> it wasn't for me. -mthumb-interwork is certainly wrong 2011-11-22T20:01:37 < jpa-> in fact, "The default is -mno-thumb-interwork" 2011-11-22T20:01:40 < jnosky> ahh ok mno is the default 2011-11-22T20:01:55 < jpa-> so yeah, not necessary 2011-11-22T20:02:30 < jnosky> Ya it didnt help, it still linked in arm/v7 2011-11-22T20:03:02 < jpa-> and you are passing those flags to your linker also? 2011-11-22T20:26:08 < jnosky> CFLAGS=-g -O2 -mlittle-endian -mthumb 2011-11-22T20:26:09 < jnosky> CFLAGS+=-mcpu=cortex-m4 2011-11-22T20:26:09 < jnosky> CFLAGS+=-v 2011-11-22T20:26:33 < jpa-> is your makefile somewhere btw? 2011-11-22T20:26:34 < jnosky> I tried also mno-interwork 2011-11-22T20:27:52 < jnosky> http://pastebin.com/CPApd33k 2011-11-22T21:19:04 -!- happylife [~happylife@46.251.83.126] has joined ##stm32 2011-11-22T21:34:04 < Thorn> are there any reference designs for stm32f4 other than discovery yet? 2011-11-22T21:39:40 -!- happylife [~happylife@46.251.83.126] has quit [Quit: Leaving] 2011-11-22T21:39:49 -!- vasily [~happylife@46.251.83.126] has joined ##stm32 2011-11-22T21:40:31 -!- vasily [~happylife@46.251.83.126] has quit [Read error: Connection reset by peer] 2011-11-22T21:40:37 -!- vpopov [~happylife@46.251.83.126] has joined ##stm32 2011-11-22T21:45:34 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-22T21:48:09 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has joined ##stm32 2011-11-22T21:54:49 < Laurenceb_> sup 2011-11-22T21:59:33 < Laurenceb_> grummond: ping 2011-11-22T22:08:18 < Laurenceb_> oh 2011-11-22T22:08:33 < Laurenceb_> think i worked out mu usb issues - im breaking the protocol 2011-11-22T22:08:51 < Laurenceb_> HS mode needs a pull up resistor on a GPIO 2011-11-22T22:13:22 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-22T22:13:23 -!- mode/##stm32 [+v Steffann] by ChanServ 2011-11-22T22:16:14 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2011-11-22T22:17:06 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-22T22:56:20 < dekar_> what kind of usb issues? 2011-11-22T23:00:19 < Laurenceb_> think ive worked it out now 2011-11-22T23:00:33 < Laurenceb_> i was getting usb suspend and host timeout 2011-11-22T23:00:58 < Laurenceb_> turns out the pullup resistor needs to be enabled when the stm is ready 2011-11-22T23:01:07 < Laurenceb_> i dont have it on a gpio :( 2011-11-22T23:01:57 < Laurenceb_> which will be why it doesnt work :( wire jumper time 2011-11-22T23:03:17 < Laurenceb_> literally have 15 wire jumpers now 2011-11-22T23:06:53 < Laurenceb_> as it was i connected, the processor booted, meanwhile the host didnt get a reply so it ignored the device by the time the usb was initialised on the stm 2011-11-22T23:07:11 < Laurenceb_> devices have to ack the host very quickly 2011-11-22T23:08:01 < Laurenceb_> i guess that explains why usb devices are sometimes not detected if thy arent inserted cleanly 2011-11-22T23:10:13 < Thorn> we discussed that here some time ago, you need to connect that pull up only when you're ready to talk over usb 2011-11-22T23:11:02 < Laurenceb_> so annoying - ive got to do a new pcb now 2011-11-22T23:11:24 < jpa-> also IIRC there was something about disconnecting the pullup when doing actual highspeed communication 2011-11-22T23:11:35 < Laurenceb_> yes 2011-11-22T23:11:36 < jpa-> Laurenceb_: just patch it, can't be that hard 2011-11-22T23:11:52 < Laurenceb_> ill try and do full speed 2011-11-22T23:12:03 < Laurenceb_> jpa-: its a commercial product 2011-11-22T23:12:23 < Laurenceb_> but yeah ill try and fix everything on one v1 pcb, then i know what needs fixing 2011-11-22T23:12:24 < jpa-> so what ,) 2011-11-22T23:12:26 < Thorn> see here http://www.beyondlogic.org/usbnutshell/usb2.shtml#SpeedIdentification 2011-11-22T23:12:29 < jpa-> true 2011-11-22T23:13:11 < Laurenceb_> yeah i just finished reading that XD 2011-11-22T23:14:12 < Laurenceb_> ideally i need to do power properly as well 2011-11-22T23:14:27 < Laurenceb_> ive got a 500ma lipo charger, it should only be enabled after connection 2011-11-22T23:15:11 < Laurenceb_> is that how it works? if you have a 500ma device it wont connect if the host cant support it? 2011-11-22T23:16:11 < Thorn> I have a board powered over usb right now, it's not recognized as a device (no code yet) 2011-11-22T23:16:29 < Laurenceb_> yeah i can draw 500ma without negotiating 2011-11-22T23:16:30 < Thorn> I don't think hosts actually enforce power specifications 2011-11-22T23:16:46 < Laurenceb_> but it should be done properly :P 2011-11-22T23:16:47 < Thorn> also those usb fans, lights and other toys 2011-11-22T23:16:56 < Thorn> they contain no electronics 2011-11-22T23:17:01 < Laurenceb_> yeah 2011-11-22T23:17:55 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds] 2011-11-22T23:18:09 < Thorn> afaik the host will shut a port down if there's a short from Vbus to ground (or some large corrent) 2011-11-22T23:18:59 < Thorn> but it doesn't have anything to do with bMaxPower (or how i t's called correctly) in the device descriptor 2011-11-22T23:19:11 < Thorn> that's my understanding 2011-11-22T23:19:30 < Laurenceb_> i see 2011-11-22T23:29:53 < Laurenceb_> haha the vendor:product on my maple is 1EAF:1AB5 2011-11-22T23:30:42 < Laurenceb_> stlink-2 comes up as "SGS Thompson Ltd" 2011-11-22T23:30:53 < Laurenceb_> someone needs to update the database 2011-11-22T23:31:06 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-22T23:31:08 -!- mode/##stm32 [+v Steffann] by ChanServ 2011-11-22T23:42:47 -!- vpopov [~happylife@46.251.83.126] has quit [Quit: Leaving] --- Day changed Wed Nov 23 2011 2011-11-23T00:40:02 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 245 seconds] 2011-11-23T01:31:26 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has quit [Ping timeout: 258 seconds] 2011-11-23T03:20:09 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2011-11-23T04:50:53 < karlp> Laurenceb: yeah, that person is you :) 2011-11-23T04:51:14 < karlp> some versions of linux already show Stlink for the PID, 2011-11-23T04:51:25 < karlp> some just show SGS Thompson for the VID 2011-11-23T06:02:20 < emeb> w00t - used the SWD connector on a Discovery board to program an off-board STM32F100 2011-11-23T06:02:49 < Tom_itx> that's what it's for 2011-11-23T06:03:21 < emeb> Indeed. Just hadn't tried it before. 2011-11-23T06:04:04 < emeb> This is my little target -> http://members.cox.net/ebrombaugh1/embedded/stm32breakout/index.html 2011-11-23T06:39:24 < Tom_itx> better move those files before they dump em 2011-11-23T06:39:46 < Tom_itx> the reg looks like one i used 2011-11-23T06:39:54 < Tom_itx> a microchip 3.3v 2011-11-23T06:45:44 < emeb> Tom_itx: I know - sucks that Cox is ditching their web service. 2011-11-23T06:46:01 < emeb> That reg is an ST equivalent LM1117-3.3 2011-11-23T06:46:50 < emeb> anyway - I've got a buddy with a virtual hosted site who'll lend me a few MB for my files before they disappear. 2011-11-23T06:46:59 < Tom_itx> i used a microchip on a project 500ma 2011-11-23T06:47:05 < Tom_itx> looked similar 2011-11-23T06:47:21 < emeb> Yeah. I think these are 800ma 2011-11-23T06:47:30 < Tom_itx> i had mine pulled already but i still think it's a raw deal 2011-11-23T06:47:35 < emeb> under ideal conditions... 2011-11-23T06:48:19 < emeb> I figure they're CYA before all the internet censorship stuff comes rolling out of Congress that would make them responsible for user content. 2011-11-23T06:50:06 < emeb> of course it could just be cost savings... 2011-11-23T08:20:24 -!- emeb [~ericb@ip72-223-86-178.ph.ph.cox.net] has quit [Quit: Leaving.] 2011-11-23T09:29:18 -!- dekar__ [~dekar@drms-590c4fe9.pool.mediaWays.net] has joined ##stm32 2011-11-23T09:32:57 -!- dekar_ [~dekar@drms-590cf2f5.pool.mediaWays.net] has quit [Ping timeout: 245 seconds] 2011-11-23T10:33:21 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has quit [Quit: OOOOOO Whats that....] 2011-11-23T10:40:13 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has joined ##stm32 2011-11-23T11:01:51 -!- happylife [~happylife@212.92.145.7] has joined ##stm32 2011-11-23T11:02:40 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has quit [Ping timeout: 248 seconds] 2011-11-23T11:45:49 -!- whitequark [~whitequar@2002:1fba:61b3::1] has quit [Ping timeout: 240 seconds] 2011-11-23T11:46:48 -!- whitequark [~whitequar@2002:1fba:61b3::1] has joined ##stm32 2011-11-23T12:53:54 < Laurenceb> yess 2011-11-23T12:53:58 < Laurenceb> /dev/sdb 2011-11-23T12:54:09 < Laurenceb> mounted my usb mass storage device 2011-11-23T12:54:22 < Laurenceb> annoyingly its not in media 2011-11-23T13:25:45 < karlp> /media will get partitions, not devices 2011-11-23T13:26:53 < Laurenceb> looks like theres read/write errors to the card 2011-11-23T13:27:02 < Laurenceb> the st init code doesnt look correct to me 2011-11-23T13:29:33 < karlp> yeah, well, st also wrote the stlink v1, and look how well that did at being a usb-mass storage device 2011-11-23T13:40:21 < jpa-> yeah, even the chinese guys behind dso quad seem to have done better :D 2011-11-23T13:40:58 < jpa-> though their own fat access code corrupts it if a file has been removed from the file system without reformatting the disc :D 2011-11-23T13:41:21 < jpa-> but doesn't spam dmesg like stlink 2011-11-23T13:43:13 < karlp> quirks mode, ignore, ENGAGED 2011-11-23T13:44:55 < Laurenceb> heh my dmesg is a tip 2011-11-23T13:45:18 < Laurenceb> looks like the eval code doesnt init the sd card at low clk speed 2011-11-23T15:31:07 -!- happylife [~happylife@212.92.145.7] has quit [Remote host closed the connection] 2011-11-23T15:49:28 < Laurenceb> my uSD card isnt responding :( 2011-11-23T15:49:40 < Laurenceb> nothing on miso with any of my cards 2011-11-23T16:17:12 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Ping timeout: 244 seconds] 2011-11-23T16:31:22 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32 2011-11-23T16:45:16 -!- dekar_ [~dekar@drms-590ed1b2.pool.mediaWays.net] has joined ##stm32 2011-11-23T16:47:13 -!- dekar__ [~dekar@drms-590c4fe9.pool.mediaWays.net] has quit [Ping timeout: 258 seconds] 2011-11-23T17:29:41 < Laurenceb> help 2011-11-23T17:29:48 < Laurenceb> swd is broken :( 2011-11-23T17:29:57 < Laurenceb> pc is always at 0x00000000 2011-11-23T17:33:04 < Laurenceb> nah its screwed 2011-11-23T17:33:09 < Laurenceb> utterly 2011-11-23T17:38:07 < Laurenceb> anyone here? 2011-11-23T17:40:22 < jpa-> yes 2011-11-23T17:40:29 * jpa- fixes Laurenceb's swd 2011-11-23T17:42:40 < Laurenceb> oh it does work 2011-11-23T17:42:44 < Laurenceb> how weird 2011-11-23T17:42:57 < Laurenceb> i has different file and loaded elf in gdb 2011-11-23T17:43:05 < Laurenceb> and it broke the swd, weird 2011-11-23T18:08:11 < Laurenceb> http://pastebin.com/PKpAPheV 2011-11-23T18:08:16 < Laurenceb> same error :( 2011-11-23T18:27:21 < karlp> groovy 2011-11-23T18:27:38 < karlp> it might be trying to use the swd pins? 2011-11-23T18:27:59 < karlp> there's probably gaps in how stlink resets and initializes things? 2011-11-23T18:32:40 < Laurenceb> i dont know 2011-11-23T18:32:47 < Laurenceb> its stuck is _start() now 2011-11-23T18:32:57 < Laurenceb> only happens when i run with jtag 2011-11-23T18:33:02 < Laurenceb> s/jtag/swd 2011-11-23T18:35:26 < Laurenceb> wtf 2011-11-23T18:35:34 < Laurenceb> i can reset it with swd running 2011-11-23T18:35:49 < Laurenceb> its runs for ~1s then gets stuck in _start 2011-11-23T18:36:50 < Laurenceb> but i think ive managed to work out the logger issues 2011-11-23T18:36:57 < Laurenceb> its to do with initialisation 2011-11-23T18:37:12 < Laurenceb> the card needs a a few hundered ms to ack commands 2011-11-23T18:37:31 < Laurenceb> unfortunately the usb needs to be acked immediately 2011-11-23T18:37:41 < Laurenceb> and needs a running card... this is not good 2011-11-23T18:42:28 -!- vpopov [~happylife@46.251.83.126] has joined ##stm32 2011-11-23T19:14:07 < Laurenceb> oh wait 2011-11-23T19:14:12 < Laurenceb> thats my faily 2011-11-23T19:15:54 < Laurenceb> wait 2011-11-23T19:16:04 < Laurenceb> does swd only work in run/halt mode? 2011-11-23T19:16:32 < jpa-> what other modes are there? 2011-11-23T19:16:39 < jpa-> ah 2011-11-23T19:16:42 < Laurenceb> standy 2011-11-23T19:16:43 < jpa-> sorry, was confused 2011-11-23T19:16:47 < Laurenceb> *standby 2011-11-23T19:17:43 < Laurenceb> yeah looks like thats my issue 2011-11-23T19:17:47 < Laurenceb> annyoing 2011-11-23T19:23:11 < karlp> Laurenceb: so, your device enters standby mode, and SWD doesn't/can't get to it anymore? 2011-11-23T19:23:41 < karlp> should "kill" or something always bring it back from standby? 2011-11-23T19:23:41 < Laurenceb> yeah looks like it 2011-11-23T19:24:06 < karlp> or should connecting to the target leave it as is? 2011-11-23T19:25:16 < Rious> I just got stm32l-disco, st32vl-disco and stm32s-disco boards in from mouser 2011-11-23T19:30:07 < karlp> 32s? 2011-11-23T19:30:09 < karlp> or 8s? 2011-11-23T19:31:29 < karlp> 8L and 8s are the only other two "discovery" boards I know of 2011-11-23T19:31:54 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2011-11-23T19:32:10 < Laurenceb> karlp: peabody124 is having issues with stlink 2011-11-23T19:32:13 < peabody124> @karlp: laurenceb recommend i ask you about an issue i'm having with st-util on mac 2011-11-23T19:32:17 < peabody124> it works fine the first time 2011-11-23T19:32:30 < karlp> just FYI, I don't have a mac :) 2011-11-23T19:32:30 < peabody124> but when i hit ctrl-c and try and run st-util a second time it give libusb errors 2011-11-23T19:32:45 < karlp> stlink hardware v1 or v2? (which discovery board?) 2011-11-23T19:32:50 < peabody124> F4 discovery board 2011-11-23T19:33:08 < peabody124> yea i'm cool doing some leg work myself just looking for pointers 2011-11-23T19:33:26 < karlp> if you write up what you can, and what output you can see and symptons on the "issues" bit on github, jnosky might have a look. 2011-11-23T19:33:29 < karlp> what are the libusb errors? 2011-11-23T19:33:48 < karlp> there's almost definitely some errors in closing/releasing the libusb data structures, 2011-11-23T19:34:04 < karlp> quite possibly to dow ith asking the "kernel" to release the driver and so forth 2011-11-23T19:34:09 < peabody124> http://pastebin.com/aqyy2ZSW 2011-11-23T19:34:36 < peabody124> attach the issues to which stlink branch? 2011-11-23T19:34:51 < karlp> texane still for now, it's got just about all the best code, 2011-11-23T19:34:57 < karlp> at least, it's theo nly place issues are being reported. 2011-11-23T19:35:16 < karlp> I take it works if you unplug and replug the board? 2011-11-23T19:35:21 < peabody124> yep 2011-11-23T19:35:34 < karlp> how do you exit the first session? 2011-11-23T19:35:40 < peabody124> but because of this i can't switch between flashing and testing via gdb easily :( 2011-11-23T19:35:46 < karlp> (also, v2 is default, you can leave off the -s 2 2011-11-23T19:35:56 < peabody124> i normally do, just was testing 2011-11-23T19:37:09 < peabody124> i figured it probably wasn't the disconnect code because in both mine and laurence's set up the stlink led stays green at disconnect 2011-11-23T19:38:56 < karlp> try and get a trace from the end of teh first session too, but I really don'y have any idea about usb on macs 2011-11-23T19:41:58 < Laurenceb> im off, cay 2011-11-23T19:42:00 < peabody124> ok there is a verbose connect/disconnect http://pastebin.com/9ipwhz3J 2011-11-23T19:42:03 < Laurenceb> *cya 2011-11-23T19:42:06 < peabody124> but i'll post to issues 2011-11-23T19:42:12 < Laurenceb> thanks for the help 2011-11-23T19:42:39 < peabody124> on a totally tangential point - with openocd i've been able to say things like "monitor reset" and more importantly "monitor resume" to let the target run and be able to snoop on internal variables while it's running 2011-11-23T19:42:59 < peabody124> is there an equivalent that can be used for st-util? 2011-11-23T19:45:35 < karlp> gdb :) 2011-11-23T19:45:47 < karlp> eventually, most of this should j ust move into openocd 2011-11-23T19:45:59 < peabody124> no i know to use gdb 2011-11-23T19:46:09 < peabody124> but when i try and execute any monitor commands it says they aren't supported 2011-11-23T19:46:12 < karlp> but the codebase for st-util is far simpler 2011-11-23T19:46:17 < peabody124> yea no kidding! 2011-11-23T19:46:25 < karlp> what's the difference between monitor continue and just continue? 2011-11-23T19:46:36 < karlp> I don't know gdb very well at all... 2011-11-23T19:46:49 < peabody124> it's like continue in background versus foreground 2011-11-23T19:46:56 < peabody124> you can't inspect variables without halting execution 2011-11-23T19:47:15 < peabody124> since i'm debugging a speed controller halting execution = 20A going through same phase continuously ;-) 2011-11-23T19:47:46 < karlp> hmm, it shouldn't actually finish starting up and listening when it doesn't recgonise the chip 2011-11-23T19:48:07 < peabody124> no this is when i have something attached all is fine 2011-11-23T19:48:11 < karlp> if it can't recognise the chip, it probably ends up trying to send a usb command which is never answered. 2011-11-23T19:48:21 < peabody124> oh you are talking about debug log 2011-11-23T19:48:26 < karlp> yeah 2011-11-23T19:49:00 < karlp> there's probably lots of extra things that could be added to use the debug module more, like using the SWV for debug output and stuff 2011-11-23T19:49:13 < karlp> but we only recently got flashing working (mostly) reliably 2011-11-23T19:49:25 < peabody124> yeah that stuff is pretty sweet 2011-11-23T19:49:45 < karlp> I'm only just about to start actually writing some _code_ for one of these STM32s this week 2011-11-23T19:49:46 < peabody124> i've been happy with the flashing too (although load via gdb was corrupting things) 2011-11-23T19:49:52 < karlp> (wired up the parts last night) 2011-11-23T19:50:05 < karlp> load via gdb should be working now right? 2011-11-23T19:50:14 < karlp> I wonder if that's the overlapping sections thing... 2011-11-23T19:50:19 < peabody124> well it looked like it was working 2011-11-23T19:50:28 < peabody124> but we have two elfs - a bootloader and the main executable 2011-11-23T19:50:46 < peabody124> i think soemthing is going wrong because of that although the maps have things in the correct place 2011-11-23T19:51:05 < karlp> hmm, report that as an issue too :) 2011-11-23T19:51:21 < karlp> hopefully with enough code or memory maps to be able to reproduce it. 2011-11-23T19:51:30 < karlp> I take it that's a problem regardless of OS? 2011-11-23T19:51:35 < peabody124> will do - right now i _think_ they may even be related cause the st-util seems to get into an odd state 2011-11-23T19:51:37 < karlp> or are you macosx only? 2011-11-23T19:51:44 < peabody124> i can test things on linux boxes too 2011-11-23T19:51:47 < peabody124> but mostly mac 2011-11-23T19:51:54 < karlp> libusb gets very upset if something that was meant to get a reply doesn't 2011-11-23T19:52:08 < peabody124> yea i'm skimming over stlink-usb.c right now 2011-11-23T19:52:08 < karlp> which also happens if you ever get a length wrong 2011-11-23T19:52:35 < karlp> lots of -usb and -sg can be combined now, they're actually both libusb, just with different command wrappings. 2011-11-23T19:52:41 < karlp> "later" 2011-11-23T19:52:57 < peabody124> heh … hmmm that length wrong could definitely be a problem 2011-11-23T19:53:10 < peabody124> if the behavior on osx/linux is different with flushing the remaining buffer on disconenct 2011-11-23T19:53:14 < karlp> oh yeah, if something gets a length wrong, the stlink will keep waiting for the extra bytes, 2011-11-23T19:53:24 < karlp> and not do anything else until it gets them 2011-11-23T19:53:45 < karlp> I got _lots_ of lockups when I was hacking the -sg code for stlink v1 :) 2011-11-23T19:54:00 < karlp> with the same error messages you're seeing. 2011-11-23T19:55:02 < peabody124> ok so i don't think _stlink_usb_close is actually getting called 2011-11-23T19:55:12 < peabody124> you guys hook the SIGKILL and call that? 2011-11-23T19:55:20 < karlp> nope. 2011-11-23T19:55:29 < peabody124> so is there a "proper" way to exit? 2011-11-23T19:55:31 < karlp> seems to be ok on linux :) 2011-11-23T19:55:39 < karlp> well, exiting gdb seems to kill it nicely 2011-11-23T19:55:52 < peabody124> yeah noticed that. let me try it 2011-11-23T19:56:00 < karlp> hooking ctrl-c to do more cleanup is probably a good idea too. 2011-11-23T19:56:36 < peabody124> ok… good call 2011-11-23T19:56:48 < peabody124> so if i exit gdb then closing happens and i can reconnect 2011-11-23T19:57:33 < karlp> good news :) 2011-11-23T19:57:49 < karlp> add all that to the issue, then anyone else can find it. 2011-11-23T19:57:56 < karlp> seems to be only an issue on osx though, 2011-11-23T19:57:58 < peabody124> already typing 2011-11-23T19:58:05 * karlp cheers 2011-11-23T19:58:07 < peabody124> yeah linux must open a fresh conenction more robustly 2011-11-23T19:58:14 < karlp> I love it when things work out :) 2011-11-23T19:58:52 < peabody124> if you have a chance could you see if _stlink_usb_close gets executed on linux with ctrl-c? probably adding a signal hook will work cross platform 2011-11-23T19:59:27 < karlp> yeah, it should do. 2011-11-23T19:59:33 < karlp> currently there's no signal hooking at all, 2011-11-23T19:59:40 < karlp> should be pretty straightforward to add 2011-11-23T19:59:43 < peabody124> yea 2011-11-23T19:59:44 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-23T19:59:45 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-23T20:00:00 < peabody124> so is there a parent close function? 2011-11-23T20:00:05 < karlp> hoping to get a bit of time for this this week, some guy just submitted some major changes to support windows properly too. 2011-11-23T20:00:15 < peabody124> oh nice 2011-11-23T20:00:20 < karlp> parent? 2011-11-23T20:00:31 < karlp> should be an stlink_close() in stlink-common.c iirc 2011-11-23T20:00:33 < peabody124> i.e. i don't want to always call _stlink_usb_close 2011-11-23T20:00:36 < peabody124> ok cool 2011-11-23T20:00:52 < karlp> the -common has most stuff properly delegated to the appropriate backend 2011-11-23T20:00:57 < karlp> hence the _ prefixes, 2011-11-23T20:01:07 < peabody124> hehe intuitivie :) 2011-11-23T20:01:20 < karlp> hopefully :) 2011-11-23T20:01:50 < karlp> unfortunately, netbeans isn't very good at ctrl-clicking through the function pointers to get to the two alternate backends, 2011-11-23T20:02:00 < karlp> but I can't have everything :) 2011-11-23T20:02:06 < peabody124> heh 2011-11-23T20:05:13 < peabody124> ok working. except i bet no one will appreciate the elegance of making sl a global variable 2011-11-23T20:05:22 * peabody124 = used to embedded programming 2011-11-23T20:08:29 -!- emeb [~ericb@ip72-223-86-178.ph.ph.cox.net] has joined ##stm32 2011-11-23T20:12:20 < peabody124> fix here: https://github.com/peabody124/stlink/ 2011-11-23T20:20:18 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving] 2011-11-23T20:20:38 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-23T20:20:41 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-23T20:21:53 < karlp> hehe 2011-11-23T20:22:37 <+Steffanx> Hoho 2011-11-23T21:46:50 -!- sakkan [sakkan@31.140.107.186] has joined ##stm32 2011-11-23T21:47:19 -!- sakkan [sakkan@31.140.107.186] has left ##stm32 [] 2011-11-23T21:54:59 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has joined ##stm32 2011-11-23T22:15:23 -!- vpopov [~happylife@46.251.83.126] has quit [Ping timeout: 258 seconds] 2011-11-23T23:05:07 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-23T23:20:35 < karlp> so..., I did git rebase, and now I wish I hadn't.... )it's already been pushed to github) anyone know how to get back to how it was before? 2011-11-23T23:20:55 < peabody124> tail .git/logs/HEAD 2011-11-23T23:21:05 < peabody124> and you'll see the hash of your previous branch 2011-11-23T23:21:10 < peabody124> git reset --hard HASHTAG 2011-11-23T23:21:57 < karlp> which one and how? stack overflow says this: git reset --hard ORIG_HEAD 2011-11-23T23:22:03 < karlp> I haven't done any other commands yet. 2011-11-23T23:22:15 < karlp> I did a git rebase someremote/master (into my master) 2011-11-23T23:22:26 < peabody124> that ORIG_HEAD might work but i'm not sure how it would know which 2011-11-23T23:23:02 < peabody124> but for example take this line at the end of my log 2011-11-23T23:23:13 < peabody124> 08e74a0b0a06acf007f5b481c4f638b5540df9a0 bf1c02aafb27e525a9032657a3bdb7274061144f 1322072826 -0600 merge next: Merge made by recursive. 2011-11-23T23:23:26 < peabody124> the first hash is what i started with before merge and the second hash is after merge 2011-11-23T23:23:31 < karlp> all my lines say rebase: blah 2011-11-23T23:23:53 < peabody124> hmm… crap if that makes a ton of entries it might be risky 2011-11-23T23:24:00 < karlp> it did :) 2011-11-23T23:24:00 < peabody124> you don't have to reset though 2011-11-23T23:24:09 < peabody124> you can also just "git checkout HASH" and check the log 2011-11-23T23:24:13 < peabody124> make sure you find the one you want 2011-11-23T23:24:19 < peabody124> then git reset --hard SPECIFIC_HASH 2011-11-23T23:24:24 < peabody124> which is more conservative 2011-11-23T23:32:57 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [] 2011-11-23T23:34:01 < karlp> git reset --hard @{1} did all the magic in one go 2011-11-23T23:35:34 < dekar_> you guys seem to know git, do I wanna try that as well? 2011-11-23T23:35:52 < dekar_> so far I am using SVN, but since I mostly do solo projects others just download it works pretty well 2011-11-23T23:36:10 < peabody124> git is great if you need branches 2011-11-23T23:36:15 < peabody124> or do work without internet 2011-11-23T23:36:53 < dekar_> there was this discussion about switching to git at work, but I don't think any of us has tried it yet XD 2011-11-23T23:37:10 < dekar_> I just cloned a few repos, but never used it to commit anything 2011-11-23T23:37:25 < karlp> there are some major headfuckery pieces, 2011-11-23T23:37:39 < karlp> but when you finally get a bit more used to it, it lets you keep track of things really nicely 2011-11-23T23:37:59 < dekar_> I heard you don't commit to others repos, instead you branch them and they pull the changes, is that right? 2011-11-23T23:38:36 < karlp> you can do both... 2011-11-23T23:38:55 < karlp> but yeah, normally you commit them to your fork 2011-11-23T23:39:08 < karlp> things like github actually make this a little less clear, 2011-11-23T23:39:16 < karlp> as "you" on github is not the same as "you" at home. 2011-11-23T23:39:30 < karlp> and multiple people can push to the same repo 2011-11-23T23:39:39 < karlp> depends what your team looks like. 2011-11-23T23:40:15 < dekar_> I guess we'll have our own git server in the intranet/vpn 2011-11-23T23:40:33 < karlp> yar. 2011-11-23T23:40:34 < dekar_> though lately we have been outsourcing a lot, with horrible results imo 2011-11-23T23:40:42 < karlp> I actually use git-svn with works' svn. 2011-11-23T23:40:48 < karlp> git also is nice for some outsourcing, 2011-11-23T23:40:56 < karlp> you can let them commit their code into their own branches and repos, 2011-11-23T23:41:01 < karlp> and only pull in pieces at a time 2011-11-23T23:41:28 < dekar_> oh, I meant outsourcing like in outsourcing the hosting actually ;) 2011-11-23T23:41:45 < dekar_> administration 2011-11-23T23:42:01 < karlp> well, github et al let you have private repos, 2011-11-23T23:43:03 < peabody124> they also have business packages etc 2011-11-23T23:43:10 < dekar_> do you use any graphical clients? like for diff'ing changes? 2011-11-23T23:43:10 < peabody124> for small groups quite cheap - 25$ / mo 2011-11-23T23:43:24 < peabody124> actually they just released an OSX client that is really pretty 2011-11-23T23:43:28 < peabody124> generally i use command line though 2011-11-23T23:43:53 < peabody124> and we have a crucible web server git.openpilot.org/ that lets us browse the code 2011-11-23T23:44:02 < karlp> man, does windows really not let you print a size_t with %zd? 2011-11-23T23:44:04 < karlp> doh. 2011-11-23T23:45:17 < dekar_> karlp, never even heard of %zd, what's that? 2011-11-23T23:45:27 < karlp> prints a size_t 2011-11-23T23:45:41 < karlp> though, it should be %zu actually. 2011-11-23T23:46:04 < karlp> printf("size is %d", sizeof(blah)); will fail on 64 bit systems, 2011-11-23T23:46:16 < karlp> adding the z makes it work on both, but not on windows. 2011-11-23T23:46:43 < dekar_> oh, didn't know the z - never seen it before 2011-11-23T23:47:00 < karlp> I didn't either until I got a 64bit OS and had to fix some broken code :) 2011-11-23T23:47:33 < karlp> apparently the "best" way is now pritnf("size is %lu", (unsigned long)sizeof(blah)); 2011-11-23T23:47:47 < dekar_> I don't really get why it would fail 2011-11-23T23:48:08 < dekar_> I mean size_t is a typedef for unsigned long or something 2011-11-23T23:48:19 < dekar_> it's not that big anyway 2011-11-23T23:49:15 < karlp> no, if you were printing it with %u or %d before, which is fine on 32bit systems, 2011-11-23T23:49:33 < karlp> on a 64 it system, you would get a warning that you were passing an unsigned long when only an unsigned int was expected 2011-11-23T23:51:35 < dekar_> karlp, wouldn't sizeof(int) == sizeof(long) for most systems anyway? 2011-11-23T23:51:44 < karlp> no. 2011-11-23T23:51:47 < dekar_> O.o 2011-11-23T23:51:59 < dekar_> I'd have assumed them both to be 64bit on x64 2011-11-23T23:52:14 < dekar_> but I always use stdint.h anyway 2011-11-23T23:52:25 < karlp> which still doesn't help if you try and print a size_t :) 2011-11-23T23:53:20 < dekar_> I get the problem, but yeah I'd probably just cast in that case as well ;) 2011-11-23T23:53:53 < karlp> http://pastebin.com/DM3Utnd0 2011-11-23T23:55:19 < dekar_> I don't feel like using int/long etc cause of exactly that problem 2011-11-23T23:55:33 < dekar_> I rather define the size I want explicitly 2011-11-23T23:55:55 < dekar_> and I don't have to learn the specific sizes for my platform :D 2011-11-23T23:57:09 < dekar_> wikipedia says on windows x64 systems a long is just 32bit -.-" 2011-11-23T23:57:26 < dekar_> that stuff is far too fucked up 2011-11-23T23:57:39 < karlp> yep, uint64_t and friends are so much easier 2011-11-23T23:58:02 < dekar_> If I'll ever make my own compile I'll make sure char is 7 bit and int is 42bit :D 2011-11-23T23:58:09 < dekar_> *compiler 2011-11-23T23:58:11 < karlp> and no-one will use it :) 2011-11-23T23:58:17 < dekar_> haha 2011-11-23T23:58:22 < karlp> but I think you just reinvented PIC assembly 2011-11-23T23:58:44 < dekar_> I am so glad I went for arm 2011-11-23T23:58:58 < karlp> I'm hoping to become glad :) 2011-11-23T23:59:17 < dekar_> the stm32 is my first ?C platform and I actually considered going for atmel/arduino 2011-11-23T23:59:18 < karlp> I had a bit of fun last night trying to read the alternate functions chart trying to find which pins I could use for SPI :) 2011-11-23T23:59:39 < karlp> and how's it working out for you? --- Day changed Thu Nov 24 2011 2011-11-24T00:00:08 < dekar_> we have dome guy doing the schematics atm and it's supposed to ship in january 2011-11-24T00:00:21 < dekar_> so I guess it's coming along well :D 2011-11-24T00:00:56 < dekar_> I have been waiting like a year for those schematics (computer science guy myself :/) 2011-11-24T00:01:44 < dekar_> *some guy 2011-11-24T00:03:13 < dekar_> about that alternate SPI pin, isn't there a column for remapped functions in the datasheet, what was the problem? 2011-11-24T00:03:22 < karlp> yeah, I just had to find it. 2011-11-24T00:03:30 < karlp> the details about the spi registers and using it are in the reference manual, 2011-11-24T00:03:35 < karlp> the pin chart is in the datasheet 2011-11-24T00:03:52 < karlp> and I'm coming from simpler uCs, where there is only one pin combination :) 2011-11-24T00:04:10 < dekar_> I see 2011-11-24T00:04:39 < dekar_> that schematics guy has used up all those 21 ADC pins 2011-11-24T00:05:00 < dekar_> I'll have to look into those as well given the STM32 actually just has 3ADC and you have to remap them to read other pins 2011-11-24T00:05:20 < dekar_> he added a ton of shunts and voltage dividers 2011-11-24T00:06:03 < dekar_> the first guy working on it just hooked the adc up to 5V usb voltage and I had to tell him it wouldn't work -.-" 2011-11-24T00:08:33 < dekar_> the new guy added a ton of cool things, switched mode voltage converters instead of those linear ones 2011-11-24T00:09:01 < dekar_> which really makes sense given that we power optical transceivers (including the lasers) via usb 2011-11-24T00:09:19 < dekar_> we'll probably still be over 500mA -.- 2011-11-24T00:10:12 < dekar_> but no one seems to care and if a customer has a problem with that we'll probably just ship them a netbook XD 2011-11-24T00:12:14 < karlp> peabody124: I reckon your issue is actually what legace was hitting too: https://github.com/texane/stlink/issues/30 2011-11-24T00:12:54 < karlp> I had no real clue earlier, but rereading his notes, the key, "it always works at least once" seems to be pretty key :) 2011-11-24T00:13:50 < peabody124> oh yeah looks identical 2011-11-24T00:14:10 < peabody124> so it does affect linux too 2011-11-24T00:18:35 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving] 2011-11-24T00:19:04 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-24T00:19:07 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-24T00:29:55 < dekar_> I keep reading stlink all the time, I still don't get what's so cool about it. I am myself using versaloon which supports swd and jtag 2011-11-24T00:30:16 < dekar_> I mean there are even tutorials to flash the versaloon firmware 2011-11-24T00:30:39 < dekar_> I'd probably do that if I had a discovery board 2011-11-24T00:31:15 < peabody124> does the SWD on it work with OpenOCD eyt? 2011-11-24T00:33:30 < dekar_> I am pretty sure it does 2011-11-24T00:33:47 < dekar_> though I am just using jtag since my board has this 20pin header anyway 2011-11-24T00:33:57 < peabody124> have you tested it? libswd i don't think is to the point of actually programming chips 2011-11-24T00:34:20 < peabody124> at least i couldn't find any reports of it doign so and the author's writeup lists that as "todo" 2011-11-24T00:34:56 < dekar_> http://www.versaloon.com/bbs/viewtopic.php?f=2&t=2808 2011-11-24T00:35:19 < dekar_> wrote 118784 bytes from file LPC1700Test.hex in 11.478993s (10.105 KiB/s) 2011-11-24T00:35:23 < dekar_> looks like it works 2011-11-24T00:35:29 < dekar_> I can try it next week if you care 2011-11-24T00:36:21 < dekar_> oh that was the jtag programming line I copied, but SWD is right below 2011-11-24T00:36:34 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-24T00:38:05 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 260 seconds] 2011-11-24T00:38:14 < karlp> yeah, if you have enough working programmers, you can resolder things on your discovery board, and flash versaloon firmware. 2011-11-24T00:38:31 < peabody124> ok cool 2011-11-24T00:38:31 < karlp> or, you could use the board you already have... 2011-11-24T00:38:42 < peabody124> oh really? yeah i got four discovery boards 2011-11-24T00:39:15 < karlp> yeah, there's some notes out there on which of the solder bridges on which boards you can redo to replace the stlink firmware on the stlink end of the discovery baord with something else. 2011-11-24T00:39:48 < peabody124> well now that st-util doesn't lock up i might be good with that. just need to get the monitor commands working now 2011-11-24T00:40:14 < karlp> or, see if you can work out how to get the stlink bits into openocd :) 2011-11-24T00:40:46 < dekar_> it's just that people told me they'd run openOCD inside a VM to use stlink -.-" 2011-11-24T00:40:46 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has joined ##stm32 2011-11-24T00:40:59 < karlp> really? 2011-11-24T00:41:09 < dekar_> I don't get why st didn't open source their stuff anyway 2011-11-24T00:41:23 < peabody124> i gotta get my firmware working so don't want to spend tooo long on getting debugger working 2011-11-24T00:41:30 < karlp> hehe 2011-11-24T00:41:42 < peabody124> it's probably easier to figure out how to get the monitor commands working in stlink 2011-11-24T00:41:51 < dekar_> well I just bought two versaloon and was good to go :) 2011-11-24T00:42:09 < peabody124> yeah i might buy one but it takes 1-2 weeks to arrive 2011-11-24T00:42:19 < dekar_> did that like a year ago :) 2011-11-24T00:42:20 < karlp> sure, you can buy and any other stm32 board if you like 2011-11-24T00:42:28 < karlp> but, say, a VL discovery board is 8 euros. 2011-11-24T00:42:42 < dekar_> yeah well I don't pay for the stuff I order 2011-11-24T00:42:45 < karlp> and it includes a programmer and debugger that can program other boards 2011-11-24T00:42:45 < dekar_> so idc :P 2011-11-24T00:43:15 < karlp> so, for some people, not paying through the nose for basic tools is a nice thing. 2011-11-24T00:46:42 < peabody124> hehe yup 2011-11-24T00:51:04 < dekar_> discovery wasn't an option for me anyway since it lacked USB 2011-11-24T00:51:23 < dekar_> that was pretty much a showstopper given I wanted to develop an USB device 2011-11-24T00:54:18 < Laurenceb_> heh 2011-11-24T00:54:39 < Laurenceb_> USB isnt nice 2011-11-24T00:54:59 < dekar_> why not? 2011-11-24T00:55:08 < Laurenceb_> overcomplex :P 2011-11-24T00:55:29 < Laurenceb_> guess it seems simpler when you are more familiar with it 2011-11-24T00:55:31 < dekar_> dunno, didn't take me too long to get it working 2011-11-24T00:55:39 < Laurenceb_> just got my first USB device working 2011-11-24T00:55:49 < dekar_> never had anything to do with embedded before 2011-11-24T00:56:12 < Laurenceb_> what are you making? 2011-11-24T00:56:19 < dekar_> I just took the st example and customized the descriptor 2011-11-24T00:56:32 < dekar_> some device to program optical transceivers 2011-11-24T00:56:38 < Laurenceb_> interesting 2011-11-24T00:56:51 * Laurenceb_ is making a medical datalogger with blood pressure monitoring 2011-11-24T00:57:09 < dekar_> http://dl.dropbox.com/u/28467113/IMG_20111114_121240.jpg 2011-11-24T00:57:33 < dekar_> so you basically read a sensor every few seconds and record it? :) 2011-11-24T00:57:59 < Laurenceb_> not quite 2011-11-24T00:58:11 < Laurenceb_> its got ECG and PPG and stuff 2011-11-24T00:58:40 < Laurenceb_> data processing -> fatfs -> SD, then SD mounts as mass storage using USB 2011-11-24T00:58:55 < Laurenceb_> will probably put it on github at some point soon 2011-11-24T00:59:02 < dekar_> what does ppg even mean? 2011-11-24T00:59:14 < Laurenceb_> photoplethysmogram 2011-11-24T00:59:27 < Laurenceb_> optical absorbtion through tissue 2011-11-24T00:59:48 < dekar_> ah those things, I had one in hospital once :) 2011-11-24T00:59:53 < Laurenceb_> load of different wavelenght leds -> fibre -> patient -> photodiode 2011-11-24T01:00:12 < Laurenceb_> the hospital ones are usually dual wavelenght, for oxygen saturation 2011-11-24T01:00:31 < dekar_> they read oxygen saturation, don't they? 2011-11-24T01:00:32 < dekar_> ah yeah 2011-11-24T01:00:39 < dekar_> I think mine did 2011-11-24T01:10:39 -!- phantone is now known as phantoxe 2011-11-24T01:29:56 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2011-11-24T02:04:23 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has quit [Ping timeout: 240 seconds] 2011-11-24T02:05:01 -!- whitequark [~whitequar@2002:1fba:61b3::1] has quit [Ping timeout: 240 seconds] 2011-11-24T02:11:55 -!- whitequark [~whitequar@2002:1fba:61b3::1] has joined ##stm32 2011-11-24T02:12:13 -!- whitequa1k [~whitequar@2002:1fba:61b3::1] has joined ##stm32 2011-11-24T02:14:41 -!- whitequa1k [~whitequar@2002:1fba:61b3::1] has quit [Client Quit] 2011-11-24T02:56:23 -!- dekar_ [~dekar@drms-590ed1b2.pool.mediaWays.net] has quit [Ping timeout: 240 seconds] 2011-11-24T03:00:14 -!- peabody124_ [~peabody12@128.249.96.123] has joined ##stm32 2011-11-24T03:01:43 -!- peabody124__ [~peabody12@128.249.96.127] has joined ##stm32 2011-11-24T03:02:30 < peabody124__> ok that patch only fixes one problem with st-util. it still locks up on me quite a bit and becomes unreliable :( 2011-11-24T03:02:32 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 245 seconds] 2011-11-24T03:02:32 -!- peabody124__ is now known as peabody124 2011-11-24T03:04:29 -!- peabody124_ [~peabody12@128.249.96.123] has quit [Ping timeout: 244 seconds] 2011-11-24T03:16:15 -!- dekar [~dekar@drms-590eca20.pool.mediaWays.net] has joined ##stm32 2011-11-24T03:20:09 -!- dekar_ [~dekar@drms-590cfe29.pool.mediaWays.net] has joined ##stm32 2011-11-24T03:21:59 -!- dekar [~dekar@drms-590eca20.pool.mediaWays.net] has quit [Ping timeout: 252 seconds] 2011-11-24T03:24:38 -!- dekar_ [~dekar@drms-590cfe29.pool.mediaWays.net] has quit [Ping timeout: 244 seconds] 2011-11-24T03:57:52 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-24T04:01:22 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2011-11-24T04:01:40 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 260 seconds] 2011-11-24T04:14:07 -!- jnosky [~foo@c-68-39-251-30.hsd1.nj.comcast.net] has quit [] 2011-11-24T05:24:24 -!- Tom_L is now known as Tom_itx 2011-11-24T06:07:42 < erik-k> Well, I'm a tad bit late to the discussion, but what happens to me is the same as happens to jnosky. Apparently (possibly in libstm32?) I have the malloc & friends code, but get the same phenomenon. 2011-11-24T06:09:02 < erik-k> My makefile puts -mthumb on both the cc and the ld 2011-11-24T06:09:50 < erik-k> My linker.ld puts the heap immediately after data & bss, and starts the stack at top of ram as ought be 2011-11-24T06:10:23 < erik-k> I've narrowed down the crashes I experience, and it is the atof or printf that does it. 2011-11-24T06:34:00 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-24T06:34:57 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Disconnected by services] 2011-11-24T06:35:02 -!- Tom_L is now known as Tom_itx 2011-11-24T06:35:38 -!- zlog [~zlog@ip68-102-105-167.ks.ok.cox.net] has quit [Ping timeout: 258 seconds] 2011-11-24T06:36:31 -!- zlog [~zlog@ip68-102-105-167.ks.ok.cox.net] has joined ##stm32 2011-11-24T06:59:35 -!- peabody124 [~peabody12@128.249.96.127] has quit [Quit: peabody124] 2011-11-24T07:01:41 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2011-11-24T07:03:47 -!- peabody124 [~peabody12@128.249.96.123] has quit [Client Quit] 2011-11-24T07:43:36 -!- happylife [~happylife@212.92.145.7] has joined ##stm32 2011-11-24T08:13:26 -!- CheBuzz [~CheBuzz@76.164.192.124] has quit [Excess Flood] 2011-11-24T08:13:47 -!- CheBuzz [~CheBuzz@76.164.192.124] has joined ##stm32 2011-11-24T08:34:14 -!- happylife is now known as vpopov 2011-11-24T08:55:58 -!- emeb [~ericb@ip72-223-86-178.ph.ph.cox.net] has quit [Quit: Leaving.] 2011-11-24T10:11:09 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has quit [Quit: OOOOOO Whats that....] 2011-11-24T10:21:29 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2011-11-24T11:03:58 -!- vpopov [~happylife@212.92.145.7] has quit [Ping timeout: 258 seconds] 2011-11-24T11:05:41 -!- vpopov [~happylife@212.92.145.7] has joined ##stm32 2011-11-24T11:30:57 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-24T11:31:01 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-24T11:44:58 < karlp> peabody124: what else is causing the lockups? 2011-11-24T11:45:34 < karlp> I was thinking about it a bit more overnight, I think I'd rather try and find a way to make sure that it reopens properlay/cleanly, rather than trying to catch more escape signals 2011-11-24T11:55:18 < peabody124> yea i was wondering about that too 2011-11-24T11:55:23 < peabody124> i'm also dealing with a really weird issue right now 2011-11-24T11:55:32 < peabody124> where i basically can't get into the chip some times 2011-11-24T11:55:55 < karlp> yep, Laurenceb ran into some yesterday too, 2011-11-24T11:55:59 < peabody124> it keeps returning all 0 2011-11-24T11:56:03 < peabody124> for chip ID 2011-11-24T11:56:05 < karlp> if the chip is in standby it doesn't work, and returns 0s 2011-11-24T11:56:18 < peabody124> well this is when it's running and LED is flashing 2011-11-24T11:56:33 < peabody124> i don't have a the reset line going to my chip though 2011-11-24T11:56:53 < peabody124> did laurence find a fix? 2011-11-24T11:57:10 < peabody124> btw i really like single stepping via stlink - much faster than openocd 2011-11-24T11:58:06 < karlp> good to know. 2011-11-24T11:58:13 < karlp> writing flash is far slower I believe though 2011-11-24T11:58:35 < karlp> laurence's fix was to connect before his code went into standby I believe :) 2011-11-24T11:58:38 < karlp> so.... not really. 2011-11-24T11:58:56 < karlp> I'm also not sure how invasive the connect should be, 2011-11-24T11:58:58 < peabody124> yeah earlier i got it by pulling boot0 high 2011-11-24T11:59:08 < peabody124> i think by default it shouldn't be invasive 2011-11-24T11:59:09 < karlp> it should be possible to connect, but not reset/restart the target 2011-11-24T11:59:22 < peabody124> that's why with openocd the monitor commands are key 2011-11-24T11:59:25 < karlp> to listen to swv for instance 2011-11-24T11:59:28 < karlp> yeah, exactly 2011-11-24T11:59:57 < peabody124> i was wondering - is the stlink protocol documented or are you guys having to reverse engineer it? 2011-11-24T12:00:08 < peabody124> like for example are there commands like reset chip that are currently not executed? 2011-11-24T12:00:20 * karlp shrugs 2011-11-24T12:00:29 < karlp> it was all reverse engineered, but not by me. 2011-11-24T12:00:44 < peabody124> is there a good site to read for it? 2011-11-24T12:01:08 < karlp> allegedly someone h as some ST source for the stlink, and "we're not missing anything anymore" but we may not be using it all in the right ways 2011-11-24T12:01:19 < karlp> the only site/docs are the code, commit comments 2011-11-24T12:01:52 < karlp> there's some stuff in "to_remove" that contains some old usb packet traces and docs when the stlinkv2 was being added, 2011-11-24T12:02:02 < karlp> I don't know anything about how the stlinkv1 was discovered 2011-11-24T12:02:10 < karlp> all above my head 2011-11-24T12:02:20 < karlp> I'm just more chatty on IRC :) 2011-11-24T12:04:22 < peabody124> ok thank you! adding stlink_reset(sl) into the gdbserver gets me into it 2011-11-24T12:04:33 < peabody124> in fact fuck that should definitely be in the flash command 2011-11-24T12:05:43 < karlp> who's latest code are you adding? https://github.com/texane/stlink/commit/e9586c100e33fe72e4528b21768bd155a68517e2 fixed that.... 2011-11-24T12:05:55 < peabody124> oh it is 2011-11-24T12:06:02 < karlp> I guess it should be in the gdb server somewhere too? 2011-11-24T12:06:19 < peabody124> well that does depend 2011-11-24T12:06:40 < peabody124> for example in my ideal world you would run st-util and it would reliably connect and let you inspect memory contents 2011-11-24T12:06:44 < peabody124> but not disturb running behavior 2011-11-24T12:07:16 < karlp> that does sound ideal. 2011-11-24T12:09:58 < peabody124> ok so another issue i run into a lot: programming with the flash command will erase the flash, say "Successfully unlocked flash" and then hang 2011-11-24T12:10:32 < karlp> stutil hangs? or the target hangs? 2011-11-24T12:10:51 < peabody124> i think target since it persists between powercycling the discovery 2011-11-24T12:11:19 < peabody124> my gut feeling is it starts executing code while it's being uploaded and bad things happen 2011-11-24T12:28:23 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving] 2011-11-24T13:12:09 -!- dekar_ [~dekar@drms-590cfd51.pool.mediaWays.net] has joined ##stm32 2011-11-24T13:29:44 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-24T13:29:47 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-24T13:40:43 <+Steffanx> !seen izua 2011-11-24T13:41:05 <+Steffanx> Whoa, almost 4 weeks ago 2011-11-24T13:41:23 <+Steffanx> Uhm alsmost 5 2011-11-24T13:41:25 <+Steffanx> -s 2011-11-24T14:04:27 < dekar_> -.- 2011-11-24T14:04:34 < dekar_> so sad 2011-11-24T14:06:40 <+Steffanx> I just wonder where he is :P 2011-11-24T14:11:11 -!- dekar_ [~dekar@drms-590cfd51.pool.mediaWays.net] has quit [Read error: Connection reset by peer] 2011-11-24T14:11:34 -!- dekar_ [~dekar@drms-590cfd51.pool.mediaWays.net] has joined ##stm32 2011-11-24T14:12:09 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124] 2011-11-24T14:18:33 < dekar_> Steffanx, a friend bought this board: http://www.ebay.de/itm/ws/eBayISAPI.dll?ViewItem&item=120640315306&ssPageName=ADME:L:OU:DE:1123#ht_3067wt_986 2011-11-24T14:18:41 < dekar_> somehow I really don't like it 2011-11-24T14:18:54 < dekar_> it has a ton of ICs for various things 2011-11-24T14:19:24 < dekar_> like it has an spi IC for ethernet 2011-11-24T14:19:27 <+Steffanx> It's pretty cheap though :P 2011-11-24T14:19:45 < dekar_> I wouldn't like to use all those ICs 2011-11-24T14:19:49 < karlp> it has 2 (two!) DB9 connectors! 2011-11-24T14:19:50 < dekar_> it has an USB host IC 2011-11-24T14:19:51 <+Steffanx> Oh that ugly (imho) ENC28J60 2011-11-24T14:19:59 < karlp> that makes it immediately terrible 2011-11-24T14:20:07 < dekar_> with on chip FAT32 2011-11-24T14:20:19 <+Steffanx> The VS1003B mp3 decoder is nice though 2011-11-24T14:20:20 < dekar_> it's some mass storage to SPI IC 2011-11-24T14:20:22 < karlp> (in my completely selfish opinion) 2011-11-24T14:20:28 <+Steffanx> That enc28j60 is only 10mbit, so it sucks 2011-11-24T14:20:41 < dekar_> I would have gone for srm32f107 or f2 2011-11-24T14:20:49 <+Steffanx> Yeah 2011-11-24T14:21:04 < dekar_> also no SRAM on that board, but a ton of NAND 2011-11-24T14:21:47 < dekar_> now he'll come over tomorrow to have me explain to him how to use it 2011-11-24T14:21:59 <+Steffanx> Haha 2011-11-24T14:22:02 <+Steffanx> Good luck 2011-11-24T14:22:36 < dekar_> I surely won't read all those datasheets for the ICs for him 2011-11-24T14:23:26 < dekar_> I guess I'll show him blinky lights or something 2011-11-24T14:24:39 < dekar_> the stm32f107 would have had proper ethernet (still phy needed of) and even usb host support 2011-11-24T14:24:44 < dekar_> *ofc 2011-11-24T14:24:46 <+Steffanx> It's probably worth the money, but it's not a board i would have bought 2011-11-24T14:24:56 <+Steffanx> Indeed 2011-11-24T14:25:34 < dekar_> how do you use those ethernet ICs anyway? sounds like a lot of work to glue that onto some TCP stack 2011-11-24T14:25:59 < dekar_> for the stm32f107 mac you could have just used the lib st provides 2011-11-24T14:26:32 <+Steffanx> I think it's not that hard to make stack for the enc28j60 2011-11-24T14:26:49 <+Steffanx> Just talk to the registers over an SPI connection 2011-11-24T14:27:57 < dekar_> I guess, dunno the IC. But when I looked at the datasheet for that usb host IC it really looked weird. It has commands to create files and so on 2011-11-24T14:28:50 < dekar_> Steffanx, btw, my FPGA board comes with gbit ethernet and has some webinterface 2011-11-24T14:28:58 < dekar_> but I feel like it might be broken 2011-11-24T14:28:59 <+Steffanx> Fancy 2011-11-24T14:29:17 < dekar_> all the self-tests pass, but the one for the multi-gigabit transceivers 2011-11-24T14:30:31 <+Steffanx> Hmm, that kinda sucks for an expensive board like that 2011-11-24T14:31:06 < dekar_> well I'll just return it once I am sure about it 2011-11-24T14:31:16 < dekar_> but annoying yeah 2011-11-24T14:32:49 < dekar_> I liked the huge box it came in :D 2011-11-24T14:32:50 < dekar_> http://dl.dropbox.com/u/28467113/IMG_20111124_001630.jpg 2011-11-24T14:33:17 <+Steffanx> Nice videocard :P 2011-11-24T14:33:33 < dekar_> the fan is incredible loud -.- 2011-11-24T15:24:44 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-24T15:24:47 -!- mode/##stm32 [+v Steffann] by ChanServ 2011-11-24T15:26:55 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Read error: No route to host] 2011-11-24T16:07:46 -!- dekar__ [~dekar@drms-590edf9f.pool.mediaWays.net] has joined ##stm32 2011-11-24T16:09:37 -!- dekar_ [~dekar@drms-590cfd51.pool.mediaWays.net] has quit [Ping timeout: 245 seconds] 2011-11-24T16:18:10 -!- Steffann is now known as Steffanx 2011-11-24T16:36:05 < BadDorf> dekar__: heh.. bit like the 12" square box I got sent to the uk from the usa, containing .. 1 single soic8 chip.. =) 2011-11-24T16:39:03 < karlp> I sometimes wonder if the shipping people are having gams with themselves and each other 2011-11-24T16:39:13 < karlp> to see how outrageous a package they cna get away with 2011-11-24T16:41:30 < BadDorf> in my defence, I ordered it a from a uk retailer.. seems they sourced the part from their usa counterpart & shipped it direct to me 2011-11-24T16:44:50 -!- jnosky [~foo@c-68-39-251-30.hsd1.nj.comcast.net] has joined ##stm32 2011-11-24T16:46:13 < Laurenceb> what are you using it for? 2011-11-24T16:46:37 < BadDorf> storing pulse widths as a buffer from a floppy drive 2011-11-24T16:47:10 < BadDorf> I could have used an spi fram, but I needed at least 512kbit, and they seemed harder to find 2011-11-24T16:47:10 < Laurenceb> wut 2011-11-24T16:47:32 < Laurenceb> surely you dont needs something that powerful 2011-11-24T16:48:59 < BadDorf> floppy drive, low density, spins at ~300 rpm, one rev every 200ms, one rev = one track, got the rdata line hooked to a pin that can do timer capture, got dma configured to xfer the timer capture reg across to the spi data reg, enable timer, and fram fills up with pulse width data =) .. then disable timer & dma, and use 2nd dma to pull data back from spi & write it back down to the sd card as a file 2011-11-24T16:49:13 < BadDorf> repeat 3x per track, per side, then transfer the whole lot back to the host 2011-11-24T16:49:38 < Laurenceb> wait your doing it with an stm? 2011-11-24T16:49:58 < Laurenceb> thats more sane 2011-11-24T16:50:06 < Laurenceb> thought you were using that fpga 2011-11-24T16:50:12 < BadDorf> fpga? 2011-11-24T16:50:18 < BadDorf> which ? 2011-11-24T16:50:41 < Laurenceb> doh wrong nice nvm 2011-11-24T16:50:44 < BadDorf> the soic8 is an spi fram =) 2011-11-24T16:50:45 < Laurenceb> *nick 2011-11-24T16:50:47 < Laurenceb> :P 2011-11-24T16:50:52 < BadDorf> no probs 2011-11-24T16:50:55 <+Steffanx> lol 2011-11-24T16:51:13 < Laurenceb> using a massive fpga to interface with a floppy would be ... odd 2011-11-24T16:51:26 < BadDorf> not that odd.. depends what you want to do with the data.. 2011-11-24T16:51:29 <+Steffanx> over engineering ftw! 2011-11-24T16:51:49 < Laurenceb> http://www.evilmadscientist.com/article.php/googlyshield 2011-11-24T16:51:57 <+Steffanx> When it's a hobby project you can justify it Laurenceb 2011-11-24T16:52:08 < jpa-> fpga's are used for much more mundane things than that 2011-11-24T16:52:16 < BadDorf> pulses can come in at around 3.5us apart at their quickest (for a DD disk, half that for HD) 2011-11-24T16:52:32 < BadDorf> which really doesnt allow much processing time, even in the stm32 @ 72mhz 2011-11-24T16:52:37 < jpa-> at work, they have this system that has FPGA just to capture exact timing of I2C communications 2011-11-24T16:52:48 <+Steffanx> Only a woman can invent something like that Laurenceb 2011-11-24T16:53:11 < BadDorf> so quite a few floppy readers use an fpga up front to do the timing capture, encode the data down into something less time sensitive for the uc to read 2011-11-24T16:54:29 < karlp> Laurenceb: ....?! 2011-11-24T16:55:15 < Laurenceb> its the latest and greatest arduino shield 2011-11-24T16:55:36 < jpa-> it's not as crazy as it first seems :) 2011-11-24T16:55:54 < jpa-> the googly eyes really add to a project 2011-11-24T16:56:08 < Tom_itx> evidently they've run out of stupid things to do with the arduino 2011-11-24T16:56:24 < karlp> no, they've still got plenty of stupid things left 2011-11-24T16:56:40 < karlp> my favourite is defining things like, "number of adc inputs" 2011-11-24T16:56:47 < jpa-> (but for real, it's for mounting a battery or a speaker or similar :) 2011-11-24T16:56:49 < karlp> and then using a number instead of the define. 2011-11-24T16:57:21 < jpa-> karlp: happens all the time when multiple people contribute to the same codebase 2011-11-24T16:57:43 < Laurenceb> some of the backend stuff is good in the libraries 2011-11-24T16:58:04 < Laurenceb> ive used the RF22 mesh network lib on stm32 2011-11-24T16:58:04 < Tom_itx> most of the ppl using it don't have a clue though 2011-11-24T16:58:22 < jpa-> of course they don't, that's why they use the easiest platform 2011-11-24T16:58:52 < jpa-> the point to argue is whether it is good or bad that people without clue can get something done 2011-11-24T16:59:23 < karlp> more googly eyes: http://evilmadscience.com/productsmenu/partsmenu/154-winecharm 2011-11-24T16:59:26 < Tom_itx> the ones that can't go to #avr and pester us for help 2011-11-24T17:00:43 < jpa-> irc users are a minority, after all :) 2011-11-24T17:04:08 <+Steffanx> At least we can point them to #arduino Tom_itx :) 2011-11-24T17:05:44 < BadDorf> heh.. I'm there already ;p 2011-11-24T17:06:01 < BadDorf> couple of ppl in there know stm32 quite well it seems ;p 2011-11-24T17:11:03 < Laurenceb> http://www.amazon.co.uk/Lexar-Professional-133X-128GB-SDXC/dp/B004OJNE4C/ref=sr_1_1?ie=UTF8&qid=1322147438&sr=8-1 2011-11-24T17:11:08 < Laurenceb> holy shit 128GB 2011-11-24T17:12:23 <+Steffanx> class 10 :) 2011-11-24T17:12:31 < BadDorf> hehe.. was thinking at lunch.. if I took my floppy disk reader, added write support, loaded an sd card with the TOSEC amiga adf collection, and put it all inside the floppy duplicator unit, with a 16x2 lcd on the front.. 2011-11-24T17:12:55 < BadDorf> I could have a unit where you load up empty floppy disks, select which game you want, and it writes the disks for it there & then =) 2011-11-24T17:13:13 < BadDorf> that would be an awesomely bad idea =) 2011-11-24T19:08:50 -!- CheBuzz [~CheBuzz@76.164.192.124] has quit [Excess Flood] 2011-11-24T19:09:10 -!- CheBuzz [~CheBuzz@76.164.192.124] has joined ##stm32 2011-11-24T19:30:23 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2011-11-24T19:31:24 -!- happylife [~happylife@46.251.83.126] has joined ##stm32 2011-11-24T19:33:08 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Client Quit] 2011-11-24T19:43:37 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2011-11-24T20:13:21 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-24T20:36:20 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124] 2011-11-24T21:11:07 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-24T21:56:17 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has joined ##stm32 2011-11-24T21:56:22 < Laurenceb_> sup 2011-11-24T22:08:56 -!- peabody124_ [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-24T22:08:56 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer] 2011-11-24T22:08:57 -!- peabody124_ is now known as peabody124 2011-11-24T22:11:55 -!- meloun [~meloun@188-194-200-239-dynip.superkabel.de] has joined ##stm32 2011-11-24T22:12:30 -!- happylife [~happylife@46.251.83.126] has quit [Ping timeout: 258 seconds] 2011-11-24T22:23:59 -!- district is now known as District 2011-11-24T22:25:15 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-24T22:45:57 -!- meloun [~meloun@188-194-200-239-dynip.superkabel.de] has left ##stm32 [] 2011-11-24T23:13:19 -!- District is now known as district --- Day changed Fri Nov 25 2011 2011-11-25T00:02:42 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Read error: Connection reset by peer] 2011-11-25T00:03:06 -!- Thorn [~Thorn@93-81-4-120.broadband.corbina.ru] has joined ##stm32 2011-11-25T00:03:06 -!- Thorn [~Thorn@93-81-4-120.broadband.corbina.ru] has quit [Changing host] 2011-11-25T00:03:06 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-25T00:05:03 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Quit: ZNC - http://znc.sourceforge.net] 2011-11-25T00:06:25 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32 2011-11-25T00:33:33 <+Steffanx> The sky Laurenceb_ 2011-11-25T00:39:48 < whitequark> has anyone ever tried to program stlink v1 with stlink v1? 2011-11-25T00:41:10 < whitequark> I've removed the small 0R resistors underneath STM32VLDISCOVERY to enable access to stlink's swd 2011-11-25T00:42:03 < whitequark> and the st-util kind of initializes, but it reads nonsense instead of the flash size 2011-11-25T00:43:53 <+Steffanx> nope 2011-11-25T00:44:11 < whitequark> Steffanx: are you, eh, sure? 2011-11-25T00:44:20 <+Steffanx> I'm sure i didn't try it :) 2011-11-25T00:44:50 < whitequark> well, the categories of you and anyone aren't quite equivalent :) 2011-11-25T00:46:51 <+Steffanx> You want to load the versaloon fw on it? 2011-11-25T00:47:18 < BrainDamage> whitequark: http://takenapart.com/?p=82 2011-11-25T00:47:18 < whitequark> I didn't knew that it was ever possible 2011-11-25T00:47:41 < whitequark> actually, no: I just didn't had any F103's lying around, and I just needed USB and nothing more 2011-11-25T00:49:39 < whitequark> BrainDamage: the wiring is fine, as (in my case) the Core and Chip IDs were read correctly 2011-11-25T01:11:17 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2011-11-25T01:11:20 -!- zlog [~zlog@ip68-102-105-167.ks.ok.cox.net] has quit [Remote host closed the connection] 2011-11-25T01:13:07 -!- Netsplit *.net <-> *.split quits: vpopov, Xunil, Laurenceb_, peabody124, Thorn, CheBuzz, jaeckel, Tom_itx, dekar__, whitequark, (+6 more, use /NETSPLIT to show all of them) 2011-11-25T01:14:06 -!- Netsplit over, joins: BrainDamage, Thorn, Laurenceb_, |Marco|, peabody124, CheBuzz, dekar__, Tom_itx, whitequark, Xunil (+1 more) 2011-11-25T01:14:07 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2011-11-25T01:15:07 -!- Laurenceb [~laurence@vlsi1.eee.nottingham.ac.uk] has joined ##stm32 2011-11-25T01:15:07 -!- Rious [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-25T01:15:21 -!- vpopov [~happylife@212.92.145.7] has joined ##stm32 2011-11-25T01:15:22 -!- erik-k [~erik-k@71-34-249-33.eugn.qwest.net] has joined ##stm32 2011-11-25T01:15:22 -!- BadDorf [BD@nat/ibm/x-jrlwqrcoztthulpm] has joined ##stm32 2011-11-25T01:15:44 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-25T01:15:48 -!- zlog [~zlog@ip68-102-105-167.ks.ok.cox.net] has joined ##stm32 2011-11-25T02:01:25 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has quit [Ping timeout: 240 seconds] 2011-11-25T02:14:38 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2011-11-25T02:15:17 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-25T02:34:14 < peabody124> ok, i have st-util acking the monitor request from gdb 2011-11-25T02:34:24 < peabody124> now to try and change the run state 2011-11-25T02:47:38 < peabody124> ok fuck yea. monitor reset/resume/halt all work now 2011-11-25T02:57:19 < peabody124> karlp - pushed the changes to github peabody124/stlink - that last patch is probably quite useful 2011-11-25T03:37:17 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has quit [Remote host closed the connection] 2011-11-25T03:37:26 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-25T04:17:37 -!- peabody124_ [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-25T04:17:37 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer] 2011-11-25T04:17:38 -!- peabody124_ is now known as peabody124 2011-11-25T04:21:42 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer] 2011-11-25T04:21:58 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-25T04:22:10 -!- peabody124_ [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-25T04:26:04 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has quit [Ping timeout: 244 seconds] 2011-11-25T04:26:04 -!- peabody124_ is now known as peabody124 2011-11-25T04:26:12 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has quit [Remote host closed the connection] 2011-11-25T04:26:24 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-25T04:39:52 -!- peabody124_ [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-25T04:42:30 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has quit [Ping timeout: 240 seconds] 2011-11-25T04:42:30 -!- peabody124_ is now known as peabody124 2011-11-25T04:52:02 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer] 2011-11-25T05:31:32 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2011-11-25T06:11:24 -!- dekar__ [~dekar@drms-590edf9f.pool.mediaWays.net] has quit [Quit: This computer has gone to sleep] 2011-11-25T06:12:33 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-25T07:42:06 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has joined ##stm32 2011-11-25T08:11:25 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [] 2011-11-25T10:43:33 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has joined ##stm32 2011-11-25T11:02:06 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has quit [Ping timeout: 240 seconds] 2011-11-25T11:19:06 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-25T11:19:09 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-25T11:45:43 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has quit [Quit: OOOOOO Whats that....] 2011-11-25T11:56:47 < karlp> peabody124: I like the monitor commands, but I'm still not real turned on by the ctrl-c hooking... could you write up a little bit some examples for dumb people like me how to use the difference between load elf, continue, kill and run, vs load elf, monitor reset|halt|resume? 2011-11-25T12:38:59 -!- dekar_ [~dekar@drms-590c40bb.pool.mediaWays.net] has joined ##stm32 2011-11-25T12:42:00 < Laurenceb> heh that confused me a lot too 2011-11-25T12:42:08 < Laurenceb> thought my F4discovery wasnt working 2011-11-25T13:35:32 < Laurenceb> odd 2011-11-25T13:35:40 < Laurenceb> SysTick_Config seems to be missing 2011-11-25T13:35:46 < Laurenceb> where should it be? 2011-11-25T13:55:06 < dekar_> zlog, 2011-11-25T13:55:06 < zlog> dekar_: Log stored at http://tom-itx.dyndns.org:81/~tom-itx/irc/logs/%23%23stm32/2011-11-25.html 2011-11-25T13:59:11 < Laurenceb> nvm its in core_cm3 and has been replaced by SysTick_Config 2011-11-25T14:00:57 < Laurenceb> ITM_SendChar (uint32_t ch) 2011-11-25T14:01:15 < Laurenceb> and NVIC_SystemReset look usefule - from core_cm3 2011-11-25T14:03:30 < jpa-> instruction trace macrocell would be fun if i had something to receive the data :) 2011-11-25T14:06:19 < karlp> is stlink meant to be able to? if you have the right drivers? 2011-11-25T14:06:29 < karlp> or do you need another tool altogether? 2011-11-25T14:06:48 < jpa-> i don't quite know 2011-11-25T14:06:53 < jpa-> i think you need something different 2011-11-25T14:10:05 < karlp> need to read more arm docs I guess 2011-11-25T14:11:33 < jpa-> hmm.. should i code my own matrix stuff atop libfixmath or should i use.. ewww.. ready-made floating point code 2011-11-25T14:12:59 < Laurenceb> jpa-: kalman filter? 2011-11-25T14:13:28 < Laurenceb> karlp: doesnt SWD have all the same functionality as JTAG? 2011-11-25T14:13:35 < jpa-> yeah, kalman filter and other stuff 2011-11-25T14:13:43 < Laurenceb> look at openpilot 2011-11-25T14:13:55 < Laurenceb> they have surely the best EKF for IMU use 2011-11-25T14:14:05 < jpa-> but i don't have an IMU 2011-11-25T14:14:33 < karlp> I woul dhave hoped that all of the ITM and debug console stuff would work over SWD, and over stlink, if all the proper driver support is there, yes. 2011-11-25T14:14:40 < jpa-> (though it does come close.. still i dont 2011-11-25T14:14:58 < jpa-> think a hard-coded measurement function designed for IMU is going to cut it) 2011-11-25T14:36:47 < Laurenceb> is there a difference between blocks and sectors on sd? 2011-11-25T14:37:00 -!- dekar__ [~dekar@drms-590edca5.pool.mediaWays.net] has joined ##stm32 2011-11-25T14:37:38 < jpa-> Laurenceb: nope, but internally the erase blocks are larger 2011-11-25T14:37:54 < Laurenceb> im trying to understand the eval code 2011-11-25T14:38:12 < Laurenceb> it has a 'mass storage abstraction layer' 2011-11-25T14:38:12 -!- dekar_ [~dekar@drms-590c40bb.pool.mediaWays.net] has quit [Ping timeout: 276 seconds] 2011-11-25T14:38:22 < Laurenceb> that has a read/write size 2011-11-25T14:38:32 < jpa-> everything is 512 bytes :) 2011-11-25T14:38:33 < Laurenceb> but the eval sd code just uses single block read 2011-11-25T14:38:49 < Laurenceb> so im guessing that measn the transfer size is always 512bytes? 2011-11-25T14:39:17 < jpa-> you never know of ST, they might just have been lazy 2011-11-25T14:39:21 < jpa-> "it works on windows" 2011-11-25T14:39:24 < Laurenceb> lol 2011-11-25T14:39:33 < Laurenceb> well they dont id the card 2011-11-25T14:39:43 < Laurenceb> its going to break on mmc and SDHC 2011-11-25T14:39:49 < Laurenceb> and uses polled spi, lame 2011-11-25T14:40:08 < jpa-> it is an example anyway 2011-11-25T14:40:19 < Laurenceb> ive swapped the storage abstraction thing to use fatfs example interface code 2011-11-25T14:40:22 < jpa-> if you don't have a threading system, using DMA is not going to buy much 2011-11-25T14:40:36 < Laurenceb> i do have threading :P 2011-11-25T14:40:47 < jpa-> but does their example? 2011-11-25T14:40:51 < Laurenceb> no 2011-11-25T14:40:54 < jpa-> indeed 2011-11-25T14:40:55 < Laurenceb> :P 2011-11-25T14:41:42 < Laurenceb> so i guess ill ignore transfer size and read one sector 2011-11-25T14:42:00 < jpa-> how come you are not just using chibios's SD card stuff even though IIRC you were the one to recommend chibios to me? :P 2011-11-25T14:42:10 < Laurenceb> lol 2011-11-25T14:42:18 < Laurenceb> i dont know :P 2011-11-25T14:43:03 * Laurenceb looks up chibios usb support 2011-11-25T14:47:01 < Laurenceb> yeah it looks quite good, but id have to port a lot of code 2011-11-25T14:47:05 < Laurenceb> for my datalogger 2011-11-25T14:50:22 <+Steffanx> You work at 3 projects at once Laurenceb? 2011-11-25T14:50:51 < Laurenceb> more than that usually 2011-11-25T15:39:58 < Laurenceb> hmm its not working 2011-11-25T15:40:23 < Laurenceb> connects ok, self tests the card ok, and gets card size, but there filesystem errors 2011-11-25T15:40:57 < Laurenceb> im guessing its reading integer multiples of 512bytes at a time 2011-11-25T15:41:55 < jpa-> printf :) 2011-11-25T15:42:04 < jpa-> the greatest debugging tool 2011-11-25T15:43:19 < Laurenceb> lol 2011-11-25T15:43:34 < Laurenceb> ive got swd working 2011-11-25T15:43:59 < jpa-> printf distrubts the timing less 2011-11-25T15:44:39 < Laurenceb> how do i set a breakpoint at function entry and dump the arguments? 2011-11-25T15:46:34 < jpa-> b function; commands 1; bt full 1; c; end 2011-11-25T15:46:46 < jpa-> obviously 2011-11-25T15:47:06 < Laurenceb> oh shit 2011-11-25T15:47:14 < Laurenceb> i mixed up read and write 2011-11-25T15:47:26 < Laurenceb> the filesystem probably really is corrupted 2011-11-25T15:47:35 < Laurenceb> doh 2011-11-25T15:48:00 < Laurenceb> at least dma is working - the drive size uses it :P 2011-11-25T16:08:01 <+Steffanx> Free cake for us? 2011-11-25T16:09:15 < Laurenceb> huh? 2011-11-25T16:09:25 < jpa-> i have some cake 2011-11-25T16:09:30 < jpa-> it is very tasty 2011-11-25T16:09:36 < grummund> pass it around then 2011-11-25T16:09:43 < jpa-> sorry nope 2011-11-25T16:09:46 < jpa-> its mine 2011-11-25T16:09:48 < jpa-> all of it 2011-11-25T16:09:56 < grummund> bah! :( :p 2011-11-25T16:26:13 * Tom_itx bans jpa- 2011-11-25T16:26:24 < jpa-> but i'm the one with the ops 2011-11-25T16:26:56 < Tom_itx> umm 2011-11-25T16:26:59 < Tom_itx> not currently 2011-11-25T16:28:49 <+Steffanx> Not anymore jpa- :) 2011-11-25T16:28:56 <+Steffanx> At least i'm the only one with voice :) 2011-11-25T16:29:25 <+Steffanx> There's another way to do that Tom_itx 2011-11-25T16:29:31 <+Steffanx> /msg nickserv info izua 2011-11-25T16:30:12 < Tom_itx> doesn't say where he was though 2011-11-25T16:30:40 <+Steffanx> No but who cares about that? :) 2011-11-25T16:30:50 < Tom_itx> tobbor 2011-11-25T16:39:51 < Laurenceb> Timing buffered disk reads: 4 MB in 7.78 seconds = 526.28 kB/sec 2011-11-25T16:39:53 < Laurenceb> booo 2011-11-25T16:39:56 < Laurenceb> thats piss poor 2011-11-25T16:51:15 <+Steffanx> That's the speed of the sd card? 2011-11-25T16:51:27 < Laurenceb> im not sure if its seeking 2011-11-25T16:51:31 < Laurenceb> thats be slower 2011-11-25T16:51:38 < Laurenceb> *that would 2011-11-25T16:51:58 < Laurenceb> my SDHC card wont work :( 2011-11-25T17:03:12 < Laurenceb> http://www.avrfreaks.net/modules/PNphpBB2/images/avatars/upload/7289833504cc54437b0919.gif 2011-11-25T17:03:16 * Laurenceb likes 2011-11-25T17:03:39 <+Steffanx> Yeah 2011-11-25T17:27:27 < karlp> hehe, neat 2011-11-25T17:27:35 < karlp> not quite as simple on stm32 :) 2011-11-25T18:23:44 < peabody124> karlp - the difference with the monitor commands is this 2011-11-25T18:23:55 < peabody124> you can load your elf. say monitor reset, monitor resume 2011-11-25T18:24:06 < peabody124> then inspect and change variables while it's running without stopping it at all 2011-11-25T18:24:40 < peabody124> so say you're working on a speed control, you can peek at the current current measurement while it's running then change the timing settings while the thing keeps spinning 2011-11-25T18:30:43 < Laurenceb> oh nice 2011-11-25T18:31:22 < Laurenceb> pretty useful feature 2011-11-25T18:37:40 < karlp> hooray, work's ordering again, I can get an F4 board, unhooray, digikey still refuses to ship 802.15.4 modules. 2011-11-25T18:37:43 < karlp> scumbags 2011-11-25T18:39:34 < Laurenceb> is there a way to force reset over swd? 2011-11-25T18:39:43 < karlp> kill does doesn't it? 2011-11-25T18:40:01 < Laurenceb> no 2011-11-25T18:40:03 < karlp> does anyone have nice F100x footprints for eagle? 2011-11-25T18:43:28 < Laurenceb> dont know 2011-11-25T18:43:34 < Laurenceb> look in the libs :P 2011-11-25T18:43:48 < Laurenceb> this is weird - anyone used the fatfs sd spi example code? 2011-11-25T18:44:11 < Laurenceb> i have to init twice with a delay inbetween to make SDHC cards boot 2011-11-25T18:45:07 < Laurenceb> i thought it was the spi line logic levels switching as the spi hardware was enabled, so enabed gpio will pullups 2011-11-25T18:45:13 < Laurenceb> but it still breaks 2011-11-25T19:02:30 < karlp> heh, mouser sells the F100C8 (64k flash, 8k ram) for 50c less than the C4 (16k flash 4kram) in the same package 2011-11-25T19:10:12 < Laurenceb> ok.. made it work, but the code is returning 2.2TB size 2011-11-25T19:10:24 < Laurenceb> with is 512 times 4GB - the actual size 2011-11-25T19:10:43 < Laurenceb> im guessing something isnt working with SDHC 2011-11-25T19:13:26 < Laurenceb> i wonder if this was even tested... 2011-11-25T19:14:39 < karlp> I used the fatfs sd spi example with an avr 2011-11-25T19:14:50 < karlp> but only a one gig sd card, which is not sdhc 2011-11-25T19:15:23 < Laurenceb> yeah 2011-11-25T19:15:36 < Laurenceb> SDSC works fine for me 2011-11-25T19:16:09 < Laurenceb> looks like the number of sectors is returned from the card 2011-11-25T19:16:34 < Laurenceb> if ((csd[0] >> 6) == 1) { /* SDC version 2.00 */ 2011-11-25T19:16:44 < Laurenceb> but theres a different format for SDHC ^ 2011-11-25T19:17:09 < karlp> well, did the demo example code says "SD" or "SDHC" ? ;) 2011-11-25T19:17:14 < Laurenceb> maybe that code is broken - its from mikrocontroller.net origionally, and just included with fatfs for example 2011-11-25T19:17:27 < Laurenceb> its supposed to support both 2011-11-25T19:28:12 -!- dekar__ [~dekar@drms-590edca5.pool.mediaWays.net] has quit [Quit: This computer has gone to sleep] 2011-11-25T19:35:46 < Laurenceb> ok.. 2011-11-25T19:35:52 < Laurenceb> me SDHC ids as MMC 2011-11-25T19:35:54 < Laurenceb> *my 2011-11-25T19:36:06 < Laurenceb> the 1GB uSD ids as SDv2 2011-11-25T19:36:17 < Laurenceb> which int necessarily SDHC aiui 2011-11-25T19:36:27 < Laurenceb> as its doesnt id as having sector based indexing 2011-11-25T19:37:05 < Laurenceb> looks like loads of cammands fail with the SDHC and it defaults to MMC type 2011-11-25T19:37:25 < Laurenceb> i wonder if maybe it doesnt support spi mode properly or something 2011-11-25T19:37:40 < Laurenceb> oh well 2011-11-25T19:39:29 < jnosky> Heya can someone look at this please? 2011-11-25T19:39:30 < jnosky> http://pastebin.com/5tcnDLML 2011-11-25T19:39:43 < jnosky> I must be making some kinda noob mistake 2011-11-25T19:39:55 < jnosky> USART3 isnt generatting IRQ on rx 2011-11-25T19:41:01 < jnosky> Here is also it.c 2011-11-25T19:41:02 < jnosky> http://pastebin.com/EEWMWFqs 2011-11-25T19:43:18 < jnosky> irq stuff aside, I can poll and get chars just fine with that config 2011-11-25T20:05:49 < grummund> jnosky: i can't say if the uart code is correct, but check in the vector table to confirm you used the correct name for the Handler function 2011-11-25T20:07:10 < peabody124> laurence - i added the force reset over swd feature to my branch 2011-11-25T20:07:22 < peabody124> err laurenceb for the ping 2011-11-25T20:07:50 < peabody124> you just say "monitor reset" then either continue or "monitor resume" depending on how you want to debug 2011-11-25T20:19:11 -!- happylife [~happylife@46.251.83.126] has joined ##stm32 2011-11-25T20:21:27 < jnosky> grummund the second pastie shows the it.c, it looks the same name to me 2011-11-25T20:21:51 < jnosky> I tried to set a bp on the handler in it.c, and it never hits it 2011-11-25T20:23:07 < grummund> yes i saw it.c but not your vector table 2011-11-25T20:23:09 < jnosky> The usb works fine, its got an entry in that same it.c file 2011-11-25T20:23:21 < grummund> anyway it was only a guess... ;) 2011-11-25T20:23:24 < jnosky> ahh in startup.S? 2011-11-25T20:23:29 < jnosky> Ill dbl check 2011-11-25T20:25:08 < grummund> I once spent a day or so tracking down why systick would not fire... and it turned out that the vector table symbol differed the code function name by an single '_'. 2011-11-25T20:26:43 < jnosky> Hmm it seems to match... 2011-11-25T20:26:52 < jnosky> DOe sthe NVIC part of main seem ok? 2011-11-25T20:27:05 < jnosky> I saw example code that didnt do that part 2011-11-25T20:27:24 < grummund> i couldn't say 2011-11-25T20:27:28 < jnosky> Also the usb uses irqs, maybe some kinda conflict 2011-11-25T20:27:38 < jnosky> Im gonna try disabling the usb 2011-11-25T20:27:54 < grummund> yep. disabled anything not needed to show the problem 2011-11-25T20:28:13 < jnosky> ok thanks 2011-11-25T20:28:40 < grummund> is the NVIC configuration strictly required? 2011-11-25T20:28:50 < grummund> will it work as default without it? 2011-11-25T20:29:01 < grummund> if so, comment that out too. 2011-11-25T20:30:00 < grummund> i can compare with some working usart code if you still have problems 2011-11-25T21:50:10 < peabody124> so stlink_reset seems to reset the chip downstream of the stlink chip - but is there a way to actually reset the stlink stm32? 2011-11-25T21:50:27 < peabody124> i'm finding flash programming very predictably unreliable 2011-11-25T21:57:31 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-25T21:57:35 -!- mode/##stm32 [+v Steffann] by ChanServ 2011-11-25T22:00:04 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2011-11-25T22:00:58 -!- dekar [~dekar@frnk-4d017c7d.pool.mediaWays.net] has joined ##stm32 2011-11-25T22:13:05 -!- dekar [~dekar@frnk-4d017c7d.pool.mediaWays.net] has quit [Quit: This computer has gone to sleep] 2011-11-25T22:29:27 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has joined ##stm32 2011-11-25T22:50:38 -!- happylife [~happylife@46.251.83.126] has quit [Ping timeout: 252 seconds] 2011-11-25T22:53:43 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-25T23:24:55 -!- dekar [~dekar@frnk-4d017c7d.pool.mediaWays.net] has joined ##stm32 2011-11-25T23:57:20 < karlp> peabody124: what else is breaking? 2011-11-25T23:57:42 < karlp> it's probably still unclean disconnects/connects getting it into bad states 2011-11-25T23:57:49 < karlp> or, of course, bugs in the stlink firmware :) 2011-11-25T23:58:03 < Laurenceb_> heh mine often breaks too 2011-11-25T23:58:11 < Laurenceb_> have to unplug 2011-11-25T23:58:22 < peabody124> here's y latest https://github.com/texane/stlink/issues/33 2011-11-25T23:58:39 < peabody124> and i have a workaround for that which is nice. from 3 programmings down to 1 --- Day changed Sat Nov 26 2011 2011-11-26T00:29:59 -!- Eartaker [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has joined ##stm32 2011-11-26T00:29:59 -!- Eartaker [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has quit [Changing host] 2011-11-26T00:29:59 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has joined ##stm32 2011-11-26T01:00:31 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 248 seconds] 2011-11-26T01:15:27 -!- dekar [~dekar@frnk-4d017c7d.pool.mediaWays.net] has quit [Quit: This computer has gone to sleep] 2011-11-26T01:17:30 < erik-k> Step 1: omgwtf, why won't my stm talk back to my computer? fuuuuuuuuuuuu 2011-11-26T01:17:44 < erik-k> Step 2: Hmmm, gdb seems to indicate everything is running right... 2011-11-26T01:17:56 < erik-k> Step 3: Stupid unplugged serial cable! 2011-11-26T01:22:20 < Laurenceb_> does texane support SWO line? 2011-11-26T01:37:14 < Laurenceb_> http://openocd.git.sourceforge.net/git/gitweb.cgi?p=openocd/openocd;a=blob_plain;f=contrib/itmdump.c;hb=HEAD 2011-11-26T01:37:26 < Laurenceb_> hmm looks like openocd has support for ITM? 2011-11-26T01:39:31 < Laurenceb_> is the stlink command set documented somewhere? 2011-11-26T01:47:06 < Laurenceb_> looks like nonone has reverse engineered the trace commands 2011-11-26T01:52:24 -!- erik-k [~erik-k@71-34-249-33.eugn.qwest.net] has quit [Read error: Connection reset by peer] 2011-11-26T01:55:35 -!- erik-k [~erik-k@71-34-249-33.eugn.qwest.net] has joined ##stm32 2011-11-26T02:14:06 -!- Xunil [~xunil@paxil.xunil.net] has quit [Ping timeout: 240 seconds] 2011-11-26T02:14:29 -!- AK6L [~xunil@paxil.xunil.net] has joined ##stm32 2011-11-26T02:58:23 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has quit [Ping timeout: 248 seconds] 2011-11-26T03:10:53 < karlp> Laurenceb: I don't know of the command set being documented anywhere, but eventually I'd like to see stlink/texane stuff being absorbed into openocd, it seems like the natural home for it 2011-11-26T03:40:54 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-26T04:30:04 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer] 2011-11-26T04:30:07 -!- peabody124_ [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-26T05:04:00 < jnosky> Ive started a little repo specifically for the DiscoveryF4 2011-11-26T05:04:01 < jnosky> https://github.com/jnosky/discoveryF4 2011-11-26T08:03:19 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2011-11-26T09:27:12 -!- popov [~happylife@46.251.83.126] has joined ##stm32 2011-11-26T09:27:54 -!- popov [~happylife@46.251.83.126] has quit [Remote host closed the connection] 2011-11-26T09:28:04 -!- happylife [~happylife@46.251.83.126] has joined ##stm32 2011-11-26T11:28:32 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-26T11:28:35 -!- mode/##stm32 [+v Steffann] by ChanServ 2011-11-26T12:03:02 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Remote host closed the connection] 2011-11-26T12:06:56 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32 2011-11-26T12:53:45 -!- Steffann is now known as Steffanx 2011-11-26T13:17:01 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has left ##stm32 ["PART ##electronics :PART #highaltitude :PART #dANN :PART ##not-physics :PART ##physics :PART ##stm32 :PART ##electronics :PART #highaltitude :PART #dANN :PART ##not-physics :PART ##physics :PONG :calvino.freenode.net"] 2011-11-26T13:21:04 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving] 2011-11-26T13:21:25 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-26T13:21:28 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-26T13:22:36 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32 2011-11-26T14:40:53 -!- dekar_ [~dekar@p579B5277.dip.t-dialin.net] has joined ##stm32 2011-11-26T14:50:23 -!- dekar__ [~dekar@p579B5051.dip.t-dialin.net] has joined ##stm32 2011-11-26T14:52:09 -!- dekar_ [~dekar@p579B5277.dip.t-dialin.net] has quit [Ping timeout: 245 seconds] 2011-11-26T14:57:42 -!- dekar_ [~dekar@p579B5E60.dip.t-dialin.net] has joined ##stm32 2011-11-26T14:58:38 -!- dekar__ [~dekar@p579B5051.dip.t-dialin.net] has quit [Ping timeout: 252 seconds] 2011-11-26T15:00:50 < karlp> where else sells stm32 chips? digikey/mouser/farnel ? 2011-11-26T15:10:36 < jpa-> many places sell those, but you already listed the biggest global distributors 2011-11-26T15:11:09 <+Steffanx> he forgor farnell 2011-11-26T15:11:14 <+Steffanx> forgot 2011-11-26T15:13:21 < karlp> you're right, I left off an l :) 2011-11-26T15:14:55 -!- dekar__ [~dekar@p579B509C.dip.t-dialin.net] has joined ##stm32 2011-11-26T15:17:11 -!- dekar_ [~dekar@p579B5E60.dip.t-dialin.net] has quit [Ping timeout: 244 seconds] 2011-11-26T15:17:51 -!- dekar_ [~dekar@p579B509C.dip.t-dialin.net] has joined ##stm32 2011-11-26T15:19:42 -!- dekar__ [~dekar@p579B509C.dip.t-dialin.net] has quit [Ping timeout: 240 seconds] 2011-11-26T15:27:08 -!- dekar__ [~dekar@p579B509C.dip.t-dialin.net] has joined ##stm32 2011-11-26T15:28:09 -!- dekar__ [~dekar@p579B509C.dip.t-dialin.net] has quit [Client Quit] 2011-11-26T15:30:36 -!- dekar_ [~dekar@p579B509C.dip.t-dialin.net] has quit [Ping timeout: 276 seconds] 2011-11-26T15:36:02 < karlp> bah, peabody, your SIGINT patch doesn't compile on linux... 2011-11-26T15:46:07 -!- dekar_ [~dekar@p579B4E36.dip.t-dialin.net] has joined ##stm32 2011-11-26T15:49:39 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-26T15:53:04 -!- dekar_ [~dekar@p579B4E36.dip.t-dialin.net] has quit [Quit: This computer has gone to sleep] 2011-11-26T16:06:59 -!- dekar_ [~dekar@p579B4E36.dip.t-dialin.net] has joined ##stm32 2011-11-26T16:18:18 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has joined ##stm32 2011-11-26T16:20:15 -!- dekar_ [~dekar@p579B4E36.dip.t-dialin.net] has quit [Quit: This computer has gone to sleep] 2011-11-26T16:28:45 -!- TuniLame [c501f27f@gateway/web/freenode/ip.197.1.242.127] has joined ##stm32 2011-11-26T16:28:58 < TuniLame> hello 2011-11-26T16:32:24 <+Steffanx> lo 2011-11-26T16:34:37 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Read error: Connection reset by peer] 2011-11-26T16:38:07 -!- happylife [~happylife@46.251.83.126] has quit [Ping timeout: 248 seconds] 2011-11-26T16:38:25 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-26T16:40:32 -!- happylife [~happylife@46.251.83.126] has joined ##stm32 2011-11-26T16:43:46 < Laurenceb_> where is the SWO interface documented? 2011-11-26T16:43:54 < Laurenceb_> i cant find the electrical spec 2011-11-26T16:45:05 <+Steffanx> swo? 2011-11-26T16:48:56 < TuniLame> hello, I have a STM32Ldiscovery and it don't want to load blinky.elf 2011-11-26T16:49:52 < TuniLame> each time I do that, gdb loads only the .text section (64kb)... 2011-11-26T16:50:02 < TuniLame> do you know what is the problem? 2011-11-26T16:51:06 < jpa-> that is one huge blinky if it has a 64kB .text 2011-11-26T16:51:27 < jpa-> try arm-none-eabi-size -t blinky.elf to see how big it is, maybe it won't fit? 2011-11-26T16:51:37 < TuniLame> sorry, i mean 64bytes 2011-11-26T16:51:53 < jpa-> ah 2011-11-26T16:52:43 < TuniLame> here is the result when I load it: "load blink_32L.elf Loading section .text, size 0x3c lma 0x20000000 Start address 0x20000000, load size 60 Transfer rate: 779 bytes/sec, 60 bytes/write." 2011-11-26T16:53:21 < TuniLame> (I'm on Ubuntu 10.10 64bits) 2011-11-26T16:53:22 < Thorn> TuniLame: it doesn't run? 2011-11-26T16:53:42 < jpa-> does it have a data section? 2011-11-26T16:54:01 < TuniLame> @Thorn no it don't 2011-11-26T16:54:17 < TuniLame> @jpa what do you mean by "data section" ? 2011-11-26T16:54:54 < Thorn> what does gdb show when you try to run the program? 2011-11-26T16:57:00 < TuniLame> @Thorn : The program being debugged has been started already.\n Start it from the beginning? (y or n) y \nStarting program: 2011-11-26T16:57:42 < Thorn> try this (for openocd): load your.elf; monitor reset init; continue 2011-11-26T16:57:49 < TuniLame> @Thorn it don't really run because the green/red LED blinks, and its not these LEDs that needs to blink 2011-11-26T16:57:56 < TuniLame> @Thorn ok 2011-11-26T16:58:26 < Thorn> then press Ctrl+C to stop and use bt to see where it's stopped 2011-11-26T16:58:41 < Thorn> but you do have something blinking? 2011-11-26T16:59:08 < Thorn> if you had a hard fault it's unlikely that anything would blink 2011-11-26T17:00:23 < karlp> tuni, try the 32l_dac example instead, 2011-11-26T17:01:13 < karlp> the blink_xxxx examples are bad, they try and run from sram 2011-11-26T17:02:38 < karlp> Thorn: say you do bt, and it just says, 0xblahblah in ??() 2011-11-26T17:02:44 < karlp> and Backtrace stopped: previous frame identical to this frame (corrupt stack?) 2011-11-26T17:02:58 < karlp> is that an infinite loop? 2011-11-26T17:03:53 < karlp> ah, 2011-11-26T17:04:04 < karlp> ok, if I do target ext :4242, file myfile.elf, load 2011-11-26T17:04:09 < karlp> then I get proper backtraces 2011-11-26T17:04:16 < karlp> I thought load blah.elf would do it 2011-11-26T17:04:47 < karlp> man, having gdb is getting pretty cool... 2011-11-26T17:05:49 < Thorn> gdb seems to go nuts with any stack corruption. I think there were open bugs against about this 2011-11-26T17:06:06 < Thorn> *against gdb 2011-11-26T17:06:17 <+Steffanx> GDB itself is a bug :P 2011-11-26T17:06:36 < Thorn> also connecting to a running program doesn't seem to work well 2011-11-26T17:06:59 < karlp> oh, when I had the proper symbols loaded, it did the right thing, 2011-11-26T17:07:06 < karlp> it was an infite loop in my code 2011-11-26T17:08:15 < Thorn> although I do remember being able to connect gdb without restarting the target (did "reset halt" in openocd first) 2011-11-26T17:15:20 < Thorn> putting "micro" back into "microcontroller" http://www.atmel.com/dyn/products/product_card.asp?part_id=4558 2011-11-26T17:16:04 < karlp> whee, I've finally done something with my own code 2011-11-26T17:16:40 < karlp> completely trivial of course. 2011-11-26T17:17:08 < karlp> one thing at a time... 2011-11-26T17:17:56 < TuniLame> @Thorn how with the "openocd"? 2011-11-26T17:24:12 < Thorn> TuniLame: are you using openocd? (if you're using discovery then probably not...) 2011-11-26T17:28:53 < karlp> peabody124_ just added monitor support to the stlink gdbserver... so you can do monitor reset and things now, 2011-11-26T17:37:38 < TuniLame> @thorn I'm using gdb, and openocd is installed 2011-11-26T17:37:49 < TuniLame> @thorn I don't know how to use openocd 2011-11-26T17:38:49 < TuniLame> I already tried to compile 32l_dac, but couldn't 2011-11-26T17:41:58 < TuniLame> When making 32l_dac; I have this: "cannot find -lstm32_stdperiph_l1xx" 2011-11-26T17:46:26 < karlp> make -C ../libs_stm/build/ 2011-11-26T17:46:31 < karlp> then make again 2011-11-26T17:48:01 < TuniLame> maked with success, what did I do with "make -C ../libs_stm/build/"? 2011-11-26T17:48:23 < karlp> you built the stm32 stdperiph library 2011-11-26T17:48:34 < karlp> make -C issues make in the directory given. 2011-11-26T17:49:32 < TuniLame> ok 2011-11-26T17:49:48 < TuniLame> so I loaded the dac.elf, 1317 bytes/write. 2011-11-26T17:50:15 < TuniLame> but its length is 70Kb, why it loads only 1kb? 2011-11-26T17:50:52 < karlp> arm-non-eabi-size dac.elf says it's only about 4k for me. 2011-11-26T17:50:59 < TuniLame> (I made continue after loading it, and nothing special happened, the green/red LEDs blink as usual ) 2011-11-26T17:51:23 < karlp> if you're running the current texane master, you probably need to unplug and replug the board 2011-11-26T17:53:00 < TuniLame> yeaeaeah! I made "run" and the blue/green buttom LEDs beginned to blink! 2011-11-26T17:54:26 < TuniLame> I unplagged and repluggued it, and it automaticly begin de blink, the blue/green... That's what 32l_dac do? 2011-11-26T17:54:27 < karlp> yeah, I'm sorry about the state of the "blink" examples. 2011-11-26T17:54:36 < TuniLame> no problem 2011-11-26T17:54:47 < TuniLame> (it tooks juste 48 hours, :D) 2011-11-26T17:54:49 < karlp> if you hook a meter up to PA4, you should see it slowly increasing too. 2011-11-26T17:54:58 < karlp> 48hrs is better than some of us have done :) 2011-11-26T17:55:07 < karlp> hopefully it will continue to get shorter :) 2011-11-26T17:55:13 < TuniLame> yeah I know, that's why I dont complain ;) 2011-11-26T17:55:34 < TuniLame> ehhh, I'm new to electronic, what is PA4? 2011-11-26T17:56:33 < karlp> one of the pins on the board. 2011-11-26T17:57:01 < TuniLame> I found it 2011-11-26T17:57:09 < TuniLame> how to "meter it up"? 2011-11-26T17:57:59 < karlp> do you have a multimeter? 2011-11-26T17:58:06 < karlp> if not, don't worry about it :) 2011-11-26T17:58:16 < karlp> and just use 32l_dac as the base for your code :) 2011-11-26T17:58:56 < TuniLame> I have a multimeter, but not now, 2011-11-26T17:59:06 < TuniLame> how I need to do with the multimeter? 2011-11-26T18:01:22 < karlp> oh, you could just use it to see what the 32l_dac example code is doing, which is putting a slowly increasing voltage on that pin 2011-11-26T18:03:01 < TuniLame> mmm... so I take the red part of the multimeter on that pin, and the black one on GND? 2011-11-26T18:03:19 < karlp> that would work, it will show -ve voltages that way... 2011-11-26T18:03:27 < karlp> no sorry 2011-11-26T18:03:29 < karlp> brain fart 2011-11-26T18:03:34 < karlp> yeah, that would be right 2011-11-26T18:05:05 < TuniLame> thanks :) 2011-11-26T18:05:37 < TuniLame> I juste tried the 32l_lcd, but didn't see any difference with the 32l_dac... what is it? 2011-11-26T18:11:34 < TuniLame> and do you have a tutorial on how to show something on the LCD? 2011-11-26T18:18:35 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving] 2011-11-26T18:20:52 < karlp> I do not, it's on my list. you can try getting the factory demo code to build and run :) 2011-11-26T18:21:21 < karlp> 32l_lcd tries to run from ram too, I don't think it actually works. 2011-11-26T18:21:33 < TuniLame> ah, ok 2011-11-26T18:22:10 < jnosky> You need to add startup code to those projects 2011-11-26T18:22:28 < jnosky> If ya wanna run from flash 2011-11-26T18:23:45 < TuniLame> @karlp and how to get the factory code? 2011-11-26T18:25:58 < karlp> jnosky: the 32l_dac code has the proper startup code, 2011-11-26T18:26:02 < karlp> that's why I refered to it. 2011-11-26T18:26:17 < karlp> blink and 32l_lcd don't 2011-11-26T18:30:22 < jnosky> ahh 2011-11-26T18:31:13 < karlp> TuniLame: I can't find it right now, but somewhere on ST's site is the source, it's appnote AN3413 2011-11-26T18:34:00 < TuniLame> on the AN3964, it says "read the ‘readme.txt’ file in the project folder", but I didn't find any "project folder"... 2011-11-26T18:42:54 < TuniLame> I find it, I installed the firmware, and on the installation directory, where there is the AN3413 exemple... I'm trying to compile it. 2011-11-26T18:58:03 < TuniLame> do you know where is LCD_GLASS_DisplayString (msg) declared? 2011-11-26T19:41:12 < karlp> it's in the stm32l_discovery_lcd.c file.. 2011-11-26T19:41:16 < karlp> can you try: https://github.com/karlp/stlink/tree/lcd_flash_test 2011-11-26T19:41:31 < karlp> it should work, with the proper startup files, but my lcd just flickers, 2011-11-26T19:41:37 < karlp> I'm not sure whether my lcd is broken or not. 2011-11-26T19:44:30 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-26T19:44:33 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-26T19:49:20 < TuniLame> it had been loaded, but the 32l_dac is running, how to replace it with 32l_lcd? 2011-11-26T19:54:37 < TuniLame> the LEDs are blinking as described on the readme file, but there is nothing on the screen... 2011-11-26T20:09:16 < karlp> oh well, maybe that demo never worked... 2011-11-26T20:09:18 * karlp shrugs 2011-11-26T20:09:42 < Tom_itx> check the timing on the lcd signals 2011-11-26T20:09:45 < Tom_itx> maybe it's off 2011-11-26T20:39:37 < karlp> in the very beginning, before I'd ever flashed anything, I could load that 32l_lcd demo into sram, as it originally intended, and it worked flashing "on" "off" on the lcd in time with the leds, 2011-11-26T20:39:49 < karlp> so it's probably still something to do with the init stuff 2011-11-26T21:05:02 < TuniLame> how to delete the files I loaded into the stm32l through gdb? 2011-11-26T21:33:20 < karlp> TuniLame: ok, I've got the LCD demo working, 2011-11-26T21:33:30 < karlp> let me just update some things and I'll push it to github 2011-11-26T21:33:45 < karlp> you don't "delete" them, you just load somethign else 2011-11-26T21:36:33 < TuniLame> aha, and if the thing I loaded don't work on stm32, it just run the old thing... 2011-11-26T21:37:13 < karlp> or, it just keeps running what's broken, 2011-11-26T21:37:17 < karlp> depends what and how you load it 2011-11-26T21:43:01 < karlp> TuniLame: my master at https://github.com/karlp/stlink has a working lcd now... 2011-11-26T21:44:01 < TuniLame> mmm... but how "from flash" ? 2011-11-26T21:45:18 < karlp> pardon? 2011-11-26T21:46:35 < TuniLame> on the readme, there is "From Flash: working", how to do that? 2011-11-26T21:46:42 -!- dekar_ [~dekar@p579B4E36.dip.t-dialin.net] has joined ##stm32 2011-11-26T21:47:40 -!- Thorn__ [~Thorn@2.93.107.17] has joined ##stm32 2011-11-26T21:47:41 -!- Thorn__ [~Thorn@2.93.107.17] has quit [Changing host] 2011-11-26T21:47:41 -!- Thorn__ [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-26T21:49:01 < karlp> oh, that's default now. 2011-11-26T21:49:11 < karlp> I guess I (again) didn't make the readme clear enoguh 2011-11-26T21:49:29 < karlp> make clean, make will make an elf that when loaded via gdb will write to flash and run from flash 2011-11-26T21:50:30 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 240 seconds] 2011-11-26T21:51:59 < TuniLame> ok 2011-11-26T21:52:10 < TuniLame> I just want to say THANK YOU! 2011-11-26T21:52:28 < TuniLame> it worked fine! 2011-11-26T21:55:27 < TuniLame> how to load to SRAM then? 2011-11-26T21:55:47 < TuniLame> (I want to know difference between loading into flash and SRAM) 2011-11-26T21:58:34 -!- TuniLame [c501f27f@gateway/web/freenode/ip.197.1.242.127] has quit [Quit: Page closed] 2011-11-26T21:59:16 -!- tunilame [~tunilame@197.1.242.127] has joined ##stm32 2011-11-26T22:03:19 < jnosky> You specify in the maje file were the code is to go 2011-11-26T22:03:21 < jnosky> make 2011-11-26T22:15:44 < karlp> (except, seeing as loading to sram didn't work before, I doubt it will work now) 2011-11-26T22:16:23 < karlp> one day, I or someone else will learn/share how to write nice clever linker scripts and init stuff that can do that :) 2011-11-26T22:34:50 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving] 2011-11-26T22:35:05 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-26T22:35:08 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-26T22:35:51 < Laurenceb_> does st-link v2 support SWO? 2011-11-26T22:36:41 <+Steffanx> What is SWO? 2011-11-26T22:37:06 <+Steffanx> Single wire output? :) 2011-11-26T22:37:37 <+Steffanx> Laurenceb_ ? 2011-11-26T22:37:43 < Laurenceb_> yes 2011-11-26T22:37:56 <+Steffanx> It is really Single Wire Output? 2011-11-26T22:37:57 < Laurenceb_> i know texane doesnt support it 2011-11-26T22:37:59 < Laurenceb_> yes 2011-11-26T22:38:07 < Laurenceb_> but does that actualy hardware support it 2011-11-26T22:38:20 <+Steffanx> LOL, it was just a wild guess 2011-11-26T22:39:46 < Laurenceb_> hhe 2011-11-26T22:39:57 < Laurenceb_> manchester encoded UART data 2011-11-26T22:40:07 < Laurenceb_> very fast clk rate 2011-11-26T22:40:20 <+Steffanx> Or is it Serial wire output? 2011-11-26T22:40:30 < Laurenceb_> im guessing as the stlink uses an stm32 it cant handle very fast baud rates 2011-11-26T22:40:37 < Laurenceb_> just a single wire 2011-11-26T22:42:10 < Laurenceb_> http://www.atollic.com/index.php/targets/stm32 2011-11-26T22:42:19 < Laurenceb_> i might have a play with the lite version on windows 2011-11-26T22:44:29 <+Steffanx> The protocol isn't open is it? 2011-11-26T22:45:05 < Laurenceb_> aiui the SWO protocol is 2011-11-26T22:45:17 < Laurenceb_> bah looks like you need the pro version of atollic 2011-11-26T22:45:42 < Laurenceb_> ill have to have a play with SWO and look at the data on a scope 2011-11-26T22:47:24 -!- Thorn__ [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 276 seconds] 2011-11-26T22:48:53 < karlp> well, the f103 that handles stlink means it should be able to handle pretty decent baud rates 2011-11-26T22:51:41 <+Steffanx> it runs at 72mhz? 2011-11-26T22:51:49 <+Steffanx> You don't know ofcourse 2011-11-26T22:52:38 < karlp> it at least has the potential :) 2011-11-26T22:58:07 <+Steffanx> " The STMicroelectronics ST-Link adapter does not support SWV or ETM" .. SWV = serial wire viewer 2011-11-26T23:00:43 < karlp> doh 2011-11-26T23:00:49 < karlp> where is tat 2011-11-26T23:01:11 <+Steffanx> Some random website 2011-11-26T23:01:23 < karlp> URL? 2011-11-26T23:01:51 < karlp> stlink just got a whole lot less useful. 2011-11-26T23:02:07 < karlp> I guess I would have knonw that if I'd been using this with fully supported windows tools 2011-11-26T23:02:16 <+Steffanx> It is connected to the f103 on the stm32f4 discovery though 2011-11-26T23:02:51 <+Steffanx> but .. 2011-11-26T23:02:52 <+Steffanx> http://www.naffets.nl/share/a-20111126-220246.png 2011-11-26T23:02:55 <+Steffanx> "reserved" .. 2011-11-26T23:03:02 < karlp> yeah, I'd seen that... 2011-11-26T23:03:14 < karlp> I wonder if it's just not supported in the firmware on the stlinks? 2011-11-26T23:03:56 <+Steffanx> I guess it means it's not supported by the st-link indeed 2011-11-26T23:04:06 < karlp> hey, Steffanx, does echo $USERNAME do the right thing on OSX? 2011-11-26T23:04:26 <+Steffanx> No result 2011-11-26T23:04:36 < karlp> what about "whoami" ? 2011-11-26T23:04:40 <+Steffanx> echo $USER does 2011-11-26T23:04:48 <+Steffanx> whoami too 2011-11-26T23:04:57 <+Steffanx> os x is pretty bsd compatible .. 2011-11-26T23:05:00 < karlp> making the LCD demo a little tricksier :) 2011-11-26T23:15:28 <+Steffanx> No, give it swo support 2011-11-26T23:23:42 < Laurenceb_> stlink still supports SWO tho? 2011-11-26T23:23:51 < Laurenceb_> whats SWV? 2011-11-26T23:24:27 < Laurenceb_> oh scheduled debug info over SWO? 2011-11-26T23:25:03 < Laurenceb_> atollic claims to support SWO and stlink-v2 2011-11-26T23:25:14 < Laurenceb_> not necessarily at the same time of course 2011-11-26T23:25:48 < Laurenceb_> well, the f103 that handles stlink means it should be able to handle pretty decent baud rates 2011-11-26T23:25:55 < Laurenceb_> ^but its manchester encoded data 2011-11-26T23:26:03 < Laurenceb_> not sure how easy it is to decode 2011-11-26T23:27:19 < Laurenceb_> http://www.keil.com/coresight/ 2011-11-26T23:27:37 < Laurenceb_> ^ according to that SWV is whatever comes out of SWO ? 2011-11-26T23:28:19 < Laurenceb_> that sucks.. but why does the stlink header on the discovery break out SWO? --- Day changed Sun Nov 27 2011 2011-11-27T00:16:06 -!- tunilame [~tunilame@197.1.242.127] has quit [Ping timeout: 240 seconds] 2011-11-27T00:28:38 -!- tunilame [~tunilame@197.1.175.94] has joined ##stm32 2011-11-27T00:50:30 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has quit [Quit: OOOOOO Whats that....] 2011-11-27T01:27:09 -!- tunilame [~tunilame@197.1.175.94] has quit [Ping timeout: 245 seconds] 2011-11-27T01:34:09 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-27T01:39:39 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 276 seconds] 2011-11-27T02:16:54 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has quit [Ping timeout: 240 seconds] 2011-11-27T03:48:26 -!- peabody124_ [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has quit [Quit: peabody124_] 2011-11-27T03:48:35 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-27T03:52:54 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has quit [Ping timeout: 240 seconds] 2011-11-27T04:36:58 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2011-11-27T04:46:07 -!- happylife [~happylife@46.251.83.126] has quit [Ping timeout: 244 seconds] 2011-11-27T07:38:41 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2011-11-27T08:53:17 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has joined ##stm32 2011-11-27T09:11:03 -!- Irssi: ##stm32: Total of 26 nicks [1 ops, 0 halfops, 0 voices, 25 normal] 2011-11-27T10:54:13 -!- erik-k [~erik-k@71-34-249-33.eugn.qwest.net] has quit [Ping timeout: 240 seconds] 2011-11-27T11:46:36 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124] 2011-11-27T12:30:07 -!- Hjik [3cf12481@gateway/web/freenode/ip.60.241.36.129] has joined ##stm32 2011-11-27T12:58:52 -!- Hjik [3cf12481@gateway/web/freenode/ip.60.241.36.129] has quit [Ping timeout: 265 seconds] 2011-11-27T14:05:23 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has joined ##stm32 2011-11-27T14:57:29 -!- RikusW [~RikusW@41.8.2.57] has joined ##stm32 2011-11-27T15:32:19 -!- dekar__ [~dekar@p579B4A4E.dip.t-dialin.net] has joined ##stm32 2011-11-27T15:32:23 < dekar__> karlp, I haven't tried booting from ram, though I have booted firmwares from several random locations at the flash using my bootloader. What's different when booting from ram? 2011-11-27T15:36:14 -!- dekar_ [~dekar@p579B4E36.dip.t-dialin.net] has quit [Ping timeout: 252 seconds] 2011-11-27T15:36:42 < dekar__> afaik it shouldn't make any trouble since that boot0 pin would remap the RAM to 0x0 instead of the FLASH and thus it should find the interrupt vector in ram and just run fine :) 2011-11-27T15:40:24 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-27T15:40:40 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-27T15:40:54 -!- dekar__ [~dekar@p579B4A4E.dip.t-dialin.net] has quit [Ping timeout: 244 seconds] 2011-11-27T16:08:07 -!- RikusW [~RikusW@41.8.2.57] has left ##stm32 [] 2011-11-27T16:35:42 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-27T17:41:49 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has joined ##stm32 2011-11-27T17:58:36 -!- peabody124 [~peabody12@108-205-218-4.lightspeed.hstntx.sbcglobal.net] has quit [Quit: peabody124] 2011-11-27T18:17:46 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-27T20:48:57 < Laurenceb_> apparently SWO works with stlink with crossworks 2011-11-27T20:52:41 <+Steffanx> You have it functional? 2011-11-27T21:13:51 < Laurenceb_> nope 2011-11-27T21:13:56 < Laurenceb_> i dont have crossworks 2011-11-27T21:14:04 < Laurenceb_> some guys from #openpilot do 2011-11-27T21:34:30 < karlp> that's good news 2011-11-27T21:40:14 -!- exuvo [~exuvo@c-8876e055.1227-1-64736c13.cust.bredbandsbolaget.se] has joined ##stm32 2011-11-27T21:46:17 -!- aber_ [50e524b8@gateway/web/freenode/ip.80.229.36.184] has joined ##stm32 2011-11-27T21:46:56 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2011-11-27T21:50:20 -!- exuvo [~exuvo@c-8876e055.1227-1-64736c13.cust.bredbandsbolaget.se] has left ##stm32 [] 2011-11-27T21:50:20 < Laurenceb_> karlp: any idea how the usb command set was reverse engineered? 2011-11-27T21:50:38 < Laurenceb_> im guessing using wireshark or something to look at the usb comms? 2011-11-27T21:52:29 <+Steffanx> usbsnoop is nice too 2011-11-27T21:52:50 <+Steffanx> wireshark needs a loopback iirc.. is that available for windows? 2011-11-27T21:55:35 -!- happylife [~happylife@46.251.83.126] has joined ##stm32 2011-11-27T22:02:04 < Laurenceb_> i dont know 2011-11-27T22:09:07 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2011-11-27T23:02:02 -!- dekar__ [~dekar@drms-590ce734.pool.mediaWays.net] has joined ##stm32 2011-11-27T23:20:07 -!- aber_ [50e524b8@gateway/web/freenode/ip.80.229.36.184] has quit [Quit: Page closed] 2011-11-27T23:37:25 -!- whitequark [~whitequar@2002:1fba:61b3::1] has quit [Ping timeout: 240 seconds] 2011-11-27T23:44:15 -!- happylife [~happylife@46.251.83.126] has quit [Ping timeout: 260 seconds] 2011-11-27T23:57:47 -!- zippe [~zippe@173.11.99.161] has joined ##stm32 2011-11-27T23:58:15 -!- zippe [~zippe@173.11.99.161] has left ##stm32 [] 2011-11-27T23:59:02 -!- zippe [~zippe@173.11.99.161] has joined ##stm32 --- Day changed Mon Nov 28 2011 2011-11-28T00:00:32 -!- philpem [~philpem@discferret/team-lead] has joined ##stm32 2011-11-28T00:14:35 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 252 seconds] 2011-11-28T00:18:31 -!- phantone [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-28T00:21:43 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [Ping timeout: 252 seconds] 2011-11-28T00:33:21 -!- phantone is now known as phantoxe 2011-11-28T00:40:03 < karlp> Laurenceb_: https://github.com/texane/stlink/blob/master/toremove/stm32l_notes/notes has all the details. 2011-11-28T00:40:24 < karlp> windows stuff, plus a linux kernel with usb debugging and all sorts 2011-11-28T00:40:34 < karlp> there's some traces there that might have functions not yet implemented. 2011-11-28T00:40:42 < karlp> I had nothing to do with it, 2011-11-28T00:41:12 -!- Netsplit *.net <-> *.split quits: |Marco|, Laurenceb_, Rious, Laurenceb, Eartaker 2011-11-28T00:41:22 -!- Netsplit over, joins: |Marco| 2011-11-28T00:41:33 -!- Netsplit over, joins: Laurenceb, Laurenceb_ 2011-11-28T00:41:45 < Laurenceb_> i see 2011-11-28T00:42:12 -!- Eartaker [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has joined ##stm32 2011-11-28T00:42:12 -!- Eartaker [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has quit [Changing host] 2011-11-28T00:42:12 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has joined ##stm32 2011-11-28T00:42:38 < karlp> I don't have enough experienve with arm development to even know how to drive the tools :) 2011-11-28T00:42:45 -!- csamuelson [~csamuelso@ec2-50-17-240-121.compute-1.amazonaws.com] has joined ##stm32 2011-11-28T00:44:29 < Laurenceb_> im not sure how the stlink SWO/SWV works 2011-11-28T00:44:43 < Laurenceb_> im guessing it must used the clocked usart mode 2011-11-28T00:44:57 < zippe> You might be able to do it with SPI in slave mode? 2011-11-28T00:45:02 < Laurenceb_> yeah 2011-11-28T00:45:05 < Laurenceb_> thats easy 2011-11-28T00:45:13 < Laurenceb_> theres also a manchester encoded mode 2011-11-28T00:45:19 < Laurenceb_> that can run at up to F_cpu 2011-11-28T00:45:31 < zippe> Huh, poor man's ethernet? 2011-11-28T00:45:32 < Laurenceb_> cant be too easy to rx that with an stm32 2011-11-28T00:45:37 < Laurenceb_> i guess 2011-11-28T00:45:48 < zippe> F_CPU is hard to believe 2011-11-28T00:46:14 < zippe> … just because of the pad drivers 2011-11-28T00:46:29 < Laurenceb_> yeah - this is from the cortex-m3 docs 2011-11-28T00:46:32 < Laurenceb_> not stm32 2011-11-28T00:46:54 < zippe> Oh, right, you're referring to the trace block, not the physical interface 2011-11-28T00:47:09 < Laurenceb_> got to be a pita to receive manchester encoded data that fast without a clk 2011-11-28T00:47:22 < Laurenceb_> well the output gets mapped to a pin 2011-11-28T00:47:24 < zippe> huh? the whole point of manchester encoding is so that you don't need a clock 2011-11-28T00:47:32 < Laurenceb_> theres a config register 2011-11-28T00:47:35 < zippe> you can recover the clock from the data 2011-11-28T00:47:39 < Laurenceb_> yeah but you need to sink the data 2011-11-28T00:47:54 < Laurenceb_> *syncronise 2011-11-28T00:48:03 < Laurenceb_> unless you have dedicated hardware... 2011-11-28T00:48:37 < zippe> That's more or less what trace is for 2011-11-28T00:48:47 < zippe> IIRC there's flow control on the input to the block though 2011-11-28T00:48:56 < zippe> i.e. if the buffer in the block fills up, it will stop the CPU 2011-11-28T00:49:11 < zippe> I haven't looked at it in detail 2011-11-28T00:49:21 < zippe> btw, has anyone here fought with the F2/F4 USB code? 2011-11-28T00:49:28 < zippe> (i.e. ST's sample code?) 2011-11-28T00:49:32 < Laurenceb_> no 2011-11-28T00:49:36 < Laurenceb_> ive only used F1 usb 2011-11-28T01:11:53 -!- whitequark [~whitequar@2002:1fba:61b3::1] has joined ##stm32 2011-11-28T01:14:09 -!- whitequa1k [~whitequar@2002:1fba:61b3::1] has joined ##stm32 2011-11-28T01:14:28 -!- whitequa1k [~whitequar@2002:1fba:61b3::1] has quit [Client Quit] 2011-11-28T01:19:08 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has quit [Ping timeout: 244 seconds] 2011-11-28T01:56:12 < karlp> yech, some of these firmware packages I'm downloading from ST are a zip, that contains a windows self extracting archive installer thing 2011-11-28T01:56:15 -!- whitequark [~whitequar@2002:1fba:61b3::1] has quit [Ping timeout: 244 seconds] 2011-11-28T01:57:09 < zippe> karlp: They've been pretty good about that lately; which ones? 2011-11-28T02:01:06 < karlp> 32L discovery firmware package, v1.0.2 (I'm pretty sure I have an older version here that wasn't) 2011-11-28T02:01:36 < karlp> and F10x dsp lib, v2.0.0 2011-11-28T02:03:23 -!- whitequark [~whitequar@2002:1fba:61b3::1] has joined ##stm32 2011-11-28T02:38:57 < philpem> who runs zlog? msg'ing it returns a bad URL for the IRC logs. 2011-11-28T02:39:01 < karlp> does anyone have some examples for the systick? the startup asm file ahs .weak SysTick_Handler, but does that mean I just have to provide a function with the right name? 2011-11-28T02:39:41 < jnosky> Yea, it just needs to be the same name as the weak 2011-11-28T02:41:52 < karlp> that's surprisingly easy, if only it was all nicely documented :) 2011-11-28T02:42:01 < karlp> I guess it depends on the startup files you use 2011-11-28T02:42:07 < karlp> and those are highly non-standard I guess. 2011-11-28T02:42:28 < karlp> just the list of vectors is fixed 2011-11-28T02:44:13 < jnosky> The name needs to mach the one in the .S 2011-11-28T02:45:40 < zippe> karlp: Virtually everyone is using the ST-supplied startup files, though I don't understand why,. 2011-11-28T02:45:53 < zippe> ARMv7M is meant to be used with C-based startup code 2011-11-28T02:45:59 < zippe> You should not have to write any assembler at all. 2011-11-28T02:46:06 < jnosky> check it.c too 2011-11-28T02:46:21 < jnosky> systick and a hardfault are defined there already 2011-11-28T02:54:36 < jnosky> Oh I think the discovery f4 demo uses it, you could look at that 2011-11-28T02:56:16 < karlp> awesome. 2011-11-28T02:56:21 < karlp> I have systick 2011-11-28T02:56:27 < karlp> this is starting to fall into place. 2011-11-28T02:56:41 < karlp> zippe: have you got a good example of how to setup the startup in C? 2011-11-28T02:56:54 < karlp> the startup stuff has been proving the hardest to follow. 2011-11-28T02:57:11 < karlp> and the names of things needs to match the linker script. 2011-11-28T02:57:20 < karlp> I'd love to make it a lot simpler... 2011-11-28T02:58:02 < jnosky> Karl all ya gotta do is add the .S and int.c and yer done 2011-11-28T02:58:03 < karlp> I'll have a look at the f4 code a bit more, 2011-11-28T02:58:23 < jnosky> Its kinda like a template 2011-11-28T02:58:24 < karlp> yeah, it was getting the right .S :) 2011-11-28T02:58:36 < karlp> I have it all working nicely now when I got the right template :) 2011-11-28T02:59:09 < karlp> the 32l_dac and 32l_lcd examples now have full startup stuff, so I just added the correctly named systick handler, and now it's working, 2011-11-28T02:59:14 < karlp> still seemed like overly large templates 2011-11-28T02:59:19 < karlp> anyway, learning process for me. 2011-11-28T02:59:20 < karlp> more later 2011-11-28T03:00:23 < jnosky> This way is way easier than what I hadda do for arm7tdmi 2011-11-28T03:00:41 < jnosky> I never heard of "weak" before 2011-11-28T03:03:30 < jnosky> rhe system_stm32f4xx.c handles all the nasty clock setp 2011-11-28T03:03:55 < zippe> Just be aware that code is fairly stupid 2011-11-28T03:04:06 -!- emeb [~ericb@ip72-223-86-178.ph.ph.cox.net] has joined ##stm32 2011-11-28T03:04:13 < zippe> In particular, it hardcodes the PLL_M value, it ignores HSE_VALUE 2011-11-28T03:04:17 < jnosky> So I pretty much just drop it.c; it.h; system_.c and startup.S in to my project and im ready for main() 2011-11-28T03:06:12 -!- zlog [~zlog@ip68-102-105-167.ks.ok.cox.net] has quit [Remote host closed the connection] 2011-11-28T03:06:16 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2011-11-28T03:07:43 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-28T03:08:06 -!- zlog [~zlog@ip68-102-105-167.ks.ok.cox.net] has joined ##stm32 2011-11-28T03:10:27 < jnosky> I think you can put the HSE_VALUE in the make file 2011-11-28T03:10:39 < zippe> You can, but the system_* file will ignore it 2011-11-28T03:33:44 -!- philpem [~philpem@discferret/team-lead] has quit [Remote host closed the connection] 2011-11-28T03:40:11 -!- dekar__ [~dekar@drms-590ce734.pool.mediaWays.net] has quit [Ping timeout: 244 seconds] 2011-11-28T03:59:38 -!- emeb [~ericb@ip72-223-86-178.ph.ph.cox.net] has quit [Quit: Leaving.] 2011-11-28T04:03:05 -!- dekar [~dekar@drms-590ce734.pool.mediaWays.net] has joined ##stm32 2011-11-28T04:11:16 -!- zlog [~zlog@ip68-102-105-167.ks.ok.cox.net] has quit [Remote host closed the connection] 2011-11-28T04:11:19 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2011-11-28T04:12:43 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-28T04:12:57 -!- zlog [~zlog@ip68-102-105-167.ks.ok.cox.net] has joined ##stm32 2011-11-28T04:37:41 -!- peabody124_ [~peabody12@128.249.96.123] has joined ##stm32 2011-11-28T04:41:45 -!- peabody124 [~peabody12@128.249.96.21] has quit [Ping timeout: 260 seconds] 2011-11-28T04:41:45 -!- peabody124_ is now known as peabody124 2011-11-28T05:09:34 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2011-11-28T05:36:10 -!- dekar_ [~dekar@drms-590ce734.pool.mediaWays.net] has joined ##stm32 2011-11-28T05:36:10 -!- dekar [~dekar@drms-590ce734.pool.mediaWays.net] has quit [Read error: Connection reset by peer] 2011-11-28T05:47:45 -!- peabody124 [~peabody12@128.249.96.123] has quit [Remote host closed the connection] 2011-11-28T05:48:02 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2011-11-28T05:59:41 -!- zippe [~zippe@173.11.99.161] has quit [Read error: Connection reset by peer] 2011-11-28T06:00:46 -!- zippe [~zippe@173.11.99.161] has joined ##stm32 2011-11-28T06:06:13 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has quit [Ping timeout: 240 seconds] 2011-11-28T06:06:56 -!- BrainDamage [BrainDamag@i.love.tiltshellz.org] has joined ##stm32 2011-11-28T06:22:30 -!- peabody124 [~peabody12@128.249.96.21] has quit [Quit: peabody124] 2011-11-28T06:28:38 -!- cwoodall [~cwoodall@wireless1x-168-122-5-149.bu.edu] has joined ##stm32 2011-11-28T06:29:15 -!- cwoodall [~cwoodall@wireless1x-168-122-5-149.bu.edu] has quit [Client Quit] 2011-11-28T06:29:33 -!- cwoodall [~cwoodall@wireless1x-168-122-5-149.bu.edu] has joined ##stm32 2011-11-28T06:36:49 -!- cwoodall [~cwoodall@wireless1x-168-122-5-149.bu.edu] has quit [Ping timeout: 252 seconds] 2011-11-28T06:38:42 -!- cwoodall [~cwoodall@comm575-0301-dhcp097.bu.edu] has joined ##stm32 2011-11-28T06:48:54 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-28T07:03:20 -!- dekar_ [~dekar@drms-590ce734.pool.mediaWays.net] has quit [Quit: This computer has gone to sleep] 2011-11-28T08:04:27 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2011-11-28T08:04:57 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-28T08:53:35 -!- cwoodall [~cwoodall@comm575-0301-dhcp097.bu.edu] has quit [Ping timeout: 248 seconds] 2011-11-28T09:52:14 -!- dekar_ [~dekar@drms-590ec42e.pool.mediaWays.net] has joined ##stm32 2011-11-28T09:59:38 -!- dekar_ [~dekar@drms-590ec42e.pool.mediaWays.net] has quit [Quit: This computer has gone to sleep] 2011-11-28T11:09:51 -!- dekar_ [~dekar@95.143.165.210] has joined ##stm32 2011-11-28T11:10:09 -!- dekar_ [~dekar@95.143.165.210] has quit [Client Quit] 2011-11-28T11:13:43 -!- zippe [~zippe@173.11.99.161] has quit [Quit: Leaving.] 2011-11-28T11:47:40 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has joined ##stm32 2011-11-28T12:16:47 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has quit [Ping timeout: 248 seconds] 2011-11-28T14:07:29 -!- dekar [~dekar@95.143.165.210] has joined ##stm32 2011-11-28T15:18:47 -!- dekar [~dekar@95.143.165.210] has quit [Ping timeout: 252 seconds] 2011-11-28T15:46:13 -!- whitequark [~whitequar@2002:1fba:61b3::1] has quit [Ping timeout: 240 seconds] 2011-11-28T15:47:11 -!- whitequark [~whitequar@2002:1fba:61b3::1] has joined ##stm32 2011-11-28T16:35:49 -!- peabody124_ [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-28T16:35:50 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer] 2011-11-28T16:35:50 -!- peabody124_ is now known as peabody124 2011-11-28T16:38:28 -!- dekar_ [~dekar@drms-590ec42e.pool.mediaWays.net] has joined ##stm32 2011-11-28T17:44:34 -!- emeb [~ericb@ip72-223-86-178.ph.ph.cox.net] has joined ##stm32 2011-11-28T17:47:41 -!- cwoodall [~cwoodall@comm575-0301-dhcp097.bu.edu] has joined ##stm32 2011-11-28T17:49:03 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has quit [Ping timeout: 248 seconds] 2011-11-28T17:55:16 -!- cwoodall [~cwoodall@comm575-0301-dhcp097.bu.edu] has quit [Ping timeout: 244 seconds] 2011-11-28T18:18:42 -!- ben1066 [~ben1066@host81-153-88-170.range81-153.btcentralplus.com] has joined ##stm32 2011-11-28T18:18:46 < ben1066> Hey 2011-11-28T18:19:05 < ben1066> So I'm looking to get started with ARM, and I've picked ST as they have the best value that I can find 2011-11-28T18:19:26 < ben1066> Two major points, any good open source toolchains? and any good debugger? 2011-11-28T18:20:57 < ben1066> I plan on getting one of the new STM32F4DISCOVERY boards however I'd like to build some of my own, lower speced, dev boards 2011-11-28T18:20:57 < jpa-> a) codesourcery is fine, prebuilt binary gcc toolchain; there is also a "summon arm toolchain" script floating around if you want to build your own 2011-11-28T18:21:20 < ben1066> jpa-: does codesourcery release sources? 2011-11-28T18:21:24 < jpa-> yes 2011-11-28T18:21:45 < BrainDamage> you can use st-link util from texane & karlp for a gdb interface & flashing util 2011-11-28T18:21:50 < jpa-> but they offer no support for the free version, so if you want sources just use plain gcc 2011-11-28T18:21:58 < BrainDamage> to access the stm32discovery board 2011-11-28T18:22:16 < ben1066> BrainDamage: what about custom dev boards, is there a USART programming interface? 2011-11-28T18:22:17 < jpa-> b) stm32f100 discovery boards have stlink1 which works fine with gdb for me; stm32f4 probably has stlink2 which may or may not work, ask karlp 2011-11-28T18:22:23 < BrainDamage> yes there is 2011-11-28T18:22:27 < BrainDamage> it does work 2011-11-28T18:22:29 < BrainDamage> I have both 2011-11-28T18:22:43 < jpa-> you can use boot0 to program through usart, it works fine but who wants that if you can use SWD and have debugger 2011-11-28T18:22:56 < BrainDamage> this ^ 2011-11-28T18:23:10 < ben1066> jpa-: any good debugger then? I plan on some custom barebones boards so I can leave them doing xyz 2011-11-28T18:23:12 < BrainDamage> there's even open source debugger interface firmwares 2011-11-28T18:23:15 < BrainDamage> like versaloon 2011-11-28T18:23:21 < BrainDamage> which is openocd compatible 2011-11-28T18:23:27 < jpa-> ben1066: the stlink built on the discovery boards is fine for debugging 2011-11-28T18:23:38 < BrainDamage> there's even a tutorial how to reflash the st-link chip on the discovery boards with the versaloon firmware 2011-11-28T18:23:39 < jpa-> it also has a connector so you can debug your own board 2011-11-28T18:23:39 < ben1066> It will work with other boards? 2011-11-28T18:23:59 < jpa-> yeah 2011-11-28T18:24:00 < ben1066> jpa-: Great, that seems to be all I need then 2011-11-28T18:24:07 < jpa-> it is not :) 2011-11-28T18:24:10 < jpa-> you need a libc 2011-11-28T18:24:16 < jpa-> and that is were the sadness begins 2011-11-28T18:24:25 < ben1066> newlib crosscompiles fine doesnt it? 2011-11-28T18:24:29 < jpa-> codesourcery comes with newlib, which is fine but way too bloat 2011-11-28T18:24:38 < ben1066> uclibc? 2011-11-28T18:24:42 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2011-11-28T18:24:43 < jpa-> only for linux 2011-11-28T18:24:52 < jpa-> (not for bare metal) 2011-11-28T18:25:24 < ben1066> dietlibc? 2011-11-28T18:25:32 < jpa-> same thing, only for linux 2011-11-28T18:25:41 < jpa-> pdlibc - maybe; klibc - yeah, but it doesn't have libm and is also otherwise limited 2011-11-28T18:25:41 < ben1066> really? 2011-11-28T18:25:47 < ben1066> it cant be used freestanding? 2011-11-28T18:26:02 < jpa-> AFAIK yes, but can't be sure 2011-11-28T18:26:21 < jpa-> klibc is officially linux-only too, but it was easy to port to bare metal 2011-11-28T18:26:52 < ben1066> klibc is the linux kernel level so yea :p 2011-11-28T18:27:02 < jpa-> yeah 2011-11-28T18:27:12 < Laurenceb> what are you trying to od? 2011-11-28T18:27:18 < Laurenceb> stm32linux? 2011-11-28T18:27:28 < karlp> is it safe to assume you are developing on linux? 2011-11-28T18:27:42 < ben1066> I will be setting up my toolchain on linux 2011-11-28T18:27:58 < ben1066> I gave up with GCC based toolchains on windows long ago :P 2011-11-28T18:28:03 < Laurenceb> heh 2011-11-28T18:28:07 < Laurenceb> me too 2011-11-28T18:28:16 < ben1066> i just run a vm with gcc etc 2011-11-28T18:28:23 < karlp> well, there are alot of other options on windows beside just gcc :) 2011-11-28T18:28:23 < ben1066> then have a shared folder in virtual box 2011-11-28T18:28:29 < karlp> there's things like atollic et al 2011-11-28T18:28:29 < jpa-> codesourcery works fine on windows too :) 2011-11-28T18:29:00 < ben1066> I prefer to keep to toolchains that dont limit what I can do, if i have 1mb flash I want to be able to use it :p 2011-11-28T18:29:10 < jpa-> codesourcery does not limit :) 2011-11-28T18:29:13 < jpa-> it is perfect ,) 2011-11-28T18:29:17 < ben1066> + using propreitary software has shot myself in the foot before 2011-11-28T18:29:27 < ben1066> what library does codesourcery use? 2011-11-28T18:29:34 < jpa-> https://svn.kapsi.fi/jpa/dsoquad/freq/README.txt there is the procedure i have used to compile on windows using codesourcery 2011-11-28T18:29:46 < jpa-> it comes with newlib pre-built, but can use others 2011-11-28T18:30:06 < karlp> the stlink v1 and v2 on the stm32VL, stm32L and stm32F4 discovery boards all work to program and debug the discovery boards, and also other stm32 targets. (but not all the combinations have been tested) 2011-11-28T18:30:41 < ben1066> Yea karlp I plan on getting a STM32F4 and some other lower price ics 2011-11-28T18:30:45 < karlp> at least for users on linux, the stlinkv1 doesn't work (at all?) on osx 2011-11-28T18:30:55 < karlp> but the stlinkv2 does, 2011-11-28T18:30:57 < ben1066> pretty much ALL arms are better than the AVRs I have been using... 2011-11-28T18:31:01 < ben1066> Thats a though, what does AVR use? 2011-11-28T18:31:09 < jpa-> AVR is 8-bit 2011-11-28T18:31:11 < karlp> what do you mean, what does avr use? 2011-11-28T18:31:27 < karlp> avr doesn't have anything like the debug capabilities of arm, especially cortex m3 2011-11-28T18:31:28 < jpa-> atleast it uses less power :) 2011-11-28T18:31:29 < ben1066> the library 2011-11-28T18:31:36 < jpa-> there is avrlibc 2011-11-28T18:31:39 < karlp> jpa-: not always, stm32L is pretty awesome 2011-11-28T18:31:40 < ben1066> I know its totaly different :P 2011-11-28T18:31:41 < jpa-> it is mostly assembler code 2011-11-28T18:31:48 < karlp> avrlibc is fantastic though, 2011-11-28T18:31:53 < karlp> many years more hacking on it. 2011-11-28T18:31:54 < jpa-> i wish there was something similar for arm 2011-11-28T18:32:13 < ben1066> Make your own :D 2011-11-28T18:32:21 < karlp> I think it will come, just that arm embedded is only just coming out of the companies and into hackers 2011-11-28T18:32:41 < ben1066> heh I know, its like im up to date for once :O 2011-11-28T18:32:45 < jpa-> ben1066: yeah, been there done that based off klibc :) 2011-11-28T18:32:58 < karlp> klibc is gpl though right? 2011-11-28T18:33:03 < jpa-> yeah 2011-11-28T18:33:06 < jpa-> that is a downside 2011-11-28T18:33:08 < ben1066> jpa-: I dont really like GPL, I much prefer BSD 2011-11-28T18:33:36 < jpa-> i think it might be possible to track down the sources of klibc that i have used and prove that they are actually bsd 2011-11-28T18:33:45 < ben1066> have you looked at bionic? 2011-11-28T18:33:48 < jpa-> but klibc development team has not kept track of them so it is not trivial 2011-11-28T18:34:05 < jpa-> no 2011-11-28T18:34:05 < karlp> has anyone here got much to say on programing arm7 vs cortex m3? 2011-11-28T18:34:17 < karlp> is arm7 really much more complicated? 2011-11-28T18:34:17 < jpa-> my PLL on arm7 never started 2011-11-28T18:34:18 < ben1066> i know its targeted at android but its BSD licensed and according to wikipedia smaller than uclibc 2011-11-28T18:34:19 -!- vpopov is now known as happylife 2011-11-28T18:34:26 < Laurenceb> gcc support for arm has progressed massively in the last few years 2011-11-28T18:36:21 < karlp> and will probably continue to improve substantially 2011-11-28T18:36:28 < Laurenceb> its pretty much as good as kiel for lots of stuff imo now 2011-11-28T18:36:46 < ben1066> http://git.kernel.org/?p=libs/klibc/klibc.git;a=blob;f=usr/klibc/LICENSE;h=aa6d7a7e37015f95f852ceb29cc417519919d806;hb=75216b5c62b3b3635ae0c6cf7ee47757d7d99100 2011-11-28T18:37:06 < ben1066> so we just need to find the gnu files 2011-11-28T18:37:09 < ben1066> and rewrite them :p 2011-11-28T18:37:13 < jpa-> or remove them 2011-11-28T18:37:46 < ben1066> then youd have missing headers 2011-11-28T18:38:01 < jpa-> well i doubt the libc headers are derived from linux 2011-11-28T18:38:08 < jpa-> more likely that the syscall etc. headers are 2011-11-28T18:38:26 < jpa-> http://www.netmite.com/android/mydroid/1.5/bionic/libc/string/strtok.c vs. https://svn.kapsi.fi/jpa/paatti/baselibc/src/strtok_r.c hmm a bit different design 2011-11-28T18:38:38 < jpa-> i hate that klibc does not have a proper test framework, though 2011-11-28T18:39:32 < jpa-> oh yeah, and tinyprintf 2011-11-28T18:39:38 < jpa-> i really love that, but it is also GPL 2011-11-28T18:41:06 < ben1066> Oh rihgt, so they dont tell you which files have which license 2011-11-28T18:41:59 < jpa-> yeah that is the problem 2011-11-28T18:42:41 < jpa-> and also, there have been changes to some of the files by the klibc folk, so they would have to give a permit to relicense 2011-11-28T18:42:43 < ben1066> One file does 2011-11-28T18:42:51 < ben1066> sys/md.h 2011-11-28T18:42:53 < ben1066> :p 2011-11-28T18:43:33 < jpa-> i think we can live without that :) 2011-11-28T18:43:50 < ben1066> thats the only file Ive found with a GPL header 2011-11-28T18:44:35 < ben1066> Oh there we go, windows search, actually useful :O 2011-11-28T18:45:14 < ben1066> revision.h gzip.h gzip.c deflate.c bits.c minips.c cpio.c jfs_superblock.h md.h zip.c util.c unzip.c trees.c tailor.h 2011-11-28T18:45:21 < ben1066> The files that have "general public" in them 2011-11-28T18:45:32 < karlp> jpa-: does newlib "work" just that you feel it's bigger than it needs to be? 2011-11-28T18:46:09 < jpa-> ben1066: yeah, but those are outside the actual klibc tree 2011-11-28T18:46:16 < jpa-> usr/klibc/LICENSE is the main issue 2011-11-28T18:46:22 < jpa-> karlp: yeah, it does work 2011-11-28T18:46:45 < ben1066> No.... not ALL of them :p 2011-11-28T18:46:57 < jpa-> karlp: it is just these small things, like making stdio *way* too difficult to interface, writing all the crazy _sbrk stubs that make no sense on an embedded platform etc. 2011-11-28T18:47:15 < ben1066> oh wait sorry your right 2011-11-28T18:48:12 < jpa-> in fact, thanks to that file, as long as the file is not derived from linux kernel, it should be free to use 2011-11-28T18:48:27 < ben1066> Yea 2011-11-28T18:48:37 < ben1066> Except how do you know which are derived, other than they are headers 2011-11-28T18:48:44 < jpa-> some script magic 2011-11-28T18:48:49 < ben1066> It states taht files were derived from the /include directory 2011-11-28T18:48:53 < jpa-> search matching blocks of lines 2011-11-28T18:48:57 < ben1066> So we need to search the header files 2011-11-28T18:49:48 < ben1066> the rest (should) be BSD or "as is" 2011-11-28T18:50:20 < jpa-> printf is still an issue though 2011-11-28T18:50:27 < jpa-> klibc printf only writes to buffers 2011-11-28T18:50:35 < jpa-> which forces this ugggggly thing: https://svn.kapsi.fi/jpa/paatti/baselibc/src/vfprintf.c 2011-11-28T18:51:20 < ben1066> https://svn.kapsi.fi/jpa/paatti/baselibc/src/vfprintf.c 2011-11-28T18:51:29 < jpa-> that's what I said 2011-11-28T18:51:45 < ben1066> i know 2011-11-28T18:51:48 < ben1066> I accidently pasted it 2011-11-28T18:51:51 < ben1066> PuTTY 2011-11-28T18:52:33 < jpa-> i know :) 2011-11-28T18:59:07 * Laurenceb uses rprintf from pascal stang 2011-11-28T19:00:56 < jpa-> inttypes.h is derived, but easy to rewrite 2011-11-28T19:02:16 < jpa-> ctype.h is similar but has some significant differences even in the similar lines 2011-11-28T19:05:37 < jpa-> actually no 2011-11-28T19:05:44 < jpa-> had a mistake there 2011-11-28T19:06:08 < jpa-> couldn't find any significant similarities for the files that I have used 2011-11-28T19:06:30 < jpa-> (using similarity-tester) 2011-11-28T19:09:13 < karlp> jpa-: the handler_stack in your interrupt_vectors, that's for freertos tasks right? 2011-11-28T19:10:03 < jpa-> karlp: it is for everthing except the freertos tasks 2011-11-28T19:10:10 < jpa-> ie. it is for interrupt handlers 2011-11-28T19:10:37 < karlp> right, ok. 2011-11-28T19:10:50 < karlp> just hving a good look, this looks much nicer than the weird blend of asm startup I have now, 2011-11-28T19:11:04 < karlp> I'd like to have the startup stuff all in C, as ARM intended 2011-11-28T19:11:45 < jpa-> yeah i like it too 2011-11-28T19:11:54 < jpa-> now i don't know where my startup is when i'm using chibios :) 2011-11-28T19:13:14 < karlp> I'm just trying to get a few things up and going to get a bit more understanding before I go all OS 2011-11-28T19:13:41 < jpa-> true 2011-11-28T19:13:49 < karlp> girlfriend just went away for a week with work, so should have some nice quiet nights to get further along on this though :) 2011-11-28T19:14:06 < karlp> it comes together pretty quickly when you have the right examples to look at 2011-11-28T19:15:15 < jpa-> i should finish & clean up this one.. when OS crashes i still need gprs to upload crash dump :) https://svn.kapsi.fi/jpa/paatti-chibios/bootloader/mini_gprs.c 2011-11-28T19:19:37 < karlp> all the RCC->blah is form the raw cmsis core_cm3.h stuff right? and stm32f10xx.h? 2011-11-28T19:19:58 < karlp> instead of the RCC_SetConfig(somepoitner) stuff that is in the stm32 stdperiph lib? 2011-11-28T19:27:20 < jpa-> yeah 2011-11-28T19:27:24 < jpa-> much cleaner 2011-11-28T19:29:00 < karlp> different at least :) 2011-11-28T19:29:33 < karlp> so, anyone know how well summon-arm-toolchain will work with cortex M0 ddevices? 2011-11-28T19:29:39 < karlp> though it seems only NXP is making them... 2011-11-28T19:32:57 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-28T19:33:00 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-28T19:35:07 < ben1066> karlp: why wouldnt it work? 2011-11-28T19:35:39 < jpa-> depends on whether gcc works with them 2011-11-28T19:35:59 < jpa-> and it should 2011-11-28T19:36:42 < ben1066> its a subset, so yea, it should 2011-11-28T19:36:53 < ben1066> More importantly does summon-arm work with cortex m4? 2011-11-28T19:37:05 < jpa-> why wouldn't it? 2011-11-28T19:37:23 < ben1066> Well, I know itll work 2011-11-28T19:37:29 < ben1066> But will it use the hardware FPU? 2011-11-28T19:38:46 < jpa-> if you give it the switches 2011-11-28T19:39:20 < karlp> bah, prices on the cortex m0s from nxp aren't cheap enough to warrant, 2011-11-28T19:39:33 < karlp> and nxp's website has a broken link for the datasheet anyway 2011-11-28T19:39:41 < jpa-> i think the point of cortex-m0 is power usage, right? 2011-11-28T19:39:54 < ben1066> Yea pretty much, the STM32 M3s beat the M0 for price 2011-11-28T19:41:19 < karlp> yeah, and the M0 in theory is marginally lower power than the stm32L, 2011-11-28T19:41:39 < karlp> but I can't find enough on it yet, and 230uA/Mhz is still pretty damn low enough for me 2011-11-28T19:41:45 < karlp> (for now) 2011-11-28T19:42:39 < jpa-> i should look more into dynamically changing the frequency 2011-11-28T19:42:40 <+Steffanx> I don't really like the power saving states of an ARM though 2011-11-28T19:42:47 < ben1066> whats the difference between the summon toolchain and plain gcc? 2011-11-28T19:43:10 < jpa-> yeah, the "keep state" power saving state saves almost nothing, and the really low power state losest all memory 2011-11-28T19:43:14 < jpa-> IIRC 2011-11-28T19:43:58 < ben1066> http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html 2011-11-28T19:44:08 < ben1066> Seems plain gcc supports cortex-m4 2011-11-28T19:47:57 < jpa-> why do i have so much school that i learn all kinds of exciting things and no time to try out them all 2011-11-28T19:49:06 < ben1066> Heh 2011-11-28T19:49:14 < ben1066> Why am I reading not designing a board D: 2011-11-28T19:49:58 <+Steffanx> Yeah, I prefer the power saving states of an AVR 2011-11-28T19:50:48 < ben1066> I rarely do battery stuff, so, albeit it's bad design, ive never used power saving states 2011-11-28T19:51:16 <+Steffanx> me neither.. i just like it :P 2011-11-28T19:52:08 * Tom_itx gives Steffanx a batterymiser card and punches it once for him 2011-11-28T19:52:29 * Steffanx ignores Tom_itx 2011-11-28T19:54:02 < jpa-> i often use power saving states just to turn device off 2011-11-28T19:55:57 < ben1066> 210 MIPS is pretty impressive... 2011-11-28T19:56:01 < ben1066> For an ARM micro 2011-11-28T19:57:56 <+Steffanx> Not really 2011-11-28T19:58:12 <+Steffanx> Get an dual-core A8 or something like that :P 2011-11-28T19:58:34 <+Steffanx> -n 2011-11-28T20:01:37 < ben1066> micro 2011-11-28T20:01:43 < ben1066> not proccessor, but controller 2011-11-28T20:01:50 < ben1066> also, stm are wierd, they have the cheapest 2011-11-28T20:01:58 < ben1066> but then they get REALLY pricy for the good ones 2011-11-28T20:01:58 < ben1066> :S 2011-11-28T20:02:56 < karlp> that was what it seemed from my research the last few days too, yeah. 2011-11-28T20:03:18 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Read error: Connection reset by peer] 2011-11-28T20:03:20 < karlp> still, the low end is enough for my plans, 2011-11-28T20:03:30 < karlp> and when I know what I'm doing, I can look at the other ones anyway :) 2011-11-28T20:04:06 <+Steffanx> The big ass arms are all bga .. that sucks ass 2011-11-28T20:04:11 < ben1066> Not ALL 2011-11-28T20:04:20 < karlp> no, there's plenty of them in 100plus pin tqfp 2011-11-28T20:04:26 <+Steffanx> ALL ben1066 2011-11-28T20:04:40 < ben1066> NXP has some large ones in 144 LQFP, Cortex M4/M0 dual cores 2011-11-28T20:04:42 <+Steffanx> Maybe the older ones not.. 2011-11-28T20:04:53 <+Steffanx> That are not the big ass ARM's i meant 2011-11-28T20:05:06 < karlp> you mean A* series? 2011-11-28T20:05:07 < ben1066> what did you mean 2011-11-28T20:05:08 <+Steffanx> I meant cortex-a8 and arm's like that 2011-11-28T20:05:11 < jpa-> http://search.digikey.com/us/en/products/STM32F407ZGT6/497-11766-ND/2754210 $18 is not that bad 2011-11-28T20:05:12 < ben1066> oh well then yes 2011-11-28T20:05:13 < ben1066> :p 2011-11-28T20:05:28 < ben1066> jpa-: still more than the dev board afaik :P 2011-11-28T20:06:25 < jpa-> dev board is $19, but yeah 2011-11-28T20:07:06 < ben1066> For me the dev board is a few £ cheaper :P 2011-11-28T20:07:23 < karlp> for 512kb and up, in small volumes, the toshiba and fujitsu and nxp parts have more periphs than the stm32s for teh same price 2011-11-28T20:07:30 < ben1066> Also, I hate the pricing, 1-10 £4.69 10-100 £3.63 2011-11-28T20:07:41 < karlp> the only stm32s cheap are the f1 value line stuff 2011-11-28T20:07:43 < ben1066> you save nearly 25% by buying 10 :S 2011-11-28T20:07:49 <+Steffanx> YAY 2011-11-28T20:08:03 < ben1066> karlp: as I said, low end 2011-11-28T20:08:16 < karlp> ben1066: yeah, I was agreeing with you :) 2011-11-28T20:10:25 < ben1066> :P 2011-11-28T20:10:32 < ben1066> I havent really worked out where TI fit in 2011-11-28T20:11:28 < ben1066> they seem a bit on the pricy side... 2011-11-28T20:13:53 < karlp> I've heard their docs are better 2011-11-28T20:14:07 <+Steffanx> heard. .. 2011-11-28T20:14:10 < karlp> indeed 2011-11-28T20:14:13 < karlp> this is the internet 2011-11-28T20:14:17 < karlp> you expected truth? 2011-11-28T20:14:21 <+Steffanx> Yeah 2011-11-28T20:14:35 < ben1066> They seem to be the "big three" so to speak 2011-11-28T20:14:41 <+Steffanx> Especially from Australians in Iceland :P 2011-11-28T20:14:42 < karlp> this is irc! wild claims and unsubstantianted criticisms are the name of the game! 2011-11-28T20:14:48 < ben1066> USB host mode seems like something thats expensive to find though :S 2011-11-28T20:14:57 < ben1066> At least in small quantities 2011-11-28T20:15:03 < karlp> USB OTG is in most of teh F4s though... 2011-11-28T20:15:18 < ben1066> F4s are £10+ 2011-11-28T20:15:19 < karlp> seriously, if you want usb host, have a look at SoCs instead 2011-11-28T20:15:28 <+Steffanx> i like those pops 2011-11-28T20:15:36 < ben1066> I can get usb host in NXP LPC1700s 2011-11-28T20:15:41 < ben1066> They are around £5.50 2011-11-28T20:15:49 < ben1066> SoCs? Any in particular? 2011-11-28T20:15:53 < karlp> http://www.8devices.com/product/3/wi-fi-4-things is neat... 2011-11-28T20:16:08 < karlp> the lpc17xx have usb host? 2011-11-28T20:16:14 < karlp> I thought just usb device. 2011-11-28T20:16:18 <+Steffanx> I want a raspberrypi karlp :P 2011-11-28T20:16:24 < karlp> Steffanx: me too :) 2011-11-28T20:16:39 < karlp> get rid of the honking big old tower pc in the living room, that's just there for video playback 2011-11-28T20:16:50 < ben1066> karlp: some of the 1750 and 1760 have it 2011-11-28T20:16:52 < karlp> replace it with a rasberry pi and a laptop usb harddrive 2011-11-28T20:17:27 < ben1066> so yea, which SoCs? 2011-11-28T20:17:47 < karlp> well, that ralink, or the atheros ones 2011-11-28T20:17:58 < karlp> not sure how easy any of them can be gotten in small parts 2011-11-28T20:18:16 < karlp> but running a full linux on a tiny board like that can make some of the programming a lot simpler 2011-11-28T20:18:27 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-28T20:18:37 < jpa-> beaglebone seems nice, too 2011-11-28T20:18:44 <+Steffanx> and more expensive 2011-11-28T20:19:08 < ben1066> thats the issue, the SoCs are still very much industrial 2011-11-28T20:19:11 < jpa-> yeah, but you can actually buy that unlike rasberry pi :) 2011-11-28T20:19:58 <+Steffanx> Sure? 2011-11-28T20:21:05 < ben1066> I think I may just have to do without USB host on my little dev boards :( 2011-11-28T20:21:07 <+Steffanx> oh yes 2011-11-28T20:21:28 <+Steffanx> usb is a pita anyway 2011-11-28T20:21:33 < karlp> ben1066: what usb devices were you planning on connecting anyway? 2011-11-28T20:22:57 < jpa-> i wonder if usb otg would work as a host for any device? 2011-11-28T20:25:06 < ben1066> karlp: Not sure, I just like the avaliablity, android uses usb host for accessories, usb flash drives are cheaper than sd cards, keyboards 2011-11-28T20:26:03 < ben1066> then again the LPC1754 is only £4.50 2011-11-28T20:26:25 <+Steffanx> You realyl care about every pound for a single dev board ? 2011-11-28T20:27:15 < ben1066> Well no, but its nice to have the option to leave something built 2011-11-28T20:29:22 < ben1066> but I guess just usb device would do... 2011-11-28T20:31:11 -!- vasily__ [~happylife@46.251.83.126] has joined ##stm32 2011-11-28T20:35:10 < karlp> ben1066: I'm pretty sure we'll see android switch to being both, 2011-11-28T20:35:30 < karlp> they're already realised that the phone isn't always the slave to a bigger laptop/desktop 2011-11-28T20:35:35 < ben1066> karlp: It already is if the hardware supports it, unfortunately, most existing hardware is only desktop 2011-11-28T20:35:39 < ben1066> device* 2011-11-28T20:36:26 < ben1066> the issue is my plan is to build a few boards so I can just build them into something without worrying about cost so much, hence the reason I want it to be fairly cheap 2011-11-28T20:39:33 < ben1066> I might make a board with the traces for USB host, in the LPC1750 series, however, if I use it with a micro without usb host I just wont connect it, I guess they are otherwise pin compatible? 2011-11-28T21:01:52 -!- _Shurik_ [~alex@99-120-247-177.lightspeed.tukrga.sbcglobal.net] has joined ##stm32 2011-11-28T21:06:58 -!- cwoodall [~cwoodall@101-40-41-155-wireless1x.bu.edu] has joined ##stm32 2011-11-28T21:21:35 < karlp> anyone have any opinions on how fast you could reliably go with the internal high speed oscillator for a uart? 2011-11-28T21:27:01 -!- cwoodall [~cwoodall@101-40-41-155-wireless1x.bu.edu] has quit [Ping timeout: 244 seconds] 2011-11-28T21:29:28 <+Steffanx> pass 2011-11-28T21:38:33 -!- cwoodall [~cwoodall@cs10-dhcp132.bu.edu] has joined ##stm32 2011-11-28T21:39:32 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has joined ##stm32 2011-11-28T21:46:29 < jpa-> karlp: baudrate should not matter much for oscillator accuracy requirements 2011-11-28T21:46:35 <+Steffanx> I don't even know how accurate the internal oscillator is 2011-11-28T21:46:39 < jpa-> 10% of bit time is still 10% 2011-11-28T21:46:56 < jpa-> only thing is that the rise & fall times cut your margin a bit 2011-11-28T21:46:57 <+Steffanx> Then you still have to tweak it for each device.. 2011-11-28T21:47:01 <+Steffanx> Which is a little bit odd imho 2011-11-28T21:47:37 < jpa-> no need to tweak if the oscillator is accurate enough (depends on temperature, vcc etc.) 2011-11-28T21:47:51 <+Steffanx> The question is.. how accurate is it :) 2011-11-28T21:48:50 < jpa-> 2%. 2011-11-28T21:49:08 <+Steffanx> 2.5 .. for the 103 2011-11-28T21:49:34 <+Steffanx> And 1% if you go for 'user trimmed' 2011-11-28T21:57:53 < karlp> jpa-: yeah, but if I'm 10% off at 9600, I might still fall into what's acceptable at 9600, 2011-11-28T21:58:00 < karlp> but not at 115200 2011-11-28T21:58:54 < karlp> I think... 2011-11-28T21:58:57 < karlp> I'm probably wrong. 2011-11-28T21:58:59 <+Steffanx> 1mbaud ftw :P 2011-11-28T21:59:02 <+Steffanx> or maybe 2 2011-11-28T21:59:43 < karlp> is there any standard pinout for an SWD connector? 2011-11-28T22:00:04 < karlp> is the 6 pin row on the stlinkv2 a common enough format? or is swd not standardised at all? 2011-11-28T22:00:37 <+Steffanx> swd is a standard, i don't know about the pinout 2011-11-28T22:00:54 <+Steffanx> http://www.arm.com/products/system-ip/debug-trace/coresight-soc-components/serial-wire-debug.php 2011-11-28T22:00:59 < karlp> this 2x5, 0.05" header seems to be what arm recommends 2011-11-28T22:01:17 < karlp> yeah, I know swd is an arm standard. 2011-11-28T22:01:41 -!- zlog [~zlog@ip68-102-105-167.ks.ok.cox.net] has quit [Remote host closed the connection] 2011-11-28T22:01:43 <+Steffanx> Why did you ask then? :p 2011-11-28T22:01:44 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2011-11-28T22:02:36 <+Steffanx> SWD can do 1.5MB/s .. how nice 2011-11-28T22:02:49 <+Steffanx> *MByte :P 2011-11-28T22:03:09 <+Steffanx> Hmm, the page even says 4MByte/s 2011-11-28T22:03:09 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-28T22:03:22 -!- zlog [~zlog@ip68-102-105-167.ks.ok.cox.net] has joined ##stm32 2011-11-28T22:03:35 < karlp> well, I was wondering if this 0.05 2x5 was really being used or not 2011-11-28T22:04:00 <+Steffanx> Oh, lol i didn't know you have cortex-a,r and m :) 2011-11-28T22:05:20 < Thorn> if there was a single reference manual for all 3 v7 architectures it would be called ARM-v7ARM ARM 2011-11-28T22:05:34 <+Steffanx> Cortex-ARM :) 2011-11-28T22:06:30 -!- vasily__ [~happylife@46.251.83.126] has quit [Ping timeout: 260 seconds] 2011-11-28T22:11:43 < Laurenceb_> Steffanx: SWV can run really fats in manchester mode 2011-11-28T22:11:54 < Laurenceb_> unfortunately i dont think stlink-v2 supports that 2011-11-28T22:11:55 <+Steffanx> SWD :) 2011-11-28T22:12:07 <+Steffanx> isn't swv the viewer itself? 2011-11-28T22:12:12 < Laurenceb_> i dont know 2011-11-28T22:12:16 <+Steffanx> the viewer for swo or whatever :P 2011-11-28T22:12:18 < Laurenceb_> people say SWV and SWO 2011-11-28T22:12:28 < Laurenceb_> st-link v2 supports SWO 2011-11-28T22:12:37 < Laurenceb_> but it hasnt been reverse engineered yet 2011-11-28T22:12:44 < Laurenceb_> and aiui it uses the clocked mode 2011-11-28T22:13:01 < Laurenceb_> which uses syncronous usart off the SWDCLK 2011-11-28T22:13:20 <+Steffanx> It's swo 2011-11-28T22:13:33 <+Steffanx> or .. 2011-11-28T22:13:38 <+Steffanx> now ARM confused me 2011-11-28T22:14:14 <+Steffanx> And now it's clear 2011-11-28T22:14:15 <+Steffanx> "The Instrumentation Trace Macrocell (ITM) and Serial Wire Output (SWO) can be used to form a SWV" 2011-11-28T22:14:15 < Tom_itx> LEG COTEX-6 2011-11-28T22:14:31 <+Steffanx> Have fun with your LEG COTEX-6 Tom_itx 2011-11-28T22:14:54 < Tom_itx> Steffanx do you run windows at all? 2011-11-28T22:14:59 <+Steffanx> Yep 2011-11-28T22:15:03 < Tom_itx> 7? 2011-11-28T22:15:13 <+Steffanx> Yes, on my work :) 2011-11-28T22:15:29 < Tom_itx> does the programmer work ok under win7? 2011-11-28T22:15:36 < Tom_itx> yours isn't 64bit is it? 2011-11-28T22:15:40 <+Steffanx> Mine was 2011-11-28T22:15:42 <+Steffanx> it works iirc 2011-11-28T22:15:47 < Tom_itx> hmm 2011-11-28T22:15:52 < Tom_itx> any issues at all? 2011-11-28T22:15:56 <+Steffanx> I removed win 7 from my machine 2011-11-28T22:16:02 < Tom_itx> i don't blame you 2011-11-28T22:16:16 <+Steffanx> Not because i don't like it.. just because i didn't use it 2011-11-28T22:16:20 <+Steffanx> And i needed the space 2011-11-28T22:16:22 < Tom_itx> dude is trying win7 with as5 2011-11-28T22:16:26 < Tom_itx> 64b 2011-11-28T22:16:40 <+Steffanx> perhaps i still have my win 7 vm 2011-11-28T22:16:52 < Tom_itx> did you ever try as5? 2011-11-28T22:16:59 <+Steffanx> Yeah i did 2011-11-28T22:17:12 < Tom_itx> it did ok? 2011-11-28T22:17:28 < Tom_itx> other than the buggieness 2011-11-28T22:17:30 <+Steffanx> Not sure.. 2011-11-28T22:17:47 <+Steffanx> I remember there was 'something' i'm not sure what that 'something' was 2011-11-28T22:19:23 <+Steffanx> If there was a problem then dean fixed that 2011-11-28T22:21:35 < Tom_itx> k 2011-11-28T22:21:53 < Laurenceb_> wtf is LEG? 2011-11-28T22:22:02 < Laurenceb_> apart from something you walk on? 2011-11-28T22:22:14 < Tom_itx> :) 2011-11-28T22:22:24 < Tom_itx> funny how parts get named 2011-11-28T22:24:27 < jpa-> karlp: nope, the word length is always 10 bits for 8N1 RS232; therefore, maximum acceptable theoretical clock drift between sender and receiver is 10% - rise/fall times; therefore if HSI is 2.5% accurate, it should be fine for whatever baudrate until rise/fall times start to be a significant portion of the bit width (which they shouldn't be if you use the 50MHz output pin mode) 2011-11-28T22:24:30 <+Steffanx> I don't have win 7 anymore Tom_itx 2011-11-28T22:25:52 < karlp> jpa-: that's good for me, son on avr, with an internal rc oscillator only rated to 10Mhz, you normally need a crystal/resonator, 2011-11-28T22:26:04 < karlp> but at 2.5% for the HSI on stm32, I should be fine without it. 2011-11-28T22:26:57 < karlp> Steffanx: my reading ending up deciding that SWV and SWO were confusingly interchangeable names for getting trace data out of the core, and SWD was the name for the SWDIO and SWDCLK pins that let you program and do some more invasive debugging. 2011-11-28T22:27:06 < Laurenceb_> have you heard about the raspberry pi GPU? 2011-11-28T22:27:06 < Laurenceb_> its raspberry rippled 2011-11-28T22:27:24 <+Steffanx> That quote is from a line in the ARM documentation karlp 2011-11-28T22:27:29 < jpa-> karlp: AFAIK the issue is more often that the baudrates you can get exactly by the divider are limited 2011-11-28T22:28:56 < jpa-> ie. no way to divide 8MHz with an integer to get 921600 bps 2011-11-28T22:29:10 < jpa-> while 24MHz divides neatly 2011-11-28T22:39:01 <+Steffanx> They 'dude' has problems with the programmer Tom_itx ? 2011-11-28T22:39:07 <+Steffanx> *they = that :) 2011-11-28T22:39:37 < Thorn> http://stackoverflow.com/questions/7984516/how-to-use-llvmclang-to-compile-for-stm32 2011-11-28T22:39:56 < karlp> Steffanx: I don't doubt it, but I saw diagrams in arm literature using swv and swo on the same pins 2011-11-28T22:40:08 < karlp> I agree with you though :) 2011-11-28T22:41:12 <+Steffanx> okok :P 2011-11-28T22:42:55 < dekar_> Steffanx, managed to get my FPGA working 2011-11-28T22:42:58 < dekar_> http://dl.dropbox.com/u/28467113/Screen%20Shot%202011-11-24%20at%201.00.25%20AM.png 2011-11-28T22:43:10 < dekar_> you have to plug the loopback to the port _NOT_ glowing 2011-11-28T22:43:21 <+Steffanx> this karlp http://www.naffets.nl/share/ARM_Information_Center-20111128-214314.png ? 2011-11-28T22:43:37 <+Steffanx> Hehe 2011-11-28T22:43:39 <+Steffanx> dekar_ 2011-11-28T22:44:15 < dekar_> Steffanx, I overclocked it and got stable 13.6G :D 2011-11-28T22:44:33 < dekar_> didn't make a screenshot though 2011-11-28T22:44:42 <+Steffanx> Should nice 2011-11-28T22:45:00 <+Steffanx> Not useful for me, but nice :p 2011-11-28T22:51:55 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-28T22:55:07 -!- cwoodall [~cwoodall@cs10-dhcp132.bu.edu] has quit [Ping timeout: 260 seconds] 2011-11-28T23:05:45 < Laurenceb_> SWV is output on SWO 2011-11-28T23:06:04 < Laurenceb_> you can configure register dumps and things, and also data from the ITM over the SWV 2011-11-28T23:06:47 < Laurenceb_> you can also configure the SWO protocol - manchester encoded asynchronous - very fast, of synchronous usart synced the SWDCLK 2011-11-28T23:06:55 < Laurenceb_> thats all documented 2011-11-28T23:07:03 < Laurenceb_> and aiui its supported by OpenOCD 2011-11-28T23:07:11 < Laurenceb_> using syncronous usart mode 2011-11-28T23:07:35 < Laurenceb_> Stlink v2 supports SWO in syncronous mode, but the usb commands need to be reverse engineered 2011-11-28T23:08:12 < Laurenceb_> i think itd be a lot of work to add proper SWV protocol support to the st-link utility 2011-11-28T23:08:28 < Laurenceb_> maybe if raw data could be piped to OpenOCD? 2011-11-28T23:09:10 < dekar_> Steffanx, you could use the FPGA to make your SWD hit the 4MB/s you were talking about? :P 2011-11-28T23:09:16 < Laurenceb_> IIRC OpenOCD have SWV working with J-Link.. im not 100% sure 2011-11-28T23:09:23 < Laurenceb_> heh 2011-11-28T23:09:39 < Laurenceb_> dekar_: aiui in manchester you can go _really_ fast 2011-11-28T23:09:40 < dekar_> and then do that like 500 times in parallel 2011-11-28T23:10:02 < Laurenceb_> the baud can be up to F_APB/2 2011-11-28T23:10:05 < dekar_> oh well, go 10Gbit/s then :D 2011-11-28T23:10:13 < Laurenceb_> 36Mbps 2011-11-28T23:10:24 < dekar_> *cough* boring *cough* 2011-11-28T23:10:49 < Laurenceb_> heh there usb2 FS for that i guess 2011-11-28T23:11:09 < Laurenceb_> but it owns for debugging 2011-11-28T23:11:48 < Laurenceb_> doesnt versaloon firmware support SWD on the discovery? 2011-11-28T23:11:52 < Laurenceb_> if you reflash 2011-11-28T23:15:59 < ben1066> can st link only program st micro arms? 2011-11-28T23:17:14 < karlp> that's what they say, 2011-11-28T23:17:26 < karlp> at least, with the original stlink firmware 2011-11-28T23:17:31 < ben1066> Ah I see 2011-11-28T23:17:57 < ben1066> what about the lpcxpresso programmer? 2011-11-28T23:18:03 < ben1066> only lpcs? 2011-11-28T23:18:12 < karlp> I believe it has similar limitations, but I've not used it. 2011-11-28T23:18:26 < dekar_> Laurenceb_, I'd guess it does, but I don't have any discovery boards to try it 2011-11-28T23:18:32 < karlp> I'm not itching to try and get started with multiple different arm vendors :) 2011-11-28T23:19:41 < ben1066> karlp: heh, the thing ive found is that LPC are good for everything but USB and ethernet 2011-11-28T23:19:44 < ben1066> stm* 2011-11-28T23:20:04 < ben1066> and that LPC are also a bit faster at similar cost 2011-11-28T23:54:41 -!- happylife [~happylife@212.92.145.7] has quit [Ping timeout: 252 seconds] 2011-11-28T23:54:47 -!- Thorn [~Thorn@unaffiliated/thorn] has quit [Ping timeout: 255 seconds] 2011-11-28T23:55:40 -!- happylife [~happylife@212.92.145.7] has joined ##stm32 --- Day changed Tue Nov 29 2011 2011-11-29T00:01:01 < Laurenceb_> ben1066: ive just got the um0424 USB mass storage example code running on f103 2011-11-29T00:01:07 < Laurenceb_> took alot of work 2011-11-29T00:01:26 < Laurenceb_> its still too slow :( 2011-11-29T00:01:32 < ben1066> The thing is, I want some cheap ones to work with, under £4 2011-11-29T00:01:51 < ben1066> NXP have the LPC1751 with USB, 100mhz, ADC, RTC, 2011-11-29T00:02:04 < Laurenceb_> whats the firmware situation like for it? 2011-11-29T00:02:12 < Laurenceb_> is it as easy to use as stm32? 2011-11-29T00:02:24 < ben1066> not sure 2011-11-29T00:02:53 < Laurenceb_> i still have the issue that my device is 12Mbps USB2 2011-11-29T00:03:03 < Laurenceb_> its supposed to be full speed 2011-11-29T00:03:07 < ben1066> Afaik there are on chip usb drivers in ROM 2011-11-29T00:03:11 < Laurenceb_> any idea how that could happen? 2011-11-29T00:06:07 < ben1066> No ;S 2011-11-29T00:06:56 < Laurenceb_> usb is too complex for its own good 2011-11-29T00:07:16 < Laurenceb_> ubuntu is showing USB2 high speed device :( 2011-11-29T00:07:28 < Laurenceb_> and its only getting 600KB/s throughput 2011-11-29T00:08:03 < Laurenceb_> even tho i rewrote it to use DMA with multisector buffering 2011-11-29T00:08:19 < Laurenceb_> should be about 2MB/s 2011-11-29T00:15:35 < dekar_> I am glad I never cared for the speed of my USB - flashing a 20kb firmware using my bootloader takes like 5s :P 2011-11-29T00:16:19 < Laurenceb_> im making a datalogger - commercial project 2011-11-29T00:16:37 < Laurenceb_> well - it logs data as part of the many other jobs :P 2011-11-29T00:18:02 < dekar_> commercial project here as well 2011-11-29T00:18:45 < dekar_> it's just that we used to do i2c using an FT2232c, thus switching to the stm32/usb-hid was a major speedup already 2011-11-29T00:19:32 < dekar_> those FTDI things really suck for I2C, the clock randomly pauses for up to seconds in the middle of transactions - many slaves crashed on me :/ 2011-11-29T00:19:54 < dekar_> crashed like in required power cycles 2011-11-29T00:20:23 < dekar_> I think the FTDI is basically bit-banging I2C via USB (using their proprietary MPSSE protocol) 2011-11-29T00:20:43 < dekar_> since USB sucks for real time the resulting I2C sucks as well 2011-11-29T00:21:46 < karlp> heh, board layout for stm32 is not nearly as easy as for bigger pitch stuff. especially trying to avoid vias, as our boards don't hvae through hole plating. 2011-11-29T00:21:58 < karlp> admittedly, board layout's not my strong point, but this is tedious 2011-11-29T00:22:18 <+Steffanx> seeed is cheap.. so why ou care about via's karlp :) 2011-11-29T00:22:21 < dekar_> I should really learn layouting one day 2011-11-29T00:22:28 < karlp> we have a mill in the office, 2011-11-29T00:22:45 < karlp> it can do double sided fine pitch smd, but vias, I have to put them in myself :) 2011-11-29T00:22:58 <+Steffanx> That's not that hard 2011-11-29T00:23:07 < karlp> no, but it's tedious. 2011-11-29T00:23:09 <+Steffanx> You just need the right tools 2011-11-29T00:23:24 <+Steffanx> but seeed is easier 2011-11-29T00:23:26 < karlp> I'm just used to being able to run traces between teh pads if need be 2011-11-29T00:23:34 < karlp> seed is much much much slower to iceland. 2011-11-29T00:23:44 <+Steffanx> 2-3 weeks to the netherlands .. 2011-11-29T00:24:07 < dekar_> From what I read the altera-blaster (jtag) is basically an FTDI with a changed PID/VID - I really wonder why they did that. Windows throws a ton of huge warnings installing their unsigned driver, though they could have used the standard FTDI driver which ships with every copy of windows :/ 2011-11-29T00:24:20 < karlp> 2-3 weeks is so so much slower than 2 hours in the lab. 2011-11-29T00:24:34 <+Steffanx> True, but I don't really care about that 2011-11-29T00:24:35 < karlp> dekar_: "product differentiation" 2011-11-29T00:24:44 <+Steffanx> 2 hours in the lab = 2 hours wasted :P 2011-11-29T00:25:08 < karlp> no, I meant while waiting for the machine to make it here 2011-11-29T00:25:08 < dekar_> karlp, what do you mean? they could have written custom strings to the FTDI EEPROM 2011-11-29T00:25:18 < dekar_> we used to do that for the old product 2011-11-29T00:25:58 <+Steffanx> Anyway gn 2011-11-29T00:26:05 < dekar_> night 2011-11-29T00:26:09 < karlp> good night 2011-11-29T00:26:50 < dekar_> I got a free palm Vx today and I wonder whether I want to hack the IR transmitter to be stronger and use it as universal remote 2011-11-29T00:27:08 < dekar_> could replace all of my four remotes lying around 2011-11-29T00:27:15 < dekar_> it even has backlight 2011-11-29T00:27:37 <+Steffanx> dekar_ and his free products 2011-11-29T00:28:00 <+Steffanx> How's your ps3 dekar_ ? 2011-11-29T00:28:20 < dekar_> didn't bother hacking it yet - sits next to my 360 though 2011-11-29T00:28:24 < dekar_> barely play anyway 2011-11-29T00:28:48 <+Steffanx> It's still a weird story 2011-11-29T00:28:53 < dekar_> I know 2011-11-29T00:29:19 <+Steffanx> :P 2011-11-29T00:29:24 <+Steffanx> Write a book about it :) 2011-11-29T00:29:38 <+Steffanx> It'll be a bestseller, fantasy :) 2011-11-29T00:29:43 < dekar_> haha, not enough story for a book, haven't even heard from that guy since then 2011-11-29T00:29:50 <+Steffanx> Haha 2011-11-29T00:29:53 < dekar_> mailed him a few times but he didn't respond 2011-11-29T00:30:42 < dekar_> and he has this thing? throwing his phones against the wall regularly, so his old cell phone number doesn't work anymore and I don't know how to reach him 2011-11-29T00:30:55 < dekar_> weird guy 2011-11-29T00:33:17 < dekar_> Steffanx, I got my teensy++ board though, did I tell you that? 2011-11-29T00:33:30 < dekar_> just cbf soldering those 50 pins up to the NOR flash 2011-11-29T00:33:32 < Tom_itx> is that a 1287? 2011-11-29T00:33:46 < Tom_itx> host mode 2011-11-29T00:34:15 < dekar_> dunno what a 1287 is actually 2011-11-29T00:34:20 < dekar_> the teensy is some AVR 2011-11-29T00:34:32 < dekar_> but I am really not into atmel so idk what it is 2011-11-29T00:34:50 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 252 seconds] 2011-11-29T00:35:10 < Tom_itx> why'd you get it then? 2011-11-29T00:35:38 < dekar_> to solder it up to my PS3s NOR flash and program it 2011-11-29T00:35:58 < dekar_> some PS3 someone gave me earlier this year, haven't used it yet 2011-11-29T00:36:05 < dekar_> felt like at least hacking it :) 2011-11-29T00:36:19 < dekar_> it kinda works like an open source modchip 2011-11-29T00:36:35 < dekar_> the project is called NORway iirc 2011-11-29T00:37:20 < Tom_itx> that isn't that psgroove thing is it? 2011-11-29T00:37:41 < dekar_> nope, that stopped working a while ago 2011-11-29T00:37:47 < Tom_itx> i figured 2011-11-29T00:38:39 < dekar_> now you have to solder 50 cables up to the address and data bus of the NOR chip 2011-11-29T00:38:47 < dekar_> and I hate soldering :P 2011-11-29T00:38:56 < Tom_itx> smt chip? 2011-11-29T00:39:04 < Tom_itx> use wirewrap wire 2011-11-29T00:39:05 < dekar_> yeah 2011-11-29T00:40:29 < Tom_itx> so how's the teensy gonna help you with that? 2011-11-29T00:40:33 < dekar_> I actually thought about using some really fine litz 2011-11-29T00:40:35 < Tom_itx> it's not 50 pin 2011-11-29T00:40:43 < dekar_> well maybe it was 40 pins 2011-11-29T00:40:45 < dekar_> still a ton 2011-11-29T00:40:56 < dekar_> it uses most of the teensy pins 2011-11-29T00:42:23 < dekar_> Tom_itx, http://psx-scene.com/forums/attachments/f149/29584d1309926619-norway-teensy-2-0-flasher-software-norway4.jpg 2011-11-29T00:42:59 < dekar_> I think it's using some pads on the teensy++ which weren't actually meant to be used 2011-11-29T00:43:15 < Tom_itx> if it's a pad, it's meant to be used 2011-11-29T00:43:28 < dekar_> well not for breadboarding I mean 2011-11-29T00:43:40 < dekar_> the teensy is supposed to be plugged into a breadboard I think 2011-11-29T00:43:51 < Tom_itx> no, there are just too many pins to cleanly make a dip board from it 2011-11-29T00:44:06 < Tom_itx> so they just stick em on the end 2011-11-29T00:44:14 < Tom_itx> or whereever 2011-11-29T00:44:44 < Tom_itx> http://tom-itx.dyndns.org:81/~webpage/boards/atmega32u4/atmega32u4_1.jpg 2011-11-29T00:44:51 < Tom_itx> that one likely doesn't have quite enough pins 2011-11-29T00:45:17 < dekar_> yeah w/e - I haven't looked into the teensy and didn't really care actually. the NORway projects uses the teensy as their reference hardware so I bought it 2011-11-29T00:45:39 < dekar_> mine is the teensy++ 2.0 2011-11-29T00:46:10 < dekar_> http://www.pjrc.com/store/tpp_main.jpg 2011-11-29T00:46:11 < Tom_itx> iirc that's a at90usb1287 2011-11-29T00:46:14 < Tom_itx> i know 2011-11-29T00:46:38 < dekar_> it's supposed to work, thus I got it 2011-11-29T00:46:38 < Tom_itx> 1286 2011-11-29T00:46:43 < Tom_itx> same thing but not host mode 2011-11-29T00:46:54 < dekar_> didn't plan on playing with it besides the NOR flash 2011-11-29T00:47:05 < Tom_itx> nor will fade then you can 2011-11-29T00:47:17 < dekar_> fade? 2011-11-29T00:47:29 < Tom_itx> the hack will go away soon enough, then you can play with it 2011-11-29T00:47:41 < dekar_> also I plan on keeping it soldered and leaving it inside the case in case I need to flash it again later 2011-11-29T00:47:47 < Tom_itx> what's it supposed to do? 2011-11-29T00:48:00 < dekar_> replace the firmware of the PS3 2011-11-29T00:48:06 < Tom_itx> ahh 2011-11-29T00:48:18 < Tom_itx> custom? 2011-11-29T00:48:20 < dekar_> boot linux etc 2011-11-29T00:48:22 < dekar_> yeah 2011-11-29T00:48:28 < Tom_itx> play any game... 2011-11-29T00:48:39 < dekar_> I guess you could play games as well 2011-11-29T00:48:43 < dekar_> don't have any though 2011-11-29T00:48:59 < Tom_itx> so you're just making a linux box out of it? 2011-11-29T00:49:06 < dekar_> I already had a hacked xbox when I got the PS3 2011-11-29T00:49:33 < dekar_> I don't even really need it as linux box, I guess I plan on hacking it out of curiosity 2011-11-29T00:49:41 < dekar_> lack of batter ideas :) 2011-11-29T00:49:45 < dekar_> *better 2011-11-29T00:50:52 < dekar_> and I don't really play on my xbox as well, just sometimes when friends come over - have them jump around playing kinect and having a good laugh :) 2011-11-29T00:55:03 < dekar_> I might try some OpenCL on the PS3 2011-11-29T00:55:30 < dekar_> having 7 cores it should show some nice performance increase when using it properly :) 2011-11-29T00:57:32 < dekar_> Tom_itx, do you like AVR? I started feeling like I know the ARM internals so I really don't feel like switching architectures 2011-11-29T00:59:01 < dekar_> Had to reverse engineer some arm firmware lately and had to write a ton of arm assembly at university, thus I'll probably stick with arm for the rest of my life :) 2011-11-29T01:08:13 < Tom_itx> i've messed with avr a bit 2011-11-29T01:08:37 < Tom_itx> it's alot easier than arm to learn 2011-11-29T01:32:33 < karlp> avrlibc is a lot more mature too 2011-11-29T01:40:16 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has quit [Ping timeout: 244 seconds] 2011-11-29T02:41:08 -!- peabody124_ [~peabody12@128.249.96.21] has joined ##stm32 2011-11-29T02:41:08 -!- peabody124 [~peabody12@128.249.96.21] has quit [Read error: Connection reset by peer] 2011-11-29T02:41:08 -!- peabody124_ is now known as peabody124 2011-11-29T02:45:01 -!- cwoodall [~cwoodall@comm575-0301-dhcp097.bu.edu] has joined ##stm32 2011-11-29T03:19:43 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2011-11-29T03:24:02 -!- peabody124 [~peabody12@128.249.96.21] has quit [Quit: peabody124] 2011-11-29T03:48:08 -!- csamuelson is now known as Rious 2011-11-29T03:54:54 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-29T04:01:17 < jnosky> The avr is for girls :P 2011-11-29T04:01:46 < dekar_> :D 2011-11-29T04:01:57 < jnosky> lol 2011-11-29T04:19:04 < karlp> well, I have a new link script, and a c based startup routine, and it compiles, even if it doesn't run :9 2011-11-29T04:19:08 < karlp> more later :) 2011-11-29T04:19:35 < karlp> I'm not sure whether the fact that I'm starting to understand linker scripts is a good thing or a bad thing 2011-11-29T04:32:05 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has quit [Read error: Connection reset by peer] 2011-11-29T04:32:34 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-29T05:10:32 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2011-11-29T05:21:45 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has joined ##stm32 2011-11-29T05:27:04 -!- peabody124 [~peabody12@128.249.96.21] has joined ##stm32 2011-11-29T06:46:15 -!- zippe [~zippe@173.11.99.161] has joined ##stm32 2011-11-29T06:47:43 -!- Laurenceb_ [~Laurence@host86-179-249-49.range86-179.btcentralplus.com] has quit [Ping timeout: 248 seconds] 2011-11-29T07:12:33 -!- emeb [~ericb@ip72-223-86-178.ph.ph.cox.net] has left ##stm32 [] 2011-11-29T07:59:15 -!- zippe [~zippe@173.11.99.161] has quit [Quit: Leaving.] 2011-11-29T08:51:29 -!- BadDorf [BD@nat/ibm/x-jrlwqrcoztthulpm] has quit [Ping timeout: 252 seconds] 2011-11-29T09:43:12 -!- dekar__ [~dekar@drms-590c47f1.pool.mediaWays.net] has joined ##stm32 2011-11-29T09:46:55 -!- dekar_ [~dekar@drms-590ec42e.pool.mediaWays.net] has quit [Ping timeout: 248 seconds] 2011-11-29T11:15:05 -!- dekar__ [~dekar@drms-590c47f1.pool.mediaWays.net] has quit [Quit: This computer has gone to sleep] 2011-11-29T11:36:43 -!- peabody124 [~peabody12@128.249.96.21] has quit [Quit: peabody124] 2011-11-29T11:59:05 -!- dekar_ [~dekar@95.143.165.210] has joined ##stm32 2011-11-29T13:43:57 -!- dekar__ [~dekar@95.143.165.210] has joined ##stm32 2011-11-29T13:47:44 -!- dekar_ [~dekar@95.143.165.210] has quit [Ping timeout: 244 seconds] 2011-11-29T13:53:47 -!- dekar__ [~dekar@95.143.165.210] has quit [Quit: Leaving] 2011-11-29T16:29:00 -!- grummund [~user@unaffiliated/grummund] has quit [Ping timeout: 260 seconds] 2011-11-29T16:29:24 -!- grummund [~user@unaffiliated/grummund] has joined ##stm32 2011-11-29T16:30:55 -!- cwoodall [~cwoodall@comm575-0301-dhcp097.bu.edu] has quit [Ping timeout: 244 seconds] 2011-11-29T17:17:58 -!- happylife [~happylife@212.92.145.7] has quit [Quit: So long] 2011-11-29T18:34:51 -!- emeb [~ericb@ip72-223-86-178.ph.ph.cox.net] has joined ##stm32 2011-11-29T18:40:34 < Laurenceb> anyone here used NVIC_SystemReset() 2011-11-29T18:45:06 < grummund> yes i believe so 2011-11-29T18:45:53 < Laurenceb> it doesnt seem to be working for me 2011-11-29T18:46:02 < Laurenceb> just halts the processor 2011-11-29T18:46:40 < grummund> maybe an issue with whatever debugger you use 2011-11-29T18:46:49 < Laurenceb> hmm 2011-11-29T18:46:57 < Laurenceb> ill investgate 2011-11-29T18:56:24 < _Shurik_> Guys, what is the reason for Set/Reset port pin register exactly? I can't quite find a good explanation anywhere 2011-11-29T19:07:01 < karlp> for atomic bit acess 2011-11-29T19:07:11 < _Shurik_> How do you mean> 2011-11-29T19:07:12 < _Shurik_> ? 2011-11-29T19:07:15 < karlp> so you don't have to read the whole port, mask and edit the bit you want, and then write it back. 2011-11-29T19:07:25 < karlp> the set/reset is for bitbanding, 2011-11-29T19:07:51 < karlp> so instead of doing the read-modify-write, you write 0 to one place to magically set just a single bit 2011-11-29T19:07:57 < _Shurik_> so what does Set and Reset state actually mean? 2011-11-29T19:08:01 < karlp> 1 and 0 2011-11-29T19:08:12 < _Shurik_> ah, so it's a mask register? 2011-11-29T19:08:32 < _Shurik_> it basically acts as a final bitwise AND? 2011-11-29T19:08:53 < _Shurik_> I see I see 2011-11-29T19:09:00 < _Shurik_> so Set - means writable? 2011-11-29T19:09:03 < _Shurik_> Reset - not? 2011-11-29T19:09:21 < karlp> set sets the bit, reset resets it to 0 2011-11-29T19:09:30 < karlp> writeable doesn't really relate to this 2011-11-29T19:09:42 < _Shurik_> Aaaaaah 2011-11-29T19:09:44 < _Shurik_> jeez 2011-11-29T19:09:46 < _Shurik_> I'm slow 2011-11-29T19:10:15 < _Shurik_> So, instead of addressing PortB at all, by using Set/Reset register you can alter specific bits 2011-11-29T19:10:16 < _Shurik_> okay, I got it 2011-11-29T19:10:27 < _Shurik_> Thank you! 2011-11-29T19:10:49 < _Shurik_> I'm really digging STM32 after messing with AVRs 2011-11-29T19:11:38 < Laurenceb> grummond: yeah nvic reset works now 2011-11-29T19:11:41 < Laurenceb> weird 2011-11-29T19:14:15 < _Shurik_> karlp: is it possible to effect multiple bits via Set/Reset register? I'm trying to figure out why couldn't I blink both LEDs last night :) 2011-11-29T19:16:54 < karlp> not in the same instruction, 2011-11-29T19:17:04 < karlp> those bit banding things are for single bits 2011-11-29T19:17:06 < _Shurik_> Aha! 2011-11-29T19:17:15 < karlp> if you want to do multiple bits, you have to read and modify write 2011-11-29T19:17:16 < _Shurik_> Makes sense now 2011-11-29T19:17:39 < _Shurik_> I see, so you would need to do 1 << 9 and then 1 << 8 for example 2011-11-29T19:17:40 < _Shurik_> got ya 2011-11-29T19:18:10 < karlp> show us the code? 2011-11-29T19:19:16 < karlp> you can do GPIOB_ODR |= (1<<9) | (1<<8); 2011-11-29T19:19:30 < _Shurik_> Yes, that's for a normal port operation 2011-11-29T19:19:58 < _Shurik_> I'm was just trying to figure out what the hell was that port, and you explained me very well - thank you 2011-11-29T19:21:06 < karlp> if you're using GPIOB->BSRRL = blah, 2011-11-29T19:21:20 < karlp> that's only for single bits... 2011-11-29T19:21:39 < _Shurik_> yeah 2011-11-29T19:21:52 < _Shurik_> Well, it is probably useful for serial operations 2011-11-29T19:21:57 < _Shurik_> I haven't gotten that far yet 2011-11-29T19:30:17 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-29T19:35:56 < Laurenceb> https://github.com/Laurenceb/STM32-Logger 2011-11-29T19:36:51 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-29T19:36:52 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-29T19:55:05 < karlp> bah, nxp's cortex m0's, in so-20, so-28 and pdip don't have any ADC at all 2011-11-29T19:55:43 < karlp> groovy Laurenceb :) 2011-11-29T19:55:55 < karlp> happy with the mass storage performance now? 2011-11-29T19:56:20 < Tom_itx> Laurenceb does that code detect the difference between a hi capacity sd over a standard one? 2011-11-29T19:59:34 < Tom_itx> back when i was messin with it, there were 3 basic modes, MMC SD and HCSD 2011-11-29T19:59:45 < Tom_itx> the init sequence varied a bit between them 2011-11-29T20:01:31 < Tom_itx> i had some hardware issues and never got back to it to finish the code 2011-11-29T20:40:21 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-29T20:40:21 -!- mode/##stm32 [+v Steffann] by ChanServ 2011-11-29T20:42:58 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Read error: Operation timed out] 2011-11-29T20:53:03 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2011-11-29T21:18:54 -!- Laurenceb_ [~Laurence@host86-179-81-204.range86-179.btcentralplus.com] has joined ##stm32 2011-11-29T22:32:32 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-29T22:46:47 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2011-11-29T23:09:34 -!- Steffann [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Quit: Leaving] 2011-11-29T23:10:00 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-29T23:10:04 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-29T23:15:04 -!- peabody124 [~peabody12@128.249.96.123] has quit [Read error: Connection reset by peer] 2011-11-29T23:15:34 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2011-11-29T23:25:48 -!- dekar_ [~dekar@drms-590cfee3.pool.mediaWays.net] has joined ##stm32 2011-11-29T23:26:11 < dekar_> how do manufacturers connect lanes switching between pcb layers? 2011-11-29T23:26:12 -!- peabody124 [~peabody12@128.249.96.123] has quit [Read error: Connection reset by peer] 2011-11-29T23:26:46 -!- peabody124 [~peabody12@128.249.96.123] has joined ##stm32 2011-11-29T23:27:13 < Tom_itx> lanes? 2011-11-29T23:27:21 < Tom_itx> they use vias 2011-11-29T23:30:09 < dekar_> how do they make them? 2011-11-29T23:30:56 < dekar_> do they drill a hole for each of them? 2011-11-29T23:31:22 -!- cwoodall [~cwoodall@161-35-41-155-wireless1x.bu.edu] has joined ##stm32 2011-11-29T23:31:33 < Tom_itx> generally yes 2011-11-29T23:32:02 < Tom_itx> http://tom-itx.dyndns.org:81/~webpage/boards/atmega32u4/atmega32u4_1.jpg 2011-11-29T23:32:10 < Tom_itx> see all the holes in the middle of the board? 2011-11-29T23:32:15 < Tom_itx> those connect to the other side 2011-11-29T23:32:18 < dekar_> do they have to do that below BGA components to get them connected to different layers? 2011-11-29T23:32:25 < Tom_itx> in this case it's a 2 layer board 2011-11-29T23:32:34 < Tom_itx> absolutely 2011-11-29T23:32:44 < Tom_itx> and bga generally takes multiple layers 2011-11-29T23:32:49 < Tom_itx> due to the density 2011-11-29T23:33:05 < Tom_itx> there are various types of vias 2011-11-29T23:33:09 < dekar_> so they fill them up so you can solder the BGA on top? 2011-11-29T23:33:10 < Tom_itx> some are hidden etc 2011-11-29T23:33:36 < Tom_itx> it depends on the designer how the bga footprint is done 2011-11-29T23:35:18 < Tom_itx> have you ever made a board? 2011-11-29T23:40:15 < dekar_> nope 2011-11-29T23:40:26 < dekar_> will probably do that at one point 2011-11-29T23:40:38 < dekar_> just to learn more about it --- Day changed Wed Nov 30 2011 2011-11-30T00:31:15 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 260 seconds] 2011-11-30T00:47:39 < Tom_itx> download eagle and look it over 2011-11-30T01:01:49 < dekar_> no waii 2011-11-30T01:02:07 < dekar_> I'd rather use kicad or altium 2011-11-30T01:02:16 < dekar_> don't feel like learning eagle 2011-11-30T01:02:37 < dekar_> our company just bought an altium license anyway 2011-11-30T01:07:56 < Laurenceb_> often the vias are offset 2011-11-30T01:07:59 < Laurenceb_> on bga 2011-11-30T01:08:19 -!- cwoodall [~cwoodall@161-35-41-155-wireless1x.bu.edu] has quit [Read error: Operation timed out] 2011-11-30T01:33:15 -!- dekar_ [~dekar@drms-590cfee3.pool.mediaWays.net] has quit [Ping timeout: 244 seconds] 2011-11-30T01:47:45 < karlp> I'm using a 32L, which is meant to startup in with the MSI being sysclock. I've got my own startup code and linker script, which seem to work, and I'm completely leaving out _all_ clock setup, 2011-11-30T01:48:05 < karlp> so I thought I _should_ be getting it to run at ~2Mhz, the default reset range of the MSI 2011-11-30T01:48:13 < karlp> but it seems to still be running on the HSI? 2011-11-30T01:48:41 < karlp> hah, rubber duck effect 2011-11-30T01:48:55 < karlp> seems that simpyl reflashing and swd reset isn't the same as power cycle reset 2011-11-30T01:49:02 < karlp> let's backtrack a few steps... 2011-11-30T01:58:36 < Laurenceb_> yeah thats confused me 2011-11-30T01:59:02 < Laurenceb_> is there a difference between target extended-remote and tar ext in gdb? 2011-11-30T01:59:30 < Laurenceb_> or is that just the same thing? 2011-11-30T01:59:38 * Laurenceb_ is getting confused by gdb tutorials 2011-11-30T02:01:26 < karlp> same thing 2011-11-30T02:01:44 < Laurenceb_> ah 2011-11-30T02:01:53 < Laurenceb_> so it seems reset line isnt supported 2011-11-30T02:02:17 < Laurenceb_> from stlink 2011-11-30T02:02:33 < AK6L> are you guys using github.com/texane/stlink to connect gdb to an st-link based stm32 dev board? 2011-11-30T02:02:44 < AK6L> i'm curious how to do a reset from gdb, too. 2011-11-30T02:03:00 < AK6L> 'monitor reset' doesn't work (but you probably knew that) 2011-11-30T02:03:58 < Laurenceb_> i dont understand monitor at all 2011-11-30T02:04:03 < Laurenceb_> how do you use it? 2011-11-30T02:05:11 < AK6L> Laurenceb_: as i gather, it just passes commands unmolested to the remote target 2011-11-30T02:05:17 < AK6L> in this case, the st-util daemon 2011-11-30T02:05:40 < Laurenceb_> ah 2011-11-30T02:05:46 < Laurenceb_> so what 2011-11-30T02:05:56 < Laurenceb_> monitor ? 2011-11-30T02:06:02 < AK6L> i looked at the st-util code and if it gets an 'R' command, it will reset the board 2011-11-30T02:06:17 < AK6L> but all of the 'monitor foo' commands from gdb appear to come through as qCmd,foo or something 2011-11-30T02:06:35 < AK6L> Laurenceb_: i don't think 'monitor' is useful with texane's stlink, is what i'm getting at 2011-11-30T02:07:13 < AK6L> hell, i'll just email the author. 2011-11-30T02:07:31 < Laurenceb_> oh 2011-11-30T02:07:45 < Laurenceb_> i thought monitor changed how gdb handled data 2011-11-30T02:07:58 < Laurenceb_> so it didnt have to halt the processor to read 2011-11-30T02:08:15 < karlp> monitor only works with mine or peabody's current master 2011-11-30T02:08:22 < karlp> it hasn't gone back to texane yet. 2011-11-30T02:08:53 < karlp> monitor reset and monitor resume work in those two branches 2011-11-30T02:09:01 < Laurenceb_> right 2011-11-30T02:09:07 < karlp> kill should do a reset. 2011-11-30T02:09:08 < Laurenceb_> so what does monitor reset do? 2011-11-30T02:09:22 < karlp> I believe that's in the top level readme. 2011-11-30T02:09:26 < Laurenceb_> ok 2011-11-30T02:09:31 < AK6L> karlp: aaaah. 2011-11-30T02:09:32 < karlp> I'm still learning monitor stuff in gdb 2011-11-30T02:09:36 < Laurenceb_> me too 2011-11-30T02:09:43 < AK6L> karlp: does yours work with stlink/v2? 2011-11-30T02:09:47 < Laurenceb_> guess i should shut up and grab my discovery :P 2011-11-30T02:10:00 < AK6L> i'm trying to get a Forth implementation working on an STM32F4 Discovery board. 2011-11-30T02:10:18 < karlp> colour forth? or regular insanity forth? 2011-11-30T02:10:29 < karlp> I have a 32L board, which is stlinkv2, so it should work. 2011-11-30T02:10:39 < karlp> peabody who wrote the monitor stuff has an F4 iirc 2011-11-30T02:10:41 < AK6L> karlp: http://pygmy.utoh.org/riscy/ 2011-11-30T02:11:06 < AK6L> that's what i'm trying to 'port', if changing memory address constants can really be said to be a port :) 2011-11-30T02:11:30 < AK6L> karlp: cool, got a URL for your version? 2011-11-30T02:11:42 < karlp> github.com/karlp/stlink 2011-11-30T02:11:53 < AK6L> cool, thanks, i'll try that out this evening. 2011-11-30T02:12:08 < karlp> don't suppose you know much about the startup clocks on these things? 2011-11-30T02:12:18 < karlp> if I explicitly set the HSI clock, it works, 2011-11-30T02:12:38 < karlp> if I don't set any clock, it seems to not do anything, despite allegedly running from the MSI clock if nothing is set 2011-11-30T02:13:00 < AK6L> karlp: my experience with ARM and STM32 extends only to what i've read in the datasheets and programming manuals for this Forth port project :/ 2011-11-30T02:16:00 < karlp> have you got the five minute answer for why I should even look at forth? 2011-11-30T02:16:06 < karlp> sorry, 2011-11-30T02:16:17 < karlp> have you got the time to give me a five minute answer why I should look at forth 2011-11-30T02:16:33 < AK6L> heh, sure 2011-11-30T02:16:45 < AK6L> it can be handy to try things out and get immediate feedback 2011-11-30T02:17:27 < AK6L> it lets you build very, very small pieces of code, prove they work, and then build pieces of code that just call those proven-working ones 2011-11-30T02:17:58 < AK6L> it's very simple so it is - in theory - very quick for board bringup 2011-11-30T02:18:22 < AK6L> i'm a hobbyist, not a professional EE, so i've spent longer on this port than someone who really knew what they were doing, would have 2011-11-30T02:19:20 < AK6L> if you ever did PEEK and POKE on an apple ][, and used an HP RPN calculator (and enjoyed it), forth is probably a natural step 2011-11-30T02:19:29 < AK6L> if those things sound awful to you, then it probably isn't :) 2011-11-30T02:20:40 < karlp> fair enough :) 2011-11-30T02:21:10 < AK6L> i enjoy it, and i have a friend who does some embedded work and loves forth so i have help when i need it 2011-11-30T02:21:39 < AK6L> and once the !$!#@ thing is running, it is actually a lot faster to do prototyping than a compile-flash-test cycle with C or whatever 2011-11-30T02:26:55 -!- Laurenceb_ [~Laurence@host86-179-81-204.range86-179.btcentralplus.com] has quit [Ping timeout: 248 seconds] 2011-11-30T02:30:26 < karlp> huh, I have to have HSI _on_ but not necessarily in use to be able to use the MSI? 2011-11-30T02:30:32 < karlp> I'm sure somethign else is busted here... 2011-11-30T02:39:11 < karlp> anyone know what I'm likely to be missing here: http://pastebin.com/djMcE2pS 2011-11-30T02:39:34 < karlp> if I turn on the HSI, it boots and runs with the MSI, as configured on line 28 2011-11-30T02:39:53 < karlp> I can later read the clock source registers and blink different things based on the source. 2011-11-30T02:40:10 < karlp> likewise if I change the ifdefs to actually use the HSI, I gget the proper HSI. 2011-11-30T02:40:22 < karlp> but if I don't turn on HSI, it never starts at all. 2011-11-30T02:56:14 -!- Ear [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has joined ##stm32 2011-11-30T02:56:39 -!- Ear is now known as Guest63123 2011-11-30T02:57:59 -!- peabody124 [~peabody12@128.249.96.123] has quit [Quit: peabody124] 2011-11-30T02:58:09 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has quit [Ping timeout: 244 seconds] 2011-11-30T03:19:19 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has quit [] 2011-11-30T03:31:03 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-30T04:08:49 -!- cwoodall [~cwoodall@40-62-41-155-wireless1x.bu.edu] has joined ##stm32 2011-11-30T04:31:40 < jnosky> I dont think reset works right either 2011-11-30T04:31:56 < jnosky> Its just not the same as pushing the button 2011-11-30T04:32:20 < jnosky> Mine usually hangs in the clk starting up somewhere 2011-11-30T04:33:00 < jnosky> I tried jumping to reset to, same results 2011-11-30T04:33:28 < jnosky> We talking the other day of this, upload new code, and it doesnt allways run 2011-11-30T04:33:46 < jnosky> Wher it runs just fine from a hard POR 2011-11-30T04:34:04 < jnosky> I wonder if theres some jtag that could be dont to correct that 2011-11-30T04:34:38 < Tom_itx> if it's anything like an avr, jumping doesn't reset the registers however a wdt reset would 2011-11-30T04:35:03 < Tom_itx> POR, everything is in a known state 2011-11-30T04:35:19 < Tom_itx> a jmp wouldn't do that 2011-11-30T04:35:39 < jnosky> Well I didnt think it would really work any better, I was just giving it a shot 2011-11-30T04:35:50 < jnosky> Since the stlink reset clearly aint hard enuf 2011-11-30T04:36:25 < jnosky> But since the stlink is just a jtag shell, there should be some kinda better way 2011-11-30T04:37:05 < jnosky> "kill" doesnt seem to be so hard either 2011-11-30T04:37:35 < jnosky> Ive gotten in the habit of just pushing the button after I upload 2011-11-30T04:37:57 < jnosky> But thats not real clean for debugging src in eclipse 2011-11-30T04:39:25 < Tom_itx> are you looking for a software reset? 2011-11-30T04:39:47 < Tom_itx> 5.1.1 says WWDG will do a system reset 2011-11-30T04:39:54 < Tom_itx> low level on the NRST pin 2011-11-30T04:40:00 < jnosky> no I wanta reset hard, after I upload new code, by stlink 2011-11-30T04:40:09 < Tom_itx> pulse that pin then 2011-11-30T04:40:18 < jnosky> That might be worth a go 2011-11-30T04:40:27 < Tom_itx> it says it will 2011-11-30T04:41:11 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-30T04:41:14 < Tom_L> The SYSRESETREQ bit in Cortex™-M4F Application Interrupt and Reset Control Register 2011-11-30T04:41:15 < Tom_L> must be set to force a software reset on the device. Refer to the Cortex™-M4F technical 2011-11-30T04:41:15 < Tom_L> reference manual for more details 2011-11-30T04:41:25 < Tom_itx> software reset 2011-11-30T04:41:52 < jnosky> Ill have to take a look at how its currently done 2011-11-30T04:42:02 < jnosky> But maybe the NRST pin can be jtagged 2011-11-30T04:42:10 < Tom_itx> it mentions 5 ways to reset 2011-11-30T04:42:48 < Tom_itx> RM0090 P.82 2011-11-30T05:09:43 -!- Guest63123 [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has quit [Quit: OOOOOO Whats that....] 2011-11-30T05:09:51 -!- vasily__ [~happylife@46.251.83.126] has joined ##stm32 2011-11-30T05:10:02 -!- Eartaker [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has joined ##stm32 2011-11-30T05:10:02 -!- Eartaker [~Eartaker@c-67-185-76-100.hsd1.wa.comcast.net] has quit [Changing host] 2011-11-30T05:10:02 -!- Eartaker [~Eartaker@unaffiliated/eartaker] has joined ##stm32 2011-11-30T05:11:16 -!- vasily__ [~happylife@46.251.83.126] has quit [Read error: Connection reset by peer] 2011-11-30T05:11:35 -!- vpopov [~happylife@46.251.83.126] has joined ##stm32 2011-11-30T05:12:47 < Tom_itx> jnosky, also search for 'warm reset' 2011-11-30T05:13:05 < Tom_L> Also known as a core reset. Initializes the majority of the processor excluding the debug 2011-11-30T05:13:05 < Tom_L> controller and debug logic. This type of reset is useful if you are using the debugging features 2011-11-30T05:13:05 < Tom_L> of a processor 2011-11-30T05:15:52 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has quit [] 2011-11-30T05:17:34 -!- vpopov [~happylife@46.251.83.126] has quit [Ping timeout: 245 seconds] 2011-11-30T05:34:59 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2011-11-30T05:37:03 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-30T05:49:15 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2011-11-30T06:17:14 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-30T06:17:42 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Disconnected by services] 2011-11-30T06:17:54 -!- Tom_L is now known as Tom_itx 2011-11-30T06:20:10 -!- cwoodall [~cwoodall@40-62-41-155-wireless1x.bu.edu] has quit [Ping timeout: 244 seconds] 2011-11-30T07:41:49 -!- AaronM [~Aaron@adsl-74-226-119-171.mem.bellsouth.net] has joined ##stm32 2011-11-30T07:41:49 -!- AaronM [~Aaron@adsl-74-226-119-171.mem.bellsouth.net] has quit [Changing host] 2011-11-30T07:41:49 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has joined ##stm32 2011-11-30T07:45:19 -!- cwoodall [~cwoodall@wireless1x-168-122-2-79.bu.edu] has joined ##stm32 2011-11-30T07:52:58 -!- Thorn [~Thorn@unaffiliated/thorn] has joined ##stm32 2011-11-30T08:02:49 -!- AaronM [~Aaron@pdpc/supporter/student/aaronm] has quit [Remote host closed the connection] 2011-11-30T08:48:09 -!- Tom_L [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-30T08:51:19 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [Ping timeout: 245 seconds] 2011-11-30T08:52:27 -!- emeb [~ericb@ip72-223-86-178.ph.ph.cox.net] has quit [Quit: Leaving.] 2011-11-30T09:14:02 -!- cwoodall [~cwoodall@wireless1x-168-122-2-79.bu.edu] has quit [Read error: Operation timed out] 2011-11-30T09:14:26 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-30T09:53:05 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2011-11-30T11:01:10 -!- Laurenceb_ [~Laurence@host86-179-81-204.range86-179.btcentralplus.com] has joined ##stm32 2011-11-30T11:10:35 -!- Tom_L is now known as Tom_itx 2011-11-30T11:19:43 -!- Laurenceb_ [~Laurence@host86-179-81-204.range86-179.btcentralplus.com] has quit [Ping timeout: 248 seconds] 2011-11-30T11:56:14 < karlp> jnosky: not resetting the target after programming was a bug that peabody fixed, 2011-11-30T11:56:53 < karlp> I don't think it's related to what I was trying to understand with why it won't _keep_ running on the MSI, and requires the HSI for some reason 2011-11-30T11:58:31 -!- erik-k [~erik-k@71-34-249-33.eugn.qwest.net] has joined ##stm32 2011-11-30T11:59:07 < erik-k> Funny. I never did get printf() or atof() to work, but I wrote workarounds. Probably true that printf has "no place" on microcontrollers... 2011-11-30T12:19:47 < jpa-> it has place :) 2011-11-30T12:19:51 < jpa-> but floats don't ,) 2011-11-30T12:33:24 < karlp> sure it does! 2011-11-30T12:33:49 -!- jaeckel [~jaeckel@unaffiliated/jaeckel] has quit [Ping timeout: 240 seconds] 2011-11-30T12:58:39 -!- jaeckel [~jaeckel@unaffiliated/jaeckel] has joined ##stm32 2011-11-30T13:32:09 < _Shurik_> mornin'! 2011-11-30T13:44:46 < karlp> gmonring :) 2011-11-30T13:53:22 < _Shurik_> This is the earliest I've been up in ages 2011-11-30T13:53:40 < _Shurik_> 5am server transfer :-/ 2011-11-30T13:55:50 < Laurenceb> erik-k: use rprintf 2011-11-30T15:41:57 -!- zlog [~zlog@ip68-102-105-167.ks.ok.cox.net] has quit [Remote host closed the connection] 2011-11-30T15:42:00 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has quit [] 2011-11-30T15:43:28 -!- Tom_itx [~Tl@unaffiliated/toml/x-013812] has joined ##stm32 2011-11-30T15:43:33 -!- zlog [~zlog@ip68-102-105-167.ks.ok.cox.net] has joined ##stm32 2011-11-30T15:58:05 -!- jnosky [~foo@c-68-39-251-30.hsd1.nj.comcast.net] has quit [Ping timeout: 258 seconds] 2011-11-30T16:00:38 -!- cwoodall [~cwoodall@40-62-41-155-wireless1x.bu.edu] has joined ##stm32 2011-11-30T16:35:20 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-30T16:56:01 -!- cwoodall [~cwoodall@40-62-41-155-wireless1x.bu.edu] has quit [Ping timeout: 244 seconds] 2011-11-30T16:56:48 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has quit [Quit: peabody124] 2011-11-30T16:57:54 -!- peabody124 [~peabody12@c-98-201-161-152.hsd1.tx.comcast.net] has joined ##stm32 2011-11-30T17:27:23 -!- jnosky [~foo@c-68-39-251-30.hsd1.nj.comcast.net] has joined ##stm32 2011-11-30T17:56:57 < AK6L> hrm 2011-11-30T17:57:21 -!- emeb [~ericb@ip72-223-86-178.ph.ph.cox.net] has joined ##stm32 2011-11-30T17:57:56 < AK6L> karlp: ever seen this before: http://pastebin.com/hqdYSvhk 2011-11-30T17:58:28 < AK6L> flashed a simple led blinker program into my stm32f4 discovery board last night a few times, and suddenly it stops being able to write 2011-11-30T18:07:17 < karlp> someoen said they had a mmap file problem once before, 2011-11-30T18:07:21 < karlp> but cleaning and rebuilding should fix it, 2011-11-30T18:07:29 < karlp> it seems to be more of an OS locking on the file than an stlink problem 2011-11-30T18:07:32 < karlp> I've never seen it personally 2011-11-30T18:07:53 < AK6L> hmm, ok. 2011-11-30T18:08:07 < AK6L> not sure that's what this is; seems like a problem talking to the stlink 2011-11-30T18:08:13 < AK6L> or the stlink is having trouble talking to the chip 2011-11-30T18:08:44 < AK6L> (unknown chip id 0) 2011-11-30T18:09:00 < AK6L> but the map file error is interesting, i guess i wasn't paying attention to that 2011-11-30T18:12:53 < karlp> stutil should probably _abort_ rather than attempt to continue if the mmap fails :) 2011-11-30T18:12:56 < karlp> that's more the problem. 2011-11-30T18:13:01 < karlp> are you on windows by anychance? 2011-11-30T18:13:05 < AK6L> ubuntu. 2011-11-30T18:13:16 < AK6L> was going to go try one of ST's windows utilities. 2011-11-30T18:13:33 < karlp> ok, there's a patch in the tree that replaces the mmap with open/read because mmap apparently isn't as portable, even if it somewhat higher performance 2011-11-30T18:14:07 < karlp> unknown chipid is pretty busted too. 2011-11-30T18:14:13 < karlp> especially if it says unlocked flash 2011-11-30T18:14:21 < karlp> it should probably abort if it gets unknown chipid too, 2011-11-30T18:14:28 < karlp> there's no real point in attempting to continue. 2011-11-30T18:14:52 < karlp> you can file them as tickets on texane's github issue list, they'll get looked at by someone. 2011-11-30T18:15:26 < karlp> you shouldn't need sudo for the flash write operation, 2011-11-30T18:15:42 < karlp> well, if you put in the udev rules 2011-11-30T18:16:26 < AK6L> thought udev rules weren't needed for stlink/v2? 2011-11-30T18:16:39 < AK6L> since it's a usb endpoint, not a scsi generic 2011-11-30T18:17:51 < karlp> modprobe rules arne't needed (to tell linux to ignore the scsi device) 2011-11-30T18:18:05 < karlp> but ubuntu at least still restricts user access to usb devices 2011-11-30T18:18:10 < karlp> that's what the udev rules are for. 2011-11-30T18:18:29 < karlp> also, if they weren't needed, you would have needed the sudo you were doing yourself ;) 2011-11-30T18:40:40 -!- cwoodall [~cwoodall@40-62-41-155-wireless1x.bu.edu] has joined ##stm32 2011-11-30T18:55:11 -!- cwoodall [~cwoodall@40-62-41-155-wireless1x.bu.edu] has quit [Ping timeout: 248 seconds] 2011-11-30T19:32:08 < Thorn> http://ohmart.org/ 2011-11-30T19:44:55 < jpa-> if only they were presented in a readable form :/ 2011-11-30T19:47:19 -!- vpopov [~happylife@149.62.3.49] has joined ##stm32 2011-11-30T19:49:22 < Thorn> someone spent a lot of time programming that flash gallery 2011-11-30T19:51:17 < _Shurik_> Hahaha 2011-11-30T20:26:03 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has joined ##stm32 2011-11-30T20:26:03 -!- mode/##stm32 [+v Steffanx] by ChanServ 2011-11-30T20:54:59 -!- Laurenceb_ [~Laurence@host86-179-81-204.range86-179.btcentralplus.com] has joined ##stm32 2011-11-30T20:58:29 <+Steffanx> So.. I read you fixed your usb problems Laurenceb_ ? 2011-11-30T20:59:08 < Laurenceb_> yeah, works nicely now 2011-11-30T20:59:21 <+Steffanx> You're not going to share your code do you? :) 2011-11-30T20:59:46 <+Steffanx> are 2011-11-30T21:00:40 < Laurenceb_> https://github.com/Laurenceb/STM32-Logger 2011-11-30T21:00:47 <+Steffanx> Oh :) 2011-11-30T21:00:50 <+Steffanx> You're fatnastic 2011-11-30T21:00:59 < Laurenceb_> file write for datalogging is still a bit buggy 2011-11-30T21:01:03 < Laurenceb_> heh 2011-11-30T21:02:16 < Laurenceb_> has anyone used fatFS ? 2011-11-30T21:03:03 < karlp> I have, on AVR, 2011-11-30T21:03:09 < karlp> picofs to, 2011-11-30T21:03:18 <+Steffanx> What kind of speed do you get Laurenceb 2011-11-30T21:03:30 <+Steffanx> (I missed that part .. and i'm to lazy to read the log) 2011-11-30T21:03:58 < karlp> I had problems mounting occasionally, but not normally with the writing, 2011-11-30T21:04:04 < Laurenceb_> Steffanx: only 600kb :( 2011-11-30T21:04:07 < Laurenceb_> KB/s 2011-11-30T21:04:10 < karlp> but I was downloading a file over http and writing it all in one piece. 2011-11-30T21:04:23 < Laurenceb_> seems to be limited by USB2 12Mbps 2011-11-30T21:04:32 <+Steffanx> 600 is pretty ok.. imho 2011-11-30T21:04:33 < Laurenceb_> and protocol overhead 2011-11-30T21:04:46 <+Steffanx> Oh, it's FS :) 2011-11-30T21:04:48 < Laurenceb_> theoretically 1.5MB/s should be possible 2011-11-30T21:04:54 < Laurenceb_> if USB was perfect 2011-11-30T21:05:13 < Laurenceb_> karlp: im using 'cluster pre-allocation' 2011-11-30T21:05:23 < Laurenceb_> supposedly that increased speed 2011-11-30T21:05:42 < Laurenceb_> but my file is always truncated to the pre-allocated size 2011-11-30T21:06:23 < Laurenceb_> so i have to f_sync or something? or close then truncate? 2011-11-30T21:06:35 < Laurenceb_> atm i truncate then close 2011-11-30T21:07:22 < Laurenceb_> "The f_sync function performs the same process as f_close function but the file is left opened" 2011-11-30T21:07:29 * Laurenceb_ is double confused 2011-11-30T21:07:55 < Laurenceb_> i see data thats clearly not correctly synced after i call my close function 2011-11-30T21:15:55 < Laurenceb_> https://github.com/Laurenceb/STM32-Logger/blob/master/Util/fat_fs/src/ff.c#L3886 2011-11-30T21:16:13 < Laurenceb_> ^nice, didnt know it has a printf implementation 2011-11-30T21:16:40 < karlp> it's one of the things you can disable in the config isn't it? 2011-11-30T21:17:25 < Laurenceb_> yeah 2011-11-30T21:17:40 < Laurenceb_> i have my own printf based on pascal stangs code 2011-11-30T21:23:24 < Laurenceb_> hmm looks like im doing it correctly? 2011-11-30T21:23:45 < Laurenceb_> lseek to 1000000, lseek to 0, write data, truncate and close 2011-11-30T21:24:02 < Laurenceb_> maybe truncate followed by close is wrong? 2011-11-30T21:24:11 < Laurenceb_> should i sync, truncate, then close? 2011-11-30T21:24:43 < Laurenceb_> atm my file is missing the last data, and is truncated to 1000000 2011-11-30T22:13:05 <+Steffanx> Are you using spi btw? 2011-11-30T22:13:13 <+Steffanx> Or the dedicated sd interface? 2011-11-30T22:46:37 -!- phantoxe [~destroy@a95-92-89-24.cpe.netcabo.pt] has joined ##stm32 2011-11-30T23:00:00 -!- Laurenceb_ [~Laurence@host86-179-81-204.range86-179.btcentralplus.com] has quit [Ping timeout: 244 seconds] 2011-11-30T23:11:07 -!- Steffanx [~Steffanx@ip4da726ae.direct-adsl.nl] has quit [Ping timeout: 244 seconds] 2011-11-30T23:16:25 -!- vpopov [~happylife@149.62.3.49] has quit [Ping timeout: 260 seconds] 2011-11-30T23:55:09 -!- Laurenceb_ [~Laurence@host86-174-22-129.range86-174.btcentralplus.com] has joined ##stm32 --- Log closed Thu Dec 01 00:00:36 2011