I have reviewed the latest OpenOCD code. IMO, below should be considered.
1. add transport information to targets indicating which debug transport supported For example, LPC2148 supports JTAG, and STM32 supports both JTAG and SWD. So that, code can check the usability of the current selected transport. Target configuration should call different scripts in different mode. 2. remove target reset control and sleep control in JTAG moudle. Target reset control should be valid for other debugging transprots, so is sleep control. Or add similar target reset control and sleep control in SWD module. 3. In some target support code, swd should be added cortex_a.c in cortex_a8_init_arch_info: jtag_tap is the parameter. cortex_m3.c(mayebe changed to cortex_m.c) in cortex_m3_init_arch_info: jtag_tap is the parameter. stellaris.c In COMMAND_HANDLER(stellaris_handle_recover_command): jtag_execute_queue is called with out checking current transport. 4. Add SWD drivers, this should be the libswd. And call SWD drivers in adi_v5_swd. -- Best Regards, SimonQian http://www.SimonQian.com
_______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
