)]}'
{"src/jtag/drivers/ftdi.c":[{"author":{"_account_id":1000203,"name":"Jörg Fischer","email":"turboj@gmx.de","username":"turboj"},"change_message_id":"c059a7f933683afd14972c9a1aa4703c97df170a","unresolved":false,"context_lines":[{"line_number":630,"context_line":"\t\t\t */"},{"line_number":631,"context_line":"\t\t\t0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f,"},{"line_number":632,"context_line":"\t\t};"},{"line_number":633,"context_line":""},{"line_number":634,"context_line":"\t\tmpsse_clock_data_out(mpsse_ctx, jtag2swd_bitseq, 0, sizeof(jtag2swd_bitseq) * 8, SWD_MODE);"},{"line_number":635,"context_line":"\t\tLOG_INFO(\"JTAG-\u003eSWD\");"},{"line_number":636,"context_line":"\t}"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"a45ca836_509ee2b7","line":633,"updated":"2014-02-24 16:54:48.000000000","message":"You may want to call ftdi_swd_swdio_en(1); here - some FTDI layouts come up with TRST in tristate and the switch to SWD mode fails.","commit_id":"5b3885fd03eb1ad3a8784aca4c69629046638ac4"},{"author":{"_account_id":1000005,"name":"Andreas Fritiofson","email":"andreas.fritiofson@gmail.com","username":"Nattgris"},"change_message_id":"240c995f2ab4115fd239f48f1b03e8fe921d4082","unresolved":false,"context_lines":[{"line_number":647,"context_line":"\tif (swd_mode)"},{"line_number":648,"context_line":"\t\tftdi_swd_switch_seq(NULL, JTAG_TO_SWD);"},{"line_number":649,"context_line":"\telse"},{"line_number":650,"context_line":"\t\tftdi_swd_switch_seq(NULL, SWD_TO_JTAG);"},{"line_number":651,"context_line":""},{"line_number":652,"context_line":"\treturn mpsse_flush(mpsse_ctx);"},{"line_number":653,"context_line":"}"}],"source_content_type":"text/x-csrc","patch_set":5,"id":"c438bcff_0308502d","line":650,"updated":"2014-05-15 19:52:54.000000000","message":"This is not functional. In swd_mode, the buffer will probably be configured differently, so the SWD-\u003eJTAG sequence will be sent on the wrong pins. So now the target has to be restarted if you want to switch from SWD to JTAG.\n\nI\u0027ve played with initializing the pins in swd mode first, sending the seq and then reinit the pins to jtag mode. Didn\u0027t work for some reason. Maybe the sequence itself doesn\u0027t work, although it looks according to spec on the scope.\n\nI\u0027m not even sure if the driver should send these sequences itself on init, or if it should be handled by something else.","commit_id":"33369ecae847251aff362bc38ccf039110e0814b"}]}
