<?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>KSCAN sample build fail</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95376/kscan-sample-build-fail</link><description>Hello, 
 I am using nrf5340dk board to test KSCAN sample.I add overlay file in my kscan application and modify code below: 
 
 Here is my overlay file &amp;quot;nrf5340dk_nrf5340_cpuapp.overlay&amp;quot;: 
 
 When building,it occurs error: 
 It seems that there is something</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Aug 2023 12:47:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95376/kscan-sample-build-fail" /><item><title>RE: KSCAN sample build fail</title><link>https://devzone.nordicsemi.com/thread/443177?ContentTypeID=1</link><pubDate>Fri, 25 Aug 2023 12:47:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5762b96d-edfa-4491-a932-cb84b1f9e600</guid><dc:creator>isilio</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;have you any solutions?&amp;nbsp;I would like to use kscan in the same way as LandyWang&amp;nbsp;on nrf9160, but I have the same error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: KSCAN sample build fail</title><link>https://devzone.nordicsemi.com/thread/421124?ContentTypeID=1</link><pubDate>Tue, 18 Apr 2023 23:02:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03464596-1395-40c4-a46d-74f3f2d83f84</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Landy, thanks for the info! I&amp;#39;ll try to replicate what you did, and see if I can find out more.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: KSCAN sample build fail</title><link>https://devzone.nordicsemi.com/thread/420086?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2023 06:16:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aff66127-d413-4f8c-855b-723b177bc0ab</guid><dc:creator>LandyWang</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have solved the kscan build fail problem by using device_get_binding instead of DEVICE_DT_GET.&lt;/p&gt;
&lt;p&gt;But device_is_ready(kscan_dev) return false when initializing, and the subsequent steps will not be performed.&lt;/p&gt;
&lt;p&gt;I think this problem is still related to the setting of the devicetree.&lt;/p&gt;
&lt;p&gt;Is there any suggestion for using kscan sample?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: KSCAN sample build fail</title><link>https://devzone.nordicsemi.com/thread/409970?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2023 01:35:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9586b9d-cea2-45f0-9992-510d52c33aec</guid><dc:creator>LandyWang</dc:creator><description>&lt;p&gt;Hi Raoul,&lt;/p&gt;
&lt;p&gt;There is no new progress on my side.I&amp;#39;m still stuck on the devicetree error.&lt;/p&gt;
&lt;p&gt;Thank you for your suggestion.I&amp;#39;ll look at ZMK for more information.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: KSCAN sample build fail</title><link>https://devzone.nordicsemi.com/thread/409741?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2023 07:19:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da35ae1c-d9bf-42bc-9f9a-d94c6a456fd9</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Landy,&lt;/p&gt;
&lt;p&gt;Thanks for sharing your details! No, I don&amp;#39;t think RTT will interfere with the sample.&lt;/p&gt;
&lt;p&gt;And as far as I know, only gpio is needed.&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t received any suggestions from my team so far. I&amp;#39;ll try to reach a developer on this, and keep you updated.&lt;/p&gt;
&lt;p&gt;Any progress on your side?&lt;/p&gt;
&lt;p&gt;By the way, maybe you are already aware, but there is a Zephyr based open source keyboard firmware called &lt;a href="https://zmk.dev/"&gt;ZMK&lt;/a&gt; that you might want to look at. If we don&amp;#39;t get further with the NCS sample soon, maybe that could be a better starting point in the interim.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: KSCAN sample build fail</title><link>https://devzone.nordicsemi.com/thread/408802?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2023 10:00:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8ac7903-65d7-4e7d-a4b7-7d0395dccf1e</guid><dc:creator>LandyWang</dc:creator><description>&lt;p&gt;Hi Raoul,&lt;/p&gt;
&lt;p&gt;Thank you for your assistance.&lt;/p&gt;
&lt;p&gt;Here is my prj.conf. I added RTT CONFIG to the sample for debugging, but I don&amp;#39;t think this will lead to the build fail of the kscan sample.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_STDOUT_CONSOLE=y
CONFIG_PRINTK=y
CONFIG_KSCAN=y

#RTT
CONFIG_CONSOLE=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y
CONFIG_UART_CONSOLE=n
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I try to connect nrf5340dk with a homemade 3x3 keypad. The keypad only have 6 gpios and doesn&amp;#39;t need i2c or other parts.&amp;nbsp;&lt;br /&gt;Does the Keyboard matrix connected to the Kscan sample need other hardware other than gpio? Or if there are other matrix keyboards that are compatible with kscan, please let me know.&lt;/p&gt;
&lt;p&gt;Thank you for your suggestion, I will use a clean build when building kscan to prevent possible NCS cache issues.&lt;/p&gt;
&lt;p&gt;I want to implement a simple matrix keyboard. I think kcan is the closest sample, so I use it.&amp;nbsp; If there are other samples that can implement a matrix keyboard, please let me know.&lt;br /&gt;I will try to continue to modify the kscan sample and try to get more information from the test modification.&lt;br /&gt;Thank you again for your assistance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: KSCAN sample build fail</title><link>https://devzone.nordicsemi.com/thread/408762?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2023 08:47:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfa1da8b-e1a3-4bdb-a5fe-e2654cd1fd9c</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Landy,&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t reached a conclusion yet. Sorry for my poor communication!&lt;/p&gt;
&lt;p&gt;I have followed the case you linked to, and the linked private case, and found other related cases - but all cases seem to remain unresolved. Working with the Kscan sample is tricky as it seems to be designed to be used together with a &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#!kscan%20driver"&gt;configured driver&lt;/a&gt;, and an actual scan matrix keyboard. So both customers and Nordic engineers don&amp;#39;t have the setup that this sample assumes. I assume you are also getting this CMake error (in addition to your devicetree issue):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CMake Warning at /opt/nordic/ncs/v2.2.0/zephyr/CMakeLists.txt:824 (message):
  No SOURCES given to Zephyr library: drivers__kscan&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;By the way, could you share your prj.conf with me? Or is it completely unmodified from the kscan sample?&lt;/p&gt;
&lt;p&gt;Also, what kind of hardware are you trying to connect?&lt;/p&gt;
&lt;p&gt;Regarding your suggestion, I don&amp;#39;t think there is anything &lt;em&gt;directly&lt;/em&gt; wrong with DEVICE_DT_GET(DT_NODELABEL(kscan0)). I tried replacing DT_NODELABEL with for example DT_ALIAS(kscan0) and DT_CHOSEN(kscan), but issue remains. However, I should note that when trying these DT functions, one time I seemed to have some cached value that only changed when I deleted the build folder, and not when doing a pristine build. I&amp;#39;m not sure what was going on there, but just in case, could you try doing a &amp;quot;clean build&amp;quot; like that? An NCS cache issue like that has happened before (but very rarely).&lt;/p&gt;
&lt;p&gt;I have asked internally for suggestions on this issue. I&amp;#39;ll let you know if I receive anything useful, and I&amp;#39;ll try to keep you updated more regularly.&lt;/p&gt;
&lt;p&gt;Sorry to leave you all stuck with this issue.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: KSCAN sample build fail</title><link>https://devzone.nordicsemi.com/thread/407664?ContentTypeID=1</link><pubDate>Thu, 02 Feb 2023 01:22:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83b051f0-b961-4347-878d-d5fb5c623314</guid><dc:creator>LandyWang</dc:creator><description>&lt;p&gt;Excuse me,&lt;br /&gt;Is there any suggestions on this issue? I&amp;#39;m still waiting for a reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: KSCAN sample build fail</title><link>https://devzone.nordicsemi.com/thread/405781?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2023 08:49:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bf493e1-346b-4c89-882d-a49d0d63470f</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi, thanks for letting us know. I had to prioritize other cases the past few days but I&amp;#39;m now investigating this. I&amp;#39;ll get back to you when I know more!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: KSCAN sample build fail</title><link>https://devzone.nordicsemi.com/thread/405604?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2023 08:30:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c58b06ca-e252-4d16-ad81-9e4351c33b3d</guid><dc:creator>YoyoBlue</dc:creator><description>&lt;p&gt;I&amp;#39;m trying to build lvgl sample in&amp;nbsp;\ncs\v2.2.0\zephyr\samples\subsys\display\lvgl on nrf52840dk. Also, we have similar building error with kscan and &amp;quot;const struct device *kscan_dev = DEVICE_DT_GET(KSCAN_NODE);&amp;quot;. We&amp;#39;d like to follow up this discussion to see if it is solved.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: KSCAN sample build fail</title><link>https://devzone.nordicsemi.com/thread/404501?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 09:26:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99bf9997-ab02-422f-8aa5-934ffa18ec4a</guid><dc:creator>LandyWang</dc:creator><description>&lt;p&gt;Hi Raoul,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s OK.I will wait for you.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll keep trying to modify my code for this problem, and if there are new test results, I will post them here.&lt;/p&gt;
&lt;p&gt;Thank you for your assistance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: KSCAN sample build fail</title><link>https://devzone.nordicsemi.com/thread/404475?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2023 08:31:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50928e8a-dc4a-4a8f-86b4-f64c89010ebd</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Landy,&lt;/p&gt;
&lt;p&gt;Just wanted to inform you that I need a little more time, I&amp;#39;m a bit busy at the moment.&lt;/p&gt;
&lt;p&gt;Thanks for waiting!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: KSCAN sample build fail</title><link>https://devzone.nordicsemi.com/thread/403992?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 08:30:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38787816-1b7b-4acc-9054-05c45a05c5b7</guid><dc:creator>Raoul</dc:creator><description>&lt;p&gt;Hi Landy,&lt;/p&gt;
&lt;p&gt;Just wanted to let you know that I&amp;#39;m investigating your case. We usually try to answer within two days, weekends not included. I&amp;#39;ll see if I have more info for you tomorrow.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Raoul&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: KSCAN sample build fail</title><link>https://devzone.nordicsemi.com/thread/403950?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 01:05:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dd418b8-24fc-4f46-981a-65f13311c932</guid><dc:creator>LandyWang</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have been waiting for days.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m still waiting for reply ....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: KSCAN sample build fail</title><link>https://devzone.nordicsemi.com/thread/403512?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2023 05:04:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fe5762e-c720-45dc-8616-9573c864ec7d</guid><dc:creator>LandyWang</dc:creator><description>&lt;p&gt;I found&amp;nbsp;&lt;a title="this post" href="https://devzone.nordicsemi.com/f/nordic-q-a/89743/adding-a-3x3-shield-button-board-to-nrf5340-dk/377946"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/89743/adding-a-3x3-shield-button-board-to-nrf5340-dk/377946&lt;/a&gt; had the same problem as I encountered,but I have no idea how to solve since it end up with a private case.&lt;/p&gt;
&lt;p&gt;According to the description of DEVICE_DT_GET,DEVICE_DT_GET will find a device reference from a devicetree node identifier,and return a pointer to a device object created from a devicetree node. If no device was allocated, this will fail with an error that looks like `undefined reference to __device_dts_ord_&amp;lt;N&amp;gt;`.&lt;/p&gt;
&lt;p&gt;This is my zephyr.dts.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5700.zephyr.dts.txt"&gt;devzone.nordicsemi.com/.../5700.zephyr.dts.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;kscan0&amp;quot; declared in zephyr.dts,but DEVICE_DT_GET did not find it.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know how to proceed with this problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: KSCAN sample build fail</title><link>https://devzone.nordicsemi.com/thread/403446?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 14:43:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f8af1c1-0e54-43e8-9621-4102c8368702</guid><dc:creator>MatrixX</dc:creator><description>&lt;p&gt;following - I have the same error&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>