[KW36]How to use memory SRAM1/SRAM_L

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

[KW36]How to use memory SRAM1/SRAM_L

跳至解决方案
352 次查看
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 解答
331 次查看
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 回复
332 次查看
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 项奖励
回复