Skip to main content
Solved

Test code

  • August 11, 2025
  • 7 replies
  • 70 views

/* Memories definition */
MEMORY
{
RETRAM_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 32k
m_ipc_shm (RW) : ORIGIN = 0x38008000, LENGTH = 32K
SRAM1_FLASH (RX) : ORIGIN = 0x10000000, LENGTH = 192K
SRAM2_RAM (RWX) : ORIGIN = 0x10030000, LENGTH = (192K - 256)
FLAGS (RW) : ORIGIN = 0x1005FF00, LENGTH = 256
}
...

.noinit (NOLOAD):
{
KEEP(*(.FlagSection)) /* keep my variable even if not referenced */
} > FLAGS

 

Best answer by Maxime_M

This is the solution 😁

 

7 replies

  • Author
  • Community Manager
  • Answer
  • August 11, 2025

This is the solution 😁

 


  • Author
  • Community Manager
  • September 15, 2025

 

/* Memories definition */
MEMORY
{
RETRAM_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 32k
m_ipc_shm (RW) : ORIGIN = 0x38008000, LENGTH = 32K
SRAM1_FLASH (RX) : ORIGIN = 0x10000000, LENGTH = 192K
SRAM2_RAM (RWX) : ORIGIN = 0x10030000, LENGTH = (192K - 256)
FLAGS (RW) : ORIGIN = 0x1005FF00, LENGTH = 256
}
...

.noinit (NOLOAD):
{
KEEP(*(.FlagSection)) /* keep my variable even if not referenced */
} > FLAGS

 


  • Community Manager
  • September 15, 2025
/* Memories definition */
MEMORY
{
RETRAM_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 32k
m_ipc_shm (RW) : ORIGIN = 0x38008000, LENGTH = 32K
SRAM1_FLASH (RX) : ORIGIN = 0x10000000, LENGTH = 192K
SRAM2_RAM (RWX) : ORIGIN = 0x10030000, LENGTH = (192K - 256)
FLAGS (RW) : ORIGIN = 0x1005FF00, LENGTH = 256
}
...

.noinit (NOLOAD):
{
KEEP(*(.FlagSection)) /* keep my variable even if not referenced */
} > FLAGS

 

 


  • Author
  • Community Manager
  • September 15, 2025

/* Memories definition */ MEMORY { RETRAM_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 32k m_ipc_shm (RW) : ORIGIN = 0x38008000, LENGTH = 32K SRAM1_FLASH (RX) : ORIGIN = 0x10000000, LENGTH = 192K SRAM2_RAM (RWX) : ORIGIN = 0x10030000, LENGTH = (192K - 256) FLAGS (RW) : ORIGIN = 0x1005FF00, LENGTH = 256 } ... .noinit (NOLOAD): { KEEP(*(.FlagSection)) /* keep my variable even if not referenced */ } > FLAGS

/* Memories definition */
MEMORY
{
RETRAM_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 32k
m_ipc_shm (RW) : ORIGIN = 0x38008000, LENGTH = 32K
SRAM1_FLASH (RX) : ORIGIN = 0x10000000, LENGTH = 192K
SRAM2_RAM (RWX) : ORIGIN = 0x10030000, LENGTH = (192K - 256)
FLAGS (RW) : ORIGIN = 0x1005FF00, LENGTH = 256
}
...

.noinit (NOLOAD):
{
KEEP(*(.FlagSection)) /* keep my variable even if not referenced */
} > FLAGS

 


Forum|alt.badge.img+2
 

/* Memories definition */ MEMORY { RETRAM_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 32k m_ipc_shm (RW) : ORIGIN = 0x38008000, LENGTH = 32K SRAM1_FLASH (RX) : ORIGIN = 0x10000000, LENGTH = 192K SRAM2_RAM (RWX) : ORIGIN = 0x10030000, LENGTH = (192K - 256) FLAGS (RW) : ORIGIN = 0x1005FF00, LENGTH = 256 } ... .noinit (NOLOAD): { KEEP(*(.FlagSection)) /* keep my variable even if not referenced */ } > FLAGS


Forum|alt.badge.img+2
/* Memories definition */
MEMORY
{
RETRAM_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 32k
m_ipc_shm (RW) : ORIGIN = 0x38008000, LENGTH = 32K
SRAM1_FLASH (RX) : ORIGIN = 0x10000000, LENGTH = 192K
SRAM2_RAM (RWX) : ORIGIN = 0x10030000, LENGTH = (192K - 256)
FLAGS (RW) : ORIGIN = 0x1005FF00, LENGTH = 256
}
...

.noinit (NOLOAD):
{
KEEP(*(.FlagSection)) /* keep my variable even if not referenced */
} > FLAGS

 


  • Community Manager
  • September 16, 2025

 

MEMORY
{
RETRAM_interrupts (RX) : ORIGIN = 0x00000000, LENGTH = 32k
m_ipc_shm (RW) : ORIGIN = 0x38008000, LENGTH = 32K
SRAM1_FLASH (RX) : ORIGIN = 0x10000000, LENGTH = 192K
SRAM2_RAM (RWX) : ORIGIN = 0x10030000, LENGTH = (192K - 256)
FLAGS (RW) : ORIGIN = 0x1005FF00, LENGTH = 256
}
...

.noinit (NOLOAD):
{
KEEP(*(.FlagSection)) /* keep my variable even if not referenced */
} > FLAGS