Software and hardware Difference betwwen nrf52832 and nrf52840

Hi, helpies

I am currently workibg on nrf52832 board and now there are some changes in the hardware and we are left with pin shortage,so we planned to upgrade to nrf52840 which has 48 GPIO pins.

My code works with nrf52832 which is working fine and I am also using soft devices.

So my doubt is what are the changes do i need to do to trransfer the code from nrf52832 to nrf52840 also please let me know about the hardware changes.

And what is the difference between pca10040 and 10056.

I have two nrf52832 DK, Should I have to buy nrf52840 to program the chip.

I have just seen nrf53840,so what is the new in this.

Reagrds 

Rajbir

  • Hi Rajbir,

    You will have to make some changes for going from nRF52832 to nRF52840. If your project is very similar to an existing nRF52840 project, you can start out with that and add your code. Another options is to transfer your nRF52832 project to nRF52840. To transfer a project to another SoC you must do the following:

    • Change every instance of nRF52832 to nRF52840, such as target or device (nrf52832_xxaa -> nrf52840_xxaa) and preprocessor definitions (NRF52832_XXAA -> NRF52840_XXAA)
    • Do the same with pca10040->pca10056
    • Adjust the linker script to match maximum RAM and flash of nRF52840 instead of nRF52832.
    • Change the startup files (<compiler>_startup_nrf52832.s -> <compiler>_startup_nrf52840.s and system_nrf52832.c- > system_nrf52840.c)
    • The project will require a different SoftDevice variant, so you must change this to one compatible with nRF52840. This would normally be s140, see nRF52840 SDK & SD compatibility matrix.

    You should also be aware that there are some pins you should avoid for high load/frequency applications. Please see nRF52840 pin assigments for recommended usage.

    And what is the difference between pca10040 and 10056.

    Pca10040 is the nRF52 DK, and pca10056 is the nRF52840 DK.

    Best regards,

    Marte

Related