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

load script for Segger Embedded Studio for nRF52832 blames .tdata but should blame data_load - improvement

The loader script provided to Segger for use with Embedded Studio includes

 . = ASSERT ((__tdata_load_end__ <= __storage_flash_start__),

error: section .tdata overlaps absolute placed section .storage_flash)

At least in some cases confuses the user as it may in fact be that the data_load_end already is too big.

The following ASSERT, with a more meaningful error message, should be added immediately after
__data_load_end__ = (__data_load_start__ + SIZEOF (.data))

. = ASSERT (((__data_load_start__ == __data_load_end__) ||
(__data_load_end__ <=_storage_flash_start__), 
error:  code plus static variable initialization  exceeds  FlashStorage assignment)


Perhaps the original error should state ... tdata OR data_load...

Thank you
Parents Reply Children
No Data
Related