Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Template for nRF52832 with s113?

Do you have template for nRF52832/PCA10040 with s113 ?

 

If no, what have to change in my template for nRF52832 that works with s112:

c_preprocessor_definitions

S112 ->S113
anything else?

 

Any changes in the linker sections?

linker_section_placement_macros:

FLASH_PH_START=0x0

FLASH_PH_SIZE=0x80000

RAM_PH_START=0x20000000

RAM_PH_SIZE=0x10000

FLASH_START=0x19000

FLASH_SIZE=0x67000

RAM_START=0x20001a40

RAM_SIZE=0xe5c0

linker_section_placements_segments

FLASH RX 0x0 0x80000
RAM RWX 0x20000000 0x10000

BTW how are RAM_START and RAM_SIZE calculated, because I see in the examples those values vary?

Any other changes required?

Thanks

Parents
  • Hi,

    You need to do the following:

    • Change the include path so that you include S113 headers instead of S112 headers (<SDK>\components\softdevice\s113\headers\)
    • Replace S112 with S113 in the preprocessor definitions (as you write)
    • Set FLASH_START=0x1c000 (This is correct for S113 7.0.1)

    Regarding RAM_START, you are right that this varies as it is affected by the SoftDevice configuration. If you enable debug logging, the correct value is printed in the log, which tells you what you should set as the start address. This is because this is calculated internally in the SoftDevice when it is initialized.

Reply
  • Hi,

    You need to do the following:

    • Change the include path so that you include S113 headers instead of S112 headers (<SDK>\components\softdevice\s113\headers\)
    • Replace S112 with S113 in the preprocessor definitions (as you write)
    • Set FLASH_START=0x1c000 (This is correct for S113 7.0.1)

    Regarding RAM_START, you are right that this varies as it is affected by the SoftDevice configuration. If you enable debug logging, the correct value is printed in the log, which tells you what you should set as the start address. This is because this is calculated internally in the SoftDevice when it is initialized.

Children
Related