<?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>TWI not working with ant+ hrm example on nRF52840.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101900/twi-not-working-with-ant-hrm-example-on-nrf52840</link><description>Hi, 
 I&amp;#39;m trying to combine the ant+ HRM tx example with a TWI based oled display using u8g2. I can get the two parts working independently - transmitting the hrm data over the network and displaying something on the OLED screen. However when I initialize</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Jul 2023 15:03:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101900/twi-not-working-with-ant-hrm-example-on-nrf52840" /><item><title>RE: TWI not working with ant+ hrm example on nRF52840.</title><link>https://devzone.nordicsemi.com/thread/438581?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2023 15:03:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56b1c0ab-d67e-49fe-bd95-7d8e32fd930b</guid><dc:creator>v9joshi</dc:creator><description>&lt;p&gt;There was no ret_code. It just never returned from the call.&lt;/p&gt;
&lt;p&gt;I rebuilt my code from the example and it looks like there was some conflict in my pre-processor definitions. Previously I had NRF52 and NRF52832_XXAA, but for the board I&amp;#39;m using I just replaced both of these with NRF52840_XXAA, and managed to get things working properly.&lt;/p&gt;
&lt;p&gt;So now it works as intended!&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI not working with ant+ hrm example on nRF52840.</title><link>https://devzone.nordicsemi.com/thread/438467?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2023 09:21:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13c1b2b6-5321-4fa8-b7b9-ec0fac9adcdc</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;Do you see any assertion log message ?&amp;nbsp;&lt;br /&gt;What&amp;#39;s the&amp;nbsp;&lt;span&gt;ret_code&amp;nbsp;after the call ? Or it never returned from the&amp;nbsp;sd_softdevice_enable() ?&amp;nbsp;&lt;br /&gt;Have you added any function before the&amp;nbsp;nrf_sdh_enable_request() ? If you comment out the TWI code part by part until the example exactly the same as&amp;nbsp;&amp;nbsp;ant+ HRM tx&amp;nbsp; , would it work ?&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI not working with ant+ hrm example on nRF52840.</title><link>https://devzone.nordicsemi.com/thread/437737?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2023 19:16:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae701dcf-8bb6-4e4f-80ab-5e7f60f842a3</guid><dc:creator>v9joshi</dc:creator><description>&lt;p&gt;Based on the logging module, it looks like this line of code-&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;ret_code = sd_softdevice_enable(&amp;amp;clock_lf_cfg, app_error_fault_handler, ANT_LICENSE_KEY);&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;which is inside&amp;nbsp;nrf_sdh_enable_request() doesn&amp;#39;t execute correctly. Which means the softdevice setup doesn&amp;#39;t take place.&lt;/p&gt;
&lt;p&gt;This is a line taken directly from the hrm_tx example. Is there a reason it might not work if the TWI module is enabled?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI not working with ant+ hrm example on nRF52840.</title><link>https://devzone.nordicsemi.com/thread/437733?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2023 18:17:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48fc771e-2787-4c81-a3ce-794da89d578b</guid><dc:creator>v9joshi</dc:creator><description>&lt;p&gt;I see. I&amp;#39;ll try to take a look at the logs and figure it out. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: TWI not working with ant+ hrm example on nRF52840.</title><link>https://devzone.nordicsemi.com/thread/436759?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2023 13:06:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94be80d6-e203-473a-8f29-88ac749c92aa</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see any other way than to debug this by using the logging module, and for instance catch any errors in the fault handler.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>