{"id":98832,"date":"2024-11-05T14:58:26","date_gmt":"2024-11-05T06:58:26","guid":{"rendered":"\/\/www.viralrail.com\/?p=98832"},"modified":"2024-11-05T14:58:30","modified_gmt":"2024-11-05T06:58:30","slug":"hwjssm","status":"publish","type":"post","link":"\/\/www.viralrail.com\/blog\/98832.html","title":{"rendered":"Hex\u6587\u4ef6\u662f\u4ec0\u4e48"},"content":{"rendered":"\n
\u3000\u3000Hex\u6587\u4ef6<\/strong>\u662f\u4e00\u79cd\u7528\u4e8e\u5b58\u50a8\u548c\u4f20\u8f93\u6570\u636e\u5230\u5d4c\u5165\u5f0f\u7cfb\u7edf<\/strong>(\u5982\u5355\u7247\u673a)\u7684\u6587\u4ef6\u683c\u5f0f\uff0c\u901a\u5e38\u4ee5ASCII\u6587\u672c\u5f62\u5f0f\u8868\u793a\u5341\u516d\u8fdb\u5236\u6570\u636e\u3002\u8fd9\u79cd\u6587\u4ef6\u683c\u5f0f\u4e3b\u8981\u7528\u4e8e\u5c06\u7a0b\u5e8f\u548c\u6570\u636e\u5199\u5165ROM\u6216EPROM\u4e2d\u3002Hex\u6587\u4ef6\u7531\u591a\u6761\u8bb0\u5f55\u7ec4\u6210\uff0c\u6bcf\u6761\u8bb0\u5f55\u5305\u542b\u7279\u5b9a\u7684\u4fe1\u606f\uff0c\u5982\u5730\u5740\u3001\u6570\u636e\u957f\u5ea6\u3001\u6570\u636e\u672c\u8eab\u4ee5\u53ca\u6821\u9a8c\u548c\u7b49\u3002<\/p>\n\n\n\n \u3000\u3000Hex\u6587\u4ef6\u7684\u7279\u70b9\u662f\u5176\u4f7f\u7528ASCII\u5b57\u7b26\u6765\u8868\u793a\u4e8c\u8fdb\u5236\u6570\u636e\uff0c\u4f7f\u5f97\u6587\u4ef6\u5185\u5bb9\u5bf9\u4eba\u7c7b\u53ef\u8bfb\u3002\u8fd9\u79cd\u683c\u5f0f\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5fae\u63a7\u5236\u5668\u548c\u5d4c\u5165\u5f0f\u7cfb\u7edf\u7684\u7f16\u7a0b\u4e2d\uff0c\u56e0\u4e3a\u5927\u591a\u6570EPROM\u7f16\u7a0b\u5668\u6216\u4eff\u771f\u5668\u90fd\u652f\u6301\u8be5\u683c\u5f0f\u3002Hex\u6587\u4ef6\u53ef\u4ee5\u901a\u8fc7\u4e0d\u540c\u7684\u7f16\u8bd1\u5668\u751f\u6210\uff0c\u4f8b\u5982IAR\u3001KEIL\u7b49\u3002<\/p>\n\n\n\n \u3000\u3000Hex\u6587\u4ef6\u662f\u4e00\u79cd\u5341\u516d\u8fdb\u5236\u7684\u4ee3\u7801\u8bb0\u5f55\uff0c\u8bb0\u5f55\u4e86\u4ee3\u7801\u5e94\u8be5\u5b58\u50a8\u5230FLASH\u7684\u54ea\u4e2a\u5730\u5740\uff0c\u5e76\u4e14\u53ef\u4ee5\u7528\u5de5\u5177\u901a\u8fc7\u4e32\u53e3\u70e7\u5f55\u5230\u5355\u7247\u673a\u4e2d\u3002\u8fd9\u79cd\u6587\u4ef6\u683c\u5f0f\u4e0d\u4ec5\u4fbf\u4e8e\u4eba\u7c7b\u9605\u8bfb\u548c\u7f16\u8f91\uff0c\u800c\u4e14\u7531\u4e8e\u5176\u7ed3\u6784\u5316\u7684\u7279\u70b9\uff0c\u53ef\u4ee5\u88ab\u5404\u79cd\u4e0b\u8f7d\u5668\u8bc6\u522b\u548c\u4f7f\u7528\u3002<\/p>\n\n\n\n \u3000\u3000Hex\u6587\u4ef6\u7684\u5177\u4f53\u7ed3\u6784\u4e3b\u8981\u7531Intel\u683c\u5f0f\u5b9a\u4e49\uff0c\u5176\u6bcf\u4e00\u884c\u5305\u542b\u591a\u4e2a\u5b57\u6bb5\uff0c\u8fd9\u4e9b\u5b57\u6bb5\u5171\u540c\u6784\u6210\u4e86\u4e00\u4e2aHex\u8bb0\u5f55\u3002Hex\u6587\u4ef6\u7684\u7ed3\u6784\u53ef\u4ee5\u603b\u7ed3\u5982\u4e0b\uff1a<\/p>\n\n\n\n \u3000\u3000\u5192\u53f7\u5f00\u5934<\/strong>\uff1a\u6bcf\u884c\u4ee5\u5192\u53f7(:)\u5f00\u59cb\uff0c\u8868\u793a\u884c\u7684\u5f00\u59cb\u3002<\/p>\n\n\n\n \u3000\u3000\u6570\u636e\u957f\u5ea6\u57df\uff08ll\uff09<\/strong> \uff1a\u63a5\u4e0b\u6765\u662f\u6570\u636e\u957f\u5ea6\u57df\uff0c\u8868\u793a\u8be5\u8bb0\u5f55\u4e2d\u6570\u636e\u5b57\u8282\u7684\u6570\u91cf\u3002\u8fd9\u4e2a\u57df\u901a\u5e38\u4e3a1\u5b57\u8282\uff0c\u4f46\u6709\u65f6\u53ef\u80fd\u4e3a2\u5b57\u8282\u3002<\/p>\n\n\n\n \u3000\u3000\u5730\u5740\u57df\uff08aaaa\uff09<\/strong> \uff1a\u63a5\u4e0b\u6765\u662f\u5730\u5740\u57df\uff0c\u8868\u793a\u6570\u636e\u7684\u8d77\u59cb\u5730\u5740\u3002\u8fd9\u4e2a\u57df\u901a\u5e38\u4e3a2\u5b57\u8282\u3002<\/p>\n\n\n\n \u3000\u3000\u8bb0\u5f55\u7c7b\u578b\u57df\uff08tt\uff09<\/strong> \uff1a\u63a5\u7740\u662f\u8bb0\u5f55\u7c7b\u578b\u57df\uff0c\u5b83\u51b3\u5b9a\u4e86\u8bb0\u5f55\u7684\u7c7b\u578b\u3002\u5e38\u89c1\u7684\u7c7b\u578b\u5305\u62ec\uff1a<\/p>\n\n\n\n \u3000\u300000\uff1a\u6570\u636e\u8bb0\u5f55\uff0c\u8fd9\u662f\u6700\u5e38\u89c1\u7684\u7c7b\u578b\u3002<\/p>\n\n\n\n \u3000\u300001\uff1a\u6587\u4ef6\u7ed3\u675f\u8bb0\u5f55\uff0c\u8868\u793a\u6587\u4ef6\u7684\u6700\u540e\u4e00\u884c\u3002<\/p>\n\n\n\n \u3000\u3000\u5176\u4ed6\u503c\u598202\u81f305\uff1a\u7528\u4e8e\u5176\u4ed6\u5bfb\u5740\u6a21\u5f0f\u3002<\/p>\n\n\n\n \u3000\u3000\u6570\u636e\u5b57\u6bb5\uff08dd… \uff09<\/strong> \uff1a\u63a5\u4e0b\u6765\u662f\u6570\u636e\u5b57\u6bb5\uff0c\u5305\u542b\u5b9e\u9645\u7684\u6570\u636e\u5185\u5bb9\u3002\u6839\u636e\u8bb0\u5f55\u7c7b\u578b\u7684\u4e0d\u540c\uff0c\u6570\u636e\u5b57\u6bb5\u7684\u957f\u5ea6\u4e5f\u4f1a\u6709\u6240\u4e0d\u540c\u3002<\/p>\n\n\n\n \u3000\u3000\u6821\u9a8c\u548c\u57df\uff08cc\uff09<\/strong> \uff1a\u6700\u540e\u662f\u6821\u9a8c\u548c\u57df\uff0c\u7528\u4e8e\u9a8c\u8bc1\u8bb0\u5f55\u7684\u5b8c\u6574\u6027\u3002\u6821\u9a8c\u548c\u901a\u8fc7\u5c06\u6240\u6709\u5b57\u6bb52\u81f35\u7684\u5341\u516d\u8fdb\u5236\u503c\u76f8\u52a0\uff0c\u5e76\u53d6\u8be5\u548c\u7684\u6700\u4f4e\u6709\u6548\u5b57\u8282\u7684\u8865\u6570\u5f97\u5230\u3002<\/p>\n\n\n\n \u3000\u3000\u6b64\u5916\uff0cHex\u6587\u4ef6\u901a\u5e38\u7528\u4e8e\u5b58\u50a8\u548c\u4f20\u8f93\u7a0b\u5e8f\u548c\u6570\u636e\uff0c\u7279\u522b\u662f\u5728ROM\u6216EPROM\u4e2d\u3002<\/p>\n\n\n\n \u3000\u3000\u5728IAR\u548cKEIL\u4e2d\u751f\u6210Hex\u6587\u4ef6\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n\n\n\n \u3000\u3000\u6253\u5f00IAR\u9879\u76ee\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u5de5\u7a0b\u9009\u9879\u4e2d\uff0c\u9009\u62e9Linker\u3002<\/p>\n\n\n\n \u3000\u3000\u52fe\u9009Output file\u4e0b\u7684\u9009\u9879\uff0c\u5e76\u5c06\u8f93\u51fa\u6587\u4ef6\u540d\u540e\u7f00\u6539\u4e3a.hex\u3002<\/p>\n\n\n\n \u3000\u3000\u5728Format\u9009\u9879\u6846\u4e2d\u9009\u62e9Other\uff0cOutput\u540e\u9009\u62e9intel-extented\u3002<\/p>\n\n\n\n \u3000\u3000\u6253\u5f00\u4f60\u7684KEIL\u9879\u76ee\u5e76\u7f16\u8bd1\u5b83\u3002<\/p>\n\n\n\n \u3000\u3000Hex\u6587\u4ef6\u5728\u5d4c\u5165\u5f0f\u7cfb\u7edf\u7f16\u7a0b\u4e2d\u6709\u7740\u5e7f\u6cdb\u7684\u5e94\u7528\uff0c\u5177\u4f53\u6848\u4f8b\u5305\u62ec\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\uff1a<\/p>\n\n\n\n \u3000\u3000Hex\u6587\u4ef6\u7ecf\u5e38\u88ab\u7528\u4e8e\u5c06\u7f16\u8bd1\u540e\u7684\u7a0b\u5e8f\u6216\u6570\u636e\u4f20\u8f93\u5e76\u5b58\u50a8\u5230\u76ee\u6807\u8bbe\u5907\u7684ROM\u3001EPROM\u7b49\u975e\u6613\u5931\u6027\u5b58\u50a8\u5668\u4e2d\u3002\u4f8b\u5982\uff0c\u5728Intel HEX\u683c\u5f0f\u4e2d\uff0c\u53ef\u4ee5\u8be6\u7ec6\u6307\u5b9a\u6bcf\u4e2a\u5730\u5740\u5904\u7684\u6570\u636e\u5185\u5bb9\uff0c\u4ece\u800c\u5b9e\u73b0\u7cbe\u786e\u7684\u5185\u5b58\u6620\u5c04\u3002\u8fd9\u79cd\u683c\u5f0f\u7684\u6587\u4ef6\u901a\u5e38\u5305\u542b\u989d\u5916\u7684\u4fe1\u606f\uff0c\u5982\u6821\u9a8c\u548c\u548c\u8bb0\u5f55\u7c7b\u578b\uff0c\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u5b8c\u6574\u6027\u548c\u6b63\u786e\u6027\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u5d4c\u5165\u5f0f\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0cHex\u6587\u4ef6\u662f\u70e7\u5f55\u5de5\u5177\u7684\u4e3b\u8981\u8f93\u5165\u683c\u5f0f\u4e4b\u4e00\u3002\u8bb8\u591a\u7f16\u7a0b\u5668\u548c\u6a21\u62df\u5668\u90fd\u652f\u6301Intel HEX\u6587\u4ef6\u683c\u5f0f\uff0c\u4f7f\u5176\u6210\u4e3a\u4e8b\u5b9e\u4e0a\u7684\u6807\u51c6\u3002\u4f8b\u5982\uff0c\u4f7f\u7528Keil\u8f6f\u4ef6\u4e2d\u7684OH51\u5de5\u5177\u53ef\u4ee5\u5c06\u5bf9\u8c61\u6587\u4ef6\u8f6c\u6362\u4e3a\u9002\u7528\u4e8e8051\u63a7\u5236\u5668\u7684Hex\u6587\u4ef6\uff0c\u7136\u540e\u901a\u8fc7EPROM\u7f16\u7a0b\u5668\u5c06\u5176\u52a0\u8f7d\u5230\u76ee\u6807\u8bbe\u5907\u7684ROM\u82af\u7247\u4e2d\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u4e00\u4e9b\u590d\u6742\u7684\u5d4c\u5165\u5f0f\u7cfb\u7edf\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u5c06\u591a\u4e2aHex\u6587\u4ef6\u5408\u5e76\u6210\u4e00\u4e2a\u6587\u4ef6\uff0c\u4ee5\u4fbf\u4e8e\u4e00\u6b21\u6027\u70e7\u5f55\u5230\u76ee\u6807\u8bbe\u5907\u3002\u4f8b\u5982\uff0cBootLoader\u548c\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u5206\u522b\u751f\u6210\u5404\u81ea\u7684Hex\u6587\u4ef6\uff0c\u7136\u540e\u901a\u8fc7\u5de5\u5177\u5408\u5e76\u6210\u4e00\u4e2a\u6587\u4ef6\uff0c\u8fd9\u6837\u53ef\u4ee5\u7b80\u5316\u70e7\u5f55\u8fc7\u7a0b\u5e76\u786e\u4fdd\u7cfb\u7edf\u7684\u5b8c\u6574\u6027\u3002<\/p>\n\n\n\n \u3000\u3000Hex\u6587\u4ef6\u4e5f\u53ef\u4ee5\u7528\u4e8e\u8c03\u8bd5\u548c\u9a8c\u8bc1\u76ee\u7684\u3002\u5f53\u51fa\u73b0\u95ea\u5b58\u9a8c\u8bc1\u5931\u8d25\u7684\u95ee\u9898\u65f6\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528Hex\u6587\u4ef6\u800c\u4e0d\u662f\u5176\u4ed6\u683c\u5f0f(\u5982.elf\u6216.bin)\u6765\u91cd\u65b0\u7f16\u7a0b\u76ee\u6807\u8bbe\u5907\uff0c\u4ee5\u786e\u4fdd\u4ee3\u7801\u7684\u6b63\u786e\u6027\u548c\u5b8c\u6574\u6027\u3002<\/p>\n\n\n\n \u3000\u3000\u5c3d\u7ba1Hex\u6587\u4ef6\u683c\u5f0f\u5728\u6570\u636e\u4ea4\u6362\u548c\u73b0\u573a\u7f16\u8f91\u65b9\u9762\u5b58\u5728\u4e00\u5b9a\u7684\u590d\u6742\u6027(\u5982\u9700\u8981\u5206\u5272\u6570\u636e\u5e76\u66f4\u65b0\u6821\u9a8c\u548c)\uff0c\u4f46\u5176\u7ed3\u6784\u5316\u548c\u6807\u51c6\u5316\u7684\u7279\u70b9\u4ecd\u7136\u4f7f\u5176\u6210\u4e3a\u5d4c\u5165\u5f0f\u7cfb\u7edf\u4e2d\u5e38\u7528\u7684\u6570\u636e\u4ea4\u6362\u683c\u5f0f\u3002<\/p>\n\n\n\n \u3000\u3000Hex\u6587\u4ef6\u548c\u4e8c\u8fdb\u5236\u6587\u4ef6\u5728\u683c\u5f0f\u548c\u5e94\u7528\u4e0a\u5b58\u5728\u663e\u8457\u5dee\u5f02\uff0c\u5404\u81ea\u5177\u6709\u4e0d\u540c\u7684\u4f18\u52bf\u3002<\/p>\n\n\n\n \u3000\u3000\u8981\u901a\u8fc7\u4e32\u53e3\u5c06Hex\u6587\u4ef6\u70e7\u5f55\u5230\u5355\u7247\u673a\u4e2d\uff0c\u53ef\u4ee5\u53c2\u8003\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n\n\n\n Hex\u6587\u4ef6\u662f\u4e00\u79cd\u7528\u4e8e\u5b58\u50a8\u548c\u4f20\u8f93\u6570\u636e\u5230\u5d4c\u5165\u5f0f\u7cfb\u7edf(\u5982\u5355\u7247\u673a)\u7684\u6587\u4ef6\u683c\u5f0f\uff0c\u901a\u5e38\u4ee5ASCII\u6587\u672c\u5f62\u5f0f\u8868\u793a\u5341\u516d\u8fdb\u5236\u6570\u636e\u3002\u8fd9\u79cd\u6587\u4ef6\u683c\u5f0f\u4e3b\u8981\u7528\u4e8e\u5c06\u7a0b\u5e8f\u548c\u6570\u636e\u5199\u5165ROM\u6216EPROM\u4e2d<\/p>\n","protected":false},"author":1,"featured_media":97709,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[278],"class_list":["post-98832","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-qrs"],"_links":{"self":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/98832"}],"collection":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/comments?post=98832"}],"version-history":[{"count":0,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/98832\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media\/97709"}],"wp:attachment":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media?parent=98832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/categories?post=98832"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/tags?post=98832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\u3000\u3000\u4e00\u3001 Hex\u6587\u4ef6\u7684\u5177\u4f53\u7ed3\u6784\u662f\u4ec0\u4e48\uff0c\u5305\u62ec\u54ea\u4e9b\u4e3b\u8981\u90e8\u5206?<\/h2>\n\n\n\n
\u3000\u3000\u4e8c\u3001 \u5982\u4f55\u4f7f\u7528\u7f16\u7a0b\u5de5\u5177(\u5982IAR\u3001KEIL)\u751f\u6210Hex\u6587\u4ef6?<\/h2>\n\n\n\n
\u3000\u30001. \u5bf9\u4e8eIAR\uff1a<\/h3>\n\n\n\n
\u3000\u30002. \u5bf9\u4e8eKEIL\uff1a<\/h3>\n\n\n\n
\u3000\u3000\u4e09\u3001 Hex\u6587\u4ef6\u5728\u5d4c\u5165\u5f0f\u7cfb\u7edf\u7f16\u7a0b\u4e2d\u7684\u5e94\u7528\u6709\u54ea\u4e9b\u5177\u4f53\u6848\u4f8b?<\/h2>\n\n\n\n
\u3000\u3000\u56db\u3001 Hex\u6587\u4ef6\u4e0e\u4e8c\u8fdb\u5236\u6587\u4ef6\u683c\u5f0f\u6709\u4f55\u4e0d\u540c\uff0c\u5b83\u4eec\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u5404\u81ea\u7684\u4f18\u52bf\u662f\u4ec0\u4e48?<\/h2>\n\n\n\n
\u3000\u30001. Hex\u6587\u4ef6\u7684\u7279\u70b9\u53ca\u4f18\u52bf\uff1a<\/h3>\n\n\n\n
\n
\u3000\u30002. \u4e8c\u8fdb\u5236\u6587\u4ef6\u7684\u7279\u70b9\u53ca\u4f18\u52bf\uff1a<\/h3>\n\n\n\n
\n
\u3000\u30003. \u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u5bf9\u6bd4\uff1a<\/h3>\n\n\n\n
\n
\u3000\u3000\u4e94\u3001 \u5982\u4f55\u901a\u8fc7\u4e32\u53e3\u5c06Hex\u6587\u4ef6\u70e7\u5f55\u5230\u5355\u7247\u673a\u4e2d?<\/h2>\n\n\n\n
\n