DTCM/ITCM Aliasing? (KV5X)

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

DTCM/ITCM Aliasing? (KV5X)

ソリューションへジャンプ
1,133件の閲覧回数
lsrbigfoot
Contributor IV

While using the K20/K22 (cortex-M4), I have been using bit-banding macros to access the aliased region for SRAM_U (0x20000000 to 0x2000FFFF).

Example Macro:
#define BandAddr 0x22000000
#define BitBandMem(Addr, Bit)     (*(volatile uint32_t*)(BandAddr + ((((uint32_t)Addr) & 0x3FF) << 5) + (((uint8_t)Bit) << 2)))

Does the KV5X (Cortex-M7) support bit-banding to both ITCM and DTCM memories (D0TCM and D1TCM) if I were to use similar macros?

ラベル(2)
タグ(1)
0 件の賞賛
返信
1 解決策
938件の閲覧回数
chris_brown
NXP Employee
NXP Employee

Hi lsrbigfoot,

So not natively.  There is no aliased region for the ITCM or DTCM areas to write to.  

But we did implement the BME2 engine for just such a request.  You should be able to find the necessary information in chapter 24 of the KV5x reference manual, as well as some examples.  Please let me know if you have further questions about that. 

Best regards,

Chris 

元の投稿で解決策を見る

1 返信
939件の閲覧回数
chris_brown
NXP Employee
NXP Employee

Hi lsrbigfoot,

So not natively.  There is no aliased region for the ITCM or DTCM areas to write to.  

But we did implement the BME2 engine for just such a request.  You should be able to find the necessary information in chapter 24 of the KV5x reference manual, as well as some examples.  Please let me know if you have further questions about that. 

Best regards,

Chris