<?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>Having trouble getting interrupts on the TX side</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64625/having-trouble-getting-interrupts-on-the-tx-side</link><description>I&amp;#39;ve been seeing issues with getting an interrupt on the TX side. I reckon it could also be linked to the RX module cause if the payload isn&amp;#39;t sent, the interrupt on the TX side won&amp;#39;t be asserted? 
 Snippet for transmitting payload: 
 
 
 
 I have printed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Sep 2020 11:54:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64625/having-trouble-getting-interrupts-on-the-tx-side" /><item><title>RE: Having trouble getting interrupts on the TX side</title><link>https://devzone.nordicsemi.com/thread/270319?ContentTypeID=1</link><pubDate>Fri, 18 Sep 2020 11:54:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed963525-0227-4e0e-bbee-6d276a492d6c</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Essentially you need to clear the interrupts every time they occur, to be ready to receive more interrupts.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It should work fine to clear the interrupts in the interrupt handler,&amp;nbsp;like you describe.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If this is not working you need to scope the SPI lines to see if the communication looks OK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble getting interrupts on the TX side</title><link>https://devzone.nordicsemi.com/thread/270188?ContentTypeID=1</link><pubDate>Thu, 17 Sep 2020 21:10:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d9d17ea-d1b4-4840-b3b2-5e69ad61af64</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;I should be clearing the IRQs in the initialization stage, right? Currently I am disabling the respective interrupt that occurred inside the IRQ handler (i.e `TX_DS`, RX_DR)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble getting interrupts on the TX side</title><link>https://devzone.nordicsemi.com/thread/268077?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2020 12:48:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60f96687-5f35-414b-91d1-07a7935b2483</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It sounds like you are not properly clearing the interrupt then.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A simple way to clear all the current interrupts is to write 0x70 to the STATUS register.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you doing this?&lt;/p&gt;
&lt;p&gt;If you think you are doing it, but it still doesn&amp;#39;t work, are you able to scope the SPI and IRQ lines and see what is going on on the bus?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble getting interrupts on the TX side</title><link>https://devzone.nordicsemi.com/thread/267897?ContentTypeID=1</link><pubDate>Thu, 03 Sep 2020 15:12:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e20acc5d-317c-44b5-ab62-04c1f83b05e9</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;Well the issue is subsequent&amp;nbsp;interrupts don&amp;#39;t&amp;nbsp;occur after the first interrupt.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After reading the STATUS register, I still see `0x1E`.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p class="p1"&gt;Setting MAX RT:&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;0x0271e ----------- 0x01e00&lt;/p&gt;
&lt;p class="p1"&gt;Read Status register:&lt;span class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;0x0700 ----------- 0x01e1e&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble getting interrupts on the TX side</title><link>https://devzone.nordicsemi.com/thread/265944?ContentTypeID=1</link><pubDate>Mon, 24 Aug 2020 11:21:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b1dd42e-63e8-4179-b1d3-6bada90a0465</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you see the IRQ pin go high again after you clear the MAX_RT bit?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, do you read back the STATUS register again to verify that the bit is cleared?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble getting interrupts on the TX side</title><link>https://devzone.nordicsemi.com/thread/265836?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2020 19:42:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f3f85cf-2850-4561-b7e3-fc3c5a2f3aa3</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;clearing the&amp;nbsp;pending bit&amp;nbsp;by writing 1 via `__HAL_GPIO_EXTI_CLEAR_IT`.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I see 0x1E as the status register&amp;#39;s value so it&amp;#39;s MAX_RT.&lt;br /&gt;&lt;br /&gt;And yes I clear MAX_RT by setting the bit to 1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble getting interrupts on the TX side</title><link>https://devzone.nordicsemi.com/thread/264722?ContentTypeID=1</link><pubDate>Mon, 17 Aug 2020 05:55:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01ce1b20-5f75-4d6a-a0a9-563bb017de58</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How do you clear the IRQ pin? By writing to the STATUS register?&lt;/p&gt;
&lt;p&gt;Which interrupt are you getting? TX_DS or MAX_RT?&lt;/p&gt;
&lt;p&gt;If you get the MAX_RT interrupt you might need to flush the TX FIFO before trying to send more data, unless you want to try to retransmit the same packet.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble getting interrupts on the TX side</title><link>https://devzone.nordicsemi.com/thread/264673?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2020 18:53:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d096a8c5-b5dc-4086-b004-37a97fbc1851</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;So I see when I restarted the program, I got the interrupt at the first attempt but then when I ran the program after, I didn&amp;#39;t receive the interrupt. I&amp;#39;m clearing the IRQ pin in the ISR. What else could be the cause?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble getting interrupts on the TX side</title><link>https://devzone.nordicsemi.com/thread/264620?ContentTypeID=1</link><pubDate>Fri, 14 Aug 2020 12:28:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdd7a2d0-f802-4425-b1f8-041199899cf7</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am trying to figure out if the issue could be hardware related, and get a better understanding of how you are controlling the nRF24L01+.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Assuming the interrupts are not disabled (which they don&amp;#39;t seem to be based on your register readouts) there is no reason you shouldn&amp;#39;t get some kind of interrupt after sending a packet, regardless of whether or not the packet is received by anyone.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble getting interrupts on the TX side</title><link>https://devzone.nordicsemi.com/thread/264512?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 14:36:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13c83b2e-b55f-4fec-9232-54a168b78080</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;I&amp;#39;m using an off the shelf nRF240l+ module.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have a schematic per se and I don&amp;#39;t mind sending you a capture of the setup itself; it&amp;#39;s just a bit messy with all the wires. But what are you trying to figure out? Or perhaps what do you think may be wrong?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble getting interrupts on the TX side</title><link>https://devzone.nordicsemi.com/thread/264394?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 08:57:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:576283bd-6b07-41aa-a05d-1169c56894c0</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would basically like to get a bit more details about your hardware, if possible.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you made your own PCB with some MCU and the nRF24L01+, or are you using an off the shelf nRF24L01+ module?&lt;/p&gt;
&lt;p&gt;If you have a schematic or a picture of a setup that could also be useful.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble getting interrupts on the TX side</title><link>https://devzone.nordicsemi.com/thread/264295?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 13:57:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14de2104-44e7-4464-b222-fcdfc7ddc84d</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;If the IRQ pin had gone lower, the interrupt would have occurred but I see it happen inconsistently.&lt;/p&gt;
&lt;p&gt;it&amp;#39;s a&amp;nbsp;nRF24L01+ radio transceiver, and not sure what you mean by how is it being controlled. Could you elaborate?&lt;/p&gt;
&lt;p&gt;i&amp;#39;m powering it at 3.3V.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble getting interrupts on the TX side</title><link>https://devzone.nordicsemi.com/thread/264211?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2020 09:52:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26e01c4d-eba3-4208-9796-fc300d8f0fcb</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I mean if you measured the pin with a scope or logic analyzer to verify if it went low?&lt;/p&gt;
&lt;p&gt;Can you give me a bit more information about the L01+ modules you are using, and what you are using to control them?&lt;/p&gt;
&lt;p&gt;Also, what voltage level are you using?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble getting interrupts on the TX side</title><link>https://devzone.nordicsemi.com/thread/263911?ContentTypeID=1</link><pubDate>Mon, 10 Aug 2020 22:30:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:207ca336-c8fc-4254-9990-4b1f06d3debf</guid><dc:creator>morpho</dc:creator><description>&lt;p&gt;CONFIG on the TX side has a value of `0x02`, which means `PWR_UP` is set.&lt;br /&gt;&lt;br /&gt;And do you mean if the IRQ pin&amp;#39;s PR bit is cleared?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;And status register is 0x1E when I get an interrupt. But right now I am not getting one&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Having trouble getting interrupts on the TX side</title><link>https://devzone.nordicsemi.com/thread/263825?ContentTypeID=1</link><pubDate>Mon, 10 Aug 2020 12:40:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30f70fad-748f-432d-8c79-f24903490e40</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You should always get an interrupt on the TX side, whether or not the receiver is working.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you have ACK enabled you will get the TX_DS interrupt when you receive an ACK, and if no ACK is received you should get the MAX_RT interrupt.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you confirm what the CONFIG register contains on the TX side?&lt;br /&gt;Assuming the upper 4 bits are all 0 then all interrupts should be enabled.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A STATUS register value of 0x1E implies that the MAX_RT interrupt occurred, that is correct.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you checked the IRQ pin from your TX module manually to see if it is cleared or not?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>