{"id":329860,"date":"2022-02-19T15:01:11","date_gmt":"2022-02-19T15:01:11","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=329860"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=329860","title":{"rendered":"<span>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 VSCode \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u043e\u0433\u043e RISC-V SoC<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u042f \u0432\u0441\u0435\u0439 \u0434\u0443\u0448\u043e\u0439 \u043b\u044e\u0431\u043b\u044e \u043c\u0430\u043b\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439. \u0417\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u0438\u0445 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b \u0438\u043c\u0435\u044e\u0442 \u0444\u0438\u0447\u0438, \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0443 \u0438\u0445 \u0431\u043e\u043b\u0435\u0435 \u0438\u043c\u0435\u043d\u0438\u0442\u044b\u0445 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043e\u0432, \u043f\u043e \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439 \u0446\u0435\u043d\u0435 (\u043e\u0434\u043d\u0430\u0436\u0434\u044b \u043c\u0435\u043d\u044f \u043e\u0447\u0435\u043d\u044c \u0432\u044b\u0440\u0443\u0447\u0438\u043b\u043e \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u0432 SoC \u043f\u043e\u043b\u0443\u0430\u043c\u043f\u0435\u0440\u043d\u043e\u0439 \u0437\u0430\u0440\u044f\u0434\u043a\u0438 \u0434\u043b\u044f \u0430\u043a\u043a\u0443\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 LDO, \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b\u0445 \u0437\u0430\u043f\u0438\u0442\u0430\u0442\u044c \u0432\u0441\u044e \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u044e). \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0441\u0440\u043e\u043a\u0438 \u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u043a\u0430\u043a\u043e\u0433\u043e-\u043d\u0438\u0431\u0443\u0434\u044c <a href=\"http:\/\/www.wch.cn\/\" rel=\"noopener noreferrer nofollow\">Nanjing Qinheng Microelectronics<\/a> \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0438\u044f\u0442\u043d\u043e \u0443\u0434\u0438\u0432\u0438\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432, \u043f\u0440\u0438\u0432\u044b\u043a\u0448\u0438\u0445 \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0434\u0432\u0430 \u043a\u043e\u0432\u0438\u0434\u043d\u044b\u0445 \u0433\u043e\u0434\u0430 \u043a \u043a\u043e\u043d\u0441\u043a\u043e\u043c\u0443 \u0446\u0435\u043d\u043d\u0438\u043a\u0443 \u0438 52+ \u043d\u0435\u0434\u0435\u043b\u044f\u043c \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u043d\u0430 ST, TI, Nordic \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0435 \u0432\u0435\u0449\u0438. \u041b\u043e\u0433\u0438\u0441\u0442\u0438\u043a\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u0440\u0438\u044f\u0442\u043d\u043e\u0439, \u0435\u0441\u043b\u0438 \u043c\u0430\u0441\u0441\u043e\u0432\u043e\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 \u041a\u0438\u0442\u0430\u0435 \u0438 \u043d\u0430 \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0435 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u0430\u0448\u0430 \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430, \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u0430\u044f \u0440\u0430\u0437\u0440\u0443\u043b\u0438\u0442\u044c \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0449\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b. \u0414\u0430 \u0438 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0430 \u0438\u0437 \u0428\u0435\u043d\u044c\u0447\u0436\u0435\u043d\u044f \u0432 \u0428\u0435\u043d\u044c\u0447\u0436\u0435\u043d\u044c \u043f\u0440\u043e\u0449\u0435 \u0438 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u0435\u0439, \u0447\u0435\u043c \u0441\u043e \u0441\u043a\u043b\u0430\u0434\u0430 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u044c\u044e\u0442\u043e\u0440\u0430 \u0438 \u0440\u0430\u0441\u0442\u0430\u043c\u043e\u0436\u043a\u0430 \u0432 \u0420\u043e\u0441\u0441\u0438\u0438.<\/p>\n<h2>\u0427\u0442\u043e \u0433\u043e\u0442\u043e\u0432\u0438\u043c, \u0448\u0435\u0444?<\/h2>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/65f\/95c\/77e\/65f95c77ef37e73fa26904dea33d1239.png\" alt=\"\u0412\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0437\u0432\u0435\u0440\u044c. \u0417\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043e\u0431 Arduino-\u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u0438\u043d\u043e\u0432 \u043d\u0430 \u043e\u0442\u043b\u0430\u0434\u043a\u0430\u0445, \u0437\u0434\u0435\u0441\u044c \u0441\u0432\u043e\u0439 \u043e\u0441\u043e\u0431\u044b\u0439 \u043f\u0443\u0442\u044c.\" title=\"\u0412\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0437\u0432\u0435\u0440\u044c. \u0417\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043e\u0431 Arduino-\u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u0438\u043d\u043e\u0432 \u043d\u0430 \u043e\u0442\u043b\u0430\u0434\u043a\u0430\u0445, \u0437\u0434\u0435\u0441\u044c \u0441\u0432\u043e\u0439 \u043e\u0441\u043e\u0431\u044b\u0439 \u043f\u0443\u0442\u044c.\" width=\"851\" height=\"901\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/65f\/95c\/77e\/65f95c77ef37e73fa26904dea33d1239.png\"\/><figcaption>\u0412\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0437\u0432\u0435\u0440\u044c. \u0417\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043e\u0431 Arduino-\u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u0438\u043d\u043e\u0432 \u043d\u0430 \u043e\u0442\u043b\u0430\u0434\u043a\u0430\u0445, \u0437\u0434\u0435\u0441\u044c \u0441\u0432\u043e\u0439 \u043e\u0441\u043e\u0431\u044b\u0439 \u043f\u0443\u0442\u044c.<\/figcaption><\/figure>\n<p>\u041d\u0435\u0437\u0430\u0434\u043e\u043b\u0433\u043e \u0434\u043e \u043d\u043e\u0432\u043e\u0433\u043e\u0434\u043d\u0438\u0445 \u043f\u0440\u0430\u0437\u0434\u043d\u0438\u043a\u043e\u0432 \u043c\u043d\u0435 \u0432 \u0440\u0443\u043a\u0438 \u043f\u043e\u043f\u0430\u043b <a href=\"http:\/\/wiki.telink-semi.cn\/wiki\/Hardware\/B91_Generic_Starter_Kit_Hardware_Guide\/\" rel=\"noopener noreferrer nofollow\">B91 Generic Starter Kit<\/a>. \u041e\u0442\u043b\u0430\u0434\u043a\u0430 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u043d\u0430 \u0431\u0430\u0437\u0435 <a href=\"http:\/\/wiki.telink-semi.cn\/doc\/ds\/PB_TLSR9_Series_Product_Brief.pdf\" rel=\"noopener noreferrer nofollow\">TLSR9518A<\/a> &#8212; RISC-V SoC \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 Bluetooth Classic, BLE, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c AI-\u0434\u0432\u0438\u0436\u043a\u043e\u043c \u0438 \u043a\u0443\u0447\u0435\u0439 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043b\u044e\u0448\u0435\u043a, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0445 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0435 \u043d\u043e\u0441\u0438\u043c\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043f\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043d\u0438\u0437\u043a\u043e\u0439 \u0446\u0435\u043d\u0435. \u041d\u0430 \u043e\u0442\u043b\u0430\u0434\u043a\u0435 \u0440\u0430\u0441\u043f\u0430\u044f\u043d \u0441\u0442\u0430\u0440\u0448\u0438\u0439 \u0447\u0438\u043f \u0438\u0437 \u043b\u0438\u043d\u0435\u0439\u043a\u0438, \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u0437\u0430\u0434\u0430\u0447\u0438, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u0430\u0443\u0434\u0438\u043e \u0438 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u043a\u0430\u043a \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e Bluetooth, \u0442\u0430\u043a \u0438 BLE, \u043d\u043e \u0432 \u043b\u0438\u043d\u0435\u0439\u043a\u0435 \u0435\u0441\u0442\u044c \u0438 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430. \u0412 \u043e\u0431\u0449\u0435\u043c &#8212; \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442 \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0437\u0432\u0435\u044f\u0442\u044c \u0442\u043e\u0441\u043a\u0443 \u0438 \u043e\u0442\u0432\u043b\u0435\u0447\u044c \u043e\u0442 \u0442\u0430\u0437\u0438\u043a\u0430 \u0441 \u043e\u043b\u0438\u0432\u044c\u0435.<br \/>Telink \u0440\u0430\u043d\u044c\u0448\u0435 \u0431\u044b\u043b \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0441\u0432\u0435\u0440\u0445\u0434\u0435\u0448\u0435\u0432\u044b\u043c BLE-\u0447\u0438\u043f\u0430\u043c, \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c \u043d\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u044f\u0434\u0440\u0435, \u043d\u043e \u0441 \u043d\u0435\u0434\u0430\u0432\u043d\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432 \u043b\u0438\u043d\u0435\u0439\u043a\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0438 RISC-V.<br \/>\u041d\u0430 <a href=\"http:\/\/wiki.telink-semi.cn\/wiki\/IDE-and-Tools\/Compiler_Linux\/\" rel=\"noopener noreferrer nofollow\">\u0432\u0438\u043a\u0438<\/a> \u0432\u0435\u043d\u0434\u043e\u0440\u0430 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 IDE, \u0442\u0443\u043b\u0447\u0435\u0439\u043d \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u0434\u0430. \u0415\u0441\u043b\u0438 \u0431\u044b \u043c\u044b \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u043e\u0435 \u0432 \u043d\u0430\u0448\u0438\u0445 \u043a\u0440\u0430\u044f\u0445, \u0442\u043e \u044d\u0442\u043e\u0433\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u043d\u043e \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u043f\u0440\u0438\u0433\u043e\u0442\u043e\u0432\u0438\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u044e\u0440\u043f\u0440\u0438\u0437\u043e\u0432:<\/p>\n<ul>\n<li>\n<p>IDE \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434 \u0432\u0438\u043d\u0434\u0443, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0443 \u043c\u0435\u043d\u044f \u043d\u0435\u0442 (\u0434\u0430 \u0438 \u0442\u044b\u0441\u044f\u0447\u0438 \u0432\u0435\u043d\u0434\u043e\u0440\u0441\u043a\u0438\u0445 IDE \u043d\u0430 \u044d\u043a\u043b\u0438\u043f\u0441\u0435 \u0443\u0436\u0435 \u043d\u0430\u0431\u0438\u043b\u0438 \u043e\u0441\u043a\u043e\u043c\u0438\u043d\u0443. \u0410 \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a WICED-Studio \u043e\u0442\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043e\u0442\u043b\u0430\u0434\u043a\u0443 \u043d\u0430 CYW954907 \u043f\u043e\u043a\u0430 \u044f \u043d\u0435 \u0443\u0431\u0435\u0440\u0443 \u0432\u0441\u0435 \u0431\u0440\u0435\u0439\u043a\u043f\u043e\u0439\u043d\u0442\u044b, \u044f \u043f\u0440\u0438\u043d\u044f\u043b \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f). \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u044f\u0437\u043a\u0443 CMake + VSCode.<\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f IDE \u0438 \u0442\u0443\u043b\u0447\u0435\u0439\u043d, \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0433\u0434\u0435-\u0442\u043e \u0432 \u0442\u0438\u0431\u0435\u0442\u0441\u043a\u043e\u043c \u043c\u043e\u043d\u0430\u0441\u0442\u044b\u0440\u0435, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u043c \u043f\u043e dial-up&#8217;\u0443, \u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435 \u0441\u0440\u0435\u0434\u043d\u044f\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0437\u0430\u043a\u0430\u0447\u043a\u0438 \u0432 10\u043a\u0431\/\u0441 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0442\u0440\u0435\u0445 \u0442\u044b\u0441\u044f\u0447 \u0440\u0430\u0437\u0440\u044b\u0432\u043e\u0432 \u0437\u0430\u043a\u0430\u0447\u043a\u0438 \u043d\u0430\u043c\u0435\u043a\u0430\u044e\u0442 \u043e\u0431 \u044d\u0442\u043e\u043c.<\/p>\n<\/li>\n<li>\n<p>\u0422\u0443\u043b\u0447\u0435\u0439\u043d \u043d\u0435\u043f\u043e\u043b\u043d\u044b\u0439, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438 \u0437\u0430\u0448\u0438\u0442\u044c \u0431\u0438\u043d\u0430\u0440\u044c, \u043d\u043e gdb-\u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u0442\u044c \u0438\u0437-\u0437\u0430 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a. \u042d\u0442\u0438 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043c\u044b \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0440\u0435\u0448\u0438\u0442\u044c.<\/p>\n<\/li>\n<\/ul>\n<h2>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f<\/h2>\n<p>\u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 Ubuntu 21.10, \u0442\u0430\u043a \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u041e\u0421, \u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b.<\/p>\n<pre><code class=\"bash\">sudo apt update &amp;&amp; sudo apt upgrade &amp;&amp; sudo apt autoremove sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 sudo apt install -y make cmake wget unzip libncurses5<\/code><\/pre>\n<h3>\u0422\u0443\u043b\u0447\u0435\u0439\u043d<\/h3>\n<p>\u0415\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u043c\u0443 \u043f\u043e <a href=\"https:\/\/github.com\/andestech\/nds-gnu-toolchain\" rel=\"noopener noreferrer nofollow\">\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438<\/a> \u0438\u043b\u0438 \u0436\u0435 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u0443\u044e \u0441\u0431\u043e\u0440\u043a\u0443 \u0441 \u0433\u0438\u0442\u0445\u0430\u0431\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u044f\u0434\u0440\u0430. \u0423 \u043c\u0435\u043d\u044f \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0435\u0433\u043e \u0441 \u0445\u043e\u0434\u0443, \u0430 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430 \u043d\u0435 \u0431\u044b\u043b\u043e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0435\u0441\u043b\u0438 \u043a\u0442\u043e \u0443\u043a\u0430\u0436\u0435\u0442 \u043d\u0430 \u043f\u0440\u0438\u0447\u0438\u043d\u0443 &#8212; \u0431\u0443\u0434\u0443 \u0432\u0435\u0441\u044c\u043c\u0430 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0435\u043d.<\/p>\n<h4>\u0412\u0435\u0440\u0441\u0438\u044f \u0441 Mculib<\/h4>\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0432\u0435\u043d\u0434\u043e\u0440\u043e\u043c.<\/p>\n<pre><code class=\"bash\">wget https:\/\/github.com\/andestech\/Andes-Development-Kit\/releases\/download\/ast-v3_2_3-release-linux\/nds32le-elf-mculib-v5f.txz mkdir toolchain tar -xvf nds32le-elf-mculib-v5f.txz -C toolchain rm nds32le-elf-mculib-v5f.txz <\/code><\/pre>\n<h4>\u0412\u0435\u0440\u0441\u0438\u044f \u0441 Newlib<\/h4>\n<pre><code class=\"bash\">https:\/\/github.com\/andestech\/Andes-Development-Kit\/releases\/download\/ast-v3_2_3-release-linux\/nds32le-elf-newlib-v5f.txz mkdir toolchain tar -xvf nds32le-elf-newlib-v5f.txz -C toolchain rm nds32le-elf-newlib-v5f.txz <\/code><\/pre>\n<h3>\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u043e\u0442\u043b\u0430\u0434\u043a\u0438<\/h3>\n<p>\u0412 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0435 \u0441 \u0434\u0435\u0432\u0431\u043e\u0440\u0434\u043e\u0439 \u0438\u0434\u0435\u0442 JTAG-\u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a \u043e\u0442 \u0432\u0435\u043d\u0434\u043e\u0440\u0430, \u043d\u043e \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u043e\u0441\u043e\u0431\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0434\u0440\u0443\u0433\u0438\u0445 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u0445 OpenOCD. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043d\u044e\u0430\u043d\u0441 &#8212; TLSR9518<strong>A<\/strong>, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u043d\u0430 \u043f\u043b\u0430\u0442\u0435, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043e\u0446\u0435\u043d\u043a\u0438 \u0438 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0438\u0437 \u0432\u0441\u0435\u0439 \u043b\u0438\u043d\u0435\u0439\u043a\u0438 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 FLASH-\u043f\u0430\u043c\u044f\u0442\u0438.<br \/>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0432\u0435\u043d\u0434\u043e\u0440\u0441\u043a\u0438\u043c \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u043e\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u0430 \u0434\u043b\u044f \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0444\u043b\u0435\u0448\u043a\u0438 \u0438 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a ICE, \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 OpenOCD.<\/p>\n<pre><code class=\"bash\">wget https:\/\/github.com\/andestech\/Andes-Development-Kit\/releases\/download\/ast-v3_2_3-release-linux\/flash.zip wget https:\/\/github.com\/andestech\/Andes-Development-Kit\/releases\/download\/ast-v3_2_3-release-linux\/ice.zip unzip flash.zip -d toolchain unzip ice.zip -d toolchain rm -rf flash.zip ice.zip cd toolchain\/ice\/ chmod +x ICEman.sh .\/ICEman.sh <\/code><\/pre>\n<p>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u0430 TLSR9 \u0442\u0430\u043a\u0436\u0435 \u0437\u0430\u044f\u0432\u043b\u0435\u043d\u0430 \u0432 JLink, \u043d\u043e \u044f \u043f\u0438\u0441\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u044e \u043f\u043e \u0433\u043e\u0440\u044f\u0447\u0438\u043c \u0441\u043b\u0435\u0434\u0430\u043c \u0438 \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u0431\u044b\u043b\u043e \u0435\u0433\u043e \u043f\u043e\u0434 \u0440\u0443\u043a\u043e\u0439.<\/p>\n<h3>SDK<\/h3>\n<p>\u0412 \u0442\u043e\u043c, \u0447\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f SDK, Telink \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0445\u043e\u0434\u0430, \u043f\u043e\u0445\u043e\u0436\u0435\u0433\u043e \u043d\u0430 \u0442\u043e\u0442, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u043a\u043e\u0433\u0434\u0430-\u0442\u043e Nordic \u0441\u043e \u0441\u0432\u0438\u043c\u0438 SoftDevice &#8212; \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 SDK \u043f\u043e\u0434 \u043a\u0430\u0436\u0434\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443. \u041d\u0443\u0436\u043d\u044b\u0439 \u0432\u0430\u043c \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0430 \u0432\u0438\u043a\u0438, \u0430 \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u044f \u0440\u0435\u0448\u0438\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Driver SDK, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0435\u0439 \u0447\u0438\u043f\u0430. \u0421\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e Bluetooth SDK \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0432 \u0441\u0443\u043f\u0435\u0440\u0446\u0438\u043a\u043b\u0435 \u0438 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u043d\u0438 \u043c\u0430\u043b\u0435\u0439\u0448\u0435\u0433\u043e \u043d\u0430\u043c\u0435\u043a\u0430 \u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 FreeRTOS, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 Driver SDK. \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u0438 \u0432\u0435\u043d\u0434\u043e\u0440\u0430 \u043d\u0435 \u0434\u0430\u043b\u0438 \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430, \u043f\u043e\u0447\u0435\u043c\u0443 \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a, \u043d\u043e \u0433\u043e\u0440\u044f\u0447\u043e \u0443\u0432\u0435\u0440\u0438\u043b\u0438, \u0447\u0442\u043e \u043a \u043e\u0441\u0435\u043d\u0438 SDK \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u043c\u043e\u0449\u043d\u044b\u0439 \u0430\u043f\u0434\u0435\u0439\u0442. \u0417\u0430\u044f\u0432\u043b\u0435\u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 Zephyr, \u043d\u043e \u0431\u0435\u0437 BLE \u0438, \u0441\u0443\u0434\u044f \u043f\u043e <a href=\"https:\/\/github.com\/zephyrproject-rtos\/zephyr\/issues\/34282\" rel=\"noopener noreferrer nofollow\">\u0442\u0440\u0435\u0434\u0443<\/a>, \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0432\u0440\u044f\u0434 \u043b\u0438 \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u0441\u044f \u0432 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u0432\u0440\u0435\u043c\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0435\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043f\u0440\u0430\u0432\u043e\u0441\u043b\u0430\u0432\u043d\u043e\u0433\u043e \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u043e\u0433\u043e \u0447\u0438\u043f\u0430 &#8212; \u0438\u043c\u0435\u0439\u0442\u0435 \u0432 \u0432\u0438\u0434\u0443 \u0442\u0430\u043a\u0438\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u043e\u043d\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0447\u0430\u0441\u0442\u043e.<\/p>\n<pre><code class=\"bash\">wget http:\/\/wiki.telink-semi.cn\/tools_and_sdk\/Driver\/B91_Driver_SDK.zip mkdir driver_sdk unzip B91_Driver_SDK.zip -d driver_sdk\/ rm B91_Driver_SDK.zip <\/code><\/pre>\n<h3>\u0421\u0431\u043e\u0440\u043a\u0430<\/h3>\n<p>\u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435, \u0447\u0435\u0433\u043e \u043d\u0430\u043c \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0441\u0435\u0439\u0447\u0430\u0441 &#8212; \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043f\u043e \u0441\u0431\u043e\u0440\u043a\u0435. \u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u044f \u0432\u0437\u044f\u043b <a href=\"http:\/\/wiki.telink-semi.cn\/telink-document-package\/CMakeLists.txt\" rel=\"noopener noreferrer nofollow\">UART_DEMO<\/a>, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u043f\u0440\u0430\u0432\u0438\u0432 \u0435\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0439 out-of-tree \u0441\u0431\u043e\u0440\u043a\u0443 \u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0443.<\/p>\n<pre><code class=\"cmake\">cmake_minimum_required(VERSION 3.0)  project(apptest)  enable_language(C ASM)  set(CMAKE_VERBOSE_MAKEFILE ON) set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS)  set(RISCV_TOOLCHAIN ${CMAKE_CURRENT_LIST_DIR}\/..\/toolchain\/nds32le-elf-mculib-v5f\/bin) set(DRIVER_SDK ${CMAKE_CURRENT_LIST_DIR}\/..\/driver_sdk\/B91_Driver_Demo)  set(CMAKE_SYSTEM_NAME Generic) set(CMAKE_C_COMPILER ${RISCV_TOOLCHAIN}\/riscv32-elf-gcc) set(CMAKE_CXX_COMPILER ${RISCV_TOOLCHAIN}\/riscv32-elf-g++) set(CMAKE_ASM_COMPILER ${RISCV_TOOLCHAIN}\/riscv32-elf-gcc)  set(OBJCOPY ${RISCV_TOOLCHAIN}\/riscv32-elf-objcopy) set(OBJDUMP ${RISCV_TOOLCHAIN}\/riscv32-elf-objdump) set(NM ${RISCV_TOOLCHAIN}\/riscv32-elf-nm) set(READELF ${RISCV_TOOLCHAIN}\/riscv32-elf-readelf) set(SIZE ${RISCV_TOOLCHAIN}\/riscv32-elf-size)  add_definitions(-DMCU_STARTUP_FLASH_B91=1)  add_compile_options(-Og -g3 -mcpu=d25f -mext-dsp -mabi=ilp32f -std=c99) add_compile_options(-ffunction-sections -fdata-sections -fpack-struct -fshort-enums -flto) add_compile_options(-fmessage-length=0 -fomit-frame-pointer -fno-strict-aliasing -fshort-wchar -fuse-ld=bfd) add_compile_options(-Wall -Wno-nonnull-compare -Wextra -Wshadow -Werror -Wno-gnu-zero-variadic-macro-arguments)  set(CMAKE_EXE_LINKER_FLAGS \"-Og -g3 -nostartfiles -static -T\\\"${DRIVER_SDK}\/link\/flash_boot.link\\\" -Wl,--gc-sections\")  link_libraries(-lB91)  aux_source_directory(${DRIVER_SDK}\/common SRCS_COMMON) aux_source_directory(${DRIVER_SDK}\/drivers\/B91 SRCS_DRIVERS_B91) aux_source_directory(${DRIVER_SDK}\/vendor\/common SRCS_VENDOR_COMMON) aux_source_directory(${DRIVER_SDK}\/vendor\/UART_DEMO SRCS_APP)  set(SRCS ${SRCS_COMMON} ${SRCS_DRIVERS_B91} ${SRCS_VENDOR_COMMON} ${SRCS_APP} ${DRIVER_SDK}\/boot\/B91\/cstartup_b91_flash.S)  include_directories(${CMAKE_CURRENT_LIST_DIR}) include_directories(${DRIVER_SDK}) include_directories(${DRIVER_SDK}\/vendor\/common) include_directories(${DRIVER_SDK}\/drivers\/B91) include_directories(${DRIVER_SDK}\/common)  link_directories(${DRIVER_SDK}\/drivers\/B91)  add_executable(${PROJECT_NAME}.elf ${SRCS})  add_custom_target(BIN ALL COMMAND ${OBJCOPY} -S -O binary ${PROJECT_NAME}.elf ${PROJECT_NAME}.bin COMMAND ${SIZE} ${PROJECT_NAME}.elf COMMAND ${OBJDUMP} -x -d -C ${PROJECT_NAME}.elf > objdump.txt COMMAND ${NM} -n -l -C ${PROJECT_NAME}.elf > symbol.txt COMMAND ${READELF} -a ${PROJECT_NAME}.elf > readelf.txt DEPENDS ${PROJECT_NAME}.elf ) <\/code><\/pre>\n<p>\u042f \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u043b \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e <code>app<\/code>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0431\u043e\u0440\u043a\u0443.<\/p>\n<pre><code class=\"bash\">cd app &amp;&amp; mkdir build &amp;&amp; cd build cmake .. make <\/code><\/pre>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 VSCode<\/h2>\n<p>\u0414\u043b\u044f \u043a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0430\u0439\u043b\u043e\u0432 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u0434\u043b\u044f VSCode: <code>c_cpp_properties.json<\/code>, <code>launch.json<\/code>, <code>settings.json<\/code>, <code>tasks.json<\/code>, \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0441\u0440\u0435\u0434\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438. \u0414\u043b\u044f \u043d\u0430\u0441 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0431\u043e\u0440\u043a\u0438 \u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0438.<\/p>\n<h3>\u0421\u0431\u043e\u0440\u043a\u0430 (tasks.json)<\/h3>\n<p>\u042d\u0442\u0438 \u0442\u0430\u0441\u043a\u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0442 \u0437\u0430 \u0441\u0431\u043e\u0440\u043a\u0443 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430 \u0438 \u0435\u0433\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0432 \u0447\u0438\u043f. \u0417\u0430\u0434\u0430\u0447\u0430 <code>ICEman<\/code> \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 gdb-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0438 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430 \u0432 \u0444\u043e\u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u0438\u0434\u0435\u0442 \u043e\u0442\u043b\u0430\u0434\u043a\u0430 \u0447\u0438\u043f\u0430 \u0438\u043b\u0438 \u0435\u0433\u043e \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0430. \u0417\u0434\u0435\u0441\u044c \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u043e\u0439, \u0435\u0441\u043b\u0438 \u0432\u044b \u0442\u043e\u0436\u0435 \u0438\u043d\u043e\u0433\u0434\u0430 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u0442\u0435 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n<pre><code class=\"json\">{     \"version\": \"2.0.0\",     \"tasks\": [         {             \"label\": \"Build\",             \"type\": \"shell\",             \"command\": \"cmake -Bbuild &amp;&amp; cd build &amp;&amp; make\",             \"group\": {                 \"kind\": \"build\",                 \"isDefault\": true             },             \"options\": {                 \"cwd\": \"${workspaceRoot}\/app\/\"             },             \"problemMatcher\": {                 \"owner\": \"cpp\",                 \"fileLocation\": [\"relative\", \"${workspaceFolder}\/build\"],                 \"pattern\": {                   \"regexp\": \"^(.*):(\\\\d+):(\\\\d+):\\\\s+(warning|error):\\\\s+(.*)$\",                   \"file\": 1,                   \"line\": 2,                   \"column\": 3,                   \"severity\": 4,                   \"message\": 5                 }             }         },         {             \"label\": \"ICEman\",             \"type\": \"shell\",             \"isBackground\": true,             \"options\": {                 \"cwd\": \"${workspaceRoot}\/toolchain\/ice\"             },             \"command\": \".\/ICEman -Z v5\",         },         {             \"label\": \"flash\",             \"type\": \"shell\",             \"options\": {                 \"cwd\": \"${workspaceRoot}\/toolchain\/flash\/bin\"             },             \"command\": \".\/SPI_burn -i .\/..\/..\/..\/app\/build\/apptest.bin -v\",             \"dependsOn\":[\"Build\"],         }     ] } <\/code><\/pre>\n<h3>\u041e\u0442\u043b\u0430\u0434\u043a\u0430 (launch.json)<\/h3>\n<p>\u0414\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0438\u0437 \u0434\u0432\u0443\u0445 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432, <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=marus25.cortex-debug\" rel=\"noopener noreferrer nofollow\">Cortex-Debug<\/a> \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0439 \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u0443\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b VSCode \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438 ARM-\u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0438\u043b\u0438 <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=webfreak.debug\" rel=\"noopener noreferrer nofollow\">Native Debug<\/a>.  \u0411\u043e\u043b\u044c\u0448\u043e\u0439 \u0440\u0430\u0437\u043d\u0438\u0446\u044b \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438 \u043d\u0435\u0442, \u043d\u043e Cortex-Debug \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 Zephyr, FreeRTOS \u0438 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c RTT-\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0432\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b VSCode, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e \u0435\u0433\u043e. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f \u043e\u0431\u043e\u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u043d\u0438\u0436\u0435:<\/p>\n<pre><code class=\"json\">{     \"configurations\": [         {             \"type\": \"gdb\",             \"name\": \"Native Debug\",             \"request\": \"attach\",             \"cwd\": \"${workspaceRoot}\",             \"valuesFormatting\": \"parseText\",             \"executable\": \"${workspaceRoot}\/app\/build\/apptest.elf\",             \"preLaunchTask\": \"ICEman\",             \"target\": \":1111\",             \"remote\": true,             \"gdbpath\": \"${workspaceRoot}\/toolchain\/nds32le-elf-mculib-v5f\/bin\/riscv32-elf-gdb\",             \"autorun\": [                 \"reset-and-hold\", \"flushregs\",                 \"break main\"             ]         },         {             \"name\": \"Cortex-Debug\",             \"cwd\": \"${workspaceRoot}\",             \"executable\": \".\/app\/build\/apptest.elf\",             \"request\": \"launch\",             \"type\": \"cortex-debug\",             \"servertype\": \"external\",             \"gdbTarget\": \"localhost:1111\",             \"gdbPath\": \"${workspaceRoot}\/toolchain\/nds32le-elf-mculib-v5f\/bin\/riscv32-elf-gdb\",             \"preLaunchTask\": \"ICEman\",             \"runToEntryPoint\": \"main\",         }     ] } <\/code><\/pre>\n<p>\u0414\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f Cortex-Debug \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u043e\u0447\u0435\u043a \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 <code>settings.json<\/code><\/p>\n<pre><code class=\"json\">{     \"cortex-debug.openocdPath\": \"${workspaceRoot}\/toolchain\/ice\/openocd\",     \"cortex-debug.gdbPath\": \"${workspaceRoot}\/toolchain\/nds32le-elf-mculib-v5f\/nds32le-elf-mculib-v5f\/bin\/riscv32-elf-gdb\",     \"cmake.sourceDirectory\": \"${workspaceFolder}\/app\",     \"taskExplorer.enableMake\": false,     \"search.exclude\": {         \"**\/build\": true       } } <\/code><\/pre>\n<p>\u0418 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u0430\u0442\u044c IntelliSense, \u0433\u0434\u0435 \u043b\u0435\u0436\u0430\u0442 \u043d\u0430\u0448\u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0438 \u043a\u0430\u043a\u0438\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0438 \u0441\u0431\u043e\u0440\u043a\u0435. \u0414\u043b\u044f \u044d\u0442\u0438\u0445 \u0446\u0435\u043b\u0435\u0439 \u0441\u043b\u0443\u0436\u0438\u0442 <code>c_cpp_properties.json<\/code><\/p>\n<pre><code class=\"json\">{     \"configurations\": [         {             \"name\": \"Linux\",             \"includePath\": [                 \"${workspaceFolder}\/**\",                 \"${workspaceFolder}\/app\/**\",                 \"${workspaceFolder}\/driver_sdk\/**\"                             ],             \"defines\": [                 \"MCU_STARTUP_FLASH_B91=1\",                 \"DEBUG\"             ],             \"browse\": {                 \"limitSymbolsToIncludedHeaders\": true,                 \"databaseFilename\": \"\"             },                          \"cStandard\": \"c11\",             \"cppStandard\": \"c++17\",             \"intelliSenseMode\": \"gcc-arm\"         }     ],     \"version\": 4 } <\/code><\/pre>\n<h3>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h3>\n<p>\u0412 \u0446\u0435\u043b\u043e\u043c \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u044f \u043a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0438. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0430\u0432\u0442\u043e\u0441\u0431\u043e\u0440\u043a\u0438 \u0434\u043b\u044f GIthub Actions \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0442\u0435\u0445 \u0448\u0430\u0433\u043e\u0432, \u0447\u0442\u043e \u0431\u044b\u043b\u0438 \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u043d\u044b \u0432\u044b\u0448\u0435, \u043d\u043e \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u043e\u0441\u0442\u0430\u0432\u043b\u044e \u0440\u0430\u0431\u043e\u0447\u0438\u0439 <a href=\"https:\/\/github.com\/aectaan\/da1469x-cmake\/blob\/master\/.github\/workflows\/da1469x.yml\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u0438\u043c\u0435\u0440<\/a> \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u043e\u0433\u043e \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043d\u0430 <a href=\"https:\/\/github.com\/aectaan\/Telink-TLSR9-CMake\" rel=\"noopener noreferrer nofollow\">\u0433\u0438\u0442\u0445\u0430\u0431\u0435<\/a>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \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\/652471\/\"> https:\/\/habr.com\/ru\/post\/652471\/<\/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_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u042f \u0432\u0441\u0435\u0439 \u0434\u0443\u0448\u043e\u0439 \u043b\u044e\u0431\u043b\u044e \u043c\u0430\u043b\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439. \u0417\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u0438\u0445 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b \u0438\u043c\u0435\u044e\u0442 \u0444\u0438\u0447\u0438, \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0443 \u0438\u0445 \u0431\u043e\u043b\u0435\u0435 \u0438\u043c\u0435\u043d\u0438\u0442\u044b\u0445 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043e\u0432, \u043f\u043e \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439 \u0446\u0435\u043d\u0435 (\u043e\u0434\u043d\u0430\u0436\u0434\u044b \u043c\u0435\u043d\u044f \u043e\u0447\u0435\u043d\u044c \u0432\u044b\u0440\u0443\u0447\u0438\u043b\u043e \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u0432 SoC \u043f\u043e\u043b\u0443\u0430\u043c\u043f\u0435\u0440\u043d\u043e\u0439 \u0437\u0430\u0440\u044f\u0434\u043a\u0438 \u0434\u043b\u044f \u0430\u043a\u043a\u0443\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u0430 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 LDO, \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b\u0445 \u0437\u0430\u043f\u0438\u0442\u0430\u0442\u044c \u0432\u0441\u044e \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u044e). \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0441\u0440\u043e\u043a\u0438 \u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u043a\u0430\u043a\u043e\u0433\u043e-\u043d\u0438\u0431\u0443\u0434\u044c <a href=\"http:\/\/www.wch.cn\/\" rel=\"noopener noreferrer nofollow\">Nanjing Qinheng Microelectronics<\/a> \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0438\u044f\u0442\u043d\u043e \u0443\u0434\u0438\u0432\u0438\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432, \u043f\u0440\u0438\u0432\u044b\u043a\u0448\u0438\u0445 \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0434\u0432\u0430 \u043a\u043e\u0432\u0438\u0434\u043d\u044b\u0445 \u0433\u043e\u0434\u0430 \u043a \u043a\u043e\u043d\u0441\u043a\u043e\u043c\u0443 \u0446\u0435\u043d\u043d\u0438\u043a\u0443 \u0438 52+ \u043d\u0435\u0434\u0435\u043b\u044f\u043c \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u043d\u0430 ST, TI, Nordic \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0435 \u0432\u0435\u0449\u0438. \u041b\u043e\u0433\u0438\u0441\u0442\u0438\u043a\u0430 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043f\u0440\u0438\u044f\u0442\u043d\u043e\u0439, \u0435\u0441\u043b\u0438 \u043c\u0430\u0441\u0441\u043e\u0432\u043e\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 \u041a\u0438\u0442\u0430\u0435 \u0438 \u043d\u0430 \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0435 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u0430\u0448\u0430 \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430, \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u0430\u044f \u0440\u0430\u0437\u0440\u0443\u043b\u0438\u0442\u044c \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0449\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b. \u0414\u0430 \u0438 \u0434\u043e\u0441\u0442\u0430\u0432\u043a\u0430 \u0438\u0437 \u0428\u0435\u043d\u044c\u0447\u0436\u0435\u043d\u044f \u0432 \u0428\u0435\u043d\u044c\u0447\u0436\u0435\u043d\u044c \u043f\u0440\u043e\u0449\u0435 \u0438 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u0435\u0439, \u0447\u0435\u043c \u0441\u043e \u0441\u043a\u043b\u0430\u0434\u0430 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u044c\u044e\u0442\u043e\u0440\u0430 \u0438 \u0440\u0430\u0441\u0442\u0430\u043c\u043e\u0436\u043a\u0430 \u0432 \u0420\u043e\u0441\u0441\u0438\u0438.<\/p>\n<h2>\u0427\u0442\u043e \u0433\u043e\u0442\u043e\u0432\u0438\u043c, \u0448\u0435\u0444?<\/h2>\n<figure class=\"full-width\"><figcaption>\u0412\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0437\u0432\u0435\u0440\u044c. \u0417\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043e\u0431 Arduino-\u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u0438\u043d\u043e\u0432 \u043d\u0430 \u043e\u0442\u043b\u0430\u0434\u043a\u0430\u0445, \u0437\u0434\u0435\u0441\u044c \u0441\u0432\u043e\u0439 \u043e\u0441\u043e\u0431\u044b\u0439 \u043f\u0443\u0442\u044c.<\/figcaption><\/figure>\n<p>\u041d\u0435\u0437\u0430\u0434\u043e\u043b\u0433\u043e \u0434\u043e \u043d\u043e\u0432\u043e\u0433\u043e\u0434\u043d\u0438\u0445 \u043f\u0440\u0430\u0437\u0434\u043d\u0438\u043a\u043e\u0432 \u043c\u043d\u0435 \u0432 \u0440\u0443\u043a\u0438 \u043f\u043e\u043f\u0430\u043b <a href=\"http:\/\/wiki.telink-semi.cn\/wiki\/Hardware\/B91_Generic_Starter_Kit_Hardware_Guide\/\" rel=\"noopener noreferrer nofollow\">B91 Generic Starter Kit<\/a>. \u041e\u0442\u043b\u0430\u0434\u043a\u0430 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u043d\u0430 \u0431\u0430\u0437\u0435 <a href=\"http:\/\/wiki.telink-semi.cn\/doc\/ds\/PB_TLSR9_Series_Product_Brief.pdf\" rel=\"noopener noreferrer nofollow\">TLSR9518A<\/a> &#8212; RISC-V SoC \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 Bluetooth Classic, BLE, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c AI-\u0434\u0432\u0438\u0436\u043a\u043e\u043c \u0438 \u043a\u0443\u0447\u0435\u0439 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043b\u044e\u0448\u0435\u043a, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0445 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0435 \u043d\u043e\u0441\u0438\u043c\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043f\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043d\u0438\u0437\u043a\u043e\u0439 \u0446\u0435\u043d\u0435. \u041d\u0430 \u043e\u0442\u043b\u0430\u0434\u043a\u0435 \u0440\u0430\u0441\u043f\u0430\u044f\u043d \u0441\u0442\u0430\u0440\u0448\u0438\u0439 \u0447\u0438\u043f \u0438\u0437 \u043b\u0438\u043d\u0435\u0439\u043a\u0438, \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u0437\u0430\u0434\u0430\u0447\u0438, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u0430\u0443\u0434\u0438\u043e \u0438 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u043a\u0430\u043a \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e Bluetooth, \u0442\u0430\u043a \u0438 BLE, \u043d\u043e \u0432 \u043b\u0438\u043d\u0435\u0439\u043a\u0435 \u0435\u0441\u0442\u044c \u0438 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430. \u0412 \u043e\u0431\u0449\u0435\u043c &#8212; \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u0430\u043d\u0434\u0438\u0434\u0430\u0442 \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0437\u0432\u0435\u044f\u0442\u044c \u0442\u043e\u0441\u043a\u0443 \u0438 \u043e\u0442\u0432\u043b\u0435\u0447\u044c \u043e\u0442 \u0442\u0430\u0437\u0438\u043a\u0430 \u0441 \u043e\u043b\u0438\u0432\u044c\u0435.<br \/>Telink \u0440\u0430\u043d\u044c\u0448\u0435 \u0431\u044b\u043b \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0441\u0432\u0435\u0440\u0445\u0434\u0435\u0448\u0435\u0432\u044b\u043c BLE-\u0447\u0438\u043f\u0430\u043c, \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c \u043d\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u044f\u0434\u0440\u0435, \u043d\u043e \u0441 \u043d\u0435\u0434\u0430\u0432\u043d\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432 \u043b\u0438\u043d\u0435\u0439\u043a\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u0438 RISC-V.<br \/>\u041d\u0430 <a href=\"http:\/\/wiki.telink-semi.cn\/wiki\/IDE-and-Tools\/Compiler_Linux\/\" rel=\"noopener noreferrer nofollow\">\u0432\u0438\u043a\u0438<\/a> \u0432\u0435\u043d\u0434\u043e\u0440\u0430 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 IDE, \u0442\u0443\u043b\u0447\u0435\u0439\u043d \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u0434\u0430. \u0415\u0441\u043b\u0438 \u0431\u044b \u043c\u044b \u043e\u0442\u043b\u0430\u0436\u0438\u0432\u0430\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u043e\u0435 \u0432 \u043d\u0430\u0448\u0438\u0445 \u043a\u0440\u0430\u044f\u0445, \u0442\u043e \u044d\u0442\u043e\u0433\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e, \u043d\u043e \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u043f\u0440\u0438\u0433\u043e\u0442\u043e\u0432\u0438\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u044e\u0440\u043f\u0440\u0438\u0437\u043e\u0432:<\/p>\n<ul>\n<li>\n<p>IDE \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0434 \u0432\u0438\u043d\u0434\u0443, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0443 \u043c\u0435\u043d\u044f \u043d\u0435\u0442 (\u0434\u0430 \u0438 \u0442\u044b\u0441\u044f\u0447\u0438 \u0432\u0435\u043d\u0434\u043e\u0440\u0441\u043a\u0438\u0445 IDE \u043d\u0430 \u044d\u043a\u043b\u0438\u043f\u0441\u0435 \u0443\u0436\u0435 \u043d\u0430\u0431\u0438\u043b\u0438 \u043e\u0441\u043a\u043e\u043c\u0438\u043d\u0443. \u0410 \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a WICED-Studio \u043e\u0442\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043e\u0442\u043b\u0430\u0434\u043a\u0443 \u043d\u0430 CYW954907 \u043f\u043e\u043a\u0430 \u044f \u043d\u0435 \u0443\u0431\u0435\u0440\u0443 \u0432\u0441\u0435 \u0431\u0440\u0435\u0439\u043a\u043f\u043e\u0439\u043d\u0442\u044b, \u044f \u043f\u0440\u0438\u043d\u044f\u043b \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f). \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u044f\u0437\u043a\u0443 CMake + VSCode.<\/p>\n<\/li>\n<li>\n<p>\u0421\u0435\u0440\u0432\u0435\u0440, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f IDE \u0438 \u0442\u0443\u043b\u0447\u0435\u0439\u043d, \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0433\u0434\u0435-\u0442\u043e \u0432 \u0442\u0438\u0431\u0435\u0442\u0441\u043a\u043e\u043c \u043c\u043e\u043d\u0430\u0441\u0442\u044b\u0440\u0435, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u043e\u043c \u043f\u043e dial-up&#8217;\u0443, \u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435 \u0441\u0440\u0435\u0434\u043d\u044f\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0437\u0430\u043a\u0430\u0447\u043a\u0438 \u0432 10\u043a\u0431\/\u0441 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0442\u0440\u0435\u0445 \u0442\u044b\u0441\u044f\u0447 \u0440\u0430\u0437\u0440\u044b\u0432\u043e\u0432 \u0437\u0430\u043a\u0430\u0447\u043a\u0438 \u043d\u0430\u043c\u0435\u043a\u0430\u044e\u0442 \u043e\u0431 \u044d\u0442\u043e\u043c.<\/p>\n<\/li>\n<li>\n<p>\u0422\u0443\u043b\u0447\u0435\u0439\u043d \u043d\u0435\u043f\u043e\u043b\u043d\u044b\u0439, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438 \u0437\u0430\u0448\u0438\u0442\u044c \u0431\u0438\u043d\u0430\u0440\u044c, \u043d\u043e gdb-\u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u0442\u044c \u0438\u0437-\u0437\u0430 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a. \u042d\u0442\u0438 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043c\u044b \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0440\u0435\u0448\u0438\u0442\u044c.<\/p>\n<\/li>\n<\/ul>\n<h2>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f<\/h2>\n<p>\u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 Ubuntu 21.10, \u0442\u0430\u043a \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u041e\u0421, \u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u044b.<\/p>\n<pre><code class=\"bash\">sudo apt update &amp;&amp; sudo apt upgrade &amp;&amp; sudo apt autoremove sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 sudo apt install -y make cmake wget unzip libncurses5<\/code><\/pre>\n<h3>\u0422\u0443\u043b\u0447\u0435\u0439\u043d<\/h3>\n<p>\u0415\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u043c\u0443 \u043f\u043e <a href=\"https:\/\/github.com\/andestech\/nds-gnu-toolchain\" rel=\"noopener noreferrer nofollow\">\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438<\/a> \u0438\u043b\u0438 \u0436\u0435 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u0443\u044e \u0441\u0431\u043e\u0440\u043a\u0443 \u0441 \u0433\u0438\u0442\u0445\u0430\u0431\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u044f\u0434\u0440\u0430. \u0423 \u043c\u0435\u043d\u044f \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0435\u0433\u043e \u0441 \u0445\u043e\u0434\u0443, \u0430 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0430 \u043d\u0435 \u0431\u044b\u043b\u043e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0435\u0441\u043b\u0438 \u043a\u0442\u043e \u0443\u043a\u0430\u0436\u0435\u0442 \u043d\u0430 \u043f\u0440\u0438\u0447\u0438\u043d\u0443 &#8212; \u0431\u0443\u0434\u0443 \u0432\u0435\u0441\u044c\u043c\u0430 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0435\u043d.<\/p>\n<h4>\u0412\u0435\u0440\u0441\u0438\u044f \u0441 Mculib<\/h4>\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0432\u0435\u043d\u0434\u043e\u0440\u043e\u043c.<\/p>\n<pre><code class=\"bash\">wget https:\/\/github.com\/andestech\/Andes-Development-Kit\/releases\/download\/ast-v3_2_3-release-linux\/nds32le-elf-mculib-v5f.txz mkdir toolchain tar -xvf nds32le-elf-mculib-v5f.txz -C toolchain rm nds32le-elf-mculib-v5f.txz <\/code><\/pre>\n<h4>\u0412\u0435\u0440\u0441\u0438\u044f \u0441 Newlib<\/h4>\n<pre><code class=\"bash\">https:\/\/github.com\/andestech\/Andes-Development-Kit\/releases\/download\/ast-v3_2_3-release-linux\/nds32le-elf-newlib-v5f.txz mkdir toolchain tar -xvf nds32le-elf-newlib-v5f.txz -C toolchain rm nds32le-elf-newlib-v5f.txz <\/code><\/pre>\n<h3>\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u043e\u0442\u043b\u0430\u0434\u043a\u0438<\/h3>\n<p>\u0412 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0435 \u0441 \u0434\u0435\u0432\u0431\u043e\u0440\u0434\u043e\u0439 \u0438\u0434\u0435\u0442 JTAG-\u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a \u043e\u0442 \u0432\u0435\u043d\u0434\u043e\u0440\u0430, \u043d\u043e \u0432 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c \u043e\u0441\u043e\u0431\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0434\u0440\u0443\u0433\u0438\u0445 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u0445 OpenOCD. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043d\u044e\u0430\u043d\u0441 &#8212; TLSR9518<strong>A<\/strong>, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u043d\u0430 \u043f\u043b\u0430\u0442\u0435, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043e\u0446\u0435\u043d\u043a\u0438 \u0438 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0438\u0437 \u0432\u0441\u0435\u0439 \u043b\u0438\u043d\u0435\u0439\u043a\u0438 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 FLASH-\u043f\u0430\u043c\u044f\u0442\u0438.<br \/>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0432\u0435\u043d\u0434\u043e\u0440\u0441\u043a\u0438\u043c \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u043e\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u0430 \u0434\u043b\u044f \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0444\u043b\u0435\u0448\u043a\u0438 \u0438 \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a ICE, \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 OpenOCD.<\/p>\n<pre><code class=\"bash\">wget https:\/\/github.com\/andestech\/Andes-Development-Kit\/releases\/download\/ast-v3_2_3-release-linux\/flash.zip wget https:\/\/github.com\/andestech\/Andes-Development-Kit\/releases\/download\/ast-v3_2_3-release-linux\/ice.zip unzip flash.zip -d toolchain unzip ice.zip -d toolchain rm -rf flash.zip ice.zip cd toolchain\/ice\/ chmod +x ICEman.sh .\/ICEman.sh <\/code><\/pre>\n<p>\u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u0441\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u0430 TLSR9 \u0442\u0430\u043a\u0436\u0435 \u0437\u0430\u044f\u0432\u043b\u0435\u043d\u0430 \u0432 JLink, \u043d\u043e \u044f \u043f\u0438\u0441\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u044e \u043f\u043e \u0433\u043e\u0440\u044f\u0447\u0438\u043c \u0441\u043b\u0435\u0434\u0430\u043c \u0438 \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u0431\u044b\u043b\u043e \u0435\u0433\u043e \u043f\u043e\u0434 \u0440\u0443\u043a\u043e\u0439.<\/p>\n<h3>SDK<\/h3>\n<p>\u0412 \u0442\u043e\u043c, \u0447\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f SDK, Telink \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0445\u043e\u0434\u0430, \u043f\u043e\u0445\u043e\u0436\u0435\u0433\u043e \u043d\u0430 \u0442\u043e\u0442, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u043a\u043e\u0433\u0434\u0430-\u0442\u043e Nordic \u0441\u043e \u0441\u0432\u0438\u043c\u0438 SoftDevice &#8212; \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 SDK \u043f\u043e\u0434 \u043a\u0430\u0436\u0434\u0443\u044e \u0437\u0430\u0434\u0430\u0447\u0443. \u041d\u0443\u0436\u043d\u044b\u0439 \u0432\u0430\u043c \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0430 \u0432\u0438\u043a\u0438, \u0430 \u0434\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u044f \u0440\u0435\u0448\u0438\u043b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Driver SDK, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0435\u0439 \u0447\u0438\u043f\u0430. \u0421\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e Bluetooth SDK \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0432 \u0441\u0443\u043f\u0435\u0440\u0446\u0438\u043a\u043b\u0435 \u0438 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u043d\u0438 \u043c\u0430\u043b\u0435\u0439\u0448\u0435\u0433\u043e \u043d\u0430\u043c\u0435\u043a\u0430 \u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 FreeRTOS, \u0432 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 Driver SDK. \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u0438 \u0432\u0435\u043d\u0434\u043e\u0440\u0430 \u043d\u0435 \u0434\u0430\u043b\u0438 \u043f\u0440\u044f\u043c\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430, \u043f\u043e\u0447\u0435\u043c\u0443 \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0430\u043a, \u043d\u043e \u0433\u043e\u0440\u044f\u0447\u043e \u0443\u0432\u0435\u0440\u0438\u043b\u0438, \u0447\u0442\u043e \u043a \u043e\u0441\u0435\u043d\u0438 SDK \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u043c\u043e\u0449\u043d\u044b\u0439 \u0430\u043f\u0434\u0435\u0439\u0442. \u0417\u0430\u044f\u0432\u043b\u0435\u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 Zephyr, \u043d\u043e \u0431\u0435\u0437 BLE \u0438, \u0441\u0443\u0434\u044f \u043f\u043e <a href=\"https:\/\/github.com\/zephyrproject-rtos\/zephyr\/issues\/34282\" rel=\"noopener noreferrer nofollow\">\u0442\u0440\u0435\u0434\u0443<\/a>, \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0432\u0440\u044f\u0434 \u043b\u0438 \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u0441\u044f \u0432 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u0432\u0440\u0435\u043c\u044f. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0435\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043f\u0440\u0430\u0432\u043e\u0441\u043b\u0430\u0432\u043d\u043e\u0433\u043e \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u043e\u0433\u043e \u0447\u0438\u043f\u0430 &#8212; \u0438\u043c\u0435\u0439\u0442\u0435 \u0432 \u0432\u0438\u0434\u0443 \u0442\u0430\u043a\u0438\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438, \u043e\u043d\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0447\u0430\u0441\u0442\u043e.<\/p>\n<pre><code class=\"bash\">wget http:\/\/wiki.telink-semi.cn\/tools_and_sdk\/Driver\/B91_Driver_SDK.zip mkdir driver_sdk unzip B91_Driver_SDK.zip -d driver_sdk\/ rm B91_Driver_SDK.zip <\/code><\/pre>\n<h3>\u0421\u0431\u043e\u0440\u043a\u0430<\/h3>\n<p>\u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435, \u0447\u0435\u0433\u043e \u043d\u0430\u043c \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0441\u0435\u0439\u0447\u0430\u0441 &#8212; \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043f\u043e \u0441\u0431\u043e\u0440\u043a\u0435. \u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u044f \u0432\u0437\u044f\u043b <a href=\"http:\/\/wiki.telink-semi.cn\/telink-document-package\/CMakeLists.txt\" rel=\"noopener noreferrer nofollow\">UART_DEMO<\/a>, \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0434\u043f\u0440\u0430\u0432\u0438\u0432 \u0435\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0439 out-of-tree \u0441\u0431\u043e\u0440\u043a\u0443 \u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0443.<\/p>\n<pre><code class=\"cmake\">cmake_minimum_required(VERSION 3.0)  project(apptest)  enable_language(C ASM)  set(CMAKE_VERBOSE_MAKEFILE ON) set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS)  set(RISCV_TOOLCHAIN ${CMAKE_CURRENT_LIST_DIR}\/..\/toolchain\/nds32le-elf-mculib-v5f\/bin) set(DRIVER_SDK ${CMAKE_CURRENT_LIST_DIR}\/..\/driver_sdk\/B91_Driver_Demo)  set(CMAKE_SYSTEM_NAME Generic) set(CMAKE_C_COMPILER ${RISCV_TOOLCHAIN}\/riscv32-elf-gcc) set(CMAKE_CXX_COMPILER ${RISCV_TOOLCHAIN}\/riscv32-elf-g++) set(CMAKE_ASM_COMPILER ${RISCV_TOOLCHAIN}\/riscv32-elf-gcc)  set(OBJCOPY ${RISCV_TOOLCHAIN}\/riscv32-elf-objcopy) set(OBJDUMP ${RISCV_TOOLCHAIN}\/riscv32-elf-objdump) set(NM ${RISCV_TOOLCHAIN}\/riscv32-elf-nm) set(READELF ${RISCV_TOOLCHAIN}\/riscv32-elf-readelf) set(SIZE ${RISCV_TOOLCHAIN}\/riscv32-elf-size)  add_definitions(-DMCU_STARTUP_FLASH_B91=1)  add_compile_options(-Og -g3 -mcpu=d25f -mext-dsp -mabi=ilp32f -std=c99) add_compile_options(-ffunction-sections -fdata-sections -fpack-struct -fshort-enums -flto) add_compile_options(-fmessage-length=0 -fomit-frame-pointer -fno-strict-aliasing -fshort-wchar -fuse-ld=bfd) add_compile_options(-Wall -Wno-nonnull-compare -Wextra -Wshadow -Werror -Wno-gnu-zero-variadic-macro-arguments)  set(CMAKE_EXE_LINKER_FLAGS \"-Og -g3 -nostartfiles -static -T\\\"${DRIVER_SDK}\/link\/flash_boot.link\\\" -Wl,--gc-sections\")  link_libraries(-lB91)  aux_source_directory(${DRIVER_SDK}\/common SRCS_COMMON) aux_source_directory(${DRIVER_SDK}\/drivers\/B91 SRCS_DRIVERS_B91) aux_source_directory(${DRIVER_SDK}\/vendor\/common SRCS_VENDOR_COMMON) aux_source_directory(${DRIVER_SDK}\/vendor\/UART_DEMO SRCS_APP)  set(SRCS ${SRCS_COMMON} ${SRCS_DRIVERS_B91} ${SRCS_VENDOR_COMMON} ${SRCS_APP} ${DRIVER_SDK}\/boot\/B91\/cstartup_b91_flash.S)  include_directories(${CMAKE_CURRENT_LIST_DIR}) include_directories(${DRIVER_SDK}) include_directories(${DRIVER_SDK}\/vendor\/common) include_directories(${DRIVER_SDK}\/drivers\/B91) include_directories(${DRIVER_SDK}\/common)  link_directories(${DRIVER_SDK}\/drivers\/B91)  add_executable(${PROJECT_NAME}.elf ${SRCS})  add_custom_target(BIN ALL COMMAND ${OBJCOPY} -S -O binary ${PROJECT_NAME}.elf ${PROJECT_NAME}.bin COMMAND ${SIZE} ${PROJECT_NAME}.elf COMMAND ${OBJDUMP} -x -d -C ${PROJECT_NAME}.elf > objdump.txt COMMAND ${NM} -n -l -C ${PROJECT_NAME}.elf > symbol.txt COMMAND ${READELF} -a ${PROJECT_NAME}.elf > readelf.txt DEPENDS ${PROJECT_NAME}.elf ) <\/code><\/pre>\n<p>\u042f \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u043b \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e <code>app<\/code>, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0431\u043e\u0440\u043a\u0443.<\/p>\n<pre><code class=\"bash\">cd app &amp;&amp; mkdir build &amp;&amp; cd build cmake .. make <\/code><\/pre>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 VSCode<\/h2>\n<p>\u0414\u043b\u044f \u043a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0430\u0439\u043b\u043e\u0432 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u0434\u043b\u044f VSCode: <code>c_cpp_properties.json<\/code>, <code>launch.json<\/code>, <code>settings.json<\/code>, <code>tasks.json<\/code>, \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0441\u0440\u0435\u0434\u044b \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438. \u0414\u043b\u044f \u043d\u0430\u0441 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0431\u043e\u0440\u043a\u0438 \u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0438.<\/p>\n<h3>\u0421\u0431\u043e\u0440\u043a\u0430 (tasks.json)<\/h3>\n<p>\u042d\u0442\u0438 \u0442\u0430\u0441\u043a\u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0442 \u0437\u0430 \u0441\u0431\u043e\u0440\u043a\u0443 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430 \u0438 \u0435\u0433\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0432 \u0447\u0438\u043f. \u0417\u0430\u0434\u0430\u0447\u0430 <code>ICEman<\/code> \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 gdb-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0438 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0430 \u0432 \u0444\u043e\u043d\u0435 \u0432\u0441\u0435\u0433\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u0438\u0434\u0435\u0442 \u043e\u0442\u043b\u0430\u0434\u043a\u0430 \u0447\u0438\u043f\u0430 \u0438\u043b\u0438 \u0435\u0433\u043e \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0430. \u0417\u0434\u0435\u0441\u044c \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043f\u0435\u0440\u0435\u0434 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u043e\u0439, \u0435\u0441\u043b\u0438 \u0432\u044b \u0442\u043e\u0436\u0435 \u0438\u043d\u043e\u0433\u0434\u0430 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u0442\u0435 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n<pre><code class=\"json\">{     \"version\": \"2.0.0\",     \"tasks\": [         {             \"label\": \"Build\",             \"type\": \"shell\",             \"command\": \"cmake -Bbuild &amp;&amp; cd build &amp;&amp; make\",             \"group\": {                 \"kind\": \"build\",                 \"isDefault\": true             },             \"options\": {                 \"cwd\": \"${workspaceRoot}\/app\/\"             },             \"problemMatcher\": {                 \"owner\": \"cpp\",                 \"fileLocation\": [\"relative\", \"${workspaceFolder}\/build\"],                 \"pattern\": {                   \"regexp\": \"^(.*):(\\\\d+):(\\\\d+):\\\\s+(warning|error):\\\\s+(.*)$\",                   \"file\": 1,                   \"line\": 2,                   \"column\": 3,                   \"severity\": 4,                   \"message\": 5                 }             }         },         {             \"label\": \"ICEman\",             \"type\": \"shell\",             \"isBackground\": true,             \"options\": {                 \"cwd\":<\/code><\/pre>\n<\/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-329860","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/329860","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=329860"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/329860\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=329860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=329860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=329860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}