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

CHECK_RAM_START_ADDR() in SDK 12.1

Hello Nordic developers,

I was tracing through the new SD init code in the HRS example app for nRF52 and followed this macro into softdevice_handler.h. Is it supposed to do something? It looks like, compared to its implementation in SDK 11, some bits were left out.

Could you please investigate?

Thanks, Dan

Parents
  • CHECK_RAM_START_ADDR was initially written to generate link time failure if the RAM start address was set too low. Unfortunately we currently have no way to facilitate this in a portable manner across all compilers we support.

    Instead we implemented a run-time check using sd_check_ram_start, but that does not give any more information than just trying to enable the softdevice and handling the result, so it was deemed to be unnecessary.

    The CHECK_RAM_START_ADDR macro It is slated to be removed in an upcoming release.

Reply
  • CHECK_RAM_START_ADDR was initially written to generate link time failure if the RAM start address was set too low. Unfortunately we currently have no way to facilitate this in a portable manner across all compilers we support.

    Instead we implemented a run-time check using sd_check_ram_start, but that does not give any more information than just trying to enable the softdevice and handling the result, so it was deemed to be unnecessary.

    The CHECK_RAM_START_ADDR macro It is slated to be removed in an upcoming release.

Children
Related