<?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>ble fall in init after addition of twi</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62459/ble-fall-in-init-after-addition-of-twi</link><description>hello 
 i am working with nrf52832 
 my code is based on the Ble blinky example from centeral. i added to the code with ble, uart, saadc and pwm and it was working great 
 
 after addition of twi with sdk_config file addition which unfortunetly i didn</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Jun 2020 15:05:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62459/ble-fall-in-init-after-addition-of-twi" /><item><title>RE: ble fall in init after addition of twi</title><link>https://devzone.nordicsemi.com/thread/255076?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2020 15:05:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:253ee89c-ff78-4495-a568-0dbe04dcbf12</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again Ziv,&lt;/p&gt;
[quote user="ziv123"]i am using one but since the config lib is out of the ses lib so it was not added till now to the git server[/quote]
&lt;p&gt;Great, I am glad to hear you are already doing this!&amp;nbsp;&lt;/p&gt;
[quote user="ziv123"]i am reading the documentation of each driver i am working on but most of the info there is more relevant to hardware, there is no real api or software support beside this forum, the sdk examples does give something to start with but are lacking many things or on the other hand to general, integration of modules and the complications of that is not explained anywhere, again except from this forum and it&amp;nbsp;takes a long time to search for similar problems that also got firm solutions .. hope nordic will improve in that aspect of software people documentation support&amp;nbsp;[/quote]
&lt;p&gt;I agree that it would be favorable if the process of merging functionality from different modules was more streamlined, but it is hard to make happen given the variety of applications that our customers make.&lt;br /&gt;Thank you for your feedback regarding the documentation and usage of the different modules, we are always looking for ways to improve the development process for our customers.&lt;/p&gt;
[quote user="ziv123"]thanks for now :)&amp;nbsp;[/quote]
&lt;p&gt;I am happy to help you Ziv! &lt;br /&gt;Please do not hesitate to let us know if you should encounter any other issues or questions.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble fall in init after addition of twi</title><link>https://devzone.nordicsemi.com/thread/255038?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2020 13:18:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f73df10-6d26-4608-a697-16780759e8be</guid><dc:creator>ziv123</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/62459/ble-fall-in-init-after-addition-of-twi/255030"]I would recommend you to familiarize with a version-tracking tool(such as github) to easily track the changes you have made, and to be able to quick and easily revert to a functioning version of your applications[/quote]
&lt;p&gt;i am using one but since the config lib is out of the ses lib so it was not added till now to the git server&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/62459/ble-fall-in-init-after-addition-of-twi/255030"]You could see this in the Shared Resources section of each modules documentation,[/quote]
&lt;p dir="LTR"&gt;&lt;span style="background:white;color:black;font-family:&amp;#39;Arial&amp;#39;,sans-serif;font-size:9.0pt;"&gt;i am reading the documentation of each driver i am working on but most of the info there is more relevant to hardware, there is no real api or software support beside this forum, the sdk examples does give something to start with but are lacking many things or on the other hand to general, integration of modules and the complications of that is not explained anywhere, again except from this forum and it&amp;nbsp;takes a long time to search for similar problems that also got firm solutions .. hope nordic will improve in that aspect of software people documentation support&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks for now :)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble fall in init after addition of twi</title><link>https://devzone.nordicsemi.com/thread/255030?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2020 13:08:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6780651-fbb5-43cc-a4cb-27142d5cdc2e</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello Ziv,&lt;/p&gt;
[quote user="ziv123"]i tried to change some things related to twi and timer but every change i made i reversed it and now it is working i have no idea why cause eventualy nothing was changed..[/quote]
&lt;p&gt;Are you certain that you did not change anything in the config?&lt;br /&gt;I would recommend you to familiarize with a version-tracking tool(such as github) to easily track the changes you have made, and to be able to quick and easily revert to a functioning version of your applications.&amp;nbsp;&lt;/p&gt;
[quote user="ziv123"]it would have been halpfull if there was a good guid for each driver on how to config the sdk_config file and where this configuration may colide with other things&amp;nbsp;[/quote]
&lt;p&gt;You could see this in the Shared Resources section of each modules documentation, &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Ftwim.html&amp;amp;anchor=concept_scx_f5p_xr"&gt;in the TWIM case you could read about it here&lt;/a&gt;. Mainly, you will have to look out for the shared ID&amp;#39;s, which you can see an overview of in the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fmemory.html&amp;amp;anchor=topic"&gt;Instatiation table&lt;/a&gt;.&lt;/p&gt;
[quote user="ziv123"]anyway, no i have some issue with twi but i will open a new topic for that i think&amp;nbsp;[/quote]
&lt;p&gt;Yes, please do so.&lt;/p&gt;
[quote user="ziv123"]thanks for now, hope this issue will not return&amp;nbsp;[/quote]
&lt;p&gt;No problem at all, I am happy to help.&lt;br /&gt;&lt;br /&gt;Good luck with your development!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble fall in init after addition of twi</title><link>https://devzone.nordicsemi.com/thread/254897?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2020 07:56:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09d117ba-6ce2-497b-bd21-fe58107f220e</guid><dc:creator>ziv123</dc:creator><description>&lt;p&gt;hi Karl,&lt;/p&gt;
[quote userid="87869" url="~/f/nordic-q-a/62459/ble-fall-in-init-after-addition-of-twi/254871"]There is no new information in your last comment - it is just a copy and paste of what you wrote in your initial ticket.[/quote]
&lt;p&gt;yes i am sorry for that it was by mistake cause sometimes i am not sure if a message was sent since i don&amp;#39;t see any feedback .. some connections issues i guess&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;anyway .. i tried to compare between 2 sdk_configs to see difference .. i tried to change some things related to twi and timer but every change i made i reversed it and now it is working i have no idea why cause eventualy nothing was changed.. maybe there is some issue with segger saving versions or not updating on time .. i have no idea&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;it would have been halpfull if there was a good guid for each driver on how to config the sdk_config file and where this configuration may colide with other things&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i took sometime to configure twi again&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;anyway, no i have some issue with twi but i will open a new topic for that i think&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks for now, hope this issue will not return&amp;nbsp;&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Ziv&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble fall in init after addition of twi</title><link>https://devzone.nordicsemi.com/thread/254871?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2020 06:25:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6000ca99-1f48-4f3a-9b08-16e67e7c139a</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello Ziv,&lt;br /&gt;&lt;br /&gt;There is no new information in your last comment - it is just a copy and paste of what you wrote in your initial ticket.&lt;br /&gt;The trouble you&amp;#39;re facing is that the SoftDevice fails its enabling, it seems. There could be many reasons for this, but the clock configuration is a common pitfall.&lt;br /&gt;&lt;br /&gt;In your other comment, you mention that you have made changes which you believe have nothing to do with the clock, and are mostly concerning the TWI and defines for nxp nfc device? Could you elaborate on these changes you&amp;#39;ve made?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble fall in init after addition of twi</title><link>https://devzone.nordicsemi.com/thread/254804?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2020 20:29:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e816525a-9519-4c80-8148-deb54e3835f6</guid><dc:creator>ziv123</dc:creator><description>&lt;p&gt;i don&amp;#39;t think i made changes to the clock .. most changes i have doen are related to twi enabling and on define for the nxp nfc device (pn1750)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble fall in init after addition of twi</title><link>https://devzone.nordicsemi.com/thread/254802?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2020 20:15:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae6186e2-9f81-47db-aaf2-140b7b184fc4</guid><dc:creator>ziv123</dc:creator><description>&lt;p&gt;hello&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i am working with nrf52832&amp;nbsp;&lt;/p&gt;
&lt;p&gt;my code is based on the Ble blinky example from centeral.&amp;nbsp;i added to the&amp;nbsp;code with ble, uart, saadc and pwm and it was working great&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;after addition of twi with sdk_config file addition which unfortunetly i didn&amp;#39;t save before changes, and addition of a lib of nxp nfc reader, i fall in &amp;#39; ble_init &amp;#39;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i get stuck here:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div class="content-scrollable-wrapper"&gt;
&lt;div class="evolution-code-editor theme-clouds"&gt;&lt;a class="fullscreen" href="https://devzone.nordicsemi.com/f/nordic-q-a/62459/ble-fall-in-init-after-addition-of-twi"&gt;Fullscreen&lt;/a&gt;
&lt;div class=" ace_editor ace-clouds"&gt;
&lt;div class="ace_gutter"&gt;
&lt;div class="ace_layer ace_gutter-layer ace_folding-enabled"&gt;
&lt;div class="ace_gutter-cell "&gt;1&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ace_scroller"&gt;
&lt;div class="ace_content"&gt;
&lt;div class="ace_layer ace_print-margin-layer"&gt;
&lt;div class="ace_print-margin"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ace_layer ace_marker-layer"&gt;&lt;/div&gt;
&lt;div class="ace_layer ace_text-layer"&gt;
&lt;div class="ace_line"&gt;SVCALL(SD_SOFTDEVICE_ENABLE, uint32_t, sd_softdevice_enable(nrf_clock_lf_cfg_t const * p_clock_lf_cfg, nrf_fault_handler_t fault_handler));&lt;/div&gt;
&lt;/div&gt;
&lt;div class="ace_layer ace_marker-layer"&gt;&lt;/div&gt;
&lt;div class="ace_layer ace_cursor-layer ace_hidden-cursors"&gt;
&lt;div class="ace_cursor"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;in the nrf_sdm.h file&lt;/p&gt;
&lt;p&gt;i think it is related to the softdevice but i have no idea what changed (the ble files did not, the only thing i can think of is the sdk_config.h or the .emProject file&amp;nbsp;&lt;/p&gt;
&lt;p&gt;any help on the metter will be most appritiated&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Ziv&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble fall in init after addition of twi</title><link>https://devzone.nordicsemi.com/thread/254515?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2020 13:40:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a15a4dd4-85fc-4fb7-b95d-aa37f8ff601c</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello Ziv,&lt;/p&gt;
[quote user=""]i fall in &amp;#39; ble_init &amp;#39;&amp;nbsp;[/quote]
&lt;p&gt;Could you share code from &amp;quot;ble_init&amp;quot;? Are you referring to the &lt;em&gt;ble_stack_init()&amp;nbsp;&lt;/em&gt;from the blinky_c example? If so, have you made any changes to it?&lt;/p&gt;
[quote user=""]i get stuck here:[/quote][quote user=""]i think it is related to the softdevice but i have no idea what changed (the ble files did not, the only thing i can think of is the sdk_config.h or the .emProject file&amp;nbsp;[/quote]
&lt;p&gt;If this is the case, the SoftDevice is failing to enable.&lt;br /&gt;Which changes did you make to the sdk_config file?&lt;br /&gt;Did you make any changes to your clock configuration? Please take a look at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/12221/stuck-in-this-line"&gt;this ticket&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>