This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

What does "nrf51_to_nrf52840.h" do?

For the record I have been struggling with migrating a project from S110 @ nrf51422 to S140 @ nrf52840.

Quite by accident, I found this "nrf51_to_nrf52840.h", what does it do?

Is it some sort of magical file that, once included, solve everything/most of my migration woes?

Parents
  • Hello Mitch996

    From the comment section at the top of the file

    /* This file is given to prevent your SW from not compiling with the name changes between nRF51 and nRF52840 devices.
     * It redefines the old nRF51 names into the new ones as long as the functionality is still supported. If the
     * functionality is gone, there old names are not defined, so compilation will fail. Note that also includes macros
     * from the nrf51_deprecated.h file. */
    

    If you look through it it gives a number of defines new names so they will be compatible with the nRF52840. Do note that the S110 belongs to an older version of the SDK, and additional changes to your code might be necessary for it to work with newer versions.

    Best regards

    Jørn Frøysa

Reply Children
No Data
Related