{"id":322800,"date":"2021-05-09T15:00:10","date_gmt":"2021-05-09T15:00:10","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=322800"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=322800","title":{"rendered":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0431\u044e\u0434\u0436\u0435\u0442\u043d\u044b\u0445 JTAG-\u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u043e\u0432 \u0432 PlatformIO"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0412 \u044d\u0442\u043e\u043c \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0435 \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u043b\u044c\u0442\u0440\u0430\u0431\u044e\u0434\u0436\u0435\u0442\u043d\u044b\u0435 JTAG-\u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0438 CJMCU FT232H \u0438 RV-Debugger-Lite \u0432 PlatformIO \u0434\u043b\u044f \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043d\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445 ESP32 \u0438 GD32. \u041f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b, \u0438 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441\u043e \u043c\u043d\u043e\u0433\u0438\u043c\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044d\u0442\u043e\u0442 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0437\u0434\u0435\u0441\u044c \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430. \u041e\u0433\u043e\u0432\u043e\u0440\u044e\u0441\u044c \u0441\u0440\u0430\u0437\u0443, \u0447\u0442\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0434\u043b\u044f Linux, \u043d\u043e \u0434\u043b\u044f Windows \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0437\u043d\u0438\u0446\u044b \u043d\u0435\u0442 \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0442\u0430\u043d\u0446\u0435\u0432 \u0441 Zadig.<\/p>\n<h2>CJMCU FT232H + ESR32 Rev1 aka ESP32Dev<\/h2>\n<p>\u0418\u043c\u0435\u0435\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0443 \u0432\u043e\u0442 \u044d\u0442\u043e\u0442 \u0434\u0435\u0431\u0430\u0433\u0433\u0435\u0440 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0447\u0438\u043f\u0430 FT232H:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7fc\/a78\/5b2\/7fca785b29ab01044520b368a3b3084e.jpg\" width=\"500\" height=\"500\"><figcaption><\/figcaption><\/figure>\n<p>\u0418 \u0432\u043e\u0442 \u044d\u0442\u0430 \u043f\u043b\u0430\u0442\u0430 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 ESP-WROOM-32:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/fab\/ce1\/66c\/fabce166c288cf13e30b0bc5b16be7de.png\" width=\"1024\" height=\"768\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 platformio.ini:<\/p>\n<pre><code class=\"cpp\">[env:esp32dev] platform = espressif32 framework = arduino board = esp32dev monitor_speed = 115200 upload_speed = 921600 debug_tool = minimodule upload_protocol = minimodule<\/code><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u0443 \u043d\u0430\u0441 CJMCU FT232H \u0437\u0430 700 \u0440\u0443\u0431\u043b\u0435\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043a\u0438\u0434\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u043e\u043c FT2232H MINI MODULE \u0437\u0430 4500. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u043d\u0435\u0441\u0442\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0444\u0430\u0439\u043b (\u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043c\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f \u0441 ##):<\/p>\n<blockquote>\n<p>\/home\/&lt;username&gt;\/.platformio\/packages\/tool-openocd-esp32\/share\/openocd\/scripts\/interface\/ftdi\/minimodule.cfg<\/p>\n<\/blockquote>\n<pre><code class=\"python\"># # FTDI MiniModule # # http:\/\/www.ftdichip.com\/Support\/Documents\/DataSheets\/Modules\/DS_FT2232H_Mini_Module.pdf #  interface ftdi ##ftdi_device_desc \"FT2232H MiniModule\" ##ftdi_vid_pid 0x0403 0x6010 ftdi_vid_pid 0x0403 0x6014  # Every pin set as high impedance except TCK, TDI, TDO and TMS ftdi_layout_init 0x0008 0x000b  # nSRST defined on pin CN2-13 of the MiniModule (pin ADBUS5 [AD5] on the FT2232H chip) # This choice is arbitrary. Use other GPIO pin if desired. ##ftdi_layout_signal nSRST -data 0x0020 -oe 0x0020  ## added # interface 1 is the uart ftdi_channel 0  reset_config none <\/code><\/pre>\n<p>\u041d\u0435\u043c\u0430\u043b\u043e\u0432\u0430\u0436\u043d\u043e \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0430 minimodule<code>\"ftdi_device_desc\", \u0438\u043d\u0430\u0447\u0435<\/code>CJMCU FT232H \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u043f\u0440\u0430\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u0430. \u0412 \u0442\u043e\u043c \u0436\u0435 \u0444\u0430\u0439\u043b\u0435 \u043c\u044b \u043c\u0435\u043d\u044f\u0435\u043c \u043f\u0430\u0440\u0443 VID\/PID, \u0438 \u0435\u0435 \u0436\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432:<\/p>\n<blockquote>\n<p>\/etc\/udev\/rules.d\/99-platformio-udev.rules<\/p>\n<\/blockquote>\n<pre><code class=\"bash\">SUBSYSTEM==\"usb\", ATTR{idVendor}==\"0403\", ATTR{idProduct}==\"6014\", GROUP=\"plugdev\", MODE=\"0666\"<\/code><\/pre>\n<p>\u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u043b\u0441\u044f. <\/p>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p><strong>\u0424\u0443\u043d\u043a\u0446\u0438\u044f JTAG<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"245\" width=\"245\">\n<p><strong>CJMCU FT232H<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>ESP32Dev<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TDO<\/p>\n<\/td>\n<td data-colwidth=\"245\" width=\"245\">\n<p>AD2<\/p>\n<\/td>\n<td>\n<p>GPIO15<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TDI<\/p>\n<\/td>\n<td data-colwidth=\"245\" width=\"245\">\n<p>AD1<\/p>\n<\/td>\n<td>\n<p>GPIO12<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TCK<\/p>\n<\/td>\n<td data-colwidth=\"245\" width=\"245\">\n<p>AD0<\/p>\n<\/td>\n<td>\n<p>GPIO13<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TMS<\/p>\n<\/td>\n<td data-colwidth=\"245\" width=\"245\">\n<p>AD3<\/p>\n<\/td>\n<td>\n<p>GPIO14<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<\/td>\n<td data-colwidth=\"245\" width=\"245\">\n<p>+3.3V<\/p>\n<\/td>\n<td>\n<p>3V3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<\/td>\n<td data-colwidth=\"245\" width=\"245\">\n<p>GND<\/p>\n<\/td>\n<td>\n<p>GND<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h3>CJMCU FT232H + Sipeed Longan Nano<\/h3>\n<p>\u0418\u043c\u0435\u0435\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0443 \u0432\u043e\u0442 \u0442\u0430\u043a\u0430\u044f \u0432\u043e\u0442 \u043f\u043b\u0430\u0442\u0430 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0447\u0438\u043f\u0430 GD32VF103CBT6:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1de\/37b\/575\/1de37b5750fe43dfc208859038d5fa5f.png\" width=\"960\" height=\"677\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 platformio.ini:<\/p>\n<pre><code class=\"cpp\">[env:sipeed-longan-nano] platform = gd32v framework = gd32vf103-sdk board = sipeed-longan-nano monitor_speed = 115200 debug_tool = um232h upload_protocol = um232h<\/code><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u0443 \u043d\u0430\u0441 CJMCU FT232H \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043a\u0438\u0434\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u043e\u043c UM232H \u0437\u0430 2000 \u0440\u0443\u0431\u043b\u0435\u0439. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u043d\u0435\u0441\u0442\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0444\u0430\u0439\u043b:<\/p>\n<blockquote>\n<p><code>\/home\/&lt;username&gt;\/.platformio\/packages\/tool-openocd-gd32v\/share\/openocd\/scripts\/interface\/ftdi\/um232h.cfg<\/code><\/p>\n<\/blockquote>\n<pre><code class=\"python\"># # FTDI UM232H as a JTAG interface # # http:\/\/www.ftdichip.com\/Products\/Modules\/DevelopmentModules.htm#UM232H # # This should also work with a UM232H-B, but that has not been tested. # Note that UM232H and UM232H-B are 3.3V only. #  interface ftdi #ftdi_device_desc \"UM232H\" ftdi_vid_pid 0x0403 0x6014  ##ftdi_layout_init 0xfff8 0xfffb ##ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100 ##ftdi_layout_signal nSRST -data 0x0200 -oe 0x0200  # interface 1 is the uart ftdi_channel 0 # just TCK TDI TDO TMS, no reset ftdi_layout_init 0x0008 0x000b #ftdi_layout_init 0x0c08 0x0f1b reset_config none<\/code><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u0443 \u043d\u0430\u0441 \u0447\u0438\u043f \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c <em>ftdi_device_desc,<\/em> \u0438 \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0432\u043d\u0435\u0441\u0442\u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0440\u0430\u043d\u0435\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 <em>99-platformio-udev.rules<\/em>.<\/p>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <em>libhidapi-hidraw0<\/em>:<\/p>\n<pre><code class=\"bash\">sudo apt-get install -y libhidapi-hidraw0<\/code><\/pre>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p><strong>\u0424\u0443\u043d\u043a\u0446\u0438\u044f JTAG<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>CJMCU FT232H<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>Sipeed Longan Nano<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TDO<\/p>\n<\/td>\n<td>\n<p>AD2<\/p>\n<\/td>\n<td>\n<p>JTDO<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TDI<\/p>\n<\/td>\n<td>\n<p>AD1<\/p>\n<\/td>\n<td>\n<p>JTDI<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TCK<\/p>\n<\/td>\n<td>\n<p>AD0<\/p>\n<\/td>\n<td>\n<p>JTCK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TMS<\/p>\n<\/td>\n<td>\n<p>AD3<\/p>\n<\/td>\n<td>\n<p>JTMS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<\/td>\n<td>\n<p>+3.3V<\/p>\n<\/td>\n<td>\n<p>3V3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<\/td>\n<td>\n<p>GND<\/p>\n<\/td>\n<td>\n<p>GND<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h2>RV-Debugger-Lite + Sipeed Longan Nano<\/h2>\n<p>\u0418 \u043d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a \u044f \u0445\u043e\u0447\u0443 \u043e\u043f\u0438\u0441\u0430\u0442\u044c, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u043b\u044c\u0442\u0440\u0430\u0431\u044e\u0434\u0436\u0435\u0442\u043d\u044b\u0439 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a RV-Debugger-Lite \u0437\u0430 200 \u0440\u0443\u0431\u043b\u0435\u0439.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f7a\/773\/03b\/f7a77303ba69e9d3ba05636de3fa1421.jpg\" width=\"860\" height=\"608\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 platformio.ini:<\/p>\n<pre><code class=\"cpp\">[env:sipeed-longan-nano] platform = gd32v framework = gd32vf103-sdk board = sipeed-longan-nano monitor_speed = 115200 debug_tool = sipeed-rv-debugger upload_protocol = sipeed-rv-debugger<\/code><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u0440\u0438\u043a\u0438\u0434\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0435\u0433\u043e \u0441\u0442\u0430\u0440\u0448\u0438\u043c \u0431\u0440\u0430\u0442\u043e\u043c Sipeed RV-Debugger. \u0421\u0435\u0439\u0447\u0430\u0441 \u0435\u0433\u043e \u0432 \u043f\u0440\u043e\u0434\u0430\u0436\u0435 \u043d\u0435\u0442, \u043d\u043e, \u0435\u0441\u043b\u0438 \u043c\u043d\u0435 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u043f\u0430\u043c\u044f\u0442\u044c, \u043e\u043d \u0441\u0442\u043e\u0438\u043b \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 1000 \u0440\u0443\u0431\u043b\u0435\u0439. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b:<\/p>\n<blockquote>\n<p>\/home\/&lt;username&gt;\/.platformio\/packages\/tool-openocd-gd32v\/share\/openocd\/scripts\/interface\/ftdi\/sipeed-rv-debugger.cfg<\/p>\n<\/blockquote>\n<pre><code class=\"python\">interface ftdi ##ftdi_device_desc \"Dual RS232\" ftdi_vid_pid 0x0403 0x6010  #autoexit true  #interface cmsis-dap transport select jtag ftdi_layout_init 0x0008 0x001b ftdi_layout_signal nSRST -oe 0x0020 -data 0x0020<\/code><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c <em>ftdi_device_desc<\/em>, \u0442\u0430\u043a \u043a\u0430\u043a \u0447\u0438\u043f \u043f\u043e\u0447\u0442\u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442: \u0443 RV-Debugger FT2232D, \u0430 \u0443 RV-Debugger-Lite \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u043a FT2232C, \u0445\u043e\u0442\u044f \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043e\u043d CH552T. \u041f\u0430\u0440\u0430 VID\/PID \u0443 \u043d\u0438\u0445 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442.<\/p>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p><strong>\u0424\u0443\u043d\u043a\u0446\u0438\u044f JTAG<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"246\" width=\"246\">\n<p><strong>RV-Debugger-Lite<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>Sipeed Longan Nano<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TDO<\/p>\n<\/td>\n<td data-colwidth=\"246\" width=\"246\">\n<p>TDO<\/p>\n<\/td>\n<td>\n<p>JTDO<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TDI<\/p>\n<\/td>\n<td data-colwidth=\"246\" width=\"246\">\n<p>TDI<\/p>\n<\/td>\n<td>\n<p>JTDI<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TCK<\/p>\n<\/td>\n<td data-colwidth=\"246\" width=\"246\">\n<p>TCK<\/p>\n<\/td>\n<td>\n<p>JTCK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TMS<\/p>\n<\/td>\n<td data-colwidth=\"246\" width=\"246\">\n<p>TMS<\/p>\n<\/td>\n<td>\n<p>JTMS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<\/td>\n<td data-colwidth=\"246\" width=\"246\">\n<p>3V3<\/p>\n<\/td>\n<td>\n<p>3V3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<\/td>\n<td data-colwidth=\"246\" width=\"246\">\n<p>GND<\/p>\n<\/td>\n<td>\n<p>GND<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0425\u043e\u0447\u0443 \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u043d\u0443\u0442\u044c, \u0447\u0442\u043e \u0432\u0441\u044f \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0431\u044b\u043b\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u0430 \u043c\u043d\u043e\u0439 \u043b\u0438\u0447\u043d\u043e \u043d\u0430 \u043c\u043e\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0439 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u043c\u043d\u043e\u0433\u0438\u043c \u0434\u043b\u044f \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<h2>\u041b\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u0430<\/h2>\n<p><a href=\"https:\/\/forum.arduino.ua\/viewtopic.php?id=1986\" rel=\"noopener noreferrer nofollow\">PIO (platformio) JTAG FT232H ESP32<\/a><\/p>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/421291\/\" rel=\"noopener noreferrer nofollow\">\u0411\u044e\u0434\u0436\u0435\u0442\u043d\u044b\u0439 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a \u043a ESP-32 \u0438 \u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/a><\/p>\n<p><a href=\"https:\/\/longan.sipeed.com\/en\/get_started\/debug.html\" rel=\"noopener noreferrer nofollow\">Debugging Longan Nano<\/a><\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/556498\/\"> https:\/\/habr.com\/ru\/post\/556498\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0412 \u044d\u0442\u043e\u043c \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u0435 \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u043b\u044c\u0442\u0440\u0430\u0431\u044e\u0434\u0436\u0435\u0442\u043d\u044b\u0435 JTAG-\u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0438 CJMCU FT232H \u0438 RV-Debugger-Lite \u0432 PlatformIO \u0434\u043b\u044f \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043d\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445 ESP32 \u0438 GD32. \u041f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b, \u0438 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441\u043e \u043c\u043d\u043e\u0433\u0438\u043c\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044d\u0442\u043e\u0442 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0437\u0434\u0435\u0441\u044c \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0433\u043e \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430. \u041e\u0433\u043e\u0432\u043e\u0440\u044e\u0441\u044c \u0441\u0440\u0430\u0437\u0443, \u0447\u0442\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0434\u043b\u044f Linux, \u043d\u043e \u0434\u043b\u044f Windows \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0437\u043d\u0438\u0446\u044b \u043d\u0435\u0442 \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0442\u0430\u043d\u0446\u0435\u0432 \u0441 Zadig.<\/p>\n<h2>CJMCU FT232H + ESR32 Rev1 aka ESP32Dev<\/h2>\n<p>\u0418\u043c\u0435\u0435\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0443 \u0432\u043e\u0442 \u044d\u0442\u043e\u0442 \u0434\u0435\u0431\u0430\u0433\u0433\u0435\u0440 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0447\u0438\u043f\u0430 FT232H:<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0418 \u0432\u043e\u0442 \u044d\u0442\u0430 \u043f\u043b\u0430\u0442\u0430 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 ESP-WROOM-32:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 platformio.ini:<\/p>\n<pre><code class=\"cpp\">[env:esp32dev] platform = espressif32 framework = arduino board = esp32dev monitor_speed = 115200 upload_speed = 921600 debug_tool = minimodule upload_protocol = minimodule<\/code><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u0443 \u043d\u0430\u0441 CJMCU FT232H \u0437\u0430 700 \u0440\u0443\u0431\u043b\u0435\u0439 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043a\u0438\u0434\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u043e\u043c FT2232H MINI MODULE \u0437\u0430 4500. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u043d\u0435\u0441\u0442\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0444\u0430\u0439\u043b (\u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043c\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442\u0441\u044f \u0441 ##):<\/p>\n<blockquote>\n<p>\/home\/&lt;username&gt;\/.platformio\/packages\/tool-openocd-esp32\/share\/openocd\/scripts\/interface\/ftdi\/minimodule.cfg<\/p>\n<\/blockquote>\n<pre><code class=\"python\"># # FTDI MiniModule # # http:\/\/www.ftdichip.com\/Support\/Documents\/DataSheets\/Modules\/DS_FT2232H_Mini_Module.pdf #  interface ftdi ##ftdi_device_desc \"FT2232H MiniModule\" ##ftdi_vid_pid 0x0403 0x6010 ftdi_vid_pid 0x0403 0x6014  # Every pin set as high impedance except TCK, TDI, TDO and TMS ftdi_layout_init 0x0008 0x000b  # nSRST defined on pin CN2-13 of the MiniModule (pin ADBUS5 [AD5] on the FT2232H chip) # This choice is arbitrary. Use other GPIO pin if desired. ##ftdi_layout_signal nSRST -data 0x0020 -oe 0x0020  ## added # interface 1 is the uart ftdi_channel 0  reset_config none <\/code><\/pre>\n<p>\u041d\u0435\u043c\u0430\u043b\u043e\u0432\u0430\u0436\u043d\u043e \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0430 minimodule<code>\"ftdi_device_desc\", \u0438\u043d\u0430\u0447\u0435<\/code>CJMCU FT232H \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u043f\u0440\u0430\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u0430. \u0412 \u0442\u043e\u043c \u0436\u0435 \u0444\u0430\u0439\u043b\u0435 \u043c\u044b \u043c\u0435\u043d\u044f\u0435\u043c \u043f\u0430\u0440\u0443 VID\/PID, \u0438 \u0435\u0435 \u0436\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432:<\/p>\n<blockquote>\n<p>\/etc\/udev\/rules.d\/99-platformio-udev.rules<\/p>\n<\/blockquote>\n<pre><code class=\"bash\">SUBSYSTEM==\"usb\", ATTR{idVendor}==\"0403\", ATTR{idProduct}==\"6014\", GROUP=\"plugdev\", MODE=\"0666\"<\/code><\/pre>\n<p>\u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u043b\u0441\u044f. <\/p>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p><strong>\u0424\u0443\u043d\u043a\u0446\u0438\u044f JTAG<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"245\" width=\"245\">\n<p><strong>CJMCU FT232H<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>ESP32Dev<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TDO<\/p>\n<\/td>\n<td data-colwidth=\"245\" width=\"245\">\n<p>AD2<\/p>\n<\/td>\n<td>\n<p>GPIO15<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TDI<\/p>\n<\/td>\n<td data-colwidth=\"245\" width=\"245\">\n<p>AD1<\/p>\n<\/td>\n<td>\n<p>GPIO12<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TCK<\/p>\n<\/td>\n<td data-colwidth=\"245\" width=\"245\">\n<p>AD0<\/p>\n<\/td>\n<td>\n<p>GPIO13<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TMS<\/p>\n<\/td>\n<td data-colwidth=\"245\" width=\"245\">\n<p>AD3<\/p>\n<\/td>\n<td>\n<p>GPIO14<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<\/td>\n<td data-colwidth=\"245\" width=\"245\">\n<p>+3.3V<\/p>\n<\/td>\n<td>\n<p>3V3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<\/td>\n<td data-colwidth=\"245\" width=\"245\">\n<p>GND<\/p>\n<\/td>\n<td>\n<p>GND<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h3>CJMCU FT232H + Sipeed Longan Nano<\/h3>\n<p>\u0418\u043c\u0435\u0435\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0443 \u0432\u043e\u0442 \u0442\u0430\u043a\u0430\u044f \u0432\u043e\u0442 \u043f\u043b\u0430\u0442\u0430 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0447\u0438\u043f\u0430 GD32VF103CBT6:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 platformio.ini:<\/p>\n<pre><code class=\"cpp\">[env:sipeed-longan-nano] platform = gd32v framework = gd32vf103-sdk board = sipeed-longan-nano monitor_speed = 115200 debug_tool = um232h upload_protocol = um232h<\/code><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u0443 \u043d\u0430\u0441 CJMCU FT232H \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043a\u0438\u0434\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u043e\u043c UM232H \u0437\u0430 2000 \u0440\u0443\u0431\u043b\u0435\u0439. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u043d\u0435\u0441\u0442\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u0444\u0430\u0439\u043b:<\/p>\n<blockquote>\n<p><code>\/home\/&lt;username&gt;\/.platformio\/packages\/tool-openocd-gd32v\/share\/openocd\/scripts\/interface\/ftdi\/um232h.cfg<\/code><\/p>\n<\/blockquote>\n<pre><code class=\"python\"># # FTDI UM232H as a JTAG interface # # http:\/\/www.ftdichip.com\/Products\/Modules\/DevelopmentModules.htm#UM232H # # This should also work with a UM232H-B, but that has not been tested. # Note that UM232H and UM232H-B are 3.3V only. #  interface ftdi #ftdi_device_desc \"UM232H\" ftdi_vid_pid 0x0403 0x6014  ##ftdi_layout_init 0xfff8 0xfffb ##ftdi_layout_signal nTRST -data 0x0100 -oe 0x0100 ##ftdi_layout_signal nSRST -data 0x0200 -oe 0x0200  # interface 1 is the uart ftdi_channel 0 # just TCK TDI TDO TMS, no reset ftdi_layout_init 0x0008 0x000b #ftdi_layout_init 0x0c08 0x0f1b reset_config none<\/code><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u0443 \u043d\u0430\u0441 \u0447\u0438\u043f \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c <em>ftdi_device_desc,<\/em> \u0438 \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u0432\u043d\u0435\u0441\u0442\u0438 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0440\u0430\u043d\u0435\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 <em>99-platformio-udev.rules<\/em>.<\/p>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u044e\u0449\u0443\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <em>libhidapi-hidraw0<\/em>:<\/p>\n<pre><code class=\"bash\">sudo apt-get install -y libhidapi-hidraw0<\/code><\/pre>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p><strong>\u0424\u0443\u043d\u043a\u0446\u0438\u044f JTAG<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>CJMCU FT232H<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>Sipeed Longan Nano<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TDO<\/p>\n<\/td>\n<td>\n<p>AD2<\/p>\n<\/td>\n<td>\n<p>JTDO<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TDI<\/p>\n<\/td>\n<td>\n<p>AD1<\/p>\n<\/td>\n<td>\n<p>JTDI<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TCK<\/p>\n<\/td>\n<td>\n<p>AD0<\/p>\n<\/td>\n<td>\n<p>JTCK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TMS<\/p>\n<\/td>\n<td>\n<p>AD3<\/p>\n<\/td>\n<td>\n<p>JTMS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<\/td>\n<td>\n<p>+3.3V<\/p>\n<\/td>\n<td>\n<p>3V3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<\/td>\n<td>\n<p>GND<\/p>\n<\/td>\n<td>\n<p>GND<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h2>RV-Debugger-Lite + Sipeed Longan Nano<\/h2>\n<p>\u0418 \u043d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a \u044f \u0445\u043e\u0447\u0443 \u043e\u043f\u0438\u0441\u0430\u0442\u044c, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u043b\u044c\u0442\u0440\u0430\u0431\u044e\u0434\u0436\u0435\u0442\u043d\u044b\u0439 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a RV-Debugger-Lite \u0437\u0430 200 \u0440\u0443\u0431\u043b\u0435\u0439.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 platformio.ini:<\/p>\n<pre><code class=\"cpp\">[env:sipeed-longan-nano] platform = gd32v framework = gd32vf103-sdk board = sipeed-longan-nano monitor_speed = 115200 debug_tool = sipeed-rv-debugger upload_protocol = sipeed-rv-debugger<\/code><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u0440\u0438\u043a\u0438\u0434\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0435\u0433\u043e \u0441\u0442\u0430\u0440\u0448\u0438\u043c \u0431\u0440\u0430\u0442\u043e\u043c Sipeed RV-Debugger. \u0421\u0435\u0439\u0447\u0430\u0441 \u0435\u0433\u043e \u0432 \u043f\u0440\u043e\u0434\u0430\u0436\u0435 \u043d\u0435\u0442, \u043d\u043e, \u0435\u0441\u043b\u0438 \u043c\u043d\u0435 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u043f\u0430\u043c\u044f\u0442\u044c, \u043e\u043d \u0441\u0442\u043e\u0438\u043b \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 1000 \u0440\u0443\u0431\u043b\u0435\u0439. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b:<\/p>\n<blockquote>\n<p>\/home\/&lt;username&gt;\/.platformio\/packages\/tool-openocd-gd32v\/share\/openocd\/scripts\/interface\/ftdi\/sipeed-rv-debugger.cfg<\/p>\n<\/blockquote>\n<pre><code class=\"python\">interface ftdi ##ftdi_device_desc \"Dual RS232\" ftdi_vid_pid 0x0403 0x6010  #autoexit true  #interface cmsis-dap transport select jtag ftdi_layout_init 0x0008 0x001b ftdi_layout_signal nSRST -oe 0x0020 -data 0x0020<\/code><\/pre>\n<p>\u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c <em>ftdi_device_desc<\/em>, \u0442\u0430\u043a \u043a\u0430\u043a \u0447\u0438\u043f \u043f\u043e\u0447\u0442\u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442: \u0443 RV-Debugger FT2232D, \u0430 \u0443 RV-Debugger-Lite \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u043a FT2232C, \u0445\u043e\u0442\u044f \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043e\u043d CH552T. \u041f\u0430\u0440\u0430 VID\/PID \u0443 \u043d\u0438\u0445 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442.<\/p>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p><strong>\u0424\u0443\u043d\u043a\u0446\u0438\u044f JTAG<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"246\" width=\"246\">\n<p><strong>RV-Debugger-Lite<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>Sipeed Longan Nano<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TDO<\/p>\n<\/td>\n<td data-colwidth=\"246\" width=\"246\">\n<p>TDO<\/p>\n<\/td>\n<td>\n<p>JTDO<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TDI<\/p>\n<\/td>\n<td data-colwidth=\"246\" width=\"246\">\n<p>TDI<\/p>\n<\/td>\n<td>\n<p>JTDI<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TCK<\/p>\n<\/td>\n<td data-colwidth=\"246\" width=\"246\">\n<p>TCK<\/p>\n<\/td>\n<td>\n<p>JTCK<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>TMS<\/p>\n<\/td>\n<td data-colwidth=\"246\" width=\"246\">\n<p>TMS<\/p>\n<\/td>\n<td>\n<p>JTMS<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<\/td>\n<td data-colwidth=\"246\" width=\"246\">\n<p>3V3<\/p>\n<\/td>\n<td>\n<p>3V3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<\/td>\n<td data-colwidth=\"246\" width=\"246\">\n<p>GND<\/p>\n<\/td>\n<td>\n<p>GND<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0425\u043e\u0447\u0443 \u043f\u043e\u0434\u0447\u0435\u0440\u043a\u043d\u0443\u0442\u044c, \u0447\u0442\u043e \u0432\u0441\u044f \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0431\u044b\u043b\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u0430 \u043c\u043d\u043e\u0439 \u043b\u0438\u0447\u043d\u043e \u043d\u0430 \u043c\u043e\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0439 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u0435\u043d \u043c\u043d\u043e\u0433\u0438\u043c \u0434\u043b\u044f \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<h2>\u041b\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u0430<\/h2>\n<p><a href=\"https:\/\/forum.arduino.ua\/viewtopic.php?id=1986\" rel=\"noopener noreferrer nofollow\">PIO (platformio) JTAG FT232H ESP32<\/a><\/p>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/421291\/\" rel=\"noopener noreferrer nofollow\">\u0411\u044e\u0434\u0436\u0435\u0442\u043d\u044b\u0439 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a \u043a ESP-32 \u0438 \u0435\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430<\/a><\/p>\n<p><a href=\"https:\/\/longan.sipeed.com\/en\/get_started\/debug.html\" rel=\"noopener noreferrer nofollow\">Debugging Longan Nano<\/a><\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/556498\/\"> https:\/\/habr.com\/ru\/post\/556498\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-322800","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/322800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=322800"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/322800\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=322800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=322800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=322800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}