<?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>SERIAL_HAS_DRIVER error in DevAcademy Intermediate Lesson 9</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123678/serial_has_driver-error-in-devacademy-intermediate-lesson-9</link><description>Hello, 
 I am trying to build the Lesson 9 Exercise 1 in the DevAcademy Intermediate course, related to DFU. I get the following error: 
 error: SERIAL_HAS_DRIVER (defined at drivers/serial/Kconfig:15) is assigned in a configuration file, but is not directly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Aug 2025 08:47:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123678/serial_has_driver-error-in-devacademy-intermediate-lesson-9" /><item><title>RE: SERIAL_HAS_DRIVER error in DevAcademy Intermediate Lesson 9</title><link>https://devzone.nordicsemi.com/thread/546146?ContentTypeID=1</link><pubDate>Wed, 20 Aug 2025 08:47:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f05652b-81d2-48ba-b9a0-34aed6384bca</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="Alejandro Navarro"]Just to make sure, could you please check on your side that the mentioned line effectively does not belong to the _defconfig file? If so, then we can close the issue.[/quote]
&lt;p&gt;Looking through misc. commits in the repo, I can&amp;#39;t see that&amp;nbsp;&lt;span&gt;CONFIG_SERIAL_HAS_DRIVER=y has ever been a part of the&amp;nbsp;nrf5340dk_nrf5340_cpuapp_defconfig.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;E.g. here is a comparison to tag v3.6.99-ncs2&lt;br /&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/pastedimage1755679626304v2.png" alt=" " /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m glad you were able to find the culprit.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SERIAL_HAS_DRIVER error in DevAcademy Intermediate Lesson 9</title><link>https://devzone.nordicsemi.com/thread/545944?ContentTypeID=1</link><pubDate>Mon, 18 Aug 2025 14:20:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59dd29d6-7042-407e-b525-3427e8862b71</guid><dc:creator>Alejandro Navarro</dc:creator><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;I have found&amp;nbsp;out that file&amp;nbsp;boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp_defconfig had the following line, which should not be there (as of commit&amp;nbsp;ca954a62, tag&amp;nbsp;&amp;nbsp;v3.7.99-ncs2-1):&lt;/p&gt;
&lt;p&gt;CONFIG_SERIAL_HAS_DRIVER=y&lt;/p&gt;
&lt;p&gt;Removing that line (that is, discarding changes not commited) solves the issue.&lt;/p&gt;
&lt;p&gt;Just to make sure, could you please check on your side that the mentioned line effectively does not belong to the _defconfig file? If so, then we can close the issue.&lt;/p&gt;
&lt;p&gt;Thank you very much in advance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SERIAL_HAS_DRIVER error in DevAcademy Intermediate Lesson 9</title><link>https://devzone.nordicsemi.com/thread/545866?ContentTypeID=1</link><pubDate>Mon, 18 Aug 2025 07:08:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdc4da8d-3c6a-43f6-b887-6e5615b294e6</guid><dc:creator>Alejandro Navarro</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have not tried anything new so far. CONFIG_SERIAL_DRIVER=y is set only in the default board configuration (zephyr/boards/nordic/nrf5340dk/nrf5340dk_nrf5340_cpuapp_defconfig), so that should not be recognized as &amp;quot;configured by the user&amp;quot;; there are no more occurrences of this symbol.&lt;/p&gt;
&lt;p&gt;How does their build configuration for this project look like? Maybe the root cause lies there.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Alejandro&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SERIAL_HAS_DRIVER error in DevAcademy Intermediate Lesson 9</title><link>https://devzone.nordicsemi.com/thread/545738?ContentTypeID=1</link><pubDate>Fri, 15 Aug 2025 07:31:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76505ea8-afbf-4ddf-9ac4-d1307a03a4c7</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been in contact with the responsible resources for the&amp;nbsp;DevAcademy Intermediate course. They have not been able to reproduce. Any changes you have added?&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user="Alejandro Navarro"]add CONFIG_SERIAL_HAS_DRIVER to prj.conf[/quote]
&lt;p&gt;This config is not meant to be set by user. Have you tried to search through your SDK or the menuconfig to see if this is enabled anywhere?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SERIAL_HAS_DRIVER error in DevAcademy Intermediate Lesson 9</title><link>https://devzone.nordicsemi.com/thread/545621?ContentTypeID=1</link><pubDate>Thu, 14 Aug 2025 07:24:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:462ca05f-4d8d-4937-b82a-8f55d6e2c49f</guid><dc:creator>Alejandro Navarro</dc:creator><description>&lt;p&gt;Hi Dazai,&lt;br /&gt;&lt;br /&gt;I have just tried both choices: either to add CONFIG_SERIAL_HAS_DRIVER to prj.conf, or excluding the prj.conf file from the build. In both cases I obtain the same output, the builder still complains that this option should not be user-configurable.&lt;/p&gt;
&lt;p&gt;Accordig to the documentation, it should be automatically selected when any driver that depends on it is enabled. Hence, I have also tried adding CONFIG_SERIAL=y to the prj.conf file and including it again in the build, but the result is still the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SERIAL_HAS_DRIVER error in DevAcademy Intermediate Lesson 9</title><link>https://devzone.nordicsemi.com/thread/545570?ContentTypeID=1</link><pubDate>Wed, 13 Aug 2025 16:41:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b321196-4ec4-400a-a2b6-f67f596a2967</guid><dc:creator>Dazai</dc:creator><description>&lt;p&gt;Based on the error message, it sounds like CONFIG_SERIAL_HAS_DRIVER=y needs to be in the&amp;nbsp;project config file, but I don&amp;#39;t know why it isn&amp;#39;t already.&lt;/p&gt;
&lt;p&gt;Does it build if you don&amp;#39;t set prj.conf as the base configuration and let the SDK/toolchain use the board&amp;#39;s defconfig?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>