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

Migrate project using SDK14.1 S132 to use S140

Hi

Im trying to figure out how to migrate my quite large older project from  and softdevice s132 to using s140 (SDK14.1 )in order to experiment with long range.

Besides changing header- and hex-files I think I need to change some Ram and flash setting is that correct? Which settings exactly do I need to change? 

(using arm gcc not SEGGER)

BR Mike

Parents
  • You are correct in what changes you need to make, but you will also need to:

    Replace these files:

    • /components/toolchain/gcc/gcc_startup_nrf52.S -> /components/toolchain/gcc/gcc_startup_nrf52840.S
    • /components/toolchain/system_nrf52.c -> components/toolchain/system_nrf52840.c

    Replace these defines and assembler flags:

    • BOARD_PCA10040 -> BOARD_PCA10056
    • RF52832_XXAA -> NRF52840_XXAA
    • S132 -> S140

    Add these defines and assembler flags:

    • FLOAT_ABI_HARD

    Remove these defines and assembler flags:

    • NRF52_PAN_74
    • NRF52

    Addtionally in the linker script I see that there are some sections which have "SORT()" added on nRF52840, which may be necessary for you as well.

    If your implementation is not changed from the default too much it may be simpler to copy a Makefile and linkerscript from the SDK and use that with whatever changes you need.

    Best regards,
    Rune Holmgren

Reply
  • You are correct in what changes you need to make, but you will also need to:

    Replace these files:

    • /components/toolchain/gcc/gcc_startup_nrf52.S -> /components/toolchain/gcc/gcc_startup_nrf52840.S
    • /components/toolchain/system_nrf52.c -> components/toolchain/system_nrf52840.c

    Replace these defines and assembler flags:

    • BOARD_PCA10040 -> BOARD_PCA10056
    • RF52832_XXAA -> NRF52840_XXAA
    • S132 -> S140

    Add these defines and assembler flags:

    • FLOAT_ABI_HARD

    Remove these defines and assembler flags:

    • NRF52_PAN_74
    • NRF52

    Addtionally in the linker script I see that there are some sections which have "SORT()" added on nRF52840, which may be necessary for you as well.

    If your implementation is not changed from the default too much it may be simpler to copy a Makefile and linkerscript from the SDK and use that with whatever changes you need.

    Best regards,
    Rune Holmgren

Children
Related