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

  • ok its now building but the advertising does not seem to be working although not getting an error(scanning with the nrfConnect app)

    have set the adv_params to be 1MBPS on physical properties so it should not be a problem

    EDIT : when we set scannable and legacy_pdu  to 1 it seems to be working. But we are having difficult time finding out what these parameters do exactly

    Ive read that legacy PDU should be set when using advertising extension but I dont recall setting this explicitly anywhere. Where is this done?

Reply
  • ok its now building but the advertising does not seem to be working although not getting an error(scanning with the nrfConnect app)

    have set the adv_params to be 1MBPS on physical properties so it should not be a problem

    EDIT : when we set scannable and legacy_pdu  to 1 it seems to be working. But we are having difficult time finding out what these parameters do exactly

    Ive read that legacy PDU should be set when using advertising extension but I dont recall setting this explicitly anywhere. Where is this done?

Children
Related