Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

nRF52820 Memory -> Capabilities, Chances?

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) PWM and TIMER (max timer count needed is 2 seconds) which nRF52820 has, there should not be much memory needed, while the BLE with mesh needs around 17KB the full stack, but not really sure how much memory does the TWI need to read from one sensor via the pooling.

I guess all the onboard peripherals do not require much of ram. For example, nRF52820 has 32KB ram and 256KB of flash, that should be enough to build a simple mesh to connect among several devices (12), while the app to turn on and dim the LED on two GPIOs while reading the sensor should as well be enough, right? For example, I remember doing similar the app, but without a BLE on at tiny with 4KB, so, wondering why would that may be a problem on nRF52820? 

Best.  

Parents
  • Hi,

    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're sketched out the the frame of your project and seen for yourself how demanding the features are in terms or flash and RAM. 

    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.

    But on the other hand, the nRF52820 does not 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 https://infocenter.nordicsemi.com/index.jsp under "nRF52 Series" shows which SoC has what features and peripherals, where the circled cell is corresponding to the nRF52820.

    Let me know if this helps you in your quest to find a suitable chip or if I can help you clarify anything else! 

    Kind regards,
    Andreas

Reply
  • Hi,

    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're sketched out the the frame of your project and seen for yourself how demanding the features are in terms or flash and RAM. 

    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.

    But on the other hand, the nRF52820 does not 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 https://infocenter.nordicsemi.com/index.jsp under "nRF52 Series" shows which SoC has what features and peripherals, where the circled cell is corresponding to the nRF52820.

    Let me know if this helps you in your quest to find a suitable chip or if I can help you clarify anything else! 

    Kind regards,
    Andreas

Children
No Data
Related