<?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>nRF52820 Memory -&amp;gt; Capabilities, Chances?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92427/nrf52820-memory---capabilities-chances</link><description>Hello all, 
 would somebody please help to understand how much memory may be needed to use: 
 - BLE with mesh 
 - TWI to read the value from the sensor 
 - one PWM output on two GPIOs 
 - one timer 
 As far as I understand is that on board (peripherals</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Oct 2022 12:56:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92427/nrf52820-memory---capabilities-chances" /><item><title>RE: nRF52820 Memory -&gt; Capabilities, Chances?</title><link>https://devzone.nordicsemi.com/thread/389834?ContentTypeID=1</link><pubDate>Fri, 07 Oct 2022 12:56:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cad866cf-ba21-46d0-aa2f-e310021617cf</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You will be fine to start implementing BLE Mesh and the GPIO features on the nRF52820 &lt;strong&gt;but&lt;/strong&gt; &lt;strong&gt;due to the flash and RAM limitations on the device&lt;/strong&gt; it is not recommended to use the 52820 as a Mesh device for development/production. Also note that the 52820 has &amp;quot;limited compatibility and support for Mesh&amp;quot; under &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v5.0.0%2Fmd_doc_user_guide_mesh_compatibility.html"&gt;&amp;quot;compatibility&amp;quot; for nRF5 SDK for Mesh on our documentation pages&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The 52833 that you mention will on the other hand be a great device that has full Mesh support in nRF5 SDK for Mesh and which will have the peripherals you mentioned as well as having sufficiently large enough flash and RAM.&lt;/p&gt;
&lt;p&gt;To summarize the issues of the requirements of the project you&amp;#39;re working on with the nRF52820:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The nRF52820 does not have a native PWM peripheral&amp;nbsp;that you have required&lt;/li&gt;
&lt;li&gt;The Mesh stack will consume 17KB of RAM + the BLE stack will use around 4KB more leaving you with ~11KB of RAM for the rest of the application out of the 32KB in total&lt;/li&gt;
&lt;li&gt;Depending on the size of your total application in flash size you might not have sufficient space for your application. A typical Mesh sample we have in the SDK uses up to over half of the available flash on a nRF52820.&lt;/li&gt;
&lt;li&gt;Depending on the size of your total application in flash size, that you might have insufficient space for implementing DFU without using external flash in case you would want to add DFU support for your application.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I hope this information helps&amp;nbsp;with answering your question, and please feel free to ask additional questions related to this topic if if you have any!&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52820 Memory -&gt; Capabilities, Chances?</title><link>https://devzone.nordicsemi.com/thread/389776?ContentTypeID=1</link><pubDate>Fri, 07 Oct 2022 09:31:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2822198e-e41f-4bf8-ada2-9e2d3bb0f389</guid><dc:creator>MuRa</dc:creator><description>&lt;p&gt;Hello AHaug&lt;/p&gt;
&lt;p&gt;Till we get a newer version, which will be build on the nRF52833, I guess we should be safe in terms of memory to implement the BLE Mesh and toggling&amp;nbsp;a GPIO on the nRF52820?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please tell me we are safe with this, till the new version arrives &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thank you and all the best.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52820 Memory -&gt; Capabilities, Chances?</title><link>https://devzone.nordicsemi.com/thread/388678?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 07:53:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d17705a-4a98-46b8-bdbc-f799aaf489b2</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Glad to hear that we&amp;#39;re on the right path to answering your question!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thank you for adding this information! Based on reading the supplied link I see that they mention that there is 4x PWM timers,&amp;nbsp;but the block diagram on page 9 illustrates 0xPWM peripherals as according to our documentation on the nRF52820 SoC. This leads me to believe that the PAN1781 datasheet either contains an error with regards to stating that the module has PWM&amp;nbsp;&lt;em&gt;&lt;strong&gt;or&lt;/strong&gt;&lt;/em&gt; that the Panasonic module has an additional external module that has PWM peripherals (which I can&amp;#39;t find any evidence of in the datasheet). Unfortunately you will have to verify if this is the case or not with Panasonic. Errors such as these are not uncommon in datasheets as a lot of modules/devices shares some of the documentation base with each other and copy/paste errors does happen sometimes...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As for if this module has enough RAM and flash, the same sentiment mentioned for the nRF52820 SoC&amp;nbsp; in my previous reply also holds for the PAN1781 as they both have the same memory specs.&lt;/p&gt;
&lt;p&gt;I will also mention that a colleague of mine said that it is possible to create your own software based PWM in nRF5 with the PWM library, RTC and PPI. There are however some drawbacks such as the speed of the peripheral if implemented in this fashion. How to do this will have to be asked in a separate ticket as this is a new topic not quite related to the topic in this ticket. Please not that this will add additional load on the restricted memory capabilities of the device as you will have to include more software in your application to make this work. I can&amp;#39;t say how much it will add without seeing the finished code.&lt;/p&gt;
&lt;p&gt;Let me know if you are able to confirm/deny if there is an error in the documentation with producer of the module before we move on! :)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52820 Memory -&gt; Capabilities, Chances?</title><link>https://devzone.nordicsemi.com/thread/388610?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 14:28:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7886008-e559-4541-a473-da76c55ef832</guid><dc:creator>MuRa</dc:creator><description>&lt;p&gt;Hello AHaug and thank you for your reply, it helps!&lt;/p&gt;
&lt;p&gt;Sorry, but I have not been clear enough, I am working on a PAN1781, which is based on nRF52820, however, it is given&amp;nbsp;the pan manuals of the module that there is a PWM peripheral (&lt;a id="" href="https://mediap.industry.panasonic.eu/assets/custom-upload/Devices/Wireless%20Connectivity/Bluetooth%20Low%20Energy%20Modules/PAN1781/WM%20PAN1781%20Product%20Specification.pdf"&gt;https://mediap.industry.panasonic.eu/assets/custom-upload/Devices/Wireless%20Connectivity/Bluetooth%20Low%20Energy%20Modules/PAN1781/WM%20PAN1781%20Product%20Specification.pdf&lt;/a&gt;) , for example, see p. 12, a bit confusing, probably we are talking about different nRF?&lt;/p&gt;
&lt;p&gt;Would you please be so kind and comment, if the Timer and PWM are available as peripherals on this module as it is stated :) and if it may be possible to use the above mentioned software within the allotted memory, namely ram and flash of PAN1781?&lt;/p&gt;
&lt;p&gt;Best.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52820 Memory -&gt; Capabilities, Chances?</title><link>https://devzone.nordicsemi.com/thread/388555?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 11:32:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3aa1983e-f570-4950-af37-979eb5c4a5d3</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Our recommendation is normally to start developing your application on the largest development kit in the nRF-family you want to use (in this case a nRF52840DK) and implement all the features and add all the peripherals that you need for your project and then scale down after you&amp;#39;re sketched out the the frame of your project and seen for yourself how demanding the features are in terms or flash and RAM.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But my initial thoughts on if the nRF52820 is large enough is: Maybe. As you state, the nRF5 Mesh stack demands roughly 17KB of RAM usage, and the samples seen under the resource tabs suggests that it might take somewhere around half the flash on the SoC. If you want to add other features such as DFU/FOTA, it might be too small.&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/pastedimage1664450425021v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;But on the other hand, the nRF52820 does&amp;nbsp;&lt;strong&gt;not&lt;/strong&gt; have a PWM peripheral, so it is not suitable if you want PWM you will have to chose a different SoC. The feature matrix on&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp"&gt;https://infocenter.nordicsemi.com/index.jsp &lt;/a&gt;under &amp;quot;nRF52 Series&amp;quot; shows which SoC has what features and peripherals, where the circled cell is corresponding to the nRF52820.&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/pastedimage1664450732761v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Let me know if this helps you in your quest to find a suitable chip or if I can help you clarify anything else!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>