This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Unable to properly define named sections.

Hello,

I am trying to define a named section in code, and assign it to an execution region in may scatter file and i get "...warning: L6314W: No section matches pattern main.o(section_name)."

main.c:

...
int g_dbg __attribute__((section("section_name"), zero_init));
...

scatter file:

LR_IROM1 0x00000000 0x00040000  {    ; load region size_region
  ER_IROM1 0x00000000 0x00040000  {  ; load address = execution address
   *.o (RESET, +First)
   *(InRoot$$Sections)
   .ANY (+RO)
  }
}

LR_IRAM1 0x00080000 0x00040000  {    ; load region size_region
        RW_IRAM1 0x00080000 0x00040000  {  ; RW data
           main.o (section_name)
           .ANY (+RW +ZI)
        }
}

I will appreciate any help/information,
Thanks