Getting error at compile time SEGGER Embedded Studio for ARM 6.32b

Good day

I have been testing sample code code, but when compiling I get this error

nRF5_SDK_17.1.0_ddde560\components\libraries\uart\retarget.c:101:23: error: unknown type name '__printf_tag_ptr'

32> 101 | int __putchar(int ch, __printf_tag_ptr tag_ptr)

I found some post suggesting to do this;

1. Exclude retarget.c

2. Go to project option settings and set Configurations to Common

3. Set Code->Library->Library I/O to RTT

But when rebuilding the project it gives me a new error

.text is larger than specified size

.rodata is larger than specified size

This happens from the sample code, maybe I am missing a setting in Segger

Parents
  • Hi, I also have this problem after upgrading to SEGGER V6.34a, and the suggested solutions do not work for me.
    My flash_placement.xml file contains the following two lines

    <ProgramSection alignment="4" load="Yes" name=".text" />
    <ProgramSection alignment="4" load="Yes" name=".rodata" />

    i.e. They do NOT specify size limits for those sections, yet I still get the two following errors...

    .text is larger than specified size

    .rodata is larger than specified size

    Before I "upgraded" to SEGGER V6.34a everything compiled perfectly.

Reply
  • Hi, I also have this problem after upgrading to SEGGER V6.34a, and the suggested solutions do not work for me.
    My flash_placement.xml file contains the following two lines

    <ProgramSection alignment="4" load="Yes" name=".text" />
    <ProgramSection alignment="4" load="Yes" name=".rodata" />

    i.e. They do NOT specify size limits for those sections, yet I still get the two following errors...

    .text is larger than specified size

    .rodata is larger than specified size

    Before I "upgraded" to SEGGER V6.34a everything compiled perfectly.

Children
Related