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

Migrate from NRF51822(S110) sdk8.0.0 to NRF52840(S140) sdk15.0.0 in IAR?

Hi,

I have project for NRF51822 in IAR(EWARM). Short about project: it based on example BLE to UART communication; it uses SPI, I2C, analog inputs readings, some digital outputs; it uses SoftDevice S110 and sdk 8.0.0.

Recently I got NRF52840 Preview DK and I want to migrate my project into nrf52.

I attempt to start this process just adding my code from nrf51 and at first stages I got errors about redifinitions.

Here is one of them in nrf51_bitfields.h:

Error[Pe047]: incompatible redefinition of macro "LPCOMP_REFSEL_REFSEL_SupplyOneEighthPrescaling" (declared at line 161 of "D:\Projects\NRF52\nRF5_SDK_15.0.0\modules\nrfx\mdk\ D:\Projects\NRF52\nRF5_SDK_15.0.0\modules\nrfx\mdk\nrf51_bitfields.h 2371

I suppose I need to use somehow headers nrf51_to_nrf52.h and nrf51_to_nrf52840.h ?

I find this tuturial for Keil: http://infocenter.nordicsemi.com/pdf/nRF52_Series_Migration_v1.0.pdf

Is there any docs about migration in IAR? I'm planning to use SoftDevice S140 and SDK15.0.0 on nrf52.

Regards!

Parents
  • Hi,

    We do not have a migration guide that describes migrating from nRF51 to nRF52840, nor any guide to migrate from SDK 8 to SDK 15. There are simply too many changes.

    There are so many changes between nRF51 with SDK 8 and S110 and nRF52840 with SDK 15 and S140 that I attempting to migrate the project is a bad idea. Restarting a new project will likely be far less work. Then you can start off with SDK example that is similar to your product and adjust and add features from your nRF51 project gradually while making sure that things work and sorting out API differences along the way.

Reply
  • Hi,

    We do not have a migration guide that describes migrating from nRF51 to nRF52840, nor any guide to migrate from SDK 8 to SDK 15. There are simply too many changes.

    There are so many changes between nRF51 with SDK 8 and S110 and nRF52840 with SDK 15 and S140 that I attempting to migrate the project is a bad idea. Restarting a new project will likely be far less work. Then you can start off with SDK example that is similar to your product and adjust and add features from your nRF51 project gradually while making sure that things work and sorting out API differences along the way.

Children
No Data
Related