[KW36]How to use memory SRAM1/SRAM_L

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[KW36]How to use memory SRAM1/SRAM_L

Jump to solution
203 Views
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 Kudos
1 Solution
182 Views
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")));

View solution in original post

0 Kudos
1 Reply
183 Views
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 Kudos