Basically @not_a_duck and @VaneB , I would like a linker file to use with flash for NXP RTOS project, is it possible?
This is the current linker file for NXP RTOS example (RAM).
/**************************************************************************************
*
* NXP(TM) and the NXP logo are trademarks of NXP
* All other product or service names are the property of their respective owners.
* Copyright 2020-2023 NXP
* All Rights Reserved.
*
* You can use this example for any purpose on any computer system with the
* following restrictions:
*
* 1. This example is provided "as is", without warranty.
*
* 2. You don't remove this copyright notice from this example or any direct derivation
* thereof.
*
* Description: GCC linker command file for NXP RTOS sample application
*
**************************************************************************************/
MEMORY
{
OsInternalRAM : org = 0x20400000, len = 0x20000 /* 128K should be enough for sample */
}
SECTIONS
{
/* Interrupt vectors table */
.all :
{
*(.vector)
*(.startup) /* reset code */
*(.systeminit) /* SystemInit */
*(.text.startup)
/* Code and constant area (all code and constant sections shall be placed between .osbegincode and .osendcode sections). */
. = ALIGN(0x20);
*(.osbegincode) /* for mem protection only */
*(.ostext)
*(.oshook)
*(.osrodata)
*(.syscall)
*(.secinfo)
*(.rodata)
*(.ossrodata)
*(.sapp_c32)
*(.sapp_c16)
*(.sapp_cU)
*(.sapp_c8)
*(.text)
*(.appcode)
*(.ROM.data)
*(.osendcode) /* for mem protection only */
/* ------------------------------------ OS stack area ------------------------------------ */
. = ALIGN(0x20);
*(.osstack)
/* -------------------------------------- Default data/bss --------------------------------- */
*(.data)
*(.osdata) /* it is empty */
*(.ossdata)
. = ALIGN(0x20);
*(.sapp_v32_data)
*(.sapp_v16_data)
*(.sapp_vU_data)
*(.sapp_v8_data)
/* ------------------------------------ BSS sections ------------------------------------ */
_bss_start = .;
*(.osbss)
*(.ossbss)
. = ALIGN(0x20);
*(.bss)
*(.sbss)
. = ALIGN(0x20);
*(.sapp_v32_bss)
*(.sapp_v16_bss)
*(.sapp_vU_bss)
*(.sapp_v8_bss)
_bss_end = .;
/* ------------------------------------ main stacks section ------------------------------------ */
. = ALIGN(16);
_Stack_end = .;
OS_MAIN_STACK_MIN = .;
KEEP(*(.stack_main))
_Stack_start = .; /* stack grows downward */
OS_MAIN_STACK_MAX = .;
. = ALIGN(0x80); /* Reserved */
} >OsInternalRAM
}