cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7 RAM Domain linkcmds modification error,

KVija
Associate II

In H7 , RAM_D2 have 288KB size memory domain. Currently i'm looking to split this domain memory into two areas as below,

MEMORY {

RAM_INT  : ORIGIN = 0x20000000, LENGTH = 128K

RAM_D1  : ORIGIN = 0x24000000, LENGTH = 512K

RAM_D2  : ORIGIN = 0x30000000, LENGTH = 100K

RAM_D3  : ORIGIN = 0x300‭19000‬, LENGTH = 288K - 100K

RAM_D4  : ORIGIN = 0x38000000, LENGTH = 64K

ITCMRAM  : ORIGIN = 0x00000000, LENGTH = 64K

ROM_INT  : ORIGIN = 0x08000000, LENGTH = 2M

}

REGION_ALIAS ("REGION_START", ROM_INT);

REGION_ALIAS ("REGION_VECTOR", RAM_INT);

REGION_ALIAS ("REGION_TEXT", ROM_INT);

REGION_ALIAS ("REGION_TEXT_LOAD", ROM_INT);

REGION_ALIAS ("REGION_RODATA", ROM_INT);

REGION_ALIAS ("REGION_RODATA_LOAD", ROM_INT);

REGION_ALIAS ("REGION_DATA", RAM_INT);

REGION_ALIAS ("REGION_DATA_LOAD", ROM_INT);

REGION_ALIAS ("REGION_FAST_TEXT", RAM_INT);

REGION_ALIAS ("REGION_FAST_TEXT_LOAD", ROM_INT);

REGION_ALIAS ("REGION_FAST_DATA", RAM_INT);

REGION_ALIAS ("REGION_FAST_DATA_LOAD", ROM_INT);

REGION_ALIAS ("REGION_BSS", RAM_INT);

REGION_ALIAS ("REGION_WORK", RAM_D1);

REGION_ALIAS ("REGION_STACK", RAM_D2);

REGION_ALIAS ("REGION_BONUS", RAM_D3);

REGION_ALIAS ("REGION_NOCACHE", RAM_D4);

REGION_ALIAS ("REGION_NOCACHE_LOAD", RAM_D4);

But we are getting below compilation error,

/opt/rtems-4.11/lib/gcc/arm-rtems4.11/4.9.3/../../../../arm-rtems4.11/bin/ld:../../../../../stm32h7/lib/linkcmds:5: ignoring invalid character `\342' in expression

/opt/rtems-4.11/lib/gcc/arm-rtems4.11/4.9.3/../../../../arm-rtems4.11/bin/ld:../../../../../stm32h7/lib/linkcmds:5: ignoring invalid character `\200' in expression

/opt/rtems-4.11/lib/gcc/arm-rtems4.11/4.9.3/../../../../arm-rtems4.11/bin/ld:../../../../../stm32h7/lib/linkcmds:5: ignoring invalid character `\255' in expression

/opt/rtems-4.11/lib/gcc/arm-rtems4.11/4.9.3/../../../../arm-rtems4.11/bin/ld:../../../../../stm32h7/lib/linkcmds:5: syntax error

Please let me know anyone can support on this. Thanks advance.

0 REPLIES 0