[KW36]How to use memory SRAM1/SRAM_L

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

[KW36]How to use memory SRAM1/SRAM_L

ソリューションへジャンプ
292件の閲覧回数
ppx
Contributor II

I want to define uint8_t ucHeap[configTOTAL_HEAP_SIZE] in SRAM1 of kw36.

uint8_t ucHeap[configTOTAL_HEAP_SIZE] __attribute__((section(".data_RAM2")));

Let me define this variable like this. But it's not in SRAM1.kw36.PNG

Please show me how to correctly define ucHeap into SRAM1. thank you.

0 件の賞賛
返信
1 解決策
271件の閲覧回数
ppx
Contributor II

20240410-161420.jpg

The input name is used to define the variable!!!

Like this it will work properly:

uint8_t ucHeap[configTOTAL_HEAP_SIZE] __attribute__((section(".bss.$SRAM1")));

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
272件の閲覧回数
ppx
Contributor II

20240410-161420.jpg

The input name is used to define the variable!!!

Like this it will work properly:

uint8_t ucHeap[configTOTAL_HEAP_SIZE] __attribute__((section(".bss.$SRAM1")));

0 件の賞賛
返信