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

What happens when the text segment exceeds 64k on a nRF51 DK?

Hi,

Will something interesting happen when the text segment on a nRF51 DK exceeds 64k? I am using Eclipse/gcc for developing, based on the tutorial provided by Nordic.

Anything special i need to do regarding compiler or linker flags?

regards, //Elm

Parents
  • No. As long as your code fits into available flash (and the linker would tell you if it didn't) 64kB has no meaning at all. Some of the ARM standard (ie not long-call) calls can't go over 4Mb, but that's not going to be a problem for the nrf51, nrf52 or quite a few versions more.

    What problem were you expecting with 64kB of text?

Reply
  • No. As long as your code fits into available flash (and the linker would tell you if it didn't) 64kB has no meaning at all. Some of the ARM standard (ie not long-call) calls can't go over 4Mb, but that's not going to be a problem for the nrf51, nrf52 or quite a few versions more.

    What problem were you expecting with 64kB of text?

Children
Related