{"id":99453,"date":"2024-11-22T10:33:37","date_gmt":"2024-11-22T02:33:37","guid":{"rendered":"\/\/www.viralrail.com\/?p=99453"},"modified":"2024-11-22T10:33:41","modified_gmt":"2024-11-22T02:33:41","slug":"hwjzmscd","status":"publish","type":"post","link":"\/\/www.viralrail.com\/blog\/99453.html","title":{"rendered":"HEX\u6587\u4ef6\u600e\u4e48\u751f\u6210\u7684"},"content":{"rendered":"\n
\u3000\u3000\u751f\u6210HEX\u6587\u4ef6<\/strong>\u7684\u8fc7\u7a0b\u901a\u5e38\u6d89\u53ca\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a<\/p>\n\n\n\n \u3000\u3000HEX\u6587\u4ef6\u662f\u4e00\u79cdASCII\u6587\u672c\u683c\u5f0f\uff0c\u7528\u4e8e\u4fdd\u5b58\u7f16\u8bd1\u540e\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u4fe1\u606f\uff0c\u5e76\u4e14\u5e38\u7528\u4e8e\u5355\u7247\u673a\u7684\u7a0b\u5e8f\u5b58\u50a8\u548c\u70e7\u5f55\u3002\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u53ef\u4ee5\u6210\u529f\u751f\u6210\u5e76\u4f7f\u7528HEX\u6587\u4ef6\u8fdb\u884c\u7a0b\u5e8f\u7684\u70e7\u5f55\u548c\u8fd0\u884c\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u4e0d\u540c\u7684\u7f16\u7a0b\u73af\u5883\u4e2d\u8bbe\u7f6e\u7f16\u8bd1\u5668\u9009\u9879\u4ee5\u751f\u6210HEX\u6587\u4ef6\u7684\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n\n\n\n \u3000\u3000\u5728\u7f16\u8bd1\u5de5\u5177\u680f\u4e2d\uff0c\u5355\u51fb\u201cOptions\u201d\u6309\u94ae\uff0c\u5f39\u51fa\u201cOptions for Target\u201d\u5bf9\u8bdd\u6846\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u5bf9\u8bdd\u6846\u4e2d\uff0c\u9009\u62e9\u751f\u6210HEX\u6587\u4ef6\u7684\u9009\u9879\u3002<\/p>\n\n\n\n \u3000\u3000\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\uff0c\u5e76\u9009\u4e2d\u201c\u6587\u4ef6\u201d->\u201c\u65b0\u5efa\u201d\u4e2d\u7684\u9009\u9879\u6765\u4f7f\u7f16\u8bd1\u5668\u4ea7\u751f\u6d4f\u89c8\u4fe1\u606f\u3002<\/p>\n\n\n\n \u3000\u3000\u91cd\u65b0\u7f16\u8bd1\uff0c\u5c31\u53ef\u4ee5\u751f\u6210HEX\u6587\u4ef6\u4e86\u3002<\/p>\n\n\n\n \u3000\u3000\u6253\u5f00\u9879\u76ee\u9009\u9879\u7a97\u53e3\uff0c\u8f6c\u5230Output\u9009\u9879\u9875\u3002<\/p>\n\n\n\n \u3000\u3000\u8bbe\u7f6e\u7f16\u8bd1\u8f93\u51fa\u7684\u8def\u5f84\u548c\u6587\u4ef6\u540d\u3002<\/p>\n\n\n\n \u3000\u3000\u51b3\u5b9a\u662f\u5426\u8981\u521b\u5efaHEX\u6587\u4ef6\uff0c\u9009\u4e2d\u5b83\u5c31\u53ef\u4ee5\u8f93\u51faHEX\u6587\u4ef6\u5230\u6307\u5b9a\u7684\u8def\u5f84\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u201cOutput\u201d\u5c5e\u6027\u6807\u7b7e\u4e2d\uff0c\u52fe\u9009\u201cCreate Hex File\u201d\u548c\u201cCreate Library\u201d\u9009\u9879\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u201cAfter Make\u201d\u8bbe\u7f6e\u4e2d\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\u7f16\u8bd1\u540e\u7684\u884c\u4e3a\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u201cListing\u201d\u5c5e\u6027\u6807\u7b7e\u4e2d\uff0c\u53ef\u4ee5\u8fdb\u884c\u76f8\u5173\u8bbe\u7f6e\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u201cOutput\u201d\u9009\u9879\u5361\u4e2d\uff0c\u627e\u5230\u5e76\u52fe\u9009\u201cCreate HEX File\u201d\u8fd9\u4e2a\u9009\u9879\u3002<\/p>\n\n\n\n \u3000\u3000HEX\u6587\u4ef6\u662f\u4e00\u79cd\u4f7f\u7528ASCII\u7f16\u7801\u8868\u793a\u4e8c\u8fdb\u5236\u6570\u636e\u7684\u6587\u4ef6\u683c\u5f0f\uff0c\u4e3b\u8981\u7528\u4e8e\u5b58\u50a8\u7a0b\u5e8f\u4ee3\u7801\u3001\u5185\u5b58\u6620\u50cf\u6216\u6570\u636e\u8bb0\u5f55\u7b49\u4e8c\u8fdb\u5236\u4fe1\u606f\u3002\u8fd9\u79cd\u6587\u4ef6\u683c\u5f0f\u5141\u8bb8\u4ee5ASCII\u683c\u5f0f\u8bfb\u53d6\u6570\u636e\uff0c\u786e\u4fdd\u6570\u636e\u7684\u53ef\u8bfb\u6027\u548c\u5b8c\u6574\u6027\u3002<\/p>\n\n\n\n \u3000\u3000HEX\u6587\u4ef6\u7684\u5177\u4f53\u683c\u5f0f\u5982\u4e0b\uff1a<\/p>\n\n\n\n \u3000\u3000\u4f8b\u5982\uff0c\u4e00\u4e2a\u5178\u578b\u7684HEX\u6587\u4ef6\u8bb0\u5f55\u53ef\u80fd\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n\n\n\n \u3000\u3000\u5176\u4e2d\uff1a<\/p>\n\n\n\n \u3000\u3000\u5728\u4f7f\u7528\u4e0d\u540c\u7c7b\u578b\u7684\u7f16\u7a0b\u5668(\u5982JTAG\u3001SWD\u7b49)\u70e7\u5f55HEX\u6587\u4ef6\u65f6\uff0c\u6709\u4ee5\u4e0b\u7279\u5b9a\u7684\u6ce8\u610f\u4e8b\u9879\u548c\u6b65\u9aa4\uff1a<\/p>\n\n\n\n \u3000\u3000\u786e\u4fdd\u76ee\u6807\u82af\u7247\u6b63\u5e38\u4e0a\u7535\u5de5\u4f5c\u3002<\/p>\n\n\n\n \u3000\u3000\u5c06\u7f16\u7a0b\u5668\u4e0e\u76ee\u6807\u82af\u7247\u7684\u63a5\u53e3(\u5982JTAG\u6216SWD)\u8fde\u63a5\u597d\u3002\u5982\u679c\u76ee\u6807\u82af\u7247\u4e0d\u662f\u7531\u7f16\u7a0b\u5668\u4f9b\u7535\uff0c\u5219\u9700\u8981\u5916\u63a5\u7535\u6e90\uff0c\u5e76\u4e14\u5916\u90e8\u4f9b\u7535\u548c\u7f16\u7a0b\u5668\u4f9b\u7535\u53ea\u80fd\u4e8c\u9009\u4e00\uff0c\u4e0d\u80fd\u540c\u65f6\u5bf9\u76ee\u6807\u82af\u7247\u4f9b\u7535\u3002<\/p>\n\n\n\n \u3000\u3000\u6253\u5f00\u76f8\u5e94\u7684\u7f16\u7a0b\u8f6f\u4ef6(\u5982J-Flash\u3001XH-Link-Writer\u7b49)\uff0c\u65b0\u5efa\u5de5\u7a0b\u5e76\u9009\u62e9\u8981\u70e7\u5f55\u7684\u82af\u7247\u3002<\/p>\n\n\n\n \u3000\u3000\u914d\u7f6e\u70e7\u5f55\u7684\u57fa\u672c\u53c2\u6570\uff0c\u5305\u62ec\u9009\u62e9\u76ee\u6807\u82af\u7247\u7cfb\u5217\u3001\u578b\u53f7\u548c\u64e6\u9664\u65b9\u5f0f\u7b49\u3002<\/p>\n\n\n\n \u3000\u3000\u52a0\u8f7d\u8981\u70e7\u5f55\u7684\u6570\u636e\u6587\u4ef6\uff0c\u652f\u6301Bin\u548cHex\u683c\u5f0f\u3002\u5982\u679c\u662fBin\u683c\u5f0f\u7684\u6587\u4ef6\uff0c\u9700\u8981\u8bbe\u7f6e\u5408\u6cd5\u6709\u6548\u7684\u8d77\u59cb\u5730\u5740\uff0c\u63a8\u8350\u4f7f\u7528Hex\u683c\u5f0f\uff0c\u56e0\u4e3a\u7f16\u7a0b\u5668\u4f1a\u81ea\u52a8\u8bc6\u522b\u56fa\u4ef6\u5730\u5740\u3002<\/p>\n\n\n\n \u3000\u3000\u70b9\u51fb\u542f\u52a8\u70e7\u5199\u6309\u94ae\u5f00\u59cb\u70e7\u5f55\u8fc7\u7a0b\u3002\u5e95\u90e8\u70e7\u5199\u8fdb\u5ea6\u533a\u4f1a\u5b9e\u65f6\u663e\u793a\u70e7\u5199\u7684\u8fdb\u5ea6\uff0c\u767e\u5206\u6bd4\u683c\u5f0f\u63d0\u793a\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u6574\u4e2a\u8fc7\u7a0b\u4e2d\uff0c\u89c2\u5bdf\u7f16\u7a0b\u5668\u7684\u663e\u793a\u5c4f\u3001\u6307\u793a\u706f\u548c\u8702\u9e23\u5668\u53ef\u4ee5\u4e86\u89e3\u70e7\u5f55\u72b6\u6001\u3002<\/p>\n\n\n\n \u3000\u3000\u786e\u4fdd\u63a5\u7ebf\u987a\u5e8f\u6b63\u786e\uff0c\u7279\u522b\u662fVCC\u3001GND\u548c\u6570\u636e\u7ebf\u7684\u8fde\u63a5\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u70e7\u5f55\u4e4b\u524d\uff0c\u786e\u4fdd\u6240\u6709\u8fde\u63a5\u90fd\u5df2\u6b63\u786e\u5b8c\u6210\uff0c\u5e76\u4e14\u6ca1\u6709\u677e\u52a8\u7684\u5730\u65b9\u3002<\/p>\n\n\n\n \u3000\u3000\u6839\u636e\u4e0d\u540c\u7684\u7f16\u7a0b\u5668\u548c\u82af\u7247\u7c7b\u578b\uff0c\u53ef\u80fd\u9700\u8981\u4e0d\u540c\u7684\u63a5\u7ebf\u56fe\u548c\u914d\u7f6e\u9009\u9879\uff0c\u8bf7\u53c2\u8003\u5177\u4f53\u7f16\u7a0b\u5668\u7684\u4f7f\u7528\u624b\u518c\u3002<\/p>\n\n\n\n \u3000\u3000\u8981\u9a8c\u8bc1\u751f\u6210\u7684HEX\u6587\u4ef6\u662f\u5426\u6b63\u786e\u65e0\u8bef\u4ee5\u53ca\u68c0\u67e5\u5176\u5b8c\u6574\u6027\uff0c\u53ef\u4ee5\u91c7\u53d6\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a<\/p>\n\n\n\n \u3000\u3000\u4f7f\u7528CRC\u6821\u9a8c\u548c<\/strong>\uff1a\u53ef\u4ee5\u901a\u8fc7\u5728HEX\u6587\u4ef6\u672b\u5c3e\u9644\u52a0CRC\u6821\u9a8c\u548c\u6765\u9a8c\u8bc1\u6587\u4ef6\u7684\u5b8c\u6574\u6027\u3002\u4f8b\u5982\uff0c\u5728MDK\u4e2d\u53ef\u4ee5\u81ea\u52a8\u751f\u6210CRC\u503c\u5e76\u9644\u52a0\u5230HEX\u6587\u4ef6\u672b\u5c3e\uff0c\u7136\u540e\u4e0e\u76ee\u6807\u8bbe\u5907(\u5982STM32)\u8ba1\u7b97\u7684CRC\u503c\u8fdb\u884c\u6bd4\u8f83\uff0c\u4ee5\u786e\u4fdd\u6587\u4ef6\u672a\u88ab\u7be1\u6539\u3002<\/p>\n\n\n\n \u3000\u3000\u8ba1\u7b97\u54c8\u5e0c\u503c<\/strong>\uff1a\u4e3a\u4e86\u786e\u4fddHEX\u6587\u4ef6\u7684\u5b8c\u6574\u6027\uff0c\u53ef\u4ee5\u8ba1\u7b97\u6574\u4e2a\u6587\u4ef6\u7684MD5\u3001SHA\u6216\u5176\u4ed6\u54c8\u5e0c\u503c\uff0c\u5e76\u5c06\u5176\u5b58\u50a8\u6216\u8bb0\u5f55\u4e0b\u6765\u3002\u5728\u6587\u4ef6\u5206\u53d1\u6216\u4f20\u8f93\u540e\uff0c\u518d\u6b21\u8ba1\u7b97\u6587\u4ef6\u7684\u54c8\u5e0c\u503c\u5e76\u4e0e\u539f\u59cb\u503c\u8fdb\u884c\u6bd4\u8f83\uff0c\u5982\u679c\u4e24\u8005\u4e00\u81f4\uff0c\u5219\u8bf4\u660e\u6587\u4ef6\u672a\u88ab\u7be1\u6539\u3002<\/p>\n\n\n\n \u3000\u3000\u4f7f\u7528\u5341\u516d\u8fdb\u5236\u7f16\u8f91\u5668<\/strong>\uff1a\u53ef\u4ee5\u4f7f\u7528\u9ad8\u7ea7\u5341\u516d\u8fdb\u5236\u7f16\u8f91\u5668(\u5982WinHex)\u6765\u67e5\u770b\u548c\u9a8c\u8bc1HEX\u6587\u4ef6\u7684\u5185\u5bb9\u3002\u8fd9\u4e9b\u5de5\u5177\u901a\u5e38\u63d0\u4f9b\u591a\u79cd\u54c8\u5e0c\u7b97\u6cd5\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u5feb\u901f\u83b7\u53d6\u6587\u4ef6\u7684\u54c8\u5e0c\u503c\uff0c\u5e76\u7528\u4e8e\u540e\u7eed\u7684\u9a8c\u8bc1\u5de5\u4f5c\u3002<\/p>\n\n\n\n \u3000\u3000\u81ea\u52a8\u5316\u6d4b\u8bd5\u811a\u672c<\/strong>\uff1a\u7f16\u5199\u81ea\u52a8\u5316\u6d4b\u8bd5\u811a\u672c\u6765\u9a8c\u8bc1\u751f\u6210\u7684HEX\u6587\u4ef6\u662f\u5426\u7b26\u5408\u9884\u671f\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5728\u6bcf\u6b21\u7f16\u8bd1\u9879\u76ee\u65f6\u81ea\u52a8\u8fd0\u884c\uff0c\u786e\u4fddHEX\u6587\u4ef6\u7684\u6b63\u786e\u6027\u3002<\/p>\n\n\n\n \u3000\u3000\u5757\u6821\u9a8c\u548c\u548c\u603b\u6821\u9a8c\u548c<\/strong>\uff1a\u5728\u4f7f\u7528Hexview\u5de5\u5177\u751f\u6210\u6570\u636e\u7ed3\u6784\u65f6\uff0c\u53ef\u4ee5\u542f\u7528\u5757\u6821\u9a8c\u548c\u548c\u603b\u6821\u9a8c\u548c\u529f\u80fd\u3002\u8fd9\u5c06\u4e3a\u6bcf\u4e2a\u5730\u5740\/\u957f\u5ea6\u5b57\u6bb5\u8ba1\u7b97\u5e76\u6dfb\u52a0\u6307\u5b9a\u7684\u6821\u9a8c\u548c\uff0c\u5e76\u5bf9\u6574\u4e2a\u6570\u636e\u96c6\u8fdb\u884c\u6821\u9a8c\u548c\/CRC\u8ba1\u7b97\uff0c\u4ece\u800c\u786e\u4fdd\u6570\u636e\u7684\u5b8c\u6574\u6027\u548c\u552f\u4e00\u6027\u3002<\/p>\n\n\n\n \u3000\u3000\u5728\u5d4c\u5165\u5f0f\u7cfb\u7edf\u5f00\u53d1\u4e2d\uff0c\u751f\u6210\u548c\u7ba1\u7406HEX\u6587\u4ef6\u662f\u5e38\u89c1\u7684\u9700\u6c42\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u63a8\u8350\u7684\u5de5\u5177\u548c\u8f6f\u4ef6\uff1a<\/p>\n\n\n\n HEX\u6587\u4ef6\u662f\u4e00\u79cdASCII\u6587\u672c\u683c\u5f0f\uff0c\u7528\u4e8e\u4fdd\u5b58\u7f16\u8bd1\u540e\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u4fe1\u606f\uff0c\u5e76\u4e14\u5e38\u7528\u4e8e\u5355\u7247\u673a\u7684\u7a0b\u5e8f\u5b58\u50a8\u548c\u70e7\u5f55\u3002\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u53ef\u4ee5\u6210\u529f\u751f\u6210\u5e76\u4f7f\u7528HEX\u6587\u4ef6\u8fdb\u884c\u7a0b\u5e8f\u7684\u70e7\u5f55\u548c\u8fd0\u884c<\/p>\n","protected":false},"author":1,"featured_media":94624,"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-99453","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\/99453","targetHints":{"allow":["GET"]}}],"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=99453"}],"version-history":[{"count":0,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/posts\/99453\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media\/94624"}],"wp:attachment":[{"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/media?parent=99453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/categories?post=99453"},{"taxonomy":"post_tag","embeddable":true,"href":"\/\/www.viralrail.com\/wp-json\/wp\/v2\/tags?post=99453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\n
\u3000\u3000\u4e00\u3001 \u5982\u4f55\u5728\u4e0d\u540c\u7684\u7f16\u7a0b\u73af\u5883\u4e2d\u8bbe\u7f6e\u7f16\u8bd1\u5668\u9009\u9879\u4ee5\u751f\u6210HEX\u6587\u4ef6?<\/h2>\n\n\n\n
\u3000\u30001. Keil Cx51<\/strong>:<\/h3>\n\n\n\n
\u3000\u30002. MDK (Keil MDK)<\/strong>:<\/h3>\n\n\n\n
\u3000\u30003. \u901a\u7528\u65b9\u6cd5<\/strong>:<\/h3>\n\n\n\n
\u3000\u30004. C51\u5355\u7247\u673a\u6280\u672f\u6559\u7a0b<\/strong>:<\/h3>\n\n\n\n
\u3000\u30005. uvision5<\/strong>:<\/h3>\n\n\n\n
\u3000\u3000\u4e8c\u3001 HEX\u6587\u4ef6\u7684\u5177\u4f53\u683c\u5f0f\u662f\u4ec0\u4e48\uff0c\u4ee5\u53ca\u5b83\u662f\u5982\u4f55\u8868\u793a\u4e8c\u8fdb\u5236\u6570\u636e\u7684?<\/h2>\n\n\n\n
\n
\n
\n
\u3000\u3000\u4e09\u3001 \u5728\u4f7f\u7528\u4e0d\u540c\u7c7b\u578b\u7684\u7f16\u7a0b\u5668(\u5982JTAG\u3001SWD\u7b49)\u70e7\u5f55HEX\u6587\u4ef6\u65f6\uff0c\u6709\u54ea\u4e9b\u7279\u5b9a\u7684\u6ce8\u610f\u4e8b\u9879\u6216\u6b65\u9aa4?<\/h2>\n\n\n\n
\u3000\u30001. \u786c\u4ef6\u8fde\u63a5<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u30002. \u8f6f\u4ef6\u8bbe\u7f6e<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u30003. \u70e7\u5f55\u64cd\u4f5c<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u30004. \u6ce8\u610f\u4e8b\u9879<\/strong>\uff1a<\/h3>\n\n\n\n
\u3000\u3000\u56db\u3001 \u5982\u4f55\u9a8c\u8bc1\u751f\u6210\u7684HEX\u6587\u4ef6\u662f\u5426\u6b63\u786e\u65e0\u8bef\uff0c\u4ee5\u53ca\u5982\u4f55\u68c0\u67e5\u5176\u5b8c\u6574\u6027?<\/h2>\n\n\n\n
\u3000\u3000\u4e94\u3001 \u5bf9\u4e8e\u5d4c\u5165\u5f0f\u7cfb\u7edf\u5f00\u53d1\uff0c\u6709\u54ea\u4e9b\u5de5\u5177\u6216\u8f6f\u4ef6\u63a8\u8350\u7528\u4e8e\u751f\u6210\u548c\u7ba1\u7406HEX\u6587\u4ef6?<\/h2>\n\n\n\n
\n