Build error

Hi, 

I'm getting an error when building the example program blinky that says: ".text is larger than specified size" and ".rodata is larger than specified size".

I'm using version 17.1.0 of the nRF5 SDK, and version 6.32 of SES for ARM (64 bit).



Parents Reply
  • Hi,

    You remove size="0x4" and it work because.

    .text is related to the code size and .rodata is related to the constant data size.

    So, when you put size="0x4", that mean you limit your code size to 4 bytes and limit your constant data  to 4 bytes also., 

    even a simple code like the blinky example. it take about 4Kbytes

    So, If you need to set the size of this code, you have to set the size bigger than your code such as size="0x1000" (1024 * 4 = 4096 bytes, 4Kbytes). It will work. 

    Regards,

Children
No Data
Related