<?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>Custom services not showing when code is uploaded on custom board.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110971/custom-services-not-showing-when-code-is-uploaded-on-custom-board</link><description>I disabled the DIS. With nRF52DK the custom services characteristics are shown but if I upload the code to the ebyte e73-tbb, the custom service and characteristics are not shown. The same shows with nrf connect app in PC via the nrf52840_dongle. The</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 May 2024 13:37:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110971/custom-services-not-showing-when-code-is-uploaded-on-custom-board" /><item><title>RE: Custom services not showing when code is uploaded on custom board.</title><link>https://devzone.nordicsemi.com/thread/483310?ContentTypeID=1</link><pubDate>Tue, 14 May 2024 13:37:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ab23e6e-8099-4887-b217-a1142e8ceb44</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Great! Happy to hear you got it working :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom services not showing when code is uploaded on custom board.</title><link>https://devzone.nordicsemi.com/thread/483196?ContentTypeID=1</link><pubDate>Tue, 14 May 2024 09:11:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ada41185-d5ea-43d8-8fc8-e8f58e358d3d</guid><dc:creator>xproto</dc:creator><description>&lt;p&gt;Thanks Sigurd, its okay now. I did what you suggested and turned on the config debug, there is an error even with the nRF52DK that is shown only with debug on.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;looked at the code again and figured that it was an access out of range in the&amp;nbsp;ADC buffer. Turned off the double buffer but I forgot to&amp;nbsp;remove the increment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom services not showing when code is uploaded on custom board.</title><link>https://devzone.nordicsemi.com/thread/483138?ContentTypeID=1</link><pubDate>Mon, 13 May 2024 23:35:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2d410bc-ae21-475d-8ca7-b12f28d35905</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Looking at the sniffer log,&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/pastedimage1715642992947v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;it seems like the slave&amp;nbsp;device rebooted. The BLE connection suddenly&amp;nbsp;stops, and then we see the device start advertising again after a few seconds.&lt;/p&gt;
[quote user="xproto"]With the custom board I get flooded with&amp;nbsp;[/quote]
&lt;p&gt;Do you have more of this log?&amp;nbsp;&lt;span&gt;Could you try setting CONFIG_DEBUG=y , and then post the full log output ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom services not showing when code is uploaded on custom board.</title><link>https://devzone.nordicsemi.com/thread/482656?ContentTypeID=1</link><pubDate>Thu, 09 May 2024 11:37:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cb6ee54-0570-4579-98f0-c2a51f41f9d4</guid><dc:creator>xproto</dc:creator><description>&lt;p&gt;I attached the two files. The one working is the nrf52dk log.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ebyte.pcapng"&gt;devzone.nordicsemi.com/.../ebyte.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf52dk.pcapng"&gt;devzone.nordicsemi.com/.../nrf52dk.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;EDIT: I created a new build instead and added this option. So both build for dev board and custom board are from same config.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BOARD_ENABLE_DCDC=n&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;With the nRF52dk it works as usual. With the custom board I get flooded with&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;err&amp;gt; mpu: Failed to allocate new MPU region 255&lt;/pre&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom services not showing when code is uploaded on custom board.</title><link>https://devzone.nordicsemi.com/thread/482646?ContentTypeID=1</link><pubDate>Thu, 09 May 2024 09:01:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2f73b64-4a5c-4140-b53d-5c298d3eb7ea</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Maybe you can catch a sniffer trace of what&amp;#39;s happening on-air.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom services not showing when code is uploaded on custom board.</title><link>https://devzone.nordicsemi.com/thread/482544?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 13:38:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59e841bf-d951-44de-921a-1dca92ee6c1d</guid><dc:creator>xproto</dc:creator><description>&lt;p&gt;It did not worked then I reflashed recover it 3 times then worked for 2-3 times then not working again. I wonder whats with this behaviour.&lt;/p&gt;
&lt;p&gt;What is even more confusing is that when it works with the M2101K6G on first connect. The second phone 22011119UY only shows the custom characteristics when M2101k6g phone connected first. Is like M2101K6G needs to discover the services first before&amp;nbsp;&lt;span&gt;22011119UY can see it.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;And then yeah back to the major problem why it doesnt show the services again. No error logs on hardware.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot_5F00_2024_2D00_05_2D00_08_2D00_21_2D00_26_2D00_06_2D00_481_5F00_no.nordicsemi.android.mcp.jpg" /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot_5F00_2024_2D00_05_2D00_08_2D00_21_2D00_26_2D00_19_2D00_435_5F00_no.nordicsemi.android.mcp.jpg" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom services not showing when code is uploaded on custom board.</title><link>https://devzone.nordicsemi.com/thread/482518?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 12:24:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a2049f7-695d-4687-8976-d6efb9aad378</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Try programming with this command:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;pre&gt;&lt;span&gt;west flash --recover&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom services not showing when code is uploaded on custom board.</title><link>https://devzone.nordicsemi.com/thread/482499?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 11:23:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e681414-5f07-48e5-8c4e-912f02910a80</guid><dc:creator>xproto</dc:creator><description>&lt;p&gt;Yeah very strange. Now there is none currently.&amp;nbsp; Based on my searches it shows it might be lack of RAM, or need to adjust address because of the additional characteristic? but those searches all shows from old SDK, not zephyr.&lt;br /&gt;&lt;br /&gt;Before I turned off DIS and other parameters like CCC, CUD cause I suspect the characteristic might be too many for slow phones, this one shows.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;failed to allocate new mpu region 255&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;EDIT:&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t know if this will help, here is the diff output of two build config.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;$diff build/zephyr/.config build_1/zephyr/.config

&amp;lt; CONFIG_BOARD=&amp;quot;nrf52dk_nrf52832&amp;quot;
---
&amp;gt; CONFIG_BOARD=&amp;quot;ebyte_e73_tbb_nrf52832&amp;quot;
57,58d56
&amp;lt; CONFIG_DT_HAS_ARDUINO_UNO_ADC_ENABLED=y
&amp;lt; CONFIG_DT_HAS_ARDUINO_HEADER_R3_ENABLED=y
84d81
&amp;lt; CONFIG_DT_HAS_NORDIC_NRF_SPI_ENABLED=y
87d83
&amp;lt; CONFIG_DT_HAS_NORDIC_NRF_TWI_ENABLED=y
536d531
&amp;lt; # CONFIG_MPSL_PIN_DEBUG is not set
1087,1088c1082,1083
&amp;lt; # CONFIG_NRFX_TWI0 is not set
&amp;lt; # CONFIG_NRFX_TWI1 is not set
---
&amp;gt; # CONFIG_NRFX_TWIM0 is not set
&amp;gt; # CONFIG_NRFX_TWIM1 is not set
1298c1293
&amp;lt; CONFIG_BOARD_NRF52DK_NRF52832=y
---
&amp;gt; CONFIG_BOARD_EBYTE_E73_TBB_NRF52832=y
1303d1297
&amp;lt; CONFIG_BOARD_ENABLE_DCDC=y
1465,1466d1458
&amp;lt; CONFIG_HAS_HW_NRF_SPI1=y
&amp;lt; CONFIG_HAS_HW_NRF_SPI2=y
1474d1465
&amp;lt; CONFIG_HAS_HW_NRF_TWI0=y
1489d1479
&amp;lt; CONFIG_SOC_DCDC_NRF52X=y&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom services not showing when code is uploaded on custom board.</title><link>https://devzone.nordicsemi.com/thread/482497?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 11:11:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cc53b89-3915-4c21-bedb-649fbdd50a0c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;That&amp;#39;s strange. Do you have any log output(e.g. from the UART) from the device? Any warnings or errors in the log?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom services not showing when code is uploaded on custom board.</title><link>https://devzone.nordicsemi.com/thread/482492?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 11:02:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d1c9a93-403c-4d64-8f1a-43542eb8c767</guid><dc:creator>xproto</dc:creator><description>&lt;p&gt;Hello! and thanks for reply. I have tried that. It still says empty list.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom services not showing when code is uploaded on custom board.</title><link>https://devzone.nordicsemi.com/thread/482485?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 10:43:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00e001b3-59b0-49a9-9a8a-8e23aedab178</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Click on the 3 dots in the upper right corner, and click &amp;quot;Refresh services&amp;quot;,&amp;nbsp;are you able to discover the services?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>