{"id":257837,"date":"2022-03-04T15:45:56","date_gmt":"2022-03-04T06:45:56","guid":{"rendered":"https:\/\/hldc.co.jp\/support\/?post_type=qna&#038;p=257837"},"modified":"2022-04-07T16:07:14","modified_gmt":"2022-04-07T07:07:14","slug":"qna-257837","status":"publish","type":"qna","link":"https:\/\/hldc.co.jp\/support\/qna\/qna-257837\/","title":{"rendered":"[Linux]\u975e\u540c\u671f\u30d0\u30b9\/\u975e\u540c\u671f\u30d0\u30b9(\u95a2\u6570\u30b3\u30fc\u30eb)\u63a5\u7d9a\u306e\u30c9\u30e9\u30a4\u30d0\u30ab\u30b9\u30bf\u30de\u30a4\u30ba"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221; _builder_version=&#8221;3.22&#8243; da_disable_devices=&#8221;off|off|off&#8221; global_colors_info=&#8221;{}&#8221; da_is_popup=&#8221;off&#8221; da_exit_intent=&#8221;off&#8221; da_has_close=&#8221;on&#8221; da_alt_close=&#8221;off&#8221; da_dark_close=&#8221;off&#8221; da_not_modal=&#8221;on&#8221; da_is_singular=&#8221;off&#8221; da_with_loader=&#8221;off&#8221; da_has_shadow=&#8221;on&#8221;][et_pb_row admin_label=&#8221;row&#8221; _builder_version=&#8221;3.25&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;3.25&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221;][et_pb_text admin_label=&#8221;\u5192\u982d&#8221; _builder_version=&#8221;4.14.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]\u3053\u306e\u9805\u76ee\u3067\u306f\u3001\u975e\u540c\u671f\u30d0\u30b9\u63a5\u7d9a\u65b9\u6cd5\u306e\u624b\u9806\u3092\u89e3\u8aac\u3057\u3066\u304a\u308a\u307e\u3059\u3002<br \/>\n\u672c\u624b\u9806\u3067\u306f\u3001\u901a\u5e38\u306e\u30c6\u30b9\u30c8\u30dd\u30a4\u30f3\u30c8\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u307e\u3067\u306b\u5909\u66f4\u304c\u5fc5\u8981\u306a\u7b87\u6240\u306b\u3064\u3044\u3066\u3054\u8aac\u660e\u3044\u305f\u3057\u307e\u3059\u3002<br \/>\n\u5b9f\u969b\u5c0e\u5165\u3092\u884c\u3046\u969b\u306b\u306f\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u3066DT+Trace\u306e\u5c0e\u5165\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002[\/et_pb_text][et_pb_text admin_label=&#8221;\u672c\u6587&#8221; _builder_version=&#8221;4.14.2&#8243; _module_preset=&#8221;default&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; sticky_enabled=&#8221;0&#8243;]<\/p>\n<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">Contents<\/p><ul class=\"toc_list\"><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">1<\/span> \u51fa\u529b\u30dd\u30fc\u30c8\u306e\u30ec\u30b8\u30b9\u30bf\u8a2d\u5b9a\u306e\u8abf\u67fb<\/a><\/li><li><a href=\"#i-2\"><span class=\"toc_number toc_depth_1\">2<\/span> \u30b5\u30f3\u30d7\u30eb\u30c9\u30e9\u30a4\u30d0\u306e\u69cb\u6210<\/a><ul><li><a href=\"#NORFlash\"><span class=\"toc_number toc_depth_2\">2.1<\/span> NORFlash\u306e\u30d9\u30fc\u30b9\u30a2\u30c9\u30ec\u30b9\u3001\u30b5\u30a4\u30ba\u306e\u5b9a\u7fa9<\/a><\/li><li><a href=\"#async_write\"><span class=\"toc_number toc_depth_2\">2.2<\/span> async_write\u95a2\u6570\u306e\u5b9a\u7fa9<\/a><\/li><\/ul><\/li><li><a href=\"#i-3\"><span class=\"toc_number toc_depth_1\">3<\/span> \u30e6\u30fc\u30b6\u30fc\u30e9\u30f3\u30c9\u7528\u30c9\u30e9\u30a4\u30d0\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba<\/a><\/li><li><a href=\"#i-4\"><span class=\"toc_number toc_depth_1\">4<\/span> \u30ab\u30fc\u30cd\u30eb\u30fb\u30e6\u30fc\u30b6\u30fc\u30e9\u30f3\u30c9\u306e\u30b3\u30f3\u30d1\u30a4\u30eb<\/a><\/li><\/ul><\/div>\n<h2><span id=\"i\">\u51fa\u529b\u30dd\u30fc\u30c8\u306e\u30ec\u30b8\u30b9\u30bf\u8a2d\u5b9a\u306e\u8abf\u67fb<\/span><\/h2>\n<p><img decoding=\"async\" data-src=\"https:\/\/hldc.co.jp\/support\/wp-content\/uploads\/2022\/02\/257837_01.png\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 727px; --smush-placeholder-aspect-ratio: 727\/363;\"><\/p>\n<p>\u25a0\u975e\u540c\u671f\u30d0\u30b9\u63a5\u7d9a\u51fa\u529b\u30d5\u30a9\u30fc\u30de\u30c3\u30c8<\/p>\n<p><img decoding=\"async\" data-src=\"https:\/\/hldc.co.jp\/support\/wp-content\/uploads\/2022\/02\/257837_02.png\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 695px; --smush-placeholder-aspect-ratio: 695\/196;\"><\/p>\n<p>\u975e\u540c\u671f\u30d0\u30b9\u63a5\u7d9a\u306f\u3001NORFlash\u3068CPU\u9593\u306e\u30d0\u30b9\u3092\u5229\u7528\u3057\u3001\u30c6\u30b9\u30c8\u30dd\u30a4\u30f3\u30c8\u901a\u904e\u6642\u306b\u5916\u90e8\u306b\u51fa\u529b\u3055\u308c\u305f\u4fe1\u53f7(\u901a\u904e\u60c5\u5831)\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306e\u53d6\u308a\u4ed8\u3051\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/hldc.co.jp\/support\/by-product\/dtplus-trace\/download\/?file=DTPlus\/apl\/manual\/hardware\/Attachment_guide.pdf\">\u30a2\u30bf\u30c3\u30c1\u30e1\u30f3\u30c8\u30de\u30cb\u30e5\u30a2\u30eb<\/a>\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u4e8b\u524d\u306b\u63a5\u7d9a\u5148\u306e\u30d5\u30e9\u30c3\u30b7\u30e5ROM\u306e\u5148\u982d\u30a2\u30c9\u30ec\u30b9\u3092\u3054\u8abf\u67fb\u304f\u3060\u3055\u3044\u3002\u307e\u305f\u3001\u5bfe\u8c61\u306e\u30d5\u30e9\u30c3\u30b7\u30e5ROM\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u3054\u4f7f\u7528\u306e\u5834\u5408\u306f\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u9818\u57df\u5185\u306e\u30e1\u30e2\u30ea\u7a7a\u9593\u306f\u6b63\u5e38\u306a\u30c7\u30fc\u30bf\u53d6\u5f97\u304c\u884c\u3048\u307e\u305b\u3093\u306e\u3067\u3001\u975e\u30ad\u30e3\u30c3\u30b7\u30e5\u9818\u57df\u306e\u5148\u982d\u30a2\u30c9\u30ec\u30b9\u3092\u3054\u8abf\u67fb\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30ab\u30fc\u30cd\u30eb\u30fb\u30e6\u30fc\u30b6\u30fc\u30e9\u30f3\u30c9\u4e21\u65b9\u304b\u3089\u30c7\u30fc\u30bf\u3092\u51fa\u529b\u3059\u308b\u5834\u5408\u306f\u3001\u975e\u540c\u671f\u30d0\u30b9\u63a5\u7d9a(\u95a2\u6570\u30b3\u30fc\u30eb)\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2><span id=\"i-2\">\u30b5\u30f3\u30d7\u30eb\u30c9\u30e9\u30a4\u30d0\u306e\u69cb\u6210<\/span><\/h2>\n<p>\u30b5\u30f3\u30d7\u30eb\u30c9\u30e9\u30a4\u30d0\u306f<a href=\"https:\/\/hldc.co.jp\/support\/by-product\/dtplus-trace\/download\/sample-driver\/\">\u3053\u3061\u3089<\/a>\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code>Driver_DT\n-dt_tpdrv.c\u30fb\u30fb\u30fb\u30e6\u30fc\u30b6\u30fc\u30e9\u30f3\u30c9\u5074\u306e\u51fa\u529b\u7528\u30c9\u30e9\u30a4\u30d0\n\nDriver_async\n-dt_async_drv.c\u30fb\u30fb\u30fb\u30ab\u30fc\u30cd\u30eb\u5074\u306e\u51fa\u529b\u7528\u306e\u30c7\u30d0\u30a4\u30b9\u30c9\u30e9\u30a4\u30d0\n<\/code><\/pre>\n<h3><span id=\"NORFlash\">NORFlash\u306e\u30d9\u30fc\u30b9\u30a2\u30c9\u30ec\u30b9\u3001\u30b5\u30a4\u30ba\u306e\u5b9a\u7fa9<\/span><\/h3>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3044\u305f\u3060\u3044\u305f\u30d5\u30a1\u30a4\u30eb\u306b\u3064\u3044\u3066\u3001\u4e0b\u8a18\u306e\u5185\u5bb9\u3092\u30bf\u30fc\u30b2\u30c3\u30c8\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code>\/*==============================================================================*\/\n\/*  Desc:   Please set beginning address and size in the virtual memory space.  *\/\n\/*==============================================================================*\/\n#define\tFLASH_ADDR\t0xF0000000\n#define\tFLASH_SIZE\t0x02000000\n<\/code><\/pre>\n<h3><span id=\"async_write\">async_write\u95a2\u6570\u306e\u5b9a\u7fa9<\/span><\/h3>\n<p>Flash\u3078\u306e\u66f8\u304d\u8fbc\u307f\u3092\u884c\u3046\u95a2\u6570\u3067\u3059\u3002\u30b5\u30f3\u30d7\u30eb\u3067\u306foutw\u3092\u4f7f\u7528\u3057\u3066\u304a\u308a\u307e\u3059\u3002\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u5408\u308f\u305b\u3066\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre><code>\/*==============================================================================*\/\n\/*  Func:   async_write                                                         *\/\n\/*  Desc:   Test Point Output Function                                          *\/\n\/*==============================================================================*\/\nstatic void async_write(dt_tp tp)\n{\n\tunsigned char *p;\n\tint\ti;\n\n\tif (cookie == NULL) {\n\t\tcookie = ioremap(FLASH_ADDR, FLASH_SIZE);\n\t}\n\n\tfor( i = 0; i &lt; tp.count; i++ )\n\t{\n\t\tp = (unsigned char *)cookie;\n\t\tp += tp.addr[i];\n\t\toutw( tp.data[i], (unsigned int)p );\n\t\t\/* *(unsigned short *)p = (unsigned short)tp.data[i]; *\/\n\t}\n}\n<\/code><\/pre>\n<h2><span id=\"i-3\">\u30e6\u30fc\u30b6\u30fc\u30e9\u30f3\u30c9\u7528\u30c9\u30e9\u30a4\u30d0\u306e\u30ab\u30b9\u30bf\u30de\u30a4\u30ba<\/span><\/h2>\n<p>\u30e6\u30fc\u30b6\u30fc\u30e9\u30f3\u30c9\u5c64\u306e\u30c9\u30e9\u30a4\u30d0\u306b\u3064\u3044\u3066\u306f\u57fa\u672c\u7684\u306b\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u306f\u5fc5\u8981\u3054\u3056\u3044\u307e\u305b\u3093\u3002\u30bf\u30fc\u30b2\u30c3\u30c8\u306eMakefile\u306b\u5165\u308c\u3066\u3044\u305f\u3060\u304d\u3001Make\u5bfe\u8c61\u3068\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2><span id=\"i-4\">\u30ab\u30fc\u30cd\u30eb\u30fb\u30e6\u30fc\u30b6\u30fc\u30e9\u30f3\u30c9\u306e\u30b3\u30f3\u30d1\u30a4\u30eb<\/span><\/h2>\n<p>\u304a\u4f7f\u3044\u306e\u958b\u767a\u74b0\u5883\u306b\u3054\u5909\u66f4\u3044\u305f\u3060\u3044\u305f\u30c9\u30e9\u30a4\u30d0\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002Makefile\u306b\u8ffd\u52a0\u3057\u3066\u3044\u305f\u3060\u304f\u306a\u3069\u3057\u3066\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u3067\u304d\u308b\u304b\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;\u95a2\u9023\u8a18\u4e8b&#8221; _builder_version=&#8221;4.14.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]<\/p>\n<h6 style=\"margin: 0 0 1em;\">\u95a2\u9023\u8a18\u4e8b<\/h6>\n<p>&#8211; <a href=\"https:\/\/hldc.co.jp\/support\/qna\/qna-257863\/\">Linux\u6a5f\u5668\u3078\u306e\u30c9\u30e9\u30a4\u30d0\u767b\u9332<\/a>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u9805\u76ee\u3067\u306f\u3001\u975e\u540c\u671f\u30d0\u30b9\u63a5\u7d9a\u65b9\u6cd5\u306e\u624b\u9806\u3092\u89e3\u8aac\u3057\u3066\u304a\u308a\u307e\u3059\u3002 \u672c\u624b\u9806\u3067\u306f\u3001\u901a\u5e38\u306e\u30c6\u30b9\u30c8\u30dd\u30a4\u30f3\u30c8\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u307e\u3067\u306b\u5909\u66f4\u304c\u5fc5\u8981\u306a\u7b87\u6240\u306b\u3064\u3044\u3066\u3054\u8aac\u660e\u3044\u305f\u3057\u307e\u3059\u3002 \u5b9f\u969b\u5c0e\u5165\u3092\u884c\u3046\u969b\u306b\u306f\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u3066DT+Trace&#8230;<\/p>\n","protected":false},"author":6,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","inline_featured_image":false,"footnotes":"","_links_to":"","_links_to_target":""},"qna_category":[33],"qna_tag":[48,46],"class_list":["post-257837","qna","type-qna","status-publish","hentry","qna_category-how-to","qna_tag-48","qna_tag-46"],"acf":[],"_links":{"self":[{"href":"https:\/\/hldc.co.jp\/support\/wp-json\/wp\/v2\/qna\/257837","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hldc.co.jp\/support\/wp-json\/wp\/v2\/qna"}],"about":[{"href":"https:\/\/hldc.co.jp\/support\/wp-json\/wp\/v2\/types\/qna"}],"author":[{"embeddable":true,"href":"https:\/\/hldc.co.jp\/support\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/hldc.co.jp\/support\/wp-json\/wp\/v2\/comments?post=257837"}],"version-history":[{"count":19,"href":"https:\/\/hldc.co.jp\/support\/wp-json\/wp\/v2\/qna\/257837\/revisions"}],"predecessor-version":[{"id":258321,"href":"https:\/\/hldc.co.jp\/support\/wp-json\/wp\/v2\/qna\/257837\/revisions\/258321"}],"wp:attachment":[{"href":"https:\/\/hldc.co.jp\/support\/wp-json\/wp\/v2\/media?parent=257837"}],"wp:term":[{"taxonomy":"qna_category","embeddable":true,"href":"https:\/\/hldc.co.jp\/support\/wp-json\/wp\/v2\/qna_category?post=257837"},{"taxonomy":"qna_tag","embeddable":true,"href":"https:\/\/hldc.co.jp\/support\/wp-json\/wp\/v2\/qna_tag?post=257837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}