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).



  • Hello,

    It's quite strange you are getting the error while building. Can you please uninstall Segger and try installing it again with version 6.30 and give it a try.

    Kind Regards,

    Abhijith

  • Hi,

    Please look at the file "flash_placement.xml" in your project folder.

    you shoule see: 

        <ProgramSection alignment="4" load="Yes" name=".text" sizeof="0x4"/>
    and
        <ProgramSection alignment="4" load="Yes" name=".rodata" sizeof="0x4" />
    Just delete "sizeof="0x4" from both of them then it should fix your problem.
    Or you just go back to older SDK version such as 16.0.0
    Regards,
    Noom.
  • I'm experiencing the same issue with SES 6.32 and 6.32a.

    Going back to 6.30 seems to compile the project OK.

    Also, following steps from  also works with SES 6.32. What are the consequences of deleting "sizeof="0x4" from "flash_placement.xml" and why does it solve the problem?

    Thanks,

    Steve

  • Hello I faced the same problem as the op. So I have two questions:

    1. Why SES 6.30 doesn't have this problem and SES 6.32 does.
    2. In SES 6.32 works if we do what you suggested.. What are we doing and what does it affect the build system when we delete "sizeof="0x4" from the file.

    Thanks

  • Hi,

    I'm sorry, I never try SES 6.30 before. And I'm a new user for Segger and Nordic also.

    I just would like to share what I understan.

    if you look at the release notes from Segger:

    https://studio.segger.com/index.htm?https://studio.segger.com/arm_segger_studio_release_notes.htm

    From SES 6.30 to SES 6.32 they have some update about the Build. But I don't know what they did but it make some affect.

    For what I understand, if you are using SDK_17.1.0, it should not work with SES 6.30 also because

    "flash_placement.xml" is using for linking the project.

    The 2 ProgramSections that I was mention:

    <ProgramSection alignment="4" load="Yes" name=".text" sizeof="0x4"/>
    and
    <ProgramSection alignment="4" load="Yes" name=".rodata" sizeof="0x4" />
     
    if you look at the project opton
    .text is the code section and .rodata is constan section.
    both of them should not limit the size.
    If you compare the flash_placement.xml between SDK_17.1.0 with all the older version SDK.
    You will see no one limit the size for both of them. that why if you are using the older SDK, It will work.

    I hope this is asnwer your question.

    Regards,

Related