I have an Energy Micro EFM32 Gecko board in my hands at the moment that provides a SWD debug interface (no JTAG). With some level of SWD support now available in OpenOCD, I was a little curious how much effort it would take to bridge this over to the EFM32 evaluator with its onboard jlink.
To that end I made some initial test modifications to the jlink driver code and created an initial configuration file based on the LPC1768 as a starting point. Needless to say I didnĀ¹t get very far: Jupiter:build garycarlson$ openocd -d3 -f jlink.cfg -f efm32.cfg Open On-Chip Debugger 0.6.0-dev-00032-g8ff6097 (2011-08-15-22:48) Licensed under GNU GPL v2 For bug reports, read http://openocd.berlios.de/doc/doxygen/bugs.html User : 11 43 command.c:557 command_print(): debug_level: 3 Debug: 12 43 configuration.c:45 add_script_search_dir(): adding /Users/garycarlson/.openocd Debug: 13 43 configuration.c:45 add_script_search_dir(): adding /usr/local/share/openocd/site Debug: 14 43 configuration.c:45 add_script_search_dir(): adding /usr/local/share/openocd/scripts Debug: 15 43 configuration.c:87 find_file(): found jlink.cfg Debug: 16 43 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_interface jlink Debug: 17 43 command.c:151 script_debug(): command - interface ocd_interface jlink Debug: 19 43 command.c:364 register_command_handler(): registering 'ocd_jlink'... Debug: 20 44 command.c:364 register_command_handler(): registering 'ocd_jlink'... Debug: 21 44 command.c:364 register_command_handler(): registering 'ocd_jlink'... Debug: 22 44 command.c:364 register_command_handler(): registering 'ocd_jlink'... Debug: 23 44 command.c:364 register_command_handler(): registering 'ocd_jlink'... Debug: 24 44 command.c:364 register_command_handler(): registering 'ocd_jlink'... Debug: 25 44 command.c:364 register_command_handler(): registering 'ocd_jlink'... Debug: 26 44 command.c:364 register_command_handler(): registering 'ocd_jlink'... Debug: 27 44 command.c:364 register_command_handler(): registering 'ocd_jlink'... Debug: 28 45 command.c:364 register_command_handler(): registering 'ocd_jlink'... Debug: 29 45 command.c:364 register_command_handler(): registering 'ocd_jlink'... Warn : 30 45 transport.c:127 allow_transports(): must select a transport. Debug: 31 45 transport.c:129 allow_transports(): allow transport 'jtag' Debug: 32 45 transport.c:129 allow_transports(): allow transport 'swd' Debug: 33 45 configuration.c:87 find_file(): found efm32.cfg Debug: 34 45 command.c:151 script_debug(): command - ocd_command ocd_command type ocd_transport select swd Debug: 35 45 command.c:151 script_debug(): command - ocd_transport ocd_transport select swd Error: 36 45 target.c:435 get_current_target(): BUG: current_target out of bounds This looks like the same problem reported earlier this year by Simon Qian: http://comments.gmane.org/gmane.comp.debugging.openocd.devel/15548 It appears that select targets have successfully implemented SWD support, but I couldn't find any mention how this problem was resolved for those targets (if it was at all). I am starting to worry that what I was hoping to be a little swamp to drain might actually be a much larger one instead. Any thoughts or comments would be appreciated. Gary _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development