<?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>Issue creating and using binding files for SPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119459/issue-creating-and-using-binding-files-for-spi</link><description>Hi all, will need to post short as I am getting a &amp;quot;cannot create ticket&amp;quot; error. 
 Hi all, 
 I&amp;#39;m quite new to nrf, zephyr and embedded of this complexity but have completed the fundamentals and intermediate courses. 
 My intention is to get SPI set up</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Mar 2025 01:46:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119459/issue-creating-and-using-binding-files-for-spi" /><item><title>RE: Issue creating and using binding files for SPI</title><link>https://devzone.nordicsemi.com/thread/526081?ContentTypeID=1</link><pubDate>Thu, 06 Mar 2025 01:46:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53422f8a-c0e2-4189-be61-3cc173d5c006</guid><dc:creator>HarrisonBrown</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;I have managed to get the SPI driver to at least stop producing an error on build and I think I now understand the bindings.&lt;br /&gt;&lt;br /&gt;I am currently not producing any SPI SCLK or MOSI on my logic analyser right now but that is another issue.&lt;br /&gt;&lt;br /&gt;The main issue behind this ticket is solved, thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue creating and using binding files for SPI</title><link>https://devzone.nordicsemi.com/thread/526057?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2025 19:07:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03b6e9f9-1fda-4f23-b206-75ba6d8facd0</guid><dc:creator>HarrisonBrown</dc:creator><description>&lt;p&gt;Thank you for your answer, I have dug through the zephyr and cmake documentation and through long hours have somehow managed to get a grip on the errors I have caused and why.&lt;/p&gt;
&lt;p&gt;Yes, I cannot change a required to not required, and errant spaces are an issue!&lt;br /&gt;&lt;br /&gt;I am in the process of getting my SPI driver&amp;nbsp;running&amp;nbsp;now, and will highlight your reply as an answer&amp;nbsp;if I have things functioning.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue creating and using binding files for SPI</title><link>https://devzone.nordicsemi.com/thread/526056?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2025 19:05:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8a45126-e195-43eb-a287-b51670ac54ca</guid><dc:creator>HarrisonBrown</dc:creator><description>&lt;p&gt;FYI, I have some clarification and proof about the multibyte delay:&lt;/p&gt;
&lt;p&gt;9.5.2.9: ADS129x Datasheet&lt;/p&gt;
&lt;p&gt;However, if SCLK is 4 MHz, one byte is transferred in 2 &amp;micro;s. Because this transfer time exceeds the tSDECODE specification, the processor can send subsequent bytes without delay. In the second scenario, the serial port can be programmed to use multiple byte transfers instead of the single-byte transfers required to meet the timing of the first scenario.&lt;/p&gt;
&lt;p&gt;I have scoped the ADS1298 PDK running using the TI evaluation software.&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/pastedimage1741200969828v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The attached image shows the PDK outputting a two byte command read and getting a response whilst using a 4MHz clock. The need to run with a 4* t_CLK space is not required. I would assume that&amp;nbsp;the ADS129x spi rx register can still receive spi data but cannot act upon the next byte received within 4* t_CLK, this clarifies this section.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue creating and using binding files for SPI</title><link>https://devzone.nordicsemi.com/thread/525989?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2025 13:28:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fe2d34a-0226-46d7-8806-f06a3a510d90</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;The error says that there is a conflict of the&amp;nbsp;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;spi-max-frequency &amp;gt; required&lt;/span&gt; key between your file and a file it includes.&lt;/p&gt;
&lt;p&gt;As spi-device.yaml is the only file you have included, we only need to check there.&lt;/p&gt;
&lt;p&gt;Notice how &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.7.99-ncs2/dts/bindings/spi/spi-device.yaml#L15"&gt;in spi-device.yaml&lt;/a&gt;, the &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;spi-max-frequency &amp;gt; required&lt;/span&gt; key is true, but in your file, it is false. This conflict is not allowed.&lt;/p&gt;
&lt;p&gt;This is not allowed. You will need to set &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;spi-max-frequency &amp;gt; required&lt;/span&gt; to true&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue creating and using binding files for SPI</title><link>https://devzone.nordicsemi.com/thread/525799?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2025 16:53:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c510d14-c7b2-4aaa-8546-b62e495975dc</guid><dc:creator>HarrisonBrown</dc:creator><description>&lt;p&gt;That is certainly a good idea suspending the task. Hopefully I will have time to try that and let you know. running at a higher clock speed would be nice to reduce power.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue creating and using binding files for SPI</title><link>https://devzone.nordicsemi.com/thread/525797?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2025 16:48:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16689585-e9f8-4d1b-94d6-4764e2316387</guid><dc:creator>HarrisonBrown</dc:creator><description>&lt;p&gt;Changing reg type from int to array then brought an error for spi-max-frequency:&lt;br /&gt;&lt;br /&gt;devicetree error: D:/_HONS/nRF_Projects/ads1298test1/dts/bindings\sensor\ti,ads1298.yaml (in &amp;#39;spi-max-frequency&amp;#39;): &amp;#39;required&amp;#39; from included file overwritten (&amp;#39;True&amp;#39; replaced with &amp;#39;False&amp;#39;)&lt;/p&gt;
&lt;p&gt;It seems I am missing some knowledge on editing binding files as even this change is throwing an error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue creating and using binding files for SPI</title><link>https://devzone.nordicsemi.com/thread/525796?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2025 16:46:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84e6dfef-ef69-4f4b-82f4-7e2dde49b946</guid><dc:creator>HarrisonBrown</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;That is correct there were errant spaces, I&amp;#39;ll bear in mind those are an&amp;nbsp; issue, probably there from me commenting out sections when retying.&lt;/p&gt;
&lt;p&gt;Removing those spaces provided a different error:&lt;br /&gt;&lt;br /&gt;I can see I have&amp;nbsp;replaced reg with an int instead of an array in the binding.&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1_2D00_2-spaces-removed-from-binding.txt"&gt;devzone.nordicsemi.com/.../1_2D00_2-spaces-removed-from-binding.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue creating and using binding files for SPI</title><link>https://devzone.nordicsemi.com/thread/525794?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2025 16:36:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d84dfff-d64a-4153-addd-7aec8d593a0b</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Another alternative is&amp;nbsp;&lt;span&gt;using SPIM TASKS_SUSPEND and TASKS_RESUME coupled via PPI to a timer to provide the required delay which then allows a much higher clock speed. I never got around to trying that.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue creating and using binding files for SPI</title><link>https://devzone.nordicsemi.com/thread/525789?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2025 16:21:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f887a83-3983-4f00-8841-afb9253c1dcc</guid><dc:creator>HarrisonBrown</dc:creator><description>&lt;p&gt;Hi hmolesworth,&lt;/p&gt;
&lt;p&gt;This support is a veritable mountain of info, much appreciated. Its the same situation and setup as myself. I am fully aware of the power on sequence and have hopefully already accounted for the 4xtclk delay mentioned in this thread. I too plan on manually controlling \CS within a function to account for this delay but lowering the SCLK to 500kHz is a good idea. Hopefully my test sequence works better than the OP, I have already&amp;nbsp;accounted power on time but should probably monitor the AVDD and DVDD.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue creating and using binding files for SPI</title><link>https://devzone.nordicsemi.com/thread/525625?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2025 03:15:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86f6cb69-0ac9-4615-9b79-380b9ae7109f</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;There are other considerations when using the ADS1298, which you may not be aware of yet; this is unrelated to your direct question but I think will be helpful in moving forward. Have a look at this ticket; I provided some support on the old SDK but the information should be useful.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/48513/problem-using-the-nrf52840-to-interface-an-ads1298-via-spi"&gt;problem-using-the-nrf52840-to-interface-an-ads1298-via-spi&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue creating and using binding files for SPI</title><link>https://devzone.nordicsemi.com/thread/525616?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2025 00:03:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:869425a4-b57f-45b2-bce8-1f06019c35b3</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi HarrisonBrown,&lt;/p&gt;
&lt;p&gt;I am not certain if this is a&amp;nbsp;website format or copy paste error, but there is an invalid indent of 1 space on line 13 and 25 of your YAML file. This invalid indent on line 13 would check out with the error log.&lt;/p&gt;
&lt;p&gt;If the indent is actually in your file, could you please remove them and&amp;nbsp;retry?&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue creating and using binding files for SPI</title><link>https://devzone.nordicsemi.com/thread/525417?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 00:10:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06e044a5-7e06-44e4-848c-e138f9eec43b</guid><dc:creator>HarrisonBrown</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Issue-creating-or-using-bindings-for-SPI.txt"&gt;devzone.nordicsemi.com/.../Issue-creating-or-using-bindings-for-SPI.txt&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Please see attached txt file with logs and overlay code, apologies but the text limit appears not to like me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue creating and using binding files for SPI</title><link>https://devzone.nordicsemi.com/thread/525416?ContentTypeID=1</link><pubDate>Mon, 03 Mar 2025 00:07:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d127d86e-7f20-4fae-bb04-24ead35be4cb</guid><dc:creator>HarrisonBrown</dc:creator><description>&lt;p&gt;I am also unable to reply with more than a few lines without an error, please bear with me.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;# ti,ads1298.yaml
# Put this in the project\dts\bindings\sensor folder
# Make one if it doesnt exist

description: |
  The ADS1298 is a 8-channel, 24-bit analog front-end for measuring
  electrophysiological signals such as ECG or EEG.

compatible: &amp;quot;ti,ads1298&amp;quot;

include: [spi-device.yaml]

 properties:
  reg:
    type: int
    required: true
    description: |
      reg is the SPI Mode MODE 1 FOR THIS DEVICE

  spi-max-frequency:
    type: int
    required: false
    description: |
      SCLK maximum frequency: 20MHz at DVDD 2.7-3.6V and 15MHz for 1.65-2V

 drdy-gpios:
    type: phandle-array
    required: false
    description: |
      Active Low Data Ready pin indicating when data is ready to be read&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;When I build this project I notice a warning in the log:&lt;br /&gt; appears in binding directories but isn&amp;#39;t valid YAML: while parsing a block mapping in &amp;quot;&amp;lt;unicode string&amp;gt;&amp;quot;, line 5, column 1 did not find expected key in &amp;quot;&amp;lt;unicode string&amp;gt;&amp;quot;, line 13, column 2&lt;/p&gt;
&lt;pre&gt;&lt;span style="text-decoration:underline;"&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>