<?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>LTE mode preference default cannot be updated</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103958/lte-mode-preference-default-cannot-be-updated</link><description>Because the kconfig choice setting the LTE mode preference does not have a name, the default value cannot be updated. 
 https://github.com/nrfconnect/sdk-nrf/blob/b0bb4e078b9833ebbd1faf58eb0db17cba525983/lib/lte_link_control/Kconfig#L173 
 This is a problem</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Oct 2023 00:28:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103958/lte-mode-preference-default-cannot-be-updated" /><item><title>RE: LTE mode preference default cannot be updated</title><link>https://devzone.nordicsemi.com/thread/451601?ContentTypeID=1</link><pubDate>Mon, 23 Oct 2023 00:28:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e32338ab-9ad0-4a1a-97da-d4756d22fa79</guid><dc:creator>cgnd_chris</dc:creator><description>&lt;p&gt;Not sure if this will help in this case, but it&amp;#39;s possible to change the default value of a choice as explained in&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/build/kconfig/setting.html#configuring-choices"&gt;docs.zephyrproject.org/.../setting.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE mode preference default cannot be updated</title><link>https://devzone.nordicsemi.com/thread/447413?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 09:35:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:139e3445-ccf5-4f8b-8504-80d5381a2e68</guid><dc:creator>JordanYates</dc:creator><description>&lt;p&gt;Right, but that relies on the user to remember to add `&lt;span class="o"&gt;--&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;DEXTRA_CONF_FILE&lt;/span&gt;&lt;span class="o"&gt;=overlay-lte.&lt;/span&gt;&lt;span class="n"&gt;conf` every time they build for an LTE board. Which apart from being error prone is a pain to type.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE mode preference default cannot be updated</title><link>https://devzone.nordicsemi.com/thread/447405?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 09:18:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4198abbe-0240-4de2-93ea-4e562913dc55</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="JordanYates"]If you can provide an example of the overlay file you are suggesting that would be great.[/quote]
&lt;p&gt;I&amp;#39;ve modified the hello_world sample to do demonstrate this:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/hello_5F00_world_5F00_lte.zip"&gt;devzone.nordicsemi.com/.../hello_5F00_world_5F00_lte.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When you build with overlay-lte.conf added the &amp;quot;LTE features&amp;quot; will be added to the application.&lt;/p&gt;
&lt;p&gt;When you build without the overlay, they will be disabled, and because all the LTE related configs are in the overlay, you will not get any warnings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE mode preference default cannot be updated</title><link>https://devzone.nordicsemi.com/thread/447330?ContentTypeID=1</link><pubDate>Mon, 25 Sep 2023 03:49:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be63108c-c874-4e57-ad23-33d179959236</guid><dc:creator>JordanYates</dc:creator><description>&lt;p&gt;If you can provide an example of the overlay file you are suggesting that would be great.&lt;br /&gt;A .conf file doesn&amp;#39;t work, because the symbol won&amp;#39;t exist for non-LTE boards.&lt;br /&gt;A kconfig file doesn&amp;#39;t work, because the symbol does not have a name, which is the point of this ticket.&lt;br /&gt;The defconfig file doesn&amp;#39;t make sense, because the desired networking mode is based on the application, not the board.&lt;/p&gt;
&lt;p&gt;Warnings are not acceptable because all applications are run through CI, which fails on warnings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE mode preference default cannot be updated</title><link>https://devzone.nordicsemi.com/thread/447267?ContentTypeID=1</link><pubDate>Fri, 22 Sep 2023 14:23:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72975749-40e5-4927-bca5-747866fdd2e0</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="JordanYates"]This is not ideal for two reasons. It requires an overlay file for every board that you want to compile against, and it only works at an application level. If I wish to&amp;nbsp;override the default for all applications in my repo, that is a lot of duplication.[/quote]
&lt;p&gt;I might be missing some details about how you have set up your projects and boards, but you should only need one overlay file per application, not one per board per application.&lt;/p&gt;
&lt;p&gt;Another possibility, if the board always should have the option enabled is to put it in the board&amp;#39;s defconfig file.&lt;/p&gt;
[quote user="JordanYates"]&lt;p&gt;&amp;gt;&lt;span&gt;Even if CONFIG_LTE_MODE_PREFERENCE was directly configurable by the user, you would still have the same problem that it is not defined when CONFIG_LTE_LINK_CONTROL is disabled.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Having the value not defined when LTE_LINK_CONTROL is disabled is not a problem, that is the desired solution.&lt;/p&gt;[/quote]
&lt;p&gt;Then I am not sure if I really understand the problem. An undefined Kconfig symbol will give a Kconfig warning, but it shouldn&amp;#39;t really keep you from building your application in either case.&lt;/p&gt;
&lt;p&gt;Can you share the build errors you get?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE mode preference default cannot be updated</title><link>https://devzone.nordicsemi.com/thread/446861?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 12:01:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a029e28-44e7-490f-ac26-153abdf6e624</guid><dc:creator>JordanYates</dc:creator><description>&lt;p&gt;&amp;gt;&amp;nbsp;&lt;span&gt;Another option is to use a Kconfig overlay file, which is added to the build when you want to enable the LTE-related features. You can e.g. look at the asset_tracker_v2 sample application how this can be done.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This is not ideal for two reasons. It requires an overlay file for every board that you want to compile against, and it only works at an application level. If I wish to&amp;nbsp;override the default for all applications in my repo, that is a lot of duplication.&lt;/p&gt;
&lt;p&gt;&amp;gt;&lt;span&gt;Even if CONFIG_LTE_MODE_PREFERENCE was directly configurable by the user, you would still have the same problem that it is not defined when CONFIG_LTE_LINK_CONTROL is disabled.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Having the value not defined when LTE_LINK_CONTROL is disabled is not a problem, that is the desired solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LTE mode preference default cannot be updated</title><link>https://devzone.nordicsemi.com/thread/446854?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2023 11:54:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b114dbb9-debe-463e-8dc7-269d0deda820</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Even if CONFIG_LTE_MODE_PREFERENCE was directly configurable by the user, you would still have the same problem that it is not defined when CONFIG_LTE_LINK_CONTROL is disabled.&lt;/p&gt;
&lt;p&gt;But, as it is a choice, you are not supposed to use it directly, but instead set one of these options: &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/b0bb4e078b9833ebbd1faf58eb0db17cba525983/lib/lte_link_control/Kconfig#L181-L220"&gt;https://github.com/nrfconnect/sdk-nrf/blob/b0bb4e078b9833ebbd1faf58eb0db17cba525983/lib/lte_link_control/Kconfig#L181-L220&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Setting these options if CONFIG_LTE_LINK_CONTROL is not enabled will give a warning, but the build itself should succeed (assuming the code is written so that the LTE related parts are removed).&lt;/p&gt;
&lt;p&gt;However, you could of course argue that a build shouldn&amp;#39;t have warnings at all.&lt;/p&gt;
&lt;p&gt;Another option is to use a Kconfig overlay file, which is added to the build when you want to enable the LTE-related features. You can e.g. look at the asset_tracker_v2 sample application how this can be done.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>