{"id":340089,"date":"2022-10-22T03:00:11","date_gmt":"2022-10-22T03:00:11","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=340089"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=340089","title":{"rendered":"<span>\u041f\u043e\u0448\u0430\u0433\u043e\u0432\u0430\u044f GDB \u043e\u0442\u043b\u0430\u0434\u043a\u0430 ARM \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u0438\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0432 Win10<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0422\u0438\u043f\u0438\u0447\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f. \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 UART \u043d\u0435 \u043f\u0440\u043e\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0438\u043b\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0433\u0434\u0435-\u0442\u043e \u0437\u0430\u0432\u0438\u0441\u043b\u043e \u0432 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u0441\u043b\u0435 reset. \u0418\u043b\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0434\u0430\u0447\u0438 \u043f\u0438\u0442\u0430\u043d\u0438\u044f. \u041a\u0430\u043a \u0436\u0435 \u043f\u043e\u043d\u044f\u0442\u044c \u043d\u0430 \u043a\u0430\u043a\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 run-time \u043e\u0448\u0438\u0431\u043a\u0430? \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u044d\u0442\u043e \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u0430\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 JTAG \u0438\u043b\u0438 SWD.<\/p>\n<p>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e \u0436\u0435\u043b\u0435\u0437\u043e. \u0420\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u0443\u0434\u0443 \u0432\u043e\u0442 \u0441 \u044d\u0442\u043e\u0439 \u043f\u043b\u0430\u0442\u043e\u0439<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/036\/993\/ec1\/036993ec1c38dded9e26eff4890a80e2.png\" alt=\"\u041e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430 nRF5340-DK\" title=\"\u041e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430 nRF5340-DK\" width=\"3508\" height=\"2480\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/036\/993\/ec1\/036993ec1c38dded9e26eff4890a80e2.png\"\/><figcaption>\u041e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430 nRF5340-DK<\/figcaption><\/figure>\n<p>\u0422\u0443\u0442 \u043d\u0430 board(e) \u043a\u0430\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440 U2 \u0442\u0430\u043a \u0438 \u0441\u0430\u043c \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 U1 (Target).  \u041e\u0431\u0430 94pin(\u043d\u043e\u0432\u044b\u0435) nrf5340 \u0432 \u043a\u043e\u0440\u043f\u0443\u0441\u0435 aQFN94. \u0421\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u044b \u043e\u043d\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c SWD. \u0412\u043d\u0443\u0442\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e 2 \u044f\u0434\u0440\u0430 Arm Cortex-M33 (Armv8-M). \u041d\u0430 \u0443\u043b\u0438\u0446\u0443 \u0442\u0430\u043a\u0436\u0435 \u0432\u044b\u0445\u043e\u0434\u0438\u0442 2 UART(\u0430) \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438. \u041e\u043d\u0438 \u0436\u0435 \u043f\u0440\u043e\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u043e USB (J2) \u043d\u0430 DeskTop.<\/p>\n<p>\u0427\u0442\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0438\u0437 \u0441\u043e\u0444\u0442\u0430?<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0423\u0442\u0438\u043b\u0438\u0442\u0430<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"234\" width=\"234\">\n<p align=\"left\"><strong>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>Path<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">arm-none-eabi-gdb.exe<\/p>\n<\/td>\n<td data-colwidth=\"234\" width=\"234\">\n<p align=\"left\">GDB Client \u0434\u043b\u044f ARM<\/p>\n<\/td>\n<td>\n<p align=\"left\">C:\\Program Files (x86)\\GNU Arm Embedded Toolchain\\10 2021.10\\bin<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">JLinkGDBServer.exe<\/p>\n<\/td>\n<td data-colwidth=\"234\" width=\"234\">\n<p align=\"left\">GDB Server<\/p>\n<\/td>\n<td>\n<p align=\"left\">C:\\Program Files (x86)\\SEGGER\\JLink\\<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">nrfjprog.exe<\/p>\n<\/td>\n<td data-colwidth=\"234\" width=\"234\">\n<p align=\"left\">\u041f\u0440\u043e\u0448\u0438\u0432\u0430\u043b\u044c\u0449\u0438\u043a \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 <\/p>\n<\/td>\n<td>\n<p align=\"left\">C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">ttermpro.exe<\/p>\n<\/td>\n<td data-colwidth=\"234\" width=\"234\">\n<p align=\"left\">\u0422\u0435\u0440\u043c\u0438\u043d\u0430\u043b COM \u043f\u043e\u0440\u0442\u043e\u0432<\/p>\n<\/td>\n<td>\n<p align=\"left\">C:\\Program Files (x86)\\teraterm<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u042d\u0442\u043e\u0433\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e. <\/p>\n<p><strong>\u0424\u0430\u0437\u0430 1 \u0417\u0430\u043b\u0438\u0442\u044c \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 \u0432 Target<\/strong><\/p>\n<p>\u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u043e\u0442 \u044d\u0442\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c<\/p>\n<pre><code class=\"bash\">echo off cls  set com_port_num=10 set baudrate=115200 set project_name=headset_app set project_dir=%~dp0 set NRF_SDK_DIR=C:\/ncs\/v2.1.0  set SDK_PROJECT_DIR=%NRF_SDK_DIR%\/nrf\/applications\/nrf5340_dk_audio_w IF \"%1\"==\"\" (     echo set dflt SDK ver      set ARTEFACT_HEX=%SDK_PROJECT_DIR%\\build\\headset_app\\zephyr\\zephyr.hex ) ELSE (     echo set dflt SDK from argument      set ARTEFACT_HEX=%1 ) echo Artefact hex: [%ARTEFACT_HEX%]   set tools_dir=%cd%\\..\\..\\..\\tool echo Project Dir:%project_dir%  set FlashTool=\"C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe\"  set options=--iface USB --family NRF53 --coprocessor CP_APPLICATION --program %ARTEFACT_HEX%  --log --chiperase --verify --reset  call %FlashTool% %options% echo tools_dir=%tools_dir%  call %tools_dir%\\launch_terminal.bat 9 %baudrate% %project_name% call %tools_dir%\\launch_terminal.bat 10 %baudrate% %project_name% <\/code><\/pre>\n<p>\u041e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0432 \u044d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 \u0432 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 nrf5340.<\/p>\n<p><strong>\u0424\u0430\u0437\u0430 2 \u0417\u0430\u043f\u0443\u0441\u043a GDB \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (Back-End)<\/strong><\/p>\n<p>GDB \u0441\u0435\u0440\u0432\u0435\u0440 \u044d\u0442\u043e \u0443\u0442\u0438\u043b\u0438\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440-\u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a. \u0418\u043c\u0435\u043d\u043d\u043e \u043e\u043d\u0430 \u043e\u0431\u0449\u0430\u0435\u0442\u0441\u044f \u0441 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c. \u041d\u0430\u0434\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c GDB \u0441\u0435\u0440\u0432\u0435\u0440. \u0412\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u044d\u0442\u043e\u0439 \u0443\u0442\u0438\u043b\u0438\u0442\u044b.<\/p>\n<pre><code class=\"bash\">  echo off cls set GDBServerOpt = -select USB -device nRF5340_xxAA_APP -endian little -if SWD -speed 400 -ir -LocalhostOnly -logtofile -log \"C:\\projects\\code_base_workspace\\code_base_firmware\\tool\\GdbServerLog.txt\"  set GDBServerDir=\"C:\\Program Files (x86)\\SEGGER\\JLink\\\" set GDBServerPath=%GDBServerDir%JLinkGDBServer.exe\" cd %GDBServerDir% call %GDBServerPath% %GDBServerOpt% <\/code><\/pre>\n<p>\u041d\u0430\u0434\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0441\u0432\u044f\u0437\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440\u0430 \u0438 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0442\u044c. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 SWD.<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/df4\/7e9\/762\/df47e976222b1baccfbb5b515e08477f.png\" width=\"468\" height=\"790\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/df4\/7e9\/762\/df47e976222b1baccfbb5b515e08477f.png\"\/><figcaption><\/figcaption><\/figure>\n<p>J-link \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f41\/950\/f6f\/f41950f6f7f7628ae37506733639b4bd.png\" width=\"753\" height=\"248\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f41\/950\/f6f\/f41950f6f7f7628ae37506733639b4bd.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0441\u044b\u0445 \u0447\u0438\u043f\u043e\u0432 \u043e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0439 <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f63\/b7e\/e96\/f63b7ee96287e23ff65ca74a2e520bd2.png\" width=\"791\" height=\"671\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f63\/b7e\/e96\/f63b7ee96287e23ff65ca74a2e520bd2.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0447\u0438\u043f nrf5340<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/318\/56a\/2cd\/31856a2cd58318555f74e7331df88d17.png\" width=\"794\" height=\"306\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/318\/56a\/2cd\/31856a2cd58318555f74e7331df88d17.png\"\/><figcaption><\/figcaption><\/figure>\n<p>GDB \u0441\u0435\u0440\u0432\u0435\u0440 J-Link \u0437\u0430\u043f\u0443\u0449\u0435\u043d <u>\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e<\/u>. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440 (S\/N: 1050009032) \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043f\u043e <strong>USB<\/strong>. Target \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440\u0443 \u043f\u043e <strong>SWD<\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/1e8\/627\/ddc\/1e8627ddc199d5c81667b252fd4368f9.png\" width=\"842\" height=\"1013\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1e8\/627\/ddc\/1e8627ddc199d5c81667b252fd4368f9.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0432\u043e\u0442 \u043f\u043e\u043b\u043d\u044b\u0439 \u043b\u043e\u0433 \u043e\u0436\u0438\u0434\u0430\u044e\u0449\u0435\u0433\u043e GDB \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/p>\n<details class=\"spoiler\">\n<summary>Hidden text<\/summary>\n<div class=\"spoiler__content\">\n<p>SEGGER J-Link GDB Server V7.66a GUI Version<\/p>\n<p>JLinkARM.dll V7.66a (DLL compiled May 19 2022 15:13:27)<\/p>\n<p>&#8212;&#8212;GDB Server start settings&#8212;&#8212;<br \/> GDBInit file:                  none<br \/> GDB Server Listening port:     2331<br \/> SWO raw output listening port: 2332<br \/> Terminal I\/O port:             2333<br \/> Accept remote connection:      localhost only<br \/> Generate logfile:              off<br \/> Verify download:               off<br \/> Init regs on start:            off<br \/> Silent mode:                   off<br \/> Single run mode:               off<br \/> Target connection timeout:     5000 ms<br \/> &#8212;&#8212;J-Link related settings&#8212;&#8212;<br \/> J-Link Host interface:         USB<br \/> J-Link script:                 none<br \/> J-Link settings file:          none<br \/> &#8212;&#8212;Target related settings&#8212;&#8212;<br \/> Target device:                 Unspecified<br \/> Target interface:              SWD<br \/> Target interface speed:        4000kHz<br \/> Target endian:                 little<\/p>\n<p>Connecting to J-Link&#8230;<br \/> J-Link is connected.<br \/> Firmware: J-Link OB-nRF5340-NordicSemi compiled Dec  3 2021 15:46:49<br \/> Hardware: V1.00<br \/> S\/N: 1050009032<br \/> Checking target voltage&#8230;<br \/> Target voltage: 3.30 V<br \/> Listening on TCP\/IP port 2331<br \/> Connecting to target&#8230;<br \/> Connected to target<br \/> Waiting for GDB connection&#8230;<\/p>\n<\/div>\n<\/details>\n<p>\u0421\u0435\u0439\u0447\u0430\u0441 GDB \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0436\u0438\u0434\u0430\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u043e TCP \u043f\u043e\u0440\u0442\u0443: <strong>2331<\/strong><\/p>\n<p>\u041d\u0430 \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0435 nRF5340-DK, \u0435\u0441\u0442\u044c <u>\u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439<\/u> \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440 J-Link \u0438 \u0442\u0430\u043c \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u043e \u0441\u0432\u0435\u0442\u0438\u0442\u0441\u044f \u0437\u0435\u043b\u0435\u043d\u044b\u0439 LED, \u043e\u0442 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0430.<\/p>\n<p><strong>\u0424\u0430\u0437\u0430 3 \u0417\u0430\u043f\u0443\u0441\u043a GDB \u043a\u043b\u0438\u0435\u043d\u0442\u0430 (Front-End<\/strong> <strong>)<\/strong><\/p>\n<p>\u0415\u0441\u043b\u0438 GDB \u0441\u0435\u0440\u0432\u0435\u0440 \u043c\u043e\u0436\u043d\u043e \u043c\u0435\u0442\u0430\u0444\u043e\u0440\u0438\u0447\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c Back-End(\u043e\u043c), \u0442\u043e Front-End \u0447\u0430\u0441\u0442\u044c\u044e \u0434\u043b\u044f \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0439 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0435\u0442 GDB \u043a\u043b\u0438\u0435\u043d\u0442. \u0412\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430.<\/p>\n<pre><code> \"C:\\Program Files (x86)\\GNU Arm Embedded Toolchain\\10 2021.10\\bin\\arm-none-eabi-gdb.exe\" --help \"C:\\Program Files (x86)\\GNU Arm Embedded Toolchain\\10 2021.10\\bin\\arm-none-eabi-gdb.exe\"  C:\/ncs\/v2.1.0\/nrf\/applications\/nrf5340_dk_audio_w\/build\/headset_app\/zephyr\/zephyr.elf<\/code><\/pre>\n<p>GBD \u043a\u043b\u0438\u0435\u043d\u0442 \u0441\u043c\u043e\u0433 \u043f\u043e\u0434\u0445\u0432\u0430\u0442\u0438\u0442\u044c *.elf \u0444\u0430\u0439\u043b \u0441 \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u043c\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c\u0438 <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0a1\/efa\/4c5\/0a1efa4c55472e56c4c38d6d8fc456ba.png\" width=\"1225\" height=\"74\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0a1\/efa\/4c5\/0a1efa4c55472e56c4c38d6d8fc456ba.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0441\u0442\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a GBD \u0441\u0435\u0440\u0432\u0435\u0440\u0443. \u042d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439.<\/p>\n<pre><code>target remote localhost:2331<\/code><\/pre>\n<p>\u0421\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b32\/74c\/e0d\/b3274ce0d8beeedbdf793c049fb504bb.png\" width=\"1218\" height=\"193\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b32\/74c\/e0d\/b3274ce0d8beeedbdf793c049fb504bb.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b\u0441\u044f. \u0421\u0435\u0439\u0447\u0430\u0441 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u043d\u0430 \u043f\u0430\u0443\u0437\u0435. HeartBeat LED \u043d\u0435 \u043c\u0438\u0433\u0430\u0435\u0442, UART-Shell \u043d\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442.<\/p>\n<p>\u0414\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u043d\u0430\u0434\u043e \u043d\u0430\u0431\u0440\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443  <strong>continue<\/strong><\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/5b8\/a0a\/737\/5b8a0a7375f90678751e69de91588eb0.png\" width=\"379\" height=\"72\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5b8\/a0a\/737\/5b8a0a7375f90678751e69de91588eb0.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c HeartBeat LED \u043c\u0438\u0433\u0430\u0435\u0442 CLI \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442. LED \u043d\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440\u0435 \u0442\u043e\u0436\u0435 \u043c\u0438\u0433\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u043a-\u0442\u043e \u0430\u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e.<\/p>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0441\u043d\u043e\u0432\u0430 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430\u0434\u043e \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 GDB \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0430\u0436\u0430\u0442\u044c Ctrl+C.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0442\u043e\u0447\u043a\u0443 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430. \u041c\u0435\u043d\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044f <strong>bool hw_init(void)<\/strong><\/p>\n<pre><code>(gdb) break hw_init<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u0442\u043e\u0447\u0435\u043a \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <\/p>\n<pre><code>(gdb) info b<\/code><\/pre>\n<p>\u0412\u043e\u0442 \u044d\u0442\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f  <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/de3\/139\/680\/de3139680510f952439bef3013d5faf4.png\" width=\"1417\" height=\"132\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/de3\/139\/680\/de3139680510f952439bef3013d5faf4.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043d\u043e\u0432\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435. \u041a\u043e\u043c\u0430\u043d\u0434\u0430 c<\/p>\n<pre><code>(gdb) c<\/code><\/pre>\n<p>\u041d\u043e \u0432\u043e\u0442 \u043d\u0435\u0437\u0430\u0434\u0430\u0447\u0430. \u0422\u043e\u0447\u043a\u0430 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430. \u041d\u0430\u0434\u043e \u043a\u0430\u043a-\u0442\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c trarget, \u0447\u0442\u043e\u0431\u044b \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u043d\u043e\u0432\u0430 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430.<\/p>\n<p>\u0412\u043e\u0442 \u0442\u0443\u0442 \u0442\u043e \u043d\u0430\u043c \u043a\u0430\u043a \u0440\u0430\u0437 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b. \u042d\u0442\u043e \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u043e\u0432\u0435\u0440\u0445 UART \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u044f\u043c\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u043d\u0430 Target(\u0435). \u042f \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043f\u0440\u043e\u0448\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u0432 UART CLI <\/p>\n<pre><code>-> kernel reboot cold<\/code><\/pre>\n<p>\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e8f\/343\/578\/e8f3435786ebfcd161b90b94c9adcf9d.png\" width=\"1168\" height=\"580\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e8f\/343\/578\/e8f3435786ebfcd161b90b94c9adcf9d.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u044f \u0434\u0430\u0436\u0435 \u043e\u0442 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0440\u0443\u043a \u043d\u0435 \u043e\u0442\u0432\u043e\u0434\u0438\u043b. \u0418 \u0432\u043e\u0442 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a \u0437\u0430\u0446\u0435\u043f\u0438\u043b \u0444\u0443\u043d\u043a\u0446\u0438\u044e bool <strong>hw_init<\/strong>(void). \u042d\u0442\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0438\u043d\u0435\u0440\u0433\u0438\u044f GDB \u0438 UART-CLI. \u0423\u0441\u043f\u0435\u0445.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/945\/486\/148\/945486148082188ba66a0df1ce190fbc.png\" width=\"1185\" height=\"82\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/945\/486\/148\/945486148082188ba66a0df1ce190fbc.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u043a\u043e\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <strong>n<\/strong>. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <strong>info locals<\/strong> <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3c2\/6ab\/d9d\/3c26abd9d1c087b50e8d6fa220e253dc.png\" width=\"694\" height=\"142\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3c2\/6ab\/d9d\/3c26abd9d1c087b50e8d6fa220e253dc.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u0439\u0442\u0438 \u0432\u043d\u0443\u0442\u0440\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <strong>s.<\/strong><\/p>\n<p>\u0421\u0430\u043c\u043e \u0441\u043e\u0431\u043e\u0439, \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 GBD \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0435\u0441\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434 \u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0442\u0440\u0435\u043b\u043a\u0430\u043c\u0438 \u0432\u0432\u0435\u0440\u0445 \u0438 \u0432\u043d\u0438\u0437 \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435 \u043d\u0430\u0431\u0438\u0440\u0430\u0442\u044c \u0443\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0432 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0432\u044b\u0439\u0442\u0438 \u0438\u0437 GDB \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0430\u0434\u043e \u043d\u0430\u0431\u0440\u0430\u0442\u044c \u0432 \u0435\u0433\u043e \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 q. Target \u0432\u0441\u0435 \u0435\u0449\u0435 suspended. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u0434\u043e \u0437\u0430\u043a\u0440\u044b\u0442\u044c GDB \u0441\u0435\u0440\u0432\u0435\u0440. \u0422\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e Target \u0441\u0442\u0430\u043d\u0435\u0442 resumed \u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0441\u0432\u043e\u0439 \u043a\u043e\u0434.<\/p>\n<p>\u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c GDB \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 GDB \u043a\u043b\u0438\u0435\u043d\u0442 \u043e\u0434\u043d\u0438\u043c \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c.<\/p>\n<pre><code class=\"bash\">echo off cls  set FIRMWARE_FILE=C:\/ncs\/v2.1.0\/nrf\/applications\/nrf5340_dk_audio_w\/build\/headset_app\/zephyr\/zephyr.elf set GDB_CLIENT=\"C:\\Program Files (x86)\\GNU Arm Embedded Toolchain\\10 2021.10\\bin\\arm-none-eabi-gdb.exe\"  set tools_dir=%cd%\\..\\..\\..\\tool start %tools_dir%\\0_LaunchGdbServerNrfAppCore.bat   %GDB_CLIENT% --help %GDB_CLIENT% %FIRMWARE_FILE%<\/code><\/pre>\n<p>\u0421\u0443\u043c\u043c\u0438\u0440\u0443\u044f \u0432\u044b\u0448\u0435\u0441\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435, \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u0432\u043e\u0442 \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u0445\u0435\u043c\u043e\u0439 <\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/0b8\/618\/32c\/0b861832c42b9d40ebe3a4bb298baa50.png\" width=\"508\" height=\"740\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0b8\/618\/32c\/0b861832c42b9d40ebe3a4bb298baa50.png\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0448\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0430 \u043f\u043e \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0443\u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0433\u043e GDB \u043a\u043b\u0438\u0435\u043d\u0442\u0430 <\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\"><strong>short<\/strong>  <\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\"><strong>full<\/strong>  <\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>description<\/strong>  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">&#8212;<\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">info args  <\/p>\n<\/td>\n<td>\n<p align=\"left\">Show current function arguments<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">i b  <\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">info b  <\/p>\n<\/td>\n<td>\n<p align=\"left\">List all breakpoints  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">bt<\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">backtrace <\/p>\n<\/td>\n<td>\n<p align=\"left\">show function call stack<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">n<\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">next  <\/p>\n<\/td>\n<td>\n<p align=\"left\">Step over functions  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">f<\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">finish  <\/p>\n<\/td>\n<td>\n<p align=\"left\">Execute the rest of the current function. Step out of the current function.  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">s<\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">step<\/p>\n<\/td>\n<td>\n<p align=\"left\">Step into functions  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">p count  <\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">\n<\/td>\n<td>\n<p align=\"left\">Print the value of a variable count  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">c<\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">continue  <\/p>\n<\/td>\n<td>\n<p align=\"left\">Continue execution up to the next breakpoint or until termination if no breakpoints are encountered  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">&#8212;<\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">delete n  <\/p>\n<\/td>\n<td>\n<p align=\"left\">Delete breakpoint number n  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">&#8212;<\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">info locals  <\/p>\n<\/td>\n<td>\n<p align=\"left\">show local variables<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">&#8212;<\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">target remote localhost:2331  <\/p>\n<\/td>\n<td>\n<p align=\"left\">Connect to J-Link<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">q<\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">quit  <\/p>\n<\/td>\n<td>\n<p align=\"left\">quit gdb  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">b function  <\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">\n<\/td>\n<td>\n<p align=\"left\">Set a breakpoint at the beginning of function  <\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0411\u0443\u0434\u0443 \u0442\u0430\u043a\u0436\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0440\u0435\u0435\u0441\u0442\u0440 \u043a\u043e\u043c\u0430\u043d\u0434 GDB \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0432\u043e\u0442 \u0442\u0443\u0442<br \/><a href=\"https:\/\/docs.google.com\/spreadsheets\/d\/1AWD8GsDfaA9dtdsfqgbB1klagou1yrREc1AAK9CRUik\/edit#gid=0\" rel=\"noopener noreferrer nofollow\">https:\/\/docs.google.com\/spreadsheets\/d\/1AWD8GsDfaA9dtdsfqgbB1klagou1yrREc1AAK9CRUik\/edit#gid=0<\/a><br \/><strong><br \/>\u0412\u044b\u0432\u043e\u0434<\/strong><\/p>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435 \u0432 GDB \u043e\u0442\u043b\u0430\u0434\u043a\u0435 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u043d\u0435\u0442 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0441\u044f\u043a\u0438\u0435 \u0442\u0430\u043c \u0446\u0438\u043a\u043b\u043e\u043f\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0438 \u0434\u043e\u0440\u043e\u0433\u0443\u0449\u0438\u0435 IDE \u0434\u043b\u044f \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0439 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u043d\u0435 \u043e\u0441\u043e\u0431\u043e-\u0442\u043e \u0438 \u043d\u0443\u0436\u043d\u044b \u043a\u0430\u043a \u0431\u044b. \u041a\u043e\u043d\u0441\u043e\u043b\u044c \u0434\u0430\u0436\u0435 \u043b\u0443\u0447\u0448\u0435 \u0432 \u0442\u043e\u043c \u0441\u043c\u044b\u0441\u043b\u0435, \u0447\u0442\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u0443\u0442\u0438 (\u043a\u043e\u0434\u0435), \u0430 \u043d\u0435 \u043d\u0430 \u0441\u0442\u0440\u0430\u0437\u0438\u043a\u0430\u0445 \u0438\u0437 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f IDE. \u041c\u043e\u0436\u043d\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0442\u044c \u0431\u0435\u0437 \u043a\u043e\u0434\u0430, \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0432 \u043f\u043e \u043f\u043e\u0447\u0442\u0435 \u043e\u0434\u0438\u043d \u043b\u0438\u0448\u044c *.elf \u0444\u0430\u0439\u043b.<\/p>\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0430\u043a\u043b\u0430\u0434\u043d\u044b\u0435 \u0440\u0430\u0441\u0445\u043e\u0434\u044b \u043d\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 Toolchain(\u0430) \u0434\u043b\u044f \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0439 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0438 \u0432\u0441\u0451 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e.<\/p>\n<p><strong>Links<\/strong><\/p>\n<p><a href=\"https:\/\/condor.depaul.edu\/glancast\/373class\/docs\/gdb.html#Setting_Breakpoints\" rel=\"noopener noreferrer nofollow\">https:\/\/condor.depaul.edu\/glancast\/373class\/docs\/gdb.html#Setting_Breakpoints<\/a><\/p>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/181738\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/post\/181738\/<\/a><br \/><a href=\"https:\/\/habr.com\/ru\/post\/535960\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/post\/535960\/<\/a><br \/><a href=\"https:\/\/habr.com\/ru\/post\/546216\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/post\/546216\/<\/a><br \/><a href=\"https:\/\/mcuoneclipse.com\/2015\/03\/25\/command-line-programming-and-debugging-with-gdb\/\" rel=\"noopener noreferrer nofollow\">https:\/\/mcuoneclipse.com\/2015\/03\/25\/command-line-programming-and-debugging-with-gdb\/<\/a><br \/><a href=\"https:\/\/www.electricmonk.nl\/docs\/gdb_debugging\/gdb_debugging.html\" rel=\"noopener noreferrer nofollow\">https:\/\/www.electricmonk.nl\/docs\/gdb_debugging\/gdb_debugging.html<\/a><\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 *<\/strong><\/p>\n<p>\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0442\u043e\u0447\u0435\u043a \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430 JTAG \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c?<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <\/p>\n<div class=\"tm-article-poll\">\n<div class=\"tm-notice tm-article-poll__notice tm-notice_positive\"><!----> <\/p>\n<div class=\"tm-notice__inner\"><!----> <\/p>\n<div data-test-id=\"notice-content\" class=\"tm-notice__content\"><span>\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a rel=\"nofollow\" href=\"\/kek\/v1\/auth\/habrahabr\/?back=\/ru\/post\/694708\/&#038;hl=ru\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/span><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__header\">\u0412\u044b \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0443\u0435\u0442\u0435 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u0443\u044e \u043e\u0442\u043b\u0430\u0434\u043a\u0443?<\/div>\n<div class=\"tm-article-poll__answers\">\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent tm-article-poll__answer-percent_winning\">             100%           <\/span> <span class=\"tm-article-poll__answer-label\">\u0434\u0430<\/span> <span class=\"tm-article-poll__answer-votes\">             2           <\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress tm-article-poll__answer-progress_winning\" style=\"width:100%;\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">             0%           <\/span> <span class=\"tm-article-poll__answer-label\">\u043d\u0435\u0442<\/span> <span class=\"tm-article-poll__answer-votes\">             0           <\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress\" style=\"width:0%;\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__stats\">        \u041f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b\u0438 2 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.           \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043d\u0435\u0442.      <\/div>\n<\/div>\n<div class=\"tm-article-poll\">\n<div class=\"tm-notice tm-article-poll__notice tm-notice_positive\"><!----> <\/p>\n<div class=\"tm-notice__inner\"><!----> <\/p>\n<div data-test-id=\"notice-content\" class=\"tm-notice__content\"><span>\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a rel=\"nofollow\" href=\"\/kek\/v1\/auth\/habrahabr\/?back=\/ru\/post\/694708\/&#038;hl=ru\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/span><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__header\">\u0412\u044b \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0443\u0435\u0442\u0435 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u0443\u044e \u043e\u0442\u043b\u0430\u0434\u043a\u0443 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443?<\/div>\n<div class=\"tm-article-poll__answers\">\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">             50%           <\/span> <span class=\"tm-article-poll__answer-label\">\u0434\u0430<\/span> <span class=\"tm-article-poll__answer-votes\">             1           <\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress\" style=\"width:50%;\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent tm-article-poll__answer-percent_winning\">             50%           <\/span> <span class=\"tm-article-poll__answer-label\">\u043d\u0435\u0442<\/span> <span class=\"tm-article-poll__answer-votes\">             1           <\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress tm-article-poll__answer-progress_winning\" style=\"width:50%;\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__stats\">        \u041f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b\u0438 2 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.           \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043d\u0435\u0442.      <\/div>\n<\/div>\n<div class=\"tm-article-poll\">\n<div class=\"tm-notice tm-article-poll__notice tm-notice_positive\"><!----> <\/p>\n<div class=\"tm-notice__inner\"><!----> <\/p>\n<div data-test-id=\"notice-content\" class=\"tm-notice__content\"><span>\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a rel=\"nofollow\" href=\"\/kek\/v1\/auth\/habrahabr\/?back=\/ru\/post\/694708\/&#038;hl=ru\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/span><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__header\">\u0412\u044b \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0443\u0435\u0442\u0435 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u0443\u044e \u043e\u0442\u043b\u0430\u0434\u043a\u0443 \u0447\u0435\u0440\u0435\u0437 IDE?<\/div>\n<div class=\"tm-article-poll__answers\">\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent tm-article-poll__answer-percent_winning\">             100%           <\/span> <span class=\"tm-article-poll__answer-label\">\u0434\u0430<\/span> <span class=\"tm-article-poll__answer-votes\">             2           <\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress tm-article-poll__answer-progress_winning\" style=\"width:100%;\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">             0%           <\/span> <span class=\"tm-article-poll__answer-label\">\u043d\u0435\u0442<\/span> <span class=\"tm-article-poll__answer-votes\">             0           <\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress\" style=\"width:0%;\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__stats\">        \u041f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b\u0438 2 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.           \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043d\u0435\u0442.      <\/div>\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\/694708\/\"> https:\/\/habr.com\/ru\/post\/694708\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0422\u0438\u043f\u0438\u0447\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f. \u041a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 UART \u043d\u0435 \u043f\u0440\u043e\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0438\u043b\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0433\u0434\u0435-\u0442\u043e \u0437\u0430\u0432\u0438\u0441\u043b\u043e \u0432 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u043e\u0441\u043b\u0435 reset. \u0418\u043b\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0434\u0430\u0447\u0438 \u043f\u0438\u0442\u0430\u043d\u0438\u044f. \u041a\u0430\u043a \u0436\u0435 \u043f\u043e\u043d\u044f\u0442\u044c \u043d\u0430 \u043a\u0430\u043a\u043e\u0439 \u0441\u0442\u0440\u043e\u0447\u043a\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 run-time \u043e\u0448\u0438\u0431\u043a\u0430? \u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u044d\u0442\u043e \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u0430\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 JTAG \u0438\u043b\u0438 SWD.<\/p>\n<p>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e \u0436\u0435\u043b\u0435\u0437\u043e. \u0420\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0431\u0443\u0434\u0443 \u0432\u043e\u0442 \u0441 \u044d\u0442\u043e\u0439 \u043f\u043b\u0430\u0442\u043e\u0439<\/p>\n<figure class=\"full-width\"><figcaption>\u041e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u0430\u044f \u043f\u043b\u0430\u0442\u0430 nRF5340-DK<\/figcaption><\/figure>\n<p>\u0422\u0443\u0442 \u043d\u0430 board(e) \u043a\u0430\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440 U2 \u0442\u0430\u043a \u0438 \u0441\u0430\u043c \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 U1 (Target).  \u041e\u0431\u0430 94pin(\u043d\u043e\u0432\u044b\u0435) nrf5340 \u0432 \u043a\u043e\u0440\u043f\u0443\u0441\u0435 aQFN94. \u0421\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u044b \u043e\u043d\u0438 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c SWD. \u0412\u043d\u0443\u0442\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e 2 \u044f\u0434\u0440\u0430 Arm Cortex-M33 (Armv8-M). \u041d\u0430 \u0443\u043b\u0438\u0446\u0443 \u0442\u0430\u043a\u0436\u0435 \u0432\u044b\u0445\u043e\u0434\u0438\u0442 2 UART(\u0430) \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438. \u041e\u043d\u0438 \u0436\u0435 \u043f\u0440\u043e\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u043e USB (J2) \u043d\u0430 DeskTop.<\/p>\n<p>\u0427\u0442\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0438\u0437 \u0441\u043e\u0444\u0442\u0430?<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0423\u0442\u0438\u043b\u0438\u0442\u0430<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"234\" width=\"234\">\n<p align=\"left\"><strong>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>Path<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">arm-none-eabi-gdb.exe<\/p>\n<\/td>\n<td data-colwidth=\"234\" width=\"234\">\n<p align=\"left\">GDB Client \u0434\u043b\u044f ARM<\/p>\n<\/td>\n<td>\n<p align=\"left\">C:\\Program Files (x86)\\GNU Arm Embedded Toolchain\\10 2021.10\\bin<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">JLinkGDBServer.exe<\/p>\n<\/td>\n<td data-colwidth=\"234\" width=\"234\">\n<p align=\"left\">GDB Server<\/p>\n<\/td>\n<td>\n<p align=\"left\">C:\\Program Files (x86)\\SEGGER\\JLink\\<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">nrfjprog.exe<\/p>\n<\/td>\n<td data-colwidth=\"234\" width=\"234\">\n<p align=\"left\">\u041f\u0440\u043e\u0448\u0438\u0432\u0430\u043b\u044c\u0449\u0438\u043a \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 <\/p>\n<\/td>\n<td>\n<p align=\"left\">C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">ttermpro.exe<\/p>\n<\/td>\n<td data-colwidth=\"234\" width=\"234\">\n<p align=\"left\">\u0422\u0435\u0440\u043c\u0438\u043d\u0430\u043b COM \u043f\u043e\u0440\u0442\u043e\u0432<\/p>\n<\/td>\n<td>\n<p align=\"left\">C:\\Program Files (x86)\\teraterm<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u042d\u0442\u043e\u0433\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e. <\/p>\n<p><strong>\u0424\u0430\u0437\u0430 1 \u0417\u0430\u043b\u0438\u0442\u044c \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 \u0432 Target<\/strong><\/p>\n<p>\u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u043e\u0442 \u044d\u0442\u0438\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c<\/p>\n<pre><code class=\"bash\">echo off cls  set com_port_num=10 set baudrate=115200 set project_name=headset_app set project_dir=%~dp0 set NRF_SDK_DIR=C:\/ncs\/v2.1.0  set SDK_PROJECT_DIR=%NRF_SDK_DIR%\/nrf\/applications\/nrf5340_dk_audio_w IF \"%1\"==\"\" (     echo set dflt SDK ver      set ARTEFACT_HEX=%SDK_PROJECT_DIR%\\build\\headset_app\\zephyr\\zephyr.hex ) ELSE (     echo set dflt SDK from argument      set ARTEFACT_HEX=%1 ) echo Artefact hex: [%ARTEFACT_HEX%]   set tools_dir=%cd%\\..\\..\\..\\tool echo Project Dir:%project_dir%  set FlashTool=\"C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe\"  set options=--iface USB --family NRF53 --coprocessor CP_APPLICATION --program %ARTEFACT_HEX%  --log --chiperase --verify --reset  call %FlashTool% %options% echo tools_dir=%tools_dir%  call %tools_dir%\\launch_terminal.bat 9 %baudrate% %project_name% call %tools_dir%\\launch_terminal.bat 10 %baudrate% %project_name% <\/code><\/pre>\n<p>\u041e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u0432 \u044d\u0442\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443 \u0432 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 nrf5340.<\/p>\n<p><strong>\u0424\u0430\u0437\u0430 2 \u0417\u0430\u043f\u0443\u0441\u043a GDB \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (Back-End)<\/strong><\/p>\n<p>GDB \u0441\u0435\u0440\u0432\u0435\u0440 \u044d\u0442\u043e \u0443\u0442\u0438\u043b\u0438\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440-\u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a. \u0418\u043c\u0435\u043d\u043d\u043e \u043e\u043d\u0430 \u043e\u0431\u0449\u0430\u0435\u0442\u0441\u044f \u0441 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c. \u041d\u0430\u0434\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c GDB \u0441\u0435\u0440\u0432\u0435\u0440. \u0412\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u044d\u0442\u043e\u0439 \u0443\u0442\u0438\u043b\u0438\u0442\u044b.<\/p>\n<pre><code class=\"bash\">  echo off cls set GDBServerOpt = -select USB -device nRF5340_xxAA_APP -endian little -if SWD -speed 400 -ir -LocalhostOnly -logtofile -log \"C:\\projects\\code_base_workspace\\code_base_firmware\\tool\\GdbServerLog.txt\"  set GDBServerDir=\"C:\\Program Files (x86)\\SEGGER\\JLink\\\" set GDBServerPath=%GDBServerDir%JLinkGDBServer.exe\" cd %GDBServerDir% call %GDBServerPath% %GDBServerOpt% <\/code><\/pre>\n<p>\u041d\u0430\u0434\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0441\u0432\u044f\u0437\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440\u0430 \u0438 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0442\u044c. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 SWD.<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>J-link \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0441\u044b\u0445 \u0447\u0438\u043f\u043e\u0432 \u043e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0439 <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0447\u0438\u043f nrf5340<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>GDB \u0441\u0435\u0440\u0432\u0435\u0440 J-Link \u0437\u0430\u043f\u0443\u0449\u0435\u043d <u>\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e<\/u>. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440 (S\/N: 1050009032) \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043f\u043e <strong>USB<\/strong>. Target \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d \u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440\u0443 \u043f\u043e <strong>SWD<\/strong>.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0432\u043e\u0442 \u043f\u043e\u043b\u043d\u044b\u0439 \u043b\u043e\u0433 \u043e\u0436\u0438\u0434\u0430\u044e\u0449\u0435\u0433\u043e GDB \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/p>\n<details class=\"spoiler\">\n<summary>Hidden text<\/summary>\n<div class=\"spoiler__content\">\n<p>SEGGER J-Link GDB Server V7.66a GUI Version<\/p>\n<p>JLinkARM.dll V7.66a (DLL compiled May 19 2022 15:13:27)<\/p>\n<p>&#8212;&#8212;GDB Server start settings&#8212;&#8212;<br \/> GDBInit file:                  none<br \/> GDB Server Listening port:     2331<br \/> SWO raw output listening port: 2332<br \/> Terminal I\/O port:             2333<br \/> Accept remote connection:      localhost only<br \/> Generate logfile:              off<br \/> Verify download:               off<br \/> Init regs on start:            off<br \/> Silent mode:                   off<br \/> Single run mode:               off<br \/> Target connection timeout:     5000 ms<br \/> &#8212;&#8212;J-Link related settings&#8212;&#8212;<br \/> J-Link Host interface:         USB<br \/> J-Link script:                 none<br \/> J-Link settings file:          none<br \/> &#8212;&#8212;Target related settings&#8212;&#8212;<br \/> Target device:                 Unspecified<br \/> Target interface:              SWD<br \/> Target interface speed:        4000kHz<br \/> Target endian:                 little<\/p>\n<p>Connecting to J-Link&#8230;<br \/> J-Link is connected.<br \/> Firmware: J-Link OB-nRF5340-NordicSemi compiled Dec  3 2021 15:46:49<br \/> Hardware: V1.00<br \/> S\/N: 1050009032<br \/> Checking target voltage&#8230;<br \/> Target voltage: 3.30 V<br \/> Listening on TCP\/IP port 2331<br \/> Connecting to target&#8230;<br \/> Connected to target<br \/> Waiting for GDB connection&#8230;<\/p>\n<\/div>\n<\/details>\n<p>\u0421\u0435\u0439\u0447\u0430\u0441 GDB \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0436\u0438\u0434\u0430\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u043e TCP \u043f\u043e\u0440\u0442\u0443: <strong>2331<\/strong><\/p>\n<p>\u041d\u0430 \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0435 nRF5340-DK, \u0435\u0441\u0442\u044c <u>\u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439<\/u> \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440 J-Link \u0438 \u0442\u0430\u043c \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u043e \u0441\u0432\u0435\u0442\u0438\u0442\u0441\u044f \u0437\u0435\u043b\u0435\u043d\u044b\u0439 LED, \u043e\u0442 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0430.<\/p>\n<p><strong>\u0424\u0430\u0437\u0430 3 \u0417\u0430\u043f\u0443\u0441\u043a GDB \u043a\u043b\u0438\u0435\u043d\u0442\u0430 (Front-End<\/strong> <strong>)<\/strong><\/p>\n<p>\u0415\u0441\u043b\u0438 GDB \u0441\u0435\u0440\u0432\u0435\u0440 \u043c\u043e\u0436\u043d\u043e \u043c\u0435\u0442\u0430\u0444\u043e\u0440\u0438\u0447\u043d\u043e \u0441\u0447\u0438\u0442\u0430\u0442\u044c Back-End(\u043e\u043c), \u0442\u043e Front-End \u0447\u0430\u0441\u0442\u044c\u044e \u0434\u043b\u044f \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0439 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u0432\u044b\u0441\u0442\u0443\u043f\u0430\u0435\u0442 GDB \u043a\u043b\u0438\u0435\u043d\u0442. \u0412\u043e\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0435\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430.<\/p>\n<pre><code> \"C:\\Program Files (x86)\\GNU Arm Embedded Toolchain\\10 2021.10\\bin\\arm-none-eabi-gdb.exe\" --help \"C:\\Program Files (x86)\\GNU Arm Embedded Toolchain\\10 2021.10\\bin\\arm-none-eabi-gdb.exe\"  C:\/ncs\/v2.1.0\/nrf\/applications\/nrf5340_dk_audio_w\/build\/headset_app\/zephyr\/zephyr.elf<\/code><\/pre>\n<p>GBD \u043a\u043b\u0438\u0435\u043d\u0442 \u0441\u043c\u043e\u0433 \u043f\u043e\u0434\u0445\u0432\u0430\u0442\u0438\u0442\u044c *.elf \u0444\u0430\u0439\u043b \u0441 \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u043c\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u0430\u043c\u0438 <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0441\u0442\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a GBD \u0441\u0435\u0440\u0432\u0435\u0440\u0443. \u042d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439.<\/p>\n<pre><code>target remote localhost:2331<\/code><\/pre>\n<p>\u0421\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b\u0441\u044f. \u0421\u0435\u0439\u0447\u0430\u0441 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u043d\u0430 \u043f\u0430\u0443\u0437\u0435. HeartBeat LED \u043d\u0435 \u043c\u0438\u0433\u0430\u0435\u0442, UART-Shell \u043d\u0435 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442.<\/p>\n<p>\u0414\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u043d\u0430\u0434\u043e \u043d\u0430\u0431\u0440\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443  <strong>continue<\/strong><\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c HeartBeat LED \u043c\u0438\u0433\u0430\u0435\u0442 CLI \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442. LED \u043d\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0442\u043e\u0440\u0435 \u0442\u043e\u0436\u0435 \u043c\u0438\u0433\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u043a-\u0442\u043e \u0430\u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u043d\u043e.<\/p>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0441\u043d\u043e\u0432\u0430 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043d\u0430\u0434\u043e \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 GDB \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0430\u0436\u0430\u0442\u044c Ctrl+C.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0442\u043e\u0447\u043a\u0443 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430. \u041c\u0435\u043d\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044f <strong>bool hw_init(void)<\/strong><\/p>\n<pre><code>(gdb) break hw_init<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u0442\u043e\u0447\u0435\u043a \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <\/p>\n<pre><code>(gdb) info b<\/code><\/pre>\n<p>\u0412\u043e\u0442 \u044d\u0442\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f  <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0421\u043d\u043e\u0432\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435. \u041a\u043e\u043c\u0430\u043d\u0434\u0430 c<\/p>\n<pre><code>(gdb) c<\/code><\/pre>\n<p>\u041d\u043e \u0432\u043e\u0442 \u043d\u0435\u0437\u0430\u0434\u0430\u0447\u0430. \u0422\u043e\u0447\u043a\u0430 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u0436\u0435 \u0434\u0430\u0432\u043d\u043e \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430. \u041d\u0430\u0434\u043e \u043a\u0430\u043a-\u0442\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c trarget, \u0447\u0442\u043e\u0431\u044b \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u043d\u043e\u0432\u0430 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430.<\/p>\n<p>\u0412\u043e\u0442 \u0442\u0443\u0442 \u0442\u043e \u043d\u0430\u043c \u043a\u0430\u043a \u0440\u0430\u0437 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b. \u042d\u0442\u043e \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u043e\u0432\u0435\u0440\u0445 UART \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u044f\u043c\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u043d\u0430 Target(\u0435). \u042f \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043f\u0440\u043e\u0448\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u0432 UART CLI <\/p>\n<pre><code>-> kernel reboot cold<\/code><\/pre>\n<p>\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u044f \u0434\u0430\u0436\u0435 \u043e\u0442 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0440\u0443\u043a \u043d\u0435 \u043e\u0442\u0432\u043e\u0434\u0438\u043b. \u0418 \u0432\u043e\u0442 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a \u0437\u0430\u0446\u0435\u043f\u0438\u043b \u0444\u0443\u043d\u043a\u0446\u0438\u044e bool <strong>hw_init<\/strong>(void). \u042d\u0442\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0438\u043d\u0435\u0440\u0433\u0438\u044f GDB \u0438 UART-CLI. \u0423\u0441\u043f\u0435\u0445.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043e\u0434\u043d\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u043a\u043e\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <strong>n<\/strong>. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <strong>info locals<\/strong> <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u0439\u0442\u0438 \u0432\u043d\u0443\u0442\u0440\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 <strong>s.<\/strong><\/p>\n<p>\u0421\u0430\u043c\u043e \u0441\u043e\u0431\u043e\u0439, \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 GBD \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0435\u0441\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043a\u043e\u043c\u0430\u043d\u0434 \u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0442\u0440\u0435\u043b\u043a\u0430\u043c\u0438 \u0432\u0432\u0435\u0440\u0445 \u0438 \u0432\u043d\u0438\u0437 \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435 \u043d\u0430\u0431\u0438\u0440\u0430\u0442\u044c \u0443\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u0432 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u044b.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0432\u044b\u0439\u0442\u0438 \u0438\u0437 GDB \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0430\u0434\u043e \u043d\u0430\u0431\u0440\u0430\u0442\u044c \u0432 \u0435\u0433\u043e \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 q. Target \u0432\u0441\u0435 \u0435\u0449\u0435 suspended. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u0434\u043e \u0437\u0430\u043a\u0440\u044b\u0442\u044c GDB \u0441\u0435\u0440\u0432\u0435\u0440. \u0422\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e Target \u0441\u0442\u0430\u043d\u0435\u0442 resumed \u0438 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0441\u0432\u043e\u0439 \u043a\u043e\u0434.<\/p>\n<p>\u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c GDB \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 GDB \u043a\u043b\u0438\u0435\u043d\u0442 \u043e\u0434\u043d\u0438\u043c \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c.<\/p>\n<pre><code class=\"bash\">echo off cls  set FIRMWARE_FILE=C:\/ncs\/v2.1.0\/nrf\/applications\/nrf5340_dk_audio_w\/build\/headset_app\/zephyr\/zephyr.elf set GDB_CLIENT=\"C:\\Program Files (x86)\\GNU Arm Embedded Toolchain\\10 2021.10\\bin\\arm-none-eabi-gdb.exe\"  set tools_dir=%cd%\\..\\..\\..\\tool start %tools_dir%\\0_LaunchGdbServerNrfAppCore.bat   %GDB_CLIENT% --help %GDB_CLIENT% %FIRMWARE_FILE%<\/code><\/pre>\n<p>\u0421\u0443\u043c\u043c\u0438\u0440\u0443\u044f \u0432\u044b\u0448\u0435\u0441\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435, \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u0432\u043e\u0442 \u044d\u0442\u043e\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u0445\u0435\u043c\u043e\u0439 <\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0448\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0430 \u043f\u043e \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0443\u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0433\u043e GDB \u043a\u043b\u0438\u0435\u043d\u0442\u0430 <\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\"><strong>short<\/strong>  <\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\"><strong>full<\/strong>  <\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>description<\/strong>  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">&#8212;<\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">info args  <\/p>\n<\/td>\n<td>\n<p align=\"left\">Show current function arguments<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">i b  <\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">info b  <\/p>\n<\/td>\n<td>\n<p align=\"left\">List all breakpoints  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">bt<\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">backtrace <\/p>\n<\/td>\n<td>\n<p align=\"left\">show function call stack<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">n<\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">next  <\/p>\n<\/td>\n<td>\n<p align=\"left\">Step over functions  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">f<\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">finish  <\/p>\n<\/td>\n<td>\n<p align=\"left\">Execute the rest of the current function. Step out of the current function.  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">s<\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">step<\/p>\n<\/td>\n<td>\n<p align=\"left\">Step into functions  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">p count  <\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">\n<\/td>\n<td>\n<p align=\"left\">Print the value of a variable count  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">c<\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">continue  <\/p>\n<\/td>\n<td>\n<p align=\"left\">Continue execution up to the next breakpoint or until termination if no breakpoints are encountered  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">&#8212;<\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">delete n  <\/p>\n<\/td>\n<td>\n<p align=\"left\">Delete breakpoint number n  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">&#8212;<\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">info locals  <\/p>\n<\/td>\n<td>\n<p align=\"left\">show local variables<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">&#8212;<\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">target remote localhost:2331  <\/p>\n<\/td>\n<td>\n<p align=\"left\">Connect to J-Link<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">q<\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">quit  <\/p>\n<\/td>\n<td>\n<p align=\"left\">quit gdb  <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"96\" width=\"96\">\n<p align=\"left\">b function  <\/p>\n<\/td>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"left\">\n<\/td>\n<td>\n<p align=\"left\">Set a breakpoint at the beginning of function  <\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0411\u0443\u0434\u0443 \u0442\u0430\u043a\u0436\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0440\u0435\u0435\u0441\u0442\u0440 \u043a\u043e\u043c\u0430\u043d\u0434 GDB \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0432\u043e\u0442 \u0442\u0443\u0442<br \/><a href=\"https:\/\/docs.google.com\/spreadsheets\/d\/1AWD8GsDfaA9dtdsfqgbB1klagou1yrREc1AAK9CRUik\/edit#gid=0\" rel=\"noopener noreferrer nofollow\">https:\/\/docs.google.com\/spreadsheets\/d\/1AWD8GsDfaA9dtdsfqgbB1klagou1yrREc1AAK9CRUik\/edit#gid=0<\/a><br \/><strong><br \/>\u0412\u044b\u0432\u043e\u0434<\/strong><\/p>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435 \u0432 GDB \u043e\u0442\u043b\u0430\u0434\u043a\u0435 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u043d\u0435\u0442 \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0441\u044f\u043a\u0438\u0435 \u0442\u0430\u043c \u0446\u0438\u043a\u043b\u043e\u043f\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0438 \u0434\u043e\u0440\u043e\u0433\u0443\u0449\u0438\u0435 IDE \u0434\u043b\u044f \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0439 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u043d\u0435 \u043e\u0441\u043e\u0431\u043e-\u0442\u043e \u0438 \u043d\u0443\u0436\u043d\u044b \u043a\u0430\u043a \u0431\u044b. \u041a\u043e\u043d\u0441\u043e\u043b\u044c \u0434\u0430\u0436\u0435 \u043b\u0443\u0447\u0448\u0435 \u0432 \u0442\u043e\u043c \u0441\u043c\u044b\u0441\u043b\u0435, \u0447\u0442\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u0443\u0442\u0438 (\u043a\u043e\u0434\u0435), \u0430 \u043d\u0435 \u043d\u0430 \u0441\u0442\u0440\u0430\u0437\u0438\u043a\u0430\u0445 \u0438\u0437 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f IDE. \u041c\u043e\u0436\u043d\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u0442\u044c \u0431\u0435\u0437 \u043a\u043e\u0434\u0430, \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0432 \u043f\u043e \u043f\u043e\u0447\u0442\u0435 \u043e\u0434\u0438\u043d \u043b\u0438\u0448\u044c *.elf \u0444\u0430\u0439\u043b.<\/p>\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043d\u0430\u043a\u043b\u0430\u0434\u043d\u044b\u0435 \u0440\u0430\u0441\u0445\u043e\u0434\u044b \u043d\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 Toolchain(\u0430) \u0434\u043b\u044f \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0439 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0438 \u0432\u0441\u0451 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e.<\/p>\n<p><strong>Links<\/strong><\/p>\n<p><a href=\"https:\/\/condor.depaul.edu\/glancast\/373class\/docs\/gdb.html#Setting_Breakpoints\" rel=\"noopener noreferrer nofollow\">https:\/\/condor.depaul.edu\/glancast\/373class\/docs\/gdb.html#Setting_Breakpoints<\/a><\/p>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/181738\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/post\/181738\/<\/a><br \/><a href=\"https:\/\/habr.com\/ru\/post\/535960\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/post\/535960\/<\/a><br \/><a href=\"https:\/\/habr.com\/ru\/post\/546216\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/post\/546216\/<\/a><br \/><a href=\"https:\/\/mcuoneclipse.com\/2015\/03\/25\/command-line-programming-and-debugging-with-gdb\/\" rel=\"noopener noreferrer nofollow\">https:\/\/mcuoneclipse.com\/2015\/03\/25\/command-line-programming-and-debugging-with-gdb\/<\/a><br \/><a href=\"https:\/\/www.electricmonk.nl\/docs\/gdb_debugging\/gdb_debugging.html\" rel=\"noopener noreferrer nofollow\">https:\/\/www.electricmonk.nl\/docs\/gdb_debugging\/gdb_debugging.html<\/a><\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441 *<\/strong><\/p>\n<p>\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0442\u043e\u0447\u0435\u043a \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430 JTAG \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c?<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <\/p>\n<div class=\"tm-article-poll\">\n<div class=\"tm-notice tm-article-poll__notice tm-notice_positive\"><!----> <\/p>\n<div class=\"tm-notice__inner\"><!----> <\/p>\n<div data-test-id=\"notice-content\" class=\"tm-notice__content\"><span>\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a rel=\"nofollow\" href=\"\/kek\/v1\/auth\/habrahabr\/?back=\/ru\/post\/694708\/&#038;hl=ru\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/span><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__header\">\u0412\u044b \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0443\u0435\u0442\u0435 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u0443\u044e \u043e\u0442\u043b\u0430\u0434\u043a\u0443?<\/div>\n<div class=\"tm-article-poll__answers\">\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent tm-article-poll__answer-percent_winning\">             100%           <\/span> <span class=\"tm-article-poll__answer-label\">\u0434\u0430<\/span> <span class=\"tm-article-poll__answer-votes\">             2           <\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress tm-article-poll__answer-progress_winning\" style=\"width:100%;\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">             0%           <\/span> <span class=\"tm-article-poll__answer-label\">\u043d\u0435\u0442<\/span> <span class=\"tm-article-poll__answer-votes\">             0           <\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress\" style=\"width:0%;\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__stats\">        \u041f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b\u0438 2 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.           \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043d\u0435\u0442.      <\/div>\n<\/div>\n<div class=\"tm-article-poll\">\n<div class=\"tm-notice tm-article-poll__notice tm-notice_positive\"><!----> <\/p>\n<div class=\"tm-notice__inner\"><!----> <\/p>\n<div data-test-id=\"notice-content\" class=\"tm-notice__content\"><span>\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a rel=\"nofollow\" href=\"\/kek\/v1\/auth\/habrahabr\/?back=\/ru\/post\/694708\/&#038;hl=ru\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/span><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__header\">\u0412\u044b \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0443\u0435\u0442\u0435 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u0443\u044e \u043e\u0442\u043b\u0430\u0434\u043a\u0443 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443?<\/div>\n<div class=\"tm-article-poll__answers\">\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">             50%           <\/span> <span class=\"tm-article-poll__answer-label\">\u0434\u0430<\/span> <span class=\"tm-article-poll__answer-votes\">             1           <\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress\" style=\"width:50%;\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent tm-article-poll__answer-percent_winning\">             50%           <\/span> <span class=\"tm-article-poll__answer-label\">\u043d\u0435\u0442<\/span> <span class=\"tm-article-poll__answer-votes\">             1           <\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress tm-article-poll__answer-progress_winning\" style=\"width:50%;\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__stats\">        \u041f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b\u0438 2 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.           \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043d\u0435\u0442.      <\/div>\n<\/div>\n<div class=\"tm-article-poll\">\n<div class=\"tm-notice tm-article-poll__notice tm-notice_positive\"><!----> <\/p>\n<div class=\"tm-notice__inner\"><!----> <\/p>\n<div data-test-id=\"notice-content\" class=\"tm-notice__content\"><span>\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a rel=\"nofollow\" href=\"\/kek\/v1\/auth\/habrahabr\/?back=\/ru\/post\/694708\/&#038;hl=ru\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/span><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__header\">\u0412\u044b \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0443\u0435\u0442\u0435 \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u0443\u044e \u043e\u0442\u043b\u0430\u0434\u043a\u0443 \u0447\u0435\u0440\u0435\u0437 IDE?<\/div>\n<div class=\"tm-article-poll__answers\">\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent tm-article-poll__answer-percent_winning\">             100%           <\/span> <span class=\"tm-article-poll__answer-label\">\u0434\u0430<\/span> <span class=\"tm-article-poll__answer-votes\">             2           <\/span><\/div>\n<div class=\"tm-article-poll__answer-bar\">\n<div class=\"tm-article-poll__answer-progress tm-article-poll__answer-progress_winning\" style=\"width:100%;\"><\/div>\n<\/div>\n<\/div>\n<div class=\"tm-article-poll__answer\">\n<div class=\"tm-article-poll__answer-data\"><span class=\"tm-article-poll__answer-percent\">          <\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\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-340089","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/340089","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=340089"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/340089\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=340089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=340089"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=340089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}