<?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>Cannot add custom Service to nRF52820 using softdevice s140</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62728/cannot-add-custom-service-to-nrf52820-using-softdevice-s140</link><description>Dear All, I am trying to add a custom service on the ble_template_app that I have managed to run successfully on the nRF52820. 
 I have successfully created the custom service I need and I have been able to compile and run my code on an nRF52840. Unfortunately</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Jun 2020 11:57:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62728/cannot-add-custom-service-to-nrf52820-using-softdevice-s140" /><item><title>RE: Cannot add custom Service to nRF52820 using softdevice s140</title><link>https://devzone.nordicsemi.com/thread/255957?ContentTypeID=1</link><pubDate>Fri, 19 Jun 2020 11:57:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d7b6e2c-5da4-4ef2-991b-039f0c30c054</guid><dc:creator>haakonsh</dc:creator><description>[quote user="Giannis Anastasopoulos"]Thank you for the suggestion, as this idea also worked, but then I wanted to enable the buttonless DFu and I realised that there some defines missing for the bootloader.[/quote]
&lt;p&gt;&amp;nbsp;I&amp;#39;m not that familiar with DFU, I suggest you open a separate Question for that issue.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
[quote user="Giannis Anastasopoulos"]And another question regarding the nrf52820, does it support ADC? Is it possible to measure an analogue voltage with this device?[/quote]
&lt;p&gt;&amp;nbsp;It does not have and ADC, but it does have a configurable&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52820/comp.html?cp=4_3_0_5_4"&gt;COMP — Comparator&lt;/a&gt;, maybe that covers your use-case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot add custom Service to nRF52820 using softdevice s140</title><link>https://devzone.nordicsemi.com/thread/255839?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2020 16:15:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36acb75b-de03-4064-a13b-0b1bad963af7</guid><dc:creator>Giannis Anastasopoulos</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/haakonsh"&gt;haakonsh&lt;/a&gt;&lt;span class="user-name"&gt;&lt;br /&gt;&lt;/span&gt;Thank you for the suggestion, as this idea also worked, but then I wanted to enable the buttonless DFu and I realised that there some defines missing for the bootloader. Does the device support this functionality or not?&lt;br /&gt;&lt;br /&gt;And another question regarding the nrf52820, does it support ADC? Is it possible to measure an analogue voltage with this device?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot add custom Service to nRF52820 using softdevice s140</title><link>https://devzone.nordicsemi.com/thread/255716?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2020 09:40:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c27c148f-c200-46af-b463-9f8d7219e800</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Alternatively, you can use a SoftDevice version with a smaller memory footprint, like the S112.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot add custom Service to nRF52820 using softdevice s140</title><link>https://devzone.nordicsemi.com/thread/255632?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 21:06:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bfa4a63-ee7f-4daa-a67f-c3f7d13aded3</guid><dc:creator>Giannis Anastasopoulos</dc:creator><description>&lt;p&gt;This suggestion actually did the trick.&lt;br /&gt;&lt;br /&gt;But now I am quite worried about this. I didn&amp;#39;t realise how small the flash memory of this module is and I need to keep track of bonded devices, be able to update the firmware over the air and store some data in the flash. I begins to seem to much for this module&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot add custom Service to nRF52820 using softdevice s140</title><link>https://devzone.nordicsemi.com/thread/255626?ContentTypeID=1</link><pubDate>Wed, 17 Jun 2020 20:26:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3497f292-facd-478f-81f0-d08115aa763b</guid><dc:creator>Turbo J</dc:creator><description>[quote userid="80274" url="~/f/nordic-q-a/62728/cannot-add-custom-service-to-nrf52820-using-softdevice-s140"]but I am not sure how to fix it.[/quote]
&lt;p&gt;The only real &amp;quot;fix&amp;quot; is to use bigger &amp;micro;C like the NRF52840.&lt;/p&gt;
&lt;p&gt;You can also try setting NRF_LOG_ENABLED to 0 - since those log messages can use quite some flash space.&lt;/p&gt;
&lt;p&gt;Note that your flash configuration won&amp;#39;t work with FDS / Peer manager: These need at least 3 free flash pages, and your config has none.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>