<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Difference between different HEX files found in build/zephyr folder of nRF Connect SDK project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113643/difference-between-different-hex-files-found-in-build-zephyr-folder-of-nrf-connect-sdk-project</link><description>Hi all! 
 I&amp;#39;ve been working on a project using the nRF Connect extension for VS Code and I&amp;#39;ve been trying to figure out which HEX file in my build/zephyr folder for my application I&amp;#39;m supposed to flash onto the Thingy 91? I&amp;#39;m asking based of this closed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 Aug 2024 07:38:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113643/difference-between-different-hex-files-found-in-build-zephyr-folder-of-nrf-connect-sdk-project" /><item><title>RE: Difference between different HEX files found in build/zephyr folder of nRF Connect SDK project</title><link>https://devzone.nordicsemi.com/thread/497272?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2024 07:38:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee8459c5-1107-4994-8760-b0996bcd905c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I do not immediately see what the problem could be here. Do you get an error or warning about this in the build log as well, or is it just from the intellisense in VS Code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference between different HEX files found in build/zephyr folder of nRF Connect SDK project</title><link>https://devzone.nordicsemi.com/thread/497220?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2024 17:03:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78a340a0-3b26-4932-99f4-275810909aac</guid><dc:creator>witch_mountain</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;You would be correct to assume that I had an 110 error. Based on the zephyr.dts file I found that the NMOS pins on the Thingy91 correspond to the pins under pwm2 which is what I&amp;#39;m trying to use.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I follow you&amp;#39;re advice with the blinky_pwm example (thank you so much for that!!) and I&amp;#39;ve run into this little error:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1722963745080v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Wasn&amp;#39;t able to find anything relating to this error so would love to understand what exactly is being underdefined?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference between different HEX files found in build/zephyr folder of nRF Connect SDK project</title><link>https://devzone.nordicsemi.com/thread/497081?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2024 07:07:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:463c0ad3-63f6-41f1-adbe-4fafe03a8641</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I assume&amp;nbsp;you are looking at this because110 (from the error message) maps to pwm2 in your generated&amp;nbsp;devicetree_generated.h?&lt;/p&gt;
&lt;p&gt;The pins are configured in the device tree in the snippet you have here. You need to enable the config for PWM as well.&lt;/p&gt;
&lt;p&gt;If using the nrfx API you can refer to the samples under&amp;nbsp;modules/hal/nordic/nrfx/samples/src/nrfx_pwm/. As you are using pwm2 you would have to add&amp;nbsp;CONFIG_NRFX_PWM2=y to your project configuration.&lt;/p&gt;
&lt;p&gt;If using the Zephyr API you can refer to&amp;nbsp;zephyr/samples/basic/blinky_pwm/, and see the overlay files for the nrf9160 as well as the prj.conf for&amp;nbsp;the config that enables pwm (CONFIG_PWM=y).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference between different HEX files found in build/zephyr folder of nRF Connect SDK project</title><link>https://devzone.nordicsemi.com/thread/497045?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2024 18:39:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2ef1d41-818c-435a-b68e-a0cad823a169</guid><dc:creator>witch_mountain</dc:creator><description>&lt;p&gt;So I&amp;#39;ve been trying to follow through with the devicetree documentation (having some issues trying to implements the led examples to the Thingy91 NMOS pins) to try and debug what&amp;#39;s going on here and at the moment this is what I have in my devicetree:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1722882083544v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;and I&amp;#39;m not entirely sure if this is how I&amp;#39;m supposed to configure the pins I want on devicetree before i can initialize them in main.c?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Some guidance would be really great! Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference between different HEX files found in build/zephyr folder of nRF Connect SDK project</title><link>https://devzone.nordicsemi.com/thread/497009?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2024 14:46:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e40439f-5d5a-469b-950c-30ad0e049a48</guid><dc:creator>witch_mountain</dc:creator><description>&lt;p&gt;Thanks for the direction!&lt;/p&gt;
&lt;p&gt;Quick question while I look into the provided documentation, for the NMOS transistors on the Thingy 91, looking at the devicetree overlay are they the P0.13-P0.20 that are connected to the adc block or the pmw2 block? On the hardware files for the Thingy 91 I know that P0.13-P0.16 are the pins associated with the transistors.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference between different HEX files found in build/zephyr folder of nRF Connect SDK project</title><link>https://devzone.nordicsemi.com/thread/497003?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2024 14:20:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ca249e4-e3da-41f9-a62a-1d7c3e7010f8</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can check the documentation &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/zephyr/build/dts/troubleshooting.html#undefined_reference_to_devicedtsordn"&gt;here&lt;/a&gt; for how to handle&amp;nbsp;undefined reference to &lt;code&gt;__device_dts_ord_&amp;lt;N&amp;gt;&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference between different HEX files found in build/zephyr folder of nRF Connect SDK project</title><link>https://devzone.nordicsemi.com/thread/496994?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2024 13:39:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aac2404f-2f48-42d3-95b8-729091c0924d</guid><dc:creator>witch_mountain</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Hmm that&amp;#39;s what I suspected but I wanted to make sure, thanks. Looking a the build error I have, I already have my code file in the same larger folder as my toolchain as other posts on Devzone say to move your code to stop the errors. I&amp;#39;m not sure what to do in my case?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference between different HEX files found in build/zephyr folder of nRF Connect SDK project</title><link>https://devzone.nordicsemi.com/thread/496993?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2024 13:36:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ba8b0f9-f502-4e00-ad1e-85c7710526c5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If the project never built successfully it is a separate matter that needs to be addressed. If the project did not build the file is never generated.&lt;/p&gt;
&lt;p&gt;Assuming you are able to biuld the project and that consists of multiple images (which most projects do), the image that shoudl be flashed is called merged.hex and you should find it inside the build folder. If you use nRF Connect for VS Code and program from there it will automatically select the file.&lt;/p&gt;
&lt;p&gt;For reference, here is the file that is programmed in that case on my computer when i flash the asset tracker application from nRF Connect SDK 2.7.0:&amp;nbsp;/opt/nordic/ncs/v2.7.0/nrf/applications/asset_tracker_v2/build/merged.hex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference between different HEX files found in build/zephyr folder of nRF Connect SDK project</title><link>https://devzone.nordicsemi.com/thread/496987?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2024 13:06:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73d78e19-819e-43d0-90f7-65396671ad27</guid><dc:creator>witch_mountain</dc:creator><description>&lt;p&gt;Also when I do rebuild I seem to be getting this error log:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1722863189535v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference between different HEX files found in build/zephyr folder of nRF Connect SDK project</title><link>https://devzone.nordicsemi.com/thread/496985?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2024 13:04:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64ed4364-cf72-4e9b-818a-471a63b1f455</guid><dc:creator>witch_mountain</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes so I did look through that document before posting and tried those hex files and tired to rebuild to get the app_signed.hex file. I&amp;#39;m trying to flash my application onto the Thingy 91 device and it seems to not be working either through the programmer app or through VS Code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Difference between different HEX files found in build/zephyr folder of nRF Connect SDK project</title><link>https://devzone.nordicsemi.com/thread/496952?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2024 11:39:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:007ec75c-846d-4edc-a1ac-29e29a4c041b</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please see &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/config_and_build/configuring_app/output_build_files.html"&gt;Output build files&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>