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
It does give you the answer: "...warning: L6314W: No section matches pattern main.o(section_name)."
Your scatter file defines 2 execution regions ER_IROM1 and RW_IRAM1, but you need one more called section_name in your code.
Thanks! I managed to get it work by renaming the execution region to 'region_name'. Still, I don't understand why my original attempt didn't work since it was based completely on an example taken from ARM linker user guide (http://www.keil.com/support/man/docs/armlink/armlink_pge1362066000009.htm).
There's 2 steps in the example, and you just did 1 in your first attempt.