Hi Uwe, Am 01.03.2015 um 14:25 schrieb Uwe Bonnes: > I am trying to get Openocd running with a Silab EFM32 Tiny Gecko board I got > some time ago. The board has some of the Silab demo programm applied, > probably using WFI in the Idle loop. > > Modifying Andreas Faerbers recently submitted xmc-2go.cfg accordingly for > the efm32, I got openocd started and I can connect to the board. However > reset is needed, as a "undefined debug reason 7 - target needs reset" is > displayed. Emitting "mon reset halt" however gives > "Polling target efm32.cpu failed, GDB will be halted. Polling again in ..." > in a loop. Using "reset_config none" lets me also connect, with the same > "undefined debug reason 7 - target needs reset" message. However after "mon > reset halt" the CPU is halted as expected. > > So why use "reset_config srst_only srst_nogate" and not "reset_config none"?
The xmc-2go.cfg was a fairly recent submission; on an earlier xmc1000 config in that series Paul outlined for me what to check: 'I guess this is likely to have hardware reset routed properly, so please add "reset_config srst_only". If it's known the chip can talk over swd while the reset is held, reset_config srst_nogate should be added to the target config too.' http://openocd.zylin.com/#/c/2472/ Unfortunately I don't have any efm32 board, and there doesn't seem to be any board config referencing efm32.cfg yet. Cheers, Andreas -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu, Graham Norton; HRB 21284 (AG Nürnberg) ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel