DTCM ITCM OCRAM and scatter file on IMX RT1052

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

DTCM ITCM OCRAM and scatter file on IMX RT1052

2,750件の閲覧回数
davidrozenski
Contributor I

Dear All,

I would like to configure at the beginning of my software ITCM 8 Pages, DTCMM 6 pages and OCRAM 2 Pages, so I called the function : FLEXRAM_AllocateRam(&ramAllocate); which is the part of fsl_flexram.c. I defined in the scatter file .scf of KEIL the corresponding regions used :

#define mram_start 0x00000000 // ITCM definition
#define mram_size 0x00040000

#define mram_start1 0x20000000 // DTCM definition
#define mram_size1 0x00030000

#define mram_start2 0x20200000 // OCRAM definition
#define mram_size2 0x00010000

RW_RAM (mram_start) (mram_size ) ;
{

.LONGBUFFER
}

RW_RAM1 (mram_start1) (mram_size1) ;
{

     .ANY (+RW +ZI)
}

in some unit I declared:

volatile uint8_t MyArray[0x30000] __attribute__((section("LONGBUFFER"))) __attribute__ ((aligned(64)));

during linking I got the following message :

MIMXRT1052xxxxx_flexspi_nor_xip_scf(125): warning: L6329W: Pattern *(LONGBUFFER) only matches removed unused sections.

So this is normal since the bank memory definitions (ITCM,DTCM,OCRAM) is done when software started, so how to tell the linker the memory will be usable later ?

Or maybe I missed somethings ?

Regards

David

ラベル(1)
0 件の賞賛
返信
1 返信

1,893件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi David

regarding "how to tell the linker the memory will be usable later ",

discussed in AN 12077 Using the i.MX RT FlexRAM :

As shown in Table 1, there is no valid FlexRAM configuration available in the fuse default setting aligned with the configuration required by this use case. The static configuration cannot be utilized here. However, it is possible to configure the FlexRAM by the run-time configuration approach defined in Section 2.1, “FlexRAM configuration”.

https://www.nxp.com/docs/en/application-note/AN12077.pdf 

For software example one can look at flexram ram allocate example included in  SDK for EVK-MIMXRT1050

https://mcuxpresso.nxp.com/en/dashboard?uvid=71440#

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信