Hi everyone im trying to locate many funcitions in a sector of 64K in MPC5746R:
MEMORY
{
...
m_text_boot : org = 0x00FC0000, len = 64K
...
}
SECTIONS
{
...
.text_boot :
{
*(.text_boot.startup_BOOT)
*(.SW_Generales_BOOT)
*(.text_boot)
*(.text_boot.*)
} > m_text_boot
...
}
I have for example a file "FW_SIUL2_BOOT.c" where all the functions are going to be in section of m_text_boot. I understand that there is no #pragma but is possible that i can allocate all code of this file instead like INCLUDE(FW_SIUL2_BOOT.o). Instaed to write for each function:
__attribute__((section (".text_boot"))) void Function1()
__attribute__((section (".text_boot"))) void Function2()
...
Hi Demian,
I think that this
define linker section for entire file
or this
https://community.nxp.com/thread/331043
could help.
Regards,
Lukas
Thanks Lukas it was useful.