**** BEGIN LOGGING AT Wed May 02 02:59:56 2007 May 02 11:51:17 <[g2]> http://www.sparkfun.com/commerce/product_info.php?products_id=8307# looks fun :) May 02 12:30:20 hey [g2] May 02 12:30:28 yeah, just another FT2232 based dongle afaik May 02 12:30:52 but that guy also has his own debugging software May 02 12:44:02 <[g2]> drath, it's supposed to run with openocd May 02 12:48:28 yeah, if he's using one of the included FT2232 pin configurations this should be no problem May 02 15:22:11 Hey, drath May 02 15:26:09 hey xela May 02 15:26:13 sorry, been a bit busy last week May 02 15:26:19 no problem May 02 15:26:47 seems like we still have the STR750 flash error issue May 02 15:26:58 only every other flash works without error May 02 15:27:22 (jtag-tiny/jtag-amontec plus target and REva hardware) May 02 15:28:43 you don't happen to have a backlog of our irc session? May 02 15:29:21 na May 02 15:29:33 hoped some daemon would log them :-( May 02 15:29:48 cause i found some transcripts on the internet May 02 15:29:53 iirc it was something about the algorithm timing out, because the PC goes off into the weeds May 02 15:29:59 ah, sure May 02 15:30:09 purl logs everything May 02 15:32:20 yea May 02 15:36:22 the guys from Raisonance state the JTAG timing for the STR750 is different May 02 15:36:33 dont know whether that may be the reason May 02 15:37:09 hmm, the STR750 is a -S core, which either requires the use of RTCK (not possible with the FT2232) or a jtag frequency of less than 1/6th of the CPU May 02 15:37:27 ah ok May 02 15:42:52 drath: http://purl.rikers.org/%23openjtag/20070321.html.gz May 02 15:42:58 :-) May 02 15:55:24 yeah, I downloaded the logs and grepped through them May 02 15:55:33 problem is I don't know what else to check May 02 15:55:50 maybe i debug direct in openocd? May 02 15:56:07 is it failing exactly every other try? May 02 15:56:12 yep May 02 15:56:39 what's your current reset_config? May 02 15:57:26 trst_and_srst srst_pulls_trst May 02 15:58:17 could you try without srst_pulls_trst, and issue a "reset halt" May 02 15:58:22 with the latest SVN revision May 02 15:58:40 i've changed something that might allow debug out of reset on the str750 May 02 15:59:09 is there a nightly build? May 02 16:00:03 are you on linux or on windows? May 02 16:00:20 windows here May 02 16:01:57 the necessary change is already in r141 available from yagarto May 02 16:03:16 ah ok May 02 16:03:35 Open On-Chip Debugger (2007-04-16 19:30 CEST) May 02 16:03:37 ? May 02 16:04:07 yeah, i think so May 02 16:05:29 reset halt May 02 16:05:32 seems to work May 02 16:05:44 it halted at 0x0? May 02 16:06:02 try another "poll" to be sure it's not running May 02 16:06:19 nope May 02 16:06:41 > poll May 02 16:06:42 target state: running May 02 16:06:47 :-( May 02 16:08:07 do you have use for a Olimex STR-750-STK board? May 02 16:11:18 heh, limited - i already have several olimex boards i use to test the OpenOCD, but other than that i have little time to do anything with them May 02 16:30:03 nothing wrong with testing May 02 16:30:28 wouldnt it be nice to have an automatic test suite that runs all kind of tests on different hardware? May 02 16:32:33 well, just dreaming May 02 16:32:38 heh, we've got test-monkeys^Wusers for that ;) May 02 16:32:43 :-) May 02 16:32:47 so true May 02 16:34:08 when you tried the reset halt, was the target running or halted? May 02 16:34:32 hm May 02 16:34:37 i would say running May 02 16:34:52 could you try again? it wont work if the target is halted May 02 16:35:04 and make sure you haven't got "srst_pulls_trst" in the .cfg May 02 16:35:21 just tried it on a STR912, and it's working fine here May 02 16:35:41 Open On-Chip Debugger May 02 16:35:42 > resume May 02 16:35:44 Target 0 resumed May 02 16:35:45 > poll May 02 16:35:47 target state: running May 02 16:35:48 > reset halt May 02 16:35:50 > poll May 02 16:35:52 target state: running May 02 16:35:53 > May 02 16:36:23 hmm, ok, it isn't working :/ May 02 16:36:57 the idea was that there might be something in your application that interferes with the flashing May 02 16:37:04 that would explain why it works every other time May 02 16:37:14 after it failed, the board is basically uninitialized, and flashing works May 02 16:37:50 hm May 02 16:38:05 thought while flashing jtag has "total" control May 02 16:38:11 no interrupts or such May 02 16:38:17 so no app code should be running May 02 16:38:34 (i am stating a soft_reset_halt before every flash) May 02 16:38:36 hmm, yeah, but the PLL for example got initialized May 02 16:38:42 or a watchdog programmed May 02 16:38:46 thats true May 02 16:38:49 true as well May 02 16:38:54 and the flash algorithm runs as normal code May 02 16:38:57 the watchdog is programmed for sure May 02 16:38:58 to the core there's no difference May 02 16:39:01 it is? May 02 16:39:03 sure May 02 16:39:19 is it possible to disarm the watchdog on the STR750? May 02 16:39:20 seems to explain a lot, huh? May 02 16:41:25 just looked it up in the STR75x library code May 02 16:41:38 but this only enabled the watchdog May 02 16:41:44 I can look it up May 02 16:41:52 (will be away for an hour) May 02 16:42:34 hmm, the manual says you can't disable it after it was enabled May 02 16:43:35 you might be able to work around this by erasing first, then issuing a reset run_and_halt, and then writing May 02 16:43:41 this should disable the watchdog May 02 16:43:47 true May 02 16:43:50 good idea May 02 17:15:32 another bad one: May 02 17:15:40 we have an app and a bootloader May 02 17:16:01 and ideally i want to flash only the app May 02 17:16:13 but the bootloader activates the watchdog already :-( May 02 17:19:20 but what about soft_reset_and_halt? May 02 17:19:27 watchdog still enabled? May 02 17:30:40 drath: you still there? May 02 18:07:57 xela: re May 02 18:08:08 yea May 02 18:08:12 soft_reset_halt only resets the core May 02 18:08:17 i am trying a workaound now. May 02 18:08:20 or rather simulates that May 02 18:08:35 i.e. it loads the pc with 0x0, cpsr with svc etc. May 02 18:08:36 added a non initialized memory cell for the bootloader May 02 18:08:51 if a magic in there is set i dont initialize watchdog May 02 18:10:45 hm May 02 18:10:49 i am using this in a script May 02 18:10:57 but command seem to be asynchronous May 02 18:11:00 script: May 02 18:11:22 halt May 02 18:11:24 # Magic-Wert schaltet Watchdog im Bootloader ab May 02 18:11:25 mww 0x40000010 0xfeede5e1 May 02 18:11:27 reset May 02 18:11:28 halt May 02 18:11:30 flash protect 0 0 2 off May 02 18:11:31 flash erase 0 0 2 May 02 18:11:33 flash write 0 ..\boot\source\output\boot-0.bin 0 May 02 18:11:34 flash protect 0 8 9 off May 02 18:11:36 flash erase 0 8 9 May 02 18:11:37 flash write 0 ..\boot\source\output\boot-1.bin 0xc0000 May 02 18:11:39 soft_reset_halt May 02 18:11:45 use a wait_halt after the halt May 02 18:11:53 to ensure the target is really halted May 02 18:13:56 flash write 0 ..\app\source\output\app-crc.bin 0x6000 May 02 18:13:58 failed writing file ..\app\source\output\app-crc.bin to flash bank 0 at offset 0x00006000 May 02 18:13:59 flash program error May 02 18:14:01 soft_reset_halt May 02 18:14:02 :-( May 02 18:14:05 didnt improve things May 02 18:15:57 yeah, soft_reset_halt really doesn't change anything May 02 18:16:02 it just sets core registers May 02 18:16:07 but doesn't affect the peripherals May 02 18:17:24 yea May 02 18:17:36 i just changed the app flash script a bit: May 02 18:17:43 1. halt and set magic word May 02 18:18:00 2. erase app area May 02 18:18:04 3. reset and wait May 02 18:18:17 4. flash (now without watchdog hopefully) May 02 18:26:21 hmm, looks better now May 02 18:26:24 way better! May 02 18:29:43 heh, cool May 02 18:30:05 and the watchdog isnt set anymore May 02 18:30:14 wish one could disable the watchdog May 02 18:30:29 ok May 02 18:30:35 will be gone for today May 02 18:30:47 and again: thanks a lot for your help! its very appreciated! May 02 18:31:04 gonna talk about the checksum/crc topic sometime soon? May 02 18:31:29 sure, just ping me here May 02 18:31:37 i'll try to answer ;) May 02 21:03:02 I see many of the usual suspects are here ;) May 02 21:14:33 if y'all insist on talking at once, I'm gonna have to increase my history length to more than 2 lines May 02 21:19:45 heh, hi May 02 21:19:59 it's been a bit quiet here lately May 02 21:22:24 hmmm ... sound configuration is screwed on this box.. hi drath **** ENDING LOGGING AT Thu May 03 02:59:56 2007