{"id":441,"date":"2014-02-01T17:18:41","date_gmt":"2014-02-01T17:18:41","guid":{"rendered":"https:\/\/ibex.tech\/open-source\/?p=441"},"modified":"2022-02-18T15:15:03","modified_gmt":"2022-02-18T15:15:03","slug":"viewing-microcontroller-hex-files","status":"publish","type":"post","link":"https:\/\/ibex.tech\/open-source\/bootloaders\/viewing-microcontroller-hex-files","title":{"rendered":"Viewing Microcontroller Hex Files"},"content":{"rendered":"<p>\nIt can be really handy to be able to view the program memory data bytes of an Intel hex file when developing and debugging boot loaders. Your IDE probably has a program memory view which does this, but often its more helpful to use a third party piece of software which shows you a nice and simple memory view and addressed correctly as the values will be burnt into a microcontroller.\n<\/p>\n<p>\nThe best application we&#39;ve found for this is the SEGGER &quot;J-Link software&quot; which is actually intended for use with their programmers, but which can be downloaded for free (there is an option to not have a serial number and you then just need to confirm you are not going to use it with a non SEGGER programmer).&nbsp; Download &quot;J-Link software &amp; documentation pack for Windows&quot; from <a href=\"http:\/\/www.segger.com\/jlink-software.html\">here<\/a>.\n<\/p>\n<p>\nInstall it and then run:\n<\/p>\n<p style=\"margin-left: 40px;\">\nC:\\Program Files (x86)\\SEGGER\\JLinkARM_V480e\\JFlashARM.exe\n<\/p>\n<p>\nSelect &#39;create a new project&#39; and press &quot;Start J-Flash&quot;.\n<\/p>\n<p>\nNow use Menu &gt; File &gt; Open data file and open your .hex file.&nbsp; You&#39;ll now see a program memory dump:\n<\/p>\n<p>\n<a href=\"https:\/\/ibex.tech\/open-source\/wp-content\/uploads\/sites\/4\/2014\/02\/j-link.png\" rel=\"noopener\" style=\"\" target=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" alt=\"j-link\" class=\"size-medium wp-image-442 alignnone\" height=\"158\" src=\"https:\/\/ibex.tech\/open-source\/wp-content\/uploads\/sites\/4\/2014\/02\/j-link-300x158.png\" style=\"\" title=\"\" width=\"300\" srcset=\"https:\/\/ibex.tech\/open-source\/wp-content\/uploads\/sites\/4\/2014\/02\/j-link-300x158.png 300w, https:\/\/ibex.tech\/open-source\/wp-content\/uploads\/sites\/4\/2014\/02\/j-link.png 907w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\n<\/p>\n<p>\nThe byte ordering of each 2 or 4 bytes may be different compared to your IDE due to using a different endian but otherwise you should see the program memory values at the addresses they will be written to in your chip.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It can be really handy to be able to view the program memory data bytes of an Intel hex file when developing and debugging boot loaders. Your IDE probably has a program memory view which does this, but often its more helpful to use a third party piece of software which shows you a nice [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-441","post","type-post","status-publish","format-standard","hentry","category-bootloaders"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/open-source\/wp-json\/wp\/v2\/posts\/441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/open-source\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/open-source\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/open-source\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/open-source\/wp-json\/wp\/v2\/comments?post=441"}],"version-history":[{"count":3,"href":"https:\/\/ibex.tech\/open-source\/wp-json\/wp\/v2\/posts\/441\/revisions"}],"predecessor-version":[{"id":595,"href":"https:\/\/ibex.tech\/open-source\/wp-json\/wp\/v2\/posts\/441\/revisions\/595"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/open-source\/wp-json\/wp\/v2\/media?parent=441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/open-source\/wp-json\/wp\/v2\/categories?post=441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/open-source\/wp-json\/wp\/v2\/tags?post=441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}