NPM2100 EK CONNECTION

NPM2100 EK CONNECTION

Can I connect The NPM2100 EK with NRF52 DK?
If so.....
1. How do I physically do this?
2. Can I  program the NPM2100 EK to send Voltage Supply of 1.7V ~ 3.6V to the NRF52 DK? (What tool can I use to do this?)
If not...
How can I use the NPM2100 EK to generate Voltage Supply for a NRF52832-QFAA-R? (What tool can I use to do this?))

Can I put an Active Buzzer on NPM2100 EK and program the NPM2100 PMIC to generate a 3V signal for Buzzer?

Thanks in advance!

Parents Reply
  • Hi

    I am developing a PCB that needs to have its firmware updated via BLE.
    The update will be done by an APP installed on the smartphone (Apple and Android).

    Will I need an external flash if I use the nRF52832?

    Will I need an external flash if I use the nRF52840?

    Is there another Nordic MCU model that you think is better for my project?

    Regrads

    Luiz Miranda

Children
  • Hello, 

    Luiz Miranda said:
    Will I need an external flash if I use the nRF52832?

    Yes, if you're using the 512kB flash version of the nRF52832 you will need to use an external flash for the partition that will hold the image update, i.e due to the need for dual bank flash update.

    Luiz Miranda said:
    Will I need an external flash if I use the nRF52840?

    It will depend on your applications size. 

    To put some numbers on the abstraction. Consider this scenario where you only have an uppdatable app, but not an uppdatable bootloader. In this example you have a MCUBoot bootloader of 48kB, and a settings partition for your BLE settings for 8kB. Maybe you also have a storage partition at around 20kB as well. Disclaimer, this is just random numbers selected, and some modifications must be made in a real application:

    Total flash >= mcuboot + 2x application application size  + settings + storage  -> application size = 1/2 (total flash - mcuboot - settings - storage)

    1. For the nRF52832 with total flash 512kB this results in application size <= 1/2 (512 - 48 - 8 - 20) = 218 kB
    2. For the nRF52840 with total flash 1024kB this results in application size <= 1/2 (1024 - 48 - 8 - 20) = 474 kB

    In addition NCSDK-20567: Partitioning limitation with MCUboot swap move mentioned in https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/releases_and_maturity/known_issues.html#bootloader 

    "The size of the application must be less than 'mcuboot_primary_size - 80 - (mcuboot_primary_size/ 4096) * 12 -4096'" meaning that if your mcuboot primary size is equal to 474kB, the application size must be ~95% of that size.

    Conclusion: 

    If your application, bootloaders and every other partition requires is well within the estimate above w.r.t flash, then you don't need an external flash. If it's close to or above the estimate used in the samples above 52840, you need an external flash. In practice, an application with BLE will be too big to fit within 218kB, but it will all depend on what your application is. The peripheral lbs sample with minimal configuration results in a 161kB large application, so there are some cases where it will fit for small, simple applications.

    Luiz Miranda said:
    Is there another Nordic MCU model that you think is better for my project?

    I think that both the nRF52832 (which might require an external flash for BLE FOTA), and nRF52840 (which also might need an external flash depending on how large your application is going to be in the end. That is something only you can evaluate). The nRF5340 does also need an external flash if your application becomes too large due to the same limitations above, and the same also goes for the nRF54L15, L10 and L05 (all variants of the nRF54L family with various flash and ram sizes, and available peripherals). This is unfortunately just the nature of dual bank DFU, which BLE FOTA requires in NCS.

    Do you have any indications about the scope of the application and how large it will be?

    Kind regards,
    Andreas

  • Andreas:

    I don't have the size of the application yet.
    If my PCB has a USB, all information above should also be taken to plan the Update firmware?

    Luiz

  • Hi,

    Luiz Miranda said:
    I don't have the size of the application yet.

    Noted.

    Luiz Miranda said:
    If my PCB has a USB, all information above should also be taken to plan the Update firmware?

    DFU over USB will require more features added to MCUboot, so you will get a larger MCUboot size. 

    Try and compare the two firmwares generated by the exercise w.r.t UART and the one with USB and see the different sizes: https://academy.nordicsemi.com/courses/nrf-connect-sdk-intermediate/lessons/lesson-9-bootloaders-and-dfu-fota/ 

    Kind regards,
    Andreas

  • Hi:

    Now is the time for me to study the information you provided and do Devacademy's training.
    I already have NRF52 DK
    I will contact you here when you have questions.

    Thank you for all the support you provided.

    Kind regards

    Luiz

  • Great! Happy to be of help.

    I will mark this case as resolved for now, but feel free to reopen it if the questions are related to the topic in this case. If you have any follow up questions that are unrelated to the topic here, please open a new case and it will be assigned to an engineer with the proper expertise

    Kind regards,
    Andreas

Related