<?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>Gpio config input cause assertion &amp;amp; config missing dependencies</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117122/gpio-config-input-cause-assertion-config-missing-dependencies</link><description>I use SDK v.2.6.1. To avoid other possible factors affecting the results, I only keep the simplest function in the code which is reading the potential of gpio every second and using log to display it on RTT. I have two questions and would like to ask</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 03 Jan 2025 13:46:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117122/gpio-config-input-cause-assertion-config-missing-dependencies" /><item><title>RE: Gpio config input cause assertion &amp; config missing dependencies</title><link>https://devzone.nordicsemi.com/thread/516822?ContentTypeID=1</link><pubDate>Fri, 03 Jan 2025 13:46:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e7cb582-ad47-4f82-9318-1731a4141a6d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Glad to hear that it worked!&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll close this ticket now. Open it if you have any related issues, or open a new ticket if you encounter any new issues.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best of luck!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Gpio config input cause assertion &amp; config missing dependencies</title><link>https://devzone.nordicsemi.com/thread/516053?ContentTypeID=1</link><pubDate>Mon, 23 Dec 2024 01:54:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afe05fee-c61c-4ed4-a115-12ef2f14c252</guid><dc:creator>SmallWood</dc:creator><description>&lt;p&gt;Thank you very much. I finally can use the p0.21 as input without ASSERT when CONFIG_ASSERT=y.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Teson&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Gpio config input cause assertion &amp; config missing dependencies</title><link>https://devzone.nordicsemi.com/thread/515868?ContentTypeID=1</link><pubDate>Fri, 20 Dec 2024 09:25:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:075c7d7d-bd28-4d18-ad65-6108d17adea9</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;So you have the Raytac equivalent of our DK. In that case, I suggest you try to build for that board, instead of our board. That means, create a new build configuration, and build for the board raytac_mdbt50q_db_40_nrf52840, and replace your nrf52840dk_nrf52840.overlay with&amp;nbsp;&lt;span&gt;raytac_mdbt50q_db_40_nrf52840.overlay, and remove the reference to mx25r64 (I also couldn&amp;#39;t build, but I didn&amp;#39;t dig into why it didn&amp;#39;t work, since it is not present on your board).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/pastedimage1734686742819v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Edvin&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Gpio config input cause assertion &amp; config missing dependencies</title><link>https://devzone.nordicsemi.com/thread/515626?ContentTypeID=1</link><pubDate>Thu, 19 Dec 2024 02:18:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4a6ffc9-523f-4118-804f-6144b7af1ee6</guid><dc:creator>SmallWood</dc:creator><description>[quote userid="26071" url="~/f/nordic-q-a/117122/gpio-config-input-cause-assertion-config-missing-dependencies/515592"]Can you confirm that you are not able to detect the interrupts on the P0.21?[/quote]
&lt;p&gt;I can detect the interrupts on the P0.21 when I &lt;span&gt;comments&amp;nbsp;the&lt;/span&gt;&amp;nbsp;&lt;span&gt;CONFIG_ASSERT&lt;/span&gt;&lt;span&gt;=y.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/117122/gpio-config-input-cause-assertion-config-missing-dependencies/515592"]You are using a custom board, right? If so, then you don&amp;#39;t need to make any changes.&amp;nbsp;[/quote]
&lt;p&gt;Right. I see.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/117122/gpio-config-input-cause-assertion-config-missing-dependencies/515592"]So in that manner, yes, you have a custom board.[/quote]
&lt;p&gt;Thank you. I understand.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/117122/gpio-config-input-cause-assertion-config-missing-dependencies/515592"]Try adding this to your .overlay file:[/quote]
&lt;p&gt;I added, and when I build. There is an error happened.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;devicetree error: /aliases: undefined node label &amp;#39;mx25r64&amp;#39;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Here is my .overlay&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	zephyr,user {
		chrg_state-gpios = &amp;lt;&amp;amp;gpio0 21 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)&amp;gt;; // 27 work, 21 assertion
	};
};

/delete-node/ &amp;amp;mx25r64;
/delete-node/ &amp;amp;i2c0;&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;And I try disabled qspi, but still error.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;qspi {
	status = &amp;quot;disabled&amp;quot;;
};
&lt;/pre&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/117122/gpio-config-input-cause-assertion-config-missing-dependencies/515592"]And if that doesn&amp;#39;t help, can you please take a picture of the device you are working on and upload it here?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Sure. The following is the board I use.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:319px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/638x480/__key/communityserver-discussions-components-files/4/8867.pic.jpg" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This is my code. I delete the PM. Now there is only P0.21 interrupt. I cance the comments of CONFIG_ASSERT=y in prj.conf.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4657.button.zip"&gt;devzone.nordicsemi.com/.../4657.button.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;By the way,&amp;nbsp;I misunderstood the meaning of &amp;#39;annotations&amp;#39; and &amp;#39;comments&amp;#39;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Sorry to trouble you all the time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Teson&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Gpio config input cause assertion &amp; config missing dependencies</title><link>https://devzone.nordicsemi.com/thread/515592?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2024 19:43:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bbb4629-f6bb-4f53-aee7-2198860069bb</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Can you confirm that you are not able to detect the interrupts on the P0.21?&lt;/p&gt;
[quote user="SmallWood"]If I want to avoid assertion, I need to make hardware modifications and disconnect the connection between p0.21 and the external flash chip.&amp;nbsp;[/quote]
&lt;p&gt;You are using a custom board, right? If so, then you don&amp;#39;t need to make any changes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If it doesn&amp;#39;t work, you can try adding this to your .overlay file:&lt;/p&gt;
&lt;p&gt;/delete-node/ &amp;amp;mx25r64;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="SmallWood"]A custom board refers to a board where the chip (e.g., nrf52840) used is the original, unmodified chip from the factory, not processed or altered by anyone else, is that correct?[/quote]
&lt;p&gt;I would say that if you are not using a DK, at least to me, that is a custom board. The board refers to the PCB that the chip is mounted on.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The module that you link to is probably mounted on a PCB that is not produced by Nordic (because we don&amp;#39;t produce any PCBs with that module). So on your board, you probably don&amp;#39;t have an mx25r64 (external flash chip) connected to the P0.21. So in that manner, yes, you have a custom board.&lt;/p&gt;
&lt;p&gt;But if you are building for the nrf52840dk_nrf52840, then the chip thinks it sits on a standard DK, and it believes that the buttons and LEDs are on the same place as they use to be on the DK, which may not be the case. However, in that case, I should see the same warnings/errors as you see when running it on an actual nRF52840DK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Try adding this to your .overlay file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/delete-node/ &amp;amp;mx25r64;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And if that doesn&amp;#39;t help, can you please take a picture of the device you are working on and upload it here?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Gpio config input cause assertion &amp; config missing dependencies</title><link>https://devzone.nordicsemi.com/thread/515378?ContentTypeID=1</link><pubDate>Wed, 18 Dec 2024 07:00:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1026c2f2-e690-4dd1-9cfb-d4a11ee493cf</guid><dc:creator>SmallWood</dc:creator><description>&lt;p&gt;Let me confirm if my understanding is correct.&lt;/p&gt;
&lt;p&gt;In DK hardware, the GPIO P0.21 is routed out to the external flash chip for QSPI, so configuring p0.21 as input in software will cause an assertion to occur because nRF SDK detected conflict.&lt;/p&gt;
&lt;p&gt;If I want to avoid assertion, I need to make hardware modifications and disconnect the connection between p0.21 and the external flash chip.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So far, am I right?&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/117122/gpio-config-input-cause-assertion-config-missing-dependencies/515244"] But if you have a custom board, or a different board where this pin is routed out, you should be able to use it.&amp;nbsp;[/quote]
&lt;p&gt;I&amp;#39;ve started thinking that maybe the board I am using is not entirely a custom board. Let me confirm the definition of a custom board. A custom board refers to a board where the chip (e.g., nrf52840) used is the original, unmodified chip from the factory, not processed or altered by anyone else, is that correct?&lt;/p&gt;
&lt;p&gt;The &lt;span style="color:#3366ff;"&gt;&lt;a style="color:#3366ff;" href="https://www.raytac.com/product/ins.php?index_id=24"&gt;MDBT50Q-1MV2&lt;/a&gt;&lt;/span&gt;, because it already integrates the Bluetooth antenna onto the nrf52840, is considered a type of custom board. Since I am using it as the IC for my board, my board is not entirely a custom board because the IC part was not designed by me.&lt;/p&gt;
&lt;p&gt;Although on my board the P0.21 is as input routed out to the charger IC. But I don&amp;#39;t know if P0.21 has routing to the external flash memory chip before I use it. because the MDBT50Q-1MV2 was not designed by me.&lt;/p&gt;
&lt;p&gt;Is the external flash memory&amp;nbsp; can packaging with IC together?&lt;/p&gt;
&lt;p&gt;If external flash memory can packaging with IC. Maybe that is why I used CONFIG_ASSERT=y the assertion always happen, because the P0.21 on the MDBT50Q-1MV2 still routed out to the external flash chip.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/117122/gpio-config-input-cause-assertion-config-missing-dependencies/515244"]Do you see that it works as expected now?[/quote]
&lt;p&gt;On no&amp;nbsp;&lt;span&gt;CONFIG_ASSERT&lt;/span&gt;&lt;span&gt;=y case, the p0.21 can successful read high/low value as input. If the above assumptions are true, then perhaps only not use CONFIG_ASSERT=y is the only way.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Teson&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Gpio config input cause assertion &amp; config missing dependencies</title><link>https://devzone.nordicsemi.com/thread/515244?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2024 10:18:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c83798bf-360f-4fc0-831a-07fc9485c642</guid><dc:creator>Edvin</dc:creator><description>[quote user="SmallWood"]May I learn from you. How did you check whether a pin is an output or an input?[/quote]
&lt;p&gt;I tested your application on P0.27, and there it worked as expected. Then I tested it for P0.21, and it built without any issues, so I assume it works.&lt;/p&gt;
[quote user="SmallWood"]Is that because P0.21 is not routed out to the pin header, so the assertion shows the message &amp;#39;Unsupported pin&amp;#39; ?[/quote]
&lt;p&gt;No. The application is not aware of the external flash on the DK (at least when you set the QSPI pins to something else).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So the routing of the P0.21 is something that is only present on the DK. It means that the physical GPIO is not reachable from the pin header. But if you have a custom board, or a different board where this pin is routed out, you should be able to use it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you see that it works as expected now?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Gpio config input cause assertion &amp; config missing dependencies</title><link>https://devzone.nordicsemi.com/thread/515215?ContentTypeID=1</link><pubDate>Tue, 17 Dec 2024 04:00:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce251984-a8dc-4365-96fe-d3e2ce45c5ba</guid><dc:creator>SmallWood</dc:creator><description>[quote userid="26071" url="~/f/nordic-q-a/117122/gpio-config-input-cause-assertion-config-missing-dependencies/515118"]This is where I meant you should right click[/quote]
&lt;p&gt;Oh, I see!&lt;/p&gt;
&lt;p&gt;west build --build-dir c:/Users/User/Desktop/RadiRad/RadiHeart/Tech/Soft/EVMsampleCode/button/build c:/Users/User/Desktop/RadiRad/RadiHeart/Tech/Soft/EVMsampleCode/button --pristine --board nrf52840dk_nrf52840 -- -DNCS_TOOLCHAIN_VERSION=&amp;quot;NONE&amp;quot; -DCONF_FILE=&amp;quot;prj.conf&amp;quot;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/117122/gpio-config-input-cause-assertion-config-missing-dependencies/515118"] I can&amp;#39;t check if the P0.21 works as an input, since it is being controlled by the external flash chip on our DK.[/quote]
&lt;p&gt;May I learn from you. How did you check whether a pin is an output or an input?&lt;/p&gt;
&lt;p&gt;The gpio_pin_get_dt(p0.21) is run and read the correct voltage, so can I guess p0.21 is works as an input?&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/117122/gpio-config-input-cause-assertion-config-missing-dependencies/515118"]It is not routed out to the pin header, without some HW modifications on the DK.&amp;nbsp;[/quote]
&lt;p&gt;Is that because P0.21 is not routed out to the pin header, so the assertion shows the message &amp;#39;Unsupported pin&amp;#39; ?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Teson&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Gpio config input cause assertion &amp; config missing dependencies</title><link>https://devzone.nordicsemi.com/thread/515118?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2024 13:35:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff642210-b9e9-4f0b-b420-bc35652c4c5d</guid><dc:creator>Edvin</dc:creator><description>[quote user="SmallWood"]Is the build log means messages which terminal showed when I click &amp;quot;Build&amp;quot;?[/quote]
&lt;p&gt;Yes.&amp;nbsp;&lt;/p&gt;
[quote user="SmallWood"]&lt;span&gt;And w&lt;/span&gt;&lt;span&gt;hat is&amp;nbsp;Silabs board?&amp;nbsp;Is the Silabs board a specific model of board?&lt;/span&gt;[/quote]
&lt;p&gt;I was thinking of these messages from your build log:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;warning: PM (defined at soc/arm/silabs_exx32\efr32bg22\Kconfig.defconfig.series:18,
soc/arm/silabs_exx32\efr32bg27\Kconfig.defconfig.series:18,
soc/arm/silabs_exx32\efr32mg24\Kconfig.defconfig.series:19,
soc/arm/st_stm32\stm32f4\Kconfig.defconfig.series:20, subsys/pm/Kconfig:13) was assigned the value
&amp;#39;y&amp;#39; but got the value &amp;#39;n&amp;#39;. Check these unsatisfied dependencies: ((SOC_SERIES_EFR32BG22 &amp;amp;&amp;amp;
SOC_FAMILY_EXX32) || (SOC_SERIES_EFR32BG27 &amp;amp;&amp;amp; SOC_FAMILY_EXX32) || (SOC_SERIES_EFR32MG24 &amp;amp;&amp;amp;
SOC_FAMILY_EXX32) || SOC_SERIES_STM32F4X || (SYS_CLOCK_EXISTS &amp;amp;&amp;amp; HAS_PM)) (=n). See&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But as I mentioned, this comes from using CONFIG_PM=y instead of CONFIG_PM_DEVICE=y. So use CONFIG_PM_DEVICE=y.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="SmallWood"]I build on&lt;span style="text-decoration:underline;"&gt;&lt;span style="color:rgba(51, 102, 255, 1);"&gt; &lt;a style="color:rgba(51, 102, 255, 1);text-decoration:underline;" href="https://www.raytac.com/product/ins.php?index_id=24"&gt;MDBT50Q-1MV2&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;which used nRF52840 SoC Solution (Revision 2 IC). No, I didn&amp;#39;t see those errors.[/quote]
&lt;p&gt;When you create your build configuration, you will select a board. What is the board name that you are building for? E.g. if you were using an nRF52840 DK you should use the board name nrf52840dk_nrf52840.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="SmallWood"]I right clicking the build configuration, but I didn&amp;#39;t see the&amp;nbsp;&amp;quot;Copy build command&amp;quot;.&amp;nbsp;Did I right clicking the wrong place?[/quote]
&lt;p&gt;This is where I meant you should right click:&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/pastedimage1734354815587v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;But I can see from your build folder that you were building for the nrf52840dk_nrf52840, which means the nRF52840 DK.&lt;/p&gt;
&lt;p&gt;Yes, testing your sample seems to work (at least while testing on the DK). However, I can&amp;#39;t check if the P0.21 works as an input, since it is being controlled by the external flash chip on our DK. It is not routed out to the pin header, without some HW modifications on the DK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Gpio config input cause assertion &amp; config missing dependencies</title><link>https://devzone.nordicsemi.com/thread/514638?ContentTypeID=1</link><pubDate>Thu, 12 Dec 2024 06:18:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b542db17-8bbf-49f4-9ab0-19ac00fc7bc7</guid><dc:creator>SmallWood</dc:creator><description>&lt;p&gt;&lt;span&gt;Hello,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Firstable, I am sorry. Because I am a newbie, so I have many question want to ask.&lt;/span&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/117122/gpio-config-input-cause-assertion-config-missing-dependencies/514475"]The fact that the build log tries to set a Kconfig in a Silabs board is probably not a good sign. And as you can see, it fails to set it, because of the unsatisfied dependencies (which will obviously fail, because it is not a Silabs device.&amp;nbsp;[/quote]
&lt;p&gt;&lt;span&gt;Is the build log means messages which terminal showed when I click &amp;quot;Build&amp;quot;? And w&lt;/span&gt;&lt;span&gt;hat is&amp;nbsp;Silabs board?&amp;nbsp;Is the Silabs board a specific model of board?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/117122/gpio-config-input-cause-assertion-config-missing-dependencies/514475"]What board are you building for? Did you get these errors since the beginning?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I build on&lt;span style="text-decoration:underline;"&gt;&lt;span style="color:#3366ff;"&gt; &lt;a style="color:#3366ff;text-decoration:underline;" href="https://www.raytac.com/product/ins.php?index_id=24"&gt;MDBT50Q-1MV2&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;which used nRF52840 SoC Solution (Revision 2 IC). No, I didn&amp;#39;t see those errors.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/117122/gpio-config-input-cause-assertion-config-missing-dependencies/514475"]Is it possible to upload the application that you are trying to build, along with the build command?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sure! It&amp;#39;s the application which I&amp;#39;m test as the follow &amp;quot;button.zip&amp;quot;.&amp;nbsp;Since I wanted to solve the assertion problem at the beginning, I did not write the configuration of PM, nor its functions. Now I&amp;#39;ve added the PM&amp;#39;s configuration and written a k_timer to trigger sys_poweroff().&amp;nbsp;But I don&amp;rsquo;t know why putting sys_power() in the timer will trigger the assertion, so I annotated k_timer_start() first.&amp;nbsp;Can sys_power() be put into k_timer and work successfully? Or is it prohibited?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7178.button.zip"&gt;devzone.nordicsemi.com/.../7178.button.zip&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/117122/gpio-config-input-cause-assertion-config-missing-dependencies/514475"]it is possible to copy the build command by right clicking the build configuration and selecting &amp;quot;Copy build command&amp;quot;. [/quote]
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I right clicking the build configuration, but I didn&amp;#39;t see the&amp;nbsp;&amp;quot;Copy build command&amp;quot;.&amp;nbsp;Did I right clicking the wrong place?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:300px;max-width:400px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/800x600/__key/communityserver-discussions-components-files/4/2024_2D00_12_2D00_12_5F00_13h35_5F00_01.png" /&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/117122/gpio-config-input-cause-assertion-config-missing-dependencies/514527"]&lt;p data-immersive-translate-walked="6a4b0562-3a03-407c-8f1a-33a3ec47d0aa" data-immersive-translate-paragraph="1"&gt;You need to use&amp;nbsp;&lt;/p&gt;
&lt;p data-immersive-translate-walked="6a4b0562-3a03-407c-8f1a-33a3ec47d0aa" data-immersive-translate-paragraph="1"&gt;CONFIG_PM_DEVICE=y&lt;/p&gt;
&lt;p data-immersive-translate-walked="6a4b0562-3a03-407c-8f1a-33a3ec47d0aa" data-immersive-translate-paragraph="1"&gt;instead of&amp;nbsp;&lt;/p&gt;
&lt;p data-immersive-translate-walked="6a4b0562-3a03-407c-8f1a-33a3ec47d0aa" data-immersive-translate-paragraph="1"&gt;CONFIG_PM=y&lt;/p&gt;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have CONFIG_PM=y and CONFIG_PM_DEVICE=y before. Now I annotated CONFIG_PM=y and I did not receive the dependencies warning at terminal. My program can also run normally and sys_poweroff() also works normally. It seems that there should be no problem. Thank you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Gpio config input cause assertion &amp; config missing dependencies</title><link>https://devzone.nordicsemi.com/thread/514527?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2024 13:31:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1aa14e16-bd36-40ca-9a21-afcfae5cab98</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;By chance, I ran into the same issue in another customer sample. You need to use&amp;nbsp;&lt;/p&gt;
&lt;p&gt;CONFIG_PM_DEVICE=y&lt;/p&gt;
&lt;p&gt;instead of&amp;nbsp;&lt;/p&gt;
&lt;p&gt;CONFIG_PM=y&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But for the rest of the questions, I need to see the application.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Gpio config input cause assertion &amp; config missing dependencies</title><link>https://devzone.nordicsemi.com/thread/514475?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2024 11:12:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61eb35c6-9c37-4d34-ad09-e22c7c3e2723</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;The fact that the build log tries to set a Kconfig in a Silabs board is probably not a good sign. And as you can see, it fails to set it, because of the unsatisfied dependencies (which will obviously fail, because it is not a Silabs device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What board are you building for? Did you get these errors since the beginning?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;soc/arm/st_stm32\stm32f4\Kconfig.defconfig.series:20, subsys/pm/Kconfig:13) was assigned the value
&amp;#39;y&amp;#39; but got the value &amp;#39;n&amp;#39;. Check these unsatisfied dependencies: ((SOC_SERIES_EFR32BG22 &amp;amp;&amp;amp;
SOC_FAMILY_EXX32) || (SOC_SERIES_EFR32BG27 &amp;amp;&amp;amp; SOC_FAMILY_EXX32) || (SOC_SERIES_EFR32MG24 &amp;amp;&amp;amp;
SOC_FAMILY_EXX32) || SOC_SERIES_STM32F4X || (SYS_CLOCK_EXISTS &amp;amp;&amp;amp; HAS_PM)) (=n). See&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Is it possible to upload the application that you are trying to build, along with the build command? If you are using VS Code to build, it is possible to copy the build command by right clicking the build configuration and selecting &amp;quot;Copy build command&amp;quot;. The copied command is quite long, but I can shrink it down on my side.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="SmallWood"]But except the CONFIG_SYS_CLOCK_EXISTS, the other 2 config not directly user assignable. How should I let CONFIG_PN &amp;amp; CONFIG_POWEROFF set successful?[/quote]
&lt;p&gt;I need to have a look at the project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Gpio config input cause assertion &amp; config missing dependencies</title><link>https://devzone.nordicsemi.com/thread/514396?ContentTypeID=1</link><pubDate>Wed, 11 Dec 2024 03:35:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be837565-8609-43ce-8efa-5bf39af92846</guid><dc:creator>SmallWood</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. I used the the &lt;a href="https://www.raytac.com/product/ins.php?index_id=81"&gt;MDBT50Q-DB-40&lt;/a&gt;, which I don&amp;#39;t sure is it also DK? The application is produces this error on this &amp;quot;DK&amp;quot;. Beside,I already made some custom PCB which also used nRF52840.&amp;nbsp;Because I found this error on CB first, so I tried to reproduce this error on DK to check was my CB design wrong? And the DK did reproduce the error. So I thought the problem isn&amp;#39;t the CB. It should something I don&amp;#39;t know to cause this problem.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. In my main project, I have lots of missing dependency messages in my prj.conf. But when I build, I only saw &amp;quot;warning: PM&amp;quot; as the follow. Is that mean all of the config set except PM config assigned successful?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;warning: PM (defined at soc/arm/silabs_exx32\efr32bg22\Kconfig.defconfig.series:18,
soc/arm/silabs_exx32\efr32bg27\Kconfig.defconfig.series:18,
soc/arm/silabs_exx32\efr32mg24\Kconfig.defconfig.series:19,
soc/arm/st_stm32\stm32f4\Kconfig.defconfig.series:20, subsys/pm/Kconfig:13) was assigned the value
&amp;#39;y&amp;#39; but got the value &amp;#39;n&amp;#39;. Check these unsatisfied dependencies: ((SOC_SERIES_EFR32BG22 &amp;amp;&amp;amp;
SOC_FAMILY_EXX32) || (SOC_SERIES_EFR32BG27 &amp;amp;&amp;amp; SOC_FAMILY_EXX32) || (SOC_SERIES_EFR32MG24 &amp;amp;&amp;amp;
SOC_FAMILY_EXX32) || SOC_SERIES_STM32F4X || (SYS_CLOCK_EXISTS &amp;amp;&amp;amp; HAS_PM)) (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_PM and/or look up PM in the
menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,
and Kconfig - Tips and Best Practices sections of the manual might be helpful too.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;About my PM config is as follow, I noted the &lt;span style="color:#0000ff;"&gt;&lt;a style="color:#0000ff;" href="https://docs.zephyrproject.org/latest/kconfig.html#CONFIG_PM"&gt;CONFIG_PM&lt;/a&gt;&lt;/span&gt;=y is dependencies on CONFIG_SYS_CLOCK_EXISTS &amp;amp;&amp;amp;CONFIG_HAS_PM and &lt;span style="color:#0000ff;"&gt;&lt;a style="color:#0000ff;" href="https://docs.zephyrproject.org/latest/kconfig.html#CONFIG_POWEROFF"&gt;CONFIG_POWEROFF&lt;/a&gt;&lt;/span&gt;=y is dependencies on CONFIG_HAS_POWEROFF.&lt;/p&gt;
&lt;p&gt;But except the CONFIG_SYS_CLOCK_EXISTS, the other 2 config not directly user assignable. How should I let CONFIG_PN &amp;amp; CONFIG_POWEROFF set successful?&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;# ============================================================================= #
#           PM                                                                  #
# ============================================================================= #
CONFIG_SYS_CLOCK_EXISTS=y
CONFIG_PM=y
CONFIG_PM_DEVICE=y
CONFIG_PM_DEVICE_RUNTIME=y
CONFIG_CRC=y
CONFIG_POWEROFF=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Teson&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Gpio config input cause assertion &amp; config missing dependencies</title><link>https://devzone.nordicsemi.com/thread/514270?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 13:43:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0cb8aba-a592-4eea-ab75-4f570dc67c2c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]1. When setting p0.21 of gpio as input, the program will have an assertion error&lt;span&gt;(as the follow fig)&lt;/span&gt;. I have canceled qspi and i2c0 in the file .overlay.[/quote]
&lt;p&gt;I am not quite sure about this one. Is it possible to upload the application that reproduces this error on a DK?&lt;/p&gt;
[quote user=""]2. In prj.conf, some configs will have missing dependencies. Will missing dependencies cause config settings fail? &lt;br /&gt;(e.g. CONFIG_UART_CONSOLE was assigned the value y, but got the value n. Missing dependencies: SERIAL &amp;amp;&amp;amp; SERIAL_HAS_DRIVER). If the setting fails, how to modify it to make the setting successful?[/quote]
&lt;p&gt;Yes and no. It depends on where you see these warnings.&lt;/p&gt;
&lt;p&gt;When you see a squiggly line when modifying your prj.conf (or any other .conf file) those can be pointers to something that is wrong. But it may also be the parser in VS code being confused. However, when building, if you see the same message in the build log, it means that the config was not set correctly, because of a missing dependency. In this case, try adding CONFIG_SERIAL=y before CONFIG_UART_CONSOLE=y.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>