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

how to port a code written for nRF51 to nRF52

Hello,

How can I port the code written for nRF51 to nRF52 in Keil IDE. Also, I see that Keil supports nrf52 but does not provide device specific software packs.

Is there any idea when Keil would release the device specific software packs. If they are already available, any link/documentation that would help is appreciated.

If the packs are not available yet, what is a best alternative compiler/IDE to use for nRF52.

Thanks!

Parents
  • Hi, there is some software found here, including a Device Family Pack for nRF52. Is this enough for your needs?

    The migration should be pretty straight-forward if you are working with the BLE stacks/SDK, but there are some minor differences if you work on a lower level. The field naming changes should be covered by the nrf51_to_nrf52.h included in the Family Pack. If your project does not compile even when this is included, then the functionality is probably gone/moved. There is also write caching, which slightly changes how you interact with peripherals directly.

    I expect a full migration white paper to be out some time in the future, but I do not know the date.

Reply
  • Hi, there is some software found here, including a Device Family Pack for nRF52. Is this enough for your needs?

    The migration should be pretty straight-forward if you are working with the BLE stacks/SDK, but there are some minor differences if you work on a lower level. The field naming changes should be covered by the nrf51_to_nrf52.h included in the Family Pack. If your project does not compile even when this is included, then the functionality is probably gone/moved. There is also write caching, which slightly changes how you interact with peripherals directly.

    I expect a full migration white paper to be out some time in the future, but I do not know the date.

Children
Related